branch_name
stringclasses
149 values
text
stringlengths
23
89.3M
directory_id
stringlengths
40
40
languages
listlengths
1
19
num_files
int64
1
11.8k
repo_language
stringclasses
38 values
repo_name
stringlengths
6
114
revision_id
stringlengths
40
40
snapshot_id
stringlengths
40
40
refs/heads/master
<repo_name>UmarNazaket/MIPS<file_sep>/src/stages/WriteBackStage.java package stages; import validInstructions.DI; import enums.StageType; public class WriteBackStage extends Stage { private static volatile WriteBackStage instance; public static WriteBackStage getInstance() { if (null == instance) synchronized (WriteBackStage.class) { if (null == instance) instance = new WriteBackStage(); } return instance; } private functionalUnits.WriteBackUnit writeBack; private WriteBackStage() { super(); this.stageType = StageType.WBSTAGE; writeBack = functionalUnits.WriteBackUnit.getInstance(); } @Override public void execute() throws Exception { /* * System.out.println("------------------------------"); * System.out.println("WRITEBACK - "); writeBack.dumpUnitDetails(); * System.out.println("------------------------------"); */ writeBack.executeUnit(); } @Override public boolean acceptInstruction(DI instruction) throws Exception { writeBack.acceptInstruction(instruction); return true; } @Override public boolean checkIfFree(DI instruction) throws Exception { return writeBack.checkIfFree(instruction); } } <file_sep>/src/caches/DCache.java package caches; public class DCache { DCacheSet[] dCacheSet; public DCache() { dCacheSet = new DCacheSet[2]; dCacheSet[0] = new DCacheSet(); dCacheSet[1] = new DCacheSet(); } private DCacheSet getSet(int address) { int setId = address & 0b10000; setId = setId >> 4; return dCacheSet[setId]; } private int getBaseAddress(int address) { int baseAddress = address >> 2; baseAddress = baseAddress << 2; return baseAddress; } public boolean doesAddressExist(int address) { DCacheSet set = getSet(address); int baseAddress = getBaseAddress(address); return set.doesAddressExist(baseAddress); } public boolean isThereAFreeBlock(int address) { DCacheSet set = getSet(address); return set.hasFreeBlock(); } public boolean isLRUBlockDirty(int address) { DCacheSet set = getSet(address); return set.isLRUBlockDirty(); } public void updateBlock(int address, boolean store) throws Exception { // TODO Auto-generated method stub DCacheSet set = getSet(address); int baseAddress = getBaseAddress(address); DCacheBlock block = null; // update same address block, if not then free block , if not then // lrublock if (doesAddressExist(address)) { block = set.getAddressBlock(baseAddress); } else if (isThereAFreeBlock(address)) { block = set.getEmptyBlock(baseAddress); } else { block = set.getLRUBlock(); } if (block == null) throw new Exception("DCache cannot find a null block"); block.baseAddress = baseAddress; block.dirty = store; set.toggleLRU(block); } }<file_sep>/src/parsers/RegTxtParser.java package parsers; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import registers.RegisterManager; public class RegTxtParser { public static void parse(String fileName) throws Exception { BufferedReader bfread = null; try { bfread = new BufferedReader(new FileReader(new File(fileName))); String line = null; int count = 0; while ((line = bfread.readLine()) != null) { line = line.trim(); if (line.length() == 0) throw new Exception( "Less than 32 Integer register data in reg.txt, count= " + count); int value = Integer.parseInt(line, 2); RegisterManager.instance.setRegisterValue("R" + count, value); count++; if (count == 32) break; } } finally { if (bfread != null) bfread.close(); } } } <file_sep>/src/start/Start.java package start; import parsers.ConfigTxtParser; import parsers.DataTxtParser; import parsers.InstTxtParser; import parsers.RegTxtParser; import stages.DecodeStage; import stages.ExStage; import stages.FetchStage; import stages.ProcessorParams; import stages.WriteBackStage; import utility.Display; import enums.ExecutionType; public class Start { /** * * @param args * inst.txt data.txt reg.txt config.txt result.txt * @throws Exception */ public static void main(String[] args) throws Exception { /** * Initialize CPU parameters */ ProcessorParams.CC = 0; ProcessorParams.PC = 0; ProcessorParams.exeType = ExecutionType.M; /** * Parse inst.txt, data.txt, reg.txt, config.txt result.txt */ InstTxtParser.parse(args[0]); DataTxtParser.parse(args[1]); RegTxtParser.parse(args[2]); ConfigTxtParser.parse(args[3]); Display.instance.setResultsPath(args[4]); /** * Initialize singleton instances of all the four stages * 1. WriteBack * 2. Execute * 3. Decode * 4. Fetch */ WriteBackStage wbStage = WriteBackStage.getInstance(); ExStage exStage = ExStage.getInstance(); DecodeStage idStage = DecodeStage.getInstance(); FetchStage ifStage = FetchStage.getInstance(); try { // I run these many clock cycles after HLT to flush pipeline int extraCLKCount = 5000; while (extraCLKCount != 0) { wbStage.execute(); exStage.execute(); // Well this is just stupid way of doing this if (!Display.instance.isHALT()) { idStage.execute(); if (!Display.instance.isHALT()) { ifStage.execute(); } } else extraCLKCount--; ProcessorParams.CC++; } } catch (Exception e) { System.out.println("ERROR: CLOCK=" + ProcessorParams.CC); e.printStackTrace(); } finally { } Thread.sleep(1000L); System.out.println("Results"); Display.instance.printResults(); Display.instance.writeResults(); } } <file_sep>/src/functionalUnits/FetchUnit.java package functionalUnits; import managers.ICacheManager; import managers.ProgramManager; import stages.ProcessorParams; import stages.DecodeStage; import utility.Display; import validInstructions.DI; import validInstructions.NOOP; import enums.StageType; public class FetchUnit extends FunctionalUnit { private static volatile FetchUnit instance; public static FetchUnit getInstance() { if (null == instance) synchronized (FetchUnit.class) { if (null == instance) instance = new FetchUnit(); } return instance; } private FetchUnit() { super(); this.isPipelined = false; this.clockCyclesRequired = 1; this.pipelineSize = 1; this.stageId = StageType.IFSTAGE; createPipelineQueue(pipelineSize); } @Override public int getClockCyclesRequiredForNonPipeLinedUnit() { return clockCyclesRequired; } @Override public void executeUnit() throws Exception { validateQueueSize(); DI inst = peekFirst(); if (!(inst instanceof NOOP)) { System.out.println(ProcessorParams.CC + " Fetch "); if (DecodeStage.getInstance().checkIfFree(inst)) { DecodeStage.getInstance().acceptInstruction(inst); updateExitClockCycle(inst); rotatePipe(); } } fetchNextInstruction(); } public void flushUnit() throws Exception { validateQueueSize(); DI inst = peekFirst(); System.out.println("FetchUnit flushUnit called for inst: "+inst.toString()); if (inst instanceof NOOP) return; // update inst exitcycle // updateEntryClockCycle(inst); // hack dont do this!!! updateExitClockCycle(inst); // send to result manager Display.instance.queueInstructionForDisplay(inst); // remove inst & add NOOP rotatePipe(); validateQueueSize(); } private void fetchNextInstruction() throws Exception { // fetch a new instruction only if ifStage is free if (checkIfFree()) { boolean checkInst = false; DI next = null; switch (ProcessorParams.exeType) { case M: next = ICacheManager.getInstance().getInstructionFromCache( ProcessorParams.PC); if (next != null) checkInst = true; /*next = ProgramManager.instance .getInstructionAtAddress(CPU.PROGRAM_COUNTER); checkInst = true;*/ break; case P: next = ProgramManager.instance .getInstructionAtAddress(ProcessorParams.PC); checkInst = true; break; } if (checkInst && checkIfFree()) { acceptInstruction(next); ProcessorParams.PC++; } } // end ifStage.checkIfFree } } <file_sep>/src/validInstructions/ANDI.java package validInstructions; import instructionTypes.Type2Reg1Imm; import enums.FunctionalUnitType; import enums.InstructionType; public class ANDI extends Type2Reg1Imm { public ANDI(String sourceLabel, String destinationLabel, int immediate) { super(sourceLabel, destinationLabel, immediate); this.functionalUnitType = FunctionalUnitType.IU; this.instructionType = InstructionType.ARITHMETIC_IMM; } public ANDI(ANDI obj) { super(obj); } public int getImmediate() { return this.immediate; } @Override public String toString() { return "ANDI " + dest.getDestinationLabel() + ", " + src1.getSourceLabel() + ", " + immediate; } @Override public void executeInstruction() { dest.setDestination(src1.getSource() & immediate); } } <file_sep>/src/validInstructions/I.java package validInstructions; import java.util.List; public interface I { /* * need list to check if not busy also need to set values in ID */ public List<SourceObject> getSourceRegister(); /* * Need to check for WAW hazards, WB & set dest busy */ public WriteBackObject getDestinationRegister(); /* * All execute does is locally do arithmetic operations or calculate target * address */ public void executeInstruction(); /* * For Decode Instruction we need the following */ } <file_sep>/src/enums/InstructionType.java package enums; public enum InstructionType { ARITHMETIC_IMM, ARITHMETIC_REG, ARITHMETIC_FPREG, MEMORY_REG, MEMORY_FPREG, JUMP, BRANCH, HALT, NOOP, UNKNOWN } <file_sep>/src/validInstructions/AND.java package validInstructions; import instructionTypes.Type3Reg; import enums.FunctionalUnitType; import enums.InstructionType; public class AND extends Type3Reg { public AND(String sourceLabel1, String sourceLabel2, String destinationLabel) { super(sourceLabel1, sourceLabel2, destinationLabel); this.functionalUnitType = FunctionalUnitType.IU; this.instructionType = InstructionType.ARITHMETIC_REG; } public AND(AND obj) { super(obj); } @Override public String toString() { return "AND " + dest.getDestinationLabel() + ", " + src1.getSourceLabel() + ", " + src2.getSourceLabel(); } @Override public void executeInstruction() { dest.setDestination(src1.getSource() & src2.getSource()); } } <file_sep>/src/functionalUnits/FpMulUnit.java package functionalUnits; import managers.ConfigManager; import enums.StageType; public class FpMulUnit extends FPFunctionalUnit { private static volatile FpMulUnit instance; public static FpMulUnit getInstance() { if (null == instance) synchronized (FpMulUnit.class) { if (null == instance) instance = new FpMulUnit(); } return instance; } private FpMulUnit() { super(); isPipelined = ConfigManager.instance.FPMultPipelined; clockCyclesRequired = ConfigManager.instance.FPMultLatency; pipelineSize = isPipelined ? ConfigManager.instance.FPMultLatency : 1; stageId = StageType.EXSTAGE; createPipelineQueue(pipelineSize); } } <file_sep>/src/validInstructions/LW.java package validInstructions; import instructionTypes.Type2Reg1Imm; import enums.FunctionalUnitType; import enums.InstructionType; public class LW extends Type2Reg1Imm { public LW(String sourceLabel, String destinationLabel, int immediate) { super(sourceLabel, destinationLabel, immediate); this.functionalUnitType = FunctionalUnitType.IU; this.instructionType = InstructionType.MEMORY_REG; } public LW(LW obj) { super(obj); } @Override public String toString() { return "LW " + dest.getDestinationLabel() + ", " + immediate + "(" + src1.getSourceLabel() + ")"; } @Override public void executeInstruction() { this.address = immediate + src1.getSource(); } } <file_sep>/src/functionalUnits/IntegerUnit.java package functionalUnits; import validInstructions.DI; import validInstructions.NOOP; import enums.StageType; public class IntegerUnit extends FunctionalUnit { private static volatile IntegerUnit instance; public static IntegerUnit getInstance() { if (null == instance) synchronized (IntegerUnit.class) { if (null == instance) instance = new IntegerUnit(); } return instance; } private IntegerUnit() { super(); isPipelined = false; clockCyclesRequired = 1; pipelineSize = 1; stageId = StageType.EXSTAGE; createPipelineQueue(pipelineSize); } @Override public void executeUnit() throws Exception { validateQueueSize(); DI inst = peekFirst(); if (inst instanceof NOOP) return; inst.executeInstruction(); if (MemoryUnit.getInstance().checkIfFree(inst)) { MemoryUnit.getInstance().acceptInstruction(inst); updateExitClockCycle(inst); rotatePipe(); } else { markStructHazard(); } } @Override public int getClockCyclesRequiredForNonPipeLinedUnit() { return clockCyclesRequired; } } <file_sep>/src/stages/DecodeStage.java package stages; import validInstructions.DI; import enums.StageType; import functionalUnits.DecodeUnit; public class DecodeStage extends Stage { private static volatile DecodeStage instance; public static DecodeStage getInstance() { if (null == instance) synchronized (DecodeStage.class) { if (null == instance) instance = new DecodeStage(); } return instance; } private DecodeUnit decode; private DecodeStage() { super(); decode = DecodeUnit.getInstance(); this.stageType = StageType.IDSTAGE; } @Override public void execute() throws Exception { decode.executeUnit(); } @Override public boolean checkIfFree(DI instruction) throws Exception { return decode.checkIfFree(instruction); } @Override public boolean acceptInstruction(DI instruction) throws Exception { if (!decode.checkIfFree(instruction)) throw new Exception("DECODESTAGE: Illegal state exception " + instruction.toString()); decode.acceptInstruction(instruction); return true; } } <file_sep>/src/validInstructions/CB.java package validInstructions; import java.util.ArrayList; import java.util.List; public abstract class CB extends DI { SourceObject src1, src2; String destinationLabel; public CB(String sourceLabel1, String sourceLabel2, String destinationLabel) { super(); src1 = new SourceObject(sourceLabel1, 0); src2 = new SourceObject(sourceLabel2, 0); this.destinationLabel = destinationLabel; } public CB(CB obj) { super(obj); setPrintableInstruction(obj.printableInstruction); src1 = new SourceObject(obj.src1); src2 = new SourceObject(obj.src2); destinationLabel = obj.destinationLabel; } @Override public List<SourceObject> getSourceRegister() { List<SourceObject> sourceRegisterList = new ArrayList<SourceObject>(); sourceRegisterList.add(src1); sourceRegisterList.add(src2); return sourceRegisterList; } @Override public WriteBackObject getDestinationRegister() { return null; } public String getDestinationLabel() { return destinationLabel; } public boolean compareRegisters() { return (src1.getSource() == src2.getSource()); } } <file_sep>/src/parsers/DataTxtParser.java package parsers; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import managers.DataMemoryManager; // NOTE I break out of parsing after encountering the first empty line or file finishes public class DataTxtParser { public static void parse(String fileName) throws Exception { BufferedReader bfread = null; try { bfread = new BufferedReader(new FileReader(new File(fileName))); String line = null; int count = 0; int initialAddress = 0x100; while ((line = bfread.readLine()) != null) { line = line.trim(); if (line.length() == 0) break; // break on the first empty line int value = Integer.parseInt(line, 2); DataMemoryManager.instance.setValueToAddress(initialAddress++, value); count++; } System.out.println("Total Number of memory locations = " + count); } finally { if (bfread != null) bfread.close(); } } } <file_sep>/src/validInstructions/J.java package validInstructions; import java.util.List; import enums.InstructionType; public class J extends DI { String destinationLabel; public J(String destinationLabel) { super(); this.destinationLabel = destinationLabel; this.instructionType = InstructionType.JUMP; } public J(J obj) { super(obj); setPrintableInstruction(obj.printableInstruction); destinationLabel = obj.destinationLabel; } @Override public List<SourceObject> getSourceRegister() { return null; } @Override public WriteBackObject getDestinationRegister() { return null; } public String getDestinationLabel() { return destinationLabel; } @Override public String toString() { return "J " + destinationLabel; } @Override public void executeInstruction() { // Do nothing here } } <file_sep>/src/instructionTypes/Type2Reg1Imm.java package instructionTypes; import java.util.ArrayList; import java.util.List; import validInstructions.DI; import validInstructions.SourceObject; import validInstructions.WriteBackObject; public abstract class Type2Reg1Imm extends DI { public SourceObject src1; public WriteBackObject dest; public int immediate; public Type2Reg1Imm(String sourceLabel, String destinationLabel, int immediate) { super(); src1 = new SourceObject(sourceLabel, 0); dest = new WriteBackObject(destinationLabel, 0); this.immediate = immediate; } public Type2Reg1Imm(Type2Reg1Imm obj) { super(obj); setPrintableInstruction(obj.printableInstruction); this.src1 = new SourceObject(obj.src1); this.dest = new WriteBackObject(obj.dest); this.immediate = obj.immediate; } @Override public List<SourceObject> getSourceRegister() { List<SourceObject> sourceRegisterList = new ArrayList<SourceObject>(); sourceRegisterList.add(src1); return sourceRegisterList; } @Override public WriteBackObject getDestinationRegister() { return dest; } } <file_sep>/src/functionalUnits/FpAddUnit.java package functionalUnits; import managers.ConfigManager; import enums.StageType; public class FpAddUnit extends FPFunctionalUnit { private static volatile FpAddUnit instance; public static FpAddUnit getInstance() { if (null == instance) synchronized (FpAddUnit.class) { if (null == instance) instance = new FpAddUnit(); } return instance; } private FpAddUnit() { super(); isPipelined = ConfigManager.instance.FPAdderPipelined; clockCyclesRequired = ConfigManager.instance.FPAdderLatency; pipelineSize = isPipelined ? ConfigManager.instance.FPAdderLatency : 1; stageId = StageType.EXSTAGE; createPipelineQueue(pipelineSize); } } <file_sep>/src/functionalUnits/DecodeUnit.java package functionalUnits; import java.util.List; import managers.ProgramManager; import registers.RegisterManager; import stages.ProcessorParams; import stages.ExStage; import stages.FetchStage; import utility.Display; import validInstructions.BEQ; import validInstructions.BNE; import validInstructions.CB; import validInstructions.DI; import validInstructions.HLT; import validInstructions.J; import validInstructions.NOOP; import validInstructions.SourceObject; import validInstructions.WriteBackObject; import enums.FunctionalUnitType; import enums.StageType; public class DecodeUnit extends FunctionalUnit { private static volatile DecodeUnit instance; public static DecodeUnit getInstance() { if (null == instance) synchronized (DecodeUnit.class) { if (null == instance) instance = new DecodeUnit(); } return instance; } private DecodeUnit() { super(); isPipelined = false; clockCyclesRequired = 1; pipelineSize = 1; stageId = StageType.IDSTAGE; createPipelineQueue(pipelineSize); } @Override public int getClockCyclesRequiredForNonPipeLinedUnit() { return clockCyclesRequired; } @Override public void executeUnit() throws Exception { // Called by the decode stage validateQueueSize(); DI inst = peekFirst(); if (inst instanceof NOOP) return; System.out.println(ProcessorParams.CC + " Decode " + inst.toString()); boolean hazards = processHazards(inst); if (!hazards) executeDecode(inst); validateQueueSize(); } private void executeDecode(DI inst) throws Exception { updateExitClockCycle(inst); Display.instance.queueInstructionForDisplay(inst); // read source registers List<SourceObject> sources = inst.getSourceRegister(); if (sources != null) { for (SourceObject register : sources) { register.setSource(RegisterManager.instance .getRegisterValue(register.getSourceLabel())); } } // lock destination register WriteBackObject destReg = inst.getDestinationRegister(); if (destReg != null) RegisterManager.instance.setRegisterBusy(destReg .getDestinationLabel()); // process J instruction if (inst instanceof J) { // update PC to label address ProcessorParams.PC = ProgramManager.instance .getInstructionAddreessForLabel(((J) inst) .getDestinationLabel()); FetchStage.getInstance().flushStage(); } // process BNE,BEQ instruction else if (inst instanceof CB) { if (inst instanceof BEQ) { if (((CB) inst).compareRegisters()) { // update PC ProcessorParams.PC = ProgramManager.instance .getInstructionAddreessForLabel(((BEQ) inst) .getDestinationLabel()); // Flush fetch stage FetchStage.getInstance().flushStage(); } } else if (inst instanceof BNE) { if (!((CB) inst).compareRegisters()) { // update PC ProcessorParams.PC = ProgramManager.instance .getInstructionAddreessForLabel(((BNE) inst) .getDestinationLabel()); // Flush fetch stage FetchStage.getInstance().flushStage(); } } } // process HLT instruction else if (inst instanceof HLT) { Display.instance.setHALT(true); } else { if (!ExStage.getInstance().checkIfFree(inst)) throw new Exception( "DecodeUnit: failed in exstage.checkIfFree after resolving struct hazard " + inst.toString()); ExStage.getInstance().acceptInstruction(inst); } rotatePipe(); } private boolean processStruct(DI inst) throws Exception { // Check for possible STRUCT hazards FunctionalUnitType type = inst.functionalUnitType; if (!type.equals(FunctionalUnitType.UNKNOWN)) { if (!(ExStage.getInstance().checkIfFree(inst))) { inst.STRUCT = true; return true; } } return false; } private boolean processRAW(DI inst) throws Exception { // Check for possible RAW hazards List<SourceObject> sources = inst.getSourceRegister(); if (sources != null) { for (SourceObject register : sources) { if (!RegisterManager.instance.isRegisterFree(register .getSourceLabel())) { inst.RAW = true; return true; } } } return false; } private boolean processWAW(DI inst) throws Exception { WriteBackObject dest = inst.getDestinationRegister(); if (dest != null) { if (!RegisterManager.instance.isRegisterFree(dest .getDestinationLabel())) { inst.WAW = true; return true; } } return false; } private boolean processWAR(DI inst) { return false; } private boolean processHazards(DI inst) throws Exception { return (processRAW(inst) || processWAR(inst) || processWAW(inst) || processStruct(inst)); } } <file_sep>/src/enums/StageType.java package enums; public enum StageType { IFSTAGE(0), IDSTAGE(1), EXSTAGE(2), WBSTAGE(3); private int id; private StageType(int val) { this.id = val; } public int getId() { return id; } } <file_sep>/src/utility/Utility.java package utility; public class Utility { /** * This function is used to compute a X^2 when required * @param x * @return */ public static boolean xraisedTo2(int x) { return (x > 0) && (x & (x - 1)) == 0; } }
b80019c11e3950c8050ecadf5cf5b9d7935d7131
[ "Java" ]
21
Java
UmarNazaket/MIPS
fc0b675851be3fac2fb7dbcaa6d44c03c1df6dd5
1d33ee6eaf280c851e199ada15ad8aae9312523d
refs/heads/master
<repo_name>HumanbiOS/HumanBios-WebSocket<file_sep>/deploy.sh docker build -t humanbios-websocket . && docker-compose up -d <file_sep>/server.py from sanic.websocket import WebSocketProtocol from sanic_cors import CORS, cross_origin from sanic.response import json from asyncio import sleep from sanic import Sanic import ujson as js import aiohttp import asyncio import logging import dotenv import queue import time import uuid import sys import os # load bot token from .env env_path = '.env' dotenv.load_dotenv(env_path) # Security tokens SERVER_TOKEN = os.getenv("SERVER_TOKEN") # Sever url SERVER_URL = os.getenv("SERVER_URL") # Webhook WEBHOOK = os.getenv("WEBHOOK") # Check if loaded all values correctly if any(x is None for x in (SERVER_TOKEN, SERVER_URL, WEBHOOK)): raise ValueError( "You need to fill all variables\n" \ f" SERVER_TOKEN: {SERVER_TOKEN}\n" \ f" SERVER_URL: {SERVER_URL}\n" \ f" WEBHOOK: {WEBHOOK}" ) app = Sanic("HumanBios-Web") CORS(app) cache = dict() H = {'content-type': 'application/json'} # global variables that will be filled in setup() INSTANCE_TOKEN = None INSTANCE_NAME = None # default name to use when message is from the service DEFAULT_NAME = "HumanBios" # max size of the cached history (page "reload-consistent" messages) # TODO: use REDIS to make instance's cache "reload-consistent" MAXSIZE = 15 # websocket to recieve events from client @app.websocket('/api/messages') async def serve_messages(request, ws): # [DEBUG] # logging.info(request.cookies) # get session from cookies session = request.cookies.get('humanbios-session') # If no session cookies -> done wrong #if not session: # return json({ # "event": "error", # "text": "No cookies found, please make sure to set 'humanbios-session'\n" \ # "Or if you are making cross-origin request, you have to include " \ # "it in the 'start' event" # }) # Recieve start event payload = await ws.recv() payload = js.loads(payload) if payload.get("event") == "start": if not session: session = payload.get("session") # if still no session -> return error if not session: return json({ "event": "error", "code": "wrong-code", "text": "No cookies found, please make sure to set 'humanbios-session'\n" \ "Or if you are making cross-origin request, you have to include " \ "session in the 'start' event" }) # set websocket to according session cache[session]["socket"] = ws # get name from cookies # name = request.cookies.get('humanbios-name') name = "You" # get queue of the cache q = cache[session]["history"] # empty history if not q: # send `/start` command to trigger conversation payload = { "user": { #"first_name": name, "first_name": f"WebUser[{session}]", "user_id": session }, "chat": { "chat_id": session }, "service_in": "webchat", "security_token": INSTANCE_TOKEN, "via_instance": INSTANCE_NAME, "has_message": True, "message": { "text": "/start" } } # [DEBUG] logging.info(f"Starting conv of the user[{session}]") # send data to the server async with aiohttp.ClientSession() as client: await client.post(f"{SERVER_URL}/api/process_message", json=payload, headers=H) # has cached history else: # [DEBUG] logging.info(f"Loading cache history[{len(q)} items] for user[{session}]..") # for each message in the history (from oldest to newest) for index, each_message in enumerate(q): # if not the newest message -> force remove buttons if index < len(q) - 1: each_message['buttons'] = None # configure event so client will know what to do with it each_message['event'] = "new_message" # send dumped json via socket await ws.send(js.dumps(each_message)) else: return json({ "event": "error", "code": "wrong-event", "text": "First session , please make sure to set 'humanbios-session'\n" \ "Or if you are making cross-origin request, you have to include " \ "it in the 'start' event" }) # set websocket to according session cache[session]["socket"] = ws # get name from cookies # name = request.cookies.get('humanbios-name') name = "You" # get queue of the cache q = cache[session]["history"] while True: # recieve new events payload = await ws.recv() # [DEBUG] logging.info(payload) # parse to json payload = js.loads(payload) # depending on the event type -> handle message if payload.get("event") == "new_message": # remove `event` key to reuse this object del payload['event'] # fill requirements according to the server SCHEMA payload.update({ "user": { #"first_name": name, "first_name": f"WebUser[{session}]", "user_id": session }, "chat": { "chat_id": session }, "service_in": "webchat", "security_token": INSTANCE_TOKEN, "via_instance": INSTANCE_NAME, "has_message": True }) # save message to the history # schema: # # TYPES: # TEXT: str # URL: str # # SCHEMA: # user, message, buttons, has_file, file # | | | | | # dict dict list|None bool list|None # | | | | # "first_name":TEXT "text":TEXT dict dict # | | # "text":TEXT "payload":URL q.append({ "user": { "first_name": "You" }, "message": { "text": payload['message']['text'] }, "buttons": None, "has_file": False, "file": None }) # if History is longer than MAXSIZE -> pop oldest if len(q) > MAXSIZE: q.pop(0) # send message to the server async with aiohttp.ClientSession() as client: await client.post(f"{SERVER_URL}/api/process_message", json=payload, headers=H) else: return json({ "event": "error", "code": "unsupported-event", "text": f"One of the following events was expected: new_message. Recieved {payload['event']} instead." }) @app.route('/api/webhook/out', methods=['POST']) async def webhook_from_server(request): data = request.json # [DEBUG] # logging.info(f"Server response: {data}") # modify data for the client # set event data['event'] = "new_message" # if user is talking to the bot and not other user -> set default name data['user']['first_name'] = data['user']['first_name'] if data['user']['user_id'] != data['chat']['chat_id'] else DEFAULT_NAME # save message to the history # get queue for this user q = cache[data['chat']['chat_id']]['history'] # append object according to the schema q.append({ "user": { "first_name": data['user']['first_name'] }, "message": { "text": data['message']['text'] }, "buttons": data['buttons'], "has_file": data['has_file'], "file": data['file'] }) # if history is too long -> pop oldest message if len(q) > MAXSIZE: q.pop(0) # send data via corresponding websocket to the user await cache[data['chat']['chat_id']]['socket'].send(js.dumps(data)) # respond to the server according to info/debug style schema return json({"status": 200, "timestamp": time.monotonic()}) @app.route('/api/get_session', methods=['GET', 'OPTIONS']) async def serve_session(request): # get session id from the cookies session = request.cookies.get('humanbios-session') # if new user OR session is not stored -> new chat if session is None or session not in cache: # create unique session session = str(uuid.uuid4()) # user list instead of queue.Queue so we can actually iterate over it cache[session] = { "history": list() } # status 200 + authorisation confirmed (new session created) status = 201 else: # status 200 + no actions taken (existing session served) status = 204 # respond with status and relevant session resp = json({"status": status, "session": session}) # @Important: doesn't work with cross origin requests # @Important: front-end app has to create cookies by itself # set client cookies session resp.cookies['humanbios-session'] = session return resp async def setup(): global INSTANCE_TOKEN, INSTANCE_NAME data = { "security_token": SERVER_TOKEN, "url": f"{WEBHOOK}/api/webhook/out" } async with aiohttp.ClientSession() as session: async with session.post(f"{SERVER_URL}/api/setup", json=data) as response: result = await response.json() # [INFO] logging.info(result) if result['status'] == 200: INSTANCE_TOKEN = result['token'] INSTANCE_NAME = result['name'] if __name__ == "__main__": if not os.path.exists("log"): os.mkdir("log") # Logging formatter = '%(asctime)s - %(filename)s - %(levelname)s - %(message)s' date_format = '%d-%b-%y %H:%M:%S' logging.basicConfig( format=formatter, datefmt=date_format, level=logging.INFO ) logging.basicConfig( filename=os.path.join("log", "logging.log"), filemode="a+", format=formatter, datefmt=date_format, level=logging.INFO ) asyncio.run(setup()) app.run(host="0.0.0.0", port=8080, protocol=WebSocketProtocol) <file_sep>/requirements.txt sanic sanic-cors aiohttp python-dotenv==0.13.0 <file_sep>/README.md ## Set up/Deployment ### 1. Prepare `.env` file ``` cp .env.sample .env ``` paste server token there ### 2. Make sure caddy is configured your Caddyfile must contain **important**: "example.com" means your domain/url ``` example.com { handle /api/* { reverse_proxy humanbios-websocket:8080 } } ``` don't forget to run `docker-compose restart` in the **caddy's** folder ### 3. Deploy docker ``` ./deploy.sh ``` ##### Done.
7c3d6b4432e8be52be8274d52b04ee68cbfa3c0c
[ "Markdown", "Python", "Text", "Shell" ]
4
Shell
HumanbiOS/HumanBios-WebSocket
479c7ad7e91f1c54de7d0d3fabc2e0c096f2a998
b15e5ecaa9467c52bf8b62c20332935db25d1d10
refs/heads/master
<repo_name>anaismoller/SNN_experiments<file_sep>/README.md BEWARE! this is not the main SuperNNova repository. Please go to: supernnova/SuperNNova <file_sep>/supernnova/training/vanilla_rnn.py import torch import torch.nn.functional as F class VanillaRNN(torch.nn.Module): def __init__(self, input_size, settings): super(VanillaRNN, self).__init__() # Params self.layer_type = settings.layer_type self.output_size = settings.nb_classes self.hidden_size = settings.hidden_dim self.num_layers = settings.num_layers self.dropout = settings.dropout self.bidirectional = settings.bidirectional self.use_cuda = settings.use_cuda self.rnn_output_option = settings.rnn_output_option bidirectional_factor = 2 if self.bidirectional is True else 1 last_input_size = ( self.hidden_size * bidirectional_factor if self.rnn_output_option == "mean" else self.hidden_size * bidirectional_factor * self.num_layers ) # Define layers self.rnn_layer = getattr(torch.nn, self.layer_type.upper())( input_size, self.hidden_size, num_layers=self.num_layers, dropout=0, # self.dropout, bidirectional=self.bidirectional, ) # self.output_dropout_layer = torch.nn.Dropout(self.dropout) self.output_class_layer = torch.nn.Linear(last_input_size, self.output_size) # regression does not use mean vs standard outputs self.output_peak_layer = torch.nn.Linear( self.hidden_size * bidirectional_factor, 1 ) def forward(self, x, mean_field_inference=False): # Reminder # out = packed output from last layer # out has dim (seq_len, batch_size, hidden_size) when unpacked # hidden = (hn, cn) for lstm (only final h from each pass and layer) # hidden = hn for GRU and RNN (only final h from each pass and layer) # hn has dim (num_layers * num_directions, batch, hidden_size) # cn has dim (num_layers * num_directions, batch, hidden_size) # assuming num_directions = 1, num_layers = 2 : # hn[-1, -1] == out[len, -1] where len is the len of the seq at batch index == -1 x, hidden = self.rnn_layer(x) # Output options # Standard: all layers, only end of pass # - take last pass in all layers (hidden) # - reshape and apply dropout # - use h20 to obtain output (h2o input: hidden_size*num_layers*bi) # Mean: last layer, mean on sequence # - take packed output from last layer (out) that contains all time steps for the last layer # - find where padding was done and create a mask for those values, apply this mask # - take a mean for the whole sequence (time_steps) # - use h2o to obtain output (beware! it is only one layer deep since it is the last one only) # Classification if self.rnn_output_option == "standard": # Special case for lstm where hidden = (h, c) if self.layer_type == "lstm": hn = hidden[0] else: hn = hidden # hn is (num_layers * num_directions, batch, hidden_size) hn = hn.permute(1, 2, 0).contiguous() # hn now is (batch, hidden size, num_layers * num_directions) batch_size = hn.shape[0] x_class = hn.view(batch_size, -1) # x_class is (batch, hidden size * num_layers * num_directions) if self.rnn_output_option == "mean": if isinstance(x, torch.nn.utils.rnn.PackedSequence): x_class, lens = torch.nn.utils.rnn.pad_packed_sequence(x) # x_class is (seq_len, batch, hidden size * num_directions) # take mean over seq_len x_class = x_class.sum(0) / lens.unsqueeze(-1).float().to(x_class.device) # x_class is (batch, hidden_size * num_directions) else: x_class = x.mean(0) # Peak prediction # for each time step, we predict a peak light distance # it doesnt make sense to do in this case mean pooling or just taking the last hidden state if isinstance(x, torch.nn.utils.rnn.PackedSequence): x_unpacked, lens = torch.nn.utils.rnn.pad_packed_sequence(x) outpeak = self.output_peak_layer(x_unpacked) # now I need to mask padded values mask = torch.arange(lens.max().item()).view(1, -1).to(outpeak.device) lens = lens.view(-1, 1).float().to(outpeak.device) # lens == (B, 1) # torch.arange == (1, max_len) # mask (B, max_len) # if array 1D = 0 1 2 3 # max_len = 4 maskpeak = (mask.float() < lens).float() # reshape mask to match outpeak maskpeak = maskpeak.transpose(1, 0).contiguous() else: outpeak = self.output_peak_layer(x) maskpeak = None # apply dropout # x_class = self.output_dropout_layer(x_class) # Final projection layer outclass = self.output_class_layer(x_class) return outclass, outpeak, maskpeak <file_sep>/supernnova/utils/training_utils.py import torch.nn as nn import torch from . import logging_utils as lu from ..training import bayesian_rnn from ..training import variational_rnn from ..training import vanilla_rnn import os import h5py import json import pickle import numpy as np from tqdm import tqdm from pathlib import Path from sklearn import metrics import matplotlib.pyplot as plt plt.switch_backend("agg") def normalize_arr(arr, settings, normalize_peak=False): """Normalize array before input to RNN - Log transform - Mean and std dev normalization Args: arr (np.array) array to normalize settings (ExperimentSettings): controls experiment hyperparameters Returns: (np.array) the normalized array """ if settings.norm == "none": return arr if normalize_peak: arr_min = settings.arr_norm[-1, 0] arr_mean = settings.arr_norm[-1, 1] arr_std = settings.arr_norm[-1, 2] arr_to_norm = arr if settings.peak_norm == "basic": arr_normed = (arr_to_norm - arr_mean) / arr_std elif settings.peak_norm == "log": arr_to_norm = np.clip(arr_to_norm, arr_min, np.inf) arr_normed = np.log(arr_to_norm - arr_min + 1e-5) arr_normed = (arr_normed - arr_mean) / arr_std arr = arr_normed else: arr_min = settings.arr_norm[:-1, 0] arr_mean = settings.arr_norm[:-1, 1] arr_std = settings.arr_norm[:-1, 2] arr_to_norm = arr[:, settings.idx_features_to_normalize] # clipping arr_to_norm = np.clip(arr_to_norm, arr_min, np.inf) arr_normed = np.log(arr_to_norm - arr_min + 1e-5) arr_normed = (arr_normed - arr_mean) / arr_std arr[:, settings.idx_features_to_normalize] = arr_normed return arr def unnormalize_arr(arr, settings, normalize_peak=False): """UnNormalize array Args: arr (np.array) array to normalize settings (ExperimentSettings): controls experiment hyperparameters Returns: (np.array) the normalized array """ if settings.norm == "none": return arr if normalize_peak: arr_min = settings.arr_norm[-1, 0] arr_mean = settings.arr_norm[-1, 1] arr_std = settings.arr_norm[-1, 2] arr_to_unnorm = arr if settings.peak_norm == "basic": arr_unnormed = (arr_to_unnorm * arr_std) + arr_mean elif settings.peak_norm == "log": arr_to_unnorm = arr_to_unnorm * arr_std + arr_mean arr_unnormed = np.exp(arr_to_unnorm) + arr_min - 1e-5 else: arr_unnormed = arr_to_unnorm arr = arr_unnormed else: arr_min = settings.arr_norm[:-1, 0] arr_mean = settings.arr_norm[:-1, 1] arr_std = settings.arr_norm[:-1, 2] arr_to_unnorm = arr[:, settings.idx_features_to_normalize] arr_to_unnorm = arr_to_unnorm * arr_std + arr_mean arr_unnormed = np.exp(arr_to_unnorm) + arr_min - 1e-5 arr[:, settings.idx_features_to_normalize] = arr_unnormed return arr def fill_data_list( idxs, arr_data, arr_target, arr_SNID, settings, n_features, desc, test=False ): """Utility to create a list of data tuples used as inputs to RNN model The ``settings`` object specifies which feature are selected Args: idxs (np.array or list): idx of data point to select arr_data (np.array): features arr_target (np.array): target arr_SNID (np.array): lightcurve unique ID settings (ExperimentSettings): controls experiment hyperparameters n_features (int): total number of features in arr_data desc (str): message to display while loading test (bool): If True: add more data to the list, as it is required at test time. Default: ``False`` Returns: (list) the list of data tuples """ list_data = [] if desc == "": iterator = idxs else: iterator = tqdm(idxs, desc=desc, ncols=100) for i in iterator: X_all = arr_data[i].reshape(-1, n_features) # classification target target_class = int(arr_target[0][i]) # new target with delta peak for each time step arr_time = np.cumsum(X_all[:, settings.idx_delta_time]) peak_mjd = arr_target[1][i] target_lc_peak = peak_mjd - arr_time # normalize peak if settings.peak_norm: target_lc_peak = normalize_arr( target_lc_peak, settings, normalize_peak=True ) target = (target_class, target_lc_peak) lc = int(arr_SNID[i]) # Keep an unnormalized copy of the data (for test and display) X_ori = X_all.copy()[:, settings.idx_features] # check if normalization converges # using clipping in case of min<model_min X_clip = X_all.copy() X_clip = np.clip( X_clip[:, settings.idx_features_to_normalize], settings.arr_norm[:-1, 0], np.inf, ) X_all[:, settings.idx_features_to_normalize] = X_clip X_tmp = unnormalize_arr(normalize_arr(X_all.copy(), settings), settings) assert np.all(np.all(np.isclose(np.ravel(X_all), np.ravel(X_tmp), atol=1e-1))) # Normalize features that need to be normalized X_normed = X_all.copy() X_normed_tmp = normalize_arr(X_normed, settings) # Select features as specified by the settings X_normed = X_normed_tmp[:, settings.idx_features] if test is True: list_data.append((X_normed, target, lc, X_all, X_ori)) else: list_data.append((X_normed, target, lc)) return list_data def load_HDF5(settings, test=False): """Load data from HDF5 Args: settings (ExperimentSettings): controls experiment hyperparameters test (bool): If True: load data for test. Default: ``False`` Returns: list_data_test (list) test data tuples if test is True or Tuple containing - list_data_train (list): training data tuples - list_data_val (list): validation data tuples """ file_name = f"{settings.processed_dir}/database.h5" lu.print_green(f"Loading {file_name}") with h5py.File(file_name, "r") as hf: list_data_train = [] list_data_val = [] config_name = f"{settings.source_data}_{settings.nb_classes}classes" dataset_split_key = f"dataset_{config_name}" target_key = f"target_{settings.nb_classes}classes" if any([settings.train_plasticc, settings.predict_plasticc]): target_key = "target" dataset_split_key = "dataset" if test: # ridiculous failsafe in case we have different classes in dataset/model # we will always have 2 classes try: idxs_test = np.where(hf[dataset_split_key][:] == 2)[0] except Exception: idxs_test = np.where(hf["dataset_photometry_2classes"][:] != 100)[0] else: idxs_train = np.where(hf[dataset_split_key][:] == 0)[0] idxs_val = np.where(hf[dataset_split_key][:] == 1)[0] idxs_test = np.where(hf[dataset_split_key][:] == 2)[0] # Shuffle for good measure np.random.shuffle(idxs_train) np.random.shuffle(idxs_val) np.random.shuffle(idxs_test) idxs_train = idxs_train[: int(settings.data_fraction * len(idxs_train))] n_features = hf["data"].attrs["n_features"] training_features = " ".join(hf["features"][:][settings.idx_features]) lu.print_green("Features used", training_features) arr_data = hf["data"][:] if test: # failsafe in case we have different classes in dataset/model # we will always have 2 classes try: arr_target = hf[target_key][:], hf["PEAKMJDNORM"][:] except Exception: arr_target = hf["target_2classes"][:], hf["PEAKMJDNORM"][:] else: arr_target = hf[target_key][:], hf["PEAKMJDNORM"][:] arr_SNID = hf["SNID"][:] if test is True: return fill_data_list( idxs_test, arr_data, arr_target, arr_SNID, settings, n_features, "Loading Test Set", test, ) else: list_data_train = fill_data_list( idxs_train, arr_data, arr_target, arr_SNID, settings, n_features, "Loading Training Set", ) list_data_val = fill_data_list( idxs_val, arr_data, arr_target, arr_SNID, settings, n_features, "Loading Validation Set", ) return list_data_train, list_data_val def get_model(settings, input_size): """Create RNN model Args: settings (ExperimentSettings): controls experiment hyperparameters input_size (int): dimension of the input data Returns: (torch.nn Model) pytorch model """ if settings.model == "vanilla": rnn = vanilla_rnn.VanillaRNN elif settings.model == "variational": rnn = variational_rnn.VariationalRNN elif settings.model == "bayesian": rnn = bayesian_rnn.BayesianRNN rnn = rnn(input_size, settings) print(rnn) return rnn def get_optimizer(settings, model): """Create gradient descent optimizer Args: settings (ExperimentSettings): controls experiment hyperparameters model (torch.nn Model): the pytorch model Returns: (torch.optim) the gradient descent optimizer """ optimizer = torch.optim.Adam( model.parameters(), lr=settings.learning_rate, weight_decay=settings.weight_decay, ) return optimizer def get_data_batch(list_data, idxs, settings, max_lengths=None, OOD=None): """Create a batch in a deterministic way Args: list_data: (list) tuples of (X, target, lightcurve_ID) idxs: (array / list) indices of batch element in list_data settings (ExperimentSettings): controls experiment hyperparameters max_length (int): Maximum light curve length to be used Default: ``None``. OOD (str): Whether to modify data to create out of distribution data to be used Default: ``None``. Returns: Tuple containing - packed_tensor (torch PackedSequence): the packed features - X_tensor (torch Tensor): the features - target_tensor (torch Tensor): the target """ list_len = [] list_batch = [] for pos, i in enumerate(idxs): X, target, *_ = list_data[i] # X is (L, D) if OOD is not None: # Make a copy to be sure we do not alter the original data X = X.copy() if OOD == "reverse": # For OOD test, reverse the sequence X = np.ascontiguousarray(X[::-1]) elif OOD == "shuffle": # For OOD test, shuffle X p = np.random.permutation(X.shape[0]) X = X[p] elif OOD == "sin": # For OOD test, set sine values to fluxes arr_flux = X[:, settings.idx_flux] arr_fluxerr = X[:, settings.idx_fluxerr] X_unnorm = unnormalize_arr(X.copy(), settings) arr_delta_time = X_unnorm[:, settings.idx_delta_time] arr_MJD = np.cumsum(arr_delta_time, axis=0) # Sine oscillations with 30 day period X[:, settings.idx_flux] = np.sin(arr_MJD * 2 * np.pi / 30) * np.max( arr_flux, axis=0, keepdims=True ) X[:, settings.idx_fluxerr] = np.random.uniform( arr_fluxerr.min(), arr_fluxerr.max(), size=arr_fluxerr.shape ) elif OOD == "random": # For OOD test, set random fluxes and errors arr_flux = X[:, settings.idx_flux] arr_fluxerr = X[:, settings.idx_fluxerr] X[:, settings.idx_flux] = np.random.uniform( arr_flux.min(), arr_flux.max(), size=arr_flux.shape ) X[:, settings.idx_fluxerr] = np.random.uniform( arr_fluxerr.min(), arr_fluxerr.max(), size=arr_fluxerr.shape ) if max_lengths is not None: assert settings.random_length is False assert settings.random_redshift is False X = X[: max_lengths[pos]] target = (target[0], target[1][: max_lengths[pos]]) if settings.random_length: # random length of lc random_length = np.random.randint(1, X.shape[0] + 1) X = X[:random_length] target = (target[0], target[1][:random_length]) if settings.random_start: # random start of light-curve to avoid biasing the peak prediction # at least 3 epochs left if X.shape[0] > 3: random_start = np.random.randint(0, X.shape[0] - 3) X = X[random_start:] target = (target[0], target[1][random_start:]) if settings.redshift == "zspe" and settings.random_redshift: if np.random.binomial(1, 0.5) == 0: X[:, settings.idx_specz] = -1 input_dim = X.shape[1] list_len.append(X.shape[0]) list_batch.append((X, target)) # Get indices to sort the batch by sequence size (needed to use packed sequences in pytorch) # Sequences should be arranged in decreasing length idx_sort = np.argsort(list_len)[::-1] idxs_rev_sort = np.argsort(idx_sort) # these indices revert the sort max_len = list_len[idx_sort[0]] X_tensor = torch.zeros((max_len, len(idxs), input_dim)) target_peak_tensor = torch.zeros((max_len, len(idxs), 1)) list_target_class = [] lengths = [] # Assign values for the tensor for i, idx in enumerate(idx_sort): X, target = list_batch[idx] try: X_tensor[: X.shape[0], i, :] = torch.FloatTensor(X) except Exception: X_tensor[: X.shape[0], i, :] = torch.FloatTensor( torch.from_numpy(np.flip(X, axis=0).copy()) ) # processing targets independently target_peak_tensor[: X.shape[0], i, 0] = torch.FloatTensor(target[1]) list_target_class.append(target[0]) lengths.append(list_len[idx]) # Move data to GPU if required if settings.use_cuda: X_tensor = X_tensor.cuda() target_tensor_peak = target_peak_tensor.cuda() target_tensor_class = torch.LongTensor(list_target_class).cuda() else: X_tensor = X_tensor target_tensor_class = torch.LongTensor(list_target_class) target_tensor_peak = target_peak_tensor # target tuple target_tensor = target_tensor_class, target_tensor_peak # Create a packed sequence packed_tensor = nn.utils.rnn.pack_padded_sequence(X_tensor, lengths) return packed_tensor, X_tensor, target_tensor, idxs_rev_sort def train_step( settings, rnn, packed_tensor, target_tuple, criterion_class, optimizer, batch_size, num_batches, ): """Full training step : Forward and Backward pass Args: settings (ExperimentSettings): controls experiment hyperparameters rnn (torch.nn Model): pytorch model to train packed_tensor (torch PackedSequence): input tensor in packed form target_tensor (torch Tensor): target tensor criterion_class (torch loss function): loss function to optimize optimizer (torch optim): the gradient descent optimizer batch_size (int): batch size num_batches (int): number of minibatches to scale KL cost in Bayesian """ # Set NN to train mode (deals with dropout and batchnorm) rnn.train() target_class, target_peak = target_tuple # Zero out the gradients optimizer.zero_grad() # Forward pass outclass, outpeak, mask = rnn(packed_tensor) lossclass = criterion_class(outclass.squeeze(), target_class) # reshape the outputs to (L,B) outpeak = outpeak.squeeze(-1) target_peak = target_peak.squeeze(-1) # TEMPORARY # # tmp mask only using last element # tmp = torch.zeros(mask.shape) # # find length of last element in mask # max_lengths = (mask==1).sum(dim=1) - 1 # for i in range(tmp.size(0)): # tmp[i][int(max_lengths[i])]=1 # mask = tmp if settings.use_cuda: outpeak = outpeak.cuda() target_peak = target_peak.cuda() mask = mask.cuda() # compute masked MSE losspeak = ( (outpeak.view(-1) - target_peak.view(-1)).pow(2) * mask.view(-1) ).sum() / mask.view(-1).sum() # Special case for BayesianRNN, need to use KL loss if isinstance(rnn, bayesian_rnn.BayesianRNN): lossclass = lossclass + rnn.kl / (num_batches * batch_size) else: # TO DO, this I think can be deprecated lossclass = criterion_class(outclass.squeeze(), target_class) # loss = lossclass + losspeak loss = losspeak # Backward pass loss.backward() optimizer.step() return loss def eval_step(rnn, packed_tensor): """Eval step: Forward pass only Args: rnn (torch.nn Model): pytorch model to train packed_tensor (torch PackedSequence): input tensor in packed form Returns: output (torch Tensor): output of rnn """ # Set NN to eval mode (deals with dropout and batchnorm) rnn.eval() # Forward pass output = rnn(packed_tensor) return output def plot_loss(d_train, d_val, epoch, settings): """Plot loss curves Plot training and validation logloss Args: d_train (dict of arrays): training log losses d_val (dict of arrays): validation log losses epoch (int): current epoch settings (ExperimentSettings): custom class to hold hyperparameters """ for key in d_train.keys(): plt.figure() plt.plot(d_train["epoch"], d_train[key], label="Train %s" % key.title()) plt.plot(d_val["epoch"], d_val[key], label="Val %s" % key.title()) plt.legend(loc="best", fontsize=18) plt.xlabel("Step", fontsize=22) plt.tight_layout() plt.savefig( Path(settings.models_dir) / f"{settings.pytorch_model_name}" / f"train_and_val_{key}_{settings.pytorch_model_name}.png" ) plt.close() plt.clf() def get_evaluation_metrics(settings, list_data, model, sample_size=None): """Compute evaluation metrics on a list of data points Args: settings (ExperimentSettings): custom class to hold hyperparameters list_data (list): contains data to evaluate model (torch.nn Model): pytorch model sample_size (int): subset of the data to use for validation. Default: ``None`` Returns: d_losses (dict) maps metrics to their computed value """ # Validate list_pred_class = [] list_pred_peak = [] list_target_class = [] list_target_peak = [] list_target_mask = [] list_kl = [] num_elem = len(list_data) num_batches = num_elem // min(num_elem // 2, settings.batch_size) list_batches = np.array_split(np.arange(num_elem), num_batches) # If required, pick a subset of list batches at random if sample_size: batch_idxs = np.random.permutation(len(list_batches)) num_batches = sample_size // min(sample_size // 2, settings.batch_size) batch_idxs = batch_idxs[:num_batches] list_batches = [list_batches[batch_idx] for batch_idx in batch_idxs] for batch_idxs in list_batches: random_length = settings.random_length settings.random_length = False packed_tensor, X_tensor, target_tensor, idxs_rev_sort = get_data_batch( list_data, batch_idxs, settings ) settings.random_length = random_length outclass, outpeak, peak_mask = eval_step(model, packed_tensor) losspeak = ( (outpeak.view(-1) - target_tensor[1].view(-1)).pow(2) * peak_mask.view(-1) ).sum() / peak_mask.view(-1).sum() if "bayesian" in settings.pytorch_model_name: list_kl.append(model.kl.detach().cpu().item()) # fetch targets target_tensor_class, target_tensor_peak = target_tensor # Classification # Apply softmax pred_proba = nn.functional.softmax(outclass, dim=1) # Convert to numpy array pred_proba_numpy = pred_proba.data.cpu().numpy() target_class_numpy = target_tensor_class.data.cpu().numpy() # Revert sort pred_proba_numpy = pred_proba_numpy[idxs_rev_sort] target_class_numpy = target_class_numpy[idxs_rev_sort] # save for later list_pred_class.append(pred_proba_numpy) list_target_class.append(target_class_numpy) ### # Regression pred_peak_tensor = outpeak # reshape (B,L) pred_peak_numpy = pred_peak_tensor.view(-1).data.cpu().numpy() target_peak_numpy = target_tensor_peak.view(-1).data.cpu().numpy() peak_mask_numpy = peak_mask.view(-1).data.cpu().numpy() losspeak_numpy = ( np.power((pred_peak_numpy - target_peak_numpy), 2) * peak_mask_numpy ).sum() / peak_mask_numpy.sum() np.testing.assert_almost_equal( losspeak_numpy, float(losspeak.item()), decimal=1 ) # save for later list_pred_peak.append(pred_peak_numpy) list_target_peak.append(target_peak_numpy) list_target_mask.append(peak_mask_numpy) targets_class = np.concatenate(list_target_class, axis=0) preds_class = np.concatenate(list_pred_class, axis=0) targets_peak = np.concatenate(list_target_peak, axis=0) targets_peak_mask = np.concatenate(list_target_mask, axis=0) preds_peak = np.concatenate(list_pred_peak, axis=0) # Check outputs size assert len(targets_class.shape) == 1 assert len(preds_class.shape) == 2 assert len(targets_peak.shape) == len(targets_peak_mask.shape) assert len(targets_peak.shape) == len(preds_peak.shape) # classification metrics if settings.nb_classes == 2: auc = metrics.roc_auc_score(targets_class, preds_class[:, 1]) else: # Can't compute AUC for more than 2 classes auc = None acc = metrics.accuracy_score(targets_class, np.argmax(preds_class, 1)) targets_class_2D = np.zeros((targets_class.shape[0], settings.nb_classes)) for i in range(targets_class.shape[0]): targets_class_2D[i, targets_class[i]] = 1 log_loss = metrics.log_loss(targets_class_2D, preds_class) # regression metrics MSE = ( np.power((preds_peak - targets_peak) * targets_peak_mask, 2).sum() / targets_peak_mask.sum() ) d_losses = {"AUC": auc, "Acc": acc, "loss": log_loss, "reg_MSE": MSE} if len(list_kl) != 0: d_losses["KL"] = np.mean(list_kl) return d_losses def get_loss_string(d_losses_train, d_losses_val): """Obtain a loss string to display training progress Args: d_losses_train (dict): maps {metric:value} for the training data d_losses_val (dict): maps {metric:value} for the validation data Returns: loss_str (str): the loss string to display """ loss_str = "/".join(d_losses_train.keys()) loss_str += " [T]: " + "/".join( [ f"{value:.3g}" if (value is not None and key != "epoch") else "NA" for (key, value) in d_losses_train.items() ] ) loss_str += " [V]: " + "/".join( [ f"{value:.3g}" if (value is not None and key != "epoch") else "NA" for (key, value) in d_losses_val.items() ] ) return loss_str def save_training_results(settings, d_monitor, training_time): """Obtain a loss string to display training progress Args: settings (ExperimentSettings): controls experiment hyperparameters d_monitor (dict): maps {metric:value} training_time (float): amount of time training took Returns: loss_str (str): the loss string to display """ d_results = {"training_time": training_time} for key in ["AUC", "Acc"]: if key == "AUC" and settings.nb_classes > 2: d_results[key] = -1 else: d_results[key] = max(d_monitor[key]) d_results["loss"] = min(d_monitor["loss"]) try: with open(Path(settings.rnn_dir) / "training_log.json", "r") as f: d_out = json.load(f) except Exception: d_out = {} with open(Path(settings.rnn_dir) / "training_log.json", "w") as f: d_out.update({settings.pytorch_model_name: d_results}) json.dump(d_out, f) ####################### # RandomForest Utils ####################### def save_randomforest_model(settings, clf): """Save RandomForest model Args: settings (ExperimentSettings): controls experiment hyperparameters clf (RandomForestClassifier): RandomForest model """ filename = f"{settings.rf_dir}/{settings.randomforest_model_name}.pickle" with open(filename, "wb") as f: pickle.dump(clf, f) lu.print_green("Saved model") def load_randomforest_model(settings, model_file=None): """Load RandomForest model Args: settings (ExperimentSettings): controls experiment hyperparameters model_file (str): path to saved randomforest model. Default: ``None`` Returns: (RandomForestClassifier) RandomForest model """ if model_file is None: model_file = f"{settings.rf_dir}/{settings.randomforest_model_name}.pickle" assert os.path.isfile(model_file) with open(model_file, "rb") as f: clf = pickle.load(f) lu.print_green("Loaded model") return clf def train_and_evaluate_randomforest_model(clf, X_train, y_train, X_val, y_val): """Train a RandomForestClassifier and evaluate AUC, precision, accuracy on a validation set Args: clf (RandomForestClassifier): RandomForest model to fit and evaluate X_train (np.array): the training features y_train (np.array): the training target X_val (np.array): the validation features y_val (np.array): the validation target """ lu.print_green("Fitting RandomForest...") clf = clf.fit(X_train, y_train) lu.print_green("Fitting complete") # Evaluate our classifier probas_ = clf.predict_proba(X_val) # Compute AUC and precision fpr, tpr, thresholds = metrics.roc_curve(y_val, probas_[:, 1]) roc_auc = metrics.auc(fpr, tpr) pscore = metrics.precision_score(y_val, clf.predict(X_val), average="binary") lu.print_green("Validation AUC", roc_auc) lu.print_green("Validation precision score", pscore) lu.print_green( "Train data accuracy", 100 * (sum(clf.predict(X_train) == y_train)) / X_train.shape[0], ) lu.print_green( "Val data accuracy", 100 * (sum(clf.predict(X_val) == y_val)) / X_val.shape[0] ) return clf class StopOnPlateau(object): """ Detect plateau on accuracy (or any metric) If chosen, will reduce learning rate of optimizer once in the Plateau .. code: python plateau_accuracy = tu.StopOnPlateau() for epoch in range(10): ... get metric ... plateau = plateau_accuracy.step(metric_value) if plateau is True: break Args: patience (int): number of epochs to wait, after which we decrease the LR if the validation loss is plateauing reduce_lr-on_plateau (bool): If True, reduce LR after loss has not improved in the last patience epochs max_learning_rate_reduction (float): max factor by which to reduce the learning rate """ def __init__( self, patience=10, reduce_lr_on_plateau=False, max_learning_rate_reduction=3 ): self.patience = patience self.best = 0.0 self.num_bad_epochs = 0 self.is_better = None self.last_epoch = -1 self.list_metric = [] self.reduce_lr_on_plateau = reduce_lr_on_plateau self.max_learning_rate_reduction = max_learning_rate_reduction self.learning_rate_reduction = 0 def step(self, metric_value, optimizer=None, epoch=None): current = metric_value if epoch is None: epoch = self.last_epoch = self.last_epoch + 1 self.last_epoch = epoch # Are we under .05 std in accuracy on the last 10 epochs self.list_metric.append(current) if len(self.list_metric) > 10: self.list_metric = self.list_metric[-10:] # are we in a plateau? # accuracy is not in percentage, so two decimal numbers is actually 4 in this notation if np.array(self.list_metric).std() < 0.0005: print("Has reached a learning plateau with", current, "\n") if optimizer is not None and self.reduce_lr_on_plateau is True: print( "Reducing learning rate by factor of ten", self.learning_rate_reduction, "\n", ) for param in optimizer.param_groups: param["lr"] = param["lr"] / 10.0 self.learning_rate_reduction += 1 if self.learning_rate_reduction == self.max_learning_rate_reduction: return True else: return True else: return False <file_sep>/run_peak_hp.py import os import json import torch import shlex import argparse import subprocess import pandas as pd from pathlib import Path from itertools import product from supernnova.paper.superNNova_plots import plot_speed_benchmark from supernnova.utils import logging_utils as lu """superNNova paper experiments """ LIST_SEED = [0, 100, 1000, 55, 30496] def run_cmd(cmd, debug, seed): """Run command Using cuda if available """ cmd += f" --seed {seed} " if torch.cuda.is_available(): cmd += " --use_cuda " if debug is True: # Run for 1 epoch only cmd += "--cyclic_phases 1 1 1 " cmd += "--nb_epoch 1 " if "num_inference_samples" not in cmd: # Make inference faster cmd = cmd + "--num_inference_samples 2 " subprocess.check_call(shlex.split(cmd)) def run_data(dump_dir, raw_dir,fits_dir, debug, seed): """Create database """ cmd = "python -W ignore run.py --data " f"--dump_dir {dump_dir} --raw_dir {raw_dir} --fits_dir {fits_dir}" run_cmd(cmd, debug, seed) def run_baseline_hp(dump_dir, debug, seed): lu.print_green(f"SEED {seed}: BASELINE HP") if seed != LIST_SEED[0]: return list_batch_size = [64, 128, 512] list_num_layers = [1, 2, 3] list_layer_type = ["gru", "lstm"] list_bidirectional = [True, False] list_rnn_output_option = ["standard", "mean"] list_random_length = [True, False] list_hidden_dim = [16, 32] list_peak_norm = [None, 'basic','log'] if debug is True: list_batch_size = list_batch_size[:1] list_hidden_dim = list_hidden_dim[:1] for ( batch_size, num_layers, layer_type, bidirectional, rnn_output_option, random_length, hidden_dim, peak_norm, ) in product( list_batch_size, list_num_layers, list_layer_type, list_bidirectional, list_rnn_output_option, list_random_length, list_hidden_dim, list_peak_norm ): cmd = ( f"python -W ignore run.py --train_rnn " f"--dump_dir {dump_dir} " f"--cyclic " f"--data_fraction 0.2 " f"--batch_size {batch_size} " f"--layer_type {layer_type} " f"--num_layers {num_layers} " f"--bidirectional {bidirectional} " f"--random_length {random_length} " f"--rnn_output_option {rnn_output_option} " f"--hidden_dim {hidden_dim} " ) if peak_norm: cmd += f"--peak_norm {peak_norm} " run_cmd(cmd, debug, seed) def run_baseline_tmp(dump_dir, debug, seed): lu.print_green(f"SEED {seed}: BASELINE HP") if seed != LIST_SEED[0]: return list_peak_norm = [None, 'basic','log'] list_random_start = [False,True] for ( peak_norm, random_start, ) in product( list_peak_norm, list_random_start, ): cmd = ( f"python -W ignore run.py --train_rnn " f"--dump_dir {dump_dir} " f"--cyclic " ) if peak_norm: cmd += f"--peak_norm {peak_norm} " if random_start: cmd += f"--random_start" run_cmd(cmd, debug, seed) if __name__ == "__main__": parser = argparse.ArgumentParser(description="SNIa classification") dir_path = os.path.dirname(os.path.realpath(__file__)) default_dump_dir = Path(dir_path).parent / "snn_peak_dump" parser.add_argument( "--dump_dir", type=str, default=default_dump_dir, help="Default path where models are dumped", ) parser.add_argument( "--raw_dir", type=str, default=default_dump_dir, help="Default path where raw data is", ) parser.add_argument( "--fits_dir", type=str, default=default_dump_dir, help="Default path where fits are", ) parser.add_argument( "--debug", action="store_true", help="Switch to debug mode: will run dummy experiments to quickly check the whole pipeline", ) parser.add_argument( "--seeds", type=int, default=LIST_SEED, nargs="+", choices=LIST_SEED, help="Seed with which to run the experiments", ) args = parser.parse_args() list_seeds = args.seeds[:2] if args.debug else args.seeds for seed in list_seeds: if seed == list_seeds[0]: ############################ # Data ############################ # run_data(args.dump_dir, args.raw_dir, args.fits_dir, args.debug, seed) ################## # Hyperparams ################## # run_baseline_hp(args.dump_dir, args.debug, seed) run_baseline_tmp(args.dump_dir, args.debug, seed)
2fb28c58bb7c70b42724a6ee2f6a3cbdf9857798
[ "Markdown", "Python" ]
4
Markdown
anaismoller/SNN_experiments
7fee24474a64c7be491ad217ff3b9f8a119606c8
182dc59e5a66bc36164742e0e3ce7d04b4210215
refs/heads/master
<repo_name>nishanths/thin-npr<file_sep>/to-thin.js // Rewrite thin.npr.org links in the footer of regular npr.org to point // to the specific thin page instead of the thin home page. (function() { const nprStoryIdRx = /\/\d{4}\/\d{2}\/\d{2}\/(\d+)\//; // TODO: make this work on "/section/.+/blah" const pathMap = { // Main sections: News, Arts, Music. "/sections/news": ["/t.php", "tid=1001"], "/sections/arts": ["/t.php", "tid=1008"], "/music": ["/t.php", "tid=1039"], // No support for Programs yet. }; var isThinLink = (a) => { return a.href == "http://thin.npr.org/" || a.href == "https://thin.npr.org/" || a.href == "http://thin.npr.org" || a.href == "https://thin.npr.org"; }; var rewrite = (a) => { var p = window.location.pathname; // Remove trailing slash if any. if (p[p.length-1] === '/') { p = p.substring(0, p.length-1); } var thin = pathMap[p]; if (thin) { // On a main section page. a.pathname = thin[0]; a.search = thin[1]; return; } var matches = p.match(nprStoryIdRx); if (matches && matches.length > 1) { // On a story page. var id = matches[1]; a.pathname = "/s.php"; var params = new URLSearchParams(); params.set("sId", id); params.set("x", 1); a.search = params.toString(); } }; var run = () => { var footer = document.querySelector("#nprfooter"); if (!footer) { console.warn("'#nprfooter' not found: npr.org page structure may have changed.") return; } var anchors = footer.querySelectorAll("a"); for (var i = 0; i < anchors.length; i++) { if (isThinLink(anchors[i])) { rewrite(anchors[i]); } } }; run(); })(); <file_sep>/README.md ## thin.npr.org ``` * Articles have smaller line-widths for easier reading. * Opens stories in expanded mode upon opening. No need to click on the "Read more..." link. * Clicking the "text-only" footer link from regular npr.org attempts to go to the corresponding thin page, instead of the thin.npr.org front page. ``` <file_sep>/expanded-link.js // Rewrite thin.npr.org story links so that they open the expanded version // as if 'Read more...' is already clicked) (function() { const storyRx = /^\/s\.php/; var anchors = document.querySelectorAll("a"); for (let elem of anchors) { if (elem.pathname.search(storyRx) == -1) { continue; } if (elem.search) { elem.search += "&x=1"; // x=1 expands articles. } else { elem.search = "x=1"; } } })();
7d2b1e05f680bc9ba198b5078915197c34dfb695
[ "JavaScript", "Markdown" ]
3
JavaScript
nishanths/thin-npr
4726cfa2cf984ea23b9f8f5fa43a07e96fd36b5a
3ed90d9fd1dd0363c49e203f7c7261f695d0c89d
refs/heads/master
<repo_name>smartrak-govhack-2016/backend<file_sep>/BicycleBackend/Routing/NeighborFinder.cs using System; using System.Collections.Generic; using System.IO; using System.Linq; using OsmSharp.Osm; using OsmSharp.Osm.Xml.Streams; namespace BicycleBackend.Routing { public interface INeighborFinder { IEnumerable<Segment> FindNeighbors(Segment segment); Segment FindNearestNeighbor(double lat, double lon); } public class NeighborFinder : INeighborFinder { public string PathToMapData => $"{Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)}\\bicyclebicycle\\hamiltonmap"; public string PathToIncidents => $"{Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)}\\bicyclebicycle\\incidents.csv"; private List<string> ThingsWeThinkAreSwell => new List<string>() { "cycleway", "cycleway:left", "bicycle", "highway", "maxspeed", "junction", "roundabout" }; private Dictionary<Point, IList<Segment>> _pointToNeighbors; private NnFinder _nnFinder; public NeighborFinder() { _pointToNeighbors = new Dictionary<Point, IList<Segment>>(); List<Segment> allSegments = new List<Segment>(); using (var fileStream = new FileInfo(PathToMapData).OpenRead()) { var source = new XmlOsmStreamSource(fileStream); var nodes = new Dictionary<long, Node>(); foreach (var thing in source.Where(x => x.Type == OsmGeoType.Node)) { var node = (Node)thing; nodes[node.Id.Value] = node; _pointToNeighbors[new Point(node)] = new List<Segment>(); } foreach (OsmGeo element in source.Where(x => x.Type == OsmGeoType.Way)) { var way = element as Way; if (way == null || !WeCareAboutThisTypeOfWay(way)) continue; Point? lastPoint = null; double weight = CalculateWeight(way); foreach (var nodeId in way.Nodes) { var point = new Point(nodes[nodeId]); if (lastPoint != null) { Segment segment = new Segment { Start = lastPoint.Value, End = point, Weight = weight }; allSegments.Add(segment); _pointToNeighbors[lastPoint.Value].Add(segment); _pointToNeighbors[point].Add(segment); } lastPoint = point; } } } _nnFinder = new NnFinder(allSegments); LoadCrashData(); } private void LoadCrashData() { foreach (var line in File.ReadAllLines(PathToIncidents)) { var latLon = line.Split(','); var segment = _nnFinder.NearestSegment(double.Parse(latLon[0]), double.Parse(latLon[1])); if(segment != null) segment.IncedentCount++; } } /// <summary> /// Returns bigger number for things you want to go down /// </summary> /// <param name="way"></param> /// <returns></returns> private double CalculateWeight(Way way) { if (way.Tags.ContainsKey("junction") && way.Tags["junction"] == "roundabout") { return 0.05; //fuck roundabouts } if (way.Tags.ContainsKey("maxspeed") && int.Parse(way.Tags["maxspeed"]) > 50) { return 0.2; //fuck high speed roads } if (way.Tags.ContainsKey("bicycle") || way.Tags.ContainsKey("cycleway") || (way.Tags.ContainsKey("highway") && way.Tags["highway"] == "cycleway")) { return 2; //fuck yeah bicycle } //eh return 1; } private bool WeCareAboutThisTypeOfWay(Way way) { return way.Tags?.ContainsOneOfKeys(ThingsWeThinkAreSwell) ?? false; } public IEnumerable<Segment> FindNeighbors(Segment segment) { return _pointToNeighbors[segment.Start].Union(_pointToNeighbors[segment.End]); } public Segment FindNearestNeighbor(double lat, double lon) { return _nnFinder.NearestSegment(lat, lon); } } public struct Point { public double Lat { get; } public double Lon { get; } public Point(Node node) { Lat = node.Latitude.Value; Lon = node.Longitude.Value; } } }<file_sep>/BicycleBackend/Global.asax.cs using System.Web.Http; namespace BicycleBackend { public class WebApiApplication : System.Web.HttpApplication { protected void Application_Start() { GlobalConfiguration.Configure(WebApiConfig.Register); Cache.DoNothing(); } } } <file_sep>/BicycleBackend/Routing/Safety.cs using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace BicycleBackend.Routing { public enum Safety { Safe, SortaSafe, CertainDeath } }<file_sep>/BicycleBackend.Tests/NeighborFinderTests.cs using System; using BicycleBackend.Routing; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace BicycleBackend.Tests { [TestClass] public class NeighborFinderTests { [TestMethod] public void NeighborFinderInit() { new NeighborFinder(); } [TestMethod] public void NeighborTest() { var neighborFinder = new NeighborFinder(); Assert.IsNotNull(neighborFinder.FindNearestNeighbor(-37.727128, 175.253179)); } } } <file_sep>/BicycleBackend/Routing/NNeighborFinder.cs using System; using System.Collections.Generic; using GeoAPI.Geometries; using NetTopologySuite.Geometries; using NetTopologySuite.Index; using NetTopologySuite.Index.Strtree; namespace BicycleBackend.Routing { public class NnFinder { private readonly IEnumerable<Segment> _segments; private const double ExtendBy = 0.002; private STRtree<Segment> _tree; public NnFinder(IEnumerable<Segment> segments) { _segments = segments; BuildTree(); } private void BuildTree() { _tree = new STRtree<Segment>(); foreach (var segment in _segments) { _tree.Insert(ToLineString(segment).EnvelopeInternal, segment); } _tree.Build(); } public Segment NearestSegment(double lat, double lon) { double minLat = lat - ExtendBy, maxLon = lon + ExtendBy, minLon = lon - ExtendBy, maxLat = lat + ExtendBy; Visitor<Segment> visitor = new Visitor<Segment>(new NetTopologySuite.Geometries.Point(lon, lat), ToLineString); _tree.Query(new Envelope(minLon, maxLon, minLat, maxLat), visitor); return visitor.Closest; } private LineString ToLineString(Segment segment) { return new LineString(new[] { new Coordinate(segment.Start.Lon, segment.Start.Lat), new Coordinate(segment.End.Lon, segment.End.Lat) }); } private class Visitor<T> : IItemVisitor<T> where T : class { private readonly NetTopologySuite.Geometries.Point _point; private Func<T, IGeometry> _converter; public double MinimumDistance = 10000000.0 * 1000; public T Closest = null; public Visitor(NetTopologySuite.Geometries.Point point, Func<T, IGeometry> converter) { _point = point; _converter = converter; } public void VisitItem(T item) { var res = NetTopologySuite.Operation.Distance.DistanceOp.NearestPoints(_point, _converter(item)); double dist = Distance.Haversine(res[0].Y, res[0].X, res[1].Y, res[1].X); if (dist < MinimumDistance) { MinimumDistance = dist; Closest = item; } } } } }<file_sep>/BicycleBackend/Db/CrashContext.cs using System; using System.Collections.Generic; using System.Data; using System.Data.SQLite; using System.IO; using System.Linq; using System.Web; using Dapper; namespace BicycleBackend.Db { public class CrashContext : IDisposable { private readonly IDbConnection _conn; private string DbPath => $"{Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)}\\bicyclebicycle\\crash.db"; public CrashContext() { _conn = new SQLiteConnection($"Data Source={DbPath};"); _conn.Open(); } public IEnumerable<Crash> GetCrashes() { return _conn.Query<Crash>("select * from incidents"); } public void Dispose() { _conn.Dispose(); } } }<file_sep>/BicycleBackend/Cache.cs using BicycleBackend.Db; using BicycleBackend.Routing; namespace BicycleBackend { /// <summary> /// wouldn't be a hackathon without something gross like this /// </summary> public static class Cache { public static CrashContext CrashContext = new CrashContext(); public static readonly NeighborFinder NeighborFinder; public static readonly Router Router; static Cache() { NeighborFinder = new NeighborFinder(); Router = new Router(NeighborFinder); } public static void DoNothing() { } } }<file_sep>/BicycleBackend/Controllers/RoutingController.cs using System; using System.Collections.Generic; using System.Linq; using System.Web.Http; using System.Web.Http.Cors; using BicycleBackend.Db; using BicycleBackend.Routing; namespace BicycleBackend.Controllers { [EnableCors(origins: "*", headers: "*", methods: "*")] public class RoutingController : ApiController { private static CrashContext _context; private static Router _router; public RoutingController() { _context = Cache.CrashContext; _router = Cache.Router; } [HttpGet] [Route("v1/route/{startlat}/{startlon}/{endlat}/{endlon}")] public IHttpActionResult GetRoute(double startLat, double startLon, double endLat, double endLon) { try { var route = _router.Route(startLat, startLon, endLat, endLon); return Ok(SortRoute(route)); } catch (Exception ex) { return BadRequest(); } } private List<Segment> SortRoute(List<Segment> route) { if (route != null && route.Count >= 2) { var result = new List<Segment>(); if (route[0].Start.Equals(route[1].Start) || route[0].Start.Equals(route[1].End)) { //Reverse the 1st result.Add(route[0].ReversedClone()); } else { result.Add(route[0]); } //Now sort the rest of them for (var i = 1; i < route.Count; i++) { var last = result.Last(); var now = route[i]; if (last.End.Equals(now.Start)) { result.Add(now); } else { result.Add(now.ReversedClone()); } } route = result; } return route; } [HttpGet] [Route("v1/circle/{startlat}/{startlon}")] public IHttpActionResult GetCircleRoute(double startLat, double startLon) { try { var route = new CircleRouter(Cache.NeighborFinder).FindCircleRoute(startLat, startLon).ToList(); FixDupes(route); return Ok(SortRoute(route)); } catch (Exception ex) { return BadRequest(); } } [HttpGet] [Route("v1/route/crashes")] public IHttpActionResult GetCrashes() { return Ok(_context.GetCrashes()); } private void FixDupes(List<Segment> route) { for (var i = 0; i < route.Count - 1; i++) { if (route[i] == route[i + 1]) { route.RemoveAt(i); } } } } } <file_sep>/BicycleBackend/Routing/Segment.cs using System.Collections.Generic; namespace BicycleBackend.Routing { public class Segment { public Point Start { get; set; } public Point End { get; set; } public Safety SafetyRating { get; set; } /// <summary> /// Bigger is better /// </summary> public double Weight { get; set; } public string StreetName { get; set; } public int IncedentCount { get; set; } = 1; public double GetSafetyWeight => Weight/IncedentCount; public override bool Equals(object obj) { var other = obj as Segment; if (other == null) return false; return other.Start.Equals(Start) && other.End.Equals(End) && other.SafetyRating == SafetyRating && other.StreetName == StreetName; } public override int GetHashCode() { return Start.GetHashCode() ^ End.GetHashCode(); } public Segment ReversedClone() { return new Segment { Start = End, End = Start, SafetyRating = SafetyRating, StreetName = StreetName, Weight = Weight }; } } }<file_sep>/BicycleBackend.Tests/RouterTests.cs using System; using System.Linq; using BicycleBackend.Routing; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace BicycleBackend.Tests { [TestClass] public class RouterTests { [TestMethod] public void RouteTest() { var router = new Router(new NeighborFinder()); var enumerable = router.Route(-37.727128, 175.253179, -37.787383, 175.319811); Assert.IsNotNull(enumerable); Assert.IsTrue(enumerable.Any()); } [TestMethod] public void CircleRouteTest() { var router = new CircleRouter(new NeighborFinder()); var enumerable = router.FindCircleRoute(-37.727128, 175.253179); Assert.IsNotNull(enumerable); Assert.IsTrue(enumerable.Any()); } } } <file_sep>/BicycleBackend/Routing/Distance.cs using System; namespace BicycleBackend.Routing { public static class Distance { /// <summary> /// returns distance in meters /// </summary> /// <returns></returns> public static double Haversine(double lat, double lon, double otherLat, double otherLon) { double R = 6371; var tempLat = (otherLat - lat).ToRadians(); var tempLon = (otherLon - lon).ToRadians(); var h1 = Math.Sin(tempLat / 2) * Math.Sin(tempLat / 2) + Math.Cos(lat.ToRadians()) * Math.Cos(otherLat.ToRadians()) * Math.Sin(tempLon / 2) * Math.Sin(tempLon / 2); var h2 = 2 * Math.Asin(Math.Min(1, Math.Sqrt(h1))); return R * h2 * 1000; } private static double ToRadians(this double val) { return (Math.PI / 180) * val; } } }<file_sep>/BicycleBackend/Routing/Router.cs using System.Collections.Generic; using Kts.AStar; namespace BicycleBackend.Routing { public class Router { private readonly INeighborFinder _neighborFinder; public Router(INeighborFinder neighborFinder) { _neighborFinder = neighborFinder; } public List<Segment> Route(double startLat, double startLon, double endLat, double endLon) { double distance; bool success; var start = _neighborFinder.FindNearestNeighbor(startLat, startLon); var goal = _neighborFinder.FindNearestNeighbor(endLat, endLon); return AStarUtilities.FindMinimalPath(start, goal, _neighborFinder.FindNeighbors, GetScore, segment => GetHScore(segment, goal), out distance, out success); } private double GetScore(Segment segment, Segment otherSegment) { return LengthOfSegment(segment) + LengthOfSegment(otherSegment); } private double GetHScore(Segment segment, Segment otherSegment) { return DistanceBetweenSegments(segment, otherSegment); } private double DistanceBetweenSegments(Segment segment, Segment otherSegment) { return Distance.Haversine(segment.Start.Lat, segment.Start.Lon, otherSegment.Start.Lat, otherSegment.Start.Lon); } private double LengthOfSegment(Segment segment) { return Distance.Haversine(segment.Start.Lat, segment.Start.Lon, segment.End.Lat, segment.End.Lon) / segment.GetSafetyWeight; } } }<file_sep>/BicycleBackend/Routing/CircleRouter.cs using System; using System.Collections.Generic; using System.Linq; using Kts.AStar; namespace BicycleBackend.Routing { public class CircleRouter { private readonly INeighborFinder _neighborFinder; public CircleRouter(INeighborFinder neighborFinder) { _neighborFinder = neighborFinder; } List<Segment> currentRoute; private List<Segment> tempCrap; double currentRouteDist = 0; public IEnumerable<Segment> FindCircleRoute(double startLat, double startLon) { currentRoute = new List<Segment>(); currentRouteDist = 0; var start = _neighborFinder.FindNearestNeighbor(startLat, startLon); var currentEnd = start; while (true) { //Pick something a bit away Segment end = null; var rand = new Random(); while (end == null) { end = _neighborFinder.FindNearestNeighbor(currentEnd.End.Lat + (rand.NextDouble() - 0.5) * 0.01, currentEnd.End.Lon + (rand.NextDouble() - 0.5) * 0.01); } tempCrap = new List<Segment>(); var route = Route(currentEnd.Start.Lat, currentEnd.Start.Lon, end.End.Lat, end.End.Lon); var routeDist = route.Sum(segment => Distance.Haversine(segment.Start.Lat, segment.Start.Lon, segment.End.Lat, segment.End.Lon) / 1000.0); //TODO: We should count the route above ^^ in the LengthOfSegment check below to avoid those (but we can't add it to the list yet) tempCrap = route; var endToStart = Route(route.Last().End.Lat, route.Last().End.Lon, startLat, startLon); var endToStartDist = endToStart.Sum(segment => Distance.Haversine(segment.Start.Lat, segment.Start.Lon, segment.End.Lat, segment.End.Lon) / 1000.0); var totalDist = currentRouteDist + routeDist + endToStartDist; if (totalDist >= 4 && totalDist <= 6) { //Found an end currentRoute.AddRange(route); currentRoute.AddRange(endToStart); return currentRoute; } else if (totalDist < 4) { //Add a bit more on, not too far away yet currentRoute.AddRange(route); currentEnd = route.Last(); currentRouteDist += routeDist; } else { //Fuck it } } } private List<Segment> Route(double startLat, double startLon, double endLat, double endLon) { double distance; bool success; var start = _neighborFinder.FindNearestNeighbor(startLat, startLon); var goal = _neighborFinder.FindNearestNeighbor(endLat, endLon); return AStarUtilities.FindMinimalPath(start, goal, _neighborFinder.FindNeighbors, GetScore, segment => GetHScore(segment, goal), out distance, out success); } private double GetScore(Segment segment, Segment otherSegment) { return LengthOfSegment(segment) + LengthOfSegment(otherSegment); } private double GetHScore(Segment segment, Segment otherSegment) { return DistanceBetweenSegments(segment, otherSegment); } private double DistanceBetweenSegments(Segment segment, Segment otherSegment) { return Distance.Haversine(segment.Start.Lat, segment.Start.Lon, otherSegment.Start.Lat, otherSegment.Start.Lon); } private double LengthOfSegment(Segment segment) { double weight = currentRoute.Contains(segment) || tempCrap.Contains(segment) ? 0.01 : 1; return Distance.Haversine(segment.Start.Lat, segment.Start.Lon, segment.End.Lat, segment.End.Lon) / segment.GetSafetyWeight / weight; } } }<file_sep>/BicycleBackend/Models/Crash.cs using System; namespace BicycleBackend.Db { public class Crash { public int _Id { get; set; } public DateTime CrashDate { get; set; } public int CrashTime { get; set; } public string ObjectsStruck { get; set; } public string RoadWet { get; set; } public string WthRa { get; set; } public int SpdLim { get; set; } public int CrashFatalCnt { get; set; } public int CrashSevCnt { get; set; } public int CrashMinCnt { get; set; } public double Lat { get; set; } public double Lon { get; set; } } }
6fee7ce2c6f24c7cd57969de0a56a50ffe2b935f
[ "C#" ]
14
C#
smartrak-govhack-2016/backend
bf5f57f24a7513ac565bb6e1c784481c3e2b65ab
c7129273f1227c585aa5de92e0cc9f043fd2e0e8
refs/heads/master
<file_sep>from commonml import runner def testhoge(config): print("gebara") if __name__ == '__main__': runner.run()
9a0a0edd90499b6c2b6c2c1fdef6728e867f1ad1
[ "Python" ]
1
Python
keisuke6065/python-training
236c55eea412543393bbd4c66898009a842dfdf7
c832c989827dbbc9c4c9d6996d86c516df479a95
refs/heads/master
<file_sep>// pages/personalInfo/collectedProjects/collectedProjects.js var util = require("../../../utils.js"); var app = getApp(); Page({ data: { collectedProjectIds:[], collectedProjectInfos:[], pageNumber:1 }, onLoad: function (options) { const db = wx.cloud.database(); const _ = db.command; var that = this; db.collection("UserInfos").where({ openid: app.globalData.openid }).field({ collectedProjects: true }).get({ complete: (res) => { console.log("查询到参与的项目", res.data); var collectedProjectIds = res.data[0].collectedProjects; that.setData({ collectedProjectIds: collectedProjectIds }); collectedProjectIds.forEach(id => { const db = wx.cloud.database(); db.collection("Projects").doc(id).field({ createTimeStamp:true, teamMemberNumber:true, projectName:true, projectDescription:true, workersOpenid:true, projectProgress: true, projectType: true, }).get({ complete: res => { if(!res){ //防止project已经被删除了 return; } res.data.formatTime = util.formatTime(new Date(res.data.createTimeStamp)); console.log(res); that.setData({ collectedProjectInfos: that.data.collectedProjectInfos.concat(res.data) }) } }) }) } }) }, onReachBottom:function(){ const db = wx.cloud.database(); const _ = db.command; wx.showNavigationBarLoading(); var that = this; db.collection("UserInfos").where({ openid: app.globalData.openid }).skip(20 * that.data.pageNumber).field({ collectedProjects: true }).get({ success: (res) => { console.log("查询到参与的项目", res.data); if (res.data.length === 0) { //没有多余的了 wx.hideNavigationBarLoading(); return; } var collectedProjectIds = res.data[0].collectedProjects; that.setData({ collectedProjectIds: that.data.collectedProjectIds.concat(collectedProjectIds), }); collectedProjectIds.forEach(id => { const db = wx.cloud.database(); db.collection("Projects").doc(id).field({ createTimeStamp: true, teamMemberNumber: true, projectName: true, projectDescription: true, workersOpenid: true, projectProgress: true, projectType: true, }).get({ complete: res => { if(!res){ //防止project已经被删除了 return; } console.log(res); res.data.formatTime = util.formatTime(new Date(res.data.createTimeStamp)); that.setData({ collectedProjectInfos: that.data.collectedProjectInfos.concat(res.data) }) wx.hideNavigationBarLoading(); } }) }) } }) } })<file_sep>// pages/checkProject/checkProject.js var utils = require("../../utils.js"); var app = getApp(); var unCollectedButtonSrc = "../images/未收藏.png"; var CollectedButtonSrc = "../images/收藏的.png" Page({ data: { projectId: "", projectName: "", leaderOpenid: "", workersOpenids: [], teamMemberNumber: 0, projectDescription: "", teamMemberDescription: "", createTimeStamp: 0, leaderAvatarUrl: "", leaderName: "", projectProgress: "", projectType: "", workersInfos: [], buttonSrc: "../images/未收藏.png", showApply: false, showDelete: false, showExit: false, collectWorking: false, isButtonDisabled: true, deadline: "", passDeadline:false, }, onLoad: function(options) { this.setData({ projectId: options.projectId }) var that = this; const db = wx.cloud.database(); db.collection("UserInfos").where({ openid: app.globalData.openid, }).get({ success: res => { if (res.data[0].collectedProjects.indexOf(that.data.projectId) !== -1) { //收藏了 that.setData({ buttonSrc: CollectedButtonSrc }) } else { //未收藏 that.setData({ buttonSrc: unCollectedButtonSrc }) } } }) const _ = db.command; db.collection("Projects") .doc(that.data.projectId) .get() .catch(res => { console.log("查Projects出错", res); //没有查找到项目 wx.showModal({ title: '错误', content: '该项目不存在', showCancel: false, success: res => { if (res.confirm) { wx.navigateBack(); } } }); }) .then(function(res) { console.log("查看项目", res); if (!res) { //没有查找到项目 wx.showModal({ title: '错误', content: '该项目不存在', showCancel: false, success: res => { if (res.confirm) { wx.navigateBack(); } } }) } that.setData({ projectName: res.data.projectName, leaderOpenid: res.data.leaderOpenid, workersOpenids: res.data.workersOpenid, projectDescription: res.data.projectDescription, teamMemberDescription: res.data.teamMemberDescription, teamMemberNumber: res.data.teamMemberNumber, createTimeStamp: res.data.createTimeStamp, projectProgress: res.data.projectProgress, projectType: res.data.projectType, deadline: res.data.deadline }); //看看自己是不是leader if (res.data.leaderOpenid === app.globalData.openid) { //是leader that.setData({ showApply: false, showDelete: true, }) } else { //不是leader that.setData({ showApply: true, showDelete: false, }) //看看自己是不是队员 var isWorker = false; for (let i = 0; i < that.data.workersOpenids.length; i++) { if (that.data.workersOpenids[i] === app.globalData.openid) { //是队员 isWorker = true; that.setData({ showApply: false, showDelete: false, showExit: true, }); break; } }; if (!isWorker) { //查看是否已经过了截止日期 如果过了就不让加入 var deadline = new Date(that.data.deadline); var now = new Date(utils.formatTimeMonthAndDay(new Date(Date.now()))); console.log("截止日期",deadline); if (deadline < now) { //已过截止日期 console.log("截止日期已过"); that.setData({ passDeadline: true, }) }else{ console.log("还没有过截止日期"); } //不是队员 that.setData({ showApply: true, showDelete: false, showExit: false, }); //把访问量加1 因为不是leader也不是worker查看的 wx.cloud.callFunction({ name: "increaseWatchTimesOfProject", data: { projetcId: that.data.projectId, }, complete: res => { console.log("访问量自增完成"); } }) } } console.log("准备查询项目的人物信息", that.data.leaderOpenid); db.collection("UserInfos").where({ openid: that.data.leaderOpenid }).get({ success: res => { console.log("查找leader成功", res); console.log("res.data[0].avatarUrl:", res.data[0].avatarUrl); that.setData({ leaderName: res.data[0].nickName, leaderAvatarUrl: res.data[0].avatarUrl }); //检查自己是否向发起人申请过该项目 然后改按钮 //如果项目人满 则不能再申请 if (that.data.teamMemberNumber - that.data.workersOpenids.length > 0) { //还有空位 db.collection("UserInfos").where({ openid: that.data.leaderOpenid }).field({ requests: true }).get({ success: res => { var requests = res.data[0].requests; console.log("检查自己是否向发起人申请过该项目:", requests); var ifButtonAvalible = true; for (let i = 0; i < requests.length; i++) { if (!requests[i]) { continue; } if (requests[i].requestProjectId === that.data.projectId && requests[i].requestOpenid === app.globalData.openid && requests[i].requestStatus === "requesting") { //只要不在申请中时才可以申请 ifButtonAvalible = false; break; } } that.setData({ isButtonDisabled: !ifButtonAvalible, }); } }) } else { //没有空位置 that.setData({ isButtonDisabled: true }) } }, fail: res => { console.log("查找user出错", res); } }); var workersInfos = []; console.log("准备查询workers", that.data.workersOpenids); var promises = []; that.data.workersOpenids.forEach(function(workerOpenid) { promises.push(db.collection("UserInfos").where({ openid: workerOpenid }).field({ name: true, avatarUrl: true, }).get()); }); Promise.all(promises).then(results => { console.log(results); for (let i = 0; i < results.length; i++) { results[i].data[0].openid = that.data.workersOpenids[i]; workersInfos.push(results[i].data[0]) } that.setData({ workersInfos: workersInfos }) }); }); }, collectButtonTap: function(e) { //如果没有注册 就不让你收藏 if (!app.globalData.isRegistered) { wx.showModal({ title: '注意', content: '请您先注册,再收藏', success: res => { if (res.confirm) { wx.navigateTo({ url: '../startPage', }); return; } else { return; } } }); } else { var that = this; if (that.data.collectWorking) { //如果正在收藏过程中 直接return return; } that.setData({ collectWorking: true }) if (that.data.buttonSrc === CollectedButtonSrc) { //取消收藏 //云端数据库无法直接删除数组中的元素 //先获得全部的收藏的项目,再在本地删除然后上传上去 const db = wx.cloud.database(); db.collection("UserInfos").where({ openid: app.globalData.openid }).field({ collectedProjects: true }).get({ success: res => { console.log("点击取消收藏", res); var collectedProjects = res.data[0].collectedProjects; console.log("收到的项目", collectedProjects); collectedProjects .splice(collectedProjects.indexOf(that.data.projectId), 1); console.log("删除后的数组", collectedProjects); wx.cloud.callFunction({ name: "updateUserCollectedProjectsWhenCancelCollect", data: { collectedProjects: collectedProjects }, complete: res => { console.log("取消收藏", res); that.setData({ buttonSrc: unCollectedButtonSrc, collectWorking: false, }) } }) } }) } else { wx.cloud.callFunction({ name: "updateUserCollectedProjects", data: { projectId: that.data.projectId }, complete: res => { console.log("收藏完毕", res); that.setData({ buttonSrc: CollectedButtonSrc, collectWorking: false, }) } }) } } }, requestAttend: function(e) { //如果没有注册的时候就点击了申请 //就让它注册 再回来 if (!app.globalData.isRegistered) { wx.showModal({ title: '注意', content: '您还没有注册,请先注册个人信息', success: res => { if (res.confirm) { wx.navigateTo({ url: '../startPage', }) return; } else { return; } } }); return; } else { wx.showLoading({ title: '申请中...', }) //申请加入该项目 var that = this; wx.cloud.callFunction({ name: "requestJoinProject", data: { requestProjectId: that.data.projectId, leaderOpenid: that.data.leaderOpenid, requestTimeStamp: Date.now() }, complete: function(e) { console.log("申请完毕", e); that.setData({ isButtonDisabled: true, }); wx.hideLoading(); wx.showToast({ title: '申请完毕!', }) } }) } }, clickAvatar: function(e) { console.log("点击头像", e); if (e.currentTarget.dataset.user === "leader") { wx.navigateTo({ url: '../checkPerson/checkPerson?openid=' + this.data.leaderOpenid, }) } else { wx.navigateTo({ url: '../checkPerson/checkPerson?openid=' + this.data.workersOpenids[e.currentTarget.dataset.index], }) } }, deleteProject: function(e) { //在这里不能用拉姆达表达式 var that = this; console.log("点击了删除", that.data); wx.showLoading({ title: '删除中...', }) wx.cloud.callFunction({ name: "deleteProject", data: { projectId: that.data.projectId }, complete: res => { console.log("删除完事了", res); wx.showToast({ title: '删除完毕', }); wx.navigateBack(); } }) }, exitProject: function(e) { var that = this; console.log("点击了退出项目"); wx.showNavigationBarLoading(); wx.showLoading({ title: '退出中...', mask: true, }) wx.cloud.callFunction({ name: "exitProject", data: { projectId: that.data.projectId, openid: app.globalData.openid, }, complete: res => { wx.hideNavigationBarLoading(); wx.hideLoading(); wx.showToast({ title: '退出成功', }) console.log("退出完事了", res); //需要将页面中的按钮以及参与者的信息修改掉 var workersOpenids = that.data.workersOpenids; while (workersOpenids.indexOf(app.globalData.openid) !== -1) { workersOpenids.splice(workersOpenids.indexOf(app.globalData.openid)); }; var newWorkersInfos = []; for (let i = 0; i < that.data.workersInfos.length; i++) { if (that.data.workersInfos[i].openid !== app.globalData.openid) { newWorkersInfos.push(that.data.workersInfos[i]); } } that.setData({ workersOpenids: workersOpenids, workersInfos: newWorkersInfos, showDelete: false, showApply: true, showExit: false, isButtonDisabled: false, }); } }) }, editProject: function(e) { var that = this; console.log("点击了修改项目", e); wx.navigateTo({ url: '../editProject/editProject?openType=edit&projectId=' + that.data.projectId, }); }, manageWorker: function(e) { var that = this; console.log("点击了管理团队", e); wx.navigateTo({ url: "./manageWorkers/manageWorkers" }) } })<file_sep>// 云函数入口文件 const cloud = require('wx-server-sdk') cloud.init() // 云函数入口函数 exports.main = async (event, context) => { var { OPENID, APPID, UNIONID } = cloud.getWXContext(); const db = cloud.database(); const _ = db.command; console.log(event); if(event.onlyUpdateAvatarUrl){ return await db.collection('UserInfos').where({ // gt 方法用于指定一个 "大于" 条件,此处 _.gt(30) 是一个 "大于 30" 的条件 openid: _.eq(OPENID) }).update({ data: { avatarUrl: event.avatarUrl, nickName: event.nickName } }); }else{ return await db.collection('UserInfos').where({ // gt 方法用于指定一个 "大于" 条件,此处 _.gt(30) 是一个 "大于 30" 的条件 openid: _.eq(OPENID) }).update({ data: { name: event.name, sex: event.sex, grade: event.grade, major: event.major, telNumber: event.telNumber, goodAt: event.goodAt, studentId: event.studentId } }); } }<file_sep>Page({ data: { openid:"", name:"", content:"", avatarUrl:"", messageInput:"", messageInputLength:0, }, onLoad: function (options) { console.log(options); this.setData({ openid:options.openid, content:options.content, avatarUrl:options.avatarUrl, name:options.name }); }, sendMessage:function(e){ var that = this; if (this.data.messageInput === "") { this.setData({ showTopTips: true, }); setTimeout(() => { that.setData({ showTopTips: false, }) }, 2000); return; } else { //留言不为空 发送给这个人 wx.showLoading({ title: '发送中', mask: true }) wx.cloud.callFunction({ name: "updateUserLeftMessages", data: { openid: that.data.openid, messageContent: that.data.messageInput, sendTimeStamp: Date.now(), }, complete: (res) => { console.log("发送留言完毕", res); wx.hideLoading(); wx.showToast({ title: '发送成功', }); } }) } }, clickAvatar:function(e){ var that = this; wx.navigateTo({ url: '../../../checkPerson/checkPerson?openid=' + that.data.openid }) }, onMessageInput:function(e){ this.setData({ messageInput:e.detail.value, messageInputLength:e.detail.value.length, }); }, })<file_sep>// pages/personalInfo/requests/requests.js var app = getApp(); Page({ data: { hasNewRequest:false }, onLoad: function (options) { }, onShow: function () { this.setData({ hasNewRequest: app.globalData.hasNewRequest }) }, })<file_sep>// 云函数入口文件 const cloud = require('wx-server-sdk') cloud.init() // 云函数入口函数 exports.main = async (event, context) => { //要删除项目 var { OPENID, APPID, UNIONID } = cloud.getWXContext(); const db = cloud.database(); const _ = db.command; console.log(event); //先把workers的participatingProjects删掉 return db.collection("Projects").doc(event.projectId).get().then(res=>{ var promises = []; res.data.workersOpenid.forEach(workerOpenid=>{ promises.push(db.collection("UserInfos").where({ openid:workerOpenid, }).field({ participatingProjects:true }).get().then(res=>{ var participatingProjects = res.data[0].participatingProjects; console.log("删除participatingProjects之前",participatingProjects); if(participatingProjects.indexOf(event.projectId) !== -1){ //如果找的到这个项目 console.log("找到了这个项目"); participatingProjects.splice(participatingProjects.indexOf(event.projectId), 1); } console.log("删除participatingProjects之后",participatingProjects); return db.collection("UserInfos").where({ openid:workerOpenid, }).update({ data:{ participatingProjects:participatingProjects } }) })); }); return Promise.all(promises); }).then(results=>{ console.log("全部的workers删除了participatingProjects中的这个project"); //接下来删除leader的leadingProjects return db.collection("UserInfos").where({ openid:OPENID, }).field({ leadingProjects:true }).get().then(res=>{ var leadingProjects = res.data[0].leadingProjects; leadingProjects.splice(leadingProjects.indexOf(event.projectId),1); return db.collection("UserInfos").where({ openid:OPENID, }).update({ data:{ leadingProjects:leadingProjects, } }); }); }).then(res=>{ console.log("删除了leader的leadingProjects的project",res); //删除这个项目条目 return db.collection("Projects").doc(event.projectId).remove(); }); }<file_sep>// 云函数入口文件 const cloud = require('wx-server-sdk') cloud.init() // 云函数入口函数 exports.main = async (event, context) => { var { OPENID, APPID, UNIONID } = cloud.getWXContext(); const db = cloud.database(); const _ = db.command; console.log(event); if(event.hasNewMessages === false){ //如果是查看了消息列表 return db.collection("UserInfos").where({ _openid:OPENID, }).update({ data:{ hasNewMessages: event.hasNewMessages, } }); }else if(event.hasNewParticipatingProjects === false){ //如果是查看了参加的项目列表 return db.collection("UserInfos").where({ _openid:OPENID }).update({ data:{ hasNewParticipatingProjects: event.hasNewParticipatingProjects, } }) }else if(event.hasNewRequest === false){ return db.collection("UserInfos").where({ _openid: OPENID }).update({ data: { hasNewRequest: event.hasNewRequest, } }) } }<file_sep>// 云函数入口文件 const cloud = require('wx-server-sdk') cloud.init() // 云函数入口函数 exports.main = async (event, context) => { const db = cloud.database(); const _ = db.command; return db.collection("Projects").doc(event.projectId).update({ data:{ projectName:event.projectName, teamMemberNumber:event.teamMemberNumber, projectDescription:event.projectDescription, teamMemberDescription:event.teamMemberDescription, projectProgress: event.projectProgress, projectType: event.projectType, deadline:event.deadline, } }); }<file_sep>// 云函数入口文件 const cloud = require('wx-server-sdk') cloud.init() // 云函数入口函数 exports.main = async (event, context) => { var { OPENID, APPID, UNIONID } = cloud.getWXContext(); const db = cloud.database(); const _ = db.command; console.log(event); return await db.collection('UserInfos').where({ openid: _.eq(event.openid) }).update({ data:{ leftMessages:_.unshift({ fromWho:OPENID, messageContent:event.messageContent, sendTimeStamp:event.sendTimeStamp }), hasNewMessages:true, } }) }<file_sep>// 云函数入口文件 const cloud = require('wx-server-sdk') cloud.init() // 云函数入口函数 exports.main = async(event, context) => { const db = cloud.database(); const _ = db.command; var results = []; console.log(event.projectTypes); var searchProjectsDependsOnName = db.collection("Projects").where({ projectName: new db.RegExp({ regexp: "^.*" + event.keyword + ".*$", options: "i", }), //projectType: _.in(event.projectTypes), }).field({ projectId: true, projectName: true, projectDescription: true, teamMemberNumber: true, workersOpenid: true, projectType: true, projectProgress: true, watchedTimes:true, }).orderBy("watchedTimes","desc").skip(10 * event.searchResultPages).limit(10).get().then(res => { console.log("搜索projects有结果", res); res.data.forEach(each => { each.isProject = true; if (results.indexOf(each) === -1) { results.push(each); //保证不会重复加入同一个项目 } }); return "ok"; }); var searchProjectsDependsOnType = db.collection("Projects").where({ //projectType: new db.RegExp({ // regexp: "^.*" + event.keyword + ".*$", // options: "i", //}), projectType: new db.RegExp({ regexp: "^.*" + event.keyword + ".*$", options: "i"}), }).field({ projectId: true, projectName: true, projectDescription: true, teamMemberNumber: true, workersOpenid: true, projectType: true, projectProgress: true, }).orderBy("watchedTimes", "desc").skip(10 * event.searchResultPages).limit(10).get().then(res => { console.log("通过type搜索projects有结果", res); res.data.forEach(each => { each.isProject = true; if (results.indexOf(each) === -1) { results.push(each); //保证不会重复加入同一个项目 } }); return "ok"; }); var searchPersonDependsOnName = db.collection("UserInfos").where({ nickName: new db.RegExp({ regexp: "^.*" + event.keyword + ".*$", options: "i", }), hasIntentToDoProject: true }).field({ openid: true, avatarUrl: true, name:true, nickName: true, goodAt: true, }).skip(10 * event.searchResultPages).limit(10).get().then(res => { console.log("搜索users有结果", res); res.data.forEach(each => { /* var IWantU = false; if (each.goodAt) { each.goodAt.forEach(eachGoodAt => { if (event.goodAt.indexOf(eachGoodAt) !== -1) { IWantU = true; } }) if (IWantU) { each.isUser = true; if (results.indexOf(each) === -1) { results.push(each); //保证不会重复加入同一个人 } } }*/ each.isUser = true; if (results.indexOf(each) === -1) { results.push(each); //保证不会重复加入同一个人 } }) return "ok"; }); var searchPersonDependsOnMajor = db.collection("UserInfos").where({ major: new db.RegExp({ regexp: "^.*" + event.keyword + ".*$", options: "i", }), hasIntentToDoProject: true }).field({ openid: true, avatarUrl: true, name: true, nickName:true, goodAt: true, }).skip(10 * event.searchResultPages).limit(10).get().then(res => { console.log("搜索users有结果", res); res.data.forEach(each => { /* var IWantU = false; if (each.goodAt) { each.goodAt.forEach(eachGoodAt => { if (event.goodAt.indexOf(eachGoodAt) !== -1) { IWantU = true; } }) if (IWantU) { each.isUser = true; if (results.indexOf(each) === -1) { results.push(each); //保证不会重复加入同一个人 } } }*/ each.isUser = true; if (results.indexOf(each) === -1) { results.push(each); //保证不会重复加入同一个人 } }) return "ok"; }); var searchPersonDependsOnGoodAt = db.collection("UserInfos").where({ goodAt: new db.RegExp({ regexp: "^.*" + event.keyword + ".*$", options: "i", }), hasIntentToDoProject: true }).field({ openid: true, avatarUrl: true, name: true, nickName: true, goodAt: true, }).skip(10 * event.searchResultPages).limit(10).get().then(res => { console.log("搜索users有结果", res); res.data.forEach(each => { /* var IWantU = false; if (each.goodAt) { each.goodAt.forEach(eachGoodAt => { if (event.goodAt.indexOf(eachGoodAt) !== -1) { IWantU = true; } }) if (IWantU) { each.isUser = true; if (results.indexOf(each) === -1) { results.push(each); //保证不会重复加入同一个人 } } }*/ each.isUser = true; if (results.indexOf(each) === -1) { results.push(each); //保证不会重复加入同一个人 } }) return "ok"; }); return Promise.all([searchProjectsDependsOnName, searchProjectsDependsOnType,searchPersonDependsOnName, searchPersonDependsOnMajor]).then(finsih => { console.log("结束", finsih); // //results.push(event.keyword); // return results; }) }<file_sep>// pages/personalInfo/changePersonalInfo/changePersonalInfo.js var app = getApp() Page({ data: { showTopTips: false, tipMessage: "", userNameInput: "", userNameIsLegal: true, warnClass: "weui-cell_warn", noWarnClass: "", telNumberInput: "", telNumberIsLegal: true, studentIdInput: "", studentIdIsLegal: true, sexes: ["男", "女"], sexIndex: 0, accounts: ["微信号", "QQ", "Email"], accountIndex: 0, majors: ["软件学院", "电子信息工程学院", "汽车学院", "机械与能源工程学院", "材料科学与工程学院", "环境科学与工程学院", "测绘与地理信息学院", "土木工程学院", "建筑与城市规划学院", "设计与艺术学院", "交通运输工程学院", "铁道与城市轨道交通研究院", "中德学院", "外国语学院", "理学部", "生命科学与技术学院", "医学院", "人文学院", "政治与国际关系学院", "法学院", "马克思主义学院", "经济与管理学院" ].sort(), majorIndex: 0, grades: ["大一", "大二", "大三", "大四", "大五", "研究生", "博士"], gradeIndex: 0, intents: ["有", "无"], intentIndex: 0, goodAt: ["设计", "编程", "测试", "策划", "美工", "文案"], goodAtItems: [{ name: '设计', value: '0', checked: false }, { name: '编程', value: '1', checked: false }, { name: '测试', value: '2', checked: false }, { name: '策划', value: '3', checked: false }, { name: '美工', value: '4', checked: false }, { name: '文案', value: '5', checked: false }, ], }, onLoad: function(options) { //TODO:从服务器中获取用户信息 并初始化所有的信息 const db = wx.cloud.database(); var that = this; db.collection("UserInfos").where({ openid: app.globalData.openid }).field({ sex: true, grade: true, name: true, telNumber: true, major: true, hasIntentToDoProject: true, goodAt: true, studentId: true, }).get({ success: function(res) { console.log("修改个人信息界面", res); var loadedData = res.data[0]; var loadName = loadedData.name; var loadSexIndex = that.data.sexes.indexOf(loadedData.sex); var loadGradeIndex = that.data.grades.indexOf(loadedData.grade); var loadTelNumber = loadedData.telNumber; var loadMajorIndex = that.data.majors.indexOf(loadedData.major); var loadIntentIndex = loadedData.hasIntentToDoProject ? 0 : 1; var loadGoodAt = loadedData.goodAt; var loadStudentId = loadedData.studentId; loadGoodAt.forEach(each => { that.data.goodAtItems[that.data.goodAt.indexOf(each)].checked = true; }); console.log("读取到的信息", loadName, loadSexIndex, loadGradeIndex, loadTelNumber, loadMajorIndex); that.setData({ userNameInput: loadName, sexIndex: loadSexIndex, gradeIndex: loadGradeIndex, majorIndex: loadMajorIndex, telNumberInput: loadTelNumber, intentIndex: loadIntentIndex, goodAtItems: that.data.goodAtItems, studentIdInput: loadStudentId, }); } }) }, editButton: function(e) { if (!this.checkIfInfoLegal()) { return; } //TODO:向服务器传输update的信息 var that = this; wx.showLoading({ title: '加载中', mask: true }); var goodAtItems = that.data.goodAtItems; var filtedGoodAtItems = goodAtItems.filter(each => { if (each.checked) { return true; } else return false; }); var goodAt = []; filtedGoodAtItems.forEach(each => { goodAt.push(each.name); }) //通过云函数更新数据 wx.cloud.callFunction({ name: "updateOneUserMessage", data: { name: that.data.userNameInput, sex: that.data.sexes[that.data.sexIndex], grade: that.data.grades[that.data.gradeIndex], major: that.data.majors[that.data.majorIndex], telNumber: that.data.telNumberInput, studentId: that.data.studentIdInput, goodAt: goodAt, }, success: function(e) { wx.hideLoading(); console.log("修改成功", e); wx.showToast({ title: '修改成功!', }); wx.navigateBack({}) }, fail: function(e) { wx.hideLoading(); console.log("修改失败", e); } }) }, checkIfInfoLegal() { var userName = this.data.userNameInput; var telNumber = this.data.telNumberInput; var studentId = this.data.studentIdInput; var phonetel = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1})|(17[0-9]{1}))+\d{8})$/; var name = /^[\u4e00-\u9fa5]+$/; if (userName == '') { this.setData({ showTopTips: true, tipMessage: "用户名不能为空", userNameIsLegal: false }) setTimeout(() => { this.setData({ showTopTips: false }); }, 3000); return false } else if (telNumber == '') { this.setData({ showTopTips: true, tipMessage: "手机号不能为空", telNumberIsLegal: false }) setTimeout(() => { this.setData({ showTopTips: false }); }, 3000); return false } else if (telNumber.length != 11) { this.setData({ showTopTips: true, tipMessage: "手机号长度有误", telNumberIsLegal: false }) setTimeout(() => { this.setData({ showTopTips: false }); }, 3000); return false; } var myreg = /^1\d{10}$/; if (!myreg.test(telNumber)) { this.setData({ showTopTips: true, tipMessage: "手机号有误", telNumberIsLegal: false }); setTimeout(() => { this.setData({ showTopTips: false }); }, 3000); return false; } myreg = /^\d{7}$/; if (!myreg.test(studentId)) { this.setData({ showTopTips: true, tipMessage: "学号应为7位", studentIdIsLegal: false }); setTimeout(() => { this.setData({ showTopTips: false }); }, 3000); return false; } if (!name.test(userName)) { this.setData({ showTopTips: true, tipMessage: "姓名必须为中文", userNameIsLegal: false }); setTimeout(() => { this.setData({ showTopTips: false }); }, 3000); } return true; }, showTopTips: function() { var that = this; this.setData({ showTopTips: true }); setTimeout(function() { that.setData({ showTopTips: false }); }, 3000); }, bindSexChange: function(e) { console.log('picker country 发生选择改变,携带值为', e.detail.value); this.setData({ sexIndex: e.detail.value }) }, bindMajorChange: function(e) { console.log('picker country 发生选择改变,携带值为', e.detail.value); this.setData({ majorIndex: e.detail.value }) }, bindGradeChange: function(e) { console.log('picker account 发生选择改变,携带值为', e.detail.value); this.setData({ gradeIndex: e.detail.value }) }, bindIntentChange: function(e) { console.log('picker account 发生选择改变,携带值为', e.detail.value); this.setData({ intentIndex: e.detail.value }) }, userNameInputTyping: function(e) { this.setData({ userNameInput: e.detail.value }) }, telNumberInputTyping: function(e) { this.setData({ telNumberInput: e.detail.value }) }, studentIdInputTyping: function (e) { this.setData({ studentIdInput: e.detail.value }); }, checkboxChange: function(e) { console.log('checkbox发生change事件,携带value值为:', e.detail.value); var checkboxItems = this.data.goodAtItems, values = e.detail.value; for (var i = 0, lenI = checkboxItems.length; i < lenI; ++i) { checkboxItems[i].checked = false; for (var j = 0, lenJ = values.length; j < lenJ; ++j) { if (checkboxItems[i].value == values[j]) { checkboxItems[i].checked = true; break; } } } this.setData({ goodAtItems: checkboxItems }); }, })<file_sep>// 云函数入口文件 const cloud = require('wx-server-sdk') cloud.init() // 云函数入口函数 exports.main = async (event, context) => { var { OPENID, APPID, UNIONID } = cloud.getWXContext(); const db = cloud.database(); const _ = db.command; console.log(event); return await db.collection('UserInfos').where({ openid: _.eq(event.requestOpenid) }).get().then(res=>{ var requests = res.data[0].myRequestProjects; console.log(requests); for(let i = 0;i<requests.length;i++){ if(!requests[i]){ continue; } //找到申请人申请的该项目 把状态修改为event给的状态 if (requests[i].requestProjectId === event.requestProjectId && requests[i].requestTimeStamp === event.requestTimeStamp) { requests[i].requestStatus = event.status; break; } } console.log("准备修改申请状态了"); if(event.status === "agreed"){ return db.collection('UserInfos').where({ openid: _.eq(event.requestOpenid) }).update({ data: { myRequestProjects: requests, participatingProjects:_.push(event.requestProjectId), //让被申请人知道自己有新参与的项目了 hasNewParticipatingProjects:true, } }) }else{ return db.collection('UserInfos').where({ openid: _.eq(event.requestOpenid) }).update({ data: { myRequestProjects: requests, } }) } }).then(res=>{ console.log("修改完申请状态了"); if(event.status === "agreed"){ console.log("准备更新项目中的workers"); return db.collection("Projects").doc(event.requestProjectId).update({ data: { workersOpenid: _.push(event.requestOpenid), } }) }else{ console.log("不更新workers"); return res; } }).then(res=>{ //将发起人中的被申请信息删除 return db.collection("UserInfos").where({ openid:OPENID, }).field({ requests:true, }).get(); }).then(res=>{ var requests = res.data[0].requests; console.log("获得的requests",requests); for(let i = 0;i<requests.length;i++){ if(requests[i]){ //确保不会是傻逼null if(requests[i].requestOpenid === event.requestOpenid){ console.log("openid一样",event.requestOpenid); } if(requests[i].requestProjectId === event.requestProjectId){ console.log("projectId一样",event.requestProjectId); } if(requests[i].requestTimeStamp === event.requestTimeStamp){ console.log("requestTimeStamp一样",event.requestTimeStamp); } if(requests[i].requestOpenid === event.requestOpenid && requests[i].requestProjectId === event.requestProjectId && requests[i].requestTimeStamp === event.requestTimeStamp){ console.log("执行了改变"); requests[i].requestStatus = event.status === "agreed" ? "agreed" : "rejected"; //修改状态为新的状态 } } } console.log("修改完之后的requests",requests); return db.collection("UserInfos").where({ openid:OPENID }).update({ data:{ requests: requests } }); }) }<file_sep>// pages/checkPerson/checkPersonProjects/checkPersonProjects.js var util = require("../../../utils.js"); Page({ data: { openType:"", userOpenid:"", Projects:[], pageNumber:1, participatingProjectIds: [], }, onLoad: function (options) { console.log(options); this.setData({ userOpenid:options.openid, openType:options.type, }); const db = wx.cloud.database(); const _ = db.command; var that = this; var getLeaderProjects = that.data.openType === "leader" ? true : false; console.log(getLeaderProjects); if(getLeaderProjects){ db.collection("Projects").where({ leaderOpenid: that.data.userOpenid, }).get({ success: (res) => { console.log("已发布的项目加载完毕", res); res.data.forEach(item => { item.formatTime = util.formatTime(new Date(item.createTimeStamp)); }) that.setData({ Projects: res.data, }) } }) }else{ var that = this; db.collection("UserInfos").where({ openid: that.data.userOpenid }).field({ participatingProjects: true }).get({ success: (res) => { console.log("查询到参与的项目", res.data); var participatingProjectIds = res.data[0].participatingProjects; that.setData({ participatingProjectIds: participatingProjectIds }); participatingProjectIds.forEach(id => { const db = wx.cloud.database(); db.collection("Projects").doc(id).get({ success: res => { res.data.formatTime = util.formatTime(new Date(res.data.createTimeStamp)); console.log(res); that.setData({ Projects: that.data.Projects.concat(res.data) }) } }) }) } }) } }, onReachBottom: function () { const db = wx.cloud.database(); const _ = db.command; var that = this; if(that.data.openType === "leader"){ db.collection("Projects").where({ leaderOpenid: that.data.userOpenid, }).skip(20 * that.data.pageNumber).get({ success: (res) => { console.log("已发布的项目加载完毕", res); if (res.data.length === 0) { //若后面没有数据 return; } else { //若有数据 res.data.forEach(item => { item.formatTime = util.formatTime(new Date(item.createTimeStamp)); }); that.setData({ Projects: that.data.Projects.concat(res.data), pageNumber: that.data.pageNumber + 1, }) } } }) }else{ db.collection("UserInfos").where({ openid: that.data.userOpenid }).skip(20 * that.data.pageNumber).field({ participatingProjects: true }).get({ success: (res) => { console.log("查询到参与的项目", res.data); console.log(res.data.length === 1 ? "正常" : "不正常"); if (res.data[0].length === 0) { //没有多余的了 return; } var participatingProjectIds = res.data[0].participatingProjects; that.setData({ participatingProjectIds: that.data.participatingProjectIds.concat(participatingProjectIds) }); participatingProjectIds.forEach(id => { const db = wx.cloud.database(); db.collection("Projects").doc(id).get({ success: res => { console.log(res); res.data.formatTime = util.formatTime(new Date(res.data.createTimeStamp)); that.setData({ Projects: that.data.Projects.concat(res.data) }) } }) }) } }) } } }) <file_sep>// 云函数入口文件 const cloud = require('wx-server-sdk') cloud.init() // 云函数入口函数 exports.main = async (event, context) => { var { OPENID, APPID, UNIONID } = cloud.getWXContext(); const db = cloud.database(); const _ = db.command; console.log(event); return await db.collection('UserInfos').where({ openid: _.eq(OPENID) }).update({ data: { leadingProjects:_.push(event.projectId) } }); }<file_sep>// pages/personalInfo/myRequests/myRequests.js var app = getApp(); var util = require("../../../utils.js"); Page({ data: { requests: [], requestId: 0, pageNumber:1, isCloudWorking:false }, onLoad: function(options) { wx.showLoading({ title: '加载中...', }) //先看看自己的hasNewRequest是否为true 然后再决定是否更新自己的hasNewRequest /* var pages = getCurrentPages(); var prevPage = pages[pages.length - 2]; //拿到上一个界面 即为personalInfo.js if (prevPage.data.hasNewRequest) { wx.cloud.callFunction({ name: "updateUserHasNew", data: { hasNewRequest: false, }, complete: res => { //修改完毕 console.log("修改hasNewMessages完毕", res); prevPage.setData({ hasNewRequest: false, }) } }) }*/ if(app.globalData.hasNewRequest){ wx.cloud.callFunction({ name: "updateUserHasNew", data: { hasNewRequest: false, }, complete: res => { //修改完毕 console.log("修改hasNewMessages完毕", res); app.globalData.hasNewRequest = false; } }) } const db = wx.cloud.database(); const _ = db.command; var that = this; db.collection("UserInfos").where({ openid: app.globalData.openid, }).field({ requests: true }).get({ complete: res => { console.log("第一次搜索",res.data[0].requests); var requests = res.data[0].requests; requests.sort((a, b) => { if (a.requestTimeStamp > b.requestTimeStamp) return -1; else return 1; }); console.log("排序完毕",requests); for (let i = 0; i < requests.length; i++) { if (!requests[i]) { continue; } requests[i].id = i; requests[i].requestFormatTime = util.formatTime(new Date(requests[i].requestTimeStamp)); db.collection("UserInfos").where({ openid: requests[i].requestOpenid, }).field({ name: true, avatarUrl: true }).get().then(res => { //console.log("第一个promise:", res); requests[i].requestUserName = res.data[0].name; requests[i].requestUserAvatarUrl = res.data[0].avatarUrl; //console.log("第二个promise开始前:request", requests[i]) return db.collection("Projects").doc(requests[i].requestProjectId).field({ projectName: true, }).get(); }).then(res => { //console.log("第二个promise:", res); requests[i].projectName = res.data.projectName; if (requests[i].requestStatus === "agreed" || requests[i].requestStatus === "rejected") { requests[i].agreedOrRejected = true; requests[i].textAfterTappingButton = requests[i].requestStatus === "agreed" ? "已同意" : "已拒绝"; } else { requests[i].agreedOrRejected = false; requests[i].textAfterTappingButton = ""; } that.data.requests[i] = (requests[i]); that.setData({ requests: that.data.requests, requestId: that.data.requestId + 1, }) //console.log("requests最终", that.data.requests); }) } wx.hideLoading(); return; } }) }, onReachBottom: function() { const db = wx.cloud.database(); const _ = db.command; var that = this; wx.showNavigationBarLoading(); db.collection("UserInfos").where({ openid: app.globalData.openid, }).limit(20).field({ requests: true }).skip(20 * that.data.pageNumber).get({ complete: res => { console.log("到底 搜索",res); if(res.data.length === 0){ console.log("没有更多了"); wx.hideNavigationBarLoading(); return; } var requests = res.data[0].requests; console.log("跳过", 20 * that.data.pageNumber); requests.sort((a, b) => { if (a.requestTimeStamp > b.requestTimeStamp) return -1; else return 1; }); for (let i = 0; i < requests.length; i++) { if (!requests[i]) { continue; } requests[i].id = i + 20 * that.data.pageNumber; requests[i].requestFormatTime = util.formatTime(new Date(requests[i].requestTimeStamp)); db.collection("UserInfos").where({ openid: requests[i].requestOpenid, }).field({ name: true, avatarUrl: true }).get().then(res => { //console.log("第一个promise:", res); requests[i].requestUserName = res.data[0].name; requests[i].requestUserAvatarUrl = res.data[0].avatarUrl; //console.log("第二个promise开始前:request", requests[i]) return db.collection("Projects").doc(requests[i].requestProjectId).field({ projectName: true, }).get(); }).then(res => { //console.log("第二个promise:", res); requests[i].projectName = res.data.projectName; if (requests[i].requestStatus === "agreed" || requests[i].requestStatus === "rejected") { requests[i].agreedOrRejected = true; requests[i].textAfterTappingButton = requests[i].requestStatus === "agreed" ? "已同意" : "已拒绝"; } else { requests[i].agreedOrRejected = false; requests[i].textAfterTappingButton = ""; } that.data.requests[i + 20 * that.data.pageNumber] = (requests[i]); that.setData({ requests: that.data.requests, requestId: that.data.requestId + 1, }) //console.log("requests最终", that.data.requests); }) } that.setData({ pageNumber:that.data.pageNumber + 1 }) wx.hideNavigationBarLoading(); return; } }) }, reject: function(e) { wx.showNavigationBarLoading(); console.log(e); if(this.data.isCloudWorking){ return; } this.setData({ isCloudWorking:true, }); var requestId = e.currentTarget.dataset.requestId; var request = this.data.requests[requestId]; var that = this; wx.cloud.callFunction({ name: "updateUserRequestStatus", data: { requestOpenid: request.requestOpenid, requestProjectId: request.requestProjectId, requestTimeStamp: request.requestTimeStamp, status: "rejected", }, complete: res => { wx.hideNavigationBarLoading(); console.log("拒绝完事了", res); //that.data.requests.splice(requestId, 1); that.data.requests[requestId].agreedOrRejected = true; that.data.requests[requestId].textAfterTappingButton = "已拒绝"; that.setData({ requests: that.data.requests, isCloudWorking:false, }); } }) }, agree: function(e) { wx.showNavigationBarLoading(); console.log(e); if (this.data.isCloudWorking) { return; } this.setData({ isCloudWorking: true, }); var requestId = e.currentTarget.dataset.requestId; var request = this.data.requests[requestId]; var that = this; //先检查这个项目人有没有满 若满则无法同意 const db = wx.cloud.database(); db.collection("Projects").doc(request.requestProjectId).field({ teamMemberNumber:true, workersOpenid:true, }).get({ complete:res=>{ if(res.data.teamMemberNumber - res.data.workersOpenid.length > 0){ //还有位置 可以加入 console.log("将要发送给云函数的request", request); wx.cloud.callFunction({ name: "updateUserRequestStatus", data: { requestOpenid: request.requestOpenid, requestProjectId: request.requestProjectId, requestTimeStamp: request.requestTimeStamp, status: "agreed", }, complete: res => { wx.hideNavigationBarLoading(); console.log("同意完事了", res); that.data.requests[requestId].agreedOrRejected = true; that.data.requests[requestId].textAfterTappingButton = "已同意"; that.setData({ requests: that.data.requests, isCloudWorking: false, }); } }) }else{ //没有位置了 wx.showModal({ title: '注意', content: '该项目已人满', showCancel:false, }); that.setData({ isCloudWorking: false, }); } } }) } })<file_sep>// 云函数入口文件 const cloud = require('wx-server-sdk') cloud.init() // 云函数入口函数 exports.main = async (event, context) => { var usernameToBeChecked = event.username; const db = cloud.database(); const _ = db.command; console.log(usernameToBeChecked) return await db.collection('UserInfos').where({ // gt 方法用于指定一个 "大于" 条件,此处 _.gt(30) 是一个 "大于 30" 的条件 name: _.eq(usernameToBeChecked) }).get();/*then(res=>{ if(res.data.length > 0){ console.log("isOccupied"); var isOccupied = true; return new Promise((resolve, reject) => { }) return {isOccupied}; }else{ var isOccupied = false; return isOccupied; } })*/ }<file_sep>var sliderWidth = 114; var util = require("../../utils.js"); var app = getApp(); Page({ data: { curId: 0, inputShowed: false, inputVal: "", userInfos: [], tabs: ["最热", "最新"], activeIndex: 0, sliderOffset: 0, sliderLeft: 0, userInfoChecked: false, //在打开主页之前是false 然后用云函数调用 根据openid查询用户信息 //检查之前不显示页面 检查完毕之后再显示页面内容 hotProjects: [], hotPageNumber: 1, latestProjects: [], latestPageNumber: 1, searchResults: [], isSearching: false, showSearchResults: false, searchCount: 0, searchResultPages: 0, animationMain:null, rotated:false, goodAt: ["设计", "编程", "测试", "策划", "美工", "文案"], goodAtItems: [{ name: '设计', value: '0', checked: true }, { name: '编程', value: '1', checked: true }, { name: '测试', value: '2', checked: true }, { name: '策划', value: '3', checked: true }, { name: '美工', value: '4', checked: true }, { name: '文案', value: '5', checked: true }, ], projectTypes: ["社科", "理科", "工科", "艺术"], projectTypeItems: [{ name: '社科', value: '0', checked: true }, { name: '理科', value: '1', checked: true }, { name: '工科', value: '2', checked: true }, { name: '艺术', value: '3', checked: true }, ], }, onLoad: function() { //navBar初始化 var that = this; wx.getSystemInfo({ success: function(res) { that.setData({ sliderLeft: 0, sliderOffset: 0, }); } }); //navBar初始化结束 //查看是否已经授权过了 若授权过了 就把userinfo加载进来 wx.getSetting({ success: res => { if (res.authSetting['scope.userInfo']) { // 已经授权,可以直接调用 getUserInfo 获取头像昵称,不会弹框 wx.getUserInfo({ success: res => { // 可以将 res 发送给后台解码出 unionId app.globalData.userInfo = res.userInfo } }) } else { //还没授权 app.globalData.userInfo = null } } }) var timer = setInterval(() => { if (app.globalData.userInfoChecked) { that.setData({ userInfoChecked: true, }) clearInterval(timer); } }, 50) //初始化最热的项目 var that = this; const db = wx.cloud.database(); db.collection("Projects").orderBy("watchedTimes", "desc").get({ //由于未指定limit 所以取了二十条 success: function(res) { res.data.forEach(function(item) { item.formatTime = util.formatTime(new Date(item.createTimeStamp)); }) that.setData({ hotProjects: that.data.hotProjects.concat(res.data) }) } }) //初始化最新的项目 db.collection("Projects").orderBy("createTimeStamp", "desc").get({ //由于未指定limit 所以取了二十条 success: function(res) { res.data.forEach(function(item) { item.formatTime = util.formatTime(new Date(item.createTimeStamp)); }) that.setData({ latestProjects: that.data.latestProjects.concat(res.data) }) } }) }, showInput: function() { this.setData({ inputShowed: true, showSearchResults: true, }); }, hideInput: function() { this.setData({ inputVal: "", inputShowed: false, searchResults:[], showSearchResults:false, searchResultPages:0, }); wx.hideLoading(); }, clearInput: function() { this.setData({ inputVal: "", inputShowed:true, searchResults:[], searchResultPages:0, }); }, inputTyping: function(e) { let currSearchCount = this.data.searchCount + 1; let currKeyword = e.detail.value; this.setData({ inputVal: currKeyword, searchResults:[], searchResultPages:0, searchCount: this.data.searchCount + 1 }); wx.showLoading({ title: '加载中', mask:true, }); //TODO:根据item.keyword来搜索信息 //如果上次的搜索没有结束 结束它并且开始新的搜索 //searchCount记录这是第几次搜索 在搜索结束时如果是最新的一次搜索 则把结果加入results if(currKeyword === ""){ this.setData({ searchResults:[], }); wx.hideLoading(); return; } this.searchKeyword(currKeyword, currSearchCount, this.data.searchResultPages); }, searchKeyword: function (keyword, searchCount, searchResultPages) { console.log("搜索的字符串为:", keyword); //发起异步网络请求 搜索这个人 //加入到userInfos中 this.setData({ isSearching: true, }) var that = this; //获取筛选条件 /* var goodAtItems = that.data.goodAtItems; var filtedGoodAtItems = goodAtItems.filter(each => { if (each.checked) { return true; } else return false; }); var goodAt = []; filtedGoodAtItems.forEach(each => { goodAt.push(each.name); }); var projectTypeItems = that.data.projectTypeItems; var filtedProjectTypeItems = projectTypeItems.filter(each => { if (each.checked) { return true; } else return false; }); var projectTypes = []; filtedProjectTypeItems.forEach(each => { projectTypes.push(each.name); }); */ console.log("搜索之前的searchResultPages",searchResultPages); var mission = wx.cloud.callFunction({ name: "search", data: { keyword: keyword, searchResultPages: searchResultPages //goodAt:goodAt, //projectTypes:projectTypes, }, complete: res => { console.log("搜索完成", res); if (searchCount === that.data.searchCount) { console.log("searchCount相等"); res.result.forEach(each => { each.id = that.data.curId; that.data.curId++; }); if(this.data.searchResultPages === 0){ that.setData({ curId: that.data.curId, searchResults: res.result }); }else{ that.setData({ curId: that.data.curId, searchResults: that.data.searchResults.concat(res.result), }); } console.log(that.data.searchResults); wx.hideLoading(); wx.hideNavigationBarLoading(); } } }); }, tabClick: function(e) { console.log(e.currentTarget.id) console.log(e.currentTarget.offsetLeft) this.setData({ sliderOffset: e.currentTarget.offsetLeft, activeIndex: e.currentTarget.id }); }, tap1: function(e) { console.log(e) }, _mainFloatingButtonEvent: function(e) { console.log("tapMainFloatingButton"); this.popp(); if (!app.globalData.isRegistered) { wx.navigateTo({ url: "../startPage", }) } else { wx.navigateTo({ url: "../editProject/editProject", }) } }, onPullDownRefresh: function(e) { //如果正在查看搜索项目的话 不要刷新任何东西 if(this.data.showSearchResults){ wx.stopPullDownRefresh(); return; } //初始化最热的项目 wx.showNavigationBarLoading(); this.setData({ hotProjects: [], hotPageNumber: 1, latestProjects: [], latestPageNumber: 1, }) var that = this; const db = wx.cloud.database(); var promise1 = db.collection("Projects").orderBy("watchedTimes", "desc").get() var promise2 = db.collection("Projects").orderBy("createTimeStamp", "desc").get() Promise.all([promise1, promise2]).then((results) => { console.log("两个都刷新完了", results) results.forEach((res) => { res.data.forEach(function(item) { item.formatTime = util.formatTime(new Date(item.createTimeStamp)); }) }); that.setData({ hotProjects: results[0].data, latestProjects: results[1].data, }); wx.hideNavigationBarLoading(); wx.stopPullDownRefresh(); }) }, onShow: function() { app.globalData.justShowStartPage = false; }, onReachBottom: function(e) { if (this.data.showSearchResults) { //在搜索界面的话 把当前的搜索往下进行十发 wx.showNavigationBarLoading(); this.setData({ searchResultPages: this.data.searchResultPages + 1 }); wx.showLoading({ title: '加载中', mask:true, }); this.searchKeyword(this.data.inputVal, this.data.searchCount,this.data.searchResultPages); //往下搜索一页 return; } wx.showNavigationBarLoading(); var that = this; const db = wx.cloud.database(); console.log("跳过", 20 * that.data.hotPageNumber); var promise1 = db.collection("Projects").orderBy("watchedTimes", "desc").skip(20 * that.data.hotPageNumber).get(); var promise2 = db.collection("Projects").orderBy("createTimeStamp", "desc").skip(20 * that.data.latestPageNumber).get(); Promise.all([promise1, promise2]).then((results) => { console.log("两个都刷新完了", results) if (results[0].data.length === 0) { //没有更多了 console.log("没有更多了"); wx.hideNavigationBarLoading(); return; } results.forEach((res) => { res.data.forEach(function(item) { item.formatTime = util.formatTime(new Date(item.createTimeStamp)); }) }); that.setData({ hotProjects: that.data.hotProjects.concat(results[0].data), hotPageNumber: that.data.hotPageNumber + 1, latestProjects: that.data.latestProjects.concat(results[1].data), latestPageNumber: that.data.latestPageNumber + 1, }); wx.hideNavigationBarLoading(); }) }, onFocus: function(e) { console.log("onFocus"); //this.setData({ // showSearchResults: true, //}); }, onBlur: function(e) { wx.hideLoading(); }, clickSearchResult:function(e){ console.log("点击了搜索项",e); wx.navigateTo({ url: e.currentTarget.dataset.url, }); }, popp: function () { //main按钮顺时针旋转 var animationMain = wx.createAnimation({ duration: 500, timingFunction: 'ease-out' }) if(!this.data.rotated){ animationMain.rotateZ(90).step(); this.setData({ rotated:true }) }else{ animationMain.rotateZ(0).step(); this.setData({ rotated: false }) } this.setData({ animationMain: animationMain.export(), }) }, checkButton:function(e){ console.log("点击了选项按钮",e); if(e.currentTarget.dataset.projectType){ console.log(this.data.projectTypes.indexOf(e.currentTarget.dataset.projectType)); this.setData({ inputVal: e.currentTarget.dataset.projectType }); //模拟出一个输入事件 来触发inputTyping事件 var e = {}; e.detail = {}; e.detail.value = this.data.inputVal; this.inputTyping(e); /* this.data.projectTypeItems[this.data.projectTypes.indexOf(e.currentTarget.dataset.projectType)].checked = this.data.projectTypeItems[this.data.projectTypes.indexOf(e.currentTarget.dataset.projectType)].checked ? false : true; this.setData({ projectTypeItems:this.data.projectTypeItems })*/ }else if(e.currentTarget.dataset.goodAt){ console.log(this.data.goodAt.indexOf(e.currentTarget.dataset.goodAt)); this.setData({ inputVal: e.currentTarget.dataset.goodAt }); //模拟出一个输入事件 来触发inputTyping事件 var e = {}; e.detail = {}; e.detail.value = this.data.inputVal; this.inputTyping(e); /* this.data.goodAtItems[this.data.goodAt.indexOf(e.currentTarget.dataset.goodAt)].checked = this.data.goodAtItems[this.data.goodAt.indexOf(e.currentTarget.dataset.goodAt)].checked ? false : true; this.setData({ goodAtItems: this.data.goodAtItems }) */ } } })<file_sep>// 云函数入口文件 const cloud = require('wx-server-sdk') cloud.init() // 云函数入口函数 exports.main = async (event, context) => { var { OPENID, APPID, UNIONID } = cloud.getWXContext(); const db = cloud.database(); const _ = db.command; return await db.collection('UserInfos').where({ // gt 方法用于指定一个 "大于" 条件,此处 _.gt(30) 是一个 "大于 30" 的条件 openid: _.eq(OPENID) }).get(); }<file_sep>// pages/checkPerson/checkPerson.js var app = getApp(); Page({ data: { userOpenid: "", userInfo: {}, messageInputLength: 0, messageInput: "", showTopTips: false, tipMessage: "留言不能为空", isMyself:true, }, onLoad: function(options) { this.setData({ userOpenid: options.openid, }) var that = this; if(that.data.userOpenid === app.globalData.openid){ //是自己 that.setData({ isMyself:false, }) }else{ that.setData({ isMyself:false, }) } console.log(options); const db = wx.cloud.database(); const _ = db.command; var that = this; db.collection("UserInfos").where({ openid: options.openid, }).field({ nickName:true, sex:true, telNumber:true, major:true, grade:true, leadingProjects:true, participatingProjects:true, goodAt:true, avatarUrl:true, studentId:true, }).get().then(res => { console.log(res); that.setData({ userInfo: res.data[0] }) }) }, onMessageInput: function(e) { console.log(e); this.setData({ messageInput: e.detail.value, messageInputLength: e.detail.value.length, }) }, sendMessage: function(e) { wx.showLoading({ title: '发送中', mask: true, }) if (!app.globalData.isRegistered) { //如果没有注册的话 就没法留言 wx.hideLoading(); wx.showModal({ title: '注意', content: '请您先注册,再给Ta留言', success:res=>{ if(res.confirm){ wx.navigateTo({ url: '../startPage', }); return; }else{ return; } } }) } else { var that = this; if (this.data.messageInput === "") { wx.hideLoading(); this.setData({ showTopTips: true, }); setTimeout(() => { that.setData({ showTopTips: false, }) }, 2000); return; } else { //留言不为空 发送给这个人 wx.cloud.callFunction({ name: "updateUserLeftMessages", data: { openid: that.data.userOpenid, messageContent: that.data.messageInput, sendTimeStamp: Date.now(), }, complete: (res) => { console.log("发送留言完毕", res); wx.hideLoading(); wx.showToast({ title: '发送完毕', }) } }) } } } })<file_sep>// pages/personalInfo/projects/projects.js var app = getApp(); Page({ data: { hasNewParticipatingProjects:false }, onLoad: function (options) { }, onShow: function () { this.setData({ hasNewParticipatingProjects:app.globalData.hasNewParticipatingProjects }) }, publishNewProjectButton: function (e) { wx.navigateTo({ url: '../../editProject/editProject', }) } })<file_sep>App({ globalData: { userInfoWithOpenId: null, userInfo: null, openid: "", isRegistered: false, hasNewParticipatingProjects: false, hasNewRequest: false, hasNewMessages: false }, onLaunch: function() { wx.showLoading({ title: '加载中', mask: true }) //云端初始化 wx.cloud.init(); //登录微信 //获取openid var that = this; wx.login({ success: function(res) { if (res.code) { wx.cloud.callFunction({ name: "getOpenid", complete: res => { console.log('callFunction test result: ', res); var OPENID = res.result.OPENID; console.log(OPENID); that.globalData.openid = OPENID; } }) } }, fail: function(res) { wx.hideLoading(); wx.showModal({ title: '登录微信失败', content: '请检查你的网络连接', showCancel: false }) } }) //获取完毕 //根据openid查询用户信息 可能没有注册过 也可能注册过 //TODO:若注册过 则修改几个按钮的行为 var that = this; wx.cloud.callFunction({ name: "getUserInfoWithOpenId", complete: res => { if (res.result.data.length === 1) { that.globalData.userInfoWithOpenId = res.result.data[0]; that.globalData.isRegistered = true; console.log(res.result.data[0]); //若用户注册过 则设置一个interval 每隔固定时间 检查自己是否有新消息 setInterval(() => { var that = this; const db = wx.cloud.database(); db.collection("UserInfos").where({ openid: that.globalData.openid, }).field({ hasNewParticipatingProjects: true, hasNewMessages: true, hasNewRequest: true, }).get({ success: res => { console.log("查询有无hasNewParticipatingProjects和hasNewMessages完毕", res.data[0]); that.globalData.hasNewParticipatingProjects = res.data[0].hasNewParticipatingProjects; that.globalData.hasNewMessages = res.data[0].hasNewMessages; that.globalData.hasNewRequest = res.data[0].hasNewRequest; }, fail: res => { console.log("查询失败"); } }) }, 3000) } else { that.globalData.isRegistered = false; that.globalData.userInfoWithOpenId = null; console.log("用户未注册"); } that.globalData.userInfoChecked = true; wx.hideLoading(); } }); } })
7bdbe0ee4b9ea665b3ef1a484083c022d17b7bb7
[ "JavaScript" ]
21
JavaScript
yzchnb/projectHub
601f6351514f92e8abd5c0fc423d57fcc004676f
de8fd55a343b6aa02167528ac3e3de295abb531f
refs/heads/master
<repo_name>onkarkadam7/gardener<file_sep>/plugin/pkg/shoot/validator/admission.go // Copyright 2018 The Gardener Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package validator import ( "errors" "fmt" "io" "net" "github.com/gardener/gardener/pkg/apis/garden" "github.com/gardener/gardener/pkg/apis/garden/helper" admissioninitializer "github.com/gardener/gardener/pkg/apiserver/admission/initializer" informers "github.com/gardener/gardener/pkg/client/garden/informers/internalversion" listers "github.com/gardener/gardener/pkg/client/garden/listers/garden/internalversion" apierrors "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/util/validation/field" "k8s.io/apiserver/pkg/admission" ) // Register registers a plugin. func Register(plugins *admission.Plugins) { plugins.Register("ShootValidator", func(config io.Reader) (admission.Interface, error) { return New() }) } // ValidateShoot contains listers and and admission handler. type ValidateShoot struct { *admission.Handler cloudProfileLister listers.CloudProfileLister seedLister listers.SeedLister } var _ = admissioninitializer.WantsInternalGardenInformerFactory(&ValidateShoot{}) // New creates a new ValidateShoot admission plugin. func New() (*ValidateShoot, error) { return &ValidateShoot{ Handler: admission.NewHandler(admission.Create), }, nil } // SetInternalGardenInformerFactory gets Lister from SharedInformerFactory. func (h *ValidateShoot) SetInternalGardenInformerFactory(f informers.SharedInformerFactory) { h.cloudProfileLister = f.Garden().InternalVersion().CloudProfiles().Lister() h.seedLister = f.Garden().InternalVersion().Seeds().Lister() } // ValidateInitialization checks whether the plugin was correctly initialized. func (h *ValidateShoot) ValidateInitialization() error { if h.cloudProfileLister == nil { return errors.New("missing cloudProfile lister") } if h.seedLister == nil { return errors.New("missing seed lister") } return nil } // Admit ensures that the object in-flight is of kind Shoot. // In addition it checks that the request resources are within the quota limits. func (h *ValidateShoot) Admit(a admission.Attributes) error { // Wait until the caches have been synced if !h.WaitForReady() { return admission.NewForbidden(a, errors.New("not yet ready to handle request")) } // Ignore all kinds other than Shoot if a.GetKind().GroupKind() != garden.Kind("Shoot") { return nil } shoot, ok := a.GetObject().(*garden.Shoot) if !ok { return apierrors.NewBadRequest("could not convert resource into Shoot object") } cloudProfile, err := h.cloudProfileLister.Get(shoot.Spec.Cloud.Profile) if err != nil { return apierrors.NewBadRequest("could not find referenced cloud profile") } seed, err := h.seedLister.Get(*shoot.Spec.Cloud.Seed) if err != nil { return apierrors.NewBadRequest("could not find referenced seed") } cloudProviderInShoot, err := helper.DetermineCloudProviderInShoot(shoot.Spec.Cloud) if err != nil { return apierrors.NewBadRequest("could not find identify the cloud provider kind in the Shoot resource") } cloudProviderInProfile, err := helper.DetermineCloudProviderInProfile(cloudProfile.Spec) if err != nil { return apierrors.NewBadRequest("could not find identify the cloud provider kind in the referenced cloud profile") } if cloudProviderInShoot != cloudProviderInProfile { return apierrors.NewBadRequest("cloud provider in shoot is not equal to cloud provder in profile") } var allErrs field.ErrorList switch cloudProviderInShoot { case garden.CloudProviderAWS: allErrs = validateAWS(cloudProfile, seed, shoot) case garden.CloudProviderAzure: allErrs = validateAzure(cloudProfile, seed, shoot) case garden.CloudProviderGCP: allErrs = validateGCP(cloudProfile, seed, shoot) case garden.CloudProviderOpenStack: allErrs = validateOpenStack(cloudProfile, seed, shoot) } if len(allErrs) > 0 { return admission.NewForbidden(a, fmt.Errorf("%+v", allErrs)) } return nil } // Cloud specific validation func validateAWS(cloudProfile *garden.CloudProfile, seed *garden.Seed, shoot *garden.Shoot) field.ErrorList { var ( allErrs field.ErrorList path = field.NewPath("spec", "cloud", "aws") ) if yes := networksIntersect(seed.Spec.Networks.Nodes, shoot.Spec.Cloud.AWS.Networks.K8SNetworks.Nodes); yes { allErrs = append(allErrs, field.Invalid(path.Child("networks", "nodes"), shoot.Spec.Cloud.AWS.Networks.K8SNetworks.Nodes, "shoot node network intersects with seed node network")) } if yes := networksIntersect(seed.Spec.Networks.Pods, shoot.Spec.Cloud.AWS.Networks.K8SNetworks.Pods); yes { allErrs = append(allErrs, field.Invalid(path.Child("networks", "nodes"), shoot.Spec.Cloud.AWS.Networks.K8SNetworks.Pods, "shoot pod network intersects with seed pod network")) } if yes := networksIntersect(seed.Spec.Networks.Services, shoot.Spec.Cloud.AWS.Networks.K8SNetworks.Services); yes { allErrs = append(allErrs, field.Invalid(path.Child("networks", "nodes"), shoot.Spec.Cloud.AWS.Networks.K8SNetworks.Services, "shoot service network intersects with seed service network")) } if ok, validDNSProviders := validateDNSConstraints(cloudProfile.Spec.AWS.Constraints.DNSProviders, shoot.Spec.DNS.Provider); !ok { allErrs = append(allErrs, field.NotSupported(field.NewPath("spec", "dns", "provider"), shoot.Spec.DNS.Provider, validDNSProviders)) } if ok, validKubernetesVersions := validateKubernetesVersionConstraints(cloudProfile.Spec.AWS.Constraints.Kubernetes.Versions, shoot.Spec.Kubernetes.Version); !ok { allErrs = append(allErrs, field.NotSupported(field.NewPath("spec", "kubernetes", "version"), shoot.Spec.Kubernetes.Version, validKubernetesVersions)) } for i, worker := range shoot.Spec.Cloud.AWS.Workers { idxPath := path.Child("workers").Index(i) if ok, validMachineTypes := validateMachineTypes(cloudProfile.Spec.AWS.Constraints.MachineTypes, worker.MachineType); !ok { allErrs = append(allErrs, field.NotSupported(idxPath.Child("machineType"), worker.MachineType, validMachineTypes)) } if ok, validVolumeTypes := validateVolumeTypes(cloudProfile.Spec.AWS.Constraints.VolumeTypes, worker.VolumeType); !ok { allErrs = append(allErrs, field.NotSupported(idxPath.Child("volumeType"), worker.VolumeType, validVolumeTypes)) } } for i, zone := range shoot.Spec.Cloud.AWS.Zones { idxPath := path.Child("zones").Index(i) if ok, validZones := validateZones(cloudProfile.Spec.AWS.Constraints.Zones, shoot.Spec.Cloud.Region, zone); !ok { if len(validZones) == 0 { allErrs = append(allErrs, field.Invalid(idxPath, shoot.Spec.Cloud.Region, "this region is not allowed")) } else { allErrs = append(allErrs, field.NotSupported(idxPath, zone, validZones)) } } } if ok := validateAWSMachineImage(cloudProfile.Spec.AWS.MachineImages, shoot.Spec.Cloud.Region); !ok { allErrs = append(allErrs, field.Invalid(field.NewPath("spec", "cloud", "region"), shoot.Spec.Cloud.Region, "no machine image known for this region")) } return allErrs } func validateAzure(cloudProfile *garden.CloudProfile, seed *garden.Seed, shoot *garden.Shoot) field.ErrorList { var ( allErrs field.ErrorList path = field.NewPath("spec", "cloud", "azure") ) if yes := networksIntersect(seed.Spec.Networks.Nodes, shoot.Spec.Cloud.Azure.Networks.K8SNetworks.Nodes); yes { allErrs = append(allErrs, field.Invalid(path.Child("networks", "nodes"), shoot.Spec.Cloud.Azure.Networks.K8SNetworks.Nodes, "shoot node network intersects with seed node network")) } if yes := networksIntersect(seed.Spec.Networks.Pods, shoot.Spec.Cloud.Azure.Networks.K8SNetworks.Pods); yes { allErrs = append(allErrs, field.Invalid(path.Child("networks", "nodes"), shoot.Spec.Cloud.Azure.Networks.K8SNetworks.Pods, "shoot pod network intersects with seed pod network")) } if yes := networksIntersect(seed.Spec.Networks.Services, shoot.Spec.Cloud.Azure.Networks.K8SNetworks.Services); yes { allErrs = append(allErrs, field.Invalid(path.Child("networks", "nodes"), shoot.Spec.Cloud.Azure.Networks.K8SNetworks.Services, "shoot service network intersects with seed service network")) } if ok, validDNSProviders := validateDNSConstraints(cloudProfile.Spec.Azure.Constraints.DNSProviders, shoot.Spec.DNS.Provider); !ok { allErrs = append(allErrs, field.NotSupported(field.NewPath("spec", "dns", "provider"), shoot.Spec.DNS.Provider, validDNSProviders)) } if ok, validKubernetesVersions := validateKubernetesVersionConstraints(cloudProfile.Spec.Azure.Constraints.Kubernetes.Versions, shoot.Spec.Kubernetes.Version); !ok { allErrs = append(allErrs, field.NotSupported(field.NewPath("spec", "kubernetes", "version"), shoot.Spec.Kubernetes.Version, validKubernetesVersions)) } for i, worker := range shoot.Spec.Cloud.Azure.Workers { idxPath := path.Child("workers").Index(i) if ok, validMachineTypes := validateMachineTypes(cloudProfile.Spec.Azure.Constraints.MachineTypes, worker.MachineType); !ok { allErrs = append(allErrs, field.NotSupported(idxPath.Child("machineType"), worker.MachineType, validMachineTypes)) } if ok, validVolumeTypes := validateVolumeTypes(cloudProfile.Spec.Azure.Constraints.VolumeTypes, worker.VolumeType); !ok { allErrs = append(allErrs, field.NotSupported(idxPath.Child("volumeType"), worker.VolumeType, validVolumeTypes)) } } if ok := validateAzureDomainCount(cloudProfile.Spec.Azure.CountFaultDomains, shoot.Spec.Cloud.Region); !ok { allErrs = append(allErrs, field.Invalid(field.NewPath("spec", "cloud", "region"), shoot.Spec.Cloud.Region, "no fault domain count known for this region")) } if ok := validateAzureDomainCount(cloudProfile.Spec.Azure.CountUpdateDomains, shoot.Spec.Cloud.Region); !ok { allErrs = append(allErrs, field.Invalid(field.NewPath("spec", "cloud", "region"), shoot.Spec.Cloud.Region, "no update domain count known for this region")) } return allErrs } func validateGCP(cloudProfile *garden.CloudProfile, seed *garden.Seed, shoot *garden.Shoot) field.ErrorList { var ( allErrs field.ErrorList path = field.NewPath("spec", "cloud", "gcp") ) if yes := networksIntersect(seed.Spec.Networks.Nodes, shoot.Spec.Cloud.GCP.Networks.K8SNetworks.Nodes); yes { allErrs = append(allErrs, field.Invalid(path.Child("networks", "nodes"), shoot.Spec.Cloud.GCP.Networks.K8SNetworks.Nodes, "shoot node network intersects with seed node network")) } if yes := networksIntersect(seed.Spec.Networks.Pods, shoot.Spec.Cloud.GCP.Networks.K8SNetworks.Pods); yes { allErrs = append(allErrs, field.Invalid(path.Child("networks", "nodes"), shoot.Spec.Cloud.GCP.Networks.K8SNetworks.Pods, "shoot pod network intersects with seed pod network")) } if yes := networksIntersect(seed.Spec.Networks.Services, shoot.Spec.Cloud.GCP.Networks.K8SNetworks.Services); yes { allErrs = append(allErrs, field.Invalid(path.Child("networks", "nodes"), shoot.Spec.Cloud.GCP.Networks.K8SNetworks.Services, "shoot service network intersects with seed service network")) } if ok, validDNSProviders := validateDNSConstraints(cloudProfile.Spec.GCP.Constraints.DNSProviders, shoot.Spec.DNS.Provider); !ok { allErrs = append(allErrs, field.NotSupported(field.NewPath("spec", "dns", "provider"), shoot.Spec.DNS.Provider, validDNSProviders)) } if ok, validKubernetesVersions := validateKubernetesVersionConstraints(cloudProfile.Spec.GCP.Constraints.Kubernetes.Versions, shoot.Spec.Kubernetes.Version); !ok { allErrs = append(allErrs, field.NotSupported(field.NewPath("spec", "kubernetes", "version"), shoot.Spec.Kubernetes.Version, validKubernetesVersions)) } for i, worker := range shoot.Spec.Cloud.GCP.Workers { idxPath := path.Child("workers").Index(i) if ok, validMachineTypes := validateMachineTypes(cloudProfile.Spec.GCP.Constraints.MachineTypes, worker.MachineType); !ok { allErrs = append(allErrs, field.NotSupported(idxPath.Child("machineType"), worker.MachineType, validMachineTypes)) } if ok, validVolumeTypes := validateVolumeTypes(cloudProfile.Spec.GCP.Constraints.VolumeTypes, worker.VolumeType); !ok { allErrs = append(allErrs, field.NotSupported(idxPath.Child("volumeType"), worker.VolumeType, validVolumeTypes)) } } for i, zone := range shoot.Spec.Cloud.GCP.Zones { idxPath := path.Child("zones").Index(i) if ok, validZones := validateZones(cloudProfile.Spec.GCP.Constraints.Zones, shoot.Spec.Cloud.Region, zone); !ok { if len(validZones) == 0 { allErrs = append(allErrs, field.Invalid(idxPath, shoot.Spec.Cloud.Region, "this region is not allowed")) } else { allErrs = append(allErrs, field.NotSupported(idxPath, zone, validZones)) } } } return allErrs } func validateOpenStack(cloudProfile *garden.CloudProfile, seed *garden.Seed, shoot *garden.Shoot) field.ErrorList { var ( allErrs field.ErrorList path = field.NewPath("spec", "cloud", "openstack") ) if yes := networksIntersect(seed.Spec.Networks.Nodes, shoot.Spec.Cloud.OpenStack.Networks.K8SNetworks.Nodes); yes { allErrs = append(allErrs, field.Invalid(path.Child("networks", "nodes"), shoot.Spec.Cloud.OpenStack.Networks.K8SNetworks.Nodes, "shoot node network intersects with seed node network")) } if yes := networksIntersect(seed.Spec.Networks.Pods, shoot.Spec.Cloud.OpenStack.Networks.K8SNetworks.Pods); yes { allErrs = append(allErrs, field.Invalid(path.Child("networks", "nodes"), shoot.Spec.Cloud.OpenStack.Networks.K8SNetworks.Pods, "shoot pod network intersects with seed pod network")) } if yes := networksIntersect(seed.Spec.Networks.Services, shoot.Spec.Cloud.OpenStack.Networks.K8SNetworks.Services); yes { allErrs = append(allErrs, field.Invalid(path.Child("networks", "nodes"), shoot.Spec.Cloud.OpenStack.Networks.K8SNetworks.Services, "shoot service network intersects with seed service network")) } if ok, validDNSProviders := validateDNSConstraints(cloudProfile.Spec.OpenStack.Constraints.DNSProviders, shoot.Spec.DNS.Provider); !ok { allErrs = append(allErrs, field.NotSupported(field.NewPath("spec", "dns", "provider"), shoot.Spec.DNS.Provider, validDNSProviders)) } if ok, validFloatingPools := validateFloatingPoolConstraints(cloudProfile.Spec.OpenStack.Constraints.FloatingPools, shoot.Spec.Cloud.OpenStack.FloatingPoolName); !ok { allErrs = append(allErrs, field.NotSupported(path.Child("floatingPoolName"), shoot.Spec.Cloud.OpenStack.FloatingPoolName, validFloatingPools)) } if ok, validKubernetesVersions := validateKubernetesVersionConstraints(cloudProfile.Spec.OpenStack.Constraints.Kubernetes.Versions, shoot.Spec.Kubernetes.Version); !ok { allErrs = append(allErrs, field.NotSupported(field.NewPath("spec", "kubernetes", "version"), shoot.Spec.Kubernetes.Version, validKubernetesVersions)) } if ok, validLoadBalancerProviders := validateLoadBalancerProviderConstraints(cloudProfile.Spec.OpenStack.Constraints.LoadBalancerProviders, shoot.Spec.Cloud.OpenStack.LoadBalancerProvider); !ok { allErrs = append(allErrs, field.NotSupported(path.Child("floatingPoolName"), shoot.Spec.Cloud.OpenStack.LoadBalancerProvider, validLoadBalancerProviders)) } for i, worker := range shoot.Spec.Cloud.OpenStack.Workers { idxPath := path.Child("workers").Index(i) if ok, validMachineTypes := validateMachineTypes(cloudProfile.Spec.OpenStack.Constraints.MachineTypes, worker.MachineType); !ok { allErrs = append(allErrs, field.NotSupported(idxPath.Child("machineType"), worker.MachineType, validMachineTypes)) } } for i, zone := range shoot.Spec.Cloud.OpenStack.Zones { idxPath := path.Child("zones").Index(i) if ok, validZones := validateZones(cloudProfile.Spec.OpenStack.Constraints.Zones, shoot.Spec.Cloud.Region, zone); !ok { if len(validZones) == 0 { allErrs = append(allErrs, field.Invalid(idxPath, shoot.Spec.Cloud.Region, "this region is not allowed")) } else { allErrs = append(allErrs, field.NotSupported(idxPath, zone, validZones)) } } } return allErrs } // Helper functions func networksIntersect(cidr1, cidr2 garden.CIDR) bool { _, net1, err1 := net.ParseCIDR(string(cidr1)) _, net2, err2 := net.ParseCIDR(string(cidr2)) return err1 != nil || err2 != nil || net2.Contains(net1.IP) || net1.Contains(net2.IP) } func validateDNSConstraints(constraints []garden.DNSProviderConstraint, provider garden.DNSProvider) (bool, []string) { var ( validValues = []string{} ok = false ) for _, p := range constraints { validValues = append(validValues, string(p.Name)) if p.Name == provider { ok = true } } return ok, validValues } func validateKubernetesVersionConstraints(constraints []string, version string) (bool, []string) { var ( validValues = []string{} ok = false ) for _, v := range constraints { validValues = append(validValues, v) if v == version { ok = true } } return ok, validValues } func validateMachineTypes(constraints []garden.MachineType, machineType string) (bool, []string) { var ( validValues = []string{} ok = false ) for _, t := range constraints { validValues = append(validValues, t.Name) if t.Name == machineType { ok = true } } return ok, validValues } func validateVolumeTypes(constraints []garden.VolumeType, volumeType string) (bool, []string) { var ( validValues = []string{} ok = false ) for _, v := range constraints { validValues = append(validValues, v.Name) if v.Name == volumeType { ok = true } } return ok, validValues } func validateZones(constraints []garden.Zone, region, zone string) (bool, []string) { var ( validValues = []string{} ok = false ) for _, z := range constraints { if z.Region == region { for _, n := range z.Names { validValues = append(validValues, n) if n == zone { ok = true } } } } return ok, validValues } func validateAWSMachineImage(images []garden.AWSMachineImage, region string) bool { for _, i := range images { if i.Region == region { return true } } return false } func validateAzureDomainCount(count []garden.AzureDomainCount, region string) bool { for _, c := range count { if c.Region == region { return true } } return false } func validateFloatingPoolConstraints(pools []garden.OpenStackFloatingPool, pool string) (bool, []string) { var ( validValues = []string{} ok = false ) for _, p := range pools { validValues = append(validValues, p.Name) if p.Name == pool { ok = true } } return ok, validValues } func validateLoadBalancerProviderConstraints(providers []garden.OpenStackLoadBalancerProvider, provider string) (bool, []string) { var ( validValues = []string{} ok = false ) for _, p := range providers { validValues = append(validValues, p.Name) if p.Name == provider { ok = true } } return ok, validValues } <file_sep>/plugin/pkg/shoot/seedfinder/admission_test.go // Copyright 2018 The Gardener Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package seedfinder_test import ( "github.com/gardener/gardener/pkg/apis/garden" gardeninformers "github.com/gardener/gardener/pkg/client/garden/informers/internalversion" . "github.com/gardener/gardener/plugin/pkg/shoot/seedfinder" corev1 "k8s.io/api/core/v1" apierrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apiserver/pkg/admission" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) var _ = Describe("seedfinder", func() { Describe("#Admit", func() { var ( admissionHandler *Finder gardenInformerFactory gardeninformers.SharedInformerFactory seed garden.Seed shoot garden.Shoot cloudProfileName = "cloudprofile-1" seedName = "seed-1" region = "europe" seedBase = garden.Seed{ ObjectMeta: metav1.ObjectMeta{ Name: seedName, }, Spec: garden.SeedSpec{ Cloud: garden.SeedCloud{ Profile: cloudProfileName, Region: region, }, }, Status: garden.SeedStatus{ Conditions: []garden.Condition{ { Type: garden.SeedAvailable, Status: corev1.ConditionTrue, }, }, }, } shootBase = garden.Shoot{ ObjectMeta: metav1.ObjectMeta{ Name: "shoot", Namespace: "my-namespace", }, Spec: garden.ShootSpec{ Cloud: garden.Cloud{ Profile: cloudProfileName, Region: region, }, }, } ) BeforeEach(func() { admissionHandler, _ = New() gardenInformerFactory = gardeninformers.NewSharedInformerFactory(nil, 0) admissionHandler.SetInternalGardenInformerFactory(gardenInformerFactory) seed = seedBase shoot = shootBase }) It("should do nothing because the shoot already references a seed", func() { shoot.Spec.Cloud.Seed = &seedName attrs := admission.NewAttributesRecord(&shoot, nil, garden.Kind("Shoot").WithVersion("version"), shoot.Namespace, shoot.Name, garden.Resource("shoots").WithVersion("version"), "", admission.Create, nil) err := admissionHandler.Admit(attrs) Expect(err).NotTo(HaveOccurred()) Expect(*shoot.Spec.Cloud.Seed).To(Equal(seedName)) }) It("should find a seed cluster referencing the same profile and region and indicating availability", func() { shoot.Spec.Cloud.Seed = nil gardenInformerFactory.Garden().InternalVersion().Seeds().Informer().GetStore().Add(&seed) attrs := admission.NewAttributesRecord(&shoot, nil, garden.Kind("Shoot").WithVersion("version"), shoot.Namespace, shoot.Name, garden.Resource("shoots").WithVersion("version"), "", admission.Create, nil) err := admissionHandler.Admit(attrs) Expect(err).NotTo(HaveOccurred()) Expect(*shoot.Spec.Cloud.Seed).To(Equal(seedName)) }) It("should fail because it cannot find a seed cluster due to invalid region", func() { shoot.Spec.Cloud.Seed = nil shoot.Spec.Cloud.Region = "another-region" gardenInformerFactory.Garden().InternalVersion().Seeds().Informer().GetStore().Add(&seed) attrs := admission.NewAttributesRecord(&shoot, nil, garden.Kind("Shoot").WithVersion("version"), shoot.Namespace, shoot.Name, garden.Resource("shoots").WithVersion("version"), "", admission.Create, nil) err := admissionHandler.Admit(attrs) Expect(err).To(HaveOccurred()) Expect(apierrors.IsForbidden(err)).To(BeTrue()) Expect(shoot.Spec.Cloud.Seed).To(BeNil()) }) It("should fail because it cannot find a seed cluster due to invalid profile", func() { shoot.Spec.Cloud.Seed = nil shoot.Spec.Cloud.Profile = "another-profile" gardenInformerFactory.Garden().InternalVersion().Seeds().Informer().GetStore().Add(&seed) attrs := admission.NewAttributesRecord(&shoot, nil, garden.Kind("Shoot").WithVersion("version"), shoot.Namespace, shoot.Name, garden.Resource("shoots").WithVersion("version"), "", admission.Create, nil) err := admissionHandler.Admit(attrs) Expect(err).To(HaveOccurred()) Expect(apierrors.IsForbidden(err)).To(BeTrue()) Expect(shoot.Spec.Cloud.Seed).To(BeNil()) }) It("should fail because it cannot find a seed cluster due to unavailability", func() { shoot.Spec.Cloud.Seed = nil seed.Status.Conditions = []garden.Condition{ { Type: garden.SeedAvailable, Status: corev1.ConditionFalse, }, } gardenInformerFactory.Garden().InternalVersion().Seeds().Informer().GetStore().Add(&seed) attrs := admission.NewAttributesRecord(&shoot, nil, garden.Kind("Shoot").WithVersion("version"), shoot.Namespace, shoot.Name, garden.Resource("shoots").WithVersion("version"), "", admission.Create, nil) err := admissionHandler.Admit(attrs) Expect(err).To(HaveOccurred()) Expect(apierrors.IsForbidden(err)).To(BeTrue()) Expect(shoot.Spec.Cloud.Seed).To(BeNil()) }) }) }) <file_sep>/pkg/client/kubernetes/base/seeds.go // Copyright 2018 The Gardener Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package kubernetesbase import ( gardenv1beta1 "github.com/gardener/gardener/pkg/apis/garden/v1beta1" apierrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // CreateSeed creates a new Seed resource. func (c *Client) CreateSeed(seed *gardenv1beta1.Seed) (*gardenv1beta1.Seed, error) { newSeed, err := c.GardenClientset.GardenV1beta1().Seeds().Create(seed) if apierrors.IsAlreadyExists(err) { return c.UpdateSeed(seed) } return newSeed, err } // GetSeed returns a Seed resource. func (c *Client) GetSeed(name string) (*gardenv1beta1.Seed, error) { return c.GardenClientset.GardenV1beta1().Seeds().Get(name, metav1.GetOptions{}) } // UpdateSeed update an existing Seed resource. func (c *Client) UpdateSeed(seed *gardenv1beta1.Seed) (*gardenv1beta1.Seed, error) { return c.GardenClientset.GardenV1beta1().Seeds().Update(seed) } // UpdateSeedStatus update an existing Seed resource's status. func (c *Client) UpdateSeedStatus(seed *gardenv1beta1.Seed) (*gardenv1beta1.Seed, error) { return c.GardenClientset.GardenV1beta1().Seeds().UpdateStatus(seed) } // DeleteSeed deletes an existing Seed resource. func (c *Client) DeleteSeed(name string) error { return c.GardenClientset.GardenV1beta1().Seeds().Delete(name, &defaultDeleteOptions) } <file_sep>/pkg/operation/cloudbotanist/awsbotanist/controlplane.go // Copyright 2018 The Gardener Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package awsbotanist import ( "path/filepath" "github.com/gardener/gardener/pkg/operation/common" "github.com/gardener/gardener/pkg/operation/terraformer" ) // GenerateCloudProviderConfig generates the AWS cloud provider config. // See this for more details: // https://github.com/kubernetes/kubernetes/blob/release-1.7/pkg/cloudprovider/providers/aws/aws.go#L399-L444 func (b *AWSBotanist) GenerateCloudProviderConfig() (string, error) { var ( vpcID = "vpc_id" subnetID = "subnet_id" ) stateVariables, err := terraformer.New(b.Operation, common.TerraformerPurposeInfra).GetStateOutputVariables(vpcID, subnetID) if err != nil { return "", err } return `[Global] VPC = ` + stateVariables[vpcID] + ` SubnetID = ` + stateVariables[subnetID] + ` DisableSecurityGroupIngress = true KubernetesClusterTag = ` + b.Shoot.SeedNamespace + ` KubernetesClusterID = ` + b.Shoot.SeedNamespace + ` Zone = ` + b.Shoot.Info.Spec.Cloud.AWS.Zones[0], nil } // GenerateKubeAPIServerConfig generates the cloud provider specific values which are required to render the // Deployment manifest of the kube-apiserver properly. func (b *AWSBotanist) GenerateKubeAPIServerConfig() (map[string]interface{}, error) { return map[string]interface{}{ "environment": getAWSCredentialsEnvironment(), }, nil } // GenerateKubeControllerManagerConfig generates the cloud provider specific values which are required to // render the Deployment manifest of the kube-controller-manager properly. func (b *AWSBotanist) GenerateKubeControllerManagerConfig() (map[string]interface{}, error) { return map[string]interface{}{ "configureRoutes": false, "environment": getAWSCredentialsEnvironment(), }, nil } // GenerateKubeSchedulerConfig generates the cloud provider specific values which are required to render the // Deployment manifest of the kube-scheduler properly. func (b *AWSBotanist) GenerateKubeSchedulerConfig() (map[string]interface{}, error) { return nil, nil } // DeployAutoNodeRepair deploys the auto-node-repair into the Seed cluster. It primary job is to repair // unHealthy Nodes by replacing them by newer ones. func (b *AWSBotanist) DeployAutoNodeRepair() error { var ( name = "auto-node-repair" autoscalingGroups = b.GetASGs() imagePullSecrets = b.GetImagePullSecretsMap() environmentVariables = getAWSCredentialsEnvironment() ) environmentVariables = append(environmentVariables, map[string]interface{}{ "name": "AWS_REGION", "value": b.Shoot.Info.Spec.Cloud.Region, }) defaultValues := map[string]interface{}{ "namespace": b.Shoot.SeedNamespace, "autoscalingGroups": autoscalingGroups, "imagePullSecrets": imagePullSecrets, "environment": environmentVariables, "podAnnotations": map[string]interface{}{ "checksum/secret-auto-node-repair": b.CheckSums[name], }, } values, err := b.InjectImages(defaultValues, b.K8sSeedClient.Version(), map[string]string{"auto-node-repair": "auto-node-repair"}) if err != nil { return err } return b.ApplyChartSeed(filepath.Join(common.ChartPath, "seed-controlplane", "charts", name), name, b.Shoot.SeedNamespace, values, nil) } // maps are mutable, so it's safer to create a new instance func getAWSCredentialsEnvironment() []map[string]interface{} { return []map[string]interface{}{ { "name": "AWS_ACCESS_KEY_ID", "valueFrom": map[string]interface{}{ "secretKeyRef": map[string]interface{}{ "key": AccessKeyID, "name": "cloudprovider", }, }, }, { "name": "AWS_SECRET_ACCESS_KEY", "valueFrom": map[string]interface{}{ "secretKeyRef": map[string]interface{}{ "key": SecretAccessKey, "name": "cloudprovider", }, }, }, } } // GenerateEtcdBackupConfig returns the etcd backup configuration for the etcd Helm chart. func (b *AWSBotanist) GenerateEtcdBackupConfig() (map[string][]byte, map[string]interface{}, error) { bucketName := "bucketName" stateVariables, err := terraformer.New(b.Operation, common.TerraformerPurposeBackup).GetStateOutputVariables(AccessKeyID, SecretAccessKey, bucketName) if err != nil { return nil, nil, err } credentials := `[default] aws_access_key_id = ` + stateVariables[AccessKeyID] + ` aws_secret_access_key = ` + stateVariables[SecretAccessKey] config := `[default] region = ` + b.Seed.Info.Spec.Cloud.Region secretData := map[string][]byte{ "credentials": []byte(credentials), "config": []byte(config), } backupConfigData := map[string]interface{}{ "backupIntervalInSecond": b.Shoot.Info.Spec.Backup.IntervalInSecond, "maxBackups": b.Shoot.Info.Spec.Backup.Maximum, "storageType": "S3", "s3": map[string]interface{}{ "s3Bucket": stateVariables[bucketName], "awsSecret": common.BackupSecretName, }, } return secretData, backupConfigData, nil }
773d1be118311a68bc2978158332a31f9381b79b
[ "Go" ]
4
Go
onkarkadam7/gardener
54ba009b553f71c12d64bb342a061ae1b28de365
f37c4bd1267b67c77a5caccd09e52fcbafd50ebd
refs/heads/master
<repo_name>kalpak44/TicTacToe<file_sep>/src/TicTac/Saves.java package TicTac; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.util.Stack; public class Saves { public String saveFile = "GameSave.sav"; private String sFile = "SaveFile"; private SaveStruct s = new SaveStruct(); public void saveGame(Stack<char[][]> history, char player) { s.player = player; s.history = history; saveHistory(); } public Stack<char[][]> getHistory() { loadHistory(); return s.history; } public char getPlayer() { loadHistory(); return s.player; } private void saveHistory() { try { FileOutputStream fos = new FileOutputStream(sFile); ObjectOutputStream oos = new ObjectOutputStream(fos); if (s != null) { oos.writeObject(s); oos.flush(); oos.close(); } } catch (IOException e) { throw new RuntimeException(e); } } private void loadHistory() { try { FileInputStream fis = new FileInputStream(sFile); @SuppressWarnings("resource") ObjectInputStream oin = new ObjectInputStream(fis); s = (SaveStruct) oin.readObject(); } catch (Exception e) { throw new RuntimeException(e); } } } <file_sep>/src/TicTac/Controller.java package TicTac; import java.util.Scanner; import java.util.Stack; public class Controller { private Board b = new Board(); private Saves saves = new Saves(); private Stack<char[][]> history = new Stack<>(); private char player = 'x'; private boolean multiplayer = false; public void enableMultiplayer(){ this.multiplayer = true; } @SuppressWarnings("resource") public void play() { System.out.println("Game Started!!!"); b.displayField(); while (b.checkGame() == ' ' && b.canMove()) { Scanner sc; System.out.println("Go " + player); sc = new Scanner(System.in); if (sc.hasNextInt()) { int x = sc.nextInt(); sc = new Scanner(System.in); if (sc.hasNextInt()) { int y = sc.nextInt(); if (b.setField(x, y, player)) { history.push(b.getField()); if (multiplayer==true) { player = setNextPlayer(player); } else { b.CompMove(setNextPlayer(player)); } } else { System.out.println("Incorect Action"); } } } else if (sc.hasNextLine()) { String menu = sc.nextLine(); if (menu.equals("q")) { System.out.println("exit"); System.exit(0); } else if (menu.equals("s")) { if (!history.isEmpty()) { saves.saveGame(history, player); } System.out.println("save"); } else if (menu.equals("l")) { Stack<char[][]> save = saves.getHistory(); char player = saves.getPlayer(); if (save != null) { b.setBoard(save.pop()); } this.player = player; System.out.println("loaded"); } else if (menu.equals("n")) { System.out.println("started new game"); b.clearBoard(); } else { System.out.println("invalid action "); } } b.displayField(); System.out.println("---"); if (b.checkGame() == 'x') { System.out.println("X WIN!"); } if (b.checkGame() == '0') { System.out.println("0 WIN"); } if (b.checkGame() == ' ' && !b.canMove()) { System.out.println("STANDOFF!"); } } } private static char setNextPlayer(char player) { if (player == 'x') { return '0'; } else { return 'x'; } } } <file_sep>/README.md my console game on Java ======================= This is the standard game tic-tac-toe. There is an opportunity to play in single and multiplayer. To start a multiplayer startup to 'multiplayer' parameter. Example: `java -jar "bin/TicTacToe.jar"` for single play; `java -jar "bin/TicTacToe.jar multiplayer"` for multiplayer; Was added functions to save and load game. ####how to play? The player who succeeds in placing three respective marks in a horizontal, vertical, or diagonal row wins the game. ####Control Press 1,2 or 3 from horizontal, next 1,2 or 3 from vertical; If you want save the game press "s/S", to load "l/L"; To quick game press "q/Q"; Thanks for watching)))
543be4a19cfe03c0a3602bdc1da9c24a60138835
[ "Markdown", "Java" ]
3
Java
kalpak44/TicTacToe
1a38ccd680d80997e1c4d825a72edac6682d8798
320ef571c6ce596e7bd638a3e59e0eaf51faae9d
refs/heads/master
<file_sep>import * as Discord from 'discord.js'; const client: Discord.Client = new Discord.Client(); client.on('ready', () => { console.log(`Logged in as ${client.user.tag}!`); }); client.on('message', msg => { }); client.login('token').then(() => { });
18ed48e351332de0d716afcd0b356b6d26097766
[ "TypeScript" ]
1
TypeScript
developers-grove/grove-bot
b99b454b0e79f1b541744ebcb06c5f3bb15a6b13
fb844d8d17ea770a53754690ccd182bcd5460d1e
refs/heads/master
<repo_name>mauriciogallego/destellos-y-fragmentos<file_sep>/src/page/administrator.js import React, { Component } from "react"; import Auth from "@aws-amplify/auth"; import Login from "../components/login"; import CreateBriefcase from "../components/createBriefcase"; import UpdateBriefcase from "../components/updateBriefcase"; import "./administrator.css"; import Errors from "components/errors"; class Administrator extends Component { constructor(props) { super(props); this.auth = this.auth.bind(this); this.errorFunc = this.errorFunc.bind(this); this.state = { loggedIn: false, err: false, section: null, }; } errorFunc() { if (this.state.err) { this.setState({ err: false }); } } async componentDidMount() { let existToken = localStorage.getItem( "CognitoIdentityServiceProvider.k38fqmdpqt4jasnuh8c8n2o3h.mauricio.idToken" ); if (existToken) { this.setState({ loggedIn: true }); } } auth(state) { Auth.signIn(state.user, state.password) .then((success) => { console.log("success", success); this.setState({ loggedIn: true }); }) .catch((err) => { console.log("err", err); this.setState({ err: true }); }); } render() { if (this.state.loggedIn) { return ( <div> <div className="containersBtn"> <div className="containerBtn"> <button className="btn" onClick={() => this.setState({ section: true })} > crear nuevo portafolio </button> </div> <div className="containerBtn"> <button className="btn" onClick={() => this.setState({ section: false })} > agregar fotos a un portafolio </button> </div> </div> <div> {this.state.section ? <CreateBriefcase /> : <UpdateBriefcase />} </div> </div> ); } else { return ( <div> {this.state.err ? <Errors /> : null} <Login errorFunc={this.errorFunc} auth={this.auth} /> </div> ); } } } export default Administrator; <file_sep>/src/page/home.js import React, { Component } from "react"; import "./home.css"; import { Carousel } from "react-bootstrap"; import foto1 from "../assets/imagen/foto1.png"; import foto2 from "../assets/imagen/foto2.png"; import foto3 from "../assets/imagen/foto3.png"; import foto4 from "../assets/imagen/foto4.png"; import foto5 from "../assets/imagen/foto5.png"; import foto6 from "../assets/imagen/foto6.png"; import foto7 from "../assets/imagen/foto7.png"; import Image from "react-bootstrap/Image"; class Home extends Component { render() { return ( <div className="positbox"> <div className="container-title" style={{ height: window.innerHeight - 70 }} > <h1 className='title'>Destellos y fragmentos</h1> </div> <div className="boxgeneral alert alert-secondary"> <Carousel> <Carousel.Item> <Image className="propimagen d-inline-block " src={foto1} alt="First slide" /> <Image className="propimagen d-inline-block " src={foto2} alt="dos" /> <Image className="propimagen d-inline-block " src={foto3} alt="tres" /> <Image className="propimagen d-inline-block " src={foto4} alt="cuatro" /> </Carousel.Item> <Carousel.Item> <Image className="propimagen d-inline-block " src={foto5} alt="First slide" /> <Image className="propimagen d-inline-block " src={foto6} alt="dos" /> <Image className="propimagen d-inline-block " src={foto7} alt="tres" /> </Carousel.Item> </Carousel> </div> </div> ); } } export default Home; <file_sep>/src/components/briefcaseObject.js import React, { useState, useEffect } from "react"; import PropTypes from "prop-types"; import { Storage } from "aws-amplify"; import Image from "react-bootstrap/Image"; import "./briefcaseObject.css"; import { uploadStorage } from "../api/index"; export default function BriefcaseObject(props) { const [files, setFiles] = useState([]); const [img, setImg] = useState([]); useEffect(() => { getImg(); }, []); async function getImg() { const imgs = await Promise.all( props.object.collection.items.map(async (i) => { const image = await Storage.get(i.name); return image; }) ); setImg(imgs); } async function updateGallery() { files.map((i) => { uploadStorage(props.object.id, i); }); setFiles([]); } return ( <div> <div className="sectionBtn"> <h2>{props.object.title}</h2> {files.length !== 0 ? ( <button onClick={updateGallery} className="btn"> Guardar </button> ) : null} </div> <div className="listImages"> {img.map((i, index) => { return ( <div className="containerImage" key={index}> <Image className="image" src={i} /> </div> ); })} <div className="icon-input"> <input type="file" multiple onChange={(e) => { const reader = new FileReader(); let containerFiles = e.target.files; setFiles((i) => i.concat([containerFiles[0]])); reader.onload = function (event) { let content = event.target.result; setImg((i) => i.concat([content])); }; reader.readAsDataURL(containerFiles[0]); }} /> </div> </div> </div> ); } BriefcaseObject.propTypes = { object: PropTypes.object, }; <file_sep>/src/components/login.js import React, { Component } from "react"; import "./login.css"; export default class Login extends Component { constructor(props) { super(props); this.change = this.change.bind(this); } state = { user: "", password: "", }; change(event, key) { this.setState({ [key]: event.target.value }); this.props.errorFunc() } render() { return ( <div className="container"> <p>Ingresa al sistema</p> <div className="icon-input"> <input type="text" placeholder="usuario" value={this.state.user} onChange={(event) => this.change(event, "user")} /> <i className="bx bx-user icon" /> <div className="bg"></div> </div> <div className="icon-input"> <input type="password" placeholder="<PASSWORD>" value={this.state.password} onChange={(event) => this.change(event, "password")} /> <i className="bx bx-user icon" /> <div className="bg"></div> </div> <div className="icon-input"> <input type="submit" value="enviar" onClick={()=>this.props.auth(this.state)}/> <div className="bg"></div> </div> </div> ); } } <file_sep>/src/graphql/subscriptions.js /* eslint-disable */ // this is an auto generated file. This will be overwritten export const onCreateBriefcase = /* GraphQL */ ` subscription OnCreateBriefcase { onCreateBriefcase { id title collection { items { id briefcaseID name createdAt updatedAt } nextToken } createdAt updatedAt } } `; export const onUpdateBriefcase = /* GraphQL */ ` subscription OnUpdateBriefcase { onUpdateBriefcase { id title collection { items { id } nextToken } createdAt updatedAt } } `; export const onDeleteBriefcase = /* GraphQL */ ` subscription OnDeleteBriefcase { onDeleteBriefcase { id title collection { items { id briefcaseID name createdAt updatedAt } nextToken } createdAt updatedAt } } `; export const onCreateImage = /* GraphQL */ ` subscription OnCreateImage { onCreateImage { id briefcaseID briefcase { id title collection { nextToken } createdAt updatedAt } name createdAt updatedAt } } `; export const onUpdateImage = /* GraphQL */ ` subscription OnUpdateImage { onUpdateImage { id briefcaseID briefcase { id title collection { nextToken } createdAt updatedAt } name createdAt updatedAt } } `; export const onDeleteImage = /* GraphQL */ ` subscription OnDeleteImage { onDeleteImage { id briefcaseID briefcase { id title collection { nextToken } createdAt updatedAt } name createdAt updatedAt } } `; <file_sep>/src/components/errors/index.js import React from 'react' import PropTypes from 'prop-types' import './errors.css' function Errors(props) { return ( <div className='containerError'> <p>Usuario o contraseña incorrecta</p> </div> ) } export default Errors <file_sep>/src/page/contact.js import React, { Component, useState } from "react"; import "./contact.css"; import bk from "assets/imagen/foto4.png"; import bk2 from "assets/imagen/20200903_210821_0000.png"; import bk3 from "assets/imagen/IMG_20200911_161110_735.jpg"; let vectorImg = [bk, bk3, bk2]; function InputContact() { const [nombre, setNombre] = useState(""); const [email, setEmail] = useState(""); const [telefono, setTelefono] = useState(""); const [comentario, setComentario] = useState(""); const handleClick = () => {}; return ( <div> <div className="contact-style"> <p className="textContainer"> ¿Quieres ponerte en contacto con nosotros? </p> <input type="text" value={nombre} onChange={(e) => { setNombre(e.target.value); }} placeholder="Nombre" /> <input type="text" value={email} onChange={(e) => { setEmail(e.target.value); }} placeholder="Email" /> <input type="text" value={telefono} onChange={(e) => { setTelefono(e.target.value); }} placeholder="Telefono" /> <textarea type="text" value={comentario} onChange={setComentario} placeholder="Comentario" /> <button className="button-style" onClick={handleClick}> Enviar </button> </div> <div> {vectorImg.map((i, index) => { return ( <img key={index} src={i} style={{ margin: 40 * index }} alt="img-background" className="imgBackground" /> ); })} </div> </div> ); } class Contact extends Component { render() { return ( <div> <h1> <InputContact></InputContact> </h1> </div> ); } } export default Contact; <file_sep>/src/App.js import React, { Component } from "react"; import { BrowserRouter as Router, Switch, Route, Link } from "react-router-dom"; import Home from "./page/home"; import Contact from "./page/contact"; import Briefcase from "./page/briefcase"; import Footer from "components/footer/index"; import "./App.css"; import Administrator from "./page/administrator"; class App extends Component { render() { const minHeight = window.innerHeight - 70; return ( <div className="App"> <Router> <div className="Stylebar"> <Link style={{ color: "black", textDecoration: "none" }} to="/home"> <button className="Stylebutton">Home</button> </Link> <Link style={{ color: "black", textDecoration: "none" }} to="/briefcase" > <button className="Stylebutton">Portafolio</button> </Link> <Link style={{ color: "black", textDecoration: "none" }} to="/contact" > <button className="Stylebutton">Contacto</button> </Link> </div> <div style={{ minHeight: minHeight }} className="containerScreen"> <Switch> <Route path="/administrator"> <Administrator /> </Route> <Route path="/contact"> <Contact /> </Route> <Route path="/briefcase"> <Briefcase /> </Route> <Route path="/"> <Home /> </Route> </Switch> </div> <Footer /> </Router> </div> ); } } export default App; <file_sep>/src/components/tabBriefcase.js import React, { useState, useEffect } from "react"; import AppBar from "@material-ui/core/AppBar"; import Tabs from "@material-ui/core/Tabs"; import { Storage } from "aws-amplify"; import Tab from "@material-ui/core/Tab"; import Box from "@material-ui/core/Box"; import "./tabBriefcase.css"; import PopUp from "components/popUp"; function TabPanel(props) { const { children, value, index, ...other } = props; return ( <div role="tabpanel" hidden={value !== index} id={`simple-tabpanel-${index}`} aria-labelledby={`simple-tab-${index}`} {...other} > {value === index && <Box p={3}>{children}</Box>} </div> ); } function TabBriefcase({ photos, setLoading }) { const [value, setValue] = useState(0); const [img, setImg] = useState(null); const [tabsPanel, setTabsPanel] = useState([]); const voidImg = () => { setImg(null); }; useEffect(() => { (() => { let imgs = []; photos.map(async (i) => { imgs.push( await Promise.all( i.collection.items.map(async (j) => { const image = await Storage.get(j.name); return image; }) ) ); setTabsPanel(tabsPanel.concat(imgs)); setLoading(false); }); })(); // eslint-disable-next-line react-hooks/exhaustive-deps }, [photos]); const handleChange = (event, newValue) => { setValue(newValue); }; const handleChangeImg = (newValue) => { setImg(newValue); }; return ( <div> {img ? <PopUp voidImg={voidImg} img={img} /> : null} <AppBar position="relative" className="containerTabs"> <Tabs className="tabItems" value={value} onChange={handleChange}> {photos.map((i, index) => { return <Tab key={index} className="tab" label={i.title} />; })} </Tabs> </AppBar> {tabsPanel.map((i, index) => { return ( <TabPanel className="containerImg" key={`key ${index}`} value={value} index={index} > {i.map((j, jindex) => { return ( <img onClick={() => handleChangeImg(j)} className="img" key={`img ${jindex}`} alt={`img ${jindex}`} src={j} /> ); })} </TabPanel> ); })} </div> ); } export default TabBriefcase; <file_sep>/src/page/briefcase.js import React, { useEffect, useState } from "react"; import "./briefcase.css"; import TabBriefcase from "../components/tabBriefcase"; import { fetchData } from "api"; import LoadSpin from "components/loading"; function Briefcase() { const [briefcase, setBriefcase] = useState([]); const [loading, setLoading] = useState(true); useEffect(() => { //despues de crear el componente (async () => { const data = await fetchData(); setBriefcase(briefcase.concat(data)); })(); }, []); return ( <div> {loading ? <LoadSpin /> : null} <TabBriefcase setLoading={setLoading} photos={briefcase} /> </div> ); } export default Briefcase; <file_sep>/src/components/footer/index.js import React from "react"; import './footer.css' export default function Footer() { return ( <div className="footer"> <p className="footerText"> &#xa9; Todas las imagenes en este sitio pertenecen a Destellos y Fragmentos. Todo trabajo es protejido por copyright{" "} </p> </div> ); } <file_sep>/src/graphql/queries.js /* eslint-disable */ // this is an auto generated file. This will be overwritten export const getBriefcase = /* GraphQL */ ` query GetBriefcase($id: ID!) { getBriefcase(id: $id) { id title collection { items { id briefcaseID name createdAt updatedAt } nextToken } createdAt updatedAt } } `; export const listBriefcases = /* GraphQL */ ` query ListBriefcases( $filter: ModelBriefcaseFilterInput $limit: Int $nextToken: String ) { listBriefcases(filter: $filter, limit: $limit, nextToken: $nextToken) { items { id title collection { items { id name } } createdAt updatedAt } nextToken } } `; export const getImage = /* GraphQL */ ` query GetImage($id: ID!) { getImage(id: $id) { id briefcaseID briefcase { id title collection { nextToken } createdAt updatedAt } name createdAt updatedAt } } `; export const listImages = /* GraphQL */ ` query ListImages( $filter: ModelImageFilterInput $limit: Int $nextToken: String ) { listImages(filter: $filter, limit: $limit, nextToken: $nextToken) { items { id briefcaseID briefcase { id title createdAt updatedAt } name createdAt updatedAt } nextToken } } `; <file_sep>/src/components/createBriefcase.js import React, { useState } from "react"; import { API, graphqlOperation, Storage } from "aws-amplify"; import { createBriefcase } from "../graphql/mutations"; import { uploadStorage } from "../api/index"; import ReactLoading from "react-loading"; import "./createBriefcase.css"; Storage.configure({ level: "public" }); export default function CreateBriefcase(props) { const [briefcase, setBriefcase] = useState(""); const [files, setFiles] = useState([]); const [loading, setLoading] = useState(false); const [err, setErr] = useState(""); const [loaded, setLoaded] = useState(""); async function createBriefcasef(e) { setLoading(true); e.preventDefault(); try { const briefcaseObject = await API.graphql( graphqlOperation(createBriefcase, { input: { title: briefcase, }, }) ); files.map((i) => { uploadStorage(briefcaseObject.data.createBriefcase.id, i); }); setLoading(false); setLoaded(true); } catch (err) { console.error(err); setLoading(true); setErr(err); } } return ( <div className="container"> {loading === true ? ( <ReactLoading className="loading" color={"white"} height={"10%"} width={"10%"} /> ) : null} {err !== "" ? ( <div> <p>{err}</p> </div> ) : null} {loaded !== "" ? ( <div> <p>{loaded}</p> </div> ) : null} <form onSubmit={createBriefcasef}> <p>Nuevo del portafolio</p> <div className="icon-input"> <input required type="text" value={briefcase} onChange={(e) => setBriefcase(e.target.value)} placeholder="portafolio" /> <i className="bx bx-briefcase icon" /> <div className="bg"></div> </div> <div className="icon-input"> <input type="file" multiple onChange={(e) => { files.push(e.target.files[0]); setFiles(files); }} /> <i className="bx bx-image icon" /> </div> <div className="icon-input"> <input type="submit" value="enviar" /> <div className="bg"></div> </div> </form> </div> ); } <file_sep>/src/components/popUp/index.js import React from "react"; import PropTypes from "prop-types"; import "./popUp.css"; function PopUp({ img, voidImg }) { const height = window.innerHeight; return ( <div onClick={voidImg} style={{ height }} className="conteiner"> <img src={img} alt="img popUp" /> </div> ); } PopUp.propTypes = {}; export default PopUp; <file_sep>/prueba.js const Pelota = {tipo:"elastico", color:"rojo", MostrarPropiedas: function() { return this.tipo + " " + this.color } } var Animales = ["perro","gato","caballo"] var Colores = ["rojo","verde","azul"] var Union = Animales.concat(Colores); Animales.push("cerdo") Animales.indexOf("perro") const MostrarProps = Object.keys(Pelota) const MostrarValor = Object.values(Pelota) for (var i = 0; i<MostrarValor.length; i++){ console.log(MostrarProps[i],MostrarValor[i]) } <file_sep>/src/api/index.js import { API, graphqlOperation, Storage } from "aws-amplify"; import { listBriefcases } from "../graphql/queries"; import { createImage } from "../graphql/mutations"; export async function uploadStorage(briefcaseID, i) { await Storage.put(i.name, i); console.log("uploadStorage"); const data = await API.graphql( graphqlOperation(createImage, { input: { name: i.name, briefcaseID: briefcaseID }, }) ); return data; } export async function fetchData() { const dataBriefcase = await API.graphql(graphqlOperation(listBriefcases)); console.log('data', dataBriefcase.data.listBriefcases.items ) return dataBriefcase.data.listBriefcases.items; }
a287b35bae53112a60767556baed93f099199cc6
[ "JavaScript" ]
16
JavaScript
mauriciogallego/destellos-y-fragmentos
302283ae98be2cc01c10c68671ed9173070619f0
bc8c23daa66daa1b63ca1a923dd9667f146e87e7
refs/heads/main
<repo_name>leosegre/medic_ip_project<file_sep>/main.py import numpy as np import cv2 import NeuralNetwork import json import os import matplotlib.pyplot as plt #defining the initial parameters and the learning rate batch_size = 10 nn_hdim = 2048 learning_rate = 0.1 f1 = "relu" f2 = "sigmoid" threshold = 0.0001 sd_init = 0.01 sd_init_w2 = sd_init def make_json(W1, W2, b1, b2, id1, id2, activation1, activation2, nn_h_dim, path_to_save): """ make json file with trained parameters. W1: numpy arrays of shape (1024, nn_h_dim) W2: numpy arrays of shape (nn_h_dim, 1) b1: numpy arrays of shape (1, nn_h_dim) b2: numpy arrays of shape (1, 1) nn_hdim - 2048 id1: id1 - str '204214928' id2: id2 - str '308407907' activation1: 'ReLU' activation2: 'sigmoid' """ trained_dict = {'weights': (W1.tolist(), W2.tolist()), 'biases': (b1.tolist(), b2.tolist()), 'nn_hdim': nn_h_dim, 'activation_1': activation1, 'activation_2': activation2, 'IDs': (id1, id2)} file_path = os.path.join(path_to_save, 'trained_dict_{}_{}'.format( trained_dict.get('IDs')[0], trained_dict.get('IDs')[1]) ) with open(file_path, 'w') as f: json.dump(trained_dict, f, indent=4) def load_image(prefix, number, data_vec, label_vec, is_training): if is_training: path = "data\\training\\" else: path = "data\\validation\\" path = path + prefix + number + ".png" image = cv2.imread(path, flags=cv2.IMREAD_GRAYSCALE) data_vec.append(image.flatten() / 255.0) if prefix == "pos_": label_vec.append(1) else: label_vec.append(0) def load_data(train_data, val_data, train_label, val_label): # load train data for i in range(256): load_image("neg_", str(i), train_data, train_label, True) load_image("pos_", str(i), train_data, train_label, True) for i in range(256, 334): load_image("neg_", str(i), val_data, val_label, False) load_image("pos_", str(i), val_data, val_label, False) return np.asarray(train_data), np.asarray(val_data), np.asarray(train_label), np.asarray(val_label), def main(): convergence_flag = False previous_loss = np.inf counter = 0 accuracy_per_training_epoch = 0 loss_per_training_epoch = 0 train_data = [] val_data = [] train_label = [] val_label = [] epoch_training_loss = [] epoch_validation_loss= [] epoch_training_accuracy = [] epoch_validation_accuracy = [] train_data, val_data, train_label, val_label = load_data(train_data, val_data, train_label, val_label) my_net = NeuralNetwork.NeuralNetwork(learning_rate, f1, f2, sd_init, sd_init_w2) epoc = 0 my_net.forward_pass(val_data, val_label) my_net.calculate_accuracy(val_label) print("Inintial validation loss: ", my_net.loss, "Inintial accuracy: ", my_net.accuracy) while not convergence_flag: batch_count = 0 shuffler = np.random.permutation(len(train_label)) train_label = train_label[shuffler] train_data = train_data[shuffler] if (not epoc % 10) and (epoc != 0): my_net.learning_rate = my_net.learning_rate / 2 for i in range(0, len(train_label), batch_size): batch = train_data[i:batch_size + i, :] batch_labels = train_label[i:batch_size + i] my_net.forward_pass(batch, batch_labels) my_net.calculate_accuracy(batch_labels) accuracy_per_training_epoch += my_net.accuracy loss_per_training_epoch += my_net.loss # print("epoc:", epoc, "batch:", batch_count, "loss:", my_net.loss, "accuracy:", # my_net.accuracy, "prediction:", my_net.a2, np.round(my_net.a2).squeeze(), "real labels:", batch_labels) my_net.backward_pass(batch_labels) my_net.compute_gradient(batch) batch_count += 1 accuracy_per_training_epoch = accuracy_per_training_epoch/(len(train_label)/batch_size) loss_per_training_epoch = loss_per_training_epoch/(len(train_label)/batch_size) epoch_training_accuracy.append(accuracy_per_training_epoch) epoch_training_loss.append(loss_per_training_epoch) accuracy_per_training_epoch = 0 loss_per_training_epoch = 0 my_net.forward_pass(val_data, val_label) my_net.calculate_accuracy(val_label) if (my_net.loss - previous_loss) <= threshold: counter += 1 else: counter = 0 if epoc > 100: convergence_flag = (counter >= 3) print("Validation loss: ", my_net.loss, "Accuracy:", my_net.accuracy, "learning rate:", my_net.learning_rate) previous_loss = my_net.loss epoch_validation_accuracy.append(my_net.accuracy) epoch_validation_loss.append(my_net.loss) epoc += 1 ## plotting section----------------------------------------------------------------------------------------------- trained_dict = { 'weights': (my_net.W1, my_net.W2), 'biases': (my_net.b1, my_net.b2), 'nn_hdim': 2048, 'activation_1': 'relu', 'activation_2': 'sigmoid', 'IDs': (204214928, 308407907) } json_path = '' make_json(my_net.W1,my_net.W2,my_net.b1,my_net.b2,'204214928','308407907','relu','sigmoid',nn_hdim, json_path) plt.subplot(2, 1, 1) plt.plot(range(epoc), epoch_training_loss) plt.plot(range(epoc), epoch_validation_loss) plt.scatter(epoc, epoch_training_loss[epoc-1], marker='o') plt.scatter(epoc, epoch_validation_loss[epoc-1], marker='o') x = [epoc, epoc] n = [round(epoch_training_loss[epoc-1], 2), round(epoch_validation_loss[epoc-1], 2)] for i, txt in enumerate(n): plt.annotate(txt, (x[i], n[i])) plt.legend(["training", "validation"]) plt.title('loss and accuracy as function of epoc number') plt.ylabel('loss [au]') plt.subplot(2, 1, 2) plt.plot(range(epoc), epoch_training_accuracy) plt.plot(range(epoc), epoch_validation_accuracy) plt.scatter(epoc, epoch_training_accuracy[epoc-1], marker='o') plt.scatter(epoc, epoch_validation_accuracy[epoc-1], marker='o') y = [epoc, epoc] s = [round(epoch_training_accuracy[epoc-1], 2), round(epoch_validation_accuracy[epoc-1], 2)] for i, txt in enumerate(s): plt.annotate(txt, (y[i], s[i])) plt.legend(["training", "validation"]) plt.xlabel('epoc number') plt.ylabel('accuracy [%]') plt.show() if __name__ == "__main__": main()<file_sep>/NeuralNetwork.py import numpy as np import cv2 import main class NeuralNetwork(): ##W1 = 1024X nn_hdim ## w2 = nn.hdim X 1 ##b1= 1Xnn_hdim ##b2=1X1 ##z1 = 1X nn_hdim ##z2= 1X1 def __init__(self, learning_rate, f1, f2, sd_init, sd_init_w2): self.learning_rate = learning_rate self.W1 = np.random.normal(0, sd_init, (1024, main.nn_hdim)) self.b1 = np.random.normal(0, sd_init, (1, main.nn_hdim)) self.W2 = np.random.normal(0, sd_init_w2, (main.nn_hdim, 1)) self.b2 = np.random.normal(0, sd_init, (1, 1)) self.f1 = f1 self.f2 = f2 self.z1 = None self.a1 = None self.z2 = None self.a2 = None self.loss = None self.delta_1= None self.delta_2 = None self.accuracy = 0 def sigmoid(self, x): return 1.0 / (1.0 + np.exp(-x)) def sigmoid_derivative(self, z): return self.sigmoid(z)* (1-self.sigmoid(z)) def tanh_derivative(self, z): return 1/(np.cosh(z)**2) def relu_derivative(self,z): y = (z > 0) * 1 return y def tanh(self, z): return np.tanh(z) def relu(self, z): return np.maximum(0,z) # def apply_tanh(self, z): # preform_vectorized_tanh = np.vectorize(self.tanh) # result = preform_vectorized_tanh(z) # return result # def apply_sigmoid(self, z): # preform_vectorized_sigmoid = np.vectorize(self.sigmoid) # result = preform_vectorized_sigmoid(z) # return result def calculate_linear_combination(self, input, weights, bias): weights = np.tile(weights, (input.shape[0], 1, 1)) w_x = np.sum(weights*np.expand_dims(input, axis=2), axis=1) z = w_x + bias return z def apply_activation(self, activation_function, x): if activation_function == "tanh": return self.tanh(x) elif activation_function == "sigmoid": return self.sigmoid(x) elif activation_function == "relu": return self.relu(x) def apply_activation_derivative(self, activation_function, x): if activation_function == "tanh": return self.tanh_derivative(x) elif activation_function == "sigmoid": return self.sigmoid_derivative(x) elif activation_function == "relu": return self.relu_derivative(x) def loss_function(self, predicted, labels): predicted = predicted.squeeze() loss = (((labels-predicted)**2)/2).mean() return loss def loss_function_derivative(self, predicted, labels): return predicted-labels def calculate_accuracy(self, labels): self.accuracy = (np.round(self.a2).squeeze() == labels).mean() def forward_pass(self, input, labels): self.z1 = self.calculate_linear_combination(input, self.W1, self.b1) self.a1 = self.apply_activation(self.f1, self.z1) self.z2 = self.calculate_linear_combination(self.a1, self.W2, self.b2) self.a2 = self.apply_activation(self.f2, self.z2) self.loss = self.loss_function(self.a2, labels) def backward_pass(self, labels): labels = np.expand_dims(labels, axis=1) self.delta_2 = self.loss_function_derivative(self.a2, labels) *\ self.apply_activation_derivative(self.f2, self.z2) self.delta_1 = self.calculate_linear_combination(self.delta_2, self.W2.transpose(), 0) *\ self.apply_activation_derivative(self.f1, self.z1) def compute_gradient(self, input): self.b1 -= self.delta_1.mean(axis=0) * self.learning_rate self.b2 -= self.delta_2.mean(axis=0) * self.learning_rate self.W1 -= self.learning_rate * np.mean(np.expand_dims(input, 2) * \ np.expand_dims(self.delta_1, 1), axis=0) # print((np.expand_dims(input.mean(axis = 0),1) * np.expand_dims(self.delta_1.mean(axis = 0),0)).shape) self.W2 -= self.learning_rate * np.mean(np.expand_dims(self.a1, 2) * \ np.expand_dims(self.delta_2, 1), axis=0) # print((np.expand_dims(self.a1.mean(axis=0),1)*np.expand_dims(self.delta_2.mean(axis=0),0)).shape)
d766617561ebbd59f72b245bbc0a984f80dc1c3b
[ "Python" ]
2
Python
leosegre/medic_ip_project
2b257fcc24e35e2f17d600675e60667e89576643
1f74152172a7b8cfbab054cfc5e0d008fe10e133
refs/heads/master
<repo_name>rcloran/py-missile<file_sep>/setup.py """py-missile, a library for controlling USB missile launchers""" from setuptools import setup setup( name="py-missile", description="Library for controlling USB missile launchers", version="0.1", author="<NAME>", url="http://github.com/rcloran/py-missile", install_requires=[ "PyUSB>=1.0a3", ], py_modules=["missile"], ) <file_sep>/README.md py-missile ========== Library-ised version of nmilford/stormLauncher <file_sep>/missile.py # Copyright 2012 <NAME> # Copyright 2013 <NAME> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import usb.core class LaunchControl(object): def __init__(self): self.dev = usb.core.find(idVendor=0x2123, idProduct=0x1010) if self.dev is None: raise ValueError('Launcher not found.') if self.dev.is_kernel_driver_active(0) is True: self.dev.detach_kernel_driver(0) self.dev.set_configuration() def turret_up(self): self.dev.ctrl_transfer(0x21, 0x09, 0, 0, [0x02, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]) def turret_down(self): self.dev.ctrl_transfer(0x21, 0x09, 0, 0, [0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]) def turret_left(self): self.dev.ctrl_transfer(0x21, 0x09, 0, 0, [0x02, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]) def turret_right(self): self.dev.ctrl_transfer(0x21, 0x09, 0, 0, [0x02, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]) def turret_stop(self): self.dev.ctrl_transfer(0x21, 0x09, 0, 0, [0x02, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]) def fire(self): self.dev.ctrl_transfer(0x21, 0x09, 0, 0, [0x02, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00])
fc0de149ad1fa6b263a29a86a310960fae52af52
[ "Markdown", "Python" ]
3
Python
rcloran/py-missile
0f609918faa5611c5fb5e8435f366a95e8b8af87
44ca7dca7d40af507f45595590ba11f8eb156b18
refs/heads/master
<file_sep>import codecs import re from difflib import SequenceMatcher import spacy import nltk import torch from enchant.checker import SpellChecker from transformers import AlbertModel, AlbertTokenizer from UFUtils import utils def load_text(file_path): text = [] with codecs.open(file_path, encoding="utf-8-sig") as f: for line in f: text.append(line) return ' '.join(text) def get_personslist(text): personslist = [] for sent in nltk.sent_tokenize(text): for chunk in nltk.ne_chunk(nltk.pos_tag(nltk.word_tokenize(sent))): if isinstance(chunk, nltk.tree.Tree) and chunk.label() == 'PERSON': personslist.insert(0, (chunk.leaves()[0][0])) return list(set(personslist)) def predict_word(text_original, predictions, maskids, tokenizer, suggestedwords): pred_words=[] for i in range(len(maskids)): # indice 1 e o index preds = torch.topk(predictions[0, maskids[i]], k=predictions.shape[2])[1] #preds = torch.topk(predictions[0, maskids[i]], k=200)[1] indices = preds.cpu().numpy() list1 = tokenizer.convert_ids_to_tokens(indices) #print(list1) list2 = suggestedwords[i] #print(list2) simmax=0 predicted_token='' for word1 in list1: for word2 in list2: s = SequenceMatcher(None, re.sub('[^a-zA-Z0-9]+', '', word1), word2.lower()).ratio() if s is not None and s >= simmax: simmax = s predicted_token = word1 #text_original = text_original.replace('[MASK]', '<mark>'+re.sub('[^a-zA-Z0-9]+', '', predicted_token)+'</mark>', 1) text_original = text_original.replace('[MASK]', re.sub('[^a-zA-Z0-9]+', '', predicted_token), 1) return text_original def correct_spell(text): rep = { '\n': ' ', '\\': ' ', '\"': '"', '-': ' ', '"': ' " ', '"': ' " ', '"': ' " ', ',':' , ', '.':' . ', '!':' ! ', '?':' ? ', "n't": " not" , "'ll": " will", '*':' * ', '(': ' ( ', ')': ' ) ', "s'": "s '"} rep = dict((re.escape(k), v) for k, v in rep.items()) pattern = re.compile("|".join(rep.keys())) text = pattern.sub(lambda m: rep[re.escape(m.group(0))], text) text_original = str(text) personslist = utils.get_personslist(text) ignorewords = personslist + ["!", ",", ".", "\"", "?", '(', ')', '*', '\''] # using enchant.checker.SpellChecker, identify incorrect words d = SpellChecker("en_US") words = text.split() incorrectwords = [w for w in words if not d.check(w) and w not in ignorewords] # using enchant.checker.SpellChecker, get suggested replacements #suggestedwords = [d.suggest(w) for w in incorrectwords] suggestedwords =[] for w in incorrectwords: sugs = d.suggest(w) suggestedwords_tmp = [] for sug in sugs: suggestedwords_tmp.append(re.sub('[^a-zA-Z0-9]+', '', sug)) suggestedwords.append(suggestedwords_tmp) for w in incorrectwords: text = text.replace(w, '[MASK]') text_original = text_original.replace(w, '[MASK]') # Load, train and predict using pre-trained model #model_name = "albert-xlarge-v2" model_name = "albert-large-v2" tokenizer = AlbertTokenizer.from_pretrained(model_name, cache_dir="./model/{}/".format(model_name)) tokenized_text = tokenizer.tokenize(text) indexed_tokens = tokenizer.convert_tokens_to_ids(tokenized_text) MASKIDS = [i for i, e in enumerate(tokenized_text) if e == '[MASK]'] # Create the segments tensors segs = [i for i, e in enumerate(tokenized_text) if e == "."] segments_ids=[] prev=-1 for k, s in enumerate(segs): segments_ids = segments_ids + [k] * (s-prev) prev=s segments_ids = segments_ids + [len(segs)] * (len(tokenized_text) - len(segments_ids)) segments_tensors = torch.tensor([segments_ids]) segments_tensors = segments_tensors.to('cuda') # prepare Torch inputs tokens_tensor = torch.tensor([indexed_tokens]) tokens_tensor = tokens_tensor.to('cuda') # Load pre-trained model model = AlbertModel.from_pretrained(model_name, cache_dir="../model/{}/".format(model_name)) model.to('cuda') # Predict all tokens with torch.no_grad(): outputs = model(tokens_tensor, segments_tensors) # The last hidden-state is the first element of the output tuple predictions = outputs[0] text_original = utils.predict_word(text_original, predictions, MASKIDS, tokenizer, suggestedwords) return text_original <file_sep>'''def handle_file_upload(f): from os import path text_received = f.read().decode('utf-8') title = generate_string() file_path = 'outputs/' + title + '.txt' while path.exists(file_path): title = generate_string() file_path = 'outputs/' + title + '.txt' with open(file_path, 'w+') as destination: destination.write(text_received) return title def generate_string(string_length = 10): import string, random lettersAndDigits = string.ascii_letters + string.digits return ''.join(random.choice(lettersAndDigits) for i in range(string_length))''' from .UFUtils import utils def handle_text_upload(f): text_received = f lines = text_received.split('\n') text_return = [] for line in lines: text_return.append(utils.correct_spell(line)+'\n') return '<p>' + ''.join(text_return) + '</p>' <file_sep>absl-py==0.9.0 astor==0.8.1 bert-tensorflow==1.0.1 cachetools==4.0.0 certifi==2022.12.7 chardet==3.0.4 gast==0.2.2 google-auth==1.10.1 google-auth-oauthlib==0.4.1 google-pasta==0.1.8 grpcio==1.26.0 h5py==2.10.0 idna==2.8 Keras-Applications==1.0.8 Keras-Preprocessing==1.1.0 Markdown==3.1.1 numpy==1.22.0 oauthlib==3.1.0 opt-einsum==3.1.0 protobuf==3.18.3 pyasn1==0.4.8 pyasn1-modules==0.2.8 pyenchant==2.0.0 requests==2.22.0 requests-oauthlib==1.3.0 rsa==4.7 scipy==1.4.1 six==1.14.0 tensorboard==1.15.0 tensorflow==2.9.3 tensorflow-estimator==1.15.1 termcolor==1.1.0 urllib3==1.26.5 Werkzeug==0.16.0 wrapt==1.11.2 <file_sep>amqp==2.5.2 asgiref==3.2.3 asn1crypto==1.3.0 billiard==3.6.0.0 celery==5.2.2 certifi==2022.12.7 cffi==1.13.2 cryptography==3.3.2 cycler==0.10.0 django>=3.0.7 environ==1.0 idna==2.8 joblib==1.2.0 kiwisolver==1.0.1 kombu==4.6.3 matplotlib==3.1.1 mkl-fft==1.0.15 mkl-random==1.1.0 mkl-service==2.3.0 numpy==1.22.0 pycparser==2.19 pyparsing==2.4.6 PyQt5==5.14.1 PyQt5-sip==12.7.0 python-dateutil==2.8.1 pytz==2019.3 scikit-learn==0.22.1 scipy==1.3.2 simplejson==3.17.0 six==1.13.0 SQLAlchemy==1.3.12 sqlparse==0.3.0 tornado==6.0.3 vine==1.3.0 <file_sep>from django.db import models # Create your models here. class TextInput(models.Model): text_input = models.TextField(max_length=10) text_output = models.TextField(blank=True)<file_sep># Advanced topics in Artificial Intelligence with a focus on OCR post-processing. All articles published on [medium](https://medium.com/) are here. * Portuguese * [Introduction to OCR Post Processing with NATAS](https://medium.com/@arianysferreira1/introdu%C3%A7%C3%A3o-ao-p%C3%B3s-processamento-de-ocr-com-o-natas-998536737798) * English * Not yet <file_sep>from .normalize import is_in_dictionary, wiktionary, _get_spacy import distance from collections import defaultdict def get_min_distance(word, words): min = 2000000 min_word = "" for w in words: d = distance.levenshtein(w, word) if d < min: min = d min_word = w return min_word, min def extract_parallel(seed_words, model, dictionary=wiktionary, lemmatize=True, use_freq=True, word_len=0, min_frequency=1000, cache=False, cache_name="ocr"): res = defaultdict(dict) for word in seed_words: if use_freq and seed_words[word] < min_frequency: continue word = word.strip().lower() if len(word) < word_len: continue errors = get_ocr_error_dict(word, model, dictionary, lemmatize=lemmatize, cache=cache,cache_name=cache_name) for correct in errors: res[correct].update(errors[correct]) return res def get_wv_normalization(word, model, dictionary, lemmatize=True, cache=True, cache_name="ocr"): res = get_ocr_error_dict(word,model, dictionary, lemmatize=lemmatize, cache=cache, cache_name=cache_name) for key, value in res.iteritems(): if word in value and value[word] < 4: return key return "" def get_ocr_error_dict(word, model, dictionary, lemmatize=True, cache=True, cache_name="ocr"): ocr_errors = [] non_errors = [word] if lemmatize: spacy_nlp = _get_spacy() else: spacy_nlp = None try: pot_ocr_errors = model.most_similar(word) except: #word not in vocabulary return [] for pot_ocr_error in pot_ocr_errors: pot_ocr_error = pot_ocr_error[0] if not is_in_dictionary(pot_ocr_error, dictionary, spacy_nlp, cache=cache, cache_name=cache_name,lemmatize=lemmatize): ocr_errors.append(pot_ocr_error) else: non_errors.append(pot_ocr_error) results = defaultdict(dict) for error in ocr_errors: w, d = get_min_distance(error, non_errors) results[w][error] = d return results <file_sep>from django.shortcuts import render, redirect from django.http import HttpResponse, HttpResponseRedirect from django.views.decorators.csrf import csrf_exempt from .forms import UploadFileForm from .process import handle_file_upload # Create your views here. @csrf_exempt def main(request): form = UploadFileForm() if request.method == 'POST': form = UploadFileForm(request.POST, request.FILES) print('Post method reveived') if form.is_valid(): redirect_name = handle_file_upload(request.FILES['text_input']) return HttpResponse(redirect_name) context = { 'form':form } return render(request, 'postprocessing/main.html', context) def redir(request): return redirect('postprocessing/')<file_sep>import torch from transformers import BertTokenizer, BertModel tokenizer = BertTokenizer.from_pretrained("bert-base-cased") model = BertModel.from_pretrained("bert-base-cased") print(len(tokenizer)) # 28996 tokenizer.add_tokens(["NEW_TOKEN"], add_prefix_space=True) print(len(tokenizer)) # 28997 model.resize_token_embeddings(len(tokenizer)) # The new vector is added at the end of the embedding matrix print(model.embeddings.word_embeddings.weight[-1, :]) # Randomly generated matrix model.embeddings.word_embeddings.weight[-1, :] = torch.zeros([model.config.hidden_size]) print(model.embeddings.word_embeddings.weight[-1, :]) # outputs a vector of zeros of shape [768]<file_sep>from django import forms class UploadFileForm(forms.Form): text_input = forms.FileField()<file_sep>from UFUtils import utils import codecs import random import string def insert_error(sentence): do = random.randint(0,10) if do==0: new_sentence = [] for palavra in sentence.split(): do = random.randint(0, 10) if do==0: new_word = [] for letra in palavra: do = random.randint(0, 10) if do==0: new_word.append(random.choice(string.ascii_lowercase)) else: new_word.append(letra) new_sentence.append(''.join(new_word)) else: new_sentence.append(palavra) return ' '.join(new_sentence) else: return sentence texts = utils.load_text("../data/Rapunzel_250_original.txt").split('\n') final_text_original = '' final_text_corrected = '' for text in texts: print("++++++++++") print("Doing...") resultado = insert_error(text) final_text_original += resultado + '\n' resultado = utils.correct_spell(resultado) final_text_corrected += resultado + '\n' print("Done...") file = codecs.open("../data/Rapunzel_250_test_albert_corredtec.txt", "w", "utf-8") file.write(final_text_corrected) file.close() file = codecs.open("../data/Rapunzel_250_test_albert_modified.txt", "w", "utf-8") file.write(final_text_original) file.close()<file_sep># Install * python -m spacy download en_core_web_sm <file_sep>from bert import tokenization def get_tokenizer(vocab, chkpnt): tokenization.validate_case_matches_checkpoint(True, chkpnt) tokenizer = tokenization.FullTokenizer( vocab_file=vocab, do_lower_case=True) return tokenizer def generate_ids(mask, tokenizer): tokens = tokenizer.tokenize(mask) input_ids = [tokens_to_masked_ids(tokens, i, tokenizer) for i in range(len(tokens))] tokens_ids = tokenizer.convert_tokens_to_ids(tokens) return tokens, input_ids, tokens_ids def tokens_to_masked_ids(tokens, mask_ind, tokenizer): masked_tokens = tokens[:] masked_tokens[mask_ind] = "[MASK]" masked_tokens = ["[CLS]"] + masked_tokens + ["[SEP]"] masked_ids = tokenizer.convert_tokens_to_ids(masked_tokens) return masked_ids def load_data(file): with open(file) as fopen: f = fopen.read().split('\n')[:-1] words = {} for l in f: w, c = l.split('\t') c = int(c) words[w] = c + words.get(w, 0) return words <file_sep>from django.apps import AppConfig class PostprocessingConfig(AppConfig): name = 'postprocessing' <file_sep>import tensorflow as tf from bert import run_classifier from bert import optimization from bert import modeling BERT_CONFIG = '../model/bert_config.json' bert_config = modeling.BertConfig.from_json_file(BERT_CONFIG) class Model: def __init__(self): self.X = tf.placeholder(tf.int32, [None, None]) model = modeling.BertModel( config=bert_config, is_training=False, input_ids=self.X, use_one_hot_embeddings=False) output_layer = model.get_sequence_output() # Conv #1 conv1 = tf.layers.conv1d( inputs=output_layer, filters=64, kernel_size=3, padding="valid", activation=tf.nn.relu) # Dense Layer dense = tf.layers.dense(inputs=conv1, units=768, activation=tf.nn.relu) #modificar valor output_layer = tf.layers.dropout(dense, rate=0.25) embedding = model.get_embedding_table() with tf.variable_scope('cls/predictions'): with tf.variable_scope('transform'): input_tensor = tf.layers.dense( output_layer, units=bert_config.hidden_size, activation=modeling.get_activation(bert_config.hidden_act), #era gelu agr relu kernel_initializer=modeling.create_initializer( bert_config.initializer_range ), ) input_tensor = modeling.layer_norm(input_tensor) output_bias = tf.get_variable( 'output_bias', shape=[bert_config.vocab_size], initializer=tf.zeros_initializer(), ) logits = tf.matmul(input_tensor, embedding, transpose_b=True) self.logits = tf.nn.bias_add(logits, output_bias) <file_sep># Welcome to G3's project! ## [AiBox](https://aiboxlab.org/) Summer School <file_sep>import requests from bs4 import BeautifulSoup from mikatools import * import json url = "https://en.wiktionary.org/wiki/Category:Portuguese_lemmas" base_url = "https://en.wiktionary.org/" def get_pages(url): all_lemmas = [] while True: r = requests.get(url) soup = BeautifulSoup(r.text, 'html.parser') base = soup.find("div", id="mw-pages") lemmas = base.find_all("li") for lemma in lemmas: text = lemma.get_text() all_lemmas.append(text) next_button = base.find("a", string="next page") if next_button is None: break url = base_url + next_button.get("href") return all_lemmas data = get_pages(url) with open('wiktionary_lemmas.json', 'w', encoding='utf-8') as f: json.dump(data, f, ensure_ascii=False, indent=4) <file_sep># -*- coding: utf-8 -*- import tensorflow as tf from tensorflow.python.util import deprecation deprecation._PRINT_DEPRECATION_WARNINGS = False from UFUtils.utils import load_data, get_tokenizer, generate_ids from UFUtils.spell_corrector import SpellCorrector from model import Model from enchant import DictWithPWL from enchant.checker import SpellChecker from copy import deepcopy from tensorflow.python.framework import ops import numpy as np import os os.environ["CUDA_VISIBLE_DEVICES"]="0" def correct(possible_states, text_mask): tokenizer, BERT_INIT_CHKPNT = get_tokenizer() ops.reset_default_graph() sess = tf.InteractiveSession() model = Model() sess.run(tf.global_variables_initializer()) var_lists = tf.get_collection(tf.GraphKeys.TRAINABLE_VARIABLES, scope='bert') cls = tf.get_collection(tf.GraphKeys.TRAINABLE_VARIABLES, scope='cls') saver = tf.train.Saver(var_list=var_lists + cls) saver.restore(sess, BERT_INIT_CHKPNT) replaced_masks = [text_mask.replace('**mask**', state) for state in possible_states] ids = [generate_ids(mask, tokenizer) for mask in replaced_masks] tokens, input_ids, tokens_ids = list(zip(*ids)) indices, ids = [], [] for i in range(len(input_ids)): indices.extend([i] * len(input_ids[i])) ids.extend(input_ids[i]) masked_padded = tf.keras.preprocessing.sequence.pad_sequences(ids, padding='post') preds = sess.run(tf.nn.log_softmax(model.logits), feed_dict={model.X: masked_padded}) indices = np.array(indices) scores = [] for i in range(len(tokens)): filter_preds = preds[indices == i] total = np.sum([filter_preds[k, k + 1, x] for k, x in enumerate(tokens_ids[i])]) scores.append(total) prob_scores = np.array(scores) / np.sum(scores) probs = list(zip(possible_states, prob_scores)) probs.sort(key=lambda x: x[1]) return probs[0][0] def main(text): words = load_data('../data/counts_1grams.txt') corrector = SpellCorrector(words) # modificar para todas as palavras my_dict = DictWithPWL("en_US", "mywords.txt") my_checker = SpellChecker(my_dict) my_checker.set_text(text) text_mask = deepcopy(text) for error in my_checker: err = error.word possible_states = corrector.edit_candidates(err) mask = text_mask.replace(err, '**mask**') correted_letter = correct(possible_states, mask) text_mask = deepcopy(mask.replace("**mask**", correted_letter)) return text_mask if __name__ == '__main__': text = "This is simple semple txt with erors." correct_text = main(text) print(">>>>>>>>>> BEFORE: ", text) print(">>>>>>>>>> AFTER: ", correct_text) <file_sep>from UFUtils import utils text = utils.load_text("../data/Rapunzel_250_test.txt") resultdo = utils.correct_spell(text) print(resultdo) <file_sep>absl-py==0.9.0 args==0.1.0 ascii==3.6 astor==0.8.1 blis==0.4.1 boto==2.49.0 boto3==1.11.9 botocore==1.14.9 cachetools==4.0.0 catalogue==1.0.0 certifi==2022.12.7 chardet==3.0.4 Click==7.0 clint==0.5.1 ConfigArgParse==1.0 cycler==0.10.0 cymem==2.0.3 Distance==0.1.3 docutils==0.15.2 Flask==1.1.1 future==0.18.2 gast==0.2.2 gensim==3.8.1 google-auth==1.11.0 google-auth-oauthlib==0.4.1 google-pasta==0.1.8 grpcio==1.26.0 h5py==2.10.0 idna==2.8 importlib-metadata==1.4.0 itsdangerous==1.1.0 Jinja2==2.11.3 jmespath==0.9.4 joblib==1.2.0 Keras==2.3.1 Keras-Applications==1.0.8 Keras-Preprocessing==1.1.0 kiwisolver==1.1.0 Markdown==3.1.1 MarkupSafe==1.1.1 matplotlib==3.1.2 mikatools==0.0.7 murmurhash==1.0.2 natas==1.0.4 nltk==3.6.6 numpy==1.22.0 oauthlib==3.1.0 OpenNMT-py==1.0.0 opt-einsum==3.1.0 pandas==0.25.3 pdf2image==1.11.0 Pillow==9.3.0 plac==1.1.3 preshed==3.0.2 protobuf==3.18.3 pt-core-news-sm==2.2.5 pyasn1==0.4.8 pyasn1-modules==0.2.8 pyenchant==2.0.0 pyonmttok==1.18.1 pyparsing==2.4.6 pytesseract==0.3.2 python-dateutil==2.8.1 pytorch-pretrained-bert==0.6.2 pytz==2019.3 PyYAML==5.4 regex==2020.1.8 requests==2.22.0 requests-oauthlib==1.3.0 rsa==4.7 s3transfer==0.3.2 sacremoses==0.0.38 scikit-learn==0.22.1 scipy==1.4.1 sentencepiece==0.1.85 six==1.14.0 smart-open==1.9.0 spacy==2.2.3 srsly==1.0.1 tensorboard==2.1.0 tensorflow==2.9.3 tensorflow-estimator==2.1.0 tensorflow-gpu==2.9.3 termcolor==1.1.0 thinc==7.3.1 torch==1.0.0 torchtext==0.5.0 tqdm==4.30.0 transformers==2.3.0 Unidecode==1.1.1 urllib3==1.26.5 wasabi==0.6.0 Werkzeug==0.16.1 wrapt==1.11.2 zipp==2.1.0 <file_sep>from mikatools import * def main(): url = "https://github.com/mikahama/natas/raw/master/natas/models/" models = ["normalization_brnn_latech19.pt", "normalization.pt", "ocr_ranlp19.pt", "ocr.pt"] for i, model in enumerate(models): print("Downloading", i+1, "out of", len(models) ) download_file(url + model, script_path("models/" + model), show_progress=True) if __name__== "__main__": main()<file_sep># NATAS This library will have methods for processing historical English corpora, especially for studying neologisms. The first functionalities to be released relate to normalization of historical spelling and OCR post-correction. This library is maintained by [<NAME>](https://mikakalevi.com). **NOTE: The normalization methods depend on Spacy, which takes some time to load. If you want to speed this up, you can change the Spacy model in use** ## Installation Note: It is highly recommended to use a virtual environment because of the strict version requirements for dependencies. The library has been tested with Python 3.6 pip3 --no-cache-dir install pip==18.1 pip3 install natas --process-dependency-links python3 -m natas.download python3 -m spacy download en_core_web_md ## Historical normalization For a list of non-modern spelling variants, the tool can produce an ordered list of the candidate normalizations. The candidates are ordered based on the prediction score of the NMT model. import natas natas.normalize_words(["seacreat", "wiþe"]) >> [['secret', 'secrete'], ['with', 'withe', 'wide', 'white', 'way']] Possible keyword arguments are n_best=10, dictionary=None, all_candidates=True, correct_spelling_cache=True. - *n_best* sets the number of candidates the NMT will output - *dictionary* sets a custom dictionary to be used to filter the NMT output (see more in the next section) - *all_candidates*, if False, the method will return only the topmost normalization candidate (this will improve the speed of the method) - *correct_spelling_cache*, used only when checking if a candidate word is correctly spelled. Set this to False if you are testing with multiple *dictionaries*. ## OCR post correction You can use our pretrained model for OCR post correction by doing the following import natas natas.ocr_correct_words(["paft", "friendlhip"]) >> [['past', 'pall', 'part', 'part'], ['friendship']] This will return a list of possible correction candidates in the order of probability according to the NMT model. The same parameters can be used as for historical text normalization. ### Training your own OCR error correction model You can extract the parallel data for the OCR model if you have an access to a word embeddings model on your OCR data, a list of known correctly spelled words and a vocabulary of the language. from natas import ocr_builder from natas.normalize import wiktionary from gensim.models import Word2Vec model = Word2Vec.load("/path/to/your_model.w2v") seed_words = set(["logic", "logical"]) #list of correctly spelled words you want to find matching OCR errors for dictionary = wiktionary #Lemmas of the English Wiktionary, you will need to change this if working with any other language lemmatize = True #Uses Spacy with English model, use natas.set_spacy(nlp) for other models and languages results = ocr_builder.extract_parallel(seed_words, model, dictionary=dictionary, lemmatize=lemmatize) >> {"logic": { "fyle": 5, "ityle": 5, "lofophy": 5, "logick": 1 }, "logical": { "lofophy": 5, "matical": 3, "phical": 3, "praaical": 4, "pracical": 4, "pratical": 4 }} The code results in a dictionary of correctly spelled English words (from *seed_words*) and their mapping to semantically similar non-correctly spelled words (not in *dictionary*). Each non-correct word has a [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) calculated with the correctly spelled word. In our paper, we used 3 as the maximum edit distance. Use the dictionary to make parallel data files for OpenNMT on a character level. This means splitting the words into letters, such as *l o g i c k* -> *l o g i c*. See [their documentation on how to train the model](https://github.com/OpenNMT/OpenNMT-py). ## Check if a word is correctly spelled You can check whether a word is correctly spelled easily import natas natas.is_correctly_spelled("cat") natas.is_correctly_spelled("ca7") >> True >> False This will compare the word with Wiktionary lemmas with and without Spacy lemmatization. The normalization method depends on this step. By default, *natas* uses Spacy's *en_core_web_md* model. To change this model, do the following import natas, spacy nlp = spacy.load('en') natas.set_spacy(nlp) If you want to replace the Wiktionary dictionary with another one, it can be passed as a keyword argument. Use *set* instead of *list* for a faster look-up. Notice that the models operate on lowercased words. import natas my_dictionary= set(["hat", "rat"]) natas.is_correctly_spelled("cat", dictionary=my_dictionary) natas.normalize_words(["ratte"], dictionary=my_dictionary) By default, caching is enabled. If you want to use the method with multiple different parameters, you will need to set *cache=False*. import natas natas.is_correctly_spelled("cat") #The word is looked up and the result cached natas.is_correctly_spelled("cat") #The result will be served from the cache natas.is_correctly_spelled("cat", cache=False) #The word will be looked up again # Cite If you use the library, please cite one of the following publications depending on whether you used it for normalization or OCR correction. ## Normalization <NAME>, <NAME>, <NAME>, <NAME>, and <NAME>̈. 2019. [Revisiting NMT for Normalization of Early English Letters](https://www.aclweb.org/anthology/papers/W/W19/W19-2509/). In *Proceedings of the 3rd Joint SIGHUM Workshop on Computational Linguistics for Cultural Heritage, Social Sciences, Humanities and Literature*. ## OCR correction <NAME>, and <NAME>. 2019. [From the Paft to the Fiiture: a Fully Automatic NMT and Word Embeddings Method for OCR Post-Correction](https://helda.helsinki.fi//bitstream/handle/10138/305149/SN_Mika_Simon_5_.pdf?sequence=1). In *the Proceedings of Recent Advances in Natural Language Processing*. <file_sep>from django.shortcuts import render, redirect from django.http import HttpResponse, HttpResponseRedirect from django.views.decorators.csrf import csrf_exempt from .forms import InputTextForm from .process import handle_text_upload # Create your views here. @csrf_exempt def main(request): form = InputTextForm() if request.method == 'POST': form = InputTextForm(request.POST) print('Post method reveived') if form.is_valid(): received_text = request.POST['text_input'] altered_text = handle_text_upload(received_text) form = InputTextForm(initial={'text_input': received_text, 'text_output': altered_text}) context = { 'form':form } return render(request, 'postprocessing/main.html', context) def redir(request): return redirect('postprocessing/')<file_sep>from .normalize import _normalize, set_spacy, wiktionary, _get_spacy from .normalize import is_in_dictionary as _is_in_dictionary from .ocr_builder import get_wv_normalization class W2VException(Exception): pass def normalize_words(words, n_best=10, dictionary=None, all_candidates=True, correct_spelling_cache=True): return _normalize(words, "normalization.pt", n_best=n_best, dictionary=dictionary, all_candidates=all_candidates,correct_spelling_cache=correct_spelling_cache) def ocr_correct_words(words, n_best=10, dictionary=None, all_candidates=True, hybrid=False, hybrid_w2v_model=None,correct_spelling_cache=True): if hybrid is True and hybrid_w2v_model is None: raise W2VException("W2V model not specified") norms = _normalize(words, "ocr.pt", n_best=n_best, dictionary=dictionary, all_candidates=all_candidates,correct_spelling_cache=correct_spelling_cache) if hybrid: for i, l in enumerate(norms): if len(l) == 0: w2v_norm = get_wv_normalization(words[i], hybrid_w2v_model, dictionary, cache=correct_spelling_cache) if len(w2v_norm) > 0: l.append(w2v_norm) return norms else: return norms def is_correctly_spelled(word, dictionary=wiktionary, cache=True): return _is_in_dictionary(word.lower(), dictionary, _get_spacy(), cache)
ba435e223f828b9b3d77dd029bf0b6153e711a41
[ "Markdown", "Python", "Text" ]
24
Python
fiorentinogiuseppe/aiboxsummerschool-OCR
5f3200c1432c295691203c9a1dfd732c713d870c
6eefdd52e0c1cd4183a4b8051f0ba24942cc8597
refs/heads/master
<repo_name>s-innovations/S-Innovations.VectorTiles<file_sep>/src/GeoJsonVT/Processing/VectorTileTransformer.cs using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; using SInnovations.VectorTiles.GeoJsonVT.Models; namespace SInnovations.VectorTiles.GeoJsonVT.Processing { public class VectorTileTransformer { public double[] TransformPoint(double[] p, double extent, int z2, int tx, int ty) { var x = Math.Round(extent * (p[0] * z2 - tx)); var y = Math.Round(extent * (p[1] * z2 - ty)); if(x<0 ||y < 0) { } return new[] { x, y }; } public VectorTile TransformTile(VectorTile tile, double extent) { if (tile.Transformed) return tile; var z2 = tile.Z2; var tx = tile.X; var ty = tile.Y; for (var i = 0; i < tile.Features.Count; i++) { var feature = tile.Features[i]; var type = feature.Type; if (type == 1) { var geom = feature.Geometry[0]; for (var j = 0; j < geom.Count; j++) geom[j] = TransformPoint(geom[j], extent, z2, tx, ty); } else { var geom = feature.Geometry; for (var j = 0; j < geom.Length; j++) { var ring = geom[j]; for (var k = 0; k < ring.Count; k++) ring[k] = TransformPoint(ring[k], extent, z2, tx, ty); } } } tile.Transformed = true; return tile; } } } <file_sep>/src/GeoJsonVT/GeoJsonVectorTilesOptions.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SInnovations.VectorTiles.GeoJsonVT { public class GeoJsonVectorTilesOptions { public int MaxZoom { get; set; } = 14; public int IndexMaxZoom { get; set; } = 5; public int IndexMaxPoints { get; set; } = 100000; public bool SolidChildren { get; set; } = false; public double Tolerance { get; set; } = 3; public double Extent { get; set; } = 4096; public double Buffer { get; set; } = 64; public int Debug { get; set; } = 0; public ITileStore Tiles { get; set; } } } <file_sep>/src/GeoJsonVT/GeoJsonVectorTiles.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json.Linq; using SInnovations.VectorTiles.GeoJsonVT.GeoJson; using SInnovations.VectorTiles.GeoJsonVT.Logging; using SInnovations.VectorTiles.GeoJsonVT.Models; using SInnovations.VectorTiles.GeoJsonVT.Processing; namespace SInnovations.VectorTiles.GeoJsonVT { public class GeoJsonVTStackItem { public VectorTileCoord Coord { get; internal set; } public List<VectorTileFeature> Features { get; internal set; } } public static class Extensions { public static bool HasAny(this List<VectorTileFeature> features) { if (features == null) return false; return features.Any(); } public static bool NotNull(this VectorTile tile) { if (tile == null) return false; return true; } public static bool IsNull(this VectorTile tile) { if (tile == null) return true; return false; } public static bool NoSource(this VectorTile tile) { return tile.IsNull() || tile.Source == null; } } public class GeoJsonVectorTiles : GeoJsonVectorTiles<GeoJsonVectorTilesOptions> { } public interface ITileStore { ICollection<VectorTileCoord> TileCoords { get; } VectorTile Get(string id); VectorTile Set(string id, VectorTile value); bool Contains(string id); } public class DefaultTileStore : ITileStore { private Dictionary<string, VectorTile> _store = new Dictionary<string, VectorTile>(); public ICollection<VectorTileCoord> TileCoords { get; set; } = new List<VectorTileCoord>(); public bool Contains(string id) { return _store.ContainsKey(id); } public VectorTile Get(string id) { return _store[id]; } public VectorTile Set(string id, VectorTile value) { return _store[id] = value; } } public class GeoJsonVectorTiles<T> where T : GeoJsonVectorTilesOptions,new() { private static ILog Logger = LogProvider.GetCurrentClassLogger(); protected VectorTileConverter Converter { get; set; } protected VectorTileWrapper Wrapper { get; set; } protected VectorTileClipper Clipper { get; set; } protected VectorTileTransformer Transformer { get; set; } public T Options { get; set; } // public Dictionary<string, VectorTile> Tiles { get; set; } // public List<VectorTileCoord> TileCoords { get; set; } public ITileStore Tiles { get; set; } protected static double[] IntersectX(double[] a, double[] b, double x) { return new[] { x, (x - a[0]) * (b[1] - a[1]) / (b[0] - a[0]) + a[1], 1 }; } protected static double[] intersectY(double[] a, double[] b, double y) { return new[] { (y - a[1]) * (b[0] - a[0]) / (b[1] - a[1]) + a[0], y, 1 }; } public GeoJsonVectorTiles(T options = null, VectorTileConverter converter = null, VectorTileWrapper wrapper = null, VectorTileClipper clipper = null, VectorTileTransformer transformer=null) { Converter = converter ?? new VectorTileConverter(); Clipper = clipper ?? new VectorTileClipper(); Wrapper = wrapper ?? new VectorTileWrapper(Clipper); Options = options ?? new T(); Transformer = transformer ?? new VectorTileTransformer(); Tiles = Options.Tiles ?? new DefaultTileStore(); } public void ProcessData(GeoJsonObject data) { Logger.Debug($"Preprocessing data"); var z2 = 1 << Options.MaxZoom;//2^z var features = Converter.Convert(data, Options.Tolerance / (z2 * Options.Extent)); Logger.Debug($"Preprocessing data end"); // Tiles = new Dictionary<string, VectorTile>(); // TileCoords = new List<VectorTileCoord>(); features = Wrapper.Wrap(features, Options.Buffer / Options.Extent, IntersectX); // start slicing from the top tile down if (features.Count > 0) SplitTile(features, new VectorTileCoord()); } public int? SplitTile(List<VectorTileFeature> startfeatures, VectorTileCoord startCoord, int? cz = null, int? cx =null, int? cy = null) { var stack = new Stack<GeoJsonVTStackItem>(); stack.Push(new GeoJsonVTStackItem { Features = startfeatures, Coord = startCoord }); int? solid = null; while (stack.Count > 0) { var item = stack.Pop(); var features = item.Features; var x = item.Coord.X; var y = item.Coord.Y; var z = item.Coord.Z; var z2 = 1 << z; var id = item.Coord.ToID(); VectorTile tile = Tiles.Contains(id) ? Tiles.Get(id) : null; if (tile == null) { var tileTolerance = z == Options.MaxZoom ? 0 : Options.Tolerance / (z2 * Options.Extent); tile = Tiles.Set(id, VectorTile.CreateTile(features, z2, x, y, tileTolerance, z == Options.MaxZoom)); Tiles.TileCoords.Add(new VectorTileCoord(z,x,y)); } // save reference to original geometry in tile so that we can drill down later if we stop now tile.Source = features; // if it's the first-pass tiling if (!cz.HasValue) { // stop tiling if we reached max zoom, or if the tile is too simple if (z == Options.IndexMaxZoom || tile.NumPoints <= Options.IndexMaxPoints) continue; // if a drilldown to a specific tile } else { // stop tiling if we reached base zoom or our target tile zoom if (z == Options.MaxZoom) continue; // stop tiling if it's not an ancestor of the target tile if (cz.HasValue) { if (z == cz.Value) continue; var m = 1 << (cz.Value - z); if (x != (int)Math.Floor((double)cx.Value / m) || y != (int)Math.Floor((double)cy.Value / m)) continue; } } // stop tiling if the tile is solid clipped square if (!Options.SolidChildren && IsClippedSquare(tile, Options.Extent, Options.Buffer)) { if (cz.HasValue) solid = z; // and remember the zoom if we're drilling down continue; } // if we slice further down, no need to keep source geometry tile.Source = null; // if (debug > 1) console.time('clipping'); // values we'll use for clipping var k1 = 0.5 * Options.Buffer / Options.Extent; var k2 = 0.5 - k1; var k3 = 0.5 + k1; var k4 = 1 + k1; List<VectorTileFeature> tl, bl, tr, br, left, right; tl = bl = tr = br = null; left = Clipper.Clip(features, z2, x - k1, x + k3, 0, IntersectX, tile.min[0], tile.max[0]); right = Clipper.Clip(features, z2, x + k2, x + k4, 0, IntersectX, tile.min[0], tile.max[0]); if (left.HasAny()) { tl = Clipper.Clip(left, z2, y - k1, y + k3, 1, intersectY, tile.min[1], tile.max[1]); bl = Clipper.Clip(left, z2, y + k2, y + k4, 1, intersectY, tile.min[1], tile.max[1]); } if (right.HasAny()) { tr = Clipper.Clip(right, z2, y - k1, y + k3, 1, intersectY, tile.min[1], tile.max[1]); br = Clipper.Clip(right, z2, y + k2, y + k4, 1, intersectY, tile.min[1], tile.max[1]); } // if (debug > 1) console.timeEnd('clipping'); if (tl.HasAny()) stack.Push(new GeoJsonVTStackItem { Features = tl, Coord = new VectorTileCoord(z + 1, x * 2, y * 2 ) }); if (bl.HasAny()) stack.Push(new GeoJsonVTStackItem { Features = bl, Coord = new VectorTileCoord(z + 1, x * 2, y * 2 + 1) }); if (tr.HasAny()) stack.Push(new GeoJsonVTStackItem { Features = tr, Coord = new VectorTileCoord(z + 1, x * 2 + 1, y * 2 ) }); if (br.HasAny()) stack.Push(new GeoJsonVTStackItem { Features = br, Coord = new VectorTileCoord(z + 1, x * 2 + 1, y * 2 + 1) }); } return solid; } public VectorTile GetTile(VectorTileCoord coord) { return GetTile(coord.Z, coord.X, coord.Y); } public VectorTile GetTile(int z,int x,int y) { var options = this.Options; var extent = options.Extent; var debug = options.Debug; var z2 = 1 << z; x = ((x % z2) + z2) % z2; // wrap tile x coordinate var id = VectorTileCoord.ToID(z, x, y); if (Tiles.Contains(id)) return Transformer.TransformTile(Tiles.Get(id), extent); // if (debug > 1) console.log('drilling down to z%d-%d-%d', z, x, y); var z0 = z; var x0 = x; var y0 = y; VectorTile parent=null; while (parent.IsNull() && z0 > 0) { z0--; x0 = (int)Math.Floor(x0 / 2.0); y0 = (int)Math.Floor(y0 / 2.0); var tileId = VectorTileCoord.ToID(z0, x0, y0); parent = Tiles.Contains(tileId) ? Tiles.Get(tileId) : null; } if (parent.NoSource()) return null; // if we found a parent tile containing the original geometry, we can drill down from it // if (debug > 1) console.log('found parent tile z%d-%d-%d', z0, x0, y0); // it parent tile is a solid clipped square, return it instead since it's identical if (IsClippedSquare(parent, extent, options.Buffer)) return Transformer.TransformTile(parent, extent); // if (debug > 1) console.time('drilling down'); var solid = SplitTile(parent.Source, new VectorTileCoord(z0, x0, y0), z, x, y); // if (debug > 1) console.timeEnd('drilling down'); // one of the parent tiles was a solid clipped square if (solid.HasValue) { double m = 1 << (z - solid.Value); id = VectorTileCoord.ToID(solid.Value,(int) Math.Floor(x / m), (int)Math.Floor(y / m)); } return Tiles.Contains(id) ? Transformer.TransformTile(this.Tiles.Get(id), extent) : null; } protected bool IsClippedSquare(VectorTile tile, double extent, double buffer) { var features = tile.Source; if (features.Count != 1) return false; var feature = features[0]; if (feature.Type != 3 || feature.Geometry.Length > 1) return false; var len = feature.Geometry[0].Count; if (len != 5) return false; for (var i = 0; i < len; i++) { var p = Transformer.TransformPoint(feature.Geometry[0][i], extent, tile.Z2, tile.X, tile.Y); if ((p[0] != -buffer && p[0] != extent + buffer) || (p[1] != -buffer && p[1] != extent + buffer)) return false; } return true; } } } <file_sep>/src/GeoJsonVT/Processing/VectorTileConverter.cs using System; using System.Collections.Generic; using SInnovations.VectorTiles.GeoJsonVT.GeoJson; using SInnovations.VectorTiles.GeoJsonVT.GeoJson.Geometries; using SInnovations.VectorTiles.GeoJsonVT.Models; namespace SInnovations.VectorTiles.GeoJsonVT.Processing { public class VectorTileConverter { protected VectorTileSimplifier Simplifier { get; private set; } public VectorTileConverter(VectorTileSimplifier simplifier = null) { Simplifier = simplifier ?? new VectorTileSimplifier(); } public List<VectorTileFeature> Convert(GeoJsonObject data, double tolerance) { var features = new List<VectorTileFeature>(); if (data.Type == GeoJsonObject.FeatureCollectionType) { var featureCollection = data as GeoJsonFeatureCollection; for (int i = 0; i < featureCollection.Features.Length; i++) { ConvertFeature(features, featureCollection.Features[i], tolerance); } } else if (data.Type == GeoJsonObject.FeatureType) { ConvertFeature(features, data as GeoJsonFeature, tolerance); } else { // single geometry or a geometry collection ConvertFeature(features, new GeoJsonFeature { Geometry = data as GeometryObject }, tolerance); } return features; } private void ConvertFeature(List<VectorTileFeature> features, GeoJsonFeature feature, double tolerance) { if (feature.Geometry == null) return; var geom = feature.Geometry; var type = geom.Type; if (type == GeoJsonObject.GeoJsonPointType) { var point = geom as Point; features.Add(Create(feature.Properties, 1, new[] { new VectorTileGeometry { ProjectPoint(point.Coordinates) } })); } else if (type == GeoJsonObject.GeoJsonMultiPointType) { var multiPoint = geom as MultiPoint; features.Add(Create(feature.Properties, 1, new[] { Project(multiPoint.Coordinates) })); } else if (type == GeoJsonObject.GeoJsonLineStringType) { var linestring = geom as LineString; features.Add(Create(feature.Properties, 2, new[] { Project(linestring.Coordinates, tolerance) })); } else if (type == GeoJsonObject.GeoJsonMultiLineStringType || type == GeoJsonObject.GeoJsonPolygonType) { var coords = (geom as MultiLineStringPolygonGeometry).Coordinates; var rings = new List<VectorTileGeometry>(); for (var i = 0; i < coords.Length; i++) { rings.Add(Project(coords[i], tolerance)); } features.Add(Create(feature.Properties, type == GeoJsonObject.GeoJsonPolygonType ? 3 : 2, rings.ToArray())); } else if (type == GeoJsonObject.GeoJsonMultiPolygonType) { var coords = (geom as MultiPolygon).Coordinates; var rings = new List<VectorTileGeometry>(); for (var i = 0; i < coords.Length; i++) { for (var j = 0; j < coords[i].Length; j++) { rings.Add(Project(coords[i][j], tolerance)); } } features.Add(Create(feature.Properties, 3, rings.ToArray())); } else if (type == GeoJsonObject.GeoJsonGeometryCollectionType) { var collection = geom as GeometryCollection; for (var i = 0; i < collection.Geometries.Length; i++) { ConvertFeature(features, new GeoJsonFeature { Geometry = collection.Geometries[i], Properties = feature.Properties, }, tolerance); } } else { throw new Exception("Input data is not a valid GeoJSON object."); } } private VectorTileFeature Create(Dictionary<string, object> properties, int v, VectorTileGeometry[] geoJsonVTPointCollection) { var feature = new VectorTileFeature { Geometry = geoJsonVTPointCollection, Tags = properties, Type = v, }; CalcBBox(feature); return feature; } private VectorTileFeature CalcBBox(VectorTileFeature feature) { var geometry = feature.Geometry; var min = feature.Min; var max = feature.Max; for (var i = 0; i < geometry.Length; i++) CalcRingBBox(min, max, geometry[i]); return feature; } private void CalcRingBBox(double[] min, double[] max, VectorTileGeometry points) { for (var i = 0; i < points.Count; i++) { var p = points[i]; min[0] = Math.Min(p[0], min[0]); max[0] = Math.Max(p[0], max[0]); min[1] = Math.Min(p[1], min[1]); max[1] = Math.Max(p[1], max[1]); } } private VectorTileGeometry Project(double[][] lonlats, double? tolerance = null) { var projected = new VectorTileGeometry(); for (var i = 0; i < lonlats.Length; i++) { projected.Add(ProjectPoint(lonlats[i])); } if (tolerance.HasValue && tolerance.Value > 0) { Simplifier.simplify(projected, tolerance.Value); calcSize(projected); } return projected; } private void calcSize(VectorTileGeometry points) { double area = 0; double dist = 0; double[] a = null; double[] b = null; for (int i = 0; i < points.Count - 1; i++) { a = b ?? points[i]; b = points[i + 1]; area += a[0] * b[1] - b[0] * a[1]; // use Manhattan distance instead of Euclidian one to avoid expensive square root computation dist += Math.Abs(b[0] - a[0]) + Math.Abs(b[1] - a[1]); } points.Area = Math.Abs(area / 2); points.Distance = dist; } public double[] ProjectPoint(double[] p) { var sin = Math.Sin(p[1] * Math.PI / 180); var x = (p[0] / 360 + 0.5); var y = (0.5 - 0.25 * Math.Log((1 + sin) / (1 - sin)) / Math.PI); y = y < 0 ? 0 : y > 1 ? 1 : y; return new[] { x, y, 0.0 }; } } } <file_sep>/src/GeoJsonVT/Processing/VectorTileSimplifier.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SInnovations.VectorTiles.GeoJsonVT.Processing { public class VectorTileSimplifier { public void simplify(List<double[]> points, double tolerance) { var sqTolerance = tolerance * tolerance; var len = points.Count; var first = 0; int? last = len - 1; var stack = new Stack<int>(); int index = 0; // var i, maxSqDist, sqDist, index; // always retain the endpoints (1 is the max value) points[first][2] = 1; points[last.Value][2] = 1; // avoid recursion by using a stack while (last.HasValue) { var maxSqDist = 0.0; for (var i = first + 1; i < last; i++) { var sqDist = getSqSegDist(points[i], points[first], points[last.Value]); if (sqDist > maxSqDist) { index = i; maxSqDist = sqDist; } } if (maxSqDist > sqTolerance) { points[index][2] = maxSqDist; // save the point importance in squared pixels as a z coordinate stack.Push(first); stack.Push(index); first = index; } else { if (stack.Count > 0) { last = stack.Pop(); first = stack.Pop(); }else { last = null; } } } } private double getSqSegDist(double[] p, double[] a, double[] b) { var x = a[0]; var y = a[1]; var bx = b[0]; var by = b[1]; var px = p[0]; var py = p[1]; var dx = bx - x; var dy = by - y; if (dx != 0 || dy != 0) { var t = ((px - x) * dx + (py - y) * dy) / (dx * dx + dy * dy); if (t > 1) { x = bx; y = by; } else if (t > 0) { x += dx * t; y += dy * t; } } dx = px - x; dy = py - y; return dx * dx + dy * dy; } } } <file_sep>/src/GeoJsonVT/GeoJson/Geometries/MultiLineStringPolygonGeometry.cs namespace SInnovations.VectorTiles.GeoJsonVT.GeoJson.Geometries { public abstract class MultiLineStringPolygonGeometry : GeometryObject { public double[][][] Coordinates { get; set; } } } <file_sep>/src/GeoJsonVT/Models/VectorTile.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SInnovations.VectorTiles.GeoJsonVT.Models { public class VectorTile { public List<VectorTileFeature> Features { get; set; } = new List<VectorTileFeature>(); public int NumPoints { get; set; } = 0; public int NumSimplified { get; set; } = 0; public List<VectorTileFeature> Source { get; internal set; } public int Z2 { get; set; } public int Y { get; set; } public int X { get; set; } public int Z { get { return (int)Math.Log(Z2, 2); } } public bool Transformed { get; set; } public double[] min { get; set; } = new double[] { 2, 1 }; public double[] max { get; set; } = new double[] { -1, 0 }; public VectorTileCoord TileCoord { get { return new VectorTileCoord(Z, X, Y); } } public VectorTileCoord ParentTileCoord { get { return new VectorTileCoord(Z - 1, (int)Math.Floor(X / 2.0), (int)Math.Floor(Y / 2.0)); } } public static VectorTile CreateTile(List<VectorTileFeature> features, int z2, int tx, int ty, double tolerance, bool noSimplify) { var tile = new VectorTile(); tile.Z2 = z2; tile.X = tx; tile.Y = ty; for (var i = 0; i < features.Count; i++) { tile.AddFeature(features[i], tolerance, noSimplify); var min = features[i].Min; var max = features[i].Max; if (min[0] < tile.min[0]) tile.min[0] = min[0]; if (min[1] < tile.min[1]) tile.min[1] = min[1]; if (max[0] > tile.max[0]) tile.max[0] = max[0]; if (max[1] > tile.max[1]) tile.max[1] = max[1]; } return tile; } public void Add(VectorTileFeature feature, double tolerance, bool noSimplify) { this.AddFeature(feature, tolerance, noSimplify); var min = feature.Min; var max = feature.Max; if (min[0] < this.min[0]) this.min[0] = min[0]; if (min[1] < this.min[1]) this.min[1] = min[1]; if (max[0] > this.max[0]) this.max[0] = max[0]; if (max[1] > this.max[1]) this.max[1] = max[1]; } private void AddFeature(VectorTileFeature feature, double tolerance, bool noSimplify) { var geom = feature.Geometry; var type = feature.Type; var simplified = new List<VectorTileGeometry>(); var sqTolerance = tolerance * tolerance; // i, j, ring, p; if (type == 1) { var first = new VectorTileGeometry(); simplified.Add(first); var points = geom[0]; for (var i = 0; i < points.Count; i++) { first.Add(points[i]); NumPoints++; NumSimplified++; } } else { // simplify and transform projected coordinates for tile geometry for (var i = 0; i < geom.Length; i++) { var ring = geom[i]; // filter out tiny polylines & polygons if (!noSimplify && ((type == 2 && ring.Distance < tolerance) || (type == 3 && ring.Area < sqTolerance))) { NumPoints += ring.Count; continue; } var simplifiedRing = new VectorTileGeometry(); for (var j = 0; j < ring.Count; j++) { var p = ring[j]; // keep points with importance > tolerance if (noSimplify || p[2] > sqTolerance) { simplifiedRing.Add(p); NumSimplified++; } NumPoints++; } simplified.Add(simplifiedRing); } } if (simplified.Count > 0) { Features.Add(new VectorTileFeature { Geometry = simplified.ToArray(), Type = type, Tags = feature.Tags }); } } } } <file_sep>/src/GeoJsonVT/GeoJson/Geometries/Polygon.cs namespace SInnovations.VectorTiles.GeoJsonVT.GeoJson.Geometries { public class Polygon : MultiLineStringPolygonGeometry { public override string Type { get; } = GeoJsonPolygonType; } } <file_sep>/src/GeoJsonVT/Processing/VectorTileClipper.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using SInnovations.VectorTiles.GeoJsonVT.Models; namespace SInnovations.VectorTiles.GeoJsonVT.Processing { /* clip features between two axis-parallel lines: * | | * ___|___ | / * / | \____|____/ * | | */ public class VectorTileClipper { public VectorTileFeature Clip(VectorTileFeature feature, double scale, double k1, double k2, int axis, Func<double[], double[], double, double[]> intersect, double minAll, double maxAll) { k1 /= scale; k2 /= scale; if (minAll >= k1 && maxAll <= k2) return feature; // trivial accept else if (minAll > k2 || maxAll < k1) return null; // trivial reject var geometry = feature.Geometry; var type = feature.Type; var min = feature.Min[axis]; var max = feature.Max[axis]; if (min >= k1 && max <= k2) { // trivial accept return feature; } else if (min > k2 || max < k1) return null; // trivial reject var slices = type == 1 ? clipPoints(geometry[0], k1, k2, axis) : clipGeometry(geometry, k1, k2, axis, intersect, type == 3); if ((slices.Length == 1) ? slices[0].Count > 0 : slices.Length > 0) { // if a feature got clipped, it will likely get clipped on the next zoom level as well, // so there's no need to recalculate bboxes return new VectorTileFeature { Geometry = slices, Type = type, Tags = feature.Tags, Min = feature.Min, Max = feature.Max }; } return null; } public List<VectorTileFeature> Clip(List<VectorTileFeature> features, double scale, double k1, double k2, int axis, Func<double[], double[], double, double[]> intersect, double minAll, double maxAll) { k1 /= scale; k2 /= scale; if (minAll >= k1 && maxAll <= k2) return features; // trivial accept else if (minAll > k2 || maxAll < k1) return new List<VectorTileFeature>(); // trivial reject var clipped = new List<VectorTileFeature>(); for (var i = 0; i < features.Count; i++) { var feature = features[i]; var geometry = feature.Geometry; var type = feature.Type; var min = feature.Min[axis]; var max = feature.Max[axis]; if (min >= k1 && max <= k2) { // trivial accept clipped.Add(feature); continue; } else if (min > k2 || max < k1) continue; // trivial reject var slices = type == 1 ? clipPoints(geometry[0], k1, k2, axis) : clipGeometry(geometry, k1, k2, axis, intersect, type == 3); if ((slices.Length == 1) ? slices[0].Count >0 : slices.Length > 0) { // if a feature got clipped, it will likely get clipped on the next zoom level as well, // so there's no need to recalculate bboxes clipped.Add( new VectorTileFeature { Geometry= slices , Type= type, Tags= feature.Tags, Min= feature.Min, Max= feature.Max }); } } return clipped; } private VectorTileGeometry[] clipGeometry(VectorTileGeometry[] geometry, double k1, double k2, int axis, Func<double[], double[], double, double[]> intersect, bool closed) { var slices = new List<VectorTileGeometry>(); for (var i = 0; i < geometry.Length; i++) { double? ak = null; double? bk = null; double[] b = null; var points = geometry[i]; var area = points.Area; var dist = points.Distance; var len = points.Count; double[] a; // var j; // var last; var slice = new VectorTileGeometry(); for (var j = 0; j < len - 1; j++) { a = b ?? points[j]; b = points[j + 1]; ak = bk ?? a[axis]; bk = b[axis]; if (ak.Value < k1) { if ((bk.Value > k2)) { // ---|-----|--> slice.Add(intersect(a, b, k1)); slice.Add(intersect(a, b, k2)); if (!closed) slice = NewSlice(slices, slice, area, dist); } else if (bk.Value >= k1) slice.Add(intersect(a, b, k1)); // ---|--> | } else if (ak.Value > k2) { if ((bk.Value < k1)) { // <--|-----|--- slice.Add(intersect(a, b, k2)); slice.Add(intersect(a, b, k1)); if (!closed) slice = NewSlice(slices, slice, area, dist); } else if (bk.Value <= k2) slice.Add(intersect(a, b, k2)); // | <--|--- } else { slice.Add(a); if (bk.Value < k1) { // <--|--- | slice.Add(intersect(a, b, k1)); if (!closed) slice = NewSlice(slices, slice, area, dist); } else if (bk.Value > k2) { // | ---|--> slice.Add(intersect(a, b, k2)); if (!closed) slice = NewSlice(slices, slice, area, dist); } // | --> | } } // add the last point a = points[len - 1]; ak = a[axis]; if (ak.Value >= k1 && ak.Value <= k2) slice.Add(a); // close the polygon if its endpoints are not the same after clipping if (slice.Any()) { var last = slice[slice.Count - 1]; if (closed && (slice[0][0] != last[0] || slice[0][1] != last[1])) slice.Add(slice[0]); } // add the final slice NewSlice(slices, slice, area, dist); } return slices.ToArray(); } private VectorTileGeometry NewSlice(List<VectorTileGeometry> slices, VectorTileGeometry slice, double area, double dist) { if (slice.Any()) { // we don't recalculate the area/length of the unclipped geometry because the case where it goes // below the visibility threshold as a result of clipping is rare, so we avoid doing unnecessary work slice.Area = area; slice.Distance = dist; slices.Add(slice); } return new VectorTileGeometry(); } private VectorTileGeometry[] clipPoints(VectorTileGeometry geometry, double k1, double k2, int axis) { var slice = new VectorTileGeometry(); for (var i = 0; i < geometry.Count; i++) { var a = geometry[i]; var ak = a[axis]; if (ak >= k1 && ak <= k2) slice.Add(a); } return new[] { slice }; } } } <file_sep>/src/GeoJsonVT/GeoJson/Geometries/MultiPoint.cs namespace SInnovations.VectorTiles.GeoJsonVT.GeoJson.Geometries { public class MultiPoint : GeometryObject { public override string Type { get; } = GeoJsonMultiPointType; public double[][] Coordinates { get; set; } } } <file_sep>/src/GeoJsonVT/Models/Converters/GeoJsonVTFeatureConverter.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; namespace SInnovations.VectorTiles.GeoJsonVT.Models.Converters { public class GeoJsonVTFeatureConverter : JsonConverter { public override bool CanConvert(Type objectType) { return typeof(VectorTileFeature) == objectType; } public override bool CanRead { get { return false; } } public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) { throw new NotImplementedException(); } public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) { var feature = value as VectorTileFeature; writer.WriteStartObject(); writer.WritePropertyName("geometry"); if (feature.Type == 1) { serializer.Serialize(writer, feature.Geometry[0].ToIntArray()); } else { serializer.Serialize(writer, feature.Geometry.Select(k => k.ToIntArray())); } writer.WritePropertyName("type"); writer.WriteValue(feature.Type); writer.WritePropertyName("tags"); serializer.Serialize(writer, feature.Tags); writer.WriteEndObject(); } } } <file_sep>/src/GeoJsonVT/GeoJson/Geometries/GeometryCollection.cs namespace SInnovations.VectorTiles.GeoJsonVT.GeoJson.Geometries { public class GeometryCollection : GeometryObject { public override string Type { get; } = GeoJsonGeometryCollectionType; public GeometryObject[] Geometries { get; set; } } } <file_sep>/src/GeoJsonVT/GeoJson/Geometries/GeometryObject.cs namespace SInnovations.VectorTiles.GeoJsonVT.GeoJson.Geometries { public abstract class GeometryObject : GeoJsonObject { } } <file_sep>/src/GeoJsonVT/GeoJson/GeoJsonFeatureCollection.cs namespace SInnovations.VectorTiles.GeoJsonVT.GeoJson { public class GeoJsonFeatureCollection : GeoJsonObject { public override string Type { get; } = FeatureCollectionType; public GeoJsonFeature[] Features { get; set; } } } <file_sep>/src/GeoJsonVT/GeoJson/Geometries/LineString.cs namespace SInnovations.VectorTiles.GeoJsonVT.GeoJson.Geometries { public class LineString : GeometryObject { public override string Type { get; } = GeoJsonLineStringType; public double[][] Coordinates { get; set; } } } <file_sep>/src/GeoJsonVT/GeoJson/Geometries/MultiLineString.cs namespace SInnovations.VectorTiles.GeoJsonVT.GeoJson.Geometries { public class MultiLineString : MultiLineStringPolygonGeometry { public override string Type { get; } = GeoJsonMultiLineStringType; } } <file_sep>/src/GeoJsonVT/Models/VectorTileFeature.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; using SInnovations.VectorTiles.GeoJsonVT.Models.Converters; namespace SInnovations.VectorTiles.GeoJsonVT.Models { // [JsonConverter(typeof(GeoJsonVTFeatureConverter))] public class VectorTileFeature { public VectorTileGeometry[] Geometry { get; set; } public int Type { get; set; } public Dictionary<string, object> Tags { get; set; } // [JsonIgnore] public double[] Min { get; set; } = new double[] { 2, 1 }; // [JsonIgnore] public double[] Max { get; set; } = new double[] { -1, 0 }; } } <file_sep>/src/GeoJsonVT/GeoJson/GeoJsonFeature.cs using System.Collections.Generic; using SInnovations.VectorTiles.GeoJsonVT.GeoJson.Geometries; namespace SInnovations.VectorTiles.GeoJsonVT.GeoJson { public class GeoJsonFeature : GeoJsonObject { public override string Type { get; } = FeatureType; public GeometryObject Geometry { get; set; } public Dictionary<string, object> Properties { get; set; } } } <file_sep>/src/GeoJsonVT/Models/VectorTileCoord.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SInnovations.VectorTiles.GeoJsonVT.Models { public struct VectorTileCoord { public VectorTileCoord(int z, int x, int y) { Z = z; Y = y; X = x; } public int Z; public int Y; public int X; public IEnumerable<VectorTileCoord> GetChildCoordinate() { yield return new VectorTileCoord(Z + 1, X * 2, Y * 2); yield return new VectorTileCoord(Z + 1, X * 2, Y * 2 + 1); yield return new VectorTileCoord(Z + 1, X * 2 + 1, Y * 2); yield return new VectorTileCoord(Z + 1, X * 2 + 1, Y * 2 + 1); } public string ToID() { return ((((1 << Z) * Y + X) * 32) + Z).ToString(); } public static string ToID(int z,int x, int y) { return ((((1 << z) * y + x) * 32) + z).ToString(); } } } <file_sep>/src/GeoJsonVT/GeoJson/Geometries/MultiPolygon.cs namespace SInnovations.VectorTiles.GeoJsonVT.GeoJson.Geometries { public class MultiPolygon : GeometryObject { public override string Type { get; } = GeoJsonMultiPolygonType; public double[][][][] Coordinates { get; set; } } } <file_sep>/src/GeoJsonVT/Processing/VectorTileWrapper.cs using System; using System.Collections.Generic; using System.Linq; using SInnovations.VectorTiles.GeoJsonVT.Models; namespace SInnovations.VectorTiles.GeoJsonVT.Processing { public class VectorTileWrapper { protected VectorTileClipper Clipper { get; set; } public VectorTileWrapper(VectorTileClipper clipper = null) { Clipper = clipper ?? new VectorTileClipper(); } /// <summary> /// Wrap features as per original GeoJSONVT. /// </summary> /// <param name="features"></param> /// <param name="buffer"></param> /// <param name="intersectX"></param> /// <returns></returns> public List<VectorTileFeature> Wrap(List<VectorTileFeature> features, double buffer, Func<double[], double[], double, double[]> intersectX) { var merged = features; var left = Clipper.Clip(features, 1, -1 - buffer, buffer, 0, intersectX, -1, 2);//Left world copy; var right = Clipper.Clip(features, 1, 1 - buffer, 2 + buffer, 0, intersectX, -1, 2); //Right world copy; if (left.Any() || right.Any()) { merged = Clipper.Clip(features, 1, -buffer, 1 + buffer, 0, intersectX, -1, 2);//Center world copy; if (left.Any()) merged = ShiftFeatureCoords(left, 1).Concat(merged).ToList(); //merge left into center; if (right.Any()) merged = merged.Concat(ShiftFeatureCoords(right, -1)).ToList(); //merge right into center } return merged; } public IEnumerable<VectorTileFeature> Wrap(VectorTileFeature feature, double buffer, Func<double[], double[], double, double[]> intersectX) { //var merged = new List<VectorTileFeature> { feature }; var left = Clipper.Clip(feature, 1, -1 - buffer, buffer, 0, intersectX, -1, 2);//Left world copy; var right = Clipper.Clip(feature, 1, 1 - buffer, 2 + buffer, 0, intersectX, -1, 2); //Right world copy; var hasLeft = left != null; var hasRight = right != null; if (hasLeft || hasRight) { var center = Clipper.Clip(feature, 1, -buffer, 1 + buffer, 0, intersectX, -1, 2);//Center world copy; if (center != null) yield return center; if(hasLeft) yield return ShiftFeatureCoords(left, 1); if (hasRight) yield return ShiftFeatureCoords(right, -1); }else { yield return feature; } } private VectorTileFeature ShiftFeatureCoords(VectorTileFeature feature, double offset) { var newFeatures = new List<VectorTileFeature>(); var type = feature.Type; var newGeometry = new List<VectorTileGeometry>(); for (var j = 0; j < feature.Geometry.Length; j++) { newGeometry.Add(ShiftCoords(feature.Geometry[j], offset)); } return new VectorTileFeature { Geometry = newGeometry.ToArray(), Type = type, Tags = feature.Tags, Min = new[] { feature.Min[0] + offset, feature.Min[1] }, Max = new[] { feature.Max[0] + offset, feature.Max[1] } }; } private List<VectorTileFeature> ShiftFeatureCoords(List<VectorTileFeature> features, double offset) { var newFeatures = new List<VectorTileFeature>(); for (var i = 0; i < features.Count; i++) { var feature = features[i]; var type = feature.Type; var newGeometry = new List<VectorTileGeometry>(); for (var j = 0; j < feature.Geometry.Length; j++) { newGeometry.Add(ShiftCoords(feature.Geometry[j], offset)); } newFeatures.Add(new VectorTileFeature { Geometry = newGeometry.ToArray(), Type = type, Tags = feature.Tags, Min = new[] { feature.Min[0] + offset, feature.Min[1] }, Max = new[] { feature.Max[0] + offset, feature.Max[1] } }); } return newFeatures; } private VectorTileGeometry ShiftCoords(VectorTileGeometry points, double offset) { var newPoints = new VectorTileGeometry(); newPoints.Area = points.Area; newPoints.Distance = points.Distance; for (var i = 0; i < points.Count; i++) { newPoints.Add(new[] { points[i][0] + offset, points[i][1], points[i][2] }); } return newPoints; } } } <file_sep>/README.md # GeoJsonVT.NET — GeoJSON Vector Tiles for .NET ============================================ ![](https://sinnovations.visualstudio.com/DefaultCollection/_apis/public/build/definitions/40c16cc5-bf99-47d4-a814-56c38cc0ea24/9/badge) This library is a port of [geojson-vt](https://github.com/mapbox/geojson-vt) or the very first commit of such. All functionality and most of the tests are ported. Best place to see it in function is in unit tests right now. #### The MIT License Copyright (c) 2016 S-Innovations v/<NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. <file_sep>/tests/GeoJsonVT.Tests/UnitTest1.cs using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using GeoJsonVT.Streaming; using Microsoft.VisualStudio.TestTools.UnitTesting; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Serilog; using SInnovations.VectorTiles.GeoJsonVT.GeoJson; using SInnovations.VectorTiles.GeoJsonVT.Models; using SInnovations.VectorTiles.GeoJsonVT.Models.Converters; namespace SInnovations.VectorTiles.GeoJsonVT.Tests { public static class GenTiles { public static Dictionary<string, List<VectorTileFeature>> GenerateTiles(GeoJsonObject data,int maxZoom=14, int maxPoints=100000) { var index = new GeoJsonVectorTiles(); index.Options.IndexMaxZoom = maxZoom; index.Options.IndexMaxPoints = maxPoints; index.ProcessData(data); var output = new Dictionary<string, List<VectorTileFeature>>(); foreach(var id in index.Tiles.TileCoords.Select(k=>k.ToID())) { var tile = index.Tiles.Get(id); var z = (int)Math.Log(tile.Z2,2); output[$"z{z}-{tile.X}-{tile.Y}"] = index.GetTile(z, tile.X, tile.Y).Features; } return output; } } [TestClass] public class UnitTest1 { static UnitTest1() { Log.Logger = new LoggerConfiguration() .WriteTo .LiterateConsole(outputTemplate: "{Timestamp:HH:mm} [{Level}] ({Name:l}){NewLine} {Message}{NewLine}{Exception}") .MinimumLevel.Verbose() .CreateLogger(); } public static GeoJsonObject Parse(string data) { return JsonConvert.DeserializeObject<GeoJsonObject>(data, new GeoJsonObjectConverter()); } public static string Load(string name) { return new StreamReader( typeof(UnitTest1).Assembly.GetManifestResourceStream($"SInnovations.VectorTiles.GeoJsonVT.Tests.fixtures.{name}")).ReadToEnd(); } public static string CreateMD5(string input) { // Use input string to calculate MD5 hash using (System.Security.Cryptography.MD5 md5 = System.Security.Cryptography.MD5.Create()) { byte[] inputBytes = System.Text.Encoding.ASCII.GetBytes(input); byte[] hashBytes = md5.ComputeHash(inputBytes); // Convert the byte array to hexadecimal string StringBuilder sb = new StringBuilder(); for (int i = 0; i < hashBytes.Length; i++) { sb.Append(hashBytes[i].ToString("X2")); } return sb.ToString(); } } [TestMethod] public void TestStreaming1() { var data = Parse(Load("testjson.geojson")) as GeoJsonFeatureCollection; var list = new List<VectorTileCoord>(); var index = new StreamingGeoJsonVectorTiles(new StreamingOptions { OnNoSingleSplit = (i) => { if(i.ParentSplitCount == 1) { list.Add(i.Coord); foreach(var point in i.Feature.Geometry.First()) { Console.WriteLine(string.Join(",", point.Take(2))); } foreach(var sub in i.Childs) { Console.WriteLine(); foreach (var point in sub.Feature.Geometry.First()) { Console.WriteLine(string.Join(",", point.Take(2))); } } } } }); index.Tiles = new FileSystemTileStore("./tmp", 5); index.Options.Buffer = 0; index.TileFaature(data.Features.First()); index.TileFaature(data.Features.Skip(1).First()); } [TestMethod] public void TestMethod1() { var data = Parse(Load("testjson.geojson")); var index = new GeoJsonVectorTiles(); index.Options.SolidChildren = true; // index.Options.MaxZoom = maxZoom; // index.Options.IndexMaxPoints = maxPoints; index.ProcessData(data); var path = new List<VectorTileCoord>(); var queue = new Queue<VectorTileCoord>(); queue.Enqueue(new VectorTileCoord()); while(queue.Count > 0) { var coord = queue.Dequeue(); var tile = index.GetTile(coord); if (tile != null && coord.Z < index.Options.MaxZoom) { path.Add(coord); foreach (var childcoord in coord.GetChildCoordinate()) { queue.Enqueue(childcoord); } } } } [TestMethod] public void TestTiles() { var data = Parse(Load("us-states.json")); var index = new GeoJsonVectorTiles(); index.Options.IndexMaxZoom = 7; index.Options.IndexMaxPoints = 7; index.ProcessData(data); var tile= index.GetTile(7, 37, 48); var tiles = GenTiles.GenerateTiles(Parse(Load("us-states.json")), 7, 200); var json1 = JsonConvert.SerializeObject(tiles["z7-37-48"], new JsonSerializerSettings { ContractResolver = new Newtonsoft.Json.Serialization.CamelCasePropertyNamesContractResolver(), Converters = new List<JsonConverter> { new GeoJsonVTFeatureConverter() } }); Console.WriteLine(json1); var json = JsonConvert.SerializeObject(tiles, new JsonSerializerSettings { ContractResolver = new Newtonsoft.Json.Serialization.CamelCasePropertyNamesContractResolver(), Converters = new List<JsonConverter> { new GeoJsonVTFeatureConverter() } }); // File.WriteAllText("c:\\dev\\jsontest.json", json); var expected = JObject.Parse(Load("us-states-tiles.json")).ToObject<Dictionary<string,object>>(); Assert.AreEqual(expected.Keys.Count, tiles.Keys.Count); foreach(var key in expected.Keys) { var a = JsonConvert.SerializeObject(expected[key], new JsonSerializerSettings { ContractResolver = new Newtonsoft.Json.Serialization.CamelCasePropertyNamesContractResolver(), Converters = new List<JsonConverter> { new GeoJsonVTFeatureConverter() } }); var b= JsonConvert.SerializeObject(tiles[key], new JsonSerializerSettings { ContractResolver = new Newtonsoft.Json.Serialization.CamelCasePropertyNamesContractResolver(), Converters = new List<JsonConverter> { new GeoJsonVTFeatureConverter() } }); ; Assert.AreEqual(CreateMD5(a), CreateMD5(b)); } // Assert.AreEqual(CreateMD5(expectedJson), CreateMD5(json)); //Test not wokring due to javascript key ordering different than dotnet } [TestMethod] public void SingleGeomTest() { var tiles = GenTiles.GenerateTiles(Parse(Load("single-geom.json"))); var json = JsonConvert.SerializeObject(tiles, new JsonSerializerSettings { ContractResolver = new Newtonsoft.Json.Serialization.CamelCasePropertyNamesContractResolver(), Converters = new List<JsonConverter> { new GeoJsonVTFeatureConverter() } }); var expected = Load("single-geom-tiles.json"); Assert.AreEqual(CreateMD5(expected), CreateMD5(json)); } [TestMethod] public void collectionTest() { var tiles = GenTiles.GenerateTiles(Parse(Load("collection.json"))); var json = JsonConvert.SerializeObject(tiles, new JsonSerializerSettings { ContractResolver = new Newtonsoft.Json.Serialization.CamelCasePropertyNamesContractResolver(), Converters= new List<JsonConverter> { new GeoJsonVTFeatureConverter() } }); var expected = Load("collection-tiles.json"); Assert.AreEqual(CreateMD5(expected), CreateMD5(json)); } [TestMethod] public void datelineTest() { var tiles = GenTiles.GenerateTiles(Parse(Load("dateline.json"))); var json = JsonConvert.SerializeObject(tiles, new JsonSerializerSettings { ContractResolver = new Newtonsoft.Json.Serialization.CamelCasePropertyNamesContractResolver(), Converters = new List<JsonConverter> { new GeoJsonVTFeatureConverter() } }); var expected = Load("dateline-tiles.json"); Assert.AreEqual(CreateMD5(expected), CreateMD5(json)); } [TestMethod] public void InvalidGeoJson() { try { var data = Parse("{\"type\": \"Pologon\"}"); } catch (Exception) { return; } Assert.Fail("It should have thrown exception"); } public void TestClip() { } } } <file_sep>/src/GeoJsonVT/Models/VectorTileGeometry.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SInnovations.VectorTiles.GeoJsonVT { public class VectorTileGeometry : List<double[]> { public double Area { get; set; } public double Distance { get; set; } //public void Add(params double[][] points) //{ // AddRange(points); //} public int[][] ToIntArray() { return this.Select(k => new[] { (int)k[0], (int)k[1] }).ToArray(); } } } <file_sep>/src/GeoJsonVT/GeoJson/GeoJsonObject.cs using System; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using SInnovations.VectorTiles.GeoJsonVT.GeoJson.Geometries; namespace SInnovations.VectorTiles.GeoJsonVT.GeoJson { [JsonConverter(typeof(GeoJsonObjectConverter))] public abstract class GeoJsonObject { public const string FeatureCollectionType = "FeatureCollection"; public const string FeatureType = "Feature"; public const string GeoJsonPointType = "Point"; public const string GeoJsonMultiPointType = "MultiPoint"; public const string GeoJsonPolygonType = "Polygon"; public const string GeoJsonLineStringType = "LineString"; public const string GeoJsonMultiLineStringType = "MultiLineString"; public const string GeoJsonMultiPolygonType = "MultiPolygon"; public const string GeoJsonGeometryCollectionType = "GeometryCollection"; public abstract string Type { get; } } public class GeoJsonObjectConverter : JsonConverter { public override bool CanConvert(Type objectType) { return typeof(GeoJsonObject)== objectType || typeof(GeometryObject) == objectType; } public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) { GeoJsonObject value = null; if (!CanConvert(objectType)) { value = Activator.CreateInstance(objectType) as GeoJsonObject; serializer.Populate(reader, value); } else { JToken token = JToken.Load(reader); if (token.Type == JTokenType.Null) return null; var jObject = token as JObject; var type = jObject.SelectToken("type")?.ToString() ?? jObject.SelectToken("Type")?.ToString(); switch (type) { case GeoJsonObject.FeatureCollectionType: value = new GeoJsonFeatureCollection(); break; // return jObject.ToObject<GeoJsonFeatureCollection>(serializer); case GeoJsonObject.FeatureType: value = new GeoJsonFeature(); break; // return jObject.ToObject<GeoJsonFeature>(serializer); case GeoJsonObject.GeoJsonGeometryCollectionType: value = new GeometryCollection(); break; // return jObject.ToObject<GeometryCollection>(serializer); case GeoJsonObject.GeoJsonLineStringType: value = new LineString(); break; // return jObject.ToObject<GeoJsonLineString>(serializer); case GeoJsonObject.GeoJsonMultiLineStringType: value = new MultiLineString(); break; // return jObject.ToObject <GeoJsonMultiLineString>(serializer); case GeoJsonObject.GeoJsonMultiPointType: value = new MultiPoint(); break; // return jObject.ToObject<GeoJsonMultipoint>(serializer); case GeoJsonObject.GeoJsonMultiPolygonType: value = new MultiPolygon(); break; // return jObject.ToObject<GeoJsonMultiPolygon>(serializer); case GeoJsonObject.GeoJsonPointType: value = new Point(); break; // return jObject.ToObject<GeoJsonPoint>(serializer); case GeoJsonObject.GeoJsonPolygonType: value = new Polygon(); break; // return jObject.ToObject<GeoJsonPolygon>(serializer); default: throw new Exception("Unkown type"); } serializer.Populate(jObject.CreateReader(), value); } return value; } public override bool CanWrite { get; } = false; public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) { throw new NotImplementedException(); } } } <file_sep>/src/GeoJsonVT.Streaming/StreamingGeoJsonVectorTiles.cs using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading.Tasks.Dataflow; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using SInnovations.VectorTiles.GeoJsonVT; using SInnovations.VectorTiles.GeoJsonVT.GeoJson; using SInnovations.VectorTiles.GeoJsonVT.Logging; using SInnovations.VectorTiles.GeoJsonVT.Models; using SInnovations.VectorTiles.GeoJsonVT.Processing; using SInnovations.VectorTiles.GeoJsonVT.Streaming; namespace GeoJsonVT.Streaming { public class StreamingStackItem { public VectorTileCoord Coord { get; internal set; } public VectorTileFeature Feature { get; internal set; } public int ParentSplitCount { get; set; } public List<StreamingStackItem> Childs { get; } = new List<StreamingStackItem>(); internal StreamingStackItem AddChild(StreamingStackItem streamingStackItem) { Childs.Add(streamingStackItem); return streamingStackItem; } } public class StreamingOptions : GeoJsonVectorTilesOptions { public Action<VectorTileCoord> OnFeatureNoSplit { get; set; } public Action<StreamingStackItem> OnNoSingleSplit { get; set; } public Action<VectorTileCoord> OnSingleSplit { get; set; } } public class FileSystemTileStore : List<VectorTileCoord>, ITileStore { private static ILog Logger = LogProvider.GetCurrentClassLogger(); private HashSet<string> _coords = new HashSet<string>(); private LRUCache<string, VectorTile> _tiles; public ICollection<VectorTileCoord> TileCoords { get { return this; } } private string _path; public FileSystemTileStore( string path , int inMemCapacity) { _path = path; _tiles = new LRUCache<string, VectorTile>(new LRUCacheOptions { Capacity = inMemCapacity }); } public bool Contains(string id) { return _coords.Contains(id); } public VectorTile Get(string id) { var cached = _tiles.Get(id); if (cached == null) { Logger.Debug($"Cache MISS : {id}"); var path = Path.Combine(_path, $"tmp{id}.json"); return JsonConvert.DeserializeObject<VectorTile>(File.ReadAllText(path)); } Logger.Debug($"Cache HIT : {id}"); return cached; } public VectorTile Set(string id, VectorTile value) { _coords.Add(value.TileCoord.ToID()); Logger.Debug($"Addeding {id} to cache"); var removed = _tiles.Add(id, value); if(removed != null) { var data = JObject.FromObject(removed); Logger.Debug($"LRUCache FREE : {removed.TileCoord.ToID()}"); var path = Path.Combine(_path, $"tmp{removed.TileCoord.ToID()}.json"); Directory.CreateDirectory(Path.GetDirectoryName(path)); File.WriteAllText(path, data.ToString()); } return value; } } public class StreamingGeoJsonVectorTiles : GeoJsonVectorTiles<StreamingOptions> { public StreamingGeoJsonVectorTiles(StreamingOptions options = null) : base(options?? new StreamingOptions()) { // Tiles = new Dictionary<string, VectorTile>(); // TileCoords = new List<VectorTileCoord>(); } public void ProcessStream(Stream data) { var z2 = 1 << Options.MaxZoom;//2^z var convertTransform = new TransformManyBlock<GeoJsonObject, VectorTileFeature>(geojson => Converter.Convert(geojson, Options.Tolerance / (z2 * Options.Extent))); var wrapProcess = new TransformManyBlock<VectorTileFeature, VectorTileFeature>(feature => Wrapper.Wrap(feature, Options.Buffer / Options.Extent, IntersectX)); var tileProcess = new ActionBlock<VectorTileFeature>((feature) => { }); } public void TileFaature(GeoJsonFeature feature) { var z2 = 1 << Options.MaxZoom;//2^z var a = Converter.Convert(feature, Options.Tolerance / (z2 * Options.Extent)); var b = Wrapper.Wrap(a, Options.Buffer / Options.Extent, IntersectX); b.ForEach(c => TileFeature(c, new VectorTileCoord())); } public void TileFeature(VectorTileFeature feature1, VectorTileCoord startCoord, int? cz = null, int? cx = null, int? cy = null) { var stack = new Stack<StreamingStackItem>(); stack.Push(new StreamingStackItem { Feature = feature1, Coord = startCoord }); int? solid = null; while (stack.Count > 0) { var item = stack.Pop(); var x = item.Coord.X; var y = item.Coord.Y; var z = item.Coord.Z; var z2 = 1 << z; var id = item.Coord.ToID(); VectorTile tile = Tiles.Contains(id) ? Tiles.Get(id) : null; if (tile == null) { tile = Tiles.Set(id,new VectorTile() { Z2 = z2, X = x, Y = y }); //tile.Z2 = z2; //tile.X = x; //tile.Y = y; Tiles.TileCoords.Add(new VectorTileCoord(z, x, y)); } var tileTolerance = z == Options.MaxZoom ? 0 : Options.Tolerance / (z2 * Options.Extent); tile.Add(item.Feature, tileTolerance, z == Options.MaxZoom); // stop tiling if we reached base zoom or our target tile zoom if (z == Options.MaxZoom) { Options.OnFeatureNoSplit?.Invoke(item.Coord); continue; } // stop tiling if it's not an ancestor of the target tile if (cz.HasValue) { if (z == cz.Value) continue; var m = 1 << (cz.Value - z); if (x != (int)Math.Floor((double)cx.Value / m) || y != (int)Math.Floor((double)cy.Value / m)) continue; } // stop tiling if the tile is solid clipped square if (!Options.SolidChildren && IsClippedSquare(item.Feature, tile.Z2, tile.X, tile.Y, Options.Extent, Options.Buffer)) { if (cz.HasValue) solid = z; // and remember the zoom if we're drilling down Options.OnFeatureNoSplit?.Invoke(item.Coord); continue; } // if we slice further down, no need to keep source geometry tile.Source = null; // values we'll use for clipping var k1 = 0.5 * Options.Buffer / Options.Extent; var k2 = 0.5 - k1; var k3 = 0.5 + k1; var k4 = 1 + k1; VectorTileFeature tl = null, bl = null, tr = null, br = null; var left = Clipper.Clip(item.Feature, z2, x - k1, x + k3, 0, IntersectX, tile.min[0], tile.max[0]); var right = Clipper.Clip(item.Feature, z2, x + k2, x + k4, 0, IntersectX, tile.min[0], tile.max[0]); if (left != null) { tl = Clipper.Clip(left, z2, y - k1, y + k3, 1, intersectY, tile.min[1], tile.max[1]); bl = Clipper.Clip(left, z2, y + k2, y + k4, 1, intersectY, tile.min[1], tile.max[1]); } if (right != null) { tr = Clipper.Clip(right, z2, y - k1, y + k3, 1, intersectY, tile.min[1], tile.max[1]); br = Clipper.Clip(right, z2, y + k2, y + k4, 1, intersectY, tile.min[1], tile.max[1]); } var count = (tl != null ? 1 : 0) + (bl != null ? 1 : 0) + (tr != null ? 1 : 0) + (br != null ? 1 : 0); // if (debug > 1) console.timeEnd('clipping'); if (tl != null) stack.Push( item.AddChild( new StreamingStackItem { ParentSplitCount = Math.Max(item.ParentSplitCount, count), Feature = tl, Coord = new VectorTileCoord(z + 1, x * 2, y * 2) })); if (bl != null) stack.Push( item.AddChild( new StreamingStackItem { ParentSplitCount = Math.Max(item.ParentSplitCount, count), Feature = bl, Coord = new VectorTileCoord(z + 1, x * 2, y * 2 + 1) })); if (tr != null) stack.Push( item.AddChild( new StreamingStackItem { ParentSplitCount = Math.Max(item.ParentSplitCount, count), Feature = tr, Coord = new VectorTileCoord(z + 1, x * 2 + 1, y * 2) })); if (br != null) stack.Push( item.AddChild( new StreamingStackItem { ParentSplitCount = Math.Max(item.ParentSplitCount, count), Feature = br, Coord = new VectorTileCoord(z + 1, x * 2 + 1, y * 2 + 1) })); if(Options.OnSingleSplit != null && count == 1) { Options.OnSingleSplit(item.Coord); } if (Options.OnNoSingleSplit != null && count > 1) { Options.OnNoSingleSplit(item); } if ( Options.OnFeatureNoSplit != null && count == 0) { Options.OnFeatureNoSplit(item.Coord); } } } protected bool IsClippedSquare(VectorTileFeature feature, int z2, int x, int y, double extent, double buffer) { if (feature.Type != 3 || feature.Geometry.Length > 1) return false; var len = feature.Geometry[0].Count; if (len != 5) return false; for (var i = 0; i < len; i++) { var p = Transformer.TransformPoint(feature.Geometry[0][i], extent, z2, x, y); if ((p[0] != -buffer && p[0] != extent + buffer) || (p[1] != -buffer && p[1] != extent + buffer)) return false; } return true; } } }
2fa1a11ed90b0e10c3bf42b4af282fa719b342e9
[ "Markdown", "C#" ]
26
C#
s-innovations/S-Innovations.VectorTiles
d69ccad14307dc341297085eca757da0a265e028
ef5a66fdf5ea43ae800e683a9bc1e2158aff3fee
refs/heads/master
<file_sep>with pp as ( select row_number() over (order by [Item No_],p.[Vendor No_], p.Manufacturer,p.[Item Description1 Vendor],Menge, [Minimum Quantity]) rn ,count(1) over (partition by [Item No_]) lines_per_item ,count(1) over (partition by [Item No_], p.[Vendor No_]) lines_per_vendor ,count(1) over (partition by [Item No_], p.[Vendor No_], [Minimum Quantity]) lines_per_minqty ,count(1) over (partition by [Item No_], p.[Vendor No_], [VPE]) lines_per_vpe ,count(1) over (partition by [Item No_], p.[Vendor No_], [Menge]) lines_per_menge ,count(1) over (partition by [Item No_], p.[Vendor No_], p.[Manufacturer]) lines_per_manufacturer ,dense_rank() over (partition by [Item No_], p.[Vendor No_] order by [last modified] desc) mod_rank ,sum(Mainvendor) over (partition by [Item No_], p.[Vendor No_]) isMainvendor ,sum(Mainvendor) over (partition by [Item No_], p.Manufacturer) isMainManufacturer ,sum(Mainvendor) over (partition by [Item No_], p.Manufacturer, p.[Item Description1 Vendor]) isMainManufPartNo ,i.[Item Status] ,UPPER(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(p.[Item Description1 Vendor],CHAR(10),''),CHAR(13),''),'%','-'),'&','-'),'..','-'),'=','-'),'>','-'),'<','-'),'~','-'),'_','-'),'µ','u')) MANU_PART_NO_KEY ,case when i2.[Prüfanweisung Wareneingang] = '' then 0 else 1 end inspection ,case when i2.[Vorgabe Lagerort] not in ('ATECH','CRT','EN', 'HTV_IFT','LAG','MSW','QESS','QLH','REP','RUT','SIM','SPERRLAGER','Z-ACT','Z-ANM','Z-KSN') then 'CUSTOMER_OWNED' ELSE 'COMPANY_OWNED' END PART_OWNERSHIP_DB ,v.Blocked ,case when p.Manufacturer = '' then '*' else p.Manufacturer end MANUFACTURER_ID ,COALESCE(hc.[Hersteller Name],'UNBEKANNT') Manuf_Name ,CASE WHEN ISNUMERIC(REPLACE(REPLACE(Lieferzeit, CHAR(4),''), CHAR(2),'')) = 0 THEN 0 WHEN CHARINDEX(CHAR(4),Lieferzeit) > 0 THEN (CONVERT(INT, REPLACE(Lieferzeit, CHAR(4), ''))) * 5 ELSE CONVERT(INT, REPLACE(Lieferzeit, CHAR(2), '')) END Lieferzeit_days , p.* from ifte_nav_test.dbo.[Iftest AG$Purchase Price] p left join ifte_nav_test.dbo.[Iftest AG$Item] i on p.[Item No_] = i.No_ left join ifte_nav_test.dbo.[Iftest AG$Item2] i2 on p.[Item No_] = i2.No_ left join ifte_nav_test.dbo.[Iftest AG$Vendor] v on p.[Vendor No_] = v.No_ left join ifte_nav_test.dbo.[Iftest AG$Hersteller Codes] hc on p.Manufacturer = hc.[Hersteller Code] where v.Blocked != 2 and [Item Status] != 'INAKTIV' ) --select * from pp where lines_per_minqty >1 and lines_per_vpe > 1 and lines_per_menge > 1 order by [Item No_], [Vendor No_] --select * from pp where Blocked != 2 --89670 ,one_vendor_line as (select 'OneVendorLine' status, 0 prlist, 0 Qty, 1 rwnum, * from pp where lines_per_vendor = 1) --65064 ,unique_menge as (select 'UniqueMenge' status, 1 prlist, Menge Qty, ROW_NUMBER() over (partition by [Item No_], [Vendor No_] order by mod_rank, [Direct Unit Cost]) rwnum, * from pp where lines_per_vendor > 1 and lines_per_menge = 1) -- 14634 ,unique_minqty as (select 'UniqueMinQty' status, 1 prlist, [Minimum Quantity] Qty, ROW_NUMBER() over (partition by [Item No_], [Vendor No_] order by mod_rank, [Direct Unit Cost] ) rwnum, * from pp where lines_per_vendor > 1 and lines_per_menge > 1 and lines_per_minqty = 1) ,main_vendor as (select 'MainVendor' status, 0 prlist, 0 Qty, 1 rwnum, * from pp where lines_per_vendor > 1 and lines_per_menge > 1 and lines_per_minqty > 1 and MainVendor = 1 )-- 2892 ,rest as (select 'Rest' status, 0 prlist, 0 Qty, 1 rwnum, * from pp where lines_per_vendor > 1 and lines_per_menge > 1 and lines_per_minqty > 1 and MainVendor <> 1 )-- 2892 ,pps as (select * from one_vendor_line union all select * from unique_menge union all select * from unique_minqty union all select * from main_vendor union all select * from rest) -- 80698 ,ppsminrn as (select rn ,min(rn) over (partition by Manufacturer) minrn_manuf ,min(rn) over (partition by Manufacturer, [Item No_]) minrn_manuf_item ,min(rn) over (partition by Manufacturer, [Item No_],[MANU_PART_NO_KEY])minrn_manuf_partno_item ,min(rn) over (partition by Manufacturer, [Vendor No_], [Item No_]) minrn_manuf_item_vendor ,min(rn) over (partition by Manufacturer, [Vendor No_], [Item No_],[MANU_PART_NO_KEY])minrn_manuf_partno_item_vendor from pps where MANU_PART_NO_KEY!= '' ) --select distinct [Item No_], [Vendor No_] from pps order by [Item No_],[Vendor No_] select pps.rn ,CASE WHEN ppsminrn.minrn_manuf = pps.rn THEN 1 ELSE 0 END create_manuf ,CASE WHEN ppsminrn.minrn_manuf_item = pps.rn THEN 1 ELSE 0 END create_manuf_item ,CASE WHEN ppsminrn.minrn_manuf_partno_item = pps.rn THEN 1 ELSE 0 END create_manuf_partno_item ,CASE WHEN ppsminrn.minrn_manuf_item_vendor = pps.rn THEN 1 ELSE 0 END create_manuf_item_vendor ,CASE WHEN ppsminrn.minrn_manuf_partno_item_vendor = pps.rn THEN 1 ELSE 0 END create_manuf_partno_item_vendor , pps.isMainManufacturer, pps.isMainManufPartNo, pps.MANU_PART_NO_KEY, MANUFACTURER_ID, Manuf_Name, pps.[Item No_], pps.[Vendor No_], [Item Description1 Vendor], Manufacturer, [UL File Nummer] from pps left join ppsminrn on pps.rn = ppsminrn.rn where MANU_PART_NO_KEY!= '' order by pps.rn <file_sep>Select [No_] , [Vorgabe Lagerort] , [Vorgabe Lagerfach] , [Design Registrierung] , [Datum] , [Visum] , [Lieferant] , [Endkunde] , [Projektname] , [Extra Text2] , [Gewicht in KG] , [Prüfanweisung Wareneingang] , [Verfallfrist] , [UL Category] from [Iftest AG$Item2] <file_sep>Select [Vendor No_] , [Code] , [Name] , [Address] , [Address 2] , [City] , [Post Code] , [Bank Account No_] , [Country Code] , [IBAN] , [SWIFT Code] , [Clearing No_] , [Payment Form] , [ESR Type] , [Giro Account No_] , [ESR Account No_] , [Bank Identifier Code] , [Debit Bank] from [Iftest AG$Vendor Bank Account] <file_sep>Select [No_] , [Description] , [Search Description] , [Base Unit of Measure] , [Allow Invoice Disc_] , [Unit Price] , [Price_Profit Calculation] , [Profit %] , [Unit Cost] , [Standard Cost] , [Last Direct Cost] , [Vendor No_] , [Vendor Item No_] , [Lead Time Calculation] , [Minimum Inventory] , [Maximum Inventory] , [Reorder Quantity] , [Unit List Price] , [Tariff No_] , [Blocked] , [Last Date Modified] , [VAT Bus_ Posting Gr_ (Price)] , [Gen_ Prod_ Posting Group] , [Country of Origin Code] , [Automatic Ext_ Texts] , [No_ Series] , [VAT Prod_ Posting Group] , [Reserve] , [Global Dimension 1 Code] , [Global Dimension 2 Code] , [Last Unit Cost Calc_ Date] , [Rolled-up Material Cost] , [Scrap %] , [Inventory Value Zero] , [Rounding Precision] , [Sales Unit of Measure] , [Purch_ Unit of Measure] , [Reorder Cycle] , [Item Category Code] , [Use Cross-Docking] , [Miracle Item No_] , [Item No_ Customer] , [Item Description Customer] , [Item Status] , [Manufacturer Att_] , [ChangeID] , [PasteID] , [PasteDate] , [Category] , [Value1] , [Performance] , [Construction] , [Voltage] , [Art] , [Polnumber] , [Technology] , [Type] , [Tolerance1] , [Subcategory] , [Temp01] , [Manufacturer] , [Manufacturer MainVendor] , [Item Description1 Vendor] , [Item Description2 Vendor] , [Extra Text] , [Qty_ on Sales Blanket Order_] , [Qty_ on Purch_ Blanket Order_] , [Lagerfachcode] , [CustomerNo] , [SellOutItem] , [NotInDPMStatistics] , [Leadfree Stock] , [DataSheet] , [Target factory price] , [Cpart] , [change Leadfree] , [target mat price] , [price mod ID] , [date price mod] , [target vend price] , [Forecastartikel] , [MirKontrolle] , [Blocked for Mat Requirement] , [OldMiracleItemNumber] , [Änderungsauftrag] , [Artikel ist REACH konform] , [Kategorisierung] , [Herkunft] , [Source of Supply] , [Level] , [Consumable Material] , [Length] , [Width] , [Depth] , [Base Measure for Cost] , [Cost by Unit of Measure] , [Reordering Point] , [Usage] , [No Stockkeeping] , [Location Code] , [Sale blocked] , [Purchase blocked] , [Single-Level Material Cost] , [Kanban-Item] , [Externbearbeitung] , [Preferential Treatment] , [Sicherheitslager Lieferant] from [Iftest AG$Item] <file_sep>Select [No_] , [Name] , [Search Name] , [Name 2] , [Address] , [Address 2] , [City] , [Contact] , [Phone No_] , [Telex No_] , [Our Account No_] , [Global Dimension 1 Code] , [Vendor Posting Group] , [Currency Code] , [Language Code] , [Payment Terms Code] , [Purchaser Code] , [Shipment Method Code] , [Invoice Disc_ Code] , [Country Code] , [Blocked] , [Pay-to Vendor No_] , [Priority] , [Payment Method Code] , [Last Date Modified] , [Fax No_] , [Telex Answer Back] , [VAT Registration No_] , [Gen_ Bus_ Posting Group] , [Post Code] , [County] , [E-Mail] , [Home Page] , [VAT Bus_ Posting Group] , [Primary Contact No_] , [Location Code] , [EKResponsible] , [Standard Bank] , [EdifactID] , [EDI Status] , [Direct delivery] , [Name alt] , [VAT Bus_ Post_ Gr DirectShipm_] , [Pay-to Vendor No_ Direct Deliv] from [Iftest AG$Vendor] <file_sep>using log4net.Appender; using log4net.Layout; using log4net.Repository.Hierarchy; using System; using System.Collections; using System.Collections.Generic; using System.Configuration; using System.Data; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IFSMigrationExport { public static class Helper { public static readonly char[] ACCEPTED_CHARACTERS = { 'ä', 'à', 'Ä', 'À', 'è', 'é', 'ê', 'ë', 'È', 'É', 'Ê', 'Ë', 'î', 'ï', 'Î', 'ö', 'ô', 'ò', 'Ö', 'Ô', 'Ò', 'ü', 'Ü', '°', '±', '²', '×', '®', '™', 'ø', 'µ', 'Ø', }; public static readonly char[] SUSPICIOUS_CHARACTERS = { '€', '–', '~', '`', '¨', 'ß', '|' }; public const string COLUMNSEPARATOR = ";"; public const string COLUMNSEPARATOR_REPLACER = ","; public static string ExecutionId { get; set; } public static string OutputPath { get; set; } public static string LogsPath { get; set; } public static string CreJobsPath { get; set; } public static string CoercedValueLogPath { get; set; } private static readonly log4net.ILog log = log4net.LogManager .GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); public static void InitExecution() { ExecutionId = DateTime.Now.ToString("yyMMdd-HHmm"); OutputPath = Path.Combine(Properties.Settings.Default.OutputFolderPath, Helper.ExecutionId); LogsPath = Path.Combine(Properties.Settings.Default.OutputFolderPath, Helper.ExecutionId, "logs"); CreJobsPath = Path.Combine(Properties.Settings.Default.OutputFolderPath, Helper.ExecutionId, "creJobs"); Directory.CreateDirectory(OutputPath); Directory.CreateDirectory(LogsPath); Directory.CreateDirectory(CreJobsPath); var fa = new FileAppender() { Layout = new PatternLayout("%date %-5level: %message%newline"), File = Path.Combine(LogsPath, "log.log"), LockingModel = new FileAppender.MinimalLock() }; fa.ActivateOptions(); ((Hierarchy)log.Logger.Repository).Root.AddAppender(fa); CoercedValueLogPath = Path.Combine(LogsPath, "AllCoercedValues.csv"); WriteCoercedValueLogHeader(); } private static void WriteCoercedValueLogHeader() { using (StreamWriter logFile = new StreamWriter(CoercedValueLogPath)) { logFile.WriteLine(Helper.CsvLine("Type", "Id", CoercedValue.GetCsvHeader())); } } internal static void LogCoercedValue(Query query, CoercedValue coercedValue) { LogCoercedValue("Query", query.FileNameBase, coercedValue); } internal static void LogCoercedValue(Table table, CoercedValue coercedValue) { LogCoercedValue("Table", table.Name, coercedValue); } private static void LogCoercedValue(string type, string id, CoercedValue coercedValue) { using (StreamWriter logFile = new StreamWriter(CoercedValueLogPath, true)) { logFile.WriteLine(Helper.CsvLine(type, id, coercedValue.ToCsv())); } } public static string ConnectionString(string name) { return ConfigurationManager.ConnectionStrings[name].ConnectionString; } public static string CsvLine(params object[] list) { var line = ""; int i = 0; while (i < list.Length - 1) { string value = list[i].ToString(); line += "" + Clean(value) + COLUMNSEPARATOR; i++; } if (i < list.Length) { line += list[i]; } return line; } public static string CsvLine(ICollection objects) { var line = ""; foreach (object o in objects) { string value = o.ToString(); line += "" + Clean(value) + COLUMNSEPARATOR; } if (objects.Count > 0) { line = line.Substring(0, line.Length - COLUMNSEPARATOR.Length); } return line; } private static bool CheckCharacter(char c) { if (c < 0x20) { return false; } else if (c > 0x7a) { return ACCEPTED_CHARACTERS.Contains(c) || SUSPICIOUS_CHARACTERS.Contains(c); } return true; } public static string Correct(string value) { return (new string((from c in value where CheckCharacter(c) select c).ToArray())).Replace(COLUMNSEPARATOR, COLUMNSEPARATOR_REPLACER); } public static string Clean(string value) { return value.Replace("\u000A", "").Replace("\u000D", "").Replace("\u0009", "").Replace(COLUMNSEPARATOR, COLUMNSEPARATOR_REPLACER); } public static string CsvLine(ICollection objects, Func<object, string> del) { var line = ""; foreach (object o in objects) { string value = del(o); line += "" + Clean(value) + COLUMNSEPARATOR; } if (objects.Count > 0) { line = line.Substring(0, line.Length - COLUMNSEPARATOR.Length); } return line; } public static string GetFileName(string tableName, string append = "") { string fileName = tableName; if (append != "") { fileName += " " + append; } fileName += ".csv"; return fileName; } internal static string SqlColumnString(List<Column> exportedColumns) { string columnString = ""; foreach (var c in exportedColumns) { columnString += "[" + c.Name + "], "; } if (columnString.Length > 0) { columnString = columnString.Substring(0, columnString.Length - 2); // remove the last ", " } return columnString; } public static DataTable GetDataTable(string path, char separator) { DataTable dt = new DataTable(); FileStream aFile = new FileStream(path, FileMode.Open); using (StreamReader sr = new StreamReader(aFile, System.Text.Encoding.Default)) { string strLine = sr.ReadLine(); string[] strArray = strLine.Split(separator); foreach (string value in strArray) dt.Columns.Add(value.Trim()); while (sr.Peek() > -1) { strLine = sr.ReadLine(); strArray = strLine.Split(separator); dt.Rows.Add(strArray); } } return dt; } } } <file_sep> Select [Contact No_] , [Business Relation Code] , [Link to Table] , [No_] from [Iftest AG$Contact Business Relation] <file_sep>Select [No_] , [Name] , [Search Name] , [Name 2] , [Address] , [Address 2] , [City] , [Contact] , [Phone No_] , [Our Account No_] , [Vendor Posting Group] , [Currency Code] , [Language Code] , [Payment Terms Code] , [Purchaser Code] , [Shipment Method Code] , [Invoice Disc_ Code] , [Country Code] , [Blocked] , [Pay-to Vendor No_] , [Payment Method Code] , [Last Date Modified] , [Fax No_] , [VAT Registration No_] , [Gen_ Bus_ Posting Group] , [Post Code] , [County] , [E-Mail] , [Home Page] , [No_ Series] , [VAT Bus_ Posting Group] , [Primary Contact No_] , [Location Code] , [Lead Time Calculation] , [EKResponsible] , [Name alt] , [EdifactID] , [EDI Status] , [VAT Bus_ Post_ Gr DirectShipm_] , [Pay-to Vendor No_ Direct Deliv] from [QESS$Vendor] <file_sep>with aa as (select * from ifte_nav_test.dbo.[Iftest AG$Aenderungsauftrag] where Archiviert = 0) ,qm as (select aa.[Datum Auftrag Start] ,qkm.* from ifte_nav_test.dbo.[Iftest AG$QKorrekturmassnahmen] qkm left join aa on qkm.Document_No_ = aa.Nummer where aa.Archiviert = 0 and aa.Status in (2,3)) select Document_No_ ,[Datum Auftrag Start] ,archiviert ,[Line No_] ,Korrekturmassnahmen ,verantworlich ,Korrektur_Termin ,erledigt ,[Ist-Termin] IST_TERMIN ,[erledigt durch] ,Status ,[Ref Standartaufgabe] ,[Verantworlicher Auftrag] ,systemFlag ,Typ ,[von QM übernommen am] VON_QM_UEBERN_AM from qm where archiviert = 0 order by Document_No_,[Line No_]<file_sep>using System; using System.Collections.Generic; using System.Data; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IFSMigrationExport { public class Query { public string Path { get; set; } public DataTable DataTable { get; set; } public bool NoLeadingTrim { get; set; } public string OutputFileName { get { return FileNameBase + ".csv"; } } public string FileNameBase { get { return System.IO.Path.GetFileNameWithoutExtension(Path); } } public string CreJobName { get { var iq = ""; if (FileNameBase.ToUpperInvariant().Contains("IFTEST")) { iq = "I_"; } else if (FileNameBase.ToUpperInvariant().Contains("QESS")) { iq = "Q_"; } var id = FileNameBase.ToUpperInvariant().Replace("QESS", "").Replace("IFTEST AG", "").Replace("IFTEST", "").Replace("$", "").Replace(" ", "_"); id=id.Substring(0, Math.Min(iq==""?19:17,id.Length)); return $"CRE_{iq}{id}"; } } public string ExportToCsv() { using (StreamWriter dataFile = new StreamWriter(System.IO.Path.Combine(Helper.OutputPath, OutputFileName))) using (StreamWriter logFile = new StreamWriter(System.IO.Path.Combine(Helper.LogsPath, $"{FileNameBase}_log.csv"))) { dataFile.WriteLine(Helper.CsvLine(DataTable.Columns, x => ((DataColumn)x).Caption)); logFile.WriteLine(CoercedValue.GetCsvHeader()); foreach (DataRow r in DataTable.Rows) { List<string> values = new List<string>(); foreach (DataColumn c in DataTable.Columns) { string value = ""; if (c.DataType == typeof(string)) { CoercedValue coercedValue; if (NoLeadingTrim == true) { coercedValue = new CoercedValue(c, r, new CoercedValueOption[] { CoercedValueOption.NoLeadingTrim }); } else { coercedValue = new CoercedValue(c, r); } value = coercedValue.Value; if (coercedValue.IsOriginal != true) { logFile.WriteLine(coercedValue.ToCsv()); Helper.LogCoercedValue(this,coercedValue); } } else if (c.DataType == typeof(Decimal)) { value = ((Decimal)r[c]).ToString("0.0############################"); } else { value = r[c].ToString(); } values.Add(value); } dataFile.WriteLine(Helper.CsvLine(values)); } } return OutputFileName; } public void WriteCreJobLines(StreamWriter creJobFile) { foreach (DataColumn c in DataTable.Columns) { creJobFile.WriteLine(Helper.CsvLine(CreJobName, OutputFileName, GetIfsColumnName(c.ColumnName), c.ColumnName, "VARCHAR2", 4000, 10*(c.Ordinal+1))); } } private string GetIfsColumnName(string name) { var s = name.Replace(" ", "_").ToUpperInvariant(); s = s.Substring(0, Math.Min(s.Length, 30)); return s; } } } <file_sep>using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IFSMigrationExport { public class DistinctValue { public object Value { get; set; } public int Count { get; set; } public Column Column { get; set; } public double Percentage { get { return (double)Count/Column.Table.RowCount; } } public bool ContainsBadCharacters() { if(Column.DataType != "varchar") return false; foreach (var c in Value.ToString()) { if (c == ';')//(c > 0x7a && c!= 'ä' && c!= 'ö' && c!='ü' && c !='Ä' && c!='Ö' && c!='Ü' && c!='°' && c!='é' && c!='à' & c!= '±' && c!= 'è' && c!= '²' && c!= '×' && c!= '®' && c!= '™' && c!= 'ø' && c!= 'µ' && c!= 'Ø' && c!= '–' && c!='É' && c!= 'È' &&c != 'À')//(c < 0x20) return true; } return false; } } } <file_sep>Select [Document No_] , [Line No_] , [Status] , [Line Group] , [Line Type] , [Number] , [Alternate No_] , [Description] , [Description 2] , [Sub Prod_ BOM No_] , [Material Unit of Measure] , [Consumable Material] , [Level] , [Classification] , [Position] , [Title No_] , [Cost Center Code] , [Cost Object Code] , [Subcont_ Order Type] , [No_ of BOMs] , [Resource Group No_] , [Cost Mat_ Piece] , [Cost Mat_ Product] , [Cost Piece_Time] , [Cost Product] , [Cost Group] , [Setup Time Hourly Rate] , [Cost Setup Time Product] , [Var_ Time Hourly Rate] , [Cost Var_ Time Product] , [Qty_] , [Preparation Time] , [Transfer Time] , [Setup Time] , [Var_ Time Piece] , [Var_ Time Product] , [Time Group] , [Time Product] , [Length] , [Width] , [Depth] , [Area cm2] , [Volume cm3] , [Cost by Unit of Measure] , [Source of Supply Type] , [Source of Supply No_] , [Location Code] , [Bin Code] , [Modified Date] , [Modified by] , [Reference Designator] , [Zusatzzeilennummer] , [Miracle Item No_] , [Start Dimension] , [Übergangszeit] , [MgkFr] , [Bemerkungen_] , [Bauteil für Auslieferung notwe] , [Location Fixation] from [Iftest AG$Prod_ BOM Line] <file_sep>using log4net; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IFSMigrationExport { public static class Log4NetExtensions { public static Stopwatch InfoStart(this ILog log, object message) { Stopwatch sw = new Stopwatch(); sw.Start(); log.Info(message.ToString() + " : Started at " + DateTime.Now.ToLongTimeString()); return sw; } public static void InfoStop(this ILog log,Stopwatch sw , object message) { sw.Stop(); TimeSpan ts = sw.Elapsed; log.Info(message.ToString() + " : Stopped at " + DateTime.Now.ToLongTimeString() + " : Took " + PrintTimeSpan(ts)); sw.Reset(); } private static string PrintTimeSpan(TimeSpan ts) { if(ts.TotalMinutes < 1) { return ts.ToString(@"s\.fff")+" s"; } else if(ts.TotalHours < 1) { return ts.ToString(@"m\:ss\.fff") + " min"; } else { return ts.ToString(); } } } } <file_sep>using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IFSMigrationExport { public class ItemDataTransformer { public static string[] skippedColumns = { "timestamp", "Search Description", "ChangeID", "date price mod" }; public static bool SkipColumn(Column column) { return column.IsUnused() || skippedColumns.Contains(column.Name); } } } <file_sep>using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IFSMigrationExport { internal static class PostProcessMenu { private static readonly log4net.ILog log = log4net.LogManager .GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); internal static void Init() { Console.WriteLine("-----------------------"); Console.WriteLine("- Post Process Menu -"); Console.WriteLine("-----------------------"); Console.WriteLine("o - Open output directory"); Console.WriteLine($"c - Copy output files to migration directory '{Properties.Settings.Default.MigrationPath}'"); Console.WriteLine(); Console.WriteLine("Any other key to quit"); MainMenuInputHandler(); } private static void MainMenuInputHandler() { Console.Write("IFSMigrationExport>"); var key = Console.ReadKey(); Console.WriteLine(); switch (key.KeyChar) { case 'o': Process.Start(Helper.OutputPath); MainMenuInputHandler(); break; case 'c': CopyToMigrationDir(); MainMenuInputHandler(); break; default: break; } } private static void CopyToMigrationDir() { string[] files = Directory.GetFiles(Helper.OutputPath); foreach (string file in files) { var migrationFilePath = Path.Combine(Properties.Settings.Default.MigrationPath, Path.GetFileName(file)); try { File.Copy(file, migrationFilePath, true); log.Info($"Copied '{file}' to '{migrationFilePath}'"); } catch (Exception ex) { log.Error($"Exception when copying '{file}' to '{migrationFilePath}'.", ex); } } } private static void PostProcessActions() { Console.WriteLine("Please press any key to close... ('o' to open output directory)"); var key = Console.ReadKey(); if (key.KeyChar == 'o') { Process.Start(Helper.OutputPath); } Console.WriteLine(); Console.WriteLine("Bye"); } } } <file_sep>using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using Dapper; using Dapper.FluentMap; using Dapper.FluentMap.Mapping; namespace IFSMigrationExport { public class DataAccess { internal class ColumnMap : EntityMap<Column> { internal ColumnMap() { Map(c => c.Name).ToColumn("COLUMN_NAME"); Map(c => c.DataType).ToColumn("DATA_TYPE"); Map(c => c.OrdinalPosition).ToColumn("ORDINAL_POSITION"); Map(c => c.CharacterMaxLength).ToColumn("CHARACTER_MAXIMUM_LENGTH"); } } private static readonly log4net.ILog log = log4net.LogManager .GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); public DataAccess() { FluentMapper.Initialize(config => { config.AddMap(new ColumnMap()); }); } public Query GetQuery(string path) { var sql = File.ReadAllText(path, Encoding.Default); DataTable dt = new DataTable(); using (SqlConnection connection = new SqlConnection(Helper.ConnectionString("Database"))) { SqlCommand cmd = new SqlCommand(sql, connection); cmd.CommandTimeout = 7200; SqlDataAdapter da = new SqlDataAdapter(cmd); da.Fill(dt); } Query query = new Query { Path = path, DataTable = dt }; return query; } public Table GetTable(string tableName) { using (IDbConnection connection = new System.Data.SqlClient.SqlConnection(Helper.ConnectionString("Database"))) { List<Column> columns = connection.Query<Column>("Select * from INFORMATION_SCHEMA.COLUMNS where TABLE_NAME = '"+tableName+"'").ToList(); Table table = new Table { Columns = columns, Name = tableName }; table.RowCount = connection.ExecuteScalar<int>("SELECT Count(*) FROM [" + tableName + "]", connection); foreach (var column in table.Columns) { column.Table = table; column.DistinctValues = GetDistinctValues(column); } return table; } } public List<DistinctValue> GetDistinctValues(Column column) { using (IDbConnection connection = new SqlConnection(Helper.ConnectionString("Database"))) { string sql = "Select [" + column.Name + "] as Value, Count([" + column.Name + "]) as Count from [" + column.Table.Name + "] GROUP BY [" + column.Name + "]"; List<DistinctValue> distinctValues = new List<DistinctValue>(); if (column.DataType != "text" && column.DataType != "ntext" && column.DataType != "image" ) { distinctValues = connection.Query<DistinctValue>(sql).ToList(); } foreach (DistinctValue dv in distinctValues) { dv.Column = column; } return distinctValues; } } public DataTable GetData(List<Column> columns) { DataTable dataTable = new DataTable(); using (SqlConnection connection = new SqlConnection(Helper.ConnectionString("Database"))) { SqlCommand command = new SqlCommand("Select " + Helper.SqlColumnString(columns) + " from [" + columns[0].Table.Name +"]", connection); log.Info($"SQL-Statement: {command.CommandText}"); connection.Open(); SqlDataAdapter da = new SqlDataAdapter(command); da.Fill(dataTable); connection.Close(); da.Dispose(); } return dataTable; } } } <file_sep>using System; using System.Collections.Generic; using System.Data; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IFSMigrationExport { public class Table { public string Name { get; set; } public int RowCount { get; set; } public List<Column> Columns { get; set; } public void ToFile() { using (StreamWriter writer = new StreamWriter(Helper.GetFileName(Name))) { writer.WriteLine(Helper.CsvLine("Name","Datatype","NrOfDistinctValues","MinValOccurance","MaxValOccurance","NrOfDistinctValueGroups")); foreach (var c in Columns) { var line = Helper.CsvLine(c.Name, c.DataType, c.DistinctValues.Count); var unique = c.IsUnique() ? "1" : "0"; line += Helper.COLUMNSEPARATOR + Helper.CsvLine(c.GetDistinctiveValueOccuranceMin(), c.GetDistinctiveValueOccuranceMax(), c.GetDistinctValueGroups().Count); writer.WriteLine(line); } } } public void DvToFile() { using (StreamWriter writer = new StreamWriter(Helper.GetFileName(Name+"_dv"))) { writer.WriteLine(Helper.CsvLine("ColumnName","Value","Count","Percentage")); foreach (var dv in GetAllDistinctValues()) { if (ItemDataTransformer.SkipColumn(dv.Column) == false) { writer.WriteLine(Helper.CsvLine(dv.Column.Name, dv.Value, dv.Count, dv.Percentage)); } } } } public void BadCharToFile() { using (StreamWriter writer = new StreamWriter(Helper.GetFileName(Name + "_badChar"))) { writer.WriteLine(Helper.CsvLine("ColumnName","Value")); foreach (var dv in GetAllDistinctValues()) { if (dv.ContainsBadCharacters()) { writer.WriteLine(Helper.CsvLine(dv.Column.Name, "<<" + dv.Value +">>")); } } } } public void DvGroupToFile() { using (StreamWriter writer = new StreamWriter(Helper.GetFileName(Name + "_dvGroups"))) { writer.WriteLine(Helper.CsvLine("ColumnName","Occurance","NrOfDistinctiveValues","Value")); foreach (var c in Columns) { foreach (var dvG in c.GetDistinctValueGroups()) { string line = ""; string singlevalue = ""; if (dvG.Count == 1) { singlevalue = dvG[0].Value.ToString(); } if (dvG.Count > 0) { line = Helper.CsvLine(c.Name, dvG[0].Count, dvG.Count, singlevalue); } writer.WriteLine(line); } } } } private List<DistinctValue> GetAllDistinctValues() { List<DistinctValue> allDv = new List<DistinctValue>(); foreach (Column c in Columns) { allDv.AddRange(c.DistinctValues); } return allDv; } public string ExportToCsv(DataAccess da) { var columns = GetExportedColumns(); var dataTable = da.GetData(columns); var fileName = Helper.GetFileName(Name); using (StreamWriter dataFile = new StreamWriter(Path.Combine(Helper.OutputPath, fileName))) using (StreamWriter logFile = new StreamWriter(Path.Combine(Helper.LogsPath, $"{Name}_datalog.csv"))) { dataFile.WriteLine(Helper.CsvLine(dataTable.Columns, x => ((DataColumn)x).Caption)); logFile.WriteLine(CoercedValue.GetCsvHeader()); foreach (DataRow r in dataTable.Rows) { List<string> values = new List<string>(); string corrections = ""; foreach (DataColumn c in dataTable.Columns) { string value = ""; if (c.DataType == typeof(string)) { CoercedValue coercedValue = new CoercedValue(c, r); value = coercedValue.Value; if (coercedValue.IsOriginal != true) { logFile.WriteLine(coercedValue.ToCsv()); } } else if (c.DataType == typeof(Decimal)) { value = ((Decimal)r[c]).ToString("0.0############################"); } else { value = r[c].ToString(); } values.Add(value); } if (corrections.Length > 0) { corrections = r[0].ToString() + ":" + corrections; logFile.WriteLine(corrections); } dataFile.WriteLine(Helper.CsvLine(values)); } } return fileName; } public List<Column> GetExportedColumns() { List<Column> exportedColumns = new List<Column>(); foreach (var c in Columns) { if(c.DistinctValues.Count > 1 && c.Name != "timestamp") { exportedColumns.Add(c); } } (new Formatter()).SetIfsColumnNames(exportedColumns); return exportedColumns; } } } <file_sep>with shorts as (Select dense_rank() over (partition by cust.No_ order by con.No_) rank, cust.No_, con.No_ contact_no, count( cust.No_) over (partition by cust.No_) cnt, cust.Name, con.shortsign from ifte_nav_test.dbo.[QESS$Customer] cust left join ifte_nav_test.dbo.[QESS$Contact] con on cust.Name = con.Name and cust.Address = con.Address where con.Type= 0 and shortsign <>'') Select No_, contact_no, cnt, Name, ShortSign from shorts where rank = 1 order by No_<file_sep>using MoreLinq; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IFSMigrationExport { public class Column { public string Name { get; set; } public string IfsName { get; set; } public string DataType { get; set; } public int? CharacterMaxLength { get; set; } public int OrdinalPosition { get; set; } public Table Table { get; set; } public List<DistinctValue> DistinctValues { get; set; } public bool IsUnique() { return DistinctValues.Count == Table.RowCount; } public bool IsUnused() { return DistinctValues.Count == 1; } public int GetDistinctiveValueOccuranceMin() { if (DistinctValues.Count == 0) return 0; return DistinctValues.Min(dv => dv.Count); } public int GetDistinctiveValueOccuranceMax() { if (DistinctValues.Count == 0) return 0; return DistinctValues.Max(dv => dv.Count); } public List<List<DistinctValue>> GetDistinctValueGroups() { if (DistinctValues.Count == 0) return new List<List<DistinctValue>>(); return DistinctValues.GroupBy(dv => dv.Count).Select(g => g.ToList()).ToList(); } } } <file_sep>with aa as (select * from ifte_nav_test.dbo.[Iftest AG$Aenderungsauftrag] where Archiviert = 0) ,ab as (select len(text) textlen,* from ifte_nav_test.dbo.[Iftest AG$Aenderungsbeschreibung] where archiviert = 0) ,textlengths as (select (select sum(textlen + 6) from ab where Zeilennummer <= ab2.Zeilennummer and Nummer = ab2.Nummer) runninglength, * from ab ab2) ,textfields as (select runninglength/4000 textfieldnr, * from textlengths ) ,alltext as (select Nummer, textfieldnr, (select Text + '{\r\n}' from textfields ab1 where ab1.Nummer = ab2.Nummer and textfieldnr = ab2.textfieldnr order by Zeilennummer for xml path('')) Text from textfields ab2 group by Nummer, textfieldnr) , textlen as (select len(Text) textlen, * from alltext) select aa.Nummer, alltext.Text, Status, Bezeichnung, [Datum Antrag], Aussteller, [Verantwortlicher Auftrag], [Customer Issue No_],[Customer change No_], [Customer Issue Date] from aa left join alltext on aa.Nummer = alltext.Nummer where Status in (0,1) and Coalesce(alltext.textfieldnr,0) = 0 order by Nummer --select len(Bezeichnung), * from aa where Nummer='AM013676' order by len(Bezeichnung) desc<file_sep>Select [Vendor No_] , [Code] , [Name] , [City] , [Contact] , [Phone No_] , [Bank Account No_] , [Country Code] , [Fax No_] , [E-Mail] , [IBAN] , [Payment Form] , [Bank Identifier Code] , [Balance Account No_] , [Debit Bank] from [QESS$Vendor Bank Account] <file_sep>using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IFSMigrationExport { public class Formatter { readonly string[] reservedWords; const int MAXIMUM_LENGTH = 30; public Formatter() { string reservedWordsFilePath = Path.Combine(Properties.Settings.Default.InputFolderPath, Properties.Settings.Default.ReservedWordsInputFileName); reservedWords = File.ReadAllLines(reservedWordsFilePath); } public void SetIfsColumnNames(List<Column> columns) { List<string> ifsColumnNames = new List<string>(); foreach (Column c in columns) { ifsColumnNames.Add(AlterReservedWord(Shorten(ReplaceLetters(c.Name.ToUpper())))); } var duplicateNames = ifsColumnNames.GroupBy(x => x) .Where(group => group.Count() > 1); while (duplicateNames.Count() > 0) { foreach (var group in duplicateNames) { int counter = 0; while (ifsColumnNames.IndexOf(group.Key) != -1) { counter++; string newName = group.Key + "_" + counter.ToString(); if(newName.Length > MAXIMUM_LENGTH) { newName = group.Key.Substring(0, MAXIMUM_LENGTH - 1 - counter.ToString().Length) + "_" + counter.ToString(); } ifsColumnNames[ifsColumnNames.IndexOf(group.Key)] = group.Key.Substring(0, group.Key.Length - 1 - counter.ToString().Length) + "_" + counter.ToString(); } } duplicateNames = ifsColumnNames.GroupBy(x => x) .Where(group => group.Count() > 1); } for (int i = 0; i < columns.Count; i++) { columns[i].IfsName = ifsColumnNames[i]; } } string ReplaceLetters(string original) { const string TO_BE_REPLACED = "- .%()ÄÖÜäöü"; const string REPLACEMENTS = "______AOUAOU"; string replaced = original.ToUpper(); for (int i = 0; i < TO_BE_REPLACED.Length; i++) { char toBeReplacedChar = TO_BE_REPLACED.ToCharArray()[i]; char replacementChar = REPLACEMENTS.ToCharArray()[i]; replaced = replaced.Replace(toBeReplacedChar, replacementChar); } return replaced; } static string Shorten(string unshortened) { return unshortened.Substring(0, Math.Min(MAXIMUM_LENGTH, unshortened.Length)); } string AlterReservedWord(string input) { string output; if (reservedWords.Contains(input)) { output = input + "_"; } else { output = input; } return output; } } } <file_sep>using System.Data; using System.IO; using System.Linq; namespace IFSMigrationExport { class Program { private static readonly log4net.ILog log = log4net.LogManager .GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); private static readonly DataAccess db = new DataAccess(); static void Main(string[] args) { Helper.InitExecution(); var id = $"User '{System.Security.Principal.WindowsIdentity.GetCurrent().Name}' on system '{System.Environment.GetEnvironmentVariable("COMPUTERNAME")}'"; var sw1 = log.InfoStart($"IFSMigrationExport execution '{Helper.ExecutionId}' by {id}"); if (Properties.Settings.Default.ExecuteTableExport) { var sw = log.InfoStart("Execute Table Export"); ExecuteTableExport(); log.InfoStop(sw, "Execute Table Export"); } if (Properties.Settings.Default.ExecuteQueryExport) { var sw = log.InfoStart("Execute Query Export"); ExecuteQueryExport(); log.InfoStop(sw, "Execute Query Export"); } log.InfoStop(sw1, $"IFSMigrationExport execution {Helper.ExecutionId} done."); PostProcessMenu.Init(); } private static void ExecuteQueryExport() { string[] filePaths; if (Properties.Settings.Default.LastModifiedQueryOnly) { log.Info($"Setting LastModifiedQueryOnly set. Searching last modified query file..."); filePaths = new string[1]; filePaths[0] = new DirectoryInfo(Properties.Settings.Default.QueryInputFolderPath).GetFiles() .OrderByDescending(f => f.LastWriteTime) .First().FullName; } else { filePaths = Directory.GetFiles(Properties.Settings.Default.QueryInputFolderPath, Properties.Settings.Default.QueryFilter); log.Info($"Processing query files matching '{ Properties.Settings.Default.QueryFilter}' in folder '{ Properties.Settings.Default.QueryInputFolderPath}' ({filePaths.Length} file[s])"); } using (StreamWriter jobDefinitionsFile = new StreamWriter(Path.Combine(Helper.CreJobsPath, Properties.Settings.Default.QueryCreJobsFileName))) { jobDefinitionsFile.WriteLine(Helper.CsvLine("IFS_JOB", "FILE_NAME", "IFS_COLUMN_NAME", "ORIGINAL_COLUMN_NAME", "DATA_TYPE", "CHARACTER_MAXIMUM_LENGTH", "POSITION")); var n = 0; foreach (var path in filePaths) { n++; var sw1 = log.InfoStart($"Processing '{path}' {n}/{filePaths.Length} ..."); var sw2 = log.InfoStart("Execute query..."); var query = db.GetQuery(path); query.NoLeadingTrim = Properties.Settings.Default.NoLeadingTrim.Contains(Path.GetFileName(path)); log.InfoStop(sw2, $"Query {query.FileNameBase} executed. Got {query.DataTable.Rows.Count} records."); sw2 = log.InfoStart($"Export {query.FileNameBase} to csv..."); query.ExportToCsv(); log.InfoStop(sw2, $"Query {query.FileNameBase} exported to csv."); log.Info($"Writing job definition for {query.FileNameBase}. Job name is {query.CreJobName}."); query.WriteCreJobLines(jobDefinitionsFile); log.InfoStop(sw1, $"Finished Processing '{path}'."); } } } private static void ExecuteTableExport() { string tablesInputFilePath = Path.Combine(Properties.Settings.Default.InputFolderPath, Properties.Settings.Default.TablesInputFileName); log.Info($"Using input file '{tablesInputFilePath}'"); DataTable input = Helper.GetDataTable(tablesInputFilePath, ';'); string jobDefinitionsFilePath = Path.Combine(Properties.Settings.Default.OutputFolderPath, Properties.Settings.Default.TablesCreJobsFileName); using (StreamWriter jobDefinitionsFile = new StreamWriter(jobDefinitionsFilePath)) { jobDefinitionsFile.WriteLine(Helper.CsvLine("IFS_JOB", "FILE_NAME", "IFS_COLUMN_NAME", "ORIGINAL_COLUMN_NAME", "DATA_TYPE", "CHARACTER_MAXIMUM_LENGTH", "ORDINAL_POSITION")); log.Info($"Processing {input.Rows.Count} tables"); var n = 0; foreach (DataRow r in input.Rows) { n++; var sw1 = log.InfoStart($"Processing table {r[0].ToString()} {n}/{input.Rows.Count} ..."); var sw2 = log.InfoStart($"Getting table {r[0].ToString()} ..."); Table table = db.GetTable(r[0].ToString()); log.InfoStop(sw2, $"Table {r[0].ToString()} fetched with {table.RowCount} rows."); var sw3 = log.InfoStart($"Writing csv of {r[0].ToString()} ..."); var fileName = table.ExportToCsv(db); log.InfoStop(sw3, $"Csv of {r[0].ToString()} written."); log.Info($"Writing job definition for {r[0].ToString()}"); foreach (Column c in table.GetExportedColumns()) { jobDefinitionsFile.WriteLine(Helper.CsvLine(r[1].ToString(), fileName, c.IfsName, c.Name, c.DataType, c.CharacterMaxLength == null ? 0 : c.CharacterMaxLength, c.OrdinalPosition)); } log.InfoStop(sw1, $"Table {r[0].ToString()} processed."); } } log.Info($"Job definitions written to '{jobDefinitionsFilePath}'"); } } } <file_sep># IFSMigrationExport Create csv files from legacy database for import in IFS ## Connection String Change the connection string in `connectionStrings.sample.config` according to your environment and rename the file to `connectionStrings.config`! <file_sep>Select [Number] , [Itemno_] , [Prod_ BOM Variant] , [Valid from date] , [Valid to date] , [Sell-to Customer No_] , [Status__] , [Description] , [Unit of Measure Code] , [Base for Mat_ Requirement] , [Base for Req_ Planning] , [Cost Object Code] , [Scheduling Mode] , [Base Qty_] , [Optimum Production Qty_] , [Schedule Text] , [Mat_ Picking Method] , [Location Code Product] , [Bin Code] , [Instruction] , [Drawing No_] , [No_ Series] , [Modified Date] , [Modified by] , [Status Activ Date] , [Status Active by] , [Calculation Markup %] , [Cost updated] , [Last Inventory Input] , [Technical parts list head] , [RoHS compliant] , [Technical parts list detail] , [AVOR verantwortlich] , [Kunde1] , [Kunde2] , [Kunde3] , [Dokunummer] , [K_art_num] , [K_Dok_num] , [Logo_num] , [Filename] , [Bezeich] , [Bezeich2] , [OP Import Nr] , [MiracleItemNofix] , [OP-Variante] , [AM Nr_] , [Zurückholdatum] , [Zurüchgeholt von Bearbeiter] , [Änderungsauftrag] , [Auftragsart] , [Ausgabe Nr_] , [Ausgabe] , [Filename 1] , [FileDate 1] , [Number of copies 1] , [Print with Prod_ Order 1] , [Print with Prod_ BOM 1] , [Filename 2] , [FileDate 2] , [Number of copies 2] , [Print with Prod_ Order 2] , [Print with Prod_ BOM 2] , [Filename 3] , [FileDate 3] , [Number of copies 3] , [Print with Prod_ Order 3] , [Print with Prod_ BOM 3] , [Filename 4] , [FileDate 4] , [Number of copies 4] , [Print with Prod_ Order 4] , [Print with Prod_ BOM 4] , [Filename 5] , [FileDate 5] , [Number of copies 5] , [Print with Prod_ Order 5] , [Filename 6] , [FileDate 6] , [Number of copies 6] , [Print with Prod_ Order 6] , [Print with Prod_ BOM 6] , [Filename 7] , [FileDate 7] , [Number of copies 7] , [Print with Prod_ Order 7] , [Print with Prod_ BOM 7] , [Filename 8] , [FileDate 8] , [Number of copies 8] , [Print with Prod_ Order 8] , [Filename 9] , [FileDate 9] , [Number of copies 9] , [Print with Prod_ Order 9] , [Filename 10] , [FileDate 10] , [Number of copies 10] , [Print with Prod_ Order 10] , [Filename 11] , [FileDate 11] , [Number of copies 11] , [Print with Prod_ Order 11] , [Filename 12] , [FileDate 12] , [Number of copies 12] , [Print with Prod_ Order 12] , [Filename 13] , [FileDate 13] , [Number of copies 13] , [Print with Prod_ Order 13] , [Filename 14] , [FileDate 14] , [Number of copies 14] , [Print with Prod_ Order 14] , [Filename 15] , [FileDate 15] , [Number of copies 15] , [Print with Prod_ Order 15] , [Produktionsfreigabe] , [Produktionsfreigabe am] , [Produktionsfreigabe durch] , [Customer Issue No_] , [Customer Issue Date] , [Customer change No_] , [Drawn-Pers] , [Kundenmarker] , [Garantielaufzeit] , [Vendor No_] , [Propagation Quantity] from [QESS$Prod_ BOM Head] <file_sep>using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IFSMigrationExport { public enum CoercedValueOption { None, NoLeadingTrim } public class CoercedValue { public string OriginalValue { get; } public string Value { get; } public string OriginalValueRepresentation { get; } public bool IsTrimmed { get; } public bool HasLineBreakOrTab { get; } public bool HasOtherControlChars { get; } public bool HasColumnDelimiter { get; } public bool HasSuspiciousCharacters { get; } public List<char> SuspiciousChars { get; } private DataColumn dataColumn; private DataRow dataRow; public bool IsOriginal { get { return OriginalValue == Value; } } public CoercedValue(DataColumn c, DataRow r) : this(c, r, new CoercedValueOption[] { }) { } public CoercedValue(DataColumn c, DataRow r, CoercedValueOption[] options) { string value; string originalRepresentation; dataColumn = c; dataRow = r; if (c.DataType == typeof(string)) { OriginalValue = r[c].ToString(); } originalRepresentation = OriginalValue; string coercedValue = OriginalValue.Replace("\u000A", "").Replace("\u000D", "").Replace("\u0009", ""); if (coercedValue != OriginalValue) { HasLineBreakOrTab = true; originalRepresentation = OriginalValue.Replace("\u000A", "\\n").Replace("\u000D", "\\r").Replace("\u0009", "\\t"); } value = coercedValue; coercedValue = value.Replace(Helper.COLUMNSEPARATOR, Helper.COLUMNSEPARATOR_REPLACER); if(coercedValue != value) { HasColumnDelimiter = true; originalRepresentation = originalRepresentation.Replace(Helper.COLUMNSEPARATOR, Helper.COLUMNSEPARATOR_REPLACER + Helper.COLUMNSEPARATOR_REPLACER); } value = coercedValue; coercedValue = new string((from ch in value where ch >= 0x20 select ch).ToArray()); HasOtherControlChars = value != coercedValue; value = coercedValue; if (options.Contains(CoercedValueOption.NoLeadingTrim)) { coercedValue = value.TrimEnd(); } else { coercedValue = value.Trim(); } IsTrimmed = coercedValue != value; value = coercedValue; List<char> suspiciousChars = new List<char>(); foreach (char ch in value) { if (ch > 0x7a && Helper.ACCEPTED_CHARACTERS.Contains(ch)==false) { suspiciousChars.Add(ch); } } if (suspiciousChars.Count > 0) { HasSuspiciousCharacters = true; SuspiciousChars = suspiciousChars; } OriginalValueRepresentation = originalRepresentation; Value = value; } public static string GetCsvHeader() { return Helper.CsvLine("RowID", "ColumnName", "OriginalValue", "CoercedValue", "Trimmed", "ColumnDelimiter", "LineBreakOrTab", "OtherControlCharacters", "HasSuspiciousCharacters", "SuspiciousCharacters"); } public string ToCsv() { return Helper.CsvLine(dataRow[0].ToString(), dataColumn.ToString(), OriginalValueRepresentation, Value, IsTrimmed?"1":"0", HasColumnDelimiter ? "1" : "0", HasLineBreakOrTab ? "1" : "0", HasOtherControlChars ? "1" : "0", HasSuspiciousCharacters ? "1" : "0", SuspiciousChars != null?new string(SuspiciousChars.ToArray()):""); } } } <file_sep>Select [No_] , [Name] , [Search Name] , [Name 2] , [Address] , [Address 2] , [City] , [Contact] , [Phone No_] , [Customer Posting Group] , [Currency Code] , [Language Code] , [Payment Terms Code] , [Salesperson Code] , [Shipment Method Code] , [Invoice Disc_ Code] , [Country Code] , [Blocked] , [Bill-to Customer No_] , [Last Date Modified] , [Location Code] , [Fax No_] , [VAT Registration No_] , [Combine Shipments] , [Gen_ Bus_ Posting Group] , [Post Code] , [County] , [E-Mail] , [Home Page] , [Reminder Terms Code] , [VAT Bus_ Posting Group] , [Primary Contact No_] , [Shipping Advice] , [Shipping Time] , [Allow Line Disc_] , [AAGResponsible] , [Name alt] , [BankAccountDetails] , [Von BUHA geprüft] , [Contract Y_N] from [QESS$Customer]
11d028a17710bd45618fc974e56b83f13c010244
[ "C#", "SQL", "Markdown" ]
27
SQL
iftest-ICT/IFSMigrationExport
8d4b78db2110dcb1cac6c40f7647b0b71d101d97
9733c89b963f96e6a4a641913de746281da84232
refs/heads/master
<file_sep>//All answer options const option1 = document.querySelector('.option1'), option2 = document.querySelector('.option2'), option3 = document.querySelector('.option3'), option4 = document.querySelector('.option4'); //All our options const optionElements = document.querySelectorAll('.option'); const question = document.getElementById('question');//сам вопрос const numberOfQuestion = document.getElementById('number-of-question'),//номер вопроса numberOfAllQuestions = document.getElementById('number-of-all-questions');//количество всех вопросов let indexOfQuestion,//индекс текущего вопроса indexOfPage = 0;//индекс страницы const answersTracker = document.getElementById('answers-tracker');//обертка для трекера const btnNext = document.getElementById('btn-next');//кнопка далее let score = 0;//Итоговый результат викторины const correctAnswer = document.getElementById('correct-answer'),//количество правильных ответов numberOfAllQuestions2 = document.getElementById('number-of-all-questions-2');//количество всех вопросов (в модальном окне) const btnTryAgain = document.getElementById('btn-try-again');//кнопка "начать викторину заново" const questions = [ { question: "Столица Украины?", options: [ "Харьков", "Львов", "Киев", "Одесса" ], rightAnswer: 2 }, { question: "В какой части Украины находится город Львов?", options: [ "Север", "Восток", "Юг", "Запад" ], rightAnswer: 3 }, { question: "Из каких цветов состоит флаг Украины?", options: [ "Чернный и Красный", "Синий и жолтый", "Белый и Синий", "Зеленый и Оранжевый" ], rightAnswer: 1 }, { question: "Что изображено на гербе Украины?", options: [ "Трезубец", "Серп", "Лопата", "Молоток" ], rightAnswer: 0 }, { question: "На каком из контенентов находится Украины?", options: [ "Азия", "Северная Америка", "Европа", "Антарктида" ], rightAnswer: 2 } ]; numberOfAllQuestions.innerHTML = questions.length;//Выводим количество вопросов const load = () => { question.innerHTML = questions[indexOfQuestion].question;//Сам вопрос //мапим ответы option1.innerHTML = questions[indexOfQuestion].options[0]; option2.innerHTML = questions[indexOfQuestion].options[1]; option3.innerHTML = questions[indexOfQuestion].options[2]; option4.innerHTML = questions[indexOfQuestion].options[3]; numberOfQuestion.innerHTML = indexOfPage + 1;//Установка номера текущей страницы indexOfPage++;//Увеличение индекса страницы }; const completedAnswers = [];//Массив для уже заданых вопросов const randomQuestion = () => { let randomNumber = Math.floor(Math.random() * questions.length); let hitDublicate = false;//Якорь для проверки одинакових вопросов if (indexOfPage == questions.length) { quizOver(); } else { if (completedAnswers.length > 0) { completedAnswers.forEach(item => { if (item == randomNumber) { hitDublicate = true; } }); if (hitDublicate) { randomQuestion(); } else { indexOfQuestion = randomNumber; load(); } } if (completedAnswers == 0) { indexOfQuestion = randomNumber; load(); } } completedAnswers.push(numberOfQuestion); } const disabledOptions = () => { optionElements.forEach(item => { item.classList.add('disabled'); if (item.dataset.id == questions[indexOfQuestion].rightAnswer) { item.classList.add('correct'); } }); } const checkAnswer = (el) => { if (el.target.dataset.id == questions[indexOfQuestion].rightAnswer) { el.target.classList.add('correct'); updateAnswerTracker('correct'); score++; } else { el.target.classList.add('wrong'); updateAnswerTracker('wrong'); } disabledOptions(); } for (option of optionElements) { option.addEventListener('click', (e) => checkAnswer(e)); } //Удаление классов со всех ответов const enableOptions = () => { optionElements.forEach(item => { item.classList.remove('disabled', 'correct', 'wrong'); }); } const answerTracker = () => { questions.forEach(() => { const div = document.createElement('div'); answersTracker.appendChild(div); }) } const updateAnswerTracker = (status) => { answersTracker.children[indexOfPage - 1].classList.add(`${status}`); } const validate = () => { if (!optionElements[0].classList.contains('disabled')) { alert('Вам нужно выбрать один из вариантов ответа!') } else { randomQuestion(); enableOptions(); } } const quizOver = () => { document.querySelector('.quiz-over-modal').classList.add('active'); correctAnswer.innerHTML = score; numberOfAllQuestions2.innerHTML = questions.length; } const tryAgain = () => { window.location.reload(); } btnTryAgain.addEventListener('click', tryAgain); btnNext.addEventListener('click', validate); window.addEventListener('load', () => { randomQuestion(); answerTracker(); }); <file_sep>/* Задание 1: Вам необходимо поделиться информацией о вашем родном городе. Все данные необходимо записать в отдельную переменную. Информация о городе: - Название города (строка) - В какой стране находится этот город (строка) - Численность населения (число) - Есть ли футбольный стадион (boolean [ true(да) / false(нет) ]) */ //Задание 1 //Информация о городе: const myCity = "Kyiv"; const country = "Ukraine"; const population = 2889000; let stadium = true; console.log(`Город: ${myCity}, Страна: ${country}, Численость населения: ${population} млн.чел., Наличие стадиона: ${stadium}!`); /* Задание 2: Напишите скрипт, который находит площадь прямоугольника - высота 40см - ширина 70см ps: каждая сущность должна находиться в отдельной переменной */ //Задание 2 const height = 40; const width = 70; let result = height * width; console.log(`Площадь прямоугольника: ${result} см`); /* Задание 3: Два автомобиля одновременно выехали навстречу друг другу из двух городов и встретились через 2 часа. Первый ехал со скоростью 95км/ч, а второй 114км/ч. Цель: Выяснить на каком расстоянии находятся города друг от друга и после всех вычеслений записать результат в переменную. Исходные данные: time = 2; speedOfFirst = 95; speedOfSecond = 114; */ //Задание 3 const time = 2; const speedOfFirst = 95; const speedOfSecond = 114; let distance = (speedOfFirst * time) + (speedOfSecond * time); console.log(`Расстояние между городами: ${distance} км.`); /* Задание 4: Перед вами код: const randomNumber = Math.floor(Math.random() * 100); Этот код при каждом обновлении страницы генерирует случайное число и записывает его в переменную randomNumber. Напишите условную конструкцию, со следующими данными: - если randomNumber меньше 20, то выведите в консоль сообщение : "randomNumber меньше 20" - если randomNumber больше 50, то выведите в консоль сообщение : "randomNumber больше 50" - если ни один из вариантов не совпал, то выведите в консоль сообщение : "randomNumber больше 20, и меньше 50" */ //Задание 4 const randomNumber = Math.floor(Math.random() * 100); if (randomNumber < 20) { console.log('randomNumber меньше 20'); } else if (randomNumber > 50) { console.log('randomNumber больше 50'); } else { console.log('randomNumber больше 20, и меньше 50'); } /* Задание 5: Условную конструкцию из задания 4, перепишите с помощью Switch Case */ //Задание 5 const randomNumber2 = Math.floor(Math.random() * 100); switch (true) { case (randomNumber2 < 20): console.log(`${randomNumber2} меньше 20`); break; case (randomNumber2 > 50): console.log(`${randomNumber2} больше 50`); break; default: console.log(`${randomNumber2} больше 20, и меньше 50`); }
7c022c9a67dad14b5694568ddd7922156e8f225a
[ "JavaScript" ]
2
JavaScript
olegonuk/wayup_deep_JS
b0c95df046e23ff91de327ad731df15657520d65
063c36151130837357f3a324ece98ff1b67599da
refs/heads/master
<repo_name>casmary/Learning_Ruby<file_sep>/word_count.rb puts "Input words to count" text = gets.chomp def wordCount(words) text = words.split(" ") frequency = Hash.new(0) text.each { |word| frequency[word] += 1 } frequency = frequency.sort_by { |x, y| y <=> x } end puts wordCount(text)<file_sep>/StringSplosion_lab.rb class StringSplosion def initialize(name) @name = name end def manipulate stm = "" result = "" @name.split('').each{ |x| stm += x result += stm } return result end end<file_sep>/prime_checker_lab.rb def prime(num) (2..num/2).none? do |i| num % i == 0 end end<file_sep>/data_type_lab.rb def dataTypes(input) case input when NilClass return 'no value' when FalseClass return false when TrueClass return true when Fixnum if input == 0 return true elsif input < 100 return 'less than 100' elsif input > 100 return 'more than 100' else input == 100 return 'equal to 100' end when String return input.length when Array if input.length == 0 || input.length < 3 return nil else return input.max end else return 'Not found' end end<file_sep>/factorial_lab.rb def factorial(num) case num when Fixnum return num.downto(1).inject(:*) else return "not a number" end end<file_sep>/Min_Max_number_lab.rb def findMinMax(number) min = number.min max = number.max equal = [] if min == max equal << min else number.minmax end end<file_sep>/word_count_lab.rb def words(texts) texts = texts.split(" ") frequencies = Hash.new(0) texts.each { |text| frequencies[text] += 1 } return frequencies end<file_sep>/substrings_lab.rb def substrings(string, list) result = {} splitted_string = string.split(' ') splitted_string.each do |s| list.each do |l| if s.downcase.include? l.downcase result[l]? result[l] += 1 : result[l] = 1 end end end return result end<file_sep>/Bowling_lab.rb class Bowling attr_accessor :score def initialize @score = 0 end #initialize score def hit(n) #update score @score += n end def score_text return "You scored #{ @score } points" end end<file_sep>/missing_number_lab.rb def findMissing(arr1, arr2) if arr1 == arr2 return 0 else (arr2 - arr1)[0] end end<file_sep>/reverse_string_lab.rb def reverse(words) word = words.reverse if word.empty? return nil elsif word == words return true else word end end<file_sep>/string_Length_lab.rb def stringLength(input) case input when String return input.length when Array result = [] input.each{|x| result << x.length } return result when Hash result = [] input.each {|key, value| result << value.length} return result else return 'not treated' end end
71e74b6041db7c0d40fc8f604009f73cdd606dfd
[ "Ruby" ]
12
Ruby
casmary/Learning_Ruby
3334fa58ad233bddb3875d79cc4235a1e9903be9
6c06d6710e66e8557a90bd398ce1d70553082561
refs/heads/master
<repo_name>wesley-moody/nasa-photo-of-the-day<file_sep>/src/components/Apod.js import React from "react"; import "../App.css"; function Apod(props) { if (!props.apod) return <h3>Loading...</h3>; return ( <div> <img src={props.apod}></img> </div> ); } export default Apod; <file_sep>/src/components/Apodinfo.js import React from "react"; import "../App.css"; function Apodinfo(props) { console.log(props); return ( <section> <div className='bigDiv'> <img className='image' src={props.apod}/> <h2 className='title'>{props.title}</h2> <p>{props.info}</p> <p className='date'> {props.date} </p> </div> </section> ) } export default Apodinfo;<file_sep>/src/components/NavBar.js import React from "react"; function NavLinks() { return ( <div> <nav> {/* <a>Mercury</a> <a>Venus</a> <a>Earth</a> <a>Mars</a> <a>Jupiter</a> <a>Saturn</a> <a>Neptune</a> <a>Uranus</a> <a>Pluto!</a> */} </nav> </div> ) } export default NavLinks;
8654598fddd471d1acbda8a0b44c09953dbecf96
[ "JavaScript" ]
3
JavaScript
wesley-moody/nasa-photo-of-the-day
e09e7a7f8424cfe1b09aee4beef4695474f9129d
612a9c0b7458694f976a5bea13977166ea9d07e2
refs/heads/master
<file_sep># cProjects Sublime Text 3 plugin to manage your c/c++ Projects. ## Important This plugin is only tested on a linux platform yet. I would by happy to know if it runs on an other platform. ## Synopsis This plugin expands the sublime text by a simple C and C++ Integrated Development Environment. Features include: support for project creation, customizable compiler command, include autocomplete, easy include and libry management. More features are planned. ## Installation Clone the repository in to the Sublime Text Packages folder. ```bash cd [Packages folder] git clone https://github.com/musdasch/cProjects.git ``` ## Usage ### Crat Project To create a project you can use either the short menu with the shortcut `ctrl + alt + m` or the menu item `Project` > `CProject` > `New CProject` After that you have to enter a project name and the project directory. ### Set Source File To compile you have to set the source file which holds the main function. In order to set the source file you can either use the short menu with the shortcut `ctrl + alt + m` or the menu item `Project` > `CProject` > `Set Source File` After that you can choose which opened file should be used. ### Alter Object Files In order to add, alter or remove Object Fildes from the compiler command you can use the short menu with the shortcut `ctrl + alt + m` or use the menu item `Project` > `CProject` > `Alter Object Files` After that you can choose between the options `Add object file` or `Add from opened files`, if you have already set a object file you have the additional options `Alter object file` which allows you to allter the path to the object file and `Delete object file` ### Alter Includes In order to have an easy access to your header files you can include a folder by default the headers folder is added. To add, alter or remove folders you can use the short menu with the shortcut `ctrl + alt + m` or the menu item `Project` > `CProject` > `Alter Includes`. After that you can choose between `Add include`, `Alter include` or `Delete include`. ### Alter Libraries If you want to include libraries in your project, you can use can use either the short menu with the shortcut `ctrl + alt + m` or the menu item `Project` > `CProject` > `Alter Libraries`. After that you can choose between `Add library`, `Alter library` or `Delete library`. ### Alter Library Paths in order to have a easy access to foreign libraries you can set a path to the library folder. to add, alter or delete library path you can use either the short menu with the shortcut `ctrl + alt + m` or the menu item `Project` > `CProject` > `Alter Library Paths`. After that you can chosse between `Add library path`, `Alter library path` or `Delete library path`. ### Set Build Path By default the build path is `[project path]/bin/builds` in order to change the path you can use the short menu with the shortcut `ctrl + alt + m` or the menu item `Project` > `CProject` > `Set build path` and set an new directory to build in. ### Set Single Build Path There is also the option to separately change the build path for the single build command. To change the build path for single source files you can use either the short menu with the shortcut `ctrl + alt + m` or the menu item `Project` > `CProject` > `Set Single Build Path`. ### Set Compiler By default the compiler is `g++` in order to set e new default compiler you can either use the short menu with the shortcut `ctrl + alt + m` or the menu item `Project` > `CProject` > `Set compiler` and set a new one. ### Set Options In order to specify compiler options such as `-Wall` you can use either the short menu with the shortcut `ctrl + alt + m` or the menu item `Project` > `CProject` > `Set options`. ### Set Single Options You have also the the opportunity to change the options for the single file build command. In order to set new options you can use either the short menu with the shortcut `ctrl + alt + m` or the menu item `Project` > `CProject` > `Set Single Options`. ### Set Run Command The default run command is set in such a way that the program is started in the `gnome-terminal`. If you doesn't use gnome you can change the run command by either using the short menu with the shortcat `ctrl + alt + m` or the menu item `Project` > `CProject` > `Set run command`. Default run command: `gnome-terminal -- bash -c "${build_path}; read -n1"` ### Set Single Run Command The run command for the build system witch builds the single source files is stored differently. In order to alter the run command for single builds you can use either the short menu with the shortcut `ctrl + alt + m` or the menu item `Project` > `CProject` > `Set Single Run Command`. Default single run command: `gnome-terminal -- bash -c "${single_build_path}; read -n1"` ### Build Variables There are a few variables to make your build command dynamic. The Variables are: CProject specefic: * ${compiler} - The compiler as set in the project setings, e. g., g++ * ${build_path} - Output file, e. g., ./bin/builds/binary. * ${single_build_path} - Output file for single build. * ${run} - The run command as specified in the project setings. * ${single_run} - The run command for single builds. * ${options} - The compiler options as specified in the project setings. * ${single_options} - The compiler options for single builds. * ${source_file} - The source file as specified in the project setings. * ${source_base_name} - The name only portion of the source_file as specified in the project setings. Sublime Text standard: * ${file} - The full path to the current file, e. g., C:\Files\Chapter1.txt. * ${file_path} - The directory of the current file, e. g., C:\Files. * ${file_name} - The name portion of the current file, e. g., Chapter1.txt. * ${file_extension} - The extension portion of the current file, e. g., txt. * ${file_base_name} - The name only portion of the current file, e. g., Document. * ${packages} - The full path to the Packages folder. * ${project} - The full path to the current project file. * ${project_path} - The directory of the current project file. * ${project_name} - The name portion of the current project file. * ${project_extension} - The extension portion of the current project file. * ${project_base_name} - The name only portion of the current project file. ### Build You have several options to build if you press the shortcut `ctrl + shift + b`. The options are: * `CProject` builds first and runs the chosen source file. * `CProject - Build` only builds the chosen source file. * `CProject - Run` only starts the previous build from the chosen source file. * `CProject - Single File` builds first and runs the opened source file. * `CProject - Single File - Build` only builds the opened source file. * `CProject - Single File - Run` only runs the opened source file. If you press `ctrl + b` the previous comand will by repettet ## Features The CProject is a minimal Development Enviroment. It provides : ### Creat Project * Creats a project folder for you. * Sets up the project. ### Compiler Command * Allows you to change the compiler command by alter the settings. * Custom build system testet with g++ compiler. ### Libry Management * Comfortable tool to add, alter or remove of includes libraries or paths in your project. ### Include Autocomplete * Autocomplete file names for #include "" directives. * List of standart directives. * Searches in your includes. * Searches in same directory as the file. ### Snippets * isn't fully implemented yet. ## Planned * Suport Clang auto complete ## Contact You can leave bug reports, feature requests, or comments using the issues section. ## Thanks! Thank you for your interest in this package! ## License DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004 Copyright (C) 2017 <NAME> <EMAIL> Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed. DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. You just DO WHAT THE FUCK YOU WANT TO. <file_sep>import sublime, sublime_plugin # Command alter_libraries_cprojekct enables you to change the libraries of the project. class AlterLibrariesCprojectCommand(sublime_plugin.WindowCommand): project_data = {} variables = {} index = 0; chosen = -1; def run(self): # Get the project data self.project_data = self.window.project_data() self.project_data = (self.project_data or {}) # Extract System Variables self.variables = self.window.extract_variables() # Reset chosen self.chosen = -1; if 0 < len(self.getSettings()): items = ["Add library"] if(0 < len(self.getSettings()["libraries"])): items.append("Alter library") items.append("Delete library") self.quickPanel(items, self.selectAction, sublime.KEEP_OPEN_ON_FOCUS_LOST, self.index) else: self.error("There is no valid cProject.") def selectAction(self, option): if -1 < option: self.index = option if 0 == option: self.askForNew() elif 1 == option: self.selectToAlter() elif 2== option: self.selectToDel() def askForNew(self): self.input("New library:", "", self.add, None, None) def add(self, path): self.project_data["c_projects_settings"]["libraries"].append(path) self.window.set_project_data(self.project_data) self.message("Add new library: \"" + path + "\" - OK" ) def selectToAlter(self): self.quickPanel(self.project_data["c_projects_settings"]["libraries"], self.askForAlter, sublime.KEEP_OPEN_ON_FOCUS_LOST, 0) def askForAlter(self, index): self.chosen = index self.input("Alter libraries:", self.project_data["c_projects_settings"]["libraries"][index], self.alter, None, None) def alter(self, path): if -1 < self.chosen: self.project_data["c_projects_settings"]["libraries"][self.chosen] = path self.window.set_project_data(self.project_data) self.message("Alter library: \"" + path + "\" - OK" ) def selectToDel(self): self.quickPanel(self.project_data["c_projects_settings"]["libraries"], self.delete, sublime.KEEP_OPEN_ON_FOCUS_LOST, 0) def delete(self, index): path = self.project_data["c_projects_settings"]["libraries"][index] del self.project_data["c_projects_settings"]["libraries"][index] self.window.set_project_data(self.project_data) self.message("Delete library: \"" + path + "\" - OK" ) def getSettings(self): return self.project_data.get("c_projects_settings", {}) def input(self, caption, initial_text, on_done, on_change, on_cancel): self.window.show_input_panel(caption, initial_text, on_done, on_change, on_cancel) def quickPanel(self, items, on_done, flags, index): self.window.show_quick_panel(items, on_done, flags, index) def error(self, message): sublime.error_message(message) def message(self, message): self.window.status_message(message)<file_sep>import sublime, sublime_plugin # Command alter_includes_cprojekct enables you to change the includes class AlterIncludesCprojectCommand(sublime_plugin.WindowCommand): project_data = {} variables = {} index = 0; chosenInclude = -1; def run(self): # Get the project data self.project_data = self.window.project_data() self.project_data = (self.project_data or {}) # Extract System Variables self.variables = self.window.extract_variables() # Reset chosen include self.chosenInclude = -1; if 0 < len(self.getSettings()): items = ["Add include"] if(0 < len(self.getSettings()["includes"])): items.append("Alter include") items.append("Delete include") self.quickPanel(items, self.selectAction, sublime.KEEP_OPEN_ON_FOCUS_LOST, self.index) else: self.error("There is no valid cProject.") def selectAction(self, option): if -1 < option: self.index = option if 0 == option: self.askForNew() elif 1 == option: self.selectToAlter() elif 2== option: self.selectToDel() def askForNew(self): self.input("New Include:", "." + self.delim() + "src" + self.delim(), self.add, None, None) def add(self, path): self.project_data["c_projects_settings"]["includes"].append(path) self.window.set_project_data(self.project_data) self.message("Add new include: \"" + path + "\" - OK" ) def selectToAlter(self): self.quickPanel(self.project_data["c_projects_settings"]["includes"], self.askForAlter, sublime.KEEP_OPEN_ON_FOCUS_LOST, 0) def askForAlter(self, index): self.chosenInclude = index self.input("Alter Include:", self.project_data["c_projects_settings"]["includes"][index], self.alter, None, None) def alter(self, path): if -1 < self.chosenInclude: self.project_data["c_projects_settings"]["includes"][self.chosenInclude] = path self.window.set_project_data(self.project_data) self.message("Alter include: \"" + path + "\" - OK" ) def selectToDel(self): self.quickPanel(self.project_data["c_projects_settings"]["includes"], self.delete, sublime.KEEP_OPEN_ON_FOCUS_LOST, 0) def delete(self, index): path = self.project_data["c_projects_settings"]["includes"][index] del self.project_data["c_projects_settings"]["includes"][index] self.window.set_project_data(self.project_data) self.message("Delete include: \"" + path + "\" - OK" ) def getSettings(self): return self.project_data.get("c_projects_settings", {}) def input(self, caption, initial_text, on_done, on_change, on_cancel): self.window.show_input_panel(caption, initial_text, on_done, on_change, on_cancel) def quickPanel(self, items, on_done, flags, index): self.window.show_quick_panel(items, on_done, flags, index) def error(self, message): sublime.error_message(message) def message(self, message): self.window.status_message(message) def delim(self): if 'windows' == sublime.platform(): out = "\\" elif 'linux' == sublime.platform(): out = "/" else: out = '/' return out<file_sep>import sublime, sublime_plugin # Command set_run_cprojekct to alter the run command. class SetRunCprojectCommand(sublime_plugin.WindowCommand): project_data = {} variables = {} def run(self): # Get the project data self.project_data = self.window.project_data() self.project_data = (self.project_data or {}) # Extract System Variables self.variables = self.window.extract_variables() if 0 < len(self.getSettings()): self.input("run:", self.getSettings()["run"], self.setValue, None, None) else: self.error("There is no valid cProject.") def setValue(self, value): self.project_data["c_projects_settings"]["run"] = value self.window.set_project_data(self.project_data) self.message("New run: \"" + value + "\" - OK" ) def getSettings(self): return self.project_data.get("c_projects_settings", {}) def input(self, caption, initial_text, on_done, on_change, on_cancel): self.window.show_input_panel(caption, initial_text, on_done, on_change, on_cancel) def quickPanel(self, items, on_done, flags, index): self.window.show_quick_panel(items, on_done, flags, index) def error(self, message): sublime.error_message(message) def message(self, message): self.window.status_message(message)<file_sep>import sublime, sublime_plugin # Command set_source_cproject to set a new source file. class SetSourceCprojectCommand(sublime_plugin.WindowCommand): project_data = {} variables = {} open_files = [] #On set_source_cproject window command. def run(self): # Get the project data self.project_data = self.window.project_data() self.project_data = (self.project_data or {}) # Extract System Variables self.variables = self.window.extract_variables() # Reset open files self.open_files = [] if 0 < len(self.getSettings()): current_file = 0; # Load cpp files for quick panel for view in self.window.views(): if None != view.file_name(): if -1 < view.file_name().find(".cpp"): self.open_files.append( view.file_name().replace(self.variables["project_path"], ".") ) if view.file_name() == self.variables["file"]: current_file = len(self.open_files) - 1 # Show quick panel to choose file. if 0 < len(self.open_files): self.quickPanel(self.open_files, self.setSourceFile, sublime.KEEP_OPEN_ON_FOCUS_LOST, current_file) else: self.error("There is no valid cProject.") def setSourceFile(self, index): if -1 < index: self.project_data["c_projects_settings"]["source_file"] = self.open_files[index] self.window.set_project_data(self.project_data) self.message("New source file: \"" + self.open_files[index] + "\" - OK" ) else: self.message("Old source file: \"" + self.project_data["c_projects_settings"]["source_file"] + "\" - OK" ) def getSettings(self): return self.project_data.get("c_projects_settings", {}) def quickPanel(self, items, on_done, flags, index): self.window.show_quick_panel(items, on_done, flags, index) def error(self, message): sublime.error_message(message) def message(self, message): self.window.status_message(message)<file_sep>import sublime, sublime_plugin import os from os.path import dirname, realpath, expanduser from shutil import copyfile #Creat new CProject class NewCprojectCommand(sublime_plugin.WindowCommand): project_name = '' project_path = '' plugin_path = '' def run(self): self.message('Create cProject') self.plugin_path = dirname(realpath(__file__)) self.inputName() def folder(self, index): out = expanduser("~") if index < len(self.window.folders()): out = self.window.folders()[index] return out def makedirs(self, path): if not os.path.isdir(path): os.makedirs(path) self.message(path + ' - Created') else: self.message(path + ' - OK') def input(self, caption, initial_text, on_done, on_change, on_cancel): self.window.show_input_panel(caption, initial_text, on_done, on_change, on_cancel) def message(self, message): self.window.status_message(message) def inputName(self): self.input('Project Name:', '', self.inputPath, None, None) def inputPath(self, name): self.setName(name) self.input('Project Path:', self.folder(0), self.createProject, None, None) def createProject(self, path): self.setPath(path) self.makedirs(self.project_path) self.makedirs(self.project_path + self.delim() + 'bin') self.makedirs(self.project_path + self.delim() + 'bin' + self.delim() + 'builds') self.makedirs(self.project_path + self.delim() + 'src') self.makedirs(self.project_path + self.delim() + 'src' + self.delim() + 'sources') self.makedirs(self.project_path + self.delim() + 'src' + self.delim() + 'headers') self.makedirs(self.project_path + self.delim() + 'res') self.makedirs(self.project_path + self.delim() + 'lib') templatePath = self.plugin_path + self.delim() + '..' + self.delim() + 'templates' + self.delim() targetPath = self.project_path + self.delim() + self.project_name + '.sublime-project' if os.path.isfile(templatePath + 'template[' + sublime.platform() + '].sublime-project' ): copyfile(templatePath + 'template[' + sublime.platform() + '].sublime-project', targetPath) else: copyfile(templatePath + 'template.sublime-project', targetPath) os.system('subl --project ' + self.project_path + self.delim() + self.project_name + '.sublime-project') def setName(self, name): self.message("Project Name: " + name) self.project_name = name def setPath(self, path): self.message("Project Path: " + path) self.project_path = path def delim(self): if 'windows' == sublime.platform(): out = "\\" elif 'linux' == sublime.platform(): out = "/" else: out = '/' return out <file_sep>import sublime, sublime_plugin from os.path import basename, splitext # List of variable names we want to support custom_var_list = [ "compiler", "build_path", "single_build_path", "run", "single_run", "options", "single_options" ] # Build Command for CProjekt class BuildCprojectCommand(sublime_plugin.WindowCommand): """ Provide custom build variables to a build system, such as a value that needs to be specific to a current project. This example only allows for variables in the "cmd" field, but could be easily extended. """ def createExecDict(self, sourceDict): global custom_var_list # Get the project specific settings project_data = self.window.project_data () project_settings = (project_data or {}).get ("c_projects_settings", {}) # Get the view specific settings view_settings = self.window.active_view ().settings () # Variables to expand; start with defaults, then add ours. variables = self.window.extract_variables () # Create source_file and source_base_name variables["source_file"] = sublime.expand_variables(view_settings.get( "c_projects_source_file", project_settings.get("source_file", "")), variables) variables["source_base_name"] = basename(splitext(variables["source_file"])[0]) for custom_var in custom_var_list: variables[custom_var] = sublime.expand_variables(view_settings.get( "c_projects_" + custom_var, project_settings.get(custom_var, "")), variables) # Load object_files object_file_list = sublime.expand_variables(view_settings.get( "c_projects_object_files", project_settings.get("object_files", {})), variables) variables["object_files"] = "" for object_file in object_file_list: variables["object_files"] += " " + object_file # Load includes include_list = sublime.expand_variables(view_settings.get( "c_projects_includes", project_settings.get("includes", {})), variables) variables["includes"] = "" for include in include_list: variables["includes"] += " -I" + include # Load library paths library_path_list = sublime.expand_variables(view_settings.get( "c_projects_library_paths", project_settings.get("library_paths", {})), variables) variables["library_paths"] = "" for library_path in library_path_list: variables["library_paths"] += " -L" + library_path # Load libraries library_list = sublime.expand_variables(view_settings.get( "c_projects_libraries", project_settings.get("libraries", {})), variables) variables["libraries"] = "" for library in library_list: variables["libraries"] += " -l" + library print(variables) # Create arguments to return by expanding variables in the # arguments given. args = sublime.expand_variables(sourceDict, variables) # Rename the command parameter to what exec expects. args["cmd"] = args.pop ("command", []) return args def run(self, **kwargs): self.window.run_command ("exec", self.createExecDict (kwargs))<file_sep>import sublime, sublime_plugin import sys from os.path import dirname, realpath, expanduser scripts_path = dirname(realpath(__file__)) + "/scripts" isset = False for path in sys.path: if path == scripts_path: isset = True if not isset: sys.path.append(scripts_path) # Import all Scripts from buildCProject import * from newCProject import * from setBuildPathCProject import * from setSingleBuildPathCProject import * from setCompilerCProject import * from setOptionsCProject import * from setSingleOptionsCProject import * from setRunCProject import * from setSingleRunCProject import * from setSourceCProject import * from alterIncludesCProject import * from alterLibrariesCProject import * from alterLibraryPathsCProject import * from alterObjectFilesCProject import * from shortMenuCProject import * from autocompleteCProject import * <file_sep>import sublime, sublime_plugin from os.path import dirname, realpath, expanduser import json # Command short_menu_cproject opens the CProjekt short menu. class ShortMenuCprojectCommand(sublime_plugin.WindowCommand): menu = {} index = 0 def run(self): path = dirname(realpath(__file__)) json_data = open(path + self.delim() + ".." + self.delim() + "menus" + self.delim() + "Main.sublime-menu").read() json_data = json.loads(json_data) self.menu = json_data[0]["children"][0]["children"] menu_items = [] for item in self.menu: menu_items.append(item["caption"]) self.quickPanel(menu_items, self.selectAction, sublime.KEEP_OPEN_ON_FOCUS_LOST, self.index) def selectAction(self, option): if -1 < option: self.index = option self.window.run_command(self.menu[option]["command"]) def quickPanel(self, items, on_done, flags, index): self.window.show_quick_panel(items, on_done, flags, index) def delim(self): if 'windows' == sublime.platform(): out = "\\" elif 'linux' == sublime.platform(): out = "/" else: out = '/' return out<file_sep>import sublime, sublime_plugin import os from os.path import dirname, realpath, expanduser, join import collections import json class IncludeAutoComplete(sublime_plugin.EventListener): project_data = {} project_path = "" paths = [] files = [] ext = [] def on_query_completions(self, view, prefix, locations): ## Check if completion is needed. # If we have more than one location, forget about it. if len(locations) != 1: return None # If we're not in an include statement, forget about it. if not view.match_selector(locations[0], "meta.preprocessor.include & " "(string.quoted.other | " "string.quoted.double)"): return None self.project_data = view.window().project_data() self.project_data = (self.project_data or {}) # If we're not in a CProject, forget about it. if 1 > len(self.getSettings()): return None # Reset completion data. self.paths = [] self.files = [] self.ext = [] self.project_path = "" completions = None # Load project path self.project_path = dirname(view.window().project_file_name()) # Set the current working directory to the project directory. os.chdir(self.project_path) # Load folders. self.addPath(dirname(view.file_name())) for path in self.getSettings()["includes"]: self.addPath(path) # Load extensions extensions = self.getSettings()["header_ext"] for extention in extensions: self.ext.append(extention) # Find files. self.findFile(self.ext) # Create completions if there are files. if 0 < len(self.files): completions = [] for file in self.files: completions.append( [file + "\tinclude", file] ) return completions def addPath(self, path): path = realpath(path) if not path in self.paths: self.paths.append(path) def addFile(self, file): if not file in self.files: self.files.append(file) def findFile(self, ext): for path in self.paths: dirs = os.listdir(path) for file in dirs: if file.endswith(tuple(ext)): self.files.append(file) def getSettings(self): return self.project_data.get("c_projects_settings", {}) def input(self, caption, initial_text, on_done, on_change, on_cancel): self.window.show_input_panel(caption, initial_text, on_done, on_change, on_cancel) def quickPanel(self, items, on_done, flags, index): self.window.show_quick_panel(items, on_done, flags, index) def error(self, message): sublime.error_message(message) def message(self, message): self.window.status_message(message)
2af10cfdc7f21a236564037447a358019e61a0ec
[ "Markdown", "Python" ]
10
Markdown
musdasch/cProjects
efc3c47f39b71e86633705fbd80117417298dcc0
7854af6a0df629b277082cd4535a43e61ae4ef75
refs/heads/master
<repo_name>mrudulp/pinterest_layout<file_sep>/ReadMe.md # README.md ## Introduction: * This project is a simple simulation of Pinterest like 2 column view. ## Learning Objective: * Here the objective is primarily to learn UICollectionView ## How to use: * Open "pinterest_layout" application * Swipe up and down to view more images. * Tap on swap button so that flow direction can be changed. * In horizontal flow swipe left & right. ## Technical Highlights: * UICollectionFlowLayout is used to display 2 column view. * UICollectionViewScrollDirection is used to swap flow direction of layout. ## Status: * Complete ## Desired Further Enhancement: * Improve Text label to display complete text. * Reduce space between images. * Introduce 4 column view with infinite scrolling. <file_sep>/pinterest_layout/CollectionViewController.swift // // ViewController.swift // pinterest_layout // // Created by <NAME> on 28/02/16. // Copyright © 2016 ShreeVed. All rights reserved. // import UIKit class CollectionViewController: UICollectionViewController, UICollectionViewDelegateFlowLayout { let reuseIdentifier = "colcell" let sectionInsets = UIEdgeInsets(top: 2.0, left: 2.0, bottom: 2.0, right: 2.0) let titles = ["Mixed Tulips","Sand Harbor, Lake Tahoe - California","Beautiful View of Manhattan skyline.","Watcher in the Fog","Great Smoky Mountains National Park, Tennessee","Most beautiful place","Water Stream", "Tulips","Tulips In Heart","Spectales","Orange Tulips", "Pink Tulips","Random Tulips", "Tulips Close Up","Ultra Close Tulip"] var isHorizantal:Bool = true override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. //collectionView!.registerClass(CollectionViewCell.self, forCellWithReuseIdentifier: "colcell") } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } override func numberOfSectionsInCollectionView(collectionView: UICollectionView) -> Int { return 1 } override func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell { let cell = collectionView.dequeueReusableCellWithReuseIdentifier(reuseIdentifier, forIndexPath: indexPath) as! CollectionViewCell cell.cellTitle.text = titles[indexPath.row] let imageName = "pin\(indexPath.row).jpg" cell.cellImage.image = UIImage(named: imageName) return cell } override func collectionView(collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { return titles.count } func collectionView(collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, insetForSectionAtIndex section: Int) -> UIEdgeInsets { return sectionInsets } func collectionView(collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAtIndexPath indexPath: NSIndexPath) -> CGSize { return CGSize(width: 170, height: 350) } func collectionView(collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumInteritemSpacingForSectionAtIndex section: Int) -> CGFloat { return 2 } @IBAction func onSwapPressed(sender: AnyObject) { if !isHorizantal{ let flowLayout = UICollectionViewFlowLayout.init() flowLayout.scrollDirection = UICollectionViewScrollDirection.Horizontal collectionView!.collectionViewLayout = flowLayout isHorizantal = true } else{ let flowLayout = UICollectionViewFlowLayout.init() flowLayout.scrollDirection = UICollectionViewScrollDirection.Vertical collectionView!.collectionViewLayout = flowLayout isHorizantal = false } } } <file_sep>/pinterest_layout/CollectionViewCell.swift // // CollectionViewCell.swift // pinterest_layout // // Created by <NAME> on 28/02/16. // Copyright © 2016 ShreeVed. All rights reserved. // import Foundation import UIKit class CollectionViewCell: UICollectionViewCell { @IBOutlet weak var cellImage: UIImageView! @IBOutlet weak var cellTitle: UILabel! override func prepareForReuse() { super.prepareForReuse() cellImage.image = nil cellTitle.text = "" } override init(frame: CGRect) { super.init(frame: frame) print("init with Frame called") // cellImage = UIImageView(frame: CGRect(x: 0, y: 0, width: frame.size.width, height: frame.size.height*2/3)) cellImage.contentMode = UIViewContentMode.ScaleAspectFit contentView.addSubview(cellImage) // cellTitle = UILabel(frame: CGRect(x: 0, y: imageView.frame.size.height, width: frame.size.width, height: frame.size.height/3)) cellTitle.font = UIFont.systemFontOfSize(UIFont.smallSystemFontSize()) cellTitle.textAlignment = .Center contentView.addSubview(cellTitle) } required init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) print("init with decoder called") } }
7105e0a3f6cdfc0863c2bdf64a1deef4078e5021
[ "Markdown", "Swift" ]
3
Markdown
mrudulp/pinterest_layout
8faa697012ff7d850865dd72535f4f687f675f60
ac9ee9e8d7a970f6aadcf20e36f56649245eed34
refs/heads/master
<repo_name>santiram/Projects<file_sep>/MdnRNN.py #here we make the mdn of the rnn las from gym.spaces.box import Box from gym.envs.box2d.car_racing import CarRacing import cv2 cv2.resize(imf,[])<file_sep>/ImageRecognistion1.py #import here everything from PIL import Image import face_recognition import cv2 import os import glob #had make the function for the process evaluation ls def function1(): print("hellow i am here las ") paths="/Users/Anoymous/PycharmProjects/AirtificialIntellegence/movieImageRecognisation/amitab" data_path=os.path.join(paths,"*g") data=glob.glob(data_path) names="Amitab" encoding=[] name=[] for file in data: img=cv2.imread(file) #cv2.imshow("This is the window",img) #datas.append(img) #converting the color of the images las rgb=cv2.cvtColor(img,cv2.COLOR_BGR2RGB) #making the box in the images las box=face_recognition.face_locations(rgb,model="hog") encod=face_recognition.face_encodings(rgb,box) #then appending the all the faces that were appear in the #image las for ad in encod: encoding.append(ad) name.append(names) #after this i ahd to make the dictionary of the all the files and then # i had to just make the buirnon this la dump1={"Encodings":encoding,"Names":name} dump_file=open("/Users/Anoymous/PycharmProjects/AirtificialIntellegence/movieImageRecognisation/Encodings",'wb') import pickle #here dumping the file las # dump_file.write(pickle.dump(dump1)) pickle.dump(dump1,dump_file) dump_file.close() #then after this all the main thijngs starts la pass #here fumnction of the vedio encodings la def vedioShowing(): path="/Users/Anoymous/PycharmProjects/AirtificialIntellegence/movieImageRecognisation/Encodings" # with open(path,'r') as fil: # print(fil.name) # h=fil.read() # print(h) #loading the pickle file import pickle data=pickle.loads(open(path,"rb").read()) print(data["Names"]) #from here open cv work starts loading the vedio and showing the #time period of the vedio path las #path of the vedio paths="/Users/Anoymous/PycharmProjects/AirtificialIntellegence/movieImageRecognisation/vedio.mp4" cap=cv2.VideoCapture(paths) writer=None cv2.namedWindow("This is the window") while cap.isOpened(): ret,frame=cap.read() if ret: rgb=cv2.cvtColor(frame,cv2.COLOR_BGR2RGB) print(ret) #rgb=cv2.resize(frame,720) r=frame.shape[1]/float(rgb.shape[1]) box=face_recognition.face_locations(rgb,model='hog') encod=face_recognition.face_encodings(rgb,box) #then after this we had to store the names of the #the all the values names=[] for encodes in encod: #match the face and then we had to #go for the checking las match=face_recognition.compare_faces(data["Encodings"],encodes) name='Unknown' #after this we had to initilise the all the values for the i and j if True in match: index=[i for (i,j)in enumerate(match)if j] # then after this initilise all the index and then do the same count={} for a in index: name=data['Names'][a] count[name]=count.get(name,0)+1 #here in the above code we store the all the names in the given name las #after this we had to store the max value of the count inthe name l;as name=max(count,key=count.get) names.append(name) #here we append the name to the file las #after this we had to draw the rectangle in this las for ((top,right,bottom,left),namea) in zip(box,names): left=int(left) top=int(top) right=int(right) bottom=int(bottom) #then make the rectangle in the frame cv2.rectangle(frame,(top,right),(bottom,left),(0,255,0),2) #after this find the value of the top and then so that we can display the name las y=top-15 if top-15 >15 else top+15 #after this put the text in this las cv2.putText(frame,namea,(left,y),cv2.FONT_HERSHEY_COMPLEX,0.75,(0,255,0),2) #after this i can show the image in the vedio # cv2.imshow("Frame",frame) if writer is None: fourcc = cv2.VideoWriter_fourcc(*"MP4V") writer = cv2.VideoWriter("/Users/Anoymous/Desktop/Vedio2.mp4", fourcc, 20, (frame.shape[1], frame.shape[0]), True) if writer is not None: writer.write(frame) #cv2.imshow("Frame ",rgb) else: break #then after this i can return all the vedio frames las cv2.destroyAllWindows() cap.release() pass #here define the main function def main(): #function1() vedioShowing() pass #here define calling the miain calss las if __name__=="__main__": main()<file_sep>/kerasImageClassification.py #her we import the all the linbraris las import numpy as np from keras.models import Sequential from keras.layers import Dense,Dropout,Flatten,BatchNormalization,Activation from keras.layers.convolutional import Conv2D,MaxPooling2D from keras.constraints import maxnorm from keras.utils import np_utils #import the datasets las from keras.datasets import cifar10 #here it goęs the function las def function(): (x_train,y_train),(x_test,y_test)=cifar10.load_data() #after this we had to prepropcess the data print("Hey i am printing the datasets las") #print(x_test) #preprocessing the datasets las x_train=x_train.astype('float32') x_test=x_test.astype('float32') x_train=x_train/255.0 x_test=x_test/255.0 print(x_test) print(x_train.shape) #categorical encoding of the datas las #here one image cannot be of the two category hence we had to make the categorical #value las y_train=np_utils.to_categorical(y_train) y_test=np_utils.to_categorical(y_test) classNum=y_test.shape[1] print("THis is the class of the datasets las") print(classNum) print("this is the iputt las") print(x_train.shape[1:]) #first hre create the model and then we do other things la model=Sequential() model.add(Conv2D(32,(3,3),input_shape=x_train.shape[1:],padding="same")) #adding the activation layer las model.add(Activation('relu')) model.add(Dropout(0.2)) model.add(BatchNormalization()) #second convolution layer las model.add(Conv2D(64,(3,3),padding='same')) model.add(Activation('relu')) model.add(MaxPooling2D(pool_size=(2,2))) model.add(Dropout(0.2)) model.add(BatchNormalization()) #here we define the third layer and then w ar fine to go model.add(Conv2D(128,(3,3),padding='same')) model.add(Activation('relu')) model.add(MaxPooling2D(pool_size=(3,3))) model.add(Dropout(0.2)) model.add(BatchNormalization()) #after this flatt th moidel model.add(Flatten()) model.add(Dropout(0.2)) #then finally our convolution is over we have to make th ann here model.add(Dense(256,kernel_constraint=maxnorm(3))) model.add(Activation('relu')) model.add(Dropout(0.2)) model.add(BatchNormalization()) #second neuron construction las model.add(Dense(128,kernel_constraint=maxnorm(3))) model.add(Activation('relu')) model.add(Dropout(0.2)) model.add(BatchNormalization()) #making the last layer las model.add(Dense(classNum)) model.add(Activation('softmax')) #after this we had to compile the model optimizer='adam' model.compile(loss='categorical_crossentropy', optimizer=optimizer, metrics=['accuracy']) #printing the summary of th modle print(model.summary()) #training the model las model.fit(x_train,y_train,validation_data=(x_test,y_test),epochs=20,batch_size=64) #after this evaluate the model las score=model.evaluate(x_test,y_test,verbose=0) print("The score of the final mode is the ") print(score[1]*100) pass #defining the main function ls def main(): function() pass #clalling the main function las if __name__=="__main__": main()<file_sep>/FirstAutoEncoder.py # implementing the cnnvae las import numpy as np import tensorflow as tf class convVAE: hello = 0 def __init__(self, z_size=32, batch_size=1, learninf_rate=0.001, kl_tolrence=0.5, is_training=False, reuse=False, gpu_model=False): # here z_size- is the size of the total images las # batchsize-it is the training batch sizes las # learniung_rate- rate of the learning las # k_ltolrence- tolerence of the or the erreor of the model als # reuse-for using the mdel reuse las self.z_size = z_size self.batch_size = batch_size self.learning_rate = learninf_rate self.kl_tolrence = kl_tolrence self.is_traning = is_training self.reuse = reuse self.gpu = gpu_model # here i didnt had to check for the gpu also las print("the model is running in the cpu mode las") # then after this i had to call the function build graph las self.build_graph() self._init_session() pass # function for building the graph las def build_graph(self): # her first make the graphs for my autoencoder self.g = tf.Graph() with self.g.as_default(): # make the placeholder for the graphs las self.x = tf.placeholder(tf.float32, shape=[None, 64, 64, 3]) # after this build the encoding part las # make the encoding of the convolution layer till the 256 las h = tf.layers.conv2d(self.x, 32, 4, strides=2, activation=tf.nn.relu, name="encconv1") h = tf.layers.conv2d(h, 64, 4, strides=2, activation=tf.nn.relu, name="convll2") h = tf.layers.conv2d(h, 128, 4, strides=2, activation=tf.nn.relu, name="convl3") h = tf.layers.conv2d(h, 256, 4, strides=2, activation=tf.nn.relu, name="convl4") # here finally we successfully created our convolution layer las # after this reshape it to the or simple flatten it las h = tf.reshape(h, [-1, 2 * 2 * 256]) # here tha h is the flatten for the going in the vae and then after this # decoding should be happen las # her mnake the dense layer that is called as the mu and the sigma so that # we can backtrack it la s self.mu = tf.layers.dense(h, self.z_size, name="EncodingDenseL") self.logvar = tf.layers.dense(h, self.z_size, name="LogvarLayer") # after this calculate the sigma las self.sigma = tf.exp(self.logvar / 2.0) # aftetr this make the epsilion matrix of the ramndom values las self.epsillion = tf.random_normal([self.batch_size, self.z_size]) # after this we had to calculate the z la s self.z = self.mu + self.sigma * self.epsillion # here we had make the memoruy of all this la # after this ewe had to build the decodings la s h = tf.layers.dense(self.z, 1024, name="dec_functon ") # after this we had to reshape it las h = tf.reshape(h, [-1, 1, 1, 1024]) h = tf.layers.conv2d_transpose(h, 128, 5, strides=2, activation=tf.nn.relu, name="Inverse_conv") h = tf.layers.conv2d_transpose(h, 64, 5, strides=2, activation=tf.nn.relum, name="Inversre_conv2") h = tf.layers.conv2d_transpose(h, 32, 6, strides=2, activation=tf.nn.relu, name="Inverse_conv3") # after this we had completed the inverse convolution and then after this we had to make the # y that is the output for the cross validation las self.y = tf.layers.conv2d_transpose(h, 3, 6, strides=2, activation=tf.nn.sigmoid, name="OutputFunction ") # then after this we had to validate the data ls # here we implement the training operaion las if self.is_traning: self.global_step = tf.Variable(0, name="global_step", trainable=False) self.rloss = tf.reduce_sum(tf.square(self.x - self.y), reduction_indices=[1, 2, 3]) self.rloss = tf.reduce_mean(self.rloss) # then after this we had to calculate the kl lossla self.kl_loss = 0.5 * tf.reduce_sum((1 + self.logvar - tf.square(self.mu) - tf.exp(self.logvar)), reduction_indices=1) self.kl_loss = tf.maximum(self.kl_loss, self.kl_tolrence * self.z_size) self.kl_loss = tf.reduce_mean(self.kl_loss) # then after this we had to calculate the actual loss las self.loss = self.rloss + self.kl_loss # then after this we had to make the variabls las for the leraning rate las self.lr = tf.Variable(self.learning_rate, trainable=False) # then define the optimiser las self.optimiser = tf.train.AdamOptimizer(self.lr) # then fit the optimiser into the gradient las gradient = self.optimiser.compute_gradients(self.loss) # then make the training variables las self.train_optimiser = self.optimiser.apply_gradients(gradient, global_step=self.global_step, name="CompleteGradient") # after this init the global variables las self.init = tf.global_variables_initializer() pass <file_sep>/StockPricePrediction.py # this project is baisically based on the predictiong the stock price according to the # time series las # it calculate or train the model each time using the last 3 minute data and then # give the prediction of the of the foreward prediction data las # importing utilities # import tensorflow as tf import numpy as np import pandas as pd #import collections from sklearn import preprocessing from collections import deque import random #lets make the rnn deep learning model las from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense,Dropout,LSTM,BatchNormalization from tensorflow.keras.callbacks import TensorBoard from tensorflow.keras.callbacks import ModelCheckpoint import time import matplotlib.pyplot as plt SEQ_LEN = 60 # how long of a preceeding sequence to collect for RNN FUTURE_PERIOD_PREDICT = 3 # how far into the future are we trying to predict? RATIO_TO_PREDICT = "LTC-USD" # then after this we are good to go las def StockPricePrediction(): # first read the sample data ls # data = pd.read_csv( # "/Users/Anoymous/PycharmProjects/AirtificialIntellegence/FinalProjectDeepLearning/crypto_data/BCH-USD.csv", # names=['time', 'low', 'high', 'open', 'close', 'volume']) # print(data.head()) # after this we had to import the all the data from the folder las ratios = ["BTC-USD", "LTC-USD", "BCH-USD", "ETH-USD"] # the 4 ratios we want to consider main_df = pd.DataFrame() # iterate ove all this nd then make the series of the the datasets to the one datasets las for ratio in ratios: ratio = ratio.split('.csv')[0] # split away the ticker from the file-name dataframe = f"/Users/Anoymous/PycharmProjects/AirtificialIntellegence/FinalProjectDeepLearning/crypto_data/{ratio}.csv" df = pd.read_csv(dataframe, names=['time', 'low', 'high', 'open', 'close', 'volume']) # this reads the al the dataframes las # print(f"this is the dataframe of the {ratio}") # then after this main preprocessing of the data starts l;as # after this ranme the closed and the volume df.rename(columns={"close": f"{ratio}_close", "volume": f"{ratio}_volume"}, inplace=True) # make the place for the time index also las df.set_index("time", inplace=True) df = df[[f"{ratio}_close", f"{ratio}_volume"]] # print(df.head()) if len(main_df) == 0: main_df = df else: main_df = main_df.join(df) # after doing this check for the null vals ad th prpro=cssig las main_df.fillna(method="ffill", inplace=True) main_df.dropna(inplace=True) # print("This is the preprocessed data for the main las") # print(main_df.head()) # map the each for the thsi datatype las main_df["future"] = main_df[f"{RATIO_TO_PREDICT}_close"].shift(-FUTURE_PERIOD_PREDICT) main_df["Target"] = list(map(classifty, main_df[f"{RATIO_TO_PREDICT}_close"], main_df['future'])) # after the mapping print the dataframe ls print("This is the some classified dataframe las") # drop all the null values occur las main_df.dropna(inplace=True) print(main_df.head()) # spliting the some slice of the main dataframe las for the future validataion las time = sorted(main_df.index.values) last5_is_the = sorted(main_df.index.values)[-int(0.05 * len(time))] print("this is the time series las") # print(time) print("this is the last5 index of the values las") print(last5_is_the) # create the validation and the main dataframe las validation_data = main_df[(main_df.index >= last5_is_the)] main_df = main_df[(main_df.index < last5_is_the)] print("This is the validaton dataframe las") print(validation_data.head()) print("This is the main dataframe las") print(main_df.head()) # after this main preprocessing of thedataframe to make thetrain and # the test datasets las train_x, trainy = preprocessings(main_df) validarion_x,validation_y=preprocessings(validation_data) #print(train_x) #print(trainy) print("The shape of he train is the") print(train_x.shape[:1]) #lets make the lstm cell for the model las model=Sequential() model.add(LSTM(128, input_shape=(train_x.shape[1:]), return_sequences=True)) #model.add(LSTM(128,input_shape=(train_x.shape[:1]),return_sequences=True)) model.add(Dropout(0.2)) model.add(BatchNormalization()) #add the second layer of the memory las model.add(LSTM(128,return_sequences=True)) model.add(Dropout(0.2)) model.add(BatchNormalization()) #crete the last value las model.add(LSTM(128)) model.add(Dropout(0.2)) model.add(BatchNormalization()) #make the airtificial neural network for the making the neural network las model.add(Dense(32,activation='relu')) model.add(Dropout(0.2)) #make the last output model model.add(Dense(2,activation='softmax')) import tensorflow as tf #lets make the optimisation of the model las opt=tf.train.AdamOptimizer(learning_rate=0.001) #after this lets compile the model las model.compile(loss='sparse_categorical_crossentropy' ,optimizer=opt, metrics=['accuracy']) #until this point we had compile the model las #lets initilise the tensorboard las tensorboard=TensorBoard(log_dir="/Users/Anoymous/PycharmProjects/AirtificialIntellegence/FinalProjectDeepLearning/Tensorboard") #lets train the model las history=model.fit(train_x,trainy, batch_size=60, epochs=25, validation_data=(validarion_x,validation_y), callbacks=[tensorboard]) score=model.evaluate(validarion_x,validation_y,verbose=0) print("test loss is the ",score[0]) print("the test accuracy is the ",score[1]) #saving the trained model las model.save("/Users/Anoymous/PycharmProjects/AirtificialIntellegence/FinalProjectDeepLearning/MyFirst_run") pass # function for preprocessing the datas las def preprocessings(df): print("the datasets passed here ") # here first drop the future column and then train the or preprocessthe other las df = df.drop("future", 1) print(df.head()) # don't need this anymore. for col in df.columns: # go through all of the columns if col != "Target": # normalize all ... except for the target itself! df[col] = df[col].pct_change() # pct change "normalizes" the different currencies (each crypto coin has vastly diff values, we're really more interested in the other coin's movements) df.dropna(inplace=True) # remove the nas created by pct_change df[col] = preprocessing.scale(df[col].values) # scale between 0 and 1. df.dropna(inplace=True) # cleanup again... jic. sequential_data = [] # this is a list that will CONTAIN the sequences prev_days = deque( maxlen=SEQ_LEN) # These will be our actual sequences. They are made with deque, which keeps the maximum length by popping out older values as new ones come in for i in df.values: # iterate over the values prev_days.append([n for n in i[:-1]]) # store all but the target if len(prev_days) == SEQ_LEN: # make sure we have 60 sequences! sequential_data.append([np.array(prev_days), i[-1]]) # append those bad boys! random.shuffle(sequential_data) # shuffle for good measure. buys = [] # list that will store our buy sequences and targets sells = [] # list that will store our sell sequences and targets for seq, target in sequential_data: # iterate over the sequential data if target == 0: # if it's a "not buy" sells.append([seq, target]) # append to sells list elif target == 1: # otherwise if the target is a 1... buys.append([seq, target]) # it's a buy! random.shuffle(buys) # shuffle the buys random.shuffle(sells) # shuffle the sells! lower = min(len(buys), len(sells)) # what's the shorter length? buys = buys[:lower] # make sure both lists are only up to the shortest length. sells = sells[:lower] # make sure both lists are only up to the shortest length. sequential_data = buys + sells # add them together random.shuffle( sequential_data) # another shuffle, so the model doesn't get confused with all 1 class then the other. X = [] y = [] for seq, target in sequential_data: # going over our new sequential data X.append(seq) # X is the sequences y.append(target) # y is the targets/labels (buys vs sell/notbuy) return np.array(X), y # return X and y...and make X a numpy array! # function for classifying the things las def classifty(current, future): if float(current) < float(future): return 1 else: return 0 # defining the main function las def main(): StockPricePrediction() pass # calling the main function las if __name__ == "__main__": main()
90c904a4697273847b53687eab9c9b3221cb62e1
[ "Python" ]
5
Python
santiram/Projects
a3323a7edf55f969344d5ffc511cdc9b286f3c11
74c70b401b56902817571f702127ede9404b44fd
refs/heads/master
<file_sep>// Copyright Mentisoft #pragma once #include "GameFramework/GameMode.h" #include "Menti_TanksGameMode.generated.h" /** * */ UCLASS() class MENTI_TANKS_API AMenti_TanksGameMode : public AGameMode { GENERATED_BODY() }; <file_sep>// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "Components/StaticMeshComponent.h" #include "TankTurret.generated.h" UCLASS(meta = (BlueprintSpawnableComponent), hidecategories = ("Collisions")) class MENTI_TANKS_API UTankTurret : public UStaticMeshComponent { GENERATED_BODY() public: //-1 is downward speed, +1 y forward speed void Rotate(float RelativeSpeed); private: UPROPERTY(EditAnywhere) float MaxDegreesPerSecond = 40; }; <file_sep>// Copyright Mentisoft #include "Menti_Tanks.h" IMPLEMENT_PRIMARY_GAME_MODULE( FDefaultGameModuleImpl, Menti_Tanks, "Menti_Tanks" ); <file_sep>[URL] [/Script/EngineSettings.GameMapsSettings] EditorStartupMap=/Game/Battleground.Battleground GameDefaultMap=/Game/_Levels/MainMenu.MainMenu GlobalDefaultGameMode=/Game/Blueprints/MentiTankGameMode_BP.MentiTankGameMode_BP_C [/Script/HardwareTargeting.HardwareTargetingSettings] TargetedHardwareClass=Desktop AppliedTargetedHardwareClass=Desktop DefaultGraphicsPerformance=Maximum AppliedDefaultGraphicsPerformance=Maximum <file_sep>// Copyright Mentisoft #include "Menti_Tanks.h" #include "Menti_TanksGameMode.h"
5e8f1108d383bbab9b79d7f23f04c7555f23282c
[ "C++", "INI" ]
5
C++
santanor/Menti_Tanks
f01b5c90cac262b5fc40a957708968e1db57bac9
c61c7202d5a5f1169056ad0c41c7a0f26e83110a
refs/heads/master
<file_sep>OPTIONS=(1 "Select Keymap" 2 "Select Editor" 3 "Configure Mirrorlist" 4 "Partition Scheme" 5 "Install Base System" 6 "Configure Fstab" 7 "Configure Hostname" 8 "Configure Timezone" 9 "Configure Hardware Clock" 10 "Configure Locale" 11 "Configure Mkinitcpio" 12 "Install Bootloader" 13 "Root Password" 14 "Done") CHOICE=$(dialog --clear \ --backtitle "ARCHLINUX ULTIMATE INSTALL - https://github.com/helmuthdu/aui" \ --title "Welcome in AUI!" \ --menu "Please select option:" \ 15 45 8 \ "${OPTIONS[@]}" \ 2>&1 >/dev/tty)
f74e1330156c470c518a38b2ae5a56745afe4963
[ "Shell" ]
1
Shell
SamuelTulach/aui
0a79ab4c89a9b95634582708113a9a5b470800dc
0064ee0078d9472b661137db7dbe4196534f6c50
refs/heads/master
<file_sep>package api; public class LuJiang { }
fd78a49805e1f9e18668dfb8232158976bcdd480
[ "Java" ]
1
Java
dyy1023/TestProject
5741a3f84db9c552280bbef3899d479518c5d0c4
d4016876dd7c7613d889c9d1446fa31f519c95f3
refs/heads/master
<repo_name>teledildonics-dev/teledildonics-dev<file_sep>/src/reconcilliation/use-lovense.ts import { Model } from "../lovense/models"; import { VibrationLevel, RotationLevel, Lovense, LovenseDeviceInfo } from "./lovense-abstract"; import { useEffect, useState } from "react"; import { unsafe } from "../common/safety"; type UseLovense = | undefined | { lovense: Lovense; model: Model; id: string; canRotate: true; stop(): Promise<unknown>; vibration: VibrationLevel; setVibration(level: VibrationLevel): Promise<VibrationLevel>; rotation: RotationLevel; setRotation(rotation: RotationLevel): Promise<RotationLevel>; }; export const useLovense = (lovense?: Lovense): UseLovense => { const [info, setInfo] = useState<LovenseDeviceInfo>(); const [canRotate, setCanRotate] = useState(false); useEffect(() => { if (!lovense) { return; } Promise.all([lovense.info(), lovense.canRotate()]).then(([info, canRotate]) => { setInfo(info); setCanRotate(canRotate); }); }, [lovense]); if (!(lovense && info)) { return; } return ({ lovense, model: info.model, id: info.id, canVibrate: true, canRotate: canRotate } as unsafe) as UseLovense; }; <file_sep>/src/common/disposable.ts import { Resolver } from "./async"; export class AsyncDisposable { /// An Resolver that will be resolved once dispose() is called. private disposeStarter = new Resolver(); protected diposeStarted = this.disposeStarter.readonly(); /// An Resolver that will be resolved when dispose() is complete. private disposeCompleter = new Resolver(); protected diposeCompleted = this.disposeCompleter.readonly(); /// Throws an error if dispose() has been called. /// /// Subclasses should consider calling this at the beginning of every public-facing method to assert /// that they're never called after dispose() has been called. protected throwIfDisposeStarted() { if (this.diposeStarted.settled) { throw new DisposedError(this, `dispose() already called on ${this}`); } } /// Throws an error if dispose() has completed. /// /// Subclasses should consider calling this at the beginning of every method (unless /// throwIfDisposeStarted() is called), and after every await in method bodies. protected throwIfDisposeComplete() { if (this.diposeCompleted.settled) { throw new DisposedError(this, `dispose() already completed on ${this}`); } } /// A Promise for the result of a currently-running call to dispose(), /// if one is in progress. private disposal: Promise<void> | undefined; protected async dispose() { this.throwIfDisposeStarted(); this.disposeStarter.resolve(); if (this.disposal) { return this.disposal; } try { await this.onDispose(); } finally { this.disposeCompleter.resolve(); } } /// Dispose of all resources assoicated with this class. /// /// Inteded for subclasses to override if they need extra disposal behaviour. protected async onDispose(): Promise<void> {} } /// Error throw when you attempt to interact with an instance after dispose() was called. export class DisposedError<T> extends Error { constructor(readonly instance: T, message: string = `${instance} already disposed`) { super(message); } } <file_sep>/src/common/events.ts /// Runs a handler function with an ReadableStream that will yield all /// events of the specified type that occur while the handler function /// is running. export const withEventStream = async <EventValue, Result>( target: EventTarget, eventName: string, eventMapper: (event: Event) => EventValue, handler: (responses: ReadableStreamReader<EventValue>) => Result ): Promise<Result> => { let listener: undefined | ((event: Event) => void); const stream = new ReadableStream({ start(controller) { target.addEventListener( eventName, (listener = (event: Event) => { controller.enqueue(eventMapper(event)); }) ); }, cancel() { target.removeEventListener(eventName, listener!); } }); const reader = stream.getReader(); try { return await handler(reader); } finally { reader.releaseLock(); stream.cancel(); } }; <file_sep>/src/reconcilliation/lovense-fake.ts import { Lovense } from "./lovense-abstract"; import { Nora } from "../lovense/models"; import { VibrationLevel, RotationLevel } from "./lovense-abstract"; import { sleep } from "../common/async"; export class LovenseFake extends Lovense { protected async info_() { return { model: Nora, id: "191109" + performance .now() .toString(16) .slice(6) }; } public vibration: VibrationLevel = 0; protected async setVibration_(vibration: VibrationLevel) { await sleep(250); this.vibration = vibration; return vibration; } public rotation: RotationLevel = 0; protected async setRotation_(rotation: RotationLevel) { await sleep(250); this.rotation = rotation; return rotation; } } <file_sep>/src/lovense/models.ts export enum Model { Nora = "Nora", Max = "Max", Lush = "Lush", Hush = "Hush", Domi = "Domi", Edge = "Edge", Osci = "Osci" } export const Nora = Model.Nora; export const Max = Model.Max; export const Lush = Model.Lush; export const Hush = Model.Hush; export const Domi = Model.Domi; export const Edge = Model.Edge; export const Osci = Model.Osci; /// The capabilities of a given Lovense device. export type DeviceCapabilities = { /// Whether this device supports the Vibrate:# command. readonly vibration?: undefined | true; /// Whether this device supports the Rotate:# and RotateChange commands. readonly rotation?: undefined | true; /// Whether this device supports the GetLevel and SetLevel:#:# commands. /// If defined, this will indicate the maximum supported index for SetLevel:#:#. readonly levels?: undefined | 3; /// Whether this device supports the GetPatten, GetPatten:#, and Preset:# commands. /// If defined, this will indicate the maximum supported index for Preset:#. readonly patterns?: undefined | 4 | 10; }; /// The capabilities we expect from each model. /// /// This assumes all generations and firmware versions of a model have the /// same capabilities, which probably isn't always true. export const modelCapabilities = new Map<Model, DeviceCapabilities>([ [ Nora, { vibration: true, rotation: true } ], [ Lush, { vibration: true, patterns: 4 } ], [ Hush, { vibration: true } ], [ Domi, { vibration: true, levels: 3, patterns: 10 } ] ]); /// Maps model identifiers used in DeviceType responses to Models. export const modelsById = new Map<string, Model>([ ["A", Nora], ["C", Nora], ["B", Max], ["S", Lush], ["Z", Hush], ["W", Domi], ["P", Edge], ["O", Osci] ]); <file_sep>/src/common/safety.ts /// Some utility functions to help manage types safely. /// Ensures a condition is truthy, or throws. export function assert(condition: unknown, message: string = "assertion failed") { // TODO: use `: asserts condition` above once babel/whatever can support it if (condition === false || condition === null || condition === undefined) { throw new Error(message); } return true; } /// Ensures a value is not undefined and return it, or throws. export const unwrap = <T>( value: T | undefined, message: string = "unwrapped void value" ): T => { if (value === undefined) { throw new Error(message); } return value; }; /// Returns the first item from an array or undefined. export const first = <T>(values: Array<T>): T | undefined => { return values[0]; }; /// Returns the only item in an array, or throws if are zero or more than one items. export const only = <T>(values: Array<T>): T => { assert(values.length === 1, "expected array to only have one value"); return values[0]; }; /// Throws an Error if one is provided. export const throwIf = (error: Error | null) => { // TODO: use `: asserts error is null` above once babel/whatever can support it if (error) { throw error; } }; /// Make it clearer. export type unsafe = any; /// A very basic async lock using a queue. Not premptible. export class Lock implements AsyncDestroy { private tail: Promise<unknown> = Promise.resolve(); private destruction: Promise<Error> | null = null; async use<T>(callback: () => Promise<T>): Promise<T> { const result = this.tail.then(() => callback()); // We don't want exceptions to poison the lock. this.tail = this.tail.then(() => result.catch(() => {})); return result; } /// Poisons the lock. If the lock is currently held, this will wait until /// it's released, but will prempt any other uses that are pending. async destroy(): Promise<Error> { if (!this.destruction) { this.destruction = new Promise(async resolve => { try { await this.tail; } catch (error) { return resolve(error); } return resolve(new Error("Lock destroyed")); }); } return this.destruction; } } export interface AsyncDestroy { destroy(error?: Error): Promise<Error>; } export const freeze = Object.freeze; export const unreachable = () => { throw new UnreachableError('this "can\'t" happen'); }; export class UnreachableError extends Error {} <file_sep>/src/lovense/lovense.ts /// Allows Lovense devices to be controlled with WebBluetooth. /// /// See protocol documentation at /// https://stpihkal.docs.buttplug.io/hardware/lovense.html. import { assert, first, unwrap, only, unsafe, Lock, AsyncDestroy } from "../common/safety"; import utf8 from "../common/utf8"; import { withEventStream } from "../common/events"; import { addTimeout, sleep } from "../common/async"; import { Model, modelsById, modelCapabilities, DeviceCapabilities } from "./models"; type EventType = "connect" | "disconnect"; export default class Lovense implements AsyncDestroy { // TODO: this generic opaque lock might not be a useful abstraction here // we might want a request queue that's visible to this class /// A lock used to serialize all Bluetooth calls, since the protocol isn't concurrency-safe. private lock: Lock = new Lock(); /// Returns an Promise<Error> if this instance is being or has been destroyed, else null. private destroyed: Promise<Error> | null = null; /// A promise for the result of an active connection attempt if one is in progress, /// or undefined if we're disconnected and aren't currently tying to conect. private connected: undefined | Promise<void>; /// The number of times we have attempted to connect. private connectionCount: number = 0; private device: BluetoothDevice; private server: BluetoothRemoteGATTServer; /// Safety: these must only be accessed after we've connected (which initializes them). private service: BluetoothRemoteGATTService = undefined as unsafe; private characteristics: BluetoothRemoteGATTCharacteristic[] = undefined as unsafe; private transmitter: BluetoothRemoteGATTCharacteristic = undefined as unsafe; private receiver: BluetoothRemoteGATTCharacteristic = undefined as unsafe; /// Maximum of time to wait for a response before we mark a call as failed. private callTimeout: number = 4000; /// Safari doesn't support new EventTarget. private eventTarget: EventTarget = document.createElement("teledildonics-EventTarget"); public constructor(device: BluetoothDevice) { this.device = device; this.server = unwrap(device.gatt, "Bluetooth device did not support GATT"); this.connected = undefined; } deviceName() { return this.device.name || this.device.id; } private logPrefix(): string { return `${this.deviceName() .slice(0, 10) .padStart(10)}:`; } public addEventListener(type: EventType, listener: (event: unknown) => void): unknown { return this.eventTarget.addEventListener(type, listener); } public removeEventListener(type: EventType, listener: (event: unknown) => void): unknown { return this.removeEventListener(type, listener); } /// Connects to the device if not already connected. public async connect(): Promise<void> { if (this.destroyed) { throw await this.destroyed; } if (this.connected) { return this.connected; } console.info(this.logPrefix(), "Connecting."); this.connectionCount += 1; this.connected = addTimeout( (async () => { await this.server.connect(); if (this.destroyed) { throw await this.destroyed; } const onMessage = (event: { target: { value: DataView } }) => { assert(event && event.target && event.target.value instanceof DataView); const binary: DataView = event.target.value; const s = utf8.decode(binary); console.info( `${this.logPrefix()} got %c${s}`, "color: #131; font-weight: bold; border: 1px solid #131; padding: 2px 6px; background: #EEE;" ); }; const onDisconnected = () => { console.info(this.logPrefix(), "Disconnected."); this.connected = undefined; this.device.removeEventListener("gattserverdisconnected", onDisconnected); if (this.receiver) { this.receiver.removeEventListener( "characteristicvaluechanged", onMessage as unsafe ); } this.eventTarget.dispatchEvent(new Event("disconnect")); }; this.device.addEventListener("gattserverdisconnected", onDisconnected); this.service = only(await this.server.getPrimaryServices()); this.characteristics = await this.service.getCharacteristics(); this.transmitter = only(this.characteristics.filter(c => c.properties.write)); this.receiver = only(this.characteristics.filter(c => !c.properties.write)); this.receiver.addEventListener("characteristicvaluechanged", onMessage as unsafe); await this.receiver.startNotifications(); this.eventTarget.dispatchEvent(new Event("connect")); if (this.destroyed) { throw await this.destroyed; } })(), 6000, new Error("Initial connection to Lovense timed out") ); this.connected.catch(() => { this.connected = undefined; }); return this.connected; } /// Disconnects from the device if connected. public async disconnect(): Promise<void> { if (this.connected) { try { await this.connected; } catch (error) { return; } } console.info(this.logPrefix(), "Disconnecting"); await this.server.disconnect(); } /// Runs a callback after ensure we're connected, and retries if it throws /// an error but the connection was lost. private async connectAndRetry<T>(f: () => T): Promise<T> { while (true) { while (true) { if (this.destroyed) { throw await this.destroyed; } try { await this.connect(); break; } catch (error) { console.error(this.logPrefix(), "Failed to connect", error); await sleep(500); continue; } } const connectionCount = this.connectionCount; try { return f(); } catch (error) { if (this.connected === undefined || this.connectionCount > connectionCount) { console.warn( this.logPrefix(), "disconnected then", error, "was thrown. Retrying in 1s." ); await sleep(500); await this.connect(); continue; } else { console.error( this.logPrefix(), "didn't disconnnect but command still failed. Retrying in 10s.", error ); await sleep(10000); continue; } } } } /// Cleans up all resources assocaited with this instance, disconnects, and makes it unusable. public async destroy(error: Error = new Error("Lovense::destroy()ed")): Promise<Error> { if (!this.destroyed) { this.destroyed = (async () => { try { // Let any commands that are already called complete, but destroy the rest. try { await this.lock.use(async () => { throw new Error("Lovense instance destroyed"); }); } catch (_) {} await this.disconnect(); this.device = null as unsafe; this.server = null as unsafe; this.transmitter = null as unsafe; this.receiver = null as unsafe; } finally { return error; } })(); } return this.destroyed; } public async call<Result>( request: string, handler: (responses: ReadableStreamReader<string>) => Promise<Result>, timeout: number | undefined = this.callTimeout ): Promise<Result> { if (this.destroyed) { throw await this.destroyed; } if (handler === undefined) { // Only for convenience during debugging, since the static type signature requires a handler. console.warn(this.logPrefix(), "call() handler was null"); handler = (async () => {}) as unsafe; } return this.lock.use(async () => this.connectAndRetry(() => { let result = withEventStream( this.receiver, "characteristicvaluechanged", (event: unsafe) => { assert(event && event.target && event.target.value instanceof DataView); const binary: DataView = event.target.value; return utf8.decode(binary); }, async responses => { console.info( `${this.logPrefix()} sent %c${request}`, "color: purple; font-weight: bold; border: 1px solid purple; padding: 2px 6px; background: #EEE;" ); await this.transmitter.writeValue(utf8.encode(request)); return await handler(responses); } ); if (timeout !== undefined) { result = addTimeout(result, timeout); } return result; }) ); } /// The DeviceType response never changes, so we can cache it as soon as we have it. private cachedInfo: undefined | LovenseDeviceInfo = undefined; /// Returns information about the device public async info(): Promise<LovenseDeviceInfo> { if (this.cachedInfo) { return this.cachedInfo; } return this.call("DeviceType;", async responses => { const { value } = await responses.read(); const [id, firmware, serial] = value.slice(0, -1).split(":"); const model = unwrap(modelsById.get(id)); const capabilities = unwrap(modelCapabilities.get(model)); this.cachedInfo = { id, model, firmware: Number(firmware), capabilities, serial }; return this.cachedInfo; }); } /// Returns the battery level as a value between 0.0 and 1.0. public async battery(): Promise<number> { const value = await this.call("Battery;", async responses => { const { value } = await responses.read(); return value; }); let body = unwrap(first(value.split(";"))); if (body[0] === "s") { console.warn( this.logPrefix(), "Got `s` prefix in battery value. Not sure why this happens." ); // This seems to be what happens if you request the battery level while it's currently vibrating. // Maybe it's the way you check if it's active, so you know if you need to stop it? body = body.slice(1); } const level = Number(body); if (!(Number.isSafeInteger(level) && 0 <= level && level <= 100)) { throw new Error("Battery should be integer from 0-100."); } return level / 100.0; } /// Returns the production batch date of this device. public async batch(): Promise<number> { return this.call("GetBatch;", async responses => { const { value } = await responses.read(); return Number(unwrap(first(value.split(/[;,]/)))); }); } /// Set the vibration level to a value between 0.0 and 1.0. public async vibrate(power: number): Promise<void> { if (!(0 <= power && power <= 1.0)) { throw new Error("Power must be from 0.0-1.0."); } const level = Math.round(power * 20.0); if (!(Number.isSafeInteger(level) && 0 <= level && level <= 20)) { throw new Error("Level must be integer from 0-20."); } return this.call(`Vibrate:${level};`, async responses => { const { value } = await responses.read(); assert(value === "OK;", "Unexpected response to Vibrate command."); }); } /// Set the rotation level to a value between -1.0 (anticlockwise) and +1.0 (clockwise). public async rotate(power: number): Promise<void> { if (!(-1.0 <= power && power <= 1.0)) { throw new Error("Power must be from -1.0 to +1.0."); } let command; if (power > 0) { command = "Rotate:True"; } else if (power < 0) { command = "Rotate:False"; } else { command = "Rotate"; } const level = Math.round(Math.abs(power * 20.0)); if (!(Number.isSafeInteger(level) && 0 <= level && level <= 20)) { throw new Error("Level must be integer from 0-20."); } return this.call(`${command}:${level};`, async responses => { const { value } = await responses.read(); assert(value === "OK;", "Unexpected response to Rotate command."); }); } /// Return a pattern currently set on the device. /// /// The result is an array of values between 0.0 and 1.0, each indicating the /// target power level for half of a second. private async getPattern(index: number): Promise<Array<number>> { return this.call( `GetPatten:${index};`, async responses => { const powers = []; while (true) { const { value } = await responses.read(); if (value === "ER;") { throw new Error("Got Error response from device."); } assert( /^P[0-9]:[0-9]{1,2}\/[0-9]{1,2}:[0-9]+;$/.test(value), "Unexpected response to GetPatten:#" ); const body = unwrap(first(value.split(";"))); const [tag, part, levels] = body.split(/:/g); assert(tag === `P${index}`, "Got pattern response for wrong index!"); const [partIndex, partCount] = part.split("/"); powers.push(...[...levels].map(digit => Number(digit) / 9.0)); if (partIndex === partCount) { break; } } return powers; }, this.callTimeout * 10 ); } /// Return all patterns currently set on the device. /// /// The result is an array of arrays of values between 0.0 and 1.0, /// each indicating the target power level for half of a second. public async patterns(): Promise<Array<Array<number>>> { const response = await this.call(`GetPatten;`, async responses => { const { value } = await responses.read(); return value; }); assert(/^P:0?1?2?3?4?5?6?7?8?9?;$/.test(response), "Unexpected response to GetPatten"); const indices = unwrap(first(response.slice(2).split(";"))); const patterns = []; for (const index of indices) { patterns.push(await this.getPattern(Number(index))); } return patterns; } /// Starts running a programmed pattern on loop. /// /// public async startPattern(index: number): Promise<void> { return this.call(`Preset:${index};`, async responses => { const { value } = await responses.read(); assert(value === "OK;", "Unexpected response to preset command."); }); } /// Stops all activity on the device. public async stop(): Promise<void> { const { capabilities } = await this.info(); if (capabilities.vibration) { await this.vibrate(0); } if (capabilities.rotation) { await this.rotate(0); } } } /// The information we get or derive from the DeviceType call. export type LovenseDeviceInfo = { id: string; model: Model; capabilities: DeviceCapabilities; firmware: number; serial: string; }; /// WebBluetooth device profile covering all Lovense devices and services. export const deviceProfile = { filters: [{ namePrefix: "LVS-" }], optionalServices: [ "0000fff0-0000-1000-8000-00805f9b34fb", "6e400001-b5a3-f393-e0a9-e50e24dcca9e", ...[..."45"] .map(a => [..."0123456789abcdef"].map(b => [..."34"].map(c => `${a}${b}300001-002${c}-4bd4-bbd5-a6920e4c5653`) ) ) .flat(3) ] }; <file_sep>/src/hooks/throttle.ts import { useState, useEffect, useRef } from "react"; import { sleep } from "../common/async"; export const useThrottledChanges = <T extends unknown>(interval: number, value: T) => { /// Whether this value is currently throttled, meaning that the value has /// changed within the last interval ms. If throttled == true, there will be /// an async function, which will set throttled to false once the interval has /// elapsed, and check if the target value has changed and needs to be updated, /// which would reset the throttle. const throttled = useRef<boolean>(false); /// The throttled value we are outputting. const [throttledValue, setThrottledValue] = useState<T>(value); /// A shared state storing the latest input value, which may not yet be /// reflected to the output throttledValue if we're throttled. const targetValue = useRef<T>(value); useEffect(() => { targetValue.current = value; if (!throttled.current) { throttled.current = true; setThrottledValue(value); const checkAsync = async (initialValue: T) => { await sleep(interval); const latestTargetValue = targetValue.current; if (initialValue !== latestTargetValue) { setThrottledValue(latestTargetValue); checkAsync(latestTargetValue); } else { throttled.current = false; } }; checkAsync(value); } // eslint-disable-next-line react-hooks/exhaustive-deps }, [value]); return throttledValue; }; <file_sep>/src/hooks/lovense.ts import Lovense from "../lovense/lovense"; import { useState, useEffect } from "react"; export const useLovense = ( device: BluetoothDevice, onConnect?: (_: Lovense) => void, onDisconnect?: (_: Lovense) => void ): Lovense | null => { const [lovense, setState] = useState(); useEffect(() => { const lovense = new Lovense(device); if (onConnect) { lovense.addEventListener("connect", () => { onConnect(lovense); }); } if (onDisconnect) { lovense.addEventListener("disconnect", () => { onDisconnect(lovense); }); } setState(lovense); return () => { (async () => { lovense.stop().catch(error => { console.error("Error from stop command while cleaning up useLovense():", error); }); await lovense.disconnect(); await lovense.destroy(); })(); }; }, [device, onConnect, onDisconnect]); return lovense; }; <file_sep>/src/reconcilliation/lovense-abstract.ts import { Model, Nora } from "../lovense/models"; import { AsyncDisposable } from "../common/disposable"; /// The information we get or derive from the DeviceType call. export type LovenseDeviceInfo = { /// Which Lovense model is this device? /// This does not specify the generation/revision. model: Model; /// A string ID uniquely identifying this device. /// Includes its production batch date and its Bluetooth MAC address. id: string; }; // Supersceded~! export abstract class Lovense extends AsyncDisposable { /// Returns metadata about this device. Immutable, so, memoized. async info(): Promise<LovenseDeviceInfo> { if (!this.cachedInfo) { this.cachedInfo = this.info_(); } return this.cachedInfo; } private cachedInfo: Promise<LovenseDeviceInfo> | undefined; protected abstract async info_(): Promise<LovenseDeviceInfo>; /// The device's current vibration level, or undefined if unknown. abstract vibration: VibrationLevel; async setVibration(vibration: VibrationLevel): Promise<VibrationLevel> { this.throwIfDisposeStarted(); return this.setVibration_(vibration); } protected abstract async setVibration_( vibration: VibrationLevel ): Promise<VibrationLevel>; /// Whether this device is capable of rotation or not. async canRotate() { const { model } = await this.info(); return model === Nora; } /// The device's current rotation level and direction, or undefined if unknown. /// /// Throws an error if the device does not support rotation. abstract rotation: RotationLevel; async setRotation(rotation: RotationLevel): Promise<RotationLevel> { if (!(await this.canRotate())) { throw new Error(`This device does not support rotation. Try .canRotate().`); } this.throwIfDisposeStarted(); return this.setRotation_(rotation); } protected abstract async setRotation_(rotation: RotationLevel): Promise<RotationLevel>; async stop(): Promise<unknown> { this.throwIfDisposeStarted(); return Promise.all([this.setVibration_(0), this.setRotation_(0)]); } protected async onDispose() { await Promise.all([this.setVibration_(0), this.setRotation_(0)]); } } export function isRotationLevel(n: number): n is RotationLevel { return Number.isFinite(n) && -20 <= n && n <= +20; } /// A rotation level with direction indicated by sign. /// Positive values are clockwise, negative values are anticlockwise. export type RotationLevel = | (-20 | -19 | -18 | -17 | -16 | -15 | -14 | -13 | -12 | -11) | (-10 | -9 | -8 | -7 | -6 | -5 | -4 | -3 | -2 | -1) | (0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10) | (11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20); export function isVibrationLevel(n: number): n is VibrationLevel { return Number.isFinite(n) && -20 <= n && n <= +20; } /// Vibration levels. export type VibrationLevel = | (0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10) | (11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20); <file_sep>/src/reconcilliation/brainstorm.ts /* import { AsyncDisposable } from "../common/disposable"; // Trying a different approach. export {}; type DeviceState = | { connected: false; vibration: undefined; rotation: undefined; } | { connected: unknown; vibration: undefined | VibrationLevel; rotation: undefined | RotationLevel; }; type TargetState = | { connected: false; vibration: undefined; rotation: undefined; } | { connected: true; vibration: VibrationLevel; rotation: RotationLevel; }; /// The public interface exposed by Lovense. abstract class LovenseInterface extends AsyncDisposable { // The device's current vibration level, or undefined if unknown. abstract vibration: undefined | VibrationLevel; abstract async setVibration(vibration: VibrationLevel): Promise<VibrationLevel>; /// The device's current rotation level and direction, or undefined if unknown. abstract rotation: undefined | RotationLevel; abstract async setRotation(rotation: RotationLevel): Promise<RotationLevel>; async stop(): Promise<unknown> { return Promise.all([this.setVibration(0), this.setRotation(0)]); } } export class Lovense extends LovenseInterface {} import { unwrap, unreachable, unsafe } from "../common/safety"; import { sleep, addTimeout } from "../common/async"; import { AsyncDisposable } from "../common/disposable"; abstract class State<T> { private nextChangeListeners: Array<(_event: unknown) => unknown> = []; private addEventListener(_name: "change", listener: (_events: unknown) => void, _options: {once: true}) { this.nextChangeListeners.push(listener); } public constructor(public initial: T) { } } export class Lovense extends AsyncDisposable { // === Static Properties private readonly device: BluetoothDevice; private readonly server: BluetoothRemoteGATTServer; private transmitter: BluetoothRemoteGATTCharacteristic = undefined as unsafe; private receiver: BluetoothRemoteGATTCharacteristic = undefined as unsafe; const nextVibration: Promise<void>; async vibration() { nextVib await lock(); if } constructor(device: BluetoothDevice) { super(); this.device = device; this.server = unwrap(device.gatt); this.device.addEventListener("gattserverdisconnected", this.onDisconnect); } // === State Management /// How fast is the device vibrating? public get vibration() { return this.actualVibration; } /// How fast is the device vibrating? private actualVibration: Unknown | VibrationLevel = Unknown; /// How fast do we want the device to be vibrating? private targetVibration: VibrationLevel = Off; /// Are we connected to the device? public get connected() { return this.actualConnected; } /// Are we connected to the device? private actualConnected: boolean = false; /// Do we want to be connected to the device? private targetConnected: boolean = false; /// Whether the current actual and target states are the same. private isReconciled(): boolean { return !( this.actualConnected === this.targetConnected && this.actualVibration === this.targetVibration ); } /// A Promise for the result of a currently-running call to reconcile(), /// if one is in progress. private activeReconciliation: Promise<void> | undefined; /// Attempt to transition actual states to target states. private async reconcile() { if (this.activeReconciliation) { return this.activeReconciliation; } try { this.activeReconciliation = this.doReconcile(); return await this.activeReconciliation; } finally { this.activeReconciliation = undefined; } } /// Implementation of reconcile(). /// /// Safety: only one instance of this method may be running concurrently. private async doReconcile() { this.throwIfDisposeComplete(); if (this.activeReconciliation) { return this.activeReconciliation; } if (this.isReconciled()) { return; } try { /// First we try to reconcile disconnected => connected, because we can't /// get anything else done until we're connected. if (this.targetConnected === true && this.actualConnected === false) { const connectionTimeout = 4000; await addTimeout(this.server.connect(), connectionTimeout); this.onConnect(); } if (this.targetConnected && !this.actualConnected) { await this.server.disconnect(); this.throwIfDisposeComplete(); this.actualConnected = false; } if (this.targetConnected) { } } catch (error) { console.warn("Error during reconciliation.", error); await sleep(500); this.throwIfDisposeComplete(); } if (!this.isReconciled()) { // The target states must have changed in the meanwhile. Try again. await this.reconcile(); } } private onDisconnect() { this.actualConnected = false; this.actualVibration = Unknown; this.reconcile(); } private onConnect() { this.actualConnected = true; this.reconcile(); } // === Disposable Implementation async doDispose() { await this.doVibrate(0); await this.doDisconnect(); } // === Public Interface Implementations // // These implementations are private because they can be called during disposal, // while actually public wrappers we expose below can not. /// Implementation of connect(). private async doConnect(): Promise<void> { this.throwIfDisposeComplete(); this.targetConnected = true; await this.reconcile; this.throwIfDisposeComplete(); } /// Implementation of disconnect(). private async doDisconnect(): Promise<void> { this.throwIfDisposeComplete(); this.targetConnected = false; await this.reconcile; //// XXX: but this waits for everything to be reconciled, not just this state! this.throwIfDisposeComplete(); } /// Implementation of vibrate(). private async doVibrate(target: VibrationLevel): Promise<VibrationLevel> { this.throwIfDisposeComplete(); this.targetConnected = true; this.targetVibration = target; await this.reconcile; this.throwIfDisposeComplete(); if (this.actualVibration !== Unknown) { return this.actualVibration; } else { // After the first reconciliation it shouldn't be possible for actualVibration to be // Unknown. throw unreachable(); } } // === Public Interface Exposed /// Connects to the device. private async connect(): Promise<void> { this.throwIfDisposeStarted(); return this.doConnect(); } /// Disconnects from the device. private async disconnect(): Promise<void> { this.throwIfDisposeStarted(); return this.doDisconnect(); } /// Sets the device's vibration vibration. /// /// If another .vibrate() call is made before this command is sent to the, device, this /// command will be skipped. The result of this function will reflect the final vibration /// that was actually set. private async vibrate(target: VibrationLevel): Promise<VibrationLevel> { this.throwIfDisposeStarted(); return this.vibrate(target); } } export type Unknown = "unknown"; export const Unknown: Unknown = "unknown"; export const Off = 0; export function isRotationLevel(n: number): n is RotationLevel { return Number.isFinite(n) && -20 <= n && n <= +20; } export type RotationLevel = | (-20 | -19 | -18 | -17 | -16 | -15 | -14 | -13 | -12 | -11) | (-10 | -9 | -8 | -7 | -6 | -5 | -4 | -3 | -2 | -1) | (0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10) | (11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20); export function isVibrationLevel(n: number): n is RotationLevel { return Number.isFinite(n) && -20 <= n && n <= +20; } export type VibrationLevel = | (0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10) | (11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20); */ export {}; <file_sep>/src/common/async.ts import { unsafe } from "./safety"; export const sleep = async (ms: number) => { await new Promise(resolve => setTimeout(resolve, ms)); }; export const addTimeout = async <T>( value: Promise<T>, timeout: number, error: Error = new TimeoutError(`Timed out (${timeout} ms)`) ) => { return Promise.race([value, sleep(timeout).then(() => Promise.reject(error))]); }; export class TimeoutError extends Error {} /// A Promise with its resolve() and reject() callbacks made public and /// its status (but not value) synchronously available as .settled. /// /// If no type is specified this defaults to void for use as a signal. export class Resolver<T = void> implements PromiseLike<T> { constructor( public readonly promise: Promise<T> = new Promise((resolve, reject) => { this.resolve_ = resolve; this.reject_ = reject; }) ) { this.then( _value => { this.settled_ = "resolved"; }, _error => { this.settled_ = "rejected"; } ); } public then<TResult1 = T, TResult2 = never>( onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null ): PromiseLike<TResult1 | TResult2> { return this.promise.then(onfulfilled, onrejected); } private settled_: false | "resolved" | "rejected" = false; public get settled() { return this.settled_; } private resolve_: (value: T) => unknown = undefined as unsafe; public get resolve() { return this.resolve_; } private reject_: (value: Error) => unknown = undefined as unsafe; public get reject() { return this.reject_; } /// Type-only transformation limiting to read-only interfaces. public readonly(): ReadonlyResolver<T> { return this; } } export type ReadonlyResolver<T = void> = Resolver<T> & ( | Promise<T> | { readonly settled: any; readonly promise: any; }); <file_sep>/src/common/utf8.ts const utf8Encoder = new TextEncoder(); const utf8Decoder = new TextDecoder(); const utf8 = { encode(s: string): Uint8Array { return utf8Encoder.encode(s); }, decode(b: DataView): string { return utf8Decoder.decode(b); } }; export default utf8; <file_sep>/src/components/styles/styles.ts import { CSSProperties } from "react"; export const box: CSSProperties = {}; export const row: CSSProperties = { display: "flex", alignItems: "center", justifyContent: "start", flexDirection: "row" }; export const column: CSSProperties = { display: "flex", alignItems: "center", justifyContent: "start", flexDirection: "row" }; <file_sep>/src/reconcilliation/lovense-device.ts import { LovenseFake } from "./lovense-fake"; /// Indicates that an operation did not suceed or fail, but was superseded and replaced by /// a subsequent operation which did then suceed. export type superseded = "superseded"; export const superseded: superseded = "superseded"; export class LovenseDevice extends LovenseFake { private device: BluetoothDevice; constructor(device: BluetoothDevice) { super(); this.device = device; } }
fa3e1c44baa29e029f06942bcb0f8b2522086530
[ "TypeScript" ]
15
TypeScript
teledildonics-dev/teledildonics-dev
ede95cf523cb863f94e84ea5a9bd6942d15bf800
1fff68dd6b32bea2430f1f289ea77a05e772e9af
refs/heads/master
<file_sep># -*- coding: utf-8 -*- from django.contrib.auth.decorators import login_required from django.core.urlresolvers import reverse_lazy from django.utils.decorators import method_decorator from django.views.generic.edit import CreateView, DeleteView, UpdateView from django.views.generic.list import ListView from models import Post, Subscribe class AuthMixin(object): @method_decorator(login_required) def dispatch(self, *args, **kwargs): return super(AuthMixin, self).dispatch(*args, **kwargs) class Feed(AuthMixin, ListView): model = Post ordering = '-created' def get_queryset(self): # TODO: optimize authors = set([o.author for o in Subscribe.objects.filter( reader=self.request.user)]) return Post.objects.filter(author__in=authors) class PostCreate(AuthMixin, CreateView): success_url = reverse_lazy('blog-index') model = Post fields = ['title', 'body'] def form_valid(self, form): form.instance.author = self.request.user return super(PostCreate, self).form_valid(form) class SubscribeCreate(AuthMixin, CreateView): success_url = reverse_lazy('blog-index') model = Subscribe fields = ['author', ] def form_valid(self, form): form.instance.reader = self.request.user return super(SubscribeCreate, self).form_valid(form) class Unsubscribe(AuthMixin, DeleteView): success_url = reverse_lazy('blog-index') model = Subscribe def get_object(self): return Subscribe.objects.get( author=self.kwargs.get('author_pk', None), reader=self.request.user, ) class MarkPostAsRead(AuthMixin, UpdateView): success_url = reverse_lazy('blog-index') model = Post fields = [] def form_valid(self, form): form.instance.reads.add(self.request.user) return super(MarkPostAsRead, self).form_valid(form) <file_sep># -*- coding: utf-8 -*- from django.conf.urls import url from views import ( PostCreate, SubscribeCreate, Feed, Unsubscribe, MarkPostAsRead, ) urlpatterns = [ url(r'^$', Feed.as_view(), name='blog-index'), url(r'^add/post/$', PostCreate.as_view(), name='post-add'), url(r'^add/subscribe/$', SubscribeCreate.as_view(), name='subscribe-add'), url(r'^unsubscribe/(?P<author_pk>\d+)/$', Unsubscribe.as_view(), name='unsubscribe'), url(r'^mark/post/as/read/(?P<pk>\d+)/$', MarkPostAsRead.as_view(), name='mark-post-as-read'), ] <file_sep># -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Post', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('title', models.CharField(max_length=128, verbose_name='\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a')), ('body', models.TextField(verbose_name='\u0422\u0435\u043a\u0441\u0442 \u0437\u0430\u043f\u0438\u0441\u0438')), ('created', models.DateTimeField(auto_now_add=True, verbose_name='\u0414\u0430\u0442\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f')), ('author', models.ForeignKey(verbose_name='\u0410\u0432\u0442\u043e\u0440', to=settings.AUTH_USER_MODEL)), ('reads', models.ManyToManyField(related_name='post_reader', verbose_name='\u041a\u0442\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043b', to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['-created'], 'verbose_name': '\u0417\u0430\u043f\u0438\u0441\u044c', 'verbose_name_plural': '\u0417\u0430\u043f\u0438\u0441\u0438', }, ), migrations.CreateModel( name='Subscribe', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('date_joined', models.DateField(auto_now_add=True, verbose_name='\u0414\u0430\u0442\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f')), ('author', models.ForeignKey(related_name='author', verbose_name='\u0410\u0432\u0442\u043e\u0440', to=settings.AUTH_USER_MODEL)), ('reader', models.ForeignKey(related_name='reader', verbose_name='\u0427\u0438\u0442\u0430\u0442\u0435\u043b\u044c', to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['-date_joined'], 'verbose_name': '\u041f\u043e\u0434\u043f\u0438\u0441\u043a\u0430', 'verbose_name_plural': '\u041f\u043e\u0434\u043f\u0438\u0441\u043a\u0438', }, ), ] <file_sep># dev-hub-test-task DevHub test task <file_sep>{% extends "base.html" %} {% load i18n %} {% block content %} <ul> <li><a href="{% url 'post-add' %}">{% trans "Добавить запись" %}</a></li> <li><a href="{% url 'subscribe-add' %}">{% trans "Подписаться" %}</a></li> </ul> <h1>{% trans "Моя лента" %}</h1> <ul> {% for post in object_list %} <li>{{ post.created|date }} - {{ post.author }} - {{ post.title }}</li> <p><form action="{% url 'unsubscribe' author_pk=post.author.pk %}" method="post">{% csrf_token %} <input type="submit" value="{% trans "Отписаться" %}" /> </form></p> <p>{{ post.body }}</p> <p><form action="{% url 'mark-post-as-read' pk=post.pk %}" method="post">{% csrf_token %} <input type="submit" value="{% trans "Пометить как прочитанное" %}" /> </form></p> {% empty %} <li>{% trans "Лента пуста. Подпишитесь на кого-нибудь" %}</li> {% endfor %} </ul> {% endblock %}<file_sep># -*- coding: utf-8 -*- from django.db import models from django.contrib.auth.models import User from django.utils.translation import ugettext_lazy as _ from django.db.models.signals import post_save from django.dispatch import receiver from django.core.mail import send_mail class Post(models.Model): author = models.ForeignKey(User, verbose_name=_(u'Автор')) title = models.CharField(_(u'Заголовок'), max_length=128) body = models.TextField(_(u'Текст записи')) created = models.DateTimeField(_(u'Дата добавления'), auto_now_add=True) reads = models.ManyToManyField( User, related_name='post_reader', verbose_name=_(u'Кто прочитал'), blank=True, ) def __unicode__(self): return '%s: %s: %s' % ( self.author, self.created, self.title, ) class Meta: ordering = ['-created'] verbose_name = _(u'Запись') verbose_name_plural = _(u'Записи') class Subscribe(models.Model): author = models.ForeignKey( User, related_name='author', verbose_name=_(u'Автор')) reader = models.ForeignKey( User, related_name='reader', verbose_name=_(u'Читатель')) date_joined = models.DateField(_(u'Дата добавления'), auto_now_add=True) def __unicode__(self): return '%s reads %s since %s' % ( self.reader, self.author, self.date_joined, ) class Meta: unique_together = ('author', 'reader', ) ordering = ['-date_joined'] verbose_name = _(u'Подписка') verbose_name_plural = _(u'Подписки') @receiver(post_save, sender=Post) def create_post_handler(sender, **kwargs): if kwargs.get('created', False): post = kwargs['instance'] readers = set([o.reader for o in Subscribe.objects.filter( author=post.author)]) for o in readers: send_mail( _(u'Новая публикация'), unicode(post), 'noreply@', [o.email], fail_silently=False, )
8fbc474c6638b038ca04beddfd5b8addec598870
[ "Markdown", "Python", "HTML" ]
6
Python
rombr/dev-hub-test-task
978bdc8cc28c002177a6bf02e6a90453f873bec8
3f3d55359d8b31c3ad4eddfff66caf8c7d89925e
refs/heads/main
<file_sep>IF (SELECT COUNT(*) FROM dbo.syscolumns WHERE name IN ('PartnerD') AND ID = OBJECT_ID('tlgBPMTaskInfo') ) = 0 BEGIN print 'column already correct' END ELSE BEGIN exec sp_RENAME 'tlgBPMTaskInfo.PartnerD' , 'PartnerId', 'COLUMN'; END<file_sep>UPDATE tmgForm SET DeletedFlag = 'Y' WHERE FormGUID = 'fugDifUploadFiles_aspx' <file_sep>IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'HBItemID' AND Object_ID = OBJECT_ID('txdCNStockGoodsType')) BEGIN EXEC usp_DBACopyTableIndexesByColumn '','txdCNStockGoodsType','HBItemID','nvarchar',1,20 ALTER TABLE txdCNStockGoodsType ALTER COLUMN HBItemID [nvarchar] (20) NOT NULL EXEC usp_DBACreateTableIndexes '','txdCNStockGoodsType' END <file_sep> /*----if the record exists txdOraDPSOutboundMsg.ScreeningStatus <> tmgCompany.DTSStatus or txdOraDPSOutboundMsg.LastScreenedDate <> tmgCompany.DTSLastScreenedDate then update txdOraDPSOutboundMsg using new record values ---------*/ UPDATE msg set msg.[TimeStamp]=GETDATE(), msg.ScreeningStatus=cp.DTSStatus, msg.LastScreenedDate=cp.DTSLastScreenedDate, msg.[Status]='Ready', msg.HTTPStatus='' from tmgCompany cp WITH (NOLOCK) Join tmdPartnerCrossReference pr WITH (NOLOCK) on cp.PartnerID = pr.PartnerIdentifier and cp.DTSStatus <> 'Not Screened' inner Join txdOraDPSOutboundMsg msg WITH (NOLOCK) on msg.PartnerID = cp.PartnerID and msg.CompanyID= cp.CompanyID and msg.InterfaceCode = 'MD_SUPPLIER_UPDATE' where msg.ScreeningStatus <> cp.DTSStatus or msg.LastScreenedDate <> cp.DTSLastScreenedDate; -- if the record doesn't exist insert a new one on txdOraDPSOutboundMsg INSERT INTO txdOraDPSOutboundMsg SELECT DISTINCT cp.PartnerID AS PartnerID ,GETDATE() AS EffDate ,NEWID() AS QueueGUID ,'MD_SUPPLIER_UPDATE' AS InterfaceCode ,cp.CompanyID AS CompanyID ,GETDATE() AS [TimeStamp] ,cp.DTSStatus AS DTSStatus ,cp.DTSLastScreenedDate AS DTSLastScreenedDate ,'POST' AS APIMethod ,'Ready' AS [Status] ,'' AS HTTPStatus ,'N' AS DeletedFlag ,'N' AS KeepDuringRollback from tmgCompany cp WITH (NOLOCK) Join tmdPartnerCrossReference pr WITH (NOLOCK) on cp.PartnerID = pr.PartnerIdentifier and cp.DTSStatus <> 'Not Screened' where cp.CompanyID not in (select CompanyID from txdOraDPSOutboundMsg a WITH (NOLOCK) where a.PartnerID = cp.PartnerID and a.InterfaceCode = 'MD_SUPPLIER_UPDATE' ) GROUP BY cp.PartnerID, cp.CompanyID, cp.DTSStatus, cp.DTSLastScreenedDate<file_sep>using System; using Microsoft.VisualStudio.TestTools.UnitTesting; //using DbUp; using System.Diagnostics; using System.Data.SqlClient; using System.Collections.Generic; using DbUp; using DBUpgrade; using DbUp.Support.SqlServer; using DbUp.Engine.Output; namespace DBUpgradeTest { [TestClass] public class UnitTest1 { [TestMethod] public void TestSecurityUpgrade() { string directory; //= @"D:\Dev\projects\Main\GTM\Database\" + GetVersion() + @"\Security"; directory = System.IO.Path.Combine(GetDatabaseScriptPath(), GetVersion()); var dir = new System.IO.DirectoryInfo(directory); var directories = GetDirectories(dir, "Security"); string sourceDB = "jg_sec"; if (directories.Count > 0) { sourceDB = System.Configuration.ConfigurationManager.AppSettings["securityCatalog"]; string testDB = sourceDB + "_test"; string server = System.Configuration.ConfigurationManager.AppSettings["dbServer"]; string connectionString = @"server=" + server + ";database=" + testDB + ";user ID=" + GetUserid() + ";Password=" + GetDatabasePassword(); using (var x = new TestDBDisposable(sourceDB, testDB, connectionString)) { foreach (var folder in directories) { Console.WriteLine("scripts for location: " + folder.DirectoryInfo.FullName); DbUp.Engine.DatabaseUpgradeResult result = null; var sqlConnectionManager = new SqlConnectionManager(connectionString); var log = new ConsoleUpgradeLog(); var journal = new FlywayLikeJournal(() => sqlConnectionManager, () => log, null, FlywayLikeExtensions.VersionTableName); var dbupBuilder = DeployChanges.To .HashedSqlDatabase(sqlConnectionManager) .WithExecutionTimeout(TimeSpan.FromSeconds(30 * 60)) .WithTransactionPerScript() .WithHashedScriptsInDirectory(folder.DirectoryInfo.FullName, journal) .LogToConsole().LogScriptOutput(); var dbup = dbupBuilder.Build(); result = dbup.PerformUpgrade(); string msg = ""; if (result.Error != null) msg = result.Error.ToString(); Assert.IsTrue(result.Successful, msg); //deploy a second time to ensure scripts check for existence before adding result = null; dbupBuilder = DeployChanges.To .HashedSqlDatabase(sqlConnectionManager) .WithExecutionTimeout(TimeSpan.FromSeconds(30 * 60)) .WithTransactionPerScript() .WithHashedScriptsInDirectory(folder.DirectoryInfo.FullName, journal) .LogToConsole().LogScriptOutput(); dbup = dbupBuilder.Build(); result = dbup.PerformUpgrade(); msg = ""; if (result.Error != null) msg = "Second run: " + result.Error.ToString(); Assert.IsTrue(result.Successful, msg); } } } else { Console.WriteLine("Directory not found: " + directory); Assert.IsTrue(true, "directory doesn't exist, nothing to test"); } } [TestMethod] public void TestApplicationUpgrade() { string directory; //= @"D:\Dev\projects\Main\GTM\Database\" + GetVersion() + @"\Application"; directory = System.IO.Path.Combine(GetDatabaseScriptPath(), GetVersion()); var dir = new System.IO.DirectoryInfo(directory); var directories = GetDirectories(dir, "Application"); string sourceDB = "jg_demo2"; if (directories.Count > 0) { sourceDB = System.Configuration.ConfigurationManager.AppSettings["applicationCatalog"]; string testDB = sourceDB + "_test"; string server = System.Configuration.ConfigurationManager.AppSettings["dbServer"]; string connectionString = @"server=" + server + ";database=" + testDB + ";user ID=" + GetUserid() + ";Password=" + GetDatabasePassword(); using (var x = new TestDBDisposable(sourceDB, testDB, connectionString)) { foreach (var folder in directories) { Console.WriteLine("scripts for location: " + folder.DirectoryInfo.FullName); DbUp.Engine.DatabaseUpgradeResult result = null; var sqlConnectionManager = new SqlConnectionManager(connectionString); var log = new ConsoleUpgradeLog(); var journal = new FlywayLikeJournal(() => sqlConnectionManager, () => log, null, FlywayLikeExtensions.VersionTableName); var dbupBuilder = DeployChanges.To .HashedSqlDatabase(sqlConnectionManager) .WithExecutionTimeout(TimeSpan.FromSeconds(30 * 60)) .WithTransactionPerScript() .WithHashedScriptsInDirectory(folder.DirectoryInfo.FullName, journal) .LogToConsole().LogScriptOutput(); var dbup = dbupBuilder.Build(); result = dbup.PerformUpgrade(); string msg = ""; if (result.Error != null) msg = result.Error.ToString(); Assert.IsTrue(result.Successful, msg); //deploy a second time to ensure scripts check for existence before adding result = null; dbupBuilder = DeployChanges.To .HashedSqlDatabase(sqlConnectionManager) .WithExecutionTimeout(TimeSpan.FromSeconds(30 * 60)) .WithTransactionPerScript() .WithHashedScriptsInDirectory(folder.DirectoryInfo.FullName, journal) .LogToConsole().LogScriptOutput(); dbup = dbupBuilder.Build(); result = dbup.PerformUpgrade(); msg = ""; if (result.Error != null) msg = "Second run: " + result.Error.ToString(); Assert.IsTrue(result.Successful, msg); } } } else Assert.IsTrue(true, "directory doesn't exist, nothing to test"); } private string GetVersion() { var dev = this; var asm = System.Reflection.Assembly.GetAssembly(dev.GetType()); string ver = FileVersionInfo.GetVersionInfo(asm.Location).FileVersion; int index = ver.IndexOf('.'); index = ver.IndexOf('.', index+1); return ver.Substring(0, index); } private string GetDatabaseScriptPath() { var dev = this; var asm = System.Reflection.Assembly.GetAssembly(dev.GetType()); Console.WriteLine("asmLocation: " + asm.Location); string upPath = @"..\..\..\..\Database"; if(!asm.Location.StartsWith(@"d:\dev", StringComparison.InvariantCultureIgnoreCase)) upPath = @"..\..\src\GTM\Database"; string path = System.IO.Path.Combine(asm.Location, upPath); return System.IO.Path.GetFullPath(path); } private string GetDatabasePassword() { var c = new dugUtilities.CConnectionInfo(); c.ConnectionString("ftzweb", "userauth"); var d = new dugEncryptDecrypt.IntegrationPoint.CEncryptDecrypt(); return d.DecryptWithSeed(c.Password); } private string GetUserid() { var c = new dugUtilities.CConnectionInfo(); c.ConnectionString("ftzweb", "userauth"); var d = new dugEncryptDecrypt.IntegrationPoint.CEncryptDecrypt(); return c.UserID; } private static List<DirectoryData> GetDirectories(System.IO.DirectoryInfo directoryInfo, String pathSuffix = "") { List<DirectoryData> result = new List<DirectoryData>(); Version v = new Version(directoryInfo.Name); Version v1 = MinusOne(v); Version v2 = MinusOne(v1); var directoryInfo1 = new System.IO.DirectoryInfo(System.IO.Path.Combine(v1.ToString(), "Hotfix", pathSuffix)); var directoryInfo2 = new System.IO.DirectoryInfo(System.IO.Path.Combine(v2.ToString(), "Hotfix", pathSuffix)); var directoryInfoMain = new System.IO.DirectoryInfo(System.IO.Path.Combine(directoryInfo.FullName, "Release", pathSuffix)); var diCurrentReleaseHF = new System.IO.DirectoryInfo(System.IO.Path.Combine(directoryInfo.FullName, "Hotfix", pathSuffix)); var diCurrentBase = new System.IO.DirectoryInfo(System.IO.Path.Combine(directoryInfo.FullName, pathSuffix)); if (directoryInfo2.Exists) result.Add(new DirectoryData() { Name = v2.ToString() + "\\Hotfix", DirectoryInfo = directoryInfo2 }); if (directoryInfo1.Exists) result.Add(new DirectoryData() { Name = v1.ToString() + "\\Hotfix", DirectoryInfo = directoryInfo1 }); if (directoryInfoMain.Exists) result.Add(new DirectoryData() { Name = directoryInfo.Name + "\\Release", DirectoryInfo = directoryInfoMain }); else { if(diCurrentBase.Exists) result.Add(new DirectoryData() { Name = directoryInfo.Name, DirectoryInfo = diCurrentBase }); } if (diCurrentReleaseHF.Exists) result.Add(new DirectoryData() { Name = directoryInfo.Name + "\\Hotfix", DirectoryInfo = diCurrentReleaseHF }); return result; } private static Version MinusOne(Version v) { if (v.Minor == 1) return new Version(v.Major - 1, 4); return new Version(v.Major, v.Minor - 1); } } class DirectoryData { public string Name { get; set; } public System.IO.DirectoryInfo DirectoryInfo { get; set; } } class TestDBDisposable : IDisposable { private string fromDB; private string toDB; private string connectionString; public TestDBDisposable(string fromDB, string toDB, string connectionString) { this.fromDB = fromDB; this.toDB = toDB; this.connectionString = connectionString; createDatabase(fromDB, toDB, connectionString); } private void createDatabase(string fromDB, string toDB, string connectionString) { string cn = connectionString.Replace("database=" + toDB + ";", "database=" + fromDB + ";"); string bakLocation = @"D:\SQL Backups\"; string dataLocation = @"D:\SQL Server\MSSQL10_50.SQL2008\MSSQL\DATA\"; string logLocation = @"L:\SQL Server\MSSQL10_50.SQL2008\MSSQL\Logs\"; string logicalData = fromDB; string logicalLog = fromDB + "_log"; bakLocation = System.Configuration.ConfigurationManager.AppSettings["backupLocation"]; dataLocation = System.Configuration.ConfigurationManager.AppSettings["dataLocation"]; logLocation = System.Configuration.ConfigurationManager.AppSettings["logLocation"]; logicalData = System.Configuration.ConfigurationManager.AppSettings[fromDB + ":LogicalData"] ?? logicalData; logicalLog = System.Configuration.ConfigurationManager.AppSettings[fromDB + ":logicalLog"] ?? logicalLog; using (SqlConnection cnn = new SqlConnection(cn)) { using (SqlCommand cmd = cnn.CreateCommand()) { try { cnn.Open(); cmd.Connection = cnn; cmd.CommandTimeout = 1000; cmd.CommandText = "backup database " + fromDB + @" to disk = '" + bakLocation + fromDB + @"\" + fromDB + ".BAK' with init"; cmd.ExecuteNonQuery(); cmd.CommandText = "restore database " + toDB + @" from disk= '" + bakLocation + fromDB + @"\" + fromDB + @".BAK' with move '" + logicalData + @"' to '" + dataLocation + toDB + @".mdf', move '" + logicalLog + @"' to '" + logLocation + toDB + "_log.ldf', replace"; cmd.ExecuteNonQuery(); } catch (Exception ex) { Console.WriteLine(ex.Message); throw; } } cnn.Close(); } } private void dropDatabase(string fromDB, string toDB, string connectionString) { string cn = connectionString.Replace("database=" + toDB + ";", "database=" + fromDB + ";"); using (SqlConnection cnn = new SqlConnection(cn)) { using (SqlCommand cmd = cnn.CreateCommand()) { try { SqlConnection.ClearAllPools(); cnn.Open(); cmd.Connection = cnn; cmd.CommandTimeout = 1000; cmd.CommandText = "drop database " + toDB; cmd.ExecuteNonQuery(); } catch (Exception ex) { Console.WriteLine(ex.Message); throw; } } cnn.Close(); } } public void Dispose() { dropDatabase(fromDB, toDB, connectionString); } } } <file_sep>"# azurepipeline" <file_sep>-------------------------------------------------------------------------------------------------------------- --MODIFY EXISTING COLUMN --The usp_DBACopyTableIndexesByColumn stored proc searches for an index on the modified column. If it exists, --it will drop that index to allow column changes. --The usp_DBACreateTableIndexes stored proc recreates the dropped index. -------------------------------------------------------------------------------------------------------------- /* ADO # 51724 -- Increase PermitNum fields to 50. V20.4.290__ALTER_txdMXSaaiPermits_PermitNum_Fields_MA.sql */ IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'PermitNum' --your column here AND Object_ID = OBJECT_ID('txdMXSaaiPermits')) --Your Table Here BEGIN --Do not change 1st and 5th parameter. --4th parameter is the updated data type; 6th paramter is the updated column length if any EXEC usp_DBACopyTableIndexesByColumn '','txdMXSaaiPermits','PermitNum','varchar',1,50 ALTER TABLE txdMXSaaiPermits --Your Table Here ALTER COLUMN PermitNum [varchar] (50) NOT NULL --your column here --Do not change 1st paramter. EXEC usp_DBACreateTableIndexes '','txdMXSaaiPermits' --Your Table Here END IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'PermitNum' --your column here AND Object_ID = OBJECT_ID('tmdMXSaaiPermitsDefaultByTariff')) --Your Table Here BEGIN --Do not change 1st and 5th parameter. --4th parameter is the updated data type; 6th paramter is the updated column length if any EXEC usp_DBACopyTableIndexesByColumn '','tmdMXSaaiPermitsDefaultByTariff','PermitNum','varchar',1,50 ALTER TABLE tmdMXSaaiPermitsDefaultByTariff --Your Table Here ALTER COLUMN PermitNum [varchar] (50) NOT NULL --your column here --Do not change 1st paramter. EXEC usp_DBACreateTableIndexes '','tmdMXSaaiPermitsDefaultByTariff' --Your Table Here END IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'PermitNumber' --your column here AND Object_ID = OBJECT_ID('txdMXPermits')) --Your Table Here BEGIN --Do not change 1st and 5th parameter. --4th parameter is the updated data type; 6th paramter is the updated column length if any EXEC usp_DBACopyTableIndexesByColumn '','txdMXPermits','PermitNumber','varchar',1,50 ALTER TABLE txdMXPermits --Your Table Here ALTER COLUMN PermitNumber [varchar] (50) NOT NULL --your column here --Do not change 1st paramter. EXEC usp_DBACreateTableIndexes '','txdMXPermits' --Your Table Here END IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'PermitNumber' --your column here AND Object_ID = OBJECT_ID('txdMXBrokerPermits')) --Your Table Here BEGIN --Do not change 1st and 5th parameter. --4th parameter is the updated data type; 6th paramter is the updated column length if any EXEC usp_DBACopyTableIndexesByColumn '','txdMXBrokerPermits','PermitNumber','varchar',1,50 ALTER TABLE txdMXBrokerPermits --Your Table Here ALTER COLUMN PermitNumber [varchar] (50) NOT NULL --your column here --Do not change 1st paramter. EXEC usp_DBACreateTableIndexes '','txdMXBrokerPermits' --Your Table Here END<file_sep> IF EXISTS (SELECT TOP 1 1 FROM sys.tables WHERE Name = 'usrtxdCNHandbookConsDetail' AND Type = 'U') BEGIN IF ( SELECT COUNT(*) FROM dbo.syscolumns WHERE name IN ('eHandbookNum','FGSeqID','PCProductSeqNum','ModifyMarkCode','BOMValidDate') AND ID = OBJECT_ID('usrtxdCNHandbookConsDetail') ) = 5 BEGIN -- rename column exec sp_RENAME 'usrtxdCNHandbookConsDetail.eHandbookNum' , 'HandbookNum', 'COLUMN'; exec sp_RENAME 'usrtxdCNHandbookConsDetail.FGSeqID' , 'FGLineNum', 'COLUMN'; exec sp_RENAME 'usrtxdCNHandbookConsDetail.PCProductSeqNum' , 'RMLineNum', 'COLUMN'; exec sp_RENAME 'usrtxdCNHandbookConsDetail.ModifyMarkCode' , 'ModifyMark', 'COLUMN'; exec sp_RENAME 'usrtxdCNHandbookConsDetail.BOMValidDate' , 'BOMStopDate', 'COLUMN'; END END<file_sep>-------------------------------------------------------------------------------------------------------------- --MODIFY EXISTING COLUMN --ttdStagingExportDetailPreProduct -- Change Marks column type to NVarChar -------------------------------------------------------------------------------------------------------------- IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'marks' --your column here AND Object_ID = OBJECT_ID('ttdStagingExportDetailPreProduct')) --Your Table Here BEGIN --Do not change 1st and 5th parameter. --4th parameter is the updated data type; 6th paramter is the updated column length if any EXEC usp_DBACopyTableIndexesByColumn '','ttdStagingExportDetailPreProduct','marks','nvarchar',1,2000 ALTER TABLE ttdStagingExportDetailPreProduct --Your Table Here ALTER COLUMN marks [nvarchar] (2000) NOT NULL --your column here --Do not change 1st paramter. EXEC usp_DBACreateTableIndexes '','ttdStagingExportDetailPreProduct' --Your Table Here END IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'marks' --your column here AND Object_ID = OBJECT_ID('ttdStagingExportDetailPreProductHist')) --Your Table Here BEGIN --Do not change 1st and 5th parameter. --4th parameter is the updated data type; 6th paramter is the updated column length if any EXEC usp_DBACopyTableIndexesByColumn '','ttdStagingExportDetailPreProductHist','marks','nvarchar',1,2000 ALTER TABLE ttdStagingExportDetailPreProductHist --Your Table Here ALTER COLUMN marks [nvarchar] (2000) NOT NULL --your column here --Do not change 1st paramter. EXEC usp_DBACreateTableIndexes '','ttdStagingExportDetailPreProductHist' --Your Table Here END<file_sep>IF 1=( SELECT Count(t.partnerid) FROM tlgApplicationLaunchTree t WITH (NOLOCK) INNER JOIN tlgApplicationLaunchTree s WITH (NOLOCK) ON s.PartnerID=t.PartnerID AND s.WorkFlow=t.WorkFlow AND s.SequenceNo=t.SequenceNo AND s.Command = 'Validate PreReceipt / InvoiceLineGuid / Already Processed' ) BEGIN update t set SequenceNo = SequenceNo - 1 FROM tlgApplicationLaunchTree t where SequenceNo > ( select Max(SequenceNo) from tlgApplicationLaunchTree s WITH (NOLOCK) where Command = 'Validate PreReceipt / InvoiceLineGuid / Already Processed' and s.WorkFlow = t.Workflow and s.PartnerID=t.PartnerID) END DELETE FROM tlgApplicationLaunchTree WHERE Command = 'Validate PreReceipt / InvoiceLineGuid / Already Processed'<file_sep>-------------------------------------------------------------------------------------------------------------- -- MODIFY Multiple Tables and EXISTING COLUMN(S) for SAAI M3 file -- ADO # 28521 -- Release 20.3 -------------------------------------------------------------------------------------------------------------- IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name in('TotalPackage','TransportIdentifier') --your columns here AND Object_ID = OBJECT_ID('txdMXSaaiInvoices')) --Your Table Here BEGIN EXEC usp_DBACopyTableIndexesByColumn '','txdMXSaaiInvoices','TotalPackage','numeric',1,5,5,0 ALTER TABLE txdMXSaaiInvoices --Your Table Here ALTER COLUMN TotalPackage numeric(5,0) NOT NULL--your column here EXEC usp_DBACreateTableIndexes '','txdMXSaaiInvoices' --Your Table Here ALTER TABLE txdMXSaaiInvoices --Your Table Here ALTER COLUMN TransportIdentifier varchar(30) NOT NULL --your column here PRINT 'The [TotalPackage] and [TransportIdentifier] fields for table [txdMXSaaiInvoices] have been updated.' END IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name in('AssignedTitles') --your column here AND Object_ID = OBJECT_ID('txdMXSaaiCuentasAduaneras')) --Your Table Here BEGIN EXEC usp_DBACopyTableIndexesByColumn '','txdMXSaaiCuentasAduaneras','AssignedTitles','numeric',1,9,14,2 ALTER TABLE txdMXSaaiCuentasAduaneras --Your Table Here ALTER COLUMN AssignedTitles numeric(14,2) NOT NULL--your column here PRINT 'The [AssignedTitles] field for table [txdMXSaaiCuentasAduaneras] has been updated.' EXEC usp_DBACreateTableIndexes '','txdMXSaaiCuentasAduaneras' --Your Table Here END IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name in('MXTariffQuantity') --your column here AND Object_ID = OBJECT_ID('txdMXSaaiDischarges')) --Your Table Here BEGIN EXEC usp_DBACopyTableIndexesByColumn '','txdMXSaaiDischarges','MXTariffQuantity','numeric',1,9,18,5 ALTER TABLE txdMXSaaiDischarges --Your Table Here ALTER COLUMN MXTariffQuantity numeric(18,5) NOT NULL--your column here PRINT 'The [MXTariffQuantity] field for table [txdMXSaaiDischarges] has been updated.' EXEC usp_DBACreateTableIndexes '','txdMXSaaiDischarges' --Your Table Here END IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name in('VINOrSerialNum') --your column here AND Object_ID = OBJECT_ID('txdMXSaaiMerchandises')) --Your Table Here BEGIN ALTER TABLE txdMXSaaiMerchandises --Your Table Here ALTER COLUMN VINOrSerialNum varchar(25) NOT NULL--your column here PRINT 'The [VINOrSerialNum] field for table [txdMXSaaiMerchandises] has been updated.' END IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name in('PermitQty') --your column here AND Object_ID = OBJECT_ID('txdMXSaaiPermits')) --Your Table Here BEGIN EXEC usp_DBACopyTableIndexesByColumn '','txdMXSaaiPermits','PermitQty','numeric',1,9,18,5 ALTER TABLE txdMXSaaiPermits --Your Table Here ALTER COLUMN PermitQty numeric(18,5) NOT NULL--your column here PRINT 'The [PermitQty] field for table [txdMXSaaiPermits] has been updated.' EXEC usp_DBACreateTableIndexes '','txdMXSaaiPermits' --Your Table Here END IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name in('HTSUOM') --your column here AND Object_ID = OBJECT_ID('txdMXSaaiComplimentaryExports')) --Your Table Here BEGIN EXEC usp_DBACopyTableIndexesByColumn '','txdMXSaaiComplimentaryExports','HTSUOM','numeric',1,5,5,0 ALTER TABLE txdMXSaaiComplimentaryExports --Your Table Here ALTER COLUMN HTSUOM numeric(5,0) NOT NULL--your column here PRINT 'The [HTSUOM] field for table [txdMXSaaiComplimentaryExports] has been updated.' EXEC usp_DBACreateTableIndexes '','txdMXSaaiComplimentaryExports' --Your Table Here END<file_sep>--create backup in case we delete the wrong records SELECT * INTO dbo.bck_tmgglobalcodes_ReleasePush_GMB FROM tmgglobalcodes WHERE fieldname = 'DocType' AND Code = 'Smart HS Certificate' DELETE tmgglobalcodes WHERE fieldname = 'DocType' AND Code = 'Smart HS Certificate' insert into tmgglobalcodes select partnerid, getdate(), 'DocType', 'Smart HS Certificate', 'Smart HS Certificate', 'Y', 'N', 'N' from tmfdefaults<file_sep>IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'BrokerFileNum' --your column here AND Object_ID = OBJECT_ID('txdUSEntryVisibility')) --Your Table Here BEGIN --Do not change 1st and 5th parameter. --4th parameter is the updated data type; 6th paramter is the updated column length if any EXEC usp_DBACopyTableIndexesByColumn '','txdUSEntryVisibility','BrokerFileNum','varchar',1,35 ALTER TABLE txdUSEntryVisibility --Your Table Here ALTER COLUMN BrokerFileNum [varchar] (35) NOT NULL --your column here --Do not change 1st paramter. EXEC usp_DBACreateTableIndexes '','txdUSEntryVisibility' --Your Table Here END<file_sep>--Insert all necessary forms in the tmgForm ----IP Full Access Group IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'fxdFIFOMassUpdate_aspx' AND Description = 'fxdFIFOMassUpdate_aspx' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'fxdFIFOMassUpdate_aspx' ,'fxdFIFOMassUpdate_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'fmgUSABIGateway_aspx' AND Description = 'fmgUSABIGateway_aspx' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'fmgUSABIGateway_aspx' ,'fmgUSABIGateway_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'fmdSignature_aspx' AND Description = 'fmdSignature_aspx' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'fmdSignature_aspx' ,'fmdSignature_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'ConstructReport_aspx' AND Description = 'ConstructReport_aspx' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'ConstructReport_aspx' ,'ConstructReport_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'ElasticPortal_aspx' AND Description = 'ElasticPortal_aspx' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'ElasticPortal_aspx' ,'ElasticPortal_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'fxdADCVDQuery_aspx' AND Description = 'fxdADCVDQuery_aspx' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'fxdADCVDQuery_aspx' ,'fxdADCVDQuery_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'fxdShipmentConsolidation_aspx' AND Description = 'fxdShipmentConsolidation_aspx' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'fxdShipmentConsolidation_aspx' ,'fxdShipmentConsolidation_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'fxdInvoiceAssignment_aspx' AND Description = 'fxdInvoiceAssignment_aspx' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'fxdInvoiceAssignment_aspx' ,'fxdInvoiceAssignment_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'fugReceiptReassignment_aspx' AND Description = 'fugReceiptReassignment_aspx' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'fugReceiptReassignment_aspx' ,'fugReceiptReassignment_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'fugShipmentReassignment_aspx' AND Description = 'fugShipmentReassignment_aspx' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'fugShipmentReassignment_aspx' ,'fugShipmentReassignment_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'GTNEventHistory_aspx' AND Description = 'GTNEventHistory_aspx' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'GTNEventHistory_aspx' ,'GTNEventHistory_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'frdAnnualFTZBoardReportRS_aspx' AND Description = 'frdAnnualFTZBoardReportRS_aspx' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'frdAnnualFTZBoardReportRS_aspx' ,'frdAnnualFTZBoardReportRS_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'fugAccessDocumentFiles_aspx' AND Description = 'fugAccessDocumentFiles_aspx' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'fugAccessDocumentFiles_aspx' ,'fugAccessDocumentFiles_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'logViewAllEntries_aspx' AND Description = 'logViewAllEntries_aspx' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'logViewAllEntries_aspx' ,'logViewAllEntries_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'fugUploadErrors_aspx' AND Description = 'fugUploadErrors_aspx' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'fugUploadErrors_aspx' ,'fugUploadErrors_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'fmdTTMWorkflowSetup_aspx' AND Description = 'fmdTTMWorkflowSetup_aspx' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'fmdTTMWorkflowSetup_aspx' ,'fmdTTMWorkflowSetup_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'fxdManageEventFlows_aspx' AND Description = 'fxdManageEventFlows_aspx' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'fxdManageEventFlows_aspx' ,'fxdManageEventFlows_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'BPM_aspx' AND Description = 'BPM_aspx' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'BPM_aspx' ,'BPM_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'BPMMaintenance_aspx' AND Description = 'BPMMaintenance_aspx' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'BPMMaintenance_aspx' ,'BPMMaintenance_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'BPMOverview_aspx' AND Description = 'BPMOverview_aspx' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'BPMOverview_aspx' ,'BPMOverview_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'fxdScoreCardSetup_aspx' AND Description = 'fxdScoreCardSetup_aspx' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'fxdScoreCardSetup_aspx' ,'fxdScoreCardSetup_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'fxdTempStorage_aspx' AND Description = 'fxdTempStorage_aspx' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'fxdTempStorage_aspx' ,'fxdTempStorage_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'fugSemanticConfiguration_aspx' AND Description = 'fugSemanticConfiguration_aspx' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'fugSemanticConfiguration_aspx' ,'fugSemanticConfiguration_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'fugLookupManagement_aspx' AND Description = 'fugLookupManagement_aspx' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'fugLookupManagement_aspx' ,'fugLookupManagement_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'fugWCOIndex_aspx' AND Description = 'fugWCOIndex_aspx' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'fugWCOIndex_aspx' ,'fugWCOIndex_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'fugWCONotes_aspx' AND Description = 'fugWCONotes_aspx' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'fugWCONotes_aspx' ,'fugWCONotes_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'fugWCONotesNew_aspx' AND Description = 'fugWCONotesNew_aspx' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'fugWCONotesNew_aspx' ,'fugWCONotesNew_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'fsgBulkUserAdd_aspx' AND Description = 'fsgBulkUserAdd_aspx' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'fsgBulkUserAdd_aspx' ,'fsgBulkUserAdd_aspx' ,2 ,GETDATE() ,'N' ,'N' END --Insert form into tmgGroupAccess according to their groups. --IP Full Access Group IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'fxdFIFOMassUpdate_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'fxdFIFOMassUpdate_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'fmgUSABIGateway_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'fmgUSABIGateway_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'fmdSignature_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'fmdSignature_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'ConstructReport_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'ConstructReport_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'ElasticPortal_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'ElasticPortal_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'fxdADCVDQuery_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'fxdADCVDQuery_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'fxdShipmentConsolidation_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'fxdShipmentConsolidation_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'fxdInvoiceAssignment_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'fxdInvoiceAssignment_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'fugReceiptReassignment_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'fugReceiptReassignment_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'fugShipmentReassignment_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'fugShipmentReassignment_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'GTNEventHistory_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'GTNEventHistory_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'frdAnnualFTZBoardReportRS_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'frdAnnualFTZBoardReportRS_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'fugAccessDocumentFiles_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'fugAccessDocumentFiles_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'logViewAllEntries_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'logViewAllEntries_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'fugUploadErrors_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'fugUploadErrors_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'fmdTTMWorkflowSetup_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'fmdTTMWorkflowSetup_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'fxdManageEventFlows_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'fxdManageEventFlows_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'BPM_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'BPM_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'BPMMaintenance_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'BPMMaintenance_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'BPMOverview_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'BPMOverview_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'fxdScoreCardSetup_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'fxdScoreCardSetup_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'fxdTempStorage_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'fxdTempStorage_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'fugSemanticConfiguration_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'fugSemanticConfiguration_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'fugLookupManagement_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'fugLookupManagement_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'fugWCOIndex_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'fugWCOIndex_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'fugWCONotes_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'fugWCONotes_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'fugWCONotesNew_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'fugWCONotesNew_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'fsgBulkUserAdd_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'fsgBulkUserAdd_aspx' ,2 ,GETDATE() ,'N' ,'N' END <file_sep>using System; using System.Collections.Generic; using System.IO; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Linq; using System.Text.RegularExpressions; using System.Text; namespace Script.tests { [TestClass] public class ScriptTest { [TestMethod] public void TestInvalidUTF8Characters() { var root = GetPath(); foreach (var path in GetScriptDirectories()) { TestScriptsInPathUTF8(root, path); } } [TestMethod] public void TestUniqueVersionPrefix() { var root = GetPath(); string[] knownPaths = new string[] { Path.Combine(root, "Security"), Path.Combine(root, "Application"), Path.Combine(root, "DTS_BATCH_QUEUE"), Path.Combine(root, "GTN_Doc"), Path.Combine(root, "GTN_Events"), Path.Combine(root, "GTN_Log"), Path.Combine(root, "IP_API"), Path.Combine(root, "IP_ExternalDocLinks"), Path.Combine(root, "ReportServiceQueue"), Path.Combine(root, "USABI"), Path.Combine(root, "Biblioteca") }; foreach (var path in GetScriptDirectories().Where(d => !knownPaths.Contains(d)) ) { TestScriptsInPath(root, path); } } [TestMethod] public void TestSecurityUniqueVersionPrefix() { var root = GetPath(); var path = Path.Combine(root, "Security"); TestScriptsInPath(root, path); } [TestMethod] public void TestApplicationUniqueVersionPrefix() { var root = GetPath(); var path = Path.Combine(root, "Application"); TestScriptsInPath(root, path); } [TestMethod] public void TestDTS_BATCH_QUEUEUniqueVersionPrefix() { var root = GetPath(); var path = Path.Combine(root, "DTS_BATCH_QUEUE"); TestScriptsInPath(root, path); } [TestMethod] public void TestGTN_DocUniqueVersionPrefix() { var root = GetPath(); var path = Path.Combine(root, "GTN_Doc"); TestScriptsInPath(root, path); } [TestMethod] public void TestGTN_EventsUniqueVersionPrefix() { var root = GetPath(); var path = Path.Combine(root, "GTN_Events"); TestScriptsInPath(root, path); } [TestMethod] public void TestGTN_LogUniqueVersionPrefix() { var root = GetPath(); var path = Path.Combine(root, "GTN_Log"); TestScriptsInPath(root, path); } [TestMethod] public void TestIP_APIUniqueVersionPrefix() { var root = GetPath(); var path = Path.Combine(root, "IP_API"); TestScriptsInPath(root, path); } [TestMethod] public void TestIP_ExternalDocLinksUniqueVersionPrefix() { var root = GetPath(); var path = Path.Combine(root, "IP_ExternalDocLinks"); TestScriptsInPath(root, path); } [TestMethod] public void TestReportServiceQueueUniqueVersionPrefix() { var root = GetPath(); var path = Path.Combine(root, "ReportServiceQueue"); TestScriptsInPath(root, path); } [TestMethod] public void TestUSABIUniqueVersionPrefix() { var root = GetPath(); var path = Path.Combine(root, "USABI"); TestScriptsInPath(root, path); } [TestMethod] public void TestBibliotecaUniqueVersionPrefix() { var root = GetPath(); var path = Path.Combine(root, "Biblioteca"); TestScriptsInPath(root, path); } private void TestScriptsInPath(string root, string path) { var missing__ = (from f in Directory.EnumerateFiles(path, "V*.sql", SearchOption.AllDirectories) let ff = Path.GetFileName(f) where !ff.Contains("__") select ff).ToList(); Assert.AreEqual(0, missing__.Count, $"Scripts missing double underscore in {path.Replace(root, "")} folder. Versions: {String.Join(", ", missing__)}"); var versions = from f in Directory.EnumerateFiles(path, "V*__*.sql", SearchOption.AllDirectories) let ff = Path.GetFileName(f) select new { version = ff.Substring(0, ff.IndexOf("__")), name = ff }; var dups = versions.GroupBy(x => x.version) .Where(g => g.Count() > 1) .Select(y => y.Key) .ToList(); Assert.AreEqual(0, dups.Count, $"Multiple scripts with same version not allowed in {path.Replace(root, "")} folder. Versions: {String.Join(", ", dups)}"); var badversions = versions.Where(v => { var m = Regex.Match(v.version, @"V((\d)*(\.)*)*"); return !m.Success || m.Value != v.version; }).ToList(); Assert.AreEqual(0, badversions.Count, $"Scripts with bad version format {path.Replace(root, "")} folder. Versions: {String.Join(", ", badversions.Select(b => b.version))}"); } private void TestScriptsInPathUTF8(string root, string path) { var files = from f in Directory.EnumerateFiles(path, "*.sql", SearchOption.AllDirectories) select f; string pattern = ".*�.*"; Regex reg = new Regex(pattern); foreach (var filepath in files) { if (filepath.Contains("__baseline")) continue; using (var st = File.OpenRead(filepath)) { using (TextReader r = new StreamReader(st, Encoding.UTF8)) { var s = r.ReadToEnd(); if (s.Contains("�")) { Assert.Fail($"Invalid UTF8 character in {filepath.Replace(root, "")}: {reg.Matches(s)[0].Value}."); } } } } } private string GetPath() { var dir = @"..\..\..\Database\"; var path = Environment.GetEnvironmentVariable("Build_SourcesDirectory"); if (path != null) { dir = Path.Combine(path, "Database"); } return Path.GetFullPath(dir); } private IEnumerable<string> GetScriptDirectories() { var path = GetPath(); foreach( string dir in Directory.EnumerateDirectories(path)) { if(Directory.Exists(Path.Combine(dir, "19.4")) || Directory.Exists(Path.Combine(dir, "20.2"))) { yield return dir; } } } } } <file_sep>-------------------------------------------------------------------------------------------------------------- --MODIFY EXISTING COLUMN --The usp_DBACopyTableIndexesByColumn stored proc searches for an index on the modified column. If it exists, --it will drop that index to allow column changes. --The usp_DBACreateTableIndexes stored proc recreates the dropped index. -------------------------------------------------------------------------------------------------------------- IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'MXTariffNum' --your column here AND Object_ID = OBJECT_ID('txdMXSaaiComplimentaryImports') --Your Table Here AND precision > 0) --To make sure just once since 2x can affect data by updating with ****** BEGIN --Do not change 1st and 5th parameter. --4th parameter is the updated data type; 6th paramter is the updated column length if any EXEC usp_DBACopyTableIndexesByColumn '','txdMXSaaiComplimentaryImports','MXTariffNum','varchar',1,10 ALTER TABLE txdMXSaaiComplimentaryImports --Your Table Here ALTER COLUMN MXTariffNum [varchar] (10) NOT NULL --your column here --Do not change 1st paramter. EXEC usp_DBACreateTableIndexes '','txdMXSaaiComplimentaryImports' --Your Table Here -- Format leading zeros UPDATE txdMXSaaiComplimentaryImports SET MXTariffNum = REPLACE(STR(MXTariffNum,8),' ','0') END <file_sep>print 'placeholder for deleted file'<file_sep>print 'file deleted, placeholder for flyway' <file_sep> IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'EnterpriseType' AND Object_ID = OBJECT_ID('txdCNLogisticsHBHeader')) BEGIN EXEC usp_DBACopyTableIndexesByColumn '','txdCNLogisticsHBHeader','EnterpriseType','nvarchar',1,1 ALTER TABLE txdCNLogisticsHBHeader ALTER COLUMN EnterpriseType [nvarchar] (1) NOT NULL EXEC usp_DBACreateTableIndexes '','txdCNLogisticsHBHeader' END <file_sep> IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'UseOrgPersonTel' AND Object_ID = OBJECT_ID('txdCNDecUser')) BEGIN EXEC usp_DBACopyTableIndexesByColumn '','txdCNDecUser','UseOrgPersonTel','NVARCHAR',1,20 ALTER TABLE txdCNDecUser ALTER COLUMN UseOrgPersonTel [NVARCHAR] (20) NOT NULL EXEC usp_DBACreateTableIndexes '','txdCNDecUser' END<file_sep>-------------------------------------------------------------------------------------------------------------- --MODIFY EXISTING COLUMN --The usp_DBACopyTableIndexesByColumn stored proc searches for an index on the modified column. If it exists, --it will drop that index to allow column changes. --The usp_DBACreateTableIndexes stored proc recreates the dropped index. -------------------------------------------------------------------------------------------------------------- IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'Question' --your column here AND Object_ID = OBJECT_ID('tmdDecisionTreeQuestion')) --Your Table Here BEGIN --Do not change 1st and 5th parameter. --4th parameter is the updated data type; 6th paramter is the updated column length if any EXEC usp_DBACopyTableIndexesByColumn '','tmdDecisionTreeQuestion','Question','nvarchar',1,2000 ALTER TABLE tmdDecisionTreeQuestion --Your Table Here ALTER COLUMN Question [nvarchar] (2000) NOT NULL --your column here --Do not change 1st paramter. EXEC usp_DBACreateTableIndexes '','tmdDecisionTreeQuestion' --Your Table Here END IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'Question' --your column here AND Object_ID = OBJECT_ID('tmdDecisionTreeQuestionHist')) --Your Table Here BEGIN --Do not change 1st and 5th parameter. --4th parameter is the updated data type; 6th paramter is the updated column length if any EXEC usp_DBACopyTableIndexesByColumn '','tmdDecisionTreeQuestionHist','Question','nvarchar',1,2000 ALTER TABLE tmdDecisionTreeQuestionHist --Your Table Here ALTER COLUMN Question [nvarchar] (2000) NOT NULL --your column here --Do not change 1st paramter. EXEC usp_DBACreateTableIndexes '','tmdDecisionTreeQuestionHist' --Your Table Here END IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'Question' --your column here AND Object_ID = OBJECT_ID('tmdDecisionTreeSessionAnswer')) --Your Table Here BEGIN --Do not change 1st and 5th parameter. --4th parameter is the updated data type; 6th paramter is the updated column length if any EXEC usp_DBACopyTableIndexesByColumn '','tmdDecisionTreeSessionAnswer','Question','nvarchar',1,2000 ALTER TABLE tmdDecisionTreeSessionAnswer --Your Table Here ALTER COLUMN Question [nvarchar] (2000) NOT NULL --your column here --Do not change 1st paramter. EXEC usp_DBACreateTableIndexes '','tmdDecisionTreeSessionAnswer' --Your Table Here END IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'Question' --your column here AND Object_ID = OBJECT_ID('tmdDecisionTreeSessionAnswerHist')) --Your Table Here BEGIN --Do not change 1st and 5th parameter. --4th parameter is the updated data type; 6th paramter is the updated column length if any EXEC usp_DBACopyTableIndexesByColumn '','tmdDecisionTreeSessionAnswerHist','Question','nvarchar',1,2000 ALTER TABLE tmdDecisionTreeSessionAnswerHist --Your Table Here ALTER COLUMN Question [nvarchar] (2000) NOT NULL --your column here --Do not change 1st paramter. EXEC usp_DBACreateTableIndexes '','tmdDecisionTreeSessionAnswerHist' --Your Table Here END<file_sep>--create backup in case we delete the wrong records SELECT * INTO dbo.bck_tmgglobalcodes_ReleasePush_MW FROM tmgglobalcodes WHERE fieldname = 'RegulationCode' AND Code = 'DSP73' DELETE tmgglobalcodes WHERE fieldname = 'RegulationCode' AND Code = 'DSP73' insert into tmgglobalcodes select partnerid, getdate(), 'RegulationCode', 'DSP73', 'DSP-73', 'Y', 'N', 'N' from tmfdefaults<file_sep>INSERT INTO tmgGroupAccess(GroupGUID,FormGUID,AccessType,EffDate,DeletedFlag,KeepDuringRollback) VALUES ('1001','1041','1','10/9/2013','N','N') , ('1002','fipImportTransactions_aspx','2','1/1/1900','N','N') , ('1002','fugGetHTS_aspx','2','1/1/1900','N','N') , ('1002','fugHsRates_aspx','2','1/1/1900','N','N') , ('1002','fugDocumentDetermination_aspx','2','6/19/2009','N','N') , ('1002','frdCustomsWarehouseReports_aspx','2','7/17/2009','N','N') , ('1002','fxdEntryVisibilitySummary_aspx','2','1/6/2010','N','N') , ('1002','fxdEntryDataOverride_aspx','2','1/6/2010','N','N') , ('1002','fxdEntryLineOverview_aspx','2','1/14/2010','N','N') , ('1002','DTSExcludedWords_aspx','2','1/15/2010','N','N') , ('1002','ffdCF7512QPReplies_aspx','2','5/13/2010','N','N') , ('1002','ffdCF7512QPReplyDetail_aspx','2','5/13/2010','N','N') , ('1002','ClientContentManagement_aspx','2','4/26/2010','N','N') , ('1002','ffdCF7512QPSummary_aspx','2','5/13/2010','N','N') , ('1002','ffdCF7512QPValidation_aspx','2','5/13/2010','N','N') , ('1002','ffdCF7512QP_aspx','2','5/13/2010','N','N') , ('1002','ffdCF7512WP_aspx','2','5/13/2010','N','N') , ('1002','ffdCF7512WPReplies_aspx','2','5/13/2010','N','N') , ('1002','ffdCF7512WPReplyDetail_aspx','2','5/13/2010','N','N') , ('1002','ffdCF7512WPSummary_aspx','2','5/13/2010','N','N') , ('1002','fidAESTransmission_aspx','2','6/8/2010','N','N') , ('1002','fxdDOT_aspx','2','8/2/2010','N','N') , ('1002','fxdFCC_aspx','2','8/2/2010','N','N') , ('1002','fxdFDA_aspx','2','8/2/2010','N','N') , ('1002','fxdNAFTADutyDeferral_aspx','2','8/2/2010','N','N') , ('1002','fxdNAFTAReconDeterminationReport_aspx','2','8/13/2010','N','N') , ('1002','fmdDashBoard_aspx','2','9/14/2010','N','N') , ('1002','fmdClassificationRequest_aspx','2','9/14/2010','N','N') , ('1002','fmgSupplierDashboard_aspx','2','9/14/2010','N','N') , ('1002','EditLicenseAllocation_aspx','2','1/15/2013','N','N') , ('1002','fxdEntrySummary_aspx','2','1/20/2011','N','N') , ('1002','fmgEditValidateHS_aspx','2','2/13/2011','N','N') , ('1002','fugTariffAnalyzer_aspx','2','2/13/2011','N','N') , ('1002','fxdAddImporter_aspx','2','4/11/2011','N','N') , ('1002','fxdAddImporterReplies_aspx','2','4/11/2011','N','N') , ('1002','fxdAddImporterReplyDetail_aspx','2','4/11/2011','N','N') , ('1002','fxdAddImporterSummary_aspx','2','4/11/2011','N','N') , ('1002','fxdAddManufacturer_aspx','2','4/11/2011','N','N') , ('1002','fxdAddManufacturerReplies_aspx','2','4/11/2011','N','N') , ('1002','fxdAddManufacturerReplyDetail_aspx','2','4/11/2011','N','N') , ('1002','fxdAddManufacturerSummary_aspx','2','4/11/2011','N','N') , ('1002','fxdQueryManufacturer_aspx','2','4/11/2011','N','N') , ('1002','fxdInvoiceAssignment_aspx','2','2/17/2016','N','N') , ('1002','fmgSolicitationAdministration_aspx','2','7/28/2011','N','N') , ('1002','fmgSolicitationManagement_aspx','2','7/28/2011','N','N') , ('1002','frdMXFixedAssets_aspx','2','7/20/2011','N','N') , ('1002','frdMXFixedAssetTransactionAudit_aspx','2','7/20/2011','N','N') , ('1001','fugRenderExcel_aspx','2','8/14/2011','N','N') , ('1001','fugOpenEmail_aspx','2','4/22/2013','N','N') , ('1002','fugRenderExcel_aspx','2','8/14/2011','N','N') , ('1001','fudCharts_aspx','0','9/6/2011','N','N') , ('1002','fudCharts_aspx','2','9/6/2011','N','N') , ('1002','ffdMXBulkInvoiceGeneration_aspx','2','4/11/2011','N','N') , ('1002','fmdExportFTASetup_aspx','2','4/25/2011','N','N') , ('1002','fxdQueryImporterBond_aspx','2','6/11/2011','N','N') , ('1001','fudGlobalDashboard_aspx','1','6/11/2011','N','N') , ('1002','fudGlobalDashboard_aspx','X','6/11/2011','N','N') , ('1001','fugGlobalTariffsDetail_aspx','2','10/3/2013','N','N') , ('1001','fugViewDocument_aspx','2','6/16/2011','N','N') , ('1002','fmgContentCache_aspx','2','1/31/2018','N','N') , ('1002','AESMissingShipment_aspx','2','9/6/2011','N','N') , ('1002','EditDetail_aspx','2','9/6/2011','N','N') , ('1002','EditGeneric_aspx','2','9/6/2011','N','N') , ('1002','AddLicenseProduct_aspx','2','10/4/2012','N','N') , ('1002','fmdExportLicenseManagement_aspx','2','9/6/2011','N','N') , ('1001','fudWebServiceSetup_aspx','0','9/6/2011','N','N') , ('1002','fudWebServiceSetup_aspx','2','9/6/2011','N','N') , ('1002','fugPTIInfo_aspx','2','3/8/2018','N','N') , ('1002','fugPartnerTestingManagement_aspx','2','5/4/2018','N','N') , ('1001','fudGlobalDashboardManagement_aspx','0','11/7/2011','N','N') , ('1002','fudGlobalDashboardManagement_aspx','2','11/7/2011','N','N') , ('1002','fmdFTAReportSetup_aspx','2','7/27/2018','N','N') , ('1001','fmdScopeOfAuthority_aspx','1','11/7/2011','N','N') , ('1002','fmdScopeOfAuthority_aspx','2','11/7/2011','N','N') , ('1001','fudGlobalDashboard69_aspx','1','11/7/2011','N','N') , ('1002','fudGlobalDashboard69_aspx','X','11/7/2011','N','N') , ('1002','fmgClassificationSetBreakDown_aspx','2','10/3/2013','N','N') , ('1002','frdMCSGeneration_aspx','2','3/13/2014','N','N') , ('1002','fxdMXSAAIBatchSend_aspx','2','6/5/2013','N','N') , ('1003','fxdMXSAAIBatchSend_aspx','2','6/5/2013','N','N') , ('1002','fxdMXProcessSaaiResponses_aspx','2','6/5/2013','N','N') , ('1003','fxdMXProcessSaaiResponses_aspx','2','6/5/2013','N','N') , ('1002','TriviaGame_aspx','2','6/11/2013','N','N') , ('1002','fugTradeOpsFA_aspx','2','6/5/2013','N','N') , ('1002','SearchFiles_aspx','2','6/5/2013','N','N') , ('1002','fidNCTS_aspx','2','6/12/2013','N','N') , ('1002','EditRemarks_aspx','2','6/12/2013','N','N') , ('1002','EditTransit_aspx','2','6/12/2013','N','N') , ('1002','fxdMXWorkWithPedimentos_aspx','2','6/21/2013','N','N') , ('1001','ffdCF7501WeeklyEntryFormRS_aspx','2','7/19/2013','N','N') , ('1002','fsgGroupDetailSetup_aspx','1','10/3/2013','N','N') , ('1001','fmgHTSUpdates_aspx','2','8/25/2014','N','N') , ('1003','fmgHTSUpdates_aspx','2','8/25/2014','N','N') , ('1002','fxdEntryReplies_aspx','2','5/13/2010','N','N') , ('1002','fxdEntryPayConfirmation_aspx','2','5/13/2010','N','N') , ('1002','fxdEntryStatements_aspx','2','5/13/2010','N','N') , ('1002','fxdMonthlyStatements_aspx','2','5/13/2010','N','N') , ('1002','ffdCF7501WeeklyEntryFormRS_aspx','2','7/19/2013','N','N') , ('1002','fmgRequestHeaderSecurity_aspx','2','11/16/2018','N','N') , ('1002','fxdShipmentConsolidation_aspx','2','2/17/2016','N','N') , ('1002','fugGlobalTariffsDetail_aspx','2','10/3/2013','N','N') , ('1002','fmgSubscriptionManagement_aspx','2','10/3/2013','N','N') , ('1002','fmgTransactionCustomRules_aspx','2','1/17/2019','N','N') , ('1002','frdMXManifestacionDeValor_aspx','2','10/3/2013','N','N') , ('1003','frdMXManifestacionDeValor_aspx','2','10/3/2013','N','N') , ('1002','frdMXRelacionDeDocumentos_aspx','2','10/3/2013','N','N') , ('1003','frdMXRelacionDeDocumentos_aspx','2','10/3/2013','N','N') , ('1002','frdManifestacionDeValor_aspx','2','10/3/2013','N','N') , ('1003','frdManifestacionDeValor_aspx','2','10/3/2013','N','N') , ('1002','frdCurrentTankInventory_aspx','2','6/15/2012','N','N') , ('1001','fugGlobalTariffsLookup_aspx','2','10/3/2013','N','N') , ('1002','fugGlobalTariffsLookup_aspx','2','10/3/2013','N','N') , ('1002','frdPostEntryAmendment_aspx','2','6/15/2012','N','N') , ('1001','fugGlobalTariffs_aspx','2','10/3/2013','N','N') , ('1002','fugGlobalTariffs_aspx','2','10/3/2013','N','N') , ('1001','fmgTransactionCustomRules_aspx','1','1/17/2019','N','N') , ('1002','frdSDIInvoice_aspx','2','6/15/2012','N','N') , ('1001','fugTariffUpdates_aspx','2','10/3/2013','N','N') , ('1002','fugTariffUpdates_aspx','2','10/3/2013','N','N') , ('1002','frdSDWInvoice_aspx','2','6/15/2012','N','N') , ('1002','frdTankDistributionLayerUsage_aspx','2','6/15/2012','N','N') , ('1002','frdTankReceiptTransactionalHistory_aspx','2','6/15/2012','N','N') , ('1002','frdTankShipmentAllocation_aspx','2','6/15/2012','N','N') , ('1002','ManageLicenses_aspx','2','10/19/2012','N','N') , ('1002','fxdDrawback_aspx','2','10/31/2012','N','N') , ('1002','fxdDrawbackSummary_aspx','2','10/31/2012','N','N') , ('1001','fugECCNDetail_aspx','2','10/3/2013','N','N') , ('1002','fugECCNDetail_aspx','2','10/3/2013','N','N') , ('1002','fugCountryInfoDetail_aspx','2','11/7/2011','N','N') , ('1002','fugSearchDetail_aspx','2','11/7/2011','N','N') , ('1001','fugOpenSearchImproved_aspx','2','1/18/2013','N','N') , ('1002','fugOpenSearchImproved_aspx','2','1/18/2013','N','N') , ('1001','fugECCN_aspx','2','10/3/2013','N','N') , ('1002','fugECCN_aspx','2','10/3/2013','N','N') , ('1001','fxdFutureHS_aspx','2','12/28/2011','N','N') , ('1002','fxdFutureHS_aspx','2','12/28/2011','N','N') , ('1002','fxdZoneToZoneOverlay_aspx','2','1/1/1900','N','N') , ('1002','fxdZoneToZoneTransfer_aspx','2','1/1/1900','N','N') , ('1002','fxx102100TxnUpload_aspx','2','1/1/1900','N','N') , ('1002','fxx500300TxnUpload_aspx','2','1/1/1900','N','N') , ('1002','fxxExecuteUpdate_aspx','2','1/1/1900','N','N') , ('1002','fxxExecuteUpdateWithParameters_aspx','2','1/1/1900','N','N') , ('1002','fxxImportBOM_aspx','2','1/1/1900','N','N') , ('1002','fxxImportCisco214_aspx','2','1/1/1900','N','N') , ('1002','fxxImportCommercialPricing_aspx','2','1/1/1900','N','N') , ('1002','fxxImportSamsungBOM_aspx','2','1/1/1900','N','N') , ('1002','fxxInvoiceDeletionBatchSQL_aspx','2','1/1/1900','N','N') , ('1002','fxxLotShipments_aspx','2','1/1/1900','N','N') , ('1002','fxxManualOverrides_aspx','2','1/1/1900','N','N') , ('1002','fxxManufacturedLotShipments_aspx','2','1/1/1900','N','N') , ('1002','fxxSpecificInventoryShipments_aspx','2','1/1/1900','N','N') , ('1002','GlobalTariffLookup_aspx','2','1/1/1900','N','N') , ('1002','LogicalProperties_aspx','2','1/1/1900','N','N') , ('1002','Logon_aspx','2','1/1/1900','N','N') , ('1002','Maintenance_aspx','2','1/1/1900','N','N') , ('1002','ManualReceipts_aspx','2','1/1/1900','N','N') , ('1002','ManualShipments_aspx','2','1/1/1900','N','N') , ('1002','Monitor_aspx','2','1/1/1900','N','N') , ('1002','MXZoneScrapInvoice_aspx','2','1/1/1900','N','N') , ('1002','MXZoneScrapInvoice_Original_aspx','2','1/1/1900','N','N') , ('1002','OLDfrdMXInegiReport_aspx','2','1/1/1900','N','N') , ('1002','Post_aspx','2','1/1/1900','N','N') , ('1002','ProductGroupUpdate_aspx','2','1/1/1900','N','N') , ('1002','QuickSearch_aspx','2','1/1/1900','N','N') , ('1002','RejectDoc_aspx','2','1/1/1900','N','N') , ('1002','rrdComponentBalanceAudit','2','1/1/1900','N','N') , ('1002','Search_aspx','2','1/1/1900','N','N') , ('1002','SecureExample_aspx','2','1/1/1900','N','N') , ('1002','TaskManager_aspx','2','1/1/1900','N','N') , ('1002','TestDriver_aspx','2','1/1/1900','N','N') , ('1002','txdAssist_aspx','2','1/1/1900','N','N') , ('1002','Upload_aspx','2','1/1/1900','N','N') , ('1002','UploadReceipts_aspx','2','1/1/1900','N','N') , ('1002','WebForm1_aspx','2','1/1/1900','N','N') , ('1001','1083','2','1/1/2004','N','N') , ('1002','fugHsReferenceImproved_aspx','2','7/27/2010','N','N') , ('1002','fugSourcingMatrix_aspx','2','7/27/2010','N','N') , ('1002','fxdEntry_aspx','2','2/14/2011','N','N') , ('1002','fmgAddMaintenanceData_aspx','2','4/4/2012','N','N') , ('1002','fxdMXConstanciaReceipt_aspx','2','4/4/2012','N','N') , ('1001','1084','1','1/1/2004','N','N') , ('1001','1083','1','1/1/2004','N','N') , ('1002','fugGlobalTariffsChargeDetail_aspx','2','4/18/2012','N','N') , ('1002','fugSearchHistoryDetail_aspx','2','4/18/2012','N','N') , ('1002','fugContentAttributes_aspx','2','4/18/2012','N','N') , ('1002','fxdMXProcessCOVE_aspx','2','4/18/2012','N','N') , ('1002','fmgLogo_aspx','2','5/9/2012','N','N') , ('1001','EntityDetail_aspx','2','1/30/2012','N','N') , ('1002','EntityDetail_aspx','2','1/30/2012','N','N') , ('1002','fidSetKitManagement_aspx','2','9/14/2010','N','N') , ('1002','fmdClassificationAssignment_aspx','2','10/10/2013','N','N') , ('1002','fxdESQuery_aspx','2','11/13/2013','N','N') , ('1002','fmdDecisionTreeEditor_aspx','2','11/22/2013','N','N') , ('1002','fugWFManagement_aspx','2','10/21/2013','N','N') , ('1002','fmdDecisionTreeViewer_aspx','2','11/22/2013','N','N') , ('1002','frdMXPedimentoAgingInquiry_aspx','2','12/17/2013','N','N') , ('1003','frdMXPedimentoAgingInquiry_aspx','2','12/17/2013','N','N') , ('1002','EvaluateAES_aspx','2','12/17/2013','N','N') , ('1001','fmgKnowledgeCommunityDashboard_aspx','2','2/24/2014','N','N') , ('1002','fmgKnowledgeCommunityDashboard_aspx','2','2/24/2014','N','N') , ('1001','fugKnowledgeCommunityProfile_aspx','2','2/24/2014','N','N') , ('1002','fugKnowledgeCommunityProfile_aspx','2','2/24/2014','N','N') , ('1002','DemoMas_aspx','2','6/19/2017','N','N') , ('1002','fxdDPSQuery_aspx','2','4/19/2012','N','N') , ('1002','fidConsolidate_add_links_aspx','2','6/19/2017','N','N') , ('1002','fidDynamicConsolidate_aspx','2','6/19/2017','N','N') , ('1002','fidConsolidate_aspx','2','2/22/2012','N','N') , ('1002','fidFRConsolidate_aspx','2','6/19/2017','N','N') , ('1002','fidFRDConsolidate_aspx','2','6/19/2017','N','N') , ('1002','fidImportLicenses_aspx','2','6/19/2017','N','N') , ('1001','fmgProductLookup_asp','0','4/4/2012','N','N') , ('1002','fmgProductLookup_asp','2','4/4/2012','N','N') , ('1001','fmdGlobalProductView','0','4/4/2012','N','N') , ('1002','fmdGlobalProductView','2','4/4/2012','N','N') , ('1002','fugTariffAnalyzerNew_aspx','2','4/4/2012','N','N') , ('1002','fxdMXConstanciaCapture_aspx','2','4/4/2012','N','N') , ('1002','EmailShipment_aspx','2','4/4/2012','N','N') , ('1002','fmdExportEmailTemplate_aspx','2','4/4/2012','N','N') , ('1002','fipScrubTransactions_aspx','2','1/1/1900','N','N') , ('1002','fmdAESPasswordEdit_aspx','2','1/1/1900','N','N') , ('1002','fmdClassificationEdit_aspx','2','1/1/1900','N','N') , ('1002','fmdClassificationQuickSearch_aspx','2','1/1/1900','N','N') , ('1002','fmdClassificationSearch_aspx','2','1/1/1900','N','N') , ('1002','fmdInterCountryShipmentRequirements_aspx','2','1/1/1900','N','N') , ('1002','fmdSetBreakdown_aspx','2','1/1/1900','N','N') , ('1002','fmgAddDeniedPerson_aspx','2','1/1/1900','N','N') , ('1002','fmgAddECCNData_aspx','2','1/1/1900','N','N') , ('1002','fmgAddHSData_aspx','2','1/1/1900','N','N') , ('1002','fmgCompany_aspx','2','1/1/1900','N','N') , ('1002','fmgCompanyMaintenance_aspx','2','1/1/1900','N','N') , ('1002','fmgDTSSpreadsheetImport_aspx','2','1/1/1900','N','N') , ('1002','fmgEditRegList_aspx','2','1/1/1900','N','N') , ('1002','fmgExchangeValidation_aspx','2','1/1/1900','N','N') , ('1002','fmgImportFile_aspx','2','1/1/1900','N','N') , ('1002','fmgRulesEntry_aspx','2','1/1/1900','N','N') , ('1002','fmgSearch_aspx','2','1/1/1900','N','N') , ('1002','fmgSQL_aspx','2','1/1/1900','N','N') , ('1002','fmpAttributionConfiguration_aspx','2','1/1/1900','N','N') , ('1002','fmpConsumptionEntries_aspx','2','1/1/1900','N','N') , ('1002','fmpProducibilityMatrix_aspx','2','1/1/1900','N','N') , ('1002','fmpProductMaster_aspx','2','1/1/1900','N','N') , ('1002','ForeignStatusCalculator_aspx','2','1/1/1900','N','N') , ('1002','fppRecordReservationsAndHolds_aspx','2','1/1/1900','N','N') , ('1002','fppReviewMonthlyReconciliation_aspx','2','1/1/1900','N','N') , ('1002','frd100200VehicleEntryReport_aspx','2','1/1/1900','N','N') , ('1002','frd101800ProformaAddendumReport_aspx','2','1/1/1900','N','N') , ('1002','frdAnnualMaquilaReport_aspx','2','1/1/1900','N','N') , ('1002','frdAnnualReconciliationReportByLot_aspx','2','1/1/1900','N','N') , ('1002','frdAssistDetailReport_aspx','2','1/1/1900','N','N') , ('1002','frdAssistSummaryReport_aspx','2','1/1/1900','N','N') , ('1002','frdComponentBalanceAuditReportByLot_aspx','2','1/1/1900','N','N') , ('1002','frdContainerTrackingReport_aspx','2','1/1/1900','N','N') , ('1002','frdControlShipment_aspx','2','1/1/1900','N','N') , ('1002','frdDistributionLayerUsageReport_aspx','2','1/1/1900','N','N') , ('1002','frdDistributionRunningBalanceReport_aspx','2','1/1/1900','N','N') , ('1002','frdFinishedGoodBalanceAuditReport_aspx','2','1/1/1900','N','N') , ('1002','frdFinishedGoodBalanceAuditReportByLot_aspx','2','1/1/1900','N','N') , ('1002','frdFTAAnalysisReport_aspx','2','1/1/1900','N','N') , ('1002','frdFTACert_aspx','2','1/1/1900','N','N') , ('1002','frdFTACertMultiSelect_aspx','2','1/1/1900','N','N') , ('1002','frdFTAComponentDuty_aspx','2','1/1/1900','N','N') , ('1002','frdFTAShipmentAndComponentDetail_aspx','2','1/1/1900','N','N') , ('1002','frdFTASupplierCert_aspx','2','1/1/1900','N','N') , ('1002','frdFTZInventoryAuditReport_aspx','2','1/1/1900','N','N') , ('1002','frdGenericReport_aspx','2','1/1/1900','N','N') , ('1002','frdHMFDetailReport_aspx','2','1/1/1900','N','N') , ('1002','frdIntrastat_aspx','2','1/1/1900','N','N') , ('1002','frdInventoryBalanceAuditReport_aspx','2','1/1/1900','N','N') , ('1002','frdInventoryBalByLocationReport_aspx','2','1/1/1900','N','N') , ('1002','frdInvoice_aspx','2','1/1/1900','N','N') , ('1002','frdLotGenealogy_aspx','2','1/1/1900','N','N') , ('1002','frdMXInegiReport_aspx','2','1/1/1900','N','N') , ('1002','frdMXInegiReportOLD_aspx','2','1/1/1900','N','N') , ('1002','frdMXInventoryAudit_aspx','2','1/1/1900','N','N') , ('1002','frdMXInventoryHistory_aspx','2','1/1/1900','N','N') , ('1002','frdMXOpenPedimentoReport_aspx','2','1/1/1900','N','N') , ('1002','frdMXPedimentoSummary_aspx','2','1/1/1900','N','N') , ('1002','frdMXScrapTransactionAudit_aspx','2','1/1/1900','N','N') , ('1002','frdMXShipmentTransactionAudit_aspx','2','1/1/1900','N','N') , ('1002','frdMXTransactionAudit_aspx','2','1/1/1900','N','N') , ('1002','frdNAFTACert_aspx','2','1/1/1900','N','N') , ('1002','frdNonFTACert_aspx','2','1/1/1900','N','N') , ('1002','frdOpenCF214Report_aspx','2','1/1/1900','N','N') , ('1002','frdPackingListReport_aspx','2','1/1/1900','N','N') , ('1002','frdPartHistoryReport_aspx','2','1/1/1900','N','N') , ('1002','frdPedimentoListingReport_aspx','2','1/1/1900','N','N') , ('1002','frdProductHistoryReportWithLOT_aspx','2','1/1/1900','N','N') , ('1002','frdProductShipmentReport_aspx','2','1/1/1900','N','N') , ('1002','frdReturnGoodsPCC_aspx','2','1/1/1900','N','N') , ('1002','frdRunningBalanceReport_aspx','2','1/1/1900','N','N') , ('1002','frdStrasbourgReport_aspx','2','1/1/1900','N','N') , ('1002','frdWeeklyCF3461ReconReport_aspx','2','1/1/1900','N','N') , ('1002','frdWeeklyOutboundReconReport_aspx','2','1/1/1900','N','N') , ('1002','frdWeeklyPedimentoSummary_aspx','2','1/1/1900','N','N') , ('1002','frdZoneActivityReport_aspx','2','1/1/1900','N','N') , ('1002','frpAnnualBoardReport_aspx','2','1/1/1900','N','N') , ('1002','frpAnnualReconReport_aspx','2','1/1/1900','N','N') , ('1002','frpAttributionDetailReport_aspx','2','1/1/1900','N','N') , ('1002','frpAttributionMessagesReport_aspx','2','1/1/1900','N','N') , ('1002','frpAttributionReviewReport_aspx','2','1/1/1900','N','N') , ('1002','frpAttributionSummaryReport_aspx','2','1/1/1900','N','N') , ('1002','frpInventoryLayersReport_aspx','2','1/1/1900','N','N') , ('1002','frpMonthlyGainLossReport_aspx','2','1/1/1900','N','N') , ('1002','frpProducibilityMatrixReport_aspx','2','1/1/1900','N','N') , ('1002','frpReceiptAttributionReport_aspx','2','1/1/1900','N','N') , ('1002','frpReservationsHoldsReport_aspx','2','1/1/1900','N','N') , ('1002','frpZoneReceiptsReport_aspx','2','1/1/1900','N','N') , ('1002','frpZoneSavingsReport_aspx','2','1/1/1900','N','N') , ('1002','fsgCountryAccess_aspx','2','1/1/1900','N','N') , ('1002','fsgNoAccess_aspx','2','1/1/1900','N','N') , ('1002','fsgSystemProcessing_aspx','2','1/1/1900','N','N') , ('1002','fudAuditLog_aspx','2','1/1/1900','N','N') , ('1002','fudBrokerDashboard_aspx','2','1/1/1900','N','N') , ('1002','fudCreatePeriodBalancesByLot_aspx','2','1/1/1900','N','N') , ('1002','fudPTRFormTracer_aspx','2','1/1/1900','N','N') , ('1002','fudPTRFormTracerDetail_aspx','2','1/1/1900','N','N') , ('1002','fudPTRTransactionDetail_aspx','2','1/1/1900','N','N') , ('1002','fug100200PackingCostAlloc_aspx','2','1/1/1900','N','N') , ('1002','fug101800LotNumberUpdate_aspx','2','1/1/1900','N','N') , ('1002','fugAccessConfigFiles_aspx','2','1/1/1900','N','N') , ('1002','fugAccessLogFiles_aspx','2','1/1/1900','N','N') , ('1002','fugAccessReportFiles_aspx','2','1/1/1900','N','N') , ('1002','fugAuditClassifications_aspx','2','1/1/1900','N','N') , ('1002','fugBarcodeGenerator_aspx','2','1/1/1900','N','N') , ('1002','fugBOMImport_aspx','2','1/1/1900','N','N') , ('1002','fugBOMUpload_aspx','2','1/1/1900','N','N') , ('1002','fugClassificationVerification_aspx','2','1/1/1900','N','N') , ('1002','fugCompareHTS_aspx','2','1/1/1900','N','N') , ('1002','fugCountryReference_aspx','2','1/1/1900','N','N') , ('1002','fugDataView_aspx','2','1/1/1900','N','N') , ('1002','fugDocumentRequests_aspx','2','1/1/1900','N','N') , ('1002','fugDocumentRetention_aspx','2','1/1/1900','N','N') , ('1002','fugDownloadFiles_aspx','2','1/1/1900','N','N') , ('1002','fxdEmailNotificationsConfiguration_aspx','2','11/1/2012','N','N') , ('1002','fugEditCF214_aspx','2','1/1/1900','N','N') , ('1002','fugFTABOMAnalysis_aspx','2','1/1/1900','N','N') , ('1002','fugGenealogy_aspx','2','1/1/1900','N','N') , ('1002','fugHsReference_aspx','2','1/1/1900','N','N') , ('1002','fxdNAFTAForeignDuty_aspx','2','8/2/2010','N','N') , ('1002','fxdNAFTAResponses_aspx','2','8/2/2010','N','N') , ('1002','fugLandedCostAnalyzer_aspx','2','6/14/2011','N','N') , ('1003','fugGlobalTariffsDetail_aspx','2','3/25/2014','N','N') , ('1003','fugGlobalTariffsLookup_aspx','2','3/25/2014','N','N') , ('1003','fugGlobalTariffs_aspx','2','3/25/2014','N','N') , ('1002','fmdEditClassification_aspx','2','12/17/2013','N','N') , ('1002','fmgEditClassificationLayoutUpload_aspx','2','12/17/2013','N','N') , ('1003','frdAnnualFTZBoardReportRS_aspx','2','1/8/2014','N','N') , ('1003','fugECCNDetail_aspx','2','3/25/2014','N','N') , ('1001','fugRegulationListUpdates_aspx','2','1/13/2014','N','N') , ('1002','fugRegulationListUpdates_aspx','2','1/13/2014','N','N') , ('1002','1000','2','1/1/1900','N','N') , ('1002','1001','2','1/1/1900','N','N') , ('1002','1003','2','1/1/1900','N','N') , ('1002','1004','2','1/1/1900','N','N') , ('1002','1005','2','1/1/1900','N','N') , ('1002','1006','2','1/1/1900','N','N') , ('1002','1007','2','1/1/1900','N','N') , ('1002','1008','2','1/1/1900','N','N') , ('1002','1009','2','1/1/1900','N','N') , ('1002','1010','2','1/1/1900','N','N') , ('1002','1011','2','1/1/1900','N','N') , ('1002','1012','2','1/1/1900','N','N') , ('1002','1013','2','1/1/1900','N','N') , ('1002','1014','2','1/1/1900','N','N') , ('1002','1015','2','1/1/1900','N','N') , ('1002','1016','2','1/1/1900','N','N') , ('1002','1017','2','1/1/1900','N','N') , ('1002','1018','2','1/1/1900','N','N') , ('1002','1019','2','1/1/1900','N','N') , ('1002','1020','2','1/1/1900','N','N') , ('1002','1021','2','1/1/1900','N','N') , ('1002','1022','2','1/1/1900','N','N') , ('1002','1023','2','1/1/1900','N','N') , ('1002','1024','2','1/1/1900','N','N') , ('1002','1025','2','1/1/1900','N','N') , ('1002','1026','2','1/1/1900','N','N') , ('1002','1027','2','1/1/1900','N','N') , ('1002','1028','2','1/1/1900','N','N') , ('1002','1029','2','1/1/1900','N','N') , ('1002','1030','2','1/1/1900','N','N') , ('1002','1031','2','1/1/1900','N','N') , ('1002','1032','2','1/1/1900','N','N') , ('1002','1033','2','1/1/1900','N','N') , ('1002','1034','2','1/1/1900','N','N') , ('1002','1035','2','1/1/1900','N','N') , ('1002','1036','2','1/1/1900','N','N') , ('1002','1037','2','1/1/1900','N','N') , ('1002','1038','2','1/1/1900','N','N') , ('1002','1040','2','1/1/1900','N','N') , ('1002','1041','2','1/1/1900','N','N') , ('1002','1042','2','1/1/1900','N','N') , ('1002','1043','2','1/1/1900','N','N') , ('1002','1044','2','1/1/1900','N','N') , ('1002','1045','2','1/1/1900','N','N') , ('1002','1046','2','1/1/1900','N','N') , ('1002','1047','2','1/1/1900','N','N') , ('1002','1048','2','1/1/1900','N','N') , ('1002','1049','2','1/1/1900','N','N') , ('1002','1050','2','1/1/1900','N','N') , ('1002','1051','2','1/1/1900','N','N') , ('1002','1052','2','1/1/1900','N','N') , ('1002','1053','2','1/1/1900','N','N') , ('1002','1054','2','1/1/1900','N','N') , ('1002','1055','2','1/1/1900','N','N') , ('1002','1056','2','1/1/1900','N','N') , ('1002','1057','2','1/1/1900','N','N') , ('1002','1058','2','1/1/1900','N','N') , ('1002','1059','2','1/1/1900','N','N') , ('1002','1060','2','1/1/1900','N','N') , ('1002','1061','2','1/1/1900','N','N') , ('1002','1062','2','1/1/1900','N','N') , ('1002','1063','2','1/1/1900','N','N') , ('1002','1064','2','1/1/1900','N','N') , ('1002','1065','2','1/1/1900','N','N') , ('1002','1066','2','1/1/1900','N','N') , ('1002','1067','2','1/1/1900','N','N') , ('1002','1068','2','1/1/1900','N','N') , ('1002','1069','2','1/1/1900','N','N') , ('1002','1070','2','1/1/1900','N','N') , ('1002','1071','2','1/1/1900','N','N') , ('1002','1072','2','1/1/1900','N','N') , ('1002','1073','2','1/1/1900','N','N') , ('1002','1074','2','1/1/1900','N','N') , ('1002','1075','2','1/1/1900','N','N') , ('1002','1076','2','1/1/1900','N','N') , ('1002','1077','2','1/1/1900','N','N') , ('1002','1078','2','1/1/1900','N','N') , ('1002','1079','2','1/1/1900','N','N') , ('1002','1080','2','1/1/1900','N','N') , ('1002','1081','2','1/1/1900','N','N') , ('1002','1082','2','1/1/1900','N','N') , ('1002','1083','2','1/1/1900','N','N') , ('1002','1084','2','1/1/1900','N','N') , ('1002','1085','2','1/1/1900','N','N') , ('1002','1086','2','1/1/1900','N','N') , ('1002','1087','2','1/1/1900','N','N') , ('1002','AuditLog_aspx','2','1/1/1900','N','N') , ('1002','BrokerDashboard_aspx','2','1/1/1900','N','N') , ('1002','Calendar_aspx','2','1/1/1900','N','N') , ('1002','CompanyProductRequest_aspx','2','1/1/1900','N','N') , ('1002','Copy of fmdItemMaster_aspx','2','1/1/1900','N','N') , ('1002','CountryAccess_aspx','2','1/1/1900','N','N') , ('1002','Default_aspx','2','1/1/1900','N','N') , ('1002','DiscreteDisplayHelp_aspx','2','1/1/1900','N','N') , ('1002','DiscreteHelp_aspx','2','1/1/1900','N','N') , ('1002','dtswebservice_asmx','2','1/1/1900','N','N') , ('1002','Edit_aspx','2','1/1/1900','N','N') , ('1002','f100300DutyPosting_aspx','2','1/1/1900','N','N') , ('1002','fapAttribution_aspx','2','1/1/1900','N','N') , ('1002','fapReverseProcessing_aspx','2','1/1/1900','N','N') , ('1002','fapReverseProcessingInternal_aspx','2','1/1/1900','N','N') , ('1002','ffdCF214Domestic_aspx','2','1/1/1900','N','N') , ('1002','ffdCF3461EntryImmediateDelivery_aspx','2','1/1/1900','N','N') , ('1002','ffdCF3461ImmediateDeliveryForm_aspx','2','1/1/1900','N','N') , ('1002','ffdCF7512QPWP_aspx','2','1/1/1900','N','N') , ('1002','ffdCF7512TransportationEntryForm_aspx','2','1/1/1900','N','N') , ('1002','ffdCHIEFAdmissionForm_aspx','2','1/1/1900','N','N') , ('1002','ffdCHIEFFSDAdmissionForm_aspx','2','1/1/1900','N','N') , ('1002','ffdCHIEFIntrastatAdmissionForm_aspx','2','1/1/1900','N','N') , ('1002','ffdDiscretePrepareCF3461Estimate_aspx','2','1/1/1900','N','N') , ('1002','ffdManualDeliveryTicket_aspx','2','1/1/1900','N','N') , ('1002','ffdMXHighSecuritySeal_aspx','2','1/1/1900','N','N') , ('1002','ffdMXInvoiceHeader_aspx','2','1/1/1900','N','N') , ('1002','ffdMXPedimentoHeader_aspx','2','1/1/1900','N','N') , ('1002','ffdMXPedimentoWeeklyEntryForm_aspx','2','1/1/1900','N','N') , ('1002','ffdMXWeeklyPedimento_aspx','2','1/1/1900','N','N') , ('1002','ffdMXWeeklyPedimentoForm_aspx','2','1/1/1900','N','N') , ('1002','ffdMXZoneScrapInvoice_aspx','2','1/1/1900','N','N') , ('1002','ffdMXZoneScrapInvoice_WOVAL_aspx','2','1/1/1900','N','N') , ('1002','ffdPTT_aspx','2','1/1/1900','N','N') , ('1002','fffPrepareCF216Blanket_aspx','2','1/1/1900','N','N') , ('1002','fffPrepareCF3461Estimate_aspx','2','1/1/1900','N','N') , ('1002','ffpPrepareCF214Admission_aspx','2','1/1/1900','N','N') , ('1002','ffpPrepareCF349HarborMaintenance_aspx','2','1/1/1900','N','N') , ('1002','ffpPrepareCF7501FtzEntry_aspx','2','1/1/1900','N','N') , ('1002','ffpPrepareCF7501Reconciliation_aspx','2','1/1/1900','N','N') , ('1002','ffpPrepareCF7512Outbound_aspx','2','1/1/1900','N','N') , ('1002','fid107201BOMView_aspx','2','1/1/1900','N','N') , ('1002','fid500100ManualReceipts_aspx','2','1/1/1900','N','N') , ('1002','fidAESReportEntry_aspx','2','1/1/1900','N','N') , ('1002','fidAESReportEntryICSR_aspx','2','1/1/1900','N','N') , ('1002','fidAESReportStatus_aspx','2','1/1/1900','N','N') , ('1002','fidBOMAnalysisUpload_aspx','2','1/1/1900','N','N') , ('1002','fidCreateTransportEvent_aspx','2','1/1/1900','N','N') , ('1002','fidCreateTransportEventNotification_aspx','2','1/1/1900','N','N') , ('1002','fidE7512_aspx','2','1/1/1900','N','N') , ('1002','fidEManifest_aspx','2','1/1/1900','N','N') , ('1002','fidExportCISLI_aspx','2','1/1/1900','N','N') , ('1002','fidExportEntry_aspx','2','1/1/1900','N','N') , ('1002','fidFTABOMDetailView_aspx','2','1/1/1900','N','N') , ('1002','fidFTABOMRulesAnalysis_aspx','2','1/1/1900','N','N') , ('1002','fidFTABOMRulesAnalysisMultiSelect_aspx','2','1/1/1900','N','N') , ('1002','fidFTAMassAnalysis_aspx','2','1/1/1900','N','N') , ('1002','fidGenericFileExport_aspx','2','1/1/1900','N','N') , ('1002','fidIMCompletion_aspx','2','1/1/1900','N','N') , ('1002','fidListTransportEvents_aspx','2','1/1/1900','N','N') , ('1002','fidLookupTransportID_aspx','2','1/1/1900','N','N') , ('1002','fidLotSampling_aspx','2','1/1/1900','N','N') , ('1002','fidManualProduction_aspx','2','1/1/1900','N','N') , ('1002','fidProductFTAMaint_aspx','2','1/1/1900','N','N') , ('1002','fidTerminalProcessing_aspx','2','1/1/1900','N','N') , ('1002','fipGenerateCensusFile_aspx','2','1/1/1900','N','N') , ('1002','fipImportMonthlyReconciliation_aspx','2','1/1/1900','N','N') , ('1002','fipImportPriceFile_aspx','2','1/1/1900','N','N') , ('1002','fugHsReferenceDetail_aspx','2','1/1/1900','N','N') , ('1002','fugHTSQuery_aspx','2','1/1/1900','N','N') , ('1002','fugHTSUpdate_aspx','2','1/1/1900','N','N') , ('1002','fugImportEHandbook_aspx','2','1/1/1900','N','N') , ('1002','fugImportFileToTable_aspx','2','1/1/1900','N','N') , ('1002','fugInvoiceClearingStatus_aspx','2','1/1/1900','N','N') , ('1002','fugMassUpdate_aspx','2','1/1/1900','N','N') , ('1002','fugMatchHTS_aspx','2','1/1/1900','N','N') , ('1002','fugOpenSearch_aspx','2','1/1/1900','N','N') , ('1002','fugOpenUpdate_aspx','2','1/1/1900','N','N') , ('1002','fugRenderHTSExcel_aspx','2','1/1/1900','N','N') , ('1002','fugReprintExitDocID_aspx','2','1/1/1900','N','N') , ('1002','fugSavedQueries_aspx','2','1/1/1900','N','N') , ('1002','fugSupportTools_aspx','2','1/1/1900','N','N') , ('1002','fugUpdateTransportID_aspx','2','1/1/1900','N','N') , ('1002','fugUploadEHandbook_aspx','2','1/1/1900','N','N') , ('1002','fugVatReference_aspx','2','1/1/1900','N','N') , ('1002','fugVisitorLog_aspx','2','1/1/1900','N','N') , ('1002','fugWebTranslation_aspx','2','1/1/1900','N','N') , ('1002','fupMyDashboard_aspx','2','1/1/1900','N','N') , ('1002','fxd101806Invoice_aspx','2','1/1/1900','N','N') , ('1002','fxd100200EInvoice_aspx','2','1/1/1900','N','N') , ('1002','fxd100400AutoPopulateCF214Report_aspx','2','1/1/1900','N','N') , ('1002','fxd100400InsertFIFOReceipts_aspx','2','1/1/1900','N','N') , ('1002','fxd100400ZeroDutyEntryToExports_aspx','2','1/1/1900','N','N') , ('1002','fxd100400ZeroDutyExportsToEntry_aspx','2','1/1/1900','N','N') , ('1002','fxd101700_PotencyAdjust_aspx','2','1/1/1900','N','N') , ('1002','fxd214RelatedConcurrences_aspx','2','1/1/1900','N','N') , ('1002','fxd214Replies_aspx','2','1/1/1900','N','N') , ('1002','fxd214ReplyDetail_aspx','2','1/1/1900','N','N') , ('1002','fxd214ReplyFTDetail_aspx','2','1/1/1900','N','N') , ('1002','fxd214Summary_aspx','2','1/1/1900','N','N') , ('1002','fxdABIExceptions_aspx','2','1/1/1900','N','N') , ('1002','fmdDocumentEngineSetup_aspx','2','4/12/2011','N','N') , ('1002','fxdAddImporterReplyTDetail_aspx','2','1/1/1900','N','N') , ('1002','fxdAdministrativeMessagesDetail_aspx','2','1/1/1900','N','N') , ('1002','fxdAdministrativeMessagesQuery_aspx','2','1/1/1900','N','N') , ('1002','fxdAdministrativeMessagesSummary_aspx','2','1/1/1900','N','N') , ('1002','fxdAMSQuery_aspx','2','1/1/1900','N','N') , ('1002','fxdAMSQueryAirReplies_aspx','2','1/1/1900','N','N') , ('1002','fxdAMSQueryBOLReplies_aspx','2','1/1/1900','N','N') , ('1002','fxdAMSQueryITReplies_aspx','2','1/1/1900','N','N') , ('1002','fxdAMSQuerySummary_aspx','2','1/1/1900','N','N') , ('1002','fxdAssignCF7512QPWP_aspx','2','1/1/1900','N','N') , ('1002','fxdAssignE214_aspx','2','1/1/1900','N','N') , ('1002','fxdAssignExports_aspx','2','1/1/1900','N','N') , ('1002','fxdAssignHandbook_aspx','2','1/1/1900','N','N') , ('1002','fxdAssignMXExpInv_aspx','2','1/1/1900','N','N') , ('1002','fxdAssignMXImpInv_aspx','2','1/1/1900','N','N') , ('1002','fxdAssignNES_aspx','2','1/1/1900','N','N') , ('1002','fxdAssignSDI_aspx','2','1/1/1900','N','N') , ('1002','fxdAssignSDIDocs_aspx','2','1/1/1900','N','N') , ('1002','fxdAssignSDW_aspx','2','1/1/1900','N','N') , ('1002','fxdAssist_aspx','2','1/1/1900','N','N') , ('1002','fxdAutoPopulateCF214Manifest_aspx','2','1/1/1900','N','N') , ('1002','fxdAutoPopulateCF214ZoneToZone_aspx','2','1/1/1900','N','N') , ('1002','fxdBrokerImportDashboard_aspx','2','1/1/1900','N','N') , ('1002','fxdBrokerImportRecon_aspx','2','1/1/1900','N','N') , ('1002','fxdCHIEFEditAdmission_aspx','2','1/1/1900','N','N') , ('1002','fxdCHIEFMessageStatus_aspx','2','1/1/1900','N','N') , ('1002','fxdCHIEFReplies_aspx','2','1/1/1900','N','N') , ('1002','fxdCHIEFReplyDetail_aspx','2','1/1/1900','N','N') , ('1002','fxdCHIEFSummary_aspx','2','1/1/1900','N','N') , ('1002','fxdConcurrenceDetail_aspx','2','1/1/1900','N','N') , ('1002','fxdConcurrenceSummary_aspx','2','1/1/1900','N','N') , ('1002','fxdConcurReplies_aspx','2','1/1/1900','N','N') , ('1002','fxdConcurReplyDetail_aspx','2','1/1/1900','N','N') , ('1002','fxdConcurReplyFZDetail_aspx','2','1/1/1900','N','N') , ('1002','fxdDeemedExportEmployee_aspx','2','1/1/1900','N','N') , ('1002','fxdDeemedExportEmployeeProjects_aspx','2','1/1/1900','N','N') , ('1002','fxdDeemedExportPassports_aspx','2','1/1/1900','N','N') , ('1002','fxdDeemedExportProjects_aspx','2','1/1/1900','N','N') , ('1002','fxdDeemedExportVisa_aspx','2','1/1/1900','N','N') , ('1002','fxdDefaults_aspx','2','1/1/1900','N','N') , ('1002','fxdDTSHistory_aspx','2','1/1/1900','N','N') , ('1002','fxdDTSHistoryDetail_aspx','2','1/1/1900','N','N') , ('1002','fxdDTSNotes_aspx','2','1/1/1900','N','N') , ('1002','fxdDTSProductMapping_aspx','2','1/1/1900','N','N') , ('1002','fxdDTSQueryDetail_aspx','2','1/1/1900','N','N') , ('1002','fxdDTSRegulationList_aspx','2','1/1/1900','N','N') , ('1002','fxdDTSTransition_aspx','2','1/1/1900','N','N') , ('1002','fxdDTSWebServiceTest_aspx','2','1/1/1900','N','N') , ('1002','fxdECCNQuery_aspx','2','1/1/1900','N','N') , ('1002','fxdECCNQueryDetail_aspx','2','1/1/1900','N','N') , ('1002','fxdEditAdmission_aspx','2','1/1/1900','N','N') , ('1002','fxdEditValidationErrors_aspx','2','1/1/1900','N','N') , ('1002','fxdEntryValidation_aspx','2','1/1/1900','N','N') , ('1002','fxdEntryValidationAssignment_aspx','2','1/1/1900','N','N') , ('1002','fxdETempDeposit_aspx','2','1/1/1900','N','N') , ('1002','fxdEUManifestEntry_aspx','2','1/1/1900','N','N') , ('1002','fxdEXPInvPrep_aspx','2','1/1/1900','N','N') , ('1002','fxdExportLicenseEdit_aspx','2','1/1/1900','N','N') , ('1002','fxdFixedAssetProcessing_aspx','2','1/1/1900','N','N') , ('1002','fxdHTSQuery_aspx','2','1/1/1900','N','N') , ('1002','fxdImpInvPrep_aspx','2','1/1/1900','N','N') , ('1002','fxdImporterBondQuery_aspx','2','1/1/1900','N','N') , ('1002','fxdInterCountryShipmentRequirementList_aspx','2','1/1/1900','N','N') , ('1002','fxdItemActivation_aspx','2','1/1/1900','N','N') , ('1002','fxdKanbanRelease_aspx','2','1/1/1900','N','N') , ('1002','fxdLoadIntegrationFiles_aspx','2','1/1/1900','N','N') , ('1002','fxdLoadIntegrationFilesV2_aspx','2','1/1/1900','N','N') , ('1002','fxdManifestAssignment_aspx','2','1/1/1900','N','N') , ('1002','fxdManifestEntry_aspx','2','1/1/1900','N','N') , ('1002','fxdManualNOE_aspx','2','1/1/1900','N','N') , ('1002','fxdOrphanedComponentProcessing_aspx','2','1/1/1900','N','N') , ('1002','fxdPendingAdjustments_aspx','2','1/1/1900','N','N') , ('1002','fxdPerformReconciliation_aspx','2','1/1/1900','N','N') , ('1002','fxdPostEntryAmendment_aspx','2','1/1/1900','N','N') , ('1002','fxdReleaseLotScrap_aspx','2','1/1/1900','N','N') , ('1002','fxdScheduleStagingDataTransfer_aspx','2','1/1/1900','N','N') , ('1002','fxdSFD_aspx','2','1/1/1900','N','N') , ('1002','fxdShipmentReallocation_aspx','2','1/1/1900','N','N') , ('1002','fxdStagingRelease_aspx','2','1/1/1900','N','N') , ('1002','fxdSyncInventory_aspx','2','1/1/1900','N','N') , ('1002','fxdTempDeposit_aspx','2','1/1/1900','N','N') , ('1002','fxdTester_aspx','2','1/1/1900','N','N') , ('1002','fxdTransactionRecon_aspx','2','1/1/1900','N','N') , ('1002','fxdTransactionReview_aspx','2','1/1/1900','N','N') , ('1002','fxdTransactionSummary_aspx','2','1/1/1900','N','N') , ('1002','fxdTransportIdConsolidation_aspx','2','1/1/1900','N','N') , ('1002','fxdUpdateMidByTransportID_aspx','2','1/1/1900','N','N') , ('1002','fxdViewReconResults_aspx','2','1/1/1900','N','N') , ('1002','fxdZeroDutyExportsToEntry_aspx','2','1/1/1900','N','N') , ('1002','fxdZoneToZoneImport_aspx','2','1/1/1900','N','N') , ('1002','fxdZoneToZoneManualReconciliation_aspx','2','1/1/1900','N','N') , ('1002','wfAnnualFTZBoardReport_aspx','2','1/1/1900','N','N') , ('1002','wfAnnualReconciliationReport_aspx','2','1/1/1900','N','N') , ('1002','wfCF214FTZAdmissionForm_aspx','2','1/1/1900','N','N') , ('1002','wfCF3461ImmediateDeliveryForm_aspx','2','1/1/1900','N','N') , ('1002','wfCF349HarborMaintenanceFeeForm_aspx','2','1/1/1900','N','N') , ('1002','wfCF7501WeeklyEntryForm_aspx','2','1/1/1900','N','N') , ('1002','wfCF7512TransportationEntryForm_aspx','2','1/1/1900','N','N') , ('1002','wfComponentBalanceAuditReport_aspx','2','1/1/1900','N','N') , ('1002','wfContainerTrackingReport_aspx','2','1/1/1900','N','N') , ('1002','wfDashboard_aspx','2','1/1/1900','N','N') , ('1002','wfFGBalanceAuditReport_aspx','2','1/1/1900','N','N') , ('1002','wfFTZDutySavingsReport_aspx','2','1/1/1900','N','N') , ('1002','wfGlobalCodes_aspx','2','1/1/1900','N','N') , ('1002','wfOpenCF214Report_aspx','2','1/1/1900','N','N') , ('1002','wfPartHistoryReport_aspx','2','1/1/1900','N','N') , ('1002','wfPartMaster_aspx','2','1/1/1900','N','N') , ('1002','wfZoneValueReport_aspx','2','1/1/1900','N','N') , ('1002','xCopy OLD of fxdAssignMXExpInv_aspx','2','1/1/1900','N','N') , ('1002','frdShipmentProformaReport_aspx','2','8/18/2011','N','N') , ('1002','fmdSignature_aspx','2','4/25/2011','N','N') , ('1002','fugWSDemo_aspx','2','2/22/2019','N','N') , ('1001','fugBindingRulingsDetail_aspx','2','1/13/2014','N','N') , ('1002','fugBindingRulingsDetail_aspx','2','1/13/2014','N','N') , ('1002','fugAccessDocumentFiles_aspx','2','1/18/2016','N','N') , ('1001','fsgTranslationManagement_aspx','2','1/13/2014','N','N') , ('1002','fsgTranslationManagement_aspx','2','1/13/2014','N','N') , ('1003','fugECCN_aspx','2','3/25/2014','N','N') , ('1002','frpAttributionShipmentErrorReport_aspx','2','6/15/2012','N','N') , ('1002','fidCOOResults_aspx','2','1/15/2014','N','N') , ('1002','fidCOORulesAnalysis_aspx','2','1/15/2014','N','N') , ('1002','fidFTAWhatIf_aspx','2','1/21/2014','N','N') , ('1002','fugDifUploadFiles_aspx','2','1/30/2014','N','N') , ('1002','fugGTNDocuments_aspx','0','2/14/2014','N','N') , ('1002','fugGTNDocuments_aspx','2','2/14/2014','N','N') , ('1002','fmgStaticBom_aspx','2','4/8/2014','N','N') , ('1003','fmgStaticBom_aspx','2','4/8/2014','N','N') , ('1002','frdStaticBOMReport_aspx','2','4/8/2014','N','N') , ('1003','frdStaticBOMReport_aspx','2','4/8/2014','N','N') , ('1002','fmgHTSUpdates_aspx','2','7/1/2014','N','N') , ('1002','frd110304SupplierDeclaration_aspx','2','7/7/2014','N','N') , ('1002','frpProductMasterReport_aspx','2','6/15/2012','N','N') , ('1002','ffdMXDigitizeDocument_aspx','2','4/8/2014','N','N') , ('1003','ffdMXDigitizeDocument_aspx','2','4/8/2014','N','N') , ('1002','ffdMXWorkWithDigitizeDocuments_aspx','2','4/8/2014','N','N') , ('1003','ffdMXWorkWithDigitizeDocuments_aspx','2','4/8/2014','N','N') , ('1002','fugDocumentAnalyzer_aspx','2','4/8/2014','N','N') , ('1001','fugECCNLookup_aspx','2','4/8/2014','N','N') , ('1002','fugECCNLookup_aspx','2','4/8/2014','N','N') , ('1003','fugECCNLookup_aspx','2','4/8/2014','N','N') , ('1002','frpReceiptLiquidationReport_aspx','2','6/15/2012','N','N') , ('1002','frpZoneTransactionsReport_aspx','2','6/15/2012','N','N') , ('1002','fsgError_aspx','2','6/15/2012','N','N') , ('1002','fugContentSearch_aspx','2','4/8/2014','N','N') , ('1001','fsgPartnerCultures_aspx','2','4/8/2014','N','N') , ('1002','fsgPartnerCultures_aspx','2','4/8/2014','N','N') , ('1002','fugWebServiceTest_aspx','2','4/11/2014','N','N') , ('1002','frdManufacturingAssemblies_aspx','2','4/22/2014','N','N') , ('1002','frdAnnualFTZBoardReportRS_aspx','2','11/6/2012','N','N') , ('1001','fmgAddMessages_aspx','2','2/24/2014','N','N') , ('1002','fmgAddMessages_aspx','2','2/24/2014','N','N') , ('1001','fugMessages_aspx','2','2/24/2014','N','N') , ('1002','fugMessages_aspx','2','2/24/2014','N','N') , ('1001','fmgKnowledgeProfile_aspx','2','2/24/2014','N','N') , ('1002','fmgKnowledgeProfile_aspx','2','2/24/2014','N','N') , ('1001','fugKnowledge_aspx','2','2/24/2014','N','N') , ('1002','fugKnowledge_aspx','2','2/24/2014','N','N') , ('1002','fsgUserDetailSetup_aspx','1','3/10/2013','N','N') , ('1002','fugMXPedimentoAudit_aspx','2','12/17/2012','N','N') , ('1002','fsgFieldLevelAccessManagement_aspx','2','5/7/2014','N','N') , ('1002','fidSummaryDeclaration_aspx','2','6/19/2014','N','N') , ('1002','fidNLDeclaration_aspx','2','6/19/2014','N','N') , ('1002','fmdMXDocumentRules_aspx','2','6/27/2014','N','N') , ('1003','fmdMXDocumentRules_aspx','2','6/27/2014','N','N') , ('1002','fmgConsolidation_aspx','2','7/23/2014','N','N') , ('1002','fmgShipmentSeparation_aspx','2','7/23/2014','N','N') , ('1002','fsgPasswordResetManagement_aspx','2','10/15/2014','N','N') , ('1001','fsgUserQuickSetup_aspx','2','10/15/2014','N','N') , ('1002','fsgUserQuickSetup_aspx','2','10/15/2014','N','N') , ('1002','fxdADCVDQuery_aspx','2','7/7/2014','N','N') , ('1002','fmgRulesCategoryInfo_aspx','2','7/7/2014','N','N') , ('1002','fugMXDataStage_aspx','2','7/7/2014','N','N') , ('1003','fugMXDataStage_aspx','2','7/7/2014','N','N') , ('1002','fugMXDataStageComparison_aspx','2','7/7/2014','N','N') , ('1003','fugMXDataStageComparison_aspx','2','7/7/2014','N','N') , ('1002','fugSpreadsheetUpload_aspx','2','7/7/2014','N','N') , ('1001','fugAgencyDetail_aspx','2','7/7/2014','N','N') , ('1002','fugAgencyDetail_aspx','2','7/7/2014','N','N') , ('1003','fugAgencyDetail_aspx','2','7/7/2014','N','N') , ('1001','fxdEntry_aspx','1','1/21/2016','N','N') , ('1001','fugKnowledgeCommunity_aspx','2','7/7/2014','N','N') , ('1002','fugKnowledgeCommunity_aspx','2','7/7/2014','N','N') , ('1002','fidFTABOMWorksheetMulti_aspx','2','11/10/2017','N','N') , ('1002','fidFTABOMWorksheet_aspx','2','10/15/2014','N','N') , ('1002','fdgChartVisualization_aspx','2','6/19/2014','N','N') , ('1001','1000','1','10/9/2013','N','N') , ('1002','fdgDataVisualization_aspx','2','6/19/2014','N','N') , ('1001','1001','1','10/9/2013','N','N') , ('1001','1002','0','10/9/2013','N','N') , ('1001','1002','1','10/9/2013','N','N') , ('1002','fdgSingleChart_aspx','2','6/19/2014','N','N') , ('1001','1003','1','10/9/2013','N','N') , ('1001','1004','1','10/9/2013','N','N') , ('1001','1005','1','10/9/2013','N','N') , ('1001','1006','1','10/9/2013','N','N') , ('1001','1007','1','10/9/2013','N','N') , ('1001','1008','1','10/9/2013','N','N') , ('1001','1009','1','10/9/2013','N','N') , ('1001','1010','1','10/9/2013','N','N') , ('1001','1011','1','10/9/2013','N','N') , ('1001','1012','1','10/9/2013','N','N') , ('1001','1013','1','10/9/2013','N','N') , ('1001','1014','1','10/9/2013','N','N') , ('1002','fxdEntrySummaryImproved_aspx','2','7/23/2012','N','N') , ('1002','fxdEntryValidationErrorReporting_aspx','2','7/23/2012','N','N') , ('1001','1015','1','10/9/2013','N','N') , ('1002','ffdMXBrokerPedimentoForm_aspx','2','9/18/2012','N','N') , ('1002','EditLicenseDetail_aspx','2','10/4/2012','N','N') , ('1002','EditLicenseParty_aspx','2','10/4/2012','N','N') , ('1002','fmgEquipmentMaintenance_aspx','2','10/4/2012','N','N') , ('1001','fugSPICodePopup_aspx','1','10/4/2012','N','N') , ('1002','fugSPICodePopup_aspx','2','10/4/2012','N','N') , ('1001','1016','1','10/9/2013','N','N') , ('1001','1017','1','10/9/2013','N','N') , ('1002','fxdMXCancelInvoice_aspx','2','7/16/2012','N','N') , ('1001','1019','1','10/9/2013','N','N') , ('1001','1020','1','10/9/2013','N','N') , ('1001','1021','1','10/9/2013','N','N') , ('1001','1022','1','10/9/2013','N','N') , ('1001','1023','1','10/9/2013','N','N') , ('1001','1024','1','10/9/2013','N','N') , ('1001','1025','1','10/9/2013','N','N') , ('1001','1026','1','10/9/2013','N','N') , ('1001','1027','1','10/9/2013','N','N') , ('1001','1028','1','10/9/2013','N','N') , ('1001','1029','1','10/9/2013','N','N') , ('1001','1030','1','10/9/2013','N','N') , ('1001','1031','1','10/9/2013','N','N') , ('1001','1032','1','10/9/2013','N','N') , ('1001','1033','1','10/9/2013','N','N') , ('1001','1034','1','10/9/2013','N','N') , ('1001','1035','1','10/9/2013','N','N') , ('1001','1036','1','10/9/2013','N','N') , ('1001','1037','1','10/9/2013','N','N') , ('1001','1038','2','10/9/2013','N','N') , ('1001','1040','1','10/9/2013','N','N') , ('1002','fxdDPSOverride_aspx','2','10/16/2014','N','N') , ('1002','fxdEntryStatus_aspx','2','3/11/2013','N','N') , ('1002','fxdEntryVisibilitySearch_aspx','2','3/11/2013','N','N') , ('1002','fmgHTMLMaintenance_aspx','2','3/11/2013','N','N') , ('1002','ContentManagement_aspx','2','3/11/2013','N','N') , ('1002','ContentValidation_aspx','2','3/11/2013','N','N') , ('1002','ContentValidationUser_aspx','2','3/11/2013','N','N') , ('1002','fugAddCountryReference_aspx','2','3/11/2013','N','N') , ('1002','lookupDTSByURL_aspx','2','3/11/2013','N','N') , ('1002','f105701reallocate_aspx','2','3/11/2013','N','N') , ('1002','fid500101ManualReceipts_aspx','2','3/11/2013','N','N') , ('1002','fidConsolidateShipments_aspx','2','3/11/2013','N','N') , ('1002','fxdAMSMassQuery_aspx','2','3/11/2013','N','N') , ('1002','fxdEntryPacket_aspx','2','3/11/2013','N','N') , ('1002','Edit.aspx','2','3/11/2013','N','N') , ('1002','fxdRunCustomValidationImport_aspx','2','3/11/2013','N','N') , ('1002','fxdRunCustomValidationShipments_aspx','2','3/11/2013','N','N') , ('1002','fxdSyncInventoryByLot_aspx','2','3/11/2013','N','N') , ('1002','knowledgeDefault_aspx','2','3/11/2013','N','N') , ('1002','MissingTranslations_aspx','2','3/11/2013','N','N') , ('1002','Nagios_aspx','2','3/11/2013','N','N') , ('1002','fugOpenSearchImproved.aspx','2','3/11/2013','N','N') , ('1002','fugReprintExitDocID','2','3/11/2013','N','N') , ('1002','Search.aspx','2','3/11/2013','N','N') , ('1002','frd106100PTRAnnualReconciliation_aspx','2','3/11/2013','N','N') , ('1002','fid107200ExportCISLI_aspx','2','3/11/2013','N','N') , ('1002','fxdFifoSimulation_aspx','2','3/11/2013','N','N') , ('1002','fidFTABOMAnalysis_aspx','2','3/11/2013','N','N') , ('1002','fxdEntryErrorCorrection_aspx','2','4/30/2013','N','N') , ('1002','fxdMXMaintainPedimento_aspx','2','5/21/2013','N','N') , ('1002','fxdQuotaQuery_aspx','2','5/21/2013','N','N') , ('1002','fmdTTMWorkflowSetup_aspx','2','10/21/2014','N','N') , ('1002','fxdMXCloseInvoices_aspx','2','7/16/2012','N','N') , ('1002','fxdMXEditInvoice_aspx','2','7/16/2012','N','N') , ('1002','fxdMXInvoiceCOVE_aspx','2','7/16/2012','N','N') , ('1002','fxdMXPrevalidateInvoice_aspx','2','7/16/2012','N','N') , ('1002','fxdEntryDailyStatements_aspx','2','3/17/2015','N','N') , ('1002','fxdMXPrintInvoice_aspx','2','7/16/2012','N','N') , ('1002','fxdMXWorkWithInvoices_aspx','2','7/16/2012','N','N') , ('1002','frdFTASuppCert_aspx','2','10/5/2012','N','N') , ('1002','fugEmailTemplate_aspx','2','10/5/2012','N','N') , ('1002','fmdMail_aspx','2','10/5/2012','N','N') , ('1002','ffdCF7512WPMulti_aspx','2','12/17/2012','N','N') , ('1002','fxdMonthlyStatementReroute_aspx','2','3/17/2015','N','N') , ('1002','fmdDecisionTreeQuestionnaire_aspx','2','4/13/2015','N','N') , ('1002','frdFTACertificates_aspx','2','4/23/2015','N','N') , ('1002','fugWCOIndex_aspx','2','4/23/2015','N','N') , ('1002','fxdMXTransferNotice_aspx','2','4/23/2015','N','N') , ('1003','fxdMXTransferNotice_aspx','2','4/23/2015','N','N') , ('1002','fxdMXMaintainTransferNotice_aspx','2','4/23/2015','N','N') , ('1003','fxdMXMaintainTransferNotice_aspx','2','4/23/2015','N','N') , ('1001','fugNews_aspx','2','4/23/2015','N','N') , ('1002','fugNews_aspx','2','4/23/2015','N','N') , ('1001','1042','1','10/9/2013','N','N') , ('1001','1043','1','10/9/2013','N','N') , ('1001','fugKnowledgeDetail_aspx','2','2/24/2014','N','N') , ('1002','fugKnowledgeDetail_aspx','2','2/24/2014','N','N') , ('1001','1044','1','10/9/2013','N','N') , ('1001','fmgAddKnowledge_aspx','2','1/18/2013','N','N') , ('1002','fmgAddKnowledge_aspx','2','1/18/2013','N','N') , ('1001','1045','1','10/9/2013','N','N') , ('1001','1046','1','10/9/2013','N','N') , ('1001','1047','1','10/9/2013','N','N') , ('1001','1048','1','10/9/2013','N','N') , ('1001','1049','1','10/9/2013','N','N') , ('1001','1050','1','10/9/2013','N','N') , ('1001','1051','0','10/9/2013','N','N') , ('1001','1052','1','10/9/2013','N','N') , ('1002','frdMXAnnex31Discharges_aspx','2','2/17/2015','N','N') , ('1001','1053','1','10/9/2013','N','N') , ('1003','frdMXAnnex31Discharges_aspx','2','2/17/2015','N','N') , ('1002','frdMXAnnex31InitialBalances_aspx','2','2/17/2015','N','N') , ('1003','frdMXAnnex31InitialBalances_aspx','2','2/17/2015','N','N') , ('1002','fugDifuploadFrameWrapper_aspx','2','2/17/2015','N','N') , ('1001','1054','1','10/9/2013','N','N') , ('1001','1075','1','10/9/2013','N','N') , ('1001','1076','1','10/9/2013','N','N') , ('1002','fmdGlobalClassificationSelection_aspx','2','1/28/2013','N','N') , ('1002','fmdEditSearchResults_aspx','2','1/29/2013','N','N') , ('1001','fmdEditSearchResults_aspx','2','1/29/2013','N','N') , ('1001','1077','1','10/9/2013','N','N') , ('1001','1082','1','10/9/2013','N','N') , ('1002','1002','2','10/9/2013','N','N') , ('1002','fmdGlobalProductView_aspx','2','10/9/2013','N','N') , ('1001','fsgUserDetailSetup_aspx','2','3/10/2013','N','N') , ('1002','fmgproductrequestdetail_aspx','2','10/9/2013','N','N') , ('1002','fugOpenEmail_aspx','2','10/9/2013','N','N') , ('1002','fsgEmailToSupport_aspx','2','3/10/2013','N','N') , ('1002','fugValidationConfiguration_aspx','2','10/9/2013','N','N') , ('1002','fugViewDocument_aspx','2','10/9/2013','N','N') , ('1001','fsgEmailToSupport_aspx','2','3/10/2013','N','N') , ('1002','fxdEdit214Records_aspx','2','10/9/2013','N','N') , ('1002','fxdEntryVisibilityAuditLog_aspx','2','10/9/2013','N','N') , ('1001','fugDTSLookup_aspx','2','2/17/2015','N','N') , ('1002','fxdRetrieveFile_aspx','2','10/9/2013','N','N') , ('1002','fugDTSLookup_aspx','2','2/17/2015','N','N') , ('1003','fugDTSLookup_aspx','2','2/17/2015','N','N') , ('1002','frdOpenReceiptReport_aspx','2','3/11/2013','N','N') , ('1002','frdFTAAuditLog_aspx','2','3/11/2013','N','N') , ('1002','fugBOMDataSet_aspx','2','3/12/2013','N','N') , ('1001','fmgProductLookup_aspx','1','3/18/2013','N','N') , ('1001','Maintenance_aspx','1','3/18/2013','N','N') , ('1001','EditDetail_aspx','1','3/18/2013','N','N') , ('1002','fugMXCalculatedExpirationDate_aspx','2','2/17/2015','N','N') , ('1003','fugMXCalculatedExpirationDate_aspx','2','2/17/2015','N','N') , ('1001','fugGlobalTariffsLanding_aspx','2','2/17/2015','N','N') , ('1002','fugGlobalTariffsLanding_aspx','2','2/17/2015','N','N') , ('1003','fugGlobalTariffsLanding_aspx','2','2/17/2015','N','N') , ('1002','AddAttachment_aspx','2','2/17/2015','N','N') , ('1002','fugWCONotes_aspx','2','2/18/2015','N','N') , ('1001','fugNewsMessages_aspx','2','4/23/2015','N','N') , ('1002','fugNewsMessages_aspx','2','4/23/2015','N','N') , ('1002','fmpMaintenance_aspx','2','6/25/2013','N','N') , ('1002','fsgMaintenanceAccess_aspx','2','6/25/2013','N','N') , ('1002','frd106101ProductHistoryReport_aspx','2','2/26/2014','N','N') , ('1002','fmgHSMaintenanceLog_aspx','2','6/25/2013','N','N') , ('1002','ffpReconcileCF7512Inbound_aspx','2','6/21/2013','N','N') , ('1002','ffpTrackingCF214InternalTransfer_aspx','2','6/21/2013','N','N') , ('1002','fidBRConsolidate_aspx','2','2/28/2014','N','N') , ('1002','fmg105110ScrapMaintenance_aspx','2','1/22/2014','N','N') , ('1002','fmgSDESelection_aspx','2','1/22/2014','N','N') , ('1002','fugCCSTracking_aspx','2','1/22/2014','N','N') , ('1002','fmgHandbookManagement_aspx','2','1/22/2014','N','N') , ('1002','frd105110CNZoneMaterialBalanceReport_aspx','2','1/24/2014','N','N') , ('1002','frdCNZoneCCS_aspx','2','1/27/2014','N','N') , ('1002','frdCNZoneCCSList_aspx','2','1/27/2014','N','N') , ('1002','frdCNZoneCCSManagement_aspx','2','1/27/2014','N','N') , ('1002','fidNotaFiscal_aspx','2','1/29/2014','N','N') , ('1002','frdBOMSimulation_aspx','2','2/19/2014','N','N') , ('1002','fidAtoConcessorio_aspx','2','1/31/2014','N','N') , ('1001','fugLegalText_aspx','2','10/15/2014','N','N') , ('1002','fugLegalText_aspx','2','10/15/2014','N','N') , ('1003','fugLegalText_aspx','2','10/15/2014','N','N') , ('1002','fmgRulesTest_aspx','2','7/30/2014','N','N') , ('1002','fidBEDeclaration_aspx','2','12/8/2014','N','N') , ('1002','fidBEDeclarationManagement_aspx','2','12/8/2014','N','N') , ('1002','fidBENCTSCERTDeclaration_aspx','2','12/8/2014','N','N') , ('1002','fidBEPLDADeclaration_aspx','2','12/8/2014','N','N') , ('1002','fxdTempStorage_aspx','2','12/8/2014','N','N') , ('1002','fidFTAMassResultsReport_aspx','2','4/23/2015','N','N') , ('1002','fxdFIFOMassUpdate_aspx','2','6/12/2015','N','N') , ('1002','fmdMXPermits_aspx','2','7/16/2015','N','N') , ('1003','fmdMXPermits_aspx','2','7/16/2015','N','N') , ('1002','fmdMXMaintainPermit_aspx','2','7/16/2015','N','N') , ('1003','fmdMXMaintainPermit_aspx','2','7/16/2015','N','N') , ('1002','fmgDPSSettings_aspx','2','7/16/2015','N','N') , ('1002','fmdMXMaintainSAAICatalogs_aspx','2','7/16/2015','N','N') , ('1003','fmdMXMaintainSAAICatalogs_aspx','2','7/16/2015','N','N') , ('1002','fxdPGA_aspx','2','7/16/2015','N','N') , ('1002','fxdPGAEntity_aspx','2','7/16/2015','N','N') , ('1002','fugLookupTemplateManagement_aspx','2','7/16/2015','N','N') , ('1002','frdMXSubMaquilaReport_aspx','2','7/16/2015','N','N') , ('1003','frdMXSubMaquilaReport_aspx','2','7/16/2015','N','N') , ('1002','fmgClassificationProductCopy_aspx','2','7/16/2015','N','N') , ('1002','fugMXSubmaquilaBalancesDischarges_aspx','2','7/16/2015','N','N') , ('1001','fsgResetMyPassword_aspx','2','4/5/2018','N','N') , ('1002','fsgResetMyPassword_aspx','2','4/5/2018','N','N') , ('1002','DecisionTreeOverview_aspx','2','1/27/2018','N','N') , ('1002','DecisionTreeVisualization_aspx','2','1/27/2018','N','N') , ('1002','fdgMap_aspx','2','9/7/2017','N','N') , ('1002','fidFileTransmission_aspx','2','8/2/2016','N','N') , ('1002','fmgBibliotecaSQL_aspx','2','8/25/2016','N','N') , ('1002','fugMXVUCEMPedimento_aspx','2','1/11/2018','N','N') , ('1002','fugMXWorkWithDigitalFiles_aspx','2','1/11/2018','N','N') , ('1002','fmdDecisionTreeVisualization_aspx','2','6/4/2018','N','N') , ('1002','fsgUserDetailSetup_aspx','2','11/22/2018','N','N') , ('1002','BPMMaintenance_aspx','2','2/16/2018','N','N') , ('1002','GTNRetrigger_aspx','2','2/16/2018','N','N') , ('1003','fugMXVUCEMPedimento_aspx','2','2/16/2018','N','N') , ('1003','fugMXWorkWithDigitalFiles_aspx','2','2/16/2018','N','N') , ('1002','fdgDashboard_aspx','2','10/20/2017','N','N') , ('1002','AddCompany_aspx','2','10/23/2017','N','N') , ('1002','fxdTransactionChange_aspx','2','6/29/2018','N','N') , ('1001','fxdTransactionChange_aspx','1','6/29/2018','N','N') , ('1002','CrossSAMLConsumer_aspx','2','8/28/2018','N','N') , ('1002','CrossSAMLGenerator_aspx','2','8/28/2018','N','N') , ('1002','fugSQLApproval_aspx','1','12/14/2017','N','N') , ('1002','fugIntegrationWorkbench_aspx','2','8/29/2018','N','N') , ('1002','SAML20Consumer_aspx','2','8/29/2018','N','N') , ('1002','fxdRecon_aspx','2','8/29/2018','N','N') , ('1002','fxdReconPreparation_aspx','2','8/29/2018','N','N') , ('1002','fxdReconSummary_aspx','2','8/29/2018','N','N') , ('1002','fidExportCISLI_old_aspx','2','3/20/2018','N','N') , ('1002','GTNEventHistory_aspx','2','7/27/2018','N','N') , ('1002','fugDocSecurity_aspx','2','3/8/2018','N','N') , ('1002','fugPartnerTestScript_aspx','2','5/4/2018','N','N') , ('1002','fsgFormVisibility_aspx','2','5/4/2018','N','N') , ('1002','fxdEntryRecon_aspx','2','5/4/2018','N','N') , ('1002','fugFormConfiguration_aspx','2','7/27/2018','N','N') , ('1002','fugConfigurationLibrary_aspx','2','7/27/2018','N','N') , ('1002','fugSchemaValidation_aspx','2','7/27/2018','N','N') , ('1002','fugGCViewGenerator_aspx','2','7/27/2018','N','N') , ('1002','fmdClassificationStatisticalCodes_aspx','2','7/27/2018','N','N') , ('1002','fxdTableRequest_aspx','2','7/27/2018','N','N') , ('1002','ElasticPortal_aspx','2','7/27/2018','N','N') , ('1002','fxdGVWhatIf_aspx','2','11/16/2018','N','N') , ('1002','frdMXPedimentoReports_aspx','2','11/16/2018','N','N') , ('1003','frdMXPedimentoReports_aspx','2','11/16/2018','N','N') , ('1002','fugMXConnector_aspx','2','11/16/2018','N','N') , ('1003','fugMXConnector_aspx','2','11/16/2018','N','N') , ('1002','DynamicEdit_aspx','2','3/15/2019','N','N') , ('1002','fmgEditContentDetail_aspx','2','3/15/2019','N','N') , ('1001','fxdScoreCard_aspx','2','3/15/2019','N','N') , ('1001','fxdScoreCardAccess_aspx','2','3/15/2019','N','N') , ('1001','fxdScoreCardSetup_aspx','2','3/15/2019','N','N') , ('1002','fidAESManagement_aspx','2','2/5/2018','N','N') , ('1003','fugMXSubmaquilaBalancesDischarges_aspx','2','7/16/2015','N','N') , ('1002','fxdMXMaintainPlantWarehouse_aspx','2','7/16/2015','N','N') , ('1003','fxdMXMaintainPlantWarehouse_aspx','2','7/16/2015','N','N') , ('1002','DocumentsGrid_aspx','2','8/14/2015','N','N') , ('1002','fugContentSalesOverview_aspx','2','12/2/2015','N','N') , ('1001','fxdEntrySummary_aspx','1','1/21/2016','N','N') , ('1002','fugMXEditPostFifoRecords_aspx','2','1/21/2016','N','N') , ('1003','fugMXEditPostFifoRecords_aspx','2','1/21/2016','N','N') , ('1002','fxdQuotaQueryAce_aspx','2','8/7/2016','N','N') , ('1002','frdLandedCostProductHistory_aspx','2','5/11/2016','N','N') , ('1001','fxdPGAMapping_aspx','1','3/7/2016','N','N') , ('1001','fxdPGA_aspx','1','3/7/2016','N','N') , ('1001','fmdDecisionTreeQuestionnaire_aspx','1','3/7/2016','N','N') , ('1001','fidDISSubmissions_aspx','1','3/7/2016','N','N') , ('1001','fmgCompanyMaintenance_aspx','1','3/7/2016','N','N') , ('1001','AddCompany_aspx','1','3/7/2016','N','N') , ('1001','fxdEntryErrorCorrection_aspx','1','3/7/2016','N','N') , ('1001','fxdESQuery_aspx','1','3/7/2016','N','N') , ('1002','fidDISSubmissions_aspx','2','5/11/2016','N','N') INSERT INTO tmgGroupAccess(GroupGUID,FormGUID,AccessType,EffDate,DeletedFlag,KeepDuringRollback) VALUES ('1002','fxdPGAMapping_aspx','2','5/11/2016','N','N') , ('1002','fxdEntryVerificationAuditLog_aspx','2','11/7/2015','N','N') , ('1002','fxdPostSummaryCorrection_aspx','2','11/7/2015','N','N') , ('1002','fugMXAssignPedimentoScrap_aspx','2','11/7/2015','N','N') , ('1003','fugMXAssignPedimentoScrap_aspx','2','11/7/2015','N','N') , ('1002','fugMXPermitBalancesDischarges_aspx','2','11/7/2015','N','N') , ('1003','fugMXPermitBalancesDischarges_aspx','2','11/7/2015','N','N') , ('1001','fugBindingRulings_aspx','2','11/7/2015','N','N') , ('1002','fugBindingRulings_aspx','2','11/7/2015','N','N') , ('1003','fugBindingRulings_aspx','2','11/7/2015','N','N') , ('1001','fugImportExportVolumes_aspx','2','11/7/2015','N','N') , ('1002','fugImportExportVolumes_aspx','2','11/7/2015','N','N') , ('1003','fugImportExportVolumes_aspx','2','11/7/2015','N','N') , ('1001','About_aspx','2','11/7/2015','N','N') , ('1002','About_aspx','2','11/7/2015','N','N') , ('1002','fugDutyTaxAnalyzer_aspx','2','5/12/2017','N','N') , ('1002','fidFTABOMWorksheetOrigin_aspx','2','2/18/2016','N','N') , ('1002','fxdManageEventFlows_aspx','2','12/1/2015','N','N') , ('1002','AutomationDashboard_aspx','2','12/1/2015','N','N') , ('1002','logViewAllEntries_aspx','2','12/1/2015','N','N') , ('1002','fugEdit214_aspx','2','10/30/2008','N','N') , ('1002','fugquestionairepopup_aspx','2','7/23/2013','N','N') , ('1002','frd110302SupplierDeclaration_aspx','2','8/21/2013','N','N') , ('1002','fmgContentNightlyChecks_aspx','2','11/9/2015','N','N') , ('1002','fmgInvoiceSeparation_aspx','2','9/24/2013','N','N') , ('1002','fmgFTA_aspx','2','11/1/2013','N','N') , ('1002','fugContentExternalTemplate_aspx','2','11/19/2013','N','N') , ('1002','1039','2','6/15/2012','N','N') , ('1002','1088','2','6/15/2012','N','N') , ('1002','4a_DataProvider_WcfProxy_aspx','2','6/15/2012','N','N') , ('1002','Accordion_aspx','2','6/15/2012','N','N') , ('1002','Accordion_TestPage_aspx','2','6/15/2012','N','N') , ('1002','AlwaysVisibleControl_aspx','2','6/15/2012','N','N') , ('1002','AlwaysVisibleControl_TestPage_aspx','2','6/15/2012','N','N') , ('1002','Animation_aspx','2','6/15/2012','N','N') , ('1002','Animation_TestPage_aspx','2','6/15/2012','N','N') , ('1002','AnimationReference_aspx','2','6/15/2012','N','N') , ('1002','AnotherStyle_aspx','2','6/15/2012','N','N') , ('1002','AsyncFileUpload_aspx','2','6/15/2012','N','N') , ('1002','AtlasToAspNetAjax_aspx','2','6/15/2012','N','N') , ('1002','AutoComplete_aspx','2','6/15/2012','N','N') , ('1002','CascadingDropDown_aspx','2','6/15/2012','N','N') , ('1002','CCDWithDB_aspx','2','6/15/2012','N','N') , ('1002','CollapsiblePanel_aspx','2','6/15/2012','N','N') , ('1002','ColorPicker_aspx','2','6/15/2012','N','N') , ('1002','ComboBox_aspx','2','6/15/2012','N','N') , ('1002','Common_aspx','2','6/15/2012','N','N') , ('1002','ConfirmButton_aspx','2','6/15/2012','N','N') , ('1002','Copy of ffdCF7512QP_6_1weightuom_aspx','2','6/15/2012','N','N') , ('1002','Copy of ffdCF7512QP_aspx','2','6/15/2012','N','N') , ('1002','Copy of fugAccessConfigFiles_aspx','2','6/15/2012','N','N') , ('1002','Copy of fugLandedCostAnalyzer_aspx','2','6/15/2012','N','N') , ('1002','Copy of fxdBrokerImportRecon_aspx','2','6/15/2012','N','N') , ('1002','Copy of fxdDeemedExportEmployee_aspx','2','6/15/2012','N','N') , ('1002','DataBinding_aspx','2','6/15/2012','N','N') , ('1002','Details_aspx','2','6/15/2012','N','N') , ('1002','DragPanel_aspx','2','6/15/2012','N','N') , ('1002','DropDown_aspx','2','6/15/2012','N','N') , ('1002','DropDown_TestPage_aspx','2','6/15/2012','N','N') , ('1002','DropShadow_aspx','2','6/15/2012','N','N') , ('1002','DropShadow_TestPage_aspx','2','6/15/2012','N','N') , ('1002','DynamicPopulate_aspx','2','6/15/2012','N','N') , ('1002','EditorWithCustomButtons_1_aspx','2','6/15/2012','N','N') , ('1002','EntryEmail_aspx','2','6/15/2012','N','N') , ('1002','ExtenderBase_aspx','2','6/15/2012','N','N') , ('1002','ExtenderClasses_aspx','2','6/15/2012','N','N') , ('1002','ffdCF7512QPtest_aspx','2','6/15/2012','N','N') , ('1002','ffdMXZoneManualReceipts_aspx','2','6/15/2012','N','N') , ('1002','fid_107200_ExportCISLI_aspx','2','6/15/2012','N','N') , ('1002','fid_107201_BOMView_aspx','2','6/15/2012','N','N') , ('1002','fid_500101_ManualReceipts_aspx','2','6/15/2012','N','N') , ('1002','fidInformationRequest_aspx','2','6/15/2012','N','N') , ('1002','FilteredTextBox_aspx','2','6/15/2012','N','N') , ('1002','fipTransactionImportStatus_aspx','2','6/15/2012','N','N') , ('1002','fmdShowMXPedimento_aspx','2','6/15/2012','N','N') , ('1002','fmgContentExtractorManagement_aspx','2','6/15/2012','N','N') , ('1002','fmgCustomerRequestDashboard_aspx','2','6/15/2012','N','N') , ('1002','fmgEditKnowledge_aspx','2','6/15/2012','N','N') , ('1002','fmgEditValidateTariffSchedule_aspx','2','6/15/2012','N','N') , ('1002','fmgValidateExchangeRate_aspx','2','6/15/2012','N','N') , ('1002','fmpBoardSiteData_aspx','2','6/15/2012','N','N') , ('1002','fmprProductMaster_aspx','2','6/15/2012','N','N') , ('1002','fppModifyReservations_aspx','2','6/15/2012','N','N') , ('1002','fppRecordHolds_aspx','2','6/15/2012','N','N') , ('1002','fppRecordReservations_aspx','2','6/15/2012','N','N') , ('1002','frd_106100_PTRAnnualReconciliation_aspx','2','6/15/2012','N','N') , ('1002','frdBMWVehicleEntryReport_aspx','2','6/15/2012','N','N') , ('1002','fudGlobalDashboard_OLD_aspx','2','6/15/2012','N','N') , ('1002','fug_100200_PackingCostAlloc_aspx','2','6/15/2012','N','N') , ('1002','fugCountryInfoDetailPopup_aspx','2','6/15/2012','N','N') , ('1002','fugDataExportToAccess_aspx','2','6/15/2012','N','N') , ('1002','fugDataExportToAccessStatus_aspx','2','6/15/2012','N','N') , ('1002','fugDocumentEngineSetup_aspx','2','6/15/2012','N','N') , ('1002','fugDownloadFilesImproved_aspx','2','6/15/2012','N','N') , ('1002','fugGlobalTariffsMobile_aspx','2','6/15/2012','N','N') , ('1002','fugKnowledgeImproved_aspx','2','6/15/2012','N','N') , ('1002','fugMobileDocRetention_aspx','2','6/15/2012','N','N') , ('1002','fugTariffMatrix_aspx','2','6/15/2012','N','N') , ('1002','FullNoBottom_aspx','2','6/15/2012','N','N') , ('1002','FullScreen_aspx','2','6/15/2012','N','N') , ('1002','fupApiCalculator_aspx','2','6/15/2012','N','N') , ('1002','fupChangeDocumentNumber_aspx','2','6/15/2012','N','N') , ('1002','fupEdit214_aspx','2','6/15/2012','N','N') , ('1002','fxd_101806_Invoice_aspx','2','6/15/2012','N','N') , ('1002','fxdAMSQuery.aspx','2','6/15/2012','N','N') , ('1002','fxdAMSQueryAirReplies.aspx','2','6/15/2012','N','N') , ('1002','fxdAMSQueryBOLReplies.aspx','2','6/15/2012','N','N') , ('1002','fxdAMSQueryITReplies.aspx','2','6/15/2012','N','N') , ('1002','fxdAMSQuerySummary.aspx','2','6/15/2012','N','N') , ('1002','fxdMasterEntryLog_aspx','2','6/15/2012','N','N') , ('1002','fxdMXAssignPedimento_aspx','2','6/15/2012','N','N') , ('1002','fxdPendingTankTransfer_aspx','2','6/15/2012','N','N') , ('1002','fxdQueryImporterReplyBondDetail_aspx','2','6/15/2012','N','N') , ('1002','fxdQueryImporterReplyBondDetail_not used_aspx','2','6/15/2012','N','N') , ('1002','fxdQueryManufacturerSummary_aspx','2','6/15/2012','N','N') , ('1002','fxdShipmentReassignment_aspx','2','6/15/2012','N','N') , ('1002','fxpFutureHS_aspx','2','6/15/2012','N','N') , ('1002','Hovermenu_aspx','2','6/15/2012','N','N') , ('1002','HsValidation_aspx','2','6/15/2012','N','N') , ('1002','HTMLEditor_aspx','2','6/15/2012','N','N') , ('1002','ListSearch_aspx','2','6/15/2012','N','N') , ('1002','Lite_aspx','2','6/15/2012','N','N') , ('1002','LiteNoBottom_aspx','2','6/15/2012','N','N') , ('1002','Logout_aspx','2','6/15/2012','N','N') , ('1002','MaskedEdit_aspx','2','6/15/2012','N','N') , ('1002','Master_aspx','2','6/15/2012','N','N') , ('1002','ModalPopup_aspx','2','6/15/2012','N','N') , ('1002','MultiHandleSlider_aspx','2','6/15/2012','N','N') , ('1002','MutuallyExclusiveCheckBox_aspx','2','6/15/2012','N','N') , ('1002','NoBot_aspx','2','6/15/2012','N','N') , ('1002','NumericUpDown_aspx','2','6/15/2012','N','N') , ('1002','OtherNeatStuff_aspx','2','6/15/2012','N','N') , ('1002','PagingBulletedList_aspx','2','6/15/2012','N','N') , ('1002','PasswordStrength_aspx','2','6/15/2012','N','N') , ('1002','Popup_aspx','2','6/15/2012','N','N') , ('1002','PopupControl_aspx','2','6/15/2012','N','N') , ('1002','ProfileBinding_aspx','2','6/15/2012','N','N') , ('1002','Rating_aspx','2','6/15/2012','N','N') , ('1002','RatingControl_aspx','2','6/15/2012','N','N') , ('1002','RatingControl_TestPage_aspx','2','6/15/2012','N','N') , ('1002','Regressions_aspx','2','6/15/2012','N','N') , ('1002','ReorderList_aspx','2','6/15/2012','N','N') , ('1002','ResizableControl_aspx','2','6/15/2012','N','N') , ('1002','RoundedCorners_aspx','2','6/15/2012','N','N') , ('1002','RoundedCorners_TestPage_aspx','2','6/15/2012','N','N') , ('1002','RunTests-Automation_aspx','2','6/15/2012','N','N') , ('1002','Seadragon_aspx','2','6/15/2012','N','N') , ('1002','Slider_aspx','2','6/15/2012','N','N') , ('1002','SlideShow_aspx','2','6/15/2012','N','N') , ('1002','Tabs_aspx','2','6/15/2012','N','N') , ('1002','TestHarnessTests_aspx','2','6/15/2012','N','N') , ('1002','TestProject_aspx','2','6/15/2012','N','N') , ('1002','TextboxWatermark_aspx','2','6/15/2012','N','N') , ('1002','ToggleButton_aspx','2','6/15/2012','N','N') , ('1002','ToolkitScriptManager_aspx','2','6/15/2012','N','N') , ('1002','UpdatePanelAnimation_aspx','2','6/15/2012','N','N') , ('1002','UsingAnimations_aspx','2','6/15/2012','N','N') , ('1002','ValidatorCallout_aspx','2','6/15/2012','N','N') , ('1002','WebForm2_aspx','2','6/15/2012','N','N') , ('1002','fmgDTSMaintenance_aspx','2','10/4/2013','N','N') , ('1002','fmgPedimentoMaintenance_aspx','2','8/21/2012','N','N') , ('1002','fxdDataRemoval_aspx','2','8/30/2012','N','N') , ('1002','fmgProductGrouping_aspx','2','3/12/2013','N','N') , ('1002','fmgHSMaintenanceLogNew_aspx','2','3/12/2013','N','N') , ('1002','fmgEditValidateTariffScheduleOld_aspx','2','3/15/2013','N','N') , ('1002','fxdServicesStatus_aspx','2','4/11/2013','N','N') , ('1002','fmgAddEditQuotas_aspx','2','4/2/2013','N','N') , ('1002','fidEventDesign_aspx','2','4/10/2013','N','N') , ('1002','fmgMaintenanceV2_aspx','2','4/16/2013','N','N') , ('1002','fidEventManagement_aspx','2','4/16/2013','N','N') , ('1002','fapAttributionMod_aspx','2','4/29/2013','N','N') , ('1002','fmgPartnerIntegrationManagement_aspx','2','5/10/2013','N','N') , ('1002','fmdAbleEditor_aspx','2','5/13/2013','N','N') , ('1002','fmgAddEditCharges_aspx','2','5/16/2013','N','N') , ('1002','fugECCNDetail2_aspx','2','6/4/2013','N','N') , ('1002','fugECCNOld_aspx','2','6/18/2013','N','N') , ('1002','frdCNZoneTestReports_aspx','2','7/17/2013','N','N') , ('1002','fmgAddEditControls_aspx','2','11/28/2013','N','N') , ('1002','EventsList_aspx','2','6/20/2013','N','N') , ('1002','fugAdmissionModification_aspx','2','2/1/2013','N','N') , ('1002','fmgRegListMaintenanceLog_aspx','2','2/21/2014','N','N') , ('1002','fmgTracking_aspx','2','2/3/2014','N','N') , ('1002','fugServerFunctions_aspx','2','2/14/2014','N','N') , ('1002','fmgEditValidateQuotas_aspx','2','2/21/2014','N','N') , ('1002','fmgEditValidateCharges_aspx','2','2/21/2014','N','N') , ('1002','fmgEditValidateControls_aspx','2','2/21/2014','N','N') , ('1002','fmgEditValidateNotes_aspx','2','2/21/2014','N','N') , ('1002','fmgEditValidateHeader_aspx','2','2/21/2014','N','N') , ('1002','fugDISSubmission_aspx','2','2/20/2013','N','N') , ('1002','DefaultMobile_aspx','2','6/19/2012','N','N') , ('1002','fmgAddEditRates_aspx','2','4/29/2013','N','N') , ('1002','fxdRegulationList_aspx','2','5/14/2013','N','N') , ('1002','CategoryManagement_aspx','2','6/19/2013','N','N') , ('1002','fugAttributionConfiguration_aspx','2','10/11/2012','N','N') , ('1002','fmgAddEditDocumentDetermination_aspx','2','3/14/2013','N','N') , ('1002','fupBpOpenQuery_aspx','2','11/14/2012','N','N') , ('1002','fugWebServiceLog_aspx','2','7/11/2012','N','N') , ('1002','fupBpOpenSQL_aspx','2','11/14/2012','N','N') , ('1002','fmgAddEditRegulationList_aspx','2','11/16/2012','N','N') , ('1002','fxdPOAssist_aspx','2','11/20/2012','N','N') , ('1002','fmgAddECCNDataNew_aspx','2','2/13/2013','N','N') , ('1002','fmgEditValidateTariffScheduleNew_aspx','2','2/25/2013','N','N') , ('1002','frd105110CNZoneInvoiceReport_aspx','2','9/5/2013','N','N') , ('1002','fugDocDetermination_aspx','2','2/4/2014','N','N') , ('1002','fxdFifoValidationErrorsEnh_aspx','2','10/5/2012','N','N') , ('1002','fsgRegListMaintenanceLog_aspx','2','4/10/2013','N','N') , ('1002','fugViewGatewayInfo_aspx','2','4/12/2013','N','N') , ('1002','frdCNZoneCustomsReconciliation_aspx','2','8/2/2013','N','N') , ('1002','frd105110CNZonePackingListReport_aspx','2','9/5/2013','N','N') , ('1002','AddEditRates_aspx','2','4/29/2013','N','N') , ('1002','fmgSubscription_aspx','2','5/15/2013','N','N') , ('1002','fmgAddEditCountryGroups_aspx','2','5/22/2013','N','N') , ('1002','frdCNZoneGenericReconciliation_aspx','2','3/4/2014','N','N') , ('1002','fugShipmentConsolidation_aspx','2','3/27/2014','N','N') , ('1002','frdInvoiceReport_aspx','2','6/18/2014','N','N') , ('1002','fmgSubscriptionMaintenanceWSTest_aspx','2','8/22/2014','N','N') , ('1002','fmgDocumentUpload_aspx','2','5/9/2014','N','N') , ('1002','fmgEditValidateDeclarableElements_aspx','2','5/9/2014','N','N') , ('1002','fmgAddEditMarking_aspx','2','5/9/2014','N','N') , ('1002','fmgAddEditAgency_aspx','2','5/9/2014','N','N') , ('1002','EditDelivery_aspx','2','5/19/2014','N','N') , ('1002','EditDeliveryDetail_aspx','2','5/19/2014','N','N') , ('1002','fmgDefaults_aspx','2','5/30/2014','N','N') , ('1002','2_Data_From_Service_aspx','2','7/9/2014','N','N') , ('1002','fmgContentWSTest_aspx','2','8/22/2014','N','N') , ('1002','fugReceiptReassignment_aspx','2','8/18/2014','N','N') , ('1002','fupImportFileToTable_aspx','2','9/18/2013','N','N') , ('1002','fugShipmentReassignment_aspx','2','9/18/2013','N','N') , ('1002','fxdADCVDQuery2_aspx','2','4/1/2014','N','N') , ('1002','fmgAddEditRegGroup_aspx','2','1/13/2013','N','N') , ('1002','fmgConfigWizard_aspx','2','1/13/2013','N','N') , ('1002','frdCNZoneAnnualReconciliationReport_aspx','2','1/13/2013','N','N') , ('1002','ffpPrepareCF3461And7501ImmediateEntry_aspx','2','1/13/2013','N','N') , ('1002','original_fmpProductMaster_aspx','2','1/13/2013','N','N') , ('1002','fsgContentSignUp_aspx','2','1/13/2013','N','N') , ('1002','fmgTIPSConversion_aspx','2','1/13/2013','N','N') , ('1002','fugMonitoringAlerts_aspx','2','1/13/2013','N','N') , ('1002','fupPriceFileEntry_aspx','2','1/13/2013','N','N') , ('1002','fid107701FTABOMAnalysis_aspx','2','1/13/2013','N','N') , ('1002','fmgUploadContentSpreadsheets_aspx','2','1/13/2013','N','N') , ('1002','fupTaskManager_aspx','2','1/13/2013','N','N') , ('1002','Default2_aspx','2','1/13/2013','N','N') , ('1002','Logon2_aspx','2','1/13/2013','N','N') , ('1002','fsgUserSignUp_aspx','2','1/13/2013','N','N') , ('1002','fxdGVPortal_aspx','2','5/30/2014','N','N') , ('1002','fxdGVPortalSetup_aspx','2','5/30/2014','N','N') , ('1002','fmgMaintenanceLog_aspx','2','10/3/2013','N','N') , ('1002','fugGenericTransportMaint_aspx','2','4/18/2014','N','N') , ('1002','fgvDataManagement_aspx','2','5/20/2014','N','N') , ('1002','fgvGlobalEntry_aspx','2','5/20/2014','N','N') , ('1002','fgvLanding_aspx','2','5/20/2014','N','N') , ('1002','fgvViewManagement_aspx','2','5/20/2014','N','N') , ('1002','frdDeliveryAuthorizeReport_aspx','2','7/31/2014','N','N') , ('1002','LogDashboard_aspx','2','8/6/2014','N','N') , ('1002','ffpPrepareCF214AdmissionRS_aspx','2','10/6/2014','N','N') , ('1002','fmgAddEditCustomSort_aspx','2','12/5/2014','N','N') , ('1002','fmgEditValidatePortCodes_aspx','2','12/5/2014','N','N') , ('1002','fppModifyReservationsRG_aspx','2','10/9/2012','N','N') , ('1002','fppRecordHoldRG_aspx','2','10/9/2012','N','N') , ('1002','fmdProtestSummary_aspx','2','10/21/2014','N','N') , ('1002','fmdProtest_aspx','2','10/21/2014','N','N') , ('1002','fmgSeparation_aspx','2','11/10/2014','N','N') , ('1002','GTNDocumentPopup_aspx','2','2/2/2015','N','N') , ('1002','GTNPacketRevisionGrid_aspx','2','9/18/2014','N','N') , ('1002','fmgWorkQueue_aspx','0','1/13/2015','N','N') , ('1002','fmgUSABIMaintenance_aspx','2','2/16/2015','N','N') , ('1002','BPM_aspx','2','2/19/2015','N','N') , ('1002','fmpProducibilityMatrixMod_aspx','2','3/4/2013','N','N') , ('1002','fmgAddEditECCN_aspx','2','3/5/2013','N','N') , ('1002','fmgAddEditNotes_aspx','2','4/17/2013','N','N') , ('1002','fudeceditor_aspx','1','8/5/2014','N','N') , ('1002','fudeceditor_aspx','2','8/5/2014','N','N') , ('1002','fmgAddEditContacts_aspx','2','2/11/2013','N','N') , ('1002','fxdOffsetAdjustments_aspx','2','2/12/2013','N','N') , ('1002','fugDifUploadFilesMod_aspx','2','4/15/2013','N','N') , ('1002','SubscriptionManagement_aspx','2','5/30/2013','N','N') , ('1002','fmgAddEditCategories_aspx','2','3/28/2013','N','N') , ('1002','fmdAbleViewer_aspx','2','4/10/2013','N','N') , ('1002','fxdGVMainView_aspx','2','5/30/2014','N','N') , ('1002','fxdGVDisplayManagement_aspx','2','5/30/2014','N','N') , ('1002','fxdGVDataManagement_aspx','2','5/30/2014','N','N') , ('1002','fmgFTAValidation_aspx','2','1/13/2015','N','N') , ('1002','fmgCountryRegion_aspx','2','4/29/2015','N','N') , ('1002','fmgEventCategory_aspx','2','5/19/2015','N','N') , ('1002','fugLookupManagement_aspx','2','2/24/2015','N','N') , ('1002','fugLandedCost_aspx','2','6/12/2015','N','N') , ('1002','fugReassignmentHistory_aspx','2','6/3/2015','N','N') , ('1002','fugBEApportionmentStrategy','2','6/3/2015','N','N') , ('1002','fmgPageInformation_aspx','2','10/26/2015','N','N') , ('1002','fidBRExportCISLI_aspx','2','1/1/1900','N','N') , ('1002','fugGlobalDashboard_aspx','2','7/27/2015','N','N') , ('1002','fugUserTaskList_aspx','2','7/27/2015','N','N') , ('1002','fmgPageInitiativeCreation_aspx','2','10/26/2015','N','N') , ('1002','fmgLandedCostManagement_aspx','2','7/29/2015','N','N') , ('1002','fugBEApportionmentStrategy_aspx','2','8/27/2015','N','N') , ('1002','Copy (4) of fxdQuotaQuery_aspx','2','11/18/2015','N','N') , ('1002','fmgInvoiceBreakdown_aspx','2','11/18/2015','N','N') , ('1002','fmgContentExtractorWSTest_aspx','2','11/18/2015','N','N') , ('1002','fmgAddEditSubscription_aspx','2','11/18/2015','N','N') , ('1002','fsgDisclaimerCheck_aspx','2','11/18/2015','N','N') , ('1002','fmgPKTAllocations_aspx','2','11/18/2015','N','N') , ('1002','fmgPersonalKnowledgeTracker_aspx','2','11/18/2015','N','N') , ('1002','fugViewVideos_aspx','2','11/18/2015','N','N') , ('1002','fmgBrokerDataAuditDetail_aspx','2','11/18/2015','N','N') , ('1002','Copy of fxdDrawbackTest_aspx','2','11/18/2015','N','N') , ('1002','logCheckPointSetup_aspx','2','11/18/2015','N','N') , ('1002','Copy (2) of fxdQuotaQuery_aspx','2','11/18/2015','N','N') , ('1002','fidMultiView_aspx','2','11/18/2015','N','N') , ('1002','fxdGVDetailView_aspx','2','11/18/2015','N','N') , ('1002','fidPartyManagement_aspx','2','11/18/2015','N','N') , ('1002','fmgGenericSeparation_aspx','2','11/18/2015','N','N') , ('1002','fidDEScoped_aspx','2','11/18/2015','N','N') , ('1002','fugPetroRenderExcel_aspx','2','11/18/2015','N','N') , ('1002','fmgPKTPersonPicture_aspx','2','11/18/2015','N','N') , ('1002','fxdDrawbackTest_aspx','2','11/18/2015','N','N') , ('1002','fmgDPSMaintenanceLog_aspx','2','11/18/2015','N','N') , ('1002','Copy of fxdRGTest_aspx','2','11/18/2015','N','N') , ('1002','fgvDisplayManagement_aspx','2','11/18/2015','N','N') , ('1002','Copy (3) of fxdQuotaQuery_aspx','2','11/18/2015','N','N') , ('1002','fmgSubscriptionManagementNew_aspx','2','11/18/2015','N','N') , ('1002','Copy of fxdDrawback with editformtemplate_aspx','2','11/18/2015','N','N') , ('1002','fxdDTSRegulationListOld_aspx','2','11/18/2015','N','N') , ('1002','Contact_aspx','2','11/18/2015','N','N') , ('1002','Copy (2) of ffdCF7512QP_aspx','2','11/18/2015','N','N') , ('1002','ImportN10_aspx','2','11/18/2015','N','N') , ('1002','Copy of fxdDrawback_aspx','2','11/18/2015','N','N') , ('1002','Copy (2) of fxdConcurrenceDetail_aspx','2','11/18/2015','N','N') , ('1002','fxdPreferenceProgamMaintenance_aspx','2','11/18/2015','N','N') , ('1002','Export_aspx','2','11/18/2015','N','N') , ('1002','fugSpreadsheetUploadTestTestTestTestTestTest_aspx','2','11/18/2015','N','N') , ('1002','Copy of fxdConcurrenceDetail_aspx','2','11/18/2015','N','N') , ('1002','frd105110CNZoneCustomsReconciliationTest_aspx','2','11/18/2015','N','N') , ('1002','fmgGenericApproval_aspx','2','11/18/2015','N','N') , ('1002','fugQueueExplorer_aspx','2','11/18/2015','N','N') , ('1002','fugGTNActionConfig_aspx','2','11/18/2015','N','N') , ('1002','frd106101ComponentBalanceAuditReport_aspx','2','11/18/2015','N','N') , ('1002','Copy of fxdEntry_aspx','2','11/18/2015','N','N') , ('1002','fidAGSIMPCERTConsolidate_aspx','2','11/18/2015','N','N') , ('1002','Copy (3) of ffdCF7512QP_aspx','2','11/18/2015','N','N') , ('1002','AddRegion_aspx','2','6/4/2015','N','N') , ('1002','fmgUploadMissingDocuments_aspx','2','11/9/2015','N','N') , ('1002','fidSCVDataImport_aspx','2','12/13/2015','N','N') , ('1002','fidSCVEventDetail_aspx','2','8/10/2015','N','N') , ('1002','fidSCVEventManagement_aspx','2','8/10/2015','N','N') , ('1002','fugTTMSQLConfiguration_aspx','2','8/13/2015','N','N') , ('1002','EditTTMSQL_aspx','2','8/12/2015','N','N') , ('1002','logPartnerCheckPoints_aspx','2','11/18/2015','N','N') , ('1002','fmgPageInitiativeAssignment_aspx','2','10/26/2015','N','N') , ('1002','fxdConfigChange_aspx','2','11/18/2015','N','N') , ('1002','fxdGVReportSetup_aspx','2','11/18/2015','N','N') , ('1002','QueueViewer_aspx','2','11/18/2015','N','N') , ('1002','fidDEAESCERTConsolidate_aspx','2','11/18/2015','N','N') , ('1002','fmgPKTProductTeams_aspx','2','11/18/2015','N','N') , ('1002','Copy of fxdQuotaQuery_aspx','2','11/18/2015','N','N') , ('1002','fidAtoConcessorioSummary_aspx','2','11/18/2015','N','N') , ('1002','Register_aspx','2','11/18/2015','N','N') , ('1002','frdCNZoneComponentBalanceReport_aspx','2','11/18/2015','N','N') , ('1002','Copy (5) of fxdQuotaQuery_aspx','2','11/18/2015','N','N') , ('1002','fmgWCONotes_aspx','2','11/18/2015','N','N') , ('1002','RegisterExternalLogin_aspx','2','11/18/2015','N','N') , ('1002','fxdAMSQueryBOLRepliesxx_aspx','2','11/18/2015','N','N') , ('1002','fxdRGTest_aspx','2','11/18/2015','N','N') , ('1002','Copy (6) of fxdQuotaQuery_aspx','2','11/18/2015','N','N') , ('1002','fidDEDeclaration_aspx','2','11/18/2015','N','N') , ('1002','fidDESupplementary_aspx','2','11/18/2015','N','N') , ('1002','Manage_aspx','2','11/18/2015','N','N') , ('1002','Copy of fxdAMSQuery_aspx','2','11/18/2015','N','N') , ('1002','fmdClassificationUpdate_aspx','2','11/18/2015','N','N') , ('1002','frd105110CNZoneImportCCSListTest_aspx','2','11/18/2015','N','N') , ('1002','test_aspx','2','11/18/2015','N','N') , ('1002','Copy of ffdCF7512WPMulti_aspx','2','11/18/2015','N','N') , ('1002','HomePage_aspx','2','11/18/2015','N','N') , ('1002','SubscriptionDataEntry_aspx','2','11/18/2015','N','N') , ('1002','DynamicSectionRecordEdit_aspx','2','11/18/2015','N','N') , ('1002','fmgPKTCertifications_aspx','2','11/18/2015','N','N') , ('1002','GTMTemplatePage_aspx','2','11/18/2015','N','N') , ('1002','fmgHSMaintenanceLogOld_aspx','2','11/18/2015','N','N') , ('1002','frd105110CNZoneImportCCSListManualAssigments_aspx','2','11/18/2015','N','N') , ('1002','fmgBOMMaintenance1_aspx','2','11/18/2015','N','N') , ('1002','fugCountryProfile_aspx','2','11/18/2015','N','N') , ('1002','LogFilterSetup_aspx','2','11/18/2015','N','N') , ('1002','frd105110CNZoneExportCCSListTest_aspx','2','11/18/2015','N','N') , ('1002','formaPrueba_aspx','2','11/18/2015','N','N') , ('1002','logFileTransfers_aspx','2','11/18/2015','N','N') , ('1002','fgvLandingSetup_aspx','2','11/18/2015','N','N') , ('1002','frdCNZonePOA_aspx','2','11/18/2015','N','N') , ('1002','frd106101AnnualReconciliationReport_aspx','2','11/18/2015','N','N') , ('1002','fidDEAESDeclaration_aspx','2','11/18/2015','N','N') , ('1002','LogonAbout_aspx','2','11/18/2015','N','N') , ('1002','fxdGVCrossReferenceSetup_aspx','2','11/18/2015','N','N') , ('1002','frd_105110_CNZoneMaterialBalanceReport_aspx','2','11/18/2015','N','N') , ('1002','fmgBrokerDataAudit_aspx','2','11/18/2015','N','N') , ('1002','fidDESADTest_aspx','2','11/18/2015','N','N') , ('1002','logWorkflowProcesses_aspx','2','11/18/2015','N','N') , ('1002','Copy of fxdShippedVehiclesQuery_aspx','2','11/18/2015','N','N') , ('1002','Login_aspx','2','11/18/2015','N','N') , ('1002','frd105110CNZoneMaterialBalance_aspx','2','11/18/2015','N','N') , ('1002','fudContentChangesManager_aspx','2','8/25/2016','N','N') , ('1002','fudContentChangesEditor_aspx','2','8/25/2016','N','N') , ('1001','fugADDSearch_aspx','2','5/3/2016','N','N') , ('1002','fugADDSearch_aspx','2','5/3/2016','N','N') , ('1003','fugADDSearch_aspx','2','5/3/2016','N','N') , ('1002','fmgDeniedList_aspx','2','5/3/2016','N','N') , ('1002','fmgEditValidateBindingRulings_aspx','2','5/3/2016','N','N') , ('1002','frdComponentUseReport_aspx','2','5/3/2016','N','N') , ('1003','frdComponentUseReport_aspx','2','5/3/2016','N','N') , ('1002','fugMXStaticBOMMassUpdate_aspx','2','5/3/2016','N','N') , ('1003','fugMXStaticBOMMassUpdate_aspx','2','5/3/2016','N','N') , ('1002','fxdEntryDataAudit_aspx','2','5/3/2016','N','N') , ('1002','fxdEntryDataAuditDetail_aspx','2','5/3/2016','N','N') , ('1002','frdFTASuppCertEditProduct_aspx','2','5/3/2016','N','N') , ('1001','fmgABICompanyMaintenance_aspx','1','10/13/2016','N','N') , ('1002','fmgABICompanyMaintenance_aspx','2','10/13/2016','N','N') , ('1002','fmgPGASettings_aspx','2','10/13/2016','N','N') , ('1002','figInterfaceFileValidation_aspx','2','7/10/2018','N','N') , ('1002','fmgProductLookup.aspx','2','2/22/2017','N','N') , ('1002','fmgUSABIGateway_aspx','2','4/10/2018','N','N') , ('1002','fugDocumentManagement_aspx','2','7/24/2018','N','N') , ('1002','fugDocumentManagement_aspx','2','4/16/2018','N','N') , ('1002','fugImplementationManagement_aspx','1','3/30/2018','N','N') , ('1002','fxdPSCChanges_aspx','2','7/26/2017','N','N') , ('1002','fxdPSCProjectDetails_aspx','2','7/26/2017','N','N') , ('1002','fxdPSCProjects_aspx','2','8/3/2017','N','N') , ('1002','rrdCF214Listing','2','6/20/2005','N','N') , ('1002','fmgClassificationMapping_aspx','2','11/19/2019','N','N') , ('1002','fxdGVMap_aspx','2','9/30/2014','N','N') , ('1002','ffdFZForms_aspx','2','6/19/2017','N','N') , ('1002','fmdESignatureSetup_aspx','2','3/3/2017','N','N') , ('1003','fmdESignatureSetup_aspx','2','3/3/2017','N','N') , ('1002','fxdScoreCard_aspx','2','10/13/2016','N','N') , ('1002','fxdScoreCardAccess_aspx','2','10/13/2016','N','N') , ('1002','fxdScoreCardSetup_aspx','2','10/13/2016','N','N') , ('1002','fxdMXDODA_aspx','2','5/12/2017','N','N') , ('1003','fxdMXDODA_aspx','2','5/12/2017','N','N') , ('1002','fxdMXDODAInvoiceSelection_aspx','2','5/12/2017','N','N') , ('1003','fxdMXDODAInvoiceSelection_aspx','2','5/12/2017','N','N') , ('1002','fxdMXMaintainDODA_aspx','2','5/12/2017','N','N') , ('1003','fxdMXMaintainDODA_aspx','2','5/12/2017','N','N') , ('1002','BPMOverview_aspx','2','5/12/2017','N','N') , ('1002','fmgRequestEdit_aspx','2','5/12/2017','N','N') , ('1002','fmgRequestHeader_aspx','2','5/12/2017','N','N') , ('1002','fmgRequestKeySelection_aspx','2','5/12/2017','N','N') , ('1002','fmgRequestResponse_aspx','2','5/12/2017','N','N') , ('1002','fugTradeRoute_aspx','2','5/12/2017','N','N') , ('1002','fidNLCERTConsolidate_aspx','2','6/19/2017','N','N') , ('1002','fmgProductLookup_aspx','2','6/19/2017','N','N') , ('1002','fmgRulesPriority_aspx','1','6/19/2017','N','N') , ('1002','frdCustomsWarehouseReportsByLot_aspx','2','6/19/2017','N','N') , ('1002','fsgUserSetupDetail_aspx','2','6/19/2017','N','N') , ('1002','fxdZoneToZoneTransferMod_aspx','2','6/19/2017','N','N') , ('1002','SurveyQuestions_aspx','1','6/19/2017','N','N') , ('1002','fxdDeclarationCorrection_aspx','2','8/4/2017','N','N') , ('1002','fmdEditCustomMappings_aspx','1','8/4/2017','N','N') , ('1002','fxdExVAuditLog_aspx','2','8/4/2017','N','N') , ('1002','fxdExVDeclarationOverview_aspx','2','8/4/2017','N','N') , ('1002','fxdDTSQuery_aspx','2','2/10/2016','N','N') , ('1002','LogonSimple_aspx','2','2/10/2016','N','N') , ('1002','DTSfxdDPSQuery_aspx','2','2/10/2016','N','N') , ('1002','ffdCF7512OutboundRS_aspx','2','2/10/2016','N','N') , ('1002','fmgZoneMaintenance_aspx','2','2/10/2016','N','N') , ('1002','ConstructReport_aspx','2','7/5/2017','N','N') , ('1002','fxdExVDiscrepancyManagement_aspx','2','8/4/2017','N','N') , ('1002','fidDENormalDeclaration_aspx','2','4/29/2016','N','N') , ('1002','fidDEScirec_aspx','2','4/29/2016','N','N') , ('1002','fidDESciped_aspx','2','4/29/2016','N','N') , ('1002','fidDESratax_aspx','2','5/12/2016','N','N') , ('1002','fugContentDetail_aspx','2','4/25/2016','N','N') , ('1002','fugContentGrid_aspx','2','4/25/2016','N','N') , ('1002','fmgRuleCategoryTest_aspx','2','4/25/2016','N','N') , ('1002','HealthCheck_aspx','2','4/25/2016','N','N') , ('1002','fmgPageMetrics_aspx','2','4/25/2016','N','N') , ('1002','fxdRecordDetails_aspx','2','10/1/2015','N','N') , ('1002','fxdExVErrorReporting_aspx','2','8/4/2017','N','N') , ('1002','DisplayHelp_aspx','1','1/8/2013','N','N') , ('1002','fugAuditClassifications_v2_aspx','1','1/8/2013','N','N') , ('1002','fugInitializeProcess_aspx','1','1/8/2013','N','N') , ('1002','Copy of fxdEditAdmission_aspx','1','1/8/2013','N','N') , ('1002','fudISAQuery_aspx','1','1/8/2013','N','N') , ('1002','frdValidationReport_v2_aspx','1','1/8/2013','N','N') , ('1002','fugISAQuery_aspx','1','1/8/2013','N','N') , ('1002','fudRenameReconType_aspx','1','1/8/2013','N','N') , ('1002','fugOpenQueryBuilder_aspx','1','1/8/2013','N','N') , ('1002','fupChangeDocumentNumber_v2_aspx','1','1/8/2013','N','N') , ('1002','Help_aspx','1','1/8/2013','N','N') , ('1002','DatabaseRoundTrip_aspx','1','1/8/2013','N','N') , ('1002','fmdExportMaster_aspx','1','1/8/2013','N','N') , ('1002','fxdLoadIntegrationFiles_v2_aspx','2','11/23/2010','N','N') , ('1002','frdPrintGenericReport_aspx','2','1/13/2017','N','N') , ('1002','fugSemanticConfiguration_aspx','2','7/5/2017','N','N') , ('1002','ExportMissingLicense_aspx','1','4/17/2018','N','N') , ('1002','fugTradeLane_aspx','2','11/21/2018','N','N') , ('1001','1018','1','11/19/2015','N','N') , ('1001','1039','1','9/26/2014','N','N') , ('1001','CrossSAMLConsumer_aspx','2','8/24/2018','N','N') , ('1001','CrossSAMLGenerator_aspx','2','8/24/2018','N','N') , ('1001','fmdClassificationRequest_aspx','1','8/29/2018','N','N') , ('1001','frdMXFixedAssets_aspx','2','6/26/2011','N','N') , ('1001','frdMXFixedAssetTransactionAudit_aspx','2','6/26/2011','N','N') , ('1001','frdProductShipmentReport_aspx','1','3/18/2005','N','N') , ('1001','fugGlobalDashboard_aspx','1','7/20/2015','N','N') , ('1001','SAML20Consumer_aspx','2','8/24/2018','N','N') , ('1003','1000','2','11/19/2015','N','N') , ('1003','1001','2','11/19/2015','N','N') , ('1003','1002','2','2/27/2012','N','N') , ('1003','1003','2','11/19/2015','N','N') , ('1003','1004','2','11/19/2015','N','N') , ('1003','1005','2','11/19/2015','N','N') , ('1003','1006','2','6/17/2016','N','N') , ('1003','1007','2','11/19/2015','N','N') , ('1003','1008','2','11/19/2015','N','N') , ('1003','1009','2','11/19/2015','N','N') , ('1003','1010','2','11/19/2015','N','N') , ('1003','1011','2','11/19/2015','N','N') , ('1003','1012','2','11/19/2015','N','N') , ('1003','1013','2','11/19/2015','N','N') , ('1003','1014','2','11/19/2015','N','N') , ('1003','1015','2','11/19/2015','N','N') , ('1003','1016','2','11/19/2015','N','N') , ('1003','1017','2','11/19/2015','N','N') , ('1003','1018','2','11/19/2015','N','N') , ('1003','1019','2','11/19/2015','N','N') , ('1003','1020','2','11/19/2015','N','N') , ('1003','1021','2','11/19/2015','N','N') , ('1003','1022','2','11/19/2015','N','N') , ('1003','1023','2','11/19/2015','N','N') , ('1003','1024','2','11/19/2015','N','N') , ('1003','1025','2','11/19/2015','N','N') , ('1003','1026','2','11/19/2015','N','N') , ('1003','1027','2','11/19/2015','N','N') , ('1003','1028','2','11/19/2015','N','N') , ('1003','1029','2','11/19/2015','N','N') , ('1003','1030','2','11/19/2015','N','N') , ('1003','1031','0','11/19/2015','N','N') , ('1003','1032','0','11/19/2015','N','N') , ('1003','1033','2','1/16/2018','N','N') , ('1003','1034','2','11/19/2015','N','N') , ('1003','1035','0','11/19/2015','N','N') , ('1003','1036','2','11/19/2015','N','N') , ('1003','1037','2','11/19/2015','N','N') , ('1003','1038','0','9/26/2014','N','N') , ('1003','1038','2','8/29/2016','N','N') , ('1003','1040','2','11/19/2015','N','N') , ('1003','1041','2','11/19/2015','N','N') , ('1003','1042','2','11/19/2015','N','N') , ('1003','1043','2','11/19/2015','N','N') , ('1003','1044','2','11/19/2015','N','N') , ('1003','1045','2','11/19/2015','N','N') , ('1003','1046','2','11/19/2015','N','N') , ('1003','1047','2','11/19/2015','N','N') , ('1003','1048','2','11/19/2015','N','N') , ('1003','1049','2','11/19/2015','N','N') , ('1003','1050','2','11/19/2015','N','N') , ('1003','1051','0','11/19/2015','N','N') , ('1003','1052','2','11/19/2015','N','N') , ('1003','1053','2','11/19/2015','N','N') , ('1003','1054','2','11/19/2015','N','N') , ('1003','1055','2','11/14/2013','N','N') , ('1003','1056','2','11/14/2013','N','N') , ('1003','1057','2','11/14/2013','N','N') , ('1003','1058','2','11/14/2013','N','N') , ('1003','1059','2','11/14/2013','N','N') , ('1003','1060','2','11/14/2013','N','N') , ('1003','1061','2','11/14/2013','N','N') , ('1003','1062','2','11/14/2013','N','N') , ('1003','1063','2','1/3/2007','N','N') , ('1003','1064','2','11/14/2013','N','N') , ('1003','1065','2','11/14/2013','N','N') , ('1003','1066','2','10/10/2012','N','N') , ('1003','1067','2','11/14/2013','N','N') , ('1003','1070','2','11/14/2013','N','N') , ('1003','1071','2','12/22/2006','N','N') , ('1003','1073','2','11/14/2013','N','N') , ('1003','1074','2','11/14/2013','N','N') , ('1003','1075','2','11/19/2015','N','N') , ('1003','1076','2','11/19/2015','N','N') , ('1003','1077','2','11/19/2015','N','N') , ('1003','1078','2','3/15/2013','N','N') , ('1003','1079','2','7/25/2013','N','N') , ('1003','1080','2','12/22/2006','N','N') , ('1003','1081','2','12/22/2006','N','N') , ('1003','1082','2','11/19/2015','N','N') , ('1003','1083','2','11/19/2015','N','N') , ('1003','1084','2','1/1/2004','N','N') , ('1003','1085','2','11/14/2013','N','N') , ('1003','1086','2','7/25/2013','N','N') , ('1003','1087','2','1/15/2014','N','N') , ('1003','About_aspx','2','10/5/2015','N','N') , ('1003','AddCompany_aspx','2','3/2/2016','N','N') , ('1003','AddLicenseProduct_aspx','0','1/11/2013','N','N') , ('1003','AESMissingShipment_aspx','0','10/24/2011','N','N') , ('1003','AuditLog_aspx','0','1/6/2013','N','N') , ('1003','BPM_aspx','2','8/22/2017','N','N') , ('1003','BPMOverview_aspx','2','4/17/2017','N','N') , ('1003','ClientContentManagement_aspx','2','4/12/2010','N','N') , ('1003','CrossSAMLConsumer_aspx','2','8/24/2018','N','N') , ('1003','CrossSAMLGenerator_aspx','2','8/24/2018','N','N') , ('1003','DecisionTreeOverview_aspx','2','3/5/2018','N','N') , ('1003','Default_aspx','2','10/17/2018','N','N') , ('1003','DTSExcludedWords_aspx','2','7/12/2013','N','N') , ('1003','DynamicEdit_aspx','2','2/11/2019','N','N') , ('1003','Edit.aspx','2','11/27/2012','N','N') , ('1003','Edit_aspx','2','4/12/2016','N','N') , ('1003','EditDetail_aspx','2','6/29/2012','N','N') , ('1003','EditGeneric_aspx','2','6/29/2012','N','N') , ('1003','EntityDetail_aspx','2','1/23/2012','N','N') , ('1003','f105701reallocate_aspx','2','5/16/2012','N','N') , ('1003','ffdCF214Domestic_aspx','2','6/17/2016','N','N') , ('1003','ffdCF7501WeeklyEntryFormRS_aspx','2','11/19/2015','N','N') , ('1003','ffdCF7512Multi_aspx','2','5/27/2014','N','N') , ('1003','ffdCF7512QP_aspx','2','11/27/2012','N','N') , ('1003','ffdCF7512QPReplies_aspx','2','11/27/2012','N','N') , ('1003','ffdCF7512QPReplyDetail_aspx','2','11/27/2012','N','N') , ('1003','ffdCF7512QPSummary_aspx','2','11/27/2012','N','N') , ('1003','ffdCF7512QPValidation_aspx','2','11/27/2012','N','N') , ('1003','ffdCF7512QPWP_aspx','2','11/19/2015','N','N') , ('1003','ffdCF7512TransportationEntryForm_aspx','2','9/29/2011','N','N') , ('1003','ffdCF7512WP_aspx','2','11/27/2012','N','N') , ('1003','ffdCF7512WPMulti_aspx','2','12/19/2012','N','N') , ('1003','ffdCF7512WPReplies_aspx','2','11/27/2012','N','N') , ('1003','ffdCF7512WPReplyDetail_aspx','2','11/27/2012','N','N') , ('1003','ffdCF7512WPSummary_aspx','2','11/27/2012','N','N') , ('1003','ffdMXHighSecuritySeal_aspx','2','5/27/2013','N','N') , ('1003','ffdMXInvoiceHeader_aspx','2','5/27/2013','N','N') , ('1003','ffdMXWeeklyPedimentoForm_aspx','2','5/27/2013','N','N') , ('1003','ffdMXZoneScrapInvoice_aspx','2','5/27/2013','N','N') , ('1003','ffdPTT_aspx','2','6/26/2008','N','N') , ('1003','ffpPrepareCF214Admission_aspx','2','12/22/2006','N','N') , ('1003','fidAESReportEntry_aspx','2','11/14/2013','N','N') , ('1003','fidAESReportEntryICSR_aspx','2','11/14/2013','N','N') , ('1003','fidAESReportStatus_aspx','2','11/14/2013','N','N') , ('1003','fidBOMAnalysisUpload_aspx','2','5/27/2013','N','N') , ('1003','fidDISSubmissions_aspx','2','3/2/2016','N','N') , ('1003','fidGenericFileExport_aspx','2','5/27/2013','N','N') , ('1003','fidManualProduction_aspx','2','2/21/2018','N','N') , ('1003','fipGenerateCensusFile_aspx','2','12/22/2006','N','N') , ('1003','fmdClassificationEdit_aspx','2','2/8/2012','N','N') , ('1003','fmdClassificationRequest_aspx','2','2/8/2012','N','N') , ('1003','fmdDecisionTreeQuestionnaire_aspx','2','3/2/2016','N','N') , ('1003','fmdEditSearchResults_aspx','2','3/2/2016','N','N') , ('1003','fmdGlobalProductView_aspx','2','2/8/2012','N','N') , ('1003','fmdScopeOfAuthority_aspx','2','10/12/2011','N','N') , ('1003','fmdSetBreakdown_aspx','2','8/29/2012','N','N') , ('1003','fmgABICompanyMaintenance_aspx','2','7/21/2016','N','N') , ('1003','fmgAddKnowledge_aspx','2','12/4/2012','N','N') , ('1003','fmgAddMaintenanceData_aspx','2','1/30/2012','N','N') , ('1003','fmgAddMessages_aspx','2','2/24/2014','N','N') , ('1003','fmgClassificationProductCopy_aspx','2','6/2/2016','N','N') , ('1003','fmgClassificationSetBreakDown_aspx','2','10/12/2017','N','N') , ('1003','fmgClassificationUpdate_aspx','2','10/18/2017','N','N') , ('1003','fmgCompany_aspx','2','10/5/2012','N','N') , ('1003','fmgCompanyMaintenance_aspx','2','3/2/2016','N','N') , ('1003','fmgEquipmentMaintenance_aspx','2','11/19/2013','N','N') , ('1003','fmgKnowledgeCommunityDashboard_aspx','2','2/24/2014','N','N') , ('1003','fmgKnowledgeProfile_aspx','2','2/24/2014','N','N') , ('1003','fmgPGASettings_aspx','2','4/20/2016','N','N') , ('1003','fmgProductLookup_aspx','2','3/29/2016','N','N') , ('1003','fmgSearch_aspx','2','11/19/2012','N','N') , ('1003','fmgSolicitationAdministration_aspx','2','9/26/2014','N','N') , ('1003','fmgSubscriptionManagement_aspx','2','9/30/2013','N','N') , ('1003','fmgTransactionCustomRules_aspx','2','2/11/2019','N','N') , ('1003','frdAnnualMaquilaReport_aspx','2','5/27/2013','N','N') , ('1003','frdAnnualReconciliationReportByLot_aspx','2','5/16/2012','N','N') , ('1003','frdAssistDetailReport_aspx','2','1/20/2005','N','N') , ('1003','frdAssistSummaryReport_aspx','2','1/20/2005','N','N') , ('1003','frdComponentBalanceAuditReportByLot_aspx','2','9/11/2017','N','N') , ('1003','frdDistributionLayerUsageReport_aspx','2','5/27/2013','N','N') , ('1003','frdDistributionRunningBalanceReport_aspx','2','5/27/2013','N','N') , ('1003','frdFinishedGoodBalanceAuditReport_aspx','2','6/6/2006','N','N') , ('1003','frdFinishedGoodBalanceAuditReportByLot_aspx','2','5/16/2012','N','N') , ('1003','frdFTAComponentDuty_aspx','2','5/27/2013','N','N') , ('1003','frdFTZInventoryAuditReport_aspx','2','9/22/2016','N','N') , ('1003','frdHMFDetailReport_aspx','2','3/7/2013','N','N') , ('1003','frdLotGenealogy_aspx','2','5/16/2012','N','N') , ('1003','frdManufacturingAssemblies_aspx','2','4/6/2015','N','N') , ('1003','frdMXFixedAssets_aspx','2','6/26/2011','N','N') , ('1003','frdMXFixedAssetTransactionAudit_aspx','2','6/26/2011','N','N') , ('1003','frdMXInegiReport_aspx','2','5/27/2013','N','N') , ('1003','frdMXInventoryAudit_aspx','2','5/27/2013','N','N') , ('1003','frdMXInventoryHistory_aspx','2','5/27/2013','N','N') , ('1003','frdMXOpenPedimentoReport_aspx','2','5/27/2013','N','N') , ('1003','frdMXPedimentoSummary_aspx','2','5/27/2013','N','N') , ('1003','frdMXScrapTransactionAudit_aspx','2','5/27/2013','N','N') , ('1003','frdMXShipmentTransactionAudit_aspx','2','5/27/2013','N','N') , ('1003','frdMXTransactionAudit_aspx','2','5/27/2013','N','N') , ('1003','frdOpenCF214Report_aspx','2','4/24/2014','N','N') , ('1003','frdProductHistoryReportWithLOT_aspx','2','5/16/2012','N','N') , ('1003','frdProductShipmentReport_aspx','2','3/18/2005','N','N') , ('1003','frdScopeOfAuthorityAudit_aspx','2','10/7/2017','N','N') , ('1003','frdShipmentProformaReport_aspx','2','8/13/2012','N','N') , ('1003','frdStrasbourgReport_aspx','2','11/14/2013','N','N') , ('1003','frdWeeklyCF3461ReconReport_aspx','2','11/1/2004','N','N') , ('1003','frdWeeklyOutboundReconReport_aspx','2','8/10/2012','N','N') , ('1003','frdWeeklyPedimentoSummary_aspx','2','5/27/2013','N','N') , ('1003','fsgCountryAccess_aspx','2','4/24/2014','N','N') , ('1003','fsgEmailToSupport_aspx','2','3/14/2013','N','N') , ('1003','fsgPartnerCultures_aspx','2','3/24/2014','N','N') , ('1003','fsgResetMyPassword_aspx','2','4/5/2018','N','N') , ('1003','fsgSystemProcessing_aspx','2','7/15/2016','N','N') , ('1003','fsgTranslationManagement_aspx','2','1/13/2014','N','N') , ('1003','fsgUserDetailSetup_aspx','2','3/14/2013','N','N') , ('1003','fsgUserQuickSetup_aspx','2','3/11/2015','N','N') , ('1003','fudCharts_aspx','0','8/8/2011','N','N') , ('1003','fudCreatePeriodBalancesByLot_aspx','2','5/16/2012','N','N') , ('1003','fudGlobalDashboard_aspx','1','6/1/2011','N','N') , ('1003','fudGlobalDashboard69_aspx','1','10/12/2011','N','N') , ('1003','fudGlobalDashboardManagement_aspx','0','10/12/2011','N','N') , ('1003','fudWebServiceSetup_aspx','0','8/8/2011','N','N') , ('1003','fugAccessReportFiles_aspx','2','11/14/2013','N','N') , ('1003','fugAuditClassifications_aspx','2','6/29/2012','N','N') , ('1003','fugBindingRulingsDetail_aspx','2','1/13/2014','N','N') , ('1003','fugContentAttributes_aspx','2','5/27/2013','N','N') , ('1003','fugContentSearch_aspx','2','3/24/2014','N','N') , ('1003','fugCountryInfoDetail_aspx','2','1/14/2013','N','N') , ('1003','fugCountryInfoDetailPopup_aspx','2','9/3/2014','N','N') , ('1003','fugDocumentAnalyzer_aspx','2','3/24/2014','N','N') , ('1003','fugDocumentDetermination_aspx','2','1/14/2013','N','N') , ('1003','fugDocumentRetention_aspx','0','5/27/2013','N','N') , ('1003','fugDutyTaxAnalyzer_aspx','2','4/17/2017','N','N') , ('1003','fugEditCF214_aspx','2','4/24/2014','N','N') , ('1003','fugGetHTS_aspx','2','1/3/2007','N','N') , ('1003','fugGlobalDashboard_aspx','1','7/20/2015','N','N') , ('1003','fugGlobalTariffsChargeDetail_aspx','2','5/17/2012','N','N') , ('1003','fugHTSQuery_aspx','2','1/3/2007','N','N') , ('1003','fugHTSUpdate_aspx','2','1/3/2007','N','N') , ('1003','fugImportFileToTable_aspx','2','8/7/2012','N','N') , ('1003','fugKnowledge_aspx','2','2/24/2014','N','N') , ('1003','fugKnowledgeCommunity_aspx','2','6/18/2014','N','N') , ('1003','fugKnowledgeCommunityProfile_aspx','2','2/24/2014','N','N') , ('1003','fugKnowledgeDetail_aspx','2','2/24/2014','N','N') , ('1003','fugMassUpdate_aspx','2','6/29/2012','N','N') , ('1003','fugMessages_aspx','2','2/24/2014','N','N') , ('1003','fugMXPedimentoAudit_aspx','2','12/4/2012','N','N') , ('1003','fugNews_aspx','2','4/7/2015','N','N') , ('1003','fugNewsMessages_aspx','2','4/7/2015','N','N') , ('1003','fugOpenEmail_aspx','2','11/19/2015','N','N') , ('1003','fugOpenSearch_aspx','2','5/27/2013','N','N') , ('1003','fugOpenSearchImproved.aspx','2','11/27/2012','N','N') , ('1003','fugOpenSearchImproved_aspx','2','4/27/2016','N','N') , ('1003','fugOpenUpdate_aspx','2','10/8/2018','N','N') , ('1003','fugReceiptReassignment_aspx','2','12/8/2017','N','N') , ('1003','fugRegulationListUpdates_aspx','2','1/13/2014','N','N') , ('1003','fugRenderExcel_aspx','2','8/14/2011','N','N') , ('1003','fugReprintExitDocID','2','11/27/2012','N','N') , ('1003','fugReprintExitDocID_aspx','2','8/1/2012','N','N') , ('1003','fugSavedQueries_aspx','2','4/27/2016','N','N') , ('1003','fugSearchDetail_aspx','2','2/22/2012','N','N') , ('1003','fugSearchHistoryDetail_aspx','2','4/10/2012','N','N') , ('1003','fugShipmentReassignment_aspx','2','12/8/2017','N','N') , ('1003','fugSPICodePopup_aspx','2','8/22/2012','N','N') , ('1003','fugSpreadsheetUpload_aspx','2','7/20/2015','N','N') , ('1003','fugTariffAnalyzer_aspx','2','5/17/2012','N','N') , ('1003','fugTariffAnalyzerNew_aspx','2','5/17/2012','N','N') , ('1003','fugTariffUpdates_aspx','2','10/3/2013','N','N') , ('1003','fugTradeRoute_aspx','2','4/17/2017','N','N') , ('1003','fugViewDocument_aspx','2','6/20/2011','N','N') , ('1003','fugWFManagement_aspx','2','5/27/2013','N','N') , ('1003','fxd100400AutoPopulateCF214Report_aspx','2','7/25/2013','N','N') , ('1003','fxd100400InsertFIFOReceipts_aspx','2','7/13/2004','N','N') , ('1003','fxd100400ZeroDutyExportsToEntry_aspx','2','7/13/2004','N','N') , ('1003','fxd214RelatedConcurrences_aspx','2','3/31/2009','N','N') , ('1003','fxd214Replies_aspx','2','11/19/2015','N','N') , ('1003','fxd214ReplyDetail_aspx','2','11/19/2015','N','N') , ('1003','fxd214ReplyFTDetail_aspx','2','11/19/2015','N','N') , ('1003','fxd214Summary_aspx','2','3/31/2009','N','N') , ('1003','fxdABIExceptions_aspx','2','3/31/2009','N','N') , ('1003','fxdADCVDQuery_aspx','2','6/18/2014','N','N') , ('1003','fxdAddImporter_aspx','2','3/31/2009','N','N') , ('1003','fxdAddImporterReplies_aspx','2','3/31/2009','N','N') , ('1003','fxdAddImporterReplyDetail_aspx','2','10/10/2012','N','N') , ('1003','fxdAddImporterReplyTDetail_aspx','2','3/31/2009','N','N') , ('1003','fxdAddImporterSummary_aspx','2','2/28/2013','N','N') , ('1003','fxdAddManufacturer_aspx','2','3/31/2009','N','N') , ('1003','fxdAddManufacturerReplies_aspx','2','10/10/2012','N','N') , ('1003','fxdAddManufacturerSummary_aspx','2','10/10/2012','N','N') , ('1003','fxdAdministrativeMessagesDetail_aspx','2','3/31/2009','N','N') , ('1003','fxdAdministrativeMessagesQuery_aspx','2','3/31/2009','N','N') , ('1003','fxdAdministrativeMessagesSummary_aspx','2','3/31/2009','N','N') , ('1003','fxdAMSMassQuery_aspx','2','11/14/2013','N','N') , ('1003','fxdAMSQuery_aspx','2','11/19/2015','N','N') , ('1003','fxdAMSQueryAirReplies_aspx','2','11/19/2015','N','N') , ('1003','fxdAMSQueryBOLReplies_aspx','2','11/19/2015','N','N') , ('1003','fxdAMSQueryITReplies_aspx','2','11/19/2015','N','N') , ('1003','fxdAMSQuerySummary_aspx','2','11/19/2015','N','N') , ('1003','fxdAssignE214_aspx','2','3/31/2009','N','N') , ('1003','fxdAssignMXExpInv_aspx','2','3/26/2012','N','N') , ('1003','fxdAssignMXImpInv_aspx','2','9/4/2012','N','N') , ('1003','fxdAssist_aspx','2','11/1/2004','N','N') , ('1003','fxdAutoPopulateCF214Manifest_aspx','2','4/24/2014','N','N') , ('1003','fxdAutoPopulateCF214ZoneToZone_aspx','2','4/24/2014','N','N') , ('1003','fxdCancel_aspx','2','10/17/2016','N','N') , ('1003','fxdConcurrenceDetail_aspx','2','11/19/2015','N','N') , ('1003','fxdConcurrenceSummary_aspx','2','11/19/2015','N','N') , ('1003','fxdConcurReplies_aspx','2','11/19/2015','N','N') , ('1003','fxdConcurReplyDetail_aspx','2','11/19/2015','N','N') , ('1003','fxdConcurReplyFZDetail_aspx','2','11/19/2015','N','N') , ('1003','fxdDOT_aspx','2','3/5/2013','N','N') , ('1003','fxdDPSQuery_aspx','2','7/12/2013','N','N') , ('1003','fxdDrawbackSummaryAce_aspx','2','2/14/2018','N','N') , ('1003','fxdDTSHistory_aspx','2','7/12/2013','N','N') , ('1003','fxdDTSHistoryDetail_aspx','2','7/12/2013','N','N') , ('1003','fxdDTSNotes_aspx','2','7/12/2013','N','N') , ('1003','fxdDTSProductMapping_aspx','2','7/12/2013','N','N') , ('1003','fxdDTSQuery_aspx','2','7/12/2013','N','N') , ('1003','fxdDTSQueryDetail_aspx','2','7/12/2013','N','N') , ('1003','fxdDTSRegulationList_aspx','2','7/12/2013','N','N') , ('1003','fxdDTSTransition_aspx','2','7/12/2013','N','N') , ('1003','fxdDTSWebServiceTest_aspx','2','7/12/2013','N','N') , ('1003','fxdEdit214Records_aspx','2','9/7/2012','N','N') , ('1003','fxdEditAdmission_aspx','2','8/1/2012','N','N') , ('1003','fxdEntry_aspx','2','12/28/2015','N','N') , ('1003','fxdEntryDailyStatements_aspx','2','10/26/2018','N','N') , ('1003','fxdEntryErrorCorrection_aspx','2','3/2/2016','N','N') , ('1003','fxdEntryPayConfirmation_aspx','2','10/10/2012','N','N') , ('1003','fxdEntryReplies_aspx','2','10/10/2012','N','N') , ('1003','fxdEntryStatements_aspx','2','7/31/2012','N','N') , ('1003','fxdEntryStatus_aspx','2','10/10/2012','N','N') , ('1003','fxdEntrySummary_aspx','2','12/28/2015','N','N') , ('1003','fxdESQuery_aspx','2','3/2/2016','N','N') , ('1003','fxdETempDeposit_aspx','2','11/19/2015','N','N') , ('1003','fxdEXPInvPrep_aspx','2','3/26/2012','N','N') , ('1003','fxdFCC_aspx','2','3/5/2013','N','N') , ('1003','fxdFDA_aspx','2','3/5/2013','N','N') , ('1003','fxdFIFOMassUpdate_aspx','2','4/26/2016','N','N') , ('1003','fxdFixedAssetProcessing_aspx','2','9/3/2012','N','N') , ('1003','fxdFutureHS_aspx','2','12/28/2011','N','N') , ('1003','fxdImpInvPrep_aspx','2','3/26/2012','N','N') , ('1003','fxdInvoiceAssignment_aspx','2','9/26/2014','N','N') , ('1003','fxdKanbanRelease_aspx','2','11/1/2004','N','N') , ('1003','fxdLoadIntegrationFilesV2_aspx','2','8/17/2005','N','N') , ('1003','fxdManifestAssignment_aspx','2','11/1/2004','N','N') , ('1003','fxdManifestEntry_aspx','2','11/19/2015','N','N') , ('1003','fxdManualNOE_aspx','2','11/14/2013','N','N') , ('1003','fxdMonthlyStatements_aspx','2','10/10/2012','N','N') , ('1003','fxdMXCancelInvoice_aspx','2','8/27/2014','N','N') , ('1003','fxdMXCloseInvoices_aspx','2','5/27/2013','N','N') , ('1003','fxdMXEditInvoice_aspx','1','10/1/2013','N','N') , ('1003','fxdMXEditInvoice_aspx','2','8/27/2014','N','N') , ('1003','fxdMXInvoiceCOVE_aspx','1','10/1/2013','N','N') , ('1003','fxdMXMaintainPedimento_aspx','2','5/17/2013','N','N') , ('1003','fxdMXPrevalidateInvoice_aspx','1','10/1/2013','N','N') , ('1003','fxdMXPrevalidateInvoice_aspx','2','8/27/2014','N','N') , ('1003','fxdMXPrintInvoice_aspx','1','10/1/2013','N','N') , ('1003','fxdMXPrintInvoice_aspx','2','8/27/2014','N','N') , ('1003','fxdMXProcessCOVE_aspx','2','4/12/2012','N','N') , ('1003','fxdMXWorkWithInvoices_aspx','2','5/27/2013','N','N') , ('1003','fxdMXWorkWithPedimentos_aspx','2','5/17/2013','N','N') , ('1003','fxdNAFTADutyDeferral_aspx','2','10/10/2012','N','N') , ('1003','fxdNAFTAForeignDuty_aspx','2','10/10/2012','N','N') , ('1003','fxdNAFTAReconDeterminationReport_aspx','2','10/10/2012','N','N') , ('1003','fxdNAFTAResponses_aspx','2','10/10/2012','N','N') , ('1003','fxdPendingAdjustments_aspx','2','8/10/2012','N','N') , ('1003','fxdPGA_aspx','2','3/2/2016','N','N') , ('1003','fxdPGAEntity_aspx','2','7/1/2015','N','N') , ('1003','fxdPGAMapping_aspx','2','3/2/2016','N','N') , ('1003','fxdQueryImporterBond_aspx','2','6/1/2011','N','N') , ('1003','fxdQueryManufacturer_aspx','2','3/30/2011','N','N') , ('1003','fxdQuotaQuery_aspx','2','5/21/2013','N','N') , ('1003','fxdQuotaQueryAce_aspx','2','4/12/2016','N','N') , ('1003','fxdRetrieveFile_aspx','2','11/27/2012','N','N') , ('1003','fxdRunCustomValidationImport_aspx','2','5/24/2013','N','N') , ('1003','fxdRunCustomValidationShipments_aspx','2','5/24/2013','N','N') , ('1003','fxdScheduleStagingDataTransfer_aspx','2','8/6/2009','N','N') , ('1003','fxdShipmentConsolidation_aspx','2','9/26/2014','N','N') , ('1003','fxdShipmentReallocation_aspx','2','11/14/2013','N','N') , ('1003','fxdSyncInventory_aspx','2','12/21/2011','N','N') , ('1003','fxdTempDeposit_aspx','2','11/19/2015','N','N') , ('1003','fxdTempStorage_aspx','2','2/14/2018','N','N') , ('1003','fxdTransactionChange_aspx','2','7/5/2018','N','N') , ('1003','fxdTransactionReview_aspx','2','5/27/2013','N','N') , ('1003','fxdUpdateMidByTransportID_aspx','2','11/1/2004','N','N') , ('1003','fxdZoneToZoneImport_aspx','2','1/15/2014','N','N') , ('1003','fxdZoneToZoneManualReconciliation_aspx','2','4/26/2012','N','N') , ('1003','fxdZoneToZoneOverlay_aspx','2','4/26/2012','N','N') , ('1003','fxdZoneToZoneTransfer_aspx','2','1/15/2014','N','N') , ('1003','fxxExecuteUpdate_aspx','2','11/19/2015','N','N') , ('1003','fxxExecuteUpdateWithParameters_aspx','2','5/16/2012','N','N') , ('1003','fxxSpecificInventoryShipments_aspx','2','5/27/2013','N','N') , ('1003','GlobalTariffLookup_aspx','2','2/22/2012','N','N') , ('1003','Maintenance_aspx','2','1/20/2013','N','N') , ('1003','SAML20Consumer_aspx','2','8/24/2018','N','N') , ('1003','Search.aspx','2','11/27/2012','N','N') , ('1003','Search_aspx','2','6/29/2012','N','N') , ('1003','Upload_aspx','2','12/22/2006','N','N') , ('1003','UploadReceipts_aspx','2','12/22/2006','N','N') , ('1003','wfAnnualFTZBoardReport_aspx','2','7/25/2013','N','N') , ('1003','wfAnnualReconciliationReport_aspx','2','7/25/2013','N','N') , ('1003','wfCF214FTZAdmissionForm_aspx','2','6/17/2016','N','N') , ('1003','wfCF349HarborMaintenanceFeeForm_aspx','2','7/25/2013','N','N') , ('1003','wfOpenCF214Report_aspx','2','12/22/2006','N','N') , ('1004','1000','1','11/19/2015','N','N') , ('1004','1001','1','11/19/2015','N','N') , ('1004','1002','0','11/19/2015','N','N') , ('1004','1002','1','11/19/2015','N','N') , ('1004','1003','1','11/19/2015','N','N') , ('1004','1004','1','11/19/2015','N','N') , ('1004','1005','1','11/19/2015','N','N') , ('1004','1006','1','9/26/2014','N','N') , ('1004','1007','1','9/26/2014','N','N') , ('1004','1008','1','9/26/2014','N','N') , ('1004','1009','1','9/26/2014','N','N') , ('1004','1010','1','9/26/2014','N','N') , ('1004','1011','1','9/26/2014','N','N') , ('1004','1012','1','9/26/2014','N','N') , ('1004','1013','1','9/26/2014','N','N') , ('1004','1014','1','9/26/2014','N','N') , ('1004','1015','1','9/26/2014','N','N') , ('1004','1016','1','9/26/2014','N','N') , ('1004','1017','1','9/26/2014','N','N') , ('1004','1018','1','11/19/2015','N','N') , ('1004','1019','1','9/26/2014','N','N') , ('1004','1020','1','11/19/2015','N','N') , ('1004','1021','1','11/19/2015','N','N') , ('1004','1022','1','9/26/2014','N','N') , ('1004','1023','1','9/26/2014','N','N') , ('1004','1024','1','11/19/2015','N','N') , ('1004','1025','1','11/19/2015','N','N') , ('1004','1026','1','11/19/2015','N','N') , ('1004','1027','1','9/26/2014','N','N') , ('1004','1028','1','9/26/2014','N','N') , ('1004','1029','1','11/19/2015','N','N') , ('1004','1030','1','11/19/2015','N','N') , ('1004','1031','0','11/19/2015','N','N') , ('1004','1032','0','11/19/2015','N','N') , ('1004','1033','0','11/19/2015','N','N') , ('1004','1034','0','11/19/2015','N','N') , ('1004','1035','0','11/19/2015','N','N') , ('1004','1036','1','11/19/2015','N','N') , ('1004','1037','1','11/19/2015','N','N') , ('1004','1038','0','9/26/2014','N','N') , ('1004','1039','1','4/24/2014','N','N') , ('1004','1040','1','11/19/2015','N','N') , ('1004','1041','1','11/19/2015','N','N') , ('1004','1042','1','9/26/2014','N','N') , ('1004','1043','1','9/26/2014','N','N') , ('1004','1044','1','9/26/2014','N','N') , ('1004','1045','1','11/19/2015','N','N') , ('1004','1046','1','9/26/2014','N','N') , ('1004','1047','1','11/19/2015','N','N') , ('1004','1048','1','11/19/2015','N','N') , ('1004','1049','1','11/19/2015','N','N') , ('1004','1050','1','11/19/2015','N','N') , ('1004','1051','0','11/19/2015','N','N') , ('1004','1052','1','11/19/2015','N','N') , ('1004','1053','1','11/19/2015','N','N') , ('1004','1054','1','11/19/2015','N','N') , ('1004','1075','1','11/19/2015','N','N') , ('1004','1076','1','11/19/2015','N','N') , ('1004','1077','1','11/19/2015','N','N') , ('1004','1082','1','11/19/2015','N','N') , ('1004','1083','1','9/26/2014','N','N') , ('1004','1084','1','9/26/2014','N','N') , ('1004','About_aspx','2','10/5/2015','N','N') , ('1004','AddCompany_aspx','1','5/18/2016','N','N') , ('1004','CrossSAMLConsumer_aspx','2','8/24/2018','N','N') , ('1004','CrossSAMLGenerator_aspx','2','8/24/2018','N','N') , ('1004','DynamicEdit_aspx','2','2/11/2019','N','N') , ('1004','Edit.aspx','2','2/12/2016','N','N') , ('1004','Edit_aspx','2','2/29/2016','N','N') , ('1004','EntityDetail_aspx','2','1/23/2012','N','N') , ('1004','ffdCF7512QPSummary_aspx','1','1/11/2013','N','N') , ('1004','ffdCF7512WPSummary_aspx','1','1/11/2013','N','N') , ('1004','fidDISSubmissions_aspx','1','5/18/2016','N','N') , ('1004','fmdDecisionTreeQuestionnaire_aspx','1','5/18/2016','N','N') , ('1004','fmdEditSearchResults_aspx','1','5/18/2016','N','N') , ('1004','fmdGlobalProductView','0','2/25/2012','N','N') , ('1004','fmdGlobalProductView_aspx','2','2/12/2016','N','N') , ('1004','fmdGlobalProductView_aspx','1','2/12/2016','N','N') , ('1004','fmdScopeOfAuthority_aspx','1','12/8/2011','N','N') , ('1004','fmgABICompanyMaintenance_aspx','1','7/21/2016','N','N') , ('1004','fmgAddKnowledge_aspx','2','12/4/2012','N','N') , ('1004','fmgAddMessages_aspx','2','2/24/2014','N','N') , ('1004','fmgCompanyMaintenance_aspx','1','1/11/2013','N','N') , ('1004','fmgDefaults_aspx','1','2/29/2016','N','N') , ('1004','fmgKnowledgeCommunityDashboard_aspx','2','2/24/2014','N','N') , ('1004','fmgKnowledgeProfile_aspx','2','2/24/2014','N','N') , ('1004','fmgPGASettings_aspx','1','5/18/2016','N','N') , ('1004','fmgProductLookup_asp','0','2/25/2012','N','N') , ('1004','fmgProductLookup_aspx','1','2/12/2016','N','N') , ('1002','fmgClassificationRequestUpload_aspx','2','10/15/2014','N','N') , ('1002','fmgClassificationUpdate_aspx','2','10/15/2014','N','N') , ('1002','frdAtoConcessorioBalanceByACNumber_aspx','2','1/31/2014','N','N') , ('1002','frdAtoConcessorioBalanceByProduct_aspx','2','1/31/2014','N','N') , ('1002','fugLiteSetup_aspx','2','1/22/2013','N','N') , ('1002','fxdEntryLiquidation_aspx','2','8/9/2012','N','N') , ('1002','ffdCF7512Multi_aspx','2','6/21/2013','N','N') , ('1002','fidBRExportPOCISLI_aspx','2','2/28/2014','N','N') , ('1002','EditDetailBR_aspx','2','2/28/2014','N','N') , ('1002','EditGenericBR_aspx','2','2/28/2014','N','N') , ('1002','frd106101CNZoneExportCCSListTest_aspx','2','2/25/2014','N','N') , ('1002','frd106101CNZoneImportCCSListTest_aspx','2','2/25/2014','N','N') , ('1002','frd106101CNZoneMaterialBalanceReport_aspx','2','2/25/2014','N','N') , ('1002','frd106101CNZoneCustomsReconciliationTest_aspx','2','2/25/2014','N','N') , ('1002','fidBRExportIMCISLI_aspx','2','2/28/2014','N','N') , ('1002','fudGTNDocuments_aspx','2','3/12/2014','N','N') , ('1002','frdTestDocumentation_aspx','2','3/12/2014','N','N') , ('1002','fmgOSDMaintenance_aspx','2','10/10/2014','N','N') , ('1002','fidExportDeclaration_aspx','2','1/7/2014','N','N') , ('1002','fidExportRegistration_aspx','2','1/7/2014','N','N') , ('1002','fidSalesOrder_aspx','2','1/7/2014','N','N') , ('1002','fidExportSummary_aspx','2','1/7/2014','N','N') INSERT INTO tmgGroupAccess(GroupGUID,FormGUID,AccessType,EffDate,DeletedFlag,KeepDuringRollback) VALUES ('1001','frdScopeOfAuthorityAudit_aspx','1','11/10/2017','N','N') , ('1002','frdScopeOfAuthorityAudit_aspx','2','11/10/2017','N','N') , ('1001','fugRulesOfOriginPopup_aspx','2','11/10/2017','N','N') , ('1002','fugRulesOfOriginPopup_aspx','2','11/10/2017','N','N') , ('1003','fugRulesOfOriginPopup_aspx','2','11/10/2017','N','N') , ('1002','fsgCreateEncryption_aspx','2','11/10/2017','N','N') , ('1002','fugWorkflowSetup_aspx','2','11/10/2017','N','N') , ('1002','/CBPABI/Interfaces/Reconciliation/fxdRecon.aspx','1','8/28/2018','N','N') , ('1002','fmgBOMMaintenance_aspx','2','8/13/2014','N','N') , ('1002','fmgHandbookMaintenance_aspx','2','8/24/2014','N','N') , ('1004','fmgSolicitationAdministration_aspx','1','9/26/2014','N','N') , ('1004','fmgTransactionCustomRules_aspx','1','2/11/2019','N','N') , ('1004','frdFinishedGoodBalanceAuditReport_aspx','2','3/12/2013','N','N') , ('1004','frdHMFDetailReport_aspx','2','9/10/2013','N','N') , ('1004','frdMXFixedAssets_aspx','2','7/11/2011','N','N') , ('1004','frdMXFixedAssetTransactionAudit_aspx','2','7/11/2011','N','N') , ('1004','frdProductShipmentReport_aspx','1','3/18/2005','N','N') , ('1004','frdScopeOfAuthorityAudit_aspx','1','10/7/2017','N','N') , ('1004','fsgEmailToSupport_aspx','2','3/14/2013','N','N') , ('1004','fsgMaintenanceAccess_aspx','2','3/14/2016','N','N') , ('1004','fsgPartnerCultures_aspx','2','3/24/2014','N','N') , ('1004','fsgResetMyPassword_aspx','2','4/5/2018','N','N') , ('1004','fsgTranslationManagement_aspx','2','1/13/2014','N','N') , ('1004','fsgUserDetailSetup_aspx','2','3/14/2013','N','N') , ('1004','fsgUserQuickSetup_aspx','2','3/11/2015','N','N') , ('1004','fudCharts_aspx','0','8/8/2011','N','N') , ('1004','fudGlobalDashboard_aspx','1','6/1/2011','N','N') , ('1004','fudGlobalDashboard69_aspx','1','10/12/2011','N','N') , ('1004','fudGlobalDashboardManagement_aspx','0','10/12/2011','N','N') , ('1004','fudWebServiceSetup_aspx','0','8/8/2011','N','N') , ('1004','fugADDSearch_aspx','2','4/20/2016','N','N') , ('1004','fugBindingRulings_aspx','2','10/5/2015','N','N') , ('1004','fugBindingRulingsDetail_aspx','2','1/13/2014','N','N') , ('1004','fugDTSLookup_aspx','2','3/11/2015','N','N') , ('1004','fugECCN_aspx','2','10/3/2013','N','N') , ('1004','fugECCNDetail_aspx','2','10/3/2013','N','N') , ('1004','fugECCNLookup_aspx','2','3/24/2014','N','N') , ('1004','fugGlobalDashboard_aspx','1','7/20/2015','N','N') , ('1004','fugGlobalTariffs_aspx','2','10/3/2013','N','N') , ('1004','fugGlobalTariffsDetail_aspx','2','10/3/2013','N','N') , ('1004','fugGlobalTariffsDetail_aspx','1','2/29/2016','N','N') , ('1004','fugGlobalTariffsLanding_aspx','2','3/11/2015','N','N') , ('1004','fugGlobalTariffsLookup_aspx','2','10/3/2013','N','N') , ('1004','fugImportExportVolumes_aspx','2','10/5/2015','N','N') , ('1004','fugKnowledge_aspx','2','2/24/2014','N','N') , ('1004','fugKnowledgeCommunity_aspx','2','6/18/2014','N','N') , ('1004','fugKnowledgeCommunityProfile_aspx','2','2/24/2014','N','N') , ('1004','fugKnowledgeDetail_aspx','2','2/24/2014','N','N') , ('1004','fugLegalText_aspx','2','3/11/2015','N','N') , ('1004','fugMessages_aspx','2','2/24/2014','N','N') , ('1004','fugNews_aspx','2','4/7/2015','N','N') , ('1004','fugNewsMessages_aspx','2','4/7/2015','N','N') , ('1004','fugNewsMessages_aspx','1','2/29/2016','N','N') , ('1004','fugOpenEmail_aspx','2','11/19/2015','N','N') , ('1004','fugOpenSearch_aspx','2','2/12/2016','N','N') , ('1004','fugOpenSearchImproved.aspx','2','2/12/2016','N','N') , ('1004','fugOpenSearchImproved_aspx','2','2/15/2016','N','N') , ('1004','fugOpenSearchImproved_aspx','1','2/29/2016','N','N') , ('1004','fugRegulationListUpdates_aspx','2','1/13/2014','N','N') , ('1004','fugRenderExcel_aspx','2','8/14/2011','N','N') , ('1004','fugReprintExitDocID_aspx','1','1/11/2013','N','N') , ('1004','fugRulesOfOriginPopup_aspx','2','10/7/2017','N','N') , ('1004','fugSavedQueries_aspx','1','1/11/2013','N','N') , ('1004','fugSPICodePopup_aspx','1','8/22/2012','N','N') , ('1004','fugTariffUpdates_aspx','2','10/3/2013','N','N') , ('1004','fugViewDocument_aspx','2','6/20/2011','N','N') , ('1004','fugViewDocument_aspx','1','2/29/2016','N','N') , ('1004','fxd214RelatedConcurrences_aspx','1','1/11/2013','N','N') , ('1004','fxd214Replies_aspx','1','1/11/2013','N','N') , ('1004','fxd214ReplyDetail_aspx','1','1/11/2013','N','N') , ('1004','fxd214ReplyFTDetail_aspx','1','1/11/2013','N','N') , ('1004','fxd214Summary_aspx','1','9/29/2011','N','N') , ('1004','fxdABIExceptions_aspx','1','9/29/2011','N','N') , ('1004','fxdADCVDQuery_aspx','1','6/18/2014','N','N') , ('1004','fxdAddImporter_aspx','1','9/29/2011','N','N') , ('1004','fxdAddImporterReplies_aspx','1','9/29/2011','N','N') , ('1004','fxdAddImporterReplyDetail_aspx','1','9/29/2011','N','N') , ('1004','fxdAddImporterReplyTDetail_aspx','1','9/29/2011','N','N') , ('1004','fxdAddImporterSummary_aspx','1','9/29/2011','N','N') , ('1004','fxdAddManufacturer_aspx','1','9/29/2011','N','N') , ('1004','fxdAddManufacturerReplies_aspx','1','9/29/2011','N','N') , ('1004','fxdAddManufacturerSummary_aspx','1','9/29/2011','N','N') , ('1004','fxdAMSQuery_aspx','1','9/29/2011','N','N') , ('1004','fxdAMSQueryAirReplies_aspx','1','11/19/2015','N','N') , ('1004','fxdAMSQueryBOLReplies_aspx','1','11/19/2015','N','N') , ('1004','fxdAMSQueryITReplies_aspx','1','11/19/2015','N','N') , ('1004','fxdAMSQuerySummary_aspx','1','11/19/2015','N','N') , ('1004','fxdAssignE214_aspx','1','1/11/2013','N','N') , ('1004','fxdCancel_aspx','1','10/17/2016','N','N') , ('1004','fxdConcurrenceDetail_aspx','1','9/29/2011','N','N') , ('1004','fxdConcurrenceSummary_aspx','1','9/29/2011','N','N') , ('1004','fxdConcurReplies_aspx','1','9/29/2011','N','N') , ('1004','fxdConcurReplyDetail_aspx','1','9/29/2011','N','N') , ('1004','fxdConcurReplyFZDetail_aspx','1','9/29/2011','N','N') , ('1004','fxdDefaults_aspx','2','3/14/2016','N','N') , ('1004','fxdEditAdmission_aspx','1','1/11/2013','N','N') , ('1004','fxdEntry_aspx','1','12/28/2015','N','N') , ('1004','fxdEntryErrorCorrection_aspx','1','5/18/2016','N','N') , ('1004','fxdEntryPayConfirmation_aspx','1','9/29/2011','N','N') , ('1004','fxdEntryReplies_aspx','1','9/29/2011','N','N') , ('1004','fxdEntryStatements_aspx','1','9/29/2011','N','N') , ('1004','fxdEntryStatus_aspx','1','9/29/2011','N','N') , ('1004','fxdEntrySummary_aspx','1','12/28/2015','N','N') , ('1004','fxdESQuery_aspx','1','5/18/2016','N','N') , ('1004','fxdFutureHS_aspx','2','12/28/2011','N','N') , ('1004','fxdImporterBondQuery_aspx','1','9/29/2011','N','N') , ('1004','fxdLoadIntegrationFiles_aspx','1','1/11/2013','N','N') , ('1004','fxdManifestEntry_aspx','1','1/11/2013','N','N') , ('1004','fxdMonthlyStatements_aspx','1','9/29/2011','N','N') , ('1004','fxdPGA_aspx','1','7/1/2015','N','N') , ('1004','fxdPGAEntity_aspx','1','7/1/2015','N','N') , ('1004','fxdPGAMapping_aspx','1','5/18/2016','N','N') , ('1004','fxdQueryImporterBond_aspx','1','9/29/2011','N','N') , ('1004','fxdQueryManufacturer_aspx','1','9/29/2011','N','N') , ('1004','fxdQuotaQuery_aspx','1','5/21/2013','N','N') , ('1004','fxdQuotaQueryAce_aspx','1','4/12/2016','N','N') , ('1004','fxdScheduleStagingDataTransfer_aspx','1','1/11/2013','N','N') , ('1004','fxdTransactionChange_aspx','1','7/5/2018','N','N') , ('1004','knowledgeDefault_aspx','2','3/14/2016','N','N') , ('1004','Logout_aspx','1','2/29/2016','N','N') , ('1004','Maintenance_aspx','2','3/14/2016','N','N') , ('1004','SAML20Consumer_aspx','2','8/24/2018','N','N') , ('1004','Search_aspx','1','1/11/2013','N','N') , ('1002','fxdDrawbackAce_aspx','2','11/11/2016','N','N') , ('1001','fmgPGASettings_aspx','1','5/11/2016','N','N') , ('1002','fxdDrawbackSummaryAce_aspx','2','11/11/2016','N','N') , ('1002','fxdGenericValidation_aspx','2','11/11/2016','N','N') , ('1002','fudContentChangesDetail_aspx','2','8/25/2016','N','N') , ('1002','fxdGovernmentDataValidation_aspx','2','8/25/2016','N','N') , ('1002','fugMXRectification_aspx','2','8/25/2016','N','N') , ('1003','fugMXRectification_aspx','2','8/25/2016','N','N') , ('1002','fxdGenericValidationAuditLog_aspx','2','11/11/2016','N','N') , ('1002','fxdGenericValidationErrorReporting_aspx','2','11/11/2016','N','N') , ('1002','fmgSDEUpdates_aspx','2','9/5/2016','N','N') , ('1002','fxdGenericValidationSummary_aspx','2','11/11/2016','N','N') , ('1002','fxdCancel_aspx','2','11/11/2016','N','N') , ('1001','fxdCancel_aspx','1','11/11/2016','N','N') , ('1002','fugMXDigitalFiles_aspx','2','11/11/2016','N','N') , ('1003','fugMXDigitalFiles_aspx','2','11/11/2016','N','N') , ('1002','fxdMXInvoiceSubDiv_aspx','2','11/11/2016','N','N') , ('1003','fxdMXInvoiceSubDiv_aspx','2','11/11/2016','N','N')<file_sep> /*----if the record exists:txdOraGCOutboundMsg.HSNum <> tmdProductClassification.HSNum then update txdOraGCOutboundMsgParams using new record values -----*/ IF ( SELECT COUNT(*) FROM dbo.syscolumns WHERE name IN ('ApprovedBy', 'HSNum') AND ID = OBJECT_ID('tmdProductClassification') ) = 2 begin exec(' UPDATE par1 SET par1.ParameterValue=pc.ProductNum from tmdProductClassification pc WITH (NOLOCK) Join tmdPartnerCrossReference pr WITH (NOLOCK) on pc.PartnerID = pr.PartnerIdentifier and pc.ApprovedBy = ''ORACLE_ERP_CLOUD'' and pc.HSNum<>'''' Join txdOraGCOutboundMsg a WITH (NOLOCK) on a.PartnerID = pc.PartnerID and a.ProductGuid = pc.ProductGuid and a.InterfaceCode = ''MD_PRODUCT_CATEGORY_UPDATE'' and a.HSNum<>pc.HsNum JOIN txdOraGCOutboundMsgParams par1 WITH (NOLOCK) ON a.PartnerID=par1.PartnerID AND a.QueueGUID=par1.QueueGUID AND par1.ParameterName = ''ItemNumber''; ') exec(' UPDATE par2 SET par2.ParameterValue=pr.OrganizationCode from tmdProductClassification pc WITH (NOLOCK) Join tmdPartnerCrossReference pr WITH (NOLOCK) on pc.PartnerID = pr.PartnerIdentifier and pc.ApprovedBy = ''ORACLE_ERP_CLOUD'' and pc.HSNum<>'''' Join txdOraGCOutboundMsg a WITH (NOLOCK) on a.PartnerID = pc.PartnerID and a.ProductGuid = pc.ProductGuid and a.InterfaceCode = ''MD_PRODUCT_CATEGORY_UPDATE'' and a.HSNum<>pc.HsNum JOIN txdOraGCOutboundMsgParams par2 WITH (NOLOCK) ON a.PartnerID=par2.PartnerID AND a.QueueGUID=par2.QueueGUID AND par2.ParameterName = ''OrganizationCode'';') exec(' UPDATE par3 SET par3.ParameterValue=pr.OraItemCatalog from tmdProductClassification pc WITH (NOLOCK) Join tmdPartnerCrossReference pr WITH (NOLOCK) on pc.PartnerID = pr.PartnerIdentifier and pc.ApprovedBy = ''ORACLE_ERP_CLOUD'' and pc.HSNum<>'''' Join txdOraGCOutboundMsg a WITH (NOLOCK) on a.PartnerID = pc.PartnerID and a.ProductGuid = pc.ProductGuid and a.InterfaceCode = ''MD_PRODUCT_CATEGORY_UPDATE'' and a.HSNum<>pc.HsNum JOIN txdOraGCOutboundMsgParams par3 WITH (NOLOCK) ON a.PartnerID=par3.PartnerID AND a.QueueGUID=par3.QueueGUID AND par3.ParameterName = ''ItemCatalog'';') --if the record doesn''t exist insert a new one exec(' INSERT INTO txdOraGCOutboundMsgParams SELECT DISTINCT pc.PartnerID AS PartnerID ,pc.EffDate AS EffDate ,a.QueueGUID AS QueueGUID ,NEWID() AS QueueParameterGUID ,''ItemNumber'' AS ParameterName ,pc.ProductNum AS ParameterValue ,''N'' AS DeletedFlag ,''N'' AS KeepDuringRollback from tmdProductClassification pc WITH (NOLOCK) Join tmdPartnerCrossReference pr WITH (NOLOCK) on pc.PartnerID = pr.PartnerIdentifier and pc.ApprovedBy = ''ORACLE_ERP_CLOUD'' and pc.HSNum<>'''' Join txdOraGCOutboundMsg a WITH (NOLOCK) on a.PartnerID = pc.PartnerID and a.ProductGuid = pc.ProductGuid and a.InterfaceCode = ''MD_PRODUCT_CATEGORY_UPDATE'' where a.QueueGUID not in (select QueueGUID from txdOraGCOutboundMsgParams a WITH (NOLOCK) where a.PartnerID = pc.PartnerID and a.ParameterName=''ItemNumber'') GROUP BY pc.PartnerID, pc.EffDate, pc.ProductGuid, a.QueueGUID, pc.ProductNum') exec(' INSERT INTO txdOraGCOutboundMsgParams SELECT DISTINCT pc.PartnerID AS PartnerID ,pc.EffDate AS EffDate ,a.QueueGUID AS QueueGUID ,NEWID() AS QueueParameterGUID ,''ItemCatalog'' AS ParameterName ,pr.OraItemCatalog AS ParameterValue ,''N'' AS DeletedFlag ,''N'' AS KeepDuringRollback from tmdProductClassification pc WITH (NOLOCK) Join tmdPartnerCrossReference pr WITH (NOLOCK) on pc.PartnerID = pr.PartnerIdentifier and pc.ApprovedBy = ''ORACLE_ERP_CLOUD'' and pc.HSNum<>'''' Join txdOraGCOutboundMsg a WITH (NOLOCK) on a.PartnerID = pc.PartnerID and a.ProductGuid = pc.ProductGuid and a.InterfaceCode = ''MD_PRODUCT_CATEGORY_UPDATE'' where a.QueueGUID not in (select QueueGUID from txdOraGCOutboundMsgParams a WITH (NOLOCK) where a.PartnerID = pc.PartnerID and a.ParameterName=''ItemCatalog'') GROUP BY pc.PartnerID, pc.EffDate, pc.ProductGuid, a.QueueGUID, pr.OraItemCatalog ') exec(' INSERT INTO txdOraGCOutboundMsgParams SELECT DISTINCT pc.PartnerID AS PartnerID ,pc.EffDate AS EffDate ,a.QueueGUID AS QueueGUID ,NEWID() AS QueueParameterGUID ,''OrganizationCode'' AS ParameterName ,pr.OrganizationCode AS ParameterValue ,''N'' AS DeletedFlag ,''N'' AS KeepDuringRollback from tmdProductClassification pc WITH (NOLOCK) Join tmdPartnerCrossReference pr WITH (NOLOCK) on pc.PartnerID = pr.PartnerIdentifier and pc.ApprovedBy = ''ORACLE_ERP_CLOUD'' and pc.HSNum<>'''' Join txdOraGCOutboundMsg a WITH (NOLOCK) on a.PartnerID = pc.PartnerID and a.ProductGuid = pc.ProductGuid and a.InterfaceCode = ''MD_PRODUCT_CATEGORY_UPDATE'' where a.QueueGUID not in (select QueueGUID from txdOraGCOutboundMsgParams a WITH (NOLOCK) where a.PartnerID = pc.PartnerID and a.ParameterName=''OrganizationCode'') GROUP BY pc.PartnerID, pc.EffDate, pc.ProductGuid, a.QueueGUID, pr.OrganizationCode ') end <file_sep>-------------------------------------------------------------------------------------------------------------- --txdUSInvoiceLineAdditional SHCHEMA CHANGES -------------------------------------------------------------------------------------------------------------- IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'UnitADDepositValue' --your column here AND Object_ID = OBJECT_ID('txdUSInvoiceLineAdditional')) --Your Table Here BEGIN EXEC usp_DBACopyTableIndexesByColumn '','txdUSInvoiceLineAdditional','UnitADDepositValue','numeric',1,'',38,20 ALTER TABLE txdUSInvoiceLineAdditional ALTER COLUMN UnitADDepositValue numeric(38,20) EXEC usp_DBACreateTableIndexes '','txdUSInvoiceLineAdditional' --Your Table Here END IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'UnitCVDepositValue' --your column here AND Object_ID = OBJECT_ID('txdUSInvoiceLineAdditional')) --Your Table Here BEGIN EXEC usp_DBACopyTableIndexesByColumn '','txdUSInvoiceLineAdditional','UnitCVDepositValue','numeric',1,'',38,20 ALTER TABLE txdUSInvoiceLineAdditional ALTER COLUMN UnitCVDepositValue numeric(38,20) EXEC usp_DBACreateTableIndexes '','txdUSInvoiceLineAdditional' --Your Table Here END IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'VisaQuantity' --your column here AND Object_ID = OBJECT_ID('txdUSInvoiceLineAdditional')) --Your Table Here BEGIN EXEC usp_DBACopyTableIndexesByColumn '','txdUSInvoiceLineAdditional','VisaQuantity','numeric',1,'',38,20 ALTER TABLE txdUSInvoiceLineAdditional ALTER COLUMN VisaQuantity numeric(38,20) EXEC usp_DBACreateTableIndexes '','txdUSInvoiceLineAdditional' --Your Table Here END IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'ADDQuantity' --your column here AND Object_ID = OBJECT_ID('txdUSInvoiceLineAdditional')) --Your Table Here BEGIN EXEC usp_DBACopyTableIndexesByColumn '','txdUSInvoiceLineAdditional','ADDQuantity','numeric',1,'',38,20 ALTER TABLE txdUSInvoiceLineAdditional ALTER COLUMN ADDQuantity numeric(38,20) EXEC usp_DBACreateTableIndexes '','txdUSInvoiceLineAdditional' --Your Table Here END IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'CVDQuantity' --your column here AND Object_ID = OBJECT_ID('txdUSInvoiceLineAdditional')) --Your Table Here BEGIN EXEC usp_DBACopyTableIndexesByColumn '','txdUSInvoiceLineAdditional','CVDQuantity','numeric',1,'',38,20 ALTER TABLE txdUSInvoiceLineAdditional ALTER COLUMN CVDQuantity numeric(38,20) EXEC usp_DBACreateTableIndexes '','txdUSInvoiceLineAdditional' --Your Table Here END IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'SoftwoodExportCharges' --your column here AND Object_ID = OBJECT_ID('txdUSInvoiceLineAdditional')) --Your Table Here BEGIN EXEC usp_DBACopyTableIndexesByColumn '','txdUSInvoiceLineAdditional','SoftwoodExportCharges','numeric',1,'',38,20 ALTER TABLE txdUSInvoiceLineAdditional ALTER COLUMN SoftwoodExportCharges numeric(38,20) EXEC usp_DBACreateTableIndexes '','txdUSInvoiceLineAdditional' --Your Table Here END <file_sep>INSERT INTO tmgForm SELECT 'fugOpenSQL2_aspx', 'fugOpenSQL2_aspx', SystemTypeID, GETDATE(), 'N', 'N' FROM tmgForm WHERE FormGUID = '1051' AND NOT EXISTS (SELECT FormGUID FROM tmgForm WHERE FormGUID = 'fugOpenSQL2_aspx') INSERT INTO tmgGroupAccess SELECT GroupGUID, 'fugOpenSQL2_aspx', AccessType, GETDATE(), 'N', 'N' FROM tmgGroupAccess ga WHERE FormGUID = '1051' AND NOT EXISTS (SELECT FormGUID FROM tmgGroupAccess WHERE FormGUID = 'fugOpenSQL2_aspx' AND GroupGUID = ga.GroupGUID) DELETE FROM dbo.tmgPartnerCultureDefinitions WHERE FieldName = 'fugOpenSQL2_aspx' INSERT INTO dbo.tmgPartnerCultureDefinitions SELECT DISTINCT PartnerID, GetDate(), 'en-US', 'fugOpenSQL2_aspx', 'Substitute Components', 'N', 'N' FROM dbo.tmgPartnerDataConnection <file_sep>-------------------------------------------------------------------------------------------------------------- --CREATE TABLE --If you don't put a primary key on it, create a clustered index named CIX_TABLENAME --COLLATE example provided though not required. Use this when defining a column as Case Sensitive. -------------------------------------------------------------------------------------------------------------- IF EXISTS (select TOP 1 1 from sys.tables where Name = 'tmgglobalcodes' --Your Table Here AND Type = 'U') BEGIN update tmgglobalcodes set decode = 'PLY - Plywood (material consisting of 3 or more sheets of wood glued and pressed one on another and generally disposed so that the grains are at an angle)' where fieldname='PGAFWSCODE' and code='PLY' update tmgglobalcodes set decode = 'FWC - FWS eDecs Confirmation Number' where fieldname='PGALPCOTYPE-FWS' and code='FWC' update tmgglobalcodes set decode = 'FWL - FWS Import/Export license number' where fieldname='PGALPCOTYPE-FWS' and code='FWL' IF Object_ID('tempdb..#tmgglobalcodes') IS NOT NULL DROP TABLE #tmgglobalcodes Select FieldName, Code, Decode into #tmgglobalcodes from dbo.tmgglobalcodes where 1 = 2 INSERT INTO #tmgglobalcodes(FieldName, Code, Decode) VALUES ('PGAGOVPROCAGCODE', 'LDS', 'LDS - Limited Data Set'), ('PGAGOVPROCAGCODE-FWS', 'LDS', 'LDS - Limited Data Set'), ('PGAINTUSECODE-FWS', '980.000', '980.000 - Allowed only for FWS Purpose Code L=law enforcement / judicial / forensic'), ('PGAFWSCODE', 'CAVA100', 'CAVA100 - Caviar (unfertilized dead processed sturgeon or paddlefish eggs) and Intergeneric hybrid (cross between two genera)'), ('PGAFWSCODE', 'CAVA103', 'CAVA103 - Caviar (unfertilized dead processed sturgeon or paddlefish eggs) and Interspecies hybrid (cross between two species)'), ('PGAFWSCODE', 'CSM', 'CSM - Cosmetics'), ('PGAFWSCODE', 'DERA100', 'DERA100 - Derivative and Intergeneric hybrid (cross between two genera)'), ('PGAFWSCODE', 'DERA103', 'DERA103 - Derivative and Interspecies hybrid (cross between two species)'), ('PGAFWSCODE', 'EGLA100', 'EGLA100 - Egg (live) and Intergeneric hybrid (cross between two genera)'), ('PGAFWSCODE', 'EGLA103', 'EGLA103 - Egg (live) and Interspecies hybrid (cross between two species)'), ('PGAFWSCODE', 'EXTA100', 'EXTA100 - Extract and Intergeneric hybrid (cross between two genera)'), ('PGAFWSCODE', 'EXTA103', 'EXTA103 - Extract and Interspecies hybrid (cross between two species)'), ('PGAFWSCODE', 'FPL', 'FPL - Fur Products Large ((large manufactured products of fur, including blankets or other fur products of substantial size)'), ('PGAFWSCODE', 'FPS', 'FPS - Fur Products Small (small manufactured products, including handbags, keyfobs, purses, pillows, trim, etc.)'), ('PGAFWSCODE', 'GIL', 'GIL - Gill plates (gill plates (e.g. for sharks)'), ('PGAFWSCODE', 'LIVA100', 'LIVA100 - Live specimen and Intergeneric hybrid (cross between two genera)'), ('PGAFWSCODE', 'LIVA103', 'LIVA103 - Live specimen and Interspecies hybrid (cross between two species)'), ('PGAFWSCODE', 'MEAA100', 'MEAA100 - Meat and Intergeneric hybrid (cross between two genera)'), ('PGAFWSCODE', 'MEAA103', 'MEAA103 - Meat and Interspecies hybrid (cross between two species)'), ('PGAFWSCODE', 'PRL', 'PRL - Pearl'), ('PGAFWSCODE', 'PUP', 'PUP - Pupae (butterfly pupae)'), ('PGAFWSCODE', 'ROS ', 'ROS - Sawfish rostrum'), ('PGAFWSCODE', 'TRU', 'TRU - Trunk (elephant trunk; Note: an elephant trunk included with other trophy items from the same animal on the same permit as part of a hunting trophy should be reported as "TRO")'), ('PGACOMQUALIFIERCODE', 'X', 'X - High Seas'), ('PGACOMQUALIFIERCODE-FWS', 'U-6', 'U-6 - Source unknown (must be justified)'), ('PGACOMQUALIFIERCODE-FWS', 'X', 'X - High Seas'), ('PGALPCOTYPE', 'DPE', 'DPE - FWS Designated Port Exception Permit'), ('PGALPCOTYPE', 'FWL', 'FWL - FWS Import/Export license number'), ('PGALPCOTYPE', 'FWC', 'FWC - FWS eDecs Confirmation Number'), ('PGALPCOTYPE', 'FWP', 'FWP - U.S.-Issued Protected SpeciesPermit'), ('PGALPCOTYPE', 'FWU', 'FWU - FWS U.S. CITES Document'), ('PGALPCOTYPE-FWS', 'DPE', 'DPE - FWS Designated Port Exception Permit'), ('PGALPCOTYPE-FWS', 'FWP', 'FWP - U.S.-Issued Protected SpeciesPermit'), ('PGALPCOTYPE-FWS', 'FWU', 'FWU - FWS U.S. CITES Document'), ('PGAENTITYIDROLE-FWS', '78', '78 - FWS-assigned entity reference number'), ('PGAENTITYROLE', 'FWE', 'FWE - FWS Foreign Exporter'), ('PGAENTITYROLE', 'FWI', 'FWI - FWS Importer'), ('PGAENTITYROLE-FWS', 'CB', 'CB - Customs Broker'), ('PGAENTITYROLE-FWS', 'FWE', 'FWE - FWS Foreign Exporter'), ('PGAENTITYROLE-FWS', 'FWI', 'FWI - FWS Importer'), ('PGACOMLNENETUOM', 'CM2', 'CM2 - Square Centimeter'), ('PGACOMLNENETUOM-FWS', 'CM2', 'CM2 - Square Centimeter'), ('PGACOMLNENETUOM-FWS', 'CM3', 'CM3 - Cubic centimeters'), ('PGACOMLNENETUOM-FWS', 'G', 'G - Grams'), ('PGACOMLNENETUOM-FWS', 'L', 'L - Liters'), ('PGACOMLNENETUOM-FWS', 'M', 'M - Meters'), ('PGADISCLAIMDEF', 'E', 'E - product does not contain fish or wildlife, including live, dead, parts or products thereof, except as specifically exempted from declaration requirements under 50 CFR Part 14'); INSERT INTO tmgglobalcodes (PartnerID, EffDate, FieldName, Code, Decode, StaticFlag, DeletedFlag, KeepDuringRollback) SELECT d.PartnerID, GETDATE(), t.FieldName, t.Code, t.Decode, 'Y', 'N', 'N' FROM tmfDefaults d WITH (NOLOCK) INNER JOIN #tmgglobalcodes t ON 1=1 LEFT JOIN tmgglobalcodes g WITH (NOLOCK) ON d.partnerid=g.partnerid and t.fieldname=g.fieldname and t.code=g.code WHERE g.partnerid is null IF OBJECT_ID('tempdb..#tmgglobalcodes') IS NOT NULL TRUNCATE TABLE #tmgglobalcodes INSERT INTO #tmgglobalcodes(FieldName, Code, Decode) VALUES ('PGAGOVPROCAGCODE', 'DEC', 'DEC - Certification Declaration'), ('PGAGOVPROCAGCODE', 'N1', 'N1 - Animal NO Scenario 1'), ('PGAGOVPROCAGCODE', 'N10', 'N10 - Animal NO Scenario 10'), ('PGAGOVPROCAGCODE', 'N11', 'N11 - Animal NO Scenario 11'), ('PGAGOVPROCAGCODE', 'N12', 'N12 - Animal NO Scenario 12'), ('PGAGOVPROCAGCODE', 'N2', 'N2 - Animal NO Scenario 2'), ('PGAGOVPROCAGCODE', 'N3', 'N3 - Animal NO Scenario 3'), ('PGAGOVPROCAGCODE', 'N4', 'N4 - Animal NO Scenario 4'), ('PGAGOVPROCAGCODE', 'N5', 'N5 - Animal NO Scenario 5'), ('PGAGOVPROCAGCODE', 'N6', 'N6 - Animal NO Scenario 6'), ('PGAGOVPROCAGCODE', 'N7', 'N7 - Animal NO Scenario 7'), ('PGAGOVPROCAGCODE', 'N8', 'N8 - Animal NO Scenario 8'), ('PGAGOVPROCAGCODE', 'N9', 'N9 - Animal NO Scenario 9'), ('PGAGOVPROCAGCODE', 'NDS', 'NDS - No Data Set'), ('PGAGOVPROCAGCODE', 'Y1', 'Y1 - Animal YES Scenario 1'), ('PGAGOVPROCAGCODE', 'Y10', 'Y10 - Animal YES Scenario 10'), ('PGAGOVPROCAGCODE', 'Y2', 'Y2 - Animal YES Scenario 2'), ('PGAGOVPROCAGCODE', 'Y3', 'Y3 - Animal YES Scenario 3'), ('PGAGOVPROCAGCODE', 'Y4', 'Y4 - Animal YES Scenario 4'), ('PGAGOVPROCAGCODE', 'Y5', 'Y5 - Animal YES Scenario 5'), ('PGAGOVPROCAGCODE', 'Y6', 'Y6 - Animal YES Scenario 6'), ('PGAGOVPROCAGCODE', 'Y7', 'Y7 - Animal YES Scenario 7'), ('PGAGOVPROCAGCODE', 'Y8', 'Y8 - Animal YES Scenario 8'), ('PGAGOVPROCAGCODE', 'Y9', 'Y9 - Animal YES Scenario 9'), ('PGAGOVPROCAGCODE-FWS', 'DEC', 'DEC - Certification Declaration'), ('PGAGOVPROCAGCODE-FWS', 'N1', 'N1 - Animal NO Scenario 1'), ('PGAGOVPROCAGCODE-FWS', 'N10', 'N10 - Animal NO Scenario 10'), ('PGAGOVPROCAGCODE-FWS', 'N11', 'N11 - Animal NO Scenario 11'), ('PGAGOVPROCAGCODE-FWS', 'N12', 'N12 - Animal NO Scenario 12'), ('PGAGOVPROCAGCODE-FWS', 'N2', 'N2 - Animal NO Scenario 2'), ('PGAGOVPROCAGCODE-FWS', 'N3', 'N3 - Animal NO Scenario 3'), ('PGAGOVPROCAGCODE-FWS', 'N4', 'N4 - Animal NO Scenario 4'), ('PGAGOVPROCAGCODE-FWS', 'N5', 'N5 - Animal NO Scenario 5'), ('PGAGOVPROCAGCODE-FWS', 'N6', 'N6 - Animal NO Scenario 6'), ('PGAGOVPROCAGCODE-FWS', 'N7', 'N7 - Animal NO Scenario 7'), ('PGAGOVPROCAGCODE-FWS', 'N8', 'N8 - Animal NO Scenario 8'), ('PGAGOVPROCAGCODE-FWS', 'N9', 'N9 - Animal NO Scenario 9'), ('PGAGOVPROCAGCODE-FWS', 'NDS', 'NDS - No Data Set'), ('PGAGOVPROCAGCODE-FWS', 'Y1', 'Y1 - Animal YES Scenario 1'), ('PGAGOVPROCAGCODE-FWS', 'Y10', 'Y10 - Animal YES Scenario 10'), ('PGAGOVPROCAGCODE-FWS', 'Y11', 'Y11 - Applies to scenario N7 when trade cannot certify'), ('PGAGOVPROCAGCODE-FWS', 'Y2', 'Y2 - Animal YES Scenario 2'), ('PGAGOVPROCAGCODE-FWS', 'Y3', 'Y3 - Animal YES Scenario 3'), ('PGAGOVPROCAGCODE-FWS', 'Y4', 'Y4 - Animal YES Scenario 4'), ('PGAGOVPROCAGCODE-FWS', 'Y5', 'Y5 - Animal YES Scenario 5'), ('PGAGOVPROCAGCODE-FWS', 'Y6', 'Y6 - Animal YES Scenario 6'), ('PGAGOVPROCAGCODE-FWS', 'Y7', 'Y7 - Animal YES Scenario 7'), ('PGAGOVPROCAGCODE-FWS', 'Y8', 'Y8 - Animal YES Scenario 8'), ('PGAGOVPROCAGCODE-FWS', 'Y9', 'Y9 - Animal YES Scenario 9'), ('PGAINTUSECODE-FWS', '015.000', '015.000 - Only allowed for FWS Purpose Code S=Scientific'), ('PGAINTUSECODE-FWS', '090.000', '090.000 - Only allowed for FWS Purpose Code P=Personal/Noncommercial'), ('PGAINTUSECODE-FWS', '155.000', '155.000 - Only allowed for FWS Purpose Code T=Commercial'), ('PGAINTUSECODE-FWS', '240.000', '240.000 - Only allowed for FWS Purpose Code P=Personal'), ('PGAINTUSECODE-FWS', '950.000', '950.000 - To be assigned to FWS Purpose Code T - Commercial'), ('PGAPRODCODE-FWS', 'TSN', 'TSN - Taxonomic Serial Number'), ('PGASCISPECIESCODE-FWS', 'AMP', 'AMP - Amphibians'), ('PGASCISPECIESCODE-FWS', 'APD', 'APD - Other Arthropods'), ('PGASCISPECIESCODE-FWS', 'ARA', 'ARA - Arachnids'), ('PGASCISPECIESCODE-FWS', 'BUT', 'BUT - Butterflies/Moths'), ('PGASCISPECIESCODE-FWS', 'CAC', 'CAC - Cactus'), ('PGASCISPECIESCODE-FWS', 'COR', 'COR - Coral'), ('PGASCISPECIESCODE-FWS', 'CRS', 'CRS - Crustaceans'), ('PGASCISPECIESCODE-FWS', 'DOV', 'DOV - Doves'), ('PGASCISPECIESCODE-FWS', 'DUC', 'DUC - Ducks'), ('PGASCISPECIESCODE-FWS', 'EGL', 'EGL - Eagles'), ('PGASCISPECIESCODE-FWS', 'FSH', 'FSH - Fish, Other'), ('PGASCISPECIESCODE-FWS', 'GIN', 'GIN - Ginseng'), ('PGASCISPECIESCODE-FWS', 'GOO', 'GOO - Geese'), ('PGASCISPECIESCODE-FWS', 'MAM', 'MAM - Other Mammals'), ('PGASCISPECIESCODE-FWS', 'MMA', 'MMA - Marine Mammals'), ('PGASCISPECIESCODE-FWS', 'MNG', 'MNG - Migratory Non-Game Birds'), ('PGASCISPECIESCODE-FWS', 'MOL', 'MOL - Mollusks'), ('PGASCISPECIESCODE-FWS', 'NON', 'NON - None'), ('PGASCISPECIESCODE-FWS', 'OBR', 'OBR - Non-Migratory Birds'), ('PGASCISPECIESCODE-FWS', 'OIV', 'OIV - Other Invertebrates'), ('PGASCISPECIESCODE-FWS', 'OMB', 'OMB - Migratory Game Birds'), ('PGASCISPECIESCODE-FWS', 'PLT', 'PLT - Other Plants'), ('PGASCISPECIESCODE-FWS', 'RAP', 'RAP - Raptors, Other'), ('PGASCISPECIESCODE-FWS', 'REP', 'REP - Reptiles'), ('PGASCISPECIESCODE-FWS', 'SAL', 'SAL - Salmonids'), ('PGASCISPECIESCODE-FWS', 'TFS', 'TFS - Tropical Fish'), ('PGASCISPECIESCODE-FWS', 'WFL', 'WFL - Waterfowl, Assorted'), ('PGAITEMIDNUMCODE-FWS', 'SE', 'SE - Serial Number'), ('PGAITEMIDNUMCODE-FWS', 'SRY', 'SRY - Official animal number'), ('PGAITEMIDNUMCODE-FWS', 'TO', 'TO - Tattoo'), ('PGACATEGORYTYPECODE-FWS', 'FS1', 'FS1 - FSIS – Product Name Category'), ('PGACOMQUALIFIERCODE-FWS', 'A100', 'A100 - Intergeneric hybrids (cross between two genera)'), ('PGACOMQUALIFIERCODE-FWS', 'A103', 'A103 - Interspecific hybrids (cross between two species)'), ('PGACOMQUALIFIERCODE-FWS', 'DOM', 'DOM - Domesticated'), ('PGAGOVGEOCODEQ-FWS', 'ISO', 'ISO - Country Code'), ('PGALPCOTYPE-APH', 'FWD', 'FWD - FWS U.S. CITES Document'), ('PGALPCOTYPE-FWS', 'FWD', 'FWD - FWS U.S. CITES Document'), ('PGALPCOTYPE-FWS', 'FWE', 'FWE - FWS U.S. CITES Document'), ('PGADOCID-FWS', '948', '948 - FWS 3-177 - Declaration for Importation or Exportation of Fish or Wildlife'), ('PGAENTITYROLE', 'FW1', 'FW1 - FWS Importer'), ('PGAENTITYROLE', 'FW2', 'FW2 - FWS Foreign Exporter'), ('PGAENTITYROLE-FWS', 'FW1', 'FW1 - FWS Importer'), ('PGAENTITYROLE-FWS', 'FW2', 'FW2 - FWS Foreign Exporter'), ('PGADECLARCODE-FWS', 'FW1', 'FW1 - No Wildlife Certification'), ('PGADECLARCODE-FWS', 'FW2', 'FW2 - Salmonid Certification'), ('PGACOMLNENETUOM-FWS', 'C2', 'C2 - Square centimeters'), ('PGACOMLNENETUOM-FWS', 'C3', 'C3 - Cubic centimeters'), ('PGACOMLNENETUOM-FWS', 'GM', 'GM - Grams'), ('PGACOMLNENETUOM-FWS', 'LT', 'LT - Liters'), ('PGACOMLNENETUOM-FWS', 'MT', 'MT - Meters'), ('PGAINSPARRVLOC-FWS', '4', '4 - FIRMS Code'); DELETE g FROM #tmgglobalcodes t INNER JOIN tmgglobalcodes g ON t.fieldname=g.fieldname and t.code=g.code IF OBJECT_ID('tempdb..#tmgglobalcodes') IS NOT NULL DROP TABLE #tmgglobalcodes END<file_sep>using DbUp.Engine; using DbUp.Engine.Transactions; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DBUpgrade { public class WriteOnlyJournal : IJournal { private Func<IConnectionManager> connectionManager; public WriteOnlyJournal(Func<IConnectionManager> connectionManager) { this.connectionManager = connectionManager; } public string[] GetExecutedScripts() { return new string[0]; } public void StoreExecutedScript(SqlScript script) { connectionManager().ExecuteCommandsWithManagedConnection(dbCommandFactory => { using(var command = dbCommandFactory()) { command.CommandText = @"IF NOT EXISTS (SELECT 1 FROM dbo.sysobjects WHERE ID = OBJECT_ID(N'[dbo].[ReleaseSqlApplied]') AND OBJECTPROPERTY(ID, N'IsUserTable') = 1) BEGIN CREATE TABLE [dbo].[ReleaseSqlApplied]( [AppliedDate] [datetime] NOT NULL, [Filename] [nvarchar](255) NOT NULL ) ON [PRIMARY] END insert into dbo.ReleaseSqlApplied(AppliedDate, [Filename]) values (GETDATE(), @name) "; var param = command.CreateParameter(); param.ParameterName = "@name"; param.Value = script.Name; param.DbType = DbType.String; command.Parameters.Add(param); command.CommandType = CommandType.Text; command.ExecuteNonQuery(); } }); } } } <file_sep> /*--------if the record exists txdOraDPSOutboundMsg.ScreeningStatus <> tmgCompany.DTSStatus or txdOraDPSOutboundMsg.LastScreenedDate <> tmgCompany.DTSLastScreenedDate then update txdOraDPSOutboundMsgParams using new record values ---------*/ UPDATE par1 SET par1.ParameterName='SupplierId', par1.ParameterValue=isnull(af.COMPS01,'') from tmgCompany cp WITH (NOLOCK) inner Join tmdPartnerCrossReference pr WITH (NOLOCK) on cp.PartnerID = pr.PartnerIdentifier and cp.DTSStatus <> 'Not Screened' inner Join txdOraDPSOutboundMsg msg WITH (NOLOCK) on msg.PartnerID = cp.PartnerID and msg.CompanyID= cp.CompanyID and msg.InterfaceCode = 'MD_SUPPLIER_UPDATE' inner JOIN txdOraDPSOutboundMsgParams par1 WITH (NOLOCK) ON msg.PartnerID=par1.PartnerID AND msg.QueueGUID=par1.QueueGUID AND par1.ParameterName = 'SupplierId' Left Join tmgCompanyAddlFields af on cp.PartnerID = af.PartnerID and cp.CompanyID= af.CompanyID; UPDATE par1 SET par1.ParameterName='SupplierSiteId', par1.ParameterValue=isnull(af.COMPS02,'') from tmgCompany cp WITH (NOLOCK) inner Join tmdPartnerCrossReference pr WITH (NOLOCK) on cp.PartnerID = pr.PartnerIdentifier and cp.DTSStatus <> 'Not Screened' inner Join txdOraDPSOutboundMsg msg on msg.PartnerID = cp.PartnerID and msg.CompanyID= cp.CompanyID and msg.InterfaceCode = 'MD_SUPPLIER_UPDATE' inner JOIN txdOraDPSOutboundMsgParams par1 WITH (NOLOCK) ON msg.PartnerID=par1.PartnerID AND msg.QueueGUID=par1.QueueGUID AND par1.ParameterName = 'SupplierSiteId' Left Join tmgCompanyAddlFields af on cp.PartnerID = af.PartnerID and cp.CompanyID= af.CompanyID; -- if the record doesn't exist insert a new one on txdOraDPSOutboundMsgParams INSERT INTO txdOraDPSOutboundMsgParams SELECT DISTINCT cp.PartnerID AS PartnerID ,cp.EffDate AS EffDate ,a.QueueGUID AS QueueGUID ,NEWID() AS QueueParameterGUID ,'SupplierId' AS ParameterName ,isnull(af.COMPS01,'') AS ParameterValue ,'N' AS DeletedFlag ,'N' AS KeepDuringRollback from tmgCompany cp WITH (NOLOCK) Join tmdPartnerCrossReference pr WITH (NOLOCK) on cp.PartnerID = pr.PartnerIdentifier and cp.DTSStatus <> 'Not Screened' Join txdOraDPSOutboundMsg a WITH (NOLOCK) on a.PartnerID = cp.PartnerID and cp.CompanyID=a.CompanyID and a.InterfaceCode = 'MD_SUPPLIER_UPDATE' Left Join tmgCompanyAddlFields af WITH (NOLOCK) on cp.PartnerID = af.PartnerID and cp.CompanyID= af.CompanyID where a.QueueGUID not in (select QueueGUID from txdOraDPSOutboundMsgParams b WITH (NOLOCK) where b.PartnerID = cp.PartnerID and b.ParameterName='SupplierId') GROUP BY cp.PartnerID, cp.EffDate, a.QueueGUID, af.COMPS01 INSERT INTO txdOraDPSOutboundMsgParams SELECT DISTINCT cp.PartnerID AS PartnerID ,cp.EffDate AS EffDate ,a.QueueGUID AS QueueGUID ,NEWID() AS QueueParameterGUID ,'SupplierSiteId' AS ParameterName ,isnull(af.COMPS02,'') AS ParameterValue ,'N' AS DeletedFlag ,'N' AS KeepDuringRollback from tmgCompany cp WITH (NOLOCK) Join tmdPartnerCrossReference pr WITH (NOLOCK) on cp.PartnerID = pr.PartnerIdentifier and cp.DTSStatus <> 'Not Screened' Join txdOraDPSOutboundMsg a WITH (NOLOCK) on a.PartnerID = cp.PartnerID and a.InterfaceCode = 'MD_SUPPLIER_UPDATE' and cp.CompanyID=a.CompanyID Left Join tmgCompanyAddlFields af WITH (NOLOCK) on cp.PartnerID = af.PartnerID and cp.CompanyID= af.CompanyID where a.QueueGUID not in (select QueueGUID from txdOraDPSOutboundMsgParams b WITH (NOLOCK) where b.PartnerID = cp.PartnerID and b.ParameterName='SupplierSiteId') GROUP BY cp.PartnerID, cp.EffDate, a.QueueGUID, af.COMPS02 <file_sep>--Insert all necessary forms in the tmgForm ----IP Full Access Group IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'fsgSystemProcessing_aspx' AND Description = 'fsgSystemProcessing_aspx' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'fsgSystemProcessing_aspx' ,'fsgSystemProcessing_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'frdHMFDetailReport_aspx ' AND Description = 'frdHMFDetailReport_aspx ' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'frdHMFDetailReport_aspx ' ,'frdHMFDetailReport_aspx ' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'fxdQuotaQuery_aspx ' AND Description = 'fxdQuotaQuery_aspx ' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'fxdQuotaQuery_aspx ' ,'fxdQuotaQuery_aspx ' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'fxdAddManufacturer_aspx ' AND Description = 'fxdAddManufacturer_aspx ' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'fxdAddManufacturer_aspx ' ,'fxdAddManufacturer_aspx ' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'fxdEntryDailyStatements_aspx ' AND Description = 'fxdEntryDailyStatements_aspx ' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'fxdEntryDailyStatements_aspx ' ,'fxdEntryDailyStatements_aspx ' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'fxdADCVDQuery_aspx ' AND Description = 'fxdADCVDQuery_aspx ' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'fxdADCVDQuery_aspx ' ,'fxdADCVDQuery_aspx ' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'fmgProductLookup_aspx ' AND Description = 'fmgProductLookup_aspx ' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'fmgProductLookup_aspx ' ,'fmgProductLookup_aspx ' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'fugReprintExitDocID_aspx ' AND Description = 'fugReprintExitDocID_aspx ' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'fugReprintExitDocID_aspx ' ,'fugReprintExitDocID_aspx ' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'fugReceiptReassignment_aspx ' AND Description = 'fugReceiptReassignment_aspx ' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'fugReceiptReassignment_aspx ' ,'fugReceiptReassignment_aspx ' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'fugShipmentReassignment_aspx ' AND Description = 'fugShipmentReassignment_aspx ' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'fugShipmentReassignment_aspx ' ,'fugShipmentReassignment_aspx ' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'BPM_aspx ' AND Description = 'BPM_aspx ' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'BPM_aspx ' ,'BPM_aspx ' ,2 ,GETDATE() ,'N' ,'N' END --Insert form into tmgGroupAccess according to their groups. --IP Full Access Group IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'fsgSystemProcessing_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'fsgSystemProcessing_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'frdHMFDetailReport_aspx ' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'frdHMFDetailReport_aspx ' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'fxdQuotaQuery_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'fxdQuotaQuery_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'fxdAddManufacturer_aspx ' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'fxdAddManufacturer_aspx ' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'fxdEntryDailyStatements_aspx ' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'fxdEntryDailyStatements_aspx ' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'fxdADCVDQuery_aspx ' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'fxdADCVDQuery_aspx ' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'fmgProductLookup_aspx ' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'fmgProductLookup_aspx ' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'fugReprintExitDocID_aspx ' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'fugReprintExitDocID_aspx ' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'fugReceiptReassignment_aspx ' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'fugReceiptReassignment_aspx ' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'fugShipmentReassignment_aspx ' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'fugShipmentReassignment_aspx ' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'BPM_aspx ' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'BPM_aspx ' ,2 ,GETDATE() ,'N' ,'N' END --Insert form into tmgGroupAccess according to their groups. --Zone Operator Group IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1003' AND FormGUID = 'fsgSystemProcessing_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1003' ,'fsgSystemProcessing_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1003' AND FormGUID = 'frdHMFDetailReport_aspx ' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1003' ,'frdHMFDetailReport_aspx ' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1003' AND FormGUID = 'fxdQuotaQuery_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1003' ,'fxdQuotaQuery_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1003' AND FormGUID = 'fxdAddManufacturer_aspx ' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1003' ,'fxdAddManufacturer_aspx ' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1003' AND FormGUID = 'fxdEntryDailyStatements_aspx ' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1003' ,'fxdEntryDailyStatements_aspx ' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1003' AND FormGUID = 'fxdADCVDQuery_aspx ' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1003' ,'fxdADCVDQuery_aspx ' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1003' AND FormGUID = 'fmgProductLookup_aspx ' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1003' ,'fmgProductLookup_aspx ' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1003' AND FormGUID = 'fugReprintExitDocID_aspx ' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1003' ,'fugReprintExitDocID_aspx ' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1003' AND FormGUID = 'fugReceiptReassignment_aspx ' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1003' ,'fugReceiptReassignment_aspx ' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1003' AND FormGUID = 'fugShipmentReassignment_aspx ' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1003' ,'fugShipmentReassignment_aspx ' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1003' AND FormGUID = 'BPM_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1003' ,'BPM_aspx' ,2 ,GETDATE() ,'N' ,'N' END<file_sep>IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'HandbookNum' AND Object_ID = OBJECT_ID('usrtxdCNHandbookConsDetail')) BEGIN ALTER TABLE usrtxdCNHandbookConsDetail DROP COLUMN HandbookNum END<file_sep>-- This script is no longer needed<file_sep>IF EXISTS (SELECT * FROM sys.xml_schema_collections WHERE name = N'DE_IMP_FCFCRD' AND schema_id = SCHEMA_ID(N'dbo')) BEGIN DROP XML SCHEMA COLLECTION dbo.DE_IMP_FCFCRD; END CREATE XML SCHEMA COLLECTION dbo.DE_IMP_FCFCRD AS N'<?xml version="1.0" encoding="UTF-16"?> <xs:schema version="9.0.1.2" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:aie="urn:publicid:IDN+zoll.de:AIE"> <xs:complexType name="decimal"> <xs:simpleContent> <xs:extension base="xs:decimal"> <xs:anyAttribute/> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:complexType name="integer"> <xs:simpleContent> <xs:extension base="xs:integer"> <xs:anyAttribute/> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:complexType name="token"> <xs:simpleContent> <xs:extension base="xs:token"> <xs:anyAttribute/> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="FCFCRD" id="MES"> <xs:annotation> <xs:documentation> <aie:name value="NACHRICHT"/> <aie:id value="1"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="MetaData" minOccurs="1" maxOccurs="1" id="MTD"> <xs:annotation> <xs:documentation> <aie:name value="METADATEN"/> <aie:id value="159"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Preparation" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Vorbereitung"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Date" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Vorbereitung (Datum)"/> <aie:id value="168"/> <aie:status value="R"/> <aie:format value="Date (n6)"/> <aie:pcre value="\A(?!....-(?:02|04|06|09|11)-31|....-02-30|..(?:.[13579]|[02468][26]|[13579][048])-02-29)^(?:20[0-9][0-9])-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:date"> <xs:minInclusive value="2000-01-01"/> <xs:maxInclusive value="2099-12-31"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Time" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Vorbereitung (Zeit)"/> <aie:id value="169"/> <aie:status value="R"/> <aie:format value="Time (n4)"/> <aie:pcre value="\A(?:[01][0-9]|2[0-3]):(?:[0-5][0-9]):(?:00)\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:time"> <xs:minInclusive value="00:00:00"/> <xs:maxInclusive value="23:59:00"/> <xs:pattern value="[0-9]{2}:[0-9]{2}:[0-0]{2}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="InterchangeControlReference" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Datei-Kennung"/> <aie:id value="160"/> <aie:status value="R"/> <aie:format value="an..14"/> <aie:pcre value="\A.{1,14}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="14"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MessageReferenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Identifikation"/> <aie:id value="161"/> <aie:status value="R"/> <aie:format value="n..6"/> <aie:pcre value="\A(?:0|[1-9][0-9]{0,5})\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:integer"> <xs:minInclusive value="0"/> <xs:maxInclusive value="999999"/> <xs:totalDigits value="6"/> <xs:pattern value="(0|[1-9][0-9]{0,5})"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MessageIdentifier" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Nachrichtennummer"/> <aie:id value="163"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MessageGroup" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Nachrichtengruppe"/> <aie:id value="162"/> <aie:status value="R"/> <aie:format value="a3"/> <aie:pcre value="\A(?:ZAV|ZVV)\Z"/> <aie:list value="A0110"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> <xs:enumeration value="ZAV"/> <xs:enumeration value="ZVV"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Scenario" minOccurs="0" maxOccurs="0"> <xs:annotation> <xs:documentation> <aie:name value="Szenario"/> <aie:status value="N"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="0" maxOccurs="0"> <xs:annotation> <xs:documentation> <aie:name value="Szenario-Nummer"/> <aie:id value="165"/> <aie:status value="N"/> <aie:format value="n5"/> <aie:pcre value="\A[1-9][0-9]{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="5"/> <xs:pattern value="[1-9][0-9]{4}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Note" minOccurs="0" maxOccurs="0"> <xs:annotation> <xs:documentation> <aie:name value="Szenario-Hinweis"/> <aie:id value="164"/> <aie:status value="N"/> <aie:format value="a2"/> <aie:pcre value="\A[A-Z]{2}\Z"/> <aie:list value="A0112"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> <xs:pattern value="[A-Z]{2}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="TestIndicator" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Test-Indikator"/> <aie:id value="166"/> <aie:status value="O"/> <aie:format value="n1"/> <aie:pcre value="\A1\Z"/> <aie:list value="A0035"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> <xs:enumeration value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MessageType" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Typ"/> <aie:id value="167"/> <aie:status value="R"/> <aie:format value="a6"/> <aie:pcre value="\AFCFCRD\Z"/> <aie:list value="A0057"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="6"/> <xs:enumeration value="FCFCRD"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="InterchangeSender" minOccurs="1" maxOccurs="1" id="MST"> <xs:annotation> <xs:documentation> <aie:name value="NACHRICHTENSENDER"/> <aie:id value="241"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Identification" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="TIN"/> <aie:id value="245"/> <aie:status value="R"/> <aie:format value="an..17"/> <aie:pcre value="\A[A-Z]{2}[\x21-\x7E]{1,15}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="17"/> <xs:pattern value="[A-Z]{2}[&#x21;-&#x7E;]{1,15}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="SubsidiaryNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Niederlassungsnummer"/> <aie:id value="244"/> <aie:status value="R"/> <aie:format value="n4"/> <aie:pcre value="\A[0-9]{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="4"/> <xs:pattern value="[0-9]{4}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="InterchangeRecipient" minOccurs="1" maxOccurs="1" id="MED"> <xs:annotation> <xs:documentation> <aie:name value="NACHRICHTENEMPFÄNGER"/> <aie:id value="170"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Identification" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Dienststellennummer"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:id value="173"/> <aie:format value="an8"/> <aie:pcre value="\ADE00[0-9]{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="8"/> <xs:pattern value="DE00[0-9]{4}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Header" minOccurs="1" maxOccurs="1" id="HEA"> <xs:annotation> <xs:documentation> <aie:name value="KOPF"/> <aie:id value="3647"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="MessageVersion" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Nachrichtenversion"/> <aie:id value="89"/> <aie:status value="R"/> <aie:format value="an..7"/> <aie:pcre value="\AD\.[1-9][0-9]?\.[1-9]?[0-9]\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="7"/> <xs:pattern value="D\.[1-9][0-9]?\.[1-9]?[0-9]"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MessageCreationDate" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Datum der Nachricht"/> <aie:id value="86"/> <aie:status value="R"/> <aie:format value="Date (n8)"/> <aie:pcre value="\A(?:(?:(?:0[48]|[2468][048]|[13579][26])(?:[02468][048]|[13579][26])|(?:[02468][1-35-79]|[13579][013-57-9])(?:0[48]|[2468][048]|[13579][26]))-02-29|[0-9][0-9][0-9][0-9]-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12][0-9]|3[01])|(?:0[469]|11)-(?:0[1-9]|[12][0-9]|30)|02-(?:0[1-9]|1[0-9]|2[0-8])))\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:date"> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Declaration" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Kind" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Anmeldeart"/> <aie:id value="11"/> <aie:status value="R"/> <aie:format value="an1"/> <aie:pcre value="\A(?:C|F)\Z"/> <aie:list value="A1025"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> <xs:enumeration value="C"/> <xs:enumeration value="F"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Type" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Art der Anmeldung"/> <aie:id value="14"/> <aie:status value="R"/> <aie:format value="an..3"/> <aie:pcre value="\A(?:VZA|AZ)\Z"/> <aie:list value="A1100"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="2"/> <xs:maxLength value="3"/> <xs:enumeration value="VZA"/> <xs:enumeration value="AZ"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="LocalReferenceNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Bezugsnummer"/> <aie:id value="46"/> <aie:status value="O"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="LocalClearanceDate" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Datum der Anschreibung"/> <aie:id value="21"/> <aie:status value="D"/> <aie:format value="Date (n8)"/> <aie:pcre value="\A(?:(?:(?:0[48]|[2468][048]|[13579][26])(?:[02468][048]|[13579][26])|(?:[02468][1-35-79]|[13579][013-57-9])(?:0[48]|[2468][048]|[13579][26]))-02-29|[0-9][0-9][0-9][0-9]-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12][0-9]|3[01])|(?:0[469]|11)-(?:0[1-9]|[12][0-9]|30)|02-(?:0[1-9]|1[0-9]|2[0-8])))\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:date"> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="PrematureInputFlag" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Vorzeitige Eingabe"/> <aie:id value="135"/> <aie:status value="R"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A2040"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="GoodsItemQuantity" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Anzahl Positionen"/> <aie:id value="94"/> <aie:status value="R"/> <aie:format value="n..3"/> <aie:pcre value="\A[1-9][0-9]{0,2}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:integer"> <xs:minInclusive value="1"/> <xs:maxInclusive value="999"/> <xs:totalDigits value="3"/> <xs:pattern value="[1-9][0-9]{0,2}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CustomsGoodsStatus" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Zollrechtlicher Status"/> <aie:id value="47"/> <aie:status value="R"/> <aie:format value="an2"/> <aie:pcre value="\A.{2}\Z"/> <aie:list value="A2100"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CustomsAuthorisation" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Bewilligungsnummer"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="LocalClearanceProcedure" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Bewilligungsnummer (vereinfachtes Verfahren)"/> <aie:id value="45"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A(?:[A-Z]{2}[0-9]{4}[A-Z][A-Z0-9][0-9]{1,4}|[A-Z]{2}.{1,4}.{1,29})\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> <xs:pattern value="[A-Z]{2}[0-9]{4}[A-Z][A-Z0-9][0-9]{1,4}"/> <xs:pattern value="[A-Z]{2}.{1,4}.{1,29}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="EndUse" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Bewilligungsnummer (Endverwendung)"/> <aie:id value="4160"/> <aie:status value="D"/> <aie:format value="an..35"/> <aie:pcre value="\A(?:[A-Z]{2}[0-9]{4}[A-Z][A-Z0-9][0-9]{1,4}|[A-Z]{2}.{1,4}.{1,29})\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> <xs:pattern value="[A-Z]{2}[0-9]{4}[A-Z][A-Z0-9][0-9]{1,4}"/> <xs:pattern value="[A-Z]{2}.{1,4}.{1,29}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="GoodsLocation" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Warenort"/> <aie:id value="139"/> <aie:status value="O"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="DepartureCountry" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Versendungsland"/> <aie:id value="130"/> <aie:status value="R"/> <aie:format value="an2"/> <aie:pcre value="\A.{2}\Z"/> <aie:list value="I0300"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CurrencyCode" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="WKZ"/> <aie:id value="149"/> <aie:status value="R"/> <aie:format value="an3"/> <aie:pcre value="\AEUR\Z"/> <aie:list value="I0400"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> <xs:enumeration value="EUR"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="AdditionalInformation" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Zusätzliche Angaben zur Anmeldung"/> <aie:id value="158"/> <aie:status value="O"/> <aie:format value="an..2000"/> <aie:pcre value="\A.{1,2000}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="2000"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="TaxNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="USt-IdNr."/> <aie:id value="125"/> <aie:status value="D"/> <aie:format value="an..20"/> <aie:pcre value="\A(?:[A-Z]{2}.{1,12}|.{1,20})\Z"/> <aie:list value="A1835"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="20"/> <xs:pattern value="[A-Z]{2}.{1,12}"/> <xs:pattern value=".{1,20}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="TaxOffice" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Finanzamt"/> <aie:id value="66"/> <aie:status value="D"/> <aie:format value="an4"/> <aie:pcre value="\A.{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="4"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="RepresentativeRelationshipFlag" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen Vertretungsverhältnis"/> <aie:id value="131"/> <aie:status value="R"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1770"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="DeclarationPlace" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ausstellungsort"/> <aie:id value="17"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="AuthorisationNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="BIN"/> <aie:id value="48"/> <aie:status value="R"/> <aie:format value="an25"/> <aie:pcre value="\A.{25}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="25"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Declarant" minOccurs="0" maxOccurs="1" id="DT0"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZUM ANMELDER"/> <aie:id value="489"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Identification" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="TIN"/> <aie:id value="493"/> <aie:status value="D"/> <aie:format value="an..17"/> <aie:pcre value="\A[A-Z]{2}[\x21-\x7E]{1,15}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="17"/> <xs:pattern value="[A-Z]{2}[&#x21;-&#x7E;]{1,15}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="SubsidiaryNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Niederlassungsnummer"/> <aie:id value="492"/> <aie:status value="D"/> <aie:format value="n4"/> <aie:pcre value="\A[0-9]{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="4"/> <xs:pattern value="[0-9]{4}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Name" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Name"/> <aie:id value="491"/> <aie:status value="D"/> <aie:format value="an..120"/> <aie:pcre value="\A.{1,120}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="120"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Address" minOccurs="0" maxOccurs="1" id="DT1"> <xs:annotation> <xs:documentation> <aie:name value="ANMELDER (ADRESSDATEN)"/> <aie:id value="494"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Line" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Straße und Hausnummer"/> <aie:id value="500"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Country" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Land"/> <aie:id value="495"/> <aie:status value="R"/> <aie:format value="an2"/> <aie:pcre value="\A[A-Z]{2}\Z"/> <aie:list value="I0300"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> <xs:pattern value="[A-Z]{2}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Postcode" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Postleitzahl"/> <aie:id value="499"/> <aie:status value="D"/> <aie:format value="an..9"/> <aie:pcre value="\A.{1,9}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="9"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="City" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ort"/> <aie:id value="496"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="District" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ortsteil"/> <aie:id value="497"/> <aie:status value="O"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Representative" minOccurs="0" maxOccurs="1" id="CB0"> <xs:annotation> <xs:documentation> <aie:name value="<NAME>"/> <aie:id value="1791"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Identification" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="TIN"/> <aie:id value="1795"/> <aie:status value="R"/> <aie:format value="an..17"/> <aie:pcre value="\A[A-Z]{2}[\x21-\x7E]{1,15}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="17"/> <xs:pattern value="[A-Z]{2}[&#x21;-&#x7E;]{1,15}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="SubsidiaryNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Niederlassungsnummer"/> <aie:id value="1794"/> <aie:status value="O"/> <aie:format value="n4"/> <aie:pcre value="\A[0-9]{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="4"/> <xs:pattern value="[0-9]{4}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Principal" minOccurs="0" maxOccurs="1" id="UH0"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZUM VERTRETENEN (FÜR RECHNUNG)"/> <aie:id value="1768"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Identification" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="TIN"/> <aie:id value="1772"/> <aie:status value="D"/> <aie:format value="an..17"/> <aie:pcre value="\A[A-Z]{2}[\x21-\x7E]{1,15}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="17"/> <xs:pattern value="[A-Z]{2}[&#x21;-&#x7E;]{1,15}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="SubsidiaryNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Niederlassungsnummer"/> <aie:id value="1771"/> <aie:status value="D"/> <aie:format value="n4"/> <aie:pcre value="\A[0-9]{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="4"/> <xs:pattern value="[0-9]{4}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Name" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Name"/> <aie:id value="1770"/> <aie:status value="D"/> <aie:format value="an..120"/> <aie:pcre value="\A.{1,120}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="120"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Address" minOccurs="0" maxOccurs="1" id="UH1"> <xs:annotation> <xs:documentation> <aie:name value="FÜR RECHNUNG (ADRESSDATEN)"/> <aie:id value="1773"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Line" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Straße und Hausnummer"/> <aie:id value="1779"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Country" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Land"/> <aie:id value="1774"/> <aie:status value="R"/> <aie:format value="an2"/> <aie:pcre value="\A[A-Z]{2}\Z"/> <aie:list value="I0300"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> <xs:pattern value="[A-Z]{2}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Postcode" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Postleitzahl"/> <aie:id value="1778"/> <aie:status value="D"/> <aie:format value="an..9"/> <aie:pcre value="\A.{1,9}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="9"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="City" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ort"/> <aie:id value="1775"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="District" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ortsteil"/> <aie:id value="1776"/> <aie:status value="O"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="ContactPerson" minOccurs="1" maxOccurs="1" id="PK0"> <xs:annotation> <xs:documentation> <aie:name value="<NAME>"/> <aie:id value="517"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Name" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Name"/> <aie:id value="520"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Position" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Stellung in der Firma"/> <aie:id value="521"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="PhoneNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Telefonnummer"/> <aie:id value="522"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MailAddress" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="E-Mail-Adresse"/> <aie:id value="518"/> <aie:status value="O"/> <aie:format value="an..256"/> <aie:pcre value="\A(?=.{1,256}\Z)[A-Za-z0-9!#$%&amp;&apos;*+/=?^_`{|}~-]+(?:\.[A-Za-z0-9!#$%&amp;&apos;*+/=?^_`{|}~-]+)*@(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\.)+[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="256"/> <xs:pattern value="[A-Za-z0-9!#$%&amp;&apos;*+/=?\^_`{|}~\-]+(\.[A-Za-z0-9!#$%&amp;&apos;*+/=?\^_`{|}~\-]+)*@([A-Za-z0-9]([A-Za-z0-9\-]*[A-Za-z0-9])?\.)+[A-Za-z0-9]([A-Za-z0-9\-]*[A-Za-z0-9])?"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="BorderTransportMeans" minOccurs="1" maxOccurs="1" id="BMG"> <xs:annotation> <xs:documentation> <aie:name value="BEFÖRDERUNGSMITTEL AN DER GRENZE"/> <aie:id value="735"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Mode" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Verkehrszweig an der Grenze"/> <aie:id value="740"/> <aie:status value="R"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1980"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Type" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Art des Beförderungsmittels an der Grenze"/> <aie:id value="736"/> <aie:status value="R"/> <aie:format value="an2"/> <aie:pcre value="\A.{2}\Z"/> <aie:list value="A1140"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Information" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Beschreibung des Beförderungsmittels"/> <aie:id value="738"/> <aie:status value="D"/> <aie:format value="an..17"/> <aie:pcre value="\A.{1,17}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="17"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Nationality" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Staatszugehörigkeit des Beförderungsmittels an der Grenze"/> <aie:id value="739"/> <aie:status value="D"/> <aie:format value="an2"/> <aie:pcre value="\A.{2}\Z"/> <aie:list value="I0300"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="ArrivalTransportMeans" minOccurs="0" maxOccurs="1" id="BMN"> <xs:annotation> <xs:documentation> <aie:name value="BEFÖRDERUNGSMITTEL BEI ANKUNFT"/> <aie:id value="729"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Identity" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen/Name des Beförderungsmittels bei Ankunft"/> <aie:id value="731"/> <aie:status value="R"/> <aie:format value="an..30"/> <aie:pcre value="\A.{1,30}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="30"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="PreviousAdministrativeReferences" minOccurs="1" maxOccurs="1" id="DP0"> <xs:annotation> <xs:documentation> <aie:name value="VORPAPIERE"/> <aie:id value="1838"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Type" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Vorpapierart"/> <aie:id value="1839"/> <aie:status value="R"/> <aie:format value="an..6"/> <aie:pcre value="\A(?:AT-AV|AT-ZL|ATA|ATNEU|ESUMA|GB|OHNE|POST|PUEB|T1|T2|TIR|VER321|VO)\Z"/> <aie:list value="A2020"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="6"/> <xs:pattern value="AT-AV"/> <xs:pattern value="AT-ZL"/> <xs:pattern value="ATA"/> <xs:pattern value="ATNEU"/> <xs:pattern value="ESUMA"/> <xs:pattern value="GB"/> <xs:pattern value="OHNE"/> <xs:pattern value="POST"/> <xs:pattern value="PUEB"/> <xs:pattern value="T1"/> <xs:pattern value="T2"/> <xs:pattern value="TIR"/> <xs:pattern value="VER321"/> <xs:pattern value="VO"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="PreviousAdministrativeReference" minOccurs="0" maxOccurs="1" id="DP1"> <xs:annotation> <xs:documentation> <aie:name value="VORPAPIER"/> <aie:id value="1840"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Vorpapiernummer"/> <aie:id value="1841"/> <aie:status value="R"/> <aie:format value="an..28"/> <aie:pcre value="\A.{1,28}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="28"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="SummaryDeclaration" minOccurs="0" maxOccurs="1" id="BSK"> <xs:annotation> <xs:documentation> <aie:name value="BEENDIGUNGSANTEIL SUMA"/> <aie:id value="639"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="IdentificationIndicator" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Art der Identifikation"/> <aie:id value="641"/> <aie:status value="R"/> <aie:format value="an..3"/> <aie:pcre value="\A(?:AWB|REG)\Z"/> <aie:list value="A1125"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> <xs:enumeration value="AWB"/> <xs:enumeration value="REG"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="GoodsItem" minOccurs="1" maxOccurs="999" id="BSP"> <xs:annotation> <xs:documentation> <aie:name value="POSITION (BE-ANTEIL SUMA)"/> <aie:id value="644"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Quantity" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Stückzahl"/> <aie:id value="646"/> <aie:status value="R"/> <aie:format value="n..5"/> <aie:pcre value="\A[1-9][0-9]{0,4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:integer"> <xs:minInclusive value="1"/> <xs:maxInclusive value="99999"/> <xs:totalDigits value="5"/> <xs:pattern value="[1-9][0-9]{0,4}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="IdentificationByKey" minOccurs="0" maxOccurs="1" id="BSO"> <xs:annotation> <xs:documentation> <aie:name value="ORDNUNGSBEGRIFF BEZOGENE ERLEDIGUNG"/> <aie:id value="3650"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Kind" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Art SpO"/> <aie:id value="3655"/> <aie:status value="R"/> <aie:format value="an3"/> <aie:pcre value="\A(?:AWB|ULD)\Z"/> <aie:list value="A1180"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> <xs:enumeration value="AWB"/> <xs:enumeration value="ULD"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Number" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Spezifischer Ordnungsbegriff"/> <aie:id value="3654"/> <aie:status value="R"/> <aie:format value="an..44"/> <aie:pcre value="\A.{1,44}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="44"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Custodian" minOccurs="1" maxOccurs="1" id="BSV"> <xs:annotation> <xs:documentation> <aie:name value="<NAME>"/> <aie:id value="3658"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Identification" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="TIN"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:id value="3662"/> <aie:format value="an..17"/> <aie:pcre value="\A(?:[A-Z]{2}[\x21-\x7E]{1,15}|0{17})\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="17"/> <xs:pattern value="[A-Z]{2}[&#x21;-&#x7E;]{1,15}"/> <xs:pattern value="0{17}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="IdentificationByRegistration" minOccurs="0" maxOccurs="1" id="BSR"> <xs:annotation> <xs:documentation> <aie:name value="REGISTRIERNUMMER BEZOGENE ERLEDIGUNG"/> <aie:id value="3682"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferencedRegistrationNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Registriernummer SumA"/> <aie:id value="3684"/> <aie:status value="R"/> <aie:format value="an21"/> <aie:pcre value="\AAT[A-Z][0-9]{2}[0-9]{6}(?:0[1-9]|1[0-2])20[0-9]{2}[0-9]{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="21"/> <xs:pattern value="AT[A-Z][0-9]{2}[0-9]{6}(0[1-9]|1[0-2])20[0-9]{2}[0-9]{4}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="ReferencedSequenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Positionsnummer SumA"/> <aie:id value="3683"/> <aie:status value="R"/> <aie:format value="n..4"/> <aie:pcre value="\A[1-9][0-9]{0,3}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:integer"> <xs:minInclusive value="1"/> <xs:maxInclusive value="9999"/> <xs:totalDigits value="4"/> <xs:pattern value="[1-9][0-9]{0,3}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="CustomsWarehouse" minOccurs="0" maxOccurs="1" id="BLK"> <xs:annotation> <xs:documentation> <aie:name value="BEENDIGUNGSANTEIL ZL"/> <aie:id value="677"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="SequenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Nummer"/> <aie:id value="681"/> <aie:status value="R"/> <aie:format value="n..5"/> <aie:pcre value="\A1\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> <xs:enumeration value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="GoodsItemQuantity" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Anzahl Positionen"/> <aie:id value="682"/> <aie:status value="R"/> <aie:format value="n..3"/> <aie:pcre value="\A[1-9][0-9]{0,2}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:integer"> <xs:minInclusive value="1"/> <xs:maxInclusive value="999"/> <xs:totalDigits value="3"/> <xs:pattern value="[1-9][0-9]{0,2}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CustomsAuthorisation" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Bewilligungsnummer"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="WarehouseOwner" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:id value="679"/> <aie:format value="an..35"/> <aie:pcre value="\A(?:[A-Z]{2}[0-9]{4}[A-Z][A-Z0-9][0-9]{1,4}|[A-Z]{2}.{1,4}.{1,29})\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> <xs:pattern value="[A-Z]{2}[0-9]{4}[A-Z][A-Z0-9][0-9]{1,4}"/> <xs:pattern value="[A-Z]{2}.{1,4}.{1,29}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="LocalReferenceNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Bezugsnummer"/> <aie:id value="680"/> <aie:status value="O"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="GoodsItem" minOccurs="1" maxOccurs="999" id="BLP"> <xs:annotation> <xs:documentation> <aie:name value="POSITION (BE-ANTEIL ZL)"/> <aie:id value="684"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="SequenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Positionsnummer"/> <aie:id value="685"/> <aie:status value="R"/> <aie:format value="n..3"/> <aie:pcre value="\A[1-9][0-9]{0,2}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:integer"> <xs:minInclusive value="1"/> <xs:maxInclusive value="999"/> <xs:totalDigits value="3"/> <xs:pattern value="[1-9][0-9]{0,2}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="ReferencedRegistrationNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Registriernummer des Zugangs"/> <aie:id value="690"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="ReferencedSequenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Position des Zugangs"/> <aie:id value="689"/> <aie:status value="R"/> <aie:format value="n..5"/> <aie:pcre value="\A[1-9][0-9]{0,4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:integer"> <xs:minInclusive value="1"/> <xs:maxInclusive value="99999"/> <xs:totalDigits value="5"/> <xs:pattern value="[1-9][0-9]{0,4}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="AccessViaAtlasFlag" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen Zugang in ATLAS"/> <aie:id value="688"/> <aie:status value="R"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1810"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CommodityCode" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Warennummer"/> <aie:id value="687"/> <aie:status value="R"/> <aie:format value="n11"/> <aie:pcre value="\A[0-9]{11}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="11"/> <xs:pattern value="[0-9]{11}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="UsualProcessingFlag" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen Übliche Behandlung"/> <aie:id value="686"/> <aie:status value="R"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1740"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Complement" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Positionszusatz"/> <aie:id value="691"/> <aie:status value="O"/> <aie:format value="an..100"/> <aie:pcre value="\A.{1,100}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="100"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CommercialAmount" minOccurs="0" maxOccurs="1" id="BLH"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZUR HANDELSMENGE (BE-ANTEIL ZL)"/> <aie:id value="696"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Quantity" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Handelsmenge"/> <aie:id value="698"/> <aie:status value="R"/> <aie:format value="n..12 (12,3)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,3})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.001"/> <xs:maxInclusive value="999999999.999"/> <xs:totalDigits value="12"/> <xs:fractionDigits value="3"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,3})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MeasurementUnit" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Maßeinheit (Handelsmenge)"/> <aie:id value="697"/> <aie:status value="R"/> <aie:format value="an3"/> <aie:pcre value="\A.{3}\Z"/> <aie:list value="I0700"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Qualifier" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Qualifikator (Handelsmenge)"/> <aie:id value="699"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="I0700"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="DebitAmount" minOccurs="1" maxOccurs="1" id="BLA"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZUR ABGANGSMENGE (BE-ANTEIL ZL)"/> <aie:id value="692"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Quantity" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Abgangsmenge"/> <aie:id value="694"/> <aie:status value="R"/> <aie:format value="n..12 (12,3)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,3})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.001"/> <xs:maxInclusive value="999999999.999"/> <xs:totalDigits value="12"/> <xs:fractionDigits value="3"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,3})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MeasurementUnit" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Maßeinheit (Abgangsmenge)"/> <aie:id value="693"/> <aie:status value="R"/> <aie:format value="an3"/> <aie:pcre value="\A.{3}\Z"/> <aie:list value="I0700"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Qualifier" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Qualifikator (Abgangsmenge)"/> <aie:id value="695"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="I0700"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="InwardProcessing" minOccurs="0" maxOccurs="1" id="BVK"> <xs:annotation> <xs:documentation> <aie:name value="BEENDIGUNGSANTEIL AV"/> <aie:id value="627"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="SequenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Nummer"/> <aie:id value="630"/> <aie:status value="R"/> <aie:format value="n..5"/> <aie:pcre value="\A1\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> <xs:enumeration value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="GoodsItemQuantity" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Anzahl Positionen"/> <aie:id value="631"/> <aie:status value="R"/> <aie:format value="n..3"/> <aie:pcre value="\A[1-9][0-9]{0,2}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:integer"> <xs:minInclusive value="1"/> <xs:maxInclusive value="999"/> <xs:totalDigits value="3"/> <xs:pattern value="[1-9][0-9]{0,2}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CustomsAuthorisation" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Bewilligungsnummer"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ProcessingOwner" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:id value="629"/> <aie:format value="an..35"/> <aie:pcre value="\A(?:[A-Z]{2}[0-9]{4}[A-Z][A-Z0-9][0-9]{1,4}|[A-Z]{2}.{1,4}.{1,29})\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> <xs:pattern value="[A-Z]{2}[0-9]{4}[A-Z][A-Z0-9][0-9]{1,4}"/> <xs:pattern value="[A-Z]{2}.{1,4}.{1,29}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="SimplifiedGrantAuthorisationFlag" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen Vereinfachter Bewilligungsantrag AV (BE-Anteil AV)"/> <aie:id value="4306"/> <aie:status value="R"/> <aie:format value="a1"/> <aie:pcre value="\A\D\Z"/> <aie:list value="A1765"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> <xs:pattern value="[^0-9]"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MonitoringCustomsOffice" minOccurs="0" maxOccurs="1" id="HAD"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZUR ÜBERWACHUNGSZOLLSTELLE AV (BE-ANTEIL AV)"/> <aie:id value="4307"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Identification" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Dienststellennummer"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:id value="4308"/> <aie:format value="an8"/> <aie:pcre value="\ADE00[0-9]{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="8"/> <xs:pattern value="DE00[0-9]{4}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="GoodsItem" minOccurs="1" maxOccurs="999" id="BVP"> <xs:annotation> <xs:documentation> <aie:name value="POSITION (BE-ANTEIL AV)"/> <aie:id value="633"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="SequenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Positionsnummer"/> <aie:id value="634"/> <aie:status value="R"/> <aie:format value="n..3"/> <aie:pcre value="\A[1-9][0-9]{0,2}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:integer"> <xs:minInclusive value="1"/> <xs:maxInclusive value="999"/> <xs:totalDigits value="3"/> <xs:pattern value="[1-9][0-9]{0,2}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="ReferencedRegistrationNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Registriernummer des Zugangs"/> <aie:id value="638"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="ReferencedSequenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Position des Zugangs"/> <aie:id value="637"/> <aie:status value="R"/> <aie:format value="n..5"/> <aie:pcre value="\A[1-9][0-9]{0,4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:integer"> <xs:minInclusive value="1"/> <xs:maxInclusive value="99999"/> <xs:totalDigits value="5"/> <xs:pattern value="[1-9][0-9]{0,4}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="AccessViaAtlasFlag" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen Zugang in ATLAS"/> <aie:id value="636"/> <aie:status value="R"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1810"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="GoodsRelatedInformation" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Warenbezogene Angaben"/> <aie:id value="635"/> <aie:status value="R"/> <aie:format value="an..350"/> <aie:pcre value="\A.{1,350}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="350"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Body" minOccurs="1" maxOccurs="1" id="BDY"> <xs:annotation> <xs:documentation> <aie:name value="RUMPF"/> <aie:id value="2040"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Consignee" minOccurs="1" maxOccurs="1" id="CE1"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZUM EMPFÄNGER"/> <aie:id value="2091"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Identification" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="TIN"/> <aie:id value="2095"/> <aie:status value="D"/> <aie:format value="an..17"/> <aie:pcre value="\A[A-Z]{2}[\x21-\x7E]{1,15}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="17"/> <xs:pattern value="[A-Z]{2}[&#x21;-&#x7E;]{1,15}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="SubsidiaryNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Niederlassungsnummer"/> <aie:id value="2094"/> <aie:status value="D"/> <aie:format value="n4"/> <aie:pcre value="\A[0-9]{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="4"/> <xs:pattern value="[0-9]{4}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Name" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Name"/> <aie:id value="2093"/> <aie:status value="D"/> <aie:format value="an..120"/> <aie:pcre value="\A.{1,120}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="120"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Address" minOccurs="0" maxOccurs="1" id="CEA"> <xs:annotation> <xs:documentation> <aie:name value="EMPFÄNGER (ADRESSDATEN)"/> <aie:id value="2096"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Line" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Straße und Hausnummer"/> <aie:id value="2102"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Country" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Land"/> <aie:id value="2097"/> <aie:status value="R"/> <aie:format value="an2"/> <aie:pcre value="\A[A-Z]{2}\Z"/> <aie:list value="I0300"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> <xs:pattern value="[A-Z]{2}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Postcode" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Postleitzahl"/> <aie:id value="2101"/> <aie:status value="D"/> <aie:format value="an..9"/> <aie:pcre value="\A.{1,9}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="9"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="City" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ort"/> <aie:id value="2098"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="District" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ortsteil"/> <aie:id value="2099"/> <aie:status value="O"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Acquirer" minOccurs="0" maxOccurs="1" id="UC0"> <xs:annotation> <xs:documentation> <aie:name value="<NAME> <NAME>"/> <aie:id value="2114"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Identification" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="TIN"/> <aie:id value="2118"/> <aie:status value="D"/> <aie:format value="an..17"/> <aie:pcre value="\A[A-Z]{2}[\x21-\x7E]{1,15}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="17"/> <xs:pattern value="[A-Z]{2}[&#x21;-&#x7E;]{1,15}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="SubsidiaryNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Niederlassungsnummer"/> <aie:id value="2117"/> <aie:status value="D"/> <aie:format value="n4"/> <aie:pcre value="\A[0-9]{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="4"/> <xs:pattern value="[0-9]{4}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Name" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Name"/> <aie:id value="2116"/> <aie:status value="D"/> <aie:format value="an..120"/> <aie:pcre value="\A.{1,120}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="120"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="TaxNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="USt-IdNr."/> <aie:id value="2137"/> <aie:status value="R"/> <aie:format value="an..20"/> <aie:pcre value="\A[A-Z]{2}.{1,12}\Z"/> <aie:list value="A1835"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="20"/> <xs:pattern value="[A-Z]{2}.{1,12}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Address" minOccurs="0" maxOccurs="1" id="UC1"> <xs:annotation> <xs:documentation> <aie:name value="ERWERBER (ADRESSDATEN)"/> <aie:id value="2119"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Line" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Straße und Hausnummer"/> <aie:id value="2125"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Country" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Land"/> <aie:id value="2120"/> <aie:status value="R"/> <aie:format value="an2"/> <aie:pcre value="\A[A-Z]{2}\Z"/> <aie:list value="I0300"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> <xs:pattern value="[A-Z]{2}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Postcode" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Postleitzahl"/> <aie:id value="2124"/> <aie:status value="D"/> <aie:format value="an..9"/> <aie:pcre value="\A.{1,9}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="9"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="City" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ort"/> <aie:id value="2121"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="District" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ortsteil"/> <aie:id value="2122"/> <aie:status value="O"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Containers" minOccurs="1" maxOccurs="1" id="KC0"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZU CONTAINERN"/> <aie:id value="2086"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ContainerFlag" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen Container"/> <aie:id value="2088"/> <aie:status value="R"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1450"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Container" minOccurs="0" maxOccurs="9" id="KC1"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZU CONTAINERNUMMERN"/> <aie:id value="2089"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="IdentificationNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Container-Nummer"/> <aie:id value="2090"/> <aie:status value="R"/> <aie:format value="an..11"/> <aie:pcre value="\A.{1,11}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="11"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="ForeignTradeStatistics" minOccurs="0" maxOccurs="1" id="RAS"> <xs:annotation> <xs:documentation> <aie:name value="DATEN FÜR DIE AUSSENHANDELSSTATISTIK (KOPF)"/> <aie:id value="2043"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="InlandTransportMode" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Verkehrszweig im Inland"/> <aie:id value="2050"/> <aie:status value="O"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1990"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="TotalGrossMassMeasure" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Rohmasse-Gesamt"/> <aie:id value="2047"/> <aie:status value="D"/> <aie:format value="n..10 (10,1)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9])?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.1"/> <xs:maxInclusive value="999999999.9"/> <xs:totalDigits value="10"/> <xs:fractionDigits value="1"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9])?"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Document" minOccurs="0" maxOccurs="20" id="RUX"> <xs:annotation> <xs:documentation> <aie:name value="VORGELEGTE UNTERLAGEN ZU EINER ANMELDUNG"/> <aie:id value="2143"/> <aie:status value="O"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Division" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Bereich der Unterlage (Anmeldung)"/> <aie:id value="2146"/> <aie:status value="R"/> <aie:format value="an1"/> <aie:pcre value="\A4\Z"/> <aie:list value="A1255"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> <xs:enumeration value="4"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Type" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Art der Unterlage (Anmeldung)"/> <aie:id value="2152"/> <aie:status value="R"/> <aie:format value="an4"/> <aie:pcre value="\A.{4}\Z"/> <aie:list value="I0200"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="4"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="ReferenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Nummer vorgelegte Unterlage"/> <aie:id value="2151"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="IssuingDate" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Datum vorgelegte Unterlage"/> <aie:id value="2147"/> <aie:status value="R"/> <aie:format value="Date (n8)"/> <aie:pcre value="\A(?:(?:(?:0[48]|[2468][048]|[13579][26])(?:[02468][048]|[13579][26])|(?:[02468][1-35-79]|[13579][013-57-9])(?:0[48]|[2468][048]|[13579][26]))-02-29|[0-9][0-9][0-9][0-9]-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12][0-9]|3[01])|(?:0[469]|11)-(?:0[1-9]|[12][0-9]|30)|02-(?:0[1-9]|1[0-9]|2[0-8])))\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:date"> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="GoodsItem" minOccurs="1" maxOccurs="999" id="GDS"> <xs:annotation> <xs:documentation> <aie:name value="POSITION"/> <aie:id value="2306"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="SequenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Positionsnummer"/> <aie:id value="2356"/> <aie:status value="R"/> <aie:format value="n..3"/> <aie:pcre value="\A[1-9][0-9]{0,2}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:integer"> <xs:minInclusive value="1"/> <xs:maxInclusive value="999"/> <xs:totalDigits value="3"/> <xs:pattern value="[1-9][0-9]{0,2}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Procedure" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Verfahrenscode"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="RequestedPreviousProcedure" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:id value="2377"/> <aie:format value="an4"/> <aie:pcre value="\A.{4}\Z"/> <aie:list value="I0100"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="4"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="CessionManagementFlag" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen Abgabensteuerung"/> <aie:id value="2307"/> <aie:status value="D"/> <aie:format value="an2"/> <aie:pcre value="\A.{2}\Z"/> <aie:list value="A1345"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="GoodsDescription" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Warenbezeichnung"/> <aie:id value="2386"/> <aie:status value="R"/> <aie:format value="an..240"/> <aie:pcre value="\A.{1,240}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="240"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="NetMassMeasure" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Eigenmasse"/> <aie:id value="2335"/> <aie:status value="R"/> <aie:format value="n..10 (10,1)"/> <aie:pcre value="\A(?:0|[1-9][0-9]{0,8})(?:\.[0-9])?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.0"/> <xs:maxInclusive value="999999999.9"/> <xs:totalDigits value="10"/> <xs:fractionDigits value="1"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9])?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="OriginCountry" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ursprungsland"/> <aie:id value="2376"/> <aie:status value="R"/> <aie:format value="an2"/> <aie:pcre value="\A.{2}\Z"/> <aie:list value="I0300"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="SupplementaryInformation" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Positionszusatz"/> <aie:id value="2358"/> <aie:status value="O"/> <aie:format value="an..100"/> <aie:pcre value="\A.{1,100}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="100"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="TobaccoRevenueStampNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Tabaksteuerzeichen-Nummer"/> <aie:id value="2370"/> <aie:status value="D"/> <aie:format value="an5"/> <aie:pcre value="\A.{5}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="5"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CommodityCode" minOccurs="1" maxOccurs="1" id="COM"> <xs:annotation> <xs:documentation> <aie:name value="ANGABE WARENNUMMER"/> <aie:id value="3247"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="CommodityCode" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Warennummer"/> <aie:id value="3248"/> <aie:status value="R"/> <aie:format value="an11"/> <aie:pcre value="\A.{11}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="11"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="AdditionalProcedure" minOccurs="0" maxOccurs="99" id="ADL"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZU EU-CODES"/> <aie:id value="4945"/> <aie:status value="O"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Code" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="EU-Code"/> <aie:id value="4946"/> <aie:status value="R"/> <aie:format value="an3"/> <aie:pcre value="\A.{3}\Z"/> <aie:list value="I0100"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="SupplementaryCodes" minOccurs="0" maxOccurs="10" id="PZC"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZU ZUSATZCODES"/> <aie:id value="3316"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Code" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Zusatzcode"/> <aie:id value="3317"/> <aie:status value="R"/> <aie:format value="an4"/> <aie:pcre value="\A.{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="4"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Package" minOccurs="0" maxOccurs="1" id="GS2"> <xs:annotation> <xs:documentation> <aie:name value="PACKSTÜCKE"/> <aie:id value="2965"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Kind" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Art der Packstücke"/> <aie:id value="2967"/> <aie:status value="R"/> <aie:format value="an2"/> <aie:pcre value="\A.{2}\Z"/> <aie:list value="A1160"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Quantity" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Packstücke-Anzahl"/> <aie:id value="2966"/> <aie:status value="D"/> <aie:format value="n..5"/> <aie:pcre value="\A[1-9][0-9]{0,4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:integer"> <xs:minInclusive value="1"/> <xs:maxInclusive value="99999"/> <xs:totalDigits value="5"/> <xs:pattern value="[1-9][0-9]{0,4}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MarksNumbers" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Packstücke-Zeichen und Nummern"/> <aie:id value="2968"/> <aie:status value="D"/> <aie:format value="an..70"/> <aie:pcre value="\A.{1,70}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="70"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="ForeignTradeStatistics" minOccurs="0" maxOccurs="1" id="PAS"> <xs:annotation> <xs:documentation> <aie:name value="DATEN FÜR DIE AUSSENHANDELSSTATISTIK (POSITION)"/> <aie:id value="2561"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="GrossMassMeasure" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Rohmasse-Position"/> <aie:id value="2565"/> <aie:status value="R"/> <aie:format value="n..10 (10,1)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9])?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.1"/> <xs:maxInclusive value="999999999.9"/> <xs:totalDigits value="10"/> <xs:fractionDigits value="1"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9])?"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Assessment" minOccurs="0" maxOccurs="1" id="PBX"> <xs:annotation> <xs:documentation> <aie:name value="BEMESSUNGSDATEN (OHNE VERBRAUCHSTEUER)"/> <aie:id value="2695"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="CustomsValue" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Zollwert"/> <aie:id value="2699"/> <aie:status value="D"/> <aie:format value="n..11 (11,2)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,2})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.01"/> <xs:maxInclusive value="999999999.99"/> <xs:totalDigits value="11"/> <xs:fractionDigits value="2"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,2})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Amount" minOccurs="0" maxOccurs="5" id="PBZ"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZUR ZOLLMENGE"/> <aie:id value="2706"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Quantity" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Zollmenge"/> <aie:id value="2708"/> <aie:status value="R"/> <aie:format value="n..12 (12,3)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,3})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.001"/> <xs:maxInclusive value="999999999.999"/> <xs:totalDigits value="12"/> <xs:fractionDigits value="3"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,3})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MeasurementUnit" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Maßeinheit (Zollmenge)"/> <aie:id value="2707"/> <aie:status value="R"/> <aie:format value="an3"/> <aie:pcre value="\A.{3}\Z"/> <aie:list value="I0700"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Qualifier" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Qualifikator (Zollmenge)"/> <aie:id value="2709"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="I0700"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="SpecificRate" minOccurs="0" maxOccurs="5" id="PBW"> <xs:annotation> <xs:documentation> <aie:name value="BESONDERE WERTANGABEN"/> <aie:id value="2700"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Type" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Preisart"/> <aie:id value="2701"/> <aie:status value="R"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1880"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Value" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Besondere Wertangabe"/> <aie:id value="2702"/> <aie:status value="R"/> <aie:format value="n..11 (11,2)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,2})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.01"/> <xs:maxInclusive value="999999999.99"/> <xs:totalDigits value="11"/> <xs:fractionDigits value="2"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,2})?"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="ContentInformation" minOccurs="0" maxOccurs="3" id="PBG"> <xs:annotation> <xs:documentation> <aie:name value="GEHALTSANGABEN"/> <aie:id value="2703"/> <aie:status value="O"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Type" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Gehaltsangaben/Art"/> <aie:id value="2704"/> <aie:status value="R"/> <aie:format value="an2"/> <aie:pcre value="\A.{2}\Z"/> <aie:list value="A1330"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Degree-Percentage" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Gehaltsangaben (Grad/Prozent)"/> <aie:id value="2705"/> <aie:status value="R"/> <aie:format value="n..5 (5,2)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:(?:0|[1-9][0-9]{0,1})(?:\.[0-9]{1,2})?|100(?:\.0{1,2})?)\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:pattern value="(0|[1-9][0-9]{0,1})(\.[0-9]{1,2})?"/> <xs:pattern value="100(\.0{1,2})?"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="ExciseDuty" minOccurs="0" maxOccurs="3" id="PVS"> <xs:annotation> <xs:documentation> <aie:name value="VERBRAUCHSTEUERDATEN"/> <aie:id value="3095"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Code" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Verbrauchsteuer (Code)"/> <aie:id value="3096"/> <aie:status value="R"/> <aie:format value="an4"/> <aie:pcre value="\A.{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="4"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Degree-Percentage" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Grad/Prozent (Verbrauchsteuer)"/> <aie:id value="3097"/> <aie:status value="D"/> <aie:format value="n..5 (5,2)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:(?:0|[1-9][0-9]{0,1})(?:\.[0-9]{1,2})?|100(?:\.0{1,2})?)\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:pattern value="(0|[1-9][0-9]{0,1})(\.[0-9]{1,2})?"/> <xs:pattern value="100(\.0{1,2})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Value" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Verbrauchsteuerwert"/> <aie:id value="3098"/> <aie:status value="D"/> <aie:format value="n..11 (11,2)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,2})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.01"/> <xs:maxInclusive value="999999999.99"/> <xs:totalDigits value="11"/> <xs:fractionDigits value="2"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,2})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Amount" minOccurs="1" maxOccurs="1" id="PVM"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZUR VERBRAUCHSTEUERMENGE"/> <aie:id value="3099"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Quantity" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Verbrauchsteuer (Menge)"/> <aie:id value="3101"/> <aie:status value="R"/> <aie:format value="n..12 (12,3)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,3})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.001"/> <xs:maxInclusive value="999999999.999"/> <xs:totalDigits value="12"/> <xs:fractionDigits value="3"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,3})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MeasurementUnit" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Maßeinheit (Verbrauchsteuer)"/> <aie:id value="3100"/> <aie:status value="R"/> <aie:format value="an3"/> <aie:pcre value="\A.{3}\Z"/> <aie:list value="I0700"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Qualifier" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Qualifikator (Verbrauchsteuer)"/> <aie:id value="3102"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="I0700"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="PreferentialTreatment" minOccurs="0" maxOccurs="1" id="PGX"> <xs:annotation> <xs:documentation> <aie:name value="BEGÜNSTIGUNGSDATEN"/> <aie:id value="3843"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="RequestedPreferentialTreatment" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Beantragte Begünstigung"/> <aie:id value="2656"/> <aie:status value="R"/> <aie:format value="an3"/> <aie:pcre value="\A.{3}\Z"/> <aie:list value="A1200"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Declaration" minOccurs="0" maxOccurs="1" id="PGM"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZU KONTINGENTEN"/> <aie:id value="3844"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Contingent" minOccurs="0" maxOccurs="2" id="GMK"> <xs:annotation> <xs:documentation> <aie:name value="KONTINGENTSANGABEN"/> <aie:id value="3845"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ContingentNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kontingentnummer"/> <aie:id value="2662"/> <aie:status value="R"/> <aie:format value="an4"/> <aie:pcre value="\A.{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="4"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="PreferentialTreatmentQuantity" minOccurs="0" maxOccurs="1" id="GMB"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZUR BEGÜNSTIGUNGSMENGE"/> <aie:id value="2657"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Quantity" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Begünstigungsmenge"/> <aie:id value="2659"/> <aie:status value="R"/> <aie:format value="n..9"/> <aie:pcre value="\A[1-9][0-9]{0,8}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:integer"> <xs:minInclusive value="1"/> <xs:maxInclusive value="999999999"/> <xs:totalDigits value="9"/> <xs:pattern value="[1-9][0-9]{0,8}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MeasurementUnit" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Maßeinheit (Begünstigungsmenge)"/> <aie:id value="2658"/> <aie:status value="R"/> <aie:format value="an3"/> <aie:pcre value="\A.{3}\Z"/> <aie:list value="I0700"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Qualifier" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Qualifikator (Begünstigungsmenge)"/> <aie:id value="2660"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="I0700"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Document" minOccurs="0" maxOccurs="99" id="DC2"> <xs:annotation> <xs:documentation> <aie:name value="UNTERLAGEN ZUR POSITION"/> <aie:id value="3076"/> <aie:status value="O"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Division" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Bereich der Unterlage (Position)"/> <aie:id value="3079"/> <aie:status value="R"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1255"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Type" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Art der Unterlage (Position)"/> <aie:id value="3085"/> <aie:status value="R"/> <aie:format value="an4"/> <aie:pcre value="\A.{4}\Z"/> <aie:list value="I0200"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="4"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="ReferenceNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Nummer der Unterlage (Position)"/> <aie:id value="3084"/> <aie:status value="D"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="IssuingDate" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Datum der Unterlage (Position)"/> <aie:id value="3080"/> <aie:status value="D"/> <aie:format value="Date (n8)"/> <aie:pcre value="\A(?:(?:(?:0[48]|[2468][048]|[13579][26])(?:[02468][048]|[13579][26])|(?:[02468][1-35-79]|[13579][013-57-9])(?:0[48]|[2468][048]|[13579][26]))-02-29|[0-9][0-9][0-9][0-9]-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12][0-9]|3[01])|(?:0[469]|11)-(?:0[1-9]|[12][0-9]|30)|02-(?:0[1-9]|1[0-9]|2[0-8])))\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:date"> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="AtHandFlag" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen Vorhanden"/> <aie:id value="3086"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1790"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="WriteOff" minOccurs="0" maxOccurs="1" id="DC3"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZU ABSCHREIBUNGSMENGE/-WERT"/> <aie:id value="3090"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Quantity" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Abschreibungsmenge/-wert"/> <aie:id value="3092"/> <aie:status value="R"/> <aie:format value="n..12 (12,3)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,3})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.001"/> <xs:maxInclusive value="999999999.999"/> <xs:totalDigits value="12"/> <xs:fractionDigits value="3"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,3})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MeasurementUnit" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Maßeinheit (Abschreibung)"/> <aie:id value="3091"/> <aie:status value="R"/> <aie:format value="an3"/> <aie:pcre value="\A.{3}\Z"/> <aie:list value="I0700"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Qualifier" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Qualifikator (Abschreibung)"/> <aie:id value="3093"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="I0700"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> ' IF EXISTS (SELECT * FROM sys.xml_schema_collections WHERE name = N'DE_IMP_ECFCPD' AND schema_id = SCHEMA_ID(N'dbo')) BEGIN DROP XML SCHEMA COLLECTION dbo.DE_IMP_ECFCPD; END CREATE XML SCHEMA COLLECTION dbo.DE_IMP_ECFCPD AS N'<?xml version="1.0" encoding="UTF-16"?> <xs:schema version="9.0.0.7" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:aie="urn:publicid:IDN+zoll.de:AIE"> <xs:complexType name="decimal"> <xs:simpleContent> <xs:extension base="xs:decimal"> <xs:anyAttribute/> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:complexType name="integer"> <xs:simpleContent> <xs:extension base="xs:integer"> <xs:anyAttribute/> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:complexType name="token"> <xs:simpleContent> <xs:extension base="xs:token"> <xs:anyAttribute/> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="ECFCPD" id="MES"> <xs:annotation> <xs:documentation> <aie:name value="NACHRICHT"/> <aie:id value="1"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="MetaData" minOccurs="1" maxOccurs="1" id="MTD"> <xs:annotation> <xs:documentation> <aie:name value="METADATEN"/> <aie:id value="159"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Preparation" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Vorbereitung"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Date" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Vorbereitung (Datum)"/> <aie:id value="168"/> <aie:status value="R"/> <aie:format value="Date (n6)"/> <aie:pcre value="\A(?!....-(?:02|04|06|09|11)-31|....-02-30|..(?:.[13579]|[02468][26]|[13579][048])-02-29)^(?:20[0-9][0-9])-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:date"> <xs:minInclusive value="2000-01-01"/> <xs:maxInclusive value="2099-12-31"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Time" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Vorbereitung (Zeit)"/> <aie:id value="169"/> <aie:status value="R"/> <aie:format value="Time (n4)"/> <aie:pcre value="\A(?:[01][0-9]|2[0-3]):(?:[0-5][0-9]):(?:00)\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:time"> <xs:minInclusive value="00:00:00"/> <xs:maxInclusive value="23:59:00"/> <xs:pattern value="[0-9]{2}:[0-9]{2}:[0-0]{2}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="InterchangeControlReference" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Datei-Kennung"/> <aie:id value="160"/> <aie:status value="R"/> <aie:format value="an..14"/> <aie:pcre value="\A.{1,14}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="14"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MessageReferenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Identifikation"/> <aie:id value="161"/> <aie:status value="R"/> <aie:format value="n..6"/> <aie:pcre value="\A(?:0|[1-9][0-9]{0,5})\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:integer"> <xs:minInclusive value="0"/> <xs:maxInclusive value="999999"/> <xs:totalDigits value="6"/> <xs:pattern value="(0|[1-9][0-9]{0,5})"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MessageIdentifier" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Nachrichtennummer"/> <aie:id value="163"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MessageGroup" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Nachrichtengruppe"/> <aie:id value="162"/> <aie:status value="R"/> <aie:format value="a3"/> <aie:pcre value="\A(?:ZSZ)\Z"/> <aie:list value="A0110"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> <xs:enumeration value="ZSZ"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Scenario" minOccurs="0" maxOccurs="0"> <xs:annotation> <xs:documentation> <aie:name value="Szenario"/> <aie:status value="N"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="0" maxOccurs="0"> <xs:annotation> <xs:documentation> <aie:name value="Szenario-Nummer"/> <aie:id value="165"/> <aie:status value="N"/> <aie:format value="n5"/> <aie:pcre value="\A[1-9][0-9]{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="5"/> <xs:pattern value="[1-9][0-9]{4}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Note" minOccurs="0" maxOccurs="0"> <xs:annotation> <xs:documentation> <aie:name value="Szenario-Hinweis"/> <aie:id value="164"/> <aie:status value="N"/> <aie:format value="a2"/> <aie:pcre value="\A[A-Z]{2}\Z"/> <aie:list value="A0112"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> <xs:pattern value="[A-Z]{2}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="TestIndicator" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Test-Indikator"/> <aie:id value="166"/> <aie:status value="O"/> <aie:format value="n1"/> <aie:pcre value="\A1\Z"/> <aie:list value="A0035"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> <xs:enumeration value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MessageType" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Typ"/> <aie:id value="167"/> <aie:status value="R"/> <aie:format value="a6"/> <aie:pcre value="\AECFCPD\Z"/> <aie:list value="A0057"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="6"/> <xs:enumeration value="ECFCPD"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="InterchangeSender" minOccurs="1" maxOccurs="1" id="MST"> <xs:annotation> <xs:documentation> <aie:name value="NACHRICHTENSENDER"/> <aie:id value="241"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Identification" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="TIN"/> <aie:id value="245"/> <aie:status value="R"/> <aie:format value="an..17"/> <aie:pcre value="\A[A-Z]{2}[\x21-\x7E]{1,15}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="17"/> <xs:pattern value="[A-Z]{2}[&#x21;-&#x7E;]{1,15}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="SubsidiaryNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Niederlassungsnummer"/> <aie:id value="244"/> <aie:status value="R"/> <aie:format value="n4"/> <aie:pcre value="\A[0-9]{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="4"/> <xs:pattern value="[0-9]{4}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="InterchangeRecipient" minOccurs="1" maxOccurs="1" id="MED"> <xs:annotation> <xs:documentation> <aie:name value="NACHRICHTENEMPFÄNGER"/> <aie:id value="170"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Identification" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Dienststellennummer"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:id value="173"/> <aie:format value="an8"/> <aie:pcre value="\ADE00[0-9]{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="8"/> <xs:pattern value="DE00[0-9]{4}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Header" minOccurs="1" maxOccurs="1" id="HEA"> <xs:annotation> <xs:documentation> <aie:name value="KOPF"/> <aie:id value="3647"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="MessageVersion" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Nachrichtenversion"/> <aie:id value="89"/> <aie:status value="R"/> <aie:format value="an..7"/> <aie:pcre value="\AD\.[1-9][0-9]?\.[1-9]?[0-9]\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="7"/> <xs:pattern value="D\.[1-9][0-9]?\.[1-9]?[0-9]"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MessageRole" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Nachrichtenfunktion"/> <aie:id value="87"/> <aie:status value="R"/> <aie:format value="an..2"/> <aie:pcre value="\A.{1,2}\Z"/> <aie:list value="A1290"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MessageCreationDate" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Datum der Nachricht"/> <aie:id value="86"/> <aie:status value="R"/> <aie:format value="Date (n8)"/> <aie:pcre value="\A(?:(?:(?:0[48]|[2468][048]|[13579][26])(?:[02468][048]|[13579][26])|(?:[02468][1-35-79]|[13579][013-57-9])(?:0[48]|[2468][048]|[13579][26]))-02-29|[0-9][0-9][0-9][0-9]-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12][0-9]|3[01])|(?:0[469]|11)-(?:0[1-9]|[12][0-9]|30)|02-(?:0[1-9]|1[0-9]|2[0-8])))\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:date"> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Declaration" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Anmeldeart"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Kind" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:id value="11"/> <aie:format value="an1"/> <aie:pcre value="\A(?:Y|Z)\Z"/> <aie:list value="A1025"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> <xs:enumeration value="Y"/> <xs:enumeration value="Z"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="ReferenceNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Registriernummer"/> <aie:id value="98"/> <aie:status value="D"/> <aie:format value="an21"/> <aie:pcre value="\AAT[A-Z][0-9]{2}[0-9]{6}(?:0[1-9]|1[0-2])20[0-9]{2}[0-9]{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="21"/> <xs:pattern value="AT[A-Z][0-9]{2}[0-9]{6}(0[1-9]|1[0-2])20[0-9]{2}[0-9]{4}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="LocalReferenceNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Bezugsnummer"/> <aie:id value="46"/> <aie:status value="O"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="StartAccountingPeriodDate" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Beginn Abrechnungszeitraum"/> <aie:id value="154"/> <aie:status value="D"/> <aie:format value="Date (n8)"/> <aie:pcre value="\A(?:(?:(?:0[48]|[2468][048]|[13579][26])(?:[02468][048]|[13579][26])|(?:[02468][1-35-79]|[13579][013-57-9])(?:0[48]|[2468][048]|[13579][26]))-02-29|[0-9][0-9][0-9][0-9]-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12][0-9]|3[01])|(?:0[469]|11)-(?:0[1-9]|[12][0-9]|30)|02-(?:0[1-9]|1[0-9]|2[0-8])))\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:date"> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="EndAccountingPeriodDate" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ende Abrechnungszeitraum"/> <aie:id value="155"/> <aie:status value="D"/> <aie:format value="Date (n8)"/> <aie:pcre value="\A(?:(?:(?:0[48]|[2468][048]|[13579][26])(?:[02468][048]|[13579][26])|(?:[02468][1-35-79]|[13579][013-57-9])(?:0[48]|[2468][048]|[13579][26]))-02-29|[0-9][0-9][0-9][0-9]-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12][0-9]|3[01])|(?:0[469]|11)-(?:0[1-9]|[12][0-9]|30)|02-(?:0[1-9]|1[0-9]|2[0-8])))\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:date"> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="DeclarantIsConsigneeFlag" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Anmelder ist Empfänger"/> <aie:id value="13"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1030"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CustomsAuthorisation" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Bewilligungsnummer"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="LocalClearanceProcedure" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Bewilligungsnummer (vereinfachtes Verfahren)"/> <aie:id value="45"/> <aie:status value="D"/> <aie:format value="an..35"/> <aie:pcre value="\A(?:[A-Z]{2}[0-9]{4}[A-Z][A-Z0-9][0-9]{1,4}|[A-Z]{2}.{1,4}.{1,29})\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> <xs:pattern value="[A-Z]{2}[0-9]{4}[A-Z][A-Z0-9][0-9]{1,4}"/> <xs:pattern value="[A-Z]{2}.{1,4}.{1,29}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="EndUse" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Bewilligungsnummer (Endverwendung)"/> <aie:id value="4160"/> <aie:status value="D"/> <aie:format value="an..35"/> <aie:pcre value="\A(?:[A-Z]{2}[0-9]{4}[A-Z][A-Z0-9][0-9]{1,4}|[A-Z]{2}.{1,4}.{1,29})\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> <xs:pattern value="[A-Z]{2}[0-9]{4}[A-Z][A-Z0-9][0-9]{1,4}"/> <xs:pattern value="[A-Z]{2}.{1,4}.{1,29}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="InputTaxDeductionFlag" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Vorsteuerabzug"/> <aie:id value="134"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A2030"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CurrencyCode" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="WKZ"/> <aie:id value="149"/> <aie:status value="D"/> <aie:format value="an3"/> <aie:pcre value="\AEUR\Z"/> <aie:list value="I0400"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> <xs:enumeration value="EUR"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="TaxNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="USt-IdNr."/> <aie:id value="125"/> <aie:status value="D"/> <aie:format value="an..20"/> <aie:pcre value="\A(?:[A-Z]{2}.{1,12}|.{1,20})\Z"/> <aie:list value="A1835"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="20"/> <xs:pattern value="[A-Z]{2}.{1,12}"/> <xs:pattern value=".{1,20}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="TaxOffice" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Finanzamt"/> <aie:id value="66"/> <aie:status value="D"/> <aie:format value="an4"/> <aie:pcre value="\A.{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="4"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="RepresentativeRelationshipFlag" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen Vertretungsverhältnis"/> <aie:id value="131"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1770"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MandateReference" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Mandatsreferenznummer"/> <aie:id value="85"/> <aie:status value="O"/> <aie:format value="n10"/> <aie:pcre value="\A[0-9]{10}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="10"/> <xs:pattern value="[0-9]{10}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="DeclarationPlace" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ausstellungsort"/> <aie:id value="17"/> <aie:status value="D"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="AuthorisationNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="BIN"/> <aie:id value="48"/> <aie:status value="R"/> <aie:format value="an25"/> <aie:pcre value="\A.{25}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="25"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Declarant" minOccurs="0" maxOccurs="1" id="DT0"> <xs:annotation> <xs:documentation> <aie:name value="<NAME>"/> <aie:id value="489"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Identification" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="TIN"/> <aie:id value="493"/> <aie:status value="D"/> <aie:format value="an..17"/> <aie:pcre value="\A[A-Z]{2}[\x21-\x7E]{1,15}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="17"/> <xs:pattern value="[A-Z]{2}[&#x21;-&#x7E;]{1,15}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="SubsidiaryNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Niederlassungsnummer"/> <aie:id value="492"/> <aie:status value="D"/> <aie:format value="n4"/> <aie:pcre value="\A[0-9]{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="4"/> <xs:pattern value="[0-9]{4}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Name" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Name"/> <aie:id value="491"/> <aie:status value="D"/> <aie:format value="an..120"/> <aie:pcre value="\A.{1,120}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="120"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Address" minOccurs="0" maxOccurs="1" id="DT1"> <xs:annotation> <xs:documentation> <aie:name value="ANMELDER (ADRESSDATEN)"/> <aie:id value="494"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Line" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Straße und Hausnummer"/> <aie:id value="500"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Country" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Land"/> <aie:id value="495"/> <aie:status value="R"/> <aie:format value="an2"/> <aie:pcre value="\A[A-Z]{2}\Z"/> <aie:list value="I0300"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> <xs:pattern value="[A-Z]{2}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Postcode" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Postleitzahl"/> <aie:id value="499"/> <aie:status value="D"/> <aie:format value="an..9"/> <aie:pcre value="\A.{1,9}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="9"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="City" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ort"/> <aie:id value="496"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="District" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ortsteil"/> <aie:id value="497"/> <aie:status value="O"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Representative" minOccurs="0" maxOccurs="1" id="CB0"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZUM VERTRETER"/> <aie:id value="1791"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Identification" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="TIN"/> <aie:id value="1795"/> <aie:status value="R"/> <aie:format value="an..17"/> <aie:pcre value="\A[A-Z]{2}[\x21-\x7E]{1,15}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="17"/> <xs:pattern value="[A-Z]{2}[&#x21;-&#x7E;]{1,15}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="SubsidiaryNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Niederlassungsnummer"/> <aie:id value="1794"/> <aie:status value="O"/> <aie:format value="n4"/> <aie:pcre value="\A[0-9]{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="4"/> <xs:pattern value="[0-9]{4}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Principal" minOccurs="0" maxOccurs="1" id="UH0"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZUM VERTRETENEN (FÜR RECHNUNG)"/> <aie:id value="1768"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Identification" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="TIN"/> <aie:id value="1772"/> <aie:status value="D"/> <aie:format value="an..17"/> <aie:pcre value="\A[A-Z]{2}[\x21-\x7E]{1,15}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="17"/> <xs:pattern value="[A-Z]{2}[&#x21;-&#x7E;]{1,15}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="SubsidiaryNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Niederlassungsnummer"/> <aie:id value="1771"/> <aie:status value="D"/> <aie:format value="n4"/> <aie:pcre value="\A[0-9]{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="4"/> <xs:pattern value="[0-9]{4}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Name" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Name"/> <aie:id value="1770"/> <aie:status value="D"/> <aie:format value="an..120"/> <aie:pcre value="\A.{1,120}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="120"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Address" minOccurs="0" maxOccurs="1" id="UH1"> <xs:annotation> <xs:documentation> <aie:name value="ADRESSDATEN (FÜR RECHNUNG)"/> <aie:id value="1773"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Line" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Straße und Hausnummer"/> <aie:id value="1779"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Country" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Land"/> <aie:id value="1774"/> <aie:status value="R"/> <aie:format value="an2"/> <aie:pcre value="\A[A-Z]{2}\Z"/> <aie:list value="I0300"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> <xs:pattern value="[A-Z]{2}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Postcode" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Postleitzahl"/> <aie:id value="1778"/> <aie:status value="D"/> <aie:format value="an..9"/> <aie:pcre value="\A.{1,9}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="9"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="City" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ort"/> <aie:id value="1775"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="District" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ortsteil"/> <aie:id value="1776"/> <aie:status value="O"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="ContactPerson" minOccurs="0" maxOccurs="1" id="PK0"> <xs:annotation> <xs:documentation> <aie:name value="<NAME>"/> <aie:id value="517"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Name" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Name"/> <aie:id value="520"/> <aie:status value="D"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Position" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Stellung in der Firma"/> <aie:id value="521"/> <aie:status value="D"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="PhoneNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Telefonnummer"/> <aie:id value="522"/> <aie:status value="D"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MailAddress" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="E-Mail-Adresse"/> <aie:id value="518"/> <aie:status value="O"/> <aie:format value="an..256"/> <aie:pcre value="\A(?=.{1,256}\Z)[A-Za-z0-9!#$%&amp;&apos;*+/=?^_`{|}~-]+(?:\.[A-Za-z0-9!#$%&amp;&apos;*+/=?^_`{|}~-]+)*@(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\.)+[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="256"/> <xs:pattern value="[A-Za-z0-9!#$%&amp;&apos;*+/=?\^_`{|}~\-]+(\.[A-Za-z0-9!#$%&amp;&apos;*+/=?\^_`{|}~\-]+)*@([A-Za-z0-9]([A-Za-z0-9\-]*[A-Za-z0-9])?\.)+[A-Za-z0-9]([A-Za-z0-9\-]*[A-Za-z0-9])?"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Body" minOccurs="1" maxOccurs="999" id="BDY"> <xs:annotation> <xs:documentation> <aie:name value="<NAME> VZA/AZ"/> <aie:id value="2040"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Registriernummer vZA/AZ"/> <aie:id value="2042"/> <aie:status value="R"/> <aie:format value="an21"/> <aie:pcre value="\AAT[A-Z][0-9]{2}[0-9]{6}(?:0[1-9]|1[0-2])20[0-9]{2}[0-9]{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="21"/> <xs:pattern value="AT[A-Z][0-9]{2}[0-9]{6}(0[1-9]|1[0-2])20[0-9]{2}[0-9]{4}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CustomsValueFlag" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen D.V.1"/> <aie:id value="2189"/> <aie:status value="R"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1460"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Consignor" minOccurs="1" maxOccurs="1" id="CO1"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZUM VERSENDER/AUSFÜHRER"/> <aie:id value="2162"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Identification" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="TIN"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:id value="2166"/> <aie:format value="an..17"/> <aie:pcre value="\A[A-Z]{2}[\x21-\x7E]{1,15}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="17"/> <xs:pattern value="[A-Z]{2}[&#x21;-&#x7E;]{1,15}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Name" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Name"/> <aie:id value="2164"/> <aie:status value="D"/> <aie:format value="an..120"/> <aie:pcre value="\A.{1,120}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="120"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Address" minOccurs="0" maxOccurs="1" id="COA"> <xs:annotation> <xs:documentation> <aie:name value="VERSENDER/AUSFÜHRER (ADRESSDATEN)"/> <aie:id value="2167"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Line" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Straße und Hausnummer"/> <aie:id value="2173"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Country" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Land"/> <aie:id value="2168"/> <aie:status value="R"/> <aie:format value="an2"/> <aie:pcre value="\A[A-Z]{2}\Z"/> <aie:list value="I0300"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> <xs:pattern value="[A-Z]{2}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Postcode" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Postleitzahl"/> <aie:id value="2172"/> <aie:status value="D"/> <aie:format value="an..9"/> <aie:pcre value="\A.{1,9}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="9"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="City" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ort"/> <aie:id value="2169"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="District" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ortsteil"/> <aie:id value="2170"/> <aie:status value="O"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Consignee" minOccurs="0" maxOccurs="1" id="CE1"> <xs:annotation> <xs:documentation> <aie:name value="<NAME>"/> <aie:id value="2091"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Identification" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="TIN"/> <aie:id value="2095"/> <aie:status value="D"/> <aie:format value="an..17"/> <aie:pcre value="\A[A-Z]{2}[\x21-\x7E]{1,15}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="17"/> <xs:pattern value="[A-Z]{2}[&#x21;-&#x7E;]{1,15}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="SubsidiaryNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Niederlassungsnummer"/> <aie:id value="2094"/> <aie:status value="D"/> <aie:format value="n4"/> <aie:pcre value="\A[0-9]{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="4"/> <xs:pattern value="[0-9]{4}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Name" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Name"/> <aie:id value="2093"/> <aie:status value="D"/> <aie:format value="an..120"/> <aie:pcre value="\A.{1,120}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="120"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Address" minOccurs="0" maxOccurs="1" id="CEA"> <xs:annotation> <xs:documentation> <aie:name value="EMPFÄNGER (ADRESSDATEN)"/> <aie:id value="2096"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Line" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Straße und Hausnummer"/> <aie:id value="2102"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Country" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Land"/> <aie:id value="2097"/> <aie:status value="R"/> <aie:format value="an2"/> <aie:pcre value="\A[A-Z]{2}\Z"/> <aie:list value="I0300"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> <xs:pattern value="[A-Z]{2}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Postcode" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Postleitzahl"/> <aie:id value="2101"/> <aie:status value="D"/> <aie:format value="an..9"/> <aie:pcre value="\A.{1,9}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="9"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="City" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ort"/> <aie:id value="2098"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="District" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ortsteil"/> <aie:id value="2099"/> <aie:status value="O"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Acquirer" minOccurs="0" maxOccurs="1" id="UC0"> <xs:annotation> <xs:documentation> <aie:name value="<NAME> IM <NAME>"/> <aie:id value="2114"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Identification" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="TIN"/> <aie:id value="2118"/> <aie:status value="D"/> <aie:format value="an..17"/> <aie:pcre value="\A[A-Z]{2}[\x21-\x7E]{1,15}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="17"/> <xs:pattern value="[A-Z]{2}[&#x21;-&#x7E;]{1,15}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="SubsidiaryNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Niederlassungsnummer"/> <aie:id value="2117"/> <aie:status value="D"/> <aie:format value="n4"/> <aie:pcre value="\A[0-9]{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="4"/> <xs:pattern value="[0-9]{4}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Name" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Name"/> <aie:id value="2116"/> <aie:status value="D"/> <aie:format value="an..120"/> <aie:pcre value="\A.{1,120}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="120"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="TaxNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="USt-IdNr."/> <aie:id value="2137"/> <aie:status value="D"/> <aie:format value="an..20"/> <aie:pcre value="\A[A-Z]{2}.{1,12}\Z"/> <aie:list value="A1835"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="20"/> <xs:pattern value="[A-Z]{2}.{1,12}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Address" minOccurs="0" maxOccurs="1" id="UC1"> <xs:annotation> <xs:documentation> <aie:name value="ERWERBER (ADRESSDATEN)"/> <aie:id value="2119"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Line" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Straße und Hausnummer"/> <aie:id value="2125"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Country" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Land"/> <aie:id value="2120"/> <aie:status value="R"/> <aie:format value="an2"/> <aie:pcre value="\A[A-Z]{2}\Z"/> <aie:list value="I0300"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> <xs:pattern value="[A-Z]{2}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Postcode" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Postleitzahl"/> <aie:id value="2124"/> <aie:status value="D"/> <aie:format value="an..9"/> <aie:pcre value="\A.{1,9}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="9"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="City" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ort"/> <aie:id value="2121"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="District" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ortsteil"/> <aie:id value="2122"/> <aie:status value="O"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="DeliveryTerms" minOccurs="1" maxOccurs="1" id="RAL"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZUR LIEFERBEDINGUNG"/> <aie:id value="2138"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Code" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Lieferbedingung"/> <aie:id value="2139"/> <aie:status value="R"/> <aie:format value="an3"/> <aie:pcre value="\A.{3}\Z"/> <aie:list value="A1840"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Description" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Lieferbedingung-Incoterm"/> <aie:id value="2140"/> <aie:status value="D"/> <aie:format value="an..100"/> <aie:pcre value="\A.{1,100}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="100"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Place" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Lieferbedingung-Ort"/> <aie:id value="2141"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Key" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Lieferbedingung-Schlüssel"/> <aie:id value="2142"/> <aie:status value="R"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1850"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="PaymentTransaction" minOccurs="0" maxOccurs="1" id="MOP"> <xs:annotation> <xs:documentation> <aie:name value="<NAME>"/> <aie:id value="2185"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Amount" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Rechnungspreis"/> <aie:id value="2186"/> <aie:status value="O"/> <aie:format value="n..13 (13,2)"/> <aie:pcre value="\A(?:0|[1-9][0-9]{0,10})(?:\.[0-9]{1,2})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.00"/> <xs:maxInclusive value="99999999999.99"/> <xs:totalDigits value="13"/> <xs:fractionDigits value="2"/> <xs:pattern value="(0|[1-9][0-9]{0,10})(\.[0-9]{1,2})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CurrencyCode" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Währungsschlüssel"/> <aie:id value="2187"/> <aie:status value="D"/> <aie:format value="an3"/> <aie:pcre value="\A.{3}\Z"/> <aie:list value="I0400"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="ForeignTradeStatistics" minOccurs="0" maxOccurs="1" id="RAS"> <xs:annotation> <xs:documentation> <aie:name value="DATEN FÜR DIE AUSSENHANDELSSTATISTIK VZA/AZ (KOPF)"/> <aie:id value="2043"/> <aie:status value="O"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="EntryCustomsOffice" minOccurs="1" maxOccurs="1" id="RSE"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZUR EINGANGSZOLLSTELLE"/> <aie:id value="2056"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Eingangszollstelle"/> <aie:id value="2059"/> <aie:status value="R"/> <aie:format value="an8"/> <aie:pcre value="\ADE00[0-9]{4}\Z"/> <aie:list value="I0500"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="8"/> <xs:pattern value="DE00[0-9]{4}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="CustomsValue" minOccurs="0" maxOccurs="1" id="RZW"> <xs:annotation> <xs:documentation> <aie:name value="ANMELDUNG DER ANGABEN ÜBER DEN ZOLLWERT (D.V.1) VZA/AZ (KOPF)"/> <aie:id value="2188"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="FormerDecisions" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Frühere Entscheidungen"/> <aie:id value="2193"/> <aie:status value="O"/> <aie:format value="an..100"/> <aie:pcre value="\A.{1,100}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="100"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Vendor" minOccurs="1" maxOccurs="1" id="SE0"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZUM VERKÄUFER"/> <aie:id value="2234"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Identification" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="TIN"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:id value="2238"/> <aie:format value="an..17"/> <aie:pcre value="\A[A-Z]{2}[\x21-\x7E]{1,15}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="17"/> <xs:pattern value="[A-Z]{2}[&#x21;-&#x7E;]{1,15}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Name" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Name"/> <aie:id value="2236"/> <aie:status value="D"/> <aie:format value="an..120"/> <aie:pcre value="\A.{1,120}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="120"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Address" minOccurs="0" maxOccurs="1" id="SE1"> <xs:annotation> <xs:documentation> <aie:name value="VERKÄUFER (ADRESSDATEN)"/> <aie:id value="2239"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Line" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Straße und Hausnummer"/> <aie:id value="2245"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Country" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Land"/> <aie:id value="2240"/> <aie:status value="R"/> <aie:format value="an2"/> <aie:pcre value="\A[A-Z]{2}\Z"/> <aie:list value="I0300"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> <xs:pattern value="[A-Z]{2}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Postcode" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Postleitzahl"/> <aie:id value="2244"/> <aie:status value="D"/> <aie:format value="an..9"/> <aie:pcre value="\A.{1,9}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="9"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="City" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ort"/> <aie:id value="2241"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="District" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ortsteil"/> <aie:id value="2242"/> <aie:status value="O"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Vendee" minOccurs="1" maxOccurs="1" id="BY0"> <xs:annotation> <xs:documentation> <aie:name value="<NAME>"/> <aie:id value="2205"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Identification" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="TIN"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:id value="2209"/> <aie:format value="an..17"/> <aie:pcre value="\A[A-Z]{2}[\x21-\x7E]{1,15}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="17"/> <xs:pattern value="[A-Z]{2}[&#x21;-&#x7E;]{1,15}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Name" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Name"/> <aie:id value="2207"/> <aie:status value="D"/> <aie:format value="an..120"/> <aie:pcre value="\A.{1,120}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="120"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Address" minOccurs="0" maxOccurs="1" id="BY1"> <xs:annotation> <xs:documentation> <aie:name value="KÄUFER (ADRESSDATEN)"/> <aie:id value="2210"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Line" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Straße und Hausnummer"/> <aie:id value="2216"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Country" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Land"/> <aie:id value="2211"/> <aie:status value="R"/> <aie:format value="an2"/> <aie:pcre value="\A[A-Z]{2}\Z"/> <aie:list value="I0300"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> <xs:pattern value="[A-Z]{2}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Postcode" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Postleitzahl"/> <aie:id value="2215"/> <aie:status value="D"/> <aie:format value="an..9"/> <aie:pcre value="\A.{1,9}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="9"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="City" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ort"/> <aie:id value="2212"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="District" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ortsteil"/> <aie:id value="2213"/> <aie:status value="O"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Affiliation" minOccurs="1" maxOccurs="1" id="KZV"> <xs:annotation> <xs:documentation> <aie:name value="<NAME>"/> <aie:id value="2231"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Type" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen Verbundenheit Verkäufer und Käufer"/> <aie:id value="2233"/> <aie:status value="R"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1760"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Description" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Einzelheiten der Verbundenheit von Verkäufer und Käufer"/> <aie:id value="2232"/> <aie:status value="D"/> <aie:format value="an..100"/> <aie:pcre value="\A.{1,100}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="100"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="RestrictionOrCondition" minOccurs="1" maxOccurs="1" id="KZE"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZU BEDINGUNGEN/LEISTUNGEN"/> <aie:id value="2201"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="RestrictionFlag" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Einschränkungen"/> <aie:id value="2204"/> <aie:status value="R"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1310"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="ConditionFlag" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Bedingungen/Leistungen"/> <aie:id value="2203"/> <aie:status value="R"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1220"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Description" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Einschränkungs-/Bedingungsart"/> <aie:id value="2202"/> <aie:status value="D"/> <aie:format value="an..100"/> <aie:pcre value="\A.{1,100}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="100"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="LicenseFee" minOccurs="1" maxOccurs="1" id="KZL"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZU LIZENZGEBÜHREN"/> <aie:id value="2228"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="LicenseFeeFlag" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen Lizenzgebühren"/> <aie:id value="2229"/> <aie:status value="R"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1620"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Description" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Umstände Lizenzgebühren"/> <aie:id value="2230"/> <aie:status value="D"/> <aie:format value="an..100"/> <aie:pcre value="\A.{1,100}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="100"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Resale" minOccurs="1" maxOccurs="1" id="KZU"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZU WEITERVERKÄUFE/ÜBERLASSUNGEN/VERWENDUNGEN"/> <aie:id value="2280"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ResaleFlag" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen Weiterverkäufe/Überlassungen/Verwendungen"/> <aie:id value="2281"/> <aie:status value="R"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1800"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Description" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Umstände zu Weiterverkäufe/Überlassungen/Verwendungen"/> <aie:id value="2282"/> <aie:status value="D"/> <aie:format value="an..100"/> <aie:pcre value="\A.{1,100}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="100"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Document" minOccurs="0" maxOccurs="20" id="RUX"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZU VORGELEGTEN UNTERLAGEN ZU EINER ZOLLANMELDUNG VZA/AZ (KOPF)"/> <aie:id value="2143"/> <aie:status value="O"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Division" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Bereich der Unterlage (Anmeldung)"/> <aie:id value="2146"/> <aie:status value="R"/> <aie:format value="an1"/> <aie:pcre value="\A4\Z"/> <aie:list value="A1255"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> <xs:enumeration value="4"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Type" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Art der Unterlage (Anmeldung)"/> <aie:id value="2152"/> <aie:status value="R"/> <aie:format value="an4"/> <aie:pcre value="\A.{4}\Z"/> <aie:list value="I0200"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="4"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="ReferenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Nummer vorgelegte Unterlage"/> <aie:id value="2151"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="IssuingDate" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Datum vorgelegte Unterlage"/> <aie:id value="2147"/> <aie:status value="R"/> <aie:format value="Date (n8)"/> <aie:pcre value="\A(?:(?:(?:0[48]|[2468][048]|[13579][26])(?:[02468][048]|[13579][26])|(?:[02468][1-35-79]|[13579][013-57-9])(?:0[48]|[2468][048]|[13579][26]))-02-29|[0-9][0-9][0-9][0-9]-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12][0-9]|3[01])|(?:0[469]|11)-(?:0[1-9]|[12][0-9]|30)|02-(?:0[1-9]|1[0-9]|2[0-8])))\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:date"> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="GoodsItem" minOccurs="1" maxOccurs="999" id="GDS"> <xs:annotation> <xs:documentation> <aie:name value="POSITION"/> <aie:id value="2306"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="SequenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Positionsnummer in der EGZ"/> <aie:id value="2356"/> <aie:status value="R"/> <aie:format value="n..5"/> <aie:pcre value="\A[1-9][0-9]{0,4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:integer"> <xs:minInclusive value="1"/> <xs:maxInclusive value="99999"/> <xs:totalDigits value="5"/> <xs:pattern value="[1-9][0-9]{0,4}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="ReferredSequenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Positionsnummer in der vZA/AZ"/> <aie:id value="2383"/> <aie:status value="R"/> <aie:format value="n..3"/> <aie:pcre value="\A[1-9][0-9]{0,2}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:integer"> <xs:minInclusive value="1"/> <xs:maxInclusive value="999"/> <xs:totalDigits value="3"/> <xs:pattern value="[1-9][0-9]{0,2}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CessionManagementFlag" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen Abgabensteuerung"/> <aie:id value="2307"/> <aie:status value="O"/> <aie:format value="an2"/> <aie:pcre value="\A.{2}\Z"/> <aie:list value="A1345"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MatterCode" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Sachbereich"/> <aie:id value="2363"/> <aie:status value="R"/> <aie:format value="an2"/> <aie:pcre value="\A.{2}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="ArticleNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Artikelnummer"/> <aie:id value="2318"/> <aie:status value="O"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="InvoiceAmount" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Artikelpreis"/> <aie:id value="2319"/> <aie:status value="R"/> <aie:format value="n..11 (11,2)"/> <aie:pcre value="\A(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,2})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.00"/> <xs:maxInclusive value="999999999.99"/> <xs:totalDigits value="11"/> <xs:fractionDigits value="2"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,2})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="NetMassMeasure" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Eigenmasse"/> <aie:id value="2335"/> <aie:status value="D"/> <aie:format value="n..10 (10,1)"/> <aie:pcre value="\A(?:0|[1-9][0-9]{0,8})(?:\.[0-9])?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.0"/> <xs:maxInclusive value="999999999.9"/> <xs:totalDigits value="10"/> <xs:fractionDigits value="1"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9])?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="OriginCountry" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ursprungsland"/> <aie:id value="2376"/> <aie:status value="D"/> <aie:format value="an2"/> <aie:pcre value="\A.{2}\Z"/> <aie:list value="I0300"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="DepartureCountry" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Versendungsland"/> <aie:id value="2378"/> <aie:status value="D"/> <aie:format value="an2"/> <aie:pcre value="\A.{2}\Z"/> <aie:list value="I0300"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="SupplementaryInformation" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Positionszusatz"/> <aie:id value="2358"/> <aie:status value="O"/> <aie:format value="an..100"/> <aie:pcre value="\A.{1,100}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="100"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CompleteDeclarationFlag" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen Vollständige Angaben"/> <aie:id value="2381"/> <aie:status value="R"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1750"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="TobaccoRevenueStampNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Tabaksteuerzeichen-Nummer"/> <aie:id value="2370"/> <aie:status value="D"/> <aie:format value="an5"/> <aie:pcre value="\A.{5}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="5"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CommodityCode" minOccurs="0" maxOccurs="1" id="COM"> <xs:annotation> <xs:documentation> <aie:name value="ANGABE WARENNUMMER"/> <aie:id value="3247"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="CommodityCode" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Warennummer"/> <aie:id value="3248"/> <aie:status value="R"/> <aie:format value="an11"/> <aie:pcre value="\A.{11}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="11"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="AdditionalProcedure" minOccurs="0" maxOccurs="99" id="ADL"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZU EU-CODES"/> <aie:id value="4945"/> <aie:status value="O"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Code" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="EU-Code"/> <aie:id value="4946"/> <aie:status value="R"/> <aie:format value="an3"/> <aie:pcre value="\A.{3}\Z"/> <aie:list value="I0100"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="SupplementaryCodes" minOccurs="0" maxOccurs="10" id="PZC"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZU ZUSATZCODES"/> <aie:id value="3316"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Code" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Zusatzcode"/> <aie:id value="3317"/> <aie:status value="R"/> <aie:format value="an4"/> <aie:pcre value="\A.{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="4"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="ForeignTradeStatistics" minOccurs="1" maxOccurs="1" id="PAS"> <xs:annotation> <xs:documentation> <aie:name value="DATEN FÜR DIE AUSSENHANDELSSTATISTIK EGZ (POSITION)"/> <aie:id value="2561"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="GoodsStatus" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Statistikstatus"/> <aie:id value="2567"/> <aie:status value="R"/> <aie:format value="an2"/> <aie:pcre value="\A.{2}\Z"/> <aie:list value="A1920"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="TransactionType" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Art des Geschäfts"/> <aie:id value="2564"/> <aie:status value="R"/> <aie:format value="an2"/> <aie:pcre value="\A.{2}\Z"/> <aie:list value="A1150"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="DestinationCountry" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Bestimmungslandcode"/> <aie:id value="2563"/> <aie:status value="R"/> <aie:format value="an2"/> <aie:pcre value="\A.{2}\Z"/> <aie:list value="A1314"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="DestinationFederalState" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Bestimmungsbundesland"/> <aie:id value="2562"/> <aie:status value="R"/> <aie:format value="an2"/> <aie:pcre value="\A.{2}\Z"/> <aie:list value="A1270"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="InlandTransportMode" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Verkehrszweig im Inland"/> <aie:id value="2568"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1990"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Quantity" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Wert"/> <aie:id value="2569"/> <aie:status value="R"/> <aie:format value="n..9"/> <aie:pcre value="\A[1-9][0-9]{0,8}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:integer"> <xs:minInclusive value="1"/> <xs:maxInclusive value="999999999"/> <xs:totalDigits value="9"/> <xs:pattern value="[1-9][0-9]{0,8}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="GrossMassMeasure" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Rohmasse-Position"/> <aie:id value="2565"/> <aie:status value="O"/> <aie:format value="n..10 (10,1)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9])?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.1"/> <xs:maxInclusive value="999999999.9"/> <xs:totalDigits value="10"/> <xs:fractionDigits value="1"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9])?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Amount" minOccurs="0" maxOccurs="1" id="PAM"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZUR AH-STAT. MENGE"/> <aie:id value="2570"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Quantity" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Menge"/> <aie:id value="2572"/> <aie:status value="R"/> <aie:format value="n..12 (12,3)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,3})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.001"/> <xs:maxInclusive value="999999999.999"/> <xs:totalDigits value="12"/> <xs:fractionDigits value="3"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,3})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MeasurementUnit" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Maßeinheit"/> <aie:id value="2571"/> <aie:status value="R"/> <aie:format value="an3"/> <aie:pcre value="\A.{3}\Z"/> <aie:list value="I0700"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Qualifier" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Qualifikator"/> <aie:id value="2573"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="I0700"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="CustomsValue" minOccurs="0" maxOccurs="1" id="PZW"> <xs:annotation> <xs:documentation> <aie:name value="ANMELDUNG DER ANGABEN ÜBER DEN ZOLLWERT (D.V.1) EGZ (POSITION)"/> <aie:id value="3262"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="DepartureAirport" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Abflughafen"/> <aie:id value="3263"/> <aie:status value="O"/> <aie:format value="an3"/> <aie:pcre value="\A.{3}\Z"/> <aie:list value="I0600"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="DestinationPlace" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ort des Verbringens"/> <aie:id value="3265"/> <aie:status value="D"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="AdditionDeductionDescription" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Hinzurechnungen/Abzüge"/> <aie:id value="3264"/> <aie:status value="D"/> <aie:format value="an..30"/> <aie:pcre value="\A.{1,30}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="30"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="NetPrice" minOccurs="0" maxOccurs="1" id="PZN"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZUM NETTOPREIS"/> <aie:id value="3291"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Value" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Nettopreis"/> <aie:id value="3292"/> <aie:status value="R"/> <aie:format value="n..11 (11,2)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,2})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.01"/> <xs:maxInclusive value="999999999.99"/> <xs:totalDigits value="11"/> <xs:fractionDigits value="2"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,2})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CurrencyCode" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Währung Nettopreis"/> <aie:id value="3296"/> <aie:status value="R"/> <aie:format value="an3"/> <aie:pcre value="\A.{3}\Z"/> <aie:list value="I0400"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CurrencyRateAgreedFlag" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen Kurs netto vereinbart"/> <aie:id value="3295"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1610"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CurrencyRate" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="<NAME>"/> <aie:id value="3293"/> <aie:status value="D"/> <aie:format value="n..12 (18,9)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?=.{1,13}\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,9})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.000000001"/> <xs:maxInclusive value="999999999.999"/> <xs:totalDigits value="12"/> <xs:fractionDigits value="9"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,9})?"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="IndirectPayment" minOccurs="0" maxOccurs="1" id="PZM"> <xs:annotation> <xs:documentation> <aie:name value="<NAME>U MITTELBAREN ZAHLUNGEN"/> <aie:id value="3285"/> <aie:status value="O"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Value" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Mittelbare Zahlungen"/> <aie:id value="3286"/> <aie:status value="R"/> <aie:format value="n..11 (11,2)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,2})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.01"/> <xs:maxInclusive value="999999999.99"/> <xs:totalDigits value="11"/> <xs:fractionDigits value="2"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,2})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CurrencyCode" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Währung Mittelbare Zahlungen"/> <aie:id value="3290"/> <aie:status value="R"/> <aie:format value="an3"/> <aie:pcre value="\A.{3}\Z"/> <aie:list value="I0400"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CurrencyRateAgreedFlag" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen Kurs Mittelbare Zahlungen vereinbart"/> <aie:id value="3289"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1600"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CurrencyRate" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kurs Mittelbare Zahlungen"/> <aie:id value="3287"/> <aie:status value="D"/> <aie:format value="n..12 (18,9)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?=.{1,13}\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,9})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.000000001"/> <xs:maxInclusive value="999999999.999"/> <xs:totalDigits value="12"/> <xs:fractionDigits value="9"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,9})?"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="AirFreightCosts" minOccurs="0" maxOccurs="1" id="PZL"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZU DEN LUFTFRACHTKOSTEN"/> <aie:id value="3276"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Value" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Betrag der gesamten Luftfrachtkosten"/> <aie:id value="3277"/> <aie:status value="R"/> <aie:format value="n..11 (11,2)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,2})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.01"/> <xs:maxInclusive value="999999999.99"/> <xs:totalDigits value="11"/> <xs:fractionDigits value="2"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,2})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CurrencyCode" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Währung Betrag der gesamten Luftfrachtkosten"/> <aie:id value="3284"/> <aie:status value="R"/> <aie:format value="an3"/> <aie:pcre value="\A.{3}\Z"/> <aie:list value="I0400"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CurrencyRateIATA" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen IATA-Kurs Betrag der gesamten Luftfrachtkosten"/> <aie:id value="3278"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1560"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CurrencyRateAgreedFlag" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen Kurs Betrag der gesamten Luftfrachtkosten vereinbart"/> <aie:id value="3282"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1590"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CurrencyRate" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kurs Betrag der gesamten Luftfrachtkosten"/> <aie:id value="3279"/> <aie:status value="D"/> <aie:format value="n..12 (18,9)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?=.{1,13}\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,9})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.000000001"/> <xs:maxInclusive value="999999999.999"/> <xs:totalDigits value="12"/> <xs:fractionDigits value="9"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,9})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CurrencyRateDate" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Datum des Kurses Betrag der gesamten Luftfrachtkosten"/> <aie:id value="3281"/> <aie:status value="D"/> <aie:format value="Date (n8)"/> <aie:pcre value="\A(?:(?:(?:0[48]|[2468][048]|[13579][26])(?:[02468][048]|[13579][26])|(?:[02468][1-35-79]|[13579][013-57-9])(?:0[48]|[2468][048]|[13579][26]))-02-29|[0-9][0-9][0-9][0-9]-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12][0-9]|3[01])|(?:0[469]|11)-(?:0[1-9]|[12][0-9]|30)|02-(?:0[1-9]|1[0-9]|2[0-8])))\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:date"> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="AdditionDeduction" minOccurs="0" maxOccurs="10" id="PZR"> <xs:annotation> <xs:documentation> <aie:name value="HINZURECHNUNGEN/ABZÜGE ZUM ZOLLWERT"/> <aie:id value="3266"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Type" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="<NAME>"/> <aie:id value="3267"/> <aie:status value="R"/> <aie:format value="an3"/> <aie:pcre value="\A.{3}\Z"/> <aie:list value="A1070"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Value" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Betrag Abzug/Hinzurechnungen"/> <aie:id value="3268"/> <aie:status value="R"/> <aie:format value="n..11 (11,2)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,2})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.01"/> <xs:maxInclusive value="999999999.99"/> <xs:totalDigits value="11"/> <xs:fractionDigits value="2"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,2})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CurrencyCode" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Währung Abzug/Hinzurechnungen"/> <aie:id value="3275"/> <aie:status value="R"/> <aie:format value="an3"/> <aie:pcre value="\A.{3}\Z"/> <aie:list value="I0400"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CurrencyRateIATA" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen IATA-Kurs Abzug/Hinzurechnungen"/> <aie:id value="3269"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1560"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CurrencyRateAgreedFlag" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen Kurs Abzug/Hinzurechnungen vereinbart"/> <aie:id value="3273"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1590"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CurrencyRate" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kurs Abzug/Hinzurechnungen"/> <aie:id value="3270"/> <aie:status value="D"/> <aie:format value="n..12 (18,9)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?=.{1,13}\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,9})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.000000001"/> <xs:maxInclusive value="999999999.999"/> <xs:totalDigits value="12"/> <xs:fractionDigits value="9"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,9})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CurrencyRateDate" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Datum des Kurses Abzug/Hinzurechnungen"/> <aie:id value="3272"/> <aie:status value="D"/> <aie:format value="Date (n8)"/> <aie:pcre value="\A(?:(?:(?:0[48]|[2468][048]|[13579][26])(?:[02468][048]|[13579][26])|(?:[02468][1-35-79]|[13579][013-57-9])(?:0[48]|[2468][048]|[13579][26]))-02-29|[0-9][0-9][0-9][0-9]-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12][0-9]|3[01])|(?:0[469]|11)-(?:0[1-9]|[12][0-9]|30)|02-(?:0[1-9]|1[0-9]|2[0-8])))\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:date"> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Percentage" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Prozent der Hinzurechnungen/Abzüge"/> <aie:id value="3274"/> <aie:status value="D"/> <aie:format value="n..5 (5,2)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,2})(?:\.[0-9]{1,2})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.01"/> <xs:maxInclusive value="999.99"/> <xs:totalDigits value="5"/> <xs:fractionDigits value="2"/> <xs:pattern value="(0|[1-9][0-9]{0,2})(\.[0-9]{1,2})?"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Assessment" minOccurs="0" maxOccurs="1" id="PBX"> <xs:annotation> <xs:documentation> <aie:name value="BEMESSUNGSDATEN (OHNE VERBRAUCHSTEUER) EGZ (POSITION)"/> <aie:id value="2695"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="CustomsValue" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Zollwert"/> <aie:id value="2699"/> <aie:status value="D"/> <aie:format value="n..11 (11,2)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,2})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.01"/> <xs:maxInclusive value="999999999.99"/> <xs:totalDigits value="11"/> <xs:fractionDigits value="2"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,2})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="OutwardProcessingFee" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Veredelungsentgelt/Wertsteigerung"/> <aie:id value="2696"/> <aie:status value="D"/> <aie:format value="n..11 (11,2)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,2})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.01"/> <xs:maxInclusive value="999999999.99"/> <xs:totalDigits value="11"/> <xs:fractionDigits value="2"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,2})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="TaxCosts" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kosten für EUSt"/> <aie:id value="2697"/> <aie:status value="D"/> <aie:format value="n..11 (11,2)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,2})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.01"/> <xs:maxInclusive value="999999999.99"/> <xs:totalDigits value="11"/> <xs:fractionDigits value="2"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,2})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Amount" minOccurs="0" maxOccurs="5" id="PBZ"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZUR ZOLLMENGE"/> <aie:id value="2706"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Quantity" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Zollmenge"/> <aie:id value="2708"/> <aie:status value="R"/> <aie:format value="n..12 (12,3)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,3})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.001"/> <xs:maxInclusive value="999999999.999"/> <xs:totalDigits value="12"/> <xs:fractionDigits value="3"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,3})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MeasurementUnit" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Maßeinheit (Zollmenge)"/> <aie:id value="2707"/> <aie:status value="R"/> <aie:format value="an3"/> <aie:pcre value="\A.{3}\Z"/> <aie:list value="I0700"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Qualifier" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Qualifikator (Zollmenge)"/> <aie:id value="2709"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="I0700"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="SpecificRate" minOccurs="0" maxOccurs="5" id="PBW"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZUR BESONDEREN WERTANGABE"/> <aie:id value="2700"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Type" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Preisart"/> <aie:id value="2701"/> <aie:status value="R"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1880"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Value" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Besondere Wertangabe"/> <aie:id value="2702"/> <aie:status value="R"/> <aie:format value="n..11 (11,2)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,2})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.01"/> <xs:maxInclusive value="999999999.99"/> <xs:totalDigits value="11"/> <xs:fractionDigits value="2"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,2})?"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="ContentInformation" minOccurs="0" maxOccurs="3" id="PBG"> <xs:annotation> <xs:documentation> <aie:name value="GEHALTSANGABEN"/> <aie:id value="2703"/> <aie:status value="O"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Type" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Gehaltsangaben/Art"/> <aie:id value="2704"/> <aie:status value="R"/> <aie:format value="an2"/> <aie:pcre value="\A.{2}\Z"/> <aie:list value="A1330"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Degree-Percentage" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Gehaltsangaben (Grad/Prozent)"/> <aie:id value="2705"/> <aie:status value="R"/> <aie:format value="n..5 (5,2)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:(?:0|[1-9][0-9]{0,1})(?:\.[0-9]{1,2})?|100(?:\.0{1,2})?)\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:pattern value="(0|[1-9][0-9]{0,1})(\.[0-9]{1,2})?"/> <xs:pattern value="100(\.0{1,2})?"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="ExciseDuty" minOccurs="0" maxOccurs="3" id="PVS"> <xs:annotation> <xs:documentation> <aie:name value="VERBRAUCHSTEUERDATEN EGZ (POSITION)"/> <aie:id value="3095"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Code" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Verbrauchsteuer (Code)"/> <aie:id value="3096"/> <aie:status value="R"/> <aie:format value="an4"/> <aie:pcre value="\A.{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="4"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Degree-Percentage" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Grad/Prozent (Verbrauchsteuer)"/> <aie:id value="3097"/> <aie:status value="D"/> <aie:format value="n..5 (5,2)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:(?:0|[1-9][0-9]{0,1})(?:\.[0-9]{1,2})?|100(?:\.0{1,2})?)\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:pattern value="(0|[1-9][0-9]{0,1})(\.[0-9]{1,2})?"/> <xs:pattern value="100(\.0{1,2})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Value" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Verbrauchsteuerwert"/> <aie:id value="3098"/> <aie:status value="D"/> <aie:format value="n..11 (11,2)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,2})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.01"/> <xs:maxInclusive value="999999999.99"/> <xs:totalDigits value="11"/> <xs:fractionDigits value="2"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,2})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Amount" minOccurs="0" maxOccurs="1" id="PVM"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZUR VERBRAUCHSTEUERMENGE"/> <aie:id value="3099"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Quantity" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Verbrauchsteuer (Menge)"/> <aie:id value="3101"/> <aie:status value="R"/> <aie:format value="n..12 (12,3)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,3})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.001"/> <xs:maxInclusive value="999999999.999"/> <xs:totalDigits value="12"/> <xs:fractionDigits value="3"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,3})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MeasurementUnit" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Maßeinheit (Verbrauchsteuer)"/> <aie:id value="3100"/> <aie:status value="R"/> <aie:format value="an3"/> <aie:pcre value="\A.{3}\Z"/> <aie:list value="I0700"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Qualifier" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Qualifikator (Verbrauchsteuer)"/> <aie:id value="3102"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="I0700"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="PreferentialTreatment" minOccurs="0" maxOccurs="1" id="PGX"> <xs:annotation> <xs:documentation> <aie:name value="BEGÜNSTIGUNGSDATEN EGZ (POSITION)"/> <aie:id value="3843"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="RequestedPreferentialTreatment" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Beantragte Begünstigung"/> <aie:id value="2656"/> <aie:status value="D"/> <aie:format value="an3"/> <aie:pcre value="\A.{3}\Z"/> <aie:list value="A1200"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Declaration" minOccurs="0" maxOccurs="1" id="PGM"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZU KONTINGENTEN"/> <aie:id value="3844"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Contingent" minOccurs="0" maxOccurs="2" id="GMK"> <xs:annotation> <xs:documentation> <aie:name value="KONTINGENTSANGABEN"/> <aie:id value="3845"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ContingentNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kontingentnummer"/> <aie:id value="2662"/> <aie:status value="R"/> <aie:format value="an4"/> <aie:pcre value="\A.{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="4"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="PreferentialTreatmentQuantity" minOccurs="0" maxOccurs="1" id="GMB"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZUR BEGÜNSTIGUNGSMENGE"/> <aie:id value="2657"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Quantity" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Begünstigungsmenge"/> <aie:id value="2659"/> <aie:status value="R"/> <aie:format value="n..9"/> <aie:pcre value="\A[1-9][0-9]{0,8}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:integer"> <xs:minInclusive value="1"/> <xs:maxInclusive value="999999999"/> <xs:totalDigits value="9"/> <xs:pattern value="[1-9][0-9]{0,8}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MeasurementUnit" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Maßeinheit (Begünstigungsmenge)"/> <aie:id value="2658"/> <aie:status value="R"/> <aie:format value="an3"/> <aie:pcre value="\A.{3}\Z"/> <aie:list value="I0700"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Qualifier" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Qualifikator (Begünstigungsmenge)"/> <aie:id value="2660"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="I0700"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="OutwardProcessingReduction" minOccurs="0" maxOccurs="3" id="PPV"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZU PV-MINDERUNG"/> <aie:id value="2969"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Group" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Mindernde Abgabengruppe"/> <aie:id value="2971"/> <aie:status value="R"/> <aie:format value="an2"/> <aie:pcre value="\A.{2}\Z"/> <aie:list value="A1860"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Amount" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Minderungsbetrag"/> <aie:id value="2972"/> <aie:status value="R"/> <aie:format value="n..11 (11,2)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,2})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.01"/> <xs:maxInclusive value="999999999.99"/> <xs:totalDigits value="11"/> <xs:fractionDigits value="2"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,2})?"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="SpecialCase" minOccurs="0" maxOccurs="9" id="PSF"> <xs:annotation> <xs:documentation> <aie:name value="SONDERFALLDATEN"/> <aie:id value="3069"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Group" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Sonderabgabengruppe (Sonderfalleingabe)"/> <aie:id value="3070"/> <aie:status value="R"/> <aie:format value="an2"/> <aie:pcre value="\A.{2}\Z"/> <aie:list value="A1010"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="ApplicationType" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Anwendungsart"/> <aie:id value="3071"/> <aie:status value="R"/> <aie:format value="an2"/> <aie:pcre value="\A.{2}\Z"/> <aie:list value="A1060"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="RateOrAmountOrFactor" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Satz, Betrag oder Faktor"/> <aie:id value="3072"/> <aie:status value="D"/> <aie:format value="n..12 (12,5)"/> <aie:pcre value="\A(?:0|[1-9][0-9]{0,6})(?:\.[0-9]{1,5})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.00000"/> <xs:maxInclusive value="9999999.99999"/> <xs:totalDigits value="12"/> <xs:fractionDigits value="5"/> <xs:pattern value="(0|[1-9][0-9]{0,6})(\.[0-9]{1,5})?"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Document" minOccurs="0" maxOccurs="99" id="DC2"> <xs:annotation> <xs:documentation> <aie:name value="UNTERLAGEN ZUR POSITION"/> <aie:id value="3076"/> <aie:status value="O"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Division" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Bereich der Unterlage (Position)"/> <aie:id value="3079"/> <aie:status value="R"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1255"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Type" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Art der Unterlage (Position)"/> <aie:id value="3085"/> <aie:status value="R"/> <aie:format value="an4"/> <aie:pcre value="\A.{4}\Z"/> <aie:list value="I0200"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="4"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="ReferenceNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Nummer der Unterlage (Position)"/> <aie:id value="3084"/> <aie:status value="D"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="IssuingDate" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Datum der Unterlage (Position)"/> <aie:id value="3080"/> <aie:status value="D"/> <aie:format value="Date (n8)"/> <aie:pcre value="\A(?:(?:(?:0[48]|[2468][048]|[13579][26])(?:[02468][048]|[13579][26])|(?:[02468][1-35-79]|[13579][013-57-9])(?:0[48]|[2468][048]|[13579][26]))-02-29|[0-9][0-9][0-9][0-9]-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12][0-9]|3[01])|(?:0[469]|11)-(?:0[1-9]|[12][0-9]|30)|02-(?:0[1-9]|1[0-9]|2[0-8])))\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:date"> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="AtHandFlag" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen Vorhanden"/> <aie:id value="3086"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1790"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="WriteOff" minOccurs="0" maxOccurs="1" id="DC3"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZU ABSCHREIBUNGSMENGE/-WERT"/> <aie:id value="3090"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Quantity" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Abschreibungsmenge/-wert"/> <aie:id value="3092"/> <aie:status value="R"/> <aie:format value="n..12 (12,3)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,3})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.001"/> <xs:maxInclusive value="999999999.999"/> <xs:totalDigits value="12"/> <xs:fractionDigits value="3"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,3})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MeasurementUnit" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Maßeinheit (Abschreibung)"/> <aie:id value="3091"/> <aie:status value="R"/> <aie:format value="an3"/> <aie:pcre value="\A.{3}\Z"/> <aie:list value="I0700"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Qualifier" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Qualifikator (Abschreibung)"/> <aie:id value="3093"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="I0700"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="BorderTransportMeans" minOccurs="0" maxOccurs="1" id="MTI"> <xs:annotation> <xs:documentation> <aie:name value="BEFÖRDERUNGSMITTEL AN DER GRENZE"/> <aie:id value="2598"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Mode" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Verkehrszweig an der Grenze"/> <aie:id value="2603"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1980"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Type" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Art des Beförderungsmittels an der Grenze"/> <aie:id value="2599"/> <aie:status value="D"/> <aie:format value="an2"/> <aie:pcre value="\A.{2}\Z"/> <aie:list value="A1140"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Information" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Beschreibung des Beförderungsmittels"/> <aie:id value="2601"/> <aie:status value="D"/> <aie:format value="an..17"/> <aie:pcre value="\A.{1,17}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="17"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Nationality" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Staatszugehörigkeit des Beförderungsmittels an der Grenze"/> <aie:id value="2602"/> <aie:status value="D"/> <aie:format value="an2"/> <aie:pcre value="\A.{2}\Z"/> <aie:list value="I0300"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> ' IF EXISTS (SELECT * FROM sys.xml_schema_collections WHERE name = N'DE_IMP_GCCONI' AND schema_id = SCHEMA_ID(N'dbo')) BEGIN DROP XML SCHEMA COLLECTION dbo.DE_IMP_GCCONI; END CREATE XML SCHEMA COLLECTION dbo.DE_IMP_GCCONI AS N'<?xml version="1.0" encoding="UTF-16"?> <xs:schema version="9.0.1.2" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:aie="urn:publicid:IDN+zoll.de:AIE"> <xs:complexType name="decimal"> <xs:simpleContent> <xs:extension base="xs:decimal"> <xs:anyAttribute/> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:complexType name="integer"> <xs:simpleContent> <xs:extension base="xs:integer"> <xs:anyAttribute/> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:complexType name="token"> <xs:simpleContent> <xs:extension base="xs:token"> <xs:anyAttribute/> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="GCCONI" id="MES"> <xs:annotation> <xs:documentation> <aie:name value="NACHRICHT"/> <aie:id value="1"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="MetaData" minOccurs="1" maxOccurs="1" id="MTD"> <xs:annotation> <xs:documentation> <aie:name value="METADATEN"/> <aie:id value="159"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Preparation" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Vorbereitung"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Date" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Vorbereitung (Datum)"/> <aie:id value="168"/> <aie:status value="R"/> <aie:format value="Date (n6)"/> <aie:pcre value="\A(?!....-(?:02|04|06|09|11)-31|....-02-30|..(?:.[13579]|[02468][26]|[13579][048])-02-29)^(?:20[0-9][0-9])-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:date"> <xs:minInclusive value="2000-01-01"/> <xs:maxInclusive value="2099-12-31"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Time" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Vorbereitung (Zeit)"/> <aie:id value="169"/> <aie:status value="R"/> <aie:format value="Time (n4)"/> <aie:pcre value="\A(?:[01][0-9]|2[0-3]):(?:[0-5][0-9]):(?:00)\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:time"> <xs:minInclusive value="00:00:00"/> <xs:maxInclusive value="23:59:00"/> <xs:pattern value="[0-9]{2}:[0-9]{2}:[0-0]{2}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="InterchangeControlReference" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Datei-Kennung"/> <aie:id value="160"/> <aie:status value="R"/> <aie:format value="an..14"/> <aie:pcre value="\A.{1,14}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="14"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MessageReferenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Identifikation"/> <aie:id value="161"/> <aie:status value="R"/> <aie:format value="n..6"/> <aie:pcre value="\A(?:0|[1-9][0-9]{0,5})\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:integer"> <xs:minInclusive value="0"/> <xs:maxInclusive value="999999"/> <xs:totalDigits value="6"/> <xs:pattern value="(0|[1-9][0-9]{0,5})"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MessageIdentifier" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Nachrichtennummer"/> <aie:id value="163"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MessageGroup" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Nachrichtengruppe"/> <aie:id value="162"/> <aie:status value="R"/> <aie:format value="a3"/> <aie:pcre value="\A(?:AVE|AVV|LVE|LVV|ZBV|ZVV)\Z"/> <aie:list value="A0110"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> <xs:enumeration value="AVE"/> <xs:enumeration value="AVV"/> <xs:enumeration value="LVE"/> <xs:enumeration value="LVV"/> <xs:enumeration value="ZBV"/> <xs:enumeration value="ZVV"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Scenario" minOccurs="0" maxOccurs="0"> <xs:annotation> <xs:documentation> <aie:name value="Szenario"/> <aie:status value="N"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="0" maxOccurs="0"> <xs:annotation> <xs:documentation> <aie:name value="Szenario-Nummer"/> <aie:id value="165"/> <aie:status value="N"/> <aie:format value="n5"/> <aie:pcre value="\A[1-9][0-9]{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="5"/> <xs:pattern value="[1-9][0-9]{4}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Note" minOccurs="0" maxOccurs="0"> <xs:annotation> <xs:documentation> <aie:name value="Szenario-Hinweis"/> <aie:id value="164"/> <aie:status value="N"/> <aie:format value="a2"/> <aie:pcre value="\A[A-Z]{2}\Z"/> <aie:list value="A0112"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> <xs:pattern value="[A-Z]{2}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="TestIndicator" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Test-Indikator"/> <aie:id value="166"/> <aie:status value="O"/> <aie:format value="n1"/> <aie:pcre value="\A1\Z"/> <aie:list value="A0035"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> <xs:enumeration value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MessageType" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Typ"/> <aie:id value="167"/> <aie:status value="R"/> <aie:format value="a6"/> <aie:pcre value="\AGCCONI\Z"/> <aie:list value="A0057"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="6"/> <xs:enumeration value="GCCONI"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="InterchangeSender" minOccurs="1" maxOccurs="1" id="MST"> <xs:annotation> <xs:documentation> <aie:name value="NACHRICHTENSENDER"/> <aie:id value="241"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Identification" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="TIN"/> <aie:id value="245"/> <aie:status value="R"/> <aie:format value="an..17"/> <aie:pcre value="\A[A-Z]{2}[\x21-\x7E]{1,15}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="17"/> <xs:pattern value="[A-Z]{2}[&#x21;-&#x7E;]{1,15}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="SubsidiaryNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Niederlassungsnummer"/> <aie:id value="244"/> <aie:status value="R"/> <aie:format value="n4"/> <aie:pcre value="\A[0-9]{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="4"/> <xs:pattern value="[0-9]{4}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="InterchangeRecipient" minOccurs="1" maxOccurs="1" id="MED"> <xs:annotation> <xs:documentation> <aie:name value="NACHRICHTENEMPFÄNGER"/> <aie:id value="170"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Identification" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Dienststellennummer"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:id value="173"/> <aie:format value="an8"/> <aie:pcre value="\ADE00[0-9]{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="8"/> <xs:pattern value="DE00[0-9]{4}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Header" minOccurs="1" maxOccurs="1" id="HEA"> <xs:annotation> <xs:documentation> <aie:name value="KOPF"/> <aie:id value="3647"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="MessageVersion" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Nachrichtenversion"/> <aie:id value="89"/> <aie:status value="R"/> <aie:format value="an..7"/> <aie:pcre value="\AI\.[1-9][0-9]?\.[1-9]?[0-9]\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="7"/> <xs:pattern value="I\.[1-9][0-9]?\.[1-9]?[0-9]"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="TemporaryReferenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Arbeitsnummer der vorzeitigen Anmeldung"/> <aie:id value="22"/> <aie:status value="R"/> <aie:format value="an21"/> <aie:pcre value="\AAT[A-Z][0-9]{2}[0-9]{6}(?:0[1-9]|1[0-2])20[0-9]{2}[0-9]{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="21"/> <xs:pattern value="AT[A-Z][0-9]{2}[0-9]{6}(0[1-9]|1[0-2])20[0-9]{2}[0-9]{4}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="LocalReferenceNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Bezugsnummer"/> <aie:id value="46"/> <aie:status value="O"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="GoodsLocation" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Warenort"/> <aie:id value="139"/> <aie:status value="O"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="AuthorisationNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="BIN"/> <aie:id value="48"/> <aie:status value="R"/> <aie:format value="an25"/> <aie:pcre value="\A.{25}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="25"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="PresentationConfirmer" minOccurs="1" maxOccurs="1" id="FS0"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZUM GESTELLUNGSBESTÄTIGER"/> <aie:id value="1265"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Identification" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="TIN"/> <aie:id value="1269"/> <aie:status value="R"/> <aie:format value="an..17"/> <aie:pcre value="\A(?:[A-Z]{2}[\x21-\x7E]{1,15}|0{17})\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="17"/> <xs:pattern value="[A-Z]{2}[&#x21;-&#x7E;]{1,15}"/> <xs:pattern value="0{17}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="SubsidiaryNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Niederlassungsnummer"/> <aie:id value="1268"/> <aie:status value="O"/> <aie:format value="n4"/> <aie:pcre value="\A[0-9]{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="4"/> <xs:pattern value="[0-9]{4}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="ContactPerson" minOccurs="1" maxOccurs="1" id="PK0"> <xs:annotation> <xs:documentation> <aie:name value="<NAME>"/> <aie:id value="517"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Name" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Name"/> <aie:id value="520"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Position" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Stellung in der Firma"/> <aie:id value="521"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="PhoneNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Telefonnummer"/> <aie:id value="522"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MailAddress" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="E-Mail-Adresse"/> <aie:id value="518"/> <aie:status value="O"/> <aie:format value="an..256"/> <aie:pcre value="\A(?=.{1,256}\Z)[A-Za-z0-9!#$%&amp;&apos;*+/=?^_`{|}~-]+(?:\.[A-Za-z0-9!#$%&amp;&apos;*+/=?^_`{|}~-]+)*@(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\.)+[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="256"/> <xs:pattern value="[A-Za-z0-9!#$%&amp;&apos;*+/=?\^_`{|}~\-]+(\.[A-Za-z0-9!#$%&amp;&apos;*+/=?\^_`{|}~\-]+)*@([A-Za-z0-9]([A-Za-z0-9\-]*[A-Za-z0-9])?\.)+[A-Za-z0-9]([A-Za-z0-9\-]*[A-Za-z0-9])?"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="ArrivalTransportMeans" minOccurs="0" maxOccurs="1" id="BMN"> <xs:annotation> <xs:documentation> <aie:name value="BEFÖRDERUNGSMITTEL BEI ANKUNFT"/> <aie:id value="729"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Identity" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen des Beförderungsmittels bei Ankunft"/> <aie:id value="731"/> <aie:status value="R"/> <aie:format value="an..30"/> <aie:pcre value="\A.{1,30}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="30"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="PreviousAdministrativeReferences" minOccurs="0" maxOccurs="1" id="DP0"> <xs:annotation> <xs:documentation> <aie:name value="VORPAPIERE"/> <aie:id value="1838"/> <aie:status value="O"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Type" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Vorpapierart"/> <aie:id value="1839"/> <aie:status value="R"/> <aie:format value="an..6"/> <aie:pcre value="\A(?:AT-AV|AT-ZL|ATA|ATNEU|ESUMA|GB|OHNE|POST|PUEB|T1|T2|TIR|VER321|VO)\Z"/> <aie:list value="A2020"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="6"/> <xs:pattern value="AT-AV"/> <xs:pattern value="AT-ZL"/> <xs:pattern value="ATA"/> <xs:pattern value="ATNEU"/> <xs:pattern value="ESUMA"/> <xs:pattern value="GB"/> <xs:pattern value="OHNE"/> <xs:pattern value="POST"/> <xs:pattern value="PUEB"/> <xs:pattern value="T1"/> <xs:pattern value="T2"/> <xs:pattern value="TIR"/> <xs:pattern value="VER321"/> <xs:pattern value="VO"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="PreviousAdministrativeReference" minOccurs="0" maxOccurs="1" id="DP1"> <xs:annotation> <xs:documentation> <aie:name value="VORPAPIER"/> <aie:id value="1840"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Vorpapiernummer"/> <aie:id value="1841"/> <aie:status value="R"/> <aie:format value="an..28"/> <aie:pcre value="\A.{1,28}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="28"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="SummaryDeclaration" minOccurs="0" maxOccurs="1" id="BSK"> <xs:annotation> <xs:documentation> <aie:name value="BEENDIGUNGSANTEIL SUMA"/> <aie:id value="639"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="IdentificationIndicator" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Art der Identifikation"/> <aie:id value="641"/> <aie:status value="R"/> <aie:format value="an..3"/> <aie:pcre value="\A(?:AWB|REG)\Z"/> <aie:list value="A1125"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> <xs:enumeration value="AWB"/> <xs:enumeration value="REG"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="GoodsItem" minOccurs="1" maxOccurs="999" id="BSP"> <xs:annotation> <xs:documentation> <aie:name value="POSITION (BE-ANTEIL SUMA)"/> <aie:id value="644"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Quantity" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Stückzahl"/> <aie:id value="646"/> <aie:status value="R"/> <aie:format value="n..5"/> <aie:pcre value="\A[1-9][0-9]{0,4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:integer"> <xs:minInclusive value="1"/> <xs:maxInclusive value="99999"/> <xs:totalDigits value="5"/> <xs:pattern value="[1-9][0-9]{0,4}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="IdentificationByKey" minOccurs="0" maxOccurs="1" id="BSO"> <xs:annotation> <xs:documentation> <aie:name value="ORDNUNGSBEGRIFF BEZOGENE ERLEDIGUNG"/> <aie:id value="3650"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Kind" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Art SpO"/> <aie:id value="3655"/> <aie:status value="R"/> <aie:format value="an3"/> <aie:pcre value="\A(?:AWB|ULD)\Z"/> <aie:list value="A1180"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> <xs:enumeration value="AWB"/> <xs:enumeration value="ULD"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Number" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Spezifischer Ordnungsbegriff"/> <aie:id value="3654"/> <aie:status value="R"/> <aie:format value="an..44"/> <aie:pcre value="\A.{1,44}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="44"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Custodian" minOccurs="1" maxOccurs="1" id="BSV"> <xs:annotation> <xs:documentation> <aie:name value="<NAME>"/> <aie:id value="3658"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Identification" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="TIN"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:id value="3662"/> <aie:format value="an..17"/> <aie:pcre value="\A(?:[A-Z]{2}[\x21-\x7E]{1,15}|0{17})\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="17"/> <xs:pattern value="[A-Z]{2}[&#x21;-&#x7E;]{1,15}"/> <xs:pattern value="0{17}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="IdentificationByRegistration" minOccurs="0" maxOccurs="1" id="BSR"> <xs:annotation> <xs:documentation> <aie:name value="REGISTRIERNUMMER BEZOGENE ERLEDIGUNG"/> <aie:id value="3682"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferencedRegistrationNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Registriernummer SumA"/> <aie:id value="3684"/> <aie:status value="R"/> <aie:format value="an21"/> <aie:pcre value="\AAT[A-Z][0-9]{2}[0-9]{6}(?:0[1-9]|1[0-2])20[0-9]{2}[0-9]{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="21"/> <xs:pattern value="AT[A-Z][0-9]{2}[0-9]{6}(0[1-9]|1[0-2])20[0-9]{2}[0-9]{4}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="ReferencedSequenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Positionsnummer SumA"/> <aie:id value="3683"/> <aie:status value="R"/> <aie:format value="n..4"/> <aie:pcre value="\A[1-9][0-9]{0,3}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:integer"> <xs:minInclusive value="1"/> <xs:maxInclusive value="9999"/> <xs:totalDigits value="4"/> <xs:pattern value="[1-9][0-9]{0,3}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="CustomsWarehouse" minOccurs="0" maxOccurs="1" id="BLK"> <xs:annotation> <xs:documentation> <aie:name value="BEENDIGUNGSANTEIL ZL"/> <aie:id value="677"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="SequenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Nummer"/> <aie:id value="681"/> <aie:status value="R"/> <aie:format value="n..5"/> <aie:pcre value="\A1\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> <xs:enumeration value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="GoodsItemQuantity" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Anzahl Positionen"/> <aie:id value="682"/> <aie:status value="R"/> <aie:format value="n..3"/> <aie:pcre value="\A[1-9][0-9]{0,2}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:integer"> <xs:minInclusive value="1"/> <xs:maxInclusive value="999"/> <xs:totalDigits value="3"/> <xs:pattern value="[1-9][0-9]{0,2}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CustomsAuthorisation" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Bewilligungsnummer"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="WarehouseOwner" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:id value="679"/> <aie:format value="an..35"/> <aie:pcre value="\A(?:[A-Z]{2}[0-9]{4}[A-Z][A-Z0-9][0-9]{1,4}|[A-Z]{2}.{1,4}.{1,29})\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> <xs:pattern value="[A-Z]{2}[0-9]{4}[A-Z][A-Z0-9][0-9]{1,4}"/> <xs:pattern value="[A-Z]{2}.{1,4}.{1,29}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="LocalReferenceNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Bezugsnummer"/> <aie:id value="680"/> <aie:status value="O"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="GoodsItem" minOccurs="1" maxOccurs="999" id="BLP"> <xs:annotation> <xs:documentation> <aie:name value="POSITION (BE-ANTEIL ZL)"/> <aie:id value="684"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="SequenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Positionsnummer"/> <aie:id value="685"/> <aie:status value="R"/> <aie:format value="n..3"/> <aie:pcre value="\A[1-9][0-9]{0,2}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:integer"> <xs:minInclusive value="1"/> <xs:maxInclusive value="999"/> <xs:totalDigits value="3"/> <xs:pattern value="[1-9][0-9]{0,2}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="ReferencedRegistrationNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Registriernummer des Zugangs"/> <aie:id value="690"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="ReferencedSequenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Position des Zugangs"/> <aie:id value="689"/> <aie:status value="R"/> <aie:format value="n..5"/> <aie:pcre value="\A[1-9][0-9]{0,4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:integer"> <xs:minInclusive value="1"/> <xs:maxInclusive value="99999"/> <xs:totalDigits value="5"/> <xs:pattern value="[1-9][0-9]{0,4}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="AccessViaAtlasFlag" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen Zugang in ATLAS"/> <aie:id value="688"/> <aie:status value="R"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1810"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CommodityCode" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Warennummer"/> <aie:id value="687"/> <aie:status value="R"/> <aie:format value="n11"/> <aie:pcre value="\A[0-9]{11}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="11"/> <xs:pattern value="[0-9]{11}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="UsualProcessingFlag" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen Übliche Behandlung"/> <aie:id value="686"/> <aie:status value="R"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1740"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Complement" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Positionszusatz"/> <aie:id value="691"/> <aie:status value="O"/> <aie:format value="an..100"/> <aie:pcre value="\A.{1,100}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="100"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CommercialAmount" minOccurs="0" maxOccurs="1" id="BLH"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZUR HANDELSMENGE (BE-ANTEIL ZL)"/> <aie:id value="696"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Quantity" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Handelsmenge"/> <aie:id value="698"/> <aie:status value="R"/> <aie:format value="n..12 (12,3)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,3})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.001"/> <xs:maxInclusive value="999999999.999"/> <xs:totalDigits value="12"/> <xs:fractionDigits value="3"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,3})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MeasurementUnit" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Maßeinheit (Handelsmenge)"/> <aie:id value="697"/> <aie:status value="R"/> <aie:format value="an3"/> <aie:pcre value="\A.{3}\Z"/> <aie:list value="I0700"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Qualifier" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Qualifikator (Handelsmenge)"/> <aie:id value="699"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="I0700"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="DebitAmount" minOccurs="1" maxOccurs="1" id="BLA"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZUR ABGANGSMENGE (BE-ANTEIL ZL)"/> <aie:id value="692"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Quantity" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Abgangsmenge"/> <aie:id value="694"/> <aie:status value="R"/> <aie:format value="n..12 (12,3)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,3})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.001"/> <xs:maxInclusive value="999999999.999"/> <xs:totalDigits value="12"/> <xs:fractionDigits value="3"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,3})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MeasurementUnit" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Maßeinheit (Abgangsmenge)"/> <aie:id value="693"/> <aie:status value="R"/> <aie:format value="an3"/> <aie:pcre value="\A.{3}\Z"/> <aie:list value="I0700"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Qualifier" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Qualifikator (Abgangsmenge)"/> <aie:id value="695"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="I0700"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="InwardProcessing" minOccurs="0" maxOccurs="1" id="BVK"> <xs:annotation> <xs:documentation> <aie:name value="BEENDIGUNGSANTEIL AV"/> <aie:id value="627"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="SequenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Nummer"/> <aie:id value="630"/> <aie:status value="R"/> <aie:format value="n..5"/> <aie:pcre value="\A1\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> <xs:enumeration value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="GoodsItemQuantity" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Anzahl Positionen"/> <aie:id value="631"/> <aie:status value="R"/> <aie:format value="n..3"/> <aie:pcre value="\A[1-9][0-9]{0,2}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:integer"> <xs:minInclusive value="1"/> <xs:maxInclusive value="999"/> <xs:totalDigits value="3"/> <xs:pattern value="[1-9][0-9]{0,2}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CustomsAuthorisation" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Bewilligungsnummer"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ProcessingOwner" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:id value="629"/> <aie:format value="an..35"/> <aie:pcre value="\A(?:[A-Z]{2}[0-9]{4}[A-Z][A-Z0-9][0-9]{1,4}|[A-Z]{2}.{1,4}.{1,29})\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> <xs:pattern value="[A-Z]{2}[0-9]{4}[A-Z][A-Z0-9][0-9]{1,4}"/> <xs:pattern value="[A-Z]{2}.{1,4}.{1,29}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="SimplifiedGrantAuthorisationFlag" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen Vereinfachter Bewilligungsantrag AV (BE-Anteil AV)"/> <aie:id value="4306"/> <aie:status value="R"/> <aie:format value="a1"/> <aie:pcre value="\A\D\Z"/> <aie:list value="A1765"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> <xs:pattern value="[^0-9]"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MonitoringCustomsOffice" minOccurs="0" maxOccurs="1" id="HAD"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZUR ÜBERWACHUNGSZOLLSTELLE AV (BE-ANTEIL AV)"/> <aie:id value="4307"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Identification" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Dienststellennummer"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:id value="4308"/> <aie:format value="an8"/> <aie:pcre value="\ADE00[0-9]{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="8"/> <xs:pattern value="DE00[0-9]{4}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="GoodsItem" minOccurs="1" maxOccurs="999" id="BVP"> <xs:annotation> <xs:documentation> <aie:name value="POSITION (BE-ANTEIL AV)"/> <aie:id value="633"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="SequenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Positionsnummer"/> <aie:id value="634"/> <aie:status value="R"/> <aie:format value="n..3"/> <aie:pcre value="\A[1-9][0-9]{0,2}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:integer"> <xs:minInclusive value="1"/> <xs:maxInclusive value="999"/> <xs:totalDigits value="3"/> <xs:pattern value="[1-9][0-9]{0,2}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="ReferencedRegistrationNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Registriernummer des Zugangs"/> <aie:id value="638"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="ReferencedSequenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Position des Zugangs"/> <aie:id value="637"/> <aie:status value="R"/> <aie:format value="n..5"/> <aie:pcre value="\A[1-9][0-9]{0,4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:integer"> <xs:minInclusive value="1"/> <xs:maxInclusive value="99999"/> <xs:totalDigits value="5"/> <xs:pattern value="[1-9][0-9]{0,4}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="AccessViaAtlasFlag" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen Zugang in ATLAS"/> <aie:id value="636"/> <aie:status value="R"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1810"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="GoodsRelatedInformation" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Warenbezogene Angaben"/> <aie:id value="635"/> <aie:status value="R"/> <aie:format value="an..350"/> <aie:pcre value="\A.{1,350}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="350"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> ' IF EXISTS (SELECT * FROM sys.xml_schema_collections WHERE name = N'DE_IMP_GSCOPK' AND schema_id = SCHEMA_ID(N'dbo')) BEGIN DROP XML SCHEMA COLLECTION dbo.DE_IMP_GSCOPK; END CREATE XML SCHEMA COLLECTION dbo.DE_IMP_GSCOPK AS N'<?xml version="1.0" encoding="UTF-16"?> <xs:schema version="9.0.0.8" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:aie="urn:publicid:IDN+zoll.de:AIE"> <xs:complexType name="decimal"> <xs:simpleContent> <xs:extension base="xs:decimal"> <xs:anyAttribute/> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:complexType name="integer"> <xs:simpleContent> <xs:extension base="xs:integer"> <xs:anyAttribute/> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:complexType name="token"> <xs:simpleContent> <xs:extension base="xs:token"> <xs:anyAttribute/> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="GSCOPK" id="MES"> <xs:annotation> <xs:documentation> <aie:name value="NACHRICHT"/> <aie:id value="1"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="MetaData" minOccurs="1" maxOccurs="1" id="MTD"> <xs:annotation> <xs:documentation> <aie:name value="METADATEN"/> <aie:id value="159"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Preparation" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Vorbereitung"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Date" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Vorbereitung (Datum)"/> <aie:id value="168"/> <aie:status value="R"/> <aie:format value="Date (n6)"/> <aie:pcre value="\A(?!....-(?:02|04|06|09|11)-31|....-02-30|..(?:.[13579]|[02468][26]|[13579][048])-02-29)^(?:20[0-9][0-9])-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:date"> <xs:minInclusive value="2000-01-01"/> <xs:maxInclusive value="2099-12-31"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Time" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Vorbereitung (Zeit)"/> <aie:id value="169"/> <aie:status value="R"/> <aie:format value="Time (n4)"/> <aie:pcre value="\A(?:[01][0-9]|2[0-3]):(?:[0-5][0-9]):(?:00)\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:time"> <xs:minInclusive value="00:00:00"/> <xs:maxInclusive value="23:59:00"/> <xs:pattern value="[0-9]{2}:[0-9]{2}:[0-0]{2}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="InterchangeControlReference" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Datei-Kennung"/> <aie:id value="160"/> <aie:status value="R"/> <aie:format value="an..14"/> <aie:pcre value="\A.{1,14}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="14"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MessageReferenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Identifikation"/> <aie:id value="161"/> <aie:status value="R"/> <aie:format value="n..6"/> <aie:pcre value="\A(?:0|[1-9][0-9]{0,5})\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:integer"> <xs:minInclusive value="0"/> <xs:maxInclusive value="999999"/> <xs:totalDigits value="6"/> <xs:pattern value="(0|[1-9][0-9]{0,5})"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MessageIdentifier" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Nachrichtennummer"/> <aie:id value="163"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MessageGroup" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Nachrichtengruppe"/> <aie:id value="162"/> <aie:status value="R"/> <aie:format value="a3"/> <aie:pcre value="\A(?:AEZ|LBA|ZSZ)\Z"/> <aie:list value="A0110"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> <xs:enumeration value="AEZ"/> <xs:enumeration value="LBA"/> <xs:enumeration value="ZSZ"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Scenario" minOccurs="0" maxOccurs="0"> <xs:annotation> <xs:documentation> <aie:name value="Szenario"/> <aie:status value="N"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="0" maxOccurs="0"> <xs:annotation> <xs:documentation> <aie:name value="Szenario-Nummer"/> <aie:id value="165"/> <aie:status value="N"/> <aie:format value="n5"/> <aie:pcre value="\A[1-9][0-9]{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="5"/> <xs:pattern value="[1-9][0-9]{4}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Note" minOccurs="0" maxOccurs="0"> <xs:annotation> <xs:documentation> <aie:name value="Szenario-Hinweis"/> <aie:id value="164"/> <aie:status value="N"/> <aie:format value="a2"/> <aie:pcre value="\A[A-Z]{2}\Z"/> <aie:list value="A0112"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> <xs:pattern value="[A-Z]{2}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="TestIndicator" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Test-Indikator"/> <aie:id value="166"/> <aie:status value="O"/> <aie:format value="n1"/> <aie:pcre value="\A1\Z"/> <aie:list value="A0035"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> <xs:enumeration value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MessageType" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Typ"/> <aie:id value="167"/> <aie:status value="R"/> <aie:format value="a6"/> <aie:pcre value="\AGSCOPK\Z"/> <aie:list value="A0057"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="6"/> <xs:enumeration value="GSCOPK"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="InterchangeSender" minOccurs="1" maxOccurs="1" id="MST"> <xs:annotation> <xs:documentation> <aie:name value="NACHRICHTENSENDER"/> <aie:id value="241"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Identification" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="TIN"/> <aie:id value="245"/> <aie:status value="R"/> <aie:format value="an..17"/> <aie:pcre value="\A[A-Z]{2}[\x21-\x7E]{1,15}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="17"/> <xs:pattern value="[A-Z]{2}[&#x21;-&#x7E;]{1,15}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="SubsidiaryNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Niederlassungsnummer"/> <aie:id value="244"/> <aie:status value="R"/> <aie:format value="n4"/> <aie:pcre value="\A[0-9]{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="4"/> <xs:pattern value="[0-9]{4}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="InterchangeRecipient" minOccurs="1" maxOccurs="1" id="MED"> <xs:annotation> <xs:documentation> <aie:name value="NACHRICHTENEMPFÄNGER"/> <aie:id value="170"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Identification" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Dienststellennummer"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:id value="173"/> <aie:format value="an8"/> <aie:pcre value="\ADE00[0-9]{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="8"/> <xs:pattern value="DE00[0-9]{4}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Header" minOccurs="1" maxOccurs="1" id="HEA"> <xs:annotation> <xs:documentation> <aie:name value="KOPF"/> <aie:id value="3647"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="MessageVersion" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Nachrichtenversion"/> <aie:id value="89"/> <aie:status value="R"/> <aie:format value="an..7"/> <aie:pcre value="\AK\.[1-9][0-9]?\.[1-9]?[0-9]\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="7"/> <xs:pattern value="K\.[1-9][0-9]?\.[1-9]?[0-9]"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MessageRole" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Nachrichtenfunktion"/> <aie:id value="87"/> <aie:status value="R"/> <aie:format value="an..2"/> <aie:pcre value="\A.{1,2}\Z"/> <aie:list value="A1290"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MessageCreationDate" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Datum der Nachricht"/> <aie:id value="86"/> <aie:status value="R"/> <aie:format value="Date (n8)"/> <aie:pcre value="\A(?:(?:(?:0[48]|[2468][048]|[13579][26])(?:[02468][048]|[13579][26])|(?:[02468][1-35-79]|[13579][013-57-9])(?:0[48]|[2468][048]|[13579][26]))-02-29|[0-9][0-9][0-9][0-9]-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12][0-9]|3[01])|(?:0[469]|11)-(?:0[1-9]|[12][0-9]|30)|02-(?:0[1-9]|1[0-9]|2[0-8])))\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:date"> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Declaration" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Kind" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Anmeldeart"/> <aie:id value="11"/> <aie:status value="R"/> <aie:format value="an1"/> <aie:pcre value="\A(?:Y|Z)\Z"/> <aie:list value="A1025"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> <xs:enumeration value="Y"/> <xs:enumeration value="Z"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Type" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Art der Anmeldung"/> <aie:id value="14"/> <aie:status value="R"/> <aie:format value="an..3"/> <aie:pcre value="\A(?:AAV|AZ|AZL|VAV|VZA|VZL)\Z"/> <aie:list value="A1100"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="2"/> <xs:maxLength value="3"/> <xs:enumeration value="AAV"/> <xs:enumeration value="AZ"/> <xs:enumeration value="AZL"/> <xs:enumeration value="VAV"/> <xs:enumeration value="VZA"/> <xs:enumeration value="VZL"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="ReferenceNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Registriernummer"/> <aie:id value="98"/> <aie:status value="D"/> <aie:format value="an21"/> <aie:pcre value="\AAT[A-Z][0-9]{2}[0-9]{6}(?:0[1-9]|1[0-2])20[0-9]{2}[0-9]{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="21"/> <xs:pattern value="AT[A-Z][0-9]{2}[0-9]{6}(0[1-9]|1[0-2])20[0-9]{2}[0-9]{4}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="LocalReferenceNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Bezugsnummer"/> <aie:id value="46"/> <aie:status value="O"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="StartAccountingPeriodDate" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Beginn Abrechnungszeitraum"/> <aie:id value="154"/> <aie:status value="D"/> <aie:format value="Date (n8)"/> <aie:pcre value="\A(?:(?:(?:0[48]|[2468][048]|[13579][26])(?:[02468][048]|[13579][26])|(?:[02468][1-35-79]|[13579][013-57-9])(?:0[48]|[2468][048]|[13579][26]))-02-29|[0-9][0-9][0-9][0-9]-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12][0-9]|3[01])|(?:0[469]|11)-(?:0[1-9]|[12][0-9]|30)|02-(?:0[1-9]|1[0-9]|2[0-8])))\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:date"> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="EndAccountingPeriodDate" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ende Abrechnungszeitraum"/> <aie:id value="155"/> <aie:status value="D"/> <aie:format value="Date (n8)"/> <aie:pcre value="\A(?:(?:(?:0[48]|[2468][048]|[13579][26])(?:[02468][048]|[13579][26])|(?:[02468][1-35-79]|[13579][013-57-9])(?:0[48]|[2468][048]|[13579][26]))-02-29|[0-9][0-9][0-9][0-9]-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12][0-9]|3[01])|(?:0[469]|11)-(?:0[1-9]|[12][0-9]|30)|02-(?:0[1-9]|1[0-9]|2[0-8])))\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:date"> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="DeclarantIsConsigneeFlag" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Anmelder ist Empfänger"/> <aie:id value="13"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1030"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CustomsAuthorisation" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Bewilligungsnummer"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="LocalClearanceProcedure" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Bewilligungsnummer (vereinfachtes Verfahren)"/> <aie:id value="45"/> <aie:status value="D"/> <aie:format value="an..35"/> <aie:pcre value="\A(?:[A-Z]{2}[0-9]{4}[AS][1239][0-9]{1,4}|[A-Z]{2}(?:EIR|SDE).{1,29})\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> <xs:pattern value="[A-Z]{2}[0-9]{4}[AS][1239][0-9]{1,4}"/> <xs:pattern value="[A-Z]{2}(EIR|SDE).{1,29}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CurrentProcedure" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Bewilligungsnummer (Fachverfahren)"/> <aie:id value="43"/> <aie:status value="D"/> <aie:format value="an..35"/> <aie:pcre value="\A(?:[A-Z]{2}[0-9]{4}(?:L[ACDE]|FV|AV)[0-9]{1,4}|[A-Z]{2}(?:CW[1P]|EUS|IPO).{1,29})\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> <xs:pattern value="[A-Z]{2}[0-9]{4}(L[ACDE]|FV|AV)[0-9]{1,4}"/> <xs:pattern value="[A-Z]{2}(CW[1P]|EUS|IPO).{1,29}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="InputTaxDeductionFlag" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Vorsteuerabzug"/> <aie:id value="134"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A2030"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CurrencyCode" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="WKZ"/> <aie:id value="149"/> <aie:status value="D"/> <aie:format value="an3"/> <aie:pcre value="\AEUR\Z"/> <aie:list value="I0400"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> <xs:enumeration value="EUR"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="TaxNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="USt-IdNr."/> <aie:id value="125"/> <aie:status value="D"/> <aie:format value="an..20"/> <aie:pcre value="\A(?:[A-Z]{2}.{1,12}|.{1,20})\Z"/> <aie:list value="A1835"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="20"/> <xs:pattern value="[A-Z]{2}.{1,12}"/> <xs:pattern value=".{1,20}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="TaxOffice" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Finanzamt"/> <aie:id value="66"/> <aie:status value="D"/> <aie:format value="an4"/> <aie:pcre value="\A.{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="4"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="RepresentativeRelationshipFlag" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen Vertretungsverhältnis"/> <aie:id value="131"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1770"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MandateReference" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Mandatsreferenznummer"/> <aie:id value="85"/> <aie:status value="D"/> <aie:format value="n10"/> <aie:pcre value="\A[0-9]{10}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="10"/> <xs:pattern value="[0-9]{10}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="DeclarationPlace" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ausstellungsort"/> <aie:id value="17"/> <aie:status value="D"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="AuthorisationNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="BIN"/> <aie:id value="48"/> <aie:status value="R"/> <aie:format value="an25"/> <aie:pcre value="\A.{25}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="25"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Declarant" minOccurs="0" maxOccurs="1" id="DT0"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZUM ANMELDER"/> <aie:id value="489"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Identification" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="TIN"/> <aie:id value="493"/> <aie:status value="D"/> <aie:format value="an..17"/> <aie:pcre value="\A[A-Z]{2}[\x21-\x7E]{1,15}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="17"/> <xs:pattern value="[A-Z]{2}[&#x21;-&#x7E;]{1,15}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="SubsidiaryNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Niederlassungsnummer"/> <aie:id value="492"/> <aie:status value="D"/> <aie:format value="n4"/> <aie:pcre value="\A[0-9]{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="4"/> <xs:pattern value="[0-9]{4}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Name" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Name"/> <aie:id value="491"/> <aie:status value="D"/> <aie:format value="an..120"/> <aie:pcre value="\A.{1,120}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="120"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Address" minOccurs="0" maxOccurs="1" id="DT1"> <xs:annotation> <xs:documentation> <aie:name value="ANMELDER (ADRESSDATEN)"/> <aie:id value="494"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Line" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Straße und Hausnummer"/> <aie:id value="500"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Country" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Land"/> <aie:id value="495"/> <aie:status value="R"/> <aie:format value="an2"/> <aie:pcre value="\A[A-Z]{2}\Z"/> <aie:list value="I0300"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> <xs:pattern value="[A-Z]{2}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Postcode" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Postleitzahl"/> <aie:id value="499"/> <aie:status value="D"/> <aie:format value="an..9"/> <aie:pcre value="\A.{1,9}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="9"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="City" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ort"/> <aie:id value="496"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="District" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ortsteil"/> <aie:id value="497"/> <aie:status value="O"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Representative" minOccurs="0" maxOccurs="1" id="CB0"> <xs:annotation> <xs:documentation> <aie:name value="<NAME>"/> <aie:id value="1791"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Identification" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="TIN"/> <aie:id value="1795"/> <aie:status value="R"/> <aie:format value="an..17"/> <aie:pcre value="\A[A-Z]{2}[\x21-\x7E]{1,15}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="17"/> <xs:pattern value="[A-Z]{2}[&#x21;-&#x7E;]{1,15}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="SubsidiaryNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Niederlassungsnummer"/> <aie:id value="1794"/> <aie:status value="O"/> <aie:format value="n4"/> <aie:pcre value="\A[0-9]{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="4"/> <xs:pattern value="[0-9]{4}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Principal" minOccurs="0" maxOccurs="1" id="UH0"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZUM VERTRETENEN (FÜR RECHNUNG)"/> <aie:id value="1768"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Identification" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="TIN"/> <aie:id value="1772"/> <aie:status value="D"/> <aie:format value="an..17"/> <aie:pcre value="\A[A-Z]{2}[\x21-\x7E]{1,15}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="17"/> <xs:pattern value="[A-Z]{2}[&#x21;-&#x7E;]{1,15}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="SubsidiaryNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Niederlassungsnummer"/> <aie:id value="1771"/> <aie:status value="D"/> <aie:format value="n4"/> <aie:pcre value="\A[0-9]{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="4"/> <xs:pattern value="[0-9]{4}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Name" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Name"/> <aie:id value="1770"/> <aie:status value="D"/> <aie:format value="an..120"/> <aie:pcre value="\A.{1,120}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="120"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Address" minOccurs="0" maxOccurs="1" id="UH1"> <xs:annotation> <xs:documentation> <aie:name value="FÜR RECHNUNG (ADRESSDATEN)"/> <aie:id value="1773"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Line" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Straße und Hausnummer"/> <aie:id value="1779"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Country" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Land"/> <aie:id value="1774"/> <aie:status value="R"/> <aie:format value="an2"/> <aie:pcre value="\A[A-Z]{2}\Z"/> <aie:list value="I0300"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> <xs:pattern value="[A-Z]{2}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Postcode" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Postleitzahl"/> <aie:id value="1778"/> <aie:status value="D"/> <aie:format value="an..9"/> <aie:pcre value="\A.{1,9}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="9"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="City" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ort"/> <aie:id value="1775"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="District" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ortsteil"/> <aie:id value="1776"/> <aie:status value="O"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="ContactPerson" minOccurs="0" maxOccurs="1" id="PK0"> <xs:annotation> <xs:documentation> <aie:name value="<NAME>"/> <aie:id value="517"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Name" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Name"/> <aie:id value="520"/> <aie:status value="D"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Position" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Stellung in der Firma"/> <aie:id value="521"/> <aie:status value="D"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="PhoneNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Telefonnummer"/> <aie:id value="522"/> <aie:status value="D"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MailAddress" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="E-Mail-Adresse"/> <aie:id value="518"/> <aie:status value="O"/> <aie:format value="an..256"/> <aie:pcre value="\A(?=.{1,256}\Z)[A-Za-z0-9!#$%&amp;&apos;*+/=?^_`{|}~-]+(?:\.[A-Za-z0-9!#$%&amp;&apos;*+/=?^_`{|}~-]+)*@(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\.)+[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="256"/> <xs:pattern value="[A-Za-z0-9!#$%&amp;&apos;*+/=?\^_`{|}~\-]+(\.[A-Za-z0-9!#$%&amp;&apos;*+/=?\^_`{|}~\-]+)*@([A-Za-z0-9]([A-Za-z0-9\-]*[A-Za-z0-9])?\.)+[A-Za-z0-9]([A-Za-z0-9\-]*[A-Za-z0-9])?"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Body" minOccurs="1" maxOccurs="999" id="BDY"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZUR VZA/AZ"/> <aie:id value="2040"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Registriernummer im anderen Mitgliedstaat"/> <aie:id value="2042"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CustomsValueFlag" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen D.V.1"/> <aie:id value="2189"/> <aie:status value="R"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1460"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Consignor" minOccurs="0" maxOccurs="1" id="CO1"> <xs:annotation> <xs:documentation> <aie:name value="<NAME>"/> <aie:id value="2162"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Identification" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="TIN"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:id value="2166"/> <aie:format value="an..17"/> <aie:pcre value="\A[A-Z]{2}[\x21-\x7E]{1,15}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="17"/> <xs:pattern value="[A-Z]{2}[&#x21;-&#x7E;]{1,15}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Name" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Name"/> <aie:id value="2164"/> <aie:status value="D"/> <aie:format value="an..120"/> <aie:pcre value="\A.{1,120}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="120"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Address" minOccurs="0" maxOccurs="1" id="COA"> <xs:annotation> <xs:documentation> <aie:name value="VERSENDER/AUSFÜHRER (ADRESSDATEN)"/> <aie:id value="2167"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Line" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Straße und Hausnummer"/> <aie:id value="2173"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Country" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Land"/> <aie:id value="2168"/> <aie:status value="R"/> <aie:format value="an2"/> <aie:pcre value="\A[A-Z]{2}\Z"/> <aie:list value="I0300"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> <xs:pattern value="[A-Z]{2}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Postcode" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Postleitzahl"/> <aie:id value="2172"/> <aie:status value="D"/> <aie:format value="an..9"/> <aie:pcre value="\A.{1,9}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="9"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="City" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ort"/> <aie:id value="2169"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="District" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ortsteil"/> <aie:id value="2170"/> <aie:status value="O"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Consignee" minOccurs="0" maxOccurs="1" id="CE1"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZUM EMPFÄNGER"/> <aie:id value="2091"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Identification" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="TIN"/> <aie:id value="2095"/> <aie:status value="D"/> <aie:format value="an..17"/> <aie:pcre value="\A[A-Z]{2}[\x21-\x7E]{1,15}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="17"/> <xs:pattern value="[A-Z]{2}[&#x21;-&#x7E;]{1,15}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="SubsidiaryNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Niederlassungsnummer"/> <aie:id value="2094"/> <aie:status value="D"/> <aie:format value="n4"/> <aie:pcre value="\A[0-9]{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="4"/> <xs:pattern value="[0-9]{4}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Name" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Name"/> <aie:id value="2093"/> <aie:status value="D"/> <aie:format value="an..120"/> <aie:pcre value="\A.{1,120}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="120"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Address" minOccurs="0" maxOccurs="1" id="CEA"> <xs:annotation> <xs:documentation> <aie:name value="EMPFÄNGER (ADRESSDATEN)"/> <aie:id value="2096"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Line" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Straße und Hausnummer"/> <aie:id value="2102"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Country" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Land"/> <aie:id value="2097"/> <aie:status value="R"/> <aie:format value="an2"/> <aie:pcre value="\A[A-Z]{2}\Z"/> <aie:list value="I0300"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> <xs:pattern value="[A-Z]{2}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Postcode" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Postleitzahl"/> <aie:id value="2101"/> <aie:status value="D"/> <aie:format value="an..9"/> <aie:pcre value="\A.{1,9}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="9"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="City" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ort"/> <aie:id value="2098"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="District" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ortsteil"/> <aie:id value="2099"/> <aie:status value="O"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Acquirer" minOccurs="0" maxOccurs="1" id="UC0"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZUM ERWERBER IM <NAME>"/> <aie:id value="2114"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Identification" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="TIN"/> <aie:id value="2118"/> <aie:status value="D"/> <aie:format value="an..17"/> <aie:pcre value="\A[A-Z]{2}[\x21-\x7E]{1,15}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="17"/> <xs:pattern value="[A-Z]{2}[&#x21;-&#x7E;]{1,15}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="SubsidiaryNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Niederlassungsnummer"/> <aie:id value="2117"/> <aie:status value="D"/> <aie:format value="n4"/> <aie:pcre value="\A[0-9]{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="4"/> <xs:pattern value="[0-9]{4}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Name" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Name"/> <aie:id value="2116"/> <aie:status value="D"/> <aie:format value="an..120"/> <aie:pcre value="\A.{1,120}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="120"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="TaxNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="USt-IdNr."/> <aie:id value="2137"/> <aie:status value="D"/> <aie:format value="an..20"/> <aie:pcre value="\A[A-Z]{2}.{1,12}\Z"/> <aie:list value="A1835"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="20"/> <xs:pattern value="[A-Z]{2}.{1,12}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Address" minOccurs="0" maxOccurs="1" id="UC1"> <xs:annotation> <xs:documentation> <aie:name value="ERWERBER (ADRESSDATEN)"/> <aie:id value="2119"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Line" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Straße und Hausnummer"/> <aie:id value="2125"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Country" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Land"/> <aie:id value="2120"/> <aie:status value="R"/> <aie:format value="an2"/> <aie:pcre value="\A[A-Z]{2}\Z"/> <aie:list value="I0300"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> <xs:pattern value="[A-Z]{2}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Postcode" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Postleitzahl"/> <aie:id value="2124"/> <aie:status value="D"/> <aie:format value="an..9"/> <aie:pcre value="\A.{1,9}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="9"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="City" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ort"/> <aie:id value="2121"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="District" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ortsteil"/> <aie:id value="2122"/> <aie:status value="O"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Containers" minOccurs="1" maxOccurs="1" id="KC0"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZU CONTAINERN"/> <aie:id value="2086"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ContainerFlag" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen Container"/> <aie:id value="2088"/> <aie:status value="R"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1450"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="DeliveryTerms" minOccurs="0" maxOccurs="1" id="RAL"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZUR LIEFERBEDINGUNG"/> <aie:id value="2138"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Code" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Lieferbedingung"/> <aie:id value="2139"/> <aie:status value="D"/> <aie:format value="an3"/> <aie:pcre value="\A.{3}\Z"/> <aie:list value="A1840"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Description" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Lieferbedingung-Incoterm"/> <aie:id value="2140"/> <aie:status value="D"/> <aie:format value="an..100"/> <aie:pcre value="\A.{1,100}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="100"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Place" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Lieferbedingung-Ort"/> <aie:id value="2141"/> <aie:status value="D"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Key" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Lieferbedingung-Schlüssel"/> <aie:id value="2142"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1850"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="PaymentTransaction" minOccurs="0" maxOccurs="1" id="MOP"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZUM ZAHLUNGSVERKEHR"/> <aie:id value="2185"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Amount" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Rechnungspreis"/> <aie:id value="2186"/> <aie:status value="O"/> <aie:format value="n..13 (13,2)"/> <aie:pcre value="\A(?:0|[1-9][0-9]{0,10})(?:\.[0-9]{1,2})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.00"/> <xs:maxInclusive value="99999999999.99"/> <xs:totalDigits value="13"/> <xs:fractionDigits value="2"/> <xs:pattern value="(0|[1-9][0-9]{0,10})(\.[0-9]{1,2})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CurrencyCode" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Währungsschlüssel"/> <aie:id value="2187"/> <aie:status value="D"/> <aie:format value="an3"/> <aie:pcre value="\A.{3}\Z"/> <aie:list value="I0400"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="ForeignTradeStatistics" minOccurs="0" maxOccurs="1" id="RAS"> <xs:annotation> <xs:documentation> <aie:name value="DATEN FÜR DIE AUSSENHANDELSSTATISTIK VZA/AZ (KOPF)"/> <aie:id value="2043"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="InlandTransportMode" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Verkehrszweig im Inland"/> <aie:id value="2050"/> <aie:status value="O"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1990"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="EntryCustomsOffice" minOccurs="0" maxOccurs="1" id="RSE"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZUR EINGANGSZOLLSTELLE"/> <aie:id value="2056"/> <aie:status value="O"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Eingangszollstelle"/> <aie:id value="2059"/> <aie:status value="R"/> <aie:format value="an8"/> <aie:pcre value="\ADE00[0-9]{4}\Z"/> <aie:list value="I0500"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="8"/> <xs:pattern value="DE00[0-9]{4}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="BorderTransportMeans" minOccurs="0" maxOccurs="1" id="MBG"> <xs:annotation> <xs:documentation> <aie:name value="BEFÖRDERUNGSMITTEL AN DER GRENZE"/> <aie:id value="2080"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Mode" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Verkehrszweig an der Grenze"/> <aie:id value="2085"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1980"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Type" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Art des Beförderungsmittels an der Grenze"/> <aie:id value="2081"/> <aie:status value="D"/> <aie:format value="an2"/> <aie:pcre value="\A.{2}\Z"/> <aie:list value="A1140"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Information" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Beschreibung des Beförderungsmittels"/> <aie:id value="2083"/> <aie:status value="D"/> <aie:format value="an..17"/> <aie:pcre value="\A.{1,17}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="17"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Identity" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen/Name des Beförderungsmittels bei Ankunft"/> <aie:id value="2082"/> <aie:status value="D"/> <aie:format value="an..30"/> <aie:pcre value="\A.{1,30}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="30"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Nationality" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Staatszugehörigkeit des Beförderungsmittels an der Grenze"/> <aie:id value="2084"/> <aie:status value="D"/> <aie:format value="an2"/> <aie:pcre value="\A.{2}\Z"/> <aie:list value="I0300"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="CustomsValue" minOccurs="0" maxOccurs="1" id="RZW"> <xs:annotation> <xs:documentation> <aie:name value="ANMELDUNG DER ANGABEN ÜBER DEN ZOLLWERT (D.V.1) VZA/AZ (KOPF)"/> <aie:id value="2188"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="FormerDecisions" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Frühere Entscheidungen"/> <aie:id value="2193"/> <aie:status value="D"/> <aie:format value="an..100"/> <aie:pcre value="\A.{1,100}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="100"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Vendor" minOccurs="1" maxOccurs="1" id="SE0"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZUM VERKÄUFER"/> <aie:id value="2234"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Identification" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="TIN"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:id value="2238"/> <aie:format value="an..17"/> <aie:pcre value="\A[A-Z]{2}[\x21-\x7E]{1,15}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="17"/> <xs:pattern value="[A-Z]{2}[&#x21;-&#x7E;]{1,15}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Name" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Name"/> <aie:id value="2236"/> <aie:status value="D"/> <aie:format value="an..120"/> <aie:pcre value="\A.{1,120}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="120"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Address" minOccurs="0" maxOccurs="1" id="SE1"> <xs:annotation> <xs:documentation> <aie:name value="VERKÄUFER (ADRESSDATEN)"/> <aie:id value="2239"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Line" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Straße und Hausnummer"/> <aie:id value="2245"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Country" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Land"/> <aie:id value="2240"/> <aie:status value="R"/> <aie:format value="an2"/> <aie:pcre value="\A[A-Z]{2}\Z"/> <aie:list value="I0300"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> <xs:pattern value="[A-Z]{2}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Postcode" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Postleitzahl"/> <aie:id value="2244"/> <aie:status value="D"/> <aie:format value="an..9"/> <aie:pcre value="\A.{1,9}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="9"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="City" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ort"/> <aie:id value="2241"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="District" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ortsteil"/> <aie:id value="2242"/> <aie:status value="O"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Vendee" minOccurs="1" maxOccurs="1" id="BY0"> <xs:annotation> <xs:documentation> <aie:name value="<NAME>"/> <aie:id value="2205"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Identification" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="TIN"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ReferenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:id value="2209"/> <aie:format value="an..17"/> <aie:pcre value="\A[A-Z]{2}[\x21-\x7E]{1,15}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="17"/> <xs:pattern value="[A-Z]{2}[&#x21;-&#x7E;]{1,15}"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Name" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Name"/> <aie:id value="2207"/> <aie:status value="D"/> <aie:format value="an..120"/> <aie:pcre value="\A.{1,120}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="120"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Address" minOccurs="0" maxOccurs="1" id="BY1"> <xs:annotation> <xs:documentation> <aie:name value="KÄUFER (ADRESSDATEN)"/> <aie:id value="2210"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Line" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Straße und Hausnummer"/> <aie:id value="2216"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Country" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Land"/> <aie:id value="2211"/> <aie:status value="R"/> <aie:format value="an2"/> <aie:pcre value="\A[A-Z]{2}\Z"/> <aie:list value="I0300"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> <xs:pattern value="[A-Z]{2}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Postcode" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Postleitzahl"/> <aie:id value="2215"/> <aie:status value="D"/> <aie:format value="an..9"/> <aie:pcre value="\A.{1,9}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="9"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="City" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ort"/> <aie:id value="2212"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="District" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ortsteil"/> <aie:id value="2213"/> <aie:status value="O"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Affiliation" minOccurs="1" maxOccurs="1" id="KZV"> <xs:annotation> <xs:documentation> <aie:name value="VERBUNDENHEIT VON VERKÄUFER UND KÄUFER"/> <aie:id value="2231"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Type" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen Verbundenheit Verkäufer und Käufer"/> <aie:id value="2233"/> <aie:status value="R"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1760"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Description" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Einzelheiten der Verbundenheit von Verkäufer und Käufer"/> <aie:id value="2232"/> <aie:status value="D"/> <aie:format value="an..100"/> <aie:pcre value="\A.{1,100}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="100"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="RestrictionOrCondition" minOccurs="1" maxOccurs="1" id="KZE"> <xs:annotation> <xs:documentation> <aie:name value="EINSCHRÄNKUNGEN UND BEDINGUNGEN"/> <aie:id value="2201"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="RestrictionFlag" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Einschränkungen"/> <aie:id value="2204"/> <aie:status value="R"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1310"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="ConditionFlag" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Bedingungen/Leistungen"/> <aie:id value="2203"/> <aie:status value="R"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1220"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Description" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Einschränkungs-/Bedingungsart"/> <aie:id value="2202"/> <aie:status value="D"/> <aie:format value="an..100"/> <aie:pcre value="\A.{1,100}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="100"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="LicenseFee" minOccurs="1" maxOccurs="1" id="KZL"> <xs:annotation> <xs:documentation> <aie:name value="LIZENZGEBÜHREN"/> <aie:id value="2228"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="LicenseFeeFlag" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen Lizenzgebühren"/> <aie:id value="2229"/> <aie:status value="R"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1620"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Description" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Umstände Lizenzgebühren"/> <aie:id value="2230"/> <aie:status value="D"/> <aie:format value="an..100"/> <aie:pcre value="\A.{1,100}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="100"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Resale" minOccurs="1" maxOccurs="1" id="KZU"> <xs:annotation> <xs:documentation> <aie:name value="WEITERVERKÄUFE/ÜBERLASSUNGEN/VERWENDUNGEN"/> <aie:id value="2280"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ResaleFlag" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen Weiterverkäufe/Überlassungen/Verwendungen"/> <aie:id value="2281"/> <aie:status value="R"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1800"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Description" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Umstände zu Weiterverkäufe/Überlassungen/Verwendungen"/> <aie:id value="2282"/> <aie:status value="D"/> <aie:format value="an..100"/> <aie:pcre value="\A.{1,100}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="100"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Document" minOccurs="0" maxOccurs="20" id="RUX"> <xs:annotation> <xs:documentation> <aie:name value="VORGELEGTE UNTERLAGEN ZU EINER VZA/AZ (KOPF)"/> <aie:id value="2143"/> <aie:status value="O"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Division" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Bereich der Unterlage (Anmeldung)"/> <aie:id value="2146"/> <aie:status value="R"/> <aie:format value="an1"/> <aie:pcre value="\A4\Z"/> <aie:list value="A1255"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> <xs:enumeration value="4"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Type" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Art der Unterlage (Anmeldung)"/> <aie:id value="2152"/> <aie:status value="R"/> <aie:format value="an4"/> <aie:pcre value="\A.{4}\Z"/> <aie:list value="I0200"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="4"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="ReferenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Nummer vorgelegte Unterlage"/> <aie:id value="2151"/> <aie:status value="R"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="IssuingDate" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Datum vorgelegte Unterlage"/> <aie:id value="2147"/> <aie:status value="R"/> <aie:format value="Date (n8)"/> <aie:pcre value="\A(?:(?:(?:0[48]|[2468][048]|[13579][26])(?:[02468][048]|[13579][26])|(?:[02468][1-35-79]|[13579][013-57-9])(?:0[48]|[2468][048]|[13579][26]))-02-29|[0-9][0-9][0-9][0-9]-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12][0-9]|3[01])|(?:0[469]|11)-(?:0[1-9]|[12][0-9]|30)|02-(?:0[1-9]|1[0-9]|2[0-8])))\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:date"> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="GoodsItem" minOccurs="1" maxOccurs="999" id="GDS"> <xs:annotation> <xs:documentation> <aie:name value="POSITION"/> <aie:id value="2306"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="SequenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Positionsnummer in der ZA mit informellen Anteilen"/> <aie:id value="2356"/> <aie:status value="R"/> <aie:format value="n..5"/> <aie:pcre value="\A[1-9][0-9]{0,4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:integer"> <xs:minInclusive value="1"/> <xs:maxInclusive value="99999"/> <xs:totalDigits value="5"/> <xs:pattern value="[1-9][0-9]{0,4}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="ReferredSequenceNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Positionsnummer in der informellen vZA/AZ"/> <aie:id value="2383"/> <aie:status value="R"/> <aie:format value="n..3"/> <aie:pcre value="\A[1-9][0-9]{0,2}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:integer"> <xs:minInclusive value="1"/> <xs:maxInclusive value="999"/> <xs:totalDigits value="3"/> <xs:pattern value="[1-9][0-9]{0,2}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Procedure" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Verfahrenscode"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="RequestedPreviousProcedure" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:id value="2377"/> <aie:format value="an4"/> <aie:pcre value="\A.{4}\Z"/> <aie:list value="I0100"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="4"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="CessionManagementFlag" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen Abgabensteuerung"/> <aie:id value="2307"/> <aie:status value="D"/> <aie:format value="an2"/> <aie:pcre value="\A.{2}\Z"/> <aie:list value="A1345"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="GoodsDescription" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Warenbezeichnung"/> <aie:id value="2386"/> <aie:status value="R"/> <aie:format value="an..240"/> <aie:pcre value="\A.{1,240}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="240"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MatterCode" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Sachbereich"/> <aie:id value="2363"/> <aie:status value="R"/> <aie:format value="an2"/> <aie:pcre value="\A.{2}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="ArticleNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Artikelnummer"/> <aie:id value="2318"/> <aie:status value="O"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="InvoiceAmount" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Artikelpreis"/> <aie:id value="2319"/> <aie:status value="D"/> <aie:format value="n..11 (11,2)"/> <aie:pcre value="\A(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,2})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.00"/> <xs:maxInclusive value="999999999.99"/> <xs:totalDigits value="11"/> <xs:fractionDigits value="2"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,2})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="NetMassMeasure" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Eigenmasse"/> <aie:id value="2335"/> <aie:status value="R"/> <aie:format value="n..10 (10,1)"/> <aie:pcre value="\A(?:0|[1-9][0-9]{0,8})(?:\.[0-9])?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.0"/> <xs:maxInclusive value="999999999.9"/> <xs:totalDigits value="10"/> <xs:fractionDigits value="1"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9])?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="OriginCountry" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ursprungsland"/> <aie:id value="2376"/> <aie:status value="R"/> <aie:format value="an2"/> <aie:pcre value="\A.{2}\Z"/> <aie:list value="I0300"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="DepartureCountry" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Versendungsland"/> <aie:id value="2378"/> <aie:status value="R"/> <aie:format value="an2"/> <aie:pcre value="\A.{2}\Z"/> <aie:list value="I0300"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="SupplementaryInformation" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Positionszusatz"/> <aie:id value="2358"/> <aie:status value="O"/> <aie:format value="an..100"/> <aie:pcre value="\A.{1,100}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="100"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="AcceptanceDate" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Datum der Annahme"/> <aie:id value="2315"/> <aie:status value="R"/> <aie:format value="Date (n8)"/> <aie:pcre value="\A(?:(?:(?:0[48]|[2468][048]|[13579][26])(?:[02468][048]|[13579][26])|(?:[02468][1-35-79]|[13579][013-57-9])(?:0[48]|[2468][048]|[13579][26]))-02-29|[0-9][0-9][0-9][0-9]-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12][0-9]|3[01])|(?:0[469]|11)-(?:0[1-9]|[12][0-9]|30)|02-(?:0[1-9]|1[0-9]|2[0-8])))\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:date"> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="FinishingLimitDate" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Beendigungsfrist"/> <aie:id value="2326"/> <aie:status value="D"/> <aie:format value="Date (n8)"/> <aie:pcre value="\A(?:(?:(?:0[48]|[2468][048]|[13579][26])(?:[02468][048]|[13579][26])|(?:[02468][1-35-79]|[13579][013-57-9])(?:0[48]|[2468][048]|[13579][26]))-02-29|[0-9][0-9][0-9][0-9]-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12][0-9]|3[01])|(?:0[469]|11)-(?:0[1-9]|[12][0-9]|30)|02-(?:0[1-9]|1[0-9]|2[0-8])))\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:date"> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="IssuingDate" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Datum der Überlassung"/> <aie:id value="2372"/> <aie:status value="R"/> <aie:format value="Date (n8)"/> <aie:pcre value="\A(?:(?:(?:0[48]|[2468][048]|[13579][26])(?:[02468][048]|[13579][26])|(?:[02468][1-35-79]|[13579][013-57-9])(?:0[48]|[2468][048]|[13579][26]))-02-29|[0-9][0-9][0-9][0-9]-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12][0-9]|3[01])|(?:0[469]|11)-(?:0[1-9]|[12][0-9]|30)|02-(?:0[1-9]|1[0-9]|2[0-8])))\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:date"> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="ForeignTradeImportEarlyClearanceFlag" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen Vorgezogene außenwirtschaftsrechtliche Einfuhrabfertigung"/> <aie:id value="2382"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1775"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CompleteDeclarationFlag" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen Vollständige Angaben"/> <aie:id value="2381"/> <aie:status value="R"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1750"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="TobaccoRevenueStampNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Tabaksteuerzeichen-Nummer"/> <aie:id value="2370"/> <aie:status value="D"/> <aie:format value="an5"/> <aie:pcre value="\A.{5}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="5"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CommodityCode" minOccurs="1" maxOccurs="1" id="COM"> <xs:annotation> <xs:documentation> <aie:name value="ANGABE WARENNUMMER"/> <aie:id value="3247"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="CommodityCode" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Warennummer"/> <aie:id value="3248"/> <aie:status value="R"/> <aie:format value="an11"/> <aie:pcre value="\A.{11}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="11"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="AdditionalProcedure" minOccurs="0" maxOccurs="99" id="ADL"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZU EU-CODES"/> <aie:id value="4945"/> <aie:status value="O"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Code" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="EU-Code"/> <aie:id value="4946"/> <aie:status value="R"/> <aie:format value="an3"/> <aie:pcre value="\A.{3}\Z"/> <aie:list value="I0100"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="SupplementaryCodes" minOccurs="0" maxOccurs="10" id="PZC"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZU ZUSATZCODES"/> <aie:id value="3316"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Code" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Zusatzcode"/> <aie:id value="3317"/> <aie:status value="R"/> <aie:format value="an4"/> <aie:pcre value="\A.{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="4"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Package" minOccurs="0" maxOccurs="1" id="GS2"> <xs:annotation> <xs:documentation> <aie:name value="PACKSTÜCKE"/> <aie:id value="2965"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Kind" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Art der Packstücke"/> <aie:id value="2967"/> <aie:status value="R"/> <aie:format value="an2"/> <aie:pcre value="\A.{2}\Z"/> <aie:list value="A1160"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Quantity" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Packstücke-Anzahl"/> <aie:id value="2966"/> <aie:status value="D"/> <aie:format value="n..5"/> <aie:pcre value="\A[1-9][0-9]{0,4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:integer"> <xs:minInclusive value="1"/> <xs:maxInclusive value="99999"/> <xs:totalDigits value="5"/> <xs:pattern value="[1-9][0-9]{0,4}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MarksNumbers" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Packstücke-Zeichen und Nummern"/> <aie:id value="2968"/> <aie:status value="D"/> <aie:format value="an..70"/> <aie:pcre value="\A.{1,70}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="70"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="ForeignTradeStatistics" minOccurs="1" maxOccurs="1" id="PAS"> <xs:annotation> <xs:documentation> <aie:name value="DATEN FÜR DIE AUSSENHANDELSSTATISTIK ZIA (POSITION)"/> <aie:id value="2561"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="GoodsStatus" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Statistikstatus"/> <aie:id value="2567"/> <aie:status value="R"/> <aie:format value="an2"/> <aie:pcre value="\A(?:01|04)\Z"/> <aie:list value="A1920"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> <xs:enumeration value="01"/> <xs:enumeration value="04"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="TransactionType" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Art des Geschäfts"/> <aie:id value="2564"/> <aie:status value="D"/> <aie:format value="an2"/> <aie:pcre value="\A.{2}\Z"/> <aie:list value="A1150"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="DestinationCountry" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Bestimmungslandcode"/> <aie:id value="2563"/> <aie:status value="D"/> <aie:format value="an2"/> <aie:pcre value="\A.{2}\Z"/> <aie:list value="A1314"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="DestinationFederalState" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Bestimmungsbundesland"/> <aie:id value="2562"/> <aie:status value="D"/> <aie:format value="an2"/> <aie:pcre value="\A.{2}\Z"/> <aie:list value="A1270"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Quantity" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Wert"/> <aie:id value="2569"/> <aie:status value="D"/> <aie:format value="n..9"/> <aie:pcre value="\A[1-9][0-9]{0,8}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:integer"> <xs:minInclusive value="1"/> <xs:maxInclusive value="999999999"/> <xs:totalDigits value="9"/> <xs:pattern value="[1-9][0-9]{0,8}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="GrossMassMeasure" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Rohmasse-Position"/> <aie:id value="2565"/> <aie:status value="O"/> <aie:format value="n..10 (10,1)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9])?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.1"/> <xs:maxInclusive value="999999999.9"/> <xs:totalDigits value="10"/> <xs:fractionDigits value="1"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9])?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Amount" minOccurs="0" maxOccurs="1" id="PAM"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZUR AH-STAT. MENGE"/> <aie:id value="2570"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Quantity" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Menge"/> <aie:id value="2572"/> <aie:status value="R"/> <aie:format value="n..12 (12,3)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,3})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.001"/> <xs:maxInclusive value="999999999.999"/> <xs:totalDigits value="12"/> <xs:fractionDigits value="3"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,3})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MeasurementUnit" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Maßeinheit"/> <aie:id value="2571"/> <aie:status value="R"/> <aie:format value="an3"/> <aie:pcre value="\A.{3}\Z"/> <aie:list value="I0700"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Qualifier" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Qualifikator"/> <aie:id value="2573"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="I0700"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="InwardMovement" minOccurs="0" maxOccurs="1" id="PZG"> <xs:annotation> <xs:documentation> <aie:name value="ZUGANG"/> <aie:id value="3297"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Amount" minOccurs="1" maxOccurs="1" id="ZGM"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZUR ZUGANGSMENGE"/> <aie:id value="3302"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Quantity" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Zugangsmenge"/> <aie:id value="3304"/> <aie:status value="R"/> <aie:format value="n..12 (12,3)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,3})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.001"/> <xs:maxInclusive value="999999999.999"/> <xs:totalDigits value="12"/> <xs:fractionDigits value="3"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,3})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MeasurementUnit" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Maßeinheit (Zugangsmenge)"/> <aie:id value="3303"/> <aie:status value="R"/> <aie:format value="an3"/> <aie:pcre value="\A.{3}\Z"/> <aie:list value="I0700"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Qualifier" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Qualifikator (Zugangsmenge)"/> <aie:id value="3305"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="I0700"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="CustomsValue" minOccurs="0" maxOccurs="1" id="PZW"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ÜBER DEN ZOLLWERT (D.V.1) ZIA (POSITION)"/> <aie:id value="3262"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="DepartureAirport" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Abflughafen"/> <aie:id value="3263"/> <aie:status value="D"/> <aie:format value="an3"/> <aie:pcre value="\A.{3}\Z"/> <aie:list value="I0600"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="DestinationPlace" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Ort des Verbringens"/> <aie:id value="3265"/> <aie:status value="D"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="AdditionDeductionDescription" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Hinzurechnungen/Abzüge"/> <aie:id value="3264"/> <aie:status value="D"/> <aie:format value="an..30"/> <aie:pcre value="\A.{1,30}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="30"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="NetPrice" minOccurs="0" maxOccurs="1" id="PZN"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZUM NETTOPREIS"/> <aie:id value="3291"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Value" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Nettopreis"/> <aie:id value="3292"/> <aie:status value="R"/> <aie:format value="n..11 (11,2)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,2})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.01"/> <xs:maxInclusive value="999999999.99"/> <xs:totalDigits value="11"/> <xs:fractionDigits value="2"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,2})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CurrencyCode" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Währung Nettopreis"/> <aie:id value="3296"/> <aie:status value="R"/> <aie:format value="an3"/> <aie:pcre value="\A.{3}\Z"/> <aie:list value="I0400"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CurrencyRateAgreedFlag" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen Kurs netto vereinbart"/> <aie:id value="3295"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1610"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CurrencyRate" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="<NAME>"/> <aie:id value="3293"/> <aie:status value="D"/> <aie:format value="n..12 (18,9)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?=.{1,13}\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,9})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.000000001"/> <xs:maxInclusive value="999999999.999"/> <xs:totalDigits value="12"/> <xs:fractionDigits value="9"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,9})?"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="IndirectPayment" minOccurs="0" maxOccurs="1" id="PZM"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZU MITTELBAREN ZAHLUNGEN"/> <aie:id value="3285"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Value" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Mittelbare Zahlungen"/> <aie:id value="3286"/> <aie:status value="R"/> <aie:format value="n..11 (11,2)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,2})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.01"/> <xs:maxInclusive value="999999999.99"/> <xs:totalDigits value="11"/> <xs:fractionDigits value="2"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,2})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CurrencyCode" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Währung Mittelbare Zahlungen"/> <aie:id value="3290"/> <aie:status value="R"/> <aie:format value="an3"/> <aie:pcre value="\A.{3}\Z"/> <aie:list value="I0400"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CurrencyRateAgreedFlag" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen Kurs Mittelbare Zahlungen vereinbart"/> <aie:id value="3289"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1600"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CurrencyRate" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kurs Mittelbare Zahlungen"/> <aie:id value="3287"/> <aie:status value="D"/> <aie:format value="n..12 (18,9)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?=.{1,13}\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,9})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.000000001"/> <xs:maxInclusive value="999999999.999"/> <xs:totalDigits value="12"/> <xs:fractionDigits value="9"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,9})?"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="AirFreightCosts" minOccurs="0" maxOccurs="1" id="PZL"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZU DEN LUFTFRACHTKOSTEN"/> <aie:id value="3276"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Value" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Betrag der gesamten Luftfrachtkosten"/> <aie:id value="3277"/> <aie:status value="R"/> <aie:format value="n..11 (11,2)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,2})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.01"/> <xs:maxInclusive value="999999999.99"/> <xs:totalDigits value="11"/> <xs:fractionDigits value="2"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,2})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CurrencyCode" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Währung Betrag der gesamten Luftfrachtkosten"/> <aie:id value="3284"/> <aie:status value="R"/> <aie:format value="an3"/> <aie:pcre value="\A.{3}\Z"/> <aie:list value="I0400"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CurrencyRateIATA" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen IATA-Kurs Betrag der gesamten Luftfrachtkosten"/> <aie:id value="3278"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1560"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CurrencyRateAgreedFlag" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen Kurs Betrag der gesamten Luftfrachtkosten vereinbart"/> <aie:id value="3282"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1590"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CurrencyRate" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kurs Betrag der gesamten Luftfrachtkosten"/> <aie:id value="3279"/> <aie:status value="D"/> <aie:format value="n..12 (18,9)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?=.{1,13}\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,9})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.000000001"/> <xs:maxInclusive value="999999999.999"/> <xs:totalDigits value="12"/> <xs:fractionDigits value="9"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,9})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CurrencyRateDate" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Datum des Kurses Betrag der gesamten Luftfrachtkosten"/> <aie:id value="3281"/> <aie:status value="D"/> <aie:format value="Date (n8)"/> <aie:pcre value="\A(?:(?:(?:0[48]|[2468][048]|[13579][26])(?:[02468][048]|[13579][26])|(?:[02468][1-35-79]|[13579][013-57-9])(?:0[48]|[2468][048]|[13579][26]))-02-29|[0-9][0-9][0-9][0-9]-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12][0-9]|3[01])|(?:0[469]|11)-(?:0[1-9]|[12][0-9]|30)|02-(?:0[1-9]|1[0-9]|2[0-8])))\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:date"> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="AdditionDeduction" minOccurs="0" maxOccurs="10" id="PZR"> <xs:annotation> <xs:documentation> <aie:name value="HINZURECHNUNGEN/AB<NAME>"/> <aie:id value="3266"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Type" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="<NAME>/Hinzurechnungen"/> <aie:id value="3267"/> <aie:status value="R"/> <aie:format value="an3"/> <aie:pcre value="\A.{3}\Z"/> <aie:list value="A1070"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Value" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Betrag Abzug/Hinzurechnungen"/> <aie:id value="3268"/> <aie:status value="R"/> <aie:format value="n..11 (11,2)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,2})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.01"/> <xs:maxInclusive value="999999999.99"/> <xs:totalDigits value="11"/> <xs:fractionDigits value="2"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,2})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CurrencyCode" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Währung Abzug/Hinzurechnungen"/> <aie:id value="3275"/> <aie:status value="R"/> <aie:format value="an3"/> <aie:pcre value="\A.{3}\Z"/> <aie:list value="I0400"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CurrencyRateIATA" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen IATA-Kurs Abzug/Hinzurechnungen"/> <aie:id value="3269"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1560"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CurrencyRateAgreedFlag" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen Kurs Abzug/Hinzurechnungen vereinbart"/> <aie:id value="3273"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1590"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CurrencyRate" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kurs Abzug/Hinzurechnungen"/> <aie:id value="3270"/> <aie:status value="D"/> <aie:format value="n..12 (18,9)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?=.{1,13}\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,9})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.000000001"/> <xs:maxInclusive value="999999999.999"/> <xs:totalDigits value="12"/> <xs:fractionDigits value="9"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,9})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CurrencyRateDate" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Datum des Kurses Abzug/Hinzurechnungen"/> <aie:id value="3272"/> <aie:status value="D"/> <aie:format value="Date (n8)"/> <aie:pcre value="\A(?:(?:(?:0[48]|[2468][048]|[13579][26])(?:[02468][048]|[13579][26])|(?:[02468][1-35-79]|[13579][013-57-9])(?:0[48]|[2468][048]|[13579][26]))-02-29|[0-9][0-9][0-9][0-9]-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12][0-9]|3[01])|(?:0[469]|11)-(?:0[1-9]|[12][0-9]|30)|02-(?:0[1-9]|1[0-9]|2[0-8])))\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:date"> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Percentage" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Prozent der Hinzurechnungen/Abzüge"/> <aie:id value="3274"/> <aie:status value="D"/> <aie:format value="n..5 (5,2)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,2})(?:\.[0-9]{1,2})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.01"/> <xs:maxInclusive value="999.99"/> <xs:totalDigits value="5"/> <xs:fractionDigits value="2"/> <xs:pattern value="(0|[1-9][0-9]{0,2})(\.[0-9]{1,2})?"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Assessment" minOccurs="0" maxOccurs="1" id="PBX"> <xs:annotation> <xs:documentation> <aie:name value="BEMESSUNGSDATEN (OHNE VERBRAUCHSTEUER) ZIA (POSITION)"/> <aie:id value="2695"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="CustomsValue" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Zollwert"/> <aie:id value="2699"/> <aie:status value="D"/> <aie:format value="n..11 (11,2)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,2})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.01"/> <xs:maxInclusive value="999999999.99"/> <xs:totalDigits value="11"/> <xs:fractionDigits value="2"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,2})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="OutwardProcessingFee" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Veredelungsentgelt/Wertsteigerung"/> <aie:id value="2696"/> <aie:status value="D"/> <aie:format value="n..11 (11,2)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,2})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.01"/> <xs:maxInclusive value="999999999.99"/> <xs:totalDigits value="11"/> <xs:fractionDigits value="2"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,2})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="TaxCosts" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kosten für EUSt"/> <aie:id value="2697"/> <aie:status value="D"/> <aie:format value="n..11 (11,2)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,2})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.01"/> <xs:maxInclusive value="999999999.99"/> <xs:totalDigits value="11"/> <xs:fractionDigits value="2"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,2})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Amount" minOccurs="0" maxOccurs="5" id="PBZ"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZUR ZOLLMENGE"/> <aie:id value="2706"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Quantity" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Zollmenge"/> <aie:id value="2708"/> <aie:status value="R"/> <aie:format value="n..12 (12,3)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,3})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.001"/> <xs:maxInclusive value="999999999.999"/> <xs:totalDigits value="12"/> <xs:fractionDigits value="3"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,3})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MeasurementUnit" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Maßeinheit (Zollmenge)"/> <aie:id value="2707"/> <aie:status value="R"/> <aie:format value="an3"/> <aie:pcre value="\A.{3}\Z"/> <aie:list value="I0700"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Qualifier" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Qualifikator (Zollmenge)"/> <aie:id value="2709"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="I0700"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="SpecificRate" minOccurs="0" maxOccurs="5" id="PBW"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZUR BESONDEREN WERTANGABE"/> <aie:id value="2700"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Type" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Preisart"/> <aie:id value="2701"/> <aie:status value="R"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1880"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Value" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Besondere Wertangabe"/> <aie:id value="2702"/> <aie:status value="R"/> <aie:format value="n..11 (11,2)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,2})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.01"/> <xs:maxInclusive value="999999999.99"/> <xs:totalDigits value="11"/> <xs:fractionDigits value="2"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,2})?"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="ContentInformation" minOccurs="0" maxOccurs="3" id="PBG"> <xs:annotation> <xs:documentation> <aie:name value="GEHALTSANGABEN"/> <aie:id value="2703"/> <aie:status value="O"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Type" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Gehaltsangaben/Art"/> <aie:id value="2704"/> <aie:status value="R"/> <aie:format value="an2"/> <aie:pcre value="\A.{2}\Z"/> <aie:list value="A1330"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Degree-Percentage" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Gehaltsangaben (Grad/Prozent)"/> <aie:id value="2705"/> <aie:status value="R"/> <aie:format value="n..5 (5,2)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:(?:0|[1-9][0-9]{0,1})(?:\.[0-9]{1,2})?|100(?:\.0{1,2})?)\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:pattern value="(0|[1-9][0-9]{0,1})(\.[0-9]{1,2})?"/> <xs:pattern value="100(\.0{1,2})?"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="ExciseDuty" minOccurs="0" maxOccurs="3" id="PVS"> <xs:annotation> <xs:documentation> <aie:name value="VERBRAUCHSTEUERDATEN ZIA (POSITION)"/> <aie:id value="3095"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Code" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Verbrauchsteuer (Code)"/> <aie:id value="3096"/> <aie:status value="R"/> <aie:format value="an4"/> <aie:pcre value="\A.{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="4"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Degree-Percentage" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Grad/Prozent (Verbrauchsteuer)"/> <aie:id value="3097"/> <aie:status value="D"/> <aie:format value="n..5 (5,2)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:(?:0|[1-9][0-9]{0,1})(?:\.[0-9]{1,2})?|100(?:\.0{1,2})?)\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:pattern value="(0|[1-9][0-9]{0,1})(\.[0-9]{1,2})?"/> <xs:pattern value="100(\.0{1,2})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Value" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Verbrauchsteuerwert"/> <aie:id value="3098"/> <aie:status value="D"/> <aie:format value="n..11 (11,2)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,2})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.01"/> <xs:maxInclusive value="999999999.99"/> <xs:totalDigits value="11"/> <xs:fractionDigits value="2"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,2})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Amount" minOccurs="1" maxOccurs="1" id="PVM"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZUR VERBRAUCHSTEUERMENGE"/> <aie:id value="3099"/> <aie:status value="R"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Quantity" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Verbrauchsteuer (Menge)"/> <aie:id value="3101"/> <aie:status value="R"/> <aie:format value="n..12 (12,3)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,3})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.001"/> <xs:maxInclusive value="999999999.999"/> <xs:totalDigits value="12"/> <xs:fractionDigits value="3"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,3})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MeasurementUnit" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Maßeinheit (Verbrauchsteuer)"/> <aie:id value="3100"/> <aie:status value="R"/> <aie:format value="an3"/> <aie:pcre value="\A.{3}\Z"/> <aie:list value="I0700"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Qualifier" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Qualifikator (Verbrauchsteuer)"/> <aie:id value="3102"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="I0700"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="PreferentialTreatment" minOccurs="0" maxOccurs="1" id="PGX"> <xs:annotation> <xs:documentation> <aie:name value="BEGÜNSTIGUNGSDATEN ZIA (POSITION)"/> <aie:id value="3843"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="RequestedPreferentialTreatment" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Beantragte Begünstigung"/> <aie:id value="2656"/> <aie:status value="D"/> <aie:format value="an3"/> <aie:pcre value="\A.{3}\Z"/> <aie:list value="A1200"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Declaration" minOccurs="0" maxOccurs="1" id="PGM"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZU KONTINGENTEN"/> <aie:id value="3844"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Contingent" minOccurs="0" maxOccurs="2" id="GMK"> <xs:annotation> <xs:documentation> <aie:name value="KONTINGENTSANGABEN"/> <aie:id value="3845"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="ContingentNumber" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kontingentnummer"/> <aie:id value="2662"/> <aie:status value="R"/> <aie:format value="an4"/> <aie:pcre value="\A.{4}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="4"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="PreferentialTreatmentQuantity" minOccurs="0" maxOccurs="1" id="GMB"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZUR BEGÜNSTIGUNGSMENGE"/> <aie:id value="2657"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Quantity" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Begünstigungsmenge"/> <aie:id value="2659"/> <aie:status value="R"/> <aie:format value="n..9"/> <aie:pcre value="\A[1-9][0-9]{0,8}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:integer"> <xs:minInclusive value="1"/> <xs:maxInclusive value="999999999"/> <xs:totalDigits value="9"/> <xs:pattern value="[1-9][0-9]{0,8}"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MeasurementUnit" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Maßeinheit (Begünstigungsmenge)"/> <aie:id value="2658"/> <aie:status value="R"/> <aie:format value="an3"/> <aie:pcre value="\A.{3}\Z"/> <aie:list value="I0700"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Qualifier" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Qualifikator (Begünstigungsmenge)"/> <aie:id value="2660"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="I0700"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="OutwardProcessingReduction" minOccurs="0" maxOccurs="3" id="PPV"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZU PV-MINDERUNG"/> <aie:id value="2969"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Group" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Mindernde Abgabengruppe"/> <aie:id value="2971"/> <aie:status value="R"/> <aie:format value="an2"/> <aie:pcre value="\A.{2}\Z"/> <aie:list value="A1860"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Amount" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Minderungsbetrag"/> <aie:id value="2972"/> <aie:status value="R"/> <aie:format value="n..11 (11,2)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,2})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.01"/> <xs:maxInclusive value="999999999.99"/> <xs:totalDigits value="11"/> <xs:fractionDigits value="2"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,2})?"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="SpecialCase" minOccurs="0" maxOccurs="9" id="PSF"> <xs:annotation> <xs:documentation> <aie:name value="SONDERFALLDATEN"/> <aie:id value="3069"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Group" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Sonderabgabengruppe (Sonderfalleingabe)"/> <aie:id value="3070"/> <aie:status value="R"/> <aie:format value="an2"/> <aie:pcre value="\A.{2}\Z"/> <aie:list value="A1010"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="ApplicationType" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Anwendungsart"/> <aie:id value="3071"/> <aie:status value="R"/> <aie:format value="an2"/> <aie:pcre value="\A.{2}\Z"/> <aie:list value="A1060"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="RateOrAmountOrFactor" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Satz, Betrag oder Faktor"/> <aie:id value="3072"/> <aie:status value="D"/> <aie:format value="n..12 (12,5)"/> <aie:pcre value="\A(?:0|[1-9][0-9]{0,6})(?:\.[0-9]{1,5})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.00000"/> <xs:maxInclusive value="9999999.99999"/> <xs:totalDigits value="12"/> <xs:fractionDigits value="5"/> <xs:pattern value="(0|[1-9][0-9]{0,6})(\.[0-9]{1,5})?"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="NotificationCode" minOccurs="0" maxOccurs="1" id="PMK"> <xs:annotation> <xs:documentation> <aie:name value="MELDUNGEN"/> <aie:id value="2960"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Code22Flag" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen Meldung Kennzahl 22 erstellt"/> <aie:id value="2961"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1622"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Code60Flag" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen Meldung Kennzahl 60 erstellt"/> <aie:id value="2962"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1623"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Code66Flag" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen Meldung Kennzahl 66 erstellt"/> <aie:id value="2963"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1624"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Code90Flag" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen Meldung Kennzahl 90 erstellt"/> <aie:id value="2964"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1625"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Document" minOccurs="0" maxOccurs="99" id="DC2"> <xs:annotation> <xs:documentation> <aie:name value="UNTERLAGEN ZUR POSITION"/> <aie:id value="3076"/> <aie:status value="O"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Division" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Bereich der Unterlage (Position)"/> <aie:id value="3079"/> <aie:status value="R"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1255"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Type" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Art der Unterlage (Position)"/> <aie:id value="3085"/> <aie:status value="R"/> <aie:format value="an4"/> <aie:pcre value="\A.{4}\Z"/> <aie:list value="I0200"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="4"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="ReferenceNumber" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Nummer der Unterlage (Position)"/> <aie:id value="3084"/> <aie:status value="D"/> <aie:format value="an..35"/> <aie:pcre value="\A.{1,35}\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="35"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="IssuingDate" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Datum der Unterlage (Position)"/> <aie:id value="3080"/> <aie:status value="D"/> <aie:format value="Date (n8)"/> <aie:pcre value="\A(?:(?:(?:0[48]|[2468][048]|[13579][26])(?:[02468][048]|[13579][26])|(?:[02468][1-35-79]|[13579][013-57-9])(?:0[48]|[2468][048]|[13579][26]))-02-29|[0-9][0-9][0-9][0-9]-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12][0-9]|3[01])|(?:0[469]|11)-(?:0[1-9]|[12][0-9]|30)|02-(?:0[1-9]|1[0-9]|2[0-8])))\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:date"> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="AtHandFlag" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Kennzeichen Vorhanden"/> <aie:id value="3086"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="A1790"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="WriteOff" minOccurs="0" maxOccurs="1" id="DC3"> <xs:annotation> <xs:documentation> <aie:name value="ANGABEN ZU ABSCHREIBUNGSMENGE/-WERT"/> <aie:id value="3090"/> <aie:status value="D"/> </xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="Quantity" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Abschreibungsmenge/-wert"/> <aie:id value="3092"/> <aie:status value="R"/> <aie:format value="n..12 (12,3)"/> <aie:pcre value="\A(?!0\.?0*\Z)(?:0|[1-9][0-9]{0,8})(?:\.[0-9]{1,3})?\Z"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="0.001"/> <xs:maxInclusive value="999999999.999"/> <xs:totalDigits value="12"/> <xs:fractionDigits value="3"/> <xs:pattern value="(0|[1-9][0-9]{0,8})(\.[0-9]{1,3})?"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MeasurementUnit" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Maßeinheit (Abschreibung)"/> <aie:id value="3091"/> <aie:status value="R"/> <aie:format value="an3"/> <aie:pcre value="\A.{3}\Z"/> <aie:list value="I0700"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="3"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Qualifier" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation> <aie:name value="Qualifikator (Abschreibung)"/> <aie:id value="3093"/> <aie:status value="D"/> <aie:format value="an1"/> <aie:pcre value="\A.\Z"/> <aie:list value="I0700"/> </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> '<file_sep>IF EXISTS (SELECT 1 FROM tmgGlobalCodes WHERE FieldName = 'DocType' AND Code = 'BOMSummary') BEGIN PRINT 'Global Code Already Exists... Skipping' END ELSE BEGIN INSERT INTO tmgGlobalCodes SELECT PartnerID, GETDATE(), 'DocType', 'BOMSummary', 'Detail BOM Summary', 'Y', 'N', 'N' FROM tmfDefaults WITH (NOLOCK) END<file_sep>-------------------------------------------------------------------------------------------------------------- --MODIFY EXISTING COLUMN --The usp_DBACopyTableIndexesByColumn stored proc searches for an index on the modified column. If it exists, --it will drop that index to allow column changes. --The usp_DBACreateTableIndexes stored proc recreates the dropped index. -------------------------------------------------------------------------------------------------------------- IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'CacheIdentifier' --your column here AND Object_ID = OBJECT_ID('txdSQLCache')) --Your Table Here BEGIN --Do not change 1st and 5th parameter. --4th parameter is the updated data type; 6th paramter is the updated column length if any EXEC usp_DBACopyTableIndexesByColumn '','txdSQLCache','CacheIdentifier','varchar',1,750 ALTER TABLE txdSQLCache --Your Table Here ALTER COLUMN CacheIdentifier [nvarchar] (750) NOT NULL --your column here --Do not change 1st paramter. EXEC usp_DBACreateTableIndexes '','txdSQLCache' --Your Table Here END<file_sep>--MODIFY EXISTING COLUMN --txduspgaresponsereferencedata -- Increase PGAReferenceID to size 18 -------------------------------------------------------------------------------------------------------------- IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'PGAReferenceID' --your column here AND Object_ID = OBJECT_ID('txduspgaresponsereferencedata')) --Your Table Here BEGIN --Do not change 1st and 5th parameter. --4th parameter is the updated data type; 6th paramter is the updated column length if any EXEC usp_DBACopyTableIndexesByColumn '','txduspgaresponsereferencedata','PGAReferenceID','varchar',1,18 ALTER TABLE txduspgaresponsereferencedata --Your Table Here ALTER COLUMN PGAReferenceID [varchar] (18) NOT NULL --your column here --Do not change 1st paramter. EXEC usp_DBACreateTableIndexes '','txduspgaresponsereferencedata' --Your Table Here END<file_sep> IF Object_ID('tempdb..#tmdhts_section301') IS NOT NULL DROP TABLE #tmdhts_section301 SELECT * INTO #tmdhts_section301 FROM dbo.tmdhts_section301 WHERE 1 = 2 INSERT INTO #tmdhts_section301(htsnum, status, Chapter99, CountryofOrigin, StartEffDate, EndEffDate, AdvaloremRate, List) VALUES ('8214906000', 'EU Tariffs 85 FR 10204', '99038952', 'FR', '3/5/2020', '12/31/9999', 0.25, 0), ('8214906000', 'EU Tariffs 85 FR 10204', '99038952', 'DE', '3/5/2020', '12/31/9999', 0.25, 0), ('8802400040', 'EU Tariffs 84 FR 54245', '99038905', 'DE', '3/18/2020', '12/31/9999', 0.15, 0), ('8802400060', 'EU Tariffs 84 FR 54245', '99038905', 'DE', '3/18/2020', '12/31/9999', 0.15, 0), ('8802400070', 'EU Tariffs 84 FR 54245', '99038905', 'DE', '3/18/2020', '12/31/9999', 0.15, 0), ('8802400040', 'EU Tariffs 84 FR 54245', '99038905', 'ES', '3/18/2020', '12/31/9999', 0.15, 0), ('8802400060', 'EU Tariffs 84 FR 54245', '99038905', 'ES', '3/18/2020', '12/31/9999', 0.15, 0), ('8802400070', 'EU Tariffs 84 FR 54245', '99038905', 'ES', '3/18/2020', '12/31/9999', 0.15, 0), ('8802400040', 'EU Tariffs 84 FR 54245', '99038905', 'FR', '3/18/2020', '12/31/9999', 0.15, 0), ('8802400060', 'EU Tariffs 84 FR 54245', '99038905', 'FR', '3/18/2020', '12/31/9999', 0.15, 0), ('8802400070', 'EU Tariffs 84 FR 54245', '99038905', 'FR', '3/18/2020', '12/31/9999', 0.15, 0), ('8802400040', 'EU Tariffs 84 FR 54245', '99038905', 'GB', '3/18/2020', '12/31/9999', 0.15, 0), ('8802400060', 'EU Tariffs 84 FR 54245', '99038905', 'GB', '3/18/2020', '12/31/9999', 0.15, 0), ('8802400070', 'EU Tariffs 84 FR 54245', '99038905', 'GB', '3/18/2020', '12/31/9999', 0.15, 0); MERGE dbo.tmdhts_section301 dt USING #tmdhts_section301 te ON dt.htsnum = te.htsnum AND dt.Chapter99 = te.Chapter99 AND dt.CountryofOrigin = te.CountryofOrigin AND dt.StartEffDate = te.StartEffDate AND dt.EndEffDate = te.EndEffDate WHEN NOT MATCHED BY TARGET THEN INSERT (htsnum, status, Chapter99, CountryofOrigin, StartEffDate, EndEffDate, AdvaloremRate, List) VALUES (te.htsnum, te.status, te.Chapter99, te.CountryofOrigin, te.StartEffDate, te.EndEffDate, te.AdvaloremRate, te.List); IF OBJECT_ID('tempdb..#tmdhts_section301') IS NOT NULL DROP TABLE #tmdhts_section301 -- Update the endeffdate UPDATE tmdhts_section301 SET EndEffDate = '3/4/2020' WHERE htsnum = '2009894000' AND Chapter99 = '99038922' AND EndEffDate = '12/31/9999' AND AdvaloremRate = .25 AND List = 0 UPDATE tmdhts_section301 SET EndEffDate = '3/17/2020' WHERE Chapter99 = '99038905' AND EndEffDate = '12/31/9999' AND AdvaloremRate = .1 AND List = 0 <file_sep>PRINT '.........MODIFY txdDeImpMessageLog.............' PRINT 'DROPPING CONSTRAINT UIX_txdDEImpGoodsItem_MetaDataInterchangeControlReference' IF EXISTS ( SELECT TOP 1 1 FROM sys.indexes WHERE object_id = Object_ID('txdDeImpMessageLog') AND name = 'UIX_txdDEImpGoodsItem_MetaDataInterchangeControlReference' AND is_unique_constraint = 1 ) BEGIN ALTER TABLE txdDeImpMessageLog DROP CONSTRAINT UIX_txdDEImpGoodsItem_MetaDataInterchangeControlReference END ELSE PRINT 'Table/Index does not exist...' PRINT '.........MODIFY txdDeImpMessageLog.............' PRINT 'DROPPING CONSTRAINT UIX_txdDEImpGoodsItem_MetaDataMessageIdentifier' IF EXISTS ( SELECT TOP 1 1 FROM sys.indexes WHERE object_id = Object_ID('txdDeImpMessageLog') AND name = 'UIX_txdDEImpGoodsItem_MetaDataMessageIdentifier' AND is_unique_constraint = 1 ) BEGIN ALTER TABLE txdDeImpMessageLog DROP CONSTRAINT UIX_txdDEImpGoodsItem_MetaDataMessageIdentifier END ELSE PRINT 'Table/Index does not exist...' <file_sep>--================================================================ --txdUSInvoiceLineAdditionalHist SHCHEMA CHANGES --============================================================== IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'UnitADDepositValue' --your column here AND Object_ID = OBJECT_ID('txdUSInvoiceLineAdditionalHist')) --Your Table Here BEGIN EXEC usp_DBACopyTableIndexesByColumn '','txdUSInvoiceLineAdditionalHist','UnitADDepositValue','numeric',1,'',38,20 ALTER TABLE txdUSInvoiceLineAdditionalHist ALTER COLUMN UnitADDepositValue numeric(38,20) EXEC usp_DBACreateTableIndexes '','txdUSInvoiceLineAdditionalHist' --Your Table Here END IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'UnitCVDepositValue' --your column here AND Object_ID = OBJECT_ID('txdUSInvoiceLineAdditionalHist')) --Your Table Here BEGIN EXEC usp_DBACopyTableIndexesByColumn '','txdUSInvoiceLineAdditionalHist','UnitCVDepositValue','numeric',1,'',38,20 ALTER TABLE txdUSInvoiceLineAdditionalHist ALTER COLUMN UnitCVDepositValue numeric(38,20) EXEC usp_DBACreateTableIndexes '','txdUSInvoiceLineAdditionalHist' --Your Table Here END IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'VisaQuantity' --your column here AND Object_ID = OBJECT_ID('txdUSInvoiceLineAdditionalHist')) --Your Table Here BEGIN EXEC usp_DBACopyTableIndexesByColumn '','txdUSInvoiceLineAdditionalHist','VisaQuantity','numeric',1,'',38,20 ALTER TABLE txdUSInvoiceLineAdditionalHist ALTER COLUMN VisaQuantity numeric(38,20) EXEC usp_DBACreateTableIndexes '','txdUSInvoiceLineAdditionalHist' --Your Table Here END IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'ADDQuantity' --your column here AND Object_ID = OBJECT_ID('txdUSInvoiceLineAdditionalHist')) --Your Table Here BEGIN EXEC usp_DBACopyTableIndexesByColumn '','txdUSInvoiceLineAdditionalHist','ADDQuantity','numeric',1,'',38,20 ALTER TABLE txdUSInvoiceLineAdditionalHist ALTER COLUMN ADDQuantity numeric(38,20) EXEC usp_DBACreateTableIndexes '','txdUSInvoiceLineAdditionalHist' --Your Table Here END IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'CVDQuantity' --your column here AND Object_ID = OBJECT_ID('txdUSInvoiceLineAdditionalHist')) --Your Table Here BEGIN EXEC usp_DBACopyTableIndexesByColumn '','txdUSInvoiceLineAdditionalHist','CVDQuantity','numeric',1,'',38,20 ALTER TABLE txdUSInvoiceLineAdditionalHist ALTER COLUMN CVDQuantity numeric(38,20) EXEC usp_DBACreateTableIndexes '','txdUSInvoiceLineAdditionalHist' --Your Table Here END IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'SoftwoodExportCharges' --your column here AND Object_ID = OBJECT_ID('txdUSInvoiceLineAdditionalHist')) --Your Table Here BEGIN EXEC usp_DBACopyTableIndexesByColumn '','txdUSInvoiceLineAdditionalHist','SoftwoodExportCharges','numeric',1,'',38,20 ALTER TABLE txdUSInvoiceLineAdditionalHist ALTER COLUMN SoftwoodExportCharges numeric(38,20) EXEC usp_DBACreateTableIndexes '','txdUSInvoiceLineAdditionalHist' --Your Table Here END <file_sep>using System; using System.Collections.Generic; using System.Linq; using System.Text; using DbUp.Engine; using System.IO; namespace DBUpgrade { public class ReadOnlyScript : DbUp.Engine.SqlScript, IComparable<SqlScript>, IComparable { public ReadOnlyScript(string name, string contents): base(name, contents) { } new public static ReadOnlyScript FromFile(String path) { using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read)) { var fileName = new FileInfo(path).Name; return FromStream(fileName, fileStream); } } new public static ReadOnlyScript FromStream(string scriptName, Stream stream) { using (StreamReader sr = new StreamReader(stream)) { ReadOnlyScript s = new ReadOnlyScript(scriptName, sr.ReadToEnd()); return s; } } public static IOrderedEnumerable<ReadOnlyScript> Order(IEnumerable<ReadOnlyScript> list) { var ord = from s in list orderby s select s; return ord; } private static int ExtractDate(string filename) { int result = int.MaxValue; string n = filename; int dtIndex = n.IndexOf("_201"); if (dtIndex < 0) dtIndex = n.IndexOf("_202"); if (dtIndex > 0) { dtIndex += 1; int dt2 = n.IndexOf("_", dtIndex); if (dt2 > 0) { string str = n.Substring(dtIndex, dt2 - dtIndex); //str.Dump(); int.TryParse(str, out result); } } return result; } public int CompareTo(SqlScript other) { if (other == null) return 1; //this < other = -1 //this == other = 0 //this > other = 1 int result = 0; string thisName = this.Name.ToUpper(); string otherName = other.Name.ToUpper(); if (thisName.StartsWith("V") && thisName.Contains("__") && otherName.StartsWith("V") && otherName.Contains("__")) { result = CompareFileVersion(thisName, otherName); } else if (thisName.StartsWith("V") && thisName.Contains("__") && !(otherName.StartsWith("V") && otherName.Contains("__"))) result = -1; else if (!(thisName.StartsWith("V") && thisName.Contains("__")) && otherName.StartsWith("V") && otherName.Contains("__")) result = 1; else if (thisName.StartsWith("R") && thisName.Contains("__") && otherName.StartsWith("R") && otherName.Contains("__")) { result = this.Name.CompareTo(other.Name); } else if (thisName.StartsWith("R") && thisName.Contains("__") && !(otherName.StartsWith("R") && otherName.Contains("__"))) result = -1; else if (!(thisName.StartsWith("R") && thisName.Contains("__")) && otherName.StartsWith("R") && otherName.Contains("__")) result = 1; else { if (thisName.Contains("CREATE_") && otherName.Contains("CREATE_")) { result = CompareFileDate(thisName, otherName); } else if (thisName.Contains("CREATE_") && !otherName.Contains("CREATE_")) result = -1; else if (!thisName.Contains("CREATE_") && otherName.Contains("CREATE_")) result = 1; else if (thisName.Contains("ALTER_") && otherName.Contains("ALTER_")) { result = CompareFileDate(this.Name, other.Name); } else if (thisName.Contains("ALTER_") && !otherName.Contains("ALTER_")) result = -1; else if (!thisName.Contains("ALTER_") && otherName.Contains("ALTER_")) result = 1; } return result; } private int CompareFileVersion(string file1, string file2) { int index = file1.IndexOf("__"); string ver1 = file1.Substring(1, index - 1); index = file2.IndexOf("__"); string ver2 = file2.Substring(1, index - 1); int result = CompareVersion(ver1, ver2); if (result == 0) result = file1.CompareTo(file2); return result; } private int CompareVersion(string version1, string version2) { int index1 = version1.IndexOf("."); int index2 = version2.IndexOf("."); if (index1 == -1 && version1.Length > 0) index1 = version1.Length; if (index2 == -1 && version2.Length > 0) index2 = version2.Length; if (index1 == -1 && index2 == -1) return 0; else if (index1 == -1) return -1; else if (index2 == -1) return 1; string part1 = version1.Substring(0, index1); int v1 = int.Parse(part1); string part2 = version2.Substring(0, index2); int v2 = int.Parse(part2); int result = v1.CompareTo(v2); if (result == 0) { if (index1 + 1 > version1.Length && index2 + 1 > version2.Length) return 0; else if (index1 + 1 > version1.Length) return -1; else if (index2 + 1 > version2.Length) return 1; result = CompareVersion(version1.Substring(index1 + 1), version2.Substring(index2 + 1)); } return result; } private int CompareFileDate(string file1, string file2) { int dt1 = ExtractDate(file1); int dt2 = ExtractDate(file2); int result = dt1.CompareTo(dt2); if (result == 0) result = file1.CompareTo(file2); return result; } public int CompareTo(object obj) { if (obj == null) return 1; SqlScript other = obj as SqlScript; if (other != null) return this.CompareTo(other); else throw new ArgumentException("Object is not a SqlScript"); } } } <file_sep>IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'eHandbookNum' AND Object_ID = OBJECT_ID('usrtxdCNHandbookIMDetail')) BEGIN ALTER TABLE usrtxdCNHandbookIMDetail DROP COLUMN eHandbookNum END <file_sep> IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'eHandbookNum' AND Object_ID = OBJECT_ID('usrtxdCNHandbookPCDetail')) BEGIN ALTER TABLE usrtxdCNHandbookPCDetail DROP COLUMN eHandbookNum END<file_sep>IF EXISTS (SELECT TOP 1 1 FROM sys.tables WHERE Name = 'txdAdjStatusHist' AND Type = 'U') BEGIN UPDATE sc SET Transmitted = 'N' FROM txdAdjStatusHist sc LEFT JOIN txdabiTransactionStatus a WITH (NOLOCK) ON sc.PartnerID=a.PartnerID AND sc.NewReceiptDocID=a.ReferenceID WHERE a.PartnerID IS NULL UPDATE sc SET Transmitted = CASE WHEN a.Status IN ('REJECTED','UNTRANSMITTED','READY TO TRANSMIT') THEN 'N' ELSE 'W' END FROM txdAdjStatusHist sc INNER JOIN txdabiTransactionStatus a WITH (NOLOCK) ON sc.PartnerID=a.PartnerID AND sc.NewReceiptDocID=a.ReferenceID WHERE a.Status IN ('TRANSMITTED','TRANSMITTING','REJECTED','UNTRANSMITTED','PLEASE RE-GENERATE','READY TO TRANSMIT') END<file_sep> INSERT INTO tlgWorkFlowSchedule SELECT PartnerID AS PartnerID, GETDATE() AS EffDate, NEWID() AS WorkFlowGuid, 'Import CN Single Window PTR9 Response' as Description, 'N' AS Recurring, '1:00' AS Time, GETDATE() AS Date, 'ImportCNSingleWindowPTR9Response' AS Workflow, getdate() AS LastUpdated, '1' AS Interval, 'N' AS DeletedFlag, 'N' AS KeepDuringRollback FROM tmfDefaults d where not exists (select * from tlgWorkFlowSchedule where PartnerID = d.PartnerID and Workflow = 'ImportCNSingleWindowPTR9Response') INSERT INTO tlgApplicationLaunchTree SELECT PartnerID AS PartnerId, GETDATE() AS EffDate, 'ImportCNSingleWindowPTR9Response' AS WorkFlow, 1 as SequenceNo, 'dxdExecuteSQLBatch.dll' AS ApplicationToLaunch, 'CLEAR PRW-ImportCNSingleWindowPTR9Response' AS Command, 'N' AS DeletedFlag, 'N' AS KeepDuringRollback FROM tmfDefaults d where not exists (select * from tlgApplicationLaunchTree where PartnerID = d.PartnerID and Workflow = 'ImportCNSingleWindowPTR9Response' and Command = 'CLEAR PRW-ImportCNSingleWindowPTR9Response') INSERT INTO tlgApplicationLaunchTree SELECT PartnerID AS PartnerId, GETDATE() AS EffDate, 'ImportCNSingleWindowPTR9Response' AS WorkFlow, 2 as SequenceNo, 'dxdXSLTProcessor.dll' AS ApplicationToLaunch, 'ImportCNSingleWindowPTR9Response-TransformXMLResponse' AS Command, 'N' AS DeletedFlag, 'N' AS KeepDuringRollback FROM tmfDefaults d where not exists (select * from tlgApplicationLaunchTree where PartnerID = d.PartnerID and Workflow = 'ImportCNSingleWindowPTR9Response' and Command = 'ImportCNSingleWindowPTR9Response-TransformXMLResponse') INSERT INTO tlgApplicationLaunchTree SELECT PartnerID AS PartnerId, GETDATE() AS EffDate, 'ImportCNSingleWindowPTR9Response' AS WorkFlow, 3 as SequenceNo, 'dxgGenericFileImportWorkflow.dll' AS ApplicationToLaunch, 'ImportCNSingleWindowPTR9Response-ImportTransformedResponse' AS Command, 'N' AS DeletedFlag, 'N' AS KeepDuringRollback FROM tmfDefaults d where not exists (select * from tlgApplicationLaunchTree where PartnerID = d.PartnerID and Workflow = 'ImportCNSingleWindowPTR9Response' and Command = 'ImportCNSingleWindowPTR9Response-ImportTransformedResponse') INSERT INTO tlgApplicationLaunchTree SELECT PartnerID AS PartnerId, GETDATE() AS EffDate, 'ImportCNSingleWindowPTR9Response' AS WorkFlow, 4 as SequenceNo, 'dxgWorkflowNotification.dll' AS ApplicationToLaunch, 'ImportCNSingleWindowPTR9Response NOTIFICATION' AS Command, 'N' AS DeletedFlag, 'N' AS KeepDuringRollback FROM tmfDefaults d where not exists (select * from tlgApplicationLaunchTree where PartnerID = d.PartnerID and Workflow = 'ImportCNSingleWindowPTR9Response' and Command = 'ImportCNSingleWindowPTR9Response NOTIFICATION') <file_sep>IF NOT EXISTS (select TOP 1 1 from sys.tables where Name = 'tmdfeerate' AND Type = 'U') BEGIN PRINT 'Table is missing......' END ELSE BEGIN INSERT INTO tmdfeerate SELECT partnerid as partnerid, GETDATE() as effdate, '044' as classcode, '7/1/2020' as starteffdate, '9/30/2020' as endeffdate, .03 as advaloremrate, 0 as minamount, 0 as maxamount, 'N' as deletedflag, 'N' as keepduringrollback FROM tmfdefaults td WITH (NOLOCK) WHERE NOT EXISTS (SELECT Top 1 1 FROM tmdfeerate tf WITH (NOLOCK) WHERE tf.PartnerID = td.PartnerID AND classcode = '044' and starteffdate = '7/1/2020') END<file_sep>IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'HandbookType' AND Object_ID = OBJECT_ID('txdCNLogisticsHeadTypeResps')) BEGIN ALTER TABLE txdCNLogisticsHeadTypeResps DROP COLUMN HandbookType END<file_sep>--Create Primary Key if not exist IF NOT EXISTS ( SELECT Col.Column_Name FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS Tab ,INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE Col WHERE Col.Constraint_Name = Tab.Constraint_Name AND Col.Table_Name = Tab.Table_Name AND Constraint_Type = 'PRIMARY KEY' AND Col.Table_Name = 'tmgCultures' ) BEGIN ALTER TABLE tmgCultures ADD CONSTRAINT PK_tmgCultures PRIMARY KEY ( PartnerId ,CultureGuid ) END <file_sep>IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'NOTE' AND Object_ID = OBJECT_ID('txdCNLogisticsHBInfoResps')) BEGIN ALTER TABLE txdCNLogisticsHBInfoResps DROP COLUMN NOTE END<file_sep>-------------------------------------------------------------------------------------------------------------- --MODIFY EXISTING COLUMN --trdDTSSearchResults -- Increase state to size MAX -------------------------------------------------------------------------------------------------------------- IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'State' --your column here AND Object_ID = OBJECT_ID('trdDTSSearchResults')) --Your Table Here BEGIN --Do not change 1st and 5th parameter. --4th parameter is the updated data type; 6th paramter is the updated column length if any EXEC usp_DBACopyTableIndexesByColumn '','trdDTSSearchResults','state','nvarchar',1,100 ALTER TABLE trdDTSSearchResults --Your Table Here ALTER COLUMN State [nvarchar] (100) NOT NULL --your column here --Do not change 1st paramter. EXEC usp_DBACreateTableIndexes '','trdDTSSearchResults' --Your Table Here END<file_sep>USE [FTA_InProcess] IF NOT EXISTS (SELECT 1 FROM txdRVCTypes WHERE PartnerID = 6000 AND RVCType = 'option1') BEGIN INSERT INTO txdRVCTypes VALUES (6000, GETDATE(), 'option1', 'Option 1', 'N', 'N', 'N') END<file_sep>IF NOT EXISTS(SELECT TOP 1 1 FROM tmgForm where FormGUID = 'fugUploadErrors_aspx' and Description = 'fugUploadErrors_aspx' and SystemTypeID = 2) BEGIN INSERT INTO tmgForm SELECT 'fugUploadErrors_aspx', 'fugUploadErrors_aspx', 2, getdate(), 'N', 'N' END IF NOT EXISTS(SELECT TOP 1 1 FROM tmgGroupAccess where GroupGUID = '1002' and FormGUID = 'fugUploadErrors_aspx' and AccessType = 2) BEGIN INSERT INTO tmgGroupAccess SELECT '1002', 'fugUploadErrors_aspx', '2', getdate(), 'N', 'N' END<file_sep>IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'ContainerName' --your column here AND Object_ID = OBJECT_ID('txdUSEntryVisibility')) --Your Table Here BEGIN --Do not change 1st and 5th parameter. --4th parameter is the updated data type; 6th paramter is the updated column length if any EXEC usp_DBACopyTableIndexesByColumn '','txdUSEntryVisibility','ContainerName','varchar',1,20 ALTER TABLE txdUSEntryVisibility --Your Table Here ALTER COLUMN ContainerName [varchar] (20) NOT NULL --your column here --Do not change 1st paramter. EXEC usp_DBACreateTableIndexes '','txdUSEntryVisibility' --Your Table Here END<file_sep> IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'Value' AND Object_ID = OBJECT_ID('txdCNeHandbookRegistDetail')) BEGIN EXEC usp_DBACopyTableIndexesByColumn '','txdCNeHandbookRegistDetail','Value','numeric',1,null,25,5 Alter table txdCNeHandbookRegistDetail Alter column Value numeric(25,5) not null EXEC usp_DBACreateTableIndexes '','txdCNeHandbookRegistDetail' END <file_sep>using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using DbUp.Engine; using DbUp.Engine.Transactions; namespace DBUpgrade { class ReadOnlyScriptProvider : IScriptProvider { private readonly string directoryPath; private readonly FlywayLikeJournal _journal; ///<summary> ///</summary> ///<param name="directoryPath">Path to SQL upgrade scripts</param> public ReadOnlyScriptProvider(string directoryPath, IJournal journal) { this.directoryPath = directoryPath; this._journal = (FlywayLikeJournal)journal; } /// <summary> /// Gets all scripts that should be executed. /// </summary> public IEnumerable<SqlScript> GetScripts(IConnectionManager connectionManager) { var executedScriptInfo = _journal.GetExecutedScriptDictionary(); var allScripts = Directory.GetFiles(directoryPath, "*.sql").Select<string, ReadOnlyScript>(ReadOnlyScript.FromFile).ToList(); var l = allScripts .Where(script => !executedScriptInfo.ContainsKey(script.Name) || (!script.Name.ToUpper().StartsWith("V") && executedScriptInfo.ContainsKey(script.Name) && executedScriptInfo[script.Name] != Md5Utils.Md5EncodeString(script.Contents))); var ord = ReadOnlyScript.Order(l); return ord; } } } <file_sep>-------------------------------------------------------------------------------------------------------------- --MODIFY EXISTING COLUMN --The usp_DBACopyTableIndexesByColumn stored proc searches for an index on the modified column. If it exists, --it will drop that index to allow column changes. --The usp_DBACreateTableIndexes stored proc recreates the dropped index. -------------------------------------------------------------------------------------------------------------- IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'AltHtsNum' --your column here AND Object_ID = OBJECT_ID('tmdMXHTSAudit')) --Your Table Here BEGIN --Do not change 1st and 5th parameter. --4th parameter is the updated data type; 6th paramter is the updated column length if any EXEC usp_DBACopyTableIndexesByColumn '','tmdMXHTSAudit','AltHtsNum','varchar',1,12 ALTER TABLE tmdMXHTSAudit --Your Table Here ALTER COLUMN AltHtsNum [varchar] (12) NOT NULL --your column here --Do not change 1st paramter. EXEC usp_DBACreateTableIndexes '','tmdMXHTSAudit' --Your Table Here END <file_sep> IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'DeclareType' AND Object_ID = OBJECT_ID('txdCNStockHeadType')) BEGIN EXEC usp_DBACopyTableIndexesByColumn '','txdCNStockHeadType','DeclareType','nvarchar',1,1 ALTER TABLE txdCNStockHeadType ALTER COLUMN DeclareType [nvarchar] (1) NOT NULL EXEC usp_DBACreateTableIndexes '','txdCNStockHeadType' END <file_sep>print 'placeholder for deleted script'<file_sep>-------------------------------------------------------------------------------------------------------------- --MODIFY EXISTING COLUMN --The usp_DBACopyTableIndexesByColumn stored proc searches for an index on the modified column. If it exists, --it will drop that index to allow column changes. --The usp_DBACreateTableIndexes stored proc recreates the dropped index. -------------------------------------------------------------------------------------------------------------- IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'NumeroFactura' --your column here AND Object_ID = OBJECT_ID('txdMXDataStageInvoices505')) --Your Table Here BEGIN --Do not change 1st and 5th parameter. --4th parameter is the updated data type; 6th paramter is the updated column length if any EXEC usp_DBACopyTableIndexesByColumn '','txdMXDataStageInvoices505','NumeroFactura','varchar',1,36 ALTER TABLE txdMXDataStageInvoices505 --Your Table Here ALTER COLUMN NumeroFactura [varchar] (36) NOT NULL --your column here --Do not change 1st paramter. EXEC usp_DBACreateTableIndexes '','txdMXDataStageInvoices505' --Your Table Here END <file_sep>IF (SELECT count(*) FROM sys.columns WHERE name in ('ECNNum', 'SupplierID', 'HsNum', 'CountryOfOrigin') AND Object_ID = Object_ID('tmdUSProductClassification')) = 4 --Your Table Here BEGIN execute sp_executesql N' INSERT INTO txdNXItemMaster select DISTINCT usprclass.PartnerID AS PartnerID ,GETDATE() AS EffDate ,NEWID() AS QueueGUID ,usprclass.ProductGuid AS ProductGUID ,''MASTER'' AS ProductCatalogNumber --,ISNULL(usprclass.ProductMaterial, '''') AS ProductCatalogNumber ,''Owner'' AS PartyRoleCode ,ISNULL(usprclass.SupplierID, '''') AS MemberId ,''Add'' AS ItemFunctionCode ,ISNULL(usprclass.ProductNum,'''') AS ItemKey ,ISNULL(usprclass.HsNum,'''') AS ClassificationNumber ,'''' AS ClassificationDescription -- ,ISNULL(usprclass.ProductName,'''') AS ClassificationDescription ,ISNULL(usprclass.CountryOfOrigin,'''') AS CountryCode -- ,''US'' AS CountryCode ,''Ready'' AS [Status] ,''N'' AS DeletedFlag ,''Y'' AS KeepDuringRollback from tmdUSProductClassification usprclass WITH (NOLOCK) where not exists (select NXmast.ProductGuid from txdNXItemMaster NXmast WITH (NOLOCK) inner join txdNXItemMasterAttributes NXattrA WITH (NOLOCK) ON NXattrA.QueueGUID = NXmast.QueueGUID and NXattrA.AttributeType = ''buyerItemNumber'' and NXattrA.AttributeValue = usprclass.ProductNum inner join txdNXItemMasterAttributes NXattrB WITH (NOLOCK) ON NXattrB.QueueGUID = NXmast.QueueGUID and NXattrB.AttributeType = ''eccnCode'' and NXattrB.AttributeValue = usprclass.ECNNum where NXmast.ProductGuid = usprclass.ProductGuid and NXmast.ClassificationNumber = ISNULL(usprclass.HsNum,'''') --and NXmast.ClassificationDescription = ISNULL(usprclass.ProductName,'''') and NXmast.ItemKey = ISNULL(usprclass.ProductNum,'''') and NXmast.MemberId = ISNULL(usprclass.SupplierID, '''') and NXmast.CountryCode=isnull(usprclass.CountryOfOrigin, '''') --and NXmast.ProductCatalogNumber = ISNULL(usprclass.ProductMaterial, '''') )' if @@ROWCOUNT>0 BEGIN execute sp_executesql N' INSERT INTO txdNXItemMasterAttributes select DISTINCT usprclass.PartnerID AS PartnerID ,GETDATE() AS EffDate ,NXmast.QueueGUID AS QueueGUID ,NEWID() AS QueueAttributeGUID ,''buyerItemNumber'' AS AttributeType ,ISNULL(usprclass.ProductNum,'''') AS AttributeValue ,''N'' AS DeletedFlag ,''Y'' AS KeepDuringRollback from tmdUSProductClassification usprclass WITH (NOLOCK) inner join txdNXItemMaster NXmast WITH (NOLOCK) ON NXmast.ProductGuid = usprclass.ProductGuid and NXmast.[Status] = ''Ready'' where not exists (select NXattr.QueueGUID from txdNXItemMasterAttributes NXattr WITH (NOLOCK) where NXattr.QueueGUID = NXmast.QueueGUID and NXattr.AttributeType = ''buyerItemNumber'' and NXattr.AttributeValue = usprclass.ProductNum)' execute sp_executesql N' INSERT INTO txdNXItemMasterAttributes select DISTINCT usprclass.PartnerID AS PartnerID ,GETDATE() AS EffDate ,NXmast.QueueGUID AS QueueGUID ,NEWID() AS QueueAttributeGUID ,''eccnCode'' AS AttributeType ,ISNULL(usprclass.ECNNum,'''') AS AttributeValue ,''N'' AS DeletedFlag ,''Y'' AS KeepDuringRollback from tmdUSProductClassification usprclass WITH (NOLOCK) inner join txdNXItemMaster NXmast WITH (NOLOCK) ON NXmast.ProductGuid = usprclass.ProductGuid and NXmast.[Status] = ''Ready'' where not exists (select NXattr.QueueGUID from txdNXItemMasterAttributes NXattr WITH (NOLOCK) where NXattr.QueueGUID = NXmast.QueueGUID and NXattr.AttributeType = ''eccnCode'' and NXattr.AttributeValue = usprclass.ECNNum)' END END<file_sep>INSERT INTO tmgPartnerCultureDefinitions(PartnerId,EffDate,CultureGuid,FieldName,FieldTranslation,DeletedFlag,KeepDuringRollback) VALUES (0,'9/16/2010','en-SU','ClientContentManagement_aspx',N'Tariff Updates','N','N') , (0,'9/16/2010','en-SU','CompanyProductRequest_aspx',N'Customer Certificate Request','N','N') , (0,'9/16/2010','en-SU','fmgWorkQueue_aspx',N'Customer Request Detail','N','N') , (0,'9/16/2010','en-SU','fugSourcingMatrix_aspx',N'Tariff Calculator','N','N') , (0,'2/17/2015','en-US','AssistCol_ConfirmText',N'Reflag this PO and move it to the Assist tab?','N','N') , (0,'2/17/2015','en-US','AssistCol_Text',N'Reflag Assist','N','N') , (0,'2/17/2015','en-US','AssistFlagCol_ConfirmText',N'Flag this PO as using an Assist and move it to the Assist tab?','N','N') , (0,'2/17/2015','en-US','AssistFlagCol_Text',N'Flag As Assist','N','N') , (0,'2/17/2015','en-US','btxClear',N'Clear','N','N') , (0,'2/17/2015','en-US','btxelAddDates',N'Go','N','N') , (0,'2/17/2015','en-US','btxSearch',N'Go','N','N') , (0,'2/17/2015','en-US','chxbxAddress',N'Include Address','N','N') , (0,'2/17/2015','en-US','chxbxCompanyName',N'Include Company Name','N','N') , (0,'2/17/2015','en-US','chxbxPEASwitch',N'Show Filed PEAs','N','N') , (0,'2/17/2015','en-US','chxbxReloadOnClick',N'Reload Result Grid on Refresh Only','N','N') , (0,'2/17/2015','en-US','chxbxSearchTerms',N'Include Search Terms','N','N') , (0,'2/17/2015','en-US','ClosePOCol_ConfirmText',N'Final Close this PO and move it to the Final Closed tab?','N','N') , (0,'2/17/2015','en-US','ClosePOCol_Text',N'Close PO','N','N') , (0,'6/11/2011','en-US','fidManualShipments_aspx',N'Manual Shipments','N','N') , (0,'2/17/2015','en-US','FILTER_Between',N'Between','N','N') , (0,'2/17/2015','en-US','FILTER_NotBetween',N'NotBetween','N','N') , (0,'2/17/2015','en-US','fudGlobalDashboardManagement_aspx',N'Global Dashboard Management','N','N') , (0,'2/17/2015','en-US','fudWebServiceSetup_aspx',N'Web Service Setup','N','N') , (0,'12/22/2009','en-US','fugAccessReportFiles_aspx',N'Access Report Files','N','N') , (0,'2/17/2015','en-US','fugDocumentRetention_aspx',N'Document Retention','N','N') , (0,'2/17/2015','en-US','fxdBrokerImportDashboard_aspx',N'Broker Communication','N','N') , (0,'2/21/2010','en-US','fxdECCNQuery_aspx',N'ECCN Classification','N','N') , (0,'2/21/2010','en-US','fxdECCNQueryDetail_aspx',N'ECN Classification','N','N') , (0,'2/17/2015','en-US','fxdEntryDataOverride_aspx',N'Entry Data Override','N','N') , (0,'2/17/2015','en-US','fxdEntryLiquidation_aspx',N'Entry Liquidation','N','N') , (0,'2/17/2015','en-US','fxdEntrySummaryImproved_aspx',N'Entry Summary','N','N') , (0,'2/17/2015','en-US','fxdEntryValidation_aspx',N'Entry Validation','N','N') , (0,'2/17/2015','en-US','fxdEntryValidationErrorReporting_aspx',N'Entry Error Reporting','N','N') , (0,'2/17/2015','en-US','fxdEntryVerificationAuditLog_aspx',N'Entry Verification Audit Log','N','N') , (0,'2/17/2015','en-US','fxdPOAssist_aspx',N'Purchase Order Assist Management','N','N') , (0,'2/17/2015','en-US','fxdPostEntryAmendment_aspx',N'Post Entry Amendment','N','N') , (0,'2/17/2015','en-US','hlxExitButton',N'Exit','N','N') , (0,'2/17/2015','en-US','hlxExtract',N'Extract','N','N') , (0,'2/17/2015','en-US','hlxGenerateQuarterly',N'Generate Quarterly Spreadsheet','N','N') , (0,'2/17/2015','en-US','hyplnkBrokerDocs',N'Docs ({0})','N','N') , (0,'2/17/2015','en-US','hyplnkHarmonizedDocs',N'Docs ({0})','N','N') , (0,'2/17/2015','en-US','hyxlnkCASaveLocal',N'Save to Disk','N','N') , (0,'2/17/2015','en-US','hyxlnkChangeDashboard',N'Change Dashboard ({0})','N','N') , (0,'2/17/2015','en-US','hyxlnkEERSaveLocal',N'Save to Disk','N','N') , (0,'2/17/2015','en-US','hyxlnkELExport',N'Extract','N','N') , (0,'2/17/2015','en-US','hyxlnkExitButton',N'Exit','N','N') , (0,'2/17/2015','en-US','hyxlnkExport',N'Extract','N','N') , (0,'2/17/2015','en-US','hyxlnkHarmonizedDownload',N'Download "Filepath"','N','N') , (0,'2/17/2015','en-US','hyxlnkManageDashboard',N'Management','N','N') , (0,'2/17/2015','en-US','hyxlnkManageServices',N'Manage Web Services','N','N') , (0,'2/17/2015','en-US','hyxlnkOpen7501',N'Open 7501','N','N') , (0,'2/17/2015','en-US','hyxlnkOpen7501C',N'Open 7501 Continuation','N','N') , (0,'2/17/2015','en-US','hyxlnkParametersCancelEdit',N'Cancel Edit','N','N') , (0,'2/17/2015','en-US','hyxlnkReturn',N'Return to Previous Page','N','N') , (0,'2/17/2015','en-US','hyxlnkSearch',N'Search�','N','N') , (0,'2/17/2015','en-US','hyxlnkSelectDashboard',N'Select','N','N') , (0,'2/17/2015','en-US','hyxlnkSettings',N'Settings','N','N') , (0,'2/17/2015','en-US','hyxlnkToggleAvailableDocks',N'Available Docs ({0})','N','N') , (0,'2/17/2015','en-US','lbInvoiceNum',N'Invoice Num:','N','N') , (0,'2/17/2015','en-US','lbxAddMsg',N'Please fill in all fields before clicking ''Add Record''','N','N') , (0,'2/17/2015','en-US','lbxAddNote',N'Add Note','N','N') , (0,'2/17/2015','en-US','lbxAddPOCloseDate',N'New PO Close Date:','N','N') , (0,'2/17/2015','en-US','lbxAddPODate',N'New PO Date:','N','N') , (0,'2/17/2015','en-US','lbxAddPONum',N'New PO Num:','N','N') , (0,'2/17/2015','en-US','lbxAddPOUpdateDate',N'New PO Updated Date:','N','N') , (0,'2/17/2015','en-US','lbxAddRevisionNum',N'New PO Revision Number:','N','N') , (0,'2/17/2015','en-US','lbxAssetNum',N'Asset Num:','N','N') , (0,'2/17/2015','en-US','lbxAssistPeriod',N'Assist Period:','N','N') , (0,'2/17/2015','en-US','lbxAttachDock',N'Attach to Dashboard Dock','N','N') , (0,'2/17/2015','en-US','lbxBroker',N'Broker:','N','N') , (0,'2/17/2015','en-US','lbxBrokerError',N'Add To Broker Error Report','N','N') , (0,'2/17/2015','en-US','lbxBusinessUnit',N'Importer of Record:','N','N') , (0,'2/17/2015','en-US','lbxBuyerName',N'Buyer Name:','N','N') , (0,'2/17/2015','en-US','lbxBVAccount',N'Account','N','N') , (0,'2/17/2015','en-US','lbxBVBrokerCheckAmt',N'Broker Check Amt','N','N') , (0,'2/17/2015','en-US','lbxBVBrokerCheckDate',N'Broker Check Date','N','N') , (0,'2/17/2015','en-US','lbxBVBrokerCheckDetail',N'Broker Check Detail:','N','N') , (0,'2/17/2015','en-US','lbxBVBrokerCheckNum',N'Broker Check Number','N','N') , (0,'2/17/2015','en-US','lbxBVBrokerInvoiceAmt',N'Broker Invoice Amount','N','N') , (0,'2/17/2015','en-US','lbxBVBrokerInvoiceDate',N'Broker Invoice Date','N','N') , (0,'2/17/2015','en-US','lbxBVBrokerInvoiceNum',N'Broker Invoice Number','N','N') , (0,'2/17/2015','en-US','lbxBVCarrierCode',N'Carrier Code','N','N') , (0,'2/17/2015','en-US','lbxBVCarrierMode',N'Carrier Mode','N','N') , (0,'2/17/2015','en-US','lbxBVChargeAmt',N'Charge Amount','N','N') , (0,'2/17/2015','en-US','lbxBVChargeCodeDescription',N'Charge Code & Description','N','N') , (0,'2/17/2015','en-US','lbxBVCheckTotal',N'TOTAL:','N','N') , (0,'2/17/2015','en-US','lbxBVDestination',N'Destination','N','N') , (0,'2/17/2015','en-US','lbxBVLocked',N'Locked','N','N') , (0,'2/17/2015','en-US','lbxBVNumber',N'Other Invoices:','N','N') , (0,'2/17/2015','en-US','lbxBVPaymentDate',N'Payment','N','N') , (0,'2/17/2015','en-US','lbxBVPO',N'PO','N','N') , (0,'2/17/2015','en-US','lbxBVProduct',N'Product','N','N') , (0,'2/17/2015','en-US','lbxCAState',N'Report for:','N','N') , (0,'2/17/2015','en-US','lbxColumnCount',N'Column Count:','N','N') , (0,'2/17/2015','en-US','lbxCountry',N'Country:','N','N') , (0,'2/17/2015','en-US','lbxCPEMsgData',N'Show Entry Field Data','N','N') , (0,'2/17/2015','en-US','lbxCPEMsgManualValidation',N'Show Manual Validation Fields','N','N') , (0,'2/17/2015','en-US','lbxCPEMsgMilestones',N'Show Broker Milestones','N','N') , (0,'2/17/2015','en-US','lbxCPEMsgValidationGrid',N'Show Validation Grid','N','N') , (0,'2/17/2015','en-US','lbxCSA',N'Current Search Analysis:','N','N') , (0,'2/17/2015','en-US','lbxCSC',N'Current Search Criteria:','N','N') , (0,'2/17/2015','en-US','lbxCurrentEntry',N'Current Entry:','N','N') , (0,'2/17/2015','en-US','lbxCurrentSearch',N'Current Search:','N','N') , (0,'2/17/2015','en-US','lbxDateValues',N'Select date values','N','N') , (0,'2/17/2015','en-US','lbxDisplayColumns',N'Display Columns','N','N') , (0,'2/17/2015','en-US','lbxDocAccessType',N'Doc Access Type','N','N') , (0,'2/17/2015','en-US','lbxDocumentType',N'Document Type','N','N') , (0,'2/17/2015','en-US','lbxDutyRate',N'Duty Rate:','N','N') , (0,'2/17/2015','en-US','lbxeADDuty',N'ADD:','N','N') , (0,'2/17/2015','en-US','lbxeBill',N'Bill:','N','N') , (0,'2/17/2015','en-US','lbxeCVDuty',N'CVD:','N','N') , (0,'2/17/2015','en-US','lbxedAssignedTo',N'Assigned To:','N','N') , (0,'2/17/2015','en-US','lbxedDocCount',N'Documents:','N','N') , (0,'2/17/2015','en-US','lbxedErrorCount',N'Error Count:','N','N') , (0,'2/17/2015','en-US','lbxedLineCount',N'Line Count:','N','N') , (0,'2/17/2015','en-US','lbxedLiqDate',N'Liquidation Date:','N','N') , (0,'2/17/2015','en-US','lbxedStatus',N'Status:','N','N') , (0,'2/17/2015','en-US','lbxeDuty',N'Duty:','N','N') , (0,'2/17/2015','en-US','lbxeEntryNum',N'Entry Number:','N','N') , (0,'2/17/2015','en-US','lbxEERState',N'Create Report','N','N') , (0,'2/17/2015','en-US','lbxeFilerPOC',N'Filer Point Of Contact:','N','N') , (0,'2/17/2015','en-US','lbxeHMF',N'HMF:','N','N') , (0,'2/17/2015','en-US','lbxeImporterName',N'Importer Name:','N','N') , (0,'2/17/2015','en-US','lbxeImporterNum',N'Importer Number:','N','N') , (0,'2/17/2015','en-US','lbxelDateValues',N'Select date values:','N','N') , (0,'2/17/2015','en-US','lbxelFromDate',N'Date From&nbsp;','N','N') , (0,'2/17/2015','en-US','lbxeLiquidationDate',N'Liquidation Date:','N','N') , (0,'2/17/2015','en-US','lbxelToDate',N'Date To&nbsp;','N','N') , (0,'2/17/2015','en-US','lbxEmailCC',N'CC','N','N') , (0,'2/17/2015','en-US','lbxEmailSubject',N'Subject','N','N') , (0,'2/17/2015','en-US','lbxEmailTo',N'To','N','N') , (0,'2/17/2015','en-US','lbxEmailType',N'Type','N','N') , (0,'2/17/2015','en-US','lbxeMPF',N'MPF:','N','N') , (0,'2/17/2015','en-US','lbxeNarrativeDescription',N'Narrative Description:','N','N') , (0,'2/17/2015','en-US','lbxeNonRevenue',N'Non-Revenue:','N','N') , (0,'2/17/2015','en-US','lbxEntryDutyPaid',N'Duty Paid on Underlying Entry:','N','N') , (0,'2/17/2015','en-US','lbxEntryHMFPaid',N'HMF Paid on Underlying Entry:','N','N') , (0,'2/17/2015','en-US','lbxEntryMPFPaid',N'MPF Paid on Underlying Entry:','N','N') , (0,'2/17/2015','en-US','lbxEntryNumber',N'Entry Number:','N','N') , (0,'2/17/2015','en-US','lbxEntrySearch',N'Entry Search:','N','N') , (0,'2/17/2015','en-US','lbxeOther',N'Other:','N','N') , (0,'2/17/2015','en-US','lbxePayment',N'Payment:','N','N') , (0,'2/17/2015','en-US','lbxeReasonCode',N'Reason Code:','N','N') , (0,'2/17/2015','en-US','lbxeReasonDescription',N'Reason Description:','N','N') , (0,'2/17/2015','en-US','lbxeRefund',N'Refund:','N','N') , (0,'2/17/2015','en-US','lbxeTax',N'Tax:','N','N') , (0,'2/17/2015','en-US','lbxeTotal',N'Total:','N','N') , (0,'2/17/2015','en-US','lbxeTotalPaidRefundAmount',N'Total Paid/Refund/Bill:','N','N') , (0,'2/17/2015','en-US','lbxExistingServices',N'Existing Web Services','N','N') , (0,'2/17/2015','en-US','lbxExternalError',N'Add To External Error Report','N','N') , (0,'2/17/2015','en-US','lbxForDays',N'For Previous','N','N') , (0,'2/17/2015','en-US','lbxFormType',N'Form Type','N','N') , (0,'2/17/2015','en-US','lbxFromDate',N'Date From&nbsp;','N','N') , (0,'2/17/2015','en-US','lbxFromDateStuc',N'(mm/dd/yyyy)','N','N') , (0,'2/17/2015','en-US','lbxGenAssistEnd',N'To:','N','N') , (0,'2/17/2015','en-US','lbxGenAssistStart',N'From:','N','N') , (0,'2/17/2015','en-US','lbxGenerateList',N'Select criteria, then click links to generate reports','N','N') , (0,'2/17/2015','en-US','lbxGenFinalEnd',N'To:','N','N') , (0,'2/17/2015','en-US','lbxGenFinalStart',N'From:','N','N') , (0,'2/17/2015','en-US','lbxGenNonAssistEnd',N'To:','N','N') , (0,'2/17/2015','en-US','lbxGenNonAssistStart',N'From:','N','N') , (0,'2/17/2015','en-US','lbxHMFFlag',N'HMF Flag:','N','N') , (0,'2/17/2015','en-US','lbxIdentifier',N'Identifier','N','N') , (0,'2/17/2015','en-US','lbxImportCountry',N'Import Country:','N','N') , (0,'2/17/2015','en-US','lbxInternalError',N'Add To Internal Error Report','N','N') , (0,'2/17/2015','en-US','lbxInvoiceAmount',N'Invoice Amount Paid:','N','N') , (0,'2/17/2015','en-US','lbxInvoiceDate',N'Invoice Date:','N','N') , (0,'2/17/2015','en-US','lbxLastUpdatedDate',N'Last Updated Date:','N','N') , (0,'2/17/2015','en-US','lbxLineErrorCount',N'Lines With Errors:','N','N') , (0,'2/17/2015','en-US','lbxLocationOfFile',N'Location of File','N','N') , (0,'2/17/2015','en-US','lbxMemo',N'Memo','N','N') , (0,'2/17/2015','en-US','lbxMID',N'MID:','N','N') , (0,'2/17/2015','en-US','lbxMPFFlag',N'MPF Flag:','N','N') , (0,'2/17/2015','en-US','lbxNAFTAFlag',N'NAFTA Flag:','N','N') , (0,'2/17/2015','en-US','lbxPartCoO',N'Part Country of Origin:','N','N') , (0,'2/17/2015','en-US','lbxPartDescription',N'Part Description:','N','N') , (0,'2/17/2015','en-US','lbxPartHSNum',N'Part HS Num:','N','N') , (0,'2/17/2015','en-US','lbxPartReceiptDate',N'Part Receipt Date:','N','N') , (0,'2/17/2015','en-US','lbxPeaAdd',N'Add','N','N') , (0,'2/17/2015','en-US','lbxPeaDate',N'FilingDate:','N','N') , (0,'2/17/2015','en-US','lbxPeaEdit',N'Edit','N','N') , (0,'2/17/2015','en-US','lbxPeaFiled',N'Filed:','N','N') , (0,'2/17/2015','en-US','lbxPeaID',N'Pea Name:','N','N') , (0,'2/17/2015','en-US','lbxPeaPort',N'Port:','N','N') , (0,'2/17/2015','en-US','lbxPeaRemove',N'Remove','N','N') , (0,'2/17/2015','en-US','lbxPeaSearch',N'PEA Search:','N','N') , (0,'2/17/2015','en-US','lbxPeaSelect',N'Select PEA:','N','N') , (0,'2/17/2015','en-US','lbxPODate',N'PO Date:','N','N') , (0,'2/17/2015','en-US','lbxPOLineAmountIssued',N'PO Line Amount Issued:','N','N') , (0,'2/17/2015','en-US','lbxPOLineNum',N'PO Line Num:','N','N') , (0,'2/17/2015','en-US','lbxPONum',N'PO Num:','N','N') , (0,'2/17/2015','en-US','lbxPort',N'Port:','N','N') , (0,'2/17/2015','en-US','lbxProductionPart',N'Production Part #:','N','N') , (0,'2/17/2015','en-US','lbxProjectNum',N'Project Num:','N','N') , (0,'2/17/2015','en-US','lbxQPEAPort',N'Port:','N','N') , (0,'2/17/2015','en-US','lbxQPEAQuarter',N'Quarter:','N','N') , (0,'2/17/2015','en-US','lbxQPEAYear',N'Year:','N','N') , (0,'2/17/2015','en-US','lbxRecFiler',N'Filer Code:','N','N') , (0,'2/17/2015','en-US','lbxRecFromDate',N'Date From:','N','N') , (0,'2/17/2015','en-US','lbxRecFromDateMask',N'(mm/dd/yyyy)','N','N') , (0,'2/17/2015','en-US','lbxReconciledValue',N'Reconciled Value:','N','N') , (0,'2/17/2015','en-US','lbxReconciliationDate',N'Reconciliation Date:','N','N') , (0,'2/17/2015','en-US','lbxReconciliationEntry',N'Reconciliation Entry #:','N','N') , (0,'2/17/2015','en-US','lbxReconciliationEntryLineNum',N'Reconciliation Entry Line #:','N','N') , (0,'2/17/2015','en-US','lbxReconDutyPaid',N'Duty Paid on Recon Entry:','N','N') , (0,'2/17/2015','en-US','lbxReconHMFPaid',N'HMF Paid on Recon Entry:','N','N') , (0,'2/17/2015','en-US','lbxReconHTSDeclared',N'HTS Declared on Recon Entry:','N','N') , (0,'2/17/2015','en-US','lbxReconMPFPaid',N'MPF Paid on Recon Entry:','N','N') , (0,'2/17/2015','en-US','lbxRecordsPerPage',N'Records per page:','N','N') , (0,'2/17/2015','en-US','lbxRecStatus',N'Status:','N','N') , (0,'2/17/2015','en-US','lbxRecToDate',N'Date To:','N','N') , (0,'2/17/2015','en-US','lbxRecToDateMask',N'(mm/dd/yyyy)','N','N') , (0,'2/17/2015','en-US','lbxReportTitle',N'Report Title:','N','N') , (0,'2/17/2015','en-US','lbxRequisitionerName',N'Requisitioner Name:','N','N') , (0,'2/17/2015','en-US','lbxReqValue',N'Required Value:','N','N') , (0,'2/17/2015','en-US','lbxRWeditcategory',N'Search Category:','N','N') , (0,'2/17/2015','en-US','lbxRWeditdescription',N'Search Description:','N','N') , (0,'2/17/2015','en-US','lbxRWeditedit',N'Allow this search to be editable?','N','N') , (0,'2/17/2015','en-US','lbxRWeditinfo',N'Save these edited parameters into stored search?','N','N') , (0,'2/17/2015','en-US','lbxRWeditname',N'Search Name:','N','N') , (0,'2/17/2015','en-US','lbxRWeditshare',N'Share this search?','N','N') , (0,'2/17/2015','en-US','lbxRWsearchcategory',N'Search Category:','N','N') , (0,'2/17/2015','en-US','lbxRWsearchdescription',N'Search Description:','N','N') , (0,'2/17/2015','en-US','lbxRWsearchedit',N'Allow this search to be editable?','N','N') , (0,'2/17/2015','en-US','lbxRWsearchinfo',N'Saved these search parameters into new stored search?','N','N') , (0,'2/17/2015','en-US','lbxRWsearchname',N'Search Name:','N','N') , (0,'2/17/2015','en-US','lbxRWsearchshare',N'Share this search?','N','N') , (0,'2/17/2015','en-US','lbxSearch',N'Search Criteria:','N','N') , (0,'2/17/2015','en-US','lbxSourceColumns',N'Source Columns','N','N') , (0,'2/17/2015','en-US','lbxStartDate',N'Starting On','N','N') , (0,'2/17/2015','en-US','lbxSupplierID',N'Supplier ID:','N','N') , (0,'2/17/2015','en-US','lbxSupplierName',N'Supplier Name:','N','N') , (0,'2/17/2015','en-US','lbxTable',N'Choose Source:','N','N') , (0,'2/17/2015','en-US','lbxTaskNum',N'Task Num:','N','N') , (0,'2/17/2015','en-US','lbxTemplateName',N'Template Name','N','N') , (0,'2/17/2015','en-US','lbxToDate',N'Date To&nbsp;','N','N') , (0,'2/17/2015','en-US','lbxToDateStruc',N'(mm/dd/yyyy)','N','N') , (0,'2/17/2015','en-US','lbxTotalErrorCount',N'Total Errors In Entry:','N','N') , (0,'2/17/2015','en-US','lbxTxnQty',N'Quantity:','N','N') , (0,'2/17/2015','en-US','lbxUnderlyingEntry',N'Underlying Entry #:','N','N') , (0,'2/17/2015','en-US','lbxUnderlyingEntryHTS',N'Underlying Entry HTS:','N','N') , (0,'2/17/2015','en-US','lbxUnitVal',N'Unit Value:','N','N') , (0,'2/17/2015','en-US','lbxValidationGroup',N'Validation Group:','N','N') , (0,'2/17/2015','en-US','lbxValidationType',N'Validation Type:','N','N') , (0,'2/17/2015','en-US','lnxBrokerRemoveSelected',N'Remove Selected','N','N') , (0,'2/17/2015','en-US','lnxbtnAddChargeDetail',N'Add','N','N') , (0,'2/17/2015','en-US','lnxbtnAddDock',N'Add','N','N') , (0,'2/17/2015','en-US','lnxbtnAddNote',N'Submit','N','N') , (0,'2/17/2015','en-US','lnxbtnAddQuarterly',N'Add To Quarterly PEA','N','N') , (0,'2/17/2015','en-US','lnxbtnAddRecord',N'Add Record','N','N') , (0,'2/17/2015','en-US','lnxbtnAddSingle',N'Add To Single PEA','N','N') , (0,'2/17/2015','en-US','lnxbtnAdminSaveLayout',N'Save this layout','N','N') , (0,'2/17/2015','en-US','lnxbtnAnalyze',N'Analyze','N','N') , (0,'2/17/2015','en-US','lnxbtnAttach',N'Attach Document','N','N') , (0,'2/17/2015','en-US','lnxbtnAttachments',N'Attachments','N','N') , (0,'2/17/2015','en-US','lnxbtnBrokerNotes',N'View Notes','N','N') , (0,'2/17/2015','en-US','lnxbtnBVDelete',N'Delete','N','N') , (0,'2/17/2015','en-US','lnxbtnBVNew',N'New Invoice Record','N','N') , (0,'2/17/2015','en-US','lnxbtnBVSave',N'Save Changes','N','N') , (0,'2/17/2015','en-US','lnxbtnBVValidateTotal',N'Validate','N','N') , (0,'2/17/2015','en-US','lnxbtnCAGenClosed',N'Generate Report - Closed Items','N','N') , (0,'2/17/2015','en-US','lnxbtnCAGenOpen',N'Generate Report - Open Items','N','N') , (0,'2/17/2015','en-US','lnxbtnCAGenReset',N'Reset Report Type/File Type','N','N') , (0,'2/17/2015','en-US','lnxbtnCancelChanges',N'Cancel','N','N') , (0,'2/17/2015','en-US','lnxbtnCASaveGTN',N'Save to Document Retention','N','N') , (0,'2/17/2015','en-US','lnxbtnCloseFlag',N'Close Discrepancies','N','N') , (0,'2/17/2015','en-US','lnxbtnCloseSearch',N'Close Search','N','N') , (0,'2/17/2015','en-US','lnxbtnCopySearch',N'Copy Search to New','N','N') , (0,'2/17/2015','en-US','lnxbtnCreateQuarterly',N'Create New Quarterly PEA','N','N') , (0,'2/17/2015','en-US','lnxbtnDeleteSearch',N'Delete Search','N','N') , (0,'2/17/2015','en-US','lnxbtnDocumentRetention',N'Document Retention','N','N') , (0,'2/17/2015','en-US','lnxbtnDocuments',N'Document Retention','N','N') , (0,'2/17/2015','en-US','lnxbtnEditLine',N'Edit Line','N','N') , (0,'2/17/2015','en-US','lnxbtnEditSave',N'Save','N','N') , (0,'2/17/2015','en-US','lnxbtnEditSearch',N'Edit Search','N','N') , (0,'2/17/2015','en-US','lnxbtnedNotes',N'View Notes','N','N') , (0,'2/17/2015','en-US','lnxbtnedSaveManual',N'Save Changes','N','N') , (0,'2/17/2015','en-US','lnxbtnEmailShipment',N'Send E-mail','N','N') , (0,'2/17/2015','en-US','lnxbtnErrorReporting',N'Go To Entry Error Reporting','N','N') , (0,'2/17/2015','en-US','lnxbtnExit',N'Exit','N','N') , (0,'2/17/2015','en-US','lnxbtnExport',N'Export','N','N') , (0,'2/17/2015','en-US','lnxbtnFilePea',N'Mark PEA As Filed','N','N') , (0,'2/17/2015','en-US','lnxbtnGenAssistPOs',N'Assist Purchase Orders','N','N') , (0,'2/17/2015','en-US','lnxbtnGenerateLink',N'Generate Reports','N','N') , (0,'2/17/2015','en-US','lnxbtnGenerateSingle',N'Generate PEA Coversheet','N','N') , (0,'2/17/2015','en-US','lnxbtnGenFinalPos',N'Final Closed Purchase Orders','N','N') , (0,'2/17/2015','en-US','lnxbtnGenNonPOs',N'Non-Assist Purchase Orders','N','N') , (0,'2/17/2015','en-US','lnxbtnGotoPage',N'Go To:','N','N') , (0,'2/17/2015','en-US','lnxbtnHarmonizedNotes',N'View Notes','N','N') , (0,'2/17/2015','en-US','lnxbtnInitInsert',N'Add Override Value','N','N') , (0,'2/17/2015','en-US','lnxbtnInitInsertFunction',N'Add New Function','N','N') , (0,'2/17/2015','en-US','lnxbtnInitInsertParameter',N'Add New Parameter','N','N') , (0,'2/17/2015','en-US','lnxbtnInsert',N'Add Note','N','N') , (0,'2/17/2015','en-US','lnxbtnManualAddition',N'Manually Add PO','N','N') , (0,'2/17/2015','en-US','lnxbtnOverride',N'Override Management','N','N') , (0,'2/17/2015','en-US','lnxbtnPeaEdit',N'Edit','N','N') , (0,'2/17/2015','en-US','lnxbtnPendingInvoices',N'Pending Invoices','N','N') , (0,'2/17/2015','en-US','lnxbtnPostImportMessage',N'Add Comment','N','N') , (0,'2/17/2015','en-US','lnxbtnQPEACreate',N'Create PEA','N','N') , (0,'2/17/2015','en-US','lnxbtnRecStatusUpdate',N'Update Status','N','N') , (0,'2/17/2015','en-US','lnxbtnRefresh',N'Refresh','N','N') , (0,'2/17/2015','en-US','lnxbtnRefreshGrid',N'Refresh','N','N') , (0,'2/17/2015','en-US','lnxbtnRegen7501',N'Generate 7501 For Entry','N','N') , (0,'2/17/2015','en-US','lnxbtnRemoveEntry',N'Remove From PEA','N','N') , (0,'2/17/2015','en-US','lnxbtnReport',N'Generate Report','N','N') , (0,'2/17/2015','en-US','lnxbtnReturnToEVSI',N'Return To Summary Screen','N','N') , (0,'2/17/2015','en-US','lnxbtnRWSave',N'Save Search','N','N') , (0,'2/17/2015','en-US','lnxbtnRWUpdate',N'Update Search','N','N') , (0,'2/17/2015','en-US','lnxbtnSave',N'Save','N','N') , (0,'2/17/2015','en-US','lnxbtnSaveChanges',N'Save Changes','N','N') , (0,'2/17/2015','en-US','lnxbtnSaveDetail',N'Save Changes','N','N') , (0,'2/17/2015','en-US','lnxbtnSaveSearch',N'Save Search','N','N') , (0,'2/17/2015','en-US','lnxbtnSaveTemplate',N'Save','N','N') , (0,'2/17/2015','en-US','lnxbtnSelectSearch',N'Select Search','N','N') , (0,'2/17/2015','en-US','lnxbtnSendEmail',N'Send','N','N') , (0,'2/17/2015','en-US','lnxbtnSubmitNote',N'Submit','N','N') , (0,'2/17/2015','en-US','lnxbtnSummaryView',N'Return to Summary View','N','N') , (0,'2/17/2015','en-US','lnxbtnValidate',N'Validate','N','N') , (0,'2/17/2015','en-US','lnxCAGenerateReport',N'Generate Corrective Action Report','N','N') , (0,'2/17/2015','en-US','lnxEEREmailReport',N'Email Report(s)','N','N') , (0,'2/17/2015','en-US','lnxEERGenBroker',N'Create Broker Error Report','N','N') , (0,'2/17/2015','en-US','lnxEERGenerateReport',N'Generate Report','N','N') , (0,'2/17/2015','en-US','lnxEERGenExternal',N'Create External Error Report','N','N') , (0,'2/17/2015','en-US','lnxEERGenInternal',N'Create Internal Error Report','N','N') , (0,'2/17/2015','en-US','lnxEERGenReset',N'Reset Report Type/File Type','N','N') , (0,'2/17/2015','en-US','lnxEERSaveGTN',N'Save to Document Retention','N','N') , (0,'2/17/2015','en-US','NonAssistCol_ConfirmText',N'Reflag this PO and move it to the Non-Assist tab?','N','N') , (0,'2/17/2015','en-US','NonAssistCol_Text',N'Reflag Non-Assist','N','N') , (0,'2/17/2015','en-US','NonAssistFlagCol_ConfirmText',N'Flag this PO as NOT using an Assist and move it to the Non-Assist tab?','N','N') , (0,'2/17/2015','en-US','NonAssistFlagCol_Text',N'Flas As Non-Assist','N','N') , (0,'2/17/2015','en-US','rbxCADateRange',N'Entries in Range','N','N') , (0,'2/17/2015','en-US','rbxCASingleEntry',N'Selected Entry','N','N') , (0,'2/17/2015','en-US','rbxMultiple',N'Date Range','N','N') , (0,'2/17/2015','en-US','rbxRWEditRadio1',N'Create New','N','N') , (0,'2/17/2015','en-US','rbxRWEditRadio2',N'Use Existing','N','N') , (0,'2/17/2015','en-US','rbxRWSearchRadio1',N'Create New','N','N') , (0,'2/17/2015','en-US','rbxRWSearchRadio2',N'Use Existing','N','N') , (0,'2/17/2015','en-US','rbxSingle',N'Single Entry','N','N') , (0,'2/17/2015','en-US','rbxUseAssistPeriod',N'Use Assist Period','N','N') , (0,'2/17/2015','en-US','rbxUsePODateRange',N'Use PO Date Range','N','N') , (0,'2/17/2015','en-US','rwAddNote',N'Add Note','N','N') , (0,'2/17/2015','en-US','rwAddRecord',N'Manually Enter PO Record','N','N') , (0,'2/17/2015','en-US','rwCAGen',N'Generate Corrective Action Report','N','N') , (0,'2/17/2015','en-US','rwChangeDashboard',N'Change Dashboard','N','N') , (0,'2/17/2015','en-US','rwCreateQuarterly',N'Create Quarterly PEA','N','N') , (0,'2/17/2015','en-US','rwDocList',N'Document List for {0}','N','N') , (0,'2/17/2015','en-US','rwDocRetention',N'Document Retention','N','N') , (0,'2/17/2015','en-US','rwDocumentList',N'Document List','N','N') , (0,'2/17/2015','en-US','rwDocumentRetention',N'Add Document(s) for {0}','N','N') , (0,'2/17/2015','en-US','rwEdit',N'Edit Entry PEA Detail','N','N') , (0,'2/17/2015','en-US','rwEditDetail',N'Edit PO Line','N','N') , (0,'2/17/2015','en-US','rwEditSearch',N'Edit Search','N','N') , (0,'2/17/2015','en-US','rwEERGen',N'Generate Report','N','N') , (0,'2/17/2015','en-US','rwEntryEmail',N'Email Report(s)','N','N') , (0,'2/17/2015','en-US','rwGenerate',N'Generate Reports','N','N') , (0,'2/17/2015','en-US','rwNotes',N'Notes for {0}','N','N') , (0,'2/17/2015','en-US','rwPendingInvoices',N'Pending Invoice List','N','N') , (0,'2/17/2015','en-US','rwSavedSearches',N'Saved Searches','N','N') , (0,'2/17/2015','en-US','rwSaveSearch',N'Save Search','N','N') , (0,'2/17/2015','en-US','rwSettings',N'Dashboard Settings','N','N') , (0,'2/17/2015','en-US','rwShowAvailableDocks',N'Available Docks','N','N') , (0,'2/17/2015','en-US','tabAllEmail',N'Email Log','N','N') , (0,'2/17/2015','en-US','tabAllLines',N'All Lines','N','N') , (0,'2/17/2015','en-US','tabAllLog',N'All Logs','N','N') , (0,'2/17/2015','en-US','tabAssistPOs',N'Assist Purchase Orders','N','N') , (0,'2/17/2015','en-US','tabBroker',N'Broker Data','N','N') , (0,'2/17/2015','en-US','tabBrokerErrors',N'Broker Errors','N','N') , (0,'2/17/2015','en-US','tabBrokerView',N'Payment','N','N') , (0,'2/17/2015','en-US','tabCA',N'Corrective Action Tracking','N','N') , (0,'2/17/2015','en-US','tabCharts',N'Charts','N','N') , (0,'2/17/2015','en-US','tabClearLines',N'Clean Lines','N','N') , (0,'2/17/2015','en-US','tabClosedErrorsLog',N'Closed Errors Log','N','N') , (0,'2/17/2015','en-US','tabCommunication',N'Communication','N','N') , (0,'2/17/2015','en-US','tabCustomsHold',N'Customs Hold','N','N') , (0,'2/17/2015','en-US','tabDashboards',N'Dashboards','N','N') , (0,'2/17/2015','en-US','tabDocks',N'Docks','N','N') , (0,'2/17/2015','en-US','tabDocsLog',N'Documents Log','N','N') , (0,'2/17/2015','en-US','tabEER',N'Error Reports','N','N') , (0,'2/17/2015','en-US','tabEmailLog',N'Email Log','N','N') , (0,'2/17/2015','en-US','tabEntryAnalysis',N'Entry Analysis','N','N') , (0,'2/17/2015','en-US','tabEntryData',N'Entry Data','N','N') , (0,'2/17/2015','en-US','tabEntryDocuments',N'Documents','N','N') , (0,'2/17/2015','en-US','tabEntryEmail',N'Entry Email Log','N','N') , (0,'2/17/2015','en-US','tabEntryImportLog',N'Entry Import Log','N','N') , (0,'2/17/2015','en-US','tabEntryManagement',N'Entry Management','N','N') , (0,'2/17/2015','en-US','tabEntryMessages',N'Entry Messaging','N','N') , (0,'2/17/2015','en-US','tabErrorLines',N'Error Lines','N','N') , (0,'2/17/2015','en-US','tabExternalErrors',N'External Errors','N','N') , (0,'2/17/2015','en-US','tabExternalNotes',N'External Notes','N','N') , (0,'2/17/2015','en-US','tabFinalPOs',N'Final Closed Purchase Orders','N','N') , (0,'2/17/2015','en-US','tabGrids',N'Grids','N','N') , (0,'2/17/2015','en-US','tabGroups',N'Groups','N','N') , (0,'2/17/2015','en-US','tabHarmonized',N'Harmonized Data','N','N') , (0,'2/17/2015','en-US','tabInternalErrors',N'Internal Errors','N','N') , (0,'2/17/2015','en-US','tabInternalNotes',N'Internal Notes','N','N') , (0,'2/17/2015','en-US','tabLineOverview',N'Line Overview','N','N') , (0,'2/17/2015','en-US','tabLiquidation',N'Liquidation','N','N') , (0,'2/17/2015','en-US','tabManagementLog',N'Management Log','N','N') , (0,'2/17/2015','en-US','tabNewPOs',N'New Purchase Orders','N','N') , (0,'2/17/2015','en-US','tabNonAssistPOs',N'Non-Assist Purchase Orders','N','N') , (0,'2/17/2015','en-US','tabNotesLog',N'Notes Log','N','N') , (0,'2/17/2015','en-US','tabPeaQueue',N'PEA Queue','N','N') , (0,'2/17/2015','en-US','tabPeaSelected',N'Selected PEA','N','N') , (0,'2/17/2015','en-US','tabRecon',N'Reconciliation','N','N') , (0,'2/17/2015','en-US','tabResolvedErrorsLog',N'Resolved Errors Log','N','N') , (0,'2/17/2015','en-US','tabSharedSearch',N'Shared','N','N') , (0,'2/17/2015','en-US','tabSystemSearch',N'System','N','N') , (0,'2/17/2015','en-US','tabValidationNotes',N'Validation Notes','N','N') , (0,'2/17/2015','en-US','tabWorkQueue',N'Work Queue','N','N') , (0,'11/30/2007','en-US','UserName',N'Username','N','N') , (0,'4/8/2014','es','Company',N'Compañía','N','N') , (0,'4/8/2014','es','Company Name',N'Nombre de la Compañía','N','N') , (0,'4/8/2014','es','Did You Know...',N'¿Sabías que...','N','N') , (0,'4/8/2014','es','Follow Us:',N'Síguenos:','N','N') , (0,'4/8/2014','es','Login',N'Iniciar Sesión','N','N') , (0,'4/8/2014','es','Password',N'<PASSWORD>aseña','N','N') , (0,'4/8/2014','es','Sign Up',N'Registrarse','N','N') , (0,'4/8/2014','es','Terms of Use',N'Términos y Condiciones de uso','N','N') , (0,'4/8/2014','es','Username',N'Usuario','N','N') , (0,'4/8/2014','es-MX','Company',N'Compañía','N','N') , (0,'4/8/2014','es-MX','Company Name',N'Nombre de la Compañía','N','N') , (0,'7/16/2012','es-MX','CR',N'Cambio de Regimen','N','N') , (0,'4/8/2014','es-MX','Did You Know...',N'¿Sabías que...','N','N') , (0,'7/16/2012','es-MX','DMP',N'Devolucion de Materia Prima','N','N') , (0,'7/16/2012','es-MX','EQ',N'Equipo','N','N') , (0,'6/11/2011','es-MX','fidManualShipments_aspx',N'Manual de los envios','N','N') , (0,'4/8/2014','es-MX','Follow Us:',N'Síguenos:','N','N') , (0,'7/16/2012','es-MX','LOC',N'Material Local','N','N') , (0,'4/8/2014','es-MX','Login',N'Iniciar Sesión','N','N') , (0,'7/16/2012','es-MX','MP',N'Materia Prima','N','N') , (0,'4/8/2014','es-MX','Password',N'<PASSWORD>','N','N') , (0,'7/16/2012','es-MX','PT',N'Productos Terminados','N','N') , (0,'7/16/2012','es-MX','RWRK',N'Retrabajo','N','N') , (0,'7/16/2012','es-MX','SCRP',N'Desperdicio','N','N') , (0,'4/8/2014','es-MX','Sign Up',N'Registrarse','N','N') , (0,'4/8/2014','es-MX','Terms of Use',N'Términos y Condiciones de uso','N','N') , (0,'4/8/2014','es-MX','Username',N'Usuario','N','N') , (0,'9/16/2010','es-XM','ClientContentManagement_aspx',N'Tariff Updates','N','N') , (0,'9/16/2010','es-XM','CompanyProductRequest_aspx',N'Customer Certificate Request','N','N') , (0,'9/16/2010','es-XM','fmgWorkQueue_aspx',N'Customer Request Detail','N','N') , (0,'9/16/2010','es-XM','fugSourcingMatrix_aspx',N'Tariff Calculator','N','N') , (0,'4/8/2014','fr','Company',N'Entreprise','N','N') , (0,'4/8/2014','fr','Company Name',N'Nom de l''entreprise','N','N') , (0,'4/8/2014','fr','Did You Know...',N'Saviez-vous...','N','N') , (0,'4/8/2014','fr','Follow Us:',N'Suivez-nous:','N','N') , (0,'4/8/2014','fr','Login',N'Connexion','N','N') , (0,'4/8/2014','fr','Password',N'Mot de passe','N','N') , (0,'4/8/2014','fr','Sign Up',N'Signer','N','N') , (0,'4/8/2014','fr','Terms of Use',N'Conditions D''utilisation','N','N') , (0,'4/8/2014','fr','Username',N'Nom d''utilisateur','N','N') , (0,'4/8/2014','fr-BE','Company',N'Entreprise','N','N') , (0,'4/8/2014','fr-BE','Company Name',N'Nom de l''entreprise','N','N') , (0,'4/8/2014','fr-BE','Did You Know...',N'Saviez-vous...','N','N') , (0,'4/8/2014','fr-BE','Follow Us:',N'Suivez-nous:','N','N') , (0,'4/8/2014','fr-BE','Login',N'Connexion','N','N') , (0,'4/8/2014','fr-BE','Password',N'Mot de passe','N','N') , (0,'4/8/2014','fr-BE','Sign Up',N'Signer','N','N') , (0,'4/8/2014','fr-BE','Terms of Use',N'Conditions D''utilisation','N','N') , (0,'4/8/2014','fr-BE','Username',N'Nom d''utilisateur','N','N') , (0,'4/8/2014','fr-CA','Company',N'Entreprise','N','N') , (0,'4/8/2014','fr-CA','Company Name',N'Nom de l''entreprise','N','N') , (0,'4/8/2014','fr-CA','Did You Know...',N'Saviez-vous...','N','N') , (0,'4/8/2014','fr-CA','Follow Us:',N'Suivez-nous:','N','N') , (0,'4/8/2014','fr-CA','Login',N'Connexion','N','N') , (0,'4/8/2014','fr-CA','Password',N'<PASSWORD>','N','N') , (0,'4/8/2014','fr-CA','Sign Up',N'Signer','N','N') , (0,'4/8/2014','fr-CA','Terms of Use',N'Conditions D''utilisation','N','N') , (0,'4/8/2014','fr-CA','Username',N'Nom d''utilisateur','N','N') , (0,'4/8/2014','fr-CH','Company',N'Entreprise','N','N') , (0,'4/8/2014','fr-CH','Company Name',N'Nom de l''entreprise','N','N') , (0,'4/8/2014','fr-CH','Did You Know...',N'Saviez-vous...','N','N') , (0,'4/8/2014','fr-CH','Follow Us:',N'Suivez-nous:','N','N') , (0,'4/8/2014','fr-CH','Login',N'Connexion','N','N') , (0,'4/8/2014','fr-CH','Password',N'Mot de passe','N','N') , (0,'4/8/2014','fr-CH','Sign Up',N'Signer','N','N') , (0,'4/8/2014','fr-CH','Terms of Use',N'Conditions D''utilisation','N','N') , (0,'4/8/2014','fr-CH','Username',N'Nom d''utilisateur','N','N') , (0,'4/8/2014','fr-FR','Company',N'Entreprise','N','N') , (0,'4/8/2014','fr-FR','Company Name',N'Nom de l''entreprise','N','N') , (0,'4/8/2014','fr-FR','Did You Know...',N'Saviez-vous...','N','N') , (0,'12/17/2013','fr-FR','Email Address',N'Adresse E-mail','N','N') , (0,'12/17/2013','fr-FR','First Name',N'Pr?nom','N','N') , (0,'4/8/2014','fr-FR','Follow Us:',N'Suivez-nous:','N','N') , (0,'1/6/2014','fr-FR','I Accept',N'J''accepte','N','N') , (0,'12/17/2013','fr-FR','Last Name',N'Nom','N','N') , (0,'4/8/2014','fr-FR','Login',N'Connexion','N','N') , (0,'4/8/2014','fr-FR','Password',N'Mot de passe','N','N') , (0,'1/6/2014','fr-FR','Please read the following message and select ''I Accept'' at the bottom before proceeding',N'Veuillez lire le message suivant et s?lectionnez ?J''accepte? au bas avant de proc?der','N','N') , (0,'4/8/2014','fr-FR','Sign Up',N'Signer','N','N') , (0,'4/8/2014','fr-FR','Terms of Use',N'Conditions D''utilisation','N','N') , (0,'4/8/2014','fr-FR','Username',N'Nom d''utilisateur','N','N') , (0,'4/8/2014','fr-LU','Company',N'Entreprise','N','N') , (0,'4/8/2014','fr-LU','Company Name',N'Nom de l''entreprise','N','N') , (0,'4/8/2014','fr-LU','Did You Know...',N'Saviez-vous...','N','N') , (0,'4/8/2014','fr-LU','Follow Us:',N'Suivez-nous:','N','N') , (0,'4/8/2014','fr-LU','Login',N'Connexion','N','N') , (0,'4/8/2014','fr-LU','Password',N'Mot de passe','N','N') , (0,'4/8/2014','fr-LU','Sign Up',N'Signer','N','N') , (0,'4/8/2014','fr-LU','Terms of Use',N'Conditions D''utilisation','N','N') , (0,'4/8/2014','fr-LU','Username',N'Nom d''utilisateur','N','N') , (0,'4/8/2014','fr-MC','Company',N'Entreprise','N','N') , (0,'4/8/2014','fr-MC','Company Name',N'Nom de l''entreprise','N','N') , (0,'4/8/2014','fr-MC','Did You Know...',N'Saviez-vous...','N','N') , (0,'4/8/2014','fr-MC','Follow Us:',N'Suivez-nous:','N','N') , (0,'4/8/2014','fr-MC','Login',N'Connexion','N','N') , (0,'4/8/2014','fr-MC','Password',N'Mot de passe','N','N') , (0,'4/8/2014','fr-MC','Sign Up',N'Signer','N','N') , (0,'4/8/2014','fr-MC','Terms of Use',N'Conditions D''utilisation','N','N') , (0,'4/8/2014','fr-MC','Username',N'Nom d''utilisateur','N','N') , (0,'4/8/2014','zh','Company',N'公司','N','N') , (0,'4/8/2014','zh','Company Name',N'公司名','N','N') , (0,'4/8/2014','zh','Did You Know...',N'您知道吗...','N','N') , (0,'4/8/2014','zh','Follow Us:',N'关注我们:','N','N') , (0,'4/8/2014','zh','Login',N'登录','N','N') , (0,'4/8/2014','zh','Password',N'密码','N','N') , (0,'4/8/2014','zh','Sign Up',N'注册','N','N') , (0,'4/8/2014','zh','Terms of Use',N'使用条款','N','N') , (0,'4/8/2014','zh','Username',N'用户名','N','N') , (0,'4/8/2014','zh-CN','Company',N'公司','N','N') , (0,'4/8/2014','zh-CN','Company Name',N'公司名','N','N') , (0,'4/8/2014','zh-CN','Did You Know...',N'您知道吗...','N','N') , (0,'4/8/2014','zh-CN','Follow Us:',N'关注我们:','N','N') , (0,'4/8/2014','zh-CN','Login',N'登录','N','N') , (0,'4/8/2014','zh-CN','Password',N'密码','N','N') , (0,'4/8/2014','zh-CN','Sign Up',N'注册','N','N') , (0,'4/8/2014','zh-CN','Terms of Use',N'使用条款','N','N') , (0,'4/8/2014','zh-CN','Username',N'用户名','N','N') , (1999,'3/10/2013','cs-CZ','fmgDTSSpreadsheetImport_aspx',N'Dovoz DPS Tabulka','N','N') , (1999,'3/10/2013','cs-CZ','fxdDPSQuery_aspx',N'DPS Vyhledávání','N','N') , (1999,'3/10/2013','cs-CZ','fxdDTSHistory_aspx',N'DPS Historie Vyhledávání','N','N') , (1999,'3/10/2013','cs-CZ','fxdDTSNotes_aspx',N'DPS Notes','N','N') , (1999,'3/10/2013','cs-CZ','fxdDTSQuery_aspx',N'DPS Vyhledávání','N','N') , (1999,'3/10/2013','cs-CZ','fxdDTSQueryDetail_aspx',N'DPS Vyhledávání Detail','N','N') , (1999,'3/10/2013','cs-CZ','fxdDTSRegulationList_aspx',N'DPS Nařízení Seznam','N','N') , (1999,'3/10/2013','cs-CZ','fxdDTSWebserviceTest_aspx',N'DPS Web Service Test','N','N') , (1999,'4/8/2010','de-DE','&ltPrev',N'Zurück','N','N') , (1999,'4/8/2010','de-DE','Address',N'Adresse','N','N') , (1999,'4/8/2010','de-DE','Addresses',N'Wegbeschreibung','N','N') , (1999,'4/14/2010','de-DE','Analysis',N'Analyse','N','N') , (1999,'4/14/2010','de-DE','Analysis Report',N'Analysis Report','N','N') , (1999,'4/14/2010','de-DE','AnalysisNo',N'Analysis #','N','N') , (1999,'4/14/2010','de-DE','Archive',N'Datei','N','N') , (1999,'4/14/2010','de-DE','Assigned To',N'Zugeordnet zu','N','N') , (1999,'4/14/2010','de-DE','AuditLog_aspx',N'Audit Record','N','N') , (1999,'4/14/2010','de-DE','Bill of Materials',N'Material-Liste','N','N') , (1999,'4/14/2010','de-DE','BillofMaterials',N'Material-Liste','N','N') , (1999,'4/8/2010','de-DE','btnSaveAll',N'Alle speichern','N','N') , (1999,'4/14/2010','de-DE','btxGo',N'Suche','N','N') , (1999,'4/14/2010','de-DE','btxSearch',N'Suche','N','N') , (1999,'4/14/2010','de-DE','btxShowCalendarFromDate',N'Kalender','N','N') , (1999,'4/14/2010','de-DE','btxShowCalendarThruDate',N'Kalender','N','N') , (1999,'4/14/2010','de-DE','Certificate',N'Zertifikat','N','N') , (1999,'4/8/2010','de-DE','chkbxHitsOnly',N'Only Hits?','N','N') , (1999,'4/8/2010','de-DE','City',N'City','N','N') , (1999,'4/14/2010','de-DE','Classification',N'Einstufung','N','N') , (1999,'9/16/2010','de-DE','ClientContentManagement_aspx',N'Tariff Updates','N','N') , (1999,'4/14/2010','de-DE','Comments',N'Kommentare','N','N') , (1999,'4/14/2010','de-DE','Company',N'Gesellschaft','N','N') , (1999,'4/14/2010','de-DE','CompanyName',N'Firmenname','N','N') , (1999,'9/16/2010','de-DE','CompanyProductRequest_aspx',N'Customer Certificate Request','N','N') , (1999,'4/14/2010','de-DE','COO',N'Cert','N','N') , (1999,'4/8/2010','de-DE','Country',N'Land','N','N') , (1999,'4/14/2010','de-DE','CountryCode',N'Landesvorwahl','N','N') , (1999,'4/14/2010','de-DE','Date',N'Datum','N','N') , (1999,'4/14/2010','de-DE','Date Reminder Sent',N'Verfasst Date Reminder','N','N') , (1999,'4/14/2010','de-DE','Date Sent',N'Liefertermin','N','N') , (1999,'4/14/2010','de-DE','DateSaved',N'GuardadoEn','N','N') , (1999,'4/14/2010','de-DE','DateSent',N'Posted in','N','N') , (1999,'4/8/2010','de-DE','DateSubmitted',N'Verfasst am','N','N') , (1999,'4/14/2010','de-DE','dateupdated',N'Datum der Aktualisierung','N','N') , (1999,'4/14/2010','de-DE','DaysSinceRequest',N'Nach Days','N','N') , (1999,'4/8/2010','de-DE','Delete',N'Löschen','N','N') , (1999,'4/8/2010','de-DE','Description',N'Beschreibung','N','N') , (1999,'4/14/2010','de-DE','Details',N'Detail','N','N') , (1999,'4/14/2010','de-DE','Difference',N'Unterschied','N','N') , (1999,'4/14/2010','de-DE','Discrepancies',N'Diskrepanz','N','N') , (1999,'4/14/2010','de-DE','DocAccessType',N'Zugriffsart','N','N') , (1999,'4/14/2010','de-DE','DocType',N'Belegart','N','N') , (1999,'4/14/2010','de-DE','Document Request Name',N'Name der Anforderung von Dokumenten','N','N') , (1999,'4/8/2010','de-DE','DTSExcludedWords_aspx',N'DPS Ausgeschlossene Words','N','N') , (1999,'4/8/2010','de-DE','Edit',N'Bearbeiten','N','N') , (1999,'4/14/2010','de-DE','Edit_aspx',N'Edit Match','N','N') , (1999,'4/8/2010','de-DE','Eff Date',N'Effective Date','N','N') , (1999,'4/14/2010','de-DE','EffDate',N'Gültig ab','N','N') , (1999,'4/8/2010','de-DE','Exception Name',N'Ausnahme-Namen','N','N') , (1999,'4/8/2010','de-DE','Exceptions',N'Ausnahmen','N','N') , (1999,'4/8/2010','de-DE','ExcludedWord',N'Ohne Worte','N','N') , (1999,'4/8/2010','de-DE','Exp Date',N'Verfallsdatum','N','N') , (1999,'4/14/2010','de-DE','fidFTABOMRulesAnalysis_aspx',N'Bill of Materials Analysis','N','N') , (1999,'4/14/2010','de-DE','fidFTAMassAnalysis_aspx',N'Bulk Materials Analysis','N','N') , (1999,'4/14/2010','de-DE','fidProductFTAMaint_aspx',N'TLC Certified Product','N','N') , (1999,'4/14/2010','de-DE','fmgCompanyMaintenance_aspx',N'Wartung','N','N') , (1999,'3/10/2013','de-DE','fmgDTSSpreadsheetImport_aspx',N'Hochladen Tabellenkalkulation','N','N') , (1999,'4/8/2010','de-DE','fmgMaintenance_aspx',N'NAFTA Reconciliation Summary Report','N','N') , (1999,'4/14/2010','de-DE','fmgRulesEntry_aspx',N'Einreisebestimmungen','N','N') , (1999,'9/16/2010','de-DE','fmgWorkQueue_aspx',N'Customer Request Detail','N','N') , (1999,'4/14/2010','de-DE','frdFTAAnalysisReport_aspx',N'TLC Analysis Report','N','N') , (1999,'4/14/2010','de-DE','frdFTACert_aspx',N'NAFTA-Zertifikat','N','N') , (1999,'7/11/2011','de-DE','frdFTASupplierCert_aspx',N'Zertifikat von Anbieter','N','N') , (1999,'4/14/2010','de-DE','frdNonFTACert_aspx',N'NO TLC Charta','N','N') , (1999,'4/14/2010','de-DE','From',N'Von','N','N') , (1999,'4/14/2010','de-DE','fsgGroupList_aspx',N'Konfigurieren Group','N','N') , (1999,'4/14/2010','de-DE','fsgUserReset_aspx',N'Benutzer-Setup','N','N') , (1999,'4/14/2010','de-DE','FTA',N'TLC','N','N') , (1999,'4/14/2010','de-DE','FTADocument',N'Dokument','N','N') , (1999,'4/14/2010','de-DE','fugAuditClassifications_aspx',N'Audit Ratings','N','N') , (1999,'4/14/2010','de-DE','fugDocumentRequests_aspx',N'Certificate Request','N','N') , (1999,'4/14/2010','de-DE','fugDocumentRetention_aspx',N'Aufbewahrung von Dokumenten','N','N') , (1999,'4/14/2010','de-DE','fugHsReference_aspx',N'Harmonized Tariff Referenz','N','N') , (1999,'4/14/2010','de-DE','fugimportfiletotable_aspx',N'Spreadsheet Upload','N','N') , (1999,'4/14/2010','de-DE','fugMassUpdate',N'Massive Update','N','N') , (1999,'4/14/2010','de-DE','fugMassUpdate_aspx',N'Massive Update','N','N') , (1999,'4/14/2010','de-DE','fugOpenSearch_aspx',N'Klassifikationssuche','N','N') , (1999,'9/16/2010','de-DE','fugSourcingMatrix_aspx',N'Tariff Calculator','N','N') , (1999,'4/8/2010','de-DE','Full Name',N'Vollständiger Name','N','N') , (1999,'4/14/2010','de-DE','fxdBrokerImportDashboard_aspx',N'Tickets Liquidation','N','N') , (1999,'3/10/2013','de-DE','fxdDPSQuery_aspx',N'Suchen','N','N') , (1999,'3/10/2013','de-DE','fxdDTSHistory_aspx',N'Geschichte des Suchen','N','N') , (1999,'3/10/2013','de-DE','fxdDTSNotes_aspx',N'Aufzeichnungen','N','N') , (1999,'3/10/2013','de-DE','fxdDTSQuery_aspx',N'Suchen','N','N') , (1999,'3/10/2013','de-DE','fxdDTSQueryDetail_aspx',N'Suche Detailansicht','N','N') , (1999,'3/10/2013','de-DE','fxdDTSRegulationList_aspx',N'Bauregelliste','N','N') , (1999,'3/10/2013','de-DE','fxdDTSWebserviceTest_aspx',N'Test von Web Service','N','N') , (1999,'4/8/2010','de-DE','fxdECCNQuery_aspx',N'ECCN Klassifikation','N','N') , (1999,'4/14/2010','de-DE','fxdEntryValidation_aspx',N'Ticket Validation','N','N') , (1999,'4/14/2010','de-DE','fxdEntryVisibilitySummary_aspx',N'Ticket Zusammenfassung','N','N') , (1999,'4/14/2010','de-DE','fxdPostEntryAmendment_aspx',N'Nach Änderung','N','N') , (1999,'4/8/2010','de-DE','hlExit',N'Gehen','N','N') , (1999,'4/14/2010','de-DE','hlkExport',N'Export','N','N') , (1999,'4/8/2010','de-DE','hlSearch',N'Suche','N','N') , (1999,'4/20/2010','de-DE','hlxAddNew',N'Neu','N','N') , (1999,'4/14/2010','de-DE','hlxbtnSubmit',N'Analysieren','N','N') , (1999,'4/14/2010','de-DE','hlxCOO',N'Ursprungsland','N','N') , (1999,'4/14/2010','de-DE','hlxCountryOfOrigin',N'Ursprungsland','N','N') , (1999,'4/14/2010','de-DE','hlxDelete',N'Entfernen','N','N') , (1999,'4/14/2010','de-DE','hlxDocLinks',N'Unterlagen','N','N') , (1999,'4/14/2010','de-DE','hlxDocType',N'Document Type','N','N') , (1999,'4/14/2010','de-DE','hlxEdit',N'Bearbeiten','N','N') , (1999,'4/14/2010','de-DE','hlxEmail',N'E-Mail','N','N') , (1999,'4/14/2010','de-DE','hlxEmployee',N'Mitarbeiter','N','N') , (1999,'4/8/2010','de-DE','hlxExit',N'Gehen','N','N') , (1999,'4/8/2010','de-DE','hlxExport',N'Export','N','N') , (1999,'4/14/2010','de-DE','hlxField',N'Feld','N','N') , (1999,'4/14/2010','de-DE','hlxlblAddCustomer',N'Add Kunde','N','N') , (1999,'4/14/2010','de-DE','hlxlblCopy',N'Kopie','N','N') , (1999,'4/14/2010','de-DE','hlxlblExit',N'Gehen','N','N') , (1999,'4/14/2010','de-DE','hlxlblFill',N'Füllen Source','N','N') , (1999,'4/14/2010','de-DE','hlxlblGenerate',N'Generieren','N','N') , (1999,'4/14/2010','de-DE','hlxlblLoad',N'Last','N','N') , (1999,'4/14/2010','de-DE','hlxlblNew',N'Neu','N','N') , (1999,'4/14/2010','de-DE','hlxlblSave',N'Sparen','N','N') , (1999,'4/14/2010','de-DE','hlxlblVoid',N'Leere','N','N') , (1999,'4/14/2010','de-DE','hlxNetCost',N'Nettokosten','N','N') , (1999,'4/14/2010','de-DE','hlxNote',N'Note','N','N') , (1999,'4/14/2010','de-DE','hlxOperator',N'Betreiber','N','N') , (1999,'4/14/2010','de-DE','hlxPreferenceCriterion',N'Bevorzugt Criterion','N','N') , (1999,'4/14/2010','de-DE','hlxProducer',N'Produzent','N','N') , (1999,'4/14/2010','de-DE','hlxProduct',N'Produkt','N','N') , (1999,'4/14/2010','de-DE','hlxProductDesc',N'Beschreibung','N','N') , (1999,'4/14/2010','de-DE','hlxRuleCategory',N'Vertrag','N','N') , (1999,'4/14/2010','de-DE','hlxRuleFlag',N'Typ','N','N') , (1999,'4/14/2010','de-DE','hlxRuleKey',N'Key Regel','N','N') , (1999,'4/14/2010','de-DE','hlxRuleName',N'Artikel Name','N','N') , (1999,'4/14/2010','de-DE','hlxRuleSequence',N'Sequenz','N','N') , (1999,'4/8/2010','de-DE','hlxSearch',N'Suche','N','N') , (1999,'4/14/2010','de-DE','hlxSelectMultipleProducts',N'Wählen Sie Produkte','N','N') , (1999,'4/14/2010','de-DE','hlxSelectProducts',N'Produkt auswählen','N','N') , (1999,'4/14/2010','de-DE','hlxtmgProductNumFTACertProductDesc',N'Produkt','N','N') , (1999,'4/14/2010','de-DE','hlxValueList',N'Wert','N','N') , (1999,'4/8/2010','de-DE','Hyperlink1',N'Commerce Control List vom Land','N','N') , (1999,'4/8/2010','de-DE','hyplnkExit',N'Gehen','N','N') , (1999,'4/14/2010','de-DE','hyxlnkDocumentRetention',N'Aufbewahrung von Dokumenten','N','N') , (1999,'4/14/2010','de-DE','hyxlnkExit',N'Gehen','N','N') , (1999,'4/14/2010','de-DE','hyxlnkGenerate',N'Generieren','N','N') , (1999,'4/14/2010','de-DE','hyxlnkNew',N'Neu','N','N') , (1999,'4/14/2010','de-DE','hyxlnkNextBottom',N'Weiter>','N','N') , (1999,'4/14/2010','de-DE','hyxlnkNextTop',N'Weiter>','N','N') , (1999,'4/14/2010','de-DE','hyxlnkPreviousBottom',N'<Zurück','N','N') , (1999,'4/14/2010','de-DE','hyxlnkPreviousTop',N'<Zurück','N','N') , (1999,'4/8/2010','de-DE','Label1/Category',N'Kategorie','N','N') , (1999,'4/8/2010','de-DE','Label2',N'Name (Alias)','N','N') , (1999,'4/8/2010','de-DE','Label3/Group',N'Gruppe','N','N') , (1999,'4/8/2010','de-DE','Last Checked Date',N'Datum der letzten Konsultation','N','N') , (1999,'4/14/2010','de-DE','LastUpdatedBy',N'Zuletzt aktualisiert von','N','N') , (1999,'4/14/2010','de-DE','lbCreateNewRequest',N'Create New Application','N','N') , (1999,'4/14/2010','de-DE','lbFilterListGo',N'Suche','N','N') , (1999,'4/14/2010','de-DE','lblListFilter',N'Durch Filter','N','N') , (1999,'4/14/2010','de-DE','lbSendRemindar',N'Senden Reminder','N','N') , (1999,'4/8/2010','de-DE','lbxAddExclude',N'Hinzufügen','N','N') , (1999,'4/14/2010','de-DE','lbxAddRow',N'Zeile hinzufügen','N','N') , (1999,'4/14/2010','de-DE','lbxAgreement',N'Freihandel','N','N') , (1999,'4/14/2010','de-DE','lbxAnalysisNo',N'Analysis #','N','N') , (1999,'4/8/2010','de-DE','lbxAndDates',N'Y','N','N') , (1999,'4/14/2010','de-DE','lbxBill',N'Konto','N','N') , (1999,'4/14/2010','de-DE','lbxBillofMaterials',N'Liste der Materialien','N','N') , (1999,'4/8/2010','de-DE','lbxBirthdate',N'Geburtstag','N','N') , (1999,'4/14/2010','de-DE','lbxBomIM',N'End-Produkt','N','N') , (1999,'4/14/2010','de-DE','lbxBomPC',N'Components','N','N') , (1999,'4/8/2010','de-DE','lbxCallSign',N'Anruf','N','N') , (1999,'4/14/2010','de-DE','lbxCertificate',N'Zertifikat','N','N') , (1999,'4/14/2010','de-DE','lbxCharValues',N'Werte','N','N') , (1999,'4/8/2010','de-DE','lbxCity',N'City','N','N') , (1999,'4/14/2010','de-DE','lbxCompany',N'Gesellschaft','N','N') , (1999,'4/8/2010','de-DE','lbxCompanyName',N'Firmenname','N','N') , (1999,'4/8/2010','de-DE','lbxCountry',N'Land','N','N') , (1999,'4/14/2010','de-DE','lbxDateValues',N'Datum wählen','N','N') , (1999,'4/8/2010','de-DE','lbxDescription',N'Beschreibung','N','N') , (1999,'4/8/2010','de-DE','lbxDTSSearchFlag',N'Suche DTS Flagge','N','N') , (1999,'4/14/2010','de-DE','lbxDuty',N'Tarif','N','N') , (1999,'4/8/2010','de-DE','lbxEntityType',N'Entity-Typ','N','N') , (1999,'4/14/2010','de-DE','lbxEntryNumber',N'Entry Number','N','N') , (1999,'4/8/2010','de-DE','lbxEUAssetFreeze',N'Einfrieren von Guthaben der EU','N','N') , (1999,'4/14/2010','de-DE','lbxExporter',N'Exporteur','N','N') , (1999,'4/14/2010','de-DE','lbxExporterAddress1',N'Exporter Address 1','N','N') , (1999,'4/14/2010','de-DE','lbxExporterAddress2',N'Exporter Adresse 2','N','N') , (1999,'4/14/2010','de-DE','lbxExporterName',N'Name des Absenders','N','N') , (1999,'4/14/2010','de-DE','lbxExporterTaxId',N'Rechtsanwalt Registration Number Exporter','N','N') , (1999,'4/14/2010','de-DE','lbxField',N'Feld','N','N') , (1999,'4/14/2010','de-DE','lbxFieldToEdit',N'Land ändern','N','N') , (1999,'4/14/2010','de-DE','lbxFilerPOC',N'Kontakt','N','N') , (1999,'4/14/2010','de-DE','lbxFill',N'Ausfüllen','N','N') , (1999,'4/8/2010','de-DE','lbxFilter',N'Filtern nach','N','N') , (1999,'4/8/2010','de-DE','lbxFor',N'Für','N','N') , (1999,'4/14/2010','de-DE','lbxFrom',N'Von','N','N') , (1999,'4/14/2010','de-DE','lbxFromDate',N'Von','N','N') , (1999,'4/14/2010','de-DE','lbxFromDateStuc',N'(Mm / dd / yyyy)','N','N') , (1999,'4/14/2010','de-DE','lbxFromFormat',N'(Mm / dd / yyyy)','N','N') , (1999,'4/14/2010','de-DE','lbxFTA',N'TLC','N','N') , (1999,'4/8/2010','de-DE','lbxGo',N'Suche','N','N') , (1999,'3/3/2017','de-DE','lbxGoHome',N'Gehen','N','N') , (1999,'4/14/2010','de-DE','lbxHSLocation',N'Quelle Tarif','N','N') , (1999,'4/14/2010','de-DE','lbxImporter',N'Importeur','N','N') , (1999,'4/14/2010','de-DE','lbxImporterAddress1',N'Importer Address 1','N','N') , (1999,'4/14/2010','de-DE','lbxImporterAddress2',N'Importer Adresse 2','N','N') , (1999,'4/14/2010','de-DE','lbxImporterName',N'Importer Name','N','N') , (1999,'4/14/2010','de-DE','lbxImporterNumber',N'Importeur Nummer','N','N') , (1999,'4/14/2010','de-DE','lbxImporterTaxId',N'Rechtsanwalt Registration Number Importer','N','N') , (1999,'4/14/2010','de-DE','lbxIncludeESig',N'Auch digitale Signaturen','N','N') , (1999,'4/8/2010','de-DE','lbxLastValidatedDate',N'Letzte Validation Date','N','N') , (1999,'4/14/2010','de-DE','lbxLiquidationDate',N'Fälligkeit','N','N') , (1999,'4/14/2010','de-DE','lbxLoadRequest',N'Upload Request','N','N') , (1999,'4/14/2010','de-DE','lbxLongDesc',N'Beschreibung','N','N') , (1999,'4/8/2010','de-DE','lbxName',N'Name','N','N') , (1999,'4/14/2010','de-DE','lbxNarrativeDescription',N'Beschreibung','N','N') , (1999,'4/14/2010','de-DE','lbxNew',N'Neu','N','N') , (1999,'4/14/2010','de-DE','lbxNewValue',N'Ändern Sie den Wert','N','N') , (1999,'4/14/2010','de-DE','lbxOperator',N'Betreiber','N','N') , (1999,'4/8/2010','de-DE','lbxOverride',N'Skip DTS','N','N') , (1999,'4/8/2010','de-DE','lbxOverrideDate',N'Date of Failure','N','N') , (1999,'4/14/2010','de-DE','lbxPayment',N'Bezahlung','N','N') , (1999,'4/14/2010','de-DE','lbxPort',N'Port','N','N') , (1999,'4/14/2010','de-DE','lbxProducer',N'Produzent','N','N') , (1999,'4/14/2010','de-DE','lbxProducerAddress1',N'Producer Address 1','N','N') , (1999,'4/14/2010','de-DE','lbxProducerAddress2',N'Producer Adresse 2','N','N') , (1999,'4/14/2010','de-DE','lbxProducerName',N'Producer Name','N','N') , (1999,'4/14/2010','de-DE','lbxProducerTaxID',N'Rechtsanwalt Registriernummer des Herstellers','N','N') , (1999,'4/14/2010','de-DE','lbxProduct',N'Produkt','N','N') , (1999,'4/14/2010','de-DE','lbxProductSearch',N'Suche Produkt','N','N') , (1999,'4/14/2010','de-DE','lbxReasonCode',N'Grund','N','N') , (1999,'4/8/2010','de-DE','lbxRecordsPerPage',N'Ergebnisse pro Seite','N','N') , (1999,'4/14/2010','de-DE','lbxRecordsToDisplay',N'Aufzeichnungen zeigen,','N','N') , (1999,'4/14/2010','de-DE','lbxRefund',N'Rückkehr','N','N') , (1999,'4/8/2010','de-DE','lbxRegEffDate',N'Datum des Inkrafttretens der Verordnung','N','N') , (1999,'4/8/2010','de-DE','lbxRegEntityRemarks',N'Kommentare Regulatory Entity','N','N') , (1999,'4/8/2010','de-DE','lbxRegExpDate',N'Verfallsdatum','N','N') , (1999,'4/8/2010','de-DE','lbxRegList',N'Liste','N','N') , (1999,'4/8/2010','de-DE','lbxRegListID',N'Regulatory ID-Liste','N','N') , (1999,'4/8/2010','de-DE','lbxRegUniqueID',N'Unique ID','N','N') , (1999,'4/8/2010','de-DE','lbxReportFormat',N'Report Format','N','N') , (1999,'4/14/2010','de-DE','lbxRequestStatus',N'Application Status','N','N') , (1999,'4/14/2010','de-DE','lbxRequestyear',N'Anwendung Jahr','N','N') , (1999,'4/8/2010','de-DE','lbxReward',N'Belohnung','N','N') , (1999,'4/14/2010','de-DE','lbxRuleEffDate',N'Gültig ab','N','N') , (1999,'4/14/2010','de-DE','lbxRuleEnabled',N'Enable Rule','N','N') , (1999,'4/14/2010','de-DE','lbxRuleException',N'Ausnahmeregel','N','N') , (1999,'4/14/2010','de-DE','lbxRuleExpDate',N'Gültig bis','N','N') , (1999,'4/14/2010','de-DE','lbxRuleFlag',N'Typ','N','N') , (1999,'4/14/2010','de-DE','lbxRuleKey',N'Key Regel','N','N') , (1999,'4/14/2010','de-DE','lbxRuleList',N'Liste der Regeln','N','N') , (1999,'4/14/2010','de-DE','lbxRuleName',N'Artikel Name','N','N') , (1999,'4/14/2010','de-DE','lbxRuleSeq',N'Sequenz','N','N') , (1999,'4/14/2010','de-DE','lbxRuleType',N'Kategorie','N','N') , (1999,'4/8/2010','de-DE','lbxSanctionsProgram',N'Sanktionen Program','N','N') , (1999,'4/8/2010','de-DE','lbxSearch',N'Suche','N','N') , (1999,'4/8/2010','de-DE','lbxSearchBetweenDates',N'Suche zwischen diesen Zeitpunkten','N','N') , (1999,'4/8/2010','de-DE','lbxSearchFields',N'Suche','N','N') , (1999,'4/14/2010','de-DE','lbxSearchName',N'Name','N','N') , (1999,'4/14/2010','de-DE','lbxSectionMessage',N'Berichtigt Steuerbetrag','N','N') , (1999,'4/8/2010','de-DE','lbxShowNotesOnReport',N'Show Notes Report','N','N') , (1999,'4/14/2010','de-DE','lbxSigDateStruc',N'(Mm / dd / yyyy)','N','N') , (1999,'4/14/2010','de-DE','lbxSignatureDate',N'Unterzeichnungstag','N','N') , (1999,'4/14/2010','de-DE','lbxSignatureId',N'Signature Info','N','N') , (1999,'4/8/2010','de-DE','lbxSourceFile',N'Source File','N','N') , (1999,'4/8/2010','de-DE','lbxStandardOrder',N'Standard Order','N','N') , (1999,'4/8/2010','de-DE','lbxStreet',N'Straße','N','N') , (1999,'4/14/2010','de-DE','lbxTable',N'Quelle auswählen','N','N') , (1999,'4/14/2010','de-DE','lbxTax',N'Steuer','N','N') , (1999,'4/14/2010','de-DE','lbxToDate',N'Bis','N','N') , (1999,'4/14/2010','de-DE','lbxToDateStruc',N'(Mm / dd / yyyy)','N','N') , (1999,'4/14/2010','de-DE','lbxTotalPaidRefundAmount',N'Total Paid, zurückgegeben oder der Höhe der Konto','N','N') , (1999,'4/14/2010','de-DE','lbxUploadBOM',N'Upload BOM','N','N') , (1999,'4/14/2010','de-DE','lbxValidationGroup',N'Validation Group','N','N') , (1999,'4/14/2010','de-DE','lbxValidationType',N'Baumustervalidierung','N','N') , (1999,'4/14/2010','de-DE','lbxValues',N'Werte','N','N') , (1999,'4/8/2010','de-DE','lbxVesselFlag',N'Flag Ship','N','N') , (1999,'4/8/2010','de-DE','lbxVesselGRT',N'Vessel BRT','N','N') , (1999,'4/8/2010','de-DE','lbxVesselOwner',N'Eigentümer','N','N') , (1999,'4/8/2010','de-DE','lbxVesselTonnage',N'Tonnage der Schiffe','N','N') , (1999,'4/8/2010','de-DE','lbxVesselType',N'Schiffstyp','N','N') , (1999,'4/14/2010','de-DE','lbxVoidExplanation',N'Grund für die Stornierung','N','N') , (1999,'4/14/2010','de-DE','lbxVoidReasonCode',N'Stornierung Code','N','N') , (1999,'4/8/2010','de-DE','lbxWebsite',N'Webseite','N','N') , (1999,'4/14/2010','de-DE','LiquidationClock',N'Nach Days','N','N') , (1999,'4/14/2010','de-DE','lkxbtnAdd',N'Hinzufügen','N','N') , (1999,'4/14/2010','de-DE','lkxGenerate',N'Certify BOM','N','N') , (1999,'4/14/2010','de-DE','lkxPrint',N'Drucken','N','N') , (1999,'4/8/2010','de-DE','lnkbtnAddRowTmeDeniedAddress',N'Zeile hinzufügen','N','N') , (1999,'4/8/2010','de-DE','lnkbtnAddRowTmeDTSAlias',N'Zeile hinzufügen','N','N') , (1999,'4/8/2010','de-DE','lnkbtnAddRowTmeDTSException',N'Zeile hinzufügen','N','N') , (1999,'4/8/2010','de-DE','lnkbtnAddRowTmeRegReason',N'Zeile hinzufügen','N','N') , (1999,'4/8/2010','de-DE','lnkbtnRemoveRowTmeDeniedAddress',N'Zeile löschen','N','N') , (1999,'4/8/2010','de-DE','lnkbtnRemoveRowTmeDTSAlias',N'Zeile löschen','N','N') , (1999,'4/8/2010','de-DE','lnkbtnRemoveRowTmeDTSException',N'Zeile löschen','N','N') , (1999,'4/8/2010','de-DE','lnkbtnRemoveRowTmeRegReason',N'Zeile löschen','N','N') , (1999,'4/14/2010','de-DE','lnkCheckWorkflowStatus',N'Cool','N','N') , (1999,'4/14/2010','de-DE','lnkExit',N'Gehen','N','N') , (1999,'4/8/2010','de-DE','lnkGotoPage',N'Zur','N','N') , (1999,'4/14/2010','de-DE','lnkValidate',N'Bestätigen','N','N') , (1999,'4/14/2010','de-DE','lnxAddCharSearch',N'Add to Search','N','N') , (1999,'4/14/2010','de-DE','lnxAddDateSearch',N'Add to Search','N','N') , (1999,'4/8/2010','de-DE','lnxbtnAdd',N'Produkt hinzufügen','N','N') , (1999,'4/14/2010','de-DE','lnxbtnApplyUpdate',N'Bewerben Update','N','N') , (1999,'4/14/2010','de-DE','lnxbtnApprove',N'Approve Audit','N','N') , (1999,'4/14/2010','de-DE','lnxbtnAssignTo',N'Vergeben Sie einen','N','N') , (1999,'4/14/2010','de-DE','lnxbtnClearSearch',N'Suche löschen','N','N') , (1999,'4/8/2010','de-DE','lnxbtnExit',N'Gehen','N','N') , (1999,'4/14/2010','de-DE','lnxbtnGenCertificate',N'Generate Certificate','N','N') , (1999,'4/14/2010','de-DE','lnxbtnGenerate',N'Generieren','N','N') , (1999,'4/14/2010','de-DE','lnxbtnGeneratePEA',N'Generieren','N','N') , (1999,'4/8/2010','de-DE','lnxbtnGo',N'Suche','N','N') , (1999,'4/14/2010','de-DE','lnxbtnHeader',N'Information','N','N') , (1999,'4/14/2010','de-DE','lnxbtnNew',N'Neu','N','N') , (1999,'4/14/2010','de-DE','lnxbtnOrigin',N'Rule of Origin','N','N') , (1999,'4/14/2010','de-DE','lnxbtnPCHSOverride',N'Legen Fraction Missing','N','N') , (1999,'4/14/2010','de-DE','lnxbtnProcessBOM',N'Lists of Materials Processing','N','N') , (1999,'4/14/2010','de-DE','lnxbtnReqCertificate',N'Certificate Request','N','N') , (1999,'7/11/2011','de-DE','lnxbtnReturnToDashboard',N'Rückkehr zum Armaturenbrett','N','N') , (1999,'1/16/2012','de-DE','lnxbtnSave',N'Außer','N','N') , (1999,'4/14/2010','de-DE','lnxbtnSave2',N'Sparen','N','N') , (1999,'4/14/2010','de-DE','lnxbtnSaveSigned',N'Save signiertes Zertifikat','N','N') , (1999,'4/14/2010','de-DE','lnxbtnSearch',N'Suche','N','N') , (1999,'4/8/2010','de-DE','lnxCheckWorkflow',N'Ergebnisse abzurufen','N','N') , (1999,'4/8/2010','de-DE','lnxClear',N'Sauber','N','N') , (1999,'4/14/2010','de-DE','lnxExport',N'Export','N','N') , (1999,'4/14/2010','de-DE','lnxnewsearch',N'Neue Suche','N','N') , (1999,'4/14/2010','de-DE','lnxSearchedColumnsClear',N'Sauber','N','N') , (1999,'4/14/2010','de-DE','lnxSearchedColumnsSave',N'Sparen','N','N') , (1999,'4/14/2010','de-DE','lnxShowDisplayColumns',N'Spalten einblenden','N','N') , (1999,'4/8/2010','de-DE','lnxSubmitWorkflow',N'Submit Company Chart','N','N') , (1999,'4/8/2010','de-DE','lnxUpload',N'Hochladen und senden Tabellenkalkulation','N','N') , (1999,'4/8/2010','de-DE','Name Type',N'Name Type','N','N') , (1999,'4/8/2010','de-DE','Next &gt',N'Nächste','N','N') , (1999,'4/14/2010','de-DE','Notes',N'Notes','N','N') , (1999,'4/14/2010','de-DE','NumOfProducts',N'Anzahl der gefundenen Produkte','N','N') , (1999,'4/14/2010','de-DE','Period Begin Date',N'Period Start Date','N','N') , (1999,'4/8/2010','de-DE','Postal Code',N'Postleitzahl','N','N') , (1999,'4/8/2010','de-DE','ProcessID',N'ProcessID','N','N') , (1999,'4/14/2010','de-DE','Product Type',N'Produkttyp','N','N') , (1999,'4/14/2010','de-DE','ProductNum',N'Produkt','N','N') , (1999,'4/14/2010','de-DE','PurchaseOrderNum_aspx',N'Bestellung suchen','N','N') , (1999,'4/14/2010','de-DE','rdxlstSearchType_0',N'Wiederkehrende','N','N') , (1999,'4/8/2010','de-DE','Reason',N'Grund','N','N') , (1999,'4/8/2010','de-DE','Reasons',N'Gründe','N','N') , (1999,'4/8/2010','de-DE','Regulation Name',N'Name der Verordnung','N','N') , (1999,'4/8/2010','de-DE','Remarks',N'Kommentare','N','N') , (1999,'4/14/2010','de-DE','Report',N'Bericht','N','N') , (1999,'4/14/2010','de-DE','Request Name',N'Application Name','N','N') , (1999,'4/14/2010','de-DE','Request Note',N'Notes','N','N') , (1999,'4/14/2010','de-DE','Request Status',N'Application Status','N','N') , (1999,'4/14/2010','de-DE','RequestName',N'Application Name','N','N') , (1999,'4/14/2010','de-DE','Rule Description',N'Regel Nummer','N','N') , (1999,'4/14/2010','de-DE','Search_aspx',N'Suche Produkt','N','N') , (1999,'4/14/2010','de-DE','Select All',N'Alle auswählen','N','N') , (1999,'4/14/2010','de-DE','SignatureDate',N'Unterzeichnet in','N','N') , (1999,'4/8/2010','de-DE','State',N'Zustand','N','N') , (1999,'4/8/2010','de-DE','Status',N'Zustand','N','N') , (1999,'4/8/2010','de-DE','Sub Country Code',N'Sub Code Land','N','N') , (1999,'4/14/2010','de-DE','SupplierID',N'Provider ID','N','N') , (1999,'4/14/2010','de-DE','Title',N'Titel','N','N') , (1999,'4/14/2010','de-DE','To',N'Bis','N','N') , (1999,'4/8/2010','de-DE','To Do',N'Zu','N','N') , (1999,'4/14/2010','de-DE','Transaction Value',N'Transaction Value','N','N') , (1999,'4/8/2010','de-DE','UniqueID',N'UniqueID','N','N') , (1999,'4/14/2010','de-DE','Username',N'UserName','N','N') , (1999,'4/14/2010','de-DE','View',N'Sehen','N','N') , (1999,'4/8/2010','de-DE','Website',N'Webseite','N','N') , (1999,'4/14/2010','de-DE','Yearly Volume',N'Jährlichen Volumen','N','N') , (1999,'3/10/2013','en-Avery','fmgDTSSpreadsheetImport_aspx',N'DPS Spreadsheet Import','N','N') , (1999,'3/10/2013','en-Avery','fxdDPSQuery_aspx',N'DPS Search','N','N') , (1999,'3/10/2013','en-Avery','fxdDTSHistory_aspx',N'DPS Management','N','N') , (1999,'3/10/2013','en-Avery','fxdDTSNotes_aspx',N'DPS Notes','N','N') , (1999,'3/10/2013','en-Avery','fxdDTSQuery_aspx',N'DPS Search','N','N') , (1999,'3/10/2013','en-Avery','fxdDTSQueryDetail_aspx',N'DPS Search Detail','N','N') , (1999,'3/10/2013','en-Avery','fxdDTSRegulationList_aspx',N'DPS Regulation List','N','N') , (1999,'3/10/2013','en-Avery','fxdDTSWebserviceTest_aspx',N'DPS Web Service Test','N','N') , (1999,'2/15/2016','en-US','{4} {5} items in {1} pages',N'{4} {5} items in {1} pages','N','N') , (1999,'11/3/2010','en-US','0F17980A-BFDB-4C10-B1A2-940F9EA28E90',N'NAFTA Reconciliation Summary Report','N','N') , (1999,'8/11/2015','en-US','Audit Date',N'Test','N','N') , (1999,'1/18/2010','en-US','AuditLog_aspx',N'Audit Log','N','N') , (1999,'11/1/2015','en-US','chx Select All',N'Select All','N','N') , (1999,'2/15/2016','en-US','chxbxAdvanceSearch',N'Guided Description Search','N','N') , (1999,'2/15/2016','en-US','chxbxContent',N'Show Content News','N','N') , (1999,'2/15/2016','en-US','chxbxDisplayQualifiedNumbers',N'Fully Qualified Numbers Only','N','N') , (1999,'2/15/2016','en-US','chxbxHighlightSearchTerms',N'Highligh Search Terms in Search Result','N','N') , (1999,'2/15/2016','en-US','chxbxIncludeParent',N'Include Parent Numbers','N','N') , (1999,'11/16/2018','en-US','chxbxIncludeValidationDetailInExtract',N'Include Validation Detail in Excel/PDF Extract','N','N') , (1999,'2/15/2016','en-US','chxbxIndustry',N'Show Industry News','N','N') , (1999,'2/15/2016','en-US','chxBxLastLogin',N'View Since Last Login:','N','N') , (1999,'2/15/2016','en-US','chxbxMarkingDescriptionsExpanded',N'Show Full Text for all Descriptions','N','N') , (1999,'2/15/2016','en-US','chxbxResultsDetail0_RoundAtEachStep',N'Round Values at each step','N','N') , (1999,'2/15/2016','en-US','chxbxResultsDetail0_ShowCalculationSteps',N'Show Calculation Steps','N','N') , (1999,'2/15/2016','en-US','chxbxResultsDetail1_RoundAtEachStep',N'Round Values at each step','N','N') , (1999,'2/15/2016','en-US','chxbxResultsDetail1_ShowCalculationSteps',N'Show Calculation Steps','N','N') , (1999,'2/15/2016','en-US','chxbxSaveSearches_PartnerIdShared',N'Share with other users (under the same Partner)','N','N') , (1999,'2/15/2016','en-US','chxbxSearchTypeBindingRulings',N'Binding Rulings','N','N') , (1999,'2/15/2016','en-US','chxbxSearchTypeChapterNotes',N'Chapter Notes','N','N') , (1999,'2/15/2016','en-US','chxbxSearchTypeChargesNotes',N'Charges Notes','N','N') , (1999,'2/15/2016','en-US','chxbxSearchTypeHSDescription',N'HS Description','N','N') , (1999,'2/15/2016','en-US','chxbxSearchTypeHSNumber',N'HS Number','N','N') , (1999,'2/15/2016','en-US','chxbxSearchTypeKeywords',N'Keywords','N','N') , (1999,'2/15/2016','en-US','chxbxShowAllAvailableControls',N'Show All Available Controls Descriptions','N','N') , (1999,'2/15/2016','en-US','chxbxShowAllCountriesChargeDocuments',N'Show Documents that apply to All Countries','N','N') , (1999,'2/15/2016','en-US','chxbxShowAllCountriesControls',N'Show Documents that apply to All Countries','N','N') , (1999,'2/15/2016','en-US','chxbxShowAllCountriesImportControls',N'Show Documents that apply to All Countries','N','N') , (1999,'2/15/2016','en-US','chxbxShowAllFTACountries',N'Show Documents that apply to All Countries','N','N') , (1999,'2/15/2016','en-US','chxbxShowAllHSCharge',N'Show Documents that apply to All HS Numbers','N','N') , (1999,'2/15/2016','en-US','chxbxShowAllHSControls',N'Show Documents that apply to All HS Numbers','N','N') , (1999,'2/15/2016','en-US','chxbxShowAllHSImportControls',N'Show Documents that apply to All HS Numbers','N','N') , (1999,'2/15/2016','en-US','chxbxShowAllHSNumbers',N'Show Documents that apply to All HS Numbers','N','N') , (1999,'2/15/2016','en-US','chxbxShowAllMainRates',N'Show All Main Rates','N','N') , (1999,'2/15/2016','en-US','chxbxShowAntiDumping',N'Show Other/AntiDumping Rates','N','N') , (1999,'2/15/2016','en-US','chxbxShowChapterFilters',N'Show Chapter Filters','N','N') , (1999,'2/15/2016','en-US','chxbxShowDescriptionInResult',N'Show HS Description in Result','N','N') , (1999,'2/15/2016','en-US','chxbxShowFullDescriptionControls',N'Show Full Descriptions for all Controls','N','N') , (1999,'2/15/2016','en-US','chxbxShowFullNoteText',N'Show Full Text for all Notes','N','N') , (1999,'2/15/2016','en-US','chxbxShowHeadingFilters',N'Show Heading Filters','N','N') , (1999,'2/15/2016','en-US','chxbxShowMatchesFilters',N'Show Matches Filters','N','N') , (1999,'2/15/2016','en-US','chxbxShowPartnerIdShared',N'Show Searches Shared by other users','N','N') , (1999,'2/15/2016','en-US','chxbxShowRecentSearches',N'Show Recent Searches','N','N') , (1999,'2/15/2016','en-US','chxbxShowRecentSelections',N'Show Recent Global Classification Selections','N','N') , (1999,'2/15/2016','en-US','chxbxShowResultsFilters',N'Show Results Filters','N','N') , (1999,'2/15/2016','en-US','chxbxShowSavedSearches',N'Show Saved Searches','N','N') , (1999,'2/15/2016','en-US','chxbxShowUnsavedSearches',N'Show Unsaved Searches','N','N') , (1999,'11/1/2015','en-US','chxSelectAll',N'Select All','N','N') , (1999,'10/15/2014','en-US','Classification Request Upload',N'fmgClassificationRequestUpload_aspx','N','N') , (1999,'10/15/2014','en-US','Classification Update',N'fmgClassificationUpdate_aspx','N','N') , (1999,'9/16/2010','en-US','ClientContentManagement_aspx',N'Tariff Updates','N','N') , (1999,'2/15/2016','en-US','cmxbHSNumberDescription_00',N'Match Entire Phrase','N','N') , (1999,'2/15/2016','en-US','cmxbHSNumberDescription_01',N'Match All Word(s)','N','N') , (1999,'2/15/2016','en-US','cmxbHSNumberDescription_02',N'Match Any Word(s)','N','N') , (1999,'9/16/2010','en-US','CompanyProductRequest_aspx',N'Customer Certificate Request','N','N') , (1999,'2/2/2012','en-US','CountryCode',N'CountryView','N','N') , (1999,'2/15/2016','en-US','drxlstAddSystemMessagesShareDuration',N'1','N','N') , (1999,'2/15/2016','en-US','drxlstAddSystemMessagesShareDuration_00',N'1 Day','N','N') , (1999,'2/15/2016','en-US','drxlstAddSystemMessagesShareDuration_01',N'2 Days','N','N') , (1999,'2/15/2016','en-US','drxlstAddSystemMessagesShareDuration_02',N'3 Days','N','N') , (1999,'2/15/2016','en-US','drxlstAddSystemMessagesShareDuration_03',N'4 Days','N','N') , (1999,'2/15/2016','en-US','drxlstAddSystemMessagesShareDuration_04',N'5 Days','N','N') , (1999,'2/15/2016','en-US','drxlstGroupBy_00',N'Country Of Origin','N','N') , (1999,'2/15/2016','en-US','drxlstGroupBy_01',N'HS Number','N','N') , (1999,'2/15/2016','en-US','drxlstGroupBy_02',N'None','N','N') , (1999,'2/22/2010','en-US','drxProductFTAMaintStatus_00',N'Active','N','N') , (1999,'2/22/2010','en-US','drxProductFTAMaintStatus_01',N'Expired','N','N') , (1999,'2/22/2010','en-US','drxProductFTAMaintStatus_02',N'Void','N','N') , (1999,'3/10/2013','en-US','DTSCompanyName',N'DPSCompanyName','N','N') , (1999,'3/10/2013','en-US','DTSLastScreenedDate',N'DPSLastScreenedDate','N','N') , (1999,'3/10/2013','en-US','DTSLastValidatedDate',N'DPSLastValidatedDate','N','N') , (1999,'3/10/2013','en-US','DTSMatchFlag',N'DPSMatchFlag','N','N') , (1999,'3/10/2013','en-US','DTSOverride',N'DPSOverride','N','N') , (1999,'3/10/2013','en-US','DTSOverrideDate',N'DPSOverrideDate','N','N') , (1999,'3/10/2013','en-US','DTSSearchFlag',N'DPSSearchFlag','N','N') , (1999,'3/10/2013','en-US','DTSStatus',N'DPSStatus','N','N') , (1999,'1/18/2010','en-US','Edit_aspx',N'Edit Classification','N','N') , (1999,'4/8/2014','en-US','ffdMXDigitizeDocument_aspx',N'Digitize Document','N','N') , (1999,'4/8/2014','en-US','ffdMXWorkWithDigitizeDocuments_aspx',N'Digitize Documents','N','N') , (1999,'9/21/2016','en-US','fid BOM Analysis Upload_aspx',N'Edit/Upload Bill of Materials','N','N') , (1999,'9/21/2016','en-US','fidBOMAnalysisUpload_aspx',N'Edit/Upload Bills of Material','N','N') , (1999,'9/28/2012','en-US','fidExportCISLI_aspx',N'{0}','N','N') , (1999,'1/18/2010','en-US','fidFTABOMRulesAnalysis_aspx',N'BOM Analysis','N','N') , (1999,'1/18/2010','en-US','fidFTAMassAnalysis_aspx',N'Mass BOM Analysis','N','N') , (1999,'6/11/2011','en-US','fidManualShipments_aspx',N'Manual Shipments','N','N') , (1999,'1/18/2010','en-US','fidProductFTAMaint_aspx',N'FTA Product Records','N','N') , (1999,'2/15/2016','en-US','FILTER_Contains',N'Contains','N','N') , (1999,'2/15/2016','en-US','FILTER_DoesNotContain',N'DoesNotContain','N','N') , (1999,'2/15/2016','en-US','FILTER_EndsWith',N'EndsWith','N','N') , (1999,'2/15/2016','en-US','FILTER_EqualTo',N'EqualTo','N','N') , (1999,'2/15/2016','en-US','FILTER_GreaterThan',N'GreaterThan','N','N') , (1999,'2/15/2016','en-US','FILTER_GreaterThanOrEqualTo',N'GreaterThanOrEqualTo','N','N') , (1999,'2/15/2016','en-US','FILTER_IsEmpty',N'IsEmpty','N','N') INSERT INTO tmgPartnerCultureDefinitions(PartnerId,EffDate,CultureGuid,FieldName,FieldTranslation,DeletedFlag,KeepDuringRollback) VALUES (1999,'2/15/2016','en-US','FILTER_LessThan',N'LessThan','N','N') , (1999,'2/15/2016','en-US','FILTER_LessThanOrEqualTo',N'LessThanOrEqualTo','N','N') , (1999,'2/15/2016','en-US','FILTER_NoFilter',N'NoFilter','N','N') , (1999,'2/15/2016','en-US','FILTER_NotEqualTo',N'NotEqualTo','N','N') , (1999,'2/15/2016','en-US','FILTER_NotIsEmpty',N'NotIsEmpty','N','N') , (1999,'2/15/2016','en-US','FILTER_StartsWith',N'StartsWith','N','N') , (1999,'3/3/2017','en-US','fmdESignatureSetup_aspx',N'Electronic Signature Setup','N','N') , (1999,'7/7/2014','en-US','fmdMXDocumentRules_aspx',N'MX Document Rules','N','N') , (1999,'7/16/2015','en-US','fmdMXMaintainPermit_aspx',N'Maintain MX Permits','N','N') , (1999,'7/16/2015','en-US','fmdMXMaintainSAAICatalogs_aspx',N'MX SAAI Catalog Maintenance','N','N') , (1999,'7/16/2015','en-US','fmdMXPermits_aspx',N'MX Permits','N','N') , (1999,'2/15/2016','en-US','fmgAddKnowledge_aspx',N'Add/Edit Knowledge','N','N') , (1999,'10/3/2013','en-US','fmgClassificationSetBreakDown_aspx',N'Set BreakDown','N','N') , (1999,'3/10/2013','en-US','fmgDTSSpreadsheetImport_aspx',N'DPS Spreadsheet Import','N','N') , (1999,'10/3/2013','en-US','fmgEquipmentMaintenance_aspx',N'Equipment Maintenance','N','N') , (1999,'2/15/2016','en-US','fmgKnowledgeProfile_aspx',N'Knowledge Profile','N','N') , (1999,'1/18/2010','en-US','fmgMaintenance_aspx',N'Reports/Requests Summary','N','N') , (1999,'11/10/2010','en-US','fmgRulesEntry_aspx',N'Rules Entry','N','N') , (1999,'4/8/2014','en-US','fmgStaticBom_aspx',N'Maintain Static BOM','N','N') , (1999,'2/15/2016','en-US','fmgSubscriptionManagement_aspx',N'Content Subscriptions','N','N') , (1999,'11/10/2010','en-US','fmgSupplierDashboard_aspx',N'Supplier Dashboard','N','N') , (1999,'9/16/2010','en-US','fmgWorkQueue_aspx',N'Customer Request Detail','N','N') , (1999,'5/3/2016','en-US','frdComponentUseReport_aspx',N'Component Use Report','N','N') , (1999,'11/10/2010','en-US','frdFTACert_aspx',N'FTA Certificates','N','N') , (1999,'7/11/2011','en-US','frdFTASupplierCert_aspx',N'Supplier Certificate','N','N') , (1999,'10/3/2013','en-US','frdManifestacionDeValor_aspx',N'Valuation Declaration','N','N') , (1999,'2/17/2015','en-US','frdMXAnnex31Discharges_aspx',N'MX Annex 31 Discharges','N','N') , (1999,'2/17/2015','en-US','frdMXAnnex31InitialBalances_aspx',N'Annex 31 Initial Balances','N','N') , (1999,'12/17/2013','en-US','frdMXPedimentoAgingInquiry_aspx',N'Pedimento Aging Inquiry','N','N') , (1999,'11/16/2018','en-US','frdMXPedimentoReports_aspx',N'Pedimento Reports','N','N') , (1999,'10/3/2013','en-US','frdMXRelacionDeDocumentos_aspx',N'Cargo Consolidation Report','N','N') , (1999,'7/16/2015','en-US','frdMXSubMaquilaReport_aspx',N'MX Submaquila Report','N','N') , (1999,'1/18/2010','en-US','frdNonFTACert_aspx',N'Non FTA Letter','N','N') , (1999,'4/8/2014','en-US','frdStaticBOMReport_aspx',N'Static BOM Report','N','N') , (1999,'9/14/2010','en-US','fta_maintenance_CompanyProductRequest_aspx',N'Customer Product Request','N','N') , (1999,'1/18/2010','en-US','fta_maintenance_fmgworkqueue_aspx',N'Customer Request Detail','N','N') , (1999,'2/15/2016','en-US','fugBindingRulings_aspx',N'Rulings','N','N') , (1999,'2/15/2016','en-US','fugContentAttributes_aspx',N'Global Trade Content Attributes','N','N') , (1999,'2/15/2016','en-US','fugContentExternalTemplate_aspx',N'Content External Template','N','N') , (1999,'2/15/2016','en-US','fugContentSalesOverview_aspx',N'Content Sales Overview','N','N') , (1999,'2/15/2016','en-US','fugCountryInfoDetail_aspx',N'Country Information','N','N') , (1999,'2/15/2016','en-US','fugDocumentAnalyzer_aspx',N'Document Analyzer','N','N') , (1999,'1/18/2010','en-US','fugDocumentRequests_aspx',N'Certificate Request','N','N') , (1999,'2/15/2016','en-US','fugDTSLookup_aspx',N'DPS Query','N','N') , (1999,'2/15/2016','en-US','fugDutyTaxAnalyzer_aspx',N'Duty and Tax Analyzer','N','N') , (1999,'2/15/2016','en-US','fugECCN_aspx',N'ECN/Dual Use List','N','N') , (1999,'2/15/2016','en-US','fugECCNDetail_aspx',N'ECN/Dual Use List (Quick Lookup)','N','N') , (1999,'2/15/2016','en-US','fugeccnlookup_aspx',N'ECN Query','N','N') , (1999,'2/15/2016','en-US','fugGlobalTariffs_aspx',N'Global Tariffs','N','N') , (1999,'2/15/2016','en-US','fugGlobalTariffsDetail_aspx',N'Global Tariffs (Quick Lookup)','N','N') , (1999,'2/15/2016','en-US','fugGlobalTariffsLanding_aspx',N'Global Tariffs','N','N') , (1999,'2/15/2016','en-US','fugGlobalTariffsLookup_aspx',N'Global Tariffs Query','N','N') , (1999,'2/15/2016','en-US','fugImportExportVolumes_aspx',N'Import/Export Volume Analyzer','N','N') , (1999,'2/15/2016','en-US','fugKnowledge_aspx',N'Knowledge Network','N','N') , (1999,'2/15/2016','en-US','fugKnowledgeDetail_aspx',N'Knowledge Detail','N','N') , (1999,'2/15/2016','en-US','fugLandedCostAnalyzer_aspx',N'Landed Cost Analyzer','N','N') , (1999,'2/15/2016','en-US','fugLegalText_aspx',N'Legal Text','N','N') , (1999,'2/19/2010','en-US','fugMassUpdate_aspx',N'Mass Update','N','N') , (1999,'2/15/2016','en-US','fugMessages_aspx',N'System Messages','N','N') , (1999,'11/7/2015','en-US','fugMXAssignPedimentoScrap_aspx',N'MX Assign Pedimento to Scrap Invoice','N','N') , (1999,'2/17/2015','en-US','fugMXCalculatedExpirationDate_aspx',N'MX Calculate Expiration Date','N','N') , (1999,'11/16/2018','en-US','fugMXConnector_aspx',N'VUCEM Pedimento','N','N') , (1999,'7/7/2014','en-US','fugMXDataStage_aspx',N'Data Stage','N','N') , (1999,'7/7/2014','en-US','fugMXDataStageComparison_aspx',N'Data Stage Comparison','N','N') , (1999,'11/11/2016','en-US','fugMXDigitalFiles_aspx',N'Pedimento Digital Files/Data','N','N') , (1999,'1/21/2016','en-US','fugMXEditPostFifoRecords_aspx',N'MX Edit Post Fifo Records','N','N') , (1999,'11/7/2015','en-US','fugMXPermitBalancesDischarges_aspx',N'MX Permits Balances/Discharges','N','N') , (1999,'8/25/2016','en-US','fugMXRectification_aspx',N'Rectification','N','N') , (1999,'5/3/2016','en-US','fugMXStaticBOMMassUpdate_aspx',N'MX Static BOM Mass Update','N','N') , (1999,'7/16/2015','en-US','fugMXSubmaquilaBalancesDischarges_aspx',N'MX Submaquila Balances/Discharges Process','N','N') , (1999,'1/18/2018','en-US','fugMXVUCEMPedimento_aspx',N'VUCEM Pedimento','N','N') , (1999,'1/18/2018','en-US','fugMXWorkWithDigitalFiles_aspx',N'Work with Digital Files (summary)','N','N') , (1999,'2/15/2016','en-US','fugRegulationListUpdates_aspx',N'Regulation List Updates','N','N') , (1999,'2/15/2016','en-US','fugsearchhistorydetail_aspx',N'Search History Detail','N','N') , (1999,'9/16/2010','en-US','fugSourcingMatrix_aspx',N'Tariff Analyzer','N','N') , (1999,'2/13/2011','en-US','fugTariffAnalyzer_aspx',N'Tariff Analyzer','N','N') , (1999,'2/15/2016','en-US','fugTariffAnalyzerNew_aspx',N'Tariff Analyzer','N','N') , (1999,'2/15/2016','en-US','fugTariffUpdates_aspx',N'Tariff Updates','N','N') , (1999,'2/15/2016','en-US','fugWCOIndex_aspx',N'WCO Alphabetical Index','N','N') , (1999,'2/15/2016','en-US','fugwconotes_aspx',N'WCO Explanatory Notes','N','N') , (1999,'3/10/2013','en-US','fxdDPSQuery_aspx',N'DPS Search','N','N') , (1999,'3/10/2013','en-US','fxdDTSHistory_aspx',N'DPS Management','N','N') , (1999,'3/10/2013','en-US','fxdDTSNotes_aspx',N'DPS Notes','N','N') , (1999,'3/10/2013','en-US','fxdDTSQuery_aspx',N'DPS Search','N','N') , (1999,'3/10/2013','en-US','fxdDTSQueryDetail_aspx',N'DPS Search Detail','N','N') , (1999,'3/10/2013','en-US','fxdDTSRegulationList_aspx',N'DPS Regulation List','N','N') , (1999,'3/10/2013','en-US','fxdDTSWebserviceTest_aspx',N'DPS Web Service Test','N','N') , (1999,'5/17/2010','en-US','fxdEntryValidation_aspx',N'Entry Validation','N','N') , (1999,'5/17/2010','en-US','fxdEntryVisibilitySummary_aspx',N'Entry Visibility Summary','N','N') , (1999,'10/3/2013','en-US','fxdMXCancelInvoice_aspx',N'Cancel Invoice','N','N') , (1999,'10/3/2013','en-US','fxdMXCloseInvoices_aspx',N'Close Invoices','N','N') , (1999,'10/3/2013','en-US','fxdMXConstanciaCapture_aspx',N'Capture Constancia Shipment Data','N','N') , (1999,'10/3/2013','en-US','fxdMXConstanciaReceipt_aspx',N'Process Constancia Receipt','N','N') , (1999,'5/12/2017','en-US','fxdMXDODA_aspx',N'MX DODA','N','N') , (1999,'5/12/2017','en-US','fxdMXDODAInvoiceSelection_aspx',N'DODA Invoice Selection','N','N') , (1999,'10/3/2013','en-US','fxdMXEditInvoice_aspx',N'Edit Invoice','N','N') , (1999,'10/3/2013','en-US','fxdMXInvoiceCOVE_aspx',N'Process COVE','N','N') , (1999,'11/11/2016','en-US','fxdMXInvoiceSubDiv_aspx',N'MX Invoice Subdivision','N','N') , (1999,'5/12/2017','en-US','fxdMXMaintainDODA_aspx',N'Maintain DODA','N','N') , (1999,'10/3/2013','en-US','fxdMXMaintainPedimento_aspx',N'Maintain SAAI Pedimento','N','N') , (1999,'7/16/2015','en-US','fxdMXMaintainPlantWarehouse_aspx',N'Maintain Plant/Warehouse','N','N') , (1999,'4/23/2015','en-US','fxdMXMaintainTransferNotice_aspx',N'Maintain Transfer Notice','N','N') , (1999,'10/3/2013','en-US','fxdMXPrevalidateInvoice_aspx',N'Validate Invoice','N','N') , (1999,'10/3/2013','en-US','fxdMXPrintInvoice_aspx',N'Print Invoices','N','N') , (1999,'10/3/2013','en-US','fxdMXProcessCOVE_aspx',N'COVE Processing','N','N') , (1999,'10/3/2013','en-US','fxdMXProcessSaaiResponses_aspx',N'Process SAAI Responses','N','N') , (1999,'10/3/2013','en-US','fxdMXSaaiBatchSend_aspx',N'SAAI Batch Transmission','N','N') , (1999,'4/23/2015','en-US','fxdMXTransferNotice_aspx',N'MX Transfer Notice','N','N') , (1999,'2/17/2015','en-US','fxdMXWorkWithInvoices_aspx',N'Work With Invoices','N','N') , (1999,'10/3/2013','en-US','fxdMXWorkWithPedimentos_aspx',N'Work with SAAI Pedimentos','N','N') , (1999,'6/29/2017','EN-US','GetSetType_Clock/Watch',N'Clock/Watch','N','N') , (1999,'6/29/2017','EN-US','GetSetType_Set',N'Set','N','N') , (1999,'6/29/2017','EN-US','GetStatus_Active',N'Active','N','N') , (1999,'6/29/2017','EN-US','GetStatus_Inactive',N'Inactive','N','N') , (1999,'5/6/2013','en-US','hlxbtnSubmit',N'Submit','N','N') , (1999,'2/26/2010','en-US','hlxProduct',N'Product','N','N') , (1999,'2/15/2016','en-US','hyxlinkResultsDetail0_Close',N'Close','N','N') , (1999,'2/15/2016','en-US','hyxlinkResultsDetail0_Duplicate',N'(duplicate and compare)','N','N') , (1999,'2/15/2016','en-US','hyxlinkResultsDetail1_Close',N'Close','N','N') , (1999,'2/15/2016','en-US','hyxlinkResultsDetail1_Duplicate',N'(duplicate and compare)','N','N') , (1999,'8/29/2018','en-US','hyxlnk Country Info',N'CountryInformation','N','N') , (1999,'2/15/2016','en-US','hyxlnkAddSystemMessages',N'Save','N','N') , (1999,'2/15/2016','en-US','hyxlnkAdvancedSearch',N'Advanced Search','N','N') , (1999,'2/15/2016','en-US','hyxlnkAutoSize',N'AutoSize','N','N') , (1999,'2/15/2016','en-US','hyxlnkBottomOfPage',N'Bottom','N','N') , (1999,'2/15/2016','en-US','hyxlnkCancelSystemMessages',N'Cancel','N','N') , (1999,'2/15/2016','en-US','hyxlnkCCLCC',N'Commerce Control List Country Chart','N','N') , (1999,'3/10/2015','en-US','hyxlnkChangeDashboard',N'Change Dashboard ({0})','N','N') , (1999,'2/15/2016','en-US','hyxlnkClose',N'Close','N','N') , (1999,'2/15/2016','en-US','hyxlnkExit',N'Exit','N','N') , (1999,'2/15/2016','en-US','hyxlnkFavorites',N'Favorites','N','N') , (1999,'2/15/2016','en-US','hyxlnkFavoritesImage',N'Favorites','N','N') , (1999,'2/15/2016','en-US','hyxlnkFullSite',N'Show Full Site','N','N') , (1999,'2/15/2016','en-US','hyxlnkGenerateLink',N'Recent Searches (old)','N','N') , (1999,'2/15/2016','en-US','hyxlnkGlobalClassificationSelection',N'Select From Global Classification','N','N') , (1999,'2/15/2016','en-US','hyxlnkLogout',N'Logout','N','N') , (1999,'2/15/2016','en-US','hyxlnkManageProfiles',N'Manage Profiles','N','N') , (1999,'2/15/2016','en-US','hyxlnkManageSearches',N'Recent Searches/Global Classification Selections','N','N') , (1999,'2/15/2016','en-US','hyxlnkManageSearchesNew',N'Manage Searches','N','N') , (1999,'2/15/2016','en-US','hyxlnkMaximize',N'Maximize','N','N') , (1999,'2/15/2016','en-US','hyxlnkMobileMainMenu',N'Main Menu','N','N') , (1999,'2/15/2016','en-US','hyxlnkMobileSite',N'Show Mobile Site','N','N') , (1999,'2/15/2016','en-US','hyxlnkMobileSiteBackup',N'Show Mobile Site','N','N') , (1999,'2/15/2016','en-US','hyxlnkMultipleMatchingECN',N'See the Search Results again','N','N') , (1999,'2/15/2016','en-US','hyxlnkNewSearch',N'New Search','N','N') , (1999,'2/15/2016','en-US','hyxlnkOrigination_BindingRulingsAdvancedSearch',N'Origin Binding Rulings Advanced Search','N','N') , (1999,'2/15/2016','en-US','hyxlnkPopOut',N'Open in New Browser Window','N','N') , (1999,'2/15/2016','en-US','hyxlnkRecentSearches',N'Recent Searches','N','N') , (1999,'2/15/2016','en-US','hyxlnkRefresh',N'Refresh','N','N') , (1999,'2/15/2016','en-US','hyxlnkReload',N'Reload','N','N') , (1999,'2/15/2016','en-US','hyxlnkSaveCurrentSearch',N'Save Current Search','N','N') , (1999,'2/15/2016','en-US','hyxlnkSaveSearch',N'Save Search','N','N') , (1999,'2/15/2016','en-US','hyxlnkStartOver',N'Refresh','N','N') , (1999,'3/10/2015','en-US','hyxlnkToggleAvailableDocks',N'Available Docs ({0})','N','N') , (1999,'2/15/2016','en-US','hyxlnkTopOfPage',N'Top of Screen','N','N') , (1999,'2/15/2016','en-US','hyxlnkUnsavedSearches',N'Unsaved Searches','N','N') , (1999,'2/15/2016','en-US','hyxlnkViewDutyDetails',N'View Duty Details','N','N') , (1999,'2/15/2016','en-US','hyxlnkViewFTADetails',N'View FTA Rule of Origin Details','N','N') , (1999,'2/15/2016','en-US','hyxTop',N'Top Of Page','N','N') , (1999,'9/21/2010','en-US','interfaces_fidSetKitManagement_aspx',N'Set/Kit Management','N','N') , (1999,'8/1/2017','en-US','JPGCS01',N'ECNNum2','N','N') , (1999,'8/1/2017','en-US','JPGCS02',N'ECNNum3','N','N') , (1999,'8/1/2017','en-US','JPGCS11',N'Category1','N','N') , (1999,'8/1/2017','en-US','JPGCS12',N'Category2','N','N') , (1999,'8/1/2017','en-US','JPGCS13',N'Category3','N','N') , (1999,'4/27/2010','en-US','lblxBOMGuid',N'BOM Search','N','N') , (1999,'10/20/2016','en-US','lbx CPE Msg Data',N'Entry Field Da','N','N') , (1999,'10/20/2016','en-US','lbx CPE Msg Data Open',N'Entry Field Data','N','N') , (1999,'12/15/2015','en-US','lbx De Minimis',N'DeMinimis','N','N') , (1999,'2/15/2016','en-US','lbxActualExcludedTerms',N'Excluded Search Terms:','N','N') , (1999,'2/15/2016','en-US','lbxActualSearchSymbols',N'Excluded Search Terms with Symbols:','N','N') , (1999,'2/15/2016','en-US','lbxActualSearchTerms',N'Search Terms Used:','N','N') , (1999,'2/15/2016','en-US','lbxAddSystemMessagesAdditionalComments',N'Additional Comments:','N','N') , (1999,'2/15/2016','en-US','lbxAddSystemMessagesDescription',N'Message:','N','N') , (1999,'2/15/2016','en-US','lbxAddSystemMessagesShareDuration',N'Share Duration:','N','N') , (1999,'2/15/2016','en-US','lbxAgencies',N'Agencies','N','N') , (1999,'2/15/2016','en-US','lbxAvailableFTA',N'Available FTAs/Trade Agreements','N','N') , (1999,'2/15/2016','en-US','lbxBindingRulings',N'Binding Rulings','N','N') , (1999,'4/27/2010','en-US','lbxBOMGuid',N'BOM Search','N','N') , (1999,'2/15/2016','en-US','lbxChapterBxFields',N'Selected Chapters:','N','N') , (1999,'2/15/2016','en-US','lbxChapterDescription',N'Chapter/Description:','N','N') , (1999,'2/15/2016','en-US','lbxChargeQuotasTab',N'Quotas','N','N') , (1999,'2/15/2016','en-US','lbxContentAvailability',N'Content Availability','N','N') , (1999,'2/15/2016','en-US','lbxCountryBxFields',N'Selected Countries:','N','N') , (1999,'2/15/2016','en-US','lbxCountryCustomsDocuments',N'Customs Documents','N','N') , (1999,'2/15/2016','en-US','lbxCountryFilter',N'Country:','N','N') , (1999,'2/15/2016','en-US','lbxCountryFinancialDocuments',N'Financial Documents','N','N') , (1999,'2/15/2016','en-US','lbxCountryLevelControls',N'Country Level Controls','N','N') , (1999,'2/15/2016','en-US','lbxCountryOfDestination',N'Destination Country','N','N') , (1999,'2/15/2016','en-US','lbxCountryOfDestinationTitleFields',N'Select Destination Country','N','N') , (1999,'2/15/2016','en-US','lbxCountryOfExport',N'Country Of Export','N','N') , (1999,'2/15/2016','en-US','lbxCountryOfImport',N'Country Of Import','N','N') , (1999,'2/15/2016','en-US','lbxCountryOfOrigin',N'Country Of Origin','N','N') , (1999,'2/15/2016','en-US','lbxCountryOfOriginDestination',N'Country of Origin / Destination Filter','N','N') , (1999,'2/15/2016','en-US','lbxCountryOfOriginTitleFields',N'Select Origin Country','N','N') , (1999,'2/15/2016','en-US','lbxCountryThreat',N'Country Threat','N','N') , (1999,'2/15/2016','en-US','lbxCountryThreatEmpty',N'Country Threat information not available.','N','N') , (1999,'2/15/2016','en-US','lbxCountryTransportationDocuments',N'Transportation Documents','N','N') , (1999,'2/15/2016','en-US','lbxCulture',N'Current Language:','N','N') , (1999,'2/15/2016','en-US','lbxCultureCode',N'Description/Controls/Notes Culture','N','N') , (1999,'2/15/2016','en-US','lbxCultureCode1',N'Culture Code:','N','N') , (1999,'2/15/2016','en-US','lbxCurrency',N'Available Currency Code(s)','N','N') , (1999,'2/15/2016','en-US','lbxCurrencyEmpty',N'Currency information not available.','N','N') , (1999,'2/15/2016','en-US','lbxCurrentDateDataDisplay',N'Dates are shown using:','N','N') , (1999,'12/15/2015','en-US','lbxDeMinimis',N'DeMinimis','N','N') , (1999,'2/15/2016','en-US','lbxDescriptionSearchType',N'Description Search Types','N','N') , (1999,'2/15/2016','en-US','lbxDestinationCountry',N'Country of Destination:','N','N') , (1999,'2/15/2016','en-US','lbxDocumentContacts',N'Contacts Information','N','N') , (1999,'2/15/2016','en-US','lbxDocumentDetail',N'Document Detail','N','N') , (1999,'2/15/2016','en-US','lbxDocumentDetailTab',N'Document Detail','N','N') , (1999,'2/15/2016','en-US','lbxDocumentNotes',N'Notes','N','N') , (1999,'2/15/2016','en-US','lbxDocumentSamples',N'Samples','N','N') , (1999,'2/15/2016','en-US','lbxDocumentsMessage',N'Not all Documents may be required, some may only be required based on product description.','N','N') , (1999,'2/15/2016','en-US','lbxECN',N'ECN Number / Description','N','N') , (1999,'2/15/2016','en-US','lbxECNFilter',N'ECN Number Filter','N','N') , (1999,'2/15/2016','en-US','lbxEffectiveDate',N'Effective Date','N','N') , (1999,'2/15/2016','en-US','lbxEffectivityDate',N'Effective Date','N','N') , (1999,'2/15/2016','en-US','lbxEmptyECNText',N'Please Enter/Select an exact ECN Number to view','N','N') , (1999,'2/15/2016','en-US','lbxEmptyHSNumberText',N'Please Enter/Select an exact HS Number to view','N','N') , (1999,'2/15/2016','en-US','lbxExpirationDate',N'Expiration Date','N','N') , (1999,'2/15/2016','en-US','lbxExportCharges',N'Export Charges','N','N') , (1999,'2/15/2016','en-US','lbxExportControl',N'Export Control List(s)','N','N') , (1999,'2/15/2016','en-US','lbxExportControls',N'Export Controls','N','N') , (1999,'2/15/2016','en-US','lbxExportCountryCustomsDocuments',N'Export Customs Documents','N','N') , (1999,'2/15/2016','en-US','lbxExportCountryFinancialDocuments',N'Export Financial Documents','N','N') , (1999,'2/15/2016','en-US','lbxExportCountryTransportationDocuments',N'Export Transportation Documents','N','N') , (1999,'2/15/2016','en-US','lbxFilterResultDescription',N'Filter Result Description','N','N') , (1999,'2/15/2016','en-US','lbxFilterResultDescriptionOptions',N'Filter Search Result Options','N','N') , (1999,'2/15/2016','en-US','lbxFutureRatesTab',N'Future Rates','N','N') , (1999,'2/15/2016','en-US','lbxGeneratedInputsUOMIntro',N'Please enter the inputs for','N','N') , (1999,'6/29/2017','EN-US','lbxGetSetType_Clock/Watch',N'Clock/Watch','N','N') , (1999,'6/29/2017','EN-US','lbxGetSetType_Set',N'Set','N','N') , (1999,'6/29/2017','EN-US','lbxGetStatus_Active',N'Active','N','N') , (1999,'6/29/2017','EN-US','lbxGetStatus_Inactive',N'Inactive','N','N') , (1999,'3/3/2017','en-US','lbxGoHome',N'Exit','N','N') , (1999,'2/15/2016','en-US','lbxGroupBy',N'Group Result By:','N','N') , (1999,'2/15/2016','en-US','lbxHeader',N'Header Details','N','N') , (1999,'2/15/2016','en-US','lbxHolidays',N'Holidays','N','N') , (1999,'2/15/2016','en-US','lbxHSFilter',N'HS Number Filter','N','N') , (1999,'2/15/2016','en-US','lbxHSMaintenanceLogText',N'HS Maintenance Log','N','N') , (1999,'2/15/2016','en-US','lbxHSNumber',N'HS Number / Description','N','N') , (1999,'2/15/2016','en-US','lbxHSNumberDescription',N'HS Number/Description','N','N') , (1999,'2/15/2016','en-US','lbxHSNumberFilter',N'HS Number Filter','N','N') , (1999,'2/15/2016','en-US','lbxHSNumberSelection',N'HSNumber','N','N') , (1999,'2/15/2016','en-US','lbxHSNumberSelectionSettings',N'Which Chapter/Description would you like to be your default?','N','N') , (1999,'2/15/2016','en-US','lbxHSNumberTitle',N'HS Number (Optional)','N','N') , (1999,'2/15/2016','en-US','lbxHSNumberTitleFields',N'Select HS Number','N','N') , (1999,'2/15/2016','en-US','lbxImageNoAvailable',N'No Image Available','N','N') , (1999,'2/15/2016','en-US','lbxImportControls',N'Import Controls','N','N') , (1999,'2/15/2016','en-US','lbxImportValuesByCountry',N'Import Volume by Country','N','N') , (1999,'2/15/2016','en-US','lbxIncludeInflectional',N'Include Inflectional Form','N','N') , (1999,'2/15/2016','en-US','lbxIncludeSpecialSymbols',N'Include the Excluded Search Terms with Symbols','N','N') , (1999,'2/15/2016','en-US','lbxIndustryBxFields',N'Selected Industries:','N','N') , (1999,'8/1/2017','en-US','lbxJPGCS01',N'ECNNum2','N','N') , (1999,'8/1/2017','en-US','lbxJPGCS02',N'ECNNum3','N','N') , (1999,'8/1/2017','en-US','lbxJPGCS11',N'Category1','N','N') , (1999,'8/1/2017','en-US','lbxJPGCS12',N'Category2','N','N') , (1999,'8/1/2017','en-US','lbxJPGCS13',N'Category3','N','N') , (1999,'2/15/2016','en-US','lbxKnowledgeProfile',N'Knowledge Profile','N','N') , (1999,'2/15/2016','en-US','lbxLstBxChapter',N'Select Chapters:','N','N') , (1999,'2/15/2016','en-US','lbxLstBxCountry',N'Select Countries:','N','N') , (1999,'2/15/2016','en-US','lbxLstBxIndustry',N'Select Industries:','N','N') , (1999,'2/15/2016','en-US','lbxLstBxSolution',N'Select Solutions:','N','N') , (1999,'2/15/2016','en-US','lbxMainDocuments',N'Main Documents','N','N') , (1999,'2/15/2016','en-US','lbxMainDuty',N'Main/Third Country Duty','N','N') , (1999,'2/15/2016','en-US','lbxManageSearches_RecentSearches',N'Recent Searches','N','N') , (1999,'2/15/2016','en-US','lbxManageSearches_RecentSelections',N'Recent Global Classification Selections','N','N') , (1999,'2/15/2016','en-US','lbxManageSearches_SavedSearches',N'Saved Searches','N','N') , (1999,'2/15/2016','en-US','lbxManageSearches_SharedSearches',N'Searches Shared by other users','N','N') , (1999,'2/15/2016','en-US','lbxManageSearches_UnsavedSearches',N'Show Unsaved Searches','N','N') , (1999,'2/15/2016','en-US','lbxManageSearchesTitle',N'Manage Searches','N','N') , (1999,'2/15/2016','en-US','lbxMultipleMatchingECNQuestion',N'There are multiple matches found.','N','N') , (1999,'2/15/2016','en-US','lbxNewsCulture',N'News Culture','N','N') , (1999,'2/15/2016','en-US','lbxNewsEffectiveDate',N'Effective Date','N','N') , (1999,'2/15/2016','en-US','lbxNewsType',N'News Type','N','N') , (1999,'2/15/2016','en-US','lbxOpinionLabel',N'Opinion Text:','N','N') , (1999,'2/15/2016','en-US','lbxOptional',N'Optional Fields','N','N') , (1999,'2/15/2016','en-US','lbxOrigination_GeneralRule',N'General Rules','N','N') , (1999,'2/15/2016','en-US','lbxOrigination_RulesOfOriginNonPreferential',N'''Non-Preferential Rules of Origin''','N','N') , (1999,'2/15/2016','en-US','lbxOrigination_RulesOfOriginPreferential',N'Specific Rule(s)','N','N') , (1999,'2/15/2016','en-US','lbxOtherDuty',N'Other Duty','N','N') , (1999,'2/15/2016','en-US','lbxOtherImportCharges',N'Other Import Charges','N','N') , (1999,'2/15/2016','en-US','lbxOverwriteSave',N'Modify/Overwrite Existing Search','N','N') , (1999,'2/15/2016','en-US','lbxPartner',N'Current Partner:','N','N') , (1999,'2/15/2016','en-US','lbxPrefDuty',N'Preferential Duty','N','N') , (1999,'2/15/2016','en-US','lbxQuotaDetails',N'Quota Details','N','N') , (1999,'2/15/2016','en-US','lbxRecentSearchesType',N'Recent Searches Type','N','N') , (1999,'2/15/2016','en-US','lbxRegulationList',N'Regulation List','N','N') , (1999,'2/15/2016','en-US','lbxRelatedECN',N'ECN Number(s) filed with AES','N','N') , (1999,'2/15/2016','en-US','lbxRelatedHS',N'Related HS Number','N','N') , (1999,'2/15/2016','en-US','lbxRequiredFields',N'Required Fields','N','N') , (1999,'2/15/2016','en-US','lbxResultsDetail0_Destination',N'Destination Country','N','N') , (1999,'2/15/2016','en-US','lbxResultsDetail0_Origin',N'Origin Country','N','N') , (1999,'2/15/2016','en-US','lbxResultsDetail1_Destination',N'Destination Country','N','N') , (1999,'2/15/2016','en-US','lbxResultsDetail1_Origin',N'Origin Country','N','N') , (1999,'2/15/2016','en-US','lbxRulesOfOrigin',N'Rules of Origin','N','N') , (1999,'2/15/2016','en-US','lbxSaveAsNew',N'Save As New','N','N') , (1999,'2/15/2016','en-US','lbxSavedSearches',N'Saved Searches','N','N') , (1999,'2/15/2016','en-US','lbxSaveNewSearch',N'Save New Search','N','N') , (1999,'2/15/2016','en-US','lbxSaveSearches_SavedSearches',N'Saved Searches','N','N') , (1999,'2/15/2016','en-US','lbxSaveSearches_SearchName',N'Search Name','N','N') , (1999,'2/15/2016','en-US','lbxSearchFilter',N'Advanced Search Filtering','N','N') , (1999,'2/15/2016','en-US','lbxSearchHeadings',N'Search:','N','N') , (1999,'8/4/2014','en-US','lbxSearchOrderNumShip',N'Order Num Ship','N','N') , (1999,'2/15/2016','en-US','lbxSearchProfileSetting',N'Will you like to set your default search profile settings?','N','N') , (1999,'6/29/2018','en-US','lbxSelectChapter',N'Search by Chapter or Keywords','N','N') , (1999,'2/15/2016','en-US','lbxSelectionGuide',N'Which chapter best describes your product?','N','N') , (1999,'2/15/2016','en-US','lbxSelectLanguage',N'Select Language:','N','N') , (1999,'2/15/2016','en-US','lbxShowGuidedSearchResult',N'Guided Search Result','N','N') , (1999,'7/23/2014','en-US','lbxShowHideFilter',N'Show/Hide Filter','N','N') , (1999,'2/15/2016','en-US','lbxSolutionBxFields',N'Selected Solutions:','N','N') , (1999,'2/15/2016','en-US','lbxSpecificNotes',N'Specific Notes','N','N') , (1999,'2/15/2016','en-US','lbxStandardNotes',N'Standard Notes','N','N') , (1999,'2/15/2016','en-US','lbxStatusBarCultureCode',N'Description/Controls/Notes Culture','N','N') , (1999,'2/15/2016','en-US','lbxStatusBarTariffSchedule',N'Country/Tariff Schedule','N','N') , (1999,'2/15/2016','en-US','lbxSupportingDocuments',N'Supporting Documents','N','N') , (1999,'2/15/2016','en-US','lbxTariffNotesTab',N'Tariff Notes','N','N') , (1999,'2/15/2016','en-US','lbxTariffSchedule',N'Country / Tariff Schedule','N','N') , (1999,'2/15/2016','en-US','lbxTariffScheduleEmpty',N'Tariff Schedule information not available.','N','N') , (1999,'2/15/2016','en-US','lbxTariffScheduleSelection',N'Which tariff schedule would you like to be your default?','N','N') , (1999,'8/1/2017','en-US','lbxTESTECNNum',N'ECNNum1','N','N') , (1999,'2/15/2016','en-US','lbxTotalResult',N'Total HS Number Found:','N','N') , (1999,'2/15/2016','en-US','lbxTotalResultAfterFilter',N'Total HS Number Found (After Filter):','N','N') , (1999,'2/15/2016','en-US','lbxUnitOfMeasure',N'Unit(s) of Measure','N','N') , (1999,'2/15/2016','en-US','lbxUpdateInProgress',N'Update in progress...','N','N') , (1999,'2/15/2016','en-US','lbxVATCharges',N'VAT/GST','N','N') , (1999,'2/15/2016','en-US','lbxView',N'View:','N','N') , (1999,'2/15/2016','en-US','lbxViewSelectionSettings',N'Which view would you like to be your default?','N','N') , (1999,'2/15/2016','en-US','lbxWelcome',N'Welcome','N','N') , (1999,'8/9/2018','en-US','lnxbtn Preview',N'Preview Documentation','N','N') , (1999,'8/9/2018','en-US','lnxbtn Save As Template',N'Save as Template','N','N') , (1999,'2/15/2016','en-US','lnxbtnApply',N'Apply','N','N') , (1999,'2/15/2016','en-US','lnxbtnCancelLoading',N'Cancel','N','N') , (1999,'7/23/2014','en-US','lnxbtnConsolidate',N'Consolidate','N','N') , (1999,'2/15/2016','en-US','lnxbtnDeleteComponentCancel',N'Cancel','N','N') , (1999,'2/15/2016','en-US','lnxbtnDeleteComponentYes',N'Yes','N','N') , (1999,'2/15/2016','en-US','lnxbtnExportToExcel',N'Export to Excel','N','N') , (1999,'2/15/2016','en-US','lnxbtnExportToPdf',N'Export to PDF','N','N') , (1999,'2/15/2016','en-US','lnxbtnFilterResultDescription',N'Apply Filter','N','N') , (1999,'7/23/2014','en-US','lnxbtnFinalizeAction',N'Consolidate this Shipment only','N','N') , (1999,'2/15/2016','en-US','lnxbtnGeneratedInputsUOMOther_Cancel',N'Cancel','N','N') , (1999,'2/15/2016','en-US','lnxbtnGeneratedInputsUOMOther_Save',N'Save','N','N') , (1999,'2/15/2016','en-US','lnxbtnHSNumberSettingsCancel',N'Cancel','N','N') , (1999,'2/15/2016','en-US','lnxbtnHSNumberSettingsSave',N'Next','N','N') , (1999,'2/15/2016','en-US','lnxbtnManageSearchesCancel',N'Close','N','N') , (1999,'2/15/2016','en-US','lnxbtnManageSearchesTitle',N'Manage Searches','N','N') , (1999,'2/15/2016','en-US','lnxbtnMultipleMatchingECNCancel',N'Close','N','N') , (1999,'2/15/2016','en-US','lnxbtnNewSearch',N'Search','N','N') , (1999,'2/15/2016','en-US','lnxbtnPastUpdatesDetailCancel',N'Close','N','N') , (1999,'2/15/2016','en-US','lnxbtnPastUpdatesDetailGridViewCancel',N'Close','N','N') , (1999,'8/9/2018','en-US','lnxbtnPreview',N'Preview Documentation','N','N') , (1999,'2/15/2016','en-US','lnxbtnResultsDetail0_AddNewCharge',N'Add New Charge','N','N') , (1999,'2/15/2016','en-US','lnxbtnResultsDetail0_Calculate',N'Refresh Calculations','N','N') , (1999,'2/15/2016','en-US','lnxbtnResultsDetail0_Calculate2',N'Refresh Calculations','N','N') , (1999,'2/15/2016','en-US','lnxbtnResultsDetail1_AddNewCharge',N'Add New Charge','N','N') , (1999,'2/15/2016','en-US','lnxbtnResultsDetail1_Calculate',N'Refresh Calculations','N','N') , (1999,'2/15/2016','en-US','lnxbtnResultsDetail1_Calculate2',N'Refresh Calculations','N','N') , (1999,'7/11/2011','en-US','lnxbtnReturnToDashboard',N'Return to dashboard','N','N') , (1999,'2/15/2016','en-US','lnxbtnReturnWCOHierarchy',N'Reset WCO Hierarchy','N','N') , (1999,'1/16/2012','en-US','lnxbtnSave',N'Save','N','N') , (1999,'2/15/2016','en-US','lnxbtnSaveSearches_Cancel',N'Cancel','N','N') , (1999,'2/15/2016','en-US','lnxbtnSaveSearches_Save',N'Save','N','N') , (1999,'2/15/2016','en-US','lnxbtnSearch',N'Search','N','N') , (1999,'2/15/2016','en-US','lnxbtnSearchDetail',N'Advanced Search','N','N') , (1999,'2/15/2016','en-US','lnxbtnSearchProfile',N'Search Profile','N','N') , (1999,'2/15/2016','en-US','lnxbtnSettingsRemindMeLater',N'Remind me later','N','N') , (1999,'2/15/2016','en-US','lnxbtnSettingsSave',N'Next','N','N') , (1999,'2/15/2016','en-US','lnxbtnSetupProfileLater',N'Remind me later','N','N') , (1999,'2/15/2016','en-US','lnxbtnSetupProfileYes',N'Yes','N','N') , (1999,'2/15/2016','en-US','lnxbtnShowAllNews',N'Show All News','N','N') , (1999,'2/15/2016','en-US','lnxbtnTestPrint',N'Print','N','N') , (1999,'2/15/2016','en-US','lnxbtnViewSettingsCancel',N'Cancel','N','N') , (1999,'2/15/2016','en-US','lnxbtnViewSettingsSave',N'Save','N','N') , (1999,'9/15/2010','en-US','maintenance_fmdClassificationRequest_aspx',N'Create Classification Request','N','N') , (1999,'9/15/2010','en-US','maintenance_fmdDashBoard_aspx',N'Classification Request Dashboard','N','N') , (1999,'7/7/2014','en-US','MXDATASTAGEBEGDATE',N'Begin Date','N','N') , (1999,'7/7/2014','en-US','MXDATASTAGEENDDATE',N'End Date','N','N') , (1999,'7/7/2014','en-US','MXDATASTAGEFOLIO',N'Folio','N','N') , (1999,'7/7/2014','en-US','MXDATASTAGESLCTD',N'Request','N','N') , (1999,'4/8/2014','en-US','MXDigiDocStatus_A',N'Accepted','N','N') , (1999,'4/8/2014','en-US','MXDigiDocStatus_E',N'Entered','N','N') , (1999,'4/8/2014','en-US','MXDigiDocStatus_R',N'Rejected','N','N') , (1999,'4/8/2014','en-US','MXDigiDocStatus_S',N'Sent','N','N') , (1999,'7/7/2014','en-US','MXDSSELFOLIO',N'Folio','N','N') , (1999,'12/17/2013','en-US','MXINVOICESTATUS_A',N'Pending Close','N','N') , (1999,'12/17/2013','en-US','MXINVOICESTATUS_C',N'Closed - FIFO Pending','N','N') , (1999,'12/17/2013','en-US','MXINVOICESTATUS_F',N'Prevalidation Failed','N','N') , (1999,'12/17/2013','en-US','MXINVOICESTATUS_P',N'Pending Prevalidation','N','N') , (1999,'12/17/2013','en-US','MXINVOICESTATUS_R',N'Rejected by COVE','N','N') , (1999,'12/17/2013','en-US','MXINVOICESTATUS_S',N'COVE Transmitted - Results Pending','N','N') , (1999,'12/17/2013','en-US','MXINVOICESTATUS_T',N'COVE Contingency','N','N') , (1999,'12/17/2013','en-US','MXINVOICESTATUS_V',N'Prevalidation Complete','N','N') , (1999,'12/17/2013','en-US','MXINVOICESTATUS_X',N'Canceled','N','N') , (1999,'6/5/2013','en-US','MXPEDIMENTOSTATUS_AUTH',N'Authorized','N','N') , (1999,'6/5/2013','en-US','MXPEDIMENTOSTATUS_AUTHERR',N'Authorization Errors','N','N') , (1999,'6/5/2013','en-US','MXPEDIMENTOSTATUS_AUTHSENT',N'Authorization Sent','N','N') , (1999,'6/5/2013','en-US','MXPEDIMENTOSTATUS_BANKERR',N'Bank Errors','N','N') , (1999,'6/5/2013','en-US','MXPEDIMENTOSTATUS_BANKOK',N'Paid','N','N') , (1999,'6/5/2013','en-US','MXPEDIMENTOSTATUS_BANKSENT',N'Bank File Sent','N','N') , (1999,'6/5/2013','en-US','MXPEDIMENTOSTATUS_LOADERR',N'Errors Loading','N','N') , (1999,'6/5/2013','en-US','MXPEDIMENTOSTATUS_LOADOK',N'Loaded','N','N') , (1999,'6/5/2013','en-US','MXPEDIMENTOSTATUS_M3ERR',N'M3 Errors','N','N') , (1999,'6/5/2013','en-US','MXPEDIMENTOSTATUS_M3OK',N'M3 Validated','N','N') , (1999,'6/5/2013','en-US','MXPEDIMENTOSTATUS_M3SENT',N'M3 Sent','N','N') , (1999,'6/5/2013','en-US','MXPEDIMENTOSTATUS_OPEN',N'Authorization Pending','N','N') , (1999,'6/5/2013','en-US','MXPEDIMENTOSTATUS_PROCERR',N'Calculation Errors','N','N') , (1999,'6/5/2013','en-US','MXPEDIMENTOSTATUS_PROCOK',N'Calculated','N','N') , (1999,'2/15/2016','en-US','Page size:',N'Page size:','N','N') , (1999,'2/17/2010','en-US','PurchaseOrderNum',N'Search Purchase Order','N','N') , (1999,'2/15/2016','en-US','rbxDescriptionType',N'0','N','N') , (1999,'2/15/2016','en-US','rbxDescriptionType_00',N'Full Description','N','N') , (1999,'2/15/2016','en-US','rbxDescriptionType_01',N'Short Description','N','N') , (1999,'2/15/2016','en-US','rbxSaveSearches_SaveType_00',N'Save As New','N','N') , (1999,'2/15/2016','en-US','rbxSaveSearches_SaveType_01',N'Modify/Overwrite Existing Search','N','N') , (1999,'2/15/2016','en-US','Rbxselection',N'ECN','N','N') , (1999,'2/15/2016','en-US','Rbxselection_00',N'ECN','N','N') , (1999,'2/15/2016','en-US','Rbxselection_01',N'DPS','N','N') , (1999,'2/15/2016','en-US','rdxlstViewSetting',N'GridView','N','N') , (1999,'2/15/2016','en-US','rdxlstViewSetting_00',N'GridView','N','N') , (1999,'2/15/2016','en-US','rdxlstViewSetting_01',N'TreeView','N','N') , (1999,'1/18/2010','en-US','Search.aspx',N'Product Lookup','N','N') , (1999,'1/18/2010','en-US','Search_aspx',N'Product Lookup','N','N') , (1999,'8/1/2017','en-US','TESTECN Num',N'ECNNum1','N','N') , (1999,'8/1/2017','en-US','TESTECNNum',N'ECNNum1','N','N') , (1999,'2/14/2011','en-US','tmgweblinks_aspx',N'Web Links','N','N') , (1999,'1/18/2010','en-US','vid_BatchStatus',N'View Import Status','N','N') , (1999,'3/10/2013','es-ES','fmgDTSSpreadsheetImport_aspx',N'Importar Hoja de Cálculo','N','N') , (1999,'3/10/2013','es-ES','fxdDPSQuery_aspx',N'Búsqueda','N','N') , (1999,'3/10/2013','es-ES','fxdDTSHistory_aspx',N'Historial de Búsquedas','N','N') , (1999,'3/10/2013','es-ES','fxdDTSNotes_aspx',N'Notas DPS','N','N') , (1999,'3/10/2013','es-ES','fxdDTSQuery_aspx',N'Búsqueda','N','N') , (1999,'3/10/2013','es-ES','fxdDTSQueryDetail_aspx',N'Detalles Búsqueda','N','N') , (1999,'3/10/2013','es-ES','fxdDTSRegulationList_aspx',N'Lista de Regulaciones','N','N') , (1999,'3/10/2013','es-ES','fxdDTSWebserviceTest_aspx',N'Probar Servicio Web','N','N') , (1999,'9/11/2015','es-MX','({0}) items selected',N'({0}) Items Seleccionados','N','N') , (1999,'9/11/2015','es-MX','for current group:',N'para el grupo actual:','N','N') , (1999,'4/8/2010','es-MX','&ltPrev',N'Anterior','N','N') , (1999,'3/1/2016','es-MX','&nbsp;TO',N'A','N','N') , (1999,'9/11/2015','es-MX','(invalid date range)',N'(Rango de Fecha Invalido)','N','N') , (1999,'3/1/2016','es-MX','(list view)',N'Ver lista','N','N') , (1999,'9/11/2015','es-MX','(NQ conflict)',N'(Conflicto NQ)','N','N') , (1999,'3/1/2016','es-MX','(Reset)',N'Resetear','N','N') , (1999,'3/1/2016','es-MX','(textual search)',N'Búsqueda Textual','N','N') , (1999,'9/6/2016','es-MX','* Or Highlighted Item Indicates Required Fields',N'* O los objetos subrayados indican campos requeridos','N','N') , (1999,'9/6/2016','es-MX','*Email:',N'*E-mail:','N','N') , (1999,'3/1/2016','es-MX','<Prev',N'<Previo','N','N') , (1999,'3/1/2016','es-MX','<Prev Next >',N'Antes/Siguiente','N','N') , (1999,'9/6/2016','es-MX','__tab_cert Tabs_tab Data',N'Informacion de Certificado','N','N') , (1999,'9/6/2016','es-MX','__tab_certTabs_tabData',N'Informacion de Certificado','N','N') , (1999,'9/6/2016','es-MX','__tab_rw Saved Searches_C_ss Tabs_ctl00',N'Sistema','N','N') , (1999,'9/6/2016','es-MX','__tab_tabs_Tab Panel2',N'Valores HTS del Maestro de Articulos','N','N') , (1999,'3/1/2016','es-MX','__tab_tabs_tabCompanyInfo',N'Información de Compañia','N','N') , (1999,'3/1/2016','es-MX','__tab_tabs_TabPanel1',N'Maestro de Materiales','N','N') , (1999,'9/6/2016','es-MX','__tab_tabs_TabPanel2',N'Valores HTS del Maestro de Articulos','N','N') , (1999,'3/1/2016','es-MX','__tab_tb Validation_tp Errors',N'Errores','N','N') , (1999,'3/1/2016','es-MX','__tab_tbValidation_tpErrors',N'Errores','N','N') , (1999,'3/1/2016','es-MX','__tab_tbValidation_tpWarnings',N'Advertencias','N','N') , (1999,'3/1/2016','es-MX','__tab_tc Catalogs_tabpnl Error Catalogs',N'Catálogos Error','N','N') , (1999,'3/1/2016','es-MX','__tab_tc Catalogs_tabpnl Pgm Codes',N'Códigos de Programa','N','N') , (1999,'3/1/2016','es-MX','__tab_tc Catalogs_tabpnl Saai Company',N'Compañías SAAI','N','N') , (1999,'3/1/2016','es-MX','__tab_tc Main_tabpnl Imports',N'Importaciones','N','N') , (1999,'3/1/2016','es-MX','__tab_tcCatalogs_tabpnlPgmCodes',N'Códigos de Programa','N','N') , (1999,'3/1/2016','es-MX','__tab_tcCatalogs_tabpnlSaaiCompany',N'Compañías SAAI','N','N') , (1999,'3/1/2016','es-MX','__tab_tcMain_tabContainer',N'Contenedor','N','N') , (1999,'3/1/2016','es-MX','__tab_tcMain_tabFees',N'Cuotas','N','N') , (1999,'3/1/2016','es-MX','__tab_tcMain_tabpnlImports',N'Importaciones','N','N') , (1999,'9/11/2015','es-MX','{0} complete of {1} record(s)',N'{0} Completados de {1} registros','N','N') , (1999,'2/15/2016','es-MX','{4} {5} items in {1} pages',N'{4} {5} elementos en {1} paginas','N','N') , (1999,'3/1/2016','es-MX','AbbreviationExport',N'Abreviación de Exportación','N','N') , (1999,'3/1/2016','es-MX','AbbreviationImport',N'Abreviación de Importación','N','N') , (1999,'3/1/2016','es-MX','Abi Prohibited Flag',N'Abi Prohibited Flag','N','N') , (1999,'3/1/2016','es-MX','AbiPath',N'Recorrido Abi','N','N') , (1999,'3/1/2016','es-MX','AbiProhibitedFlag',N'ABI Prohibió la Bandera','N','N') , (1999,'9/11/2015','es-MX','Accept',N'Aceptar','N','N') , (1999,'9/6/2016','es-MX','Account Num',N'Número de Cuenta','N','N') , (1999,'9/6/2016','es-MX','AccountNum',N'Número de Cuenta','N','N') , (1999,'9/6/2016','es-MX','Action',N'Acción','N','N') , (1999,'9/6/2016','es-MX','Action Date',N'Fecha de Acción','N','N') , (1999,'9/6/2016','es-MX','Action Type',N'Tipo de acción','N','N') , (1999,'9/6/2016','es-MX','Action Value',N'Valor de Acción','N','N') , (1999,'9/6/2016','es-MX','ActionType',N'Tipo de acción','N','N') , (1999,'9/6/2016','es-MX','Active',N'Activo','N','N') , (1999,'9/6/2016','es-MX','Active Flag',N'Bandera Activa','N','N') , (1999,'9/6/2016','es-MX','ActiveFlag',N'Bandera Activa','N','N') , (1999,'3/1/2016','es-MX','Ad Valorem Rate',N'Tasa "al valor"','N','N') , (1999,'9/11/2015','es-MX','Add',N'Agregar','N','N') , (1999,'9/11/2015','es-MX','Add Comment',N'Agregar Comentario','N','N') , (1999,'9/11/2015','es-MX','Add Customer',N'Agregar Cliente','N','N') , (1999,'9/6/2016','es-MX','Add Detail Information',N'Agregar Detalle de Información','N','N') , (1999,'3/1/2016','es-MX','Add New',N'Agregar Nuevo','N','N') , (1999,'3/1/2016','es-MX','Add New Company',N'Agregar Nueva Compañia','N','N') , (1999,'3/1/2016','es-MX','Add New Group',N'Agregar Nuevo Grupo','N','N') , (1999,'9/6/2016','es-MX','Add New Parameter',N'Agregar Nuevo Parámetro','N','N') , (1999,'3/1/2016','es-MX','Add New Record',N'Agregar Nuevo Récord','N','N') , (1999,'9/11/2015','es-MX','Add Note',N'Agregar Nota','N','N') , (1999,'3/1/2016','es-MX','Add Notice Detail',N'Agregar detalle para el Aviso de Traslado','N','N') , (1999,'3/1/2016','es-MX','Add Record',N'Agregar Registro','N','N') , (1999,'9/6/2016','es-MX','Add Record to Product',N'Agregar Registro al Producto','N','N') , (1999,'9/11/2015','es-MX','Add Solicitation Type',N'Agrega Tipo de Solicitud','N','N') , (1999,'9/6/2016','es-MX','Add this Document',N'Agregar este Documento','N','N') , (1999,'9/6/2016','es-MX','Add To Quarterly PEA',N'Agregar a un PEA Trimestral','N','N') , (1999,'9/6/2016','es-MX','Add To Single PEA',N'Agregar a un PEA','N','N') , (1999,'9/11/2015','es-MX','Add/Copy Solicitation Type',N'Agrega/Copiar Tipo de Solicitud','N','N') , (1999,'9/6/2016','es-MX','Added By',N'Agregado Por','N','N') , (1999,'3/1/2016','es-MX','Added By User',N'Agregado por Usuario','N','N') , (1999,'3/1/2016','es-MX','AddedByUser',N'Agregado por Usuario','N','N') , (1999,'3/1/2016','es-MX','Additional Country',N'País adicional','N','N') , (1999,'3/1/2016','es-MX','Additional Duty Ind',N'Indicador impuesto adicional','N','N') , (1999,'9/11/2015','es-MX','Additional Header Fields',N'Campos Additionales de Encabezado','N','N') , (1999,'3/1/2016','es-MX','Additional Info',N'Información Adicional','N','N') , (1999,'3/1/2016','es-MX','Additional Tables',N'Tablas Adicionales','N','N') , (1999,'3/1/2016','es-MX','AdditionalDutyInd',N'Indicador impuesto adicional','N','N') , (1999,'3/1/2016','es-MX','AdditionalInfo',N'Información Adicional','N','N') , (1999,'9/6/2016','es-MX','Addl Rpt Qty',N'Otra Cant. Report.','N','N') , (1999,'3/1/2016','es-MX','Addl Rpt Qty Uom',N'Unidad de Medida Adicional','N','N') , (1999,'3/1/2016','es-MX','Addl Specific Rate',N'Tasa especifica adicional','N','N') , (1999,'9/6/2016','es-MX','AddlRptQty',N'Agregar Cantidad al Reporte','N','N') , (1999,'3/1/2016','es-MX','AddlRptQtyUOM',N'Unidad de Medida Adiciona;','N','N') , (1999,'3/1/2016','es-MX','AddlSpecificRate',N'Tasa Específica Adicional','N','N') , (1999,'3/1/2016','es-MX','AddNew',N'Agregar Nuevo','N','N') , (1999,'3/1/2016','es-MX','AddNewRecord',N'Agregar Nuevo Récord','N','N') , (1999,'3/1/2016','es-MX','AddNoticeDetail',N'Agregar detalle para el Aviso de Traslado','N','N') , (1999,'4/8/2010','es-MX','Address',N'Dirección','N','N') , (1999,'3/1/2016','es-MX','Address Line1',N'Direccion','N','N') , (1999,'3/1/2016','es-MX','Address Line2',N'Direccion','N','N') , (1999,'9/6/2016','es-MX','Address Option',N'Opción de la Dirección','N','N') , (1999,'4/8/2010','es-MX','Addresses',N'Domicilios','N','N') , (1999,'3/1/2016','es-MX','AddressLine1',N'Direccion','N','N') , (1999,'3/1/2016','es-MX','AddressLine2',N'Direccion','N','N') , (1999,'3/1/2016','es-MX','Adj Product Num',N'Número adicional de producto','N','N') , (1999,'3/1/2016','es-MX','Adj Receipt Doc ID',N'Doc.ID adicional de recibo','N','N') , (1999,'3/1/2016','es-MX','AdjProductNum',N'Número adicional de producto','N','N') , (1999,'3/1/2016','es-MX','AdjReceiptDocID',N'Doc.ID adicional de recibo','N','N') , (1999,'3/1/2016','es-MX','Adjustments',N'Ajustes','N','N') , (1999,'3/1/2016','es-MX','Administratives Total',N'Totales administrativos','N','N') , (1999,'3/1/2016','es-MX','AdValoremRate',N'Tasa','N','N') , (1999,'9/6/2016','es-MX','AES Shipment Value',N'Valor de Embarque AES','N','N') , (1999,'9/6/2016','es-MX','AES Transmission Message',N'Mensaje de Transmisión AES','N','N') , (1999,'9/6/2016','es-MX','AESITN',N'AEISTIN','N','N') , (1999,'9/11/2015','es-MX','Affidavit',N'Affidavit','N','N') , (1999,'9/6/2016','es-MX','Affiliated?',N'Afiliados','N','N') , (1999,'3/1/2016','es-MX','Agency Code',N'Código de Agencia','N','N') , (1999,'3/1/2016','es-MX','AgencyCode',N'Código de Agencia','N','N') , (1999,'9/6/2016','es-MX','Agreement',N'Tratado','N','N') , (1999,'9/6/2016','es-MX','Agreements',N'Tratados','N','N') , (1999,'9/6/2016','es-MX','Air Waybill',N'Hoja de ruta aerea','N','N') , (1999,'3/1/2016','es-MX','Ajustes',N'Ajustes','N','N') , (1999,'9/11/2015','es-MX','ALL',N'Todo','N','N') , (1999,'9/6/2016','es-MX','all Email Tab',N'Registro de Correos','N','N') , (1999,'3/1/2016','es-MX','All Errors',N'Todos los errores','N','N') , (1999,'9/11/2015','es-MX','All items submitted',N'Todos los Items Enviados','N','N') , (1999,'9/6/2016','es-MX','All Logs',N'Todos los Registros','N','N') , (1999,'9/6/2016','es-MX','All News',N'Todas las Noticias','N','N') , (1999,'9/6/2016','es-MX','allEmailTab',N'Registro de Correos','N','N') , (1999,'9/6/2016','es-MX','Allocated',N'Distribuida','N','N') , (1999,'9/6/2016','es-MX','Allow Certificate Requests',N'Permitir Solicitudes de Certificados','N','N') , (1999,'9/6/2016','es-MX','Allowed Parties',N'Entidades Permitidas','N','N') , (1999,'3/1/2016','es-MX','Allowed Qty',N'Cantidad Permitida','N','N') , (1999,'3/1/2016','es-MX','Allowed Value',N'Valor Permitido','N','N') , (1999,'3/1/2016','es-MX','AllowedQty',N'Cantidad Permitida','N','N') , (1999,'3/1/2016','es-MX','AllowedValue',N'Valor Permitido','N','N') , (1999,'3/1/2016','es-MX','Alt Code',N'Código alternativo','N','N') , (1999,'3/1/2016','es-MX','Alt Hts Desc',N'Descripción de la Fracción Alterna','N','N') , (1999,'3/1/2016','es-MX','Alt Hts Index',N'Alt Hts Indice','N','N') , (1999,'3/1/2016','es-MX','Alt Hts Num',N'Fracción Alterna','N','N') , (1999,'3/1/2016','es-MX','Alt Product Desc',N'Descripción en Español','N','N') , (1999,'3/1/2016','es-MX','Alt Value',N'Valor Unitario Total 1','N','N') , (1999,'3/1/2016','es-MX','AltCode',N'Código Alterno','N','N') , (1999,'3/1/2016','es-MX','ALTEX Num',N'Número ALTEX','N','N') , (1999,'3/1/2016','es-MX','ALTEXNum',N'Número ALTEX','N','N') , (1999,'9/6/2016','es-MX','AltFullName',N'Nombre Alternativo','N','N') , (1999,'3/1/2016','es-MX','AltHtsAddlRptQtyUom',N'Fracción Alterna de Unidad de Medida Adicional','N','N') , (1999,'3/1/2016','es-MX','AltHtsDesc',N'Descripción de la Fracción Alterna','N','N') , (1999,'3/1/2016','es-MX','AltHTSIndex',N'Índice de Fracción Alterno','N','N') , (1999,'3/1/2016','es-MX','AltHTSNum',N'Fracción Alterna','N','N') , (1999,'3/1/2016','es-MX','AltHtsRptQtyUom',N'Fracción Alterna de Unidad de Medida','N','N') , (1999,'3/1/2016','es-MX','AltProductDesc',N'Descripción en Español','N','N') , (1999,'9/6/2016','es-MX','Amount',N'Cantidad','N','N') , (1999,'3/1/2016','es-MX','AmountCurrency',N'Importe Moneda','N','N') , (1999,'2/26/2010','es-MX','Analysis',N'Análisis','N','N') , (1999,'9/11/2015','es-MX','Analysis Number',N'No. De Analisis','N','N') , (1999,'2/25/2010','es-MX','Analysis Report',N'Reporte del Analisis','N','N') , (1999,'9/7/2016','es-MX','Analysis Run Date',N'Fecha en que corre el análisis','N','N') , (1999,'2/26/2010','es-MX','AnalysisNo',N'Análisis #','N','N') , (1999,'9/6/2016','es-MX','Analyze',N'Analizar','N','N') , (1999,'9/6/2016','es-MX','Analyzer',N'Analizador','N','N') , (1999,'9/6/2016','es-MX','And',N'Y','N','N') , (1999,'3/1/2016','es-MX','Annex30 Flag',N'Bandera de Anexo30','N','N') , (1999,'3/1/2016','es-MX','Annex30Flag',N'Bandera de Anexo30','N','N') , (1999,'3/1/2016','es-MX','ApiAtmosphericFactor',N'Factor Atmosférico Api','N','N') , (1999,'3/1/2016','es-MX','ApiDensityOfWater',N'Densidad del Agua Api','N','N') , (1999,'9/11/2015','es-MX','Apply Changes',N'Aplicar Cambios','N','N') , (1999,'9/6/2016','es-MX','Apply Date',N'Fecha de Applicación','N','N') , (1999,'9/6/2016','es-MX','Apply Update',N'Aplicar actualización','N','N') , (1999,'9/6/2016','es-MX','ApplyDate',N'Fecha de aplicación','N','N') , (1999,'9/6/2016','es-MX','Approved',N'Aprobada','N','N') , (1999,'2/24/2010','es-MX','Archive',N'Archivos','N','N') , (1999,'9/6/2016','es-MX','Archive Date',N'Fecha de Archivado','N','N') , (1999,'9/6/2016','es-MX','Archived By',N'Archivado Por','N','N') , (1999,'3/1/2016','es-MX','Are you sure you want to delete this item?',N'¿Está seguro que desea eliminarlo?','N','N') , (1999,'9/6/2016','es-MX','Are you sure you want to transmit this file?',N'¿Estas Seguro de que quieres Trasmitir este archivo?','N','N') , (1999,'9/6/2016','es-MX','Arrival Date',N'Fecha de Llegada','N','N') , (1999,'9/6/2016','es-MX','ArrivalDate',N'Fecha de Llegada','N','N') , (1999,'3/1/2016','es-MX','Assigned Titles',N'Títulos asignados','N','N') , (1999,'2/24/2010','es-MX','Assigned To',N'Asignado A','N','N') , (1999,'3/1/2016','es-MX','AssignedTitles',N'Títulos asignados','N','N') , (1999,'9/6/2016','es-MX','AssignedTo',N'Asignado A','N','N') , (1999,'3/1/2016','es-MX','Assignment Flag',N'Bandera de Asignación','N','N') , (1999,'3/1/2016','es-MX','AssignmentFlag',N'Bandera de Asignación','N','N') , (1999,'9/6/2016','es-MX','Associated invoice data is not available for this AES transmission.',N'Los datos de facturas asociadas no estan disponibles para esta transmisión AES','N','N') , (1999,'9/6/2016','es-MX','Associated Invoices',N'Facturas Asociadas','N','N') , (1999,'9/6/2016','es-MX','Assurance Level',N'Nivel de Aseguranza','N','N') , (1999,'9/6/2016','es-MX','AssuranceLevel',N'Nivel de Aseguranza','N','N') , (1999,'9/6/2016','es-MX','Attached Documents',N'Documentos Adjuntos','N','N') , (1999,'3/1/2016','es-MX','AttachmentDocument',N'Documento Adjunto','N','N') , (1999,'3/1/2016','es-MX','AttachmentReference',N'Referencia Adjunta','N','N') , (1999,'9/11/2015','es-MX','Attachments',N'Anexos','N','N') , (1999,'9/6/2016','es-MX','Audit Date',N'Fecha de Auditoría','N','N') , (1999,'9/6/2016','es-MX','Audit Log',N'Registros de Auditoria','N','N') , (1999,'9/6/2016','es-MX','Audit Notes',N'Notas de Auditoría','N','N') , (1999,'9/6/2016','es-MX','AuditDate',N'Fecha','N','N') , (1999,'2/19/2010','es-MX','AuditLog_aspx',N'Registro de Auditoria','N','N') , (1999,'9/6/2016','es-MX','AuditNotes',N'Notas de Auditoría','N','N') , (1999,'9/6/2016','es-MX','Auto-Populate for CF214 Report',N'Auto-completado para el reporte CF214','N','N') , (1999,'3/1/2016','es-MX','AutomotiveFlag',N'Bandera Automotriz','N','N') , (1999,'3/1/2016','es-MX','Available Balance Of Document',N'Balance disponible de Documentos','N','N') , (1999,'9/6/2016','es-MX','Available Docks',N'Puertos disponibles','N','N') , (1999,'9/6/2016','es-MX','Available Licenses/Exceptions',N'Licencias/Excepciones Disponibles','N','N') , (1999,'9/11/2015','es-MX','Available Products',N'Productos Disponibles','N','N') , (1999,'3/1/2016','es-MX','AvailableBalanceOfDocument',N'Balance disponible de Documentos','N','N') , (1999,'3/1/2016','es-MX','Aviso Consolidado COVE',N'Aviso Consolidado COVE','N','N') , (1999,'3/1/2016','es-MX','Aviso Traslado',N'Aviso de Traslado','N','N') , (1999,'3/1/2016','es-MX','AvisoConsolidadoCOVE',N'Aviso Consolidado COVE','N','N') , (1999,'3/1/2016','es-MX','AvisoTraslado',N'Aviso de Traslado','N','N') , (1999,'3/1/2016','es-MX','Balance Qty',N'Balance','N','N') , (1999,'3/1/2016','es-MX','BalanceQty',N'Balance','N','N') , (1999,'9/6/2016','es-MX','Base Currency',N'Tu Moneda de Base - USD','N','N') , (1999,'9/6/2016','es-MX','Base Currency Code List',N'Lista del código de moneda base','N','N') , (1999,'9/6/2016','es-MX','BaseCurrency',N'Tu Moneda de Base - USD','N','N') , (1999,'9/6/2016','es-MX','BaseCurrencyCodeList',N'Lista del código de moneda base','N','N') , (1999,'3/1/2016','es-MX','Begin Date Expiration',N'Inicio de fecha de Vencimiento','N','N') , (1999,'3/1/2016','es-MX','BeginDate',N'Fecha de Inicio','N','N') , (1999,'3/1/2016','es-MX','BeginDateExpiration',N'Inicio de fecha de Vencimiento','N','N') , (1999,'9/6/2016','es-MX','Bill de Materiales',N'Lista de Materiales','N','N') , (1999,'3/1/2016','es-MX','Bill Of Lading',N'Conocimiento de Embarque','N','N') , (1999,'3/1/2016','es-MX','Bill Of Lading GUID',N'Conocimiento de Embarque Guía','N','N') , (1999,'3/1/2016','es-MX','Bill Of Lading Type Literal',N'Tipo de Conocimiento de Embarque','N','N') , (1999,'2/25/2010','es-MX','Bill of Materials',N'Lista de Materiales','N','N') , (1999,'9/6/2016','es-MX','Billof Materials',N'Lista de Materiales','N','N') , (1999,'3/1/2016','es-MX','BillOfLading',N'Conocimiento de Embarque','N','N') , (1999,'3/1/2016','es-MX','BillOfLadingGUID',N'Conocimiento de Embarque Guía','N','N') , (1999,'3/1/2016','es-MX','BillOfLadingType',N'Tipo de Guía de Carga','N','N') , (1999,'3/1/2016','es-MX','BillOfLadingTypeLiteral',N'Tipo de Conocimiento de Embarque','N','N') , (1999,'2/26/2010','es-MX','BillofMaterials',N'Lista de Materiales','N','N') , (1999,'9/6/2016','es-MX','Binding Ruling',N'Reglamento Obligatorio','N','N') , (1999,'9/6/2016','es-MX','BindingRuling',N'Reglamento Obligatorio','N','N') , (1999,'9/6/2016','es-MX','Birth Date',N'Fecha de Nacimiento','N','N') , (1999,'9/6/2016','es-MX','Blank Country Of Origin',N'País de origen en blanco','N','N') , (1999,'9/6/2016','es-MX','BlankCountryOfOrigin',N'País de origen en blanco','N','N') , (1999,'3/1/2016','es-MX','BOLCHK',N'El Bill of Lading debe tener entre 1 y 25 caracteres de largo','N','N') , (1999,'9/6/2016','es-MX','BOM',N'Lista de Materiales','N','N') , (1999,'9/11/2015','es-MX','BOM Analysis Audit Log',N'Auditoría de la Lista de Materiales','N','N') , (1999,'9/11/2015','es-MX','BOM Analysis Metrics',N'Medidas de Análisis de la Lista de Materiales','N','N') , (1999,'9/7/2016','es-MX','BOM Count',N'Contador de Lista de Materiales','N','N') , (1999,'9/11/2015','es-MX','BOM Detail Report',N'Reporte de Detalles de BOM','N','N') , (1999,'9/11/2015','es-MX','BOM Detail View',N'Vista Detallada de BOM','N','N') , (1999,'9/6/2016','es-MX','BOM Filter Criteria',N'Criterio de filtro de lista de materiales','N','N') , (1999,'9/8/2016','es-MX','BOM Note',N'Nota de lista de materiales','N','N') , (1999,'9/11/2015','es-MX','BOM Worksheet',N'Hoja de Trabajo de BOM','N','N') , (1999,'9/8/2016','es-MX','BOMNote',N'Nota de lista de materiales','N','N') , (1999,'3/1/2016','es-MX','BondNum',N'Número de Enlace','N','N') , (1999,'3/1/2016','es-MX','BondType',N'Tipo de Enlace','N','N') , (1999,'9/6/2016','es-MX','Booking Num',N'No. de Reservación','N','N') , (1999,'9/6/2016','es-MX','BookingNum',N'Número de Reservación','N','N') , (1999,'3/1/2016','es-MX','Brand',N'Marca','N','N') , (1999,'3/1/2016','es-MX','Broker',N'Agente Comercial','N','N') , (1999,'3/1/2016','es-MX','Broker and Importer or Representative Information',N'Agente Comercial y Importador o Representante Informacion','N','N') , (1999,'9/6/2016','es-MX','Broker Name',N'Nombre del Agente','N','N') , (1999,'9/6/2016','es-MX','Broker Note',N'Notas del Corredor','N','N') , (1999,'9/6/2016','es-MX','BrokerNote',N'Notas del Corredor','N','N') , (1999,'9/6/2016','es-MX','btn Add New',N'Agregar Nuevo','N','N') , (1999,'9/6/2016','es-MX','btn Download Export Files',N'Descargar archivos de exportación','N','N') , (1999,'9/6/2016','es-MX','btn Export',N'Extraer','N','N') , (1999,'9/6/2016','es-MX','btn Go',N'Ir...','N','N') , (1999,'3/1/2016','es-MX','btn Link Exit',N'Salir','N','N') , (1999,'9/6/2016','es-MX','btn Load Export Files',N'Cargar archivos de exportación','N','N') , (1999,'9/6/2016','es-MX','btn Process',N'Procesar','N','N') , (1999,'9/6/2016','es-MX','btn Query',N'Enviar consulta en masa','N','N') , (1999,'9/6/2016','es-MX','btnAddNew',N'Agregar Nuevo','N','N') , (1999,'9/6/2016','es-MX','btnDownloadExportFiles',N'Descargar archivos de exportación','N','N') , (1999,'9/6/2016','es-MX','btnExport',N'Extraer','N','N') , (1999,'9/6/2016','es-MX','btnGo',N'Ir...','N','N') , (1999,'3/1/2016','es-MX','btnLinkExit',N'Salir','N','N') , (1999,'9/6/2016','es-MX','btnLoadExportFiles',N'Cargar archivos de exportación','N','N') , (1999,'9/6/2016','es-MX','btnProcess',N'Procesar','N','N') , (1999,'9/6/2016','es-MX','btnQuery',N'Enviar consulta en masa','N','N') , (1999,'4/8/2010','es-MX','btnSaveAll',N'Guardar todo','N','N') , (1999,'3/1/2016','es-MX','btx Approve',N'Aprobar','N','N') , (1999,'9/6/2016','es-MX','btx Clear',N'Limpiar','N','N') , (1999,'9/6/2016','es-MX','btx Finalize Fifo',N'Finalizar PEPS','N','N') , (1999,'9/6/2016','es-MX','btx Process Fifo',N'Procesar PEPS','N','N') , (1999,'9/6/2016','es-MX','btx Roll Back Fifo',N'Revertir PEPS','N','N') , (1999,'3/1/2016','es-MX','btx Save Edit',N'Guardar','N','N') , (1999,'9/6/2016','es-MX','btx Search',N'Buscar','N','N') , (1999,'9/6/2016','es-MX','btx Show Cal End Date',N'Calendario','N','N') , (1999,'9/6/2016','es-MX','btx Show Cal Txn Start Date',N'Calendario','N','N') , (1999,'9/6/2016','es-MX','btxAddDocument',N'Agregar Documento','N','N') , (1999,'3/1/2016','es-MX','btxApprove',N'Aprobar','N','N') , (1999,'9/6/2016','es-MX','btxClear',N'Limpiar','N','N') , (1999,'9/6/2016','es-MX','btxel Add Dates',N'Ir...','N','N') , (1999,'9/6/2016','es-MX','btxelAddDates',N'Ir...','N','N') , (1999,'3/1/2016','es-MX','btxFinalizeFifo',N'Finalizar PEPS','N','N') , (1999,'2/24/2010','es-MX','btxGo',N'Buscar','N','N') , (1999,'3/1/2016','es-MX','btxLoadIntegrationFiles',N'Carga de Archivos de Integración','N','N') , (1999,'3/1/2016','es-MX','btxPostFIFORollBack',N'Después de FIFO','N','N') , (1999,'3/1/2016','es-MX','btxProcessFifo',N'Procesar PEPS','N','N') , (1999,'3/1/2016','es-MX','btxRollBackFifo',N'Revertir PEPS','N','N') , (1999,'3/1/2016','es-MX','btxSaveEdit',N'Guardar','N','N') , (1999,'2/25/2010','es-MX','btxSearch',N'Buscar','N','N') , (1999,'2/25/2010','es-MX','btxShowCalendarFromDate',N'Calendario','N','N') , (1999,'2/25/2010','es-MX','btxShowCalendarThruDate',N'Calendario','N','N') , (1999,'3/1/2016','es-MX','btxShowCalEndDate',N'Fecha final','N','N') , (1999,'3/1/2016','es-MX','btxShowCalTxnStartDate',N'Fecha inicial','N','N') , (1999,'9/6/2016','es-MX','btxUploadDocument',N'Subir Archivo','N','N') , (1999,'3/1/2016','es-MX','Buyer/Seller ID',N'Comprador/Vendedor ID','N','N') , (1999,'3/1/2016','es-MX','BuyerSellerCompanyID',N'Comprador/Vendedor ID','N','N') , (1999,'3/1/2016','es-MX','bx_Detail_Make',N'Marca','N','N') , (1999,'3/1/2016','es-MX','bx_Duties By Date_IVA Per Thousand',N'IVA por mil','N','N') , (1999,'3/1/2016','es-MX','bx_DutiesByDate_IVAPerThousand',N'IVA por mil','N','N') , (1999,'3/1/2016','es-MX','Calculate Saai Duties',N'Calcular Impuestos','N','N') , (1999,'3/1/2016','es-MX','CalculateIVAFlag',N'Bandera de Cálculo de IVA','N','N') , (1999,'3/1/2016','es-MX','CalculateSaaiDuties',N'Calcular Impuestos','N','N') , (1999,'3/1/2016','es-MX','Cambio de producto',N'Cambio de producto','N','N') , (1999,'3/1/2016','es-MX','campo',N'traduccion','N','N') , (1999,'3/1/2016','es-MX','Cancel',N'Cancelar','N','N') , (1999,'9/6/2016','es-MX','Cancel Button',N'Cancelar','N','N') , (1999,'3/1/2016','es-MX','Cancel By User',N'Cancelado por Usuario','N','N') , (1999,'9/6/2016','es-MX','CancelButton',N'Cancelar','N','N') , (1999,'3/1/2016','es-MX','CancelByUser',N'Cancelado por Usuario','N','N') , (1999,'3/1/2016','es-MX','Cantidad *',N'Cantidad del Manifiesto','N','N') , (1999,'3/1/2016','es-MX','Carrier Address',N'Dirección del Transportista','N','N') , (1999,'3/1/2016','es-MX','Carrier ID',N'ID Transportista','N','N') , (1999,'3/1/2016','es-MX','CarrierCURP',N'CURP transportista','N','N') , (1999,'3/1/2016','es-MX','CarrierFederalID',N'RFC transportista','N','N') , (1999,'3/1/2016','es-MX','CarrierID',N'ID Transportista','N','N') , (1999,'3/1/2016','es-MX','CarrierName',N'Nombre Transportista','N','N') , (1999,'3/1/2016','es-MX','carton',N'Carton','N','N') , (1999,'3/1/2016','es-MX','Carton Count',N'Número de cartones','N','N') , (1999,'3/1/2016','es-MX','CartonCount',N'Número de cartones','N','N') , (1999,'3/1/2016','es-MX','Category',N'Categoría','N','N') , (1999,'9/6/2016','es-MX','cb Accept All',N'Aceptar todos','N','N') , (1999,'9/6/2016','es-MX','cb Update All',N'Actualizar todos','N','N') , (1999,'9/6/2016','es-MX','cbAcceptAll',N'Aceptar todos','N','N') , (1999,'9/6/2016','es-MX','cbl Reporting Levels_0',N'Cliente de Integration Point','N','N') , (1999,'9/6/2016','es-MX','cblReportingLevels_0',N'Cliente de Integration Point','N','N') , (1999,'9/6/2016','es-MX','CBP System To Query:',N'CBP Sistema a Consulta:','N','N') , (1999,'9/6/2016','es-MX','cbUpdateAll',N'Actualizar todos','N','N') , (1999,'9/6/2016','es-MX','cbx Allow Request',N'Permitir Solicitud','N','N') , (1999,'3/1/2016','es-MX','cbx Consolidated',N'Es Consolidado','N','N') , (1999,'9/6/2016','es-MX','cbx Consolidation Option',N'Opción de Consolidación','N','N') , (1999,'3/1/2016','es-MX','cbx Definitive',N'Es definitivo','N','N') , (1999,'3/1/2016','es-MX','cbx Enabled Doc To Substitution',N'Es una correción ?','N','N') , (1999,'9/6/2016','es-MX','cbx Include All',N'Incluir Todos','N','N') , (1999,'3/1/2016','es-MX','cbx Old View',N'Vista de la Forma Original','N','N') , (1999,'3/1/2016','es-MX','cbx Simple Ped',N'Imprimir Pedimento Simple','N','N') , (1999,'9/6/2016','es-MX','cbx Transaction Types_6',N'Cambios del Producto','N','N') , (1999,'9/6/2016','es-MX','cbxAllowRequest',N'Permitir Solicitud','N','N') , (1999,'3/1/2016','es-MX','cbxArt65AttachedDocsCustVal',N'Se adjuntan los documentos que incluyen dicho valor en aduana','N','N') , (1999,'3/1/2016','es-MX','cbxArt65Distinct',N'Existe una circunstancia distinta de las que se observan en el artículo 67 y 71 que impide el uso del valor de transacción.','N','N') , (1999,'3/1/2016','es-MX','cbxArt65NatTerritory',N'La base se deriva de la venta de la exportación con destino al territorio nacional.','N','N') , (1999,'3/1/2016','es-MX','cbxArt65Price',N'El precio pagado por la mercancía importada se basa en los conceptos que se encuentran en el artículo 65','N','N') , (1999,'3/1/2016','es-MX','cbxArt66DocsAttached',N'Documentación adjunta correspondiente a los conceptos vistos anteriormente en el artículo 66','N','N') , (1999,'3/1/2016','es-MX','cbxArtt66Itemized',N'Los conceptos en el artículo 66 de la las costumbres aparecen detallados y especificados en la factura comercial.','N','N') , (1999,'3/1/2016','es-MX','cbxAttachments',N'Documentos Adjuntos','N','N') , (1999,'3/1/2016','es-MX','cbxConsolidated',N'Es Consolidado','N','N') , (1999,'9/6/2016','es-MX','cbxConsolidationOption',N'Opción de Consolidación','N','N') , (1999,'3/1/2016','es-MX','cbxDefinitive',N'Es definitivo','N','N') , (1999,'3/1/2016','es-MX','cbxDocAttach',N'Documentación adjunta correspondiente a los conceptos que se encuentran en el artículo 65','N','N') , (1999,'9/11/2015','es-MX','cbxEditPrUseAC',N'Usar ''Disponible a Aduanas al Solicitar''','N','N') , (1999,'9/11/2015','es-MX','cbxEditPrUseEx',N'Usar Informacion de Exportador como Fabricante','N','N') , (1999,'3/1/2016','es-MX','cbxEnabledContainers',N'Habilitar contenedores','N','N') , (1999,'3/1/2016','es-MX','cbxEnabledDocToSubstitution',N'Es una correción ?','N','N') , (1999,'3/1/2016','es-MX','cbxEntryReconciliationFlag',N'Reconciliacion','N','N') , (1999,'9/6/2016','es-MX','cbxIncludeAll',N'Incluir Todos','N','N') , (1999,'3/1/2016','es-MX','cbxOldView',N'Vista de la Forma Original','N','N') , (1999,'3/1/2016','es-MX','cbxOptAttach',N'El importador opta por adjuntar las facturas y otros documentos para la manifestación','N','N') , (1999,'3/1/2016','es-MX','cbxPendingExists',N'Indiferencia','N','N') , (1999,'3/1/2016','es-MX','cbxPriceInv',N'Precio que figura en la factura','N','N') , (1999,'3/1/2016','es-MX','cbxPriceOtherDoc',N'Es el precio de la ducumentacion que se adjunta en esta demostracion','N','N') , (1999,'3/1/2016','es-MX','cbxReconstructed',N'Valor Reconstruido','N','N') , (1999,'9/6/2016','es-MX','cbxSaveForLater',N'Guardar Para Despues','N','N') , (1999,'9/11/2015','es-MX','cbxSignedCheck',N'Checar para certificar que los documentos a enviar an hido firmados','N','N') , (1999,'3/1/2016','es-MX','cbxSimilar',N'Valor de Transaccion de Mercancia Similar','N','N') , (1999,'3/1/2016','es-MX','cbxSimplePed',N'Imprimir Pedimento Simple','N','N') , (1999,'3/1/2016','es-MX','cbxSpecific',N'Valor Especifico de Acuerdo con el articulo 78 de la ley Aduanera','N','N') , (1999,'3/1/2016','es-MX','cbxTempImpAttached',N'Se adjunta la documentacion que contiene el valor de la Mercancia.','N','N') , (1999,'3/1/2016','es-MX','cbxTempImpProvisional',N'Para el caso de la importación temporal, el valor determinado por las mercancías es provisional','N','N') , (1999,'3/1/2016','es-MX','cbxTransactionTypes',N'Place Holder','N','N') , (1999,'3/1/2016','es-MX','cbxTransactionTypes_0',N'Recibos','N','N') , (1999,'3/1/2016','es-MX','cbxTransactionTypes_00',N'Importacion','N','N') , (1999,'3/1/2016','es-MX','cbxTransactionTypes_01',N'Exportacion','N','N') , (1999,'3/1/2016','es-MX','cbxTransactionTypes_02',N'Adjustos','N','N') , (1999,'3/1/2016','es-MX','cbxTransactionTypes_03',N'Produccion','N','N') , (1999,'3/1/2016','es-MX','cbxTransactionTypes_04',N'Scrap','N','N') , (1999,'3/1/2016','es-MX','cbxTransactionTypes_05',N'Inventario Negativo','N','N') , (1999,'3/1/2016','es-MX','cbxTransactionTypes_1',N'Cargamentos','N','N') , (1999,'3/1/2016','es-MX','cbxTransactionTypes_2',N'Ajustes','N','N') , (1999,'3/1/2016','es-MX','cbxTransactionTypes_3',N'Produccion','N','N') , (1999,'3/1/2016','es-MX','cbxTransactionTypes_4',N'Chatarra','N','N') , (1999,'3/1/2016','es-MX','cbxTransactionTypes_5',N'Pendiente','N','N') , (1999,'3/1/2016','es-MX','cbxTransactionTypes_6',N'Cambios de producto','N','N') , (1999,'3/1/2016','es-MX','cbxTxnValIdent',N'Valor de Transaccion de la Mercancia Identica','N','N') , (1999,'3/1/2016','es-MX','cbxTxnValMerch',N'Valor de Transaccion de la Mercancia','N','N') , (1999,'3/1/2016','es-MX','cbxUnitPrice',N'Precio Unitario de Valor de Ventas','N','N') , (1999,'9/11/2015','es-MX','cbxUpdateExporter',N'Actualizar Informacion de Exportador','N','N') , (1999,'9/11/2015','es-MX','cbxUpdateSignature',N'Actualizar Informacion de Firma','N','N') , (1999,'9/6/2016','es-MX','Cert Agreement',N'Certificado de Acuerdo','N','N') , (1999,'9/8/2016','es-MX','Cert Desc',N'Descripción del Certificado','N','N') , (1999,'9/6/2016','es-MX','Cert Type',N'Tipo de Certificado','N','N') , (1999,'9/6/2016','es-MX','CertAgreement',N'Certificado de Acuerdo','N','N') , (1999,'9/8/2016','es-MX','CertDesc',N'Descripción del Certificado','N','N') , (1999,'2/24/2010','es-MX','Certificate',N'Certificado','N','N') , (1999,'9/11/2015','es-MX','Certificate Continuation',N'Continuación de Certificado','N','N') , (1999,'9/6/2016','es-MX','Certificate End Date',N'Fecha de término del certificado','N','N') , (1999,'3/1/2016','es-MX','Certificate Flag',N'Certificado','N','N') , (1999,'9/11/2015','es-MX','Certificate Of Origin',N'Certificado de Origen','N','N') , (1999,'9/6/2016','es-MX','Certificate Start Date',N'Fecha de Inicio del Certificado','N','N') , (1999,'9/8/2016','es-MX','CertificateEndDate',N'Fecha de término del certificado','N','N') , (1999,'3/1/2016','es-MX','CertificateFlag',N'Bandera de certificado','N','N') , (1999,'9/11/2015','es-MX','Certificates',N'Certificados','N','N') , (1999,'9/8/2016','es-MX','CertificateStartDate',N'Certificado fecha de inicio','N','N') , (1999,'3/1/2016','es-MX','Certification Num',N'Número de Certificación','N','N') , (1999,'3/1/2016','es-MX','CertificationNum',N'Número de Certificación','N','N') , (1999,'9/11/2015','es-MX','Certifying Document',N'Documento Certificado','N','N') , (1999,'9/8/2016','es-MX','CertType',N'Tipo de certificado','N','N') , (1999,'3/1/2016','es-MX','CF7501-06',N'Generico','N','N') , (1999,'3/1/2016','es-MX','CF7512',N'Generico','N','N') , (1999,'9/6/2016','es-MX','Change Dashboard',N'Cambio de Letrero de Mando','N','N') , (1999,'3/1/2016','es-MX','Change File Format',N'Cambiar Formato','N','N') , (1999,'3/1/2016','es-MX','Change Format',N'Cambiar Formato','N','N') , (1999,'4/7/2016','es-MX','Change Page Size Label',N'Tamaño de Página','N','N') , (1999,'3/1/2016','es-MX','ChangeFileFormat',N'Cambiar Formato','N','N') , (1999,'3/1/2016','es-MX','ChangeFormat',N'Cambiar Formato','N','N') , (1999,'3/1/2016','es-MX','ChangeOfRegimenFlag',N'Bandera de Cambio de Régimen','N','N') , (1999,'3/1/2016','es-MX','ChangePageSizeLabel',N'Tamaño de Pagina','N','N') , (1999,'9/6/2016','es-MX','Chapter',N'Capítulo','N','N') , (1999,'3/9/2016','es-MX','Charge Description',N'Descripción de la tasa','N','N') , (1999,'9/6/2016','es-MX','Charge Type',N'Tipo de cargo','N','N') , (1999,'3/1/2016','es-MX','ChargeConcept',N'Concepto de Cargo','N','N') , (1999,'3/9/2016','es-MX','ChargeDescription',N'Descripción de la tasa','N','N') , (1999,'3/1/2016','es-MX','ChargeRate',N'Cargo de Tarifa','N','N') , (1999,'3/1/2016','es-MX','Charges',N'Cargos','N','N') , (1999,'9/6/2016','es-MX','ChargeType',N'Tipo de cargo','N','N') , (1999,'3/1/2016','es-MX','Chart Name',N'Nombre de tabla','N','N') , (1999,'3/1/2016','es-MX','ChartName',N'Nombre de tabla','N','N') , (1999,'3/1/2016','es-MX','Check Countries Flag',N'Considera país de origen?','N','N') , (1999,'3/1/2016','es-MX','Check Countries Flag Literal',N'Considera País de Origen?','N','N') , (1999,'3/1/2016','es-MX','CheckCountriesFlag',N'Considera país de origen?','N','N') , (1999,'3/1/2016','es-MX','CheckCountriesFlagLiteral',N'Considera País de Origen?','N','N') , (1999,'9/6/2016','es-MX','chk Select All',N'Seleccionar Todos','N','N') , (1999,'9/6/2016','es-MX','chkbx Exact Match',N'Textualmente','N','N') , (1999,'4/7/2016','es-MX','chkbx Show All Marking',N'Mostrar Todos los Países','N','N') , (1999,'9/6/2016','es-MX','chkbx Subscription Request_Analyzer',N'Analizador','N','N') , (1999,'9/6/2016','es-MX','chkbx Subscription Request_Country Info',N'Información del País','N','N') , (1999,'9/6/2016','es-MX','chkbx Subscription Request_Exchange Rate',N'Tipo de cambio','N','N') , (1999,'9/6/2016','es-MX','chkbx Subscription Request_Knowledge',N'Conocimiento','N','N') , (1999,'9/6/2016','es-MX','chkbx Subscription Request_Status Alerts',N'Alertas de estado','N','N') , (1999,'9/6/2016','es-MX','chkbx Subscription Request_System Messages',N'Mensajes del sistema','N','N') , (1999,'9/6/2016','es-MX','chkbxExactMatch',N'Textualmente','N','N') , (1999,'4/8/2010','es-MX','chkbxHitsOnly',N'Sólo Hits?','N','N') , (1999,'4/7/2016','es-MX','chkbxShowAllMarking',N'Mostrar Todos los Países','N','N') , (1999,'9/6/2016','es-MX','chkbxSubscriptionRequest_Analyzer',N'Analizador','N','N') , (1999,'9/6/2016','es-MX','chkbxSubscriptionRequest_CountryInfo',N'Información del País','N','N') , (1999,'9/6/2016','es-MX','chkbxSubscriptionRequest_ExchangeRate',N'Tipo de cambio','N','N') , (1999,'9/6/2016','es-MX','chkbxSubscriptionRequest_Knowledge',N'Conocimiento','N','N') , (1999,'9/6/2016','es-MX','chkbxSubscriptionRequest_StatusAlerts',N'Alertas de estado','N','N') , (1999,'9/6/2016','es-MX','chkbxSubscriptionRequest_SystemMessages',N'Mensajes del sistema','N','N') , (1999,'3/1/2016','es-MX','chkInvoices',N'Impresión de Factura','N','N') , (1999,'9/6/2016','es-MX','chkSelectAll',N'Seleccionar Todos','N','N') , (1999,'9/6/2016','es-MX','chx Active Only',N'Solo Activos','N','N') , (1999,'9/6/2016','es-MX','chx Display By Type',N'Mostrar Tipos','N','N') , (1999,'9/6/2016','es-MX','chx Display By Year',N'Mostrar Años','N','N') , (1999,'3/1/2016','es-MX','chx Select All',N'Seleccionar todos','N','N') , (1999,'9/11/2015','es-MX','chxActiveOnly',N'Solo Activos','N','N') , (1999,'9/6/2016','es-MX','chxbx Address',N'Incluir Dirección','N','N') , (1999,'3/1/2016','es-MX','chxbx Advance Search',N'Búsqueda de Descripción Guiada','N','N') , (1999,'9/6/2016','es-MX','chxbx Company Name',N'Incluir Nombre de Compañia','N','N') , (1999,'3/1/2016','es-MX','chxbx Countries',N'Asignar Países','N','N') , (1999,'3/1/2016','es-MX','chxbx Email To Support',N'Mostrar link de Correo','N','N') , (1999,'3/1/2016','es-MX','chxbx Enabled',N'Habilitado','N','N') , (1999,'3/1/2016','es-MX','chxbx Force Next Login Password Change',N'Cambiar contraseña en el próximo acceso','N','N') , (1999,'9/6/2016','es-MX','chxbx PEA Switch',N'Mostrar PEAs Llenados','N','N') , (1999,'9/6/2016','es-MX','chxbx Reload On Click',N'Recargar Tabla de Resultados solo en Actualización','N','N') , (1999,'9/6/2016','es-MX','chxbx Search Terms',N'Incluir Términos de Búsqueda','N','N') , (1999,'9/6/2016','es-MX','chxbx Show Content News',N'Mostrar Las Actualizaciones del Govierno','N','N') , (1999,'3/1/2016','es-MX','chxbx View Notification',N'Mostrar notificaciones','N','N') , (1999,'3/1/2016','es-MX','chxbx View Status Alerts',N'Mostrar Alertas','N','N') , (1999,'3/1/2016','es-MX','chxbx View System Messages',N'Mostrar Mensajes','N','N') , (1999,'3/1/2016','es-MX','chxbxAddress',N'Incluya Direccion','N','N') , (1999,'2/15/2016','es-MX','chxbxAdvanceSearch',N'Busqueda de Descripción Guiada','N','N') , (1999,'3/1/2016','es-MX','chxbxCompanyName',N'Incluya Nombre de la Empresa','N','N') , (1999,'2/15/2016','es-MX','chxbxContent',N'Mostrar Noticias de Contenido','N','N') , (1999,'3/1/2016','es-MX','chxbxCountries',N'Asignar Países','N','N') , (1999,'2/15/2016','es-MX','chxbxDisplayQualifiedNumbers',N'Únicamente Números Plenamente Calificados','N','N') , (1999,'3/1/2016','es-MX','chxbxEmailToSupport',N'Mostrar link de Correo','N','N') , (1999,'3/1/2016','es-MX','chxbxEnabled',N'Habilitado','N','N') , (1999,'3/1/2016','es-MX','chxbxForceNextLoginPasswordChange',N'Cambiar contraseña en el próximo acceso','N','N') , (1999,'2/15/2016','es-MX','chxbxHighlightSearchTerms',N'Resalte Términos de resultados de la búsqueda','N','N') , (1999,'2/15/2016','es-MX','chxbxIncludeParent',N'Incluir Numeros Padre','N','N') , (1999,'11/16/2018','es-MX','chxbxIncludeValidationDetailInExtract',N'Incluir detalles de validación en Extracto Excel/PDF','N','N') , (1999,'2/15/2016','es-MX','chxbxIndustry',N'Mostrar Noticias de Industria','N','N') , (1999,'2/15/2016','es-MX','chxBxLastLogin',N'Ver desde última Conexión','N','N') , (1999,'2/15/2016','es-MX','chxbxMarkingDescriptionsExpanded',N'Mostrar Texto Completo para todas las Descripciones','N','N') , (1999,'9/6/2016','es-MX','chxbxPEASwitch',N'Mostrar PEAs Llenados','N','N') , (1999,'3/1/2016','es-MX','chxbxReloadOnClick',N'Cargar resultados al refrescar','N','N') , (1999,'2/15/2016','es-MX','chxbxResultsDetail0_RoundAtEachStep',N'Redondear Valores en cada paso','N','N') , (1999,'2/15/2016','es-MX','chxbxResultsDetail0_ShowCalculationSteps',N'Mostrar pasos de cálculo','N','N') , (1999,'2/15/2016','es-MX','chxbxResultsDetail1_RoundAtEachStep',N'Redondear Valores en cada paso','N','N') , (1999,'2/15/2016','es-MX','chxbxResultsDetail1_ShowCalculationSteps',N'Mostrar pasos de cálculo','N','N') , (1999,'2/15/2016','es-MX','chxbxSaveSearches_PartnerIdShared',N'Compartir con otros usuarios (bajo el mismo compañero)','N','N') , (1999,'3/1/2016','es-MX','chxbxSearchTerms',N'Incluya Terminos de Busqueda','N','N') , (1999,'2/15/2016','es-MX','chxbxSearchTypeBindingRulings',N'Reglas de Clasificación','N','N') , (1999,'2/15/2016','es-MX','chxbxSearchTypeChapterNotes',N'Notas de Capítulo','N','N') , (1999,'2/15/2016','es-MX','chxbxSearchTypeChargesNotes',N'Notas de Cargos','N','N') , (1999,'2/15/2016','es-MX','chxbxSearchTypeHSDescription',N'Descripción de la Fracción Arancelaria SA','N','N') , (1999,'2/15/2016','es-MX','chxbxSearchTypeHSNumber',N'Fracción Arancelaria SA','N','N') , (1999,'2/15/2016','es-MX','chxbxSearchTypeKeywords',N'Palabras Clave','N','N') , (1999,'2/15/2016','es-MX','chxbxShowAllAvailableControls',N'Mostrar Todas las Descripciones de Controles Disponibles','N','N') , (1999,'2/15/2016','es-MX','chxbxShowAllCountriesChargeDocuments',N'Mostrar Documentos que Aplican a Todos los Países','N','N') , (1999,'2/15/2016','es-MX','chxbxShowAllCountriesControls',N'Mostrar Documentos que Aplican a Todos los Países','N','N') , (1999,'2/15/2016','es-MX','chxbxShowAllCountriesImportControls',N'Mostrar Documentos que Aplican a Todos los Países','N','N') , (1999,'2/15/2016','es-MX','chxbxShowAllFTACountries',N'Mostrar Documentos que Aplican a Todos los Países','N','N') , (1999,'2/15/2016','es-MX','chxbxShowAllHSCharge',N'Mostrar Documentos que Aplican a Todas las Fracciones Arancelarias','N','N') , (1999,'2/15/2016','es-MX','chxbxShowAllHSControls',N'Mostrar Documentos que Aplican a Todas las Fracciones Arancelarias','N','N') , (1999,'2/15/2016','es-MX','chxbxShowAllHSImportControls',N'Mostrar Documentos que Aplican a Todas las Fracciones Arancelarias','N','N') , (1999,'2/15/2016','es-MX','chxbxShowAllHSNumbers',N'Mostrar Documentos que Aplican a Todas las Fracciones Arancelarias','N','N') , (1999,'2/15/2016','es-MX','chxbxShowAllMainRates',N'Mostrar todas las tasas principales','N','N') , (1999,'2/15/2016','es-MX','chxbxShowAntiDumping',N'Mostrar Otros /tasas antidumping','N','N') , (1999,'2/15/2016','es-MX','chxbxShowChapterFilters',N'Mostrar Filtros de Capítulo','N','N') , (1999,'9/6/2016','es-MX','chxbxShowContentNews',N'Mostrar Las Actualizaciones del Govierno','N','N') , (1999,'2/15/2016','es-MX','chxbxShowDescriptionInResult',N'Mostrar descripciones de fracciones arancelaria SA en el Resultado','N','N') , (1999,'2/15/2016','es-MX','chxbxShowFullDescriptionControls',N'Mostrar Descripciones Completadas para todos los Controles','N','N') , (1999,'2/15/2016','es-MX','chxbxShowFullNoteText',N'Mostrar Texto Completo para todas las Notas','N','N') , (1999,'2/15/2016','es-MX','chxbxShowHeadingFilters',N'Mostrar Filtros de Encabezados','N','N') , (1999,'2/15/2016','es-MX','chxbxShowMatchesFilters',N'Mostrar filtros que Coincidan','N','N') , (1999,'2/15/2016','es-MX','chxbxShowPartnerIdShared',N'Mostrar Búsquedas Compartidas por otros usuarios','N','N') , (1999,'2/15/2016','es-MX','chxbxShowRecentSearches',N'Mostrar búsquedas recientes','N','N') , (1999,'2/15/2016','es-MX','chxbxShowRecentSelections',N'Mostrar Resultados Recientes de busqueda en Global Classification','N','N') , (1999,'2/15/2016','es-MX','chxbxShowResultsFilters',N'Mostrar filtros de Resultados','N','N') , (1999,'2/15/2016','es-MX','chxbxShowSavedSearches',N'Mostrar Búsquedas Guardadas','N','N') , (1999,'2/15/2016','es-MX','chxbxShowUnsavedSearches',N'Mostrar Búsquedas no guardadas','N','N') , (1999,'3/1/2016','es-MX','chxbxViewNotification',N'Mostrar notificaciones','N','N') , (1999,'3/1/2016','es-MX','chxbxViewStatusAlerts',N'Mostrar Alertas','N','N') , (1999,'3/1/2016','es-MX','chxbxViewSystemMessages',N'Mostrar Mensajes','N','N') , (1999,'9/11/2015','es-MX','chxCumulation',N'Usar Acumulacion','N','N') , (1999,'9/11/2015','es-MX','chxDisplayByType',N'Mostrar Tipos','N','N') , (1999,'9/11/2015','es-MX','chxDisplayByYear',N'Mostrar Años','N','N') , (1999,'9/11/2015','es-MX','chxFillInsertFromSource',N'Llenar Detalles del Producto PC de fuente','N','N') , (1999,'9/11/2015','es-MX','chxLTSDCumulation',N'Usar Acumulacion','N','N') , (1999,'9/11/2015','es-MX','chxSelectAll',N'Seleccionar todos','N','N') , (1999,'4/8/2010','es-MX','City',N'Ciudad','N','N') , (1999,'9/11/2015','es-MX','Classfication Source',N'Fuente de Classificación','N','N') , (1999,'2/22/2010','es-MX','Classification',N'Clasificación','N','N') , (1999,'9/6/2016','es-MX','Classification Num',N'No. de Clasificación','N','N') , (1999,'9/6/2016','es-MX','CLIENT-SPECIFIC FIELDS',N'Campos Especificos de Cliente','N','N') , (1999,'3/1/2016','es-MX','Close Invoices',N'Cerrar Factura','N','N') , (1999,'3/1/2016','es-MX','CloseInvoices',N'Cerrar Facturas','N','N') , (1999,'4/7/2016','es-MX','cmbx Country Filter_Input',N'Todos los Países','N','N') , (1999,'4/7/2016','es-MX','cmbx Culture Code_Input',N'Seleccionar el Lenguaje para la Descripción','N','N') , (1999,'4/7/2016','es-MX','cmbx Destination Filter_Input',N'Seleccionar o Ingresa un País','N','N') , (1999,'4/7/2016','es-MX','cmbx Status Bar HS Number_Input',N'Ingrese/Seleccione Fracción Arancelaria o Código de Referencia','N','N') , (1999,'4/7/2016','es-MX','cmbx Tariff Schedule_Input',N'Todos los Paises','N','N') , (1999,'4/7/2016','es-MX','cmbxCountryFilter_Input',N'Todos los Países','N','N') , (1999,'4/7/2016','es-MX','cmbxCultureCode_Input',N'Seleccionar el Lenguaje para la Descripción','N','N') , (1999,'4/7/2016','es-MX','cmbxDestinationFilter_Input',N'Seleccionar o Ingresa un País','N','N') , (1999,'4/7/2016','es-MX','cmbxStatusBarHSNumber_Input',N'Ingrese/Seleccione Fracción Arancelaria o Código de Referencia','N','N') , (1999,'4/7/2016','es-MX','cmbxTariffSchedule_Input',N'Todos los Paises','N','N') , (1999,'2/15/2016','es-MX','cmxbHSNumberDescription_00',N'Frase completa de la Coincidencia','N','N') , (1999,'2/15/2016','es-MX','cmxbHSNumberDescription_01',N'Coincide toda(s) la(s) Palabra (s)','N','N') , (1999,'2/15/2016','es-MX','cmxbHSNumberDescription_02',N'Coincide cualquiera de la(s) Palabra (s)','N','N') , (1999,'9/6/2016','es-MX','Co O',N'País de Origen','N','N') , (1999,'3/1/2016','es-MX','Code',N'Código','N','N') , (1999,'3/1/2016','es-MX','Collapse',N'Ocultar Detalle','N','N') , (1999,'9/6/2016','es-MX','Collect',N'Colecta','N','N') , (1999,'3/1/2016','es-MX','Column',N'Columna','N','N') , (1999,'3/1/2016','es-MX','COLUMN_PRODUCTNUM',N'Producto','N','N') , (1999,'9/6/2016','es-MX','Comment',N'Comentario','N','N') , (1999,'2/26/2010','es-MX','Comments',N'Comentarios','N','N') , (1999,'3/1/2016','es-MX','Commercial Desc',N'Descripción Comercial','N','N') , (1999,'3/1/2016','es-MX','Commercial Quantity',N'Cantidad','N','N') , (1999,'3/1/2016','es-MX','Commercial UOM Literal',N'Unidad de Medida Comercial','N','N') , (1999,'9/6/2016','es-MX','Commercial Value',N'Valor Comercial','N','N') , (1999,'9/6/2016','es-MX','Commercial Value Currency Code',N'Código de Moneda del Valor Comercial','N','N') , (1999,'3/1/2016','es-MX','CommercialDesc',N'Descripción Comercial','N','N') , (1999,'3/1/2016','es-MX','CommercialQuantity',N'Cantidad','N','N') , (1999,'3/1/2016','es-MX','CommercialUOMLiteral',N'Unidad de Medida Comercial','N','N') , (1999,'3/1/2016','es-MX','CommercialValue',N'Valor Comercial *','N','N') , (1999,'3/1/2016','es-MX','CommercialValueCurrencyCode',N'Moneda','N','N') , (1999,'9/6/2016','es-MX','Commodity Details',N'Lista de Objetos','N','N') INSERT INTO tmgPartnerCultureDefinitions(PartnerId,EffDate,CultureGuid,FieldName,FieldTranslation,DeletedFlag,KeepDuringRollback) VALUES (1999,'9/6/2016','es-MX','comp Address1',N'DomdeEmp 1','N','N') , (1999,'9/6/2016','es-MX','comp Address2',N'DomdeEmp 2','N','N') , (1999,'9/6/2016','es-MX','comp Ext Num',N'NumExtdeEmp','N','N') , (1999,'9/6/2016','es-MX','comp Int Num',N'NumIntdeEmp','N','N') , (1999,'9/6/2016','es-MX','compAddress1',N'DomdeEmp 1','N','N') , (1999,'9/6/2016','es-MX','compAddress2',N'DomdeEmp 2','N','N') , (1999,'3/1/2016','es-MX','COMPANIA',N'COMPAÑIA','N','N') , (1999,'2/24/2010','es-MX','Company',N'Compania','N','N') , (1999,'9/11/2015','es-MX','Company Address',N'Dirección de la compañía','N','N') , (1999,'3/1/2016','es-MX','Company Address Line 1',N'Dirección de la Compania 2','N','N') , (1999,'3/1/2016','es-MX','Company Address Line 2',N'Ciudad','N','N') , (1999,'3/1/2016','es-MX','Company Bond Num',N'Número de vinculo','N','N') , (1999,'3/1/2016','es-MX','Company City',N'Estado','N','N') , (1999,'3/1/2016','es-MX','Company Country',N'Código Postal','N','N') , (1999,'3/1/2016','es-MX','Company CURP',N'Guardar','N','N') , (1999,'3/1/2016','es-MX','Company Desc',N'Descripción de la Compañía','N','N') , (1999,'3/1/2016','es-MX','Company ID',N'Identificador de la Compañía','N','N') , (1999,'3/1/2016','es-MX','Company Info',N'Información de Compañia','N','N') , (1999,'3/1/2016','es-MX','Company Literal',N'Compañía literal','N','N') , (1999,'3/1/2016','es-MX','Company Maintenance',N'Mantenimiento de Compañias','N','N') , (1999,'9/11/2015','es-MX','Company Name',N'Nombre','N','N') , (1999,'3/1/2016','es-MX','Company Postal Cod',N'Código Postal','N','N') , (1999,'3/1/2016','es-MX','Company Postal Code',N'Número RNIM','N','N') , (1999,'9/7/2016','es-MX','Company Product Request_aspx',N'Solicitud para el Certificado del Cliente','N','N') , (1999,'3/1/2016','es-MX','Company RNIM',N'CURP de la Empresa','N','N') , (1999,'3/1/2016','es-MX','Company SCAC',N'Compañía SCAC','N','N') , (1999,'9/6/2016','es-MX','Company Screening Information',N'Información de la Compañía Proyectada','N','N') , (1999,'3/1/2016','es-MX','Company State',N'País','N','N') , (1999,'9/11/2015','es-MX','Company Tax ID',N'ID de la Tarifa de la companía','N','N') , (1999,'3/1/2016','es-MX','Company Type',N'Tipo de Compañía','N','N') , (1999,'3/1/2016','es-MX','CompanyAddress',N'Dirección de Compañía','N','N') , (1999,'3/1/2016','es-MX','COMPANYADDRESS1',N'Direccion 1','N','N') , (1999,'3/1/2016','es-MX','COMPANYADDRESS2',N'Direccion 2','N','N') , (1999,'3/1/2016','es-MX','COMPANYADDRESS3',N'Direccion 3','N','N') , (1999,'3/1/2016','es-MX','COMPANYADDRESS4',N'Direccion 4','N','N') , (1999,'3/1/2016','es-MX','CompanyAuthorization',N'Autorización de la Compañía','N','N') , (1999,'3/1/2016','es-MX','CompanyBondNum',N'Número de vinculo','N','N') , (1999,'3/1/2016','es-MX','COMPANYCITY',N'Ciudad','N','N') , (1999,'3/1/2016','es-MX','COMPANYCONTACTEMAIL',N'contacto correo','N','N') , (1999,'3/1/2016','es-MX','COMPANYCONTACTFAX',N'contacto Fax','N','N') , (1999,'3/1/2016','es-MX','COMPANYCONTACTNAME',N'Contacto Nombre','N','N') , (1999,'3/1/2016','es-MX','COMPANYCONTACTPHONE',N'contacto Phone','N','N') , (1999,'3/1/2016','es-MX','COMPANYCONTACTTITLE',N'Contacto Titulo','N','N') , (1999,'3/1/2016','es-MX','COMPANYCOUNTRY',N'Pais','N','N') , (1999,'3/1/2016','es-MX','COMPANYCOUNTRYCODE',N'Pais Code','N','N') , (1999,'3/1/2016','es-MX','CompanyDesc',N'Descripción de la Compañía','N','N') , (1999,'3/1/2016','es-MX','CompanyID',N'ID.Compañía','N','N') , (1999,'3/1/2016','es-MX','CompanyLiteral',N'Compañía literal','N','N') , (1999,'3/1/2016','es-MX','CompanyMaintenance',N'Mantenimiento de Compañias','N','N') , (1999,'2/24/2010','es-MX','CompanyName',N'Compañía Nombre','N','N') , (1999,'3/1/2016','es-MX','CompanyPhone',N'Teléfono de Compañía','N','N') , (1999,'3/1/2016','es-MX','CompanyPostalCod',N'Código Postal','N','N') , (1999,'3/1/2016','es-MX','CompanyPostalCode',N'Código Postal','N','N') , (1999,'9/16/2010','es-MX','CompanyProductRequest_aspx',N'Solicitud para el Certificado del Cliente','N','N') , (1999,'3/1/2016','es-MX','CompanySCAC',N'Compañía SCAC','N','N') , (1999,'3/1/2016','es-MX','COMPANYSTATE',N'Estado','N','N') , (1999,'3/1/2016','es-MX','CompanyType',N'Tipo de Compañía','N','N') , (1999,'3/1/2016','es-MX','CompanyZip',N'Código Postal de Compañía','N','N') , (1999,'3/1/2016','es-MX','Compared',N'Cotejo','N','N') , (1999,'3/1/2016','es-MX','Comparison',N'Comparasion','N','N') , (1999,'3/1/2016','es-MX','Comparison Field Name',N'Nombre del Campo de Comparación','N','N') , (1999,'3/1/2016','es-MX','Comparison Field Value',N'Valor del Campo de Comparación','N','N') , (1999,'3/1/2016','es-MX','Comparison Table',N'Tabla de Comparación','N','N') , (1999,'3/1/2016','es-MX','ComparisonFieldName',N'Nombre del Campo de Comparación','N','N') , (1999,'3/1/2016','es-MX','ComparisonFieldValue',N'Valor del Campo de Comparación','N','N') , (1999,'3/1/2016','es-MX','ComparisonTable',N'Tabla de Comparación','N','N') , (1999,'3/1/2016','es-MX','CompensableFlag',N'Bandera Compensable','N','N') , (1999,'9/6/2016','es-MX','compExtNum',N'NumExtdeEmp','N','N') , (1999,'9/6/2016','es-MX','compIntNum',N'NumIntdeEmp','N','N') , (1999,'9/11/2015','es-MX','Complete',N'Completado','N','N') , (1999,'9/6/2016','es-MX','Completed',N'Completado','N','N') , (1999,'3/1/2016','es-MX','Complimentary Saai Pedimento',N'Complementario','N','N') , (1999,'3/1/2016','es-MX','ComplimentarySaaiPedimento',N'Complementario','N','N') , (1999,'3/1/2016','es-MX','Compnay Type',N'Tipo de compañía','N','N') , (1999,'3/1/2016','es-MX','CompnayType',N'Tipo de compañía','N','N') , (1999,'9/6/2016','es-MX','Concat Separator',N'Separador concat','N','N') , (1999,'9/6/2016','es-MX','ConcatSeparator',N'Separador concat','N','N') , (1999,'9/6/2016','es-MX','ConcatSeparator (Used when Formatting is False, XML only)',N'Separador Concat (Usado cuando el formato es falso, solo en Xml','N','N') , (1999,'9/6/2016','es-MX','config default',N'Configuración por defecto','N','N') , (1999,'9/6/2016','es-MX','Connection String Type',N'Tipo de conexión cadena','N','N') , (1999,'9/6/2016','es-MX','ConnectionStringType',N'Tipo de conexión cadena','N','N') , (1999,'3/1/2016','es-MX','Consecutive',N'Consecutivo','N','N') , (1999,'3/1/2016','es-MX','ConsigneeState',N'Estado del Consignatario','N','N') , (1999,'9/11/2015','es-MX','Contact Info',N'Información de Contacto','N','N') , (1999,'3/1/2016','es-MX','Contact Name',N'Nombre de contacto','N','N') , (1999,'3/1/2016','es-MX','Contact Type',N'Tipo de Contacto','N','N') , (1999,'3/1/2016','es-MX','ContactInfo',N'Información de Contacto','N','N') , (1999,'9/6/2016','es-MX','Container',N'Contenedor','N','N') , (1999,'3/1/2016','es-MX','Container Num',N'Número de Contenedor','N','N') , (1999,'3/1/2016','es-MX','Container Seal Num',N'Número de Sello','N','N') , (1999,'9/6/2016','es-MX','Container Type',N'Tipo de Contenedor','N','N') , (1999,'3/1/2016','es-MX','Container Type Literal',N'Tipo de Contenedor','N','N') , (1999,'3/1/2016','es-MX','ContainerNum',N'Número de Contenedor','N','N') , (1999,'3/1/2016','es-MX','Containers',N'Contenedores','N','N') , (1999,'3/1/2016','es-MX','ContainerSealNum',N'Número de Sello','N','N') , (1999,'3/1/2016','es-MX','ContainerType',N'Tipo de Contenedor','N','N') , (1999,'3/1/2016','es-MX','ContainerTypeLiteral',N'Tipo de Contenedor','N','N') , (1999,'9/6/2016','es-MX','Content Web Services',N'Contenido servicios web','N','N') , (1999,'9/6/2016','es-MX','ContentWebService (old)',N'Contenido servicio web (viejo)','N','N') , (1999,'9/6/2016','es-MX','ContentWebServices',N'Contenido servicios web','N','N') , (1999,'9/11/2015','es-MX','Continuation',N'Continuación','N','N') , (1999,'3/1/2016','es-MX','ContraprestacionFee',N'Contraprestación de Cuotas','N','N') , (1999,'9/6/2016','es-MX','Control Reason',N'Razón del Control','N','N') , (1999,'9/6/2016','es-MX','Control Reasons',N'Razones del Control','N','N') , (1999,'3/1/2016','es-MX','Conversion Rate',N'Tipo de cambio','N','N') , (1999,'3/1/2016','es-MX','ConversionRate',N'Cambio Cuarto','N','N') , (1999,'9/6/2016','es-MX','Convert Currency Code List',N'Lista de conversión de código de moneda','N','N') , (1999,'9/6/2016','es-MX','ConvertCurrencyCodeList',N'Lista de conversión de código de moneda','N','N') , (1999,'9/6/2016','es-MX','Conveyance Name',N'Nombre de Transportista','N','N') , (1999,'9/6/2016','es-MX','ConveyanceName',N'Nombre de Transportista','N','N') , (1999,'2/25/2010','es-MX','COO',N'País de Origen','N','N') , (1999,'9/6/2016','es-MX','Copied',N'Copiado','N','N') , (1999,'3/1/2016','es-MX','Copy',N'Copia','N','N') , (1999,'9/6/2016','es-MX','Copy Current',N'Copiar Actual','N','N') , (1999,'3/1/2016','es-MX','Correction',N'Correción','N','N') , (1999,'9/6/2016','es-MX','Corrective Action Tracking',N'Rastreo de Acciones Correctivas','N','N') , (1999,'3/1/2016','es-MX','<NAME>',N'Cuota Algodón','N','N') , (1999,'3/1/2016','es-MX','CottonFee',N'Cuota Algodón','N','N') , (1999,'9/6/2016','es-MX','Count',N'Cuenta','N','N') , (1999,'3/1/2016','es-MX','Count Of Rows',N'Número de hileras','N','N') , (1999,'3/1/2016','es-MX','CountOfRows',N'Número de hileras','N','N') , (1999,'9/6/2016','es-MX','Countries',N'Paises','N','N') , (1999,'4/5/2010','es-MX','country',N'Pais','N','N') , (1999,'9/6/2016','es-MX','Country Code',N'Código de País','N','N') , (1999,'9/6/2016','es-MX','Country Code Content Guid',N'GUID de contenido de código de país','N','N') , (1999,'3/1/2016','es-MX','Country Of Origin',N'País de Origen *','N','N') , (1999,'3/1/2016','es-MX','Country Of Origin Or Destination',N'País de Origen o Destino','N','N') , (1999,'3/1/2016','es-MX','Country Or Origin',N'País de origen','N','N') , (1999,'3/1/2016','es-MX','Country Ship To',N'Enviado al País','N','N') , (1999,'9/6/2016','es-MX','Country Ship To:',N'País a enviar:','N','N') , (1999,'2/22/2010','es-MX','CountryCode',N'Código de país','N','N') , (1999,'9/6/2016','es-MX','CountryCodeContentGuid',N'GUID de contenido de código de país','N','N') , (1999,'2/22/2010','es-MX','CountryOfOrigin',N'País de Origen','N','N') , (1999,'3/1/2016','es-MX','CountryOfOriginOrDestination',N'País de Origen o Destino','N','N') , (1999,'3/1/2016','es-MX','CountryOrOrigin',N'País de origen','N','N') , (1999,'3/1/2016','es-MX','CountryShipTo',N'Enviado al País','N','N') , (1999,'3/1/2016','es-MX','COVE Contingency',N'Contingencia de COVE','N','N') , (1999,'3/1/2016','es-MX','COVE Document',N'Documento COVE','N','N') , (1999,'3/1/2016','es-MX','COVE Document Num',N'No. de Documento COVE','N','N') , (1999,'3/1/2016','es-MX','COVE Manual',N'Carga manual del COVE','N','N') , (1999,'3/1/2016','es-MX','COVE Message',N'Mensaje de COVE','N','N') , (1999,'3/1/2016','es-MX','COVE Operation Num',N'Número de Operacion COVE','N','N') , (1999,'3/1/2016','es-MX','COVE Report',N'Reporte COVE','N','N') , (1999,'3/1/2016','es-MX','COVE User',N'Usuario COVE','N','N') , (1999,'3/1/2016','es-MX','COVEContingency',N'Contingencia de COVE','N','N') , (1999,'3/1/2016','es-MX','COVEDocument',N'Documento COVE','N','N') , (1999,'3/1/2016','es-MX','COVEDocumentNum',N'Número de Documento COVE','N','N') , (1999,'3/1/2016','es-MX','COVEManual',N'Carga manual del COVE','N','N') , (1999,'3/1/2016','es-MX','COVEMessage',N'Mensaje de COVE','N','N') , (1999,'3/1/2016','es-MX','COVEOperationNum',N'Número de Operacion COVE','N','N') , (1999,'7/7/2014','es-MX','COVEPreview',N'Previo COVE','N','N') , (1999,'3/1/2016','es-MX','COVEReport',N'Reporte COVE','N','N') , (1999,'12/17/2013','es-MX','COVESTATUS_APPROVED',N'Aprobado','N','N') , (1999,'12/17/2013','es-MX','COVESTATUS_CONTINGENT',N'Contingente','N','N') , (1999,'12/17/2013','es-MX','COVESTATUS_NOT_SENT',N'Pendiente','N','N') , (1999,'12/17/2013','es-MX','COVESTATUS_REJECTED',N'Rechazado','N','N') , (1999,'12/17/2013','es-MX','COVESTATUS_SENT',N'Transmitido','N','N') , (1999,'3/1/2016','es-MX','COVEUser',N'Usuario COVE','N','N') , (1999,'7/16/2012','es-MX','CR',N'Cambio de Regimen','N','N') , (1999,'9/6/2016','es-MX','Create Date',N'Fecha de creación','N','N') , (1999,'9/11/2015','es-MX','Create MCS',N'Crear MCS','N','N') , (1999,'9/11/2015','es-MX','Create MCS Document',N'Crear Documento MCS','N','N') , (1999,'9/6/2016','es-MX','Create New',N'Crear nuevo','N','N') , (1999,'9/6/2016','es-MX','Create Request',N'Crear Pedido','N','N') , (1999,'9/11/2015','es-MX','Create Single MCS',N'Crear MCS Simple','N','N') , (1999,'3/1/2016','es-MX','Create Transfer Notice File',N'Crear Archivo de Envío','N','N') , (1999,'9/8/2016','es-MX','Created Date',N'Fecha de creación','N','N') , (1999,'9/8/2016','es-MX','Created On',N'Creado en','N','N') , (1999,'9/8/2016','es-MX','CreatedOn',N'Creado en','N','N') , (1999,'3/1/2016','es-MX','CREATEFILE',N'Crear Archivo de Envío','N','N') , (1999,'3/1/2016','es-MX','CreateTransferNoticeFile',N'Crear Archivo de Envío','N','N') , (1999,'3/1/2016','es-MX','ctn',N'centena','N','N') , (1999,'9/6/2016','es-MX','Culture Code',N'Código de cultura','N','N') , (1999,'9/6/2016','es-MX','Culture Code List',N'Lista de códigos de cultura','N','N') , (1999,'9/6/2016','es-MX','CultureCode',N'Código de cultura','N','N') , (1999,'9/6/2016','es-MX','CultureCodeList',N'Lista de códigos de cultura','N','N') , (1999,'3/1/2016','es-MX','Currency Code',N'Moneda','N','N') , (1999,'9/6/2016','es-MX','Currency Description',N'Descripción de la Moneda','N','N') , (1999,'3/1/2016','es-MX','Currency Value',N'Valor de Moneda','N','N') , (1999,'3/1/2016','es-MX','CurrencyCode',N'Código de moneda','N','N') , (1999,'3/1/2016','es-MX','CurrencyValue',N'Valor de Moneda','N','N') , (1999,'9/6/2016','es-MX','Current',N'Activo','N','N') , (1999,'9/6/2016','es-MX','Current HS Number',N'Número Hs Actual','N','N') , (1999,'3/1/2016','es-MX','Current Password Retries',N'Cantidad de reintentos','N','N') , (1999,'9/6/2016','es-MX','CurrentHSNumber',N'Número Hs Actual','N','N') , (1999,'9/6/2016','es-MX','Custom',N'Personalizado','N','N') , (1999,'3/1/2016','es-MX','Custom Out Section Literal',N'Aduana de Salida de la Mercancía','N','N') , (1999,'9/6/2016','es-MX','Customer Cert',N'Certificado del Cliente','N','N') , (1999,'9/6/2016','es-MX','Customer Product Num',N'Número de Producto del Cliente','N','N') , (1999,'9/11/2015','es-MX','Customer Request Creation',N'Solicitud de Creacion de Cliente','N','N') , (1999,'9/11/2015','es-MX','Customer Request Management',N'Administración de las Solicitudes del Cliente','N','N') , (1999,'3/1/2016','es-MX','CustomOutSectionLiteral',N'Aduana de Salida de la Mercancía','N','N') , (1999,'3/1/2016','es-MX','Customs',N'Aduana','N','N') , (1999,'3/1/2016','es-MX','Customs Account Number',N'No. Cuenta de Aduana','N','N') , (1999,'9/6/2016','es-MX','Customs Act 1901',N'Ley Aduanal 1901','N','N') , (1999,'3/1/2016','es-MX','Customs ID',N'Id de Frontera','N','N') , (1999,'3/1/2016','es-MX','Customs Location',N'Ubicación Aduana','N','N') , (1999,'3/1/2016','es-MX','Customs Section',N'Sección de Aduana','N','N') , (1999,'3/1/2016','es-MX','Customs Section Out Literal',N'Aduana de Salida de la Mercancía','N','N') , (1999,'3/1/2016','es-MX','Customs Value',N'Valor de Aduana','N','N') , (1999,'3/1/2016','es-MX','CustomsAccountNumber',N'No. Cuenta de Aduana','N','N') , (1999,'3/1/2016','es-MX','CustomsID',N'ID Aduana','N','N') , (1999,'3/1/2016','es-MX','CustomsLocation',N'Ubicacion Aduana','N','N') , (1999,'3/1/2016','es-MX','CustomsSection',N'Sección de Aduana','N','N') , (1999,'3/1/2016','es-MX','CustomsSectionOutLiteral',N'Aduana de Salida de la Mercancía','N','N') , (1999,'3/1/2016','es-MX','CustomsValue',N'Valor de Aduana','N','N') , (1999,'3/1/2016','es-MX','Daily Rate',N'Tarifa Diaria','N','N') , (1999,'3/1/2016','es-MX','DailyFlag',N'Bandera Diaria','N','N') , (1999,'9/6/2016','es-MX','DailyRate',N'Tipo Cambio','N','N') , (1999,'9/6/2016','es-MX','Dashboard Settings',N'Configuration de tablero de mando','N','N') , (1999,'9/6/2016','es-MX','Dashboard Title',N'Título de Tablero de Mando','N','N') , (1999,'3/1/2016','es-MX','Data Grid1',N'Nombre del proceso','N','N') , (1999,'9/6/2016','es-MX','Data Set',N'Conjunto de datos','N','N') , (1999,'9/6/2016','es-MX','Data Source',N'Fuente de los Datos','N','N') , (1999,'9/6/2016','es-MX','Data Source Notes',N'Notas de la Fuente de los Datos','N','N') , (1999,'3/1/2016','es-MX','DataGrid1',N'Nombre del proceso','N','N') , (1999,'3/1/2016','es-MX','DataGrid1$ctl01$ctl00',N'Fecha','N','N') , (1999,'3/1/2016','es-MX','DataGrid1_ctl01_ctl00',N'Fecha','N','N') , (1999,'9/6/2016','es-MX','DataSet',N'Conjunto de datos','N','N') , (1999,'9/6/2016','es-MX','DataSource',N'Fuente de los Datos','N','N') , (1999,'9/6/2016','es-MX','DataSourceNotes',N'Notas de la Fuente de los Datos','N','N') , (1999,'2/22/2010','es-MX','Date',N'Fecha','N','N') , (1999,'9/6/2016','es-MX','Date Added',N'Fecha Agregada','N','N') , (1999,'3/1/2016','es-MX','Date Created',N'Fecha creado','N','N') , (1999,'9/6/2016','es-MX','Date Entered',N'Fecha de Entrada','N','N') , (1999,'3/1/2016','es-MX','DATE FORMAT',N'FORMATO DE FECHA','N','N') , (1999,'9/11/2015','es-MX','Date is required',N'Fecha Requerida','N','N') , (1999,'9/6/2016','es-MX','Date Last Updated',N'Fecha de ultima actualización','N','N') , (1999,'3/1/2016','es-MX','Date Of Constancy',N'Fecha de Constancia','N','N') , (1999,'2/24/2010','es-MX','Date Reminder Sent',N'Fecha de Envio de Recordatorio','N','N') , (1999,'9/6/2016','es-MX','Date Saved',N'Fecha Almacenada','N','N') , (1999,'2/24/2010','es-MX','Date Sent',N'Fecha de Envio','N','N') , (1999,'9/6/2016','es-MX','Date Submitted',N'Fecha Efectuada','N','N') , (1999,'3/1/2016','es-MX','Date Type Literal',N'Tipo de Fecha','N','N') , (1999,'9/6/2016','es-MX','Date Updated',N'Fecha de Actualización','N','N') , (1999,'9/6/2016','es-MX','Date_Last_Modified',N'Ultima Fecha Modificada','N','N') , (1999,'3/1/2016','es-MX','DateCreated',N'Fecha creado','N','N') , (1999,'3/1/2016','es-MX','DateFormat',N'Formato de Fecha','N','N') , (1999,'9/6/2016','es-MX','DateLastUpdated',N'Fecha de ultima actualización','N','N') , (1999,'3/1/2016','es-MX','DateOfConstancy',N'Fecha de Constancia','N','N') , (1999,'3/1/2016','es-MX','DATES',N'FECHAS','N','N') , (1999,'2/22/2010','es-MX','DateSaved',N'Fecha Almacenada','N','N') , (1999,'2/24/2010','es-MX','DateSent',N'Enviado En','N','N') , (1999,'4/8/2010','es-MX','DateSubmitted',N'Fecha Efectuada','N','N') , (1999,'3/1/2016','es-MX','DateTimeFormat',N'Formato de Fecha Hora','N','N') , (1999,'3/1/2016','es-MX','DateType',N'Tipo de Fecha','N','N') , (1999,'3/1/2016','es-MX','DateTypeLiteral',N'Tipo de Fecha','N','N') , (1999,'2/22/2010','es-MX','DateUpdated',N'Fecha de Actualización','N','N') , (1999,'9/6/2016','es-MX','Days Since Request',N'Días desde la Solicitud','N','N') , (1999,'3/1/2016','es-MX','Days Until Expired',N'Días para Vencimiento','N','N') , (1999,'2/24/2010','es-MX','DaysSinceRequest',N'Dias Transcurridos','N','N') , (1999,'3/1/2016','es-MX','DaysUntilExpired',N'Días para Vencimiento','N','N') , (1999,'9/11/2015','es-MX','Declaration Letter ?',N'Carta de Declaración?','N','N') , (1999,'3/1/2016','es-MX','Decode',N'Descripción','N','N') , (1999,'3/1/2016','es-MX','Deep Water Flag',N'¿agua profunda?','N','N') , (1999,'3/1/2016','es-MX','DeepWaterFlag',N'Bandera de Agua Profunda','N','N') , (1999,'3/1/2016','es-MX','DefinitiveFlag',N'Bandera Definitiva','N','N') , (1999,'4/8/2010','es-MX','Delete',N'Eliminar','N','N') , (1999,'3/1/2016','es-MX','Delete Confirmation',N'¿Está seguro que desea borrar el registro seleccionado?','N','N') , (1999,'3/1/2016','es-MX','Delete MX Permit',N'Eliminar Permiso','N','N') , (1999,'3/1/2016','es-MX','Delete Pedimento',N'Borrar Pedimento','N','N') , (1999,'3/1/2016','es-MX','Delete Transfer Notice',N'Eliminar','N','N') , (1999,'3/1/2016','es-MX','DeleteButton',N'Borrar','N','N') , (1999,'3/1/2016','es-MX','Deleted Flag',N'Bandera de Eliminación','N','N') , (1999,'3/1/2016','es-MX','DeletedFlag',N'Bandera de Eliminación','N','N') , (1999,'3/1/2016','es-MX','DeleteMXPermit',N'Eliminar Permiso','N','N') , (1999,'3/1/2016','es-MX','DeletePedimento',N'Borrar Pedimento','N','N') , (1999,'3/1/2016','es-MX','DeleteTransferNotice',N'Eliminar','N','N') , (1999,'9/6/2016','es-MX','Delivery Location',N'Locación de Entrega','N','N') , (1999,'9/6/2016','es-MX','Delivery Location Date',N'Fecha de Locación de Entrega','N','N') , (1999,'3/1/2016','es-MX','Delivery Num',N'Número de Entrega','N','N') , (1999,'9/6/2016','es-MX','DeliveryLocation',N'Locación de Entrega','N','N') , (1999,'9/6/2016','es-MX','DeliveryLocationDate',N'Fecha de Locación de Entrega','N','N') , (1999,'3/1/2016','es-MX','Descripción *',N'Descripción del Manifiesto','N','N') , (1999,'4/8/2010','es-MX','Description',N'Descripción','N','N') , (1999,'9/6/2016','es-MX','Description of Query:',N'Descripción de la Consulta','N','N') , (1999,'9/6/2016','es-MX','Description Type',N'Tipo de Descripción','N','N') , (1999,'9/6/2016','es-MX','Description Type Code',N'Código de tipo de descripción','N','N') , (1999,'9/11/2015','es-MX','Description/HS Source',N'Descripcion/Fuente HS','N','N') , (1999,'9/6/2016','es-MX','DescriptionTypeCode',N'Código de tipo de descripción','N','N') , (1999,'3/1/2016','es-MX','Desperdicio',N'Desperdicio','N','N') , (1999,'9/6/2016','es-MX','DestinationCountry',N'País de Destino','N','N') , (1999,'9/6/2016','es-MX','Detail',N'Detalle','N','N') , (1999,'3/1/2016','es-MX','DetailLevelFlag',N'Bandera de Nivel de Detalle','N','N') , (1999,'2/25/2010','es-MX','Details',N'Detalles','N','N') , (1999,'2/24/2010','es-MX','Difference',N'Diferencia','N','N') , (1999,'3/1/2016','es-MX','DigitalDocEDocument',N'Documento Digital E','N','N') , (1999,'3/1/2016','es-MX','DigitalDocName',N'Nombre del Documento Digital','N','N') , (1999,'3/1/2016','es-MX','DigitalDocStatusLiteral',N'Estatus del Documento','N','N') , (1999,'3/1/2016','es-MX','DigitalDocType',N'Tipo de Documento Digital','N','N') , (1999,'9/6/2016','es-MX','Dimension UOM',N'Dimension en Unidades de Medida','N','N') , (1999,'9/6/2016','es-MX','DimensionUOM',N'Dimension en Unidades de Medida','N','N') , (1999,'3/1/2016','es-MX','Discharges',N'Descarga','N','N') , (1999,'2/26/2010','es-MX','Discrepancies',N'Discrepancia','N','N') , (1999,'3/1/2016','es-MX','DiscreteDisplayHelp_aspx',N'Display Help','N','N') , (1999,'3/1/2016','es-MX','DiscreteHelp_aspx',N'Help','N','N') , (1999,'9/6/2016','es-MX','Display Format String',N'Mostrar formato de cadena','N','N') , (1999,'9/6/2016','es-MX','DisplayFormatString',N'Mostrar formato de cadena','N','N') , (1999,'7/16/2012','es-MX','DMP',N'Devolucion de Materia Prima','N','N') , (1999,'9/6/2016','es-MX','Doc Access Type',N'Tipo de Acceso de Documento','N','N') , (1999,'9/6/2016','es-MX','Doc Type',N'Tipo de Documento','N','N') , (1999,'2/22/2010','es-MX','DocAccessType',N'Tipo de Acceso de Documento','N','N') , (1999,'9/6/2016','es-MX','Docs',N'Documentos','N','N') , (1999,'2/22/2010','es-MX','DocType',N'Tipo de Documento','N','N') , (1999,'3/1/2016','es-MX','Document',N'Documento','N','N') , (1999,'3/1/2016','es-MX','Document Date',N'Fecha de Documento','N','N') , (1999,'9/11/2015','es-MX','Document Link',N'Enlace de Documeto','N','N') , (1999,'3/1/2016','es-MX','Document Num',N'Número de Documento','N','N') , (1999,'2/24/2010','es-MX','Document Request Name',N'NombreDeSolicitudDeDocumentos','N','N') , (1999,'9/6/2016','es-MX','Document Type',N'Tipo de Documento','N','N') , (1999,'9/11/2015','es-MX','document(s)',N'Documento(s)','N','N') , (1999,'3/1/2016','es-MX','DocumentDate',N'Fecha de Documento','N','N') , (1999,'9/6/2016','es-MX','DocumentNote',N'Nota','N','N') , (1999,'3/1/2016','es-MX','DocumentNum',N'Número de Documento','N','N') , (1999,'9/11/2015','es-MX','Documents',N'Documentos','N','N') , (1999,'3/1/2016','es-MX','Dollar Value',N'Valor de Dólar','N','N') , (1999,'3/1/2016','es-MX','DollarValue',N'Valor de Dólar','N','N') , (1999,'3/1/2016','es-MX','DOT Indicator',N'Inidicador Departamento de Transporte','N','N') , (1999,'3/1/2016','es-MX','DOTIndicator',N'Indicador de Departamento de Transporte','N','N') , (1999,'3/1/2016','es-MX','DownloadFlag',N'Descargar','N','N') , (1999,'3/1/2016','es-MX','DownloadPath',N'Descarga del Recorrido','N','N') , (1999,'3/1/2016','es-MX','dozen',N'docena','N','N') , (1999,'9/6/2016','es-MX','DPS Common Words',N'Palabras comunes de DPS','N','N') , (1999,'3/1/2016','es-MX','Dropdown',N'Desplegar datos','N','N') , (1999,'3/1/2016','es-MX','drp SQL Template',N'Seleccione Plantilla','N','N') , (1999,'9/6/2016','es-MX','drpInvoices',N'Selecciona una Factura para Comparar','N','N') , (1999,'3/1/2016','es-MX','drplst Customs Location',N'Aduana','N','N') , (1999,'3/1/2016','es-MX','drplstCustomsLocation',N'Aduana','N','N') , (1999,'3/1/2016','es-MX','drplstReportType',N'Tipo de Reporte','N','N') , (1999,'3/1/2016','es-MX','drpSQLTemplate',N'Seleccione Plantilla','N','N') , (1999,'9/6/2016','es-MX','drx Load Request',N'Seleccionar Solicitud','N','N') , (1999,'9/6/2016','es-MX','drxLoadRequest',N'Seleccionar Solicitud','N','N') , (1999,'9/6/2016','es-MX','drxlst Assign To User',N'Asignar a Usuario','N','N') , (1999,'9/6/2016','es-MX','drxlst Category',N'Categoria','N','N') , (1999,'9/6/2016','es-MX','drxlst Columns',N'Columnas','N','N') , (1999,'9/6/2016','es-MX','drxlst Countries',N'Países','N','N') , (1999,'9/6/2016','es-MX','drxlst Country',N'Pais','N','N') , (1999,'9/6/2016','es-MX','drxlst Export Country',N'País de Exportación','N','N') , (1999,'9/6/2016','es-MX','drxlst Import Country',N'País de Importación','N','N') , (1999,'9/6/2016','es-MX','drxlst Language',N'Idioma','N','N') , (1999,'9/6/2016','es-MX','drxlst New Agreement',N'Nuevo Acuerdo','N','N') , (1999,'9/6/2016','es-MX','drxlst Search',N'Buscar','N','N') , (1999,'9/6/2016','es-MX','drxlst Search Column',N'Buscar Columna','N','N') , (1999,'3/1/2016','es-MX','drxlst Search Field_01',N'Descripción del Producto','N','N') , (1999,'2/15/2016','es-MX','drxlstAddSystemMessagesShareDuration',N'1','N','N') , (1999,'2/15/2016','es-MX','drxlstAddSystemMessagesShareDuration_00',N'1 día','N','N') , (1999,'2/15/2016','es-MX','drxlstAddSystemMessagesShareDuration_01',N'2 días','N','N') , (1999,'2/15/2016','es-MX','drxlstAddSystemMessagesShareDuration_02',N'3 días','N','N') , (1999,'2/15/2016','es-MX','drxlstAddSystemMessagesShareDuration_03',N'4 días','N','N') , (1999,'2/15/2016','es-MX','drxlstAddSystemMessagesShareDuration_04',N'5 días','N','N') , (1999,'9/6/2016','es-MX','drxlstAssignToUser',N'Asignar a Usuario','N','N') , (1999,'9/6/2016','es-MX','drxlstCategory',N'Categoria','N','N') , (1999,'9/6/2016','es-MX','drxlstColumns',N'Columnas','N','N') , (1999,'9/6/2016','es-MX','drxlstCountries',N'Países','N','N') , (1999,'9/6/2016','es-MX','drxlstCountry',N'Pais','N','N') , (1999,'9/6/2016','es-MX','drxlstCountryCode',N'Código de Pais','N','N') , (1999,'3/1/2016','es-MX','drxlstExport',N'Seleccionar un elemento','N','N') , (1999,'9/6/2016','es-MX','drxlstExportCountry',N'País de Exportación','N','N') , (1999,'2/15/2016','es-MX','drxlstGroupBy_00',N'País de Origen','N','N') , (1999,'2/15/2016','es-MX','drxlstGroupBy_01',N'Fracción Arancelaria del SA','N','N') , (1999,'2/15/2016','es-MX','drxlstGroupBy_02',N'Ninguno','N','N') , (1999,'9/6/2016','es-MX','drxlstImportCountry',N'País de Importación','N','N') , (1999,'9/6/2016','es-MX','drxlstLanguage',N'Idioma','N','N') , (1999,'9/6/2016','es-MX','drxlstNewAgreement',N'Nuevo Acuerdo','N','N') , (1999,'3/1/2016','es-MX','drxlstPreviousPedimentos',N'Número de Pedimento','N','N') , (1999,'3/1/2016','es-MX','drxlstPreviousPedimentos_00',N'Número de Pedimento','N','N') , (1999,'9/6/2016','es-MX','drxlstSearch',N'Buscar','N','N') , (1999,'9/6/2016','es-MX','drxlstSearchColumn',N'Buscar Columna','N','N') , (1999,'3/1/2016','es-MX','drxlstSearchField_00',N'Número de Producto','N','N') , (1999,'3/1/2016','es-MX','drxlstSearchField_01',N'Descripción del Producto','N','N') , (1999,'9/6/2016','es-MX','drxlstVisaQueryInd',N'Consulta de Visa','N','N') , (1999,'3/1/2016','es-MX','drxShipmentType_00',N'CF7501-06','N','N') , (1999,'3/1/2016','es-MX','drxShipmentType_01',N'CF7512','N','N') , (1999,'3/1/2016','es-MX','drxShipmentType_02',N'Embarque Genérico','N','N') , (1999,'3/1/2016','es-MX','drxTemplateAction_00',N'Recuperar Formato','N','N') , (1999,'3/1/2016','es-MX','drxTemplateAction_01',N'Grabar Formato','N','N') , (1999,'3/1/2016','es-MX','DTS Company Name',N'Nombre de DTS Compañía','N','N') , (1999,'3/1/2016','es-MX','DTS Last Screened Date',N'Última Fecha de Verificación','N','N') , (1999,'3/1/2016','es-MX','DTS Last Validated Date',N'Última Fecha Validada DTS','N','N') , (1999,'3/1/2016','es-MX','DTS Match Flag',N'Bandera de Igualdad DTS','N','N') , (1999,'3/1/2016','es-MX','DTS Override',N'Anulación DTS','N','N') , (1999,'3/1/2016','es-MX','DTS Override Date',N'Fecha de Anulación DTS','N','N') , (1999,'3/1/2016','es-MX','DTS Search Flag',N'Bandera Búsqueda DTS','N','N') , (1999,'3/1/2016','es-MX','DTS Status',N'Estatus DTS','N','N') , (1999,'3/1/2016','es-MX','DTSCompanyName',N'Nombre de DTS Compañía','N','N') , (1999,'2/19/2010','es-MX','DTSExcludedWords_aspx',N'Palabras Excluidas','N','N') , (1999,'3/1/2016','es-MX','DTSLastScreenedDate',N'Última Fecha de Verificación','N','N') , (1999,'3/1/2016','es-MX','DTSLastValidatedDate',N'Última Fecha Validada DTS','N','N') , (1999,'3/1/2016','es-MX','DTSMatchFlag',N'Bandera de Igualdad DTS','N','N') , (1999,'3/1/2016','es-MX','DTSOverride',N'Anulación DTS','N','N') , (1999,'3/1/2016','es-MX','DTSOverrideDate',N'Fecha de Anulación DTS','N','N') , (1999,'3/1/2016','es-MX','DTSSearchFlag',N'Bandera Búsqueda DTS','N','N') , (1999,'3/1/2016','es-MX','DTSStatus',N'Estatus DTS','N','N') , (1999,'9/6/2016','es-MX','Due Date',N'Fecha de Entrega','N','N') , (1999,'9/6/2016','es-MX','DueDate',N'Fecha de Entrega','N','N') , (1999,'3/1/2016','es-MX','Duty',N'Arancel','N','N') , (1999,'3/1/2016','es-MX','Duty Amount',N'Cantidad de Impuestos','N','N') , (1999,'3/1/2016','es-MX','Duty Amount Used',N'Cantidad de Impuesto','N','N') , (1999,'3/1/2016','es-MX','Duty Cash',N'Arancel Específico','N','N') , (1999,'3/1/2016','es-MX','Duty Other',N'Otros Impuestos de tarifas','N','N') , (1999,'3/1/2016','es-MX','Duty Rate',N'Tarifa de Impuesto','N','N') , (1999,'3/1/2016','es-MX','Duty Rate Type Literal',N'Tipo de Tarifa de Impuesto','N','N') , (1999,'3/1/2016','es-MX','Duty Type Literal',N'Tipo de Impuesto','N','N') , (1999,'3/1/2016','es-MX','DutyAmount',N'Cantidad de Impuestos','N','N') , (1999,'3/1/2016','es-MX','DutyAmountUsed',N'Cantidad de Impuesto','N','N') , (1999,'3/1/2016','es-MX','DutyCash',N'Arancel Específico','N','N') , (1999,'3/1/2016','es-MX','DutyOther',N'Otros Impuestos de tarifas','N','N') , (1999,'3/1/2016','es-MX','DutyRate',N'Tarifa de Impuesto','N','N') , (1999,'3/1/2016','es-MX','DutyRateTypeLiteral',N'Tipo de Tarifa de Impuesto','N','N') , (1999,'3/1/2016','es-MX','DutyType',N'Tipo de impuesto','N','N') , (1999,'3/1/2016','es-MX','DutyTypeLiteral',N'Tipo de Impuesto','N','N') , (1999,'9/6/2016','es-MX','E-mail Template',N'Plantilla de Correo','N','N') , (1999,'3/1/2016','es-MX','ECEX Num',N'Número ECEX','N','N') , (1999,'3/1/2016','es-MX','ECEXNum',N'Número ECEX','N','N') , (1999,'9/6/2016','es-MX','ECN Num',N'Número ECN','N','N') , (1999,'9/6/2016','es-MX','ECNNum',N'Número ECN','N','N') , (1999,'4/8/2010','es-MX','Edit',N'Editar','N','N') , (1999,'3/1/2016','es-MX','Edit Button',N'Cambiar Formato','N','N') , (1999,'3/1/2016','es-MX','Edit Dates',N'Editar Fechas','N','N') , (1999,'3/1/2016','es-MX','Edit Mode',N'Modo de Edición','N','N') , (1999,'3/1/2016','es-MX','Edit Notice Detail',N'Editar detalle del Aviso de Traslado','N','N') , (1999,'9/6/2016','es-MX','Edit Search',N'Editar Búsqueda','N','N') , (1999,'9/11/2015','es-MX','Edit/Upload Bill of Materials',N'Editar/Cargar Lista de Materiales','N','N') , (1999,'2/19/2010','es-MX','Edit_aspx',N'Editar Clasificacion','N','N') , (1999,'3/1/2016','es-MX','EditButton',N'Editar','N','N') , (1999,'3/1/2016','es-MX','EditNoticeDetail',N'Editar detalle del Aviso de Traslado','N','N') , (1999,'4/8/2010','es-MX','Eff Date',N'Fecha de vigencia','N','N') , (1999,'2/22/2010','es-MX','EffDate',N'Fecha Efectiva','N','N') , (1999,'9/6/2016','es-MX','Effective Date',N'Fecha de Incidencia','N','N') , (1999,'9/6/2016','es-MX','Effective Date2',N'Fecha de vigencia 2','N','N') , (1999,'9/6/2016','es-MX','EffectiveDate',N'Fecha de vigencia','N','N') , (1999,'9/6/2016','es-MX','EffectiveDate2',N'Fecha de vigencia 2','N','N') , (1999,'9/6/2016','es-MX','Electronic Signature',N'Firma Electronica','N','N') , (1999,'3/1/2016','es-MX','ElectronicSignature',N'Firma Electrónica','N','N') , (1999,'3/1/2016','es-MX','Email',N'Correo electronico','N','N') , (1999,'9/11/2015','es-MX','Email (Added) OR Email (Not Added)',N'Correo(Agregado) O Correo(No Agregado)','N','N') , (1999,'9/11/2015','es-MX','Email Document(s)',N'Documento(s) del Correo','N','N') , (1999,'9/6/2016','es-MX','Email Log',N'Registros de Correos','N','N') , (1999,'9/6/2016','es-MX','Email Notification',N'Notificación de E-mail','N','N') , (1999,'3/1/2016','es-MX','Embarques',N'Embarques','N','N') , (1999,'9/6/2016','es-MX','Employee',N'Empleado','N','N') , (1999,'3/1/2016','es-MX','Employees Total',N'Total de empleados','N','N') , (1999,'3/1/2016','es-MX','Enabled',N'Habilidado?','N','N') , (1999,'3/1/2016','es-MX','Enabled Containers',N'Habilitar contenedores','N','N') , (1999,'3/1/2016','es-MX','End Date',N'Fecha de finalización','N','N') , (1999,'3/1/2016','es-MX','End Of Fiscal Year',N'Terminación de Año Fiscal','N','N') , (1999,'3/1/2016','es-MX','EndDate',N'Fecha de finalización','N','N') , (1999,'3/1/2016','es-MX','EndingCF7512Number',N'Finalizar Número CF7512','N','N') , (1999,'3/1/2016','es-MX','EndOfFiscalYear',N'Terminación de Año Fiscal','N','N') , (1999,'3/1/2016','es-MX','EndOfFiscalYesar',N'Final de Año Fiscal','N','N') , (1999,'3/1/2016','es-MX','EndOfZoneYear',N'Final de Zona de Año','N','N') , (1999,'9/6/2016','es-MX','Enter Excluded Word Here:',N'Ingresa la Palabra a Excluir aqui:','N','N') , (1999,'3/1/2016','es-MX','Enter Staging Transactions',N'Editar Transacciones en la Tabla','N','N') , (1999,'9/6/2016','es-MX','Entity Details',N'Detalles de Entidad','N','N') , (1999,'9/6/2016','es-MX','Entity Name',N'Nombre de la Entidad','N','N') , (1999,'9/6/2016','es-MX','Entity Remarks',N'Notas de Entidad','N','N') , (1999,'3/1/2016','es-MX','Entity Role Code',N'Código de entidad de papel','N','N') , (1999,'9/6/2016','es-MX','Entity Type',N'Tipo de Entidad','N','N') , (1999,'3/1/2016','es-MX','EntityRoleCode',N'Código de entidad de papel','N','N') , (1999,'9/6/2016','es-MX','Entry',N'Entrada','N','N') , (1999,'9/6/2016','es-MX','Entry Analysis',N'Análisis de Entradas','N','N') , (1999,'9/6/2016','es-MX','Entry extended to Export',N'Entrada extendida para exportación','N','N') , (1999,'3/1/2016','es-MX','Entry Filer Code',N'Código de archivo','N','N') , (1999,'3/1/2016','es-MX','ENTRY FILING',N'ENTRADA DE ARCHIVO','N','N') , (1999,'9/6/2016','es-MX','Entry Management',N'Administración de Entradas','N','N') , (1999,'9/6/2016','es-MX','Entry Num',N'Número de Entrada','N','N') , (1999,'9/6/2016','es-MX','Entry Type',N'Tipo de entrada','N','N') , (1999,'3/1/2016','es-MX','Entry Type Value',N'Tipo de Entrada de Valor','N','N') , (1999,'3/1/2016','es-MX','EntryFilerCode',N'Código de archivo','N','N') , (1999,'9/6/2016','es-MX','EntryNum',N'Numero de Entrada','N','N') , (1999,'3/1/2016','es-MX','EntryTypeEvaluation',N'Evaluación de Tipo de Entrada','N','N') , (1999,'3/1/2016','es-MX','EntryTypeValue',N'Tipo de Entrada de Valor','N','N') , (1999,'7/16/2012','es-MX','EQ',N'Equipo','N','N') , (1999,'9/6/2016','es-MX','EquipmentNum',N'Número de Equipo','N','N') , (1999,'3/1/2016','es-MX','ERP Date',N'Fecha ERP','N','N') , (1999,'3/1/2016','es-MX','ERP Id',N'Identificacion ERP','N','N') , (1999,'3/1/2016','es-MX','ERPDate',N'Fecha ERP','N','N') , (1999,'3/1/2016','es-MX','ERRCOUNTRY',N'Error al cargar el boton de opciones de pais, Favor de contactar al administrador del sistema','N','N') , (1999,'3/1/2016','es-MX','ERRDISMOT',N'Error al deshabilitar el campo de MdT, Favor de contactar al administrador del sistema','N','N') , (1999,'3/1/2016','es-MX','ERRDROPDOWN',N'Error al cargar el boton de opciones, Favor de contactar al administrador del sistema','N','N') , (1999,'3/1/2016','es-MX','ERRGETMOT',N'Error al obtener default en el campo de MdT, Favor de contactar al administrador del sistema','N','N') , (1999,'3/1/2016','es-MX','ERRINSMX',N'Error al Insertar los detalles de registros de la factura MX','N','N') , (1999,'3/1/2016','es-MX','ERRINSMXHD',N'Error al insertar los registros de encabezado de la factura MX','N','N') , (1999,'3/1/2016','es-MX','ERRINSMXINV',N'Error al insertar la informacion de la factura MX','N','N') , (1999,'3/1/2016','es-MX','ERRLDINVNUM',N'Error al cargar numero de factura, Favor de contactar al administrador del sistema','N','N') , (1999,'3/1/2016','es-MX','ERRLDINVTYP',N'Error al cargar el boton de opciones de Tipo de Factura, Favor de contactar al administrador del sistema','N','N') , (1999,'3/1/2016','es-MX','ERRLDMOT',N'Error al cargar el boton de opciones de Modo de Transporte, Favor de contactar al administrador del sistema','N','N') , (1999,'3/1/2016','es-MX','ERRLDPED',N'Error al cargar el boton de opciones de Numero de Pedimento, Favor de contactar al administrador del sistema','N','N') , (1999,'3/1/2016','es-MX','ERRMOT1',N'Error en Modo de Transporte anotado, (','N','N') , (1999,'3/1/2016','es-MX','ERRMOT2',N'), no existe en la lista, Favor de contactar al administrador del sistema','N','N') , (1999,'3/1/2016','es-MX','Error Catalogs',N'Catálogos de Error','N','N') , (1999,'9/6/2016','es-MX','Error Report',N'Reporte de Error','N','N') , (1999,'9/6/2016','es-MX','Error Reports',N'Reportes de Error','N','N') , (1999,'9/6/2016','es-MX','Error Type/SubCategory',N'Tipo de Error/SubCategoria','N','N') , (1999,'3/1/2016','es-MX','ErrorMessage',N'Mensaje de Error','N','N') , (1999,'3/1/2016','es-MX','Errors',N'Errores','N','N') , (1999,'3/1/2016','es-MX','Errors (0)',N'ErroreSS','N','N') , (1999,'3/1/2016','es-MX','ErrorType',N'Tipo de Error','N','N') , (1999,'3/1/2016','es-MX','Erros',N'Errores','N','N') , (1999,'3/1/2016','es-MX','ERRSETMOT1',N'Error al anotar Modo de Transporte, (','N','N') , (1999,'3/1/2016','es-MX','ERRSETMOT2',N'), no existe en la lista, Favor de contactar al administrador del sistema','N','N') , (1999,'3/1/2016','es-MX','ERRUPD',N'Error al actualizar la información. Favor de contactar al administrador del sistema','N','N') , (1999,'3/1/2016','es-MX','ERRUPDATE',N'Error encontrado al actualizar la informacion','N','N') , (1999,'3/1/2016','es-MX','ERRUPDEXP',N'Error al actualizar la tabla txdFifoProcessing para los registros de ExportShipment.','N','N') , (1999,'3/1/2016','es-MX','ERRUPDFIFO',N'Error al actualizar la tabla txdFifoProcessing para registros de Exportacion.','N','N') , (1999,'3/1/2016','es-MX','ERRUPDMX',N'Error al actualizar las tablas de Importacion MX','N','N') , (1999,'3/1/2016','es-MX','ERRUPDMXINV',N'Error al actualizar los registros de Factura MX','N','N') , (1999,'9/6/2016','es-MX','Exact Match',N'Coincidencia exacta','N','N') , (1999,'9/6/2016','es-MX','Excel Spreadsheet',N'Hoja de Calculo Excel','N','N') , (1999,'9/6/2016','es-MX','Exception',N'Excepción','N','N') , (1999,'4/8/2010','es-MX','Exception Name',N'Excepción Nombre','N','N') , (1999,'4/8/2010','es-MX','Exceptions',N'Excepciones','N','N') , (1999,'9/6/2016','es-MX','Exchange Convert Units List',N'Lista de unidades de intercambio converso','N','N') , (1999,'3/1/2016','es-MX','Exchange Frequency',N'Frecuencia cambiaria','N','N') , (1999,'9/6/2016','es-MX','Exchange Rate Source List',N'Lista de la fuente de tipo de cambio','N','N') , (1999,'9/6/2016','es-MX','ExchangeConvertUnitsList',N'Lista de unidades de intercambio converso','N','N') , (1999,'3/1/2016','es-MX','ExchangeFrequency',N'Frecuencia de Cambio','N','N') , (1999,'9/6/2016','es-MX','ExchangeRateSourceList',N'Lista de la fuente de tipo de cambio','N','N') , (1999,'9/6/2016','es-MX','Exclude Partner Id',N'Excluir ID de socio','N','N') , (1999,'9/6/2016','es-MX','Exclude Words',N'Palabras Excluidas','N','N') , (1999,'4/8/2010','es-MX','ExcludedWord',N'Palabras Excluidas','N','N') , (1999,'9/6/2016','es-MX','ExcludePartnerId',N'Excluir ID de socio','N','N') , (1999,'3/1/2016','es-MX','Exec Upd Hide SQL',N'Ver Consulta','N','N') , (1999,'3/1/2016','es-MX','Exec Upd View SQL',N'Ver SQL','N','N') , (1999,'3/1/2016','es-MX','ExecUpdHideSQL',N'Ver Consulta','N','N') , (1999,'3/1/2016','es-MX','ExecUpdViewSQL',N'Ver SQL','N','N') , (1999,'3/1/2016','es-MX','Exit',N'Salir','N','N') , (1999,'3/1/2016','es-MX','Exit Doc ID',N'Doc.ID de Salida','N','N') , (1999,'3/1/2016','es-MX','ExitDocID',N'Doc.ID de Salida','N','N') , (1999,'4/8/2010','es-MX','Exp Date',N'Fecha de Expiracion','N','N') , (1999,'3/1/2016','es-MX','Exp Destination',N'Destino de exportación','N','N') , (1999,'3/1/2016','es-MX','Exp Doc Num',N'Número de documento de exportación','N','N') , (1999,'3/1/2016','es-MX','Exp Ped Date',N'Fecha de pedimento de exportación','N','N') , (1999,'3/1/2016','es-MX','Exp Total Value',N'Valor total Exp','N','N') , (1999,'3/1/2016','es-MX','Expand',N'Mostrar Detalle','N','N') , (1999,'3/1/2016','es-MX','ExpDestination',N'Destino de exportación','N','N') , (1999,'3/1/2016','es-MX','ExpDocNum',N'Número de documento de exportación','N','N') , (1999,'3/1/2016','es-MX','Expiration Date',N'Fecha de Vencimiento','N','N') , (1999,'3/1/2016','es-MX','ExpirationDate',N'Fecha de Vencimiento','N','N') , (1999,'3/1/2016','es-MX','Expired',N'Expirado','N','N') , (1999,'3/1/2016','es-MX','Expired Flag',N'Bandera de Vencimiento','N','N') , (1999,'3/1/2016','es-MX','ExpiredFlag',N'Bandera de Vencimiento','N','N') , (1999,'9/6/2016','es-MX','Export Code',N'Codigo Export.','N','N') , (1999,'9/6/2016','es-MX','Export Country',N'País de Exportación','N','N') , (1999,'9/6/2016','es-MX','Export Country Code',N'Código del país de exportación','N','N') , (1999,'3/1/2016','es-MX','Export Date',N'Fecha de Exportación','N','N') , (1999,'9/6/2016','es-MX','Export License',N'Licencia de Exportación','N','N') , (1999,'9/6/2016','es-MX','Export Tariff Num',N'Número de Tarifa de Exportación','N','N') , (1999,'3/1/2016','es-MX','Exportations',N'Exportaciones','N','N') , (1999,'9/6/2016','es-MX','ExportCountry',N'País de Exportación','N','N') , (1999,'9/6/2016','es-MX','ExportCountryCode',N'Código de país de exportación','N','N') , (1999,'3/1/2016','es-MX','ExportDate',N'Fecha de Exportación','N','N') , (1999,'3/1/2016','es-MX','EXPORTDATECHK',N'La fecha de exportacion no puede ser posterior a la fecha de recibo','N','N') , (1999,'9/6/2016','es-MX','Exporter Address1',N'Dirección del Exportador','N','N') , (1999,'9/6/2016','es-MX','Exporter Address2',N'Dirección del Exportador 2','N','N') , (1999,'9/6/2016','es-MX','Exporter Address3',N'Dirección del Exportador 3','N','N') , (1999,'9/6/2016','es-MX','Exporter Address4',N'Dirección del Exportador 4','N','N') , (1999,'9/6/2016','es-MX','Exporter City',N'Ciudad del Exportador','N','N') , (1999,'9/6/2016','es-MX','Exporter Contact Email',N'Email del Exportador','N','N') , (1999,'9/6/2016','es-MX','Exporter Contact Fax',N'Fax del Exportador','N','N') , (1999,'9/6/2016','es-MX','Exporter Contact Name',N'Nombre de Contacto del Exportador','N','N') , (1999,'9/6/2016','es-MX','Exporter Contact Phone',N'Teléfono del Exportador','N','N') , (1999,'9/6/2016','es-MX','Exporter Contact Title',N'Título de Contacto del Exportador','N','N') , (1999,'9/6/2016','es-MX','Exporter Country Code',N'Código de País del Exportador','N','N') , (1999,'9/11/2015','es-MX','Exporter Information',N'Información de Exportador','N','N') , (1999,'9/6/2016','es-MX','Exporter Name',N'Nombre del Exportador','N','N') , (1999,'9/6/2016','es-MX','Exporter Postal Code',N'Código Postal del Exportador','N','N') , (1999,'9/6/2016','es-MX','Exporter State',N'Estado de Exportador','N','N') , (1999,'9/6/2016','es-MX','Exporter Tax ID',N'ID de Impuestos del Exportador','N','N') , (1999,'9/6/2016','es-MX','ExporterAddress1',N'Dirección del Exportador','N','N') , (1999,'9/6/2016','es-MX','ExporterAddress2',N'Dirección del Exportador 2','N','N') , (1999,'9/6/2016','es-MX','ExporterAddress3',N'Dirección del Exportador 3','N','N') , (1999,'9/6/2016','es-MX','ExporterAddress4',N'Dirección del Exportador 4','N','N') , (1999,'9/6/2016','es-MX','ExporterCity',N'Ciudad del Exportador','N','N') , (1999,'9/6/2016','es-MX','ExporterContactEmail',N'Email del Exportador','N','N') , (1999,'9/6/2016','es-MX','ExporterContactFax',N'Fax del Exportador','N','N') , (1999,'9/6/2016','es-MX','ExporterContactName',N'Nombre de Contacto del Exportador','N','N') , (1999,'9/6/2016','es-MX','ExporterContactPhone',N'Teléfono del Exportador','N','N') , (1999,'9/6/2016','es-MX','ExporterContactTitle',N'Título de Contacto del Exportador','N','N') , (1999,'9/6/2016','es-MX','ExporterCountryCode',N'Código de País del Exportador','N','N') , (1999,'9/6/2016','es-MX','ExporterName',N'Nombre del Exportador','N','N') , (1999,'9/6/2016','es-MX','ExporterPostalCode',N'Código Postal del Exportador','N','N') , (1999,'9/6/2016','es-MX','ExporterState',N'Estado de Exportador','N','N') , (1999,'9/6/2016','es-MX','ExporterTaxID',N'ID de Impuestos del Exportador','N','N') , (1999,'9/6/2016','es-MX','ExportTariffNum',N'Número de Tarifa de Exportación','N','N') , (1999,'3/1/2016','es-MX','ExpPedDate',N'Fecha de pedimento de exportación','N','N') , (1999,'3/1/2016','es-MX','ExpTotalValue',N'Valor total Exp','N','N') , (1999,'3/1/2016','es-MX','ExteriorNum',N'Número Exterior','N','N') , (1999,'3/1/2016','es-MX','External Product Num',N'Número de Producto Externo','N','N') , (1999,'9/6/2016','es-MX','ExternalNotes',N'Notas Externas','N','N') , (1999,'3/1/2016','es-MX','ExternalProductNum',N'Número de Producto Externo','N','N') , (1999,'9/11/2015','es-MX','Extract Products',N'Extraer Productos','N','N') , (1999,'9/11/2015','es-MX','Extract Template',N'Extraer Plantilla','N','N') , (1999,'3/1/2016','es-MX','f100300DutyPosting_aspx',N'Duty Posting','N','N') , (1999,'9/6/2016','es-MX','Facility Ownership',N'Propietario de la Instalación','N','N') , (1999,'3/1/2016','es-MX','Fact.Num.',N'Número de Factura','N','N') , (1999,'3/1/2016','es-MX','FactNum',N'Número de Factura','N','N') , (1999,'9/11/2015','es-MX','Failed Bill of Materials',N'Lista de Materiales Fallidas','N','N') , (1999,'9/6/2016','es-MX','Failure Email',N'E-mail de Fallo','N','N') , (1999,'9/6/2016','es-MX','Failure Instructions',N'Instrucciones de Fallo','N','N') , (1999,'9/6/2016','es-MX','Failure Phone Number',N'Telefono de Fallos','N','N') , (1999,'9/6/2016','es-MX','Failure WebSite',N'Sitio Web de Fallo','N','N') , (1999,'3/1/2016','es-MX','FCC Indicator',N'Inidicador Comisión Federal Comunicaciones','N','N') , (1999,'3/1/2016','es-MX','FCCIndicator',N'Indicador de la Comisión Federal de Comunicaciones','N','N') , (1999,'3/1/2016','es-MX','FDA Indicator',N'Inidicador Administracion de Comida y Medicina','N','N') , (1999,'3/1/2016','es-MX','FDAIndicator',N'Inidicador de Administración de Comida y Medicina','N','N') , (1999,'3/1/2016','es-MX','Federal ID',N'ID Federal','N','N') , (1999,'3/1/2016','es-MX','Federal ID Type',N'Tipo ID Federal','N','N') , (1999,'3/1/2016','es-MX','FederalEntity',N'Entidad Federal','N','N') , (1999,'3/1/2016','es-MX','FederalID',N'ID Federal','N','N') , (1999,'3/1/2016','es-MX','FederalIDType',N'Tipo ID Federal','N','N') , (1999,'3/1/2016','es-MX','Fee Amount',N'Cantidad de comisión','N','N') , (1999,'3/1/2016','es-MX','Fee Rate Type',N'Tipo de tasa de comisión','N','N') , (1999,'3/1/2016','es-MX','Fee Total',N'Total de comisión','N','N') , (1999,'3/1/2016','es-MX','Fee Type',N'Tipo de comisión','N','N') , (1999,'3/1/2016','es-MX','FeeAmount',N'Cantidad de comisión','N','N') , (1999,'3/1/2016','es-MX','FeeFormOfPayment',N'Forma de pago','N','N') , (1999,'3/1/2016','es-MX','FeeRate',N'Tasa de Cuota','N','N') , (1999,'3/1/2016','es-MX','FeeRateType',N'Tipo de tasa de comisión','N','N') , (1999,'3/1/2016','es-MX','FeeTotal',N'Total de comisión','N','N') , (1999,'3/1/2016','es-MX','FeeType',N'Tipo de comisión','N','N') , (1999,'3/1/2016','es-MX','ffd MX Weekly Pedimento Form_aspx',N'Pedimento Consolidado','N','N') , (1999,'3/1/2016','es-MX','ffd MX Weekly Pedimento_aspx',N'Número de Pedimento','N','N') , (1999,'3/1/2016','es-MX','ffdCF214FTZAdmissionForm_aspx',N'CBP 214 FTZ Admission','N','N') , (1999,'3/1/2016','es-MX','ffdCF216Blanket_aspx',N'CBP216 Blanket','N','N') , (1999,'3/1/2016','es-MX','ffdCF3461WeeklyEstimate_aspx',N'CBP3461 Weekly Estimate','N','N') , (1999,'3/1/2016','es-MX','ffdCF349HarborMaintenanceFeeForm_aspx',N'CBP349 Harbor Maintenance Fee','N','N') , (1999,'3/1/2016','es-MX','ffdCF7501WeeklyEntryForm_aspx',N'CBP7501 Weekly Entry','N','N') , (1999,'3/1/2016','es-MX','ffdCF7512Outbound_aspx',N'CBP7512 Outbound','N','N') , (1999,'3/1/2016','es-MX','ffdCF7512ProForma_aspx',N'CBP 7512 ProForma','N','N') , (1999,'3/1/2016','es-MX','ffdDiscreteWeeklyEstimateComparison_aspx',N'DiscreteWeeklyEstimateComparison','N','N') , (1999,'3/1/2016','es-MX','ffdImmediateDutyPayForm_aspx',N'Immediate Duty Pay','N','N') , (1999,'4/8/2014','es-MX','ffdMXDigitizeDocument_aspx',N'Digitalizar Documento','N','N') , (1999,'3/1/2016','es-MX','ffdMXHighSecuritySeal_aspx',N'Sello De Alto Securidad','N','N') , (1999,'3/1/2016','es-MX','ffdMXWeeklyPedimento_aspx',N'Numeros del Pedimentos','N','N') , (1999,'3/1/2016','es-MX','ffdMXWeeklyPedimentoForm_aspx',N'Pedimento Consolidado','N','N') , (1999,'4/8/2014','es-MX','ffdMXWorkWithDigitizeDocuments_aspx',N'Digitalizar Documentos','N','N') , (1999,'3/1/2016','es-MX','ffdMXZoneScrapInvoice_aspx',N'Scrap Invoice','N','N') , (1999,'3/1/2016','es-MX','ffdWeeklyEstimateEntryForm_aspx',N'Weekly Estimate','N','N') , (1999,'9/21/2016','es-MX','fid BOM Analysis Upload.aspx',N'Editar/Cargar Lista de Materiales','N','N') , (1999,'9/7/2016','es-MX','fid BOM Analysis Upload_aspx',N'Editar/Cargar Lista de Materiales','N','N') , (1999,'9/7/2016','es-MX','fid FTA Mass Analysis_aspx',N'Análisis Masivo de la Lista de Materiales(BOM)','N','N') , (1999,'9/21/2016','es-MX','fid FTA What If_aspx',N'Calculadora de reglas de origen por TLC','N','N') , (1999,'9/7/2016','es-MX','fid FTABOM Rules Analysis_aspx',N'Análisis de la Lista de Materiales(BOM)','N','N') , (1999,'9/7/2016','es-MX','fid Product FTA Maint_aspx',N'Registro de Productos para TLC','N','N') , (1999,'3/1/2016','es-MX','fid_500100_ManualReceipts_aspx',N'Captura de Datos de Recibo','N','N') , (1999,'9/6/2016','es-MX','fidAESReportEntry_aspx',N'AES Informe de Entry','N','N') , (1999,'9/21/2016','es-MX','fidBOMAnalysisUpload_aspx',N'Editar/Cargar Lista de Materiales','N','N') , (1999,'2/19/2010','es-MX','fidFTABOMRulesAnalysis_aspx',N'Análisis de la Lista de Materiales(BOM)','N','N') , (1999,'2/19/2010','es-MX','fidFTAMassAnalysis_aspx',N'Análisis Masivo de la Lista de Materiales(BOM)','N','N') , (1999,'9/21/2016','es-MX','fidFTAWhatIf_aspx',N'Calculadora de reglas de origen por TLC','N','N') , (1999,'3/1/2016','es-MX','fidGenerateCensusFile_aspx',N'Generate Census File','N','N') , (1999,'3/1/2016','es-MX','fidManualReceipts_aspx',N'Manual Receipts','N','N') , (1999,'6/11/2011','es-MX','fidManualShipments_aspx',N'Captura de Información de Embarque','N','N') , (1999,'2/19/2010','es-MX','fidProductFTAMaint_aspx',N'Registro de Productos para TLC','N','N') , (1999,'3/1/2016','es-MX','fidUploadReceipts_aspx',N'Upload Receipts','N','N') , (1999,'3/1/2016','es-MX','fidUploadShipments_aspx',N'Upload Shipments','N','N') , (1999,'9/6/2016','es-MX','Field',N'Campo','N','N') , (1999,'3/1/2016','es-MX','Field Name',N'Nombre del Campo','N','N') , (1999,'3/1/2016','es-MX','FieldName',N'Nombre de Campo','N','N') , (1999,'3/1/2016','es-MX','FieldNum',N'Número de Campo','N','N') , (1999,'3/1/2016','es-MX','FIFO Flag',N'FIFO','N','N') , (1999,'3/1/2016','es-MX','FIFOFlag',N'FIFO','N','N') , (1999,'3/1/2016','es-MX','figImportDataIntoStaging_aspx',N'Import Data Into Staging','N','N') , (1999,'9/6/2016','es-MX','File',N'Archivo','N','N') , (1999,'9/6/2016','es-MX','File Attached',N'Archivo Cargado','N','N') , (1999,'3/1/2016','es-MX','File Name',N'Nombre de Archivo','N','N') , (1999,'9/6/2016','es-MX','File To Upload',N'Archivo a Cargar','N','N') , (1999,'9/6/2016','es-MX','File Upload Date',N'Fecha de Carga del Archivo','N','N') , (1999,'9/6/2016','es-MX','File_Name',N'Nombre de Archivo','N','N') , (1999,'9/6/2016','es-MX','FileAttached',N'Archivo Cargado','N','N') , (1999,'3/1/2016','es-MX','FileDate',N'Fecha del Archivo','N','N') , (1999,'3/1/2016','es-MX','FileName',N'Nombre de Archivo','N','N') , (1999,'9/6/2016','es-MX','FileToUpload',N'Archivo a Cargar','N','N') , (1999,'3/1/2016','es-MX','FileType',N'Tipo de Archivo','N','N') , (1999,'3/1/2016','es-MX','FileTypeLiteral',N'Tipo del Archivo','N','N') , (1999,'9/6/2016','es-MX','FILING DETAILS',N'Información de llenado','N','N') , (1999,'9/6/2016','es-MX','FilingOption',N'Opcion de Llenado','N','N') , (1999,'9/6/2016','es-MX','Filter Query String',N'Filtrar cadena de consulta','N','N') , (1999,'9/6/2016','es-MX','Filter Value',N'Valor de filtro','N','N') , (1999,'2/15/2016','es-MX','FILTER_Contains',N'Contiene','N','N') , (1999,'2/15/2016','es-MX','FILTER_DoesNotContain',N'No contiene','N','N') , (1999,'2/15/2016','es-MX','FILTER_EndsWith',N'Termina con','N','N') , (1999,'2/15/2016','es-MX','FILTER_EqualTo',N'IgualA','N','N') , (1999,'2/15/2016','es-MX','FILTER_GreaterThan',N'MayorQue','N','N') , (1999,'2/15/2016','es-MX','FILTER_GreaterThanOrEqualTo',N'MayorOIgualQue','N','N') , (1999,'2/15/2016','es-MX','FILTER_IsEmpty',N'Vacío','N','N') , (1999,'2/15/2016','es-MX','FILTER_LessThan',N'MenorQue','N','N') , (1999,'2/15/2016','es-MX','FILTER_LessThanOrEqualTo',N'MenorOIgualQue','N','N') , (1999,'2/15/2016','es-MX','FILTER_NoFilter',N'SinFiltro','N','N') , (1999,'2/15/2016','es-MX','FILTER_NotEqualTo',N'DiferenteA','N','N') , (1999,'2/15/2016','es-MX','FILTER_NotIsEmpty',N'NoVacío','N','N') , (1999,'2/15/2016','es-MX','FILTER_StartsWith',N'Empieza con','N','N') , (1999,'9/6/2016','es-MX','FilterQueryString',N'Filtrar cadena de consulta','N','N') , (1999,'9/6/2016','es-MX','FinalDisposition',N'Disposición Final','N','N') , (1999,'3/1/2016','es-MX','Finalize FIFO',N'Finalizar FIFO','N','N') , (1999,'9/6/2016','es-MX','Finished Goods Balance Audit',N'Auditoria del Balance de ProductosTerminados','N','N') , (1999,'3/1/2016','es-MX','First',N'Primer Semestre','N','N') , (1999,'3/1/2016','es-MX','First half',N'Primer mitad','N','N') , (1999,'3/1/2016','es-MX','First Name',N'Nombre','N','N') , (1999,'4/8/2014','es-MX','FIXED',N'Fijo','N','N') , (1999,'3/1/2016','es-MX','Fixed Asset Flag',N'Activos Fijos','N','N') , (1999,'3/1/2016','es-MX','FixedAssetFlag',N'Activos Fijos','N','N') , (1999,'3/1/2016','es-MX','FixedDTAFee',N'Cuota Fija DTA','N','N') , (1999,'3/1/2016','es-MX','FixedDTAFlag',N'Bandera Fija DTA','N','N') , (1999,'3/1/2016','es-MX','FLAGS',N'BANDERAS','N','N') , (1999,'9/6/2016','es-MX','fmd Dash Board_aspx',N'Tablero de Mando','N','N') , (1999,'9/6/2016','es-MX','fmd Export FTA Setup_aspx',N'Configuración de Exportación de FTA','N','N') , (1999,'3/1/2016','es-MX','fmd MX Maintain Permit_aspx',N'Mantenimiento de Permisos de Regla 8va y COFEPRIS','N','N') , (1999,'3/1/2016','es-MX','fmd MX Permits_aspx',N'Regla 8va y COFEPRIS','N','N') , (1999,'9/6/2016','es-MX','fmdDashBoard_aspx',N'Tablero de Mando','N','N') , (1999,'3/3/2017','es-MX','fmdESignatureSetup_aspx',N'Configuracion de Firma Electronica','N','N') , (1999,'9/6/2016','es-MX','fmdExportFTASetup_aspx',N'Configuración de Exportación de FTA','N','N') , (1999,'3/1/2016','es-MX','fmdItemMaster_aspx',N'Maestro de artículos','N','N') , (1999,'7/7/2014','es-MX','fmdMXDocumentRules_aspx',N'Reglas de Documentos','N','N') , (1999,'7/16/2015','es-MX','fmdMXMaintainPermit_aspx',N'Mantener Permisos MX','N','N') , (1999,'7/16/2015','es-MX','fmdMXMaintainSAAICatalogs_aspx',N'MX Catalogos de SAAI','N','N') , (1999,'7/16/2015','es-MX','fmdMXPermits_aspx',N'Permisos MX','N','N') , (1999,'3/1/2016','es-MX','fmg Defaults_aspx',N'Valores Predeterminados','N','N') , (1999,'9/7/2016','es-MX','fmg Maintenance_aspx',N'Resumen de Solicitud de Cliente','N','N') , (1999,'9/7/2016','es-MX','fmg Rules Entry_aspx',N'Reglas de Origen','N','N') , (1999,'9/21/2016','es-MX','fmg Supplier Dashboard_aspx',N'Datos de Proveedores','N','N') , (1999,'2/15/2016','es-MX','fmgAddKnowledge_aspx',N'Agregar/Modificar Caracteristicas','N','N') , (1999,'9/6/2016','es-MX','fmgBOMMaintenance_aspx',N'Mantenimiento del BOM','N','N') , (1999,'3/1/2016','es-MX','fmgCompanyMaintenance.aspx_aspx',N'Catalogo de Compañias','N','N') , (1999,'2/19/2010','es-MX','fmgCompanyMaintenance_aspx',N'Catálogo de Compañías','N','N') , (1999,'3/1/2016','es-MX','fmgDefaults_aspx',N'Valores Predeterminados','N','N') , (1999,'3/10/2013','es-MX','fmgDTSSpreadsheetImport_aspx',N'Importar Hoja de Cálculo','N','N') , (1999,'10/3/2013','es-MX','fmgEquipmentMaintenance_aspx',N'Inventario de Equipo','N','N') , (1999,'3/1/2016','es-MX','fmgExchangeRate_aspx',N'Exchange Rate Configuration','N','N') , (1999,'3/1/2016','es-MX','fmgHTSMaintenance_aspx',N'HTS Maintenance','N','N') , (1999,'2/15/2016','es-MX','fmgKnowledgeProfile_aspx',N'Caracteristicas de la busqueda','N','N') , (1999,'4/8/2010','es-MX','fmgMaintenance_aspx',N'Resumen de Solicitud de Cliente','N','N') , (1999,'2/19/2010','es-MX','fmgRulesEntry_aspx',N'Reglas de Origen','N','N') , (1999,'4/8/2014','es-MX','fmgStaticBom_aspx',N'Mantenimiento de BOM Est�tico','N','N') , (1999,'2/15/2016','es-MX','fmgSubscriptionManagement_aspx',N'Suscripciones de Contenido','N','N') , (1999,'9/21/2016','es-MX','fmgSupplierDashboard_aspx',N'Datos de Proveedores','N','N') , (1999,'9/16/2010','es-MX','fmgWorkQueue_aspx',N'Detalle de Solicitud del cliente','N','N') , (1999,'3/1/2016','es-MX','Folio Differences',N'Diferencia de Folio','N','N') , (1999,'3/1/2016','es-MX','Folio Of Constancy',N'Folio de Constancia','N','N') , (1999,'3/1/2016','es-MX','FolioDifferences',N'Diferencia de Folio','N','N') , (1999,'3/1/2016','es-MX','FolioOfConstancy',N'Folio de Constancia','N','N') , (1999,'9/11/2015','es-MX','For',N'Por','N','N') , (1999,'3/1/2016','es-MX','Force Password Change',N'Forzar cambio de contraseña','N','N') , (1999,'3/1/2016','es-MX','Foreign Entity Flag',N'Bandera de Entidad Foráneo','N','N') , (1999,'3/1/2016','es-MX','ForeignEntityFlag',N'Bandera de Entidad Foráneo','N','N') , (1999,'3/1/2016','es-MX','Form Description',N'Descripción','N','N') , (1999,'3/1/2016','es-MX','Form Number',N'Numero de la forma','N','N') , (1999,'3/1/2016','es-MX','Format',N'Formato','N','N') , (1999,'3/1/2016','es-MX','FormDescription',N'Descripción','N','N') , (1999,'9/6/2016','es-MX','Forwarder',N'Transportista','N','N') , (1999,'9/6/2016','es-MX','frd Assist Detail Report_aspx',N'Asistencia detallado de Reporte','N','N') , (1999,'3/1/2016','es-MX','frd Component Balance Audit Report_aspx',N'Reporte de Auditoria de Componentes','N','N') , (1999,'3/1/2016','es-MX','frd Finished Good Balance Audit Report_aspx',N'Reporte de Auditoria Producto Terminado','N','N') , (1999,'9/6/2016','es-MX','frd FTA Analysis Report_aspx',N'Análisis de Reportes para TLC','N','N') , (1999,'9/7/2016','es-MX','frd FTA Certificates_aspx',N'Certificados y Cartas de Origen','N','N') , (1999,'9/21/2016','es-MX','frd MCS Generation_aspx',N'Generador de la Declaración del Productor','N','N') , (1999,'3/1/2016','es-MX','frd MX Scrap Transaction Audit_aspx',N'Descargos de Desperdicios','N','N') , (1999,'3/1/2016','es-MX','frd MX Sub Maquila Report_aspx',N'Reporte de Exportaciones de Operaciones de Submanufactura','N','N') , (1999,'9/7/2016','es-MX','frd Non FTA Cert_aspx',N'Certificado de No Originarios','N','N') , (1999,'3/1/2016','es-MX','frd Weekly Pedimento Summary_aspx',N'Reporte de Pedimento Semanal','N','N') , (1999,'3/1/2016','es-MX','frdAnnualFTZBoardReport_aspx',N'Annual FTZ Board Report','N','N') , (1999,'3/1/2016','es-MX','frdAnnualMaquilaReport_aspx',N'Reporte Anual','N','N') , (1999,'3/1/2016','es-MX','frdAnnualReconciliationReport_aspx',N'Annual Reconciliation','N','N') , (1999,'3/1/2016','es-MX','frdAssistDetailReport_aspx',N'Assist Detail','N','N') , (1999,'3/1/2016','es-MX','frdAssistSummaryReport_aspx',N'Assist Summary','N','N') , (1999,'3/1/2016','es-MX','frdCanadianLoadSheetInvoiceReport_aspx',N'Canadian Load Sheet Invoice Report','N','N') , (1999,'3/1/2016','es-MX','frdCF214ListingReport_aspx',N'Informe del listado Pedimentos','N','N') , (1999,'3/1/2016','es-MX','frdComponentBalanceAuditReport_aspx',N'Reporte de Auditoria de Componentes','N','N') , (1999,'5/3/2016','es-MX','frdComponentUseReport_aspx',N'Reporte de Uso de Componente','N','N') , (1999,'3/1/2016','es-MX','frdDailyShipmentsReport_aspx',N'Daily Shipments','N','N') , (1999,'3/1/2016','es-MX','frdDiplomatMilitaryReport_aspx',N'Diplomat Military Report','N','N') , (1999,'3/1/2016','es-MX','frdExportInvoiceReport_aspx',N'Export Invoice Report','N','N') , (1999,'3/1/2016','es-MX','frdFGBalanceAuditReport_aspx',N'Finished Goods Balance Audit','N','N') , (1999,'3/1/2016','es-MX','frdFinishedGoodBalanceAuditReport',N'Auditoria de Balance de Product terminado','N','N') , (1999,'3/1/2016','es-MX','frdFinishedGoodBalanceAuditReport_aspx',N'Reporte de Auditoria Producto Terminado','N','N') , (1999,'2/19/2010','es-MX','frdFTAAnalysisReport_aspx',N'Análisis de Reportes para TLC','N','N') , (1999,'9/7/2016','es-MX','frdFTACertificates_aspx',N'Certificados y Cartas de Origen','N','N') , (1999,'3/1/2016','es-MX','frdFTZDutySavingsReport_aspx',N'Duty Savings','N','N') , (1999,'3/1/2016','es-MX','frdLoctonReport_aspx',N'Locton Report','N','N') , (1999,'10/3/2013','es-MX','frdManifestacionDeValor_aspx',N'Manifestación de Valor','N','N') , (1999,'9/21/2016','es-MX','frdMCSGeneration_aspx',N'Generador de la Declaración del Productor','N','N') , (1999,'3/1/2016','es-MX','frdMonthlySEDReport_aspx',N'Monthly SED Report','N','N') , (1999,'3/1/2016','es-MX','frdMonthlyTEReport_aspx',N'Monthly TE Report','N','N') , (1999,'2/17/2015','es-MX','frdMXAnnex31Discharges_aspx',N'MX Descargos Anexo 31','N','N') , (1999,'2/17/2015','es-MX','frdMXAnnex31InitialBalances_aspx',N'Anexo 31 Saldos Iniciales','N','N') , (1999,'3/1/2016','es-MX','frdMXInegiReport_aspx',N'Reporte de INEGI','N','N') , (1999,'3/1/2016','es-MX','frdMXInventoryAudit_aspx',N'Saldos de Pedimentos','N','N') , (1999,'3/1/2016','es-MX','frdMXInventoryHistory_aspx',N'Historial de Pedimentos','N','N') , (1999,'3/1/2016','es-MX','frdMXOpenPedimentoReport',N'Pedimentos Abiertos','N','N') , (1999,'3/1/2016','es-MX','frdMXOpenPedimentoReport_aspx',N'Pedimentos Abiertos','N','N') , (1999,'12/17/2013','es-MX','frdMXPedimentoAgingInquiry_aspx',N'Pedimentos por Expirar','N','N') , (1999,'11/16/2018','es-MX','frdMXPedimentoReports_aspx',N'Reportes de Pedimento','N','N') , (1999,'3/1/2016','es-MX','frdMXPedimentoSummary',N'Resumen de Pedimento','N','N') , (1999,'3/1/2016','es-MX','frdMXPedimentoSummary_aspx',N'Resumen de Pedimento','N','N') , (1999,'10/3/2013','es-MX','frdMXRelacionDeDocumentos_aspx',N'Relación de Documentos','N','N') , (1999,'3/1/2016','es-MX','frdMXScrapTransactionAudit_aspx',N'Descargos de Desperdicios','N','N') , (1999,'3/1/2016','es-MX','frdMXShipmentTransactionAudit_aspx',N'Descargos de Mercancias por Exportacion','N','N') , (1999,'7/16/2015','es-MX','frdMXSubMaquilaReport_aspx',N'MX Reporte de Submaquila','N','N') , (1999,'3/1/2016','es-MX','frdMXTransactionAudit_aspx',N'Descargos de Mercancias por Importacion','N','N') , (1999,'2/19/2010','es-MX','frdNonFTACert_aspx',N'Certificado de No Originarios','N','N') , (1999,'3/1/2016','es-MX','frdOpenInbondManifestReport_aspx',N'Open Inbond Manifest','N','N') , (1999,'3/1/2016','es-MX','frdProductHistoryReport',N'Historia de Productos','N','N') , (1999,'3/1/2016','es-MX','frdProductHistoryReport_aspx',N'Historial de Productos','N','N') , (1999,'3/1/2016','es-MX','frdProductShipmentReport_aspx',N'Product Shipment Report','N','N') , (1999,'3/1/2016','es-MX','frdScrapProFormaReport_aspx',N'Proforma de Scrap','N','N') , (1999,'4/8/2014','es-MX','frdStaticBOMReport_aspx',N'Reporte BOM','N','N') , (1999,'3/1/2016','es-MX','frdValidationReport',N'Validacion de Transacciones','N','N') , (1999,'3/1/2016','es-MX','frdValidationReport_aspx',N'Validacion de Transacciones','N','N') , (1999,'3/1/2016','es-MX','frdWeeklyCF3461ReconReport_aspx',N'Weekly CBP3461 Reconciliation','N','N') , (1999,'3/1/2016','es-MX','frdWeeklyExportReconciliationReport_aspx',N'Weekly Export Reconciliation','N','N') , (1999,'3/1/2016','es-MX','frdWeeklyOutboundReconReport_aspx',N'Weekly Outbound Reconciliation Report','N','N') , (1999,'3/1/2016','es-MX','frdWeeklyPedimentoSummary_aspx',N'Reporte Pedimento Semanal','N','N') , (1999,'3/1/2016','es-MX','frdZoneValueReport_aspx',N'Zone Value','N','N') , (1999,'9/8/2016','es-MX','Free Trade Agreement',N'Trata de Libre Comercio','N','N') , (1999,'9/8/2016','es-MX','FreeTradeAgreement',N'Trata de Libre Comercio','N','N') , (1999,'9/6/2016','es-MX','FREIGHT AND TRANSPORTATION',N'FLETE Y TRANSPORTE','N','N') , (1999,'3/1/2016','es-MX','Freight Charges',N'Gastos del flete','N','N') , (1999,'9/6/2016','es-MX','Frgn Port Of Lading',N'Puerto extranjero de desembarque','N','N') , (1999,'2/24/2010','es-MX','From',N'De','N','N') , (1999,'3/1/2016','es-MX','From Company',N'Embarcado por','N','N') , (1999,'3/1/2016','es-MX','From Company Literal',N'Desde compañía literal','N','N') , (1999,'9/6/2016','es-MX','From Date',N'Fecha de Inicio','N','N') , (1999,'3/1/2016','es-MX','From Exp',N'Origen','N','N') , (1999,'3/1/2016','es-MX','From Imp',N'Origen','N','N') , (1999,'3/1/2016','es-MX','From Zone ID',N'De ZonaID','N','N') , (1999,'3/1/2016','es-MX','FromCompany',N'Embarcado por','N','N') , (1999,'3/1/2016','es-MX','FromCompanyLiteral',N'Desde compañía literal','N','N') , (1999,'9/6/2016','es-MX','FromDate',N'Fecha de Inicio','N','N') , (1999,'3/1/2016','es-MX','FromExp',N'Origen','N','N') , (1999,'3/1/2016','es-MX','FromImp',N'Origen','N','N') , (1999,'3/1/2016','es-MX','FromZoneID',N'De ZonaID','N','N') , (1999,'3/1/2016','es-MX','fsgGroupDetailSetup_aspx',N'Grupos de Acceso al Sistema','N','N') , (1999,'2/19/2010','es-MX','fsgGroupList_aspx',N'Grupos de Acceso al Sistema','N','N') , (1999,'3/1/2016','es-MX','fsgGroupSetup_aspx',N'Group Setup','N','N') , (1999,'3/1/2016','es-MX','fsgNoAccess_aspx',N'No Access','N','N') , (1999,'3/1/2016','es-MX','fsgSystemProcessing_aspx',N'System Processing','N','N') , (1999,'3/1/2016','es-MX','fsgUserDetailSetup',N'Perfil de Usuarios','N','N') , (1999,'3/1/2016','es-MX','fsgUserDetailSetup_aspx',N'Perfil de Usuarios','N','N') , (1999,'3/1/2016','es-MX','fsgUserPasswordChange_aspx',N'User Password Change','N','N') , (1999,'2/19/2010','es-MX','fsgUserReset_aspx',N'Lista de Usuarios y Mantenimiento','N','N') , (1999,'3/1/2016','es-MX','fsgUserSetup_aspx',N'User Setup','N','N') , (1999,'2/25/2010','es-MX','FTA',N'Tratado de Libre Comercio','N','N') , (1999,'9/11/2015','es-MX','FTA Audit Log',N'Auditoría del Tratado de Libre Comercio','N','N') , (1999,'9/11/2015','es-MX','FTA BOM Rule Analysis',N'Análisis de Lista de Materiales','N','N') , (1999,'9/11/2015','es-MX','FTA Certificate',N'Certificado de TLC','N','N') , (1999,'9/11/2015','es-MX','FTA Certificates and Letters',N'TLC Cartas y Certificados','N','N') , (1999,'9/6/2016','es-MX','FTA Detail',N'Detalles de TLC','N','N') , (1999,'12/14/2016','es-MX','FTA Lookup',N'Panel Principal de FTA','N','N') , (1999,'9/11/2015','es-MX','FTA Product Records',N'Registro de Producto del TLC','N','N') , (1999,'3/1/2016','es-MX','FTA Qualifying Flag',N'Bandera calificativa FTA','N','N') , (1999,'9/11/2015','es-MX','FTA Type',N'Tipo de Tratado','N','N') , (1999,'9/11/2015','es-MX','FTA What If? Calculator',N'Calculadora de reglas de origen por TLC','N','N') , (1999,'9/6/2016','es-MX','FTA/Trade Agreement',N'FTA/Tratado de Comercio','N','N') , (1999,'2/26/2010','es-MX','FTADocument',N'Documento','N','N') , (1999,'3/1/2016','es-MX','FTAProgram',N'Programa FTA','N','N') , (1999,'3/1/2016','es-MX','FTAQualifyingFlag',N'Bandera calificativa FTA','N','N') , (1999,'3/1/2016','es-MX','Ftz Port',N'Puerto Ftz','N','N') , (1999,'9/6/2016','es-MX','FTZNum',N'Numero de FTZ','N','N') , (1999,'3/1/2016','es-MX','FtzPort',N'<NAME>','N','N') , (1999,'3/1/2016','es-MX','fud Form Tracer_aspx',N'Revisión de Documentos','N','N') , (1999,'3/1/2016','es-MX','fudCreatePeriodBalances_aspx',N'Balances del Periodo','N','N') , (1999,'3/1/2016','es-MX','fudForeignStatusCalculator_aspx',N'Foreign Status Calculator','N','N') , (1999,'3/1/2016','es-MX','fudFormTracer_aspx',N'Revisión de Documentos','N','N') , (1999,'3/1/2016','es-MX','fudMyDashboard_aspx',N'My Dashboard','N','N') , (1999,'9/6/2016','es-MX','fug Country Reference_aspx',N'Referencia de Pais','N','N') , (1999,'3/1/2016','es-MX','fug MX Assign Pedimento Scrap_aspx',N'Asignar Pedimento a Factura de Cambio de Regimen de Scrap','N','N') , (1999,'3/1/2016','es-MX','fug MX Calculated Expiration Date_aspx',N'Calcular Fecha de Expiracion','N','N') , (1999,'3/1/2016','es-MX','fug MX Data Stage Comparison_aspx',N'Comparación Data Stage','N','N') , (1999,'3/1/2016','es-MX','fug MX Submaquila Balances Discharges_aspx',N'Balances y Retornos de Submanufactura','N','N') , (1999,'9/7/2016','es-MX','fug Open Search Improved.aspx',N'Busqueda TLC','N','N') , (1999,'9/7/2016','es-MX','fug Open Search Improved_aspx',N'Búsqueda de TLC','N','N') , (1999,'3/1/2016','es-MX','fug Saved Queries_aspx',N'Consultas Guardadas','N','N') , (1999,'3/1/2016','es-MX','fug Spreadsheet Upload_aspx',N'Cargar Productos para TLC','N','N') , (1999,'9/6/2016','es-MX','fug_100200_PackingCostAlloc_aspx',N'Packing Cost Allocation','N','N') , (1999,'3/1/2016','es-MX','fug100200PackingCostAlloc_aspx',N'Packing Cost Allocation','N','N') , (1999,'3/1/2016','es-MX','fugAccessConfigFiles_aspx',N'Access Config Files','N','N') , (1999,'3/1/2016','es-MX','fugAccessLogFiles_aspx',N'Access Log Files','N','N') , (1999,'2/19/2010','es-MX','fugAuditClassifications_aspx',N'Auditar Clasificaciones','N','N') , (1999,'2/15/2016','es-MX','fugBindingRulings_aspx',N'Resoluciones','N','N') , (1999,'2/15/2016','es-MX','fugContentAttributes_aspx',N'Atributos del Contenido de Comercio Global','N','N') , (1999,'2/15/2016','es-MX','fugContentExternalTemplate_aspx',N'Plantilla de Contenido Externo','N','N') , (1999,'2/15/2016','es-MX','fugContentSalesOverview_aspx',N'Resumen del Contenido de Ventas','N','N') , (1999,'2/15/2016','es-MX','fugCountryInfoDetail_aspx',N'Información del País','N','N') , (1999,'9/6/2016','es-MX','fugCountryReference_aspx',N'Referencia de Pais','N','N') , (1999,'2/15/2016','es-MX','fugDocumentAnalyzer_aspx',N'Analizador de Documentos','N','N') , (1999,'3/1/2016','es-MX','fugDocumentRetention',N'Retención de Pedimentos','N','N') , (1999,'2/15/2016','es-MX','fugDTSLookup_aspx',N'Consulta DPS','N','N') , (1999,'2/15/2016','es-MX','fugDutyTaxAnalyzer_aspx',N'Analizador de Arancel e Impuestos','N','N') , (1999,'2/15/2016','es-MX','fugECCN_aspx',N'Clasificación de ECCN','N','N') , (1999,'2/15/2016','es-MX','fugECCNDetail_aspx',N'ECN/Lista de Bienes de Uso Dual (Busqueda Rapida)','N','N') , (1999,'2/15/2016','es-MX','fugeccnlookup_aspx',N'Query ECN','N','N') , (1999,'3/1/2016','es-MX','fugGlobalTariffs',N'Tarifas Globales','N','N') , (1999,'2/15/2016','es-MX','fugGlobalTariffs_aspx',N'Tarifas Globales','N','N') , (1999,'2/15/2016','es-MX','fugGlobalTariffsDetail_aspx',N'Tarifas Globales (Búsqueda rápida)','N','N') , (1999,'2/15/2016','es-MX','fugGlobalTariffsLanding_aspx',N'Tarifas Globales','N','N') , (1999,'2/15/2016','es-MX','fugGlobalTariffsLookup_aspx',N'Consulta de Tarifas Globales','N','N') , (1999,'2/19/2010','es-MX','fugHsReference_aspx',N'Referencia de Tarifa Armonizada','N','N') , (1999,'2/15/2016','es-MX','fugImportExportVolumes_aspx',N'Analizador de Volumen de Import/Export','N','N') , (1999,'2/19/2010','es-MX','fugimportfiletotable_aspx',N'Importar archivo a tabla','N','N') , (1999,'2/15/2016','es-MX','fugKnowledge_aspx',N'Red de información','N','N') , (1999,'2/15/2016','es-MX','fugKnowledgeDetail_aspx',N'Detalle de la información','N','N') , (1999,'2/15/2016','es-MX','fugLandedCostAnalyzer_aspx',N'Analizador de Costo de Aterrizaje/Desembarque','N','N') , (1999,'2/15/2016','es-MX','fugLegalText_aspx',N'Texto Legal','N','N') , (1999,'2/22/2010','es-MX','fugMassUpdate',N'Actualizacion Masiva','N','N') , (1999,'2/19/2010','es-MX','fugMassUpdate_aspx',N'Actualizacion Masiva','N','N') , (1999,'2/15/2016','es-MX','fugMessages_aspx',N'Mensajes del sistema','N','N') , (1999,'11/7/2015','es-MX','fugMXAssignPedimentoScrap_aspx',N'Asignar Pedimento a Factura de Scrap MX','N','N') , (1999,'2/17/2015','es-MX','fugMXCalculatedExpirationDate_aspx',N'Calcular Fecha de Expiracion','N','N') , (1999,'11/16/2018','es-MX','fugMXConnector_aspx',N'Pedimento VUCEM','N','N') , (1999,'7/7/2014','es-MX','fugMXDataStage_aspx',N'Data Stage','N','N') , (1999,'7/7/2014','es-MX','fugMXDataStageComparison_aspx',N'Comparaci�n Data Stage','N','N') , (1999,'11/11/2016','es-MX','fugMXDigitalFiles_aspx',N'Pedimento Expediente Digital/Datos','N','N') , (1999,'1/21/2016','es-MX','fugMXEditPostFifoRecords_aspx',N'MX Editar Registros Post Fifo','N','N') , (1999,'3/1/2016','es-MX','fugMXPedimentoAudit',N'Maintenimiento de Pedimentos','N','N') , (1999,'3/1/2016','es-MX','fugMXPedimentoAudit_aspx',N'Auditoria de Pedimentos','N','N') , (1999,'11/7/2015','es-MX','fugMXPermitBalancesDischarges_aspx',N'Saldos/Descargas de Permisos MX','N','N') , (1999,'8/25/2016','es-MX','fugMXRectification_aspx',N'Rectificacion','N','N') , (1999,'5/3/2016','es-MX','fugMXStaticBOMMassUpdate_aspx',N'MX Actualizacion Masiva de Bill de Material Fijo','N','N') , (1999,'7/16/2015','es-MX','fugMXSubmaquilaBalancesDischarges_aspx',N'MX Saldos/Descargas Proceso de Submaquila','N','N') , (1999,'1/18/2018','es-MX','fugMXVUCEMPedimento_aspx',N'Pedimento VUCEM','N','N') , (1999,'1/18/2018','es-MX','fugMXWorkWithDigitalFiles_aspx',N'Trabajar con Expediente Digital (resumen)','N','N') , (1999,'3/1/2016','es-MX','fugOpenQuery',N'Consultas Manuales','N','N') , (1999,'3/1/2016','es-MX','fugOpenQuery_aspx',N'Open Query','N','N') , (1999,'2/19/2010','es-MX','fugOpenSearch_aspx',N'Buscar Clasificacion','N','N') , (1999,'9/7/2016','es-MX','fugOpenSearchImproved.aspx',N'Busqueda TLC','N','N') , (1999,'9/7/2016','es-MX','fugOpenSearchImproved_aspx',N'Búsqueda de TLC','N','N') , (1999,'3/1/2016','es-MX','fugOpenSQL_aspx',N'Open SQL','N','N') , (1999,'3/1/2016','es-MX','fugOpenUpdate.aspx',N'Actualizaciones','N','N') , (1999,'3/1/2016','es-MX','fugOpenUpdate.aspx_aspx',N'Actualizaciones','N','N') , (1999,'3/1/2016','es-MX','fugOpenUpdate_aspx',N'Open Update','N','N') , (1999,'2/15/2016','es-MX','fugRegulationListUpdates_aspx',N'Actualizaciones Lista de regulaciones','N','N') , (1999,'3/1/2016','es-MX','fugRenderExcel_aspx',N'Render Excel','N','N') , (1999,'3/1/2016','es-MX','fugReprintExitDocID_aspx',N'Un-Print 7501/7512','N','N') , (1999,'3/1/2016','es-MX','fugSavedQueries',N'Consultas Guardadas','N','N') , (1999,'3/1/2016','es-MX','fugSavedQueries_aspx',N'Consultas Guardadas','N','N') , (1999,'2/15/2016','es-MX','fugsearchhistorydetail_aspx',N'Detalle de historial de búsqueda','N','N') , (1999,'3/1/2016','es-MX','fugSpreadsheetUpload_aspx',N'Cargar Productos para TLC','N','N') , (1999,'2/15/2016','es-MX','fugTariffAnalyzerNew_aspx',N'Analizador de Tariffas','N','N') , (1999,'2/15/2016','es-MX','fugTariffUpdates_aspx',N'Mantenimiento de Tarifa Armonizada','N','N') , (1999,'3/1/2016','es-MX','fugTaskManager_aspx',N'Task Manager','N','N') , (1999,'3/1/2016','es-MX','fugValidationConfiguration_aspx',N'Configuración SQL','N','N') , (1999,'2/15/2016','es-MX','fugWCOIndex_aspx',N'Índice Alfabético de la OMA','N','N') , (1999,'2/15/2016','es-MX','fugwconotes_aspx',N'Notas Explicativas de OMA','N','N') , (1999,'4/8/2010','es-MX','Full Name',N'Nombre completo','N','N') , (1999,'9/6/2016','es-MX','Fully Qualified',N'Completamente calificado','N','N') , (1999,'9/6/2016','es-MX','FullyQualified',N'Completo','N','N') , (1999,'3/1/2016','es-MX','Function',N'Funcion','N','N') , (1999,'9/6/2016','es-MX','Future Hs Num',N'Número Siguiente de Fracción Arancelaria','N','N') , (1999,'9/6/2016','es-MX','FutureHsNum',N'Número Siguiente de Fracción Arancelaria','N','N') , (1999,'3/1/2016','es-MX','fvw PGA Header_lbx Program Code',N'Código de Programa','N','N') , (1999,'3/1/2016','es-MX','fvw Product Source_lbx Counrtry Code',N'Código de País','N','N') , (1999,'3/1/2016','es-MX','fvwPGAHeader_lbxProgramCode',N'Código de Programa','N','N') , (1999,'3/1/2016','es-MX','fvwProductSource_lbxCounrtryCode',N'Código de País','N','N') , (1999,'3/1/2016','es-MX','fxd Assign Neg Rec_aspx',N'Reversas','N','N') , (1999,'3/1/2016','es-MX','fxd MX Edit Invoice_aspx',N'Mantenimiento de Factura','N','N') , (1999,'3/1/2016','es-MX','fxd MX Maintain Plant Warehouse_aspx',N'Mantenimiento de Plantas y/o Bodegas','N','N') , (1999,'3/1/2016','es-MX','fxd MX Maintain Transfer Notice_aspx',N'Mantenimiento del Aviso de Traslado','N','N') , (1999,'3/1/2016','es-MX','fxd MX Work With Pedimentos_aspx',N'SAAI - Trabajar con Pedimentos','N','N') , (1999,'9/6/2016','es-MX','fxd PGA Entity_aspx',N'Entidad','N','N') , (1999,'9/6/2016','es-MX','fxd Shipment Consolidation_aspx',N'Consolidación de Envío','N','N') , (1999,'9/6/2016','es-MX','fxd Temp Deposit_aspx',N'Deposito Temporal','N','N') , (1999,'3/1/2016','es-MX','fxd100400AutoPopulateCF214Report_aspx',N'Auto Populate CBP214','N','N') , (1999,'3/1/2016','es-MX','fxd100400InsertFIFOReceipts_aspx',N'100400InsertFIFOReceipts','N','N') , (1999,'3/1/2016','es-MX','fxd100400ZeroDutyExportsToEntry_aspx',N'100400 Zero Duty Exports To Entry','N','N') , (1999,'3/1/2016','es-MX','fxdAllocatePackingCosts_aspx',N'Allocate Packing Costs','N','N') , (1999,'3/1/2016','es-MX','fxdAssignCF214_aspx',N'Assign CBP214','N','N') , (1999,'3/1/2016','es-MX','fxdAssignCF3461_aspx',N'Assign CBP3461','N','N') , (1999,'3/1/2016','es-MX','fxdAssignCF7501_aspx',N'Assign CBP7501','N','N') , (1999,'3/1/2016','es-MX','fxdAssignCF7512_aspx',N'Assign CBP7512','N','N') , (1999,'3/1/2016','es-MX','fxdAssignCF7512PartsEdit_aspx',N'Assign CBP7512 Parts','N','N') , (1999,'3/1/2016','es-MX','fxdAssignCF7512PartsQuery_aspx',N'Assign CBP7512 Parts','N','N') , (1999,'3/1/2016','es-MX','fxdAssignMXExpInv_aspx',N'Asignación de Factura de Exportación Mexicana','N','N') , (1999,'3/1/2016','es-MX','fxdAssignMXImpInv_aspx',N'Asignación de Factura de Importación Mexicana','N','N') , (1999,'3/1/2016','es-MX','fxdAssignNegRec',N'Asignar Reversas de Recibos','N','N') , (1999,'3/1/2016','es-MX','fxdAssignNegRec_aspx',N'Reversas','N','N') , (1999,'3/1/2016','es-MX','fxdAssist_aspx',N'Assist','N','N') , (1999,'3/1/2016','es-MX','fxdAutoPopulateCF214Assignment_aspx',N'Auto Populate CBP214 Assignment','N','N') , (1999,'3/1/2016','es-MX','fxdAutoPopulateCF214Manifest_aspx',N'Auto PopulateCBP214 Manifest','N','N') , (1999,'3/1/2016','es-MX','fxdAutoPopulateCF214Report_aspx',N'Auto Populate CBP214 Report','N','N') , (1999,'3/1/2016','es-MX','fxdAutoPopulateCF214ZoneToZone_aspx',N'Auto Populate CBP214 Zone To Zone','N','N') , (1999,'2/19/2010','es-MX','fxdBrokerImportDashboard_aspx',N'Liquidacion de Entradas','N','N') , (1999,'3/1/2016','es-MX','fxdCanadianLoadsEdit_aspx',N'Canadian Loads Edit','N','N') , (1999,'3/1/2016','es-MX','fxdCanadianLoadsQuery_aspx',N'Canadian Loads Query','N','N') , (1999,'3/1/2016','es-MX','fxdConfirmDelete_aspx',N'Confirm Delete','N','N') , (1999,'3/1/2016','es-MX','fxdConfirmFillAll_aspx',N'Confirm Fill All','N','N') , (1999,'3/1/2016','es-MX','fxdCustomTransportIdLogic_aspx',N'Custom TransportId Logic','N','N') , (1999,'3/1/2016','es-MX','fxdDeleteBulkErrors_aspx',N'Delete Bulk Errors','N','N') , (1999,'3/1/2016','es-MX','fxdDiplomatMilitaryVehiclesEdit_aspx',N'Diplomat Military Vehicles Edit','N','N') , (1999,'3/1/2016','es-MX','fxdDiplomatMilitaryVehiclesQuery_aspx',N'Diplomat Military Vehicles Query','N','N') , (1999,'3/10/2013','es-MX','fxdDPSQuery_aspx',N'Search','N','N') , (1999,'3/10/2013','es-MX','fxdDTSHistory_aspx',N'Historial de Búsquedas','N','N') , (1999,'3/10/2013','es-MX','fxdDTSNotes_aspx',N'Notas DPS','N','N') , (1999,'3/10/2013','es-MX','fxdDTSQuery_aspx',N'Search','N','N') , (1999,'3/10/2013','es-MX','fxdDTSQueryDetail_aspx',N'Detalles Búsqueda','N','N') , (1999,'3/10/2013','es-MX','fxdDTSRegulationList_aspx',N'Lista de Regulaciones','N','N') , (1999,'3/10/2013','es-MX','fxdDTSWebserviceTest_aspx',N'Probar Servicio Web','N','N') , (1999,'3/1/2016','es-MX','fxdEditFifoProcessing_aspx',N'Editar procesos PEPS','N','N') , (1999,'3/1/2016','es-MX','fxdEditInvBalRecon_aspx',N'Edit Inventory Balances','N','N') , (1999,'2/19/2010','es-MX','fxdEntryValidation_aspx',N'Validacion de Entradas','N','N') INSERT INTO tmgPartnerCultureDefinitions(PartnerId,EffDate,CultureGuid,FieldName,FieldTranslation,DeletedFlag,KeepDuringRollback) VALUES (1999,'2/19/2010','es-MX','fxdEntryVisibilitySummary_aspx',N'Resumen de Entradas','N','N') , (1999,'3/1/2016','es-MX','fxdEXPInvPrep_aspx',N'Preparación de Exportación','N','N') , (1999,'3/1/2016','es-MX','fxdFifo_aspx',N'Iniciar Procesamiento de Inventario','N','N') , (1999,'3/1/2016','es-MX','fxdFifoValidationErrors',N'Errores','N','N') , (1999,'3/1/2016','es-MX','fxdFifoValidationErrors_aspx',N'Errores de Validación de PEPS','N','N') , (1999,'3/1/2016','es-MX','fxdImpInvPrep_aspx',N'Preparación de Envio','N','N') , (1999,'3/1/2016','es-MX','fxdKanbanRelease_aspx',N'Kanban Release','N','N') , (1999,'3/1/2016','es-MX','fxdLoadExportFiles_aspx',N'Load Export Files','N','N') , (1999,'3/1/2016','es-MX','fxdLoadIntegrationFiles_aspx',N'Load Integration Files','N','N') , (1999,'3/1/2016','es-MX','fxdLoadIntegrationFilesV2_aspx',N'Importación de Archivos','N','N') , (1999,'3/1/2016','es-MX','fxdManifestAssignment_aspx',N'Manifest Assignment','N','N') , (1999,'3/1/2016','es-MX','fxdManifestEdit_aspx',N'Manifest Edit','N','N') , (1999,'3/1/2016','es-MX','fxdManifestEntry_aspx',N'Manifest Entry','N','N') , (1999,'3/1/2016','es-MX','fxdManifestQuery_aspx',N'Manifest Query','N','N') , (1999,'10/3/2013','es-MX','fxdMXCancelInvoice_aspx',N'Cancelar Factura','N','N') , (1999,'10/3/2013','es-MX','fxdMXCloseInvoices_aspx',N'Cerrar Facturas','N','N') , (1999,'10/3/2013','es-MX','fxdMXConstanciaCapture_aspx',N'Capturar Embarque Constancia','N','N') , (1999,'10/3/2013','es-MX','fxdMXConstanciaReceipt_aspx',N'Recibir Constancia','N','N') , (1999,'5/12/2017','es-MX','fxdMXDODA_aspx',N'MX DODA','N','N') , (1999,'5/12/2017','es-MX','fxdMXDODAInvoiceSelection_aspx',N'DODA Seleccion de Facturas','N','N') , (1999,'10/3/2013','es-MX','fxdMXEditInvoice_aspx',N'Mantener Factura','N','N') , (1999,'10/3/2013','es-MX','fxdMXInvoiceCOVE_aspx',N'Procesar COVE','N','N') , (1999,'11/11/2016','es-MX','fxdMXInvoiceSubDiv_aspx',N'MX Subdivision de factura','N','N') , (1999,'5/12/2017','es-MX','fxdMXMaintainDODA_aspx',N'Mantener DODA','N','N') , (1999,'10/3/2013','es-MX','fxdMXMaintainPedimento_aspx',N'Mantener Pedimento SAAI','N','N') , (1999,'7/16/2015','es-MX','fxdMXMaintainPlantWarehouse_aspx',N'Mantener Plantas/Bodegas','N','N') , (1999,'4/23/2015','es-MX','fxdMXMaintainTransferNotice_aspx',N'Mantener Aviso de Traslado','N','N') , (1999,'3/1/2016','es-MX','fxdMXManifestacionDeValor_aspx',N'Manifestación de Valor','N','N') , (1999,'10/3/2013','es-MX','fxdMXPrevalidateInvoice_aspx',N'Validar Factura','N','N') , (1999,'10/3/2013','es-MX','fxdMXPrintInvoice_aspx',N'Imprimir Facturas','N','N') , (1999,'10/3/2013','es-MX','fxdMXProcessCOVE_aspx',N'Procesar COVE','N','N') , (1999,'10/3/2013','es-MX','fxdMXProcessSaaiResponses_aspx',N'Procesar Resultados de SAAI','N','N') , (1999,'10/3/2013','es-MX','fxdMXSaaiBatchSend_aspx',N'Enviar Archivos SAAI por Grupo','N','N') , (1999,'4/23/2015','es-MX','fxdMXTransferNotice_aspx',N'Aviso de Traslado','N','N') , (1999,'2/17/2015','es-MX','fxdMXWorkWithInvoices_aspx',N'Trabajar Con Facturas','N','N') , (1999,'10/3/2013','es-MX','fxdMXWorkWithPedimentos_aspx',N'Trabajar con Pedmimentos de SAAI','N','N') , (1999,'3/1/2016','es-MX','fxdPendingReassignment_aspx',N'Pending Reassignment','N','N') , (1999,'9/6/2016','es-MX','fxdPGAEntity_aspx',N'Entidad','N','N') , (1999,'2/19/2010','es-MX','fxdPostEntryAmendment_aspx',N'Enmienda Posterior','N','N') , (1999,'3/1/2016','es-MX','fxdPreparation_aspx',N'Preparation','N','N') , (1999,'3/1/2016','es-MX','fxdProcessPositiveAdjustments_aspx',N'Process Positive Adjustments','N','N') , (1999,'9/6/2016','es-MX','fxdQuotaQuery_aspx',N'Consulta de Cuota','N','N') , (1999,'3/1/2016','es-MX','fxdReceiptValidationUpdate_aspx',N'Receipt Validation Update','N','N') , (1999,'3/1/2016','es-MX','fxdReleaseScrapHold_aspx',N'Liberar el Scrap Detenido','N','N') , (1999,'3/1/2016','es-MX','fxdScheduleStagingDataTransfer_aspx',N'Recibir Transferencia de Datos','N','N') , (1999,'3/1/2016','es-MX','fxdScheduleStagingToMasterDataMove_aspx',N'Schedule Staging Transfer','N','N') , (1999,'9/6/2016','es-MX','fxdShipmentConsolidation_aspx',N'Consolidación de Envío','N','N') , (1999,'3/1/2016','es-MX','fxdShippedVehiclesEdit_aspx',N'Shipped Vehicles Edit','N','N') , (1999,'3/1/2016','es-MX','fxdShippedVehiclesQuery_aspx',N'Shipped Vehicles Query','N','N') , (1999,'3/1/2016','es-MX','fxdShowFifoProcessing',N'Editar Datos en Produccion','N','N') , (1999,'3/1/2016','es-MX','fxdShowFifoProcessing.aspx?STYLE=1&TARGET=STAGING',N'Editar Datos en Preparacion','N','N') , (1999,'3/1/2016','es-MX','fxdShowFifoProcessing.aspx?STYLE=1&TARGET=STAGING_aspx',N'Editar Datos en Preparacion','N','N') , (1999,'3/1/2016','es-MX','fxdShowFifoProcessing_aspx',N'Editar Transacciones','N','N') , (1999,'3/1/2016','es-MX','fxdSyncInventory_aspx',N'Sync Inventory','N','N') , (1999,'3/1/2016','es-MX','fxdTempDeposit_aspx',N'Temporary Deposit','N','N') , (1999,'3/1/2016','es-MX','fxdUpdateMidByTransportID_aspx',N'Update MID By TransportID','N','N') , (1999,'3/1/2016','es-MX','fxdZeroDutyExportsToEntry_aspx',N'Zero Duty Exports To Entry','N','N') , (1999,'3/1/2016','es-MX','fxdZoneToZoneImport_aspx',N'Zone To Zone Import','N','N') , (1999,'3/1/2016','es-MX','fxdZoneToZoneManualReconciliation_aspx',N'Zone To Zone Manual Reconciliation','N','N') , (1999,'3/1/2016','es-MX','fxdZoneToZoneOverlay_aspx',N'Zone To Zone Overlay','N','N') , (1999,'3/1/2016','es-MX','fxdZoneToZoneReconciliation_aspx',N'Zone To Zone Reconciliation','N','N') , (1999,'3/1/2016','es-MX','fxdZoneToZoneTransfer_aspx',N'Zone To Zone Transfer','N','N') , (1999,'3/1/2016','es-MX','fxx Execute Update_aspx',N'Ejecutar Actualización','N','N') , (1999,'3/1/2016','es-MX','fxxExecuteUpdate_aspx',N'Ejecutar Actualización','N','N') , (1999,'3/1/2016','es-MX','fxxImportCisco214_aspx',N'Import CBP214','N','N') , (1999,'3/1/2016','es-MX','fxxImportCommercialPricing_aspx',N'Import Commercial Pricing','N','N') , (1999,'3/1/2016','es-MX','fxxImportSamsungBOM_aspx',N'Import Bill Of Material','N','N') , (1999,'3/1/2016','es-MX','fxxInvoiceDeletionBatchSQL',N'Eliminar Facturas','N','N') , (1999,'3/1/2016','es-MX','fxxInvoiceDeletionBatchSQL_aspx',N'Eliminar Facturas','N','N') , (1999,'3/1/2016','es-MX','fxxLotShipments_aspx',N'Lot Shipments','N','N') , (1999,'3/1/2016','es-MX','fxxSpecificInventoryShipments_aspx',N'Cambio de Regimen F4','N','N') , (1999,'9/11/2015','es-MX','Generate',N'generar','N','N') , (1999,'9/6/2016','es-MX','Generate ABI',N'Generar ABI','N','N') , (1999,'9/11/2015','es-MX','Generate Documents',N'Generar Documentos','N','N') , (1999,'9/11/2015','es-MX','Generate/Submit Documents',N'Generar/Subir Documentos','N','N') , (1999,'9/11/2015','es-MX','Generate/Submit Tab Help',N'Pestaña de Ayuda con Genere/Enviar','N','N') , (1999,'3/1/2016','es-MX','GenShip',N'Generico','N','N') , (1999,'3/1/2016','es-MX','Get COVE',N'Obtener COVE','N','N') , (1999,'3/1/2016','es-MX','GetCOVE',N'Obtener COVE','N','N') , (1999,'9/6/2016','es-MX','Global',N'Global_prueba','N','N') , (1999,'9/11/2015','es-MX','Global Classification',N'Classificación Global','N','N') , (1999,'9/6/2016','es-MX','Global HS Number',N'Número HS Global','N','N') , (1999,'9/6/2016','es-MX','Global Product Description',N'Descripción Global del Producto','N','N') , (1999,'9/6/2016','es-MX','Global Product Num',N'Número de Producto Global','N','N') , (1999,'9/6/2016','es-MX','Global Sub-Heading Mismatches and Blanks',N'Sub Encabezado Global de Blancos y Desajustes','N','N') , (1999,'9/6/2016','es-MX','Global Tariffs',N'Tarifas Globales','N','N') , (1999,'9/6/2016','es-MX','Global Trade',N'Comercio Global','N','N') , (1999,'9/6/2016','es-MX','Global View',N'Vista Global','N','N') , (1999,'9/6/2016','es-MX','GlobalProductNum',N'Número de Producto Global','N','N') , (1999,'9/11/2015','es-MX','Go To Solicitation',N'Ir a Solicitud','N','N') , (1999,'3/1/2016','es-MX','Go to VUCEM',N'Ir a VUCEM','N','N') , (1999,'9/6/2016','es-MX','Go...',N'Buscar...','N','N') , (1999,'9/6/2016','es-MX','Government Link',N'Enlace de Gobierno','N','N') , (1999,'3/1/2016','es-MX','grams',N'gramos','N','N') , (1999,'9/8/2016','es-MX','Greater than or equal to',N'Mayor o igual a','N','N') , (1999,'3/1/2016','es-MX','Gross Weight',N'Peso','N','N') , (1999,'9/11/2015','es-MX','Gross Wt.',N'Peso Bruto','N','N') , (1999,'3/1/2016','es-MX','GrossWeight',N'Peso Bruto','N','N') , (1999,'9/6/2016','es-MX','Group Code Name',N'Nombre del Código del Grupo','N','N') , (1999,'9/6/2016','es-MX','Group Description',N'Descripción del Grupo','N','N') , (1999,'3/1/2016','es-MX','Group ID',N'Identificador del Grupo','N','N') , (1999,'3/1/2016','es-MX','Group Information',N'Información de Grupo','N','N') , (1999,'3/1/2016','es-MX','Group Name',N'Nombre Grupo','N','N') , (1999,'3/1/2016','es-MX','GroupID',N'Identificador del Grupo','N','N') , (1999,'3/1/2016','es-MX','GroupInformation',N'Información de Grupo','N','N') , (1999,'3/1/2016','es-MX','GroupName',N'Grupo','N','N') , (1999,'9/6/2016','es-MX','Groups',N'Grupos','N','N') , (1999,'9/6/2016','es-MX','gvx Countries',N'Paises','N','N') , (1999,'9/6/2016','es-MX','gvxCountries',N'Paises','N','N') , (1999,'9/6/2016','es-MX','HazMatFlag',N'Bandera de Materiales Peligrosos','N','N') , (1999,'9/6/2016','es-MX','Header',N'Encabezado','N','N') , (1999,'9/6/2016','es-MX','Header and Transportation',N'Encabezado y Transporte','N','N') , (1999,'9/6/2016','es-MX','Header GUID',N'GUID de encabezado','N','N') , (1999,'9/11/2015','es-MX','Header Information',N'Información de Encabezado','N','N') , (1999,'9/6/2016','es-MX','Header information has been saved',N'Información del Encabezado a sido guardado','N','N') , (1999,'3/1/2016','es-MX','HeaderGUID',N'GUID de encabezado','N','N') , (1999,'3/1/2016','es-MX','HeaderLevelFlag',N'Bandera de Nivel de Encabezado','N','N') , (1999,'9/6/2016','es-MX','Height',N'Altura','N','N') , (1999,'3/1/2016','es-MX','Held Fifo Balance',N'Balance en pausa de FIFO','N','N') , (1999,'3/1/2016','es-MX','HeldFifoBalance',N'Balance en pausa de FIFO','N','N') , (1999,'3/1/2016','es-MX','hfShowFilterText',N'Mostrar Filtro','N','N') , (1999,'9/6/2016','es-MX','Hide Display Fields...',N'Esconder Campos de Visualización...','N','N') , (1999,'3/1/2016','es-MX','Hide Filter',N'Ocultar Filtro','N','N') , (1999,'9/6/2016','es-MX','Hide Filter Options...',N'Ocultar Opciones de Filtrado...','N','N') , (1999,'9/11/2015','es-MX','Hide Filter Options…',N'Ocultar Opciones de Filtrado…','N','N') , (1999,'3/1/2016','es-MX','Hide MX Permit Countries',N'Ocultar Países','N','N') , (1999,'9/6/2016','es-MX','Hide Report Fields...',N'Esconder Campos del Reporte...','N','N') , (1999,'3/1/2016','es-MX','Hide Search Fields',N'Ocultar Campos de Busqueda','N','N') , (1999,'9/6/2016','es-MX','Hide Search Fields...',N'Esconder Campos de Búsqueda...','N','N') , (1999,'3/1/2016','es-MX','HideFilter',N'Ocultar Filtro','N','N') , (1999,'3/1/2016','es-MX','HideMXPermitCountries',N'Ocultar Países','N','N') , (1999,'9/6/2016','es-MX','Hits',N'Aciertos','N','N') , (1999,'9/6/2016','es-MX','hl Add New',N'Agregar nuevo','N','N') , (1999,'9/6/2016','es-MX','hl Copy Current',N'Copiar actual','N','N') , (1999,'9/6/2016','es-MX','hl Create From Fifo Receipts',N'Crear de capas','N','N') , (1999,'9/6/2016','es-MX','hl Create From Hts Codes',N'Crear de códigos HTS','N','N') , (1999,'9/6/2016','es-MX','hl Custom Create Detail',N'Crear de una consulta personalizada','N','N') , (1999,'9/6/2016','es-MX','hl Exit',N'Salir','N','N') , (1999,'9/6/2016','es-MX','hl Export Date',N'Fecha de exportación','N','N') , (1999,'9/6/2016','es-MX','hl House Bill Of Lading',N'Guía de carga hijo','N','N') , (1999,'9/6/2016','es-MX','hl IT Number',N'Número de tránsito entrante','N','N') , (1999,'9/6/2016','es-MX','hl Manifest Quantity',N'Cantidad manifiesta','N','N') , (1999,'9/6/2016','es-MX','hl Master Billof Lading',N'Guía de carga maestra','N','N') , (1999,'9/6/2016','es-MX','hl Mode Of Transport',N'Modo de transporte','N','N') , (1999,'9/6/2016','es-MX','hl Receipt Doc Id',N'Número CF214','N','N') , (1999,'9/6/2016','es-MX','hl Refresh',N'Actualizar','N','N') , (1999,'9/6/2016','es-MX','hl Update Year',N'Actualizar Calendario Anual','N','N') , (1999,'9/6/2016','es-MX','hlAddNew',N'Agregar nuevo','N','N') , (1999,'9/6/2016','es-MX','hlbtn Delete Template',N'Eliminar plantilla','N','N') , (1999,'9/6/2016','es-MX','hlbtn Save Template',N'Guardar Plantilla ->','N','N') , (1999,'9/6/2016','es-MX','hlbtn Submit',N'Enviar','N','N') , (1999,'3/1/2016','es-MX','hlbtnAddToMyQueries',N'Añadir','N','N') , (1999,'3/1/2016','es-MX','hlbtnDeleteTemplate',N'Borrar plantilla','N','N') , (1999,'3/1/2016','es-MX','hlbtnExport',N'Extraer','N','N') , (1999,'3/1/2016','es-MX','hlbtnSaveTemplate',N'Guargar plantilla','N','N') , (1999,'3/1/2016','es-MX','hlbtnSubmit',N'Correr','N','N') , (1999,'9/6/2016','es-MX','hlCopyCurrent',N'Copiar actual','N','N') , (1999,'9/6/2016','es-MX','hlCreateFromFifoReceipts',N'Crear de capas','N','N') , (1999,'9/6/2016','es-MX','hlCreateFromHtsCodes',N'Crear de códigos HTS','N','N') , (1999,'9/6/2016','es-MX','hlCustomCreateDetail',N'Crear de una consulta personalizada','N','N') , (1999,'2/24/2010','es-MX','hlExit',N'Salir','N','N') , (1999,'9/6/2016','es-MX','hlExportDate',N'Fecha de exportación','N','N') , (1999,'9/6/2016','es-MX','hlHouseBillOfLading',N'Guía de carga hijo','N','N') , (1999,'9/6/2016','es-MX','hlITNumber',N'Número de tránsito entrante','N','N') , (1999,'2/26/2010','es-MX','hlkExport',N'Extraer','N','N') , (1999,'9/6/2016','es-MX','hllbl Add',N'Agregar','N','N') , (1999,'9/6/2016','es-MX','hllbl Clear Edits',N'Limpiar correcciones','N','N') , (1999,'9/6/2016','es-MX','hllbl Exit',N'Salir','N','N') , (1999,'9/6/2016','es-MX','hllbl Look Up',N'Buscar','N','N') , (1999,'9/6/2016','es-MX','hllbl New',N'Nuevo','N','N') , (1999,'9/6/2016','es-MX','hllbl Perform',N'Realizar auto completado para el reporte CF214 ahora','N','N') , (1999,'9/6/2016','es-MX','hllbl Process Positive Adjustments',N'Procesar Ajustes Positivos Ahora','N','N') , (1999,'9/6/2016','es-MX','hllbl Save',N'Guardar','N','N') , (1999,'9/6/2016','es-MX','hllbl Search',N'Busqueda','N','N') , (1999,'9/6/2016','es-MX','hllbl Update',N'Actualizar','N','N') , (1999,'9/6/2016','es-MX','hllblAdd',N'Agregar','N','N') , (1999,'9/6/2016','es-MX','hllblb Exit',N'Salir','N','N') , (1999,'9/6/2016','es-MX','hllblbExit',N'Salir','N','N') , (1999,'9/6/2016','es-MX','hllblClearEdits',N'Limpiar correcciones','N','N') , (1999,'3/1/2016','es-MX','hllblExit',N'Salir','N','N') , (1999,'9/6/2016','es-MX','hllblLookUp',N'Buscar','N','N') , (1999,'9/6/2016','es-MX','hllblNew',N'Nuevo','N','N') , (1999,'9/6/2016','es-MX','hllblPerform',N'Realizar auto completado para el reporte CF214 ahora','N','N') , (1999,'9/6/2016','es-MX','hllblProcessPositiveAdjustments',N'Procesar Ajustes Positivos Ahora','N','N') , (1999,'9/6/2016','es-MX','hllblSave',N'Guardar','N','N') , (1999,'9/6/2016','es-MX','hllblSearch',N'Busqueda','N','N') , (1999,'9/6/2016','es-MX','hllblUpdate',N'Actualizar','N','N') , (1999,'9/6/2016','es-MX','hlManifestQuantity',N'Cantidad manifiesta','N','N') , (1999,'9/6/2016','es-MX','hlMasterBillofLading',N'Guía de carga maestra','N','N') , (1999,'9/6/2016','es-MX','hlModeOfTransport',N'Modo de transporte','N','N') , (1999,'9/6/2016','es-MX','hlnk Exit',N'Salir','N','N') , (1999,'9/6/2016','es-MX','hlnkExit',N'Salir','N','N') , (1999,'3/1/2016','es-MX','hlReceiptDocId',N'Número CF214','N','N') , (1999,'9/6/2016','es-MX','hlRefresh',N'Actualizar','N','N') , (1999,'4/8/2010','es-MX','hlSearch',N'Buscar','N','N') , (1999,'9/6/2016','es-MX','hlUpdateYear',N'Actualizar Calendario Anual','N','N') , (1999,'9/6/2016','es-MX','hlx Close',N'Cerrar','N','N') , (1999,'9/6/2016','es-MX','hlx Close Flag',N'Cerrar discrepancias','N','N') , (1999,'9/6/2016','es-MX','hlx Concurrence Summary',N'Resumen de la concurrencias','N','N') , (1999,'9/6/2016','es-MX','hlx Configuration',N'Configuración SQL','N','N') , (1999,'9/6/2016','es-MX','hlx Copy',N'Copiar','N','N') , (1999,'9/6/2016','es-MX','hlx Delete Customer',N'Eliminar','N','N') , (1999,'9/6/2016','es-MX','hlx Delete Customer1',N'Eliminar','N','N') , (1999,'9/6/2016','es-MX','hlx Description Of Merchandise_Text Box',N'Descripción de la mercancía','N','N') , (1999,'9/6/2016','es-MX','hlx Email',N'Enviar por correo','N','N') , (1999,'9/6/2016','es-MX','hlx Exit',N'Salir','N','N') , (1999,'9/6/2016','es-MX','hlx Exit Button',N'Salir','N','N') , (1999,'9/6/2016','es-MX','hlx Export',N'Extraer','N','N') , (1999,'9/6/2016','es-MX','hlx Extract',N'Extraer Plantilla','N','N') , (1999,'9/6/2016','es-MX','hlx Generate',N'Generar','N','N') , (1999,'9/6/2016','es-MX','hlx Hts Num_Text Box',N'Número de arancel harmonizado','N','N') , (1999,'9/6/2016','es-MX','hlx LicenseNum_TextBox',N'Número de licencia','N','N') , (1999,'9/6/2016','es-MX','hlx New',N'Nuevo','N','N') , (1999,'9/6/2016','es-MX','hlx New QP',N'Nuevo Bonded Move','N','N') , (1999,'9/6/2016','es-MX','hlx New Request',N'Nueva Solicitud','N','N') , (1999,'9/6/2016','es-MX','hlx Piece Count UOM_Drop Down',N'Unidad de medida de cantidad de piezas','N','N') , (1999,'9/6/2016','es-MX','hlx Piece Count_Text Box',N'Cantidad de piezas','N','N') , (1999,'9/6/2016','es-MX','hlx Product Search',N'Buscar Producto','N','N') , (1999,'9/6/2016','es-MX','hlx Reset',N'Reiniciar','N','N') , (1999,'9/6/2016','es-MX','hlx Reset Ship Hist',N'Reiniciar Historial de envío','N','N') , (1999,'9/6/2016','es-MX','hlx Save',N'Guardar','N','N') , (1999,'9/6/2016','es-MX','hlx Save Close',N'Guardar y Salir','N','N') , (1999,'9/6/2016','es-MX','hlx Search',N'Buscar','N','N') , (1999,'9/6/2016','es-MX','hlx Show Hide',N'Mostrar/Ocultar Filtros','N','N') , (1999,'9/6/2016','es-MX','hlx Submit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','hlx Traced Value',N'Valor Rastreado','N','N') , (1999,'3/1/2016','es-MX','hlx Variable Name',N'Nombre del Parametro','N','N') , (1999,'3/1/2016','es-MX','hlx Variable Value',N'Valor','N','N') , (1999,'9/6/2016','es-MX','hlx Void',N'Anular','N','N') , (1999,'9/6/2016','es-MX','hlx Weight UOM_Drop Down',N'Unidad de medida del peso','N','N') , (1999,'9/6/2016','es-MX','hlx214 Detail',N'Detalle 214','N','N') , (1999,'9/6/2016','es-MX','hlx214 Summary',N'Resumen 214','N','N') , (1999,'9/6/2016','es-MX','hlx214Detail',N'Detalle 214','N','N') , (1999,'9/6/2016','es-MX','hlx214Summary',N'Resumen 214','N','N') , (1999,'4/20/2010','es-MX','hlxAddNew',N'Agregar nuevo grupo','N','N') , (1999,'9/11/2015','es-MX','hlxBackToAdmin',N'Regresa a Administración','N','N') , (1999,'3/1/2016','es-MX','hlxBillofLading',N'Bill of Lading','N','N') , (1999,'9/6/2016','es-MX','hlxbl Exit',N'Salir','N','N') , (1999,'9/6/2016','es-MX','hlxbl New',N'Nuevo','N','N') , (1999,'9/6/2016','es-MX','hlxblExit',N'Salir','N','N') , (1999,'9/6/2016','es-MX','hlxblNew',N'Nuevo','N','N') , (1999,'3/1/2016','es-MX','hlxBrand',N'Marca','N','N') , (1999,'9/6/2016','es-MX','hlxbtn Add To My Queries',N'Mis Consultas : Agregar','N','N') , (1999,'3/1/2016','es-MX','hlxbtn Delete Template',N'Eliminar Plantilla>','N','N') , (1999,'3/1/2016','es-MX','hlxbtn Save Template',N'Guardar Plantilla>','N','N') , (1999,'9/6/2016','es-MX','hlxbtnAddToMyQueries',N'Mis Consultas : Agregar','N','N') , (1999,'3/1/2016','es-MX','hlxbtnDeleteTemplate',N'Eliminar Plantilla>','N','N') , (1999,'3/1/2016','es-MX','hlxbtnSaveTemplate',N'Guardar Plantilla>','N','N') , (1999,'2/25/2010','es-MX','hlxbtnSubmit',N'Presentarlo','N','N') , (1999,'9/11/2015','es-MX','hlxClose',N'Cerrar','N','N') , (1999,'9/6/2016','es-MX','hlxCloseFlag',N'Cerrar discrepancias','N','N') , (1999,'3/1/2016','es-MX','hlxCloseShipment',N'Cerrar Embarque','N','N') , (1999,'3/1/2016','es-MX','hlxCmdAddInvoice',N'Agregar','N','N') , (1999,'3/1/2016','es-MX','hlxCmdClear',N'Borrar todo','N','N') , (1999,'3/1/2016','es-MX','hlxCmdDeleteInvoice',N'Quitar','N','N') , (1999,'3/1/2016','es-MX','hlxCmdGenerate',N'Generar','N','N') , (1999,'3/1/2016','es-MX','hlxCmdSave',N'Guardar','N','N') , (1999,'3/1/2016','es-MX','hlxCmdSearch',N'Buscar','N','N') , (1999,'3/1/2016','es-MX','hlxComments',N'Comentarios','N','N') , (1999,'9/6/2016','es-MX','hlxConcurrenceSummary',N'Resumen de la concurrencias','N','N') , (1999,'3/1/2016','es-MX','hlxConfiguration',N'Configuracion de consultas','N','N') , (1999,'2/26/2010','es-MX','hlxCOO',N'País de Origen','N','N') , (1999,'9/6/2016','es-MX','hlxCopy',N'Copiar','N','N') , (1999,'9/11/2015','es-MX','hlxCountryLetter',N'Carta de País de Origen','N','N') , (1999,'2/26/2010','es-MX','hlxCountryOfOrigin',N'Pais de Origen','N','N') , (1999,'3/1/2016','es-MX','hlxCountryOfOrigin_Dropdown',N'Pais de Origen','N','N') , (1999,'2/26/2010','es-MX','hlxDelete',N'Borrar','N','N') , (1999,'9/6/2016','es-MX','hlxDeleteCustomer',N'Eliminar','N','N') , (1999,'9/6/2016','es-MX','hlxDeleteCustomer1',N'Eliminar','N','N') , (1999,'9/6/2016','es-MX','hlxDescriptionOfMerchandise_TextBox',N'Descripción de la mercancía','N','N') , (1999,'2/26/2010','es-MX','hlxDocLinks',N'Documentos','N','N') , (1999,'2/26/2010','es-MX','hlxDocType',N'Tipo de Documento','N','N') , (1999,'2/26/2010','es-MX','hlxEdit',N'Editar','N','N') , (1999,'2/26/2010','es-MX','hlxEmail',N'Enviar por correo','N','N') , (1999,'2/26/2010','es-MX','hlxEmployee',N'Empleado','N','N') , (1999,'2/24/2010','es-MX','hlxExit',N'Salir','N','N') , (1999,'9/11/2015','es-MX','hlxExitButton',N'Salir','N','N') , (1999,'2/24/2010','es-MX','hlxExport',N'Exportar','N','N') , (1999,'3/1/2016','es-MX','hlxExportDate',N'Fecha de Exportación','N','N') , (1999,'9/11/2015','es-MX','hlxExtract',N'Extraer Plantilla','N','N') , (1999,'2/26/2010','es-MX','hlxField',N'Campo','N','N') , (1999,'3/1/2016','es-MX','hlxFromZoneId',N'ID Zona Origen','N','N') , (1999,'9/6/2016','es-MX','hlxGenerate',N'Generar','N','N') , (1999,'9/6/2016','es-MX','hlxHtsNum_TextBox',N'Número de arancel harmonizado','N','N') , (1999,'3/1/2016','es-MX','hlxInventoryLocation',N'Ubicación','N','N') , (1999,'3/1/2016','es-MX','hlxInventoryNum',N'Numero de Inventario','N','N') , (1999,'3/1/2016','es-MX','hlxInvoiceNumber',N'Número de Factura','N','N') , (1999,'9/6/2016','es-MX','hlxlbl Add',N'Agregar filas','N','N') , (1999,'9/6/2016','es-MX','hlxlbl Add Customer',N'Agregar Cliente','N','N') , (1999,'9/6/2016','es-MX','hlxlbl Copy',N'Copiar','N','N') , (1999,'9/6/2016','es-MX','hlxlbl Generate',N'Generar','N','N') , (1999,'9/6/2016','es-MX','hlxlbl Void',N'Vaciar','N','N') , (1999,'3/1/2016','es-MX','hlxlblAdd',N'Agregar filas','N','N') , (1999,'2/26/2010','es-MX','hlxlblAddCustomer',N'Agregar Cliente','N','N') , (1999,'2/26/2010','es-MX','hlxlblCopy',N'Copiar','N','N') , (1999,'3/1/2016','es-MX','hlxlblDeleteTemplate',N'Borrar','N','N') , (1999,'3/1/2016','es-MX','hlxlblDone',N'Terminar','N','N') , (1999,'3/1/2016','es-MX','hlxlblEditRows',N'Editar Líneas','N','N') , (1999,'2/22/2010','es-MX','hlxlblExit',N'Salir','N','N') , (1999,'2/24/2010','es-MX','hlxlblFill',N'Llenar','N','N') , (1999,'3/1/2016','es-MX','hlxlblFillAll',N'Llenar Todo','N','N') , (1999,'2/26/2010','es-MX','hlxlblGenerate',N'Generar','N','N') , (1999,'2/26/2010','es-MX','hlxlblLoad',N'Cargar','N','N') , (1999,'2/26/2010','es-MX','hlxlblNew',N'Nuevo','N','N') , (1999,'3/1/2016','es-MX','hlxlblRetrieveTemplate',N'Recuperar','N','N') , (1999,'2/26/2010','es-MX','hlxlblSave',N'Guardar','N','N') , (1999,'3/1/2016','es-MX','hlxlblSaveTemplate',N'Guardar','N','N') , (1999,'2/26/2010','es-MX','hlxlblVoid',N'Vaciar','N','N') , (1999,'9/6/2016','es-MX','hlxlnk Generate Default',N'Generar (Estándar)','N','N') , (1999,'9/6/2016','es-MX','hlxlnkGenerateDefault',N'Generar (Estándar)','N','N') , (1999,'3/1/2016','es-MX','hlxMake',N'Fabricante','N','N') , (1999,'3/1/2016','es-MX','hlxManifestQty',N'Cantidad de Manifiesto','N','N') , (1999,'3/1/2016','es-MX','hlxManifestQtyUom',N'Unidad de medida de C. Manifiesto','N','N') , (1999,'3/1/2016','es-MX','hlxManifestQuantity',N'Cant. en Manifiesto','N','N') , (1999,'9/11/2015','es-MX','hlxManufacturerAffidavit',N'Affidavir de Fabricante','N','N') , (1999,'3/1/2016','es-MX','hlxManufacturerID_Textbox',N'Proveedor','N','N') , (1999,'3/1/2016','es-MX','hlxModel',N'Modelo','N','N') , (1999,'3/1/2016','es-MX','hlxModeOfTransport',N'Forma de Transporte','N','N') , (1999,'2/26/2010','es-MX','hlxNetCost',N'Costo Neto','N','N') , (1999,'3/1/2016','es-MX','hlxNew',N'Nuevo','N','N') , (1999,'9/6/2016','es-MX','hlxNewQP',N'Nuevo Bonded Move','N','N') , (1999,'9/11/2015','es-MX','hlxNewRequest',N'Nueva Solicitud','N','N') , (1999,'2/26/2010','es-MX','hlxNote',N'Nota','N','N') , (1999,'2/26/2010','es-MX','hlxOperator',N'Operador','N','N') , (1999,'9/11/2015','es-MX','hlxPDFLink',N'Descargar PDF','N','N') , (1999,'9/6/2016','es-MX','hlxPieceCount_TextBox',N'Cantidad de piezas','N','N') , (1999,'9/6/2016','es-MX','hlxPieceCountUOM_DropDown',N'Unidad de medida de cantidad de piezas','N','N') , (1999,'2/26/2010','es-MX','hlxPreferenceCriterion',N'Criterio de Preferencia','N','N') , (1999,'2/26/2010','es-MX','hlxProducer',N'Productor','N','N') , (1999,'2/26/2010','es-MX','hlxProduct',N'Producto','N','N') , (1999,'2/26/2010','es-MX','hlxProductDesc',N'Descripción','N','N') , (1999,'3/1/2016','es-MX','hlxProductNum_Textbox',N'Número de Producto','N','N') , (1999,'9/6/2016','es-MX','hlxProductSearch',N'Buscar Producto','N','N') , (1999,'3/1/2016','es-MX','hlxPurchaseOrderNum',N'Orden de compra','N','N') , (1999,'3/1/2016','es-MX','hlxReceiptDate',N'Fecha de Recibo','N','N') , (1999,'3/1/2016','es-MX','hlxRefresh',N'Actualizar','N','N') , (1999,'9/11/2015','es-MX','hlxReset',N'Reiniciar','N','N') , (1999,'9/6/2016','es-MX','hlxResetShipHist',N'Reiniciar Historial de envío','N','N') , (1999,'9/11/2015','es-MX','hlxReturn',N'Regresas Al Analisis BOM','N','N') , (1999,'2/25/2010','es-MX','hlxRuleCategory',N'Tratado','N','N') , (1999,'2/26/2010','es-MX','hlxRuleFlag',N'Tipo','N','N') , (1999,'2/26/2010','es-MX','hlxRuleKey',N'Clave de Regla','N','N') , (1999,'2/26/2010','es-MX','hlxRuleName',N'Nombre de Regla','N','N') , (1999,'2/26/2010','es-MX','hlxRuleSequence',N'Secuencia','N','N') , (1999,'9/11/2015','es-MX','hlxSave',N'Guardar','N','N') , (1999,'9/11/2015','es-MX','hlxSaveClose',N'Guardar y Salir','N','N') , (1999,'4/8/2010','es-MX','hlxSearch',N'Buscar','N','N') , (1999,'2/25/2010','es-MX','hlxSelectMultipleProducts',N'Seleccionar Productos','N','N') , (1999,'2/26/2010','es-MX','hlxSelectProducts',N'Seleccionar Producto','N','N') , (1999,'3/1/2016','es-MX','hlxSerialNum',N'Numero de Serie','N','N') , (1999,'9/6/2016','es-MX','hlxShowHide',N'Mostrar/Ocultar Filtros','N','N') , (1999,'9/11/2015','es-MX','hlxSingleChangesReport',N'Reporte BOM QUE SI?','N','N') , (1999,'3/1/2016','es-MX','hlxStorageLoc',N'Número de Entrega','N','N') , (1999,'9/11/2015','es-MX','hlxSubmit',N'Enviar','N','N') , (1999,'3/1/2016','es-MX','hlxSupplier',N'Proveedor','N','N') , (1999,'2/26/2010','es-MX','hlxtmgProductNumFTACertProductDesc',N'Producto','N','N') , (1999,'9/6/2016','es-MX','hlxTracedValue',N'Valor Rastreado','N','N') , (1999,'3/1/2016','es-MX','hlxTxnDate',N'Fecha de Movimiento','N','N') , (1999,'3/1/2016','es-MX','hlxTxnID',N'Identificador de Movimiento','N','N') , (1999,'3/1/2016','es-MX','hlxTxnQty_Textbox',N'Cantidad','N','N') , (1999,'3/1/2016','es-MX','hlxTxnQtyUom_Label',N'Unidad de Medida','N','N') , (1999,'3/1/2016','es-MX','hlxUpdate',N'Actualizar','N','N') , (1999,'3/1/2016','es-MX','hlxValue_Textbox',N'Valor Unitario','N','N') , (1999,'2/26/2010','es-MX','hlxValueList',N'Valor','N','N') , (1999,'3/1/2016','es-MX','hlxVariableName',N'Nombre del Parametro','N','N') , (1999,'9/6/2016','es-MX','hlxVariableValue',N'Valor','N','N') , (1999,'9/6/2016','es-MX','hlxVoid',N'Anular','N','N') , (1999,'9/6/2016','es-MX','hlxWeightUOM_DropDown',N'Unidad de medida del peso','N','N') , (1999,'9/6/2016','es-MX','HMF Detail Report',N'Reporte Detallado de HMF','N','N') , (1999,'3/1/2016','es-MX','HmfRate',N'Tarifa Hmf','N','N') , (1999,'9/6/2016','es-MX','Hold Messages',N'Mensajes de Espera','N','N') , (1999,'9/6/2016','es-MX','Holiday Year',N'Año de vacaciones','N','N') , (1999,'9/6/2016','es-MX','HolidayYear',N'Año de vacaciones','N','N') , (1999,'9/6/2016','es-MX','House Bill Of Lading',N'Conocimiento de Embarque Interno','N','N') , (1999,'9/6/2016','es-MX','House BOL',N'Conocimiento de embarque hijo','N','N') , (1999,'3/1/2016','es-MX','HouseBillOfLading',N'Conocimiento de Embarque Casa','N','N') , (1999,'3/1/2016','es-MX','href="javascript:__do Post Back(''gdv Search Results'',''Sort$Product Num'')',N'Número de Producto','N','N') , (1999,'3/1/2016','es-MX','href="javascript:__doPostBack(''gdvSearchResults'',''Sort$ProductNum'')',N'Número de Producto','N','N') , (1999,'9/6/2016','es-MX','Hs Chapter Notes',N'Notas del Capítulo de la Tarifa','N','N') , (1999,'9/6/2016','es-MX','Hs Desc',N'Descripción de Fracción Arancelaria','N','N') , (1999,'9/6/2016','es-MX','Hs In Progress',N'Tarifa en Progreso','N','N') , (1999,'9/6/2016','es-MX','Hs In Progress Rate',N'Tarifa de la Fracción en Progreso','N','N') , (1999,'9/6/2016','es-MX','HS Level',N'Nivel de HS','N','N') , (1999,'9/6/2016','es-MX','Hs Num',N'Número de Fracción Arancelaria','N','N') , (1999,'3/1/2016','es-MX','HS Number',N'Número de Fracción Arancelaria','N','N') , (1999,'9/6/2016','es-MX','Hs Rationale',N'Base de la Tarifa','N','N') , (1999,'9/6/2016','es-MX','Hs Section Notes',N'Notas de la Sección de Tarifa','N','N') , (1999,'9/6/2016','es-MX','HS/UOM Validation',N'Validación de Sistema armonizado/Unidad de medida','N','N') , (1999,'9/6/2016','es-MX','HsChapterNotes',N'Notas del Capítulo de la Tarifa','N','N') , (1999,'9/6/2016','es-MX','HsDesc',N'Descripción de Fracción Arancelaria','N','N') , (1999,'9/6/2016','es-MX','HsInProgress',N'Tarifa en Progreso','N','N') , (1999,'9/6/2016','es-MX','HsInProgressRate',N'Tarifa de la Fracción en Progreso','N','N') , (1999,'9/6/2016','es-MX','HsNum',N'Número de Fracción Arancelaria','N','N') , (1999,'9/6/2016','es-MX','HsNum Index',N'Indice del No.HS','N','N') , (1999,'9/6/2016','es-MX','HsNum Index Original',N'Indice Original del No.HS','N','N') , (1999,'9/6/2016','es-MX','HSNumber',N'Número de Fracción Arancelaria','N','N') , (1999,'9/6/2016','es-MX','HSNumber (Never used)',N'Número de sistema armonizado (Nunca se ha usado)','N','N') , (1999,'9/6/2016','es-MX','HSNumber (Optional)',N'Número de sistema armonizado (Opcional)','N','N') , (1999,'9/6/2016','es-MX','HsRationale',N'Base de la Tarifa','N','N') , (1999,'9/6/2016','es-MX','HsSectionNotes',N'Notas de la Sección de Tarifa','N','N') , (1999,'9/6/2016','es-MX','HTS Content Updates',N'Actualizaciones de HTS Content','N','N') , (1999,'3/1/2016','es-MX','Hts Desc',N'Descripción de la Fracción','N','N') , (1999,'3/1/2016','es-MX','Hts Index',N'Hts Indice','N','N') , (1999,'3/1/2016','es-MX','HTS Num',N'Hts Numero','N','N') , (1999,'9/6/2016','es-MX','HTS Num 2',N'Número 2 HTS','N','N') , (1999,'3/1/2016','es-MX','HtsAddlRptQtyUom',N'Fracción Adicional de Unidad de Medida','N','N') , (1999,'3/1/2016','es-MX','HtsAddlSpecificRate',N'Fracción Adicional de Tasa Específica','N','N') , (1999,'3/1/2016','es-MX','HtsAdValoremRate',N'Fracción de Tasa','N','N') , (1999,'3/1/2016','es-MX','HtsDesc',N'Descripción de la Fracción','N','N') , (1999,'3/1/2016','es-MX','HtsDOTIndicator',N'Fracción de Indicador Departamento de Transporte','N','N') , (1999,'3/1/2016','es-MX','HtsFCCIndicator',N'Fracción de Indicador de la FCC','N','N') , (1999,'3/1/2016','es-MX','HtsFDAIndicator',N'Fracción de Indicador de la FDA','N','N') , (1999,'3/1/2016','es-MX','HtsIndex',N'Índice de Fracción','N','N') , (1999,'3/1/2016','es-MX','HtsNum',N'Número de Fraccion','N','N') , (1999,'3/1/2016','es-MX','HtsRptQtyUom',N'Fracción de Unidad de Medida','N','N') , (1999,'3/1/2016','es-MX','HtsSpecificRate',N'Fracción de Tasa Específica','N','N') , (1999,'3/1/2016','es-MX','HtsSpiCode1',N'Fracción de Código Spi 1','N','N') , (1999,'3/1/2016','es-MX','HtsSpiCode2',N'Fracción de Código Spi 2','N','N') , (1999,'9/6/2016','es-MX','hxlnk Classification Request',N'Crear pedido','N','N') , (1999,'9/6/2016','es-MX','hxlnkClassificationRequest',N'Crear pedido','N','N') , (1999,'9/6/2016','es-MX','hyp Exit',N'Salir','N','N') , (1999,'9/6/2016','es-MX','Hyper Link1',N'Salir','N','N') , (1999,'2/22/2010','es-MX','HyperLink1',N'Salir','N','N') , (1999,'9/6/2016','es-MX','hypExit',N'Salir','N','N') , (1999,'9/6/2016','es-MX','hypink Change Dashboard',N'Cambio de Panel','N','N') , (1999,'9/6/2016','es-MX','hypinkChangeDashboard',N'Cambio de Panel','N','N') , (1999,'9/6/2016','es-MX','hyplnk Create Request',N'Crear Petición','N','N') , (1999,'9/6/2016','es-MX','hyplnk Exit',N'Salir','N','N') , (1999,'9/6/2016','es-MX','hyplnk Show Partner Cultures',N'Cultura de partners','N','N') , (1999,'4/7/2016','es-MX','hyplnk Source Date',N'MX-MEXICO - Tarifas de importación y exportación (TIGIE) (Importación y exportación)','N','N') , (1999,'9/6/2016','es-MX','hyplnk Toggle Available Docks',N'Puertos Disponibles','N','N') , (1999,'9/6/2016','es-MX','hyplnkCreateRequest',N'Crear Petición','N','N') , (1999,'3/1/2016','es-MX','hyplnkDocumentRetention',N'Retencion de Documentos','N','N') , (1999,'4/8/2010','es-MX','hyplnkExit',N'Salir','N','N') , (1999,'3/1/2016','es-MX','hyplnkSearch',N'Buscar','N','N') , (1999,'9/6/2016','es-MX','hyplnkShowPartnerCultures',N'Cultura de partners','N','N') , (1999,'9/6/2016','es-MX','hyplnkToggleAvailableDocks',N'Puertos Disponibles','N','N') , (1999,'2/15/2016','es-MX','hyxlinkResultsDetail0_Close',N'Cerrar','N','N') , (1999,'2/15/2016','es-MX','hyxlinkResultsDetail0_Duplicate',N'(duplicar y comparar)','N','N') , (1999,'2/15/2016','es-MX','hyxlinkResultsDetail1_Close',N'Cerrar','N','N') , (1999,'2/15/2016','es-MX','hyxlinkResultsDetail1_Duplicate',N'(duplicar y comparar)','N','N') , (1999,'9/6/2016','es-MX','hyxlnk Add Countries',N'Agregar Nuevo Registro','N','N') , (1999,'3/9/2016','es-MX','hyxlnk All Export Agencies',N'Todas las Agencias','N','N') , (1999,'3/9/2016','es-MX','hyxlnk All Import Agencies',N'Todas las Agencias','N','N') , (1999,'9/6/2016','es-MX','hyxlnk Audit Log',N'Registros de Auditoria','N','N') , (1999,'3/1/2016','es-MX','hyxlnk Audit Report',N'Resúmen de Pedimento por producto','N','N') , (1999,'9/6/2016','es-MX','hyxlnk Classify',N'Clasificar','N','N') , (1999,'9/6/2016','es-MX','hyxlnk Company Maintenance',N'Mantenimiento de la Empresa','N','N') , (1999,'3/1/2016','es-MX','hyxlnk Comparison File',N'Clic en este enlace','N','N') , (1999,'9/6/2016','es-MX','hyxlnk Details',N'Detalles','N','N') , (1999,'9/6/2016','es-MX','hyxlnk Document Retention',N'Retención de Documento','N','N') , (1999,'3/1/2016','es-MX','hyxlnk Edit',N'Editar','N','N') , (1999,'9/6/2016','es-MX','hyxlnk EL Export',N'Extraer','N','N') , (1999,'9/6/2016','es-MX','hyxlnk EM Export',N'Extraer','N','N') , (1999,'3/1/2016','es-MX','hyxlnk Email To Support',N'Contactar Administrador','N','N') , (1999,'9/6/2016','es-MX','hyxlnk End Use Search',N'Terminar uso','N','N') , (1999,'9/6/2016','es-MX','hyxlnk Exit',N'Salir','N','N') , (1999,'9/6/2016','es-MX','hyxlnk Exit Button',N'Salir','N','N') , (1999,'3/1/2016','es-MX','hyxlnk Export',N'Exportar','N','N') , (1999,'9/6/2016','es-MX','hyxlnk G Export',N'Extraer','N','N') , (1999,'9/6/2016','es-MX','hyxlnk Generate',N'Generar','N','N') , (1999,'9/6/2016','es-MX','hyxlnk Global Product View',N'Vista Global del Producto','N','N') , (1999,'3/1/2016','es-MX','hyxlnk Go Back',N'Regresar','N','N') , (1999,'9/6/2016','es-MX','hyxlnk Go To Documents',N'documentos adjuntos a este ítem','N','N') , (1999,'9/6/2016','es-MX','hyxlnk Group Edit_Cancel',N'Cancelar','N','N') , (1999,'3/1/2016','es-MX','hyxlnk New Delete',N'Nuevo/Borrar','N','N') , (1999,'9/6/2016','es-MX','hyxlnk Next Bottom',N'Siguiente >','N','N') , (1999,'9/6/2016','es-MX','hyxlnk Next Top',N'Siguiente >','N','N') , (1999,'3/9/2016','es-MX','hyxlnk Origination',N'Búsqueda Avanzada','N','N') , (1999,'9/6/2016','es-MX','hyxlnk Return To EVSI',N'Regresar a la pantalla de Resumen','N','N') , (1999,'9/6/2016','es-MX','hyxlnk Search',N'Buscar...','N','N') , (1999,'9/6/2016','es-MX','hyxlnk Select Dashboard',N'Elegir','N','N') , (1999,'9/6/2016','es-MX','hyxlnk Set',N'Fijar','N','N') , (1999,'9/6/2016','es-MX','hyxlnk Settings',N'Ajustes','N','N') , (1999,'9/6/2016','es-MX','hyxlnk Transmit AES',N'Transmisión de AES','N','N') , (1999,'3/1/2016','es-MX','hyxlnk Upload File',N'Subir Archivos','N','N') , (1999,'3/1/2016','es-MX','hyxlnk User Edit_Cancel',N'Cancelar','N','N') , (1999,'9/6/2016','es-MX','hyxlnk Vat Rates',N'Tipos de IVA','N','N') , (1999,'3/1/2016','es-MX','hyxlnk VUCEM Site',N'Ir a VUCEM','N','N') , (1999,'9/6/2016','es-MX','hyxlnk WQ Export',N'Extraer','N','N') , (1999,'9/6/2016','es-MX','hyxlnkAddCountries',N'Agregar Nuevo Registro','N','N') , (1999,'2/15/2016','es-MX','hyxlnkAddSystemMessages',N'Guardar','N','N') , (1999,'2/15/2016','es-MX','hyxlnkAdvancedSearch',N'Búsqueda Avanzada','N','N') , (1999,'3/9/2016','es-MX','hyxlnkAllExportAgencies',N'Todas las Agencias','N','N') , (1999,'3/9/2016','es-MX','hyxlnkAllImportAgencies',N'Todas las Agencias','N','N') , (1999,'9/6/2016','es-MX','hyxlnkAuditLog',N'Registros de Auditoria','N','N') , (1999,'3/1/2016','es-MX','hyxlnkAuditReport',N'Resúmen de Pedimento por producto','N','N') , (1999,'2/15/2016','es-MX','hyxlnkAutoSize',N'Tamaño automático','N','N') , (1999,'2/15/2016','es-MX','hyxlnkBottomOfPage',N'Final','N','N') , (1999,'2/15/2016','es-MX','hyxlnkCancelSystemMessages',N'Cancelar','N','N') , (1999,'2/15/2016','es-MX','hyxlnkCCLCC',N'Lista por País de Controles al Comercio','N','N') , (1999,'9/6/2016','es-MX','hyxlnkClassify',N'Clasificar','N','N') , (1999,'2/15/2016','es-MX','hyxlnkClose',N'Cerrar','N','N') , (1999,'3/1/2016','es-MX','hyxlnkCloseInvoice',N'Cerrar facturas','N','N') , (1999,'9/6/2016','es-MX','hyxlnkCompanyMaintenance',N'Mantenimiento de la Empresa','N','N') , (1999,'3/1/2016','es-MX','hyxlnkComparisonFile',N'Clic en este enlace','N','N') , (1999,'9/6/2016','es-MX','hyxlnkDetails',N'Detalles','N','N') , (1999,'2/22/2010','es-MX','hyxlnkDocumentRetention',N'Retención de Documento','N','N') , (1999,'3/1/2016','es-MX','hyxlnkEdit',N'Editar','N','N') , (1999,'9/6/2016','es-MX','hyxlnkELExport',N'Extraer','N','N') , (1999,'3/1/2016','es-MX','hyxlnkEmailToSupport',N'Contactar Administrador','N','N') , (1999,'9/6/2016','es-MX','hyxlnkEMExport',N'Extraer','N','N') , (1999,'9/6/2016','es-MX','hyxlnkEndUseSearch',N'Terminar uso','N','N') , (1999,'2/15/2016','es-MX','hyxlnkExit',N'Salir','N','N') , (1999,'3/1/2016','es-MX','hyxlnkExit,',N'Salir','N','N') , (1999,'9/6/2016','es-MX','hyxlnkExitButton',N'Salir','N','N') , (1999,'3/1/2016','es-MX','hyxlnkExport',N'Exportar','N','N') , (1999,'2/15/2016','es-MX','hyxlnkFavorites',N'Favoritos','N','N') , (1999,'2/15/2016','es-MX','hyxlnkFavoritesImage',N'Favoritos','N','N') , (1999,'3/1/2016','es-MX','hyxlnkFill',N'Pueble','N','N') , (1999,'3/1/2016','es-MX','hyxlnkFillAll',N'Pueble Todo','N','N') , (1999,'2/15/2016','es-MX','hyxlnkFullSite',N'Mostrar Sitio Completo','N','N') , (1999,'2/26/2010','es-MX','hyxlnkGenerate',N'Generar','N','N') , (1999,'2/15/2016','es-MX','hyxlnkGenerateLink',N'Búsquedas Recientes','N','N') , (1999,'9/6/2016','es-MX','hyxlnkGExport',N'Extraer','N','N') , (1999,'2/15/2016','es-MX','hyxlnkGlobalClassificationSelection',N'Seleccionar de Clasificación Global','N','N') , (1999,'9/6/2016','es-MX','hyxlnkGlobalProductView',N'Vista Global del Producto','N','N') , (1999,'3/1/2016','es-MX','hyxlnkGoBack',N'Regresar','N','N') , (1999,'9/6/2016','es-MX','hyxlnkGoToDocuments',N'documentos adjuntos a este ítem','N','N') , (1999,'9/6/2016','es-MX','hyxlnkGroupEdit_Cancel',N'Cancelar','N','N') , (1999,'2/15/2016','es-MX','hyxlnkLogout',N'Salir','N','N') , (1999,'2/15/2016','es-MX','hyxlnkManageProfiles',N'Administrar Perfiles','N','N') , (1999,'2/15/2016','es-MX','hyxlnkManageSearches',N'Búsquedas Recientes','N','N') , (1999,'2/15/2016','es-MX','hyxlnkManageSearchesNew',N'Administrar Búsquedas','N','N') , (1999,'2/15/2016','es-MX','hyxlnkMaximize',N'Maximizar','N','N') , (1999,'2/15/2016','es-MX','hyxlnkMobileMainMenu',N'Menú Principal','N','N') , (1999,'2/15/2016','es-MX','hyxlnkMobileSite',N'Mostrar Sitio Móvil','N','N') , (1999,'2/15/2016','es-MX','hyxlnkMobileSiteBackup',N'Mostrar Sitio Móvil','N','N') , (1999,'2/15/2016','es-MX','hyxlnkMultipleMatchingECN',N'Ver los resultados de búsqueda de nuevo','N','N') , (1999,'2/22/2010','es-MX','hyxlnkNew',N'Nuevo','N','N') , (1999,'3/1/2016','es-MX','hyxlnkNewDelete',N'Nuevo/Borrar','N','N') , (1999,'3/1/2016','es-MX','hyxlnkNewInvoice',N'Nueva Factura','N','N') , (1999,'3/1/2016','es-MX','hyxlnkNewPedimento',N'Nuevo Pedimento','N','N') , (1999,'2/15/2016','es-MX','hyxlnkNewSearch',N'Nueva Búsqueda','N','N') , (1999,'2/22/2010','es-MX','hyxlnkNextBottom',N'Siguiente >','N','N') , (1999,'2/22/2010','es-MX','hyxlnkNextTop',N'Siguiente >','N','N') , (1999,'3/9/2016','es-MX','hyxlnkOrigination',N'Búsqueda Avanzada','N','N') , (1999,'2/15/2016','es-MX','hyxlnkOrigination_BindingRulingsAdvancedSearch',N'Origen de Reglas de Clasificación Búsqueda Avanzada','N','N') , (1999,'2/15/2016','es-MX','hyxlnkPopOut',N'Abrir en una nueva Pantalla','N','N') , (1999,'2/22/2010','es-MX','hyxlnkPreviousBottom',N'< Previo','N','N') , (1999,'2/22/2010','es-MX','hyxlnkPreviousTop',N'< Previo','N','N') , (1999,'2/15/2016','es-MX','hyxlnkRecentSearches',N'Búsquedas Recientes','N','N') , (1999,'2/15/2016','es-MX','hyxlnkRefresh',N'Actualizar','N','N') , (1999,'3/1/2016','es-MX','hyxlnkRelease',N'Liberar','N','N') , (1999,'2/15/2016','es-MX','hyxlnkReload',N'Volver a Cargar','N','N') , (1999,'9/6/2016','es-MX','hyxlnkReturnToEVSI',N'Regresar a la pantalla de Resumen','N','N') , (1999,'3/1/2016','es-MX','hyxlnkRevalidate',N'Revalidar','N','N') , (1999,'2/15/2016','es-MX','hyxlnkSaveCurrentSearch',N'Guardar búsqueda actual','N','N') , (1999,'2/15/2016','es-MX','hyxlnkSaveSearch',N'Guardar Búsqueda','N','N') , (1999,'9/6/2016','es-MX','hyxlnkSearch',N'Buscar...','N','N') , (1999,'9/6/2016','es-MX','hyxlnkSelectDashboard',N'Elegir','N','N') , (1999,'9/6/2016','es-MX','hyxlnkSet',N'Fijar','N','N') , (1999,'9/6/2016','es-MX','hyxlnkSettings',N'Ajustes','N','N') , (1999,'9/6/2016','es-MX','hyxlnkSQLGuid',N'Guid SQL','N','N') , (1999,'2/15/2016','es-MX','hyxlnkStartOver',N'Actualizar','N','N') , (1999,'9/6/2016','es-MX','hyxlnkTemplates',N'Mantenimiento de plantilla','N','N') , (1999,'2/15/2016','es-MX','hyxlnkTopOfPage',N'Parte superior de la pantalla','N','N') , (1999,'9/6/2016','es-MX','hyxlnkTransmitAES',N'Transmitir a AES','N','N') , (1999,'2/15/2016','es-MX','hyxlnkUnsavedSearches',N'Búsquedas sin guardar','N','N') , (1999,'3/1/2016','es-MX','hyxlnkUserEdit_Cancel',N'Cancelar','N','N') , (1999,'9/6/2016','es-MX','hyxlnkVatRates',N'Tipos de IVA','N','N') , (1999,'2/15/2016','es-MX','hyxlnkViewDutyDetails',N'Ver los detalles del arancel','N','N') , (1999,'2/15/2016','es-MX','hyxlnkViewFTADetails',N'Ver detalles de la Regla de Origen del TLC','N','N') , (1999,'3/1/2016','es-MX','hyxlnkVUCEMSite',N'Ir a VUCEM','N','N') , (1999,'9/6/2016','es-MX','hyxlnkWQExport',N'Extraer','N','N') , (1999,'9/11/2015','es-MX','hyxShowArchive',N'Archivar','N','N') , (1999,'2/15/2016','es-MX','hyxTop',N'Inicio de Página','N','N') , (1999,'3/1/2016','es-MX','IbxFor',N'Para','N','N') , (1999,'3/1/2016','es-MX','IbxPageName',N'Tarifa Américana (HTS)','N','N') , (1999,'3/1/2016','es-MX','IbxSearch',N'Buscar','N','N') , (1999,'3/1/2016','es-MX','id="tc Catalogs_tabpnl Pgm Codes_lbx Saai Program Codes"',N'Códigos de Programa','N','N') , (1999,'3/1/2016','es-MX','Identification Type',N'Tipo de identificación','N','N') , (1999,'3/1/2016','es-MX','Identification1',N'Identificación 1','N','N') , (1999,'3/1/2016','es-MX','Identification2',N'Identificación 2','N','N') , (1999,'3/1/2016','es-MX','Identification3',N'Identificación 3','N','N') , (1999,'3/1/2016','es-MX','IdentificationType',N'Tipo de identificación','N','N') , (1999,'3/1/2016','es-MX','Identifiers By Tariff',N'Identificadors por tarifa','N','N') , (1999,'3/1/2016','es-MX','II. b) For article 66 of the customs law (concepts that do not include the transaction value)',N'En el Articulo 66 de la ley aduanera los conceptos no incluyen valor de transaccion','N','N') , (1999,'9/6/2016','es-MX','Image Uploaded',N'Imagen Cargados','N','N') , (1999,'9/6/2016','es-MX','Immediate Duty Pay Assignment',N'Asignación del Pago Inmediato de Impuestos','N','N') , (1999,'3/1/2016','es-MX','IMMEX Num',N'IMMEX Num','N','N') , (1999,'3/1/2016','es-MX','IMMEXNum',N'Número IMMEX','N','N') , (1999,'9/6/2016','es-MX','Imp ID',N'IDdeImp','N','N') , (1999,'9/6/2016','es-MX','ImpID',N'IDdeImp','N','N') , (1999,'9/6/2016','es-MX','Import Country',N'País de Importación','N','N') , (1999,'9/6/2016','es-MX','Import Country Code',N'Código del país de importación','N','N') , (1999,'3/1/2016','es-MX','Import COVE Result File',N'Cargar Archivo de Respuesta COVE','N','N') , (1999,'9/6/2016','es-MX','Import Date',N'Fecha de importación','N','N') , (1999,'9/6/2016','es-MX','Import Only',N'Solo importación','N','N') , (1999,'9/6/2016','es-MX','Import Or Export',N'Importación o exportación','N','N') , (1999,'9/6/2016','es-MX','Import Tariff Num',N'Número de Tarifa de Importación','N','N') , (1999,'9/6/2016','es-MX','Import/Export',N'Importar/Exportar','N','N') , (1999,'3/1/2016','es-MX','Importations',N'Importaciones','N','N') , (1999,'9/6/2016','es-MX','ImportCountry',N'País de Importación','N','N') , (1999,'9/6/2016','es-MX','ImportCountryCode',N'Código de país de importación','N','N') , (1999,'3/1/2016','es-MX','ImportCOVEResultFile',N'Cargar Archivo de Respuesta COVE','N','N') , (1999,'9/6/2016','es-MX','Importer Address1',N'Dirección del Importador','N','N') , (1999,'9/6/2016','es-MX','Importer Address2',N'Dirección del Importador','N','N') , (1999,'9/6/2016','es-MX','Importer Address3',N'Dirección del Importador 3','N','N') , (1999,'9/6/2016','es-MX','Importer Address4',N'Dirección del Importador 4','N','N') , (1999,'9/6/2016','es-MX','Importer City',N'Ciudad del Importador','N','N') , (1999,'9/6/2016','es-MX','Importer Contact Email',N'Email del Importador','N','N') , (1999,'9/6/2016','es-MX','Importer Contact Fax',N'Fax del Importador','N','N') , (1999,'9/6/2016','es-MX','Importer Contact Name',N'Nombre de Contacto del Importador','N','N') , (1999,'9/6/2016','es-MX','Importer Country Code',N'Código del País del Importador','N','N') , (1999,'9/11/2015','es-MX','Importer Information',N'Información de Importador','N','N') , (1999,'9/6/2016','es-MX','Importer Name',N'Nombre del Importador','N','N') , (1999,'9/6/2016','es-MX','Importer Postal Code',N'Código Postal del Importador','N','N') , (1999,'9/6/2016','es-MX','Importer State',N'Estado del Importador','N','N') , (1999,'9/6/2016','es-MX','Importer Tax ID',N'ID de Impuestos del Importador','N','N') , (1999,'9/6/2016','es-MX','Importer Title',N'Titulo de Contacto del Importador','N','N') , (1999,'9/6/2016','es-MX','ImporterAddress1',N'Dirección del Importador','N','N') , (1999,'9/6/2016','es-MX','ImporterAddress2',N'Dirección del Importador','N','N') , (1999,'9/6/2016','es-MX','ImporterAddress3',N'Dirección del Importador 3','N','N') , (1999,'9/6/2016','es-MX','ImporterAddress4',N'Dirección del Importador 4','N','N') , (1999,'9/6/2016','es-MX','ImporterCity',N'Ciudad del Importador','N','N') , (1999,'9/6/2016','es-MX','ImporterContactEmail',N'Email del Importador','N','N') , (1999,'9/6/2016','es-MX','ImporterContactFax',N'Fax del Importador','N','N') , (1999,'9/6/2016','es-MX','ImporterContactName',N'Nombre de Contacto del Importador','N','N') , (1999,'9/6/2016','es-MX','ImporterCountryCode',N'Código del País del Importador','N','N') , (1999,'9/6/2016','es-MX','ImporterName',N'Nombre del Importador','N','N') , (1999,'9/6/2016','es-MX','ImporterPostalCode',N'Código Postal del Importador','N','N') , (1999,'9/6/2016','es-MX','ImporterState',N'Estado del Importador','N','N') , (1999,'9/6/2016','es-MX','ImporterTaxID',N'ID de Impuestos del Importador','N','N') , (1999,'9/6/2016','es-MX','ImporterTitle',N'Titulo de Contacto del Importador','N','N') , (1999,'9/6/2016','es-MX','ImportOnly',N'Solo importación','N','N') , (1999,'9/6/2016','es-MX','ImportOrExport',N'Importación o exportación','N','N') , (1999,'3/1/2016','es-MX','Imports',N'Importaciones','N','N') , (1999,'9/6/2016','es-MX','ImportTariffNum',N'Número de Tarifa de Importación','N','N') , (1999,'9/8/2016','es-MX','In',N'En','N','N') , (1999,'9/6/2016','es-MX','In Bond Number',N'Número In Bond','N','N') , (1999,'9/11/2015','es-MX','Inactive',N'Inactivo','N','N') , (1999,'9/6/2016','es-MX','Inbond Carrier',N'Portado entrante','N','N') , (1999,'9/6/2016','es-MX','InbondType',N'Tipo de Inbond','N','N') , (1999,'3/1/2016','es-MX','Inbound Delivery',N'Número de Entrega','N','N') , (1999,'9/6/2016','es-MX','Include Formatting',N'Incluir el formato','N','N') , (1999,'9/6/2016','es-MX','Include Partner Id Shared',N'Incluir ID de socio compartido','N','N') , (1999,'9/6/2016','es-MX','Include Partner Name',N'Incluir nombre de socio','N','N') , (1999,'9/6/2016','es-MX','IncludeFormatting',N'Incluir el formato','N','N') , (1999,'9/6/2016','es-MX','IncludePartnerIdShared',N'Incluir ID de socio compartido','N','N') , (1999,'9/6/2016','es-MX','IncludePartnerName',N'Incluir nombre de socio','N','N') , (1999,'3/1/2016','es-MX','INCMXINV',N'Los siguientes registros de factura MX son incorrectos:','N','N') , (1999,'9/6/2016','es-MX','INCO Terms Location',N'Localización de INCO Terms','N','N') , (1999,'3/1/2016','es-MX','Incoterm',N'Incoterm','N','N') , (1999,'3/1/2016','es-MX','Incoterm Literal',N'INCOTERM','N','N') , (1999,'3/1/2016','es-MX','IncotermLiteral',N'INCOTERM','N','N') , (1999,'9/6/2016','es-MX','INCOTerms',N'INCOTERMS','N','N') , (1999,'9/6/2016','es-MX','INCOTermsLocation',N'Ubicación de Incoterms','N','N') , (1999,'9/6/2016','es-MX','Indent Result Xml',N'Endentar resultado Xml','N','N') , (1999,'9/6/2016','es-MX','IndentResultXml',N'Endentar resultado Xml','N','N') , (1999,'3/1/2016','es-MX','Individual Federal ID',N'ID Federal Individual','N','N') , (1999,'3/1/2016','es-MX','INDIVIDUALCOMPANY_NAME',N'Nombre de la Compañia','N','N') , (1999,'3/1/2016','es-MX','INDIVIDUALCOMPANYNAME',N'Nombre de la Compañia','N','N') , (1999,'3/1/2016','es-MX','IndividualFederalID',N'ID Federal Individual','N','N') , (1999,'9/6/2016','es-MX','Influenced?',N'Influencia','N','N') , (1999,'9/6/2016','es-MX','Info Messages',N'Mensajes de Información','N','N') , (1999,'9/11/2015','es-MX','Information',N'Información','N','N') , (1999,'3/1/2016','es-MX','InitTxnCounter',N'Contador Inicial de la Transacción','N','N') , (1999,'3/1/2016','es-MX','INPCFactor',N'Factor INPC','N','N') , (1999,'9/6/2016','es-MX','Insert',N'Insertar','N','N') , (1999,'9/6/2016','es-MX','Insert Button',N'Insertar','N','N') , (1999,'9/6/2016','es-MX','Insert Date',N'Fecha de Inserción','N','N') , (1999,'3/1/2016','es-MX','Insert New Article 303',N'Insertar Nuevo Artículo 303','N','N') , (1999,'3/1/2016','es-MX','Insert New Bill of Lading',N'Insertar Nuevo Maestro de Materiales','N','N') , (1999,'3/1/2016','es-MX','Insert New Compliment',N'Insertar Nuevo','N','N') , (1999,'3/1/2016','es-MX','Insert New Container',N'Insertar Nuevo Contenedor','N','N') , (1999,'3/1/2016','es-MX','Insert New Detail',N'Insertar Nuevo Detalle','N','N') , (1999,'3/1/2016','es-MX','Insert New Fee',N'Insertar Nueva','N','N') , (1999,'3/1/2016','es-MX','Insert New HS Line Item Fee',N'Insertar Nuevo Transportista','N','N') , (1999,'3/1/2016','es-MX','Insert New Observation',N'Insertar Nueva observación','N','N') , (1999,'3/1/2016','es-MX','Insert New Party',N'Insertar Nuevo Socio','N','N') , (1999,'3/1/2016','es-MX','Insert New Rectification',N'Insertar Nueva Rectificación','N','N') , (1999,'3/1/2016','es-MX','Insert New Transporter',N'Insertar Nuevo Transportista','N','N') , (1999,'9/6/2016','es-MX','InsertButton',N'Insertar','N','N') , (1999,'9/6/2016','es-MX','InsertDate',N'Fecha Inserción','N','N') , (1999,'3/1/2016','es-MX','Institution Name',N'Nombre de Institución','N','N') , (1999,'3/1/2016','es-MX','InstitutionName',N'Nombre de Institución','N','N') , (1999,'9/6/2016','es-MX','Integration Point Client',N'Cliente de Integration Point','N','N') , (1999,'3/1/2016','es-MX','InteriorNum',N'Número Interior','N','N') , (1999,'9/6/2016','es-MX','Intermediate Consignee',N'Consignatario Intermedio','N','N') , (1999,'9/6/2016','es-MX','Internal Product Num',N'Número de Producto Interno','N','N') , (1999,'9/6/2016','es-MX','InternalNotes',N'Notas Internas','N','N') , (1999,'9/6/2016','es-MX','InternalProductNum',N'Número de Producto Interno','N','N') , (1999,'9/11/2015','es-MX','Invalid Bill of Materials',N'Lista de Materiales Invalidas','N','N') , (1999,'3/1/2016','es-MX','INVEDIT32',N'Crear factura','N','N') , (1999,'3/1/2016','es-MX','Inventory Location',N'Ubicación','N','N') , (1999,'3/1/2016','es-MX','Inventory Num',N'Número de Inventario','N','N') , (1999,'3/1/2016','es-MX','InventoryLocation',N'Ubicación de inventario','N','N') , (1999,'3/1/2016','es-MX','InventoryNum',N'Num Inventario','N','N') , (1999,'3/1/2016','es-MX','INVKEY',N'La columna clave seleccionada es invalida','N','N') , (1999,'3/1/2016','es-MX','INVNOTNUM',N'Numero de Factura no numerico. Favor de contactar al administrador del sistema','N','N') , (1999,'3/1/2016','es-MX','INVNUMENT',N'Debe introducirse el numero de factura','N','N') , (1999,'3/1/2016','es-MX','Invoice Category',N'Categoría Factura','N','N') , (1999,'3/1/2016','es-MX','Invoice Category Literal',N'Categoría de la Factura','N','N') , (1999,'3/1/2016','es-MX','Invoice Comments',N'Comentarios de Factura','N','N') , (1999,'3/1/2016','es-MX','Invoice Count',N'Total de Facturas','N','N') , (1999,'9/6/2016','es-MX','Invoice Date',N'Fecha de Facturación','N','N') , (1999,'9/6/2016','es-MX','INVOICE DELETION',N'Eliminación de Facturas','N','N') , (1999,'3/1/2016','es-MX','Invoice Detail',N'Detalles de factura','N','N') , (1999,'3/1/2016','es-MX','Invoice Header',N'Encabezado de factura','N','N') , (1999,'3/1/2016','es-MX','Invoice Num',N'No. de Factura','N','N') , (1999,'9/6/2016','es-MX','Invoice Number',N'Número de factura','N','N') , (1999,'3/1/2016','es-MX','Invoice Reference',N'Referencia de Factura','N','N') , (1999,'3/1/2016','es-MX','Invoice Relation COVE',N'Relación de Facturas','N','N') , (1999,'3/1/2016','es-MX','Invoice Status Literal',N'Literal del Estado de la Factura','N','N') , (1999,'3/1/2016','es-MX','Invoice Type',N'Tipo de Factura','N','N') , (1999,'3/1/2016','es-MX','Invoice Type Literal',N'Tipo de Literal de Factura','N','N') , (1999,'9/6/2016','es-MX','Invoice Value',N'Valor de Factura','N','N') , (1999,'3/1/2016','es-MX','InvoiceCategory',N'Categoría Factura','N','N') , (1999,'3/1/2016','es-MX','InvoiceCategoryLiteral',N'Factura Categoria','N','N') , (1999,'3/1/2016','es-MX','InvoiceComments',N'Comentarios de Factura','N','N') , (1999,'3/1/2016','es-MX','InvoiceCount',N'Contar Factura','N','N') , (1999,'3/1/2016','es-MX','InvoiceDate',N'Fecha de factura','N','N') , (1999,'3/1/2016','es-MX','InvoiceHeader',N'Encabezado de factura','N','N') , (1999,'3/1/2016','es-MX','InvoiceNum',N'No. de Factura','N','N') , (1999,'3/1/2016','es-MX','InvoiceReference',N'Referencia de Factura','N','N') , (1999,'3/1/2016','es-MX','InvoiceRelationCOVE',N'Relación de Facturas','N','N') , (1999,'3/1/2016','es-MX','InvoiceStatusLiteral',N'Estado de Factura','N','N') , (1999,'3/1/2016','es-MX','InvoiceType',N'Tipo de Factura','N','N') , (1999,'3/1/2016','es-MX','InvoiceTypeLiteral',N'Tipo Factura','N','N') , (1999,'3/1/2016','es-MX','INVUSED1',N'La factura (','N','N') , (1999,'3/1/2016','es-MX','INVUSED2',N') utilizada ya fue impresa. Favor de anotar una factura que no haya sido impresa.','N','N') , (1999,'3/1/2016','es-MX','INVWRK1',N'Mostrar facturas activas','N','N') , (1999,'3/1/2016','es-MX','INVWRK2',N'Mostrar facturas archivadas','N','N') , (1999,'3/1/2016','es-MX','INVWRK3',N'Mostrar facturas canceladas','N','N') , (1999,'3/1/2016','es-MX','InxbtnGo',N'Buscar','N','N') , (1999,'3/1/2016','es-MX','InxbtnToggleAssetFiler',N'Mostrar filtro,','N','N') , (1999,'3/1/2016','es-MX','InxbtnUploadSpreadsheet',N'Carga e Importación de Datos','N','N') , (1999,'9/6/2016','es-MX','IP Grid Header',N'Prueba','N','N') , (1999,'9/6/2016','es-MX','IP Label Text',N'Insertar Parametro','N','N') , (1999,'3/1/2016','es-MX','IP Link Button',N'Editar','N','N') , (1999,'9/6/2016','es-MX','ipc Facility Ownership Box_lnb Append',N'Agregar','N','N') , (1999,'9/6/2016','es-MX','ipc Facility Ownership Box_lnb Save',N'Guardar Cambios','N','N') , (1999,'9/6/2016','es-MX','ipcFacilityOwnershipBox_lnbAppend',N'Agregar','N','N') , (1999,'9/6/2016','es-MX','ipcFacilityOwnershipBox_lnbSave',N'Guardar Cambios','N','N') , (1999,'9/6/2016','es-MX','IPGridHeader',N'Prueba','N','N') , (1999,'9/6/2016','es-MX','IPLabelText',N'Insertar Parametro','N','N') , (1999,'3/1/2016','es-MX','IPLinkButton',N'Editar','N','N') , (1999,'3/1/2016','es-MX','Issuing Institution Code',N'Código de Institucion Emisora','N','N') , (1999,'3/1/2016','es-MX','IssuingInstitutionCode',N'Código de Institucion Emisora','N','N') , (1999,'3/1/2016','es-MX','It Num',N'Número It','N','N') , (1999,'9/6/2016','es-MX','Item Id',N'ID de artículo','N','N') , (1999,'9/6/2016','es-MX','Item List Xml',N'Lista de artículos Xml','N','N') , (1999,'3/1/2016','es-MX','Item Master',N'Lista Maestra de Artículos','N','N') , (1999,'3/1/2016','es-MX','Item Master HTS Values',N'Lista Maestra de Fracciones Arancelarias','N','N') , (1999,'9/6/2016','es-MX','ItemListXml',N'Lista de artículos Xml','N','N') , (1999,'3/1/2016','es-MX','ItNum',N'Número It','N','N') , (1999,'3/1/2016','es-MX','IVA Per Thousand',N'IVA por mil','N','N') , (1999,'3/1/2016','es-MX','IVA Rate',N'Tarifa de IVA','N','N') , (1999,'3/1/2016','es-MX','IVABorderRate',N'Tasa de IVA de la Frontera','N','N') , (1999,'3/1/2016','es-MX','IVAInteriorRate',N'Tasa de IVA Interior','N','N') , (1999,'3/1/2016','es-MX','IVAPerThousand',N'IVA por mil','N','N') , (1999,'3/1/2016','es-MX','IVARate',N'Tarifa de IVA','N','N') , (1999,'3/1/2016','es-MX','JointCompanyAddress',N'Dirección Conjunta de Compañía','N','N') , (1999,'3/1/2016','es-MX','JointCompanyCity',N'Ciudad Conjunta de Compañía','N','N') , (1999,'3/1/2016','es-MX','JointCompanyName',N'Nombre Conjunto de Compañía','N','N') , (1999,'3/1/2016','es-MX','JointCompanyPhone',N'Teléfono Conjunto de Compañía','N','N') , (1999,'3/1/2016','es-MX','JointCompanyState',N'Estado Conjunto de Compañía','N','N') , (1999,'3/1/2016','es-MX','JointCompanyZip',N'Código Postal Conjunto de Compañía','N','N') , (1999,'3/1/2016','es-MX','JointFTZNum',N'Número FTZ Conjunto','N','N') , (1999,'3/1/2016','es-MX','KeepDuringRollback',N'Mantenga Durante la Reducción de precios','N','N') , (1999,'3/1/2016','es-MX','kilogram',N'kilogramo','N','N') , (1999,'3/1/2016','es-MX','kilograms',N'kilogramos','N','N') , (1999,'9/6/2016','es-MX','l Admission Number',N'Entradas Anteriores','N','N') , (1999,'9/6/2016','es-MX','l CF214 Number',N'Número CF214','N','N') , (1999,'9/6/2016','es-MX','l Desc Of Merchandise',N'Descripción de la mercancía','N','N') , (1999,'9/6/2016','es-MX','l Document Stage',N'Etapa del doccumento','N','N') , (1999,'9/6/2016','es-MX','l Entry Begin Date',N'Fecha de inicio de entrada','N','N') , (1999,'9/6/2016','es-MX','l Entry Doc Id',N'ID documentación','N','N') , (1999,'9/6/2016','es-MX','l Entry End Date',N'Fecha de finalización de entrada','N','N') , (1999,'9/6/2016','es-MX','l Entry Number',N'Número de entrada','N','N') , (1999,'9/6/2016','es-MX','l Export Country Code',N'País de Exportación','N','N') , (1999,'9/6/2016','es-MX','l Export Region',N'Región de exportación','N','N') , (1999,'9/6/2016','es-MX','l Field Value',N'Valor del campo','N','N') , (1999,'9/6/2016','es-MX','l Frgn Port Of Lading',N'Puerto extranjero de desembarque','N','N') , (1999,'9/6/2016','es-MX','l Location Of Goods',N'Ubicación de bienes (FIRMS)','N','N') , (1999,'9/6/2016','es-MX','l Lookup Field',N'Campo de Búsqueda','N','N') , (1999,'9/6/2016','es-MX','l New Manufacturer Id',N'Nuevo ID del fabricante','N','N') , (1999,'9/6/2016','es-MX','l Receipt Doc ID',N'ID del documento de recibo','N','N') , (1999,'9/6/2016','es-MX','l Records To Include',N'Registros a Incluir','N','N') , (1999,'9/6/2016','es-MX','l Report Format',N'Formato del reporte','N','N') , (1999,'9/6/2016','es-MX','l Report Parameters',N'Parámetros de importación','N','N') , (1999,'9/6/2016','es-MX','l Reporting Level',N'Nivel del Reporte','N','N') , (1999,'9/6/2016','es-MX','l Show Entries',N'Mostrar Entradas','N','N') , (1999,'9/6/2016','es-MX','l Submission Date',N'Fecha de sumisión','N','N') , (1999,'9/6/2016','es-MX','l Transport Id',N'ID de transporte','N','N') , (1999,'9/6/2016','es-MX','l Zone Type',N'Tipo de Zona','N','N') , (1999,'9/6/2016','es-MX','Label Entry Number',N'Número de entrada','N','N') , (1999,'3/1/2016','es-MX','Label1',N'Registros por Pagina','N','N') , (1999,'4/8/2010','es-MX','Label1/Category',N'Categoría','N','N') , (1999,'3/1/2016','es-MX','Label12',N'Nombre de la Query','N','N') , (1999,'3/26/2010','es-MX','Label2',N'Buscar','N','N') , (1999,'3/1/2016','es-MX','Label3',N'Compañía','N','N') , (1999,'4/8/2010','es-MX','Label3/Group',N'Grupo','N','N') , (1999,'3/1/2016','es-MX','Label5',N'Vista','N','N') , (1999,'9/6/2016','es-MX','Label6',N'Buscar','N','N') , (1999,'9/6/2016','es-MX','Label7',N'Registros por página','N','N') , (1999,'9/6/2016','es-MX','label9',N'Tipo de Licencia','N','N') , (1999,'9/6/2016','es-MX','LabelEntryNumber',N'Número de entrada','N','N') , (1999,'9/6/2016','es-MX','lAdmissionNumber',N'Entradas Anteriores','N','N') , (1999,'9/6/2016','es-MX','Language',N'Lenguaje','N','N') , (1999,'9/6/2016','es-MX','Language Type',N'Tipo de lenguaje','N','N') , (1999,'9/6/2016','es-MX','LanguageType',N'Tipo de lenguaje','N','N') , (1999,'4/8/2010','es-MX','Last Checked Date',N'Ultima Fecha de Chequeo','N','N') , (1999,'3/1/2016','es-MX','Last FIFO Finalize',N'Último FIFO realizado','N','N') , (1999,'3/1/2016','es-MX','Last Login',N'ultima fecha de entrada','N','N') , (1999,'3/1/2016','es-MX','Last Name',N'Apellido','N','N') , (1999,'3/1/2016','es-MX','Last Processed Date',N'Fecha del Ultimo Proceso','N','N') , (1999,'9/6/2016','es-MX','Last Transmitted',N'Ultima Transmisión','N','N') , (1999,'3/1/2016','es-MX','Last Update',N'Ultima Actualizacion','N','N') , (1999,'2/24/2010','es-MX','Last Updated',N'Ultima Actualización','N','N') , (1999,'9/6/2016','es-MX','Last Updated By',N'Ultima Actualización Por','N','N') , (1999,'3/1/2016','es-MX','LastCf214Suffix',N'Último Sufijo Cf214','N','N') , (1999,'9/6/2016','es-MX','LastCheckedDate',N'Ultima Fecha Verificada','N','N') , (1999,'3/1/2016','es-MX','LastEntryNum',N'Último Número de Entrada','N','N') , (1999,'3/1/2016','es-MX','LastFIFOFinalize',N'Último FIFO realizado','N','N') , (1999,'3/1/2016','es-MX','LastFileProcessed',N'Último archivo procesado','N','N') , (1999,'3/1/2016','es-MX','LastProcessedDate',N'Ultima Fecha Procesada','N','N') , (1999,'3/1/2016','es-MX','LastShipmentSuffix',N'Último Sufijo de Embarque','N','N') , (1999,'3/1/2016','es-MX','LastTxnDate',N'Última Fecha de Transacción','N','N') , (1999,'3/1/2016','es-MX','LastUpdate',N'Última actualización','N','N') , (1999,'2/22/2010','es-MX','LastUpdatedBy',N'Ultima Actualización Por','N','N') , (1999,'9/11/2015','es-MX','Launch Mass BOM Analysis',N'Ejecutar Análisis Masivo de Lista de Materiales','N','N') , (1999,'9/6/2016','es-MX','lb Add Admission',N'Agregar admisión','N','N') , (1999,'9/6/2016','es-MX','lb Add New',N'Agregar Nuevo','N','N') , (1999,'9/6/2016','es-MX','lb Delete',N'Eliminar','N','N') , (1999,'9/6/2016','es-MX','lb Delete All',N'Borrar todo','N','N') , (1999,'9/6/2016','es-MX','lb Email Template',N'Agregar plantilla de email','N','N') , (1999,'9/6/2016','es-MX','lb Execute Process',N'Ejecutar Proceso','N','N') , (1999,'9/6/2016','es-MX','lb Exit',N'Salir','N','N') , (1999,'9/6/2016','es-MX','lb Generate',N'Generar','N','N') , (1999,'9/6/2016','es-MX','lb Pay',N'Procesar declaración seleccionada','N','N') , (1999,'9/6/2016','es-MX','lb Refresh',N'Reiniciar','N','N') , (1999,'9/6/2016','es-MX','lb Save',N'Guardar','N','N') , (1999,'9/6/2016','es-MX','lb Search',N'Buscar','N','N') , (1999,'9/6/2016','es-MX','lb Update',N'Actualizar','N','N') , (1999,'9/6/2016','es-MX','lbAddAdmission',N'Agregar admisión','N','N') , (1999,'9/6/2016','es-MX','lbAddNew',N'Agregar Nuevo','N','N') , (1999,'2/24/2010','es-MX','lbCreateNewRequest',N'Crear Nueva Solicitud','N','N') , (1999,'9/6/2016','es-MX','lbDelete',N'Eliminar','N','N') , (1999,'9/6/2016','es-MX','lbDeleteAll',N'Borrar todo','N','N') , (1999,'9/6/2016','es-MX','lbEmailTemplate',N'Agregar plantilla de email','N','N') , (1999,'3/1/2016','es-MX','lbExecute',N'Ejecutar','N','N') , (1999,'9/6/2016','es-MX','lbExecuteProcess',N'Ejecutar Proceso','N','N') , (1999,'9/6/2016','es-MX','lbExit',N'Salir','N','N') , (1999,'2/24/2010','es-MX','lbFilterListGo',N'Buscar','N','N') , (1999,'9/6/2016','es-MX','lbGenerate',N'Generar','N','N') , (1999,'9/6/2016','es-MX','lbl Admission Number',N'Número de admisión','N','N') , (1999,'3/1/2016','es-MX','lbl BEGINDATE',N'Fecha de Inicio','N','N') , (1999,'9/6/2016','es-MX','lbl Beginning Date',N'Fecha de inicio','N','N') , (1999,'9/6/2016','es-MX','lbl Bill Of Lading',N'Guía de carga','N','N') , (1999,'9/6/2016','es-MX','lbl Border Cross',N'Cruce fronterizo','N','N') , (1999,'9/6/2016','es-MX','lbl CF7512 Date',N'Fecha CF7512','N','N') , (1999,'9/6/2016','es-MX','lbl CF7512 Number',N'Número HTS','N','N') , (1999,'9/6/2016','es-MX','lbl Collapsible Panel Message Display',N'Esconder / Mostrar Campos...','N','N') , (1999,'3/1/2016','es-MX','lbl Company SCAC_Company',N'Compañía SCAC','N','N') , (1999,'3/1/2016','es-MX','lbl Company Type',N'Tipo de Compañía','N','N') , (1999,'9/6/2016','es-MX','lbl Consignee',N'Consignatario','N','N') , (1999,'9/6/2016','es-MX','lbl Country Code',N'Código de país','N','N') , (1999,'4/7/2016','es-MX','lbl Current Date Data Display',N'AAAA-MM-DD','N','N') , (1999,'9/6/2016','es-MX','lbl Current Exit Doc ID',N'No. de Entrada Actual','N','N') , (1999,'9/6/2016','es-MX','lbl Current Ship Name',N'Nombre del barco','N','N') , (1999,'9/6/2016','es-MX','lbl Customer Name',N'Nombre del cliente','N','N') , (1999,'9/6/2016','es-MX','lbl Date',N'Fecha','N','N') , (1999,'9/6/2016','es-MX','lbl Default Exp Aduana',N'AduanaExpEstandar','N','N') , (1999,'9/6/2016','es-MX','lbl Default Exp Destination',N'Destino de Exportacion Estandar','N','N') , (1999,'9/6/2016','es-MX','lbl Default Exp Doc Num',N'Numero de Documento de Exportación Estandar','N','N') , (1999,'9/6/2016','es-MX','lbl Delivery Date',N'Fecha de entrega','N','N') , (1999,'9/6/2016','es-MX','lbl Delivery Mode',N'Modo de entrega','N','N') , (1999,'9/6/2016','es-MX','lbl Distribution Class',N'Clase de distribución','N','N') , (1999,'4/7/2016','es-MX','lbl Document Detail Tab',N'Detalle del Documento','N','N') , (1999,'9/6/2016','es-MX','lbl Eff Date',N'Fecha de vigencia','N','N') , (1999,'3/1/2016','es-MX','lbl ENDDATE',N'Fecha de terminación','N','N') , (1999,'9/6/2016','es-MX','lbl Ending Date',N'Fecha de fin','N','N') , (1999,'3/1/2016','es-MX','lbl Entry Num',N'Número de entrada','N','N') , (1999,'9/6/2016','es-MX','lbl Entry Number',N'Número de Entrada 7501','N','N') , (1999,'3/1/2016','es-MX','lbl Error Notice',N'Procesamiento de Datos necesita ser Validado. Por favor revise las transacciones','N','N') , (1999,'9/6/2016','es-MX','lbl Estimated Ship Date',N'Fecha estimada de envío','N','N') , (1999,'9/6/2016','es-MX','lbl Exit',N'Salir','N','N') , (1999,'9/6/2016','es-MX','lbl Exit Doc ID',N'ID del documento de salida','N','N') , (1999,'9/6/2016','es-MX','lbl Expiration Date',N'Fecha de expiración','N','N') , (1999,'9/6/2016','es-MX','lbl Export Country Code',N'Código de país de exportación','N','N') , (1999,'3/1/2016','es-MX','lbl FIFO Flag',N'Bandera FIFO','N','N') , (1999,'3/1/2016','es-MX','lbl Filer Code',N'Código de entrada','N','N') , (1999,'9/6/2016','es-MX','lbl Files Downloaded',N'Archivos actualmente descargandose','N','N') , (1999,'9/6/2016','es-MX','lbl Final US Port',N'Puerto final US','N','N') , (1999,'3/1/2016','es-MX','lbl Flag Entry For Reconciliation',N'Bandera de reconciliación','N','N') , (1999,'9/6/2016','es-MX','lbl FTA',N'Seleccionar FTA','N','N') , (1999,'9/6/2016','es-MX','lbl FTA Detail',N'Detalle de TLC','N','N') , (1999,'9/6/2016','es-MX','lbl Fully Qualified',N'Completo','N','N') , (1999,'9/6/2016','es-MX','lbl Generate',N'Generar','N','N') , (1999,'9/6/2016','es-MX','lbl HTS Number',N'Número HTS','N','N') , (1999,'9/6/2016','es-MX','lbl Import Country Code',N'Código de país de importación','N','N') , (1999,'9/6/2016','es-MX','lbl Import Or Export',N'Importación o exportación','N','N') , (1999,'9/6/2016','es-MX','lbl Indent Result Xml',N'Endentar resultado Xml','N','N') , (1999,'9/6/2016','es-MX','lbl Invoice Number',N'Número de factura','N','N') , (1999,'3/1/2016','es-MX','lbl INVOICENUM',N'No. de Factura','N','N') , (1999,'9/6/2016','es-MX','lbl Item Id',N'ID del artículo','N','N') , (1999,'9/6/2016','es-MX','lbl Language',N'Lenguaje','N','N') , (1999,'9/6/2016','es-MX','lbl Language Type',N'Tipo de lenguaje','N','N') , (1999,'9/6/2016','es-MX','lbl Lloyds Register Number',N'Identificación del barco','N','N') , (1999,'9/6/2016','es-MX','lbl Load Number',N'Número de carga','N','N') , (1999,'9/6/2016','es-MX','lbl Look Up',N'Buscar','N','N') , (1999,'9/6/2016','es-MX','lbl Lot Number',N'Número de lote','N','N') , (1999,'9/6/2016','es-MX','lbl Move To History',N'Mover a historial','N','N') , (1999,'9/6/2016','es-MX','lbl New Exit Doc ID',N'Nuevo No. de Entrada','N','N') , (1999,'9/6/2016','es-MX','lbl Non Transmit',N'No transmitido','N','N') , (1999,'9/6/2016','es-MX','lbl Notes',N'Notas','N','N') , (1999,'9/6/2016','es-MX','lbl Order Num Ship',N'Orden de envío','N','N') , (1999,'9/6/2016','es-MX','lbl Order Num Work',N'Orden de trabajo','N','N') , (1999,'9/6/2016','es-MX','lbl Page Controls_Assign',N'Asignar','N','N') , (1999,'9/6/2016','es-MX','lbl Page Controls_HS Number',N'Número de Fracción','N','N') , (1999,'9/6/2016','es-MX','lbl Page Controls_Import',N'Importar','N','N') , (1999,'9/6/2016','es-MX','lbl Page Controls_Ship From Country',N'Enviando del País','N','N') , (1999,'9/6/2016','es-MX','lbl Page Controls_Ship To Country',N'Enviado al País','N','N') , (1999,'9/6/2016','es-MX','lbl Parts',N'Número del documento','N','N') , (1999,'9/6/2016','es-MX','lbl Pending Request',N'Solicitud de Clasificación en Proceso','N','N') , (1999,'9/6/2016','es-MX','lbl Post Code',N'Código postal','N','N') , (1999,'9/6/2016','es-MX','lbl Previous Entries',N'Entradas Previas','N','N') , (1999,'9/6/2016','es-MX','lbl Price EUR',N'Precio (Euro)','N','N') , (1999,'9/6/2016','es-MX','lbl Process Release Number',N'Proceso de liberación de número','N','N') , (1999,'9/6/2016','es-MX','lbl Process Web Server',N'Servidor de procesos web','N','N') , (1999,'9/6/2016','es-MX','lbl Product Num',N'Código del modelo','N','N') , (1999,'9/6/2016','es-MX','lbl Production Number',N'Número de producción','N','N') , (1999,'9/6/2016','es-MX','lbl Railcar Truck',N'Camión autovía','N','N') , (1999,'9/6/2016','es-MX','lbl Receipt Doc Id',N'ID del Documento del Recibo','N','N') , (1999,'9/6/2016','es-MX','lbl Receipt Supplement',N'Información suplemental','N','N') , (1999,'9/6/2016','es-MX','lbl Refresh',N'Actualizar','N','N') , (1999,'9/6/2016','es-MX','lbl Report Format',N'Formato del reporte','N','N') , (1999,'9/6/2016','es-MX','lbl Request Errors',N'Errores de solicitud','N','N') , (1999,'9/6/2016','es-MX','lbl Request Name',N'Nombre de solicitud','N','N') , (1999,'9/6/2016','es-MX','lbl Request Release Number',N'Solicitud de liberación de número','N','N') , (1999,'9/6/2016','es-MX','lbl Request Warnings',N'Advertencias de solicitud','N','N') , (1999,'9/6/2016','es-MX','lbl Request Web Server',N'Solicitud de servidor web','N','N') , (1999,'9/6/2016','es-MX','lbl Response GUID',N'GUID de respuesta','N','N') , (1999,'9/6/2016','es-MX','lbl Return Notes',N'Notas de retorno','N','N') , (1999,'9/6/2016','es-MX','lbl Save Change',N'Guardar cambio','N','N') , (1999,'9/6/2016','es-MX','lbl SCAC Code',N'Código SCAC','N','N') , (1999,'9/6/2016','es-MX','lbl Screen',N'Pantalla','N','N') , (1999,'9/6/2016','es-MX','lbl Search Col',N'Buscar','N','N') , (1999,'9/6/2016','es-MX','lbl Search For',N'Por','N','N') , (1999,'9/6/2016','es-MX','lbl SED Number',N'Número SED','N','N') , (1999,'9/6/2016','es-MX','lbl Serial Number',N'Número de chasis','N','N') , (1999,'9/6/2016','es-MX','lbl Show Archive',N'Mostrar archivado','N','N') , (1999,'9/6/2016','es-MX','lbl Show Current',N'Mostrar actual','N','N') , (1999,'9/6/2016','es-MX','lbl Show Entries',N'Mostrar entradas','N','N') , (1999,'9/6/2016','es-MX','lbl Solution',N'Solución','N','N') , (1999,'9/6/2016','es-MX','lbl Source',N'Fuente','N','N') , (1999,'9/6/2016','es-MX','lbl SQL Type',N'tmgSQL Tipo de Query','N','N') , (1999,'9/6/2016','es-MX','lbl Staging',N'Área de stage','N','N') , (1999,'4/7/2016','es-MX','lbl Standard Notes In Other Culture Code',N'Ingles','N','N') , (1999,'4/7/2016','es-MX','lbl Tab1',N'Todos','N','N') , (1999,'9/6/2016','es-MX','lbl Transaction Date',N'Fecha de transacción','N','N') , (1999,'9/6/2016','es-MX','lbl Transmission Date',N'Fecha de Transmisión de la Declaración','N','N') , (1999,'9/6/2016','es-MX','lbl Transmit',N'Transmitido','N','N') , (1999,'3/1/2016','es-MX','lbl Tsca Statement',N'Declalración TSCA','N','N') , (1999,'9/6/2016','es-MX','lbl Txn Qty Uom',N'Cantidad de unidad de medida','N','N') , (1999,'9/6/2016','es-MX','lbl UOM1',N'Unidad de medida 1','N','N') , (1999,'9/6/2016','es-MX','lbl UOM2',N'Unidad de medida 2','N','N') , (1999,'9/6/2016','es-MX','lbl UOM3',N'Unidad de medida 3','N','N') , (1999,'9/6/2016','es-MX','lbl Update Field',N'Campo actualizado','N','N') , (1999,'3/1/2016','es-MX','lbl User GTN Event Category Message',N'Mostrar mensajes de la categoría de eventos GTN','N','N') , (1999,'9/6/2016','es-MX','lbl User GUID',N'GUID de usuario','N','N') , (1999,'3/1/2016','es-MX','lbl Valid Flag',N'Bandera de Validación','N','N') , (1999,'9/6/2016','es-MX','lbl Valid UOM1',N'Unidad de medida válida 1','N','N') , (1999,'9/6/2016','es-MX','lbl Validate AKA',N'Validar AKA','N','N') , (1999,'9/6/2016','es-MX','lbl Validation',N'Validación','N','N') , (1999,'9/6/2016','es-MX','lbl Validation Messages',N'Mensajes de Validación','N','N') , (1999,'9/6/2016','es-MX','lbl VIN',N'Número de identificación del vehículo','N','N') , (1999,'9/6/2016','es-MX','lbl Voyage Number',N'Número de viaje','N','N') , (1999,'9/6/2016','es-MX','lbl Week Of',N'Semana de','N','N') , (1999,'9/6/2016','es-MX','lbl Weight',N'Weight','N','N') , (1999,'9/6/2016','es-MX','lbl7501',N'Id documento de salida 7501','N','N') , (1999,'9/6/2016','es-MX','lblAdmissionNumber',N'Número de admisión','N','N') , (1999,'9/6/2016','es-MX','lblBeginningDate',N'Fecha de inicio','N','N') , (1999,'9/6/2016','es-MX','lblBillOfLading',N'Guía de carga','N','N') , (1999,'9/6/2016','es-MX','lblBorderCross',N'Cruce fronterizo','N','N') , (1999,'9/6/2016','es-MX','lblCF7512Date',N'Fecha CF7512','N','N') , (1999,'9/6/2016','es-MX','lblCF7512Number',N'Número HTS','N','N') , (1999,'3/1/2016','es-MX','lblCollapsiblePanelMessageDisplay',N'Mostrar campos','N','N') , (1999,'3/1/2016','es-MX','lblCompanyName',N'Nombre de la Compañia','N','N') , (1999,'3/1/2016','es-MX','lblCompanySCAC_Company',N'Compañía SCAC','N','N') , (1999,'3/1/2016','es-MX','lblCompanyType',N'Tipo de Compañía','N','N') , (1999,'9/6/2016','es-MX','lblConsignee',N'Consignatario','N','N') , (1999,'9/6/2016','es-MX','lblCountryCode',N'Código de país','N','N') , (1999,'4/7/2016','es-MX','lblCurrentDateDataDisplay',N'AAAA-MM-DD','N','N') , (1999,'9/6/2016','es-MX','lblCurrentExitDocID',N'No. de Entrada Actual','N','N') , (1999,'9/6/2016','es-MX','lblCurrentShipName',N'Nombre del barco','N','N') , (1999,'9/6/2016','es-MX','lblCustomerName',N'Nombre del cliente','N','N') , (1999,'9/6/2016','es-MX','lblDate',N'Fecha','N','N') , (1999,'9/6/2016','es-MX','lblDefaultExpAduana',N'AduanaExpEstandar','N','N') , (1999,'9/6/2016','es-MX','lblDefaultExpDestination',N'Destino de Exportacion Estandar','N','N') , (1999,'9/6/2016','es-MX','lblDefaultExpDocNum',N'Numero de Documento de Exportación Estandar','N','N') , (1999,'9/6/2016','es-MX','lblDeliveryDate',N'Fecha de entrega','N','N') , (1999,'9/6/2016','es-MX','lblDeliveryMode',N'Modo de entrega','N','N') , (1999,'9/6/2016','es-MX','lblDistributionClass',N'Clase de distribución','N','N') , (1999,'4/7/2016','es-MX','lblDocumentDetailTab',N'Detalle del Documento','N','N') , (1999,'9/6/2016','es-MX','lblEffDate',N'Fecha de vigencia','N','N') , (1999,'3/1/2016','es-MX','lblENDDATE',N'Fecha de terminación','N','N') , (1999,'9/6/2016','es-MX','lblEndingDate',N'Fecha de fin','N','N') INSERT INTO tmgPartnerCultureDefinitions(PartnerId,EffDate,CultureGuid,FieldName,FieldTranslation,DeletedFlag,KeepDuringRollback) VALUES (1999,'3/1/2016','es-MX','lblEntryNum',N'Número de entrada','N','N') , (1999,'9/6/2016','es-MX','lblEntryNumber',N'Número de Entrada 7501','N','N') , (1999,'3/1/2016','es-MX','lblErrorNotice',N'Procesamiento de Datos necesita ser Validada. Por favor revise de transacciones','N','N') , (1999,'9/6/2016','es-MX','lblEstimatedShipDate',N'Fecha estimada de envío','N','N') , (1999,'9/6/2016','es-MX','lblExit',N'Salir','N','N') , (1999,'3/1/2016','es-MX','lblExitDocID',N'ID del documento de salida','N','N') , (1999,'9/6/2016','es-MX','lblExpirationDate',N'Fecha de expiración','N','N') , (1999,'9/6/2016','es-MX','lblExportCountryCode',N'Código de país de exportación','N','N') , (1999,'3/1/2016','es-MX','lblFilerCode',N'Código de entrada','N','N') , (1999,'9/6/2016','es-MX','lblFilesDownloaded',N'Archivos actualmente descargandose','N','N') , (1999,'9/6/2016','es-MX','lblFinalUSPort',N'Puerto final US','N','N') , (1999,'3/1/2016','es-MX','lblFlagEntryForReconciliation',N'Bandera de reconciliación','N','N') , (1999,'3/1/2016','es-MX','lblFormNumber',N'Numero de Documento','N','N') , (1999,'3/1/2016','es-MX','lblFormType',N'Tipo de Documento','N','N') , (1999,'9/6/2016','es-MX','lblFTA',N'Seleccionar FTA','N','N') , (1999,'9/6/2016','es-MX','lblFTADetail',N'Detalle de TLC','N','N') , (1999,'9/6/2016','es-MX','lblFullyQualified',N'Completo','N','N') , (1999,'9/6/2016','es-MX','lblGenerate',N'Generar','N','N') , (1999,'9/6/2016','es-MX','lblHTSNumber',N'Número HTS','N','N') , (1999,'9/6/2016','es-MX','lblImportCountryCode',N'Código de país de importación','N','N') , (1999,'9/6/2016','es-MX','lblImportOrExport',N'Importación o exportación','N','N') , (1999,'9/6/2016','es-MX','lblIndentResultXml',N'Endentar resultado Xml','N','N') , (1999,'3/1/2016','es-MX','lblINVOICENUM',N'No. de Factura','N','N') , (1999,'9/6/2016','es-MX','lblInvoiceNumber',N'Número de factura','N','N') , (1999,'3/1/2016','es-MX','lblIPAdminOrAdmin',N'lblIPAdminOrAdmin','N','N') , (1999,'9/6/2016','es-MX','lblItemId',N'ID del artículo','N','N') , (1999,'9/6/2016','es-MX','lblLanguage',N'Lenguaje','N','N') , (1999,'9/6/2016','es-MX','lblLanguageType',N'Tipo de lenguaje','N','N') , (1999,'2/24/2010','es-MX','lblListFilter',N'Filtrar Por','N','N') , (1999,'9/6/2016','es-MX','lblLloydsRegisterNumber',N'Identificación del barco','N','N') , (1999,'9/6/2016','es-MX','lblLoadNumber',N'Número de carga','N','N') , (1999,'9/6/2016','es-MX','lblLookUp',N'Buscar','N','N') , (1999,'9/6/2016','es-MX','lblLotNumber',N'Número de lote','N','N') , (1999,'3/1/2016','es-MX','lblMessage',N'El Maestro de Matteriales contiene un gran número de records. Por favor utilice la herramienta "Busc','N','N') , (1999,'9/6/2016','es-MX','lblMoveToHistory',N'Mover a historial','N','N') , (1999,'3/1/2016','es-MX','lblMsg',N'La pagina no se carga correctamente, porfavor notifique al administrador del sistema.','N','N') , (1999,'9/6/2016','es-MX','lblNewExitDocID',N'Nuevo No. de Entrada','N','N') , (1999,'9/6/2016','es-MX','lblNonTransmit',N'No transmitido','N','N') , (1999,'9/6/2016','es-MX','lblNotes',N'Notas','N','N') , (1999,'9/6/2016','es-MX','lblOrderNumShip',N'Orden de envío','N','N') , (1999,'9/6/2016','es-MX','lblOrderNumWork',N'Orden de trabajo','N','N') , (1999,'3/1/2016','es-MX','lblPage',N'Pagina','N','N') , (1999,'9/6/2016','es-MX','lblPageControls_Assign',N'Asignar','N','N') , (1999,'9/6/2016','es-MX','lblPageControls_HSNumber',N'Número de Fracción','N','N') , (1999,'9/6/2016','es-MX','lblPageControls_Import',N'Importar','N','N') , (1999,'9/6/2016','es-MX','lblPageControls_ShipFromCountry',N'Enviando del País','N','N') , (1999,'9/6/2016','es-MX','lblPageControls_ShipToCountry',N'Enviado al País','N','N') , (1999,'9/6/2016','es-MX','lblParts',N'Número del documento','N','N') , (1999,'9/6/2016','es-MX','lblPendingRequest',N'Solicitud de Clasificación en Proceso','N','N') , (1999,'9/6/2016','es-MX','lblPostCode',N'Código postal','N','N') , (1999,'9/6/2016','es-MX','lblPreviousEntries',N'Entradas Previas','N','N') , (1999,'9/6/2016','es-MX','lblPriceEUR',N'Precio (Euro)','N','N') , (1999,'9/6/2016','es-MX','lblProcessReleaseNumber',N'Proceso de liberación de número','N','N') , (1999,'9/6/2016','es-MX','lblProcessWebServer',N'Servidor de procesos web','N','N') , (1999,'9/6/2016','es-MX','lblProductionNumber',N'Número de producción','N','N') , (1999,'9/6/2016','es-MX','lblProductNum',N'Código del modelo','N','N') , (1999,'9/6/2016','es-MX','lblRailcarTruck',N'Camión autovía','N','N') , (1999,'9/6/2016','es-MX','lblReceiptDocId',N'ID del Documento del Recibo','N','N') , (1999,'9/6/2016','es-MX','lblReceiptSupplement',N'Información suplemental','N','N') , (1999,'9/6/2016','es-MX','lblRefresh',N'Actualizar','N','N') , (1999,'9/6/2016','es-MX','lblReportFormat',N'Formato del reporte','N','N') , (1999,'9/6/2016','es-MX','lblRequestErrors',N'Errores de solicitud','N','N') , (1999,'9/6/2016','es-MX','lblRequestName',N'Nombre de solicitud','N','N') , (1999,'9/6/2016','es-MX','lblRequestReleaseNumber',N'Solicitud de liberación de número','N','N') , (1999,'9/6/2016','es-MX','lblRequestWarnings',N'Advertencias de solicitud','N','N') , (1999,'9/6/2016','es-MX','lblRequestWebServer',N'Solicitud de servidor web','N','N') , (1999,'9/6/2016','es-MX','lblResponseGUID',N'GUID de respuesta','N','N') , (1999,'9/6/2016','es-MX','lblReturnNotes',N'Notas de retorno','N','N') , (1999,'9/6/2016','es-MX','lblSaveChange',N'Guardar cambio','N','N') , (1999,'9/6/2016','es-MX','lblSCACCode',N'Código SCAC','N','N') , (1999,'9/6/2016','es-MX','lblScreen',N'Pantalla','N','N') , (1999,'9/6/2016','es-MX','lblSearchCol',N'Buscar','N','N') , (1999,'9/6/2016','es-MX','lblSearchFor',N'Por','N','N') , (1999,'9/6/2016','es-MX','lblSEDNumber',N'Número SED','N','N') , (1999,'9/6/2016','es-MX','lblSerialNumber',N'Número de chasis','N','N') , (1999,'9/6/2016','es-MX','lblShowArchive',N'Mostrar archivado','N','N') , (1999,'9/6/2016','es-MX','lblShowCurrent',N'Mostrar actual','N','N') , (1999,'9/6/2016','es-MX','lblShowEntries',N'Mostrar entradas','N','N') , (1999,'9/6/2016','es-MX','lblSolution',N'Solución','N','N') , (1999,'9/6/2016','es-MX','lblSource',N'Fuente','N','N') , (1999,'9/6/2016','es-MX','lblSQLType',N'tmgSQL Tipo de Query','N','N') , (1999,'9/6/2016','es-MX','lblStaging',N'Área de stage','N','N') , (1999,'4/7/2016','es-MX','lblStandardNotesInOtherCultureCode',N'Ingles','N','N') , (1999,'3/1/2016','es-MX','lblStatus',N'La Validacion ha terminado sin advertencias','N','N') , (1999,'4/7/2016','es-MX','lblTab1',N'Todos','N','N') , (1999,'9/6/2016','es-MX','lblTransactionDate',N'Fecha de transacción','N','N') , (1999,'9/6/2016','es-MX','lblTransmissionDate',N'Fecha de Transmisión de la Declaración','N','N') , (1999,'9/6/2016','es-MX','lblTransmit',N'Transmitido','N','N') , (1999,'3/1/2016','es-MX','lblTscaStatement',N'Declalración TSCA','N','N') , (1999,'9/6/2016','es-MX','lblTxnQtyUom',N'Cantidad de unidad de medida','N','N') , (1999,'9/6/2016','es-MX','lblUOM1',N'Unidad de medida 1','N','N') , (1999,'9/6/2016','es-MX','lblUOM2',N'Unidad de medida 2','N','N') , (1999,'9/6/2016','es-MX','lblUOM3',N'Unidad de medida 3','N','N') , (1999,'9/6/2016','es-MX','lblUpdateField',N'Campo actualizado','N','N') , (1999,'3/1/2016','es-MX','lblUserGTNEventCategoryMessage',N'Mostrar mensajes de la categoría de eventos GTN','N','N') , (1999,'9/6/2016','es-MX','lblUserGUID',N'GUID de usuario','N','N') , (1999,'9/6/2016','es-MX','lblValidateAKA',N'Validar AKA','N','N') , (1999,'9/6/2016','es-MX','lblValidation',N'Validación','N','N') , (1999,'9/6/2016','es-MX','lblValidationMessages',N'Mensajes de Validación','N','N') , (1999,'9/6/2016','es-MX','lblvalidhsnumber',N'Número de sistema armonizado válido','N','N') , (1999,'9/6/2016','es-MX','lblValidUOM1',N'Unidad de medida válida 1','N','N') , (1999,'9/6/2016','es-MX','lblVIN',N'Número de identificación del vehículo','N','N') , (1999,'9/6/2016','es-MX','lblVoyageNumber',N'Número de viaje','N','N') , (1999,'9/6/2016','es-MX','lblWeekOf',N'Semana de','N','N') , (1999,'9/6/2016','es-MX','lblWeight',N'Weight','N','N') , (1999,'9/6/2016','es-MX','lbPay',N'Procesar declaración seleccionada','N','N') , (1999,'9/6/2016','es-MX','lbRefresh',N'Reiniciar','N','N') , (1999,'3/1/2016','es-MX','lbRevalidate',N'Validacion','N','N') , (1999,'9/6/2016','es-MX','lbSave',N'Guardar','N','N') , (1999,'9/6/2016','es-MX','lbSearch',N'Buscar','N','N') , (1999,'2/24/2010','es-MX','lbSendRemindar',N'Enviar Recordatorio','N','N') , (1999,'9/6/2016','es-MX','Lbtn Add Row',N'Agregar Fila','N','N') , (1999,'9/6/2016','es-MX','lbtn Exit I',N'Salir','N','N') , (1999,'9/6/2016','es-MX','lbtn Save',N'Guardar','N','N') , (1999,'9/6/2016','es-MX','LbtnAddRow',N'Agregar Fila','N','N') , (1999,'9/6/2016','es-MX','lbtnExitI',N'Salir','N','N') , (1999,'9/6/2016','es-MX','lbtnSave',N'Guardar','N','N') , (1999,'9/6/2016','es-MX','lbUpdate',N'Actualizar','N','N') , (1999,'3/1/2016','es-MX','lbx AD Case Number',N'Número de Caja AD','N','N') , (1999,'3/1/2016','es-MX','lbx AD Case Number Source',N'Fuente Número de Caja AD','N','N') , (1999,'3/1/2016','es-MX','lbx AD Case Number Source1',N'Fuente No. caso AD','N','N') , (1999,'3/1/2016','es-MX','lbx AD Case Number1',N'No. Caso AD','N','N') , (1999,'3/1/2016','es-MX','lbx AD Duty Rate Source1',N'Fuente de Indice de Impuesto AD','N','N') , (1999,'3/1/2016','es-MX','lbx AD Duty Rate1',N'Índice de Impuesto AD','N','N') , (1999,'3/1/2016','es-MX','lbx Ad Valorem Rate Source1',N'Fuente de AdValorem','N','N') , (1999,'3/1/2016','es-MX','lbx Ad Valorem Rate1',N'AdValorem','N','N') , (1999,'9/6/2016','es-MX','lbx Add Exclude',N'Excluir palabras comunes','N','N') , (1999,'9/6/2016','es-MX','lbx Add Note',N'Agregar Notas','N','N') , (1999,'3/10/2016','es-MX','lbx Additional Code',N'Código Adicional','N','N') , (1999,'3/1/2016','es-MX','lbx Additional Ctry',N'País Adicional','N','N') , (1999,'3/1/2016','es-MX','lbx Addl Hts Uom Conv Factor Source1',N'Fuente de la UM de Reporte Adicional','N','N') , (1999,'3/1/2016','es-MX','lbx Addl Hts Uom Conv Factor1',N'Factor de Conversión de UM de Fracción','N','N') , (1999,'3/1/2016','es-MX','lbx Addl Rpt Qty Uom Source1',N'Fuente de la UM de Reporte Adicional','N','N') , (1999,'3/1/2016','es-MX','lbx Addl Rpt Qty Uom1',N'Reporte Adicional de Unidad de Medida','N','N') , (1999,'3/1/2016','es-MX','lbx Addl Specific Rate',N'Índice Específico','N','N') , (1999,'3/1/2016','es-MX','lbx Addl Specific Rate Source',N'Fuente de Indice Específica','N','N') , (1999,'3/1/2016','es-MX','lbx Addl Specific Rate Source1',N'Fuente.Índice específica adicional','N','N') , (1999,'3/1/2016','es-MX','lbx Addl Specific Rate1',N'Impuesto Específico','N','N') , (1999,'3/1/2016','es-MX','lbx Addl Table List',N'Información Adicional','N','N') , (1999,'9/6/2016','es-MX','lbx Addr Request Code',N'Código de la Petición de la Dirección','N','N') , (1999,'9/6/2016','es-MX','lbx Address Line1',N'Domicilio linea 1','N','N') , (1999,'9/6/2016','es-MX','lbx Address Line2',N'Domicilio linea 2','N','N') , (1999,'9/6/2016','es-MX','lbx Address Line3',N'Domicilio Linea 3','N','N') , (1999,'9/6/2016','es-MX','lbx Address Line4',N'Domicilio Linea 4','N','N') , (1999,'9/6/2016','es-MX','lbx Address Options',N'Opciones de Búsqueda Por Dirección','N','N') , (1999,'3/1/2016','es-MX','lbx Address Type',N'Tipo de Domicilio','N','N') , (1999,'3/1/2016','es-MX','lbx Administrative First Half Example',N'Primera mitad','N','N') , (1999,'3/1/2016','es-MX','lbx Administrative Second Half Example',N'Segunda Mitad','N','N') , (1999,'3/1/2016','es-MX','lbx Agency Code',N'Código de agencia','N','N') , (1999,'9/6/2016','es-MX','lbx Agreement',N'Tratado de Libre Comercio','N','N') , (1999,'9/6/2016','es-MX','lbx Air Waybill',N'Hoja de ruta aérea (Número de rastreo)','N','N') , (1999,'3/1/2016','es-MX','lbx All',N'Todo','N','N') , (1999,'3/1/2016','es-MX','lbx Allowed Qty',N'Cantidad Permitida','N','N') , (1999,'3/1/2016','es-MX','lbx Allowed Value',N'Valor Permitido','N','N') , (1999,'3/1/2016','es-MX','lbx Alt Currency Code1',N'Código de Moneda','N','N') , (1999,'3/1/2016','es-MX','lbx Alt Hts Addl Rpt Qty Uom',N'Fracción Alterna de Unidad de Medida Adicional','N','N') , (1999,'3/1/2016','es-MX','lbx Alt Hts Desc',N'Descripción alternativa','N','N') , (1999,'3/1/2016','es-MX','lbx Alt Hts Rpt Qty Uom',N'Fracción Alterna de Unidad de Medida','N','N') , (1999,'3/1/2016','es-MX','lbx Alt Value Source1',N'Fuente.Valor Materia Prima','N','N') , (1999,'3/1/2016','es-MX','lbx Alt Value1',N'Valor Unitario Total 1','N','N') , (1999,'3/1/2016','es-MX','lbx Alt Value2 Source1',N'Fuente.2 Valor Materia Prima','N','N') , (1999,'3/1/2016','es-MX','lbx Alt Value21',N'Valor Unitario Total 2','N','N') , (1999,'9/6/2016','es-MX','lbx Analysis No',N'Numero de Análisis','N','N') , (1999,'9/6/2016','es-MX','lbx Analysis Runs',N'Cantidad de análisis corridos','N','N') , (1999,'9/6/2016','es-MX','lbx Anchor Field',N'Campos por Agregar','N','N') , (1999,'3/1/2016','es-MX','lbx Annex31 Dischg Tariffs',N'Tarifas','N','N') , (1999,'3/1/2016','es-MX','lbx Annex31 Imports',N'Importes','N','N') , (1999,'3/1/2016','es-MX','lbx Application Error Message',N'Error. Favor de contactar al administrador del sistema.','N','N') , (1999,'9/6/2016','es-MX','lbx Apply To',N'Aplicar a','N','N') , (1999,'9/6/2016','es-MX','lbx Apply_For',N'Por:','N','N') , (1999,'9/6/2016','es-MX','lbx Apply_Search',N'Buscar:','N','N') , (1999,'9/6/2016','es-MX','lbx Arrival Date',N'Fecha de llegada','N','N') , (1999,'3/1/2016','es-MX','lbx Arrival MOT',N'Llegada MdT','N','N') , (1999,'3/1/2016','es-MX','lbx Art65 Hdr',N'Artículo 65','N','N') , (1999,'3/1/2016','es-MX','lbx Art66 Hdr',N'Artículo 66','N','N') , (1999,'9/6/2016','es-MX','lbx Assign',N'Asignar','N','N') , (1999,'3/1/2016','es-MX','lbx Att Txn Val Hdr',N'Valor de Anexos/Transacciones','N','N') , (1999,'9/6/2016','es-MX','lbx Audit Date',N'Fecha de Audición','N','N') , (1999,'9/6/2016','es-MX','lbx Audit Notes',N'Notas de la Audición','N','N') , (1999,'3/1/2016','es-MX','lbx Balances',N'Balances','N','N') , (1999,'3/1/2016','es-MX','lbx Balances Permit ID',N'Tipo de Permiso','N','N') , (1999,'3/1/2016','es-MX','lbx Bank Signature',N'Banco','N','N') , (1999,'9/6/2016','es-MX','lbx Batch Results',N'Excluir los resultados del Lote','N','N') , (1999,'3/1/2016','es-MX','lbx Begin Balance Date',N'Inicio','N','N') , (1999,'3/1/2016','es-MX','lbx Begin Date',N'Fecha de inicio','N','N') , (1999,'3/1/2016','es-MX','lbx Begin Return Date',N'Inicio','N','N') , (1999,'9/6/2016','es-MX','lbx Beginning Date',N'Fecha de inicio','N','N') , (1999,'3/1/2016','es-MX','lbx Bill Of Lading',N'Guía de Carga','N','N') , (1999,'9/6/2016','es-MX','lbx Billof Materials',N'Lista de Materiales:','N','N') , (1999,'9/6/2016','es-MX','lbx Birthdate',N'Fecha de Cumpleaños','N','N') , (1999,'9/6/2016','es-MX','lbx BOM',N'Lista de Materiales','N','N') , (1999,'3/1/2016','es-MX','lbx Broker',N'Agente','N','N') , (1999,'9/6/2016','es-MX','lbx Broker Errors',N'Errores del Corredor','N','N') , (1999,'9/6/2016','es-MX','lbx Broker Remove',N'Remover','N','N') , (1999,'9/6/2016','es-MX','lbx Business Unit',N'Importador de Registros','N','N') , (1999,'3/1/2016','es-MX','lbx Calculated',N'Calculado','N','N') , (1999,'9/6/2016','es-MX','lbx Call Sign',N'Recipiente de llamadas de Firmas','N','N') , (1999,'3/1/2016','es-MX','lbx Cancel Details Header',N'Detalles de Cancelación','N','N') , (1999,'3/1/2016','es-MX','lbx Canceled By',N'Cancelado Por','N','N') , (1999,'3/1/2016','es-MX','lbx Canceled On',N'Fecha/Hora de Cancelación','N','N') , (1999,'3/1/2016','es-MX','lbx Carrier Name',N'Info. Adicional del Transportista','N','N') , (1999,'9/6/2016','es-MX','lbx CBP System To Query',N'CBP Sistema a Consulta','N','N') , (1999,'9/6/2016','es-MX','lbx Cert Types',N'Tipo de documento','N','N') , (1999,'9/6/2016','es-MX','lbx Certificate',N'Certificado/carta','N','N') , (1999,'9/6/2016','es-MX','lbx City',N'Ciudad','N','N') , (1999,'3/1/2016','es-MX','lbx City Code',N'Municipio','N','N') , (1999,'9/6/2016','es-MX','lbx Classification Num',N'No. de Clasificación','N','N') , (1999,'9/6/2016','es-MX','lbx Classification Search',N'Buscar Clasificación','N','N') , (1999,'3/1/2016','es-MX','lbx Closing Authorization Code',N'Código de Autorización de Cerrado','N','N') , (1999,'9/6/2016','es-MX','lbx Column Count',N'Cuenta de Coumna','N','N') , (1999,'3/1/2016','es-MX','lbx Comments',N'Comentarios','N','N') , (1999,'3/1/2016','es-MX','lbx Commercial Description',N'Descripción comercial','N','N') , (1999,'3/1/2016','es-MX','lbx Company',N'Compañía','N','N') , (1999,'3/1/2016','es-MX','lbx Company Code',N'Clave de Planta','N','N') , (1999,'3/1/2016','es-MX','lbx Company Hdr',N'Empresa IMMEX o de Submanufactura','N','N') , (1999,'3/1/2016','es-MX','lbx Company ID',N'ID de Compañía','N','N') , (1999,'9/6/2016','es-MX','lbx Company Information',N'Información de la Compañia','N','N') , (1999,'3/1/2016','es-MX','lbx Company SCAC_Company',N'Compañía SCAC','N','N') , (1999,'3/1/2016','es-MX','lbx Compensations',N'Compensaciones','N','N') , (1999,'3/1/2016','es-MX','lbx Compliments',N'Complementos','N','N') , (1999,'9/6/2016','es-MX','lbx Component Balance Audit',N'Auditoria del Balance de Componentes','N','N') , (1999,'9/6/2016','es-MX','lbx Consolidate By',N'Consolidado por','N','N') , (1999,'3/1/2016','es-MX','lbx Consolidated Flag',N'Consolidado','N','N') , (1999,'3/1/2016','es-MX','lbx Consolidated Signature',N'Firma consolidada','N','N') , (1999,'3/1/2016','es-MX','lbx Constancia Date',N'Fecha de constancia','N','N') , (1999,'3/1/2016','es-MX','lbx Constancia Num',N'Número de constancia','N','N') , (1999,'3/1/2016','es-MX','lbx Constancia Period',N'Periodo de constancia','N','N') , (1999,'3/1/2016','es-MX','lbx Contact Name',N'Nombre','N','N') , (1999,'3/1/2016','es-MX','lbx Container',N'Contenedor','N','N') , (1999,'3/1/2016','es-MX','lbx Container Header',N'Contenedor','N','N') , (1999,'3/1/2016','es-MX','lbx Container Num',N'Número de caja','N','N') , (1999,'3/1/2016','es-MX','lbx Container Seal Num',N'Número de Sello','N','N') , (1999,'3/1/2016','es-MX','lbx Container Seal Num2',N'Número de Sello 2','N','N') , (1999,'3/1/2016','es-MX','lbx Container Seal Num3',N'Número de Sello 3','N','N') , (1999,'3/1/2016','es-MX','lbx Container Type',N'Tipo de Contenedor','N','N') , (1999,'9/6/2016','es-MX','lbx Content Web Services Type',N'Tipo de contenido/servicio web','N','N') , (1999,'9/6/2016','es-MX','lbx Content WS Type',N'Tipo de contenido WS','N','N') , (1999,'9/6/2016','es-MX','lbx COO Num',N'Número de certificado de origen','N','N') , (1999,'9/6/2016','es-MX','lbx COO Type',N'Tipo de certificado','N','N') , (1999,'9/8/2016','es-MX','lbx Copy Agreement',N'Copiar artículos desde:','N','N') , (1999,'3/1/2016','es-MX','lbx Country Of Origin Source1',N'Fuente de País de Origen','N','N') , (1999,'3/1/2016','es-MX','lbx Country Of Origin1',N'País de Origen','N','N') , (1999,'3/1/2016','es-MX','lbx COVE Cert Flag',N'Está certificado COVE?','N','N') , (1999,'3/1/2016','es-MX','lbx COVE Document Num',N'Número de documento','N','N') , (1999,'3/1/2016','es-MX','lbx COVE Message',N'Mensaje COVE','N','N') , (1999,'3/1/2016','es-MX','lbx COVE Operation Num',N'Número de Operacion COVE','N','N') , (1999,'9/6/2016','es-MX','lbx Create From',N'Crear de:','N','N') , (1999,'9/6/2016','es-MX','lbx CSA',N'Criterios de Análisis Actuales','N','N') , (1999,'9/6/2016','es-MX','lbx CSC',N'Criterios de Búsqueda Actual','N','N') , (1999,'9/6/2016','es-MX','lbx Ctrl Click To Select Multiple',N'Ctrl+Clic Para Seleccionar Múltiples Artículos','N','N') , (1999,'9/6/2016','es-MX','lbx Culture Codes',N'Cultura de descripción','N','N') , (1999,'3/1/2016','es-MX','lbx Currency Code Source1',N'Código de Fuente de Moneda','N','N') , (1999,'3/1/2016','es-MX','lbx Currency Code1',N'Código de Moneda','N','N') , (1999,'9/6/2016','es-MX','lbx Current Entry',N'Entrada Actual','N','N') , (1999,'9/6/2016','es-MX','lbx Current Product',N'Seleccionar Producto','N','N') , (1999,'9/6/2016','es-MX','lbx Current Request Name',N'Solicitud Actual','N','N') , (1999,'3/1/2016','es-MX','lbx Current Search',N'Búsqueda Actual','N','N') , (1999,'9/8/2015','es-MX','lbx Current Shipment',N'Declaración Actual','N','N') , (1999,'9/6/2016','es-MX','lbx Custodial Bond Num',N'Número de enlace de custodia del grupo de entrega','N','N') , (1999,'9/6/2016','es-MX','lbx Customer Grid Title',N'Clientes','N','N') , (1999,'3/1/2016','es-MX','lbx Customs',N'Aduana','N','N') , (1999,'3/1/2016','es-MX','lbx Customs IO',N'Aduana E/S','N','N') , (1999,'3/1/2016','es-MX','lbx Customs Location',N'Aduana','N','N') , (1999,'3/1/2016','es-MX','lbx Customs Transportation',N'Aduana & Transporte','N','N') , (1999,'3/1/2016','es-MX','lbx Cutoff Date',N'Fecha de Corte','N','N') , (1999,'3/1/2016','es-MX','lbx CV Case Number',N'Número de Caja CV','N','N') , (1999,'3/1/2016','es-MX','lbx CV Case Number Source',N'Fuente Número de Caja CV','N','N') , (1999,'3/1/2016','es-MX','lbx CV Case Number Source1',N'Fuente No.Caso CV','N','N') , (1999,'3/1/2016','es-MX','lbx CV Case Number1',N'No. Caso CV','N','N') , (1999,'3/1/2016','es-MX','lbx CV Duty Rate Source1',N'Fuente de Indice de impuesto CV','N','N') , (1999,'3/1/2016','es-MX','lbx CV Duty Rate1',N'Índice de Impuesto CV','N','N') , (1999,'9/6/2016','es-MX','lbx Dashboard Settings',N'Conguración de tablero de mando','N','N') , (1999,'9/6/2016','es-MX','lbx Data Source',N'Fuente de Datos','N','N') , (1999,'9/6/2016','es-MX','lbx Data Source Notes',N'Notas de la Fuente de Datos','N','N') , (1999,'3/1/2016','es-MX','lbx Date Format',N'Formato de Fecha','N','N') , (1999,'9/6/2016','es-MX','lbx Date Of Entry',N'Fecha de entrada de la llegada','N','N') , (1999,'3/1/2016','es-MX','lbx Date Time Format',N'Formato de Hora','N','N') , (1999,'3/1/2016','es-MX','lbx Dates',N'Fechas','N','N') , (1999,'3/1/2016','es-MX','lbx Dates By Document Codes',N'Fechas por Código de Documentos','N','N') , (1999,'3/1/2016','es-MX','lbx Days',N'Número de días','N','N') , (1999,'3/1/2016','es-MX','lbx Days To Change Password',N'Días requeridos para cambiar contraseña','N','N') , (1999,'9/6/2016','es-MX','lbx Declaration UCR',N'Mes de DFS','N','N') , (1999,'3/1/2016','es-MX','lbx Default Culture',N'Idioma por default','N','N') , (1999,'9/6/2016','es-MX','lbx Defaults',N'Valores de Transacción Estandard','N','N') , (1999,'9/6/2016','es-MX','lbx Delivery Ticket Num',N'Número de entrega de ticket','N','N') , (1999,'3/1/2016','es-MX','lbx Departure MOT',N'Salida MdT','N','N') , (1999,'9/6/2016','es-MX','lbx Description',N'Descripción','N','N') , (1999,'3/1/2016','es-MX','lbx Dest Origin',N'Destino/Origen','N','N') , (1999,'3/1/2016','es-MX','lbx Detail',N'Detalles','N','N') , (1999,'9/6/2016','es-MX','lbx Detail Assignment',N'Asignado A','N','N') , (1999,'9/6/2016','es-MX','lbx Detail Company',N'Compañía','N','N') , (1999,'9/6/2016','es-MX','lbx Detail Dates',N'Fechas','N','N') , (1999,'3/1/2016','es-MX','lbx Detail HTS',N'Número de Fracción','N','N') , (1999,'9/6/2016','es-MX','lbx Detail Status',N'Estatus','N','N') , (1999,'3/1/2016','es-MX','lbx Discharges',N'Descargos','N','N') , (1999,'3/1/2016','es-MX','lbx Discharges Begin Date',N'Fecha de Inicio','N','N') , (1999,'3/1/2016','es-MX','lbx Discharges End Date',N'Fecha Final','N','N') , (1999,'3/1/2016','es-MX','lbx Discharges Permit ID',N'Tipo de Permiso','N','N') , (1999,'9/6/2016','es-MX','lbx Display',N'Mostrar','N','N') , (1999,'9/6/2016','es-MX','lbx Display Columns',N'Columnas Visibles','N','N') , (1999,'9/6/2016','es-MX','lbx Doc Access Type',N'Tipo de Acceso de Documento','N','N') , (1999,'9/6/2016','es-MX','lbx Doc Type',N'Tipo de Documento','N','N') , (1999,'9/6/2016','es-MX','lbx Document Analyzer',N'Analizador de Documentos','N','N') , (1999,'3/1/2016','es-MX','lbx Document Code',N'Código de documento','N','N') , (1999,'3/1/2016','es-MX','lbx Document Codes',N'Código de Documentos','N','N') , (1999,'9/6/2016','es-MX','lbx Document Type',N'Tipo de documento','N','N') , (1999,'3/1/2016','es-MX','lbx DOT Indicator1',N'Indicador DOT','N','N') , (1999,'9/6/2016','es-MX','lbx DPS',N'Chequeo de Entidades Denegadas','N','N') , (1999,'3/1/2016','es-MX','lbx Driver Name',N'Nombre del conductor','N','N') , (1999,'3/1/2016','es-MX','lbx DTS Match Flag',N'Bandera Correspondiente','N','N') , (1999,'9/6/2016','es-MX','lbx DTS Search Flag',N'Bandera de Búqueda de DTS','N','N') , (1999,'3/1/2016','es-MX','lbx Dummy Pedimento Number',N'Número de Pedimento Ficticio:','N','N') , (1999,'3/1/2016','es-MX','lbx Duties By Date',N'Impuestos por Fechas','N','N') , (1999,'9/6/2016','es-MX','lbx Edit Ex Add3',N'Dirección 3','N','N') , (1999,'9/6/2016','es-MX','lbx Edit Ex Add4',N'Dirección 4','N','N') , (1999,'9/6/2016','es-MX','lbx Edit Ex City',N'Ciudad','N','N') , (1999,'9/6/2016','es-MX','lbx Edit Ex Contact Name',N'Nombre de Contacto','N','N') , (1999,'9/6/2016','es-MX','lbx Edit Ex Country Code',N'Código del País','N','N') , (1999,'9/6/2016','es-MX','lbx Edit Ex Fax',N'Fax del Contacto','N','N') , (1999,'9/6/2016','es-MX','lbx Edit Ex Phone',N'Teléfono del Contacto','N','N') , (1999,'9/6/2016','es-MX','lbx Edit Ex Postal Code',N'Código Postal','N','N') , (1999,'9/6/2016','es-MX','lbx Edit Ex State',N'Estado','N','N') , (1999,'9/6/2016','es-MX','lbx Edit Ex Title',N'Titulo del Contacto','N','N') , (1999,'9/6/2016','es-MX','lbx Edit Im Add3',N'Dirección 3','N','N') , (1999,'9/6/2016','es-MX','lbx Edit Im Add4',N'Dirección 4','N','N') , (1999,'9/6/2016','es-MX','lbx Edit Im City',N'Ciudad','N','N') , (1999,'9/6/2016','es-MX','lbx Edit Im Contact Name',N'Nombre del Contacto','N','N') , (1999,'9/6/2016','es-MX','lbx Edit Im Country Code',N'Código del País','N','N') , (1999,'9/6/2016','es-MX','lbx Edit Im Fax',N'Fax del Contacto','N','N') , (1999,'9/6/2016','es-MX','lbx Edit Im Phone',N'Teléfono del Contacto','N','N') , (1999,'9/6/2016','es-MX','lbx Edit Im Postal Code',N'Código Postal','N','N') , (1999,'9/6/2016','es-MX','lbx Edit Im State',N'Estado','N','N') , (1999,'9/6/2016','es-MX','lbx Edit Im Title',N'Título del Contacto','N','N') , (1999,'9/6/2016','es-MX','lbx Edit Pr Add3',N'Dirección 3','N','N') , (1999,'9/6/2016','es-MX','lbx Edit Pr Add4',N'Dirección 4','N','N') , (1999,'9/6/2016','es-MX','lbx Edit Pr City',N'Ciudad','N','N') , (1999,'9/6/2016','es-MX','lbx Edit Pr Contact Name',N'Nombre del Contacto','N','N') , (1999,'9/6/2016','es-MX','lbx Edit Pr Country Code',N'Código del País','N','N') , (1999,'9/6/2016','es-MX','lbx Edit Pr Fax',N'Fax del Contacto','N','N') , (1999,'9/6/2016','es-MX','lbx Edit Pr Phone',N'Teléfono del Contacto','N','N') , (1999,'9/6/2016','es-MX','lbx Edit Pr Postal Code',N'Código Postal','N','N') , (1999,'9/6/2016','es-MX','lbx Edit Pr State',N'Estado','N','N') , (1999,'9/6/2016','es-MX','lbx Edit Pr Title',N'Título del Contacto','N','N') , (1999,'3/1/2016','es-MX','lbx Eff Date',N'Fecha de vigencia','N','N') , (1999,'3/1/2016','es-MX','lbx Electronic Signature',N'Firma Electrónica','N','N') , (1999,'3/1/2016','es-MX','lbx Email',N'Correo Electrónico','N','N') , (1999,'3/1/2016','es-MX','lbx Email Address',N'Correo Electrónico','N','N') , (1999,'9/6/2016','es-MX','lbx Email Subject',N'Tema','N','N') , (1999,'9/6/2016','es-MX','lbx Email Type',N'Tipo','N','N') , (1999,'3/1/2016','es-MX','lbx Employees First Half',N'Total de Empleados','N','N') , (1999,'3/1/2016','es-MX','lbx Employees First Half Example',N'Total de empleados','N','N') , (1999,'3/1/2016','es-MX','lbx Employees Second Half',N'Total de Empleados','N','N') , (1999,'3/1/2016','es-MX','lbx Employees Second Half Example',N'Segunda Mitad','N','N') , (1999,'3/1/2016','es-MX','lbx End Balance Date',N'Fin','N','N') , (1999,'3/1/2016','es-MX','lbx End Date',N'Fecha de Terminación','N','N') , (1999,'3/1/2016','es-MX','lbx End Return Date',N'Fin','N','N') , (1999,'9/6/2016','es-MX','lbx Entity Type',N'Tipo de Entidad','N','N') , (1999,'3/1/2016','es-MX','lbx Entry',N'Entrada','N','N') , (1999,'9/6/2016','es-MX','lbx Entry Date',N'Fecha de entrada','N','N') , (1999,'3/1/2016','es-MX','lbx Entry Num',N'No de Guía','N','N') , (1999,'9/6/2016','es-MX','lbx Entry Number',N'No. Pedimento','N','N') , (1999,'9/6/2016','es-MX','lbx Entry Search',N'Búsqueda de Entrada','N','N') , (1999,'3/1/2016','es-MX','lbx Error Catalogs',N'Catálogos Error','N','N') , (1999,'9/6/2016','es-MX','lbx EU Asset Freeze',N'Acciones Congelados de EU','N','N') , (1999,'3/1/2016','es-MX','lbx Exchange Rate Example',N'MX a USD','N','N') , (1999,'9/6/2016','es-MX','lbx Exit',N'Salir','N','N') , (1999,'3/1/2016','es-MX','lbx Expedicion',N'Lugar de Expedición','N','N') , (1999,'3/1/2016','es-MX','lbx Expired Flag',N'Bandera de Vencimiento','N','N') , (1999,'9/6/2016','es-MX','lbx Export',N'Extraer','N','N') , (1999,'9/6/2016','es-MX','lbx Export Country Code',N'País de exportación','N','N') , (1999,'4/7/2016','es-MX','lbx Export Values By Country',N'Volumen de Exportación por Países','N','N') , (1999,'9/6/2016','es-MX','lbx Exports',N'Exportaciones','N','N') , (1999,'3/1/2016','es-MX','lbx Exterior Num',N'Número Exterior','N','N') , (1999,'9/6/2016','es-MX','lbx External Errors',N'Errores Externos','N','N') , (1999,'3/1/2016','es-MX','lbx Fax Number',N'Número Fax','N','N') , (1999,'3/1/2016','es-MX','lbx FCC Indicator1',N'Indicador FCC','N','N') , (1999,'3/1/2016','es-MX','lbx FDA Indicator1',N'Indicador FDA','N','N') , (1999,'3/1/2016','es-MX','lbx Federal Entity',N'Entidad Federativa','N','N') , (1999,'3/1/2016','es-MX','lbx Fees',N'Cargos','N','N') , (1999,'9/6/2016','es-MX','lbx Field To Edit',N'Modificar Campo','N','N') , (1999,'9/6/2016','es-MX','lbx Field To Update',N'Campo ah Actualizar','N','N') , (1999,'3/1/2016','es-MX','lbx File Path',N'Selecciona un Archivo ASC','N','N') , (1999,'9/6/2016','es-MX','lbx File Type',N'Tipo de archivo','N','N') , (1999,'9/6/2016','es-MX','lbx Filter BOMDDL',N'Lista de Materiales Buscar','N','N') , (1999,'9/6/2016','es-MX','lbx Filter Field',N'Criterio de filtro para lista de materiales','N','N') , (1999,'9/6/2016','es-MX','lbx Filter Value',N'Valor de filtro','N','N') , (1999,'3/1/2016','es-MX','lbx First Name',N'Nombre','N','N') , (1999,'9/6/2016','es-MX','lbx For Days',N'Para Previos','N','N') , (1999,'9/6/2016','es-MX','lbx For2',N'Por','N','N') , (1999,'9/6/2016','es-MX','lbx For3',N'Por','N','N') , (1999,'9/6/2016','es-MX','lbx Form Name',N'Nombre de Forma','N','N') , (1999,'3/1/2016','es-MX','lbx Form Number',N'Número de forma','N','N') , (1999,'3/1/2016','es-MX','lbx Form Type',N'Tipo de forma','N','N') , (1999,'3/1/2016','es-MX','lbx Forwarded To Company',N'Nombre del Transportista','N','N') , (1999,'9/6/2016','es-MX','lbx Free Trade Agreement',N'Tratado de Libre Comercio','N','N') , (1999,'3/1/2016','es-MX','lbx Freight',N'Carga','N','N') , (1999,'9/6/2016','es-MX','lbx Frgn Port',N'Puerto extranjero de desembarque','N','N') , (1999,'3/1/2016','es-MX','lbx Frm Tracer From',N'De','N','N') , (1999,'9/6/2016','es-MX','lbx From',N'De','N','N') , (1999,'9/6/2016','es-MX','lbx From Date',N'Desde','N','N') , (1999,'3/1/2016','es-MX','lbx From Exp',N'Origen','N','N') , (1999,'3/1/2016','es-MX','lbx From Imp',N'Origen','N','N') , (1999,'9/6/2016','es-MX','lbx FTA',N'Tratados de Libre Comercio','N','N') , (1999,'9/6/2016','es-MX','lbx FTZ Num',N'Número de zona de comercio exterior','N','N') , (1999,'9/6/2016','es-MX','lbx Fully Qualified',N'Completo','N','N') , (1999,'3/1/2016','es-MX','lbx General',N'Información del Encabezado','N','N') , (1999,'3/1/2016','es-MX','lbx Generate Annex31',N'Generar','N','N') , (1999,'3/1/2016','es-MX','lbx Global Data',N'Información del Encabezado de la Factura','N','N') , (1999,'9/6/2016','es-MX','lbx Goods Delivered From',N'Bienes entregados desde','N','N') , (1999,'9/6/2016','es-MX','lbx Goods Delivered To',N'Bienes entregados a','N','N') , (1999,'9/6/2016','es-MX','lbx Grid One Header',N'Sub Encabezado Global de Blancos y Desajustes','N','N') , (1999,'9/6/2016','es-MX','lbx Grid Two Header',N'Mapeo Directo de Arancela','N','N') , (1999,'3/1/2016','es-MX','lbx Gross Weight',N'Peso bruto','N','N') , (1999,'3/1/2016','es-MX','lbx Group',N'Grupo','N','N') , (1999,'9/6/2016','es-MX','lbx Group Description',N'Descripción del Grupo','N','N') , (1999,'9/6/2016','es-MX','lbx H Bill Of Lading',N'Conocimiento de embarque hijo','N','N') , (1999,'9/6/2016','es-MX','lbx Hdr Beg Date',N'Fecha de Inicio','N','N') , (1999,'9/6/2016','es-MX','lbx Hdr End Date',N'Fecha Final','N','N') , (1999,'3/1/2016','es-MX','lbx Hdr Item Master',N'Maestro de materiales','N','N') , (1999,'3/1/2016','es-MX','lbx Hdr Item Master Additional',N'Tablas adicionales','N','N') , (1999,'3/1/2016','es-MX','lbx Hdr Item Master HTS Values',N'Maestro de materiales con fracción HTS','N','N') , (1999,'3/1/2016','es-MX','lbx Hdr Permit Detail',N'Detalle del Permiso','N','N') , (1999,'3/1/2016','es-MX','lbx Hdr Permit Header',N'Encabezado del Permiso','N','N') , (1999,'3/1/2016','es-MX','lbx Header',N'Encabezado','N','N') , (1999,'3/1/2016','es-MX','lbx Header Fees',N'Tarifas y cargos','N','N') , (1999,'3/1/2016','es-MX','lbx Health Permit Flag',N'Permiso de Salud (COFEPRIS)','N','N') , (1999,'9/6/2016','es-MX','lbx Hits Only',N'Mostrar solo los aciertos','N','N') , (1999,'9/6/2016','es-MX','lbx House BOL',N'Conocimiento de embarque hijo','N','N') , (1999,'9/6/2016','es-MX','lbx Hs In Progress',N'Progreso HsIn','N','N') , (1999,'9/6/2016','es-MX','lbx Hs In Progress Rate',N'Taza de Progreso HsIn','N','N') , (1999,'3/1/2016','es-MX','lbx HS Line Article303',N'Artículo 303 Fracción Arancelaria por Partida','N','N') , (1999,'3/1/2016','es-MX','lbx HS Line Item Fees',N'Derechos de la Fracción Arancelaria por Partida','N','N') , (1999,'9/6/2016','es-MX','lbx HS Num',N'Número HS*','N','N') , (1999,'9/6/2016','es-MX','lbx Hs Rationale',N'Razón HS','N','N') , (1999,'3/1/2016','es-MX','lbx HS Scrap Index',N'Fracción de Desecho (Scrap)','N','N') , (1999,'9/6/2016','es-MX','lbx Hs Section Notes',N'Notas de Seccion HS','N','N') , (1999,'9/6/2016','es-MX','lbx HSUOM Import Export',N'Importación/Exportación','N','N') , (1999,'9/6/2016','es-MX','lbx HSUOMHS Number',N'Número de sistema armonizado','N','N') , (1999,'3/1/2016','es-MX','lbx Hts Ad Valorem Rate',N'Fracción de Tasa','N','N') , (1999,'3/1/2016','es-MX','lbx Hts Addl Rpt Qty Uom',N'Fracción Adicional de Unidad de Medida','N','N') , (1999,'3/1/2016','es-MX','lbx Hts Addl Specific Rate',N'Fracción Adicional de Tasa Específica','N','N') , (1999,'3/1/2016','es-MX','lbx Hts Desc Source1',N'Desc.Fuente de Fracción','N','N') , (1999,'3/1/2016','es-MX','lbx Hts Desc1',N'Descripción de la Fracción','N','N') , (1999,'3/1/2016','es-MX','lbx Hts DOT Indicator',N'Fracción de Indicador Departamento de Transporte','N','N') , (1999,'3/1/2016','es-MX','lbx Hts FCC Indicator',N'Fracción de Indicador de la FCC','N','N') , (1999,'3/1/2016','es-MX','lbx Hts FDA Indicator',N'Fracción de Indicador de la FDA','N','N') , (1999,'3/1/2016','es-MX','lbx Hts Index Source1',N'Fuente del Índice de Fracción','N','N') , (1999,'3/1/2016','es-MX','lbx Hts Index1',N'Índice de fracción','N','N') , (1999,'3/1/2016','es-MX','lbx Hts Num Source1',N'No.fuente de fracción','N','N') , (1999,'3/1/2016','es-MX','lbx Hts Num1',N'No. Tarifa Americana','N','N') , (1999,'3/1/2016','es-MX','lbx Hts Num2 Source',N'Fuente de número de fracción 2','N','N') , (1999,'3/1/2016','es-MX','lbx Hts Num2 Source1',N'No. Fuente de Fracción','N','N') , (1999,'3/1/2016','es-MX','lbx Hts Num21',N'Número2 de Fracción','N','N') , (1999,'3/1/2016','es-MX','lbx Hts Rpt Qty Uom',N'Fracción de Unidad de Medida','N','N') , (1999,'3/1/2016','es-MX','lbx Hts Specific Rate',N'Fracción de Tasa Específica','N','N') , (1999,'3/1/2016','es-MX','lbx Hts Spi Code1',N'Código SPI 1','N','N') , (1999,'3/1/2016','es-MX','lbx Hts Spi Code2',N'Fracción de Código SPI 2','N','N') , (1999,'3/1/2016','es-MX','lbx Hts Txn Date1',N'Fecha Txn','N','N') , (1999,'3/1/2016','es-MX','lbx Hts Uom Conv Factor Source1',N'Fuente del Factor de Conversión de la UM del US HS','N','N') , (1999,'3/1/2016','es-MX','lbx Hts Uom Conv Factor1',N'Factor de conversión de unidad de fracción','N','N') , (1999,'9/6/2016','es-MX','lbx Identifier',N'Identificador','N','N') , (1999,'3/1/2016','es-MX','lbx Identifiers',N'Identificadores','N','N') , (1999,'3/1/2016','es-MX','lbx Identifiers By Document Codes',N'Identificadores de Código de Doc','N','N') , (1999,'3/1/2016','es-MX','lbx Identifiers By Tariff',N'Identificador de Tarifa','N','N') , (1999,'9/6/2016','es-MX','lbx Ignore Domestic Scrap',N'Ignorar Chatarra Domestica','N','N') , (1999,'9/6/2016','es-MX','lbx Import Country',N'Pais de Importación','N','N') , (1999,'9/6/2016','es-MX','lbx Import Country Code',N'Código de país de importación','N','N') , (1999,'9/6/2016','es-MX','lbx Import Date',N'Fecha de importación','N','N') , (1999,'3/1/2016','es-MX','lbx Import Export MOT',N'Importación/Exportación MdT','N','N') , (1999,'9/6/2016','es-MX','lbx Import Or Export',N'Importación o exportación','N','N') , (1999,'9/6/2016','es-MX','lbx Importer File Num',N'Número de expediente del importador/corredor','N','N') , (1999,'9/6/2016','es-MX','lbx Importing Carrier',N'Portador de la importación','N','N') , (1999,'9/6/2016','es-MX','lbx Imports',N'Importaciones','N','N') , (1999,'3/1/2016','es-MX','lbx In Out MOT',N'Entrada/Salida MdT','N','N') , (1999,'9/6/2016','es-MX','lbx Inactive',N'Inactivo','N','N') , (1999,'9/6/2016','es-MX','lbx Inbound',N'Portador entrante','N','N') , (1999,'9/6/2016','es-MX','lbx Include E Sig',N'Incluir Firma Electrónica?','N','N') , (1999,'3/1/2016','es-MX','lbx Include Non FTA',N'Incluir Non FTAs','N','N') , (1999,'9/6/2016','es-MX','lbx Indent Result Xml',N'Endentar resultado Xml','N','N') , (1999,'9/6/2016','es-MX','lbx Inland BOL',N'Conocimiento de embarque interior','N','N') , (1999,'9/6/2016','es-MX','lbx Inland Freight',N'Transporte interno','N','N') , (1999,'9/6/2016','es-MX','lbx Instructions1',N'Por favor, llene todas las casillas con un " * " y la siguiente información del producto','N','N') , (1999,'3/1/2016','es-MX','lbx Insurance',N'Aseguranza','N','N') , (1999,'3/1/2016','es-MX','lbx Int Consignee Company',N'Consignatario','N','N') , (1999,'3/1/2016','es-MX','lbx Interior Num',N'Número Interior','N','N') , (1999,'9/6/2016','es-MX','lbx Internal Errors',N'Errores internos','N','N') , (1999,'3/1/2016','es-MX','lbx Invoice',N'Factura','N','N') , (1999,'3/1/2016','es-MX','lbx Invoice Category',N'Tipo de Embarque','N','N') , (1999,'3/1/2016','es-MX','lbx Invoice Comments',N'Comentarios de Factura','N','N') , (1999,'3/1/2016','es-MX','lbx Invoice Date',N'Fecha de Factura','N','N') , (1999,'3/1/2016','es-MX','lbx Invoice Date Ped Hdr',N'Fecha de factura y pedimento','N','N') , (1999,'3/1/2016','es-MX','lbx Invoice Reference',N'Referencia de Factura','N','N') , (1999,'3/1/2016','es-MX','lbx Invoice Status',N'Estatus de la Factura','N','N') , (1999,'3/1/2016','es-MX','lbx Invoice Status Header',N'Estatus de la Factura','N','N') , (1999,'3/1/2016','es-MX','lbx Invoice Type',N'Tipo de factura','N','N') , (1999,'9/6/2016','es-MX','lbx Issue Date',N'Fecha de asunto','N','N') , (1999,'9/6/2016','es-MX','lbx IT Number',N'Número IT','N','N') , (1999,'9/6/2016','es-MX','lbx Item Id',N'ID del artículo','N','N') , (1999,'9/6/2016','es-MX','lbx Item Master Hts Values Section',N'Valores HTS del Maestro de Articulos','N','N') , (1999,'9/6/2016','es-MX','lbx Item Master Section',N'Maestro de Articulos','N','N') , (1999,'9/6/2016','es-MX','lbx Item Search',N'Búsqueda de articulo','N','N') , (1999,'9/6/2016','es-MX','lbx Language',N'Lenguaje','N','N') , (1999,'9/6/2016','es-MX','lbx Language Type',N'Tipo de lenguaje','N','N') , (1999,'9/6/2016','es-MX','lbx Last DTS Status',N'Estado','N','N') , (1999,'3/1/2016','es-MX','lbx Last Name',N'Apellido','N','N') , (1999,'3/1/2016','es-MX','lbx Last Name2',N'Segundo Apellido','N','N') , (1999,'3/1/2016','es-MX','lbx Last Name3',N'Segundo Apellido:','N','N') , (1999,'3/1/2016','es-MX','lbx Last Processed',N'Fecha/Hora de último proceso','N','N') , (1999,'3/1/2016','es-MX','lbx Last Screened Date',N'Última verificación','N','N') , (1999,'3/1/2016','es-MX','lbx Last Validated Date',N'Última fecha Validada','N','N') , (1999,'9/6/2016','es-MX','lbx Line Error Count',N'Lineas con Error','N','N') , (1999,'9/6/2016','es-MX','lbx Links',N'Enlaces','N','N') , (1999,'3/1/2016','es-MX','lbx Llegada MOT',N'Llegada MdT','N','N') , (1999,'9/6/2016','es-MX','lbx Load Request',N'Solicitudes','N','N') , (1999,'3/1/2016','es-MX','lbx Location Header',N'Ubicación','N','N') , (1999,'9/6/2016','es-MX','lbx Location Of Cargo',N'Ubicación de la carga','N','N') , (1999,'9/6/2016','es-MX','lbx Location Of File',N'Localización del Archivo','N','N') , (1999,'9/6/2016','es-MX','lbx Long Desc',N'Descripción Larga','N','N') , (1999,'9/6/2016','es-MX','lbx Lot Number',N'Número de lote','N','N') , (1999,'9/6/2016','es-MX','lbx M Bill Of Lading',N'Conocimiento de embarque madre','N','N') , (1999,'3/9/2016','es-MX','lbx Main Duty',N'Impuesto Principal a Terceros Paises','N','N') , (1999,'9/6/2016','es-MX','lbx Maintenance Log',N'Rigistro de Mantenimiento','N','N') , (1999,'3/1/2016','es-MX','lbx Mandatary',N'Mandatario','N','N') , (1999,'3/1/2016','es-MX','lbx Mandatory Company',N'Compañía Obligatoria','N','N') , (1999,'3/1/2016','es-MX','lbx Manifest Desc',N'Descripción','N','N') , (1999,'3/1/2016','es-MX','lbx Manifest Header',N'Manifiesto','N','N') , (1999,'3/1/2016','es-MX','lbx Manifest Qty',N'Cantidad','N','N') , (1999,'3/1/2016','es-MX','lbx Manifest Weight',N'Peso','N','N') , (1999,'3/1/2016','es-MX','lbx Manufacturer ID Source1',N'Fuente de ID Fabricante','N','N') , (1999,'3/1/2016','es-MX','lbx Manufacturer ID1',N'ID de Fabricante','N','N') , (1999,'3/1/2016','es-MX','lbx Marks Packages',N'Paquetes','N','N') , (1999,'9/6/2016','es-MX','lbx Mass Status',N'Estado','N','N') , (1999,'9/6/2016','es-MX','lbx Mass Update Set Field',N'Selecciona campo para actualizar en masa','N','N') , (1999,'9/6/2016','es-MX','lbx Master BOL',N'Conocimiento de embarque madre','N','N') , (1999,'9/6/2016','es-MX','lbx Match To Manifest',N'Coincidir para manifestarse','N','N') , (1999,'9/6/2016','es-MX','lbx Matching Transport ID',N'Coincidencia del ID de transporte','N','N') , (1999,'3/1/2016','es-MX','lbx Max Password Retries',N'Intentos máximos de contraseña','N','N') , (1999,'3/1/2016','es-MX','lbx Micellaneous',N'Otros','N','N') , (1999,'3/1/2016','es-MX','lbx Misc Header',N'Misceláneos','N','N') , (1999,'3/1/2016','es-MX','lbx Months Of Expiration',N'Meses de vencimiento','N','N') , (1999,'9/6/2016','es-MX','lbx MOT',N'Modo de Transporte','N','N') , (1999,'9/6/2016','es-MX','lbx MOT Detail',N'Detalles del Modo de Transporte','N','N') , (1999,'9/6/2016','es-MX','lbx Msg',N'Mensaje','N','N') , (1999,'3/1/2016','es-MX','lbx MX Customs Location',N'Aduana','N','N') , (1999,'3/1/2016','es-MX','lbx MXFTA Program Code',N'Código de Programa MX FTA','N','N') , (1999,'3/1/2016','es-MX','lbx MXSCAC Code',N'Código CAAT','N','N') , (1999,'9/6/2016','es-MX','lbx My Links',N'Enlaces Web Corporativos','N','N') , (1999,'3/1/2016','es-MX','lbx Name',N'Nombre del Certificado','N','N') , (1999,'9/6/2016','es-MX','lbx Name Address Option',N'Opciones de Búsqueda por Dirección','N','N') , (1999,'9/6/2016','es-MX','lbx Name Options',N'Opciones de Búsqueda por Nombre','N','N') , (1999,'3/1/2016','es-MX','lbx Named Query',N'Elegir comando','N','N') , (1999,'9/6/2016','es-MX','lbx New BO Ms',N'Número de nuevas listas de materiales agregados al sistema','N','N') , (1999,'9/8/2016','es-MX','lbx New IM Last Processed Countr',N'Último país procesado','N','N') , (1999,'9/8/2016','es-MX','lbx New IM Last Processed Country',N'Último país procesado','N','N') , (1999,'9/8/2016','es-MX','lbx New IM Origin Factor',N'Factor de origen','N','N') , (1999,'9/6/2016','es-MX','lbx New Manufacturer Id',N'Nuevo ID del fabricante','N','N') , (1999,'9/6/2016','es-MX','lbx New Transport ID',N'Nuevo ID de transporte','N','N') , (1999,'9/6/2016','es-MX','lbx New Validation Error',N'Nueva Error de Validación','N','N') , (1999,'9/6/2016','es-MX','lbx New Value',N'Asignar nuevo valor','N','N') , (1999,'9/6/2016','es-MX','lbx Non Cert',N'Carta No Certificada','N','N') , (1999,'3/1/2016','es-MX','lbx Not Calculated',N'Sin calcular','N','N') , (1999,'9/6/2016','es-MX','lbx Notes',N'Notas:','N','N') , (1999,'3/1/2016','es-MX','lbx Notice Comments',N'Comentarios','N','N') , (1999,'3/1/2016','es-MX','lbx Notice Comp Desc',N'Descripción','N','N') , (1999,'3/1/2016','es-MX','lbx Notice Date',N'Fecha','N','N') , (1999,'3/1/2016','es-MX','lbx Notice Detail',N'Detalle','N','N') , (1999,'3/1/2016','es-MX','lbx Notice From Company',N'Empresa que Transfiere','N','N') , (1999,'3/1/2016','es-MX','lbx Notice Header',N'Encabezado del Aviso de Traslado','N','N') , (1999,'3/1/2016','es-MX','lbx Notice Num',N'Folio del Aviso','N','N') , (1999,'3/1/2016','es-MX','lbx Notice Operation',N'Tipo de Operación','N','N') , (1999,'3/1/2016','es-MX','lbx Notice Responsible',N'Representate Legal','N','N') , (1999,'3/1/2016','es-MX','lbx Notice To Company',N'Empresa que Recibe','N','N') , (1999,'3/1/2016','es-MX','lbx Notice Type',N'Tipo de Traslado','N','N') , (1999,'3/1/2016','es-MX','lbx Notification Interval',N'Intervalo de Notificaciones (en minutos)','N','N') , (1999,'3/1/2016','es-MX','lbx Notification Position',N'Posición de Notificación','N','N') , (1999,'3/1/2016','es-MX','lbx Observations',N'Observaciones','N','N') , (1999,'9/6/2016','es-MX','lbx On Report',N'Notas en el reporte','N','N') , (1999,'9/6/2016','es-MX','lbx Open Query',N'Consulta Abierta','N','N') , (1999,'3/1/2016','es-MX','lbx Operation Type',N'Tipo de Operación','N','N') , (1999,'3/1/2016','es-MX','lbx Operations',N'Operaciones','N','N') , (1999,'3/1/2016','es-MX','lbx Order Num Receipt',N'Número de Orden de Recibo','N','N') , (1999,'3/1/2016','es-MX','lbx Other Methods Hdr',N'Otros Métodos','N','N') , (1999,'3/1/2016','es-MX','lbx Override',N'Anulación','N','N') , (1999,'3/1/2016','es-MX','lbx Override Date',N'Fecha Anulada','N','N') , (1999,'9/6/2016','es-MX','lbx Override Flag',N'Bandera de Sobrecarga','N','N') , (1999,'9/6/2016','es-MX','lbx Override Header',N'Invalidar Empresas','N','N') , (1999,'3/1/2016','es-MX','lbx Packaging',N'Embalaje','N','N') , (1999,'3/1/2016','es-MX','lbx Packing',N'Embalaje','N','N') , (1999,'3/1/2016','es-MX','lbx Packing List',N'Lista de Empaque','N','N') , (1999,'3/1/2016','es-MX','lbx Page',N'Página','N','N') , (1999,'3/1/2016','es-MX','lbx Part Category Code',N'Tipo de Producto','N','N') , (1999,'3/1/2016','es-MX','lbx Parties',N'Partícipes','N','N') , (1999,'3/1/2016','es-MX','lbx Password',N'Contraseña','N','N') , (1999,'3/1/2016','es-MX','lbx Password Recalculate',N'Contraseña para re calcular aprobación','N','N') , (1999,'3/1/2016','es-MX','lbx Password To Cancel Submaquila Balances',N'Contraseña para cancelación de balances:','N','N') , (1999,'3/1/2016','es-MX','lbx Payment Date',N'Fecha de Pago','N','N') , (1999,'3/1/2016','es-MX','lbx Payment Documents',N'Documentos de Pago','N','N') , (1999,'3/1/2016','es-MX','lbx Payment Types By Document Codes',N'Tipo de Pago por código de Documento','N','N') , (1999,'9/6/2016','es-MX','lbx Pea Add',N'Agregar','N','N') , (1999,'9/6/2016','es-MX','lbx Pea Search',N'Búsqueda de PEA','N','N') , (1999,'9/6/2016','es-MX','lbx Pea Select',N'Seleccionar PEA','N','N') , (1999,'3/1/2016','es-MX','lbx Ped Code',N'Código de Pedimento','N','N') , (1999,'3/1/2016','es-MX','lbx Ped Dates',N'Fecha Pedimento','N','N') , (1999,'3/1/2016','es-MX','lbx Ped Detail',N'Tipo de Pedimento','N','N') , (1999,'3/1/2016','es-MX','lbx Pedimento Authorization Code',N'Código De Autorizacion','N','N') , (1999,'3/1/2016','es-MX','lbx Pedimento Detail',N'Detalles','N','N') , (1999,'3/1/2016','es-MX','lbx Pedimento Header',N'Encabezado','N','N') , (1999,'3/1/2016','es-MX','lbx Pedimento Number',N'Número de Pedimento:','N','N') , (1999,'3/1/2016','es-MX','lbx Pedimento/Notice Num',N'Número de Pedimento/Aviso','N','N') , (1999,'3/1/2016','es-MX','lbx Perform Search',N'Buscar','N','N') , (1999,'3/1/2016','es-MX','lbx Period',N'Periodo','N','N') , (1999,'3/1/2016','es-MX','lbx Permit ID',N'Tipo de Permiso','N','N') , (1999,'3/1/2016','es-MX','lbx Permit Type',N'Tipo de Regulación','N','N') , (1999,'3/1/2016','es-MX','lbx Phone Number',N'Número Telefónico','N','N') , (1999,'9/6/2016','es-MX','lbx Pick FT As',N'.','N','N') , (1999,'9/6/2016','es-MX','lbx Port',N'Puerto','N','N') , (1999,'3/1/2016','es-MX','lbx Port Code',N'Puerto','N','N') , (1999,'9/6/2016','es-MX','lbx Port Of Origin',N'Del puerto de / Aeropuerto de origen','N','N') , (1999,'3/1/2016','es-MX','lbx Prevalidator',N'Pre-validador','N','N') , (1999,'9/6/2016','es-MX','lbx Previous Notes',N'Notas Previas','N','N') , (1999,'9/6/2016','es-MX','lbx Print Last',N'Imprimir las ultimas','N','N') , (1999,'9/6/2016','es-MX','lbx Process Release Number',N'Proceso de liberación de número','N','N') , (1999,'9/6/2016','es-MX','lbx Process Web Server',N'Servidor de procesos web','N','N') , (1999,'3/1/2016','es-MX','lbx Product Code Qualifier1',N'Clasificado 1','N','N') , (1999,'3/1/2016','es-MX','lbx Product Code Qualifier2',N'Clasificado 2','N','N') , (1999,'3/1/2016','es-MX','lbx Product Code Qualifier3',N'Clasificado 3','N','N') , (1999,'9/6/2016','es-MX','lbx Product Color',N'Color del Producto :','N','N') , (1999,'3/1/2016','es-MX','lbx Product Data',N'Información del Producto','N','N') , (1999,'3/1/2016','es-MX','lbx Product Desc Source',N'Fuente de Desc.del Producto','N','N') , (1999,'3/1/2016','es-MX','lbx Product Entity',N'Entidad del producto','N','N') , (1999,'9/6/2016','es-MX','lbx Product Group',N'Grupo del Producto','N','N') , (1999,'3/1/2016','es-MX','lbx Product Individual',N'Producto Individual','N','N') , (1999,'3/1/2016','es-MX','lbx Product Num',N'Número de Producto','N','N') , (1999,'9/6/2016','es-MX','lbx Product Search',N'Buscar Productos','N','N') , (1999,'9/6/2016','es-MX','lbx Product State',N'Estado del Producto:','N','N') , (1999,'3/1/2016','es-MX','lbx Program Codes',N'Códigos de Programa','N','N') , (1999,'3/1/2016','es-MX','lbx Program Type',N'Tipo de Programa Origen','N','N') , (1999,'3/1/2016','es-MX','lbx Quantity',N'Cantidad','N','N') , (1999,'9/6/2016','es-MX','lbx R Weditcategory',N'Categoria de la búsqueda','N','N') , (1999,'9/6/2016','es-MX','lbx R Weditdescription',N'Descripción de la Búsqueda','N','N') , (1999,'9/6/2016','es-MX','lbx R Weditedit',N'Permitir que esta búsqueda sea editable?','N','N') , (1999,'9/6/2016','es-MX','lbx R Weditinfo',N'Guardar estos parámetros editados en una nueva búsqueda?','N','N') , (1999,'9/6/2016','es-MX','lbx R Weditname',N'Nombre de la búsqueda','N','N') , (1999,'9/6/2016','es-MX','lbx R Weditshare',N'Compartir esta búsqueda','N','N') , (1999,'9/6/2016','es-MX','lbx R Wsearchcategory',N'Categoría de Búsqueda :','N','N') , (1999,'9/6/2016','es-MX','lbx R Wsearchdescription',N'Descripción de la Búsqueda','N','N') , (1999,'9/6/2016','es-MX','lbx R Wsearchedit',N'Permitir que esta Búsqueda sea editable?','N','N') , (1999,'9/6/2016','es-MX','lbx R Wsearchinfo',N'Guardar estos parámetros de búsqueda en una nueva búsqueda?','N','N') , (1999,'9/6/2016','es-MX','lbx R Wsearchname',N'Nombre de Búsqueda :','N','N') , (1999,'9/6/2016','es-MX','lbx R Wsearchshare',N'Compartir esta Búsqueda?','N','N') , (1999,'3/1/2016','es-MX','lbx R8 Tariff Num',N'Número de Fracción','N','N') , (1999,'3/1/2016','es-MX','lbx RCO21 Source',N'Fuente RCO 21','N','N') , (1999,'3/1/2016','es-MX','lbx RCO21 Source1',N'Fuente RCO21','N','N') , (1999,'3/1/2016','es-MX','lbx RCO22 Source',N'Fuente RCO 22','N','N') , (1999,'3/1/2016','es-MX','lbx RCO22 Source1',N'Fuente RCO22','N','N') , (1999,'3/1/2016','es-MX','lbx RCO23 Source',N'Fuente RCO 23','N','N') , (1999,'3/1/2016','es-MX','lbx RCO23 Source1',N'Fuente RCO23','N','N') , (1999,'3/1/2016','es-MX','lbx Reason',N'Razón de Cancelación','N','N') , (1999,'9/6/2016','es-MX','lbx Rec From Date',N'Fecha de Inicio:','N','N') , (1999,'9/6/2016','es-MX','lbx Rec Status',N'Estatus','N','N') , (1999,'9/6/2016','es-MX','lbx Rec To Date',N'Fecha de Fin:','N','N') , (1999,'9/6/2016','es-MX','lbx Receipt Type',N'Tipo de Recibo','N','N') , (1999,'9/6/2016','es-MX','lbx Records',N'Mostrar Registros','N','N') , (1999,'3/1/2016','es-MX','lbx Recs Per Pg',N'Registros por pagina','N','N') , (1999,'3/1/2016','es-MX','lbx Rectificaciones Fees',N'Cargos de Rectificaciones','N','N') , (1999,'9/6/2016','es-MX','lbx Reference Num',N'Número de referencia','N','N') , (1999,'3/1/2016','es-MX','lbx References Hdr',N'Referencias','N','N') , (1999,'9/6/2016','es-MX','lbx Reg Eff Date',N'Fecha que se Efectuo','N','N') , (1999,'9/6/2016','es-MX','lbx Reg Entity Remarks',N'Comentarios de Entidad','N','N') , (1999,'9/6/2016','es-MX','lbx Reg Exp Date',N'Fecha que Expiran','N','N') , (1999,'9/6/2016','es-MX','lbx Reg List ID',N'Lista de registro','N','N') , (1999,'9/6/2016','es-MX','lbx Reg Unique ID',N'ID Unico','N','N') , (1999,'9/6/2016','es-MX','lbx Regulation',N'Regulación','N','N') , (1999,'3/1/2016','es-MX','lbx Relation Num',N'Número de Relación','N','N') , (1999,'3/1/2016','es-MX','lbx Relationship Flag Source1',N'Fuente de bandera de Relación','N','N') , (1999,'3/1/2016','es-MX','lbx Relationship Flag1',N'Bandera de relación','N','N') , (1999,'3/1/2016','es-MX','lbx Remesa Num',N'Número de Remesa','N','N') , (1999,'3/1/2016','es-MX','lbx Rep ID',N'Representante Legal','N','N') , (1999,'3/1/2016','es-MX','lbx Report Format',N'Formato del Informe','N','N') , (1999,'9/6/2016','es-MX','lbx Report Options',N'Opción de Reporte','N','N') , (1999,'9/6/2016','es-MX','lbx Report Period',N'Período del reporte','N','N') , (1999,'3/1/2016','es-MX','lbx Report Title',N'Titulo del Reporte:','N','N') , (1999,'3/1/2016','es-MX','lbx Report Type',N'Tipo de Reporte','N','N') , (1999,'9/6/2016','es-MX','lbx Reporting Level',N'Nivel de Reporte','N','N') , (1999,'3/1/2016','es-MX','lbx Representative',N'Representante','N','N') , (1999,'9/6/2016','es-MX','lbx Req Status',N'Estado de la Solicitud','N','N') , (1999,'9/6/2016','es-MX','lbx Req Type',N'Tipo de Solicitud','N','N') , (1999,'9/6/2016','es-MX','lbx Request Date',N'*Fecha del Pedido:','N','N') , (1999,'9/6/2016','es-MX','lbx Request Dates',N'Fechas de Solicitud','N','N') , (1999,'9/6/2016','es-MX','lbx Request Errors',N'Errores de solicitud','N','N') , (1999,'9/6/2016','es-MX','lbx Request Name',N'Nombre de solicitud','N','N') , (1999,'9/6/2016','es-MX','lbx Request Release Number',N'Solicitud de liberación de número','N','N') , (1999,'9/6/2016','es-MX','lbx Request Warnings',N'Advertencias de solicitud','N','N') , (1999,'9/6/2016','es-MX','lbx Request Web Server',N'Solicitud de servidor web','N','N') , (1999,'9/6/2016','es-MX','lbx Requestor Email',N'*E-mail:','N','N') , (1999,'9/6/2016','es-MX','lbx Requestor Name',N'*Nombre:','N','N') , (1999,'3/1/2016','es-MX','lbx Required Entry',N'* Campo Obligatorio','N','N') , (1999,'9/6/2016','es-MX','lbx Response GUID',N'GUID de respuesta','N','N') , (1999,'9/6/2016','es-MX','lbx Result',N'Resultado','N','N') , (1999,'9/6/2016','es-MX','lbx Results Header',N'Resultado de Busquedas','N','N') , (1999,'9/6/2016','es-MX','lbx Return Notes',N'Notas de retorno','N','N') , (1999,'9/6/2016','es-MX','lbx Return Period',N'Periodo de regreso','N','N') , (1999,'9/6/2016','es-MX','lbx ReturnPeriod',N'Periodo de regreso','N','N') , (1999,'3/1/2016','es-MX','lbx Returns',N'Retornos','N','N') , (1999,'9/6/2016','es-MX','lbx Reward',N'Recompensa','N','N') , (1999,'3/1/2016','es-MX','lbx RPO11 Source',N'Fuente RPO 11','N','N') , (1999,'3/1/2016','es-MX','lbx RPO12 Source',N'Fuente RPO 12','N','N') , (1999,'3/1/2016','es-MX','lbx RPO13 Source',N'Fuente RPO 13','N','N') , (1999,'3/1/2016','es-MX','lbx Rpt Qty Uom Source1',N'Fuente.Reporte Unidad de Medida','N','N') , (1999,'3/1/2016','es-MX','lbx Rpt Qty Uom1',N'Reporte de Unidad de medida','N','N') , (1999,'9/6/2016','es-MX','lbx Rule Category',N'Categoría del Tratado','N','N') , (1999,'9/6/2016','es-MX','lbx Rule Eff Date',N'Fecha Efectiva','N','N') , (1999,'9/6/2016','es-MX','lbx Rule Enabled',N'Regla Habilitada','N','N') , (1999,'9/6/2016','es-MX','lbx Rule Exception',N'Regla Excepción','N','N') , (1999,'9/6/2016','es-MX','lbx Rule Exp Date',N'Fecha de Expiración','N','N') , (1999,'9/6/2016','es-MX','lbx Rule List',N'Lista de Reglas','N','N') , (1999,'9/6/2016','es-MX','lbx Rule Seq',N'Secuencia de Regla','N','N') , (1999,'3/1/2016','es-MX','lbx Rule8HTS Num',N'Tarifa para Regla 8va','N','N') , (1999,'3/1/2016','es-MX','lbx Rules',N'Reglas','N','N') , (1999,'9/6/2016','es-MX','lbx Ruling Notes',N'Notas de Regla','N','N') , (1999,'3/1/2016','es-MX','lbx Run Query Annex31',N'Correr Consulta','N','N') , (1999,'9/6/2016','es-MX','lbx RW Title Void',N'Anular','N','N') , (1999,'3/1/2016','es-MX','lbx SAAI Companies',N'Compañías SAAI','N','N') , (1999,'3/1/2016','es-MX','lbx Saai Company',N'Compañías SAAI','N','N') , (1999,'3/1/2016','es-MX','lbx Saai INPC Fee Factor',N'Factores de Pago INPC','N','N') , (1999,'3/1/2016','es-MX','lbx Saai Program Codes',N'Códigos de Programa','N','N') , (1999,'9/6/2016','es-MX','lbx Sanctions Program',N'Sección de Programa','N','N') , (1999,'3/1/2016','es-MX','lbx Save Header',N'Guardar Encabezado','N','N') , (1999,'3/1/2016','es-MX','lbx SCAC Code',N'Código de SCAC','N','N') , (1999,'3/1/2016','es-MX','lbx Scrap Desc',N'Descripción del Desecho (Scrap)','N','N') , (1999,'3/1/2016','es-MX','lbx Scrap Invoices',N'Facturas','N','N') , (1999,'9/6/2016','es-MX','lbx Scrap Type',N'Tipo de Chatarra','N','N') , (1999,'3/1/2016','es-MX','lbx Scrap Value',N'Valor del Desecho (Scrap)','N','N') , (1999,'9/6/2016','es-MX','lbx Scrapped Qty',N'Cantidad desechada','N','N') , (1999,'9/6/2016','es-MX','lbx Screen',N'Pantalla','N','N') , (1999,'3/1/2016','es-MX','lbx Sealed By',N'Sellado por','N','N') , (1999,'9/6/2016','es-MX','lbx Search Criteria',N'Criterio de Busqueda','N','N') , (1999,'3/1/2016','es-MX','lbx Search Name',N'Capítulo','N','N') , (1999,'9/6/2016','es-MX','lbx Search Name Option',N'Opciones de Búsqueda por Nombre','N','N') , (1999,'9/6/2016','es-MX','lbx Search Reference',N'Buscar Numero de Referencia','N','N') , (1999,'9/6/2016','es-MX','lbx Search Reference Label',N'Buscar Numero de Referencia','N','N') , (1999,'9/8/2015','es-MX','lbx Search Shipment',N'Encontrar Declaración','N','N') , (1999,'9/6/2016','es-MX','lbx Search_No1',N'Buscar','N','N') , (1999,'9/6/2016','es-MX','lbx Search_No3',N'Buscar','N','N') , (1999,'9/6/2016','es-MX','lbx Select All',N'Seleccionar todos','N','N') , (1999,'9/6/2016','es-MX','lbx Select Date',N'Seleccionar Fecha','N','N') , (1999,'9/6/2016','es-MX','lbx Select Email',N'Seleccionar Plantilla de Correo','N','N') , (1999,'3/1/2016','es-MX','lbx Select Invoiceor Country',N'Seleccione','N','N') , (1999,'9/6/2016','es-MX','lbx Select Partner',N'Seleccionar Partner','N','N') , (1999,'9/6/2016','es-MX','lbx Select Report',N'Seleccionar reporte','N','N') , (1999,'3/1/2016','es-MX','lbx Select Staging By',N'Seleccionar Transacción por :','N','N') , (1999,'9/6/2016','es-MX','lbx Select Start Date',N'Empezando En:','N','N') , (1999,'9/6/2016','es-MX','lbx Select Time Frame',N'Marco de Tiempo','N','N') , (1999,'9/6/2016','es-MX','lbx Select Transaction To Update',N'Seleccione transacción a actualizar','N','N') , (1999,'9/6/2016','es-MX','lbx Select Web Services',N'Seleccionar fuente/tipo de servicio web','N','N') , (1999,'3/1/2016','es-MX','lbx Semestre',N'Semestre','N','N') , (1999,'9/6/2016','es-MX','lbx Send Email',N'Enviar correo de generación de reporte completa','N','N') , (1999,'3/1/2016','es-MX','lbx Ship Date',N'Fecha de Facturación','N','N') , (1999,'9/6/2016','es-MX','lbx Ship To',N'Enviar a','N','N') , (1999,'3/1/2016','es-MX','lbx Shipment Parties',N'Partes relacionadas en el embarque','N','N') , (1999,'9/6/2016','es-MX','lbx Shipment Provider',N'Proveedor de envío','N','N') , (1999,'9/6/2016','es-MX','lbx Show No Notes',N'No incluir Notas en el reporte','N','N') , (1999,'9/6/2016','es-MX','lbx Show Notes On Report',N'Mostrar todas las Notas en el reporte','N','N') , (1999,'3/1/2016','es-MX','lbx Show Pedimento Balances',N'Mostrar Pedimentos con Balances ordenanos por fecha de vencimietnto','N','N') , (1999,'3/1/2016','es-MX','lbx Show Permit Balances',N'Se muestran balances de pedimentos:','N','N') , (1999,'3/1/2016','es-MX','lbx Show Permit Discharges',N'Se muestran los descargos:','N','N') , (1999,'9/6/2016','es-MX','lbx Show Product Num Drop Down',N'Mostrar productos en lista','N','N') , (1999,'9/6/2016','es-MX','lbx Show SQL Long Description',N'Detalles de la Consulta','N','N') , (1999,'3/1/2016','es-MX','lbx Show Submaquila Balances',N'Balances de Submanufactura que se muestran:','N','N') , (1999,'3/1/2016','es-MX','lbx Show Submaquila Returns',N'Mostrar retornos de Submanufactura','N','N') , (1999,'3/1/2016','es-MX','lbx Show Unprinted',N'Mostrar Sin Imprimir','N','N') , (1999,'9/6/2016','es-MX','lbx Signature Date',N'Fecha de la Firma','N','N') , (1999,'9/6/2016','es-MX','lbx Signature Id',N'Información de la Firma','N','N') , (1999,'3/1/2016','es-MX','lbx Signatures',N'Firmas','N','N') , (1999,'9/6/2016','es-MX','lbx Single FT As',N'Tratados de Libre Comercio seleccionados','N','N') , (1999,'9/6/2016','es-MX','lbx Solicitations',N'Solicitudes','N','N') , (1999,'9/6/2016','es-MX','lbx Sounds Like',N'Opciones de Búsqueda por Sonido','N','N') , (1999,'9/6/2016','es-MX','lbx Source',N'Fuente','N','N') , (1999,'9/6/2016','es-MX','lbx Source Columns',N'Columnas Fuente','N','N') , (1999,'9/6/2016','es-MX','lbx Source Location',N'Localización de la Fuente de los productos','N','N') , (1999,'3/1/2016','es-MX','lbx Source System',N'Fuente','N','N') , (1999,'9/6/2016','es-MX','lbx Special Notes',N'Notas especiales','N','N') , (1999,'3/1/2016','es-MX','lbx Specific Rate Source1',N'Fuente de Índice Específico','N','N') , (1999,'3/1/2016','es-MX','lbx Specific Rate1',N'Tarifa específica','N','N') , (1999,'3/1/2016','es-MX','lbx Spi Code1 Source1',N'Fuente de Código1 Spi','N','N') , (1999,'3/1/2016','es-MX','lbx Spi Code11',N'Código Spi 1','N','N') , (1999,'3/1/2016','es-MX','lbx Spi Code2 Source1',N'Fuente de Código2 Spi','N','N') , (1999,'3/1/2016','es-MX','lbx Spi Code21',N'Código Spi 2','N','N') , (1999,'9/6/2016','es-MX','lbx Staging Production',N'Fuente de transacciones','N','N') , (1999,'9/6/2016','es-MX','lbx Standard Inputs',N'Entradas estándares','N','N') , (1999,'9/6/2016','es-MX','lbx Standard Order',N'Orden Estandard','N','N') , (1999,'9/6/2016','es-MX','lbx Start Date',N'Fecha de Inicio','N','N') , (1999,'9/6/2016','es-MX','lbx State',N'Estado/Provincia','N','N') , (1999,'9/6/2016','es-MX','lbx Status',N'Estado:','N','N') , (1999,'3/1/2016','es-MX','lbx Status Code Source1',N'Código de Fuente de Estatus','N','N') , (1999,'3/1/2016','es-MX','lbx Status Code1',N'Código de Estatus','N','N') , (1999,'9/6/2016','es-MX','lbx Status I',N'Estatus','N','N') , (1999,'9/6/2016','es-MX','lbx Status Prompt',N'Estatus','N','N') , (1999,'3/1/2016','es-MX','lbx Street',N'Calle','N','N') , (1999,'3/1/2016','es-MX','lbx Stylesheet',N'Tema','N','N') , (1999,'3/1/2016','es-MX','lbx Sub Maquila Customs Location',N'Ubicación de la Aduana','N','N') , (1999,'3/1/2016','es-MX','lbx Sub Maquila Location Header',N'Aduana','N','N') , (1999,'9/8/2016','es-MX','lbx Submitted Documents',N'Documentos Subidos Previamente','N','N') , (1999,'9/6/2016','es-MX','lbx Summary Level',N'Nivel del Resumen','N','N') , (1999,'9/6/2016','es-MX','lbx Supplier',N'Seleccionar Proveedor','N','N') , (1999,'9/6/2016','es-MX','lbx System Messages',N'Mensajes del sistema','N','N') , (1999,'4/7/2016','es-MX','lbx Tab1',N'Todos','N','N') , (1999,'3/1/2016','es-MX','lbx Table',N'Elegir Fuente','N','N') , (1999,'9/6/2016','es-MX','lbx Tariff Analyzer',N'Analizador de Tarifas','N','N') , (1999,'9/6/2016','es-MX','lbx Task Manager',N'Administrador de Tareas','N','N') , (1999,'3/1/2016','es-MX','lbx Temp Hdr',N'Temporal','N','N') , (1999,'9/6/2016','es-MX','lbx Template Name',N'Nombre de la plantilla','N','N') , (1999,'9/6/2016','es-MX','lbx Thru',N'Hasta','N','N') , (1999,'3/1/2016','es-MX','lbx Timezone',N'Zona Horaria','N','N') , (1999,'3/1/2016','es-MX','lbx Title',N'Título','N','N') , (1999,'3/1/2016','es-MX','lbx To',N'Destino','N','N') , (1999,'9/6/2016','es-MX','lbx To Company',N'Hasta Compañia','N','N') , (1999,'9/6/2016','es-MX','lbx To Date',N'Hasta','N','N') , (1999,'3/1/2016','es-MX','lbx To Exp',N'Destino','N','N') , (1999,'3/1/2016','es-MX','lbx To Imp',N'Destino','N','N') , (1999,'9/6/2016','es-MX','lbx Total Error Count',N'Total de Errores en la Entrada','N','N') , (1999,'3/1/2016','es-MX','lbx Totals',N'Totales','N','N') , (1999,'3/1/2016','es-MX','lbx Trailer Lic Num',N'Placas del remolque','N','N') , (1999,'3/1/2016','es-MX','lbx Transformers',N'Empresa de Submanufactura','N','N') , (1999,'9/6/2016','es-MX','lbx Transmit',N'Transmitir','N','N') , (1999,'3/1/2016','es-MX','lbx Transport ID',N'ID de Transporte','N','N') , (1999,'3/1/2016','es-MX','lbx Transportation',N'Transportación','N','N') , (1999,'4/7/2016','es-MX','lbx Transportation Cost',N'Costo de Transportación','N','N') , (1999,'3/1/2016','es-MX','lbx Truck Header',N'Transporte','N','N') , (1999,'3/1/2016','es-MX','lbx Truck Lic Num',N'Placas del Tractor','N','N') , (1999,'9/6/2016','es-MX','lbx Truck Num',N'Número de camión','N','N') , (1999,'9/6/2016','es-MX','lbx Txn Start Date',N'Fecha Inicial','N','N') , (1999,'9/6/2016','es-MX','lbx Txn Threshold',N'Desacuerdo de la Cantidad de la Transación','N','N') , (1999,'9/6/2016','es-MX','lbx Txn Type',N'Tipo de transacción','N','N') , (1999,'9/6/2016','es-MX','lbx Type',N'Tipo de Transacción','N','N') , (1999,'3/1/2016','es-MX','lbx UOM',N'Unidad de Medida','N','N') , (1999,'9/6/2016','es-MX','lbx UOM1',N'Unidad de medida 1','N','N') , (1999,'9/6/2016','es-MX','lbx UOM2',N'Unidad de medida 2','N','N') , (1999,'9/6/2016','es-MX','lbx UOM3',N'Unidad de medida 3','N','N') , (1999,'9/6/2016','es-MX','lbx Update',N'Actualizar','N','N') , (1999,'3/1/2016','es-MX','lbx Upload COVE File',N'Archivo de Resultado Cove','N','N') , (1999,'9/6/2016','es-MX','lbx Upload Item Data Info',N'Suba y Edite una Hoja de Calculo con los valores dando clic en "Seleccionar Archivo" y seleccionando la hoja de calculo deseada','N','N') , (1999,'3/1/2016','es-MX','lbx Uploaded Files',N'Archivo(s) Cargados','N','N') , (1999,'9/6/2016','es-MX','lbx US Port',N'Puerto de desenmarque de Estados Unidos','N','N') , (1999,'3/1/2016','es-MX','lbx User',N'Último proceso ejecutado por','N','N') , (1999,'3/1/2016','es-MX','lbx User Defined1',N'Usuario Definido 1','N','N') , (1999,'3/1/2016','es-MX','lbx User Defined2',N'Usuario Definido 2','N','N') , (1999,'3/1/2016','es-MX','lbx User Defined3',N'Usuario Definido 3','N','N') , (1999,'9/6/2016','es-MX','lbx User GUID',N'GUID de usuario','N','N') , (1999,'3/1/2016','es-MX','lbx User Login',N'Nombre de Usuario','N','N') , (1999,'9/6/2016','es-MX','lbx User Name',N'Nombre de Usuario','N','N') , (1999,'3/1/2016','es-MX','lbx Val Merch Desc1',N'Descripción de la Mercancia','N','N') , (1999,'3/1/2016','es-MX','lbx Val Merch Desc2',N'Descripción de la Mercancia','N','N') , (1999,'3/1/2016','es-MX','lbx Val Merch Desc3',N'Descripción de la Mercancia','N','N') , (1999,'3/1/2016','es-MX','lbx Val Merch Desc4',N'Descripción de la Mercancia','N','N') , (1999,'3/1/2016','es-MX','lbx Val Merch Desc5',N'Descripción de Mercancia','N','N') , (1999,'3/1/2016','es-MX','lbx Val Merch Desc6',N'Descripción de Mercancia','N','N') , (1999,'3/1/2016','es-MX','lbx Val Rep Message',N'Última Actualización','N','N') , (1999,'9/6/2016','es-MX','lbx Valid UOM1',N'Unidad de medida válida 1','N','N') , (1999,'9/6/2016','es-MX','lbx Validation Group',N'Grupo de validación','N','N') , (1999,'3/1/2016','es-MX','lbx Validation Signature',N'Validación','N','N') , (1999,'3/1/2016','es-MX','lbx Validation Status',N'Estatus de la validación','N','N') , (1999,'9/6/2016','es-MX','lbx Validation Type',N'Tipo de validación','N','N') , (1999,'4/7/2016','es-MX','lbx Value Of Item',N'Valor del item','N','N') , (1999,'3/1/2016','es-MX','lbx Value Source1',N'Fuente de Valor','N','N') , (1999,'3/1/2016','es-MX','lbx Value1',N'Valor 1','N','N') , (1999,'3/1/2016','es-MX','lbx Value2 Source1',N'Fuente de Valor 2','N','N') , (1999,'3/1/2016','es-MX','lbx Value21',N'Valor 2','N','N') , (1999,'9/6/2016','es-MX','lbx Vehicle License Plate Num',N'Matrícula del vehículo','N','N') , (1999,'9/6/2016','es-MX','lbx Vessel GRT',N'Recipiente GRT','N','N') , (1999,'9/6/2016','es-MX','lbx Vessel Name',N'Nombre del Buque/Aerolínea','N','N') , (1999,'9/6/2016','es-MX','lbx Vessel Owner',N'Dueño de Recipiente','N','N') , (1999,'9/6/2016','es-MX','lbx Vessel Tonnage',N'Tonelaje de recipiente','N','N') , (1999,'9/6/2016','es-MX','lbx Vessel Type',N'Tipo de Recipiente','N','N') , (1999,'3/1/2016','es-MX','lbx View',N'Vista','N','N') , (1999,'9/6/2016','es-MX','lbx Void Explanation',N'Explicación de la Anulación','N','N') , (1999,'9/6/2016','es-MX','lbx Void Reason Code',N'Razón de Cancelación','N','N') , (1999,'3/1/2016','es-MX','lbx Warning',N'Mensaje','N','N') , (1999,'3/1/2016','es-MX','lbx Warnings In Exports',N'Advertencias de Exportación','N','N') , (1999,'3/1/2016','es-MX','lbx Warnings In Exports Msg',N'Pedimentos sin fecha de pago, es posible que algunos pedimento no estén incluidos si la fecha de pago es mayor que el corte.','N','N') , (1999,'9/6/2016','es-MX','lbx WCO Notes',N'Notas de la Organización Mundial de Aduanas','N','N') , (1999,'9/6/2016','es-MX','lbx Web Service Source',N'Fuente de servicio web','N','N') , (1999,'9/6/2016','es-MX','lbx Web Service Type',N'Tipo de servicio web','N','N') , (1999,'9/6/2016','es-MX','lbx Web Service URL',N'URL Servico Web','N','N') , (1999,'9/6/2016','es-MX','lbx Website',N'Pagina Web','N','N') , (1999,'9/6/2016','es-MX','lbx Weekly Estimate Tracker',N'Seguidor del Estimado Semanal','N','N') , (1999,'9/6/2016','es-MX','lbx Welcome Message',N'1) Buscar Clasificación para ver si el producto ya se encuentra disponible in la base de datos de Clasificación global.','N','N') , (1999,'9/6/2016','es-MX','lbx Zone Type',N'tipo de zona','N','N') , (1999,'3/1/2016','es-MX','lbx__tab_tc Catalogs_tabpnl Pgm Codes',N'Códigos de Programa','N','N') , (1999,'3/1/2016','es-MX','lbx__tab_tcCatalogs_tabpnlPgmCodes',N'Códigos de Programa','N','N') , (1999,'3/1/2016','es-MX','lbx__tab_tcCatalogs_tabpnlSaaiCompany',N'Compañías SAAI','N','N') , (1999,'3/1/2016','es-MX','lbx__tab_tcMain_tabpnlImports',N'Importaciones','N','N') , (1999,'3/1/2016','es-MX','lbx_Bill Of Lading_Bill Of Lading',N'Guía de Carga','N','N') , (1999,'3/1/2016','es-MX','lbx_Bill Of Lading_Bill Of Lading Type',N'Tipo de la Guía de Carga','N','N') , (1999,'3/1/2016','es-MX','lbx_BillOfLading_BillOfLading',N'Guía de Carga','N','N') , (1999,'3/1/2016','es-MX','lbx_BillOfLading_BillOfLadingGUID',N'Número de línea','N','N') , (1999,'3/1/2016','es-MX','lbx_BillOfLading_BillOfLadingType',N'Tipo de la Guía de Carga','N','N') , (1999,'3/1/2016','es-MX','lbx_BillOfLading_HouseBillOfLading',N'BOL interno','N','N') , (1999,'3/1/2016','es-MX','lbx_BillOfLading_MasterBillOfLading',N'BOL maestro','N','N') , (1999,'3/1/2016','es-MX','lbx_Compensations_Duty Amount Used',N'Cantidad del Impuesto Usado','N','N') , (1999,'3/1/2016','es-MX','lbx_Compensations_Duty Type',N'Tipo de Impuesto','N','N') , (1999,'3/1/2016','es-MX','lbx_Compensations_DutyAmountUsed',N'Cantidad del Impuesto Usado','N','N') , (1999,'3/1/2016','es-MX','lbx_Compensations_DutyType',N'Tipo de Impuesto','N','N') , (1999,'3/1/2016','es-MX','lbx_Compensations_Original Pedimento Nu',N'Número de Pedimento Original','N','N') , (1999,'3/1/2016','es-MX','lbx_Compensations_OriginalPedimentoNu',N'Número de Pedimento Original','N','N') , (1999,'3/1/2016','es-MX','lbx_Compensations_R1 Or Desist Pedimento Num',N'Número de Pedimento R1 o Desistimiento','N','N') , (1999,'3/1/2016','es-MX','lbx_Compensations_R1OrDesistPedimentoNum',N'Número de Pedimento R1 o Desistimiento','N','N') , (1999,'3/1/2016','es-MX','lbx_Compliments_Identification1',N'Identificación 1','N','N') , (1999,'3/1/2016','es-MX','lbx_Compliments_Identification2',N'Identificación 2','N','N') , (1999,'3/1/2016','es-MX','lbx_Compliments_Identification3',N'Identificación 3','N','N') , (1999,'3/1/2016','es-MX','lbx_Compliments_IdentificationType',N'Tipo de dentificación','N','N') , (1999,'3/1/2016','es-MX','lbx_Container_ContainerNum',N'Número de contenedor','N','N') , (1999,'3/1/2016','es-MX','lbx_Container_ContainerType',N'Tipo de contenedor','N','N') , (1999,'3/1/2016','es-MX','lbx_Containers_Container Num',N'Número de Contenedor','N','N') , (1999,'3/1/2016','es-MX','lbx_Containers_Container Type',N'Tipo de Contenedor','N','N') , (1999,'3/1/2016','es-MX','lbx_Containers_ContainerNum',N'Número de Contenedor','N','N') , (1999,'3/1/2016','es-MX','lbx_Containers_ContainerType',N'Tipo de Contenedor','N','N') , (1999,'3/1/2016','es-MX','lbx_Cuentas Aduaneras_Assigned Titles',N'Títulos Asignados','N','N') , (1999,'3/1/2016','es-MX','lbx_Cuentas Aduaneras_Customs Account Number',N'Número de Cuenta','N','N') , (1999,'3/1/2016','es-MX','lbx_Cuentas Aduaneras_Date Of Constancy',N'Fecha del Folio','N','N') , (1999,'3/1/2016','es-MX','lbx_Cuentas Aduaneras_Folio Of Constancy',N'Folio','N','N') , (1999,'3/1/2016','es-MX','lbx_Cuentas Aduaneras_Issuing Institution Code',N'Institución Emisora','N','N') , (1999,'3/1/2016','es-MX','lbx_Cuentas Aduaneras_Quantity',N'Cantidad','N','N') , (1999,'3/1/2016','es-MX','lbx_Cuentas Aduaneras_Total Amount Of Warranty',N'Cantidad Total de la Garantía','N','N') , (1999,'3/1/2016','es-MX','lbx_Cuentas Aduaneras_Type Of Account Of Warranty',N'Tipo de Cuenta de la Garantía','N','N') , (1999,'3/1/2016','es-MX','lbx_Cuentas Aduaneras_Type Of Warranty',N'Tipo de Garantía','N','N') , (1999,'3/1/2016','es-MX','lbx_Cuentas Aduaneras_Unit Value Of Title',N'Título del Valor Unitario','N','N') , (1999,'3/1/2016','es-MX','lbx_CuentasAduaneras_AssignedTitles',N'Títulos Asignados','N','N') , (1999,'3/1/2016','es-MX','lbx_CuentasAduaneras_CustomsAccountNumber',N'Número de Cuenta','N','N') , (1999,'3/1/2016','es-MX','lbx_CuentasAduaneras_DateOfConstancy',N'Fecha del Folio','N','N') , (1999,'3/1/2016','es-MX','lbx_CuentasAduaneras_FolioOfConstancy',N'Folio','N','N') , (1999,'3/1/2016','es-MX','lbx_CuentasAduaneras_IssuingInstitutionCode',N'Institución Emisora','N','N') , (1999,'3/1/2016','es-MX','lbx_CuentasAduaneras_Quantity',N'Cantidad','N','N') , (1999,'3/1/2016','es-MX','lbx_CuentasAduaneras_TotalAmountOfWarranty',N'Cantidad Total de la Garantía','N','N') , (1999,'3/1/2016','es-MX','lbx_CuentasAduaneras_TypeOfAccountOfWarranty',N'Tipo de Cuenta de la Garantía','N','N') , (1999,'3/1/2016','es-MX','lbx_CuentasAduaneras_TypeOfWarranty',N'Tipo de Garantía','N','N') , (1999,'3/1/2016','es-MX','lbx_CuentasAduaneras_UnitValueOfTitle',N'Título del Valor Unitario','N','N') , (1999,'3/1/2016','es-MX','lbx_Dates By Document Codes_Date Type',N'Tipo de Información','N','N') , (1999,'3/1/2016','es-MX','lbx_Dates By Document Codes_Operation Type',N'Operación','N','N') , (1999,'3/1/2016','es-MX','lbx_Dates By Document Codes_Pedimento Code',N'Código de Pedimento','N','N') , (1999,'3/1/2016','es-MX','lbx_Dates_Date Type',N'Tipo de Fecha','N','N') , (1999,'3/1/2016','es-MX','lbx_Dates_DateType',N'Tipo de Fecha','N','N') , (1999,'3/1/2016','es-MX','lbx_Dates_Pedimento Date',N'Fecha del Pedimento','N','N') , (1999,'3/1/2016','es-MX','lbx_Dates_PedimentoDate',N'Fecha del Pedimento','N','N') , (1999,'3/1/2016','es-MX','lbx_DatesByDocumentCodes_DateType',N'Tipo de Información','N','N') , (1999,'3/1/2016','es-MX','lbx_DatesByDocumentCodes_OperationType',N'Operación','N','N') , (1999,'3/1/2016','es-MX','lbx_DatesByDocumentCodes_PedimentoCode',N'Código de Pedimento','N','N') , (1999,'3/1/2016','es-MX','lbx_Detail_AddedValue',N'Valor añadido','N','N') , (1999,'3/1/2016','es-MX','lbx_Detail_AddlMXHSNum',N'Fracción mexicana adicional','N','N') , (1999,'3/1/2016','es-MX','lbx_Detail_AltHtsIndex',N'índice','N','N') , (1999,'3/1/2016','es-MX','lbx_Detail_CountryBuySell',N'País de compra/venta','N','N') , (1999,'3/1/2016','es-MX','lbx_Detail_CountryOfOriginOrDestination',N'Pais de origen/destino','N','N') , (1999,'3/1/2016','es-MX','lbx_Detail_DeclaredValue',N'Valor declarado','N','N') , (1999,'3/1/2016','es-MX','lbx_Detail_DutyAmount',N'Monto de Impuesto','N','N') , (1999,'3/1/2016','es-MX','lbx_Detail_DutyRate',N'Tasa de impuesto','N','N') , (1999,'3/1/2016','es-MX','lbx_Detail_DutyRateType',N'Tipo de tasa deimpuesto','N','N') , (1999,'3/1/2016','es-MX','lbx_Detail_DutyType',N'Tipo de impuesto','N','N') , (1999,'3/1/2016','es-MX','lbx_Detail_Make',N'Marca','N','N') , (1999,'3/1/2016','es-MX','lbx_Detail_Model',N'Model','N','N') , (1999,'3/1/2016','es-MX','lbx_Detail_MXHSNum',N'Fracción mexicana','N','N') , (1999,'3/1/2016','es-MX','lbx_Detail_MXProductDesc',N'Descripción','N','N') , (1999,'3/1/2016','es-MX','lbx_Detail_ObservationText',N'Observaciones','N','N') , (1999,'3/1/2016','es-MX','lbx_Detail_PaymentType',N'Tipo de pago','N','N') , (1999,'3/1/2016','es-MX','lbx_Detail_ProductNum',N'Número de producto','N','N') , (1999,'3/1/2016','es-MX','lbx_Detail_Program1',N'Programa 1','N','N') , (1999,'3/1/2016','es-MX','lbx_Detail_Program2',N'Programa 2','N','N') , (1999,'3/1/2016','es-MX','lbx_Detail_Program2=Programa 2',N'Programa 2','N','N') , (1999,'3/1/2016','es-MX','lbx_Detail_Program3',N'Programa 3','N','N') , (1999,'3/1/2016','es-MX','lbx_Detail_ProgramType',N'Tipo de programa','N','N') , (1999,'3/1/2016','es-MX','lbx_Detail_RptQty',N'Cantidad de reporte','N','N') , (1999,'3/1/2016','es-MX','lbx_Detail_RptQtyUOM',N'Unidad de medida','N','N') , (1999,'3/1/2016','es-MX','lbx_Detail_SectionNum',N'Número de sección','N','N') , (1999,'3/1/2016','es-MX','lbx_Detail_StateCodeBuyer',N'Estado comprador','N','N') , (1999,'3/1/2016','es-MX','lbx_Detail_StateCodeDestination',N'Estado destino','N','N') , (1999,'3/1/2016','es-MX','lbx_Detail_StateCodeOrigin',N'Estado origen','N','N') , (1999,'3/1/2016','es-MX','lbx_Detail_StateCodeSeller',N'Estado vendedor','N','N') , (1999,'3/1/2016','es-MX','lbx_Detail_TotalCustomsValue',N'Valor total en Aduana','N','N') , (1999,'3/1/2016','es-MX','lbx_Detail_TotalValue',N'Valor Total','N','N') , (1999,'3/1/2016','es-MX','lbx_Detail_TotalValueUSD',N'Valor Total dólares americanos','N','N') , (1999,'3/1/2016','es-MX','lbx_Detail_TxnQty',N'Cantidad de transacción','N','N') , (1999,'3/1/2016','es-MX','lbx_Detail_TxnQtyUOM',N'unidad de medida','N','N') , (1999,'3/1/2016','es-MX','lbx_Detail_ValueFactor',N'Factor de valuación','N','N') , (1999,'3/1/2016','es-MX','lbx_Detail_ValueMethod',N'Método de valuación','N','N') , (1999,'3/1/2016','es-MX','lbx_Detail_ValueMXN',N'Valor en pesos mexicanos','N','N') , (1999,'3/1/2016','es-MX','lbx_Detail_ValueType',N'Tipo de valor','N','N') , (1999,'3/1/2016','es-MX','lbx_Discharges_Customs Section',N'Aduana y Sección','N','N') , (1999,'3/1/2016','es-MX','lbx_Discharges_CustomsSection',N'Aduana y Sección','N','N') , (1999,'3/1/2016','es-MX','lbx_Discharges_MX Tariff Num',N'Fracción Arancelaria Mexicana','N','N') , (1999,'3/1/2016','es-MX','lbx_Discharges_MX Tariff Quantity',N'Cantidad de Acuerdo a la Fracción Arancelaria','N','N') , (1999,'3/1/2016','es-MX','lbx_Discharges_MX Tariff UOM',N'UM de la Fracción Arancelaria Mexicana','N','N') , (1999,'3/1/2016','es-MX','lbx_Discharges_MXTariffNum',N'Fracción Arancelaria Mexicana','N','N') , (1999,'3/1/2016','es-MX','lbx_Discharges_MXTariffQuantity',N'Cantidad de Acuerdo a la Fracción Arancelaria','N','N') , (1999,'3/1/2016','es-MX','lbx_Discharges_MXTariffUOM',N'UM de la Fracción Arancelaria Mexicana','N','N') , (1999,'3/1/2016','es-MX','lbx_Discharges_Original Pedimento Num',N'Número Original del Pedimento','N','N') , (1999,'3/1/2016','es-MX','lbx_Discharges_OriginalPedimentoNum',N'Número Original del Pedimento','N','N') , (1999,'3/1/2016','es-MX','lbx_Discharges_Payment Date',N'Fecha de Pago','N','N') , (1999,'3/1/2016','es-MX','lbx_Discharges_PaymentDate',N'Fecha de Pago','N','N') , (1999,'3/1/2016','es-MX','lbx_Discharges_Pedimento Code',N'Código de Pedimento','N','N') , (1999,'3/1/2016','es-MX','lbx_Discharges_PedimentoCode',N'Código de Pedimento','N','N') , (1999,'3/1/2016','es-MX','lbx_Document Codes_Automotive Flag',N'Automotor','N','N') INSERT INTO tmgPartnerCultureDefinitions(PartnerId,EffDate,CultureGuid,FieldName,FieldTranslation,DeletedFlag,KeepDuringRollback) VALUES (1999,'3/1/2016','es-MX','lbx_Document Codes_Calculate IVA Flag',N'Calcular IVA','N','N') , (1999,'3/1/2016','es-MX','lbx_Document Codes_Change Of Regimen Flag',N'Cambio de Regimen','N','N') , (1999,'3/1/2016','es-MX','lbx_Document Codes_Definitive Flag',N'Definitivo','N','N') , (1999,'3/1/2016','es-MX','lbx_Document Codes_Fixed DTA Flag',N'DTA fijo','N','N') , (1999,'3/1/2016','es-MX','lbx_Document Codes_Operation Type',N'Operación','N','N') , (1999,'3/1/2016','es-MX','lbx_Document Codes_Pedimento Code',N'Código de Pedimento','N','N') , (1999,'3/1/2016','es-MX','lbx_Document Codes_Pedimento Regimen',N'Regimen de Pedimento','N','N') , (1999,'3/1/2016','es-MX','lbx_Document Codes_Per Thousand',N'Por Mil','N','N') , (1999,'3/1/2016','es-MX','lbx_Document Codes_Reexpedicion Flag',N'Re-expedición','N','N') , (1999,'3/1/2016','es-MX','lbx_Document Codes_Required Discharges Flag',N'Requiere Descargos','N','N') , (1999,'3/1/2016','es-MX','lbx_Document Codes_Transit Flag',N'Transito','N','N') , (1999,'3/1/2016','es-MX','lbx_DocumentCodes_AutomotiveFlag',N'Automotor','N','N') , (1999,'3/1/2016','es-MX','lbx_DocumentCodes_CalculateIVAFlag',N'Calcular IVA','N','N') , (1999,'3/1/2016','es-MX','lbx_DocumentCodes_ChangeOfRegimenFlag',N'Cambio de Regimen','N','N') , (1999,'3/1/2016','es-MX','lbx_DocumentCodes_DefinitiveFlag',N'Definitivo','N','N') , (1999,'3/1/2016','es-MX','lbx_DocumentCodes_FixedDTAFlag',N'DTA fijo','N','N') , (1999,'3/1/2016','es-MX','lbx_DocumentCodes_OperationType',N'Operación','N','N') , (1999,'3/1/2016','es-MX','lbx_DocumentCodes_PedimentoCode',N'Código de Pedimento','N','N') , (1999,'3/1/2016','es-MX','lbx_DocumentCodes_PedimentoRegimen',N'Regimen de Pedimento','N','N') , (1999,'3/1/2016','es-MX','lbx_DocumentCodes_PerThousand',N'Por Mil','N','N') , (1999,'3/1/2016','es-MX','lbx_DocumentCodes_ReexpedicionFlag',N'Re-expedición','N','N') , (1999,'3/1/2016','es-MX','lbx_DocumentCodes_RequiredDischargesFlag',N'Requiere Descargos','N','N') , (1999,'3/1/2016','es-MX','lbx_DocumentCodes_TransitFlag',N'Transito','N','N') , (1999,'3/1/2016','es-MX','lbx_Duties By Date_Begin Date',N'Fecha de Inicio','N','N') , (1999,'3/1/2016','es-MX','lbx_Duties By Date_Contraprestacion Fee',N'Cargo de Contraprestación','N','N') , (1999,'3/1/2016','es-MX','lbx_Duties By Date_Fixed DTA Fee',N'Cargo Fijo DTA','N','N') , (1999,'3/1/2016','es-MX','lbx_Duties By Date_IVA Per Thousand',N'IVA por mil','N','N') , (1999,'3/1/2016','es-MX','lbx_Duties By Date_IVA Per Thousand"',N'IVA por Mil','N','N') , (1999,'3/1/2016','es-MX','lbx_Duties By Date_IVA Rate',N'Tarifa de IVA','N','N') , (1999,'3/1/2016','es-MX','lbx_Duties By Date_Prevalidador Fee',N'Cargo de Prevalidador','N','N') , (1999,'3/1/2016','es-MX','lbx_Duties_Abbreviation Export',N'Abreviatura de Exportación','N','N') , (1999,'3/1/2016','es-MX','lbx_Duties_Abbreviation Import',N'Abreviatura de Importación','N','N') , (1999,'3/1/2016','es-MX','lbx_Duties_AbbreviationExport',N'Abreviatura de Exportación','N','N') , (1999,'3/1/2016','es-MX','lbx_Duties_AbbreviationImport',N'Abreviatura de Importación','N','N') , (1999,'3/1/2016','es-MX','lbx_Duties_Description',N'Descripción','N','N') , (1999,'3/1/2016','es-MX','lbx_Duties_Detail Level Flag',N'Nivel de Detalle','N','N') , (1999,'3/1/2016','es-MX','lbx_Duties_DetailLevelFlag',N'Nivel de Detalle','N','N') , (1999,'3/1/2016','es-MX','lbx_Duties_Duty Amount',N'Cantidad de los Derechos','N','N') , (1999,'3/1/2016','es-MX','lbx_Duties_Duty Rate',N'Tarifa de los Derechos','N','N') , (1999,'3/1/2016','es-MX','lbx_Duties_Duty Rate Type',N'Tipo de Tarifa','N','N') , (1999,'3/1/2016','es-MX','lbx_Duties_Duty Type',N'Tipo de Impuesto','N','N') , (1999,'3/1/2016','es-MX','lbx_Duties_DutyAmount',N'Cantidad de los Derechos','N','N') , (1999,'3/1/2016','es-MX','lbx_Duties_DutyRate',N'Tarifa de los Derechos','N','N') , (1999,'3/1/2016','es-MX','lbx_Duties_DutyRateType',N'Tipo de Tarifa','N','N') , (1999,'3/1/2016','es-MX','lbx_Duties_DutyType',N'Tipo de Impuesto','N','N') , (1999,'3/1/2016','es-MX','lbx_Duties_Header Level Flag',N'Nivel de Encabezado','N','N') , (1999,'3/1/2016','es-MX','lbx_Duties_HeaderLevelFlag',N'Nivel de Encabezado','N','N') , (1999,'3/1/2016','es-MX','lbx_Duties_Payment Type',N'Tipo de Pago','N','N') , (1999,'3/1/2016','es-MX','lbx_Duties_PaymentType',N'Tipo de Pago','N','N') , (1999,'3/1/2016','es-MX','lbx_DutiesByDate_BeginDate',N'Fecha de Inicio','N','N') , (1999,'3/1/2016','es-MX','lbx_DutiesByDate_ContraprestacionFee',N'Cargo de Contraprestación','N','N') , (1999,'3/1/2016','es-MX','lbx_DutiesByDate_FixedDTAFee',N'Cargo Fijo DTA','N','N') , (1999,'3/1/2016','es-MX','lbx_DutiesByDate_IVAPerThousand',N'IVA por mil','N','N') , (1999,'3/1/2016','es-MX','lbx_DutiesByDate_IVARate',N'Tarifa de IVA','N','N') , (1999,'3/1/2016','es-MX','lbx_DutiesByDate_PrevalidadorFee',N'Cargo de Prevalidador','N','N') , (1999,'3/1/2016','es-MX','lbx_Error Catalogs_Consecutive',N'No. Consecutivo','N','N') , (1999,'3/1/2016','es-MX','lbx_Error Catalogs_Error Message',N'Mensaje de Error','N','N') , (1999,'3/1/2016','es-MX','lbx_Error Catalogs_Error Type',N'Tipo de Error','N','N') , (1999,'3/1/2016','es-MX','lbx_Error Catalogs_Field Num',N'No. Campo','N','N') , (1999,'3/1/2016','es-MX','lbx_Error Catalogs_File Type',N'Tipo de Archivo','N','N') , (1999,'3/1/2016','es-MX','lbx_Error Catalogs_Record Type',N'Tipo de Record','N','N') , (1999,'3/1/2016','es-MX','lbx_ErrorCatalogs_Consecutive',N'No. Consecutivo','N','N') , (1999,'3/1/2016','es-MX','lbx_ErrorCatalogs_ErrorMessage',N'Mensaje de Error','N','N') , (1999,'3/1/2016','es-MX','lbx_ErrorCatalogs_ErrorType',N'Tipo de Error','N','N') , (1999,'3/1/2016','es-MX','lbx_ErrorCatalogs_FieldNum',N'No. Campo','N','N') , (1999,'3/1/2016','es-MX','lbx_ErrorCatalogs_FileType',N'Tipo de Archivo','N','N') , (1999,'3/1/2016','es-MX','lbx_ErrorCatalogs_RecordType',N'Tipo de Record','N','N') , (1999,'3/1/2016','es-MX','lbx_Fees_FeeAmount',N'Cantidad de derecho','N','N') , (1999,'3/1/2016','es-MX','lbx_Fees_FeeFormOfPayment',N'Forma de pago','N','N') , (1999,'3/1/2016','es-MX','lbx_Fees_FeeRateType',N'Tasa de derechos','N','N') , (1999,'3/1/2016','es-MX','lbx_Fees_FeeTotal',N'Total de derecho','N','N') , (1999,'3/1/2016','es-MX','lbx_Fees_FeeType',N'Tipo de derecho','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_ArrivalMOT',N'Medio de transporte de llegada','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_AuthorizationCode',N'Código de Autorización','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_BrokerCompanyID',N'Identificador de compañía','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_BrokerCURP',N'CURP de Agente Aduanal','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_BrokerFederalID',N'RFC de Agente Aduanal','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_BrokerName',N'Nombre de Agente Aduanal','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_ClosingAuthorizationCode',N'Código de cierre de Autorización','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_CompanyAddress1',N'Dirección de compañía','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_CompanyAddress2',N'Dirreción adicional','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_CompanyCity',N'Ciudad de compañía','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_CompanyCountry',N'Pais de compañía','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_CompanyCURP',N'CURP de compañía','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_CompanyFederalID',N'RFC de compañía','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_CompanyName',N'Nombre de compañía','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_CompanyPostalCode',N'Código Postal de compañía','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_CompanyRNMIMCode',N'RNIM','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_CompanyState',N'Estado de compañía','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_ContainerCount',N'Conteo de contenedor','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_CustomsFilingLocation',N'Ubicación de Aduana de llenado','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_CustomsImportExportLocation',N'Ubicación de Aduana de imp-exp','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_DepartureMOT',N'Medio de transporte de salida','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_ElectronicSignatureCertificateNum',N'Número de certificado','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_ElectronicSignatureType',N'Tipo','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_FileSequenceNum',N'Secuencia','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_FreightCharges',N'Cargos de transporte','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_FreightChargesCurrencyCode',N'Moneda','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_GrossValue',N'Valor bruto','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_GrossValueCurrencyCode',N'Moneda','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_ImportExportMOT',N'Medio de transporte de Imp-Exp','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_InsuranceCharges',N'Cargos de seguro','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_InsuranceChargesCurrencyCode',N'Moneda','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_InvoiceCount',N'Conteo de factura','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_InvoiceDutyTotal',N'Total de aranceles en factura','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_Manifest Weight UOM',N'Unidad de Medida de Peso','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_ManifestQty',N'Cantidad del manifiesto','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_ManifestQtyUOM',N'Unidad de medida de cantidad','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_ManifestWeight',N'Peso del manifiesto','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_ManifestWeightUOM',N'Unidad de Medida de Peso','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_MiscCharges',N'Otros cargos','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_MiscChargesCurrencyCode',N'Moneda','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_MXCommercialValue',N'Valor comercial en pesos','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_MXCommercialValueCurrencyCode',N'Moneda','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_MXExchangeRate',N'Tipo de Cambio MXP','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_MXGrossValue',N'Valor bruto en pesos','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_MXGrossValueCurrencyCode',N'Moneda','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_PackingCharges',N'Cargos de empaque','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_PackingChargesCurrencyCode',N'Moneda','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_Pedimento Regimen',N'Régimen de pedimento','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_PedimentoBeginDate',N'Fecha de inicio','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_PedimentoCategory',N'Categoria de pedimento','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_PedimentoCode',N'Código de pedimento','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_PedimentoEndDate',N'Fecha de fin','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_PedimentoEnteredDate',N'Fecha de captura','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_PedimentoPaymentDate',N'Fecha de pago','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_PedimentoRegimen',N'Régimen de pedimento','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_ProcessingFee',N'Pago por procesamiento','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_ProcessingFeeCurrencyCode',N'Moneda','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_ProcessingFeeTotal',N'Total de pago por procesamiento','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_SubmissionDate',N'Fecha de cierre','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_TotalDutiesCash',N'Total de aranceles, efectivo','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_TotalDutiesOther',N'Total de aranceles, otro','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_ValidationFee',N'Pago por validación','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_ValidationFeeCurrencyCode',N'Moneda','N','N') , (1999,'3/1/2016','es-MX','lbx_Header_ValidationFeeTotal',N'Total de pago por validación','N','N') , (1999,'3/1/2016','es-MX','lbx_HS Line Item Fees_Section Num',N'Sección','N','N') , (1999,'3/1/2016','es-MX','lbx_HSLineArticle303_AltHtsNum',N'Fracción americana alterna','N','N') , (1999,'3/1/2016','es-MX','lbx_HSLineArticle303_Duty',N'Arancel','N','N') , (1999,'3/1/2016','es-MX','lbx_HSLineArticle303_SectionNum',N'Sección','N','N') , (1999,'3/1/2016','es-MX','lbx_HSLineArticle303_TotalValueNonOriginating',N'Total Valor no originario','N','N') , (1999,'3/1/2016','es-MX','lbx_HSLineItemFees_AltHtsNum',N'Fracción americana','N','N') , (1999,'3/1/2016','es-MX','lbx_HSLineItemFees_SectionNum',N'Sección','N','N') , (1999,'3/1/2016','es-MX','lbx_HSLineItemFees_TaxFormOfPayment',N'Forma de pago','N','N') , (1999,'3/1/2016','es-MX','lbx_HSLineItemFees_TaxRate',N'Tasa de impuesto','N','N') , (1999,'3/1/2016','es-MX','lbx_HSLineItemFees_TaxRateType',N'Tipo de tasa deimpuesto','N','N') , (1999,'3/1/2016','es-MX','lbx_HSLineItemFees_TaxTotal',N'Total de impuesto','N','N') , (1999,'3/1/2016','es-MX','lbx_HSLineItemFees_TaxType',N'Tipo de impuesto','N','N') , (1999,'3/1/2016','es-MX','lbx_HSLineItemObservations_LineNum',N'Número de línea','N','N') , (1999,'3/1/2016','es-MX','lbx_HSLineItemObservations_ObservationText',N'Observaciones','N','N') , (1999,'3/1/2016','es-MX','lbx_HSLineItemObservations_SectionNum',N'Sección','N','N') , (1999,'3/1/2016','es-MX','lbx_Identifiers By Document Codes_Identification Type',N'Tipo de Identificación','N','N') , (1999,'3/1/2016','es-MX','lbx_Identifiers By Document Codes_Identification1',N'Identificación','N','N') , (1999,'3/1/2016','es-MX','lbx_Identifiers By Document Codes_Identification2',N'Identificación 2','N','N') , (1999,'3/1/2016','es-MX','lbx_Identifiers By Document Codes_Identification3',N'Identificación 3','N','N') , (1999,'3/1/2016','es-MX','lbx_Identifiers By Document Codes_Operation Type',N'Operación','N','N') , (1999,'3/1/2016','es-MX','lbx_Identifiers By Document Codes_Pedimento Code',N'Código de Pedimento','N','N') , (1999,'3/1/2016','es-MX','lbx_Identifiers By Tariff_Identification Type',N'Tipo de Identificación','N','N') , (1999,'3/1/2016','es-MX','lbx_Identifiers By Tariff_Identification1',N'Identificación 1','N','N') , (1999,'3/1/2016','es-MX','lbx_Identifiers By Tariff_Identification2',N'Identificación 2','N','N') , (1999,'3/1/2016','es-MX','lbx_Identifiers By Tariff_Identification3',N'Identificación 3','N','N') , (1999,'3/1/2016','es-MX','lbx_Identifiers By Tariff_MX Tariff Num',N'Número de Tarifa','N','N') , (1999,'3/1/2016','es-MX','lbx_Identifiers By Tariff_Operation Type',N'Operación','N','N') , (1999,'3/1/2016','es-MX','lbx_Identifiers_Identification Type',N'Identificador','N','N') , (1999,'3/1/2016','es-MX','lbx_Identifiers_Identification1',N'Identificador','N','N') , (1999,'3/1/2016','es-MX','lbx_Identifiers_Identification2',N'Identificador 2','N','N') , (1999,'3/1/2016','es-MX','lbx_Identifiers_Identification3',N'Identificador 3','N','N') , (1999,'3/1/2016','es-MX','lbx_Identifiers_IdentificationType',N'Identificador','N','N') , (1999,'3/1/2016','es-MX','lbx_IdentifiersByDocumentCodes_Identification1',N'Identificación','N','N') , (1999,'3/1/2016','es-MX','lbx_IdentifiersByDocumentCodes_Identification2',N'Identificación 2','N','N') , (1999,'3/1/2016','es-MX','lbx_IdentifiersByDocumentCodes_Identification3',N'Identificación 3','N','N') , (1999,'3/1/2016','es-MX','lbx_IdentifiersByDocumentCodes_IdentificationType',N'Tipo de Identificación','N','N') , (1999,'3/1/2016','es-MX','lbx_IdentifiersByDocumentCodes_OperationType',N'Operación','N','N') , (1999,'3/1/2016','es-MX','lbx_IdentifiersByDocumentCodes_PedimentoCode',N'Código de Pedimento','N','N') , (1999,'3/1/2016','es-MX','lbx_IdentifiersByTariff_Identification1',N'Identificación 1','N','N') , (1999,'3/1/2016','es-MX','lbx_IdentifiersByTariff_Identification2',N'Identificación 2','N','N') , (1999,'3/1/2016','es-MX','lbx_IdentifiersByTariff_Identification3',N'Identificación 3','N','N') , (1999,'3/1/2016','es-MX','lbx_IdentifiersByTariff_IdentificationType',N'Tipo de Identificación','N','N') , (1999,'3/1/2016','es-MX','lbx_IdentifiersByTariff_MXTariffNum',N'Número de Tarifa','N','N') , (1999,'3/1/2016','es-MX','lbx_IdentifiersByTariff_OperationType',N'Operación','N','N') , (1999,'3/1/2016','es-MX','lbx_Invoice_BuyerSellerAddress1',N'Dirección de comprador/vendedor','N','N') , (1999,'3/1/2016','es-MX','lbx_Invoice_BuyerSellerAddress2',N'Dirección 2 de comprador/vendedor','N','N') , (1999,'3/1/2016','es-MX','lbx_Invoice_BuyerSellerCity',N'Ciudad de comprador/vendedor','N','N') , (1999,'3/1/2016','es-MX','lbx_Invoice_BuyerSellerCompanyID',N'Comprador/Vendedor ID','N','N') , (1999,'3/1/2016','es-MX','lbx_Invoice_BuyerSellerFederalID',N'RFC de comprador/vendedor','N','N') , (1999,'3/1/2016','es-MX','lbx_Invoice_BuyerSellerName',N'Nombre de comprador/vendedor','N','N') , (1999,'3/1/2016','es-MX','lbx_Invoice_BuyerSellerPostalCode',N'Código Postal de comprador/vendedor','N','N') , (1999,'3/1/2016','es-MX','lbx_Invoice_BuyerSellerState',N'Estado de comprador/vendedor','N','N') , (1999,'3/1/2016','es-MX','lbx_Invoice_Incoterm',N'Incoterm','N','N') , (1999,'3/1/2016','es-MX','lbx_Invoice_InvoiceDate',N'Fecha de factura','N','N') , (1999,'3/1/2016','es-MX','lbx_Invoice_InvoiceNum',N'Número de factura','N','N') , (1999,'3/1/2016','es-MX','lbx_Invoice_InvoiceValue',N'Valor de factura','N','N') , (1999,'3/1/2016','es-MX','lbx_Invoice_InvoiceValueCurrencyCode',N'Moneda del valor de factura','N','N') , (1999,'3/1/2016','es-MX','lbx_Invoice_InvoiceValueUSD',N'Dólares Americanos','N','N') , (1999,'3/1/2016','es-MX','lbx_Invoices_Carrier ID',N'ID del Transportista','N','N') , (1999,'3/1/2016','es-MX','lbx_Invoices_CarrierID',N'ID del Transportista','N','N') , (1999,'3/1/2016','es-MX','lbx_Invoices_COVE Document Num',N'Número de Factura','N','N') , (1999,'3/1/2016','es-MX','lbx_Invoices_COVEDocumentNum',N'Número de Factura','N','N') , (1999,'3/1/2016','es-MX','lbx_Invoices_Currency Code',N'Tipo de Moneda','N','N') , (1999,'3/1/2016','es-MX','lbx_Invoices_Currency Value',N'Valor','N','N') , (1999,'3/1/2016','es-MX','lbx_Invoices_CurrencyCode',N'Tipo de Moneda','N','N') , (1999,'3/1/2016','es-MX','lbx_Invoices_CurrencyValue',N'Valor','N','N') , (1999,'3/1/2016','es-MX','lbx_Invoices_Dollar Value',N'Valor en Dólares','N','N') , (1999,'3/1/2016','es-MX','lbx_Invoices_DollarValue',N'Valor en Dólares','N','N') , (1999,'3/1/2016','es-MX','lbx_Invoices_FTA Qualifying Flag',N'Califica para TLC','N','N') , (1999,'3/1/2016','es-MX','lbx_Invoices_FTAQualifyingFlag',N'Califica para TLC','N','N') , (1999,'3/1/2016','es-MX','lbx_Invoices_Invoice Date',N'Fecha de Factura','N','N') , (1999,'3/1/2016','es-MX','lbx_Invoices_Invoice Num',N'Número de Facturas','N','N') , (1999,'3/1/2016','es-MX','lbx_Invoices_InvoiceDate',N'Fecha de Factura','N','N') , (1999,'3/1/2016','es-MX','lbx_Invoices_InvoiceNum',N'Número de Facturas','N','N') , (1999,'3/1/2016','es-MX','lbx_Invoices_Relation ID',N'ID de Vinculación','N','N') , (1999,'3/1/2016','es-MX','lbx_Invoices_RelationID',N'ID de Vinculación','N','N') , (1999,'3/1/2016','es-MX','lbx_Invoices_Relationship Flag',N'Bandera de Vinculación','N','N') , (1999,'3/1/2016','es-MX','lbx_Invoices_RelationshipFlag',N'Bandera de Vinculación','N','N') , (1999,'3/1/2016','es-MX','lbx_Invoices_Ship To ID',N'ID Embarcado por:','N','N') , (1999,'3/1/2016','es-MX','lbx_Invoices_ShipToID',N'ID Embarcado por:','N','N') , (1999,'3/1/2016','es-MX','lbx_Invoices_Supplier Customer ID',N'Identificador del Cliente/Proveedor','N','N') , (1999,'3/1/2016','es-MX','lbx_Invoices_SupplierCustomerID',N'Identificador del Cliente/Proveedor','N','N') , (1999,'3/1/2016','es-MX','lbx_Invoices_Total Package',N'Total de Empaque','N','N') , (1999,'3/1/2016','es-MX','lbx_Invoices_TotalPackage',N'Total de Empaque','N','N') , (1999,'3/1/2016','es-MX','lbx_Invoices_Transport Identifier',N'Identificador del Transporte','N','N') , (1999,'3/1/2016','es-MX','lbx_Invoices_TransportIdentifier',N'Identificador del Transporte','N','N') , (1999,'3/1/2016','es-MX','lbx_Observations_LineNum',N'Número de línea','N','N') , (1999,'3/1/2016','es-MX','lbx_Observations_ObservationText',N'Observaciones','N','N') , (1999,'3/1/2016','es-MX','lbx_Parte II Header_Containers',N'Contenedores','N','N') , (1999,'3/1/2016','es-MX','lbx_Parte II Header_Parte II Sequence',N'Secuencia','N','N') , (1999,'3/1/2016','es-MX','lbx_Parte II Header_Seal Num',N'Número del Sello','N','N') , (1999,'3/1/2016','es-MX','lbx_Parte II Header_Vehicle Data',N'Información del Vehículo','N','N') , (1999,'3/1/2016','es-MX','lbx_ParteIIHeader_Containers',N'Contenedores','N','N') , (1999,'3/1/2016','es-MX','lbx_ParteIIHeader_ParteIISequence',N'Secuencia','N','N') , (1999,'3/1/2016','es-MX','lbx_ParteIIHeader_SealNum',N'Número del Sello','N','N') , (1999,'3/1/2016','es-MX','lbx_ParteIIHeader_VehicleData',N'Información del Vehículo','N','N') , (1999,'3/1/2016','es-MX','lbx_Parties_CompanyAddress1',N'Dirección','N','N') , (1999,'3/1/2016','es-MX','lbx_Parties_CompanyAddress2',N'Dirección','N','N') , (1999,'3/1/2016','es-MX','lbx_Parties_CompanyCity',N'Ciudad','N','N') , (1999,'3/1/2016','es-MX','lbx_Parties_CompanyCountry',N'País','N','N') , (1999,'3/1/2016','es-MX','lbx_Parties_CompanyID',N'Identificador de compañía','N','N') , (1999,'3/1/2016','es-MX','lbx_Parties_CompanyName',N'Nombre de compañía','N','N') , (1999,'3/1/2016','es-MX','lbx_Parties_CompanyPostalCode',N'Código Postal','N','N') , (1999,'3/1/2016','es-MX','lbx_Parties_CompanyState',N'Estado','N','N') , (1999,'3/1/2016','es-MX','lbx_Payment Documents_Available Balance Of Document',N'Balance Disponible del Documento','N','N') , (1999,'3/1/2016','es-MX','lbx_Payment Documents_Document Date',N'Fecha del Documento','N','N') , (1999,'3/1/2016','es-MX','lbx_Payment Documents_Document Num',N'Número del Documento','N','N') , (1999,'3/1/2016','es-MX','lbx_Payment Documents_Institution Name',N'Nombre de la Institución','N','N') , (1999,'3/1/2016','es-MX','lbx_Payment Documents_Payment Type',N'Tipo de Pago','N','N') , (1999,'3/1/2016','es-MX','lbx_Payment Documents_Total Amount Of Document',N'Cantidad Total del Documento','N','N') , (1999,'3/1/2016','es-MX','lbx_Payment Documents_Total Payment Of Pedimento',N'Total de Pago del Pedimento','N','N') , (1999,'3/1/2016','es-MX','lbx_Payment Types By Document Codes_Duty Type',N'Tipo de Impuesto','N','N') , (1999,'3/1/2016','es-MX','lbx_Payment Types By Document Codes_Operation Type',N'Operación','N','N') , (1999,'3/1/2016','es-MX','lbx_Payment Types By Document Codes_Payment Type',N'Tipo de Pago','N','N') , (1999,'3/1/2016','es-MX','lbx_Payment Types By Document Codes_Pedimento Code',N'Código de Pedimento','N','N') , (1999,'3/1/2016','es-MX','lbx_PaymentDocuments_AvailableBalanceOfDocument',N'Balance Disponible del Documento','N','N') , (1999,'3/1/2016','es-MX','lbx_PaymentDocuments_DocumentDate',N'Fecha del Documento','N','N') , (1999,'3/1/2016','es-MX','lbx_PaymentDocuments_DocumentNum',N'Número del Documento','N','N') , (1999,'3/1/2016','es-MX','lbx_PaymentDocuments_InstitutionName',N'Nombre de la Institución','N','N') , (1999,'3/1/2016','es-MX','lbx_PaymentDocuments_PaymentType',N'Tipo de Pago','N','N') , (1999,'3/1/2016','es-MX','lbx_PaymentDocuments_TotalAmountOfDocument',N'Cantidad Total del Documento','N','N') , (1999,'3/1/2016','es-MX','lbx_PaymentDocuments_TotalPaymentOfPedimento',N'Total de Pago del Pedimento','N','N') , (1999,'3/1/2016','es-MX','lbx_PaymentTypesByDocumentCodes_DutyType',N'Tipo de Impuesto','N','N') , (1999,'3/1/2016','es-MX','lbx_PaymentTypesByDocumentCodes_OperationType',N'Operación','N','N') , (1999,'3/1/2016','es-MX','lbx_PaymentTypesByDocumentCodes_PaymentType',N'Tipo de Pago','N','N') , (1999,'3/1/2016','es-MX','lbx_PaymentTypesByDocumentCodes_PedimentoCode',N'Código de Pedimento','N','N') , (1999,'3/1/2016','es-MX','lbx_Permits By Tariff_Electronic Signature',N'Firma electrónica','N','N') , (1999,'3/1/2016','es-MX','lbx_Permits By Tariff_MX Tariff Num',N'Número de Tarifa','N','N') , (1999,'3/1/2016','es-MX','lbx_Permits By Tariff_NOM Flag',N'Bander NOM','N','N') , (1999,'3/1/2016','es-MX','lbx_Permits By Tariff_Operation Type',N'Operación','N','N') , (1999,'3/1/2016','es-MX','lbx_Permits By Tariff_Permit Num',N'Número de Permiso','N','N') , (1999,'3/1/2016','es-MX','lbx_Permits By Tariff_Permit Type',N'Tipo de Permiso','N','N') , (1999,'3/1/2016','es-MX','lbx_PermitsByTariff_ElectronicSignature',N'Firma electrónica','N','N') , (1999,'3/1/2016','es-MX','lbx_PermitsByTariff_MXTariffNum',N'Número de Tarifa','N','N') , (1999,'3/1/2016','es-MX','lbx_PermitsByTariff_NOMFlag',N'Bander NOM','N','N') , (1999,'3/1/2016','es-MX','lbx_PermitsByTariff_OperationType',N'Operación','N','N') , (1999,'3/1/2016','es-MX','lbx_PermitsByTariff_PermitNum',N'Número de Permiso','N','N') , (1999,'3/1/2016','es-MX','lbx_PermitsByTariff_PermitType',N'Tipo de Permiso','N','N') , (1999,'3/1/2016','es-MX','lbx_Pgm Codes_FTA Program',N'Programa FTA','N','N') , (1999,'3/1/2016','es-MX','lbx_Pgm Codes_Prosec Flag',N'Bandera Prosec','N','N') , (1999,'3/1/2016','es-MX','lbx_Pgm Codes_Prosec Num',N'Número Prosec','N','N') , (1999,'3/1/2016','es-MX','lbx_Pgm Codes_Treaty Flag',N'Bandera de Acuerdo','N','N') , (1999,'3/1/2016','es-MX','lbx_PgmCodes_FTAProgram',N'Programa FTA','N','N') , (1999,'3/1/2016','es-MX','lbx_PgmCodes_ProsecFlag',N'Bandera Prosec','N','N') , (1999,'3/1/2016','es-MX','lbx_PgmCodes_ProsecNum',N'Número Prosec','N','N') , (1999,'3/1/2016','es-MX','lbx_PgmCodes_TreatyFlag',N'Bandera de Acuerdo','N','N') , (1999,'3/1/2016','es-MX','lbx_Rectificaciones_BrokerFederalID',N'RFC de Agente Aduanal','N','N') , (1999,'3/1/2016','es-MX','lbx_Rectificaciones_Comments',N'Comentarios','N','N') , (1999,'3/1/2016','es-MX','lbx_Rectificaciones_CustomsLocation',N'Ubicación Aduana','N','N') , (1999,'3/1/2016','es-MX','lbx_Rectificaciones_OriginalBrokerFederalID',N'RFC de Agente Aduanal original','N','N') , (1999,'3/1/2016','es-MX','lbx_Rectificaciones_OriginalCustomsLocation',N'Ubicación de Aduana origina','N','N') , (1999,'3/1/2016','es-MX','lbx_Rectificaciones_OriginalFilingDate',N'Fecha de captura original','N','N') , (1999,'3/1/2016','es-MX','lbx_Rectificaciones_OriginalPedimentoCode',N'Código de pedimento original','N','N') , (1999,'3/1/2016','es-MX','lbx_Rectificaciones_OriginalPedimentoNum',N'Número de pedimento original','N','N') , (1999,'3/1/2016','es-MX','lbx_Rectificaciones_PaymentDate',N'Fecha de pago','N','N') , (1999,'3/1/2016','es-MX','lbx_Rectificaciones_PedimentoCode',N'Código de pedimento','N','N') , (1999,'3/1/2016','es-MX','lbx_Rectificaciones_RectifiedPedimentoNum',N'Número de pedimento rectificado','N','N') , (1999,'3/1/2016','es-MX','lbx_RectificacionesFees_FeeAmount',N'Cantidad de pago','N','N') , (1999,'3/1/2016','es-MX','lbx_RectificacionesFees_FeeType',N'Tipo de pago','N','N') , (1999,'3/1/2016','es-MX','lbx_RectificacionesFees_PaymentType',N'Forma de pago','N','N') , (1999,'3/1/2016','es-MX','lbx_Rules_MXHSNum',N'Fracción mexicana','N','N') , (1999,'3/1/2016','es-MX','lbx_Rules_RuleNum',N'Regla 1','N','N') , (1999,'3/1/2016','es-MX','lbx_Rules_RuleNum2',N'Regla 2','N','N') , (1999,'3/1/2016','es-MX','lbx_Rules_RuleType',N'Tipo de regla','N','N') , (1999,'3/1/2016','es-MX','lbx_Rules_RuleType2',N'Tipo de regla 2','N','N') , (1999,'3/1/2016','es-MX','lbx_Rules_SectionNum',N'Sección','N','N') , (1999,'3/1/2016','es-MX','lbx_Rules_TxnQty',N'Cantidad','N','N') , (1999,'3/1/2016','es-MX','lbx_Rules_Value',N'Valor','N','N') , (1999,'3/1/2016','es-MX','lbx_Saai Company_Bill Of Lading Type',N'Tipo de conocimiento de embarque','N','N') , (1999,'3/1/2016','es-MX','lbx_Saai Company_Company ID',N'ID de Compañía','N','N') , (1999,'3/1/2016','es-MX','lbx_Saai Company_Exterior Num',N'Número Exterior','N','N') , (1999,'3/1/2016','es-MX','lbx_Saai Company_Federal Entity',N'Entidad Federal','N','N') , (1999,'3/1/2016','es-MX','lbx_Saai Company_Interior Num',N'Número Interior','N','N') , (1999,'3/1/2016','es-MX','lbx_Saai Company_Relationship Flag',N'Bandera de Relación','N','N') , (1999,'3/1/2016','es-MX','lbx_Saai Company_Street',N'Calle','N','N') , (1999,'3/1/2016','es-MX','lbx_Saai Company_Value Method',N'Método de Valor','N','N') , (1999,'3/1/2016','es-MX','lbx_Saai INPC Fee Factor_Fee Rate',N'Indice de tarifa','N','N') , (1999,'3/1/2016','es-MX','lbx_Saai INPC Fee Factor_INPC Factor',N'Factor INPC','N','N') , (1999,'3/1/2016','es-MX','lbx_Saai INPC Fee Factor_Month Num',N'No. de mes','N','N') , (1999,'3/1/2016','es-MX','lbx_Saai INPC Fee Factor_Year Num',N'Año','N','N') , (1999,'3/1/2016','es-MX','lbx_SaaiCompany_BillOfLadingType',N'Tipo de conocimiento de embarque','N','N') , (1999,'3/1/2016','es-MX','lbx_SaaiCompany_CompanyID',N'ID de Compañía','N','N') , (1999,'3/1/2016','es-MX','lbx_SaaiCompany_ExteriorNum',N'Número Exterior','N','N') , (1999,'3/1/2016','es-MX','lbx_SaaiCompany_FederalEntity',N'Entidad Federal','N','N') , (1999,'3/1/2016','es-MX','lbx_SaaiCompany_InteriorNum',N'Número Interior','N','N') , (1999,'3/1/2016','es-MX','lbx_SaaiCompany_RelationshipFlag',N'Bandera de Relación','N','N') , (1999,'3/1/2016','es-MX','lbx_SaaiCompany_Street',N'Calle','N','N') , (1999,'3/1/2016','es-MX','lbx_SaaiCompany_ValueMethod',N'Método de Valor','N','N') , (1999,'3/1/2016','es-MX','lbx_SaaiINPCFeeFactor_FeeRate',N'Indice de tarifa','N','N') , (1999,'3/1/2016','es-MX','lbx_SaaiINPCFeeFactor_INPCFactor',N'Factor INPC','N','N') , (1999,'3/1/2016','es-MX','lbx_SaaiINPCFeeFactor_MonthNum',N'No. de mes','N','N') , (1999,'3/1/2016','es-MX','lbx_SaaiINPCFeeFactor_YearNum',N'Año','N','N') , (1999,'3/1/2016','es-MX','lbx_Transportation_CarrierAddress',N'Dirección del Transportista','N','N') , (1999,'3/1/2016','es-MX','lbx_Transportation_CarrierCURP',N'CURP transportista','N','N') , (1999,'3/1/2016','es-MX','lbx_Transportation_CarrierFederalID',N'RFC transportista','N','N') , (1999,'3/1/2016','es-MX','lbx_Transportation_CarrierName',N'Nombre transportista','N','N') , (1999,'3/1/2016','es-MX','lbx_Transportation_CountryOfTransport',N'País transportista','N','N') , (1999,'3/1/2016','es-MX','lbx_Transportation_ManifestQty',N'Cantidad de manifiesto','N','N') , (1999,'3/1/2016','es-MX','lbx_Transportation_SealNum',N'Número de sello','N','N') , (1999,'3/1/2016','es-MX','lbx_Transportation_TransportID',N'Transport ID','N','N') , (1999,'9/11/2015','es-MX','lbxAcceptDocTitle',N'Aceptar Documento','N','N') , (1999,'9/11/2015','es-MX','lbxAccountant',N'Nombre del Contador','N','N') , (1999,'9/6/2016','es-MX','lbxActive',N'Activo','N','N') , (1999,'2/15/2016','es-MX','lbxActualExcludedTerms',N'Excluir Términos de búsqueda :','N','N') , (1999,'2/15/2016','es-MX','lbxActualSearchSymbols',N'Excluir Términos de búsqueda que contienen símbolos :','N','N') , (1999,'2/15/2016','es-MX','lbxActualSearchTerms',N'Términos de búsqueda:','N','N') , (1999,'3/1/2016','es-MX','lbxADCaseNumber',N'Número de Caja AD','N','N') , (1999,'3/1/2016','es-MX','lbxADCaseNumber1',N'No. Caso AD','N','N') , (1999,'3/1/2016','es-MX','lbxADCaseNumberSource',N'Fuente Número de Caja AD','N','N') , (1999,'3/1/2016','es-MX','lbxADCaseNumberSource1',N'Fuente No. caso AD','N','N') , (1999,'3/1/2016','es-MX','lbxAdd New',N'Agregar Nuevo','N','N') , (1999,'9/11/2015','es-MX','lbxAddCommentTitle',N'Agregar Comentario A','N','N') , (1999,'9/6/2016','es-MX','lbxAddDocumentSelectFile',N'Selecciona Archivo','N','N') , (1999,'9/6/2016','es-MX','lbxAddDocumentType',N'Tipo de Documento','N','N') , (1999,'4/8/2010','es-MX','lbxAddExclude',N'Excluir palabras comunes','N','N') , (1999,'3/10/2016','es-MX','lbxAdditionalCode',N'Código Adicional','N','N') , (1999,'3/1/2016','es-MX','lbxAdditionalCtry',N'Países Adicionales','N','N') , (1999,'9/11/2015','es-MX','lbxAdditionalCulture',N'Lenguaje Secundario del Documento:','N','N') , (1999,'3/1/2016','es-MX','lbxAddlHtsUomConvFactor',N'Factor de Conversión U de M de US HTS Adicional','N','N') , (1999,'3/1/2016','es-MX','lbxAddlHtsUomConvFactor1',N'Factor de Conversión de UM de Fracción','N','N') , (1999,'3/1/2016','es-MX','lbxAddlHtsUomConvFactorSource',N'Fuente de Factor de Conversión U de M de TIGI Adicional','N','N') , (1999,'3/1/2016','es-MX','lbxAddlHtsUomConvFactorSource1',N'Fuente de la UM de Reporte Adicional','N','N') , (1999,'3/1/2016','es-MX','lbxAddlRptQtyUom',N'Cantidad Reportada de U de M Adicional','N','N') , (1999,'3/1/2016','es-MX','lbxAddlRptQtyUom1',N'Reporte Adicional de Unidad de Medida','N','N') , (1999,'3/1/2016','es-MX','lbxAddlRptQtyUomSource',N'Fuente de Cantidad Reportada de U de M Adicional','N','N') , (1999,'3/1/2016','es-MX','lbxAddlRptQtyUomSource1',N'Fuente de la UM de Reporte Adicional','N','N') , (1999,'3/1/2016','es-MX','lbxAddlSpecificRate',N'Índice Específico','N','N') , (1999,'3/1/2016','es-MX','lbxAddlSpecificRate1',N'Impuesto Específico','N','N') , (1999,'3/1/2016','es-MX','lbxAddlSpecificRateSource',N'Fuente de Indice Específica','N','N') , (1999,'3/1/2016','es-MX','lbxAddlSpecificRateSource1',N'Fuente.Índice específica adicional','N','N') , (1999,'3/1/2016','es-MX','lbxAddlTableList',N'Información Adicional','N','N') , (1999,'9/6/2016','es-MX','lbxAddNote',N'Agregar Notas','N','N') , (1999,'9/11/2015','es-MX','lbxAddNoteTitle',N'Agregar Nota','N','N') , (1999,'9/6/2016','es-MX','lbxAddress',N'Cargar Dirección','N','N') , (1999,'9/7/2016','es-MX','lbxAddress1',N'Dirección','N','N') , (1999,'9/7/2016','es-MX','lbxAddress2',N'Dirección 2','N','N') , (1999,'9/7/2016','es-MX','lbxAddress3',N'Dirección 3','N','N') , (1999,'9/7/2016','es-MX','lbxAddress4',N'Dirección 4','N','N') , (1999,'9/7/2016','es-MX','lbxAddressInformation',N'Informacion de la Dirección','N','N') , (1999,'9/6/2016','es-MX','lbxAddressLine1',N'Dirección 1','N','N') , (1999,'9/6/2016','es-MX','lbxAddressLine2',N'Dirección 2','N','N') , (1999,'9/6/2016','es-MX','lbxAddressLine3',N'Dirección 3','N','N') , (1999,'9/6/2016','es-MX','lbxAddressLine4',N'Dirección 4','N','N') , (1999,'9/6/2016','es-MX','lbxAddressOptions',N'Opciones de Búsqueda Por Dirección','N','N') , (1999,'3/1/2016','es-MX','lbxAddressType',N'Tipo de Domicilio','N','N') , (1999,'2/24/2010','es-MX','lbxAddRow',N'Añadir Fila','N','N') , (1999,'9/6/2016','es-MX','lbxAddrRequestCode',N'Código de la Petición de la Dirección','N','N') , (1999,'2/15/2016','es-MX','lbxAddSystemMessagesAdditionalComments',N'Comentarios Adicionales:','N','N') , (1999,'2/15/2016','es-MX','lbxAddSystemMessagesDescription',N'Mensaje:','N','N') , (1999,'2/15/2016','es-MX','lbxAddSystemMessagesShareDuration',N'Compartir Duración:','N','N') , (1999,'3/1/2016','es-MX','lbxADDutyRate',N'Tasa de Impuesto AD','N','N') , (1999,'3/1/2016','es-MX','lbxADDutyRate1',N'Índice de Impuesto AD','N','N') , (1999,'3/1/2016','es-MX','lbxADDutyRateSource',N'Fuente de Tasa de Impuesto AD','N','N') , (1999,'3/1/2016','es-MX','lbxADDutyRateSource1',N'Fuente de Indice de Impuesto AD','N','N') , (1999,'3/1/2016','es-MX','lbxAdjProductNum',N'Número de Producto Adjunto','N','N') , (1999,'3/1/2016','es-MX','lbxAdjReceiptDocID',N'ID del Documento de Salida Adjunto','N','N') , (1999,'3/1/2016','es-MX','lbxAdministrative',N'Administrativo','N','N') , (1999,'3/1/2016','es-MX','lbxAdministrativeFirstHalf',N'Totales Administrativos','N','N') , (1999,'3/1/2016','es-MX','lbxAdministrativeFirstHalfExample',N'Primera mitad','N','N') , (1999,'3/1/2016','es-MX','lbxAdministrativeSecondHalf',N'Totales Administrativos','N','N') , (1999,'3/1/2016','es-MX','lbxAdministrativeSecondHalfExample',N'Segunda Mitad','N','N') , (1999,'3/1/2016','es-MX','lbxAdministrativesSecondHalf',N'Totales Administrativos','N','N') , (1999,'3/1/2016','es-MX','lbxAdValoremRate',N'Tasa AdValorem','N','N') , (1999,'3/1/2016','es-MX','lbxAdValoremRate1',N'AdValorem','N','N') , (1999,'3/1/2016','es-MX','lbxAdValoremRateSource',N'Fuente Tasa AdValorem','N','N') , (1999,'3/1/2016','es-MX','lbxAdValoremRateSource1',N'Fuente de AdValorem','N','N') , (1999,'9/6/2016','es-MX','lbxAESITN',N'Código del AES para SED','N','N') , (1999,'9/6/2016','es-MX','lbxAESType',N'AES - Tipo de Entry','N','N') , (1999,'9/6/2016','es-MX','lbxAffiliated?',N'Afiliados','N','N') , (1999,'2/15/2016','es-MX','lbxAgencies',N'Agencias','N','N') , (1999,'3/1/2016','es-MX','lbxAgencyCode',N'Código de agencia','N','N') , (1999,'3/1/2016','es-MX','lbxAgentCompany',N'Agente Aduanal *','N','N') , (1999,'3/1/2016','es-MX','lbxAgingEndDate',N'Mostrar pedimentos con balances abiertos','N','N') , (1999,'2/26/2010','es-MX','lbxAgreement',N'Tratado de Libre Comercio','N','N') , (1999,'9/11/2015','es-MX','lbxAgreementSelectTitle',N'Agregar/Copiar Tratado(s) Existente(s)','N','N') , (1999,'9/6/2016','es-MX','lbxAirWaybill',N'Hoja de ruta aérea (Número de rastreo)','N','N') , (1999,'3/1/2016','es-MX','lbxAll',N'Todo','N','N') , (1999,'9/6/2016','es-MX','lbxAllocatedQty',N'Distribuido','N','N') , (1999,'9/6/2016','es-MX','lbxAllocatedValue',N'Distribuido','N','N') , (1999,'3/1/2016','es-MX','lbxAllowedQty',N'Cantidad Permitida','N','N') , (1999,'3/1/2016','es-MX','lbxAllowedValue',N'Valor Permitido','N','N') , (1999,'9/6/2016','es-MX','lbxAllowExtract',N'Permitir extracto','N','N') , (1999,'3/1/2016','es-MX','lbxAltCurrencyCode',N'Código de Moneda Alt','N','N') , (1999,'3/1/2016','es-MX','lbxAltCurrencyCode1',N'Código de Moneda','N','N') , (1999,'3/1/2016','es-MX','lbxAltCurrencyCodeSource',N'Fuente Código de Moneda Alt','N','N') , (1999,'3/1/2016','es-MX','lbxAltHtsAddlRptQtyUom',N'Fracción Alterna de Unidad de Medida Adicional','N','N') , (1999,'3/1/2016','es-MX','lbxAltHtsDesc',N'Descripción alternativa','N','N') , (1999,'3/1/2016','es-MX','lbxAltHtsIndex',N'Indice HTS Alterno *','N','N') , (1999,'3/1/2016','es-MX','lbxAltHtsNum',N'Fracción Alterna','N','N') , (1999,'3/1/2016','es-MX','lbxAltHTSNum2',N'Fracción Alterna 2','N','N') , (1999,'3/1/2016','es-MX','lbxAltHtsRptQtyUom',N'Fracción Alterna de Unidad de Medida','N','N') , (1999,'3/1/2016','es-MX','lbxAltProductDesc',N'Descripción Alterna del Producto *','N','N') , (1999,'3/1/2016','es-MX','lbxAltProductDesc2',N'Descripción Alterna del Producto 2','N','N') , (1999,'3/1/2016','es-MX','lbxAltValue',N'Valor Alt','N','N') , (1999,'3/1/2016','es-MX','lbxAltValue1',N'Valor Unitario Total 1','N','N') , (1999,'3/1/2016','es-MX','lbxAltValue2',N'Valor Alt 2','N','N') , (1999,'3/1/2016','es-MX','lbxAltValue21',N'Valor Unitario Total 2','N','N') , (1999,'3/1/2016','es-MX','lbxAltValue2Source',N'Fuente Valor Alt 2','N','N') , (1999,'3/1/2016','es-MX','lbxAltValue2Source1',N'Fuente.2 Valor Materia Prima','N','N') , (1999,'3/1/2016','es-MX','lbxAltValueSource',N'Fuente Valor Alt','N','N') , (1999,'3/1/2016','es-MX','lbxAltValueSource1',N'Fuente.Valor Materia Prima','N','N') , (1999,'9/7/2016','es-MX','lbxAnalysis Run Date',N'Fecha en que corre el análisis','N','N') , (1999,'2/26/2010','es-MX','lbxAnalysisNo',N'Numero de Análisis','N','N') , (1999,'9/6/2016','es-MX','lbxAnalysisRuns',N'Cantidad de análisis corridos','N','N') , (1999,'9/6/2016','es-MX','lbxAnchorField',N'Campos por Agregar','N','N') , (1999,'4/8/2010','es-MX','lbxAndDates',N'Y','N','N') , (1999,'3/1/2016','es-MX','lbxAnnex30Flag',N'Bandera de Anexo30','N','N') , (1999,'3/1/2016','es-MX','lbxAnnex31DischgTariffs',N'Tarifas','N','N') , (1999,'3/1/2016','es-MX','lbxAnnex31Imports',N'Importes','N','N') , (1999,'9/6/2016','es-MX','lbxApplicationDate',N'Fecha de Aplicación','N','N') , (1999,'3/1/2016','es-MX','lbxApplicationErrorMessage',N'Error. Favor de contactar al administrador del sistema.','N','N') , (1999,'9/6/2016','es-MX','lbxApplicationNum',N'Número de Applicación','N','N') , (1999,'9/6/2016','es-MX','lbxApply_For',N'Por:','N','N') , (1999,'9/6/2016','es-MX','lbxApply_Search',N'Buscar:','N','N') , (1999,'9/6/2016','es-MX','lbxApplyDate',N'Fecha de Aplicación','N','N') , (1999,'9/6/2016','es-MX','lbxApplyTo',N'Aplicar a','N','N') , (1999,'9/6/2016','es-MX','lbxApprovalDate',N'Fecha de Aprovación','N','N') , (1999,'9/6/2016','es-MX','lbxApprovedQty',N'Aprovado','N','N') , (1999,'9/6/2016','es-MX','lbxApprovedValue',N'Aprovado','N','N') , (1999,'9/6/2016','es-MX','lbxArrivalDate',N'Fecha de llegada','N','N') , (1999,'3/1/2016','es-MX','lbxArrivalMOT',N'Llegada MdT','N','N') , (1999,'3/1/2016','es-MX','lbxArt65AttachDoc',N'Introduzca cada factura o documento comercial que se adjunta con el que numero asignado','N','N') , (1999,'3/1/2016','es-MX','lbxArt65Hdr',N'Articulo 65','N','N') , (1999,'3/1/2016','es-MX','lbxArt65HdrRow',N'El artículo 65 de la Ley Aduanera (conceptos que incluyen el valor de transacción)','N','N') , (1999,'3/1/2016','es-MX','lbxArt66DocAttached',N'Introduzca cada factura o documento comercial que se adjunta con el numero asignado','N','N') , (1999,'3/1/2016','es-MX','lbxArt66Hdr',N'Articulo 66','N','N') , (1999,'3/1/2016','es-MX','lbxArt66SectionHdr',N'II. c) y d) del artículo 66 de la Ley Aduanera (conceptos que no incluyen el valor de transacción)','N','N') , (1999,'3/1/2016','es-MX','lbxAssetDetails',N'Detalles de Activos','N','N') , (1999,'9/6/2016','es-MX','lbxAssign',N'Asignar','N','N') , (1999,'3/1/2016','es-MX','lbxAttachments',N'Adjuntos','N','N') , (1999,'9/11/2015','es-MX','lbxAttachmentUploadRWTitle',N'Añexar Documento de Soporte a los Items','N','N') , (1999,'3/1/2016','es-MX','lbxAttTxnValHdr',N'Adjuntos/Valor de Transaccion','N','N') , (1999,'9/6/2016','es-MX','lbxAuditDate',N'Fecha de Audición','N','N') , (1999,'9/6/2016','es-MX','lbxAuditNortes',N'Notas de Auditoría','N','N') , (1999,'9/6/2016','es-MX','lbxAuditNotes',N'Notas de la Audición','N','N') , (1999,'3/1/2016','es-MX','lbxAuthorization',N'Autorización','N','N') , (1999,'3/1/2016','es-MX','lbxAuthorizationCode',N'Acuse Electrónico','N','N') , (1999,'3/1/2016','es-MX','lbxAutorizationCode',N'Acuse Electrónico','N','N') , (1999,'2/15/2016','es-MX','lbxAvailableFTA',N'Tratados/TLC''s Disponibles','N','N') , (1999,'3/1/2016','es-MX','lbxBalances',N'Balances','N','N') , (1999,'3/1/2016','es-MX','lbxBalancesPermitID',N'Tipo de Permiso','N','N') , (1999,'3/1/2016','es-MX','lbxBankSignature',N'Banco','N','N') , (1999,'9/6/2016','es-MX','lbxBaseCurrency',N'Tu Moneda de Base - USD','N','N') , (1999,'9/6/2016','es-MX','lbxBaseCurrencyCodeList',N'Lista del código de moneda base','N','N') , (1999,'9/6/2016','es-MX','lbxBatchResults',N'Excluir los resultados del Lote','N','N') , (1999,'3/1/2016','es-MX','lbxBeginBalanceDate',N'Inicio','N','N') , (1999,'3/1/2016','es-MX','lbxBeginDate',N'Fecha de Inicio','N','N') , (1999,'3/1/2016','es-MX','lbxBeginningDate',N'Fecha de Inicio','N','N') , (1999,'3/1/2016','es-MX','lbxBeginReturnDate',N'Inicio','N','N') , (1999,'3/11/2010','es-MX','lbxBill',N'Cuenta','N','N') , (1999,'3/1/2016','es-MX','lbxBillOfLading',N'Guía de Carga','N','N') , (1999,'2/24/2010','es-MX','lbxBillofMaterials',N'Lista de Materiales:','N','N') , (1999,'9/6/2016','es-MX','lbxBillToAddressInfo',N'Información de Dirección','N','N') , (1999,'9/6/2016','es-MX','lbxBillToAddressLine1',N'Dirección 1','N','N') , (1999,'9/6/2016','es-MX','lbxBillToAddressLine2',N'Dirección 2','N','N') , (1999,'9/6/2016','es-MX','lbxBillToAddressLine3',N'Dirección 3','N','N') , (1999,'9/6/2016','es-MX','lbxBillToAddressLine4',N'Dirección 4','N','N') , (1999,'9/6/2016','es-MX','lbxBillToCity',N'Ciudad','N','N') , (1999,'9/6/2016','es-MX','lbxBillToCompanyName',N'Nombre de Compañía','N','N') , (1999,'9/6/2016','es-MX','lbxBillToContactEmail',N'E-mail','N','N') , (1999,'9/6/2016','es-MX','lbxBillToContactFax',N'Fáx','N','N') , (1999,'9/6/2016','es-MX','lbxBillToContactInfo',N'Información de Contacto','N','N') , (1999,'9/6/2016','es-MX','lbxBillToContactName',N'Nombre de Contacto','N','N') , (1999,'9/6/2016','es-MX','lbxBillToContactPhone',N'Teléfono','N','N') , (1999,'9/6/2016','es-MX','lbxBillToCountry',N'País','N','N') , (1999,'9/6/2016','es-MX','lbxBillToDPSInfo',N'Denied Party Screening','N','N') , (1999,'9/6/2016','es-MX','lbxBillToDPSResults',N'Resultados','N','N') , (1999,'9/6/2016','es-MX','lbxBillToDTS',N'Estado DPS','N','N') , (1999,'9/6/2016','es-MX','lbxBillToFederalId',N'ID Aduana','N','N') , (1999,'9/6/2016','es-MX','lbxBillToFederalIdType',N'Tipo de ID de Aduana','N','N') , (1999,'9/6/2016','es-MX','lbxBillToPostalCode',N'Codigo Postal','N','N') , (1999,'9/6/2016','es-MX','lbxBillToState',N'Estado / Provincia','N','N') , (1999,'9/6/2016','es-MX','lbxBillToType',N'Tipo de Compañía','N','N') , (1999,'2/15/2016','es-MX','lbxBindingRulings',N'Reglas de Clasificación','N','N') , (1999,'4/8/2010','es-MX','lbxBirthdate',N'Fecha de Cumpleaños','N','N') , (1999,'9/6/2016','es-MX','lbxBOM',N'Lista de Materiales','N','N') , (1999,'9/7/2016','es-MX','lbxBOM Count',N'Contador de Lista de Materiales','N','N') , (1999,'2/24/2010','es-MX','lbxBomIM',N'BIEN TERMINADO','N','N') , (1999,'2/24/2010','es-MX','lbxBomPC',N'COMPONENTES/ MATERIA PRIMA','N','N') , (1999,'3/1/2016','es-MX','lbxBrand',N'Marca','N','N') , (1999,'3/1/2016','es-MX','lbxBroker',N'Agente Comercial','N','N') , (1999,'9/6/2016','es-MX','lbxBroker Name',N'Nombre del Agente','N','N') , (1999,'3/1/2016','es-MX','lbxBrokerCURP',N'Agente comercial CURP','N','N') , (1999,'9/6/2016','es-MX','lbxBrokerErrors',N'Errores del Corredor','N','N') , (1999,'3/1/2016','es-MX','lbxBrokerName',N'Agente Comercial Nombre','N','N') , (1999,'9/6/2016','es-MX','lbxBrokerRemove',N'Remover','N','N') , (1999,'3/1/2016','es-MX','lbxbtnLinkExit',N'Salir','N','N') , (1999,'9/6/2016','es-MX','lbxbtxShowCalEndDate',N'Calendario','N','N') , (1999,'9/6/2016','es-MX','lbxbtxShowCalTxnStartDate',N'Calendario','N','N') , (1999,'9/11/2015','es-MX','lbxBuildDown',N'Build-Down%','N','N') , (1999,'9/11/2015','es-MX','lbxBuildUp',N'Build- UP %','N','N') , (1999,'9/6/2016','es-MX','lbxBusinessUnit',N'Importador de Registros','N','N') , (1999,'3/1/2016','es-MX','lbxBuyerSellerCountry',N'País de comprador/vendedor','N','N') , (1999,'3/1/2016','es-MX','lbxCaatNum',N'Numero de CAAT','N','N') , (1999,'3/1/2016','es-MX','lbxCalculated',N'Calculado','N','N') , (1999,'4/8/2010','es-MX','lbxCallSign',N'Recipiente de llamadas de Firmas','N','N') , (1999,'3/1/2016','es-MX','lbxCancel',N'Cancelar','N','N') , (1999,'9/6/2016','es-MX','lbxCancelButton',N'Cancelar','N','N') , (1999,'3/1/2016','es-MX','lbxCancelDetailsHeader',N'Detalles de Cancelación','N','N') , (1999,'3/1/2016','es-MX','lbxCanceledBy',N'Cancelado Por','N','N') , (1999,'3/1/2016','es-MX','lbxCanceledOn',N'Fecha/Hora de Cancelación','N','N') , (1999,'3/1/2016','es-MX','lbxCaProvince',N'Provincia canadiense','N','N') , (1999,'3/1/2016','es-MX','lbxCarrierID',N'ID Transportista','N','N') , (1999,'3/1/2016','es-MX','lbxCarrierName',N'Campo Ad.de Transporte','N','N') , (1999,'3/1/2016','es-MX','lbxCategory',N'Factura Categoria','N','N') , (1999,'9/6/2016','es-MX','lbxCBPSystemToQuery',N'CBP Sistema a Consulta','N','N') , (1999,'3/1/2016','es-MX','lbxcbxConsolidated',N'Es Consolidado','N','N') , (1999,'3/1/2016','es-MX','lbxcbxDefinitive',N'Es definitivo','N','N') , (1999,'3/1/2016','es-MX','lbxcbxOldView',N'Forma Original de Vista Trazada','N','N') , (1999,'3/1/2016','es-MX','lbxCert',N'Certificado TLC','N','N') , (1999,'2/26/2010','es-MX','lbxCertificate',N'Certificado/carta','N','N') , (1999,'9/11/2015','es-MX','lbxCertificatesRWTitle',N'Certificados Generados Previamente','N','N') , (1999,'9/11/2015','es-MX','lbxCertificatesTitle',N'Certificados','N','N') , (1999,'9/11/2015','es-MX','lbxCertTypes',N'Tipo de documento','N','N') , (1999,'9/6/2016','es-MX','lbxChapter',N'Capítulo','N','N') , (1999,'2/15/2016','es-MX','lbxChapterBxFields',N'Capítulos Seleccionados:','N','N') , (1999,'2/15/2016','es-MX','lbxChapterDescription',N'Capítulo/Descripción:','N','N') , (1999,'2/15/2016','es-MX','lbxChargeQuotasTab',N'Cupos','N','N') , (1999,'3/1/2016','es-MX','lbxCharges',N'Cargos','N','N') , (1999,'2/22/2010','es-MX','lbxCharValues',N'Valores','N','N') , (1999,'3/1/2016','es-MX','lbxCheckSum',N'Verificar Suma','N','N') , (1999,'4/7/2016','es-MX','lbxchkbxShowAllMarking',N'Mostrar Todos los Países','N','N') , (1999,'9/11/2015','es-MX','lbxChooseParty',N'Compañías Disponibles','N','N') , (1999,'9/6/2016','es-MX','lbxchxbxShowContentNews',N'Mostrar Las Actualizaciones del Govierno','N','N') , (1999,'4/8/2010','es-MX','lbxCity',N'Ciudad','N','N') , (1999,'3/1/2016','es-MX','lbxCityCode',N'Municipio','N','N') , (1999,'3/1/2016','es-MX','lbxCityFromCode',N'Código de la Ciudad','N','N') , (1999,'9/6/2016','es-MX','lbxClassification',N'Classificación','N','N') , (1999,'9/6/2016','es-MX','lbxClassificationNum',N'No. de Clasificación','N','N') , (1999,'9/6/2016','es-MX','lbxClassificationSearch',N'Buscar Clasificación','N','N') , (1999,'3/1/2016','es-MX','lbxClose',N'¿Usted está seguro que usted quiere cerrar este embarque?','N','N') , (1999,'3/1/2016','es-MX','lbxClose Invoices',N'Cerrar Factura','N','N') , (1999,'3/1/2016','es-MX','lbxClosingAuthorizationCode',N'Código de Autorización de Cerrado','N','N') , (1999,'4/7/2016','es-MX','lbxcmbxCultureCode_Input',N'Seleccionar el Lenguaje para la Descripción','N','N') , (1999,'4/7/2016','es-MX','lbxcmbxDestinationFilter_Input',N'Seleccionar o Ingresa un País','N','N') , (1999,'4/7/2016','es-MX','lbxcmbxStatusBarHSNumber_Input',N'Ingrese/Seleccione Fracción Arancelaria o Código de Referencia','N','N') , (1999,'4/7/2016','es-MX','lbxcmbxTariffSchedule_Input',N'Todos los Paises','N','N') , (1999,'9/6/2016','es-MX','lbxCollapsiblePanelMessage_pnlCountryOfDestinationFields',N'Not Translated','N','N') , (1999,'9/6/2016','es-MX','lbxColumnCount',N'Cuenta de Coumna','N','N') , (1999,'9/11/2015','es-MX','lbxComments',N'Comentarios','N','N') , (1999,'9/11/2015','es-MX','lbxCommentsTitle',N'Comentarios','N','N') , (1999,'3/1/2016','es-MX','lbxCommercialDescription',N'Descripción comercial','N','N') , (1999,'3/1/2016','es-MX','lbxCommercialValueCurrencyCode',N'Código de Moneda de Valor Comercial *','N','N') , (1999,'9/11/2015','es-MX','lbxCommunity',N'Comunidad/ Paises:','N','N') , (1999,'9/6/2016','es-MX','lbxcompAddress1',N'DomdeEmp 1','N','N') , (1999,'9/6/2016','es-MX','lbxcompAddress2',N'DomdeEmp 2','N','N') , (1999,'3/1/2016','es-MX','lbxCOMPANIA',N'COMPAÑIA','N','N') , (1999,'2/24/2010','es-MX','lbxCompany',N'Compañía','N','N') , (1999,'3/1/2016','es-MX','lbxCompanyCode',N'Clave de Planta','N','N') , (1999,'3/1/2016','es-MX','lbxCompanyCountry',N'País','N','N') , (1999,'3/1/2016','es-MX','lbxCompanyHdr',N'Empresa IMMEX o de Submanufactura','N','N') , (1999,'3/1/2016','es-MX','lbxCompanyID',N'ID de Compañía','N','N') , (1999,'9/6/2016','es-MX','lbxCompanyInformation',N'Información de la Compañia','N','N') , (1999,'4/8/2010','es-MX','lbxCompanyName',N'Utiliza Nombre de la Compañía','N','N') , (1999,'3/1/2016','es-MX','lbxCompanySCAC_Company',N'Compañía SCAC','N','N') , (1999,'3/1/2016','es-MX','lbxCompanyState',N'Utiliza Estado de la Compañía','N','N') , (1999,'9/7/2016','es-MX','lbxCompanyType',N'Tipo de Compañía','N','N') , (1999,'3/1/2016','es-MX','lbxCompared',N'Cotejo','N','N') , (1999,'3/1/2016','es-MX','lbxCompensations',N'Compensaciones','N','N') , (1999,'9/6/2016','es-MX','lbxcompExtNum',N'NumExtdeEmp','N','N') , (1999,'9/6/2016','es-MX','lbxcompIntNum',N'NumIntdeEmp','N','N') , (1999,'3/1/2016','es-MX','lbxCompliments',N'Identificadores','N','N') , (1999,'9/6/2016','es-MX','lbxComponentBalanceAudit',N'Auditoria del Balance de Componentes','N','N') , (1999,'9/6/2016','es-MX','lbxConcatSeparator',N'Separador concat','N','N') , (1999,'9/6/2016','es-MX','lbxConcatSeparator (Used when Formatting is False, XML only)',N'Separador Concat (Usado cuando el formato es falso, solo en Xml','N','N') , (1999,'3/1/2016','es-MX','lbxConfirm',N'Confirmar','N','N') , (1999,'3/1/2016','es-MX','lbxConfirmation',N'¿Usted está seguro que usted quiere borrar este artículo?','N','N') , (1999,'9/6/2016','es-MX','lbxConsignee',N'Consignatario','N','N') , (1999,'9/6/2016','es-MX','lbxConsolidateBy',N'Consolidado por','N','N') , (1999,'3/1/2016','es-MX','lbxConsolidatedFlag',N'Consolidado','N','N') , (1999,'3/1/2016','es-MX','lbxConsolidatedSignature',N'Firma consolidada','N','N') , (1999,'3/1/2016','es-MX','lbxConstanciaDate',N'Fecha de constancia','N','N') , (1999,'3/1/2016','es-MX','lbxConstanciaNum',N'Número de constancia','N','N') , (1999,'3/1/2016','es-MX','lbxConstanciaPeriod',N'Periodo de constancia','N','N') , (1999,'3/1/2016','es-MX','lbxContactName',N'Nombre','N','N') , (1999,'3/1/2016','es-MX','lbxContainer',N'Contenedor','N','N') , (1999,'3/1/2016','es-MX','lbxContainerHeader',N'Contenedor','N','N') , (1999,'3/1/2016','es-MX','lbxContainerNum',N'Número de caja','N','N') , (1999,'3/1/2016','es-MX','lbxContainers',N'Contenedores','N','N') , (1999,'3/1/2016','es-MX','lbxContainerSealNum',N'Número de Sello','N','N') , (1999,'3/1/2016','es-MX','lbxContainerSealNum2',N'Número de Sello 2','N','N') , (1999,'3/1/2016','es-MX','lbxContainerSealNum3',N'Número de Sello 3','N','N') , (1999,'3/1/2016','es-MX','lbxContainerType',N'Tipo de Contenedor','N','N') , (1999,'3/1/2016','es-MX','lbxContainerTypeLiteral',N'Tipo de Contenedor','N','N') , (1999,'2/15/2016','es-MX','lbxContentAvailability',N'Disponibilidad de Contenido','N','N') , (1999,'9/6/2016','es-MX','lbxContentWebServicesType',N'Tipo de contenido/servicio web','N','N') , (1999,'9/6/2016','es-MX','lbxContentWSType',N'Tipo de contenido WS','N','N') , (1999,'9/11/2015','es-MX','lbxContVerify',N'(para Verificación)','N','N') , (1999,'9/6/2016','es-MX','lbxConvertCurrencyCodeList',N'Lista de conversión de código de moneda','N','N') , (1999,'9/6/2016','es-MX','lbxConveyName',N'Nombre del transporte','N','N') , (1999,'9/6/2016','es-MX','lbxCOONum',N'Número de certificado de origen','N','N') , (1999,'9/6/2016','es-MX','lbxCOOType',N'Tipo de certificado','N','N') , (1999,'9/8/2016','es-MX','lbxCopyAgreement',N'Copiar artículos desde:','N','N') , (1999,'9/11/2015','es-MX','lbxCopyCompany',N'Compañía','N','N') , (1999,'9/11/2015','es-MX','lbxCopyDates',N'Fechas','N','N') , (1999,'9/11/2015','es-MX','lbxCopyFTARWTitle',N'Seleciona Tratado','N','N') , (1999,'9/11/2015','es-MX','lbxCopyName',N'Nombre','N','N') , (1999,'9/11/2015','es-MX','lbxCopyRequestRWTitle',N'Copiar Solicitud','N','N') , (1999,'9/11/2015','es-MX','lbxCopyRWTitle',N'Copiar','N','N') , (1999,'2/22/2010','es-MX','lbxCountry',N'Pais','N','N') , (1999,'9/6/2016','es-MX','lbxCountry Ship To:',N'País a enviar:','N','N') , (1999,'2/15/2016','es-MX','lbxCountryBxFields',N'Países Seleccionados:','N','N') , (1999,'9/6/2016','es-MX','lbxCountryCode',N'Código de Pais','N','N') , (1999,'9/6/2016','es-MX','lbxCountryCodeContentGuid',N'GUID de contenido de código de país','N','N') , (1999,'2/15/2016','es-MX','lbxCountryCustomsDocuments',N'Documentos Aduanales','N','N') , (1999,'2/15/2016','es-MX','lbxCountryFilter',N'País:','N','N') , (1999,'2/15/2016','es-MX','lbxCountryFinancialDocuments',N'Documentos Financieros','N','N') , (1999,'3/1/2016','es-MX','lbxCountryFromCode',N'País de Origen *','N','N') , (1999,'2/15/2016','es-MX','lbxCountryLevelControls',N'Controles a Nivel País','N','N') , (1999,'2/15/2016','es-MX','lbxCountryOfDestination',N'País de Destino','N','N') , (1999,'2/15/2016','es-MX','lbxCountryOfDestinationTitleFields',N'Seleccionar país de destino','N','N') , (1999,'2/15/2016','es-MX','lbxCountryOfExport',N'País de Exportación','N','N') , (1999,'2/15/2016','es-MX','lbxCountryOfImport',N'País de Importación','N','N') , (1999,'2/15/2016','es-MX','lbxCountryOfOrigin',N'País de Origen','N','N') , (1999,'3/1/2016','es-MX','lbxCountryOfOrigin1',N'País de Origen','N','N') , (1999,'2/15/2016','es-MX','lbxCountryOfOriginDestination',N'Pais de Origen/ Filtro del Destino','N','N') , (1999,'3/1/2016','es-MX','lbxCountryOfOriginSource',N'Fuente País de Origen','N','N') , (1999,'3/1/2016','es-MX','lbxCountryOfOriginSource1',N'Fuente de País de Origen','N','N') , (1999,'2/15/2016','es-MX','lbxCountryOfOriginTitleFields',N'Seleccione su país de origen','N','N') , (1999,'3/1/2016','es-MX','lbxCountryShipTo',N'Enviar a Pais:','N','N') , (1999,'2/15/2016','es-MX','lbxCountryThreat',N'Amenaza de País','N','N') , (1999,'2/15/2016','es-MX','lbxCountryThreatEmpty',N'Información de Amenaza de País No Disponible','N','N') , (1999,'2/15/2016','es-MX','lbxCountryTransportationDocuments',N'Documentos de Transporte','N','N') , (1999,'3/1/2016','es-MX','lbxCOVE User',N'Usuario de COVE','N','N') , (1999,'3/1/2016','es-MX','lbxCOVECertFlag',N'Certificado COVE','N','N') , (1999,'3/1/2016','es-MX','lbxCOVEDocumentNum',N'Número de documento','N','N') , (1999,'3/1/2016','es-MX','lbxCOVEMessage',N'Mensaje COVE','N','N') , (1999,'3/1/2016','es-MX','lbxCOVEOperationNum',N'Número de Operacion COVE','N','N') , (1999,'3/1/2016','es-MX','lbxCOVEUser',N'Usario COVE','N','N') , (1999,'9/11/2015','es-MX','lbxCreateAccountant',N'Nombre del Contador','N','N') , (1999,'9/11/2015','es-MX','lbxCreateCompanyName',N'Nombre de Compañía','N','N') , (1999,'9/11/2015','es-MX','lbxCreateCurrency',N'Moneda','N','N') , (1999,'9/11/2015','es-MX','lbxCreateExportCountry',N'País de Exportación','N','N') , (1999,'9/6/2016','es-MX','lbxCreateFrom',N'Crear de:','N','N') , (1999,'9/11/2015','es-MX','lbxCreateManagingDirector',N'Nombre del Director','N','N') , (1999,'9/11/2015','es-MX','lbxCreatePhoneNumber',N'No. Telefonico del Generador','N','N') , (1999,'9/11/2015','es-MX','lbxCreateUENNo',N'Identificador de Entidad/No. UEN','N','N') , (1999,'9/11/2015','es-MX','lbxCreateUnitCount',N'Conteo de Unidades','N','N') , (1999,'3/1/2016','es-MX','lbxCSA',N'Analisis de Busqueda actual','N','N') , (1999,'3/1/2016','es-MX','lbxCSC',N'Criterio de Busqueda actual','N','N') , (1999,'9/6/2016','es-MX','lbxCtrlClickToSelectMultiple',N'Ctrl+Clic Para Seleccionar Múltiples Artículos','N','N') , (1999,'2/15/2016','es-MX','lbxCulture',N'Idioma Actual:','N','N') , (1999,'2/15/2016','es-MX','lbxCultureCode',N'Descripción/Controles/Notas de Idioma','N','N') , (1999,'2/15/2016','es-MX','lbxCultureCode1',N'Código de Idioma:','N','N') , (1999,'9/6/2016','es-MX','lbxCultureCodeList',N'Lista de códigos de cultura','N','N') , (1999,'9/6/2016','es-MX','lbxCultureCodes',N'Cultura de descripción','N','N') , (1999,'9/11/2015','es-MX','lbxCumulation',N'Acumulación aplicada con','N','N') , (1999,'9/11/2015','es-MX','lbxCumulationContent',N'Contenido Acumulado','N','N') , (1999,'9/11/2015','es-MX','lbxCumulationRWTitle',N'Paises','N','N') , (1999,'2/15/2016','es-MX','lbxCurrency',N'Códigos de Divisas Disponibles:','N','N') , (1999,'3/1/2016','es-MX','lbxCurrencyCode',N'Código Moneda *','N','N') , (1999,'3/1/2016','es-MX','lbxCurrencyCode1',N'Código de Moneda','N','N') , (1999,'3/1/2016','es-MX','lbxCurrencyCodeSource',N'Fuente de Código Moneda','N','N') , (1999,'3/1/2016','es-MX','lbxCurrencyCodeSource1',N'Código de Fuente de Moneda','N','N') , (1999,'2/15/2016','es-MX','lbxCurrencyEmpty',N'Información de Divisa No Disponible.','N','N') , (1999,'3/1/2016','es-MX','lbxCurrencyValue',N'Valor de Moneda','N','N') , (1999,'2/15/2016','es-MX','lbxCurrentDateDataDisplay',N'Las Fechas se muestran usando:','N','N') , (1999,'9/6/2016','es-MX','lbxCurrentEntry',N'Entrada Actual','N','N') , (1999,'9/6/2016','es-MX','lbxCurrentLicense',N'Licencia Actual','N','N') , (1999,'9/11/2015','es-MX','lbxCurrentProduct',N'Seleccionar Producto','N','N') , (1999,'9/6/2016','es-MX','lbxCurrentRequestName',N'Solicitud Actual','N','N') , (1999,'9/11/2015','es-MX','lbxCurrentRequstName',N'Solicitud Actual','N','N') , (1999,'3/1/2016','es-MX','lbxCurrentSearch',N'Busqueda actual','N','N') , (1999,'9/8/2015','es-MX','lbxCurrentShipment',N'Embarque Actual','N','N') , (1999,'3/1/2016','es-MX','lbxCurrentYearForeignInvestment',N'Año Actual','N','N') , (1999,'9/6/2016','es-MX','lbxCustodialBondNum',N'Número de enlace de custodia del grupo de entrega','N','N') , (1999,'9/11/2015','es-MX','lbxCustomerGridTitle',N'Clientes','N','N') , (1999,'3/1/2016','es-MX','lbxCustoms',N'Aduana','N','N') , (1999,'3/1/2016','es-MX','lbxCustomsFilingLocation',N'Aduana, Ubicación, Archivos','N','N') , (1999,'3/1/2016','es-MX','lbxCustomsID',N'ID frontera','N','N') , (1999,'3/1/2016','es-MX','lbxCustomsImportExportLocation',N'Aduanas Import / Export Ubicación','N','N') , (1999,'3/1/2016','es-MX','lbxCustomsIO',N'Aduana E/S','N','N') , (1999,'3/1/2016','es-MX','lbxCustomsLocation',N'Aduana','N','N') , (1999,'3/1/2016','es-MX','lbxCustomsSection',N'Sección de Aduana','N','N') , (1999,'3/1/2016','es-MX','lbxCustomsTransportation',N'Aduana & Transporte','N','N') , (1999,'3/1/2016','es-MX','lbxCutoffDate',N'Fecha de Corte','N','N') , (1999,'3/1/2016','es-MX','lbxCVCaseNumber',N'Número de Caja CV','N','N') , (1999,'3/1/2016','es-MX','lbxCVCaseNumber1',N'No. Caso CV','N','N') , (1999,'3/1/2016','es-MX','lbxCVCaseNumberSource',N'Fuente Número de Caja CV','N','N') , (1999,'3/1/2016','es-MX','lbxCVCaseNumberSource1',N'Fuente No.Caso CV','N','N') , (1999,'3/1/2016','es-MX','lbxCVDutyRate',N'Tasa de Impuesto CV','N','N') , (1999,'3/1/2016','es-MX','lbxCVDutyRate1',N'Índice de Impuesto CV','N','N') , (1999,'3/1/2016','es-MX','lbxCVDutyRateSource',N'Fuente Tasa de Impuesto CV','N','N') , (1999,'3/1/2016','es-MX','lbxCVDutyRateSource1',N'Fuente de Indice de impuesto CV','N','N') , (1999,'9/6/2016','es-MX','lbxDashboardSettings',N'Conguración de tablero de mando','N','N') , (1999,'9/6/2016','es-MX','lbxDataSource',N'Fuente de Datos','N','N') , (1999,'9/6/2016','es-MX','lbxDataSourceNotes',N'Notas de la Fuente de Datos','N','N') , (1999,'3/1/2016','es-MX','lbxDate',N'Fecha programada','N','N') , (1999,'3/1/2016','es-MX','lbxDATE FORMAT',N'FORMATO DE FECHA','N','N') , (1999,'3/1/2016','es-MX','lbxDateFormat',N'Formato de Fecha','N','N') , (1999,'9/6/2016','es-MX','lbxDateOfEntry',N'Fecha de entrada de la llegada','N','N') , (1999,'9/11/2015','es-MX','lbxDateRange',N'Rango de Fecha','N','N') , (1999,'3/1/2016','es-MX','lbxDates',N'Fechas','N','N') , (1999,'9/6/2016','es-MX','lbxDateSaved',N'Fecha Almacenada','N','N') , (1999,'3/1/2016','es-MX','lbxDatesByDocumentCodes',N'Fechas por Código de Documentos','N','N') , (1999,'9/11/2015','es-MX','lbxDateSent',N'Fecha de Envio:','N','N') , (1999,'3/1/2016','es-MX','lbxDateTimeFormat',N'Formato de Hora','N','N') , (1999,'2/26/2010','es-MX','lbxDateValues',N'Seleccionar Fecha de','N','N') , (1999,'3/1/2016','es-MX','lbxDays',N'Numero de dias','N','N') , (1999,'3/1/2016','es-MX','lbxDaysToChangePassword',N'Días requeridos para cambiar contraseña','N','N') , (1999,'3/1/2016','es-MX','lbxdd Product Num',N'Número de Producto','N','N') , (1999,'9/6/2016','es-MX','lbxdd Report Type',N'Tipo de reporte','N','N') , (1999,'3/1/2016','es-MX','lbxddProductNum',N'Número de Producto','N','N') , (1999,'9/6/2016','es-MX','lbxddReportType',N'Tipo de reporte','N','N') , (1999,'9/6/2016','es-MX','lbxDeclarationUCR',N'Mes de DFS','N','N') , (1999,'3/1/2016','es-MX','lbxDeclaredGrossWeight',N'Peso Bruto','N','N') , (1999,'9/6/2016','es-MX','lbxdefault',N'Como el plano standard de este tablero de mando','N','N') , (1999,'3/1/2016','es-MX','lbxDefaultCulture',N'Idioma por default','N','N') , (1999,'9/6/2016','es-MX','lbxDefaultOrderBy',N'Ordenar por','N','N') , (1999,'9/6/2016','es-MX','lbxDefaults',N'Valores de Transacción Estandard','N','N') , (1999,'3/1/2016','es-MX','lbxDefaultSourcesConfirmation',N'Está seguro de que quiere omitir todas las fuentes de este registro? (default)','N','N') , (1999,'3/1/2016','es-MX','lbxDeleteConfirmation',N'Está seguro de que quiere eliminar este registro?','N','N') , (1999,'3/1/2016','es-MX','lbxDeletedFlag',N'Bandera de Eliminacion','N','N') , (1999,'3/1/2016','es-MX','lbxDeleteMessage',N'Está Usted seguro usted desea suprimir este expediente','N','N') , (1999,'3/1/2016','es-MX','lbxDelivery Num',N'Número de Entrega','N','N') , (1999,'9/6/2016','es-MX','lbxDeliveryTicketNum',N'Número de entrega de ticket','N','N') , (1999,'9/11/2015','es-MX','lbxDeMinimis',N'De Minimis','N','N') , (1999,'3/1/2016','es-MX','lbxDepartureMOT',N'Salida MdT','N','N') , (1999,'4/8/2010','es-MX','lbxDescription',N'Descripción','N','N') , (1999,'2/15/2016','es-MX','lbxDescriptionSearchType',N'Descripción Tipos de búsqueda','N','N') , (1999,'9/6/2016','es-MX','lbxDescriptionTypeCode',N'Código de tipo de descripción','N','N') , (1999,'2/15/2016','es-MX','lbxDestinationCountry',N'País de destino:','N','N') , (1999,'3/1/2016','es-MX','lbxDestinationFile',N'Tabla de Destino','N','N') , (1999,'3/1/2016','es-MX','lbxDestinationOrigin',N'Destino/Origen','N','N') , (1999,'3/1/2016','es-MX','lbxDestOrigin',N'Destino/Origen','N','N') , (1999,'3/1/2016','es-MX','lbxDetail',N'Detalles','N','N') , (1999,'9/11/2015','es-MX','lbxDetailAssignment',N'Asignado A','N','N') , (1999,'9/11/2015','es-MX','lbxDetailCompany',N'Compañía','N','N') , (1999,'9/11/2015','es-MX','lbxDetailDates',N'Fechas','N','N') , (1999,'3/1/2016','es-MX','lbxDetailHTS',N'Número de Fracción','N','N') , (1999,'3/1/2016','es-MX','lbxDetailMake',N'Brand','N','N') , (1999,'9/6/2016','es-MX','lbxDetails',N'Detalles','N','N') , (1999,'9/11/2015','es-MX','lbxDetailStatus',N'Estatus','N','N') , (1999,'9/11/2015','es-MX','lbxDirectLabour',N'Trabajo Directo','N','N') , (1999,'9/11/2015','es-MX','lbxDirectOverhead',N'Gastos Generales Directos','N','N') , (1999,'3/1/2016','es-MX','lbxDischarges',N'Descargos','N','N') , (1999,'3/1/2016','es-MX','lbxDischargesBeginDate',N'Fecha de Inicio','N','N') , (1999,'3/1/2016','es-MX','lbxDischargesEndDate',N'Fecha Final','N','N') , (1999,'3/1/2016','es-MX','lbxDischargesPermitID',N'Tipo de Permiso','N','N') , (1999,'3/1/2016','es-MX','lbxDisplay',N'Mostrar','N','N') , (1999,'3/1/2016','es-MX','lbxDisplayColumns',N'Columnas a mostrar','N','N') , (1999,'9/6/2016','es-MX','lbxDisplayFormatString',N'Mostrar formato de cadena','N','N') , (1999,'3/1/2016','es-MX','lbxDocAccessType',N'Tipo de acceso','N','N') , (1999,'9/11/2015','es-MX','lbxDocGridTitle',N'Documentos','N','N') , (1999,'9/6/2016','es-MX','lbxDockOrder',N'Número de orden de consulta','N','N') , (1999,'9/11/2015','es-MX','lbxDocRWTitle',N'Lista de Documentos','N','N') , (1999,'9/6/2016','es-MX','lbxDocType',N'Tipo de Documento','N','N') , (1999,'9/6/2016','es-MX','lbxDocumentAnalyzer',N'Analizador de Documentos','N','N') , (1999,'3/1/2016','es-MX','lbxDocumentCode',N'Código de documento','N','N') , (1999,'3/1/2016','es-MX','lbxDocumentCodes',N'Código de Documentos','N','N') , (1999,'2/15/2016','es-MX','lbxDocumentContacts',N'Información de Contactos','N','N') , (1999,'2/15/2016','es-MX','lbxDocumentDetail',N'Detalle de Documento','N','N') , (1999,'2/15/2016','es-MX','lbxDocumentDetailTab',N'Detalle de Documento','N','N') , (1999,'9/6/2016','es-MX','lbxDocumentNote',N'Nota','N','N') , (1999,'2/15/2016','es-MX','lbxDocumentNotes',N'Notas','N','N') , (1999,'2/15/2016','es-MX','lbxDocumentSamples',N'Ejemplos','N','N') , (1999,'2/15/2016','es-MX','lbxDocumentsMessage',N'No todos los Documentos pueden ser requeridos, algunos sólo pueden ser necesarios en base a la descripción del producto.','N','N') , (1999,'9/6/2016','es-MX','lbxDocumentTitle',N'Titulo','N','N') , (1999,'3/1/2016','es-MX','lbxDocumentType',N'Documento','N','N') , (1999,'3/1/2016','es-MX','lbxDollarValue',N'Valor de Dólar','N','N') , (1999,'3/1/2016','es-MX','lbxDOTIndicator',N'Indicador del Dept. de Transporte','N','N') , (1999,'3/1/2016','es-MX','lbxDOTIndicator1',N'Indicador DOT','N','N') , (1999,'9/6/2016','es-MX','lbxDPS',N'Chequeo de Entidades Denegadas','N','N') , (1999,'9/7/2016','es-MX','lbxDPSInformation',N'Información de Monitoreo de Personas y Entidades Prohibidas','N','N') , (1999,'9/7/2016','es-MX','lbxDPSSearchFlag',N'Bandera de busqueda de Monitoreo de Personas y Entidades Prohibidas','N','N') , (1999,'9/7/2016','es-MX','lbxDPSSearchName',N'Busqueda de nombre de Monitoreo de Personas y Entidades Prohibidas','N','N') , (1999,'3/1/2016','es-MX','lbxDriverName',N'Nombre de Chofer','N','N') , (1999,'3/1/2016','es-MX','lbxdrplstCustomsLocation',N'Aduana','N','N') , (1999,'3/1/2016','es-MX','lbxdrpSQLTemplate',N'Seleccione Plantilla','N','N') , (1999,'3/1/2016','es-MX','lbxDTSMatchFlag',N'Bandera Correspondiente','N','N') , (1999,'4/8/2010','es-MX','lbxDTSSearchFlag',N'Bandera de Búqueda de DTS','N','N') , (1999,'9/11/2015','es-MX','lbxDueDate',N'Fecha prevista:','N','N') , (1999,'3/1/2016','es-MX','lbxDummyPedimentoNumber',N'Número de Pedimento Ficticio:','N','N') , (1999,'3/1/2016','es-MX','lbxDuties',N'Impuestos','N','N') , (1999,'3/1/2016','es-MX','lbxDutiesByDate',N'Impuestos por Fechas','N','N') , (1999,'3/11/2010','es-MX','lbxDuty',N'Arancel','N','N') , (1999,'3/1/2016','es-MX','lbxDutyAmount',N'Cantidad de Impuestos','N','N') , (1999,'3/1/2016','es-MX','lbxDutyAmountUsed',N'Cantidad de Impuesto','N','N') , (1999,'3/1/2016','es-MX','lbxDutyRate',N'Tarifa de Impuesto','N','N') , (1999,'3/1/2016','es-MX','lbxDutyRateTypeLiteral',N'Tipo de Tarifa de Impuesto','N','N') , (1999,'9/11/2015','es-MX','lbxECCompanyAddress1',N'Dirección:','N','N') , (1999,'9/11/2015','es-MX','lbxECCompanyAddress2',N'Dirección(cont):','N','N') , (1999,'9/11/2015','es-MX','lbxECCompanyCity',N'Ciudad:','N','N') , (1999,'9/11/2015','es-MX','lbxECCompanyCountry',N'País:','N','N') , (1999,'9/11/2015','es-MX','lbxECCompanyName',N'Nombre de Compañía:','N','N') , (1999,'9/11/2015','es-MX','lbxECCompanyPostalCode',N'Codigo Postal:','N','N') , (1999,'9/11/2015','es-MX','lbxECCompanyState',N'Estado/Provincia:','N','N') , (1999,'9/11/2015','es-MX','lbxECContactEmail',N'Coreo de Contacto:','N','N') , (1999,'9/11/2015','es-MX','lbxECContactFax',N'Fax de Contacto:','N','N') , (1999,'9/11/2015','es-MX','lbxECContactName',N'Nombre de Contacto:','N','N') , (1999,'9/11/2015','es-MX','lbxECContactPhone',N'Telefono de Contacto:','N','N') , (1999,'9/11/2015','es-MX','lbxECContactTaxID',N'ID de Tarifa:','N','N') , (1999,'9/11/2015','es-MX','lbxECContactTitle',N'Titulo de Contacto:','N','N') , (1999,'2/15/2016','es-MX','lbxECN',N'ECN Control de Exportaciones / Descripción','N','N') , (1999,'2/15/2016','es-MX','lbxECNFilter',N'Filtro de Número de ECN','N','N') , (1999,'3/1/2016','es-MX','lbxEdit Mode',N'Modo de Edición','N','N') , (1999,'3/1/2016','es-MX','lbxEditAddress1',N'Dirección 1','N','N') , (1999,'3/1/2016','es-MX','lbxEditAddress2',N'Dirección 2','N','N') , (1999,'3/1/2016','es-MX','lbxEditAddress3',N'Dirección 3','N','N') , (1999,'3/1/2016','es-MX','lbxEditAddress4',N'Dirección 4','N','N') , (1999,'3/1/2016','es-MX','lbxEditCity',N'Ciudad *','N','N') , (1999,'3/1/2016','es-MX','lbxEditCompanyName',N'Nombre de la Compañia','N','N') , (1999,'3/1/2016','es-MX','lbxEditContact',N'Editar Contacto','N','N') , (1999,'3/1/2016','es-MX','lbxEditContactName',N'Nombre *','N','N') , (1999,'3/1/2016','es-MX','lbxEditContactTitle',N'Titulo *','N','N') , (1999,'3/1/2016','es-MX','lbxEditCountry',N'País *','N','N') , (1999,'3/1/2016','es-MX','lbxEditEmail',N'Correo Electronico *','N','N') , (1999,'3/1/2016','es-MX','lbxEditEmailAddress',N'Correo Electronico','N','N') , (1999,'9/11/2015','es-MX','lbxEditExAdd1',N'Dirección:','N','N') , (1999,'9/11/2015','es-MX','lbxEditExAdd2',N'Dirección:','N','N') , (1999,'9/6/2016','es-MX','lbxEditExAdd3',N'Dirección 3','N','N') , (1999,'9/6/2016','es-MX','lbxEditExAdd4',N'Dirección 4','N','N') , (1999,'9/6/2016','es-MX','lbxEditExCity',N'Ciudad','N','N') , (1999,'9/6/2016','es-MX','lbxEditExContactName',N'Nombre de Contacto','N','N') , (1999,'9/6/2016','es-MX','lbxEditExCountryCode',N'Código del País','N','N') , (1999,'9/11/2015','es-MX','lbxEditExEmail',N'Correo:','N','N') , (1999,'9/6/2016','es-MX','lbxEditExFax',N'Fax del Contacto','N','N') , (1999,'9/11/2015','es-MX','lbxEditExName',N'Nombre:','N','N') , (1999,'9/6/2016','es-MX','lbxEditExPhone',N'Teléfono del Contacto','N','N') , (1999,'9/6/2016','es-MX','lbxEditExPostalCode',N'Código Postal','N','N') , (1999,'9/6/2016','es-MX','lbxEditExState',N'Estado','N','N') , (1999,'9/11/2015','es-MX','lbxEditExTaxID',N'ID de Tarifa:','N','N') , (1999,'9/6/2016','es-MX','lbxEditExTitle',N'Titulo del Contacto','N','N') , (1999,'3/1/2016','es-MX','lbxEditFaxNumber',N'Número de Fax','N','N') , (1999,'3/1/2016','es-MX','lbxEditFederalID',N'No. Registro Feredal (RFC)','N','N') , (1999,'9/11/2015','es-MX','lbxEditImAdd1',N'Dirección:','N','N') , (1999,'9/11/2015','es-MX','lbxEditImAdd2',N'Dirección:','N','N') , (1999,'9/6/2016','es-MX','lbxEditImAdd3',N'Dirección 3','N','N') , (1999,'9/6/2016','es-MX','lbxEditImAdd4',N'Dirección 4','N','N') , (1999,'9/6/2016','es-MX','lbxEditImCity',N'Ciudad','N','N') , (1999,'9/6/2016','es-MX','lbxEditImContactName',N'Nombre del Contacto','N','N') , (1999,'9/6/2016','es-MX','lbxEditImCountryCode',N'Código del País','N','N') , (1999,'9/11/2015','es-MX','lbxEditImEmail',N'Correo:','N','N') , (1999,'9/6/2016','es-MX','lbxEditImFax',N'Fax del Contacto','N','N') , (1999,'9/11/2015','es-MX','lbxEditImName',N'Nombre:','N','N') , (1999,'9/6/2016','es-MX','lbxEditImPhone',N'Teléfono del Contacto','N','N') , (1999,'9/6/2016','es-MX','lbxEditImPostalCode',N'Código Postal','N','N') , (1999,'9/6/2016','es-MX','lbxEditImState',N'Estado','N','N') , (1999,'9/11/2015','es-MX','lbxEditImTaxID',N'ID de Tarifa:','N','N') , (1999,'9/6/2016','es-MX','lbxEditImTitle',N'Título del Contacto','N','N') , (1999,'9/11/2015','es-MX','lbxEditPartiesRWTitle',N'Editar Informacion de Entidad','N','N') , (1999,'3/1/2016','es-MX','lbxEditPhoneNumber',N'Número Telefonico *','N','N') , (1999,'9/11/2015','es-MX','lbxEditPrAdd1',N'Dirección:','N','N') , (1999,'9/11/2015','es-MX','lbxEditPrAdd2',N'Dirección:','N','N') , (1999,'9/6/2016','es-MX','lbxEditPrAdd3',N'Dirección 3','N','N') , (1999,'9/6/2016','es-MX','lbxEditPrAdd4',N'Dirección 4','N','N') , (1999,'9/6/2016','es-MX','lbxEditPrCity',N'Ciudad','N','N') , (1999,'9/6/2016','es-MX','lbxEditPrContactName',N'Nombre del Contacto','N','N') , (1999,'9/6/2016','es-MX','lbxEditPrCountryCode',N'Código del País','N','N') , (1999,'9/11/2015','es-MX','lbxEditPrEmail',N'Correo:','N','N') , (1999,'9/6/2016','es-MX','lbxEditPrFax',N'Fax del Contacto','N','N') , (1999,'9/11/2015','es-MX','lbxEditPrName',N'Nombre:','N','N') , (1999,'9/6/2016','es-MX','lbxEditPrPhone',N'Teléfono del Contacto','N','N') , (1999,'9/6/2016','es-MX','lbxEditPrPostalCode',N'Código Postal','N','N') , (1999,'9/6/2016','es-MX','lbxEditPrState',N'Estado','N','N') , (1999,'9/11/2015','es-MX','lbxEditPrTaxID',N'ID de Tarifa:','N','N') , (1999,'9/6/2016','es-MX','lbxEditPrTitle',N'Título del Contacto','N','N') , (1999,'9/11/2015','es-MX','lbxEditRecordTitle',N'Editar Registro de Producto','N','N') , (1999,'3/1/2016','es-MX','lbxEditState',N'Estado/Provincia','N','N') , (1999,'3/1/2016','es-MX','lbxEditTitle',N'Titulo *','N','N') , (1999,'3/1/2016','es-MX','lbxEffDate',N'Fecha de vigencia','N','N') , (1999,'9/6/2016','es-MX','lbxEffective Date',N'Fecha Efectiva','N','N') , (1999,'2/15/2016','es-MX','lbxEffectiveDate',N'Fecha Efectiva','N','N') , (1999,'2/15/2016','es-MX','lbxEffectivityDate',N'Fecha Efectiva','N','N') , (1999,'9/6/2016','es-MX','lbxel Date Values',N'Seleccionar valores de fecha','N','N') , (1999,'9/6/2016','es-MX','lbxel From Date',N'Fecha de Inicio','N','N') , (1999,'9/6/2016','es-MX','lbxel To Date',N'Fecha de Fin','N','N') , (1999,'9/6/2016','es-MX','lbxelDateValues',N'Seleccionar valores de fecha','N','N') , (1999,'3/1/2016','es-MX','lbxElectronicSignature',N'Firma electrónica','N','N') , (1999,'9/6/2016','es-MX','lbxelFromDate',N'Fecha de Inicio','N','N') , (1999,'9/6/2016','es-MX','lbxelToDate',N'Fecha de Fin','N','N') , (1999,'9/11/2015','es-MX','lbxEmail',N'Utiliza Correo Electrónico del Contacto','N','N') , (1999,'3/1/2016','es-MX','lbxEmailAddress',N'Correo Electrónico','N','N') , (1999,'9/11/2015','es-MX','lbxEmailSubject',N'Tema','N','N') , (1999,'3/3/2017','es-MX','lbxEmailToSupport',N'Contactar Administrador','N','N') , (1999,'9/6/2016','es-MX','lbxEmailType',N'Tipo','N','N') , (1999,'3/1/2016','es-MX','lbxEmployeesFirstHalf',N'Total de Empleados','N','N') , (1999,'3/1/2016','es-MX','lbxEmployeesFirstHalfExample',N'Primera Mitad','N','N') , (1999,'3/1/2016','es-MX','lbxEmployeesSecondHalf',N'Total de Empleados','N','N') , (1999,'3/1/2016','es-MX','lbxEmployeesSecondHalfExample',N'Segunda Mitad','N','N') , (1999,'2/15/2016','es-MX','lbxEmptyECNText',N'Por favor introduzca / Seleccione un número exacto ECN para consultar','N','N') , (1999,'2/15/2016','es-MX','lbxEmptyHSNumberText',N'Por Favor Ingrese/Seleccione una Fracción Arancelaria SA exacta para verla','N','N') , (1999,'3/1/2016','es-MX','lbxEndBalanceDate',N'Fin','N','N') , (1999,'9/11/2015','es-MX','lbxEndDate',N'Fecha de terminación','N','N') , (1999,'3/1/2016','es-MX','lbxEndingDate',N'Fecha de Finalizacion','N','N') , (1999,'3/1/2016','es-MX','lbxEndOfFiscalYear',N'Terminación de Año Fiscal','N','N') , (1999,'3/1/2016','es-MX','lbxEndReturnDate',N'Fin','N','N') , (1999,'4/8/2010','es-MX','lbxEntityType',N'Tipo de Entidad','N','N') , (1999,'3/1/2016','es-MX','lbxEntry',N'Entrada','N','N') , (1999,'3/1/2016','es-MX','lbxENTRY FILING',N'ENTRADA DE ARCHIVO','N','N') , (1999,'3/1/2016','es-MX','lbxEntry Type Value',N'Tipo de Entrada de Valor','N','N') , (1999,'9/6/2016','es-MX','lbxEntryDate',N'Fecha de entrada','N','N') , (1999,'3/1/2016','es-MX','lbxEntryNum',N'No de Guía','N','N') , (1999,'3/11/2010','es-MX','lbxEntryNumber',N'Pedimento Num','N','N') , (1999,'3/1/2016','es-MX','lbxEntryReconciliation',N'Pedimento de reconciliacion','N','N') , (1999,'9/6/2016','es-MX','lbxEntrySearch',N'Búsqueda de Entrada','N','N') , (1999,'3/1/2016','es-MX','lbxEntryTypeValue',N'Tipo de Entrada de Valor','N','N') , (1999,'3/1/2016','es-MX','lbxERP Date',N'Fecha de Transacción del ERP','N','N') , (1999,'3/1/2016','es-MX','lbxERP Id',N'Identificador ERP','N','N') , (1999,'3/1/2016','es-MX','lbxERPDate',N'Fecha de ERP','N','N') , (1999,'3/1/2016','es-MX','lbxERPId',N'Identificacion ERP','N','N') , (1999,'3/1/2016','es-MX','lbxError Catalogs',N'Catálogos de Error','N','N') , (1999,'3/1/2016','es-MX','lbxErrorCatalogs',N'Error de Catálogos','N','N') , (1999,'9/11/2015','es-MX','lbxESig',N'Incluir Firma Electronica','N','N') , (1999,'4/8/2010','es-MX','lbxEUAssetFreeze',N'Acciones Congelados de EU','N','N') , (1999,'9/6/2016','es-MX','lbxEval',N'Evaluar','N','N') , (1999,'9/6/2016','es-MX','lbxExchangeConvertUnitsList',N'Lista de unidades de intercambio converso','N','N') , (1999,'3/1/2016','es-MX','lbxExchangeRate',N'Tipo de Cambio','N','N') , (1999,'3/1/2016','es-MX','lbxExchangeRateExample',N'MEX a USD','N','N') , (1999,'9/6/2016','es-MX','lbxExchangeRateSourceList',N'Lista de la fuente de tipo de cambio','N','N') , (1999,'9/6/2016','es-MX','lbxExcludeFromExtract',N'Columnas excluidas del extracto','N','N') , (1999,'9/6/2016','es-MX','lbxExcludePartnerId',N'Excluir ID de socio','N','N') , (1999,'9/11/2015','es-MX','lbxExFactoryCost',N'Costo ExFactory','N','N') , (1999,'9/11/2015','es-MX','lbxExFactoryPrice',N'Precio ExFactory','N','N') , (1999,'3/1/2016','es-MX','lbxExit',N'Salir','N','N') , (1999,'9/6/2016','es-MX','lbxExitClass',N'Códigos Clase de Salida','N','N') , (1999,'3/1/2016','es-MX','lbxExitDocID',N'ID del Documento de Salida','N','N') , (1999,'3/1/2016','es-MX','lbxExpDestination',N'Destino de exportación','N','N') , (1999,'3/1/2016','es-MX','lbxExpedicion',N'Lugar de Expedición','N','N') , (1999,'2/15/2016','es-MX','lbxExpirationDate',N'Fecha de Expiración','N','N') , (1999,'3/1/2016','es-MX','lbxExpiredFlag',N'Bandera de Vencimiento','N','N') , (1999,'3/1/2016','es-MX','lbxExport',N'Exportacion de archivo','N','N') , (1999,'2/15/2016','es-MX','lbxExportCharges',N'Cargos de Exportación','N','N') , (1999,'2/15/2016','es-MX','lbxExportControl',N'Lista(s) de Controles de Exportación','N','N') , (1999,'2/15/2016','es-MX','lbxExportControls',N'Controles de Exportación','N','N') , (1999,'9/11/2015','es-MX','lbxExportCountry',N'País de Exportación','N','N') , (1999,'9/6/2016','es-MX','lbxExportCountryCode',N'País de exportación','N','N') , (1999,'2/15/2016','es-MX','lbxExportCountryCustomsDocuments',N'Documentos Aduanales de Exportación','N','N') , (1999,'2/15/2016','es-MX','lbxExportCountryFinancialDocuments',N'Documentos Financieros de Exportación','N','N') , (1999,'2/15/2016','es-MX','lbxExportCountryTransportationDocuments',N'Documentos de Transporte de Exportación','N','N') , (1999,'3/1/2016','es-MX','lbxExportDate',N'Fecha de Exportación','N','N') , (1999,'3/1/2016','es-MX','lbxExportedProducts',N'Productos Exportados','N','N') , (1999,'2/26/2010','es-MX','lbxExporter',N'Exportador','N','N') , (1999,'9/11/2015','es-MX','lbxExporterAddress',N'Dirección:','N','N') , (1999,'2/26/2010','es-MX','lbxExporterAddress1',N'Dirección del exportador','N','N') , (1999,'2/26/2010','es-MX','lbxExporterAddress2',N'Dirección del Exportador 2','N','N') , (1999,'9/11/2015','es-MX','lbxExporterEmail',N'Correo:','N','N') , (1999,'2/26/2010','es-MX','lbxExporterName',N'Nombre del exportador','N','N') , (1999,'2/26/2010','es-MX','lbxExporterTaxId',N'RFC del Exportador','N','N') , (1999,'9/11/2015','es-MX','lbxExportInfoLabel',N'Información de Exportador','N','N') , (1999,'9/6/2016','es-MX','lbxExportingCarrierAddressInfo',N'Información de Dirección','N','N') , (1999,'9/6/2016','es-MX','lbxExportingCarrierAddressLine1',N'Dirección 1','N','N') , (1999,'9/6/2016','es-MX','lbxExportingCarrierAddressLine2',N'Dirección 2','N','N') , (1999,'9/6/2016','es-MX','lbxExportingCarrierAddressLine3',N'Dirección 3','N','N') , (1999,'9/6/2016','es-MX','lbxExportingCarrierAddressLine4',N'Dirección 4','N','N') , (1999,'9/6/2016','es-MX','lbxExportingCarrierCity',N'Ciudad','N','N') , (1999,'9/6/2016','es-MX','lbxExportingCarrierCompanyName',N'Nombre de Compañía','N','N') , (1999,'9/6/2016','es-MX','lbxExportingCarrierContactEmail',N'E-mail','N','N') , (1999,'9/6/2016','es-MX','lbxExportingCarrierContactFax',N'Fáx','N','N') , (1999,'9/6/2016','es-MX','lbxExportingCarrierContactInfo',N'Información de Contacto','N','N') , (1999,'9/6/2016','es-MX','lbxExportingCarrierContactName',N'Nombre de Contacto','N','N') , (1999,'9/6/2016','es-MX','lbxExportingCarrierContactPhone',N'Teléfono','N','N') , (1999,'9/6/2016','es-MX','lbxExportingCarrierCountry',N'País','N','N') , (1999,'9/6/2016','es-MX','lbxExportingCarrierDPSInfo',N'Denied Party Screening','N','N') , (1999,'9/6/2016','es-MX','lbxExportingCarrierDTS',N'Estado DPS','N','N') , (1999,'9/6/2016','es-MX','lbxExportingCarrierFederalId',N'ID Aduana','N','N') , (1999,'9/6/2016','es-MX','lbxExportingCarrierFederalIdType',N'Tipo de ID de Aduana','N','N') , (1999,'9/6/2016','es-MX','lbxExportingCarrierPostalCode',N'Codigo Postal','N','N') , (1999,'9/6/2016','es-MX','lbxExportingCarrierState',N'Estado / Provincia','N','N') , (1999,'9/6/2016','es-MX','lbxExportingCarrierType',N'Tipo de Compañía','N','N') , (1999,'9/6/2016','es-MX','lbxExportREf',N'Numero Ref. Exportación','N','N') , (1999,'3/1/2016','es-MX','lbxExports',N'Exportaciones','N','N') , (1999,'4/7/2016','es-MX','lbxExportValuesByCountry',N'Volumen de Exportación por Países','N','N') , (1999,'3/1/2016','es-MX','lbxExteriorNum',N'Número Exterior','N','N') INSERT INTO tmgPartnerCultureDefinitions(PartnerId,EffDate,CultureGuid,FieldName,FieldTranslation,DeletedFlag,KeepDuringRollback) VALUES (1999,'9/6/2016','es-MX','lbxExternalErrors',N'Errores Externos','N','N') , (1999,'3/1/2016','es-MX','lbxExternalProductNum',N'No. externo del producto','N','N') , (1999,'3/1/2016','es-MX','lbxFactoryEmpCount',N'Fabrica','N','N') , (1999,'3/1/2016','es-MX','lbxFaxNumber',N'Número Fax','N','N') , (1999,'3/1/2016','es-MX','lbxFCCIndicator',N'Indicador de la FCC','N','N') , (1999,'3/1/2016','es-MX','lbxFCCIndicator1',N'Indicador FCC','N','N') , (1999,'3/1/2016','es-MX','lbxFDAIndicator',N'Indicador de la FDA','N','N') , (1999,'3/1/2016','es-MX','lbxFDAIndicator1',N'Indicador FDA','N','N') , (1999,'3/1/2016','es-MX','lbxFederalEntity',N'Entidad Federativa','N','N') , (1999,'9/7/2016','es-MX','lbxFederalID',N'ID Federal','N','N') , (1999,'9/7/2016','es-MX','lbxFederalIDType',N'Tipo de ID Federal','N','N') , (1999,'3/1/2016','es-MX','lbxFee',N'Pagos','N','N') , (1999,'3/1/2016','es-MX','lbxFees',N'Derechos','N','N') , (1999,'9/21/2016','es-MX','lbxfidFTAWhatIf_aspx',N'Calculadora de reglas de origen por TLC','N','N') , (1999,'2/26/2010','es-MX','lbxField',N'Campo','N','N') , (1999,'3/1/2016','es-MX','lbxFieldName',N'Sortee el Nombre','N','N') , (1999,'2/22/2010','es-MX','lbxFieldToEdit',N'Modificar Campo','N','N') , (1999,'9/6/2016','es-MX','lbxFieldToUpdate',N'Campo ah Actualizar','N','N') , (1999,'3/1/2016','es-MX','lbxFIFO Flag',N'Bandera FIFO','N','N') , (1999,'9/6/2016','es-MX','lbxFileAttached',N'Archivo Cargado','N','N') , (1999,'3/1/2016','es-MX','lbxFilePath',N'Selecciona un Archivo ASC','N','N') , (1999,'9/6/2016','es-MX','lbxFilerID',N'ID del Contribuyente','N','N') , (1999,'3/11/2010','es-MX','lbxFilerPOC',N'Contacto','N','N') , (1999,'3/1/2016','es-MX','lbxFilesDownloaded',N'Archivos bajando en este momento para proceso.','N','N') , (1999,'9/6/2016','es-MX','lbxFileToUpload',N'Archivo a Cargar','N','N') , (1999,'9/6/2016','es-MX','lbxFileType',N'Tipo de archivo','N','N') , (1999,'2/24/2010','es-MX','lbxFill',N'Llenar De','N','N') , (1999,'9/11/2015','es-MX','lbxFilterBOMDDL',N'Lista de Materiales Buscar','N','N') , (1999,'3/1/2016','es-MX','lbxFilterBy',N'Filtrar por','N','N') , (1999,'3/1/2016','es-MX','lbxFilterBy2',N'Filtrar por','N','N') , (1999,'9/11/2015','es-MX','lbxFilterField',N'Criterio de filtro para lista de materiales','N','N') , (1999,'9/6/2016','es-MX','lbxFilterLimit',N'Limite de filtro','N','N') , (1999,'2/15/2016','es-MX','lbxFilterResultDescription',N'Filtrar Resultado de la Descripción','N','N') , (1999,'2/15/2016','es-MX','lbxFilterResultDescriptionOptions',N'Opciones de Filtro de búsqueda de resultado','N','N') , (1999,'9/11/2015','es-MX','lbxFilterValue',N'Valor de filtro','N','N') , (1999,'3/1/2016','es-MX','lbxFirstName',N'Nombre','N','N') , (1999,'3/1/2016','es-MX','lbxFlag',N'Bandera','N','N') , (1999,'3/1/2016','es-MX','lbxFLAGS',N'BANDERAS','N','N') , (1999,'3/1/2016','es-MX','lbxFolioDifferences',N'Diferencia de Folio','N','N') , (1999,'2/22/2010','es-MX','lbxFor',N'para','N','N') , (1999,'9/6/2016','es-MX','lbxFor2',N'Por','N','N') , (1999,'9/6/2016','es-MX','lbxFor3',N'Por','N','N') , (1999,'9/6/2016','es-MX','lbxForDays',N'Para Previos','N','N') , (1999,'3/1/2016','es-MX','lbxForeignInvestment',N'Inversion Extranjera','N','N') , (1999,'3/1/2016','es-MX','lbxFormName',N'Nombre Forma','N','N') , (1999,'3/1/2016','es-MX','lbxFormNumber',N'Número de forma','N','N') , (1999,'3/1/2016','es-MX','lbxFormType',N'Tipo','N','N') , (1999,'3/1/2016','es-MX','lbxForwardedToCompany',N'Nombre del Transportista','N','N') , (1999,'9/6/2016','es-MX','lbxForwarder',N'Re-expedidor','N','N') , (1999,'9/6/2016','es-MX','lbxForwarderAddressInfo',N'Información de Dirección','N','N') , (1999,'9/6/2016','es-MX','lbxForwarderAddressLine1',N'Dirección 1','N','N') , (1999,'9/6/2016','es-MX','lbxForwarderAddressLine2',N'Dirección 2','N','N') , (1999,'9/6/2016','es-MX','lbxForwarderAddressLine3',N'Dirección 3','N','N') , (1999,'9/6/2016','es-MX','lbxForwarderAddressLine4',N'Dirección 4','N','N') , (1999,'9/6/2016','es-MX','lbxForwarderCity',N'Ciudad','N','N') , (1999,'9/6/2016','es-MX','lbxForwarderCompanyName',N'Nombre de Compañía','N','N') , (1999,'9/6/2016','es-MX','lbxForwarderContactEmail',N'E-mail','N','N') , (1999,'9/6/2016','es-MX','lbxForwarderContactFax',N'Fáx','N','N') , (1999,'9/6/2016','es-MX','lbxForwarderContactInfo',N'Información de Contacto','N','N') , (1999,'9/6/2016','es-MX','lbxForwarderContactName',N'Nombre de Contacto','N','N') , (1999,'9/6/2016','es-MX','lbxForwarderContactPhone',N'Teléfono','N','N') , (1999,'9/6/2016','es-MX','lbxForwarderCountry',N'País','N','N') , (1999,'9/6/2016','es-MX','lbxForwarderDPSInfo',N'Denied Party Screening','N','N') , (1999,'9/6/2016','es-MX','lbxForwarderDPSResults',N'Resultados','N','N') , (1999,'9/6/2016','es-MX','lbxForwarderDTS',N'Estado DPS','N','N') , (1999,'9/6/2016','es-MX','lbxForwarderFederalId',N'ID Aduana','N','N') , (1999,'9/6/2016','es-MX','lbxForwarderFederalIdType',N'Tipo de ID de Aduana','N','N') , (1999,'9/6/2016','es-MX','lbxForwarderIdType',N'Tipo de ID','N','N') , (1999,'9/6/2016','es-MX','lbxForwarderPostalCode',N'Codigo Postal','N','N') , (1999,'9/6/2016','es-MX','lbxForwarderState',N'Estado / Provincia','N','N') , (1999,'9/6/2016','es-MX','lbxForwarderType',N'Tipo de Compañía','N','N') , (1999,'9/6/2016','es-MX','lbxForwardToAddressInfo',N'Información de Dirección','N','N') , (1999,'9/6/2016','es-MX','lbxForwardToAddressLine1',N'Dirección 1','N','N') , (1999,'9/6/2016','es-MX','lbxForwardToAddressLine2',N'Dirección 2','N','N') , (1999,'9/6/2016','es-MX','lbxForwardToAddressLine3',N'Dirección 3','N','N') , (1999,'9/6/2016','es-MX','lbxForwardToAddressLine4',N'Dirección 4','N','N') , (1999,'9/6/2016','es-MX','lbxForwardToCity',N'Ciudad','N','N') , (1999,'9/6/2016','es-MX','lbxForwardToCompanyName',N'Nombre de Compañía','N','N') , (1999,'9/6/2016','es-MX','lbxForwardToContactEmail',N'E-mail','N','N') , (1999,'9/6/2016','es-MX','lbxForwardToContactFax',N'Fáx','N','N') , (1999,'9/6/2016','es-MX','lbxForwardToContactInfo',N'Información de Contacto','N','N') , (1999,'9/6/2016','es-MX','lbxForwardToContactName',N'Nombre de Contacto','N','N') , (1999,'9/6/2016','es-MX','lbxForwardToContactPhone',N'Teléfono','N','N') , (1999,'9/6/2016','es-MX','lbxForwardToCountry',N'País','N','N') , (1999,'9/6/2016','es-MX','lbxForwardToDPSInfo',N'Denied Party Screening','N','N') , (1999,'9/6/2016','es-MX','lbxForwardToDTS',N'Estado DPS','N','N') , (1999,'9/6/2016','es-MX','lbxForwardToFederalId',N'ID Aduana','N','N') , (1999,'9/6/2016','es-MX','lbxForwardToFederalIdType',N'Tipo de ID de Aduana','N','N') , (1999,'9/6/2016','es-MX','lbxForwardToPostalCode',N'Codigo Postal','N','N') , (1999,'9/6/2016','es-MX','lbxForwardToState',N'Estado / Provincia','N','N') , (1999,'9/6/2016','es-MX','lbxForwardToType',N'Tipo de Compañía','N','N') , (1999,'3/1/2016','es-MX','lbxFowardedToCompany',N'Enviado A','N','N') , (1999,'9/21/2016','es-MX','lbxfrdMCSGeneration_aspx',N'Generador de la Declaracion del Productor','N','N') , (1999,'9/6/2016','es-MX','lbxFreeTradeAgreement',N'Tratado de Libre Comercio','N','N') , (1999,'3/1/2016','es-MX','lbxFreight',N'Carga','N','N') , (1999,'3/1/2016','es-MX','lbxFreightCharge',N'Gastos de Transporte','N','N') , (1999,'3/1/2016','es-MX','lbxFreightCharges',N'Cargos de transportación','N','N') , (1999,'9/6/2016','es-MX','lbxFrgnPort',N'Puerto extranjero de desembarque','N','N') , (1999,'3/1/2016','es-MX','lbxFrmTracerFrom',N'De','N','N') , (1999,'2/25/2010','es-MX','lbxFrom',N'De','N','N') , (1999,'3/1/2016','es-MX','lbxFromCompany',N'Embarcado Por *','N','N') , (1999,'2/26/2010','es-MX','lbxFromDate',N'Desde','N','N') , (1999,'2/26/2010','es-MX','lbxFromDateStuc',N'(mm/dd/aaaa)','N','N') , (1999,'3/1/2016','es-MX','lbxFromExp',N'Origen','N','N') , (1999,'2/25/2010','es-MX','lbxFromFormat',N'(mm/dd/aaaa)','N','N') , (1999,'3/1/2016','es-MX','lbxFromImp',N'Origen','N','N') , (1999,'3/1/2016','es-MX','lbxFromZoneID',N'ID de la Zona Origen','N','N') , (1999,'2/24/2010','es-MX','lbxFTA',N'Tratados de Libre Comercio','N','N') , (1999,'3/1/2016','es-MX','lbxFTAQualifyingFlag',N'Bandera calificativa FTA','N','N') , (1999,'9/6/2016','es-MX','lbxFTZNum',N'Número de zona de comercio exterior','N','N') , (1999,'9/6/2016','es-MX','lbxFullyQualified',N'Completo','N','N') , (1999,'9/6/2016','es-MX','lbxFutureHsNum',N'Número Siguiente de Fracción Arancelaria','N','N') , (1999,'2/15/2016','es-MX','lbxFutureRatesTab',N'Tasas futuras','N','N') , (1999,'3/1/2016','es-MX','lbxGeneral',N'Información del Encabezado','N','N') , (1999,'9/11/2015','es-MX','lbxGenerate',N'Generar','N','N') , (1999,'3/1/2016','es-MX','lbxGenerateAnnex31',N'Generar','N','N') , (1999,'2/15/2016','es-MX','lbxGeneratedInputsUOMIntro',N'Por favor, introduzca las entradas para','N','N') , (1999,'9/6/2016','es-MX','lbxGlobal',N'Global_prueba','N','N') , (1999,'3/1/2016','es-MX','lbxGlobalData',N'Información del Encabezado de la Factura','N','N') , (1999,'4/8/2010','es-MX','lbxGo',N'Buscar','N','N') , (1999,'3/1/2016','es-MX','lbxGo to VUCEM',N'Ir a VUCEM','N','N') , (1999,'3/3/2017','es-MX','lbxGoBack',N'Regresar','N','N') , (1999,'3/3/2017','es-MX','lbxGoHome',N'Salir','N','N') , (1999,'9/6/2016','es-MX','lbxGoodsDeliveredFrom',N'Bienes entregados desde','N','N') , (1999,'9/6/2016','es-MX','lbxGoodsDeliveredTo',N'Bienes entregados a','N','N') , (1999,'9/6/2016','es-MX','lbxGridOneHeader',N'Sub Encabezado Global de Blancos y Desajustes','N','N') , (1999,'9/6/2016','es-MX','lbxGridTwoHeader',N'Mapeo Directo de Arancela','N','N') , (1999,'3/1/2016','es-MX','lbxGrossWeight',N'Peso bruto','N','N') , (1999,'3/1/2016','es-MX','lbxGroup',N'Grupo','N','N') , (1999,'2/15/2016','es-MX','lbxGroupBy',N'Agrupar Resultados Por:','N','N') , (1999,'3/1/2016','es-MX','lbxGroupDescription',N'Nombre Del Grupo','N','N') , (1999,'9/6/2016','es-MX','lbxHBillOfLading',N'Conocimiento de embarque hijo','N','N') , (1999,'9/6/2016','es-MX','lbxHdrBegDate',N'Fecha de Inicio','N','N') , (1999,'9/6/2016','es-MX','lbxHdrEndDate',N'Fecha Final','N','N') , (1999,'3/1/2016','es-MX','lbxHdrItemMaster',N'Maestro de materiales','N','N') , (1999,'3/1/2016','es-MX','lbxHdrItemMasterAdditional',N'Tablas adicionales','N','N') , (1999,'3/1/2016','es-MX','lbxHdrItemMasterHTSValues',N'Maestro de materiales con fracción HTS','N','N') , (1999,'3/1/2016','es-MX','lbxHdrPermitDetail',N'Detalle del Permiso','N','N') , (1999,'3/1/2016','es-MX','lbxHdrPermitHeader',N'Encabezado del Permiso','N','N') , (1999,'2/15/2016','es-MX','lbxHeader',N'Detalles de Encabezado','N','N') , (1999,'3/1/2016','es-MX','lbxHeaderFees',N'Cargos y derechos','N','N') , (1999,'3/1/2016','es-MX','lbxHeaderMisc',N'Varios','N','N') , (1999,'3/1/2016','es-MX','lbxHealthPermitFlag',N'Permiso de Salud (COFEPRIS)','N','N') , (1999,'9/11/2015','es-MX','lbxHelpRWTitle',N'Instrucciones','N','N') , (1999,'3/1/2016','es-MX','lbxHistory',N'Historial de Actividad','N','N') , (1999,'9/6/2016','es-MX','lbxHitsOnly',N'Mostrar solo los aciertos','N','N') , (1999,'9/6/2016','es-MX','lbxhlExit',N'Salir','N','N') , (1999,'9/6/2016','es-MX','lbxhlxExport',N'Extraer','N','N') , (1999,'9/6/2016','es-MX','lbxHMFlag',N'Material Peligroso','N','N') , (1999,'2/15/2016','es-MX','lbxHolidays',N'Días Festivos','N','N') , (1999,'9/6/2016','es-MX','lbxHolidayYear',N'Año de vacaciones','N','N') , (1999,'9/6/2016','es-MX','lbxHouseBOL',N'Conocimiento de embarque hijo','N','N') , (1999,'9/6/2016','es-MX','lbxHsDesc',N'Descripción de Fracción Arancelaria','N','N') , (1999,'2/15/2016','es-MX','lbxHSFilter',N'Filtro de Fracciones arancelarias SA.','N','N') , (1999,'9/6/2016','es-MX','lbxHsInProgress',N'Progreso HsIn','N','N') , (1999,'9/6/2016','es-MX','lbxHsInProgressRate',N'Taza de Progreso HsIn','N','N') , (1999,'3/1/2016','es-MX','lbxHSLineArticle303',N'Artículo 303 Fracción Arancelaria por Partida','N','N') , (1999,'3/1/2016','es-MX','lbxHSLineItemFees',N'Derechos de la Fracción Arancelaria por Partida','N','N') , (1999,'3/1/2016','es-MX','lbxHSLineItemObservations',N'HS Line Item Observations','N','N') , (1999,'2/26/2010','es-MX','lbxHSLocation',N'Seleccionar ubicación HS','N','N') , (1999,'2/15/2016','es-MX','lbxHSMaintenanceLogText',N'Registro de Mantenimiento SA','N','N') , (1999,'9/11/2015','es-MX','lbxHSNum',N'Número HS*','N','N') , (1999,'2/15/2016','es-MX','lbxHSNumber',N'Fracción Arancelaria SA / Descripción','N','N') , (1999,'9/6/2016','es-MX','lbxHSNumber (Never used)',N'Número de sistema armonizado (Nunca se ha usado)','N','N') , (1999,'9/6/2016','es-MX','lbxHSNumber (Optional)',N'Número de sistema armonizado (Opcional)','N','N') , (1999,'2/15/2016','es-MX','lbxHSNumberDescription',N'Fracción Arancelaria SA / descripción','N','N') , (1999,'2/15/2016','es-MX','lbxHSNumberFilter',N'Filtro de Fracciones arancelarias SA.','N','N') , (1999,'2/15/2016','es-MX','lbxHSNumberSelection',N'Fracción Arancelaria SA','N','N') , (1999,'2/15/2016','es-MX','lbxHSNumberSelectionSettings',N'Cual Capítulo/Descripción quisiera que fuera la predeterminada','N','N') , (1999,'2/15/2016','es-MX','lbxHSNumberTitle',N'Fracción Arancelaria SA (opcional)','N','N') , (1999,'2/15/2016','es-MX','lbxHSNumberTitleFields',N'Seleccione fracción arancelaria SA','N','N') , (1999,'9/6/2016','es-MX','lbxHsRationale',N'Razón HS','N','N') , (1999,'3/1/2016','es-MX','lbxHSScrapIndex',N'Fracción de Desecho (Scrap)','N','N') , (1999,'9/6/2016','es-MX','lbxHsSectionNotes',N'Notas de Seccion HS','N','N') , (1999,'9/6/2016','es-MX','lbxHSUOMHSNumber',N'Número de sistema armonizado','N','N') , (1999,'9/6/2016','es-MX','lbxHSUOMImportExport',N'Importación/Exportación','N','N') , (1999,'3/1/2016','es-MX','lbxHtsAddlRptQtyUom',N'Fracción Adicional de Unidad de Medida','N','N') , (1999,'3/1/2016','es-MX','lbxHtsAddlSpecificRate',N'Fracción Adicional de Tasa Específica','N','N') , (1999,'3/1/2016','es-MX','lbxHtsAdValoremRate',N'Fracción de Tasa','N','N') , (1999,'3/1/2016','es-MX','lbxHtsDesc',N'Descripción US HTS *','N','N') , (1999,'3/1/2016','es-MX','lbxHtsDesc1',N'Descripción de la Fracción','N','N') , (1999,'3/1/2016','es-MX','lbxHtsDescSource',N'Fuente de Descripción TIGI','N','N') , (1999,'3/1/2016','es-MX','lbxHtsDescSource1',N'Desc.Fuente de Fracción','N','N') , (1999,'3/1/2016','es-MX','lbxHtsDOTIndicator',N'Fracción de Indicador Departamento de Transporte','N','N') , (1999,'3/1/2016','es-MX','lbxHtsFCCIndicator',N'Fracción de Indicador de la FCC','N','N') , (1999,'3/1/2016','es-MX','lbxHtsFDAIndicator',N'Fracción de Indicador de la FDA','N','N') , (1999,'3/1/2016','es-MX','lbxHtsIndex',N'Índice US HTS','N','N') , (1999,'3/1/2016','es-MX','lbxHtsIndex1',N'Índice de fracción','N','N') , (1999,'3/1/2016','es-MX','lbxHtsIndexSource',N'Fuente Indice TIGI','N','N') , (1999,'3/1/2016','es-MX','lbxHtsIndexSource1',N'Fuente del Índice de Fracción','N','N') , (1999,'3/1/2016','es-MX','lbxHtsNum',N'Fracción del US HTS *','N','N') , (1999,'3/1/2016','es-MX','lbxHtsNum1',N'No. Tarifa Americana','N','N') , (1999,'3/1/2016','es-MX','lbxHtsNum2',N'Fracción 2 del US HTS','N','N') , (1999,'3/1/2016','es-MX','lbxHtsNum21',N'Número2 de Fracción','N','N') , (1999,'3/1/2016','es-MX','lbxHtsNum2Source',N'Fuente de número de fracción 2','N','N') , (1999,'3/1/2016','es-MX','lbxHtsNum2Source1',N'No. Fuente de Fracción','N','N') , (1999,'3/1/2016','es-MX','lbxHtsNumSource',N'Fuente de Número de TIGI','N','N') , (1999,'3/1/2016','es-MX','lbxHtsNumSource1',N'No.fuente de fracción','N','N') , (1999,'3/1/2016','es-MX','lbxHtsRptQtyUom',N'Fracción de Unidad de Medida','N','N') , (1999,'3/1/2016','es-MX','lbxHtsSpecificRate',N'Fracción de Tasa Específica','N','N') , (1999,'3/1/2016','es-MX','lbxHtsSpiCode1',N'Código SPI 1','N','N') , (1999,'3/1/2016','es-MX','lbxHtsSpiCode2',N'Fracción de Código SPI 2','N','N') , (1999,'3/1/2016','es-MX','lbxHtsTxnDate',N'Fecha de Transacción','N','N') , (1999,'3/1/2016','es-MX','lbxHtsTxnDate1',N'Fecha Txn','N','N') , (1999,'3/1/2016','es-MX','lbxHtsUomConvFactor',N'Factor de Conversión U de M del US HTS *','N','N') , (1999,'3/1/2016','es-MX','lbxHtsUomConvFactor1',N'Factor de conversión de unidad de fracción','N','N') , (1999,'3/1/2016','es-MX','lbxHtsUomConvFactorSource',N'Fuente de Factor de Conversión U de M de TIGI','N','N') , (1999,'3/1/2016','es-MX','lbxHtsUomConvFactorSource1',N'Fuente del Factor de Conversión de la UM del US HS','N','N') , (1999,'3/1/2016','es-MX','lbxhyxlnkEdit',N'Editar','N','N') , (1999,'9/6/2016','es-MX','lbxhyxlnkExport',N'Exportar','N','N') , (1999,'3/1/2016','es-MX','lbxhyxlnkVUCEMSite',N'Ir a VUCEM','N','N') , (1999,'3/1/2016','es-MX','lbxIdentifier',N'Identificador','N','N') , (1999,'3/1/2016','es-MX','lbxIdentifiers',N'Identificadores','N','N') , (1999,'3/1/2016','es-MX','lbxIdentifiersByDocumentCodes',N'Identificadores de Código de Doc','N','N') , (1999,'3/1/2016','es-MX','lbxIdentifiersByTariff',N'Identificador de Tarifa','N','N') , (1999,'9/6/2016','es-MX','lbxIgnoreDomesticScrap',N'Ignorar Chatarra Domestica','N','N') , (1999,'9/6/2016','es-MX','lbxImage Uploaded',N'Imagen Cargados','N','N') , (1999,'2/15/2016','es-MX','lbxImageNoAvailable',N'No hay imagen Disponible','N','N') , (1999,'9/6/2016','es-MX','lbxImpID',N'IDdeImp','N','N') , (1999,'3/1/2016','es-MX','lbxImport',N'Importaciones','N','N') , (1999,'2/15/2016','es-MX','lbxImportControls',N'Controles de Importación','N','N') , (1999,'9/6/2016','es-MX','lbxImportCountry',N'País de Importacion','N','N') , (1999,'9/6/2016','es-MX','lbxImportCountryCode',N'Código de país de importación','N','N') , (1999,'9/6/2016','es-MX','lbxImportDate',N'Fecha de importación','N','N') , (1999,'2/26/2010','es-MX','lbxImporter',N'Importador','N','N') , (1999,'9/11/2015','es-MX','lbxImporterAddress',N'Dirección:','N','N') , (1999,'2/26/2010','es-MX','lbxImporterAddress1',N'Dirección del importador','N','N') , (1999,'2/26/2010','es-MX','lbxImporterAddress2',N'Dirección del Importador 2','N','N') , (1999,'9/6/2016','es-MX','lbxImporterContactEmail',N'Email del Importador','N','N') , (1999,'9/6/2016','es-MX','lbxImporterContactFax',N'Fax del Importador','N','N') , (1999,'9/11/2015','es-MX','lbxImporterEmail',N'Correo','N','N') , (1999,'9/6/2016','es-MX','lbxImporterFileNum',N'Número de expediente del importador/corredor','N','N') , (1999,'2/26/2010','es-MX','lbxImporterName',N'Nombre del importador','N','N') , (1999,'3/11/2010','es-MX','lbxImporterNumber',N'Número del Importador','N','N') , (1999,'2/26/2010','es-MX','lbxImporterTaxId',N'RFC del Importador','N','N') , (1999,'3/1/2016','es-MX','lbxImportExportMOT',N'Import/Export MOT','N','N') , (1999,'9/11/2015','es-MX','lbxImportInfoLabel',N'Información de Importador','N','N') , (1999,'9/6/2016','es-MX','lbxImportingCarrier',N'Portador de la importación','N','N') , (1999,'9/6/2016','es-MX','lbxImportOrExport',N'Importación o exportación','N','N') , (1999,'3/1/2016','es-MX','lbxImports',N'Importaciones','N','N') , (1999,'2/15/2016','es-MX','lbxImportValuesByCountry',N'El volumen de importación por país','N','N') , (1999,'3/1/2016','es-MX','lbxImpRep',N'Importador o Representante','N','N') , (1999,'3/1/2016','es-MX','lbxInactive',N'Inactivo','N','N') , (1999,'9/6/2016','es-MX','lbxInbound',N'Portador entrante','N','N') , (1999,'2/26/2010','es-MX','lbxIncludeESig',N'Incluir Firma Electrónica?','N','N') , (1999,'9/6/2016','es-MX','lbxIncludeFormatting',N'Incluir el formato','N','N') , (1999,'2/15/2016','es-MX','lbxIncludeInflectional',N'Incluir forma con inflexión','N','N') , (1999,'3/1/2016','es-MX','lbxIncludeNonFTA',N'Incluir Non FTAs','N','N') , (1999,'2/15/2016','es-MX','lbxIncludeSpecialSymbols',N'Incluir los términos de búsqueda excluidos con símbolos','N','N') , (1999,'9/6/2016','es-MX','lbxIndentResultXml',N'Endentar resultado Xml','N','N') , (1999,'2/15/2016','es-MX','lbxIndustryBxFields',N'Industrias Seleccionadas:','N','N') , (1999,'9/6/2016','es-MX','lbxInfluenced?',N'Influencia','N','N') , (1999,'3/1/2016','es-MX','lbxInitialBalances',N'Balance Inicial','N','N') , (1999,'9/6/2016','es-MX','lbxInlandBOL',N'Conocimiento de embarque interior','N','N') , (1999,'9/6/2016','es-MX','lbxInlandCarrierAddressInfo',N'Información de Dirección','N','N') , (1999,'9/6/2016','es-MX','lbxInlandCarrierAddressLine1',N'Dirección 1','N','N') , (1999,'9/6/2016','es-MX','lbxInlandCarrierAddressLine2',N'Dirección 2','N','N') , (1999,'9/6/2016','es-MX','lbxInlandCarrierAddressLine3',N'Dirección 3','N','N') , (1999,'9/6/2016','es-MX','lbxInlandCarrierAddressLine4',N'Dirección 4','N','N') , (1999,'9/6/2016','es-MX','lbxInlandCarrierCity',N'Ciudad','N','N') , (1999,'9/6/2016','es-MX','lbxInlandCarrierCompanyName',N'Nombre de Compañía','N','N') , (1999,'9/6/2016','es-MX','lbxInlandCarrierContactEmail',N'E-mail','N','N') , (1999,'9/6/2016','es-MX','lbxInlandCarrierContactFax',N'Fáx','N','N') , (1999,'9/6/2016','es-MX','lbxInlandCarrierContactInfo',N'Información de Contacto','N','N') , (1999,'9/6/2016','es-MX','lbxInlandCarrierContactName',N'Nombre de Contacto','N','N') , (1999,'9/6/2016','es-MX','lbxInlandCarrierContactPhone',N'Teléfono','N','N') , (1999,'9/6/2016','es-MX','lbxInlandCarrierCountry',N'País','N','N') , (1999,'9/6/2016','es-MX','lbxInlandCarrierDPSInfo',N'Denied Party Screening','N','N') , (1999,'9/6/2016','es-MX','lbxInlandCarrierDTS',N'Estado DPS','N','N') , (1999,'9/6/2016','es-MX','lbxInlandCarrierFederalId',N'ID Aduana','N','N') , (1999,'9/6/2016','es-MX','lbxInlandCarrierFederalIdType',N'Tipo de ID de Aduana','N','N') , (1999,'9/6/2016','es-MX','lbxInlandCarrierPostalCode',N'Codigo Postal','N','N') , (1999,'9/6/2016','es-MX','lbxInlandCarrierState',N'Estado / Provincia','N','N') , (1999,'9/6/2016','es-MX','lbxInlandCarrierType',N'Tipo de Compañía','N','N') , (1999,'9/6/2016','es-MX','lbxInlandFreight',N'Transporte interno','N','N') , (1999,'3/1/2016','es-MX','lbxInOutMOT',N'Entrada/Salida MdT','N','N') , (1999,'9/6/2016','es-MX','lbxInsert',N'Insertar','N','N') , (1999,'9/6/2016','es-MX','lbxInsertButton',N'Insertar','N','N') , (1999,'9/6/2016','es-MX','lbxInstructions',N'Instrucciones','N','N') , (1999,'9/6/2016','es-MX','lbxInstructions1',N'Por favor, llene todas las casillas con un " * " y la siguiente información del producto','N','N') , (1999,'9/11/2015','es-MX','lbxInstructionsRWTitle',N'Instrucciones','N','N') , (1999,'3/1/2016','es-MX','lbxInsurance',N'Aseguranza','N','N') , (1999,'3/1/2016','es-MX','lbxInsuranceCharges',N'Cargos de Seguros','N','N') , (1999,'3/1/2016','es-MX','lbxInsuredValue',N'Valor Asegurado','N','N') , (1999,'9/6/2016','es-MX','lbxIntConsignee',N'Consignatario intermedio','N','N') , (1999,'3/1/2016','es-MX','lbxIntConsigneeCompany',N'Consignatario','N','N') , (1999,'3/1/2016','es-MX','lbxInteriorNum',N'Número Interior','N','N') , (1999,'9/6/2016','es-MX','lbxIntermediateAddressLine1',N'Dirección 1','N','N') , (1999,'9/6/2016','es-MX','lbxIntermediateAddressLine2',N'Dirección 2','N','N') , (1999,'9/6/2016','es-MX','lbxIntermediateCity',N'Ciudad','N','N') , (1999,'9/6/2016','es-MX','lbxIntermediateCompanyName',N'Nombre de Compañía','N','N') , (1999,'9/6/2016','es-MX','lbxIntermediateConsigneeAddressInfo',N'Información de Dirección','N','N') , (1999,'9/6/2016','es-MX','lbxIntermediateConsigneeAddressLine1',N'Dirección 1','N','N') , (1999,'9/6/2016','es-MX','lbxIntermediateConsigneeAddressLine2',N'Dirección 2','N','N') , (1999,'9/6/2016','es-MX','lbxIntermediateConsigneeAddressLine3',N'Dirección 3','N','N') , (1999,'9/6/2016','es-MX','lbxIntermediateConsigneeAddressLine4',N'Dirección 4','N','N') , (1999,'9/6/2016','es-MX','lbxIntermediateConsigneeCity',N'Ciudad','N','N') , (1999,'9/6/2016','es-MX','lbxIntermediateConsigneeCompanyName',N'Nombre de Compañía','N','N') , (1999,'9/6/2016','es-MX','lbxIntermediateConsigneeContactEmail',N'E-mail','N','N') , (1999,'9/6/2016','es-MX','lbxIntermediateConsigneeContactFax',N'Fáx','N','N') , (1999,'9/6/2016','es-MX','lbxIntermediateConsigneeContactInfo',N'Información de Contacto','N','N') , (1999,'9/6/2016','es-MX','lbxIntermediateConsigneeContactName',N'Nombre de Contacto','N','N') , (1999,'9/6/2016','es-MX','lbxIntermediateConsigneeContactPhone',N'Teléfono','N','N') , (1999,'9/6/2016','es-MX','lbxIntermediateConsigneeCountry',N'País','N','N') , (1999,'9/6/2016','es-MX','lbxIntermediateConsigneeDPSInfo',N'Denied Party Screening','N','N') , (1999,'9/6/2016','es-MX','lbxIntermediateConsigneeDPSResults',N'Resultados','N','N') , (1999,'9/6/2016','es-MX','lbxIntermediateConsigneeDTS',N'Estado DPS','N','N') , (1999,'9/6/2016','es-MX','lbxIntermediateConsigneeFederalId',N'ID Aduana','N','N') , (1999,'9/6/2016','es-MX','lbxIntermediateConsigneeFederalIdType',N'Tipo de ID de Aduana','N','N') , (1999,'9/6/2016','es-MX','lbxIntermediateConsigneeIdType',N'Tipo de ID','N','N') , (1999,'9/6/2016','es-MX','lbxIntermediateConsigneePostalCode',N'Codigo Postal','N','N') , (1999,'9/6/2016','es-MX','lbxIntermediateConsigneeState',N'Estado / Provincia','N','N') , (1999,'9/6/2016','es-MX','lbxIntermediateConsigneeType',N'Tipo de Compañía','N','N') , (1999,'9/6/2016','es-MX','lbxIntermediateContactName',N'Nombre de Contacto','N','N') , (1999,'9/6/2016','es-MX','lbxIntermediateContactPhone',N'Teléfono','N','N') , (1999,'9/6/2016','es-MX','lbxIntermediateCountry',N'País','N','N') , (1999,'9/6/2016','es-MX','lbxIntermediateFederalId',N'ID aduana','N','N') , (1999,'9/6/2016','es-MX','lbxIntermediateIdType',N'Tipo de ID','N','N') , (1999,'9/6/2016','es-MX','lbxIntermediatePostalCode',N'Código Postal','N','N') , (1999,'9/6/2016','es-MX','lbxIntermediateState',N'Estado / Provincia','N','N') , (1999,'9/6/2016','es-MX','lbxInternalErrors',N'Errores internos','N','N') , (1999,'3/1/2016','es-MX','lbxInvAmounts',N'Monto','N','N') , (1999,'3/1/2016','es-MX','lbxInventoryLocation',N'Ubicación','N','N') , (1999,'3/1/2016','es-MX','lbxInventoryNum',N'Número de Activo','N','N') , (1999,'3/1/2016','es-MX','lbxInvHdr',N'Facturas/ Metodos de Valuacion','N','N') , (1999,'3/1/2016','es-MX','lbxInvoice',N'Factura','N','N') , (1999,'3/1/2016','es-MX','lbxInvoice Detail',N'Detalles de factura','N','N') , (1999,'3/1/2016','es-MX','lbxInvoiceCategory',N'Categoria Facts.','N','N') , (1999,'3/1/2016','es-MX','lbxInvoiceClass',N'Clave Factura','N','N') , (1999,'3/1/2016','es-MX','lbxInvoiceComments',N'Comentarios de Factura','N','N') , (1999,'3/1/2016','es-MX','lbxInvoiceDate',N'Fecha de Facturación','N','N') , (1999,'3/1/2016','es-MX','lbxInvoiceDatePedHdr',N'Fecha de factura y pedimento','N','N') , (1999,'3/1/2016','es-MX','lbxInvoiceNum',N'No. de Factura','N','N') , (1999,'3/1/2016','es-MX','lbxInvoiceNumber',N'Número de Factura','N','N') , (1999,'3/1/2016','es-MX','lbxInvoiceReference',N'Referencia de Factura','N','N') , (1999,'3/1/2016','es-MX','lbxInvoices',N'Facturas','N','N') , (1999,'3/1/2016','es-MX','lbxInvoiceStatus',N'Estatus de la Factura','N','N') , (1999,'3/1/2016','es-MX','lbxInvoiceStatusHeader',N'Estatus de la Factura','N','N') , (1999,'3/1/2016','es-MX','lbxInvoiceTxnQtyUOM',N'Unidad de Medida en Factura *','N','N') , (1999,'3/1/2016','es-MX','lbxInvoiceTxnQtyUOMConvFactor',N'Factor de Conversión *','N','N') , (1999,'3/1/2016','es-MX','lbxInvoiceType',N'Tipo de Factura','N','N') , (1999,'3/1/2016','es-MX','lbxInvYear',N'Año','N','N') , (1999,'9/6/2016','es-MX','lbxIssueDate',N'Fecha de asunto','N','N') , (1999,'9/6/2016','es-MX','lbxItemId',N'ID del artículo','N','N') , (1999,'3/1/2016','es-MX','lbxItemMasterHtsValuesSection',N'HTS Maestro de Materiales','N','N') , (1999,'3/1/2016','es-MX','lbxItemMasterSection',N'Maestro de Materiales','N','N') , (1999,'9/6/2016','es-MX','lbxItemSearch',N'Búsqueda de articulo','N','N') , (1999,'3/1/2016','es-MX','lbxITNum',N'Numero de Transferencia','N','N') , (1999,'9/6/2016','es-MX','lbxITNumber',N'Número IT','N','N') , (1999,'3/1/2016','es-MX','lbxIVAPerThousand',N'IVA por mil','N','N') , (1999,'3/1/2016','es-MX','lbxIVARate',N'Tarifa de IVA','N','N') , (1999,'2/15/2016','es-MX','lbxKnowledgeProfile',N'Perfil de Noticias','N','N') , (1999,'9/6/2016','es-MX','lbxLanguage',N'Lenguaje','N','N') , (1999,'9/6/2016','es-MX','lbxLanguageType',N'Tipo de lenguaje','N','N') , (1999,'9/6/2016','es-MX','lbxLastDTSStatus',N'Estado','N','N') , (1999,'3/1/2016','es-MX','lbxLastName',N'Apellido','N','N') , (1999,'3/1/2016','es-MX','lbxLastName2',N'Segundo Apellido','N','N') , (1999,'3/1/2016','es-MX','lbxLastName3',N'Segundo Apellido:','N','N') , (1999,'9/6/2016','es-MX','lbxLastProcess',N'Última Fecha Transmisión','N','N') , (1999,'3/1/2016','es-MX','lbxLastProcessed',N'Fecha/Hora de último proceso','N','N') , (1999,'3/1/2016','es-MX','lbxLastScreenedDate',N'Última verificación','N','N') , (1999,'4/8/2010','es-MX','lbxLastValidatedDate',N'Última fecha Validada','N','N') , (1999,'9/6/2016','es-MX','lbxlblCollapsiblePanelMessageDisplay',N'Esconder / Mostrar Campos...','N','N') , (1999,'4/7/2016','es-MX','lbxlblCurrentDateDataDisplay',N'AAAA-MM-DD','N','N') , (1999,'4/7/2016','es-MX','lbxlblDocumentDetailTab',N'Detalle del Documento','N','N') , (1999,'3/1/2016','es-MX','lbxlblFlagEntryForReconciliation',N'Bandera de reconciliación','N','N') , (1999,'4/7/2016','es-MX','lbxlblStandardNotesInOtherCultureCode',N'Ingles','N','N') , (1999,'4/7/2016','es-MX','lbxlblTab1',N'Todos','N','N') , (1999,'3/1/2016','es-MX','lbxlblTscaStatement',N'Declalración TSCA','N','N') , (1999,'3/1/2016','es-MX','lbxlbx Discharges',N'Descargos','N','N') , (1999,'3/1/2016','es-MX','lbxlbx Saai Program Codes',N'Códigos de Programa','N','N') , (1999,'3/1/2016','es-MX','lbxlbx Val Rep Message',N'Última Actualización','N','N') , (1999,'3/1/2016','es-MX','lbxlbx_DocumentCodes_PedimentoCode',N'Código de Pedimento','N','N') , (1999,'3/1/2016','es-MX','lbxlbx_Header_ElectronicSignature',N'Firma electrónica','N','N') , (1999,'3/10/2016','es-MX','lbxlbxAdditionalCode',N'Código Adicional','N','N') , (1999,'3/1/2016','es-MX','lbxlbxAdditionalCtry',N'País Adicional','N','N') , (1999,'3/1/2016','es-MX','lbxlbxBankSignature',N'Banco','N','N') , (1999,'3/1/2016','es-MX','lbxlbxCompany',N'Compañía','N','N') , (1999,'3/1/2016','es-MX','lbxlbxCompanyID',N'ID de Compañía','N','N') , (1999,'9/6/2016','es-MX','lbxlbxCompanyInformation',N'Información de la Compañia','N','N') , (1999,'3/1/2016','es-MX','lbxlbxCompensations',N'Compensaciones','N','N') , (1999,'3/1/2016','es-MX','lbxlbxConsolidatedSignature',N'Firma consolidada','N','N') , (1999,'3/1/2016','es-MX','lbxlbxConstanciaDate',N'Fecha de constancia','N','N') , (1999,'3/1/2016','es-MX','lbxlbxConstanciaNum',N'Número de constancia','N','N') , (1999,'3/1/2016','es-MX','lbxlbxConstanciaPeriod',N'Periodo de constancia','N','N') , (1999,'3/1/2016','es-MX','lbxlbxCustoms',N'Aduana','N','N') , (1999,'3/1/2016','es-MX','lbxlbxCustomsIO',N'Aduana E/S','N','N') , (1999,'3/1/2016','es-MX','lbxlbxCustomsTransportation',N'Aduana & Transporte','N','N') , (1999,'3/1/2016','es-MX','lbxlbxDestOrigin',N'Destino/Origen','N','N') , (1999,'3/1/2016','es-MX','lbxlbxDischarges',N'Descargos','N','N') , (1999,'3/1/2016','es-MX','lbxlbxDocumentCode',N'Código de documento','N','N') , (1999,'9/6/2016','es-MX','lbxlbxEditExAdd3',N'Dirección 3','N','N') , (1999,'9/6/2016','es-MX','lbxlbxEditExAdd4',N'Dirección 4','N','N') , (1999,'9/6/2016','es-MX','lbxlbxEditExCity',N'Ciudad','N','N') , (1999,'9/6/2016','es-MX','lbxlbxEditExContactName',N'Nombre de Contacto','N','N') , (1999,'9/6/2016','es-MX','lbxlbxEditExCountryCode',N'Código del País','N','N') , (1999,'9/6/2016','es-MX','lbxlbxEditExFax',N'Fax del Contacto','N','N') , (1999,'9/6/2016','es-MX','lbxlbxEditExPhone',N'Teléfono del Contacto','N','N') , (1999,'9/6/2016','es-MX','lbxlbxEditExPostalCode',N'Código Postal','N','N') , (1999,'9/6/2016','es-MX','lbxlbxEditExState',N'Estado','N','N') , (1999,'9/6/2016','es-MX','lbxlbxEditExTitle',N'Titulo del Contacto','N','N') , (1999,'9/6/2016','es-MX','lbxlbxEditImAdd3',N'Dirección 3','N','N') , (1999,'9/6/2016','es-MX','lbxlbxEditImAdd4',N'Dirección 4','N','N') , (1999,'9/6/2016','es-MX','lbxlbxEditImCity',N'Ciudad','N','N') , (1999,'9/6/2016','es-MX','lbxlbxEditImContactName',N'Nombre del Contacto','N','N') , (1999,'9/6/2016','es-MX','lbxlbxEditImCountryCode',N'Código del País','N','N') , (1999,'9/6/2016','es-MX','lbxlbxEditImFax',N'Fax del Contacto','N','N') , (1999,'9/6/2016','es-MX','lbxlbxEditImPhone',N'Teléfono del Contacto','N','N') , (1999,'9/6/2016','es-MX','lbxlbxEditImPostalCode',N'Código Postal','N','N') , (1999,'9/6/2016','es-MX','lbxlbxEditImState',N'Estado','N','N') , (1999,'9/6/2016','es-MX','lbxlbxEditImTitle',N'Título del Contacto','N','N') , (1999,'9/6/2016','es-MX','lbxlbxEditPrAdd3',N'Dirección 3','N','N') , (1999,'9/6/2016','es-MX','lbxlbxEditPrAdd4',N'Dirección 4','N','N') , (1999,'9/6/2016','es-MX','lbxlbxEditPrCity',N'Ciudad','N','N') , (1999,'9/6/2016','es-MX','lbxlbxEditPrContactName',N'Nombre del Contacto','N','N') , (1999,'9/6/2016','es-MX','lbxlbxEditPrCountryCode',N'Código del País','N','N') , (1999,'9/6/2016','es-MX','lbxlbxEditPrFax',N'Fax del Contacto','N','N') , (1999,'9/6/2016','es-MX','lbxlbxEditPrPhone',N'Teléfono del Contacto','N','N') , (1999,'9/6/2016','es-MX','lbxlbxEditPrPostalCode',N'Código Postal','N','N') , (1999,'9/6/2016','es-MX','lbxlbxEditPrState',N'Estado','N','N') , (1999,'9/6/2016','es-MX','lbxlbxEditPrTitle',N'Título del Contacto','N','N') , (1999,'4/7/2016','es-MX','lbxlbxExportValuesByCountry',N'Volumen de Exportación por Países','N','N') , (1999,'3/1/2016','es-MX','lbxlbxFormNumber',N'Número de Forma','N','N') , (1999,'3/1/2016','es-MX','lbxlbxFormType',N'Tipo de Forma','N','N') , (1999,'3/1/2016','es-MX','lbxlbxFreight',N'Carga','N','N') , (1999,'3/1/2016','es-MX','lbxlbxFrmTracerFrom',N'De','N','N') , (1999,'9/6/2016','es-MX','lbxlbxFrom',N'De','N','N') , (1999,'3/1/2016','es-MX','lbxlbxGrossWeight',N'Peso bruto','N','N') , (1999,'3/1/2016','es-MX','lbxlbxIdentifiers',N'Identificadores','N','N') , (1999,'3/1/2016','es-MX','lbxlbxImports',N'Importaciones','N','N') , (1999,'3/1/2016','es-MX','lbxlbxInOutMOT',N'Entrada/Salida MdT','N','N') , (1999,'3/1/2016','es-MX','lbxlbxInsurance',N'Aseguranza','N','N') , (1999,'3/1/2016','es-MX','lbxlbxInvoiceDate',N'Fecha de Facturación','N','N') , (1999,'3/1/2016','es-MX','lbxlbxLlegadaMOT',N'Llegada MdT','N','N') , (1999,'3/1/2016','es-MX','lbxlbxMandatary',N'Mandatario','N','N') , (1999,'3/1/2016','es-MX','lbxlbxMarksPackages',N'Paquetes','N','N') , (1999,'3/1/2016','es-MX','lbxlbxMicellaneous',N'Otros','N','N') , (1999,'9/8/2016','es-MX','lbxlbxNewIMLastProcessedCountr',N'Último país procesado','N','N') , (1999,'3/1/2016','es-MX','lbxlbxOperationType',N'Tipo de Operación','N','N') , (1999,'3/1/2016','es-MX','lbxlbxPackaging',N'Embalaje','N','N') , (1999,'3/1/2016','es-MX','lbxlbxPaymentDate',N'Fecha de Pago','N','N') , (1999,'3/1/2016','es-MX','lbxlbxPaymentDocuments',N'Documentos de Pago','N','N') , (1999,'3/1/2016','es-MX','lbxlbxPedimentoHeader',N'Encabezado','N','N') , (1999,'3/1/2016','es-MX','lbxlbxPrevalidator',N'Pre-validador','N','N') , (1999,'3/1/2016','es-MX','lbxlbxSaaiProgramCodes',N'Códigos de Programa','N','N') , (1999,'3/1/2016','es-MX','lbxlbxShowUnprinted',N'Mostrar Sin Imprimir','N','N') , (1999,'3/1/2016','es-MX','lbxlbxSignatures',N'Firmas','N','N') , (1999,'4/7/2016','es-MX','lbxlbxTab1',N'Todos','N','N') , (1999,'4/7/2016','es-MX','lbxlbxTransportationCost',N'Costo de Transportación','N','N') , (1999,'3/1/2016','es-MX','lbxlbxtxdMxFifoProcessing.AltHTSNum2Source',N'Fuente de la Fracción del MX HS 2','N','N') , (1999,'3/1/2016','es-MX','lbxlbxValidationSignature',N'Validación','N','N') , (1999,'3/1/2016','es-MX','lbxlbxValRepMessage',N'Última Actualización','N','N') , (1999,'4/7/2016','es-MX','lbxlbxValueOfItem',N'Valor del item','N','N') , (1999,'3/1/2016','es-MX','lbxlbxView',N'Vista','N','N') , (1999,'9/6/2016','es-MX','lbxLicenseNum',N'Número de Licencia','N','N') , (1999,'9/6/2016','es-MX','lbxLicenseType',N'Regulación','N','N') , (1999,'9/6/2016','es-MX','lbxLineErrorCount',N'Lineas con Error','N','N') , (1999,'9/6/2016','es-MX','lbxLineNum',N'Número de Linea','N','N') , (1999,'3/1/2016','es-MX','lbxLinkExit',N'Salir','N','N') , (1999,'9/6/2016','es-MX','lbxLinkFormatString',N'Enlace del formato de cadena','N','N') , (1999,'9/6/2016','es-MX','lbxLinks',N'Enlaces','N','N') , (1999,'3/11/2010','es-MX','lbxLiquidationDate',N'Fecha de Liquidación','N','N') , (1999,'3/1/2016','es-MX','lbxlkxExit',N'Salir','N','N') , (1999,'9/8/2016','es-MX','lbxlkxSave',N'Guardar','N','N') , (1999,'3/1/2016','es-MX','lbxLlegadaMOT',N'Llegada MdT','N','N') , (1999,'3/1/2016','es-MX','lbxlnkbtnAddNewPgmCodes',N'Agregar Nuevo','N','N') , (1999,'9/6/2016','es-MX','lbxlnkbtnAddNewSupplier',N'Agregar Nuevo','N','N') , (1999,'4/7/2016','es-MX','lbxlnkbtnSActionExpandAllTabs',N'Expandir todos','N','N') , (1999,'3/1/2016','es-MX','lbxlnkbtnToggleFilterPedimentos',N'Mostrar Filtro','N','N') , (1999,'3/1/2016','es-MX','lbxlnxbtnBack',N'Regresar','N','N') , (1999,'3/1/2016','es-MX','lbxlnxbtnCloseInvoice',N'Cerrar Factura','N','N') , (1999,'3/1/2016','es-MX','lbxlnxbtnExportNoTariff',N'Extraer envíos con Impuestos Pagados','N','N') , (1999,'3/1/2016','es-MX','lbxlnxbtnExportTariff',N'Extraer los Envíos al Exterior','N','N') , (1999,'3/1/2016','es-MX','lbxlnxbtnNewInvoice',N'Nueva Factura','N','N') , (1999,'3/1/2016','es-MX','lbxlnxbtnNewPedimento',N'Nuevo Pedimento','N','N') , (1999,'3/1/2016','es-MX','lbxlnxbtnUploadFile',N'Cargar Archivo','N','N') , (1999,'9/6/2016','es-MX','lbxlnxClose',N'Cerrar','N','N') , (1999,'9/6/2016','es-MX','lbxlnxCopyLocal',N'Crear Copia Local','N','N') , (1999,'9/6/2016','es-MX','lbxlnxSave',N'Guardar','N','N') , (1999,'9/6/2016','es-MX','lbxlnxSaveClose',N'Guardar y cerrar','N','N') , (1999,'9/6/2016','es-MX','lbxlnxSaveDates',N'Guardar Fechas','N','N') , (1999,'9/6/2016','es-MX','lbxlnxSaveDetail',N'Guardar Detalle','N','N') , (1999,'9/6/2016','es-MX','lbxlnxSaveHeader',N'Guardar Encabezado','N','N') , (1999,'9/6/2016','es-MX','lbxlnxValidateRule',N'Prueba de Reglas para la Validez Estrcutural','N','N') , (1999,'9/11/2015','es-MX','lbxLOADate',N'Rango de Cobertura:','N','N') , (1999,'3/1/2016','es-MX','lbxLOADINTFILESV201',N'EL FLUJO DE OPERACION SE ESTÁ EJECUTANDO, POR FAVOR ESPERE.','N','N') , (1999,'2/24/2010','es-MX','lbxLoadRequest',N'Solicitudes','N','N') , (1999,'9/11/2015','es-MX','lbxLOATo',N'Para:','N','N') , (1999,'3/1/2016','es-MX','lbxLocation',N'Ubicación','N','N') , (1999,'3/1/2016','es-MX','lbxLocationHeader',N'Ubicación','N','N') , (1999,'9/6/2016','es-MX','lbxLocationOfCargo',N'Ubicación de la carga','N','N') , (1999,'3/1/2016','es-MX','lbxLocationOfFile',N'Unicacion','N','N') , (1999,'9/6/2016','es-MX','lbxLogo Name',N'Nombre del Logo','N','N') , (1999,'9/6/2016','es-MX','lbxLogoName',N'Nombre del Logo','N','N') , (1999,'2/26/2010','es-MX','lbxLongDesc',N'Descripción Larga','N','N') , (1999,'9/6/2016','es-MX','lbxLookupCategories',N'Búsqueda por categoría','N','N') , (1999,'9/6/2016','es-MX','lbxLookupProducts',N'Búsqueda de productos','N','N') , (1999,'9/6/2016','es-MX','lbxLotNumber',N'Número de lote','N','N') , (1999,'9/6/2016','es-MX','lbxlReportParameters',N'Parámetros de importación','N','N') , (1999,'2/15/2016','es-MX','lbxLstBxChapter',N'Seleccionar Capítulos:','N','N') , (1999,'2/15/2016','es-MX','lbxLstBxCountry',N'Seleccionar Países:','N','N') , (1999,'2/15/2016','es-MX','lbxLstBxIndustry',N'Seleccionar Industrias:','N','N') , (1999,'2/15/2016','es-MX','lbxLstBxSolution',N'Seleccionar Soluciones:','N','N') , (1999,'9/11/2015','es-MX','lbxLTSDCommunity',N'Comunidad/ Paises:','N','N') , (1999,'9/11/2015','es-MX','lbxLTSDCumulation',N'Aplicado con:','N','N') , (1999,'9/11/2015','es-MX','lbxLTSDSecondaryLanguage',N'Lenguaje Secundario del Documento:','N','N') , (1999,'2/15/2016','es-MX','lbxMainDocuments',N'Documentos Principales','N','N') , (1999,'2/15/2016','es-MX','lbxMainDuty',N'Principal/Impuesto a Terceros Paises','N','N') , (1999,'9/6/2016','es-MX','lbxMaintenanceLog',N'Rigistro de Mantenimiento','N','N') , (1999,'3/1/2016','es-MX','lbxMake',N'Crear. Hacer.','N','N') , (1999,'2/15/2016','es-MX','lbxManageSearches_RecentSearches',N'Búsquedas recientes','N','N') , (1999,'2/15/2016','es-MX','lbxManageSearches_RecentSelections',N'Recientes Resultados de búsqueda de Global Classification','N','N') , (1999,'2/15/2016','es-MX','lbxManageSearches_SavedSearches',N'Búsquedas guardadas','N','N') , (1999,'2/15/2016','es-MX','lbxManageSearches_SharedSearches',N'Búsquedas compartidas por otros usuarios','N','N') , (1999,'2/15/2016','es-MX','lbxManageSearches_UnsavedSearches',N'Mostrar Búsquedas no guardadas','N','N') , (1999,'2/15/2016','es-MX','lbxManageSearchesTitle',N'Administración de Búsquedas','N','N') , (1999,'9/11/2015','es-MX','lbxManagingDirector',N'Nombre del Director','N','N') , (1999,'3/1/2016','es-MX','lbxMandatary',N'Mandatario','N','N') , (1999,'3/1/2016','es-MX','lbxMandatoryCompany',N'Compañía Obligatoria','N','N') , (1999,'3/1/2016','es-MX','lbxManifest',N'Manifiesto','N','N') , (1999,'3/1/2016','es-MX','lbxManifestDesc',N'Descripción','N','N') , (1999,'3/1/2016','es-MX','lbxManifestHeader',N'Manifiesto','N','N') , (1999,'3/1/2016','es-MX','lbxManifestQty',N'Cantidad','N','N') , (1999,'3/1/2016','es-MX','lbxManifestQtyUom',N'UM Cant. Manifesto','N','N') , (1999,'3/1/2016','es-MX','lbxManifestWeight',N'Peso','N','N') , (1999,'3/1/2016','es-MX','lbxManifestWeightUom',N'UM Peso Manifesto','N','N') , (1999,'9/11/2015','es-MX','lbxManufacturer',N'Proveedor','N','N') , (1999,'3/1/2016','es-MX','lbxManufacturerID',N'ID Fabricante *','N','N') , (1999,'3/1/2016','es-MX','lbxManufacturerID1',N'ID de Fabricante','N','N') , (1999,'3/1/2016','es-MX','lbxManufacturerIDSource',N'Fuente de ID Fabricante','N','N') , (1999,'3/1/2016','es-MX','lbxManufacturerIDSource1',N'Fuente de ID Fabricante','N','N') , (1999,'3/1/2016','es-MX','lbxMaquila User Manual',N'Manual de Usuario de Maquila','N','N') , (1999,'3/1/2016','es-MX','lbxMarksPackages',N'Paquetes','N','N') , (1999,'9/11/2015','es-MX','lbxMassStatus',N'Estado','N','N') , (1999,'9/11/2015','es-MX','lbxMassUpdate',N'Actualización Multiple de Productos','N','N') , (1999,'9/6/2016','es-MX','lbxMassUpdateSetField',N'Selecciona campo para actualizar en masa','N','N') , (1999,'9/6/2016','es-MX','lbxMaster Bill Of Lading',N'Facturas de Embarque','N','N') , (1999,'9/6/2016','es-MX','lbxMasterBOL',N'Conocimiento de embarque madre','N','N') , (1999,'9/6/2016','es-MX','lbxMatchingTransportID',N'Coincidencia del ID de transporte','N','N') , (1999,'9/6/2016','es-MX','lbxMatchToManifest',N'Coincidir para manifestarse','N','N') , (1999,'3/1/2016','es-MX','lbxMaxPasswordRetries',N'Intentos máximos de contraseña','N','N') , (1999,'9/6/2016','es-MX','lbxMBillOfLading',N'Conocimiento de embarque madre','N','N') , (1999,'3/1/2016','es-MX','lbxMemo',N'Comentarios','N','N') , (1999,'3/1/2016','es-MX','lbxmess',N'Buscando/Procesando','N','N') , (1999,'3/1/2016','es-MX','lbxMicellaneous',N'Otros','N','N') , (1999,'3/1/2016','es-MX','lbxMiscCharges',N'Cargos Varios','N','N') , (1999,'3/1/2016','es-MX','lbxMISCELLANEOUS',N'MISCELÁNEOS','N','N') , (1999,'3/1/2016','es-MX','lbxMiscHeader',N'Misceláneos','N','N') , (1999,'3/1/2016','es-MX','lbxModel',N'Modelo','N','N') , (1999,'3/1/2016','es-MX','lbxModeOfTransport',N'Modo de Transporte *','N','N') , (1999,'3/1/2016','es-MX','lbxMonthsOfExpiration',N'Meses de vencimiento','N','N') , (1999,'3/1/2016','es-MX','lbxMOT',N'Medio de transporte','N','N') , (1999,'9/6/2016','es-MX','lbxMOTDetail',N'Detalles del Modo de Transporte','N','N') , (1999,'9/6/2016','es-MX','lbxMsg',N'Mensaje','N','N') , (1999,'9/11/2015','es-MX','lbxMUCOO',N'Pais de Origen','N','N') , (1999,'9/11/2015','es-MX','lbxMUCurrency',N'Moneda','N','N') , (1999,'9/11/2015','es-MX','lbxMUHSNum',N'Arancela','N','N') , (1999,'9/11/2015','es-MX','lbxMultiFTA',N'Seleccionar Tratado Objetivo','N','N') , (1999,'4/7/2016','es-MX','lbxMultiHeader15',N'MEXICO - Tasa arancelaria principal','N','N') , (1999,'4/7/2016','es-MX','lbxMultiHeader16',N'MEXICO - Tasa arancelaria principal de cupos','N','N') , (1999,'4/7/2016','es-MX','lbxMultiHeader17',N'Frontera Norte y Región Fronteriza','N','N') , (1999,'4/7/2016','es-MX','lbxMultiHeader8',N'Ingles','N','N') , (1999,'4/7/2016','es-MX','lbxMultiHeader9',N'Español','N','N') , (1999,'2/15/2016','es-MX','lbxMultipleMatchingECNQuestion',N'Hay varias coincidencias encontradas.','N','N') , (1999,'9/11/2015','es-MX','lbxMUMarks',N'Marcas y Numeros','N','N') , (1999,'9/11/2015','es-MX','lbxMUNetCost',N'Costo Neto','N','N') , (1999,'9/11/2015','es-MX','lbxMUNote',N'Notas (Se Imprime en Certificado)','N','N') , (1999,'9/11/2015','es-MX','lbxMUPackages',N'No. De Paquetes','N','N') , (1999,'9/11/2015','es-MX','lbxMUPrefCrit',N'Criterio de Preferencia','N','N') , (1999,'9/11/2015','es-MX','lbxMUProducer',N'Productor','N','N') , (1999,'9/11/2015','es-MX','lbxMUSPN',N'No. De Producto de Proveedor','N','N') , (1999,'9/11/2015','es-MX','lbxMUTraced',N'Valor Trazado','N','N') , (1999,'9/11/2015','es-MX','lbxMUValue',N'Valor','N','N') , (1999,'3/1/2016','es-MX','lbxMXCustomsLocation',N'Aduana','N','N') , (1999,'3/1/2016','es-MX','lbxMXExchangeRate',N'Tipo de Cambio MX','N','N') , (1999,'3/1/2016','es-MX','lbxMXFTAProgramCode',N'Código de Programa MX FTA','N','N') , (1999,'3/1/2016','es-MX','lbxMXHTSUomConvFactor',N'MXHTSUomConvFactor *','N','N') , (1999,'3/1/2016','es-MX','lbxMXSCACCode',N'Código CAAT','N','N') , (1999,'3/1/2016','es-MX','lbxMxState',N'Estado mexicano','N','N') , (1999,'3/1/2016','es-MX','lbxMXTariffQuantity',N'Cantidad de Tarifa','N','N') , (1999,'3/1/2016','es-MX','lbxMXTariffUOMLiteral',N'Tarifa de Unidad de Medida','N','N') , (1999,'3/1/2016','es-MX','lbxMXValuationMethod',N'Método de Valoración','N','N') , (1999,'3/1/2016','es-MX','lbxMXZoneSection',N'Campos Suplementarios','N','N') , (1999,'9/6/2016','es-MX','lbxMyLinks',N'Enlaces Web Corporativos','N','N') , (1999,'3/1/2016','es-MX','lbxNaftaCertified',N'Certificado TLC','N','N') , (1999,'3/1/2016','es-MX','lbxNaftaCertifiedSource',N'Fuente de Certificado TLC','N','N') , (1999,'2/26/2010','es-MX','lbxName',N'Nombre del Certificado','N','N') , (1999,'9/6/2016','es-MX','lbxNameAddressOption',N'Opciones de Búsqueda por Dirección','N','N') , (1999,'3/1/2016','es-MX','lbxNamedQuery',N'Elegir comando','N','N') , (1999,'9/6/2016','es-MX','lbxNameOptions',N'Opciones de Búsqueda por Nombre','N','N') , (1999,'3/11/2010','es-MX','lbxNarrativeDescription',N'Descripción','N','N') , (1999,'9/11/2015','es-MX','lbxNetCost',N'Costo Neto','N','N') , (1999,'2/24/2010','es-MX','lbxNew',N'Nueva','N','N') , (1999,'3/1/2016','es-MX','lbxNew Invoice',N'Nueva Factura','N','N') , (1999,'3/1/2016','es-MX','lbxNew Pedimento',N'Nuevo Pedimento','N','N') , (1999,'3/1/2016','es-MX','lbxNewAddress1',N'Dirección 1','N','N') , (1999,'3/1/2016','es-MX','lbxNewAddress2',N'Dirección 2','N','N') , (1999,'3/1/2016','es-MX','lbxNewAddress3',N'Dirección 3','N','N') , (1999,'3/1/2016','es-MX','lbxNewAddress4',N'Dirección 4','N','N') , (1999,'9/11/2015','es-MX','lbxNewBillOfMaterials',N'Lista de Materiales:','N','N') , (1999,'9/11/2015','es-MX','lbxNewBOMEndDate',N'Fecha de Fin de la BOM','N','N') , (1999,'9/11/2015','es-MX','lbxNewBOMs',N'Número de nuevas listas de materiales agregados al sistema','N','N') , (1999,'9/11/2015','es-MX','lbxNewBOMStartDate',N'Fecha de Inicio de la BOM','N','N') , (1999,'3/1/2016','es-MX','lbxNewCity',N'Ciudad','N','N') , (1999,'9/11/2015','es-MX','lbxNewCompany',N'Compañía','N','N') , (1999,'3/1/2016','es-MX','lbxNewCompanyId',N'ID Compañía*','N','N') , (1999,'3/1/2016','es-MX','lbxNewCompanyName',N'Compañía Nombre','N','N') , (1999,'3/1/2016','es-MX','lbxNewCompanyType',N'Tipo de Empresa','N','N') , (1999,'3/1/2016','es-MX','lbxNewCountry',N'Pais','N','N') , (1999,'9/11/2015','es-MX','lbxNewDates',N'Fechas','N','N') , (1999,'9/6/2016','es-MX','lbxNewExportCountry',N'País de Exportación','N','N') , (1999,'3/1/2016','es-MX','lbxNewFederalID',N'No. Registro Feredal (RFC)','N','N') , (1999,'9/11/2015','es-MX','lbxNewIMCommercialValue',N'Valor Comercial','N','N') , (1999,'9/11/2015','es-MX','lbxNewIMCountryOfManufacture',N'País de Fabricación','N','N') , (1999,'9/11/2015','es-MX','lbxNewIMCountryOfOrigin',N'País de Origen','N','N') , (1999,'9/11/2015','es-MX','lbxNewIMHTSNum',N'Arancela','N','N') , (1999,'9/8/2016','es-MX','lbxNewIMLastProcessedCountr',N'Último país procesado','N','N') , (1999,'9/8/2016','es-MX','lbxNewIMLastProcessedCountry',N'Último país procesado','N','N') , (1999,'9/11/2015','es-MX','lbxNewIMNote',N'Nota','N','N') , (1999,'9/8/2016','es-MX','lbxNewIMOriginFactor',N'Factor de origen','N','N') , (1999,'9/11/2015','es-MX','lbxNewIMPlantID',N'Id de Planta','N','N') , (1999,'9/6/2016','es-MX','lbxNewImportCountry',N'País de Importación','N','N') , (1999,'9/11/2015','es-MX','lbxNewIMProduct',N'No. De Producto','N','N') , (1999,'9/11/2015','es-MX','lbxNewIMProductAttribute',N'Atributo de Producto','N','N') , (1999,'9/11/2015','es-MX','lbxNewIMRWTitle',N'Bienes terminados nuevos','N','N') , (1999,'9/11/2015','es-MX','lbxNewIMTextileAttribute',N'Atributo Textil','N','N') , (1999,'9/11/2015','es-MX','lbxNewIMTxnQty',N'Cantidad de Transaccion','N','N') , (1999,'9/11/2015','es-MX','lbxNewIMValue',N'Costo Neto','N','N') , (1999,'9/11/2015','es-MX','lbxNewIMWeight',N'Peso','N','N') , (1999,'9/6/2016','es-MX','lbxNewInvalidCountryPair',N'Par de País Invalido','N','N') , (1999,'9/6/2016','es-MX','lbxNewInvalidExportCountry',N'País de Exportación Invalido','N','N') , (1999,'9/6/2016','es-MX','lbxNewInvalidImportCountry',N'País de Importación Invalido','N','N') , (1999,'9/6/2016','es-MX','lbxNewInvalidTemplate',N'Plantilla Invalida','N','N') , (1999,'3/1/2016','es-MX','lbxNewInvoiceNum',N'Número de Factura *','N','N') , (1999,'3/1/2016','es-MX','lbxNewInvoiceType',N'Tipo de Factura *','N','N') , (1999,'9/6/2016','es-MX','lbxNewManufacturerId',N'Nuevo ID del fabricante','N','N') , (1999,'9/11/2015','es-MX','lbxNewName',N'Nombre','N','N') , (1999,'9/6/2016','es-MX','lbxNewOrderNumShip',N'Número de Orden de Embarque','N','N') , (1999,'9/11/2015','es-MX','lbxNewPCCountryOfOrigin',N'País de Origen','N','N') , (1999,'9/11/2015','es-MX','lbxNewPCEssentialCharacter',N'Carácter Escencial','N','N') , (1999,'9/11/2015','es-MX','lbxNewPCHTSNum',N'Arancela','N','N') , (1999,'9/11/2015','es-MX','lbxNewPCManufacturerID',N'Id de Proveedor','N','N') , (1999,'9/11/2015','es-MX','lbxNewPCNote',N'Nota','N','N') , (1999,'9/11/2015','es-MX','lbxNewPCProduct',N'No. De Producto','N','N') , (1999,'9/11/2015','es-MX','lbxNewPCProductAttribute',N'Atributo del Producto','N','N') , (1999,'9/11/2015','es-MX','lbxNewPCQtyPerIM',N'Cantidad por IM','N','N') , (1999,'9/11/2015','es-MX','lbxNewPCRWTitle',N'Componente comprado nuevo','N','N') , (1999,'9/11/2015','es-MX','lbxNewPCTextileAttribute',N'Atributo Textil','N','N') , (1999,'9/11/2015','es-MX','lbxNewPCTracedValue',N'Valor Trazado','N','N') , (1999,'9/11/2015','es-MX','lbxNewPCTxnQty',N'Cantidad de Transaccion','N','N') , (1999,'9/11/2015','es-MX','lbxNewPCValue',N'Valor','N','N') , (1999,'9/11/2015','es-MX','lbxNewPCWeight',N'Peso','N','N') , (1999,'9/6/2016','es-MX','lbxNewPostalCode',N'Codigo Postal','N','N') , (1999,'9/11/2015','es-MX','lbxNewQualRecords',N'Números de nuevos registros calificados','N','N') , (1999,'9/11/2015','es-MX','lbxNewRecordTitle',N'Agregar Nuevo Registro de Producto','N','N') , (1999,'9/11/2015','es-MX','lbxNewRequestRWTitle',N'Crear Nueva Solicitud','N','N') , (1999,'2/15/2016','es-MX','lbxNewsCulture',N'Idioma de las Noticias','N','N') , (1999,'2/15/2016','es-MX','lbxNewsEffectiveDate',N'Fecha de Efectividad:','N','N') , (1999,'9/6/2016','es-MX','lbxNewsLastLoginIndicator',N'Indica Noticias desde el ultimo ingreso','N','N') , (1999,'3/1/2016','es-MX','lbxNewState',N'Estado / Provincia','N','N') , (1999,'2/15/2016','es-MX','lbxNewsType',N'Tipo de Noticia','N','N') , (1999,'9/6/2016','es-MX','lbxNewTransportID',N'Nuevo ID de transporte','N','N') , (1999,'9/11/2015','es-MX','lbxNewType',N'Tipo de Solicitud','N','N') , (1999,'9/6/2016','es-MX','lbxNewValidationError',N'Nueva Error de Validación','N','N') , (1999,'2/22/2010','es-MX','lbxNewValue',N'Asignar nuevo valor','N','N') , (1999,'9/6/2016','es-MX','lbxNonCert',N'Carta No Certificada','N','N') , (1999,'3/1/2016','es-MX','lbxNot Calculated',N'Sin calcular','N','N') , (1999,'3/1/2016','es-MX','lbxNotCalculated',N'Sin calcular','N','N') , (1999,'9/11/2015','es-MX','lbxNotes',N'Notas:','N','N') , (1999,'9/11/2015','es-MX','lbxNotesTitle',N'Notas','N','N') , (1999,'9/6/2016','es-MX','lbxNoteType',N'Tipo de Nota','N','N') , (1999,'3/1/2016','es-MX','lbxNoticeComments',N'Comentarios','N','N') , (1999,'3/1/2016','es-MX','lbxNoticeCompDesc',N'Descripción','N','N') , (1999,'3/1/2016','es-MX','lbxNoticeDate',N'Fecha','N','N') , (1999,'3/1/2016','es-MX','lbxNoticeDetail',N'Detalle','N','N') , (1999,'3/1/2016','es-MX','lbxNoticeFromCompany',N'Empresa que Transfiere','N','N') , (1999,'3/1/2016','es-MX','lbxNoticeHeader',N'Encabezado del Aviso de Traslado','N','N') , (1999,'3/1/2016','es-MX','lbxNoticeNum',N'Número de Notificación','N','N') , (1999,'3/1/2016','es-MX','lbxNoticeOperation',N'Tipo de Operación','N','N') , (1999,'3/1/2016','es-MX','lbxNoticeResponsible',N'Representate Legal','N','N') , (1999,'3/1/2016','es-MX','lbxNoticeToCompany',N'Empresa que Recibe','N','N') , (1999,'3/1/2016','es-MX','lbxNoticeType',N'Tipo de Traslado','N','N') , (1999,'3/1/2016','es-MX','lbxNotificationInterval',N'Intervalo de Notificaciones (en minutos)','N','N') , (1999,'3/1/2016','es-MX','lbxNotificationPosition',N'Posición de Notificación','N','N') , (1999,'3/1/2016','es-MX','lbxNum2Source',N'Fuente de TIGI Num. 2','N','N') , (1999,'3/1/2016','es-MX','lbxNumberOfContainers',N'Cant. en Manifiesto','N','N') , (1999,'3/1/2016','es-MX','lbxNumFlag',N'Número de Bandera','N','N') , (1999,'3/1/2016','es-MX','lbxObservations',N'Observaciones','N','N') , (1999,'9/6/2016','es-MX','lbxOnReport',N'Notas en el reporte','N','N') , (1999,'9/6/2016','es-MX','lbxOpenQuery',N'Consulta Abierta','N','N') , (1999,'3/1/2016','es-MX','lbxOPENQUERYADD',N'Mis Consultas: Agregar','N','N') , (1999,'3/1/2016','es-MX','lbxOperationNum',N'Número de Operación','N','N') , (1999,'3/1/2016','es-MX','lbxOperations',N'Operaciones','N','N') , (1999,'3/1/2016','es-MX','lbxOperationType',N'Tipo de Operación','N','N') , (1999,'2/26/2010','es-MX','lbxOperator',N'Operador','N','N') , (1999,'2/15/2016','es-MX','lbxOpinionLabel',N'Texto de Opinión','N','N') , (1999,'2/15/2016','es-MX','lbxOptional',N'Campos Opcionales','N','N') , (1999,'3/1/2016','es-MX','lbxOrder Num Receipt',N'Número de orden de factura','N','N') , (1999,'3/1/2016','es-MX','lbxOrderN',N'Número de Orden','N','N') , (1999,'3/1/2016','es-MX','lbxOrderNumReceipt',N'Número de Orden de Recibo','N','N') , (1999,'3/1/2016','es-MX','lbxOrderNumShip',N'Número de Orden de Embarque','N','N') , (1999,'3/1/2016','es-MX','lbxOrderNumWork',N'Número de Orden de Trabajo','N','N') , (1999,'2/15/2016','es-MX','lbxOrigination_GeneralRule',N'Reglas Generales','N','N') , (1999,'2/15/2016','es-MX','lbxOrigination_RulesOfOriginNonPreferential',N'Normas No Preferenciales de Origen','N','N') , (1999,'2/15/2016','es-MX','lbxOrigination_RulesOfOriginPreferential',N'Reglas Específicas','N','N') , (1999,'9/6/2016','es-MX','lbxOriginLoc',N'Origen','N','N') , (1999,'2/15/2016','es-MX','lbxOtherDuty',N'Otros Impuestos','N','N') , (1999,'2/15/2016','es-MX','lbxOtherImportCharges',N'Otros Cargos de Importación','N','N') , (1999,'3/1/2016','es-MX','lbxOtherMethodsHdr',N'Otros Metodos','N','N') , (1999,'3/1/2016','es-MX','lbxOtherSection',N'Otros métodos (para aquellos casos en que se utilizó otro método además de "valor de transacción de la mercancía")','N','N') , (1999,'4/8/2010','es-MX','lbxOverride',N'Anulación','N','N') , (1999,'4/8/2010','es-MX','lbxOverrideDate',N'Fecha Anulada','N','N') , (1999,'9/6/2016','es-MX','lbxOverrideFlag',N'Bandera de Sobrecarga','N','N') , (1999,'9/6/2016','es-MX','lbxOverrideHeader',N'Invalidar Empresas','N','N') , (1999,'2/15/2016','es-MX','lbxOverwriteSave',N'Modificar/Sobrescribir Búsquedas Existentes','N','N') , (1999,'3/1/2016','es-MX','lbxPackaging',N'Embalaje','N','N') , (1999,'3/1/2016','es-MX','lbxPacking',N'Embalaje','N','N') , (1999,'3/1/2016','es-MX','lbxPackingCharges',N'Gastos de Embalaje','N','N') , (1999,'3/1/2016','es-MX','lbxPackingList',N'Lista de Empaque','N','N') , (1999,'3/1/2016','es-MX','lbxPage',N'Página','N','N') , (1999,'3/1/2016','es-MX','lbxPages',N'Numero de Paginas','N','N') , (1999,'9/6/2016','es-MX','lbxPaginated',N'Paginado','N','N') , (1999,'3/1/2016','es-MX','lbxParameter',N'Ingresar parámetro','N','N') , (1999,'9/6/2016','es-MX','lbxParameters',N'Parameters: Numero de Dias =','N','N') , (1999,'3/1/2016','es-MX','lbxParentID',N'Número de Ensamblado','N','N') , (1999,'3/1/2016','es-MX','lbxPartCategoryCode',N'Código de Categoría de Parte','N','N') , (1999,'3/1/2016','es-MX','lbxParties',N'Terceros','N','N') , (1999,'3/1/2016','es-MX','lbxPartMaster',N'Utilice El Amo Del Artículo','N','N') , (1999,'2/15/2016','es-MX','lbxPartner',N'Socio Actual:','N','N') , (1999,'9/6/2016','es-MX','lbxPartnerID',N'ID de partner','N','N') , (1999,'9/6/2016','es-MX','lbxPartnerLevelSearch',N'Búsqueda de nivel de socio','N','N') , (1999,'9/6/2016','es-MX','lbxParty',N'Seleccionar Entidad','N','N') , (1999,'9/11/2015','es-MX','lbxPartyAddress1',N'Dirección 1','N','N') , (1999,'9/11/2015','es-MX','lbxPartyAddress2',N'Dirección 2','N','N') , (1999,'9/11/2015','es-MX','lbxPartyAddress3',N'Dirección 3','N','N') , (1999,'9/11/2015','es-MX','lbxPartyAddress4',N'Dirección 4','N','N') , (1999,'9/11/2015','es-MX','lbxPartyCity',N'Ciudad','N','N') , (1999,'9/11/2015','es-MX','lbxPartyContactEmail',N'Correo de Contacto','N','N') , (1999,'9/11/2015','es-MX','lbxPartyContactFax',N'Fax de Contacto','N','N') , (1999,'9/11/2015','es-MX','lbxPartyContactName',N'Nombre de Contacto','N','N') , (1999,'9/11/2015','es-MX','lbxPartyContactPhone',N'Telefono de Contacto','N','N') , (1999,'9/11/2015','es-MX','lbxPartyContactTitle',N'Titulo de Contacto','N','N') , (1999,'9/11/2015','es-MX','lbxPartyCountryCode',N'Codigo de País','N','N') , (1999,'9/11/2015','es-MX','lbxPartyEditRWTitle1',N'Editar','N','N') , (1999,'9/11/2015','es-MX','lbxPartyEditRWTitle2',N'Información','N','N') , (1999,'9/11/2015','es-MX','lbxPartyName',N'Nombre','N','N') , (1999,'9/11/2015','es-MX','lbxPartyPostalCode',N'Codigo Postal','N','N') , (1999,'9/11/2015','es-MX','lbxPartyState',N'Estado','N','N') , (1999,'9/11/2015','es-MX','lbxPartyTaxID',N'ID de Tarifa','N','N') , (1999,'9/6/2016','es-MX','lbxPartyType',N'Tipo de Entidad','N','N') , (1999,'9/11/2015','es-MX','lbxPassFail',N'Resultado BOM','N','N') , (1999,'3/1/2016','es-MX','lbxPassword',N'Contraseña','N','N') , (1999,'3/1/2016','es-MX','lbxPasswordRecalculate',N'Contraseña para re calcular aprobación','N','N') , (1999,'3/1/2016','es-MX','lbxPasswordToCancelSubmaquilaBalances',N'Contraseña para cancelación de balances:','N','N') , (1999,'3/11/2010','es-MX','lbxPayment',N'Pago','N','N') , (1999,'3/1/2016','es-MX','lbxPaymentDate',N'Fecha de Pago','N','N') , (1999,'3/1/2016','es-MX','lbxPaymentDocuments',N'Documentos de Pago','N','N') , (1999,'3/1/2016','es-MX','lbxPaymentTypesByDocumentCodes',N'Tipo de Pago por código de Documento','N','N') , (1999,'9/11/2015','es-MX','lbxPCAreaCost',N'Costo de Area del PC','N','N') , (1999,'9/11/2015','es-MX','lbxPCForeignCost',N'Costo Foraneo del PC','N','N') , (1999,'9/11/2015','es-MX','lbxPCLocalCost',N'Costo Local del PC','N','N') , (1999,'9/11/2015','es-MX','lbxPCTotalCost',N'Costo Total del PC','N','N') , (1999,'9/11/2015','es-MX','lbxPDFLink',N'Enlace de Descarga PDF','N','N') , (1999,'9/6/2016','es-MX','lbxPeaAdd',N'Agregar','N','N') , (1999,'9/6/2016','es-MX','lbxPeaSearch',N'Búsqueda de PEA','N','N') , (1999,'9/6/2016','es-MX','lbxPeaSelect',N'Seleccionar PEA','N','N') , (1999,'3/1/2016','es-MX','lbxPedCode',N'Código de Pedimento','N','N') , (1999,'3/1/2016','es-MX','lbxPedCount',N'Total de Pedimentos','N','N') , (1999,'3/1/2016','es-MX','lbxPedDates',N'Fechas de pedimento','N','N') , (1999,'3/1/2016','es-MX','lbxPedDetail',N'Tipo de pedimento','N','N') , (1999,'3/1/2016','es-MX','lbxPedEndDate',N'Fecha Final','N','N') , (1999,'3/1/2016','es-MX','lbxPedimento',N'Pedimento *','N','N') , (1999,'3/1/2016','es-MX','lbxPedimento/NoticeNum',N'Número de Pedimento/Aviso','N','N') , (1999,'3/1/2016','es-MX','lbxPedimentoAuthorizationCode',N'Código De Autorizacion','N','N') , (1999,'3/1/2016','es-MX','lbxPedimentoBeginDate',N'Fecha de Entrada','N','N') , (1999,'3/1/2016','es-MX','lbxPedimentoCategory',N'Categoría del Pedimento','N','N') , (1999,'3/1/2016','es-MX','lbxPedimentoCategoryryNum',N'Categoría del Pedimento','N','N') , (1999,'3/1/2016','es-MX','lbxPedimentoCode',N'Código del Pedimento','N','N') , (1999,'3/1/2016','es-MX','lbxPedimentoDate',N'Fecha de Pedimento','N','N') , (1999,'3/1/2016','es-MX','lbxPedimentoDetail',N'Detalles','N','N') , (1999,'3/1/2016','es-MX','lbxPedimentoEndDate',N'Fecha de Pago','N','N') , (1999,'3/1/2016','es-MX','lbxPedimentoHeader',N'Encabezado','N','N') , (1999,'3/1/2016','es-MX','lbxPedimentoID',N'Pedimento','N','N') , (1999,'3/1/2016','es-MX','lbxPedimentoNum',N'Número de Pedimento','N','N') , (1999,'3/1/2016','es-MX','lbxPedimentoNumber',N'Número de Pedimento:','N','N') , (1999,'3/1/2016','es-MX','lbxPedimentoRegimen',N'Régimen','N','N') , (1999,'3/1/2016','es-MX','lbxPedimentos',N'Pedimentos','N','N') , (1999,'3/1/2016','es-MX','lbxPedStartDate',N'Seleccionar Fecha de Inicio','N','N') , (1999,'9/6/2016','es-MX','lbxPerformInsertButton',N'Insertar','N','N') , (1999,'3/1/2016','es-MX','lbxPerformSearch',N'Buscar','N','N') , (1999,'3/1/2016','es-MX','lbxPeriod',N'Periodo','N','N') , (1999,'3/1/2016','es-MX','lbxPermitID',N'Tipo de Permiso','N','N') , (1999,'3/1/2016','es-MX','lbxPermitsByTariff',N'Permiso de tarifa','N','N') , (1999,'3/1/2016','es-MX','lbxPermitType',N'Tipo de Regulación','N','N') , (1999,'3/1/2016','es-MX','lbxPgReference',N'Referencia de Paginas con Numero y Letra','N','N') , (1999,'9/11/2015','es-MX','lbxPhoneNumber',N'Número Telefónico','N','N') , (1999,'9/6/2016','es-MX','lbxPickFTAs',N'.','N','N') , (1999,'9/6/2016','es-MX','lbxPlantID',N'ID de la fábrica','N','N') , (1999,'9/6/2016','es-MX','lbxPNFlag',N'Aviso de envío anticipado','N','N') , (1999,'3/11/2010','es-MX','lbxPort',N'Puerto','N','N') , (1999,'3/1/2016','es-MX','lbxPortCode',N'Puerto','N','N') , (1999,'9/6/2016','es-MX','lbxPortLadingCode',N'Código de Puerto de Carga','N','N') , (1999,'3/1/2016','es-MX','lbxPortOfExport',N'Puerto de Exportacion','N','N') , (1999,'9/6/2016','es-MX','lbxPortOfLading',N'Puerto de Carga','N','N') , (1999,'9/6/2016','es-MX','lbxPortOfOrigin',N'Del puerto de / Aeropuerto de origen','N','N') , (1999,'9/6/2016','es-MX','lbxPortOfUnlading',N'Puerto de Descarga','N','N') , (1999,'9/6/2016','es-MX','lbxPortUnladingCode',N'Código Puerto de Descarga','N','N') , (1999,'9/6/2016','es-MX','lbxPostalCode',N'Codigo Postal','N','N') , (1999,'9/11/2015','es-MX','lbxPrefCrit',N'Criterio Preferencial','N','N') , (1999,'2/15/2016','es-MX','lbxPrefDuty',N'Arancel Preferencial','N','N') , (1999,'3/1/2016','es-MX','lbxPrevalidator',N'Pre-validador','N','N') , (1999,'9/6/2016','es-MX','lbxPreviousNotes',N'Notas Previas','N','N') , (1999,'3/1/2016','es-MX','lbxPreviousPedimentos',N'Pedimentos','N','N') , (1999,'3/1/2016','es-MX','lbxPreviousYearForeignInvestment',N'Año Anterior','N','N') , (1999,'3/1/2016','es-MX','lbxPricePaid',N'Precio Pagado en la moneda que se factura','N','N') , (1999,'9/6/2016','es-MX','lbxPrintLast',N'Imprimir las ultimas','N','N') , (1999,'3/1/2016','es-MX','lbxProcessingFee',N'Cuota de Procesamiento','N','N') , (1999,'9/6/2016','es-MX','lbxProcessReleaseNumber',N'Proceso de liberación de número','N','N') , (1999,'9/6/2016','es-MX','lbxProcessWebServer',N'Servidor de procesos web','N','N') , (1999,'9/6/2016','es-MX','lbxProdClassificationGuidList',N'GUID de lista de clasificación de productos','N','N') , (1999,'2/26/2010','es-MX','lbxProducer',N'Fabricante','N','N') , (1999,'9/11/2015','es-MX','lbxProducerAddress',N'Dirección:','N','N') , (1999,'2/26/2010','es-MX','lbxProducerAddress1',N'Dirección del fabricante','N','N') , (1999,'2/26/2010','es-MX','lbxProducerAddress2',N'Dirección del Productor 2','N','N') , (1999,'9/11/2015','es-MX','lbxProducerEmail',N'Correo','N','N') , (1999,'9/11/2015','es-MX','lbxProducerInfoLabel',N'Información de Frabricante','N','N') , (1999,'2/26/2010','es-MX','lbxProducerName',N'Nombre del fabricante','N','N') , (1999,'2/26/2010','es-MX','lbxProducerTaxID',N'RFC del fabricante','N','N') , (1999,'2/26/2010','es-MX','lbxProduct',N'Producto','N','N') , (1999,'3/1/2016','es-MX','lbxProductChanges',N'Cambio de Producto','N','N') , (1999,'3/1/2016','es-MX','lbxProductCodeQualifier1',N'Clasificado 1','N','N') , (1999,'3/1/2016','es-MX','lbxProductCodeQualifier2',N'Clasificado 2','N','N') , (1999,'3/1/2016','es-MX','lbxProductCodeQualifier3',N'Clasificado 3','N','N') , (1999,'9/6/2016','es-MX','lbxProductColor',N'Color del Producto :','N','N') , (1999,'3/1/2016','es-MX','lbxProductData',N'Información del Producto','N','N') , (1999,'9/11/2015','es-MX','lbxProductDesc',N'Desc. del Producto *','N','N') , (1999,'3/1/2016','es-MX','lbxProductDescSource',N'Fuente de Descripción de Producto','N','N') , (1999,'3/1/2016','es-MX','lbxProductEntity',N'Entidad del producto','N','N') , (1999,'9/11/2015','es-MX','lbxProductExWorks',N'Product ExWorks%','N','N') , (1999,'9/6/2016','es-MX','lbxProductGroup',N'Grupo del Producto','N','N') , (1999,'3/1/2016','es-MX','lbxProductIndividual',N'Producto Individual','N','N') , (1999,'3/1/2016','es-MX','lbxProduction',N'En producción','N','N') , (1999,'9/11/2015','es-MX','lbxProductNum',N'Número de Producto','N','N') , (1999,'3/1/2016','es-MX','lbxProductNumber',N'Número de Producto *','N','N') , (1999,'2/24/2010','es-MX','lbxProductSearch',N'Buscar Productos','N','N') , (1999,'9/6/2016','es-MX','lbxProductState',N'Estado del Producto:','N','N') , (1999,'3/1/2016','es-MX','lbxProductTypeCode',N'Código de Tipo de Producto *','N','N') , (1999,'3/1/2016','es-MX','lbxProductTypeCodeSource',N'Fuente de tipo de código de producto','N','N') , (1999,'9/11/2015','es-MX','lbxProfit',N'Beneficio','N','N') , (1999,'3/1/2016','es-MX','lbxProgram1',N'Programa 1','N','N') , (1999,'3/1/2016','es-MX','lbxProgram2',N'Programa 2','N','N') , (1999,'3/1/2016','es-MX','lbxProgramCodes',N'Códigos de Programa','N','N') , (1999,'3/1/2016','es-MX','lbxProgramType',N'Tipo de Programa Origen','N','N') , (1999,'3/1/2016','es-MX','lbxPurchaseOrderNum',N'Número de Orden de Compra','N','N') , (1999,'3/1/2016','es-MX','lbxQtyPerIm',N'Cantidad por IM','N','N') , (1999,'3/1/2016','es-MX','lbxQuantity',N'Cantidad','N','N') , (1999,'9/6/2016','es-MX','lbxQueries',N'Consultas','N','N') , (1999,'9/6/2016','es-MX','lbxQueryName',N'Nombre de consulta','N','N') , (1999,'2/15/2016','es-MX','lbxQuotaDetails',N'Detalles de Cupo','N','N') , (1999,'3/1/2016','es-MX','lbxR8TariffNum',N'Número de Fracción','N','N') , (1999,'3/1/2016','es-MX','lbxrbxlstPedimentoDisplay_0',N'Mostrar No Impresas','N','N') , (1999,'3/1/2016','es-MX','lbxRCO21Source',N'Fuente RCO 21','N','N') , (1999,'3/1/2016','es-MX','lbxRCO21Source1',N'Fuente RCO21','N','N') , (1999,'3/1/2016','es-MX','lbxRCO22Source',N'Fuente RCO 22','N','N') , (1999,'3/1/2016','es-MX','lbxRCO22Source1',N'Fuente RCO22','N','N') , (1999,'3/1/2016','es-MX','lbxRCO23Source',N'Fuente RCO 23','N','N') , (1999,'3/1/2016','es-MX','lbxRCO23Source1',N'Fuente RCO23','N','N') , (1999,'4/7/2016','es-MX','lbxrdxlstView_0',N'Vista en Cuadricula','N','N') , (1999,'4/7/2016','es-MX','lbxrdxlstView_1',N'Vista de Árbol','N','N') , (1999,'3/1/2016','es-MX','lbxReason',N'Razón de Cancelación','N','N') , (1999,'3/11/2010','es-MX','lbxReasonCode',N'Motivo','N','N') , (1999,'3/1/2016','es-MX','lbxReceiptDate',N'Fecha de Recibo','N','N') , (1999,'3/1/2016','es-MX','lbxReceiptDocID',N'ID del Documento de Recibo','N','N') , (1999,'3/1/2016','es-MX','lbxReceiptSupplement',N'Suplemento de Recibo','N','N') , (1999,'3/1/2016','es-MX','lbxReceiptSupplementSource',N'Fuente de Suplemento de Recibo','N','N') , (1999,'9/6/2016','es-MX','lbxReceiptType',N'Tipo de Recibo','N','N') , (1999,'2/15/2016','es-MX','lbxRecentSearchesType',N'Tipos Recientes de Búsqueda','N','N') , (1999,'9/6/2016','es-MX','lbxRecFromDate',N'Fecha de Inicio:','N','N') , (1999,'9/11/2015','es-MX','lbxRecipient',N'Compañía destino','N','N') , (1999,'9/6/2016','es-MX','lbxRecordCount',N'Cuenta de registros','N','N') , (1999,'3/1/2016','es-MX','lbxRecordPerPage',N'Registros por página','N','N') , (1999,'9/6/2016','es-MX','lbxRecords',N'Mostrar Registros','N','N') , (1999,'2/22/2010','es-MX','lbxRecordsPerPage',N'Registros por Página','N','N') , (1999,'2/22/2010','es-MX','lbxRecordsToDisplay',N'Records a Mostrar','N','N') , (1999,'3/1/2016','es-MX','lbxRecordsToInclude',N'Los registros para incluir','N','N') , (1999,'3/1/2016','es-MX','lbxRecsPerPg',N'Registros por pagina','N','N') , (1999,'9/6/2016','es-MX','lbxRecStatus',N'Estatus','N','N') , (1999,'3/1/2016','es-MX','lbxRectificaciones',N'Rectificaciones','N','N') , (1999,'3/1/2016','es-MX','lbxRectificacionesFees',N'Derechos por rectificaciones','N','N') , (1999,'9/6/2016','es-MX','lbxRecToDate',N'Fecha de Fin:','N','N') , (1999,'9/6/2016','es-MX','lbxReferenceNum',N'Número de referencia','N','N') , (1999,'3/1/2016','es-MX','lbxReferencesHdr',N'Referencias','N','N') , (1999,'9/6/2016','es-MX','lbxREFlag',N'Autorización de Exportación a embarque','N','N') , (1999,'3/11/2010','es-MX','lbxRefund',N'Devolución','N','N') , (1999,'4/8/2010','es-MX','lbxRegEffDate',N'Fecha que se Efectuo','N','N') , (1999,'4/8/2010','es-MX','lbxRegEntityRemarks',N'Comentarios de Entidad','N','N') , (1999,'4/8/2010','es-MX','lbxRegExpDate',N'Fecha que Expiran','N','N') , (1999,'4/8/2010','es-MX','lbxRegList',N'Lista','N','N') , (1999,'4/8/2010','es-MX','lbxRegListID',N'Lista de registro','N','N') , (1999,'9/6/2016','es-MX','lbxRegulation',N'Regulación','N','N') , (1999,'2/15/2016','es-MX','lbxRegulationList',N'Lista de regulaciones','N','N') , (1999,'4/8/2010','es-MX','lbxRegUniqueID',N'ID Unico','N','N') , (1999,'9/11/2015','es-MX','lbxRejectDocTitle',N'Rechazar Documento','N','N') , (1999,'2/15/2016','es-MX','lbxRelatedECN',N'Número(s) de Controles ECN llenados con AES','N','N') , (1999,'2/15/2016','es-MX','lbxRelatedHS',N'Fracción Arancelaria SA Relacionada','N','N') , (1999,'3/1/2016','es-MX','lbxRelationDate',N'Fecha','N','N') , (1999,'3/1/2016','es-MX','lbxRelationID',N'ID de Relación','N','N') , (1999,'3/1/2016','es-MX','lbxRelationNum',N'Número de Relación','N','N') , (1999,'3/1/2016','es-MX','lbxRelationshipFlag',N'Bandera de Relación','N','N') , (1999,'3/1/2016','es-MX','lbxRelationshipFlag1',N'Bandera de relación','N','N') , (1999,'3/1/2016','es-MX','lbxRelationshipFlagSource',N'Fuente de Bandera de Relación','N','N') , (1999,'3/1/2016','es-MX','lbxRelationshipFlagSource1',N'Fuente de bandera de Relación','N','N') , (1999,'9/6/2016','es-MX','lbxRelFlag',N'Existe Vinculación','N','N') , (1999,'9/6/2016','es-MX','lbxRemainingQty',N'Restante','N','N') , (1999,'9/6/2016','es-MX','lbxRemainingValue',N'Restante','N','N') , (1999,'3/1/2016','es-MX','lbxRemesaNum',N'Número de Remesa','N','N') , (1999,'9/11/2015','es-MX','lbxReminderDate',N'Fecha de Recordatorio:','N','N') , (1999,'9/11/2015','es-MX','lbxReminderEmail',N'Correo de Recordatorio:','N','N') , (1999,'9/11/2015','es-MX','lbxReminderSent',N'Enviar Recordatorio el:','N','N') , (1999,'9/11/2015','es-MX','lbxRemindersTitle',N'Administrar Información de Recordatorio','N','N') , (1999,'3/1/2016','es-MX','lbxRepID',N'Representante Legal','N','N') , (1999,'4/8/2010','es-MX','lbxReportFormat',N'Formato de Informe/Reporte','N','N') , (1999,'9/11/2015','es-MX','lbxReportHistoryTitle',N'Reportes Generados Anteriormente','N','N') , (1999,'9/6/2016','es-MX','lbxReportingLevel',N'Nivel de Reporte','N','N') , (1999,'3/1/2016','es-MX','lbxReportingYear',N'Mover datos de proceso para la fecha','N','N') , (1999,'3/1/2016','es-MX','lbxReportLevel',N'Companias','N','N') , (1999,'9/6/2016','es-MX','lbxReportOptions',N'Opción de Reporte','N','N') , (1999,'9/6/2016','es-MX','lbxReportPeriod',N'Período del reporte','N','N') , (1999,'3/1/2016','es-MX','lbxReportTitle',N'Titulo del Informe/Reporte','N','N') , (1999,'3/1/2016','es-MX','lbxReportType',N'Tipo de Reporte','N','N') , (1999,'3/1/2016','es-MX','lbxReportYear',N'Informe Año/ Reporte','N','N') , (1999,'3/1/2016','es-MX','lbxRepresentative',N'Representante','N','N') , (1999,'9/11/2015','es-MX','lbxReqStatus',N'Estado de la Solicitud','N','N') , (1999,'9/11/2015','es-MX','lbxReqType',N'Tipo de Solicitud','N','N') , (1999,'9/6/2016','es-MX','lbxRequestDate',N'*Fecha del Pedido:','N','N') , (1999,'9/11/2015','es-MX','lbxRequestDates',N'Fechas de Solicitud','N','N') , (1999,'9/6/2016','es-MX','lbxRequestErrors',N'Errores de solicitud','N','N') , (1999,'9/6/2016','es-MX','lbxRequestName',N'Nombre de solicitud','N','N') , (1999,'9/6/2016','es-MX','lbxRequestorEmail',N'*E-mail:','N','N') , (1999,'9/6/2016','es-MX','lbxRequestorName',N'*Nombre:','N','N') , (1999,'9/6/2016','es-MX','lbxRequestReleaseNumber',N'Solicitud de liberación de número','N','N') , (1999,'2/24/2010','es-MX','lbxRequestStatus',N'Status de Solicitud','N','N') , (1999,'9/11/2015','es-MX','lbxRequestTitle',N'Titulo de Solicitud:','N','N') , (1999,'9/6/2016','es-MX','lbxRequestWarnings',N'Advertencias de solicitud','N','N') , (1999,'9/6/2016','es-MX','lbxRequestWebServer',N'Solicitud de servidor web','N','N') , (1999,'2/24/2010','es-MX','lbxRequestyear',N'Año de Solicitud','N','N') , (1999,'3/1/2016','es-MX','lbxRequiredEntry',N'* Campo Obligatorio','N','N') , (1999,'2/15/2016','es-MX','lbxRequiredFields',N'Campos Requeridos','N','N') , (1999,'9/6/2016','es-MX','lbxResponseGUID',N'GUID de respuesta','N','N') , (1999,'9/6/2016','es-MX','lbxResult',N'Resultado','N','N') , (1999,'9/6/2016','es-MX','lbxResults',N'Resultados','N','N') , (1999,'2/15/2016','es-MX','lbxResultsDetail0_Destination',N'País de Destino','N','N') , (1999,'2/15/2016','es-MX','lbxResultsDetail0_Origin',N'País de Origen','N','N') , (1999,'2/15/2016','es-MX','lbxResultsDetail1_Destination',N'País de Destino','N','N') , (1999,'2/15/2016','es-MX','lbxResultsDetail1_Origin',N'País de Origen','N','N') , (1999,'9/6/2016','es-MX','lbxResultsHeader',N'Resultado de Busquedas','N','N') , (1999,'9/11/2015','es-MX','lbxResultsTitle',N'Resultados de Usuario Actualez','N','N') , (1999,'9/6/2016','es-MX','lbxReturnNodesString',N'Cadena de retorno de nodos','N','N') , (1999,'9/6/2016','es-MX','lbxReturnNotes',N'Notas de retorno','N','N') , (1999,'9/6/2016','es-MX','lbxReturnPeriod',N'Periodo de regreso','N','N') , (1999,'3/1/2016','es-MX','lbxReturns',N'Retornos','N','N') , (1999,'4/8/2010','es-MX','lbxReward',N'Recompensa','N','N') , (1999,'3/1/2016','es-MX','lbxrgd Group List_Current User Partner Group Count',N'Número de usuarios con acceso de grupo para el Id del Socio actual','N','N') , (1999,'3/1/2016','es-MX','lbxrgd User List_Email',N'Correo Electrónico','N','N') , (1999,'3/1/2016','es-MX','lbxrgdGroupList_CurrentUserPartnerGroupCount',N'Número de usuarios con acceso de grupo para el Id del Socio actual','N','N') , (1999,'3/1/2016','es-MX','lbxrgdGroupList_Description',N'Nombre del Grupo','N','N') , (1999,'3/1/2016','es-MX','lbxrgdGroupList_FormAccessCount',N'Número de Acceso de la Forma','N','N') , (1999,'3/1/2016','es-MX','lbxrgdGroupList_TotalUserPartnerGroupCount',N'Número total de usuarios con acceso de grupo para Todos Socios','N','N') , (1999,'3/1/2016','es-MX','lbxrgdUserList_Current Password Retries',N'Reintentos de la Contraseña Actual','N','N') , (1999,'3/1/2016','es-MX','lbxrgdUserList_Email',N'Correo Electrónico','N','N') , (1999,'3/1/2016','es-MX','lbxrgdUserList_Enabled',N'Habilitado','N','N') , (1999,'3/1/2016','es-MX','lbxrgdUserList_First Name',N'Primer Nombre','N','N') , (1999,'3/1/2016','es-MX','lbxrgdUserList_Force Password Change',N'Cambio de Contraseña Forzado','N','N') , (1999,'3/1/2016','es-MX','lbxrgdUserList_Last Login',N'Último Ingreso','N','N') , (1999,'3/1/2016','es-MX','lbxrgdUserList_Last Name',N'Apellido','N','N') , (1999,'3/1/2016','es-MX','lbxrgdUserList_UserName',N'Nombre de Usuario','N','N') , (1999,'3/1/2016','es-MX','lbxrgPedimentos',N'Mostrar Filtro','N','N') , (1999,'3/1/2016','es-MX','lbxRPO11',N'RPO11','N','N') , (1999,'3/1/2016','es-MX','lbxRPO11Source',N'Fuente RPO 11','N','N') , (1999,'3/1/2016','es-MX','lbxRPO12Source',N'Fuente RPO 12','N','N') , (1999,'3/1/2016','es-MX','lbxRPO13Source',N'Fuente RPO 13','N','N') , (1999,'3/1/2016','es-MX','lbxRptQtyUom',N'Cantidad Reportada de U de M','N','N') , (1999,'3/1/2016','es-MX','lbxRptQtyUom1',N'Reporte de Unidad de medida','N','N') , (1999,'3/1/2016','es-MX','lbxRptQtyUomSource',N'Fuente de Cantidad Reportada de U de M','N','N') , (1999,'3/1/2016','es-MX','lbxRptQtyUomSource1',N'Fuente.Reporte Unidad de Medida','N','N') , (1999,'3/1/2016','es-MX','lbxRule8HTSNum',N'Tarifa para Regla 8va','N','N') , (1999,'9/6/2016','es-MX','lbxRuleCategory',N'Categoría del Tratado','N','N') , (1999,'2/26/2010','es-MX','lbxRuleEffDate',N'Fecha Efectiva','N','N') , (1999,'2/26/2010','es-MX','lbxRuleEnabled',N'Regla Habilitada','N','N') , (1999,'2/26/2010','es-MX','lbxRuleException',N'Regla Excepción','N','N') , (1999,'2/26/2010','es-MX','lbxRuleExpDate',N'Fecha de Expiración','N','N') , (1999,'2/26/2010','es-MX','lbxRuleFlag',N'Tipo de Regla','N','N') , (1999,'2/26/2010','es-MX','lbxRuleKey',N'Número de capítulo','N','N') , (1999,'2/26/2010','es-MX','lbxRuleList',N'Lista de Reglas','N','N') , (1999,'2/26/2010','es-MX','lbxRuleName',N'Nombre de la Regla','N','N') , (1999,'3/1/2016','es-MX','lbxRules',N'Reglas','N','N') , (1999,'2/26/2010','es-MX','lbxRuleSeq',N'Secuencia de Regla','N','N') , (1999,'2/15/2016','es-MX','lbxRulesOfOrigin',N'Regla de Origen','N','N') , (1999,'2/26/2010','es-MX','lbxRuleType',N'Categoría/TLC','N','N') , (1999,'9/6/2016','es-MX','lbxRulingNotes',N'Notas de Regla','N','N') INSERT INTO tmgPartnerCultureDefinitions(PartnerId,EffDate,CultureGuid,FieldName,FieldTranslation,DeletedFlag,KeepDuringRollback) VALUES (1999,'3/1/2016','es-MX','lbxRunQueryAnnex31',N'Correr Consulta','N','N') , (1999,'9/11/2015','es-MX','lbxRVC',N'RVC','N','N') , (1999,'9/6/2016','es-MX','lbxRWeditcategory',N'Categoria de la búsqueda','N','N') , (1999,'9/6/2016','es-MX','lbxRWeditdescription',N'Descripción de la Búsqueda','N','N') , (1999,'9/6/2016','es-MX','lbxRWeditedit',N'Permitir que esta búsqueda sea editable?','N','N') , (1999,'9/6/2016','es-MX','lbxRWeditinfo',N'Guardar estos parámetros editados en una nueva búsqueda?','N','N') , (1999,'9/6/2016','es-MX','lbxRWeditname',N'Nombre de la búsqueda','N','N') , (1999,'9/6/2016','es-MX','lbxRWeditshare',N'Compartir esta búsqueda','N','N') , (1999,'9/6/2016','es-MX','lbxRWsearchcategory',N'Categoría de Búsqueda :','N','N') , (1999,'9/6/2016','es-MX','lbxRWsearchdescription',N'Descripción de la Búsqueda','N','N') , (1999,'9/6/2016','es-MX','lbxRWsearchedit',N'Permitir que esta Búsqueda sea editable?','N','N') , (1999,'9/6/2016','es-MX','lbxRWsearchinfo',N'Guardar estos parámetros de búsqueda en una nueva búsqueda?','N','N') , (1999,'9/6/2016','es-MX','lbxRWsearchname',N'Nombre de Búsqueda :','N','N') , (1999,'9/6/2016','es-MX','lbxRWsearchshare',N'Compartir esta Búsqueda?','N','N') , (1999,'9/6/2016','es-MX','lbxrwSupplier',N'Prooverdor','N','N') , (1999,'9/6/2016','es-MX','lbxRWTitleVoid',N'Anular','N','N') , (1999,'3/1/2016','es-MX','lbxSAAI Companies',N'Compañías SAAI','N','N') , (1999,'3/1/2016','es-MX','lbxSAAICompanies',N'Compañías SAAI','N','N') , (1999,'3/1/2016','es-MX','lbxSaaiCompany',N'Compañías SAAI','N','N') , (1999,'3/1/2016','es-MX','lbxSaaiINPCFeeFactor',N'Factores de Pago INPC','N','N') , (1999,'3/1/2016','es-MX','lbxSaaiProgramCodes',N'Códigos de Programa','N','N') , (1999,'4/8/2010','es-MX','lbxSanctionsProgram',N'Sección de Programa','N','N') , (1999,'2/15/2016','es-MX','lbxSaveAsNew',N'Guardar como Nuevo','N','N') , (1999,'9/6/2016','es-MX','lbxSaveAsTemplateName',N'Guardar como Plantilla','N','N') , (1999,'3/1/2016','es-MX','lbxSaveDate',N'Fecha','N','N') , (1999,'3/1/2016','es-MX','lbxSavedInvoices',N'Factura(s)','N','N') , (1999,'3/1/2016','es-MX','lbxSAVEDQRYSELTEMPLATE',N'Selecciona una plantilla...','N','N') , (1999,'2/15/2016','es-MX','lbxSavedSearches',N'Búsquedas guardadas','N','N') , (1999,'3/1/2016','es-MX','lbxSaveHeader',N'Guardar Encabezado','N','N') , (1999,'2/15/2016','es-MX','lbxSaveNewSearch',N'Guardar Nueva Búsqueda','N','N') , (1999,'9/11/2015','es-MX','lbxSavePCListTitle',N'Conjuntos Guardados QUE SI PC','N','N') , (1999,'3/1/2016','es-MX','lbxSavePedimentoHeader',N'Guardar Encabezado','N','N') , (1999,'2/15/2016','es-MX','lbxSaveSearches_SavedSearches',N'Búsquedas Guardadas','N','N') , (1999,'2/15/2016','es-MX','lbxSaveSearches_SearchName',N'Nombre de la Búsqueda','N','N') , (1999,'9/11/2015','es-MX','lbxSaveSignedDoc',N'Cargar y Guardar Documento Firmado','N','N') , (1999,'9/11/2015','es-MX','lbxSaveSingleBOMTitle',N'Guarda QUE SI? Simple','N','N') , (1999,'9/11/2015','es-MX','lbxSBeginDate',N'Fecha de Inicio:','N','N') , (1999,'3/1/2016','es-MX','lbxSCACCode',N'Código de SCAC','N','N') , (1999,'3/1/2016','es-MX','lbxScopeHdr',N'Alcance','N','N') , (1999,'3/1/2016','es-MX','lbxScrap File Upload',N'Carga del Archivo de Scrap','N','N') , (1999,'3/1/2016','es-MX','lbxScrapDesc',N'Descripción del Desecho (Scrap)','N','N') , (1999,'3/1/2016','es-MX','lbxScrapInvoices',N'Facturas','N','N') , (1999,'9/6/2016','es-MX','lbxScrappedQty',N'Cantidad desechada','N','N') , (1999,'3/1/2016','es-MX','lbxScrapType',N'Tipo de Scrap','N','N') , (1999,'3/1/2016','es-MX','lbxScrapValue',N'Valor del Desecho (Scrap)','N','N') , (1999,'9/11/2015','es-MX','lbxScreen',N'Pantalla','N','N') , (1999,'3/1/2016','es-MX','lbxSealedBy',N'Sellada Por','N','N') , (1999,'3/1/2016','es-MX','lbxSealNum',N'Número de Sello','N','N') , (1999,'3/1/2016','es-MX','lbxSearc',N'Buscar','N','N') , (1999,'2/22/2010','es-MX','lbxSearch',N'Buscar','N','N') , (1999,'9/6/2016','es-MX','lbxSearch_No1',N'Buscar','N','N') , (1999,'9/6/2016','es-MX','lbxSearch_No3',N'Buscar','N','N') , (1999,'9/11/2015','es-MX','lbxSearch1',N'Buscar','N','N') , (1999,'4/8/2010','es-MX','lbxSearchBetweenDates',N'Búsqueda entre fechas','N','N') , (1999,'9/6/2016','es-MX','lbxSearchCriteria',N'Criterio de Busqueda','N','N') , (1999,'9/6/2016','es-MX','lbxSearchDetailTypeDelimiter',N'Buscar detalles tipo delimitador','N','N') , (1999,'4/8/2010','es-MX','lbxSearchFields',N'Buscar','N','N') , (1999,'2/15/2016','es-MX','lbxSearchFilter',N'Filtrado de Búsqueda Avanzada','N','N') , (1999,'9/6/2016','es-MX','lbxSearchGUID',N'GUID de búsqueda','N','N') , (1999,'2/15/2016','es-MX','lbxSearchHeadings',N'Buscar:','N','N') , (1999,'9/6/2016','es-MX','lbxSearchInvoices',N'Buscar Facturas','N','N') , (1999,'9/6/2016','es-MX','lbxSearchLicense',N'Buscar Licencia','N','N') , (1999,'2/26/2010','es-MX','lbxSearchName',N'Capítulo','N','N') , (1999,'9/6/2016','es-MX','lbxSearchNameOption',N'Opciones de Búsqueda por Nombre','N','N') , (1999,'2/15/2016','es-MX','lbxSearchProfileSetting',N'¿Le gustaría definir los ajustes de su perfil de búsqueda predeterminado?','N','N') , (1999,'9/6/2016','es-MX','lbxSearchReference',N'Buscar Numero de Referencia','N','N') , (1999,'9/6/2016','es-MX','lbxSearchReferenceLabel',N'Buscar Numero de Referencia','N','N') , (1999,'9/8/2015','es-MX','lbxSearchShipment',N'Buscar Embarque','N','N') , (1999,'3/11/2010','es-MX','lbxSectionMessage',N'Monto de Impuestos Corregido','N','N') , (1999,'3/1/2016','es-MX','lbxSelConcept',N'Seleccione los conceptos que se ultilizan en un caso en particular','N','N') , (1999,'9/6/2016','es-MX','lbxSelect Origin Rule Set(s) To Process',N'Seleccionar conjunto de reglas de origen para procesar','N','N') , (1999,'9/11/2015','es-MX','lbxSelectAll',N'Seleccionar todos','N','N') , (1999,'9/11/2015','es-MX','lbxSelectBOM',N'Seleccionar BOM','N','N') , (1999,'9/11/2015','es-MX','lbxSelectBOMHist',N'Buscar BOM','N','N') , (1999,'9/11/2015','es-MX','lbxSelectBOMTitle',N'Seleccionar BOM','N','N') , (1999,'6/29/2018','es-MX','lbxSelectChapter',N'Buscar por Capítulo o Palabras Clave','N','N') , (1999,'3/1/2016','es-MX','lbxSelectColumn',N'Seleccionar columna','N','N') , (1999,'9/11/2015','es-MX','lbxSelectDate',N'Seleccionar Fecha','N','N') , (1999,'9/11/2015','es-MX','lbxSelectDocumentRWTitle',N'Seleccionar Documento','N','N') , (1999,'9/11/2015','es-MX','lbxSelectEmail',N'Seleccionar Plantilla de Correo','N','N') , (1999,'9/11/2015','es-MX','lbxSelectFTATitle',N'Seleccionar Tratado(s) para Procesar','N','N') , (1999,'3/1/2016','es-MX','lbxSelectInvoiceorCountry',N'Seleccione','N','N') , (1999,'2/15/2016','es-MX','lbxSelectionGuide',N'Cual Capítulo describe mejor su Producto','N','N') , (1999,'3/1/2016','es-MX','lbxSelectKeyColumn',N'Seleccione Documento','N','N') , (1999,'2/15/2016','es-MX','lbxSelectLanguage',N'Seleccione Lenguaje:','N','N') , (1999,'9/6/2016','es-MX','lbxSelectPartner',N'Seleccionar Partner','N','N') , (1999,'9/11/2015','es-MX','lbxSelectPCListTitle',N'Seleccionar Componentes a Alterar','N','N') , (1999,'9/6/2016','es-MX','lbxSelectProduct',N'Seleccionar Producto','N','N') , (1999,'9/6/2016','es-MX','lbxSelectReport',N'Seleccionar reporte','N','N') , (1999,'9/11/2015','es-MX','lbxSelectSavedBOMTitle',N'BOMs Guardadas QUE SI? Simple','N','N') , (1999,'9/11/2015','es-MX','lbxSelectSavedPCListTitle',N'Conjuntos Guardados Multiples QUE SI','N','N') , (1999,'3/1/2016','es-MX','lbxSelectStagingBy',N'Seleccionar Transacción por :','N','N') , (1999,'9/11/2015','es-MX','lbxSelectStartDate',N'Empezando En:','N','N') , (1999,'9/11/2015','es-MX','lbxSelectTimeFrame',N'Marco de Tiempo','N','N') , (1999,'9/6/2016','es-MX','lbxSelectTransactionToUpdate',N'Seleccione transacción a actualizar','N','N') , (1999,'9/6/2016','es-MX','lbxSelectWebServices',N'Seleccionar fuente/tipo de servicio web','N','N') , (1999,'9/6/2016','es-MX','lbxSellerAddressInfo',N'Información de Dirección','N','N') , (1999,'9/6/2016','es-MX','lbxSellerAddressLine1',N'Dirección 1','N','N') , (1999,'9/6/2016','es-MX','lbxSellerAddressLine2',N'Dirección 2','N','N') , (1999,'9/6/2016','es-MX','lbxSellerAddressLine3',N'Dirección 3','N','N') , (1999,'9/6/2016','es-MX','lbxSellerAddressLine4',N'Dirección 4','N','N') , (1999,'9/6/2016','es-MX','lbxSellerCity',N'Ciudad','N','N') , (1999,'9/6/2016','es-MX','lbxSellerCompanyName',N'Nombre de Compañía','N','N') , (1999,'9/6/2016','es-MX','lbxSellerContactEmail',N'E-mail','N','N') , (1999,'9/6/2016','es-MX','lbxSellerContactFax',N'Fáx','N','N') , (1999,'9/6/2016','es-MX','lbxSellerContactInfo',N'Información de Contacto','N','N') , (1999,'9/6/2016','es-MX','lbxSellerContactName',N'Nombre de Contacto','N','N') , (1999,'9/6/2016','es-MX','lbxSellerContactPhone',N'Teléfono','N','N') , (1999,'9/6/2016','es-MX','lbxSellerCountry',N'País','N','N') , (1999,'9/6/2016','es-MX','lbxSellerDPSInfo',N'Denied Party Screening','N','N') , (1999,'9/6/2016','es-MX','lbxSellerDPSResults',N'Resultados','N','N') , (1999,'9/6/2016','es-MX','lbxSellerDTS',N'Estado DPS','N','N') , (1999,'9/6/2016','es-MX','lbxSellerFederalId',N'ID Aduana','N','N') , (1999,'9/6/2016','es-MX','lbxSellerFederalIdType',N'Tipo de ID de Aduana','N','N') , (1999,'9/6/2016','es-MX','lbxSellerPostalCode',N'Codigo Postal','N','N') , (1999,'9/6/2016','es-MX','lbxSellerState',N'Estado / Provincia','N','N') , (1999,'3/1/2016','es-MX','lbxSelMethods',N'Seleccionar Metodos de Valoración','N','N') , (1999,'3/1/2016','es-MX','lbxSelPed',N'Seleccionar Pedimento','N','N') , (1999,'3/1/2016','es-MX','lbxSemestre',N'Semestre','N','N') , (1999,'9/11/2015','es-MX','lbxSEndDate',N'Fecha de Fin:','N','N') , (1999,'3/1/2016','es-MX','lbxSendEmail',N'Enviar correo de generacion de reporte completa','N','N') , (1999,'3/1/2016','es-MX','lbxSerialNum',N'Numero de Serie','N','N') , (1999,'3/1/2016','es-MX','lbxSetTransferAsASchedule',N'Programar transferencia','N','N') , (1999,'3/1/2016','es-MX','lbxShipDate',N'Fecha de Embarque','N','N') , (1999,'9/6/2016','es-MX','lbxShipFromAddressInfo',N'Información de Dirección','N','N') , (1999,'9/6/2016','es-MX','lbxShipFromAddressLine1',N'Dirección 1','N','N') , (1999,'9/6/2016','es-MX','lbxShipFromAddressLine2',N'Dirección 2','N','N') , (1999,'9/6/2016','es-MX','lbxShipFromAddressLine3',N'Dirección 3','N','N') , (1999,'9/6/2016','es-MX','lbxShipFromAddressLine4',N'Dirección 4','N','N') , (1999,'9/6/2016','es-MX','lbxShipFromCity',N'Ciudad','N','N') , (1999,'9/6/2016','es-MX','lbxShipFromCompanyName',N'Nombre de Compañía','N','N') , (1999,'9/6/2016','es-MX','lbxShipFromContactEmail',N'E-mail','N','N') , (1999,'9/6/2016','es-MX','lbxShipFromContactFax',N'Fáx','N','N') , (1999,'9/6/2016','es-MX','lbxShipFromContactInfo',N'Información de Contacto','N','N') , (1999,'9/6/2016','es-MX','lbxShipFromContactName',N'Nombre de Contacto','N','N') , (1999,'9/6/2016','es-MX','lbxShipFromContactPhone',N'Teléfono','N','N') , (1999,'9/6/2016','es-MX','lbxShipFromCountry',N'País','N','N') , (1999,'9/6/2016','es-MX','lbxShipFromDPSInfo',N'Denied Party Screening','N','N') , (1999,'9/6/2016','es-MX','lbxShipFromDPSResults',N'Resultados','N','N') , (1999,'9/6/2016','es-MX','lbxShipFromDTS',N'Estado DPS','N','N') , (1999,'9/6/2016','es-MX','lbxShipFromFederalId',N'ID Aduana','N','N') , (1999,'9/6/2016','es-MX','lbxShipFromFederalIdType',N'Tipo de ID de Aduana','N','N') , (1999,'9/6/2016','es-MX','lbxShipFromPostalCode',N'Codigo Postal','N','N') , (1999,'9/6/2016','es-MX','lbxShipFromState',N'Estado / Provincia','N','N') , (1999,'9/6/2016','es-MX','lbxShipFromType',N'Tipo de Compañía','N','N') , (1999,'3/1/2016','es-MX','lbxShipment Num',N'Número de Embarque','N','N') , (1999,'3/1/2016','es-MX','lbxShipmentDate',N'Fecha del Embarque','N','N') , (1999,'3/1/2016','es-MX','lbxShipmentID',N'Embarque no.','N','N') , (1999,'3/1/2016','es-MX','lbxShipmentParties',N'Partes relacionadas en el embarque','N','N') , (1999,'9/6/2016','es-MX','lbxShipmentProvider',N'Proveedor de envío','N','N') , (1999,'9/6/2016','es-MX','lbxShipmentRef',N'Referencia Embarque','N','N') , (1999,'9/6/2016','es-MX','lbxShipmentRefNum',N'Numero de Referencia de Embarque','N','N') , (1999,'9/6/2016','es-MX','lbxShipRef',N'Num. Ref. Embarque','N','N') , (1999,'9/6/2016','es-MX','lbxShipTo',N'Enviar a','N','N') , (1999,'9/6/2016','es-MX','lbxShipToAddressInfo',N'Información de Dirección','N','N') , (1999,'9/6/2016','es-MX','lbxShipToAddressLine1',N'Dirección 1','N','N') , (1999,'9/6/2016','es-MX','lbxShipToAddressLine2',N'Dirección 2','N','N') , (1999,'9/6/2016','es-MX','lbxShipToAddressLine3',N'Dirección 3','N','N') , (1999,'9/6/2016','es-MX','lbxShipToAddressLine4',N'Dirección 4','N','N') , (1999,'9/6/2016','es-MX','lbxShipToCity',N'Ciudad','N','N') , (1999,'9/6/2016','es-MX','lbxShipToCompanyName',N'Nombre de Compañía','N','N') , (1999,'9/6/2016','es-MX','lbxShipToContactEmail',N'E-mail','N','N') , (1999,'9/6/2016','es-MX','lbxShipToContactFax',N'Fáx','N','N') , (1999,'9/6/2016','es-MX','lbxShipToContactInfo',N'Información de Contacto','N','N') , (1999,'9/6/2016','es-MX','lbxShipToContactName',N'Nombre de Contacto','N','N') , (1999,'9/6/2016','es-MX','lbxShipToContactPhone',N'Teléfono','N','N') , (1999,'9/6/2016','es-MX','lbxShipToCountry',N'País','N','N') , (1999,'9/6/2016','es-MX','lbxShipToDPSInfo',N'Denied Party Screening','N','N') , (1999,'9/6/2016','es-MX','lbxShipToDPSResults',N'Resultados','N','N') , (1999,'9/6/2016','es-MX','lbxShipToDTS',N'Estado DPS','N','N') , (1999,'9/6/2016','es-MX','lbxShipToFederalId',N'ID Aduana','N','N') , (1999,'9/6/2016','es-MX','lbxShipToFederalIdType',N'Tipo de ID de Aduana','N','N') , (1999,'9/6/2016','es-MX','lbxShipToPostalCode',N'Codigo Postal','N','N') , (1999,'9/6/2016','es-MX','lbxShipToState',N'Estado / Provincia','N','N') , (1999,'9/6/2016','es-MX','lbxShipToType',N'Tipo de Compañía','N','N') , (1999,'3/1/2016','es-MX','lbxShow',N'Mostrar','N','N') , (1999,'3/1/2016','es-MX','lbxShow2',N'Mostrar','N','N') , (1999,'9/6/2016','es-MX','lbxShowDropDown',N'Mostrar Menú desplegable','N','N') , (1999,'3/1/2016','es-MX','lbxShowEntries',N'Ver Facts. Entrada','N','N') , (1999,'3/1/2016','es-MX','lbxShowFilterText',N'Mostrar Filtro','N','N') , (1999,'2/15/2016','es-MX','lbxShowGuidedSearchResult',N'Resultados guiados de la búsqueda','N','N') , (1999,'9/6/2016','es-MX','lbxShowNoNotes',N'No incluir Notas en el reporte','N','N') , (1999,'4/8/2010','es-MX','lbxShowNotesOnReport',N'Mostrar todas las Notas en el reporte','N','N') , (1999,'3/1/2016','es-MX','lbxShowPedimentoBalances',N'Mostrar Pedimentos con Balances ordenanos por fecha de vencimietnto','N','N') , (1999,'3/1/2016','es-MX','lbxShowPermitBalances',N'Se muestran balances de pedimentos:','N','N') , (1999,'3/1/2016','es-MX','lbxShowPermitDischarges',N'Se muestran los descargos:','N','N') , (1999,'3/1/2016','es-MX','lbxShowPrinted',N'Mostrar Impreso','N','N') , (1999,'9/6/2016','es-MX','lbxShowProductNumDropDown',N'Mostrar productos en lista','N','N') , (1999,'9/6/2016','es-MX','lbxShowSQLLongDescription',N'Detalles de la Consulta','N','N') , (1999,'3/1/2016','es-MX','lbxShowSubmaquilaBalances',N'Balances de Submanufactura que se muestran:','N','N') , (1999,'3/1/2016','es-MX','lbxShowSubmaquilaReturns',N'Mostrar retornos de Submanufactura','N','N') , (1999,'3/1/2016','es-MX','lbxShowUnprinted',N'Mostrar Sin Imprimir','N','N') , (1999,'9/6/2016','es-MX','lbxShowUserGuidLevel',N'Mostrar nivel de GUID de usuario','N','N') , (1999,'9/11/2015','es-MX','lbxSigAddress',N'*Direccion de Firma:','N','N') , (1999,'9/11/2015','es-MX','lbxSigCompany',N'*Firma de Compañía:','N','N') , (1999,'9/11/2015','es-MX','lbxSigContact',N'*Voz/Fax de Firma:','N','N') , (1999,'9/11/2015','es-MX','lbxSigDate',N'*Fecha de Firma:','N','N') , (1999,'2/26/2010','es-MX','lbxSigDateStruc',N'(mm/dd/aaaa)','N','N') , (1999,'9/11/2015','es-MX','lbxSigEmail',N'*Correo de Firma:','N','N') , (1999,'9/11/2015','es-MX','lbxSigName',N'*Nombre de Firma:','N','N') , (1999,'2/26/2010','es-MX','lbxSignatureDate',N'Fecha de la Firma','N','N') , (1999,'2/26/2010','es-MX','lbxSignatureId',N'Información de la Firma','N','N') , (1999,'9/11/2015','es-MX','lbxSignatureInfo',N'Información de Firma','N','N') , (1999,'9/11/2015','es-MX','lbxSignatureInfoLabel',N'Información de Firma','N','N') , (1999,'3/1/2016','es-MX','lbxSignatures',N'Firmas','N','N') , (1999,'3/1/2016','es-MX','lbxSignedDate',N'Fecha de Firma','N','N') , (1999,'9/11/2015','es-MX','lbxSigTitle',N'*Titulo de Firma:','N','N') , (1999,'9/11/2015','es-MX','lbxSingleContent',N'Contenido de País Simple','N','N') , (1999,'9/11/2015','es-MX','lbxSingleFTA',N'Tratado de Libre Comercio','N','N') , (1999,'9/11/2015','es-MX','lbxSingleFTAs',N'Tratados de Libre Comercio seleccionados','N','N') , (1999,'3/1/2016','es-MX','lbxSkidCount',N'Numero de tarimas','N','N') , (1999,'3/1/2016','es-MX','lbxSLOC',N'Lugar de Almacen','N','N') , (1999,'3/1/2016','es-MX','lbxSoldToCompany',N'Vendido A *','N','N') , (1999,'9/11/2015','es-MX','lbxSolicitations',N'Solicitudes','N','N') , (1999,'3/1/2016','es-MX','lbxSolicitudNum',N'Número de Solicitud','N','N') , (1999,'9/6/2016','es-MX','lbxsolution',N'Solución','N','N') , (1999,'2/15/2016','es-MX','lbxSolutionBxFields',N'Soluciones Seleccionadas:','N','N') , (1999,'9/6/2016','es-MX','lbxSoundsLike',N'Opciones de Búsqueda por Sonido','N','N') , (1999,'9/6/2016','es-MX','lbxSource',N'Fuente','N','N') , (1999,'3/1/2016','es-MX','lbxSourceColumns',N'Columnas disponibles','N','N') , (1999,'2/24/2010','es-MX','lbxSourceFile',N'Archivo de Origen','N','N') , (1999,'9/11/2015','es-MX','lbxSourceLocation',N'Localización de la Fuente de los productos','N','N') , (1999,'3/1/2016','es-MX','lbxSourceSystem',N'Fuente del Sistema','N','N') , (1999,'3/10/2016','es-MX','lbxSPANISH',N'Español','N','N') , (1999,'9/6/2016','es-MX','lbxSpecialNotes',N'Notas especiales','N','N') , (1999,'2/15/2016','es-MX','lbxSpecificNotes',N'Notas Específicas','N','N') , (1999,'3/1/2016','es-MX','lbxSpecificRate',N'Tasa Específica','N','N') , (1999,'3/1/2016','es-MX','lbxSpecificRate1',N'Tarifa específica','N','N') , (1999,'3/1/2016','es-MX','lbxSpecificRateSource',N'Fuente Tasa Específica','N','N') , (1999,'3/1/2016','es-MX','lbxSpecificRateSource1',N'Fuente de Índice Específico','N','N') , (1999,'3/1/2016','es-MX','lbxSpiCode1',N'Código SPI 1','N','N') , (1999,'3/1/2016','es-MX','lbxSpiCode11',N'Código Spi 1','N','N') , (1999,'3/1/2016','es-MX','lbxSpiCode1Source',N'Fuente de Código SPI 1','N','N') , (1999,'3/1/2016','es-MX','lbxSpiCode1Source1',N'Fuente de Código1 Spi','N','N') , (1999,'3/1/2016','es-MX','lbxSpiCode2',N'Código SPI 2','N','N') , (1999,'3/1/2016','es-MX','lbxSpiCode21',N'Código Spi 2','N','N') , (1999,'3/1/2016','es-MX','lbxSpiCode2Source',N'Fuente de Código SPI 2','N','N') , (1999,'3/1/2016','es-MX','lbxSpiCode2Source1',N'Fuente de Código2 Spi','N','N') , (1999,'9/6/2016','es-MX','lbxSpreadsheetExtract',N'Seleccionar:','N','N') , (1999,'9/6/2016','es-MX','lbxSpreadsheetExtractHeader',N'Extraer Hoja de Calculo','N','N') , (1999,'9/6/2016','es-MX','lbxSpreadsheetStep1Desc',N'Asegúrese que la frase Archivo cargado con éxito es mostrada','N','N') , (1999,'9/6/2016','es-MX','lbxSpreadsheetUpload',N'Seleccionar Archivo','N','N') , (1999,'9/6/2016','es-MX','lbxSpreadsheetUploadHeader',N'Cargar Informacion de Hoja de Calculo','N','N') , (1999,'3/1/2016','es-MX','lbxStaging',N'En proceso','N','N') , (1999,'9/6/2016','es-MX','lbxStagingProduction',N'Fuente de transacciones','N','N') , (1999,'3/1/2016','es-MX','lbxSTANDARD RATES',N'ESTÁNDAR DE TARIFAS','N','N') , (1999,'9/6/2016','es-MX','lbxStandardInputs',N'Entradas estándares','N','N') , (1999,'2/15/2016','es-MX','lbxStandardNotes',N'Notas Estándar','N','N') , (1999,'4/8/2010','es-MX','lbxStandardOrder',N'Orden Estandard','N','N') , (1999,'9/11/2015','es-MX','lbxStartDate',N'Fecha de Inicio','N','N') , (1999,'3/1/2016','es-MX','lbxStartTransferNow',N'Iniciar la transferencia','N','N') , (1999,'9/6/2016','es-MX','lbxState',N'Estado / Provincia','N','N') , (1999,'3/1/2016','es-MX','lbxStateFromCode',N'Código del Estado','N','N') , (1999,'9/11/2015','es-MX','lbxStatus',N'Estado','N','N') , (1999,'2/15/2016','es-MX','lbxStatusBarCultureCode',N'Descripción/Controles/Notas de Idioma','N','N') , (1999,'2/15/2016','es-MX','lbxStatusBarTariffSchedule',N'Pais/Tarifa','N','N') , (1999,'3/1/2016','es-MX','lbxStatusCode',N'Código de Estatus *','N','N') , (1999,'3/1/2016','es-MX','lbxStatusCode1',N'Código de Estatus','N','N') , (1999,'3/1/2016','es-MX','lbxStatusCodeSource',N'Fuente de Código de Estatus','N','N') , (1999,'3/1/2016','es-MX','lbxStatusCodeSource1',N'Código de Fuente de Estatus','N','N') , (1999,'9/6/2016','es-MX','lbxStatusI',N'Estatus','N','N') , (1999,'9/6/2016','es-MX','lbxStatusPrompt',N'Estatus','N','N') , (1999,'3/1/2016','es-MX','lbxStep',N'Estado:','N','N') , (1999,'9/6/2016','es-MX','lbxStep1',N'Paso 1 - Seleccione un Certificado','N','N') , (1999,'9/6/2016','es-MX','lbxStep2',N'Paso 2 - Llenar encabezado y detalles','N','N') , (1999,'9/6/2016','es-MX','lbxStep3',N'Paso 3 - Guardar información del encabezado','N','N') , (1999,'9/6/2016','es-MX','lbxStep4',N'Paso 4 - Generar Documento(s)','N','N') , (1999,'9/6/2016','es-MX','lbxStep5',N'Paso 5 - Imprimir documento(s)','N','N') , (1999,'9/6/2016','es-MX','lbxStep6',N'Paso 6 - Subir documento(s) firmado(s) y guardar','N','N') , (1999,'9/6/2016','es-MX','lbxStep7',N'Paso 7 - Ingresar Documento(s)','N','N') , (1999,'4/8/2010','es-MX','lbxStreet',N'Calle','N','N') , (1999,'3/1/2016','es-MX','lbxStylesheet',N'Tema','N','N') , (1999,'3/1/2016','es-MX','lbxSubMaquilaCustomsLocation',N'Ubicación de la Aduana','N','N') , (1999,'3/1/2016','es-MX','lbxSubMaquilaLocationHeader',N'Aduana','N','N') , (1999,'3/1/2016','es-MX','lbxSubmissionDate',N'Fecha de Presentación','N','N') , (1999,'3/1/2016','es-MX','lbxSubmitDate',N'Fecha de Envio','N','N') , (1999,'9/11/2015','es-MX','lbxSubmittedDocuments',N'Documentos Subidos Previamente','N','N') , (1999,'3/1/2016','es-MX','lbxSubscriptionTypeName',N'Nombre de tipo de Subscripción','N','N') , (1999,'3/1/2016','es-MX','lbxSummaryLevel',N'Summary Level','N','N') , (1999,'9/6/2016','es-MX','lbxsupAddress1',N'DomdePrvdor','N','N') , (1999,'9/6/2016','es-MX','lbxsupAddress2',N'DomdePrvdor 2','N','N') , (1999,'9/6/2016','es-MX','lbxsupExtNum',N'NumExtdeProvdor','N','N') , (1999,'9/6/2016','es-MX','lbxSupID',N'Id de Prooverdor','N','N') , (1999,'9/6/2016','es-MX','lbxsupIntNum',N'NumIntdeProvdor','N','N') , (1999,'9/11/2015','es-MX','lbxSupplier',N'Seleccionar Proveedor','N','N') , (1999,'3/1/2016','es-MX','lbxSupplierCustomerID',N'ID de Proveedor','N','N') , (1999,'2/15/2016','es-MX','lbxSupportingDocuments',N'Documentos de Soporte','N','N') , (1999,'3/1/2016','es-MX','lbxSYSTEM MAPPING',N'MAPEO DEL SISTEMA','N','N') , (1999,'9/6/2016','es-MX','lbxSystemMessages',N'Mensajes del sistema','N','N') , (1999,'3/1/2016','es-MX','lbxtab Program Codes',N'Códigos de Programa','N','N') , (1999,'4/7/2016','es-MX','lbxTab1',N'Todos','N','N') , (1999,'2/22/2010','es-MX','lbxTable',N'Elegir fuente','N','N') , (1999,'3/1/2016','es-MX','lbxTableName',N'Posponga el Nombre','N','N') , (1999,'3/1/2016','es-MX','lbxtabpnl Discharges',N'Descargos','N','N') , (1999,'3/1/2016','es-MX','lbxtabpnl Pgm Codes',N'Códigos de Programa','N','N') , (1999,'3/1/2016','es-MX','lbxtabpnlDischarges',N'Descargos','N','N') , (1999,'3/1/2016','es-MX','lbxtabpnlHeader',N'Encabezado','N','N') , (1999,'3/1/2016','es-MX','lbxtabpnlPgmCodes',N'Códigos de Programa','N','N') , (1999,'3/1/2016','es-MX','lbxtabProgramCodes',N'Códigos de Programa','N','N') , (1999,'3/1/2016','es-MX','lbxtabStatusAlert',N'Estatus de alerta','N','N') , (1999,'9/6/2016','es-MX','lbxTariffAnalyzer',N'Analizador de Tarifas','N','N') , (1999,'2/15/2016','es-MX','lbxTariffNotesTab',N'Notas de Tarifa','N','N') , (1999,'9/6/2016','es-MX','lbxTariffNum',N'Numero de Tarifa','N','N') , (1999,'9/6/2016','es-MX','lbxTariffNum2',N'Numero de Tarifa','N','N') , (1999,'2/15/2016','es-MX','lbxTariffSchedule',N'País / Tarifa Arancelaria SA','N','N') , (1999,'2/15/2016','es-MX','lbxTariffScheduleEmpty',N'Información de Tarifa no disponible','N','N') , (1999,'2/15/2016','es-MX','lbxTariffScheduleSelection',N'¿Cuál Tarifa le gustaría que fuera su predeterminada?','N','N') , (1999,'9/11/2015','es-MX','lbxTariffShift',N'Cambio de Tarifa','N','N') , (1999,'9/6/2016','es-MX','lbxTaskManager',N'Administrador de Tareas','N','N') , (1999,'3/11/2010','es-MX','lbxTax',N'Impuesto','N','N') , (1999,'3/1/2016','es-MX','lbxTblHdrInvoice',N'Identificacion Factura','N','N') , (1999,'3/1/2016','es-MX','lbxTblHdrMethods',N'Metodo de Valoracion','N','N') , (1999,'3/1/2016','es-MX','lbxtc Catalogs_tabpnl Pgm Codes_lbx Saai Program Codes',N'Códigos de Programa','N','N') , (1999,'3/1/2016','es-MX','lbxtcCatalogs$tabpnlPgmCodes$lnkbtnAddNewPgmCodes',N'Agregar Nuevo','N','N') , (1999,'3/1/2016','es-MX','lbxtcCatalogs_tabpnlDutiesByDate_rgdDutiesByDate_ctl00',N'IVA por Mil','N','N') , (1999,'3/1/2016','es-MX','lbxtcCatalogs_tabpnlPgmCodes_lbxSaaiProgramCodes',N'Códigos de Programa','N','N') , (1999,'3/1/2016','es-MX','lbxtcCatalogs_tabpnlPgmCodes_lnkbtnAddNewPgmCodes',N'Agregar Nuevo','N','N') , (1999,'3/1/2016','es-MX','lbxtcInvoiceDateLbl',N'Fecha de Facturación','N','N') , (1999,'3/1/2016','es-MX','lbxtcMain_tabpnlHeader_lbxPackaging',N'Embalaje','N','N') , (1999,'3/1/2016','es-MX','lbxTempHdr',N'Temporal','N','N') , (1999,'3/1/2016','es-MX','lbxTempImpNoDocs',N'Si no se adjunta la documentación para el valor de la mercancía, incluye el valor provisional de éstos','N','N') , (1999,'3/1/2016','es-MX','lbxTempImpSect',N'Importacion Temporal','N','N') , (1999,'9/11/2015','es-MX','lbxTemplate',N'Plantilla:','N','N') , (1999,'9/6/2016','es-MX','lbxTemplateName',N'Nombre de la plantilla','N','N') , (1999,'3/1/2016','es-MX','lbxText',N'texto','N','N') , (1999,'9/6/2016','es-MX','lbxTextToTranslate',N'Texto a Traducir','N','N') , (1999,'9/6/2016','es-MX','lbxThrottle',N'Resultados','N','N') , (1999,'9/11/2015','es-MX','lbxThru',N'Hasta','N','N') , (1999,'3/1/2016','es-MX','lbxTime',N'Hora programada','N','N') , (1999,'3/1/2016','es-MX','lbxTimezone',N'Zona Horaria','N','N') , (1999,'3/1/2016','es-MX','lbxTitle',N'Utiliza Puesto del Contacto','N','N') , (1999,'3/1/2016','es-MX','lbxTo',N'Destino','N','N') , (1999,'3/1/2016','es-MX','lbxToCompany',N'Embarcado Hacia *','N','N') , (1999,'2/26/2010','es-MX','lbxToDate',N'Hasta','N','N') , (1999,'2/26/2010','es-MX','lbxToDateStruc',N'(mm/dd/aaaa)','N','N') , (1999,'2/26/2010','es-MX','lbxToDateStuc',N'(mm/dd/aaaa)','N','N') , (1999,'3/1/2016','es-MX','lbxToExp',N'Destino','N','N') , (1999,'3/1/2016','es-MX','lbxToImp',N'Destino','N','N') , (1999,'3/1/2016','es-MX','lbxTotalDutyDeclared',N'Impuesto Declarado','N','N') , (1999,'3/1/2016','es-MX','lbxTotalDutyPaid',N'Derechos Pagados','N','N') , (1999,'9/6/2016','es-MX','lbxTotalErrorCount',N'Total de Errores en la Entrada','N','N') , (1999,'9/11/2015','es-MX','lbxTotalExWorks',N'Total ExWorks%','N','N') , (1999,'3/11/2010','es-MX','lbxTotalPaidRefundAmount',N'Total Pagado, Devuelto o Monto de la Cuenta','N','N') , (1999,'2/15/2016','es-MX','lbxTotalResult',N'Número Total de Fracciones arancelarias SA se han encontrado :','N','N') , (1999,'2/15/2016','es-MX','lbxTotalResultAfterFilter',N'Número Total Fracciones arancelarias SA se han encontrado ( filtro posterior ) :','N','N') , (1999,'3/1/2016','es-MX','lbxTotals',N'Totales','N','N') , (1999,'3/1/2016','es-MX','lbxTotalSales',N'Ventas Totales','N','N') , (1999,'3/1/2016','es-MX','lbxTotalValue',N'Valor Total','N','N') , (1999,'3/1/2016','es-MX','lbxToZoneID',N'ID de la Zona Destino','N','N') , (1999,'9/11/2015','es-MX','lbxTracedValue',N'Valor Trazado','N','N') , (1999,'3/1/2016','es-MX','lbxTrailer',N'Número de Factura:','N','N') , (1999,'3/1/2016','es-MX','lbxTrailerLicNum',N'Placas del remolque','N','N') , (1999,'3/1/2016','es-MX','lbxTransactionTypes',N'Tipos de Transacciones','N','N') , (1999,'3/1/2016','es-MX','lbxTransfer',N'Transferencia del Progreso de Datos','N','N') , (1999,'3/1/2016','es-MX','lbxTransformers',N'Empresa de Submanufactura','N','N') , (1999,'9/6/2016','es-MX','lbxTranslatedText',N'Texto Traducido','N','N') , (1999,'9/6/2016','es-MX','lbxTransmit',N'Transmitir','N','N') , (1999,'9/6/2016','es-MX','lbxTransport',N'Numero de Transporte','N','N') , (1999,'3/1/2016','es-MX','lbxTransportation',N'Trasportación','N','N') , (1999,'4/7/2016','es-MX','lbxTransportationCost',N'Costo de Transportación','N','N') , (1999,'3/1/2016','es-MX','lbxTransportID',N'ID de Transporte','N','N') , (1999,'3/1/2016','es-MX','lbxTruckHeader',N'Transporte','N','N') , (1999,'3/1/2016','es-MX','lbxTruckLicNum',N'Placas del Tractor','N','N') , (1999,'9/6/2016','es-MX','lbxTruckNum',N'Número de camión','N','N') , (1999,'9/11/2015','es-MX','lbxTVM',N'Valor de Transaccion %','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing',N'Número de Producto','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.Ad Valorem Rate',N'AdValorem','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.Ad Valorem Rate Source',N'Fuente del AdValorem','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.Addl Rpt Qty Uom',N'UM de Reporte Adicional','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.Addl Rpt Qty Uom Source',N'Fuente de la UM de Reporte Adicional','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.Addl Specific Rate',N'Impuesto Específico Adicional','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.Addl Specific Rate Source',N'Fuente del Impuesto Específico Adicional','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.Alt HTS Index',N'Index de la Fracción Arancelaria Mexicana','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.Alt HTS Index Source',N'Fuente del Index de la Fracción Arancelaria Mexicana','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.Alt HTS Num',N'Fracción Arancelaria Mexicana','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.Alt HTS Num Source',N'Fuente de la Fracción del MX HS','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.Alt HTS Num2',N'Fracción Arancelaria Mexicana 2','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.Alt HTS Num2 Source',N'Fuente de la Fracción del MX HS 2','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.Alt Product Desc',N'Descripción en Español','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.Alt Product Desc Source',N'Fuente de la Descripción en Español','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.Alt Product Desc2',N'Descripción en Español 2','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.Carton Count',N'Cantidad de Cartones','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.Carton Count UOM',N'UM de la Cantidad de Cartones','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.City From Code',N'Ciudad de Origen','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.City From Code Source',N'Fuente de la Ciudad de Origen','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.Country From Code',N'País de Origen de la Mercancia','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.Country From Code Source',N'Fuente del País de Origen de la Mercancia','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.FTA Program',N'Programa TLC','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.MXHTS Uom Conv Factor',N'Factor de Conversión de la UM del MX HS','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.MXHTS Uom Conv Factor Source',N'Fuente del Factor de Conversión de la UM del MX HS','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.Part Category Code',N'Categoría del Número de Parte','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.Part Category Code Source',N'Fuente de la Categoría del Número de Parte','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.Product Num',N'Número de Producto','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.Program1',N'Programa 1','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.Program1 Source',N'Fuente del Programa 1','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.Program2',N'Programa 2','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.Program2 Source',N'Fuente Programa 2','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.Rpt Qty Uom',N'UM de Reporte','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.Rpt Qty Uom Source',N'Fuente de la UM de Reporte','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.Specific Rate',N'Impuesto Específico','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.Specific Rate Source',N'Fuente del Impuesto Específico','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.State From Code',N'Estado de Origen','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.State From Code Source',N'Fuente del Estado de Origen','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.User Defined1',N'Campo de Usuario 1','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.User Defined1 Source',N'Fuente del Campo de Usuario 1','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.User Defined2',N'Campo de Usuario 2','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.User Defined2 Source',N'Fuente del Campo de Usuario 2','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.User Defined3',N'Campo de Usuario 3','N','N') , (1999,'3/1/2016','es-MX','lbxtxd Mx Fifo Processing.User Defined3 Source',N'Fuente del Campo de Usuario 3','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.AddlRptQtyUom',N'UM de Reporte Adicional','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.AddlRptQtyUomSource',N'Fuente de la UM de Reporte Adicional','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.AddlSpecificRate',N'Impuesto Específico Adicional','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.AddlSpecificRateSource',N'Fuente del Impuesto Específico Adicional','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.AdValoremRate',N'AdValorem','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.AdValoremRateSource',N'Fuente del AdValorem','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.AltHTSIndex',N'Index de la Fracción Arancelaria Mexicana','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.AltHTSIndexSource',N'Fuente del Index de la Fracción Arancelaria Mexicana','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.AltHTSNum',N'Fracción Arancelaria Mexicana','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.AltHTSNum2',N'Fracción Arancelaria Mexicana 2','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.AltHTSNum2Source',N'Fuente de la Fracción del MX HS 2','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.AltHTSNumSource',N'Fuente de la Fracción del MX HS','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.AltProductDesc',N'Descripción en Español','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.AltProductDesc2',N'Descripción en Español 2','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.AltProductDesc2Source',N'Desc. Adicional del producto 2','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.AltProductDescSource',N'Fuente de la Descripción en Español','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.CartonCount',N'Cantidad de Cartones','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.CartonCountUOM',N'UM de la Cantidad de Cartones','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.CityFromCode',N'Ciudad de Origen','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.CityFromCodeSource',N'Fuente de la Ciudad de Origen','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.CountryFromCode',N'País de Origen de la Mercancia','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.CountryFromCodeSource',N'Fuente del País de Origen de la Mercancia','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.FTAProgram',N'Programa TLC','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.MXHTSUomConvFactor',N'Factor de Conversión de la UM del MX HS','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.MXHTSUomConvFactorSource',N'Fuente del Factor de Conversión de la UM del MX HS','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.PartCategoryCode',N'Categoría del Número de Parte','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.PartCategoryCodeSource',N'Fuente de la Categoría del Número de Parte','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.ProductNum',N'Número de Producto','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.Program1',N'Programa 1','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.Program1Source',N'Fuente del Programa 1','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.Program2',N'Programa 2','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.Program2Source',N'Fuente Programa 2','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.RptQtyUom',N'UM de Reporte','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.RptQtyUomSource',N'Fuente de la UM de Reporte','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.SpecificRate',N'Impuesto Específico','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.SpecificRateSource',N'Fuente del Impuesto Específico','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.StateFromCode',N'Estado de Origen','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.StateFromCodeSource',N'Fuente del Estado de Origen','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.UserDefined1',N'Campo de Usuario 1','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.UserDefined1Source',N'Fuente del Campo de Usuario 1','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.UserDefined2',N'Campo de Usuario 2','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.UserDefined2Source',N'Fuente del Campo de Usuario 2','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.UserDefined3',N'Campo de Usuario 3','N','N') , (1999,'3/1/2016','es-MX','lbxtxdMxFifoProcessing.UserDefined3Source',N'Fuente del Campo de Usuario 3','N','N') , (1999,'3/1/2016','es-MX','lbxTxn Date',N'Fecha Txn','N','N') , (1999,'3/1/2016','es-MX','lbxTxnCode',N'Código de Transacción','N','N') , (1999,'3/1/2016','es-MX','lbxTxnDate',N'Fecha de Transacción','N','N') , (1999,'3/1/2016','es-MX','lbxTxnEndDate',N'Fecha Final','N','N') , (1999,'3/1/2016','es-MX','lbxTxnMerchVal',N'Valor de Transaccion de la Mercancia','N','N') , (1999,'3/1/2016','es-MX','lbxTxnNumGUID',N'Txn Número Guid','N','N') , (1999,'3/1/2016','es-MX','lbxTxnQty',N'Cantidad de Transacción','N','N') , (1999,'3/1/2016','es-MX','lbxTxnQtyUom',N'Unidad de Medida de la Cant. de Transacción *','N','N') , (1999,'3/1/2016','es-MX','lbxTxnQtyUomSource',N'Fuente de la Unidad de Medida de la Cant. de Transacción','N','N') , (1999,'9/11/2015','es-MX','lbxTxnSource',N'Fuente de transaccion:','N','N') , (1999,'3/1/2016','es-MX','lbxTxnStartDate',N'Fecha Inicial','N','N') , (1999,'9/6/2016','es-MX','lbxTxnThreshold',N'Desacuerdo de la Cantidad de la Transación','N','N') , (1999,'9/6/2016','es-MX','lbxTxnType',N'Tipo de transacción','N','N') , (1999,'4/7/2016','es-MX','lbxtxtbxHSNumberFilter',N'Ingresa Fracción Arancelaria/Palabra Clave','N','N') , (1999,'9/6/2016','es-MX','lbxType',N'Tipo de Transacción','N','N') , (1999,'9/11/2015','es-MX','lbxUENNo',N'Identificador de Entidad/No. UEN','N','N') , (1999,'9/6/2016','es-MX','lbxUltimateConsigneeAddressInfo',N'Información de Dirección','N','N') , (1999,'9/6/2016','es-MX','lbxUltimateConsigneeAddressLine1',N'Dirección 1','N','N') , (1999,'9/6/2016','es-MX','lbxUltimateConsigneeAddressLine2',N'Dirección 2','N','N') , (1999,'9/6/2016','es-MX','lbxUltimateConsigneeAddressLine3',N'Dirección 3','N','N') , (1999,'9/6/2016','es-MX','lbxUltimateConsigneeAddressLine4',N'Dirección 4','N','N') , (1999,'9/6/2016','es-MX','lbxUltimateConsigneeCity',N'Ciudad','N','N') , (1999,'9/6/2016','es-MX','lbxUltimateConsigneeCompanyName',N'Nombre de Compañía','N','N') , (1999,'9/6/2016','es-MX','lbxUltimateConsigneeContactEmail',N'E-mail','N','N') , (1999,'9/6/2016','es-MX','lbxUltimateConsigneeContactFax',N'Fáx','N','N') , (1999,'9/6/2016','es-MX','lbxUltimateConsigneeContactInfo',N'Información de Contacto','N','N') , (1999,'9/6/2016','es-MX','lbxUltimateConsigneeContactName',N'Nombre de Contacto','N','N') , (1999,'9/6/2016','es-MX','lbxUltimateConsigneeContactPhone',N'Teléfono','N','N') , (1999,'9/6/2016','es-MX','lbxUltimateConsigneeCountry',N'País','N','N') , (1999,'9/6/2016','es-MX','lbxUltimateConsigneeDPSInfo',N'Denied Party Screening','N','N') , (1999,'9/6/2016','es-MX','lbxUltimateConsigneeDPSResults',N'Resultados','N','N') , (1999,'9/6/2016','es-MX','lbxUltimateConsigneeDTS',N'Estado DPS','N','N') , (1999,'9/6/2016','es-MX','lbxUltimateConsigneeFederalId',N'ID aduana','N','N') , (1999,'9/6/2016','es-MX','lbxUltimateConsigneeFederalIdType',N'Tipo de ID de Aduana','N','N') , (1999,'9/6/2016','es-MX','lbxUltimateConsigneeIdType',N'Tipo de ID','N','N') , (1999,'9/6/2016','es-MX','lbxUltimateConsigneePostalCode',N'Codigo Postal','N','N') , (1999,'9/6/2016','es-MX','lbxUltimateConsigneeState',N'Estado / Provincia','N','N') , (1999,'9/6/2016','es-MX','lbxUltimateConsigneeType',N'Tipo de Consignatario','N','N') , (1999,'9/11/2015','es-MX','lbxUnitCount',N'Conteo de Unidades','N','N') , (1999,'2/15/2016','es-MX','lbxUnitOfMeasure',N'Unidad(es) de Medida','N','N') , (1999,'9/11/2015','es-MX','lbxUnitPrice',N'Precio por Unidad','N','N') , (1999,'3/1/2016','es-MX','lbxUOM',N'Unidad de Medida','N','N') , (1999,'9/6/2016','es-MX','lbxUOM1',N'Unidad de medida 1','N','N') , (1999,'9/6/2016','es-MX','lbxUOM2',N'Unidad de medida 2','N','N') , (1999,'9/6/2016','es-MX','lbxUOM3',N'Unidad de medida 3','N','N') , (1999,'9/6/2016','es-MX','lbxUpdate',N'Actualizar','N','N') , (1999,'9/6/2016','es-MX','lbxUpdateAddress',N'Dirección a Actualizar','N','N') , (1999,'9/11/2015','es-MX','lbxUpdateContactRWTitle',N'Editar informacion de Contacto','N','N') , (1999,'3/1/2016','es-MX','lbxUpdatedBy',N'Actualizado por','N','N') , (1999,'3/1/2016','es-MX','lbxupdatefromcontent',N'actualizar','N','N') , (1999,'2/15/2016','es-MX','lbxUpdateInProgress',N'Actualización en proceso...','N','N') , (1999,'9/6/2016','es-MX','lbxUpdateSelected1',N'Seleccione Criterio de Preferencia, Productor, Costo Neto y País de Origen de los menús desplegables en la siguiente tabla.','N','N') , (1999,'3/1/2016','es-MX','lbxUpload File',N'Cargar Archivo','N','N') , (1999,'2/24/2010','es-MX','lbxUploadBOM',N'Cargar BOM','N','N') , (1999,'3/1/2016','es-MX','lbxUploadCOVEFile',N'Archivo de Resultado Cove','N','N') , (1999,'3/1/2016','es-MX','lbxUploadedFiles',N'Archivo(s) Cargados','N','N') , (1999,'9/6/2016','es-MX','lbxUploadItemDataInfo',N'Suba y Edite una Hoja de Calculo con los valores dando clic en "Seleccionar Archivo" y seleccionando la hoja de calculo deseada','N','N') , (1999,'9/11/2015','es-MX','lbxUploadItemDataRWTitle',N'Cargar Datos de Item desde Hoja de Calculo','N','N') , (1999,'9/11/2015','es-MX','lbxUploadMA',N'Affidavit de Fabricante Firmado:','N','N') , (1999,'9/11/2015','es-MX','lbxUploadNonQual',N'Carta Firmada No-Tratado:','N','N') , (1999,'9/11/2015','es-MX','lbxUploadQual',N'Certificado Firmado:','N','N') , (1999,'9/11/2015','es-MX','lbxUploadRWTitle',N'Cargar Datos de Item desde Hoja de Calculo','N','N') , (1999,'9/6/2016','es-MX','lbxUseDropDownDefault',N'¿Usar menú desplegable estándar?','N','N') , (1999,'9/6/2016','es-MX','lbxUseDropDownSource',N'¿Usar otro menú desplegable?','N','N') , (1999,'3/1/2016','es-MX','lbxUser',N'Último proceso ejecutado por','N','N') , (1999,'3/1/2016','es-MX','lbxUserDefined1',N'Porcentaje Mensual','N','N') , (1999,'3/1/2016','es-MX','lbxUserDefined2',N'Usuario Definido 2','N','N') , (1999,'3/1/2016','es-MX','lbxUserDefined3',N'Usuario Definido 3','N','N') , (1999,'9/6/2016','es-MX','lbxUserGUID',N'GUID de usuario','N','N') , (1999,'3/1/2016','es-MX','lbxUserLogin',N'Nombre de Usuario','N','N') , (1999,'9/6/2016','es-MX','lbxUserName',N'Nombre de Usuario','N','N') , (1999,'9/6/2016','es-MX','lbxUSPort',N'Puerto de desenmarque de Estados Unidos','N','N') , (1999,'9/6/2016','es-MX','lbxUSPPI',N'USPPI, Exportador','N','N') , (1999,'9/6/2016','es-MX','lbxUSPPIAddressLine1',N'Dirección 1','N','N') , (1999,'9/6/2016','es-MX','lbxUSPPIAddressLine2',N'Dirección 2','N','N') , (1999,'9/6/2016','es-MX','lbxUSPPICity',N'Ciudad','N','N') , (1999,'9/6/2016','es-MX','lbxUSPPICompanyName',N'Nombre de Compañía','N','N') , (1999,'9/6/2016','es-MX','lbxUSPPIContactFirstName',N'Nombre de Contacto','N','N') , (1999,'9/6/2016','es-MX','lbxUSPPIContactPhone',N'Teléfono','N','N') , (1999,'9/6/2016','es-MX','lbxUSPPICountryCode',N'País','N','N') , (1999,'9/6/2016','es-MX','lbxUSPPIFederalID',N'ID aduana','N','N') , (1999,'9/6/2016','es-MX','lbxUSPPIIDType',N'Tipo de ID','N','N') , (1999,'9/6/2016','es-MX','lbxUSPPIPostalCode',N'Código Postal','N','N') , (1999,'9/6/2016','es-MX','lbxUSPPIState',N'Estado / Provincia','N','N') , (1999,'3/1/2016','es-MX','lbxValid Flag',N'Bandera de Validación','N','N') , (1999,'9/6/2016','es-MX','lbxValidateAKA',N'Validar AKA','N','N') , (1999,'3/1/2016','es-MX','lbxValidation Description',N'Descripción de la Validación','N','N') , (1999,'3/1/2016','es-MX','lbxValidationCode',N'Código de validación','N','N') , (1999,'3/1/2016','es-MX','lbxValidationDescription',N'Descripción de validación','N','N') , (1999,'3/1/2016','es-MX','lbxValidationFee',N'Cuota de Validacion','N','N') , (1999,'2/26/2010','es-MX','lbxValidationGroup',N'Grupo de validación','N','N') , (1999,'3/1/2016','es-MX','lbxValidationSignature',N'Validación','N','N') , (1999,'3/1/2016','es-MX','lbxValidationStatus',N'Estatus de la validación','N','N') , (1999,'2/26/2010','es-MX','lbxValidationType',N'Tipo de validación','N','N') , (1999,'9/6/2016','es-MX','lbxvalidhsnumber',N'Número de sistema armonizado válido','N','N') , (1999,'3/1/2016','es-MX','lbxValidLevel',N'Nivel de validez','N','N') , (1999,'9/6/2016','es-MX','lbxValidUOM1',N'Unidad de medida válida 1','N','N') , (1999,'3/1/2016','es-MX','lbxValMerchDesc1',N'Descripción de la Mercancia','N','N') , (1999,'3/1/2016','es-MX','lbxValMerchDesc2',N'Descripción de la Mercancia','N','N') , (1999,'3/1/2016','es-MX','lbxValMerchDesc3',N'Descripción de la Mercancia','N','N') , (1999,'3/1/2016','es-MX','lbxValMerchDesc4',N'Descripción de la Mercancia','N','N') , (1999,'3/1/2016','es-MX','lbxValMerchDesc5',N'Descripción de Mercancia','N','N') , (1999,'3/1/2016','es-MX','lbxValMerchDesc6',N'Descripción de Mercancia','N','N') , (1999,'3/1/2016','es-MX','lbxValRepMessage',N'Última Actualización','N','N') , (1999,'3/1/2016','es-MX','lbxValSpell',N'Valor con letra','N','N') , (1999,'3/1/2016','es-MX','lbxValue',N'Valor *','N','N') , (1999,'3/1/2016','es-MX','lbxValue1',N'Valor 1','N','N') , (1999,'3/1/2016','es-MX','lbxValue2',N'Valor 2','N','N') , (1999,'3/1/2016','es-MX','lbxValue21',N'Valor 2','N','N') , (1999,'3/1/2016','es-MX','lbxValue2Source',N'Fuente de Valor 2','N','N') , (1999,'3/1/2016','es-MX','lbxValue2Source1',N'Fuente de Valor 2','N','N') , (1999,'4/7/2016','es-MX','lbxValueOfItem',N'Valor del item','N','N') , (1999,'2/26/2010','es-MX','lbxValues',N'Valores','N','N') , (1999,'3/1/2016','es-MX','lbxValueSource',N'Fuente del Valor','N','N') , (1999,'3/1/2016','es-MX','lbxValueSource1',N'Fuente de Valor','N','N') , (1999,'2/15/2016','es-MX','lbxVATCharges',N'IVA','N','N') , (1999,'3/1/2016','es-MX','lbxVehicleData',N'Información del vehículo','N','N') , (1999,'9/6/2016','es-MX','lbxVehicleLicensePlateNum',N'Matrícula del vehículo','N','N') , (1999,'4/8/2010','es-MX','lbxVesselFlag',N'Buque Bandera','N','N') , (1999,'4/8/2010','es-MX','lbxVesselGRT',N'Recipiente GRT','N','N') , (1999,'9/6/2016','es-MX','lbxVesselName',N'Nombre del Buque/Aerolínea','N','N') , (1999,'4/8/2010','es-MX','lbxVesselOwner',N'Dueño de Recipiente','N','N') , (1999,'4/8/2010','es-MX','lbxVesselTonnage',N'Tonelaje de recipiente','N','N') , (1999,'4/8/2010','es-MX','lbxVesselType',N'Tipo de Recipiente','N','N') , (1999,'2/15/2016','es-MX','lbxView',N'Ver:','N','N') , (1999,'2/15/2016','es-MX','lbxViewSelectionSettings',N'¿Cuál vista quisiera como predeterminada?','N','N') , (1999,'9/6/2016','es-MX','lbxVisaQueryInd',N'Consulta de Visa','N','N') , (1999,'9/6/2016','es-MX','lbxVisibleGroups',N'Grupos visibles','N','N') , (1999,'9/11/2015','es-MX','lbxVoidExplainRW',N'Explicacion de Vaciado','N','N') , (1999,'2/26/2010','es-MX','lbxVoidExplanation',N'Explicación de la Anulación','N','N') , (1999,'2/26/2010','es-MX','lbxVoidReasonCode',N'Razón de Cancelación','N','N') , (1999,'9/11/2015','es-MX','lbxVoidReasonRW',N'Codigo de Razon de Vaciado','N','N') , (1999,'9/11/2015','es-MX','lbxVoidRWTitle',N'Vaciar Criteria','N','N') , (1999,'3/1/2016','es-MX','lbxWarning',N'Mensaje','N','N') , (1999,'3/1/2016','es-MX','lbxWarningsInExports',N'Advertencias de Exportación','N','N') , (1999,'3/1/2016','es-MX','lbxWarningsInExportsMsg',N'Pedimentos sin fecha de pago, es posible que algunos pedimento no estén incluidos si la fecha de pago es mayor que el corte.','N','N') , (1999,'9/6/2016','es-MX','lbxWCONotes',N'Notas de la Organización Mundial de Aduanas','N','N') , (1999,'9/6/2016','es-MX','lbxWebServiceSource',N'Fuente de servicio web','N','N') , (1999,'9/6/2016','es-MX','lbxWebServiceType',N'Tipo de servicio web','N','N') , (1999,'9/6/2016','es-MX','lbxWebServiceURL',N'URL Servico Web','N','N') , (1999,'4/8/2010','es-MX','lbxWebsite',N'Pagina Web','N','N') , (1999,'9/6/2016','es-MX','lbxWeeklyEstimateTracker',N'Seguidor del Estimado Semanal','N','N') , (1999,'3/1/2016','es-MX','lbxWeight',N'Peso *','N','N') , (1999,'3/1/2016','es-MX','lbxWeightSource',N'Fuente de Peso','N','N') , (1999,'3/1/2016','es-MX','lbxWeightUom',N'Unidad de Medida de Peso *','N','N') , (1999,'3/1/2016','es-MX','lbxWeightUomSource',N'Fuente de la Unidad de Medida de Peso','N','N') , (1999,'2/15/2016','es-MX','lbxWelcome',N'Bienvenido','N','N') , (1999,'9/6/2016','es-MX','lbxWelcomeMessage',N'1) Buscar Clasificación para ver si el producto ya se encuentra disponible in la base de datos de Clasificación global.','N','N') , (1999,'3/1/2016','es-MX','lbxYear',N'Año','N','N') , (1999,'3/1/2016','es-MX','lbxYearEmployeesCurrent',N'Año Actual','N','N') , (1999,'3/1/2016','es-MX','lbxYearEmployeesPrevious',N'Año Anterior','N','N') , (1999,'3/1/2016','es-MX','lbxYes',N'Sí','N','N') , (1999,'9/6/2016','es-MX','lbxZoneType',N'tipo de zona','N','N') , (1999,'9/6/2016','es-MX','lCF214Number',N'Número CF214','N','N') , (1999,'9/6/2016','es-MX','lDescOfMerchandise',N'Descripción de la mercancía','N','N') , (1999,'9/6/2016','es-MX','lDocumentStage',N'Etapa del doccumento','N','N') , (1999,'9/6/2016','es-MX','Length',N'Longitud','N','N') , (1999,'9/6/2016','es-MX','lEntryBeginDate',N'Fecha de inicio de entrada','N','N') , (1999,'9/6/2016','es-MX','lEntryDocId',N'ID documentación','N','N') , (1999,'9/6/2016','es-MX','lEntryEndDate',N'Fecha de finalización de entrada','N','N') , (1999,'9/6/2016','es-MX','lEntryNumber',N'Número de entrada','N','N') , (1999,'9/8/2016','es-MX','Less Than',N'Menor que','N','N') , (1999,'9/8/2016','es-MX','Less than or equal to',N'Menor o igual que','N','N') , (1999,'9/6/2016','es-MX','lExportCountryCode',N'País de Exportación','N','N') , (1999,'9/6/2016','es-MX','lExportRegion',N'Región de exportación','N','N') , (1999,'9/6/2016','es-MX','lFieldValue',N'Valor del campo','N','N') , (1999,'9/6/2016','es-MX','lFrgnPortOfLading',N'Puerto extranjero de desembarque','N','N') , (1999,'3/1/2016','es-MX','LibyaStatement',N'Delcaración Libya','N','N') , (1999,'9/6/2016','es-MX','Licence/Exceptions',N'Licencia/Excepciones','N','N') , (1999,'9/6/2016','es-MX','License Documentation',N'Documentación','N','N') , (1999,'9/6/2016','es-MX','License Num',N'No. de Licencia','N','N') , (1999,'9/6/2016','es-MX','License Type',N'Tipo de Licencia','N','N') , (1999,'9/6/2016','es-MX','License Type Code',N'Tipo de Licencia','N','N') , (1999,'9/6/2016','es-MX','LicenseNum',N'Número Licencia','N','N') , (1999,'9/6/2016','es-MX','LicenseRequired',N'Licencia Requerida','N','N') , (1999,'9/6/2016','es-MX','LicenseValue',N'Valor de Licencia','N','N') , (1999,'9/6/2016','es-MX','Line',N'Linea','N','N') , (1999,'9/6/2016','es-MX','Line Items',N'Lista de Objetos','N','N') , (1999,'3/1/2016','es-MX','Line Num',N'Número de Línea','N','N') , (1999,'3/1/2016','es-MX','LineNum',N'Número de Línea','N','N') , (1999,'9/6/2016','es-MX','Link',N'Enlace','N','N') , (1999,'9/6/2016','es-MX','Link Button1',N'Editar','N','N') , (1999,'9/6/2016','es-MX','Link Button1E',N'Guardar','N','N') , (1999,'9/6/2016','es-MX','Link Button2E',N'Cancelar','N','N') , (1999,'9/6/2016','es-MX','Link Button3',N'Eliminar','N','N') , (1999,'3/1/2016','es-MX','Link Exit',N'Salir','N','N') , (1999,'9/6/2016','es-MX','Link Format String',N'Enlace del formato de cadena','N','N') , (1999,'9/6/2016','es-MX','LinkButton1',N'Editar','N','N') , (1999,'9/6/2016','es-MX','LinkButton1E',N'Guardar','N','N') , (1999,'9/6/2016','es-MX','LinkButton2E',N'Cancelar','N','N') , (1999,'9/6/2016','es-MX','LinkButton3',N'Eliminar','N','N') , (1999,'3/1/2016','es-MX','LinkExit',N'Salir','N','N') , (1999,'9/6/2016','es-MX','LinkFormatString',N'Enlace del formato de cadena','N','N') , (1999,'9/6/2016','es-MX','Liquidation Clock',N'Reloj de Liquidación','N','N') , (1999,'2/26/2010','es-MX','LiquidationClock',N'Dias Transcurridos','N','N') , (1999,'9/6/2016','es-MX','List Group Name',N'Grupos Activos de DPS','N','N') , (1999,'9/6/2016','es-MX','List Management',N'Lista de Administración','N','N') , (1999,'9/6/2016','es-MX','List Name',N'Nombre de la Lista','N','N') , (1999,'9/6/2016','es-MX','ListGroupName',N'Grupos Activos de DPS','N','N') , (1999,'3/1/2016','es-MX','lkx Exit',N'Salir','N','N') , (1999,'9/6/2016','es-MX','lkx Generate',N'Certificar BOM','N','N') , (1999,'9/8/2016','es-MX','lkx Save',N'Guardar','N','N') , (1999,'9/6/2016','es-MX','lkxbtn Search',N'Listar Licencias...','N','N') , (1999,'2/26/2010','es-MX','lkxbtnAdd',N'Añadir','N','N') , (1999,'9/6/2016','es-MX','lkxbtnSearch',N'Listar Licencias...','N','N') , (1999,'3/1/2016','es-MX','lkxExit',N'Salir','N','N') , (1999,'2/25/2010','es-MX','lkxGenerate',N'Certificar BOM','N','N') , (1999,'2/26/2010','es-MX','lkxPrint',N'Imprimir','N','N') , (1999,'9/6/2016','es-MX','lkxReset',N'Reiniciar','N','N') , (1999,'9/8/2016','es-MX','lkxSave',N'Guardar','N','N') , (1999,'3/1/2016','es-MX','lkxShipType',N'Tipo de Embarque','N','N') , (1999,'9/6/2016','es-MX','lkxTransmit',N'Transmitir','N','N') , (1999,'9/6/2016','es-MX','lkxTypeSearch',N'Buscar','N','N') , (1999,'3/1/2016','es-MX','lkxYes',N'Sí','N','N') , (1999,'9/6/2016','es-MX','lLocationOfGoods',N'Ubicación de bienes (FIRMS)','N','N') , (1999,'9/6/2016','es-MX','lLookupField',N'Campo de Búsqueda','N','N') , (1999,'3/1/2016','es-MX','lMessage',N'El sistema no muestra el inventario en o mayores , por favor ejecutar el informe para obtener más detalles','N','N') , (1999,'9/6/2016','es-MX','lnb Add All',N'-Agregar Todos-','N','N') , (1999,'9/6/2016','es-MX','lnb Append',N'Agregar','N','N') , (1999,'9/6/2016','es-MX','lnb Save',N'Guardar Cambios','N','N') , (1999,'9/6/2016','es-MX','lnbAddAll',N'-Agregar Todos-','N','N') , (1999,'9/6/2016','es-MX','lnbAppend',N'Agregar','N','N') , (1999,'9/6/2016','es-MX','lnbSave',N'Guardar Cambios','N','N') , (1999,'9/6/2016','es-MX','lNewManufacturerId',N'Nuevo ID del fabricante','N','N') , (1999,'9/6/2016','es-MX','lnk Add Comment',N'Agregar Comentario','N','N') , (1999,'9/6/2016','es-MX','lnk Certs',N'Certificados','N','N') , (1999,'9/6/2016','es-MX','lnk Exit',N'Salir','N','N') , (1999,'9/6/2016','es-MX','lnk Generate',N'Generar','N','N') , (1999,'9/6/2016','es-MX','lnk Show All Report',N'Mostrar todos los Reportes','N','N') , (1999,'9/6/2016','es-MX','lnk Validate',N'Validar','N','N') , (1999,'9/6/2016','es-MX','lnkAddComment',N'Agregar Comentario','N','N') , (1999,'3/1/2016','es-MX','lnkbtn Add New Pgm Codes',N'Agregar Nuevo','N','N') , (1999,'3/1/2016','es-MX','lnkbtn Add New Saai INPC Fee Factor',N'Agregar Nuevo','N','N') , (1999,'9/6/2016','es-MX','lnkbtn Add New Supplier',N'Agregar Nuevo','N','N') , (1999,'9/6/2016','es-MX','lnkbtn Add Row',N'Agregar Fila','N','N') , (1999,'9/6/2016','es-MX','lnkbtn Add Row Tme DTS Alias',N'Agragar Renglon','N','N') , (1999,'9/6/2016','es-MX','lnkbtn Add Row Tme DTS Exception',N'Agregar Renglón','N','N') , (1999,'9/6/2016','es-MX','lnkbtn Add Row Tme Reg Reason',N'Agregar Renglon','N','N') , (1999,'9/6/2016','es-MX','lnkbtn Assign',N'Asignar','N','N') , (1999,'9/6/2016','es-MX','lnkbtn Copy Translations',N'Copiar traducciones','N','N') , (1999,'9/6/2016','es-MX','lnkbtn Delete',N'Borrar','N','N') , (1999,'9/6/2016','es-MX','lnkbtn Entity Detail Cancel',N'Cancelar','N','N') , (1999,'9/6/2016','es-MX','lnkbtn Generate',N'Generar','N','N') , (1999,'3/1/2016','es-MX','lnkbtn Generate Print',N'Generar','N','N') , (1999,'9/6/2016','es-MX','lnkbtn Link',N'Ir a Solicitud','N','N') , (1999,'9/6/2016','es-MX','lnkbtn Remove Row Tme Denied Address',N'Remover renglón Elegido','N','N') , (1999,'9/6/2016','es-MX','lnkbtn Remove Row Tme DTS Alias',N'Remover Renglón Elgido','N','N') , (1999,'9/6/2016','es-MX','lnkbtn Remove Row Tme DTS Exception',N'Remover Reglón Elegido','N','N') , (1999,'4/7/2016','es-MX','lnkbtn S Action Expand All Tabs',N'Expandir todos','N','N') , (1999,'9/6/2016','es-MX','lnkbtn Save',N'Guardar','N','N') , (1999,'3/1/2016','es-MX','lnkbtn Save Header',N'Guardar encabezado de Pedimento','N','N') , (1999,'3/1/2016','es-MX','lnkbtn Save Observations',N'Guardar Observaciones','N','N') , (1999,'9/6/2016','es-MX','lnkbtn Search',N'Buscar','N','N') , (1999,'9/6/2016','es-MX','lnkbtn Search Next',N'Siguiente','N','N') , (1999,'9/6/2016','es-MX','lnkbtn Search Prev',N'Previo','N','N') , (1999,'3/1/2016','es-MX','lnkbtn Toggle Filter Pedimento Select',N'Mostrar Filtro','N','N') , (1999,'3/1/2016','es-MX','lnkbtn Toggle Filter Pedimentos',N'Mostrar Filtro','N','N') , (1999,'3/1/2016','es-MX','lnkbtnAddNewArt65Doc',N'Agregar Nuevo','N','N') , (1999,'3/1/2016','es-MX','lnkbtnAddNewArt66Doc',N'Agregar Nuevo','N','N') , (1999,'3/1/2016','es-MX','lnkbtnAddNewMethod',N'Agregar Nuevo','N','N') , (1999,'3/1/2016','es-MX','lnkbtnAddNewMethodsDocuments',N'Agregar Nuevo','N','N') , (1999,'3/1/2016','es-MX','lnkbtnAddNewPgmCodes',N'Agregar Nuevo','N','N') , (1999,'3/1/2016','es-MX','lnkbtnAddNewSaaiINPCFeeFactor',N'Agregar Nuevo','N','N') , (1999,'9/6/2016','es-MX','lnkbtnAddNewSupplier',N'Agregar Nuevo','N','N') , (1999,'3/1/2016','es-MX','lnkbtnAddNewTemporary',N'Agregar Nuevo','N','N') , (1999,'3/1/2016','es-MX','lnkbtnAddRow',N'Añadir Fila','N','N') , (1999,'4/8/2010','es-MX','lnkbtnAddRowTmeDeniedAddress',N'Añadir fila','N','N') , (1999,'4/8/2010','es-MX','lnkbtnAddRowTmeDTSAlias',N'Agragar Renglon','N','N') , (1999,'4/8/2010','es-MX','lnkbtnAddRowTmeDTSException',N'Agregar Renglón','N','N') , (1999,'4/8/2010','es-MX','lnkbtnAddRowTmeRegReason',N'Agregar Renglon','N','N') , (1999,'9/6/2016','es-MX','lnkbtnAssign',N'Asignar','N','N') , (1999,'3/1/2016','es-MX','lnkbtnCMD_ADDADDL',N'Agregar Registro','N','N') , (1999,'3/1/2016','es-MX','lnkbtnCMD_ADDHTS',N'Agregar Registro','N','N') , (1999,'9/6/2016','es-MX','lnkbtnCopyTranslations',N'Copiar traducciones','N','N') , (1999,'9/6/2016','es-MX','lnkbtnDelete',N'Borrar','N','N') , (1999,'9/6/2016','es-MX','lnkbtnEntityDetailCancel',N'Cancelar','N','N') , (1999,'9/6/2016','es-MX','lnkbtnFilter',N'Mostrar/Ocultar Filtro','N','N') , (1999,'9/6/2016','es-MX','lnkbtnGenerate',N'Generar','N','N') , (1999,'3/1/2016','es-MX','lnkbtnGeneratePrint',N'Generar','N','N') , (1999,'9/6/2016','es-MX','lnkbtnInsert',N'Agregar Nuevo Registro','N','N') , (1999,'9/6/2016','es-MX','lnkbtnLink',N'Ir a Solicitud','N','N') , (1999,'9/6/2016','es-MX','lnkbtnMessagesFilter',N'Mostrar/Ocultar Filtro','N','N') , (1999,'3/1/2016','es-MX','lnkbtnNew',N'Nuevo','N','N') , (1999,'3/1/2016','es-MX','lnkbtnNext',N'Siguiente','N','N') , (1999,'3/1/2016','es-MX','lnkbtnPrev',N'Anterior','N','N') , (1999,'3/1/2016','es-MX','lnkbtnRefresh',N'Refrescar','N','N') , (1999,'4/8/2010','es-MX','lnkbtnRemoveRowTmeDeniedAddress',N'Remover renglón Elegido','N','N') , (1999,'4/8/2010','es-MX','lnkbtnRemoveRowTmeDTSAlias',N'Remover Renglón Elgido','N','N') , (1999,'4/8/2010','es-MX','lnkbtnRemoveRowTmeDTSException',N'Remover Reglón Elegido','N','N') , (1999,'4/8/2010','es-MX','lnkbtnRemoveRowTmeRegReason',N'Eliminar fila','N','N') , (1999,'4/7/2016','es-MX','lnkbtnSActionExpandAllTabs',N'Expandir todos','N','N') , (1999,'9/6/2016','es-MX','lnkbtnSave',N'Guardar','N','N') , (1999,'3/1/2016','es-MX','lnkbtnSaveHeader',N'Actualizar Encabezado de Factura','N','N') , (1999,'9/6/2016','es-MX','lnkbtnSearch',N'Buscar','N','N') , (1999,'3/1/2016','es-MX','lnkbtnSearchNext',N'Siguiente','N','N') , (1999,'3/1/2016','es-MX','lnkbtnSearchPrev',N'Anterior','N','N') , (1999,'3/1/2016','es-MX','lnkbtnToggleFilterDataStage',N'Mostrar Filtro','N','N') , (1999,'3/1/2016','es-MX','lnkbtnToggleFilterDocuments',N'Mostrar Filtro','N','N') , (1999,'3/1/2016','es-MX','lnkbtnToggleFilterInvoices',N'Mostrar Filtro','N','N') , (1999,'3/1/2016','es-MX','lnkbtnToggleFilterPedimentos',N'Mostrar Filtro','N','N') , (1999,'3/1/2016','es-MX','lnkbtnToggleFilterPedimentoSelect',N'Mostrar Filtro','N','N') , (1999,'9/6/2016','es-MX','lnkbtnToggleFilterPerimentos',N'Mostrar Filtros','N','N') , (1999,'3/1/2016','es-MX','lnkbtnUpload',N'Cargar Archivo de Respuesta','N','N') , (1999,'9/6/2016','es-MX','lnkCerts',N'Certificados','N','N') , (1999,'2/26/2010','es-MX','lnkCheckWorkflowStatus',N'Refrescar','N','N') , (1999,'2/22/2010','es-MX','lnkExit',N'Salir','N','N') , (1999,'9/6/2016','es-MX','lnkGenerate',N'Generar','N','N') , (1999,'2/26/2010','es-MX','lnkGotoPage',N'Ir A','N','N') , (1999,'9/6/2016','es-MX','lnkShowAllReport',N'Mostrar todos los Reportes','N','N') , (1999,'2/26/2010','es-MX','lnkValidate',N'Validar','N','N') , (1999,'3/1/2016','es-MX','lnkView',N'Ver instrucción','N','N') , (1999,'9/8/2016','es-MX','lnx Add Copy FTA',N'Agregar/Copiar TLC','N','N') , (1999,'9/6/2016','es-MX','lnx Add Row',N'Agregar Fila','N','N') , (1999,'9/6/2016','es-MX','lnx Apply',N'Aplicar','N','N') , (1999,'9/6/2016','es-MX','lnx Archive',N'Archivar','N','N') , (1999,'3/1/2016','es-MX','lnx Cancel',N'Cancelar','N','N') , (1999,'9/6/2016','es-MX','lnx Cancel SQL Long Description',N'Cancelar','N','N') , (1999,'9/6/2016','es-MX','lnx Check Workflow',N'Recuperar Resultados','N','N') , (1999,'9/6/2016','es-MX','lnx Clear',N'Limpiar','N','N') , (1999,'3/1/2016','es-MX','lnx Close',N'Cerrar','N','N') , (1999,'9/6/2016','es-MX','lnx Comment Add',N'Agregar','N','N') , (1999,'9/6/2016','es-MX','lnx Comment Cancel',N'Cancelar','N','N') , (1999,'9/6/2016','es-MX','lnx Copy',N'Copiar','N','N') , (1999,'9/8/2016','es-MX','lnx Copy FTA Party',N'Guardar','N','N') , (1999,'9/6/2016','es-MX','lnx Copy Local',N'Crear Copia Local','N','N') , (1999,'9/6/2016','es-MX','lnx Edit',N'Editar','N','N') , (1999,'9/6/2016','es-MX','lnx Edit Exporter',N'Editar','N','N') , (1999,'9/6/2016','es-MX','lnx Edit Importer',N'Editar','N','N') , (1999,'9/6/2016','es-MX','lnx Edit Producer',N'Editar','N','N') , (1999,'9/6/2016','es-MX','lnx Email Cancel',N'Cancelar','N','N') , (1999,'9/6/2016','es-MX','lnx Exit',N'Salir','N','N') , (1999,'9/6/2016','es-MX','lnx Export',N'Extraer','N','N') , (1999,'9/6/2016','es-MX','lnx External Remove Selected',N'Remover Seleccionados','N','N') , (1999,'9/6/2016','es-MX','lnx Fill',N'Llenar de Fuente','N','N') , (1999,'9/6/2016','es-MX','lnx FTA Select',N'Seleccionar Tratados de Libre Comercio','N','N') , (1999,'9/6/2016','es-MX','lnx Gen Cert',N'Generar Certificado','N','N') , (1999,'9/6/2016','es-MX','lnx Gen Non Cert',N'Generar Carta de No Calificado','N','N') , (1999,'9/6/2016','es-MX','lnx Generate',N'Generar','N','N') , (1999,'9/6/2016','es-MX','lnx Init Insert',N'Agregar Cliente','N','N') , (1999,'9/6/2016','es-MX','lnx Instructions',N'Manual de Instrucciones','N','N') , (1999,'9/6/2016','es-MX','lnx Internal Remove Selected',N'Remover Seleccionados','N','N') , (1999,'9/6/2016','es-MX','lnx Launch BOM Workflow',N'Procesar todas las listas de materiales','N','N') , (1999,'9/6/2016','es-MX','lnx Launch With Filter',N'Procesar lista de materiales con criterio seleccionado','N','N') , (1999,'9/6/2016','es-MX','lnx Mass COO Certify',N'Aceptar resultados seleccionados','N','N') , (1999,'9/6/2016','es-MX','lnx Mass Search',N'Buscar','N','N') , (1999,'9/6/2016','es-MX','lnx New',N'Nuevo','N','N') , (1999,'9/6/2016','es-MX','lnx New Request',N'Crear Nueva Solicitud','N','N') , (1999,'9/6/2016','es-MX','lnx Note Add',N'Agregar','N','N') , (1999,'9/6/2016','es-MX','lnx Note Cancel',N'Cancelar','N','N') , (1999,'9/6/2016','es-MX','lnx PCHS Override',N'Sobrecargar No. HS y PC','N','N') , (1999,'9/6/2016','es-MX','lnx Print',N'Imprimir','N','N') , (1999,'9/6/2016','es-MX','lnx Product Search',N'Agregar Productos a la Solicitud','N','N') , (1999,'9/6/2016','es-MX','lnx Product Select',N'Seleccionar Múltiples Productos','N','N') , (1999,'9/6/2016','es-MX','lnx Reminder',N'Actualizar Recordatorio','N','N') , (1999,'9/6/2016','es-MX','lnx Reminder Cancel',N'Cancelar','N','N') , (1999,'9/6/2016','es-MX','lnx Req Certificate',N'Solicitar Certificado','N','N') , (1999,'3/1/2016','es-MX','lnx Save',N'Guardar','N','N') , (1999,'3/1/2016','es-MX','lnx Save Close',N'Guardar y cerrar','N','N') , (1999,'9/6/2016','es-MX','lnx Save Dates',N'Guardar Fechas','N','N') , (1999,'9/6/2016','es-MX','lnx Save Detail',N'Guardar Detalle','N','N') , (1999,'9/6/2016','es-MX','lnx Save Header',N'Guardar Encabezado','N','N') , (1999,'9/6/2016','es-MX','lnx Search Go',N'Buscar','N','N') , (1999,'9/6/2016','es-MX','lnx Select Document',N'Seleccionar Documento','N','N') , (1999,'9/6/2016','es-MX','lnx Select FT As',N'Usar Tratados Seleccionados','N','N') , (1999,'9/6/2016','es-MX','lnx Select Product',N'Seleccionar Productos','N','N') , (1999,'9/6/2016','es-MX','lnx Select Products',N'Seleccionar Productos','N','N') , (1999,'9/6/2016','es-MX','lnx Send Reminder',N'Enviar Recordatorio Ahora','N','N') , (1999,'9/6/2016','es-MX','lnx Solicit',N'Solicitar Productos','N','N') , (1999,'9/6/2016','es-MX','lnx Submit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnx Submit Workflow',N'Subir Tabla de Compañía','N','N') , (1999,'9/6/2016','es-MX','lnx Update Emails',N'Actualizar Correo','N','N') , (1999,'9/6/2016','es-MX','lnx Update Reminders',N'Actualizar Recordatorio','N','N') , (1999,'9/6/2016','es-MX','lnx Update SQL Long Description',N'Actualizar Descripción','N','N') , (1999,'9/6/2016','es-MX','lnx Upload',N'Cargar Archivos','N','N') , (1999,'9/6/2016','es-MX','lnx Upload BOM',N'Cargar BOM','N','N') , (1999,'3/1/2016','es-MX','lnx Validate PGA',N'Validar','N','N') , (1999,'9/6/2016','es-MX','lnx Validate Rule',N'Prueba de Reglas para la Validez Estrcutural','N','N') , (1999,'9/11/2015','es-MX','lnxAddAll',N'Agregar Todos','N','N') , (1999,'2/22/2010','es-MX','lnxAddCharSearch',N'Anadir a Busqueda','N','N') , (1999,'9/11/2015','es-MX','lnxAddComment',N'Agregar Comentario','N','N') , (1999,'9/11/2015','es-MX','lnxAddCompany',N'Agregar Compañía','N','N') , (1999,'9/8/2016','es-MX','lnxAddCopyFTA',N'Agregar/Copiar TLC','N','N') , (1999,'2/22/2010','es-MX','lnxAddDateSearch',N'Anadir a Busqueda','N','N') , (1999,'9/11/2015','es-MX','lnxAddNote',N'Agregar Nota','N','N') , (1999,'9/11/2015','es-MX','lnxAddProducts',N'Agregar Productos','N','N') , (1999,'9/11/2015','es-MX','lnxAddRow',N'Agregar Fila','N','N') , (1999,'9/11/2015','es-MX','lnxAddSelected',N'Agregar Seleccionados','N','N') , (1999,'9/6/2016','es-MX','lnxApply',N'Aplicar','N','N') , (1999,'9/11/2015','es-MX','lnxApplyData',N'Aplicar Valores en la Hoja de Calculo a los Items','N','N') , (1999,'9/11/2015','es-MX','lnxApplyExEdit',N'Guardar Informacion de Exportador','N','N') , (1999,'9/11/2015','es-MX','lnxApplyImEdit',N'Guardar Informacion de Importador','N','N') , (1999,'9/11/2015','es-MX','lnxApplyOtherDoc',N'Guardar y Añadir Documento a items checados','N','N') , (1999,'9/11/2015','es-MX','lnxApplyPrEdit',N'Guardar Informacion de Fabricante','N','N') , (1999,'9/11/2015','es-MX','lnxApplyReqData',N'Aplicar Datos Cargados','N','N') , (1999,'9/11/2015','es-MX','lnxArchive',N'Archivar','N','N') , (1999,'9/11/2015','es-MX','lnxAttachDocument',N'Añadir otro Documento','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Accept Subscribe All',N'SI','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Accept Unsuscribeall',N'SI','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Add',N'Agregar Registro','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Add Attachment',N'Cargar Documento','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Add Company',N'Agregar Compañía','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Add Country',N'Agregar País','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Add Entity',N'Agregar Entidad','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Add New Detail',N'Agregar Nuevo Detalle','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Add New Group',N'Agregar Nuevo Grupo','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Add New User',N'Agregar Nuevo Usuario','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Add Note',N'Ingresar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Add Record',N'Agregar Nuevo Registro','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Add Seller',N'Agregar Compañia','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Admin Save Layout',N'Guardar este Plano','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Allowed Validations Request_Submit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Analyze',N'Analizar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Apply Update',N'Aplicar actualización','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Apply Updates',N'Aplicar Actualizaciones','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Apply_Cancel',N'Cancelar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Apply_Go',N'Buscar...','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Apply_Update',N'Actualizar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Approve',N'Aprobar Audiciones','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Assign Ped',N'Asignar Pedimento','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Assign To',N'Asignado A','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Attach',N'Adjuntar documento','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Attachments',N'Archivos Adjuntos','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Back',N'Regresar','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Balances Select',N'Seleccionar balances','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Broker Remove Selected',N'Remover Seleccionados','N','N') , (1999,'9/6/2016','es-MX','lnxbtn CA Generate Report',N'Generar Reporte de Acciones Correctivas','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Cancel',N'Cancelar','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Cancel Add',N'Cancelar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Cancel Address',N'Cancelar Domicilio','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Cancel Changes',N'Cancelar Cambios','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Cancel Delete',N'Cancelar','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Cancel Invoice',N'Cancelar Factura','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Cancel OK',N'Eliminar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Cancel Subscribe All',N'NO','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Cancel Unsuscribeall',N'NO','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Capture',N'Capturar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Clear',N'Limpiar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Clear Fields To Add',N'Limpiar Campos a Agregar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Clear Search',N'Limpiar Busqueda','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Close Flag',N'Cerrar Discrepancias','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Close Invoice',N'Cerrar Factura','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Close Search',N'Cerrar Búsqueda','N','N') , (1999,'9/6/2016','es-MX','lnxbtn CMD',N'Agregar Registro','N','N') , (1999,'3/1/2016','es-MX','lnxbtn CMD_ADDADDL',N'Agregar Registro','N','N') , (1999,'9/6/2016','es-MX','lnxbtn CMD_ADDHTS',N'Agregar Registro','N','N') , (1999,'3/1/2016','es-MX','lnxbtn CMD_CANCEL_ADDADDL',N'Cancelar Agregar Registro','N','N') , (1999,'9/6/2016','es-MX','lnxbtn CMD_CANCEL_ADDHTS',N'Cancelar Agregar Registro','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Commit Request',N'Crear Pedido','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Compare',N'Comenzar Proceso de Comparación','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Confirm Changes',N'Confirmar Cambios','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Copy Search',N'Copiar Búsqueda en una Nueva','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Copy Search_Submit',N'Enviar','N','N') , (1999,'3/1/2016','es-MX','lnxbtn COVE Manual Save',N'Guardar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Create Quarterly',N'Crear un Nuevo PEA Trimestral','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Default Sources',N'Fuentes Predeterminadas','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Delete',N'Eliminar','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Delete OK',N'Eliminar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Delete Search',N'Reiniciar Busqueda','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Direct Delivery Flag',N'bandera de entrega directa','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Discharge',N'Descargas','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Doc Creation',N'Generar Documento','N','N') , (1999,'9/6/2016','es-MX','lnxbtn ECNML Permission Request_Submit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn ECNML Simple Permission Request_Submit',N'Enviar','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Edit',N'Editar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Edit Search',N'Editar Búsqueda','N','N') , (1999,'9/6/2016','es-MX','lnxbtn EER Email Report',N'Enviar Reporte(s) por correo','N','N') , (1999,'9/6/2016','es-MX','lnxbtn EER Generate Report',N'Generar Reporte','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Email Shipment',N'Enviar Correo Electrónico','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Exclude Words',N'Excluir Palabras Comunes','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Execute',N'Ejecutar','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Exit',N'Salir','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Expire Search_Submit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Export',N'Exportar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Export Country Code',N'Código de país de exportación','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Export No Tariff',N'Extraer envíos con Impuestos Pagados','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Export Tariff',N'Extraer los Envíos al Exterior','N','N') , (1999,'3/1/2016','es-MX','lnxbtn FIFO Grid Filter',N'Mostrar/Ocultar Filtro','N','N') , (1999,'3/1/2016','es-MX','lnxbtn File Import',N'Cargar con archivo','N','N') , (1999,'9/6/2016','es-MX','lnxbtn File Load To DB',N'Archivo para Cargar a Base de Datos','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Filer Code',N'Filer Code','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Filter',N'Mostrar/Ocultar Filtro','N','N') , (1999,'9/8/2015','es-MX','lnxbtn Finalize',N'Finalizar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Frgn Port Of Lading',N'Puerto extranjero de desembarque','N','N') , (1999,'9/6/2016','es-MX','lnxbtn FTA Permission Request_Submit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Gen Certificate',N'Generar Certificado','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Gen NQ Letter',N'Generar Carta de No Calificado','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Generate',N'Generar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Get All Country Codes_Submit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Get All Currency Codes_Submit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Get All Sort Order HS Description_Submit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Get All Sub Country Codes_Submit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Get Exchange Rates_Submit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Get Full Hierarchy HS Description_Submit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Get Rule Of Origin Header_Submit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Get Rule Of Origin Text_Submit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Get Updated HS Number XML_Submit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Go',N'Ir','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Group Edit_Add Group',N'Agregar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Hide Defaults',N'Esconder filtro','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Hide Options',N'Ocultar Opciones','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Holi Day_Submit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Holi Day_Submit Dataset',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn HS Permission Request_Submit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn HS Request Single_Submit2',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn HS Simple Permission Request_Submit',N'Enviar','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Import COVE Result File',N'Importar Resultado de COVE','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Init Insert Function',N'Agregar Nueva Función','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Init Insert Parameter',N'Agregar Nuevo Parámetro','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Insert',N'Insertar','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Insert Bill Of Lading',N'Nuevo','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Insert Compliments',N'Nuevo','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Insert Container',N'Nuevo','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Insert Fees',N'Nuevo','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Insert HS Line Article303',N'Nuevo','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Insert HS Line Item Fees',N'Nuevo','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Insert Invoice',N'Nuevo','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Insert Observations',N'Nuevo','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Insert Parties',N'Nuevo','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Insert Rectificaciones',N'Nuevo','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Insert Rectificaciones Fees',N'Nuevo','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Insert Rules',N'Nuevo','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Insert Transportation',N'Nuevo','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Licenses Needed_Submit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Multiple HS Request_Submit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn My Settings',N'Mi Configuración','N','N') , (1999,'9/6/2016','es-MX','lnxbtn New Column',N'Nueva columna','N','N') , (1999,'3/1/2016','es-MX','lnxbtn New Invoice',N'Nueva Factura','N','N') , (1999,'3/1/2016','es-MX','lnxbtn New Pedimento',N'Nuevo Pedimento','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Override All',N'Sobrecargar Selecciones','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Override Block',N'Anular Bloqueo','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Post Import Message',N'Agregar Comentario','N','N') , (1999,'9/8/2015','es-MX','lnxbtn Preview',N'Pre visualización de la Documentación','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Print',N'Reimprimir Documentación','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Print Differences',N'Extraer a Hoja de Cálculo','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Process BOM',N'Procesar Lista de Materiales','N','N') , (1999,'9/8/2015','es-MX','lnxbtn Process Shipments',N'Procesar Declaración','N','N') , (1999,'3/1/2016','es-MX','lnxbtn PW Cancel',N'Cancelar','N','N') , (1999,'3/1/2016','es-MX','lnxbtn PW Change',N'Archivo de Actualización','N','N') , (1999,'3/1/2016','es-MX','lnxbtn PW Delete',N'Archivo para Borrado de Firma','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Re Sync Event Category',N'Re-Sincronizar Todos los eventos en la categoría de GTN','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Rec Status Update',N'Actualizar Estatus','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Refresh',N'Actualizar','N','N') , (1999,'9/8/2015','es-MX','lnxbtn Reload',N'Recargar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Report',N'Generar Reporte','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Reset User Password',N'Restaurar contraseña','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Retrieve Searches Formatted_Submit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Retrieve Searches_Submit',N'Enviar','N','N') INSERT INTO tmgPartnerCultureDefinitions(PartnerId,EffDate,CultureGuid,FieldName,FieldTranslation,DeletedFlag,KeepDuringRollback) VALUES (1999,'3/1/2016','es-MX','lnxbtn Revalidate',N'Validar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Revert Button',N'Revertir al Original','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Routing Code',N'Código de enrutamiento','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Rule Category Chapter Partner Subscription Request_Submit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn RW Save',N'Guardar Búsqueda','N','N') , (1999,'9/6/2016','es-MX','lnxbtn RW Update',N'Actualizar Búsqueda','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Save All',N'Guardar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Save And Validate',N'Guardar y Validar','N','N') , (1999,'9/8/2015','es-MX','lnxbtn Save As Template',N'Guardar como Plantilla','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Save Changes',N'Guardar Cambios','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Save Data',N'Guardar','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Save Hdr',N'Guardar Encabezado','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Save Header',N'Guardar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Save New',N'Guardar Nuevo','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Save New Search_Submit',N'Enviar','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Save Notice Header',N'Guardar','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Save Permit Detail',N'Guardar Detalle','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Save Permit Header',N'Guardar Encabezado del Permiso','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Save Search',N'Guardar Búsqueda','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Save2',N'Guardar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn SCAC Code',N'Código SCAC','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Search',N'Buscar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Search Forms',N'Buscar Nuevas Formas','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Select Search',N'Seleccionar Búsqueda','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Send Email',N'Enviar Correo Electrónico','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Show Defaults',N'Mostrar Estándares','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Show Hide Countries',N'Mostrar Países','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Show Options',N'Mostrar Opciones','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Single HS Request_Submit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Spread Sheet Extract',N'Exportar','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Staging Done',N'Selección terminada','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Staging Import',N'Cargar desde preparación','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Staging Load',N'Cargar','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Staging Show',N'Mostrar','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Submit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Submit Add Attachment',N'Cargar y Agregar Attachments','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Submit Void',N'Ingresar Anulación','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Subscribe All',N'Subscribir a Todos','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Subscription Request_Submit',N'Enviar','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Sumit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Toggle Invoices Filter',N'Filtro de Facturas','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Toggle Txns Filter',N'Mostrar Filtro','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Translate',N'Traducir','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Transmit',N'Transmitir','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Transport Num',N'Número de transporte','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Undo',N'Deshacer previo','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Unprint',N'Deshacer Proceso de Embarque','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Unsubscribe All',N'De-subscribir a Todos','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Update Button',N'Actualizar','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Update Search',N'Actualizar Campos Mostrados','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Update Search_Submit',N'Enviar','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Upload',N'Cargar Archivo de Respuesta','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Upload COVE File',N'Cargar','N','N') , (1999,'3/1/2016','es-MX','lnxbtn Upload File',N'Cargar Archivo','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Upload Spreadsheet',N'Subir e Importar Datos','N','N') , (1999,'9/6/2016','es-MX','lnxbtn US Port Of Unlading',N'Puerto de desembarque','N','N') , (1999,'3/1/2016','es-MX','lnxbtn User Edit_Update User',N'Guardar','N','N') , (1999,'9/8/2015','es-MX','lnxbtn Validate',N'Validar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Validate Multiple HS Number Multiple UOM_Submit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Validate Single HS Number Single UOM_Submit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Vessel Flag',N'Bandera del buque','N','N') , (1999,'9/6/2016','es-MX','lnxbtn Vessel Name',N'Nombre del barco','N','N') , (1999,'3/1/2016','es-MX','lnxbtn View',N'Ver Consulta','N','N') , (1999,'9/8/2015','es-MX','lnxbtn Void',N'Invalidar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnAcceptSubscribeAll',N'SI','N','N') , (1999,'9/6/2016','es-MX','lnxbtnAcceptUnsuscribeall',N'SI','N','N') , (1999,'9/6/2016','es-MX','lnxbtnActivate',N'Activar','N','N') , (1999,'2/24/2010','es-MX','lnxbtnAdd',N'Agregar Registro','N','N') , (1999,'9/6/2016','es-MX','lnxbtnAddAttachment',N'Cargar Documento','N','N') , (1999,'9/6/2016','es-MX','lnxbtnAddBillTo',N'Agregar Compañía','N','N') , (1999,'9/6/2016','es-MX','lnxbtnAddCompany',N'Agregar Compañía','N','N') , (1999,'9/6/2016','es-MX','lnxbtnAddCountry',N'Agregar País','N','N') , (1999,'9/6/2016','es-MX','lnxbtnAddEntity',N'Agregar Entidad','N','N') , (1999,'9/6/2016','es-MX','lnxbtnAddExportingCarrier',N'Agregar Compañía','N','N') , (1999,'9/6/2016','es-MX','lnxbtnAddForwarder',N'Agregar Compañía','N','N') , (1999,'9/6/2016','es-MX','lnxbtnAddForwardTo',N'Agregar Compañía','N','N') , (1999,'9/6/2016','es-MX','lnxbtnAddInlandCarrier',N'Agregar Compañía','N','N') , (1999,'9/6/2016','es-MX','lnxbtnAddIntermediateConsignee',N'Agregar Compañía','N','N') , (1999,'3/1/2016','es-MX','lnxbtnAddNew',N'Agregue Nuevo','N','N') , (1999,'3/1/2016','es-MX','lnxbtnAddNewDetail',N'Agregar Nuevo Detalle','N','N') , (1999,'3/1/2016','es-MX','lnxbtnAddNewGroup',N'Añadir grupo','N','N') , (1999,'3/1/2016','es-MX','lnxbtnAddNewUser',N'Añadir usuario','N','N') , (1999,'9/6/2016','es-MX','lnxbtnAddNote',N'Agregar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnAddRecord',N'Agregar Nuevo Registro','N','N') , (1999,'9/6/2016','es-MX','lnxbtnAddSeller',N'Agregar Compañía','N','N') , (1999,'9/6/2016','es-MX','lnxbtnAddShipFrom',N'Agregar Compañía','N','N') , (1999,'9/6/2016','es-MX','lnxbtnAddShipTo',N'Agregar Compañía','N','N') , (1999,'9/6/2016','es-MX','lnxbtnAddUltimateConsignee',N'Agregar Compañía','N','N') , (1999,'9/6/2016','es-MX','lnxbtnAdminSaveLayout',N'Guardar este Plano','N','N') , (1999,'9/6/2016','es-MX','lnxbtnAllowedValidationsRequest_Submit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnAnalyze',N'Analizar','N','N') , (1999,'2/15/2016','es-MX','lnxbtnApply',N'Aplicar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnApply_Cancel',N'Cancelar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnApply_Go',N'Buscar...','N','N') , (1999,'9/6/2016','es-MX','lnxbtnApply_Update',N'Actualizar','N','N') , (1999,'2/22/2010','es-MX','lnxbtnApplyUpdate',N'Aplicar actualización','N','N') , (1999,'9/6/2016','es-MX','lnxbtnApplyUpdates',N'Aplicar Actualizaciones','N','N') , (1999,'2/22/2010','es-MX','lnxbtnApprove',N'Aprobar Audiciones','N','N') , (1999,'3/1/2016','es-MX','lnxbtnAssignPed',N'Asignar Pedimento','N','N') , (1999,'2/24/2010','es-MX','lnxbtnAssignTo',N'Asignado A','N','N') , (1999,'3/1/2016','es-MX','lnxbtnAttach',N'Adjuntar archivo','N','N') , (1999,'9/6/2016','es-MX','lnxbtnAttachments',N'Archivos Adjuntos','N','N') , (1999,'3/1/2016','es-MX','lnxbtnBack',N'Regresar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnBalancesSelect',N'Seleccionar balances','N','N') , (1999,'9/6/2016','es-MX','lnxbtnBillToCopyFrom',N'Copiar de','N','N') , (1999,'9/6/2016','es-MX','lnxbtnBillToDTSOverride',N'Enviar Sobrecarga','N','N') , (1999,'9/6/2016','es-MX','lnxbtnBrokerRemoveSelected',N'Remover Seleccionados','N','N') , (1999,'9/6/2016','es-MX','lnxbtnBulkUpload',N'Carga Masiva','N','N') , (1999,'9/6/2016','es-MX','lnxbtnCAGenerateReport',N'Generar Reporte de Acciones Correctivas','N','N') , (1999,'3/1/2016','es-MX','lnxbtnCalculateMIDButton',N'Calcular MID','N','N') , (1999,'3/1/2016','es-MX','lnxbtnCancel',N'Cancelar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnCancelAdd',N'Cancelado','N','N') , (1999,'9/6/2016','es-MX','lnxbtnCancelAddress',N'Cancelar Domicilio','N','N') , (1999,'3/1/2016','es-MX','lnxbtnCancelBillOfLadingEdit',N'Cancelar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnCancelChanges',N'Cancelar Cambios','N','N') , (1999,'3/1/2016','es-MX','lnxbtnCancelComplimentsEdit',N'Cancelar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnCancelContact',N'Cancelar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnCancelContainerEdit',N'Cancelar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnCancelDelete',N'Cancelar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnCancelDetailEdit',N'Cancelar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnCancelFeesEdit',N'Cancelar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnCancelHSLineArticle303Edit',N'Cancelar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnCancelHSLineItemFeesEdit',N'Cancelar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnCancelHSLineItemObservationsEdit',N'Cancelar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnCancelInvoice',N'Cancelar Factura','N','N') , (1999,'3/1/2016','es-MX','lnxbtnCancelInvoiceEdit',N'Cancelar','N','N') , (1999,'2/15/2016','es-MX','lnxbtnCancelLoading',N'Cancelar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnCancelNew',N'Cancelar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnCancelObservationsEdit',N'Cancelar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnCancelOK',N'Eliminar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnCancelPartiesEdit',N'Cancelar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnCancelRectificacionesEdit',N'Cancelar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnCancelRectificacionesFeesEdit',N'Cancelar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnCancelRulesEdit',N'Cancelar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnCancelSubscribeAll',N'NO','N','N') , (1999,'3/1/2016','es-MX','lnxbtnCancelTransportationEdit',N'Cancelar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnCancelUnsuscribeall',N'NO','N','N') , (1999,'9/6/2016','es-MX','lnxbtnCapture',N'Capturar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnCategoryMaintenance',N'Mantenimiento de categoría','N','N') , (1999,'9/6/2016','es-MX','lnxbtnClear',N'Limpiar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnClearFieldsToAdd',N'Limpiar Campos a Agregar','N','N') , (1999,'2/22/2010','es-MX','lnxbtnClearSearch',N'Limpiar Busqueda','N','N') , (1999,'3/1/2016','es-MX','lnxbtnClearWarnings',N'Eliminar Advertencias','N','N') , (1999,'9/6/2016','es-MX','lnxbtnClose',N'Cerrar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnCloseFlag',N'Cerrar Discrepancias','N','N') , (1999,'3/1/2016','es-MX','lnxbtnCloseInvoice',N'Cerrar Factura','N','N') , (1999,'3/1/2016','es-MX','lnxbtnCloseInvoices',N'Cerrar facturas seleccionadas','N','N') , (1999,'9/6/2016','es-MX','lnxbtnCloseSearch',N'Cerrar Búsqueda','N','N') , (1999,'9/6/2016','es-MX','lnxbtnCMD',N'Agregar Registro','N','N') , (1999,'3/1/2016','es-MX','lnxbtnCMD_ADDADDL',N'Agregar Registro','N','N') , (1999,'9/6/2016','es-MX','lnxbtnCMD_ADDHTS',N'Agregar Registro','N','N') , (1999,'3/1/2016','es-MX','lnxbtnCMD_CANCEL_ADDADDL',N'Cancelar Agregar Registro','N','N') , (1999,'9/6/2016','es-MX','lnxbtnCMD_CANCEL_ADDHTS',N'Cancelar Agregar Registro','N','N') , (1999,'9/6/2016','es-MX','lnxbtnCommitRequest',N'Crear Pedido','N','N') , (1999,'3/1/2016','es-MX','lnxbtnCompare',N'Comparar archivos','N','N') , (1999,'9/6/2016','es-MX','lnxbtnConfirmChanges',N'Confirmar Cambios','N','N') , (1999,'3/1/2016','es-MX','lnxbtnConfirmNew',N'Guardar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnCopy',N'Copiar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnCopyCancel',N'Cancele','N','N') , (1999,'3/1/2016','es-MX','lnxbtnCopyOk',N'Bueno','N','N') , (1999,'9/6/2016','es-MX','lnxbtnCopySearch',N'Copiar Búsqueda en una Nueva','N','N') , (1999,'9/6/2016','es-MX','lnxbtnCopySearch_Submit',N'Enviar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnCOVEManualSave',N'Guardar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnCreateQuarterly',N'Crear un Nuevo PEA Trimestral','N','N') , (1999,'9/6/2016','es-MX','lnxbtnDeactivate',N'Desactivar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnDefaultSources',N'Fuentes Predeterminadas','N','N') , (1999,'3/1/2016','es-MX','lnxbtnDelete',N'Eliminar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnDeleteAll',N'Eliminar','N','N') , (1999,'2/15/2016','es-MX','lnxbtnDeleteComponentCancel',N'Cancelar','N','N') , (1999,'2/15/2016','es-MX','lnxbtnDeleteComponentYes',N'Sí','N','N') , (1999,'3/1/2016','es-MX','lnxbtnDeleteNo',N'No','N','N') , (1999,'3/1/2016','es-MX','lnxbtnDeleteOK',N'Eliminar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnDeleteQuery',N'Borrar consulta','N','N') , (1999,'9/6/2016','es-MX','lnxbtnDeleteSearch',N'Reiniciar Busqueda','N','N') , (1999,'3/1/2016','es-MX','lnxbtnDeleteYes',N'Sí','N','N') , (1999,'9/6/2016','es-MX','lnxbtnDirectDeliveryFlag',N'bandera de entrega directa','N','N') , (1999,'3/1/2016','es-MX','lnxbtnDischarge',N'Descargas','N','N') , (1999,'9/6/2016','es-MX','lnxbtnDocCreation',N'Generar Documento','N','N') , (1999,'9/6/2016','es-MX','lnxbtnECNMLPermissionRequest_Submit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnECNMLSimplePermissionRequest_Submit',N'Enviar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnEdit',N'Editar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnEditSearch',N'Editar Búsqueda','N','N') , (1999,'9/6/2016','es-MX','lnxbtnEEREmailReport',N'Enviar Reporte(s) por correo','N','N') , (1999,'9/6/2016','es-MX','lnxbtnEERGenerateReport',N'Generar Reporte','N','N') , (1999,'9/6/2016','es-MX','lnxbtnEmailShipment',N'Enviar E-mail','N','N') , (1999,'9/6/2016','es-MX','lnxbtnExcludeWords',N'Excluir Palabras Comunes','N','N') , (1999,'3/1/2016','es-MX','lnxbtnExecute',N'Ejecutar','N','N') , (1999,'4/8/2010','es-MX','lnxbtnExit',N'Salir','N','N') , (1999,'9/6/2016','es-MX','lnxbtnExpireSearch_Submit',N'Enviar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnExport',N'Extraer','N','N') , (1999,'9/6/2016','es-MX','lnxbtnExportCountryCode',N'Código de país de exportación','N','N') , (1999,'9/6/2016','es-MX','lnxbtnExportingCarrierCopyFrom',N'Copiar de','N','N') , (1999,'3/1/2016','es-MX','lnxbtnExportNoTariff',N'Extraer envíos con Impuestos Pagados','N','N') , (1999,'3/1/2016','es-MX','lnxbtnExportTariff',N'Extraer los Envíos al Exterior','N','N') , (1999,'2/15/2016','es-MX','lnxbtnExportToExcel',N'Exportar a Excel','N','N') , (1999,'2/15/2016','es-MX','lnxbtnExportToPdf',N'Exportar a PDF','N','N') , (1999,'3/1/2016','es-MX','lnxbtnFIFOGridFilter',N'Mostrar/Ocultar Filtro','N','N') , (1999,'3/1/2016','es-MX','lnxbtnFileImport',N'Cargar con archivo','N','N') , (1999,'3/1/2016','es-MX','lnxbtnFileLoadToDB',N'Cargar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnFilerCode',N'Filer Code','N','N') , (1999,'3/1/2016','es-MX','lnxbtnFilter',N'Mostrar/Ocultar Filtro','N','N') , (1999,'2/15/2016','es-MX','lnxbtnFilterResultDescription',N'Aplicar filtro','N','N') , (1999,'9/8/2015','es-MX','lnxbtnFinalize',N'Finalizar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnForwarderCopyFrom',N'Copiar de','N','N') , (1999,'9/6/2016','es-MX','lnxbtnForwarderDTSOverride',N'Enviar Sobrecarga','N','N') , (1999,'9/6/2016','es-MX','lnxbtnForwardToCopyFrom',N'Copiar de','N','N') , (1999,'9/6/2016','es-MX','lnxbtnFrgnPortOfLading',N'Puerto extranjero de desembarque','N','N') , (1999,'9/6/2016','es-MX','lnxbtnFTAPermissionRequest_Submit',N'Enviar','N','N') , (1999,'2/24/2010','es-MX','lnxbtnGenCertificate',N'Generar Certificado','N','N') , (1999,'2/24/2010','es-MX','lnxbtnGenerate',N'Generar','N','N') , (1999,'2/15/2016','es-MX','lnxbtnGeneratedInputsUOMOther_Cancel',N'Cancelar','N','N') , (1999,'2/15/2016','es-MX','lnxbtnGeneratedInputsUOMOther_Save',N'Guardar','N','N') , (1999,'3/11/2010','es-MX','lnxbtnGeneratePEA',N'Generar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnGenNQLetter',N'Generar Carta de No Calificado','N','N') , (1999,'9/6/2016','es-MX','lnxbtnGetAllCountryCodes_Submit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnGetAllCurrencyCodes_Submit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnGetAllSortOrderHSDescription_Submit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnGetAllSubCountryCodes_Submit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnGetExchangeRates_Submit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnGetFullHierarchyHSDescription_Submit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnGetRuleOfOriginHeader_Submit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnGetRuleOfOriginText_Submit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnGetUpdatedHSNumberXML_Submit',N'Enviar','N','N') , (1999,'2/22/2010','es-MX','lnxbtnGo',N'Buscar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnGroupAccess',N'Añadir Forma','N','N') , (1999,'3/1/2016','es-MX','lnxbtnGroupEdit',N'Guardar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnGroupEdit_AddGroup',N'Agregar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnGroupEdit_UpdateGroup',N'Guardar','N','N') , (1999,'2/26/2010','es-MX','lnxbtnHeader',N'Información','N','N') , (1999,'9/6/2016','es-MX','lnxbtnHideDefaults',N'Esconder filtro','N','N') , (1999,'3/1/2016','es-MX','lnxbtnHideOptions',N'Ocultar Opciones','N','N') , (1999,'3/1/2016','es-MX','lnxbtnHidePedimentoGrid',N'Esconder','N','N') , (1999,'9/6/2016','es-MX','lnxbtnHoliDay_Submit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnHoliDay_SubmitDataset',N'Enviar','N','N') , (1999,'2/15/2016','es-MX','lnxbtnHSNumberSettingsCancel',N'Cancelar','N','N') , (1999,'2/15/2016','es-MX','lnxbtnHSNumberSettingsSave',N'Siguiente','N','N') , (1999,'9/6/2016','es-MX','lnxbtnHSPermissionRequest_Submit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnHSRequestSingle_Submit2',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnHSSimplePermissionRequest_Submit',N'Enviar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnImportCOVEResultFile',N'Importar Resultado de COVE','N','N') , (1999,'9/6/2016','es-MX','lnxbtnInitInsertFunction',N'Agregar Nueva Función','N','N') , (1999,'9/6/2016','es-MX','lnxbtnInitInsertParameter',N'Agregar Nuevo Parámetro','N','N') , (1999,'9/6/2016','es-MX','lnxbtnInlandCarrierCopyFrom',N'Copiar de','N','N') , (1999,'3/1/2016','es-MX','lnxbtnInsert',N'Insertar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnInsertBillOfLading',N'Nuevo','N','N') , (1999,'3/1/2016','es-MX','lnxbtnInsertCompliments',N'Nuevo','N','N') , (1999,'3/1/2016','es-MX','lnxbtnInsertContainer',N'Nuevo','N','N') , (1999,'3/1/2016','es-MX','lnxbtnInsertDetail',N'Nuevo','N','N') , (1999,'3/1/2016','es-MX','lnxbtnInsertFees',N'Nuevo','N','N') , (1999,'3/1/2016','es-MX','lnxbtnInsertHSLineArticle303',N'Nuevo','N','N') , (1999,'3/1/2016','es-MX','lnxbtnInsertHSLineItemFees',N'Nuevo','N','N') , (1999,'3/1/2016','es-MX','lnxbtnInsertHSLineItemObservations',N'Nuevo','N','N') , (1999,'3/1/2016','es-MX','lnxbtnInsertInvoice',N'Nuevo','N','N') , (1999,'3/1/2016','es-MX','lnxbtnInsertObservations',N'Nuevo','N','N') , (1999,'3/1/2016','es-MX','lnxbtnInsertParties',N'Nuevo','N','N') , (1999,'3/1/2016','es-MX','lnxbtnInsertRectificaciones',N'Nuevo','N','N') , (1999,'3/1/2016','es-MX','lnxbtnInsertRectificacionesFees',N'Nuevo','N','N') , (1999,'3/1/2016','es-MX','lnxbtnInsertRules',N'Nuevo','N','N') , (1999,'3/1/2016','es-MX','lnxbtnInsertTransportation',N'Nuevo','N','N') , (1999,'9/6/2016','es-MX','lnxbtnIntermediateConsigneeCopyFrom',N'Copiar de','N','N') , (1999,'9/6/2016','es-MX','lnxbtnIntermediateConsigneeDTSOverride',N'Enviar Sobrecarga','N','N') , (1999,'9/6/2016','es-MX','lnxbtnLicensesNeeded_Submit',N'Enviar','N','N') , (1999,'2/15/2016','es-MX','lnxbtnManageSearchesCancel',N'Cerrar','N','N') , (1999,'2/15/2016','es-MX','lnxbtnManageSearchesTitle',N'Administrar Búsquedas','N','N') , (1999,'9/6/2016','es-MX','lnxbtnMultipleHSRequest_Submit',N'Enviar','N','N') , (1999,'2/15/2016','es-MX','lnxbtnMultipleMatchingECNCancel',N'Cerrar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnMySettings',N'Mi configuracion','N','N') , (1999,'2/24/2010','es-MX','lnxbtnNew',N'Nuevo','N','N') , (1999,'9/6/2016','es-MX','lnxbtnNewColumn',N'Nueva columna','N','N') , (1999,'3/1/2016','es-MX','lnxbtnNewInvoice',N'Nueva Factura','N','N') , (1999,'3/1/2016','es-MX','lnxbtnNewPedimento',N'Nuevo Pedimento','N','N') , (1999,'9/6/2016','es-MX','lnxbtnNewQuery',N'Nueva consulta','N','N') , (1999,'2/15/2016','es-MX','lnxbtnNewSearch',N'Buscar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnNo',N'No','N','N') , (1999,'3/1/2016','es-MX','lnxbtnNo_DefaultSources',N'No','N','N') , (1999,'2/26/2010','es-MX','lnxbtnOrigin',N'Regla de Origen','N','N') , (1999,'9/6/2016','es-MX','lnxbtnOverrideAll',N'Sobrecargar Selecciones','N','N') , (1999,'9/6/2016','es-MX','lnxbtnOverrideBlock',N'Anular Bloqueo','N','N') , (1999,'2/15/2016','es-MX','lnxbtnPastUpdatesDetailCancel',N'Cerrar','N','N') , (1999,'2/15/2016','es-MX','lnxbtnPastUpdatesDetailGridViewCancel',N'Cerrar','N','N') , (1999,'2/24/2010','es-MX','lnxbtnPCHSOverride',N'Insertar Fracción Faltante','N','N') , (1999,'9/6/2016','es-MX','lnxbtnPostImportMessage',N'Agregar Comentario','N','N') , (1999,'9/8/2015','es-MX','lnxbtnPreview',N'Prevista de la Documentación','N','N') , (1999,'9/6/2016','es-MX','lnxbtnPrint',N'Imprimir','N','N') , (1999,'3/1/2016','es-MX','lnxbtnPrintDifferences',N'Extraer a Hoja de Cálculo','N','N') , (1999,'2/25/2010','es-MX','lnxbtnProcessBOM',N'Procesar Lista de Materiales','N','N') , (1999,'9/8/2015','es-MX','lnxbtnProcessShipments',N'Procesar Embarque','N','N') , (1999,'3/1/2016','es-MX','lnxbtnPWCancel',N'Cancelar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnPWChange',N'Archivo de Actualización','N','N') , (1999,'3/1/2016','es-MX','lnxbtnPWDelete',N'Archivo para Borrado de Firma','N','N') , (1999,'9/6/2016','es-MX','lnxbtnQuotaQuery',N'Consulta de Cuota','N','N') , (1999,'9/6/2016','es-MX','lnxbtnReactivate',N'Reactivar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnRecStatusUpdate',N'Actualizar Estatus','N','N') , (1999,'3/1/2016','es-MX','lnxbtnRefresh',N'Actualizar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnRefreshDetails',N'Refrescar Detalles','N','N') , (1999,'9/6/2016','es-MX','lnxbtnRefreshParties',N'Refrescar Entidades','N','N') , (1999,'9/6/2016','es-MX','lnxbtnRefreshProducts',N'Refrescar Productos','N','N') , (1999,'9/8/2015','es-MX','lnxbtnReload',N'Recargar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnReport',N'Generar Reporte/Informe','N','N') , (1999,'2/24/2010','es-MX','lnxbtnReqCertificate',N'Solicitar Certificado','N','N') , (1999,'3/1/2016','es-MX','lnxbtnResetUserPassword',N'Restaurar contraseña','N','N') , (1999,'2/15/2016','es-MX','lnxbtnResultsDetail0_AddNewCharge',N'Añadir nuevo cargo','N','N') , (1999,'2/15/2016','es-MX','lnxbtnResultsDetail0_Calculate',N'Actualizar Cálculos','N','N') , (1999,'2/15/2016','es-MX','lnxbtnResultsDetail0_Calculate2',N'Actualizar Cálculos','N','N') , (1999,'2/15/2016','es-MX','lnxbtnResultsDetail1_AddNewCharge',N'Añadir nuevo cargo','N','N') , (1999,'2/15/2016','es-MX','lnxbtnResultsDetail1_Calculate',N'Actualizar Cálculos','N','N') , (1999,'2/15/2016','es-MX','lnxbtnResultsDetail1_Calculate2',N'Actualizar Cálculos','N','N') , (1999,'3/1/2016','es-MX','lnxbtnReSyncEventCategory',N'Sincronizar todas las categorias','N','N') , (1999,'9/6/2016','es-MX','lnxbtnRetrieveSearches_Submit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnRetrieveSearchesFormatted_Submit',N'Enviar','N','N') , (1999,'7/11/2011','es-MX','lnxbtnReturnToDashboard',N'Regresar al tablero','N','N') , (1999,'2/15/2016','es-MX','lnxbtnReturnWCOHierarchy',N'Restaurar Jerarquía OMA','N','N') , (1999,'3/1/2016','es-MX','lnxbtnRevalidate',N'Validar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnRevertButton',N'Revertir al Original','N','N') , (1999,'9/6/2016','es-MX','lnxbtnRoutingCode',N'Código de enrutamiento','N','N') , (1999,'9/6/2016','es-MX','lnxbtnRuleCategoryChapterPartnerSubscriptionRequest_Submit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnRWSave',N'Guardar Búsqueda','N','N') , (1999,'9/6/2016','es-MX','lnxbtnRWUpdate',N'Actualizar Búsqueda','N','N') , (1999,'1/16/2012','es-MX','lnxbtnSave',N'Guardar','N','N') , (1999,'2/22/2010','es-MX','lnxbtnSave2',N'Guardar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnSaveAll',N'Guardar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnSaveAndClose',N'Guardar y Cerrar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnSaveBillOfLadingEdit',N'Guardar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnSaveChanges',N'Guardar Cambios','N','N') , (1999,'3/1/2016','es-MX','lnxbtnSaveComplimentsEdit',N'Guardar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnSaveContact',N'Guardar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnSaveContainerEdit',N'Guardar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnSaveData',N'Guardar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnSaveDetail',N'Guardar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnSaveDetailEdit',N'Guardar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnSaveExportDetail',N'Guardar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnSaveFeesEdit',N'Guardar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnSaveGeneric',N'Guardar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnSaveHdr',N'Guardar Encabezado','N','N') , (1999,'3/1/2016','es-MX','lnxbtnSaveHeader',N'Guardar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnSaveHSLineArticle303Edit',N'Guardar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnSaveHSLineItemFeesEdit',N'Guardar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnSaveHSLineItemObservationsEdit',N'Guardar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnSaveInvoiceEdit',N'Guardar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnSaveNew',N'Guardar Nuevo','N','N') , (1999,'9/6/2016','es-MX','lnxbtnSaveNewSearch_Submit',N'Enviar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnSaveNoticeHeader',N'Guardar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnSaveObservationsEdit',N'Guardar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnSavePartiesEdit',N'Guardar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnSaveParty',N'Guardar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnSavePermitDetail',N'Guardar Detalle','N','N') , (1999,'3/1/2016','es-MX','lnxbtnSavePermitHeader',N'Guardar Encabezado del Permiso','N','N') , (1999,'3/1/2016','es-MX','lnxbtnSaveRectificacionesEdit',N'Guardar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnSaveRectificacionesFeesEdit',N'Guardar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnSaveRulesEdit',N'Guardar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnSaveSearch',N'Guardar Búsqueda','N','N') , (1999,'2/15/2016','es-MX','lnxbtnSaveSearches_Cancel',N'Cancelar','N','N') , (1999,'2/15/2016','es-MX','lnxbtnSaveSearches_Save',N'Guardar','N','N') , (1999,'2/26/2010','es-MX','lnxbtnSaveSigned',N'Guardar Certificado Firmado','N','N') , (1999,'9/6/2016','es-MX','lnxbtnSaveTemplate',N'Guardar Plantilla','N','N') , (1999,'3/1/2016','es-MX','lnxbtnSaveTransportationEdit',N'Guardar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnSCACCode',N'Código SCAC','N','N') , (1999,'2/15/2016','es-MX','lnxbtnSearch',N'Buscar','N','N') , (1999,'2/15/2016','es-MX','lnxbtnSearchDetail',N'Búsqueda Avanzada','N','N') , (1999,'3/1/2016','es-MX','lnxbtnSearchForms',N'Buscar pantallas','N','N') , (1999,'9/6/2016','es-MX','lnxbtnSearchInvoice',N'Buscar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnSearchLicense',N'Buscar Licencia','N','N') , (1999,'2/15/2016','es-MX','lnxbtnSearchProfile',N'Perfil de Búsqueda','N','N') , (1999,'3/1/2016','es-MX','lnxbtnSelectSearch',N'Seleccionar Búsqueda','N','N') , (1999,'9/6/2016','es-MX','lnxbtnSelleDTSOverride',N'Enviar Sobrecarga','N','N') , (1999,'9/6/2016','es-MX','lnxbtnSellerCopyFrom',N'Copiar de','N','N') , (1999,'9/6/2016','es-MX','lnxbtnSendEmail',N'Enviar','N','N') , (1999,'2/15/2016','es-MX','lnxbtnSettingsRemindMeLater',N'Recordarme más tarde','N','N') , (1999,'2/15/2016','es-MX','lnxbtnSettingsSave',N'Siguiente','N','N') , (1999,'2/15/2016','es-MX','lnxbtnSetupProfileLater',N'Recordarme más tarde','N','N') , (1999,'2/15/2016','es-MX','lnxbtnSetupProfileYes',N'Sí','N','N') , (1999,'9/6/2016','es-MX','lnxbtnShipFromCopyFrom',N'Copiar de','N','N') , (1999,'9/6/2016','es-MX','lnxbtnShipFromDTSOverride',N'Enviar Sobrecarga','N','N') , (1999,'9/6/2016','es-MX','lnxbtnShipToCopyFrom',N'Copiar de','N','N') , (1999,'9/6/2016','es-MX','lnxbtnShipToDTSOverride',N'Enviar Sobrecarga','N','N') , (1999,'2/15/2016','es-MX','lnxbtnShowAllNews',N'Mostrar todas las noticias','N','N') , (1999,'3/1/2016','es-MX','lnxbtnShowDefaults',N'Mostrar Estándares','N','N') , (1999,'3/1/2016','es-MX','lnxbtnShowHideCountries',N'Mostrar Países','N','N') , (1999,'9/6/2016','es-MX','lnxbtnShowMissing',N'Embarque Perdido?','N','N') , (1999,'3/1/2016','es-MX','lnxbtnShowOptions',N'Mostrar Opciones','N','N') , (1999,'9/6/2016','es-MX','lnxbtnSingleHSRequest_Submit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnSpreadSheetExtract',N'Exportar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnSpreadsheetUpload',N'Cargar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnStagingDone',N'Selección terminada','N','N') , (1999,'3/1/2016','es-MX','lnxbtnStagingImport',N'Cargar desde preparación','N','N') , (1999,'3/1/2016','es-MX','lnxbtnStagingLoad',N'Cargar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnStagingShow',N'Mostrar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnSubmit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnSubmitAddAttachment',N'Cargar y Agregar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnSubmitVoid',N'Ingresar Anulación','N','N') , (1999,'9/6/2016','es-MX','lnxbtnSubscribeAll',N'Subscribir a Todos','N','N') , (1999,'9/6/2016','es-MX','lnxbtnSubscriptionRequest_Submit',N'Enviar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnSumit',N'Enviar','N','N') , (1999,'2/15/2016','es-MX','lnxbtnTestPrint',N'Imprimir','N','N') , (1999,'3/1/2016','es-MX','lnxbtnToggleAssetFilter',N'Mostrar Filtro','N','N') , (1999,'9/6/2016','es-MX','lnxbtnToggleInvoicesFilter',N'Filtro de Facturas','N','N') , (1999,'9/6/2016','es-MX','lnxbtnToggleTxnsFilter',N'Mostrar Filtro','N','N') , (1999,'9/6/2016','es-MX','lnxbtnTranslate',N'Traducir','N','N') , (1999,'9/6/2016','es-MX','lnxbtnTransmit',N'Transmitir','N','N') , (1999,'9/6/2016','es-MX','lnxbtnTransportNum',N'Número de transporte','N','N') , (1999,'9/6/2016','es-MX','lnxbtnUltimateConsigneeCopyFrom',N'Copiar de','N','N') , (1999,'9/6/2016','es-MX','lnxbtnUltimateConsigneeDTSOverride',N'Enviar Sobrecarga','N','N') , (1999,'3/1/2016','es-MX','lnxbtnUndo',N'Deshacer previo','N','N') , (1999,'9/6/2016','es-MX','lnxbtnUnsubscribeAll',N'De-subscribir a Todos','N','N') , (1999,'9/6/2016','es-MX','lnxbtnUpdate',N'Actualizar Factura','N','N') , (1999,'3/1/2016','es-MX','lnxbtnUpdateButton',N'Actualizar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnUpdateInventoryNum',N'Actualizar Número de Activo','N','N') , (1999,'3/1/2016','es-MX','lnxbtnUpdateLocation',N'Actualizar Ubicación','N','N') , (1999,'3/1/2016','es-MX','lnxbtnUpdateSearch',N'Actualizar Campos Mostrados','N','N') , (1999,'9/6/2016','es-MX','lnxbtnUpdateSearch_Submit',N'Enviar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnUpload',N'Cargar archivos','N','N') , (1999,'3/1/2016','es-MX','lnxbtnUploadCOVEFile',N'Cargar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnUploadFile',N'Cargar Archivo','N','N') , (1999,'3/1/2016','es-MX','lnxbtnUploadSpreadsheet',N'Carga e Importación de Datos','N','N') , (1999,'3/1/2016','es-MX','lnxbtnUserEdit_UpdateUser',N'Guardar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnUserSearch',N'Buscar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnUSPortOfUnlading',N'Puerto de desembarque','N','N') , (1999,'9/8/2015','es-MX','lnxbtnValidate',N'Validar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnValidateMultipleHSNumberMultipleUOM_Submit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnValidateSingleHSNumberSingleUOM_Submit',N'Enviar','N','N') , (1999,'9/6/2016','es-MX','lnxbtnVesselFlag',N'Bandera del buque','N','N') , (1999,'9/6/2016','es-MX','lnxbtnVesselName',N'Nombre del barco','N','N') , (1999,'3/1/2016','es-MX','lnxbtnView',N'Ver Consulta','N','N') , (1999,'2/15/2016','es-MX','lnxbtnViewSettingsCancel',N'Cancelar','N','N') , (1999,'2/15/2016','es-MX','lnxbtnViewSettingsSave',N'Guardar','N','N') , (1999,'9/8/2015','es-MX','lnxbtnVoid',N'Invalidar','N','N') , (1999,'3/1/2016','es-MX','lnxbtnYes',N'Si','N','N') , (1999,'3/1/2016','es-MX','lnxbtnYes_DefaultSources',N'Si','N','N') , (1999,'3/1/2016','es-MX','lnxCancel',N'Cancelar','N','N') , (1999,'9/11/2015','es-MX','lnxCancelAcceptNonqual',N'Cancelar','N','N') , (1999,'9/11/2015','es-MX','lnxCancelAcceptQual',N'Cancelar','N','N') , (1999,'9/11/2015','es-MX','lnxCancelCopy',N'Cancelar','N','N') , (1999,'9/11/2015','es-MX','lnxCancelNewBOM',N'Cancelar','N','N') , (1999,'9/11/2015','es-MX','lnxCancelNewPC',N'Cancelar','N','N') , (1999,'9/11/2015','es-MX','lnxCancelParty',N'Cancelar','N','N') , (1999,'9/11/2015','es-MX','lnxCancelReject',N'Cancelar','N','N') , (1999,'9/6/2016','es-MX','lnxCancelSQLLongDescription',N'Cancelar','N','N') , (1999,'4/8/2010','es-MX','lnxCheckWorkflow',N'Recuperar Resultados','N','N') , (1999,'4/8/2010','es-MX','lnxClear',N'Limpiar','N','N') , (1999,'9/11/2015','es-MX','lnxClearChosenPCs',N'Limpiar Lista y Reiniciar','N','N') , (1999,'9/11/2015','es-MX','lnxClose',N'Cerrar','N','N') , (1999,'9/11/2015','es-MX','lnxCommentAdd',N'Agregar','N','N') , (1999,'9/11/2015','es-MX','lnxCommentCancel',N'Cancelar','N','N') , (1999,'9/11/2015','es-MX','lnxCommunitySelect',N'Paises Seleccionados','N','N') , (1999,'9/11/2015','es-MX','lnxConfirmAcceptNonqual',N'Aceptar','N','N') , (1999,'9/11/2015','es-MX','lnxConfirmAcceptQual',N'Aceptar','N','N') , (1999,'9/11/2015','es-MX','lnxConfirmReject',N'Rechazar','N','N') , (1999,'9/11/2015','es-MX','lnxCopy',N'Copiar','N','N') , (1999,'9/11/2015','es-MX','lnxCopyConfirm',N'Copiar','N','N') , (1999,'9/11/2015','es-MX','lnxCopyFromPrevYear',N'Copiar Solicitud de Años Previos','N','N') , (1999,'9/8/2016','es-MX','lnxCopyFTAParty',N'Guardar','N','N') , (1999,'9/11/2015','es-MX','lnxCopyFTAProdValues',N'Copiar Valores de Otra Pestaña','N','N') , (1999,'9/6/2016','es-MX','lnxCopyLocal',N'Crear Copia Local','N','N') , (1999,'9/11/2015','es-MX','lnxCopyRequest',N'Copiar Solicitud','N','N') , (1999,'9/11/2015','es-MX','lnxCreate',N'Crear Nueva Solicitud','N','N') , (1999,'9/11/2015','es-MX','lnxCreatedCerts',N'Crear Certificados','N','N') , (1999,'9/11/2015','es-MX','lnxCreateLaunch',N'Crear','N','N') , (1999,'9/11/2015','es-MX','lnxCreateNew',N'Crear Nueva Solicitud','N','N') , (1999,'3/1/2016','es-MX','lnxDeleteSearch',N'Borrar Busqueda','N','N') , (1999,'9/6/2016','es-MX','lnxDeleteSearche',N'Borrar Busqueda:','N','N') , (1999,'9/6/2016','es-MX','lnxEdit',N'Editar','N','N') , (1999,'9/6/2016','es-MX','lnxEditExporter',N'Editar','N','N') , (1999,'9/6/2016','es-MX','lnxEditImporter',N'Editar','N','N') , (1999,'9/11/2015','es-MX','lnxEditParties',N'Editar Informacion de Entidad','N','N') , (1999,'9/6/2016','es-MX','lnxEditProducer',N'Editar','N','N') , (1999,'9/11/2015','es-MX','lnxEmailCancel',N'Cancelar','N','N') , (1999,'9/11/2015','es-MX','lnxEmailManagement',N'Administracion de Correo','N','N') , (1999,'3/1/2016','es-MX','lnxExit',N'Salir','N','N') , (1999,'2/22/2010','es-MX','lnxExport',N'Extraer','N','N') , (1999,'9/11/2015','es-MX','lnxExportSingleChanges',N'Imprimir Reporte QUE SI?','N','N') , (1999,'9/11/2015','es-MX','lnxExportWhatIfResults',N'Imprimir Reporte QUE SI?','N','N') , (1999,'9/6/2016','es-MX','lnxExternalRemoveSelected',N'Remover Seleccionados','N','N') , (1999,'9/11/2015','es-MX','lnxFakeSubmit',N'Documento(s) Enviados','N','N') , (1999,'9/11/2015','es-MX','lnxFill',N'Llenar de Fuente','N','N') , (1999,'9/11/2015','es-MX','lnxFTASelect',N'Seleccionar Tratados de Libre Comercio','N','N') , (1999,'9/11/2015','es-MX','lnxGenCert',N'Generar Certificado','N','N') , (1999,'9/11/2015','es-MX','lnxGenerate',N'Generar','N','N') , (1999,'9/11/2015','es-MX','lnxGenerateMass',N'Certificar BOM(s)','N','N') , (1999,'9/11/2015','es-MX','lnxGenerateSingle',N'Certificar BOM(s)','N','N') , (1999,'9/11/2015','es-MX','lnxGenNonCert',N'Generar Carta de No Calificado','N','N') , (1999,'9/11/2015','es-MX','lnxHelp',N'Instrucciones','N','N') , (1999,'9/11/2015','es-MX','lnxInitiateCopy',N'Copiar Solicitud','N','N') , (1999,'9/11/2015','es-MX','lnxInitInsert',N'Agregar Cliente','N','N') , (1999,'9/11/2015','es-MX','lnxInsertNewBOM',N'Insertar Nueva BOM','N','N') , (1999,'9/11/2015','es-MX','lnxInsertNewPC',N'Inserta nuevo PC y Cerrar','N','N') , (1999,'9/11/2015','es-MX','lnxInsertNewPCContinuous',N'Insertar Nuevo PC y Agregar Siguiente','N','N') , (1999,'9/11/2015','es-MX','lnxInstructions',N'Manual de Instrucciones','N','N') , (1999,'9/6/2016','es-MX','lnxInternalRemoveSelected',N'Remover Seleccionados','N','N') , (1999,'9/11/2015','es-MX','lnxLaunchBOMWorkflow',N'Procesar todas las listas de materiales','N','N') , (1999,'9/11/2015','es-MX','lnxLaunchSaveAll',N'Guardar Todo','N','N') , (1999,'9/11/2015','es-MX','lnxLaunchWhatIf',N'Correr QUE SI?','N','N') , (1999,'9/11/2015','es-MX','lnxLaunchWithFilter',N'Procesar lista de materiales con criterio seleccionado','N','N') , (1999,'9/11/2015','es-MX','lnxLTSDCommunitySelect',N'Seleccionar Paises','N','N') , (1999,'9/11/2015','es-MX','lnxLTSDCumulationSelect',N'Seleccionar Paises','N','N') , (1999,'9/11/2015','es-MX','lnxLTSDRWCommunity',N'Usar Paises Seleccionados','N','N') , (1999,'9/11/2015','es-MX','lnxLTSDRWCumulation',N'Usar Paises Seleccionados','N','N') , (1999,'9/6/2016','es-MX','lnxMassCOOCertify',N'Aceptar resultados seleccionados','N','N') , (1999,'9/11/2015','es-MX','lnxMassMCS',N'Crear Reporte MCS','N','N') , (1999,'9/11/2015','es-MX','lnxMassSearch',N'Buscar','N','N') , (1999,'9/11/2015','es-MX','lnxMassUpdate',N'Actualizar Productos Seleccionados','N','N') , (1999,'9/11/2015','es-MX','lnxNew',N'Nuevo','N','N') , (1999,'9/11/2015','es-MX','lnxNewFG',N'Nuevo','N','N') , (1999,'9/11/2015','es-MX','lnxNewRequest',N'Crear Nueva Solicitud','N','N') , (1999,'2/24/2010','es-MX','lnxnewsearch',N'Nueva Busqueda','N','N') , (1999,'3/1/2016','es-MX','lnxNext',N'Siguiente','N','N') , (1999,'9/11/2015','es-MX','lnxNoteAdd',N'Agregar','N','N') , (1999,'9/11/2015','es-MX','lnxNoteCancel',N'Cancelar','N','N') , (1999,'9/11/2015','es-MX','lnxNoVoid',N'Cancelar','N','N') , (1999,'9/11/2015','es-MX','lnxPCHSOverride',N'Sobrecargar No. HS y PC','N','N') , (1999,'3/1/2016','es-MX','lnxPrevious',N'Previo','N','N') , (1999,'9/6/2016','es-MX','lnxPrint',N'Imprimir','N','N') , (1999,'9/11/2015','es-MX','lnxProductSearch',N'Agregar Productos a la Solicitud','N','N') , (1999,'9/11/2015','es-MX','lnxProductSelect',N'Seleccionar Múltiples Productos','N','N') , (1999,'9/11/2015','es-MX','lnxRefresh',N'Actualizar','N','N') , (1999,'9/11/2015','es-MX','lnxReminder',N'Actualizar Recordatorio','N','N') , (1999,'9/11/2015','es-MX','lnxReminderCancel',N'Cancelar','N','N') , (1999,'9/11/2015','es-MX','lnxRemoveAllInvalid',N'Remover Todos','N','N') , (1999,'9/11/2015','es-MX','lnxRemoveAllSelected',N'Remover Todos','N','N') , (1999,'9/11/2015','es-MX','lnxRemoveInvalid',N'Remover Seleccionados','N','N') , (1999,'9/11/2015','es-MX','lnxRemoveSelected',N'Remover Seleccionados','N','N') , (1999,'9/11/2015','es-MX','lnxReportHistory',N'Historial de Reportes','N','N') , (1999,'9/11/2015','es-MX','lnxReqCertificate',N'Solicitar Certificado','N','N') , (1999,'9/11/2015','es-MX','lnxReqProductSearch',N'Agregar Productos a la Solicitud','N','N') , (1999,'9/11/2015','es-MX','lnxResetChosenBOM',N'Reiniciar BOM Seleccionada','N','N') , (1999,'9/11/2015','es-MX','lnxResetChosenPCs',N'Reiniciar Lista de Componentes','N','N') , (1999,'9/11/2015','es-MX','lnxRevalidate',N'Revalidar Seleccionados','N','N') , (1999,'9/11/2015','es-MX','lnxrwAddNote',N'Agregar','N','N') , (1999,'9/11/2015','es-MX','lnxrwCancelNote',N'Cancelar','N','N') , (1999,'9/11/2015','es-MX','lnxrwPCSave',N'Guadar','N','N') , (1999,'9/11/2015','es-MX','lnxrwPCSaveAndClose',N'Guardar y Cerrar','N','N') , (1999,'9/11/2015','es-MX','lnxSave',N'Guardar','N','N') , (1999,'9/11/2015','es-MX','lnxSaveAddedFTA',N'Guadar','N','N') , (1999,'9/11/2015','es-MX','lnxSaveClose',N'Guardar y cerrar','N','N') , (1999,'9/11/2015','es-MX','lnxSaveConfirm',N'Guadar','N','N') , (1999,'9/6/2016','es-MX','lnxSaveDates',N'Guardar Fechas','N','N') , (1999,'9/6/2016','es-MX','lnxSaveDetail',N'Guardar Detalle','N','N') , (1999,'9/11/2015','es-MX','lnxSaveEmail',N'Guadar','N','N') , (1999,'9/6/2016','es-MX','lnxSaveHeader',N'Guardar Encabezado','N','N') , (1999,'9/11/2015','es-MX','lnxSaveMass',N'Guardar','N','N') , (1999,'9/11/2015','es-MX','lnxSaveMulti',N'Guadar','N','N') , (1999,'9/11/2015','es-MX','lnxSaveMultiList',N'Guardar Lista Seleccionada','N','N') , (1999,'9/11/2015','es-MX','lnxSaveParties',N'Guadar antes de Proceder','N','N') , (1999,'9/11/2015','es-MX','lnxSaveParty',N'Guadar','N','N') , (1999,'3/1/2016','es-MX','lnxSaveSearch',N'Guardar Busqueda','N','N') , (1999,'9/11/2015','es-MX','lnxSaveSigs',N'Guardar Antes de Proceder','N','N') , (1999,'9/11/2015','es-MX','lnxSaveSingle',N'Guadar','N','N') , (1999,'9/11/2015','es-MX','lnxSaveSingleBOM',N'Cambiar BOM Guardada','N','N') , (1999,'2/22/2010','es-MX','lnxSearchedColumnsClear',N'Limpiar','N','N') , (1999,'2/22/2010','es-MX','lnxSearchedColumnsSave',N'Guardar','N','N') , (1999,'9/11/2015','es-MX','lnxSearchGo',N'Buscar','N','N') , (1999,'9/11/2015','es-MX','lnxSelectBOM',N'Seleccionar BOM','N','N') , (1999,'9/11/2015','es-MX','lnxSelectDocument',N'Seleccionar Documento','N','N') , (1999,'9/11/2015','es-MX','lnxSelectFTAs',N'Usar Tratados Seleccionados','N','N') , (1999,'9/11/2015','es-MX','lnxSelectListHistory',N'Seleccionar Lista Guardada','N','N') , (1999,'9/11/2015','es-MX','lnxSelectPC',N'Seleccionar Componentes','N','N') , (1999,'9/6/2016','es-MX','lnxSelectProduct',N'Seleccionar Productos','N','N') , (1999,'9/11/2015','es-MX','lnxSelectProducts',N'Seleccionar Productos','N','N') , (1999,'9/11/2015','es-MX','lnxSelectRecord',N'Seleccionar','N','N') , (1999,'3/1/2016','es-MX','lnxSelectSearch',N'Elegir Busqueda','N','N') , (1999,'9/11/2015','es-MX','lnxSelectSingleHistory',N'Guardar BOM Seleccionada','N','N') , (1999,'9/11/2015','es-MX','lnxSend',N'Enviar','N','N') , (1999,'9/11/2015','es-MX','lnxSendReminder',N'Enviar Recordatorio Ahora','N','N') , (1999,'9/11/2015','es-MX','lnxShowContactInfo',N'Actualizar Informacion de contacto','N','N') , (1999,'3/11/2010','es-MX','lnxShowDisplayColumns',N'Mostrar Columnas','N','N') , (1999,'9/11/2015','es-MX','lnxShowReminder',N'Enviar Recordatorio','N','N') , (1999,'9/11/2015','es-MX','lnxSingleMCS',N'Crear Reporte MCS','N','N') , (1999,'9/11/2015','es-MX','lnxSingleReset',N'Reiniciar Analisis simple','N','N') , (1999,'9/11/2015','es-MX','lnxSolicit',N'Solicitar Productos','N','N') , (1999,'9/6/2016','es-MX','lnxSpreadsheetExtract',N'Descargar','N','N') , (1999,'3/1/2016','es-MX','lnxSubmit',N'Enviar','N','N') , (1999,'9/11/2015','es-MX','lnxSubmitCertificate',N'Documento(s) Enviados','N','N') , (1999,'9/11/2015','es-MX','lnxSubmitReportCreation',N'Enviar Reporte','N','N') , (1999,'4/8/2010','es-MX','lnxSubmitWorkflow',N'Subir Tabla de Compañía','N','N') , (1999,'9/11/2015','es-MX','lnxTariffAnalyzer',N'Analizador de Tarifas','N','N') , (1999,'9/11/2015','es-MX','lnxUpdateContactInfo',N'Guardar Información','N','N') , (1999,'9/11/2015','es-MX','lnxUpdateEmails',N'Actualizar Correo','N','N') , (1999,'9/11/2015','es-MX','lnxUpdateReminders',N'Actualizar Recordatorio','N','N') , (1999,'9/6/2016','es-MX','lnxUpdateSQLLongDescription',N'Actualizar Descripción','N','N') , (1999,'4/8/2010','es-MX','lnxUpload',N'Cargar Archivos','N','N') , (1999,'9/11/2015','es-MX','lnxUploadBOM',N'Cargar BOM','N','N') , (1999,'9/11/2015','es-MX','lnxUploadItemData',N'Cargar Item de Hoja de Calculo','N','N') , (1999,'9/11/2015','es-MX','lnxUploadLOA',N'Cargar Documento Certificado','N','N') , (1999,'3/1/2016','es-MX','lnxValidatePGA',N'Validar','N','N') , (1999,'9/6/2016','es-MX','lnxValidateRule',N'Prueba de Reglas para la Validez Estrcutural','N','N') , (1999,'9/11/2015','es-MX','lnxValidateSelected',N'Validar Productos Seleccionados','N','N') , (1999,'9/11/2015','es-MX','lnxVoid',N'Vaciar','N','N') , (1999,'9/11/2015','es-MX','lnxVoidRecords',N'Vaciar Todos los Registros de Producto','N','N') , (1999,'3/1/2016','es-MX','lnxYes',N'Sí','N','N') , (1999,'9/11/2015','es-MX','lnxYesVoid',N'Vaciar','N','N') , (1999,'3/1/2016','es-MX','Load From Invoices',N'Cargar facturas','N','N') , (1999,'3/1/2016','es-MX','Load Saai Data From Invoices',N'Cargar Información de Facturas','N','N') , (1999,'3/1/2016','es-MX','Load Transfer Notice',N'Cargar','N','N') , (1999,'3/1/2016','es-MX','LoadFromInvoices',N'Cargar facturas','N','N') , (1999,'3/1/2016','es-MX','LOADINTFILESV201',N'EL FLUJO DE OPERACION SE ESTÁ EJECUTANDO, POR FAVOR ESPERE.','N','N') , (1999,'3/1/2016','es-MX','LOADINTFILESV202',N'El flujo de operación ha terminado','N','N') , (1999,'3/1/2016','es-MX','LOADNOTICE',N'Cargar','N','N') , (1999,'3/1/2016','es-MX','LoadSaaiDataFromInvoices',N'Cargar Información de Facturas','N','N') , (1999,'3/1/2016','es-MX','LoadTransferNotice',N'Cargar','N','N') , (1999,'7/16/2012','es-MX','LOC',N'Material Local','N','N') , (1999,'9/6/2016','es-MX','localhost',N'Host local','N','N') , (1999,'3/1/2016','es-MX','LocationOfGoods',N'Ubicación de las mercancías','N','N') , (1999,'9/6/2016','es-MX','Log Entry',N'Entrada del Log','N','N') , (1999,'9/6/2016','es-MX','Log GUID',N'GUID de registro','N','N') , (1999,'9/6/2016','es-MX','LogEntry',N'Entrada del Log','N','N') , (1999,'9/6/2016','es-MX','Logo Name',N'Nombre del Logo','N','N') , (1999,'3/1/2016','es-MX','Logon_aspx',N'Logon','N','N') , (1999,'9/6/2016','es-MX','LogoName',N'Nombre del Logo','N','N') , (1999,'9/11/2015','es-MX','Long Term Supplier Declaration',N'Declaración del Proveedor a Largo Plazo','N','N') , (1999,'9/6/2016','es-MX','lReceiptDocID',N'ID del documento de recibo','N','N') , (1999,'9/6/2016','es-MX','lRecordsToInclude',N'Registros a Incluir','N','N') , (1999,'3/1/2016','es-MX','lReportFormat',N'Fomato del Informe/Reporte','N','N') , (1999,'9/6/2016','es-MX','lReportingLevel',N'Nivel del Reporte','N','N') , (1999,'9/6/2016','es-MX','lReportParameters',N'Parámetros de importación','N','N') , (1999,'9/6/2016','es-MX','lShowEntries',N'Mostrar Entradas','N','N') , (1999,'9/6/2016','es-MX','lSubmissionDate',N'Fecha de sumisión','N','N') , (1999,'3/1/2016','es-MX','lsxbxshow',N'Todos los errores','N','N') , (1999,'9/6/2016','es-MX','lTransportId',N'ID de transporte','N','N') , (1999,'9/6/2016','es-MX','lZoneType',N'Tipo de Zona','N','N') , (1999,'3/1/2016','es-MX','MAINTAIN',N'Mantenimiento del Aviso de Traslado','N','N') , (1999,'3/1/2016','es-MX','Maintain MX Permit',N'Mantenimiento','N','N') , (1999,'3/1/2016','es-MX','Maintain Saai Pedimento',N'Mantenimiento','N','N') , (1999,'3/1/2016','es-MX','Maintain Transfer Notice',N'Mantenimiento','N','N') , (1999,'3/1/2016','es-MX','MaintainMXPermit',N'Mantenimiento','N','N') , (1999,'3/1/2016','es-MX','MaintainSaaiPedimento',N'Mantenimiento','N','N') , (1999,'3/1/2016','es-MX','MaintainTransferNotice',N'Mantenimiento','N','N') , (1999,'9/6/2016','es-MX','Maintenance Type',N'Tipo de mantenimiento','N','N') , (1999,'9/6/2016','es-MX','MaintenanceType',N'Tipo de mantenimiento','N','N') , (1999,'3/1/2016','es-MX','Make',N'Crear. Hacer.','N','N') , (1999,'9/6/2016','es-MX','Manage Solicitation',N'Administrar Solicitud','N','N') , (1999,'3/1/2016','es-MX','Manifest Qty',N'Cantidad de Manifiesto','N','N') , (1999,'3/1/2016','es-MX','Manifest Qty Uom',N'Número de Cliente','N','N') , (1999,'3/1/2016','es-MX','ManifestQty',N'Cantidad de Manifiesto','N','N') , (1999,'3/1/2016','es-MX','MANQTYGRT',N'La cantidad del Manifiesto debe ser mayor a cero','N','N') , (1999,'3/1/2016','es-MX','Manufacturer ID',N'Identificacion del Fabricante','N','N') , (1999,'3/1/2016','es-MX','Manufacturer Name',N'Nombre fabricante','N','N') , (1999,'3/1/2016','es-MX','ManufacturerID',N'Fabricante','N','N') , (1999,'3/1/2016','es-MX','ManufacturerName',N'Nombre del Fabricante','N','N') , (1999,'4/8/2014','es-MX','MANUFACTURING',N'Fabricaci�n','N','N') , (1999,'3/1/2016','es-MX','Maquila User Manual',N'Manual de Usuario de Maquila','N','N') , (1999,'9/6/2016','es-MX','Marks',N'Marcas','N','N') , (1999,'9/11/2015','es-MX','Mass Analysis Result Reports',N'Reporte de Resultados del Análisis Masivo','N','N') , (1999,'9/11/2015','es-MX','Mass BOM Analysis Results',N'Resultados del Análisis Masivo de Lista de Materiales','N','N') , (1999,'9/11/2015','es-MX','Mass BOM Analysis Results Report',N'Reporte de Resultados del Analisis BOM Masivo','N','N') , (1999,'9/11/2015','es-MX','Mass Results Report: Analysis',N'Reporte de Resultados Masivo: Analisis','N','N') , (1999,'9/6/2016','es-MX','Master Bill Of Lading',N'Conocimiento de Embarque Principal','N','N') , (1999,'9/6/2016','es-MX','Master BOL',N'Conocimiento de embarque madre','N','N') , (1999,'3/1/2016','es-MX','MasterBillOfLading',N'Conocimiento de Embarque','N','N') , (1999,'3/1/2016','es-MX','Max Months Of Expiration',N'Máximo meses de vencimiento','N','N') , (1999,'3/1/2016','es-MX','MaxMonthsOfExpiration',N'Máximo meses de vencimiento','N','N') , (1999,'3/1/2016','es-MX','MaxShipDate',N'Fecha de Envio Maxima','N','N') , (1999,'9/11/2015','es-MX','MCS Generation',N'Generacion MCS','N','N') , (1999,'9/11/2015','es-MX','MCS Report',N'Reporte MCS','N','N') , (1999,'9/11/2015','es-MX','MCS Report Management',N'Administracion de Reporte MCS','N','N') , (1999,'9/6/2016','es-MX','Memo',N'Recordatorio','N','N') , (1999,'3/1/2016','es-MX','Merchandise',N'Mercancias','N','N') , (1999,'7/7/2014','es-MX','Merchandises',N'Mercancias','N','N') , (1999,'3/1/2016','es-MX','MerchandiseType',N'Tipo de Mercancia','N','N') , (1999,'3/1/2016','es-MX','Message',N'Página 1 de 1','N','N') , (1999,'9/6/2016','es-MX','Message Date',N'Fecha del Mensaje','N','N') , (1999,'3/1/2016','es-MX','Message Text',N'Mensaje','N','N') , (1999,'3/1/2016','es-MX','MessageText',N'Mensaje','N','N') , (1999,'3/1/2016','es-MX','MEX to USD',N'MEX a USD','N','N') , (1999,'3/1/2016','es-MX','Min Months Of Expiration',N'Minimos meses de Vencimiento','N','N') , (1999,'3/1/2016','es-MX','MinMonthsOfExpiration',N'Minimos meses de Vencimiento','N','N') , (1999,'3/1/2016','es-MX','MinShipDate',N'Fecha de Envio Minima','N','N') , (1999,'3/1/2016','es-MX','MISCELLANEOUS',N'MISCELÁNEOS','N','N') , (1999,'9/6/2016','es-MX','MISCELLANEOUS FIELDS',N'CAMPOS MISCELLANEOS','N','N') , (1999,'9/6/2016','es-MX','Missing a Shipment?',N'Embarque Perdido?','N','N') , (1999,'9/6/2016','es-MX','Mode Of Transport',N'Modo de Transporte','N','N') , (1999,'3/1/2016','es-MX','Model',N'Modelo','N','N') , (1999,'3/1/2016','es-MX','ModeOfTransport',N'ModoTransporte','N','N') , (1999,'3/1/2016','es-MX','Monitor_aspx',N'Monitor','N','N') , (1999,'3/1/2016','es-MX','MonthNum',N'Número de Mes','N','N') , (1999,'3/1/2016','es-MX','Months Of Expiration',N'Meses de Vencimiento','N','N') , (1999,'3/1/2016','es-MX','MonthsOfExpiration',N'Meses de Vencimiento','N','N') , (1999,'9/6/2016','es-MX','MOT',N'MDT','N','N') , (1999,'9/6/2016','es-MX','MOT Detail',N'Detalles de MDT','N','N') , (1999,'7/16/2012','es-MX','MP',N'Materia Prima','N','N') , (1999,'3/1/2016','es-MX','MpfMaxAmt',N'MpfMaxAmt','N','N') , (1999,'3/1/2016','es-MX','MpfMinAmt',N'Cantidad de Min de MPF','N','N') , (1999,'3/1/2016','es-MX','MpfRate',N'Tasa de MPF','N','N') , (1999,'4/7/2016','es-MX','Multi Header15',N'MEXICO - Tasa arancelaria principal','N','N') , (1999,'4/7/2016','es-MX','Multi Header16',N'MEXICO - Tasa arancelaria principal de cupos','N','N') , (1999,'4/7/2016','es-MX','Multi Header17',N'Frontera Norte y Región Fronteriza','N','N') , (1999,'4/7/2016','es-MX','Multi Header8',N'Ingles','N','N') , (1999,'4/7/2016','es-MX','Multi Header9',N'Español','N','N') , (1999,'4/7/2016','es-MX','MultiHeader15',N'MEXICO - Tasa arancelaria principal','N','N') , (1999,'4/7/2016','es-MX','MultiHeader16',N'MEXICO - Tasa arancelaria principal de cupos','N','N') , (1999,'4/7/2016','es-MX','MultiHeader17',N'Frontera Norte y Región Fronteriza','N','N') , (1999,'4/7/2016','es-MX','MultiHeader8',N'Ingles','N','N') , (1999,'4/7/2016','es-MX','MultiHeader9',N'Español','N','N') , (1999,'9/11/2015','es-MX','Multiple BOM Calculator',N'Calculadora de BOM Multiple','N','N') , (1999,'9/11/2015','es-MX','Multiple BOM Reports',N'Reportes Multiples de BOM','N','N') , (1999,'3/1/2016','es-MX','MX Customs Location',N'Aduana','N','N') , (1999,'3/1/2016','es-MX','MX Exchange Rate',N'MX Tipo de cambio','N','N') , (1999,'3/1/2016','es-MX','MX HS Number',N'Número de Fracción Mexicana','N','N') , (1999,'3/1/2016','es-MX','MX New Permit Detail',N'Agregar un nuevo registro de detalle','N','N') , (1999,'3/1/2016','es-MX','MX Notice Delete File Msg',N'Este registro contiene un Acuse de Validación.Si continua, una archivo de borrado de firma será creado. Desea continuar?','N','N') , (1999,'3/1/2016','es-MX','MX Notice Delete Msg',N'¿está seguro de eliminar el registro seleccionado?','N','N') , (1999,'3/1/2016','es-MX','MX Notice Delete Title',N'Eliminar Aviso de Traslado','N','N') , (1999,'3/1/2016','es-MX','MX Notice Maintain Form Title',N'Mantenimiento de Empresa IMMEX o de Submanufactura','N','N') , (1999,'3/1/2016','es-MX','MX Notice Operation_',N'Tipo de Operación','N','N') , (1999,'3/1/2016','es-MX','MX Notice Status_AUTH',N'AUTORIZADO','N','N') , (1999,'3/1/2016','es-MX','MX Notice Status_AUTHERR',N'ERROR EN EL ARCHIVO DE ENVÍO','N','N') , (1999,'3/1/2016','es-MX','MX Notice Status_AUTHSENT',N'SOLICITUD DE AUTORIZACIÓN ENVIADA','N','N') , (1999,'3/1/2016','es-MX','MX Notice Status_ENTERED',N'INGRESADO','N','N') , (1999,'3/1/2016','es-MX','MX Notice Status_LOADERR',N'ERROR EN EL PROCESO DE CARGA','N','N') , (1999,'3/1/2016','es-MX','MX Notice Status_LOADOK',N'CARGADO','N','N') , (1999,'3/1/2016','es-MX','MX Notice Status_MODIFIED',N'MODIFICADO','N','N') , (1999,'3/1/2016','es-MX','MX Notice Type_',N'Tipo de Traslado','N','N') , (1999,'3/1/2016','es-MX','MX Notice_NOTICE',N'Aviso de Traslado','N','N') , (1999,'3/1/2016','es-MX','MX Notice_PLNTWHOUSE',N'Empresa IMMEX o de SubManufactura','N','N') , (1999,'3/1/2016','es-MX','MX Product Desc',N'Descripción en Español','N','N') , (1999,'3/1/2016','es-MX','MX Response_NOTICE',N'Resultados de Archivos de Aviso de Traslado','N','N') , (1999,'3/1/2016','es-MX','MX Response_SAAI',N'Resultados de Archivo SAAI','N','N') , (1999,'3/1/2016','es-MX','MX Tariff Quantity',N'Cantidad de Tarifa','N','N') , (1999,'3/1/2016','es-MX','MX Tariff UOM Literal',N'Tarifa de Unidad de Medida','N','N') , (1999,'3/1/2016','es-MX','MXCAAT Num',N'Número MXCAAT','N','N') , (1999,'3/1/2016','es-MX','MXCAATNum',N'Número MXCAAT','N','N') , (1999,'3/1/2016','es-MX','MXCustomsLocation',N'Aduana','N','N') , (1999,'7/7/2014','es-MX','MXDATASTAGEBEGDATE',N'Fecha Inicio','N','N') , (1999,'7/7/2014','es-MX','MXDATASTAGEENDDATE',N'Fecha Final','N','N') , (1999,'7/7/2014','es-MX','MXDATASTAGEFOLIO',N'Folio','N','N') , (1999,'7/7/2014','es-MX','MXDATASTAGESLCTD',N'Solicitud','N','N') , (1999,'4/8/2014','es-MX','MXDigiDocEdit',N'Editar','N','N') , (1999,'4/8/2014','es-MX','MXDIGIDOCFILE',N'Archivo','N','N') , (1999,'4/8/2014','es-MX','MXDIGIDOCFILENAME',N'Nombre de Archivo','N','N') , (1999,'4/8/2014','es-MX','MXDIGIDOCID',N'ID Documento','N','N') , (1999,'4/8/2014','es-MX','MXDigiDocLoad',N'Cargar Respuesta','N','N') , (1999,'4/8/2014','es-MX','MXDigiDocReceive',N'Recibir','N','N') , (1999,'4/8/2014','es-MX','MXDigiDocSend',N'Enviar','N','N') , (1999,'4/8/2014','es-MX','MXDIGIDOCSTATUS',N'Estatus','N','N') , (1999,'4/8/2014','es-MX','MXDigiDocStatus_A',N'Aceptado','N','N') , (1999,'4/8/2014','es-MX','MXDigiDocStatus_E',N'Capturado','N','N') , (1999,'4/8/2014','es-MX','MXDigiDocStatus_R',N'Rechazado','N','N') , (1999,'4/8/2014','es-MX','MXDigiDocStatus_S',N'Enviado','N','N') , (1999,'4/8/2014','es-MX','MXDigiDocView',N'Ver Documento','N','N') , (1999,'3/1/2016','es-MX','MXDSALL',N'Todo','N','N') , (1999,'3/1/2016','es-MX','MXDSCOMPARE',N'Comparar','N','N') , (1999,'3/1/2016','es-MX','MXDSCOMPARED',N'Comparados','N','N') , (1999,'3/1/2016','es-MX','MXDSDELETE',N'Borrar','N','N') , (1999,'3/1/2016','es-MX','MXDSFILES',N'Archivos','N','N') , (1999,'3/1/2016','es-MX','MXDSNOTCOMPARED',N'No Comparados','N','N') , (1999,'7/7/2014','es-MX','MXDSSELFOLIO',N'Folio','N','N') , (1999,'3/1/2016','es-MX','MXExchangeRate',N'MX Tipo de cambio','N','N') , (1999,'3/1/2016','es-MX','MXFTAProgramCode',N'Código de Programa MX FTA','N','N') , (1999,'3/1/2016','es-MX','MXHSNum',N'Frac Mexicana','N','N') , (1999,'3/1/2016','es-MX','MXHSNumber',N'Número de Fracción Mexicana','N','N') , (1999,'12/17/2013','es-MX','MXINVOICESTATUS_A',N'Cierre Pendiente','N','N') , (1999,'12/17/2013','es-MX','MXINVOICESTATUS_C',N'Cerrado - PEPS Pendiente','N','N') , (1999,'12/17/2013','es-MX','MXINVOICESTATUS_F',N'Falla Prevalidación','N','N') , (1999,'12/17/2013','es-MX','MXINVOICESTATUS_P',N'Prevalidación Pendiente','N','N') , (1999,'12/17/2013','es-MX','MXINVOICESTATUS_R',N'Rechazado por COVE','N','N') , (1999,'12/17/2013','es-MX','MXINVOICESTATUS_S',N'COVE Transmitido - Resultados Pendiente','N','N') , (1999,'12/17/2013','es-MX','MXINVOICESTATUS_T',N'Contingencia de COVE','N','N') , (1999,'12/17/2013','es-MX','MXINVOICESTATUS_V',N'Prevalidación Completa','N','N') , (1999,'12/17/2013','es-MX','MXINVOICESTATUS_X',N'Cancelado','N','N') , (1999,'3/1/2016','es-MX','MXNewPermitDetail',N'Agregar un nuevo registro de detalle','N','N') , (1999,'3/1/2016','es-MX','MXNotice_NOTICE',N'Aviso de Traslado','N','N') , (1999,'3/1/2016','es-MX','MXNotice_PLNTWHOUSE',N'Empresa IMMEX o de SubManufactura','N','N') , (1999,'3/1/2016','es-MX','MXNoticeDeleteFileMsg',N'Este registro contiene un Acuse de Validación.Si continua, una archivo de borrado de firma será creado. Desea continuar?','N','N') , (1999,'3/1/2016','es-MX','MXNoticeDeleteMsg',N'¿está seguro de eliminar el registro seleccionado?','N','N') , (1999,'3/1/2016','es-MX','MXNoticeDeleteTitle',N'Eliminar Aviso de Traslado','N','N') , (1999,'3/1/2016','es-MX','MXNoticeMaintainFormTitle',N'Mantenimiento de Empresa IMMEX o de Submanufactura','N','N') , (1999,'3/1/2016','es-MX','MXNoticeOperation_',N'Tipo de Operación','N','N') , (1999,'3/1/2016','es-MX','MXNoticeStatus_AUTH',N'AUTORIZADO','N','N') , (1999,'3/1/2016','es-MX','MXNoticeStatus_AUTHERR',N'ERROR EN EL ARCHIVO DE ENVÍO','N','N') , (1999,'3/1/2016','es-MX','MXNoticeStatus_AUTHSENT',N'SOLICITUD DE AUTORIZACIÓN ENVIADA','N','N') , (1999,'3/1/2016','es-MX','MXNoticeStatus_ENTERED',N'INGRESADO','N','N') , (1999,'3/1/2016','es-MX','MXNoticeStatus_LOADERR',N'ERROR EN EL PROCESO DE CARGA','N','N') , (1999,'3/1/2016','es-MX','MXNoticeStatus_LOADOK',N'CARGADO','N','N') , (1999,'3/1/2016','es-MX','MXNoticeStatus_MODIFIED',N'MODIFICADO','N','N') , (1999,'3/1/2016','es-MX','MXNoticeType_',N'Tipo de Traslado','N','N') , (1999,'6/5/2013','es-MX','MXPEDIMENTOSTATUS_AUTH',N'Autorizado','N','N') , (1999,'6/5/2013','es-MX','MXPEDIMENTOSTATUS_AUTHERR',N'Errores de Autorización','N','N') , (1999,'6/5/2013','es-MX','MXPEDIMENTOSTATUS_AUTHSENT',N'Archivo de Autorización Enviado','N','N') , (1999,'6/5/2013','es-MX','MXPEDIMENTOSTATUS_BANKERR',N'Errores de Banco','N','N') , (1999,'6/5/2013','es-MX','MXPEDIMENTOSTATUS_BANKOK',N'Pagado','N','N') , (1999,'6/5/2013','es-MX','MXPEDIMENTOSTATUS_BANKSENT',N'Archivo de Banco Enviado','N','N') , (1999,'6/5/2013','es-MX','MXPEDIMENTOSTATUS_LOADERR',N'Errores al Cargar','N','N') , (1999,'6/5/2013','es-MX','MXPEDIMENTOSTATUS_LOADOK',N'Cargado','N','N') , (1999,'6/5/2013','es-MX','MXPEDIMENTOSTATUS_M3ERR',N'Errores M3','N','N') , (1999,'6/5/2013','es-MX','MXPEDIMENTOSTATUS_M3OK',N'M3 Exitoso','N','N') , (1999,'6/5/2013','es-MX','MXPEDIMENTOSTATUS_M3SENT',N'Archivo de M3 Enviado','N','N') , (1999,'6/5/2013','es-MX','MXPEDIMENTOSTATUS_OPEN',N'Autorización Pendiente','N','N') , (1999,'6/5/2013','es-MX','MXPEDIMENTOSTATUS_PROCERR',N'Errores al Calcular','N','N') , (1999,'6/5/2013','es-MX','MXPEDIMENTOSTATUS_PROCOK',N'Calculado','N','N') , (1999,'3/1/2016','es-MX','MXProductDesc',N'Descripción en Español','N','N') , (1999,'3/1/2016','es-MX','MXPWMAINT_ADDRESSTYPE_1',N'Bodega','N','N') , (1999,'3/1/2016','es-MX','MXPWMAINT_ADDRESSTYPE_2',N'Planta','N','N') , (1999,'3/1/2016','es-MX','MXPWMAINT_ADDRESSTYPE_3',N'Local','N','N') , (1999,'3/1/2016','es-MX','MXPWMAINT_DF',N'Distrito','N','N') , (1999,'3/1/2016','es-MX','MXResponse_NOTICE',N'Resultados de Archivos de Aviso de Traslado','N','N') , (1999,'3/1/2016','es-MX','MXResponse_SAAI',N'Resultados de Archivo SAAI','N','N') , (1999,'3/1/2016','es-MX','MXTariffNum',N'Número de Tarifa MX','N','N') , (1999,'3/1/2016','es-MX','MXTariffQuantity',N'Cantidad de Tarifa','N','N') , (1999,'3/1/2016','es-MX','MXTariffUOMLiteral',N'Tarifa de Unidad de Medida','N','N') , (1999,'3/1/2016','es-MX','Nafta Certified',N'Certificada por NAFTA','N','N') , (1999,'3/1/2016','es-MX','Nafta Certified Source',N'Fuente Certificada NAFTA','N','N') , (1999,'3/1/2016','es-MX','NaftaCertified',N'Certificada por NAFTA','N','N') , (1999,'3/1/2016','es-MX','NaftaCertifiedSource',N'Fuente Certificada NAFTA','N','N') , (1999,'3/1/2016','es-MX','Name',N'Nombre','N','N') , (1999,'9/6/2016','es-MX','Name Option',N'Opción de Nombre','N','N') , (1999,'4/8/2010','es-MX','Name Type',N'Tipo de Nombre','N','N') , (1999,'3/1/2016','es-MX','Named Query Set',N'Proceso','N','N') , (1999,'3/1/2016','es-MX','Named Query Set:',N'Proceso','N','N') , (1999,'9/6/2016','es-MX','Names(Aliases)',N'Nombres(aliases)','N','N') , (1999,'9/6/2016','es-MX','NarrativeText',N'Texto Narrativo','N','N') , (1999,'3/1/2016','es-MX','Negative Receipt Assignment',N'Información de Recepciones de Reversa','N','N') , (1999,'9/6/2016','es-MX','Net Cost',N'Precio Neto','N','N') , (1999,'9/6/2016','es-MX','NetCost',N'Costo Neto','N','N') , (1999,'9/6/2016','es-MX','NetWeight',N'Peso Neto','N','N') , (1999,'3/1/2016','es-MX','New',N'Nuevo','N','N') , (1999,'3/1/2016','es-MX','New Expiration Date',N'Nueva fecha de Vencimiento','N','N') , (1999,'3/1/2016','es-MX','New Invoice',N'Nueva Factura','N','N') , (1999,'3/1/2016','es-MX','New Pedimento',N'Nuevo Pedimento','N','N') , (1999,'3/1/2016','es-MX','New Search',N'Nueva Busqueda','N','N') , (1999,'3/1/2016','es-MX','New Txn Qty UOM',N'Nueva Unidad de Medida','N','N') , (1999,'3/1/2016','es-MX','NewExpirationDate',N'Nueva fecha de Vencimiento','N','N') , (1999,'9/6/2016','es-MX','News Last Login Indicator',N'Indica Noticias desde el ultimo ingreso','N','N') , (1999,'9/6/2016','es-MX','NewSearch',N'Nueva Búsqueda','N','N') , (1999,'9/6/2016','es-MX','NewsLastLoginIndicator',N'Indica Noticias desde el ultimo ingreso','N','N') , (1999,'4/8/2010','es-MX','Next &gt',N'Próximo','N','N') , (1999,'3/1/2016','es-MX','Next>',N'Siguiente>','N','N') , (1999,'3/1/2016','es-MX','NextCF7512Number',N'Siguiente Número CF7512','N','N') , (1999,'9/6/2016','es-MX','No Additional Details',N'No hay detalles adicionales','N','N') , (1999,'9/6/2016','es-MX','No Aliases',N'No existen alias','N','N') , (1999,'9/11/2015','es-MX','NO CHECKED LINES',N'LINEAS NO CHECADAS','N','N') , (1999,'9/6/2016','es-MX','No companies available for override.',N'No hay compañías disponibles para sobrecarga.','N','N') , (1999,'3/1/2016','es-MX','No Data To Display',N'No hay datos que mostrar…','N','N') , (1999,'9/6/2016','es-MX','No Exceptions',N'No hay excepciones','N','N') , (1999,'3/1/2016','es-MX','No Functions Provided',N'No hay funciones Previstas','N','N') , (1999,'9/11/2015','es-MX','No items selected',N'Ningun Item Seleccionado','N','N') , (1999,'9/6/2016','es-MX','No Messages for this Product',N'No hay mensajes para este producto','N','N') , (1999,'9/6/2016','es-MX','No printed invoices associated with this Shipment Reference Number.',N'No existen Objetos asociadas con este Número de Referencia de Embarque','N','N') , (1999,'9/6/2016','es-MX','No Reasons',N'No existen Motivos','N','N') , (1999,'3/1/2016','es-MX','No Records Found',N'No se encontraron registros','N','N') , (1999,'9/6/2016','es-MX','No records to display.',N'No hay registros.','N','N') , (1999,'9/6/2016','es-MX','No request selected - Choose a request to load data',N'No ah seleccionado una solicitud - Escoja una solicitud para cargar los datos','N','N') , (1999,'3/1/2016','es-MX','No Search Parameters Provided',N'No se proporcionan parametros de busqueda.','N','N') , (1999,'9/6/2016','es-MX','No Transmissions Exist',N'No existen Transmisiones','N','N') , (1999,'3/1/2016','es-MX','NOMFlag',N'Bandera NOM','N','N') , (1999,'9/11/2015','es-MX','Non-Qualified Records',N'Registros No Calificados','N','N') , (1999,'9/6/2016','es-MX','None',N'Ninguno','N','N') , (1999,'3/1/2016','es-MX','Not Calculated',N'Sin calcular','N','N') , (1999,'9/11/2015','es-MX','Not Complete',N'No Completado','N','N') , (1999,'9/8/2016','es-MX','Not In',N'No en','N','N') , (1999,'9/11/2015','es-MX','Not Saved',N'No Guardado','N','N') , (1999,'9/6/2016','es-MX','NOTATION',N'Anotaciones','N','N') , (1999,'9/6/2016','es-MX','Note',N'Nota','N','N') , (1999,'9/6/2016','es-MX','Note (Prints on Cert)',N'Notas (Impresas en el Certificado)','N','N') , (1999,'9/11/2015','es-MX','Note Detail',N'Notas de Detalle','N','N') , (1999,'2/24/2010','es-MX','Notes',N'Notas','N','N') , (1999,'3/1/2016','es-MX','Notice Company Code',N'Código de notificación de la compañía','N','N') , (1999,'3/1/2016','es-MX','Notice Company Status',N'Estatus de notificación de la compañía','N','N') , (1999,'3/1/2016','es-MX','Notice Date',N'Fecha de notificación','N','N') , (1999,'3/1/2016','es-MX','Notice Num',N'Número de Notificación','N','N') , (1999,'3/1/2016','es-MX','Notice Operation Literal',N'Aviso de Operación Literal','N','N') , (1999,'3/1/2016','es-MX','Notice Program Type',N'Tipo de notificación del programa','N','N') , (1999,'3/1/2016','es-MX','Notice Status Literal',N'Estatus del aviso literal','N','N') , (1999,'3/1/2016','es-MX','Notice Status_',N'Estatus','N','N') , (1999,'3/1/2016','es-MX','Notice Type Literal',N'Tipo de notificación literal','N','N') , (1999,'3/1/2016','es-MX','NoticeCompanyCode',N'Código de notificación de la compañía','N','N') , (1999,'3/1/2016','es-MX','NoticeCompanyStatus',N'Estatus de notificación de la compañía','N','N') , (1999,'3/1/2016','es-MX','NoticeDate',N'Fecha de notificación','N','N') , (1999,'3/1/2016','es-MX','NoticeNum',N'Número de Notificación','N','N') , (1999,'3/1/2016','es-MX','NoticeOperationLiteral',N'Aviso de Operación Literal','N','N') , (1999,'3/1/2016','es-MX','NoticeProgramType',N'Tipo de notificación del programa','N','N') , (1999,'3/1/2016','es-MX','NoticeStatus_',N'Estatus','N','N') , (1999,'3/1/2016','es-MX','NoticeStatusLiteral',N'Estatus del aviso literal','N','N') , (1999,'3/1/2016','es-MX','NoticeTypeLiteral',N'Tipo de notificación literal','N','N') , (1999,'9/11/2015','es-MX','NQ/Origin Letter',N'Carta de No calificado/Origen','N','N') , (1999,'3/1/2016','es-MX','Num Flag',N'Número de Bandera','N','N') , (1999,'3/1/2016','es-MX','number',N'numero','N','N') , (1999,'3/1/2016','es-MX','Number of Form Access',N'Cantidad de pantallas','N','N') , (1999,'9/6/2016','es-MX','Number Of Products',N'No. de Productos','N','N') , (1999,'9/6/2016','es-MX','Number of Solicitations',N'Número de Solicitaciones','N','N') , (1999,'3/1/2016','es-MX','Number of Users with Group Access for Current PartnerID 200434',N'Numero total de usuarios para Compania 200434','N','N') , (1999,'3/1/2016','es-MX','Number of Users with Group Access for Current PartnerID 500402',N'Usuarios con acceso','N','N') , (1999,'3/1/2016','es-MX','Number of Users with Group Access for Current PartnerID 500521',N'Numero de usuarios del grupo','N','N') , (1999,'9/6/2016','es-MX','Numbers',N'Números','N','N') , (1999,'3/1/2016','es-MX','NumFlag',N'Número de Bandera','N','N') , (1999,'2/24/2010','es-MX','NumOfProducts',N'Cantidad de Productos','N','N') , (1999,'9/6/2016','es-MX','nx Note Add',N'Agregar','N','N') , (1999,'9/6/2016','es-MX','nxNoteAdd',N'Agregar','N','N') , (1999,'3/1/2016','es-MX','ObservationText',N'Observaciones','N','N') , (1999,'9/6/2016','es-MX','OLD ContentWebService',N'Contenido viejo de servicio web','N','N') , (1999,'3/1/2016','es-MX','OPENQUERYADD',N'Mis Consultas: Agregar','N','N') , (1999,'3/1/2016','es-MX','OPENQUERYREMOVE',N'Mis Consultas: Eliminar','N','N') , (1999,'3/1/2016','es-MX','Operation',N'Operación','N','N') , (1999,'3/1/2016','es-MX','Operation Num',N'Número de Operación','N','N') , (1999,'3/1/2016','es-MX','OperationNum',N'Número de Operación','N','N') , (1999,'3/1/2016','es-MX','OperationType',N'Tipo de Operación','N','N') , (1999,'3/1/2016','es-MX','OperationTypeLiteral',N'Tipo de Operación','N','N') , (1999,'9/6/2016','es-MX','Operator',N'Operador','N','N') , (1999,'3/1/2016','es-MX','Option',N'Opción','N','N') , (1999,'9/6/2016','es-MX','Options',N'Nivel de HS','N','N') , (1999,'9/6/2016','es-MX','Order Date',N'Fecha de Orden','N','N') , (1999,'3/1/2016','es-MX','Order N',N'Número de Orden','N','N') , (1999,'9/6/2016','es-MX','Order Num',N'Número de Orden','N','N') , (1999,'3/1/2016','es-MX','Order Num Receipt',N'Número de orden de factura','N','N') , (1999,'3/1/2016','es-MX','Order Num Ship',N'Número de Orden de Embarque','N','N') , (1999,'3/1/2016','es-MX','Order Num Work',N'Número de Orden de trabajo','N','N') , (1999,'9/6/2016','es-MX','OrderDate',N'Fecha de Ordén','N','N') , (1999,'3/1/2016','es-MX','OrderN',N'Número de Orden','N','N') , (1999,'9/6/2016','es-MX','OrderNum',N'Número de Orden','N','N') , (1999,'3/1/2016','es-MX','OrderNumReceipt',N'Número de orden de factura','N','N') , (1999,'3/1/2016','es-MX','OrderNumShip',N'Número de Orden de Embarque','N','N') , (1999,'3/1/2016','es-MX','OrderNumWork',N'Número de Orden de trabajo','N','N') , (1999,'9/6/2016','es-MX','Organization',N'Organización','N','N') , (1999,'9/6/2016','es-MX','Origin Code',N'Codigo Origen','N','N') , (1999,'9/6/2016','es-MX','Origin Factor',N'Factor origen','N','N') , (1999,'3/1/2016','es-MX','Original Form Tracer View',N'Forma Original','N','N') , (1999,'3/1/2016','es-MX','Original Pedimento Num',N'Número de Pedimento Original','N','N') , (1999,'3/1/2016','es-MX','Original Qty',N'Cantidad Original','N','N') , (1999,'3/1/2016','es-MX','OriginalPedimentoNum',N'Número de Pedimento Original','N','N') , (1999,'3/1/2016','es-MX','OriginalQty',N'Cantidad Original','N','N') , (1999,'9/6/2016','es-MX','OriginState',N'Estado de Origen','N','N') , (1999,'3/1/2016','es-MX','OUM Conv Factor',N'Factor de Conversión *','N','N') , (1999,'9/11/2015','es-MX','Outstanding',N'Sobresaliente','N','N') , (1999,'9/6/2016','es-MX','Override Result',N'Anular resultado','N','N') , (1999,'3/1/2016','es-MX','Packing',N'Embalaje','N','N') , (1999,'9/6/2016','es-MX','Packing List',N'Lista de Empaque','N','N') , (1999,'9/6/2016','es-MX','PackingList',N'Lista de Empaque','N','N') , (1999,'3/1/2016','es-MX','Page',N'Página','N','N') , (1999,'3/1/2016','es-MX','Page 1 of 1',N'Página 1 de 1','N','N') , (1999,'3/1/2016','es-MX','Page 1 of 1, items 0 to 0 of 0',N'Página 1 de 1','N','N') , (1999,'3/1/2016','es-MX','Page 1 of 715, items 1 to 10 of 7146',N'Pagina 1 de 715, articulo 1 a 10 de 7146','N','N') , (1999,'3/1/2016','es-MX','Page Size',N'Tamaño de Página','N','N') , (1999,'2/15/2016','es-MX','Page size:',N'Registro por pantalla','N','N') , (1999,'3/1/2016','es-MX','PageOfFormat',N'Página {0} de {1}','N','N') , (1999,'3/1/2016','es-MX','Pager Text Format',N'{4} Página {0} de {1}, articulos {2} a {3} de {5}','N','N') , (1999,'12/17/2013','es-MX','PagerTextFormat',N'{4} Página {0} de {1}, articulos {2} a {3} de {5}','N','N') , (1999,'12/17/2013','es-MX','PageSize',N'Tama&#241;o de p&#225;gina:','N','N') , (1999,'3/1/2016','es-MX','pallet',N'pallet','N','N') , (1999,'9/6/2016','es-MX','Parameter Name',N'Nombre de Parametro','N','N') , (1999,'3/1/2016','es-MX','Parent ID',N'Identificacion','N','N') , (1999,'3/1/2016','es-MX','Parte II Sequence',N'Secuencia Parte II','N','N') , (1999,'3/1/2016','es-MX','ParteIISequence',N'Secuencia Parte II','N','N') , (1999,'9/11/2015','es-MX','Parties',N'Partícipes','N','N') , (1999,'9/11/2015','es-MX','Parties Tab Help',N'Pestaña de Ayuda con Entidades','N','N') , (1999,'9/6/2016','es-MX','Partner',N'Socio activo','N','N') , (1999,'9/6/2016','es-MX','Partner ID',N'ID de partner','N','N') , (1999,'9/6/2016','es-MX','Partner Level Search',N'Búsqueda de nivel de socio','N','N') , (1999,'9/6/2016','es-MX','Partner Name',N'Nombre de Socio','N','N') , (1999,'9/6/2016','es-MX','PartnerID',N'ID de partner','N','N') , (1999,'9/6/2016','es-MX','PartnerLevelSearch',N'Búsqueda de nivel de socio','N','N') , (1999,'9/11/2015','es-MX','Party Information',N'Información de Entidad','N','N') , (1999,'9/11/2015','es-MX','Party Type',N'Tipo de Entidad','N','N') , (1999,'9/11/2015','es-MX','Passed Bill of Materials',N'Lista de Materiales Pasadas','N','N') , (1999,'3/1/2016','es-MX','Password',N'<PASSWORD>','N','N') , (1999,'9/6/2016','es-MX','Payment Terms',N'Términos de Pago','N','N') , (1999,'3/1/2016','es-MX','Payment Type',N'Tipo de Pago','N','N') , (1999,'3/1/2016','es-MX','Payment Type Literal',N'Tipo de Pago','N','N') , (1999,'3/1/2016','es-MX','PaymentDate',N'Fecha de Pago','N','N') , (1999,'9/6/2016','es-MX','PaymentTerms',N'Terminos de Pago','N','N') , (1999,'3/1/2016','es-MX','PaymentType',N'Tipo de pago','N','N') , (1999,'3/1/2016','es-MX','PaymentTypeLiteral',N'Tipo de Pago','N','N') , (1999,'9/6/2016','es-MX','PEA Queue',N'Cola PEA','N','N') , (1999,'3/1/2016','es-MX','Ped Count',N'Total de Pedimentos','N','N') , (1999,'3/1/2016','es-MX','PedCount',N'Total de Pedimentos','N','N') , (1999,'3/1/2016','es-MX','Pedimento Begin Date',N'Fecha de Incio de Pedimento','N','N') , (1999,'3/1/2016','es-MX','Pedimento Category',N'Catergoría del pedimento','N','N') , (1999,'3/1/2016','es-MX','Pedimento Catgegory',N'Categoría de Pedimento','N','N') , (1999,'3/1/2016','es-MX','Pedimento Code',N'Código de Pedimento','N','N') , (1999,'3/1/2016','es-MX','Pedimento Date',N'Fecha de Pedimento','N','N') , (1999,'3/1/2016','es-MX','Pedimento De Code Literal',N'Código de Pedimento','N','N') , (1999,'3/1/2016','es-MX','Pedimento End Date',N'Fecha final de Pedimento','N','N') , (1999,'3/1/2016','es-MX','Pedimento Entered Date',N'fecha de captura','N','N') , (1999,'3/1/2016','es-MX','Pedimento Num',N'Número de Pedimento','N','N') , (1999,'3/1/2016','es-MX','Pedimento Payment Date',N'Fecha de pago','N','N') , (1999,'3/1/2016','es-MX','Pedimento Payment Date As Begin Date Expiration',N'Fecha de Pago de pedimento como fecha de inicio de Vencimiento','N','N') , (1999,'3/1/2016','es-MX','Pedimento Report',N'Consolidated Pedimento Report','N','N') , (1999,'3/1/2016','es-MX','Pedimento Section',N'Sección del pedimento','N','N') , (1999,'3/1/2016','es-MX','Pedimento Sequence',N'Secuencia del pedimento','N','N') , (1999,'3/1/2016','es-MX','Pedimento Type',N'Tipo de Pedimento','N','N') , (1999,'3/1/2016','es-MX','Pedimento Year',N'Año del pedimento','N','N') , (1999,'3/1/2016','es-MX','Pedimento/Notice Num',N'Número de Pedimento/Aviso','N','N') , (1999,'3/1/2016','es-MX','Pedimento/NoticeNum',N'Número de Pedimento/Aviso','N','N') , (1999,'3/1/2016','es-MX','PedimentoBeginDate',N'Fecha de Incio de Pedimento','N','N') , (1999,'3/1/2016','es-MX','PedimentoCategory',N'Categoria de pedimento','N','N') , (1999,'3/1/2016','es-MX','PedimentoCode',N'Código de Pedimento','N','N') , (1999,'3/1/2016','es-MX','PedimentoDate',N'Fecha de Pedimento','N','N') , (1999,'3/1/2016','es-MX','PedimentoDeCodeLiteral',N'Código de Pedimento','N','N') , (1999,'3/1/2016','es-MX','PedimentoEndDate',N'Fecha final de Pedimento','N','N') , (1999,'3/1/2016','es-MX','PedimentoNum',N'Número de Pedimento','N','N') , (1999,'3/1/2016','es-MX','PedimentoNums',N'Número de Pedimento','N','N') , (1999,'3/1/2016','es-MX','PedimentoPaymentDate',N'Fecha de Pago','N','N') , (1999,'3/1/2016','es-MX','PedimentoPaymentDateAsBeginDateExpiration',N'Fecha de Pago de pedimento como fecha de inicio de Vencimiento','N','N') , (1999,'3/1/2016','es-MX','PedimentoRegimen',N'Régimen de pedimento','N','N') , (1999,'3/1/2016','es-MX','PedimentoType',N'Tipo de Pedimento','N','N') , (1999,'3/1/2016','es-MX','PEDLEN',N'EL NUMERO DE PEDIMENTO DEBE TENER AL MENOS 18 CARACTERES','N','N') , (1999,'3/1/2016','es-MX','PEDMSG1',N'El Numero de Pedimento ‘','N','N') , (1999,'3/1/2016','es-MX','PEDMSG2',N'’ ya ha sido impreso.','N','N') , (1999,'3/1/2016','es-MX','Pendiente',N'Pendiente','N','N') , (1999,'3/1/2016','es-MX','Pending',N'Pendiente','N','N') , (1999,'9/6/2016','es-MX','Perform Insert Button',N'Insertar','N','N') , (1999,'9/6/2016','es-MX','PerformInsertButton',N'Insertar','N','N') , (1999,'2/24/2010','es-MX','Period Begin Date',N'Fecha de Inicio del Periodo','N','N') , (1999,'9/8/2016','es-MX','Period End Date',N'Periodo de fecha de fin','N','N') INSERT INTO tmgPartnerCultureDefinitions(PartnerId,EffDate,CultureGuid,FieldName,FieldTranslation,DeletedFlag,KeepDuringRollback) VALUES (1999,'3/1/2016','es-MX','Permit Description',N'Descripción del Permiso','N','N') , (1999,'3/1/2016','es-MX','Permit Qty',N'Cantidad del Permiso','N','N') , (1999,'3/1/2016','es-MX','Permit Type',N'Tipo de Regulación','N','N') , (1999,'3/1/2016','es-MX','Permit Type Literal',N'Tipo de Permiso','N','N') , (1999,'3/1/2016','es-MX','Permit UOM',N'Unidad de Medida','N','N') , (1999,'3/1/2016','es-MX','Permit UOM Literal',N'Unidad de Medida del Permiso','N','N') , (1999,'3/1/2016','es-MX','Permit Value',N'Valor del Permiso','N','N') , (1999,'3/1/2016','es-MX','PermitDescription',N'Descripción del Permiso','N','N') , (1999,'3/1/2016','es-MX','PermitNum',N'Número de Permiso','N','N') , (1999,'3/1/2016','es-MX','PermitQty',N'Cantidad del Permiso','N','N') , (1999,'3/1/2016','es-MX','PermitType',N'Tipo de Permiso','N','N') , (1999,'3/1/2016','es-MX','PermitTypeLiteral',N'Tipo de Permiso','N','N') , (1999,'3/1/2016','es-MX','PermitUOM',N'Unidad de Medida','N','N') , (1999,'3/1/2016','es-MX','PermitUOMLiteral',N'Unidad de Medida del Permiso','N','N') , (1999,'3/1/2016','es-MX','PermitValue',N'Valor del Permiso','N','N') , (1999,'3/1/2016','es-MX','PerThousand',N'Por Mil','N','N') , (1999,'3/1/2016','es-MX','Peso *',N'Peso Manifesto','N','N') , (1999,'9/6/2016','es-MX','Plant ID',N'ID de la fábrica','N','N') , (1999,'3/1/2016','es-MX','Plant Warehouse Create File',N'Crear Archivo de Envío','N','N') , (1999,'3/1/2016','es-MX','Plant Warehouse Delete',N'Eliminar','N','N') , (1999,'3/1/2016','es-MX','Plant Warehouse File',N'Planta/Bodega','N','N') , (1999,'3/1/2016','es-MX','Plant Warehouse Mintain',N'Mantenimiento','N','N') , (1999,'9/6/2016','es-MX','PlantID',N'ID de la fábrica','N','N') , (1999,'9/6/2016','es-MX','Plants / Warehouse',N'Plantas / Almacén','N','N') , (1999,'3/1/2016','es-MX','PlantWarehouseCreateFile',N'Crear Archivo de Envío','N','N') , (1999,'3/1/2016','es-MX','PlantWarehouseDelete',N'Eliminar','N','N') , (1999,'3/1/2016','es-MX','PlantWarehouseFile',N'Planta/Bodega','N','N') , (1999,'3/1/2016','es-MX','PlantWarehouseMintain',N'Mantenimiento','N','N') , (1999,'9/6/2016','es-MX','Please add new Workflow',N'Por favor agregue nuevos Flujos de Trabajo','N','N') , (1999,'9/6/2016','es-MX','Please select an entry in the Entry Search box to view error reports',N'Por favor seleccione una entrada para ver los reportes de error.','N','N') , (1999,'9/6/2016','es-MX','pnl Date Range',N'Para Previos','N','N') , (1999,'3/1/2016','es-MX','pnl Update Progress',N'Cargar de Facturas','N','N') , (1999,'9/6/2016','es-MX','pnlDateRange',N'Para Previos','N','N') , (1999,'3/1/2016','es-MX','pnlUpdateProgress',N'Cargar de Facturas','N','N') , (1999,'3/1/2016','es-MX','Port Code',N'Código de puerto','N','N') , (1999,'3/1/2016','es-MX','Port Desc',N'Puerto','N','N') , (1999,'9/6/2016','es-MX','Port Of Lading',N'Puerto de Embarque','N','N') , (1999,'9/6/2016','es-MX','Port Of Unlading',N'Puerto de Descarga','N','N') , (1999,'3/1/2016','es-MX','PortCode',N'Código de puerto','N','N') , (1999,'3/1/2016','es-MX','PortDesc',N'Descripción de Puerto','N','N') , (1999,'9/6/2016','es-MX','PortOfExportation',N'Puerto de Exportación','N','N') , (1999,'9/6/2016','es-MX','PortOfLading',N'Puerto de Carga','N','N') , (1999,'9/6/2016','es-MX','PortOfUnlading',N'Puerto de Descarga','N','N') , (1999,'3/1/2016','es-MX','Position In File',N'Posición en el archivo','N','N') , (1999,'3/1/2016','es-MX','PositionInFile',N'Posición en el archivo','N','N') , (1999,'4/8/2010','es-MX','Postal Code',N'Código postal','N','N') , (1999,'3/1/2016','es-MX','PostalCode',N'Código Postal','N','N') , (1999,'3/1/2016','es-MX','Pre Validate',N'Pre-Validar','N','N') , (1999,'9/6/2016','es-MX','Pref. Criteria',N'Criterio de Preferencia','N','N') , (1999,'9/6/2016','es-MX','Pref. Criterion',N'Criterio de preferencia','N','N') , (1999,'9/6/2016','es-MX','Preference Criterion',N'Criterios de Preferencia','N','N') , (1999,'9/6/2016','es-MX','PreferenceCriterion',N'Criterios de Preferencia','N','N') , (1999,'3/1/2016','es-MX','PREFIFOVALIDATOR02',N'Los Datos Procesados deben ser Validados','N','N') , (1999,'9/6/2016','es-MX','Prepaid',N'Pagado por adelantado','N','N') , (1999,'3/1/2016','es-MX','Press &#34;Validate&#34; to begin Validation',N'Presione &#34;Validar&#34; para comenzar la validacion','N','N') , (1999,'3/1/2016','es-MX','Press "Validate" to begin Validation',N'Presione "Validar" para empezar la validacion','N','N') , (1999,'3/1/2016','es-MX','PrevalidadorFee',N'Prevalidador de Cuotas','N','N') , (1999,'3/1/2016','es-MX','PreValidate',N'Pre-Validar','N','N') , (1999,'9/11/2015','es-MX','Previous {0} Days',N'{0} Dias Previos','N','N') , (1999,'9/6/2016','es-MX','Previous Entries',N'Entradas previas','N','N') , (1999,'9/11/2015','es-MX','Previously Created MCS Documents',N'Documentos MCS Creados Previamente','N','N') , (1999,'3/1/2016','es-MX','Primary Contact',N'Contacto Principal','N','N') , (1999,'3/1/2016','es-MX','PRINT',N'Imprimir','N','N') , (1999,'9/6/2016','es-MX','Print Date',N'Fecha de Impresión','N','N') , (1999,'3/1/2016','es-MX','Print Full Pedimento',N'Imprimir Pedimento Completo','N','N') , (1999,'3/1/2016','es-MX','Print Saai Pedimento',N'Imprimir Pedimento','N','N') , (1999,'3/1/2016','es-MX','Print Simple Pedimento',N'Imprimir Pedimento Simple','N','N') , (1999,'3/1/2016','es-MX','Print Transfer Notice',N'Imprimir Aviso de Traslado','N','N') , (1999,'9/11/2015','es-MX','PRINTED',N'Impreso','N','N') , (1999,'9/6/2016','es-MX','Printed By',N'Impreso Por','N','N') , (1999,'3/1/2016','es-MX','PrintFullPedimento',N'Imprimir Pedimento Completo','N','N') , (1999,'3/1/2016','es-MX','PrintSaaiPedimento',N'Imprimir Pedimento','N','N') , (1999,'3/1/2016','es-MX','PrintSimplePedimento',N'Imprimir Pedimento Simple','N','N') , (1999,'3/1/2016','es-MX','PrintTransferNotice',N'Imprimir Aviso de Traslado','N','N') , (1999,'9/6/2016','es-MX','Priority',N'Prioridad','N','N') , (1999,'3/1/2016','es-MX','PriorityFlag',N'Bandera de prioridad','N','N') , (1999,'9/6/2016','es-MX','Process Date',N'Fecha de Proceso','N','N') , (1999,'3/1/2016','es-MX','Process FIFO',N'Procesar FIFO','N','N') , (1999,'9/6/2016','es-MX','Process ID',N'ID de Proceso','N','N') , (1999,'9/6/2016','es-MX','Process Release Number',N'Proceso de liberación de número','N','N') , (1999,'9/6/2016','es-MX','Process Web Server',N'Servidor de procesos web','N','N') , (1999,'9/6/2016','es-MX','Processed date',N'Fecha procesada','N','N') , (1999,'3/1/2016','es-MX','Processed Permit Qty',N'Cantidad Procesada','N','N') , (1999,'3/1/2016','es-MX','Processed Permit Value',N'Valor Procesado','N','N') , (1999,'3/1/2016','es-MX','Processed Qty',N'Cantidad Procesada','N','N') , (1999,'3/1/2016','es-MX','Processed Value',N'Valor Procesado','N','N') , (1999,'3/1/2016','es-MX','ProcessedPermitQty',N'Cantidad Procesada','N','N') , (1999,'3/1/2016','es-MX','ProcessedPermitValue',N'Valor Procesado','N','N') , (1999,'3/1/2016','es-MX','ProcessedQty',N'Cantidad Procesada','N','N') , (1999,'3/1/2016','es-MX','ProcessedValue',N'Valor Procesado','N','N') , (1999,'4/8/2010','es-MX','ProcessID',N'ID de Proceso','N','N') , (1999,'9/6/2016','es-MX','ProcessReleaseNumber',N'Proceso de liberación de número','N','N') , (1999,'9/6/2016','es-MX','ProcessWebServer',N'Servidor de procesos web','N','N') , (1999,'9/6/2016','es-MX','Prod Classification Detail Guid',N'GUID del detalle de clasificación de productos','N','N') , (1999,'9/6/2016','es-MX','Prod Classification Guid List',N'GUID de lista de clasificación de productos','N','N') , (1999,'9/6/2016','es-MX','ProdClassificationDetailGuid',N'GUID del detalle de clasificación de productos','N','N') , (1999,'9/6/2016','es-MX','ProdClassificationGuidList',N'GUID de lista de clasificación de productos','N','N') , (1999,'3/1/2016','es-MX','Producción',N'Producción','N','N') , (1999,'9/6/2016','es-MX','Producer',N'Fabricante','N','N') , (1999,'9/6/2016','es-MX','Producer Address1',N'Dirección del Fabricante','N','N') , (1999,'9/6/2016','es-MX','Producer Address2',N'Dirección del Fabricante 2','N','N') , (1999,'9/6/2016','es-MX','Producer Address3',N'Dirección del Fabricante 3','N','N') , (1999,'9/6/2016','es-MX','Producer Address4',N'Dirección del Fabricante 4','N','N') , (1999,'9/6/2016','es-MX','Producer City',N'Ciudad del Fabricante','N','N') , (1999,'9/6/2016','es-MX','Producer Contact Email',N'Email del Fabricante','N','N') , (1999,'9/6/2016','es-MX','Producer Contact Fax',N'Fax del Fabricante','N','N') , (1999,'9/6/2016','es-MX','Producer Contact Name',N'Nombre del Contacto del Fabricante','N','N') , (1999,'9/6/2016','es-MX','Producer Contact Phone',N'Teléfono del Fabricante','N','N') , (1999,'9/6/2016','es-MX','Producer Contact Title',N'Titulo de Contacto del Fabricante','N','N') , (1999,'9/6/2016','es-MX','Producer Country Code',N'Código del País del Fabricante','N','N') , (1999,'9/11/2015','es-MX','Producer Information',N'Información de Fabricante','N','N') , (1999,'9/6/2016','es-MX','Producer Name',N'Nombre del Fabricante','N','N') , (1999,'9/6/2016','es-MX','Producer Postal Code',N'Código Postal del Fabricante','N','N') , (1999,'9/6/2016','es-MX','Producer State',N'Estado del Fabricante','N','N') , (1999,'9/6/2016','es-MX','Producer Tax ID',N'ID del Impuestos del Fabricante','N','N') , (1999,'9/6/2016','es-MX','ProducerAddress1',N'Dirección del Fabricante','N','N') , (1999,'9/6/2016','es-MX','ProducerAddress2',N'Dirección del Fabricante 2','N','N') , (1999,'9/6/2016','es-MX','ProducerAddress3',N'Dirección del Fabricante 3','N','N') , (1999,'9/6/2016','es-MX','ProducerAddress4',N'Dirección del Fabricante 4','N','N') , (1999,'9/6/2016','es-MX','ProducerCity',N'Ciudad del Fabricante','N','N') , (1999,'9/6/2016','es-MX','ProducerContactEmail',N'Email del Fabricante','N','N') , (1999,'9/6/2016','es-MX','ProducerContactFax',N'Fax del Fabricante','N','N') , (1999,'9/6/2016','es-MX','ProducerContactName',N'Nombre del Contacto del Fabricante','N','N') , (1999,'9/6/2016','es-MX','ProducerContactPhone',N'Teléfono del Fabricante','N','N') , (1999,'9/6/2016','es-MX','ProducerContactTitle',N'Titulo de Contacto del Fabricante','N','N') , (1999,'9/6/2016','es-MX','ProducerCountryCode',N'Código del País del Fabricante','N','N') , (1999,'9/6/2016','es-MX','ProducerName',N'Nombre del Fabricante','N','N') , (1999,'9/6/2016','es-MX','ProducerPostalCode',N'Código Postal del Fabricante','N','N') , (1999,'9/6/2016','es-MX','ProducerState',N'Estado del Fabricante','N','N') , (1999,'9/6/2016','es-MX','ProducerTaxID',N'ID del Impuestos del Fabricante','N','N') , (1999,'9/11/2015','es-MX','Product',N'Producto','N','N') , (1999,'3/1/2016','es-MX','Product Desc',N'Descripción de Producto','N','N') , (1999,'3/1/2016','es-MX','Product Desc Source',N'Fuente de Descripción de Producto','N','N') , (1999,'9/6/2016','es-MX','Product Description',N'Descripción del Producto','N','N') , (1999,'9/6/2016','es-MX','Product Group',N'Grupo del Producto','N','N') , (1999,'9/11/2015','es-MX','Product Information',N'Información del Producto','N','N') , (1999,'3/1/2016','es-MX','Product List',N'Listado del Productos','N','N') , (1999,'9/6/2016','es-MX','Product Name',N'Nombre del producto','N','N') , (1999,'3/1/2016','es-MX','Product Num',N'Número de Producto','N','N') , (1999,'3/1/2016','es-MX','Product Number',N'Número de Producto','N','N') , (1999,'9/6/2016','es-MX','Product Search',N'Búsqueda de Productos','N','N') , (1999,'9/11/2015','es-MX','Product Selection & Alteration',N'Selección y Alteracion de Producto','N','N') , (1999,'2/25/2010','es-MX','Product Type',N'Tipo de Producto','N','N') , (1999,'9/6/2016','es-MX','Product Type Code',N'Tipo de Código del Producto','N','N') , (1999,'3/1/2016','es-MX','Product Type Code Source',N'Fuente de tipo de código de producto','N','N') , (1999,'3/1/2016','es-MX','Product&nbsp;Num',N'Número de Producto','N','N') , (1999,'3/1/2016','es-MX','ProductChanges',N'Cambio de Producto','N','N') , (1999,'3/1/2016','es-MX','ProductCrossReference',N'Referencia Cruzada de Productos','N','N') , (1999,'3/1/2016','es-MX','ProductDesc',N'Descripción de Producto','N','N') , (1999,'9/6/2016','es-MX','ProductDescription',N'Descripción del Producto','N','N') , (1999,'3/1/2016','es-MX','ProductDescSource',N'Fuente de Descripción de Producto','N','N') , (1999,'3/1/2016','es-MX','ProductGroup',N'Grupo de Producto','N','N') , (1999,'3/1/2016','es-MX','Production',N'Producción','N','N') , (1999,'3/1/2016','es-MX','Production Transaction Correction',N'Produccion, Correccion, Transaccion','N','N') , (1999,'9/6/2016','es-MX','ProductName',N'Nombre del producto','N','N') , (1999,'2/26/2010','es-MX','ProductNum',N'Número de Producto','N','N') , (1999,'3/1/2016','es-MX','ProductNumber',N'Número de Producto','N','N') , (1999,'9/11/2015','es-MX','Products',N'Productos','N','N') , (1999,'9/11/2015','es-MX','Products Tab Help',N'Pestaña de Ayuda con Productos','N','N') , (1999,'3/1/2016','es-MX','ProductSubGroup',N'Otro Grupo','N','N') , (1999,'9/11/2015','es-MX','ProductType',N'Tipo de Producto','N','N') , (1999,'3/1/2016','es-MX','ProductTypeCode',N'Tipo de producto','N','N') , (1999,'3/1/2016','es-MX','ProductTypeCodeSource',N'Fuente de tipo de código de producto','N','N') , (1999,'3/1/2016','es-MX','Program Codes',N'Códigos de Programa','N','N') , (1999,'3/1/2016','es-MX','Program1',N'Programa 1','N','N') , (1999,'3/1/2016','es-MX','Program2',N'Programa 2','N','N') , (1999,'3/1/2016','es-MX','ProgramCodes',N'Códigos de Programa','N','N') , (1999,'3/1/2016','es-MX','Prohibited Flag',N'Prohibido','N','N') , (1999,'3/1/2016','es-MX','ProhibitedFlag',N'Bandera prohibida','N','N') , (1999,'3/1/2016','es-MX','PROSEC Num',N'Prosec Numero','N','N') , (1999,'3/1/2016','es-MX','ProsecFlag',N'Bandera Prosec','N','N') , (1999,'3/1/2016','es-MX','PROSECNum',N'Número Prosec','N','N') , (1999,'9/6/2016','es-MX','Protocol',N'Protocolo','N','N') , (1999,'3/1/2016','es-MX','ProvisionalValue',N'Relacion Provisional','N','N') , (1999,'7/16/2012','es-MX','PT',N'Productos Terminados','N','N') , (1999,'3/1/2016','es-MX','Purchase Order Num',N'Orden de compra','N','N') , (1999,'3/1/2016','es-MX','PurchaseOrderNum',N'Número de Orden de Compra','N','N') , (1999,'2/17/2010','es-MX','PurchaseOrderNum_aspx',N'Buscar Orden de Compra','N','N') , (1999,'3/1/2016','es-MX','Purchaser',N'Comprador','N','N') , (1999,'3/1/2016','es-MX','PWCREATEFILE',N'Crear Archivo de Envío','N','N') , (1999,'3/1/2016','es-MX','PWDELETE',N'ELIMINAR','N','N') , (1999,'3/1/2016','es-MX','PWMAINTAIN',N'Mantenimiento de Plantas','N','N') , (1999,'3/1/2016','es-MX','Qty Per Im',N'Cantidad por Im','N','N') , (1999,'3/1/2016','es-MX','QtyPerIm',N'Cantidad por Im','N','N') , (1999,'9/11/2015','es-MX','Qualified Records',N'Registro Calificado','N','N') , (1999,'9/11/2015','es-MX','Qualifying Certificate',N'Certificado de Calificación','N','N') , (1999,'9/11/2015','es-MX','Qualifying Document',N'Documento Calificado','N','N') , (1999,'9/11/2015','es-MX','Quantity',N'Cantidad','N','N') , (1999,'3/1/2016','es-MX','Quantity Unit',N'Unidad de Cantidad','N','N') , (1999,'9/11/2015','es-MX','Quantity UOM',N'Unidad de Medida de Cantidad','N','N') , (1999,'3/1/2016','es-MX','QuantityUnit',N'Unidad de Cantidad','N','N') , (1999,'9/6/2016','es-MX','Query',N'Consulta','N','N') , (1999,'9/6/2016','es-MX','Query Results',N'Resultados de consulta','N','N') , (1999,'3/1/2016','es-MX','R1 Or Desist Pedimento Num',N'Número de Pedimento R1','N','N') , (1999,'3/1/2016','es-MX','R1OrDesistPedimentoNum',N'Número de Pedimento R1','N','N') , (1999,'3/1/2016','es-MX','radbtnAllQueries',N'Todas las consultas','N','N') , (1999,'3/1/2016','es-MX','radbtnMyQueries',N'Mis consultas','N','N') , (1999,'3/1/2016','es-MX','Rate Date',N'Fecha de tasa','N','N') , (1999,'3/1/2016','es-MX','RateDate',N'Fecha de Tarifa','N','N') , (1999,'9/6/2016','es-MX','rb Records To Include',N'Registros a Incluir','N','N') , (1999,'3/1/2016','es-MX','rbl Days To Change Password_0',N'Nunca','N','N') , (1999,'3/1/2016','es-MX','rbl Days To Change Password_1',N'Personalizar','N','N') , (1999,'3/1/2016','es-MX','rbl Notification Position_0"',N'Lado inferior izquierdo','N','N') , (1999,'3/1/2016','es-MX','rbl Notification Position_1',N'Lado inferior derecho','N','N') , (1999,'9/6/2016','es-MX','rbl Web Service Type_0',N'Tipo de servicio web','N','N') , (1999,'3/1/2016','es-MX','rblDaysToChangePassword_0',N'Nunca','N','N') , (1999,'3/1/2016','es-MX','rblDaysToChangePassword_1',N'Personalizar','N','N') , (1999,'3/1/2016','es-MX','rblNotificationPosition_0"',N'Lado inferior izquierdo','N','N') , (1999,'3/1/2016','es-MX','rblNotificationPosition_1',N'Lado inferior derecho','N','N') , (1999,'9/6/2016','es-MX','rblWebServiceType_0',N'Tipo de servicio web','N','N') , (1999,'9/6/2016','es-MX','rbRecordsToInclude',N'Registros a Incluir','N','N') , (1999,'9/6/2016','es-MX','rbx Multiple',N'Rango de Fechas','N','N') , (1999,'9/6/2016','es-MX','rbx Name Address Search Option_00',N'Y','N','N') , (1999,'9/6/2016','es-MX','rbx Name Address Search Option_01',N'O','N','N') , (1999,'9/6/2016','es-MX','rbx Name Search Option_00',N'Y','N','N') , (1999,'9/6/2016','es-MX','rbx Name Search Option_01',N'O','N','N') , (1999,'9/6/2016','es-MX','rbx Name Search Option_1',N'O','N','N') , (1999,'9/6/2016','es-MX','rbx Name Sounds Like_00',N'Exacto','N','N') , (1999,'9/6/2016','es-MX','rbx Name Sounds Like_01',N'Methaphono','N','N') , (1999,'9/6/2016','es-MX','rbx Name Sounds Like_02',N'Soundex','N','N') , (1999,'3/1/2016','es-MX','rbx Operation',N'Operación','N','N') , (1999,'9/6/2016','es-MX','rbx Product Source Radio_0',N'Clasificación','N','N') , (1999,'9/6/2016','es-MX','rbx Product Source Radio_1',N'Certificados','N','N') , (1999,'9/6/2016','es-MX','rbx Production',N'Producción','N','N') , (1999,'9/6/2016','es-MX','rbx Receipts',N'Ingresos','N','N') , (1999,'9/6/2016','es-MX','rbx Regular Scrap',N'Chatarra Regular','N','N') , (1999,'9/6/2016','es-MX','rbx RW Edit Radio1',N'Crear nuevo','N','N') , (1999,'9/6/2016','es-MX','rbx RW Edit Radio2',N'Usar existente','N','N') , (1999,'9/6/2016','es-MX','rbx RW Search Radio1',N'Crear Nuevo','N','N') , (1999,'9/6/2016','es-MX','rbx RW Search Radio2',N'Usar Existente','N','N') , (1999,'3/1/2016','es-MX','rbx Search Type_0',N'Texto','N','N') , (1999,'3/1/2016','es-MX','rbx Search Type_00',N'Texto','N','N') , (1999,'9/6/2016','es-MX','rbx Shipments',N'Envíos','N','N') , (1999,'9/6/2016','es-MX','rbx Single',N'Entrada Individual','N','N') , (1999,'9/6/2016','es-MX','rbx Spread Sheet',N'Cargar de Hoja de Calculo','N','N') , (1999,'9/6/2016','es-MX','rbx Transactions',N'Cargar de Transacciones','N','N') , (1999,'9/11/2015','es-MX','rbxCert',N'Certificado','N','N') , (1999,'2/15/2016','es-MX','rbxDescriptionType',N'0','N','N') , (1999,'2/15/2016','es-MX','rbxDescriptionType_00',N'Descripción Completa','N','N') , (1999,'2/15/2016','es-MX','rbxDescriptionType_01',N'Descripción Breve','N','N') , (1999,'3/1/2016','es-MX','rbxLoadPrinted',N'Mostrar impresas','N','N') , (1999,'3/1/2016','es-MX','rbxLoadUnPrinted',N'Mostrar no impresas','N','N') , (1999,'3/1/2016','es-MX','rbxlst Pedimento Display_0',N'Mostrar las no Impresas','N','N') , (1999,'3/1/2016','es-MX','rbxlstPedimentoDisplay_0',N'Mostrar No Impresas','N','N') , (1999,'3/1/2016','es-MX','rbxlstPedimentoDisplay_1',N'Mostrar Impreso','N','N') , (1999,'9/6/2016','es-MX','rbxMultiple',N'Rango de Fechas','N','N') , (1999,'9/6/2016','es-MX','rbxNameAddressSearchOption_00',N'Y','N','N') , (1999,'9/6/2016','es-MX','rbxNameAddressSearchOption_01',N'O','N','N') , (1999,'9/6/2016','es-MX','rbxNameSearchOption_00',N'Y','N','N') , (1999,'9/6/2016','es-MX','rbxNameSearchOption_01',N'O','N','N') , (1999,'9/6/2016','es-MX','rbxNameSearchOption_1',N'O','N','N') , (1999,'9/6/2016','es-MX','rbxNameSoundsLike_00',N'Exacto','N','N') , (1999,'9/6/2016','es-MX','rbxNameSoundsLike_01',N'Methaphono','N','N') , (1999,'9/6/2016','es-MX','rbxNameSoundsLike_02',N'Soundex','N','N') , (1999,'3/1/2016','es-MX','rbxOperation',N'Operación','N','N') , (1999,'3/1/2016','es-MX','rbxPeriod',N'Periodo de 6 meses','N','N') , (1999,'9/6/2016','es-MX','rbxProduction',N'Producción','N','N') , (1999,'9/6/2016','es-MX','rbxProductSourceRadio_0',N'Clasificación','N','N') , (1999,'9/6/2016','es-MX','rbxProductSourceRadio_1',N'Certificados','N','N') , (1999,'9/6/2016','es-MX','rbxReceipts',N'Ingresos','N','N') , (1999,'3/1/2016','es-MX','rbxRecordsToInclude',N'PlaceHolder','N','N') , (1999,'3/1/2016','es-MX','rbxRecordsToInclude_0',N'Mostrar los componentes fuera del balance','N','N') , (1999,'3/1/2016','es-MX','rbxRecordsToInclude_00',N'La exposición despide fuera de equilibrio','N','N') , (1999,'3/1/2016','es-MX','rbxRecordsToInclude_01',N'Muestre todo despide','N','N') , (1999,'3/1/2016','es-MX','rbxRecordsToInclude_1',N'Mostrar todas las partes','N','N') , (1999,'3/1/2016','es-MX','rbxRegularScrap',N'Scrap Regular','N','N') , (1999,'3/1/2016','es-MX','rbxReportType',N'Tipo de Reporte','N','N') , (1999,'3/1/2016','es-MX','rbxReportType_00',N'Pedimentos Abiertos','N','N') , (1999,'3/1/2016','es-MX','rbxReportType_01',N'Pedimentos Cerrados','N','N') , (1999,'9/6/2016','es-MX','rbxRWEditRadio1',N'Crear nuevo','N','N') , (1999,'9/6/2016','es-MX','rbxRWEditRadio2',N'Usar existente','N','N') , (1999,'9/6/2016','es-MX','rbxRWSearchRadio1',N'Crear Nuevo','N','N') , (1999,'9/6/2016','es-MX','rbxRWSearchRadio2',N'Usar Existente','N','N') , (1999,'2/15/2016','es-MX','rbxSaveSearches_SaveType_00',N'Guardar Como Nuevo','N','N') , (1999,'2/15/2016','es-MX','rbxSaveSearches_SaveType_01',N'Modificar/Sobrescribir Búsqueda Existente','N','N') , (1999,'3/1/2016','es-MX','rbxSearchType',N'Place Holder','N','N') , (1999,'3/1/2016','es-MX','rbxSearchType_0',N'Texto','N','N') , (1999,'3/1/2016','es-MX','rbxSearchType_00',N'Texto','N','N') , (1999,'3/1/2016','es-MX','rbxSearchType_01',N'Seleccion','N','N') , (1999,'2/15/2016','es-MX','Rbxselection',N'ECN','N','N') , (1999,'2/15/2016','es-MX','Rbxselection_00',N'ECN','N','N') , (1999,'2/15/2016','es-MX','Rbxselection_01',N'DPS','N','N') , (1999,'9/6/2016','es-MX','rbxShipments',N'Envíos','N','N') , (1999,'9/6/2016','es-MX','rbxSingle',N'Entrada Individual','N','N') , (1999,'9/11/2015','es-MX','rbxSpreadSheet',N'Cargar de Hoja de Calculo','N','N') , (1999,'3/1/2016','es-MX','rbxSummaryLevel',N'place holder','N','N') , (1999,'3/1/2016','es-MX','rbxSummaryLevel_00',N'Producto y Status','N','N') , (1999,'3/1/2016','es-MX','rbxSummaryLevel_01',N'Producto','N','N') , (1999,'9/11/2015','es-MX','rbxTransactions',N'Cargar de Transacciones','N','N') , (1999,'9/11/2015','es-MX','rbxUncert',N'Sin Certificado','N','N') , (1999,'3/1/2016','es-MX','rdx All',N'Todo','N','N') , (1999,'3/1/2016','es-MX','rdx All Balances',N'Todos:','N','N') , (1999,'3/1/2016','es-MX','rdx All Discharges',N'Todos','N','N') , (1999,'3/1/2016','es-MX','rdx All Returns',N'Todos','N','N') , (1999,'3/1/2016','es-MX','rdx Dates Balances',N'Fechas','N','N') , (1999,'3/1/2016','es-MX','rdx Dates Returns',N'Fechas','N','N') , (1999,'3/1/2016','es-MX','rdx Discharge Dates',N'Fechas','N','N') , (1999,'3/1/2016','es-MX','rdx Discharges Dates',N'Fechas','N','N') , (1999,'3/1/2016','es-MX','rdx Edit Mode',N'Modo de Editar','N','N') , (1999,'3/1/2016','es-MX','rdx Expired',N'Vencidos','N','N') , (1999,'9/6/2016','es-MX','rdx Generated',N'Generado','N','N') , (1999,'9/6/2016','es-MX','rdx New',N'Nuevo','N','N') , (1999,'3/1/2016','es-MX','rdx Open Balances',N'Abiertos','N','N') , (1999,'3/1/2016','es-MX','rdx Open Before Date',N'Que vencen en o antes de','N','N') , (1999,'3/1/2016','es-MX','rdx Select Mode',N'Modo de Selección','N','N') , (1999,'9/6/2016','es-MX','rdx Submitted',N'Enviado','N','N') , (1999,'3/1/2016','es-MX','rdxAll',N'Todo','N','N') , (1999,'3/1/2016','es-MX','rdxAllBalances',N'Todos:','N','N') , (1999,'3/1/2016','es-MX','rdxAllDischarges',N'Todos','N','N') , (1999,'3/1/2016','es-MX','rdxAllReturns',N'Todos','N','N') , (1999,'3/1/2016','es-MX','rdxbtn All Queries',N'Todas las Consultas','N','N') , (1999,'3/1/2016','es-MX','rdxbtn My Queries',N'Mis Consultas','N','N') , (1999,'9/6/2016','es-MX','rdxbtn New',N'Nuevo','N','N') , (1999,'9/6/2016','es-MX','rdxbtn Successive',N'Sucesivo','N','N') , (1999,'3/1/2016','es-MX','rdxbtnAllQueries',N'Todas las Consultas','N','N') , (1999,'3/1/2016','es-MX','rdxbtnMyQueries',N'Mis Consultas','N','N') , (1999,'9/11/2015','es-MX','rdxbtnNew',N'Nuevo','N','N') , (1999,'9/6/2016','es-MX','rdxbtnSearchType_0',N'Activo','N','N') , (1999,'9/6/2016','es-MX','rdxbtnSearchType_1',N'Completado','N','N') , (1999,'3/1/2016','es-MX','rdxbtnSuccesive',N'Sucesivo','N','N') , (1999,'9/11/2015','es-MX','rdxbtnSuccessive',N'Sucesivo','N','N') , (1999,'3/1/2016','es-MX','rdxDatesBalances',N'Fechas','N','N') , (1999,'3/1/2016','es-MX','rdxDatesReturns',N'Fechas','N','N') , (1999,'3/1/2016','es-MX','rdxDischargeDates',N'Fechas','N','N') , (1999,'3/1/2016','es-MX','rdxEditMode',N'Modo de Editar','N','N') , (1999,'3/1/2016','es-MX','rdxExpired',N'Vencidos','N','N') , (1999,'9/11/2015','es-MX','rdxGenerated',N'Generado','N','N') , (1999,'9/6/2016','es-MX','rdxlst Show Product Num Drop Down_0',N'Si','N','N') , (1999,'4/7/2016','es-MX','rdxlst View_0',N'Vista en Cuadricula','N','N') , (1999,'4/7/2016','es-MX','rdxlst View_1',N'Vista de Árbol','N','N') , (1999,'3/1/2016','es-MX','rdxlstSearchType',N'Tipo de Busqueda','N','N') , (1999,'2/22/2010','es-MX','rdxlstSearchType_0',N'Ver lista','N','N') , (1999,'3/1/2016','es-MX','rdxlstSearchType_00',N'Ver lista','N','N') , (1999,'3/1/2016','es-MX','rdxlstSearchType_01',N'Búsqueda textual','N','N') , (1999,'3/1/2016','es-MX','rdxlstSearchType_1',N'Busqueda textual','N','N') , (1999,'9/6/2016','es-MX','rdxlstShowProductNumDropDown_0',N'Si','N','N') , (1999,'4/7/2016','es-MX','rdxlstView_0',N'Vista en Cuadricula','N','N') , (1999,'4/7/2016','es-MX','rdxlstView_1',N'Vista de Árbol','N','N') , (1999,'2/15/2016','es-MX','rdxlstViewSetting',N'Vista en Tabla','N','N') , (1999,'2/15/2016','es-MX','rdxlstViewSetting_00',N'Vista en Tabla','N','N') , (1999,'2/15/2016','es-MX','rdxlstViewSetting_01',N'Vista en Árbol','N','N') , (1999,'9/11/2015','es-MX','rdxNew',N'Nuevo','N','N') , (1999,'9/6/2016','es-MX','rdxNewExport',N'Nuevo','N','N') , (1999,'9/6/2016','es-MX','rdxNewFromTemplate',N'De Plantilla','N','N') , (1999,'3/1/2016','es-MX','rdxOpenBalances',N'Abiertos','N','N') , (1999,'3/1/2016','es-MX','rdxOpenBeforeDate',N'Que vencen en o antes de','N','N') , (1999,'3/1/2016','es-MX','rdxSelectMode',N'Modo de Selección','N','N') , (1999,'9/11/2015','es-MX','rdxSubmitted',N'Enviado','N','N') , (1999,'4/8/2010','es-MX','Reason',N'Motivo','N','N') , (1999,'9/6/2016','es-MX','Reason Code',N'Código de Razón','N','N') , (1999,'3/1/2016','es-MX','Reason Code Literal',N'Código de Razon Literal','N','N') , (1999,'3/1/2016','es-MX','ReasonCodeLiteral',N'Código de Razon Literal','N','N') , (1999,'4/8/2010','es-MX','Reasons',N'Razones','N','N') , (1999,'3/1/2016','es-MX','Receipt',N'Recibos','N','N') , (1999,'3/1/2016','es-MX','Receipt Date',N'Fecha de Recibo','N','N') , (1999,'3/1/2016','es-MX','Receipt Doc ID',N'Doc.ID de Recibo','N','N') , (1999,'9/6/2016','es-MX','Receipt Location',N'Localización de Recibo','N','N') , (1999,'9/6/2016','es-MX','Receipt Location Date',N'Fecha de Locación de Recibo','N','N') , (1999,'3/1/2016','es-MX','Receipt Supplement',N'Recibo complementario','N','N') , (1999,'3/1/2016','es-MX','Receipt Supplement Source',N'Fuente de Recibo Complementario','N','N') , (1999,'3/1/2016','es-MX','ReceiptDate',N'Fecha de Recibo','N','N') , (1999,'3/1/2016','es-MX','ReceiptDocID',N'Doc.ID de Recibo','N','N') , (1999,'9/6/2016','es-MX','ReceiptLocation',N'Localización de Recibo','N','N') , (1999,'9/6/2016','es-MX','ReceiptLocationDate',N'Fecha de Locación de Recibo','N','N') , (1999,'3/1/2016','es-MX','Receipts',N'Recibos','N','N') , (1999,'3/1/2016','es-MX','ReceiptSupplement',N'Recibo complementario','N','N') , (1999,'3/1/2016','es-MX','ReceiptSupplementSource',N'Fuente de Recibo Complementario','N','N') , (1999,'9/6/2016','es-MX','Received',N'Recibido','N','N') , (1999,'7/7/2014','es-MX','ReceiverData',N'Datos del Destinatario','N','N') , (1999,'3/1/2016','es-MX','Recibos',N'Recibos','N','N') , (1999,'9/6/2016','es-MX','Recipient',N'Enviado A','N','N') , (1999,'3/1/2016','es-MX','ReconcileAllFlag',N'Bandera de Conciliación','N','N') , (1999,'3/1/2016','es-MX','ReconTeam',N'Equipo de Reconciliación','N','N') , (1999,'3/1/2016','es-MX','Records per page',N'Resultados por pagina','N','N') , (1999,'3/1/2016','es-MX','RecordType',N'Tipo de Récord','N','N') , (1999,'3/1/2016','es-MX','Rectified Pedimento Num',N'Número de Pedimento Rectificado','N','N') , (1999,'3/1/2016','es-MX','RectifiedPedimentoCode',N'Código de Pedimento Rectificado','N','N') , (1999,'3/1/2016','es-MX','RectifiedPedimentoNum',N'Número de Pedimento Rectificado','N','N') , (1999,'3/1/2016','es-MX','Rectify Saai Pedimento',N'Rectificar','N','N') , (1999,'3/1/2016','es-MX','RectifySaaiPedimento',N'Rectificar','N','N') , (1999,'3/1/2016','es-MX','Reference',N'Referrencia','N','N') , (1999,'9/6/2016','es-MX','ReferenceID',N'ID','N','N') , (1999,'9/6/2016','es-MX','ReferenceLine',N'Linea de Referencia','N','N') , (1999,'3/1/2016','es-MX','Refresh',N'Actualizar','N','N') , (1999,'9/6/2016','es-MX','Reg List Name',N'Nombre de regularización','N','N') , (1999,'3/1/2016','es-MX','Regards',N'Recuerdos','N','N') , (1999,'3/1/2016','es-MX','Region',N'Region','N','N') , (1999,'9/6/2016','es-MX','RegListName',N'Nombre de regularización','N','N') , (1999,'3/1/2016','es-MX','Regular Scrap',N'Scrap regular','N','N') , (1999,'9/6/2016','es-MX','Regulation',N'Regulación','N','N') , (1999,'9/6/2016','es-MX','Regulation Code',N'Regulaciones','N','N') , (1999,'9/6/2016','es-MX','Regulation Expiration Date',N'Fecha de Regulación a Terminar','N','N') , (1999,'9/6/2016','es-MX','Regulation List Id:',N'ID de Lista de Regularización :','N','N') , (1999,'4/8/2010','es-MX','Regulation Name',N'Nombre de Regulación','N','N') , (1999,'9/11/2015','es-MX','Reject',N'Rechazar','N','N') , (1999,'9/6/2016','es-MX','Related Definitions',N'Definiciones Relacionadas','N','N') , (1999,'9/6/2016','es-MX','Related Entry',N'Entrada Relacionada','N','N') , (1999,'3/1/2016','es-MX','Relation ID',N'ID de Relación','N','N') , (1999,'3/1/2016','es-MX','Relation Num',N'Número de Relacion','N','N') , (1999,'3/1/2016','es-MX','RelationID',N'ID de Relación','N','N') , (1999,'3/1/2016','es-MX','RelationNum',N'Número de Relacion','N','N') , (1999,'3/1/2016','es-MX','Relationship Detail',N'Detalle de Relación','N','N') , (1999,'3/1/2016','es-MX','Relationship Flag Literal',N'Bandera de Relación','N','N') , (1999,'3/1/2016','es-MX','RelationshipDetail',N'Detalle de Relación','N','N') , (1999,'3/1/2016','es-MX','RelationshipFlag',N'Bandera de Relación','N','N') , (1999,'3/1/2016','es-MX','RelationshipFlagLiteral',N'Bandera de Relación','N','N') , (1999,'9/6/2016','es-MX','Release Notes',N'Notas de Lanzamiento','N','N') , (1999,'9/6/2016','es-MX','Remaining',N'Restante','N','N') , (1999,'4/8/2010','es-MX','Remarks',N'Observaciones','N','N') , (1999,'3/1/2016','es-MX','Remesa Num',N'Número de Remesa','N','N') , (1999,'3/1/2016','es-MX','RemesaNum',N'Número de Remesa','N','N') , (1999,'9/8/2016','es-MX','Reminder Email',N'Recordatorio por correo electrónico','N','N') , (1999,'9/6/2016','es-MX','Reminder Sent Date',N'Fecha de Envió del recordatorio','N','N') , (1999,'9/6/2016','es-MX','Remote Directory',N'Directorio Remoto','N','N') , (1999,'3/1/2016','es-MX','Remove',N'Eliminar','N','N') , (1999,'9/6/2016','es-MX','Remove Fromlist',N'Eliminar','N','N') , (1999,'9/6/2016','es-MX','RemoveFromlist',N'Eliminar','N','N') , (1999,'3/1/2016','es-MX','repeater_ctl00_Product Num',N'Número de Producto','N','N') , (1999,'3/1/2016','es-MX','repeater_ctl00_ProductNum',N'Número de Producto','N','N') , (1999,'3/1/2016','es-MX','repeater_ctl00_Quantity',N'Cantidad','N','N') , (1999,'9/6/2016','es-MX','Replies',N'Respuestas','N','N') , (1999,'9/6/2016','es-MX','Replies are not available for this AES transmission.',N'Los datos de respuestas no estan disponibles para esta transmisión AES','N','N') , (1999,'2/25/2010','es-MX','Report',N'Reporte','N','N') , (1999,'3/1/2016','es-MX','Report Format',N'Formato del Informe/Reporte','N','N') , (1999,'9/6/2016','es-MX','REPORTING INFORMATION',N'Información Reportada','N','N') , (1999,'9/6/2016','es-MX','Reporting Leve',N'Nivel del Reportaje','N','N') , (1999,'3/1/2016','es-MX','ReportPath',N'Reporte del recorrido','N','N') , (1999,'3/1/2016','es-MX','Reports',N'Reportes','N','N') , (1999,'3/1/2016','es-MX','REPORTURL',N'URL de reporte','N','N') , (1999,'3/1/2016','es-MX','Representative COVE',N'Representante para COVE','N','N') , (1999,'3/1/2016','es-MX','RepresentativeCOVE',N'Representante para COVE','N','N') , (1999,'3/1/2016','es-MX','Reprint',N'Reimprimir Factura','N','N') , (1999,'9/6/2016','es-MX','Request Date',N'Fecha de Pedido','N','N') , (1999,'9/11/2015','es-MX','Request Detail',N'Detalles de la Solicitud','N','N') , (1999,'9/6/2016','es-MX','Request End Date',N'Fecha de Fin de la Solicitud','N','N') , (1999,'9/6/2016','es-MX','Request Errors',N'Errores de solicitud','N','N') , (1999,'9/6/2016','es-MX','Request GUID',N'GUID de solicitud','N','N') , (1999,'2/24/2010','es-MX','Request Name',N'Nombre de la Solicitud','N','N') , (1999,'2/24/2010','es-MX','Request Note',N'Notas','N','N') , (1999,'9/6/2016','es-MX','Request Release Number',N'Solicitud de liberación de número','N','N') , (1999,'9/6/2016','es-MX','Request Start Date',N'Fecha de Inicio de la Solicitud','N','N') , (1999,'2/24/2010','es-MX','Request Status',N'Estado de la Solicitud','N','N') , (1999,'9/6/2016','es-MX','Request Success',N'Solicitud exitosa','N','N') , (1999,'9/6/2016','es-MX','Request Sucess',N'Solicitud exitosa','N','N') , (1999,'9/11/2015','es-MX','Request Summary',N'Historial de trabajo de las solicitudes','N','N') , (1999,'9/6/2016','es-MX','Request Type',N'Tipo de Solicitud','N','N') , (1999,'9/6/2016','es-MX','Request Warnings',N'Advertencias de solicitud','N','N') , (1999,'9/6/2016','es-MX','Request Web Server',N'Solicitud de servidor web','N','N') , (1999,'9/11/2015','es-MX','Request Work Queue',N'Cola de Trabajo de la Solicitud','N','N') , (1999,'9/6/2016','es-MX','RequestDate',N'Fecha de Pedido','N','N') , (1999,'9/6/2016','es-MX','Requested Date',N'Fecha de Solicitud','N','N') , (1999,'9/6/2016','es-MX','RequestedDate',N'Fecha de Solicitud','N','N') , (1999,'9/6/2016','es-MX','RequestGUID',N'GUID de solicitud','N','N') , (1999,'2/24/2010','es-MX','RequestName',N'Nombre de Solicitud','N','N') , (1999,'9/6/2016','es-MX','Requestor Email',N'E-mail del Solicitante','N','N') , (1999,'9/6/2016','es-MX','Requestor Name',N'Nombre del Solicitante','N','N') , (1999,'9/6/2016','es-MX','RequestorEmail',N'E-mail del Solicitante','N','N') , (1999,'9/6/2016','es-MX','RequestorName',N'Nombre del Solicitante','N','N') , (1999,'9/6/2016','es-MX','Requestors Email',N'Correo del Solicitor','N','N') , (1999,'9/6/2016','es-MX','Requestors Name',N'Nombre del Solicitor','N','N') , (1999,'9/6/2016','es-MX','RequestReleaseNumber',N'Solicitud de liberación de número','N','N') , (1999,'9/6/2016','es-MX','RequestWebServer',N'Solicitud de servidor web','N','N') , (1999,'3/1/2016','es-MX','Required Qty',N'Cantidad Requerida','N','N') , (1999,'3/1/2016','es-MX','RequiredDischargesFlag',N'Bandera de Descargos Requeridos','N','N') , (1999,'3/1/2016','es-MX','RequiredQty',N'Cantidad Requerida','N','N') , (1999,'3/1/2016','es-MX','Reset',N'Resetear','N','N') , (1999,'9/6/2016','es-MX','Reset Search',N'Reiniciar Busqueda X','N','N') , (1999,'9/6/2016','es-MX','Resolution',N'Resolución','N','N') , (1999,'9/6/2016','es-MX','Resolution Status',N'Estado de la Resolución','N','N') , (1999,'9/6/2016','es-MX','Response GUID',N'GUID de respuesta','N','N') , (1999,'9/6/2016','es-MX','Response Type',N'Tipo de respuesta','N','N') , (1999,'9/6/2016','es-MX','Responsible Party',N'Entidad Responsable','N','N') , (1999,'3/1/2016','es-MX','Result',N'Resultado','N','N') , (1999,'3/1/2016','es-MX','Result File',N'Archivo Final','N','N') , (1999,'3/1/2016','es-MX','ResultFileName',N'Nombre de Archivo de Resultado','N','N') , (1999,'9/11/2015','es-MX','Results',N'Resultados','N','N') , (1999,'9/6/2016','es-MX','Return Charges',N'Regresar cargos','N','N') , (1999,'9/6/2016','es-MX','Return Description',N'Regresar descripción','N','N') , (1999,'9/6/2016','es-MX','Return Nodes String',N'Cadena de retorno de nodos','N','N') , (1999,'9/6/2016','es-MX','Return Notes',N'Notas de retorno','N','N') , (1999,'9/6/2016','es-MX','Return Quotas',N'Regresar cuotas','N','N') , (1999,'9/6/2016','es-MX','Return Regulation',N'Regulación de retorno','N','N') , (1999,'9/6/2016','es-MX','Return Rulings',N'Regresar resoluciones','N','N') , (1999,'9/6/2016','es-MX','ReturnCharges',N'Regresar cargos','N','N') , (1999,'9/6/2016','es-MX','ReturnDescription',N'Regresar descripción','N','N') , (1999,'9/6/2016','es-MX','ReturnNodesString',N'Cadena de retorno de nodos','N','N') , (1999,'9/6/2016','es-MX','ReturnNotes',N'Notas de retorno','N','N') , (1999,'9/6/2016','es-MX','ReturnQuotas',N'Regresar cuotas','N','N') , (1999,'9/6/2016','es-MX','ReturnRegulation',N'Regulación de retorno','N','N') , (1999,'9/6/2016','es-MX','ReturnRulings',N'Regresar resoluciones','N','N') , (1999,'9/6/2016','es-MX','Reward',N'Recompensa','N','N') , (1999,'4/8/2014','es-MX','REWORK',N'Retrabajo','N','N') , (1999,'3/1/2016','es-MX','RFC Number',N'Numero RFC','N','N') , (1999,'3/1/2016','es-MX','RFCNumber',N'RFC','N','N') , (1999,'3/1/2016','es-MX','rg Documents_ctl00_ctl03_ctl01_Change Page Size Label',N'Tamaño de página','N','N') , (1999,'3/1/2016','es-MX','rg Invoices_ctl00_ctl03_ctl01_Change Page Size Label',N'Tamaño de Página','N','N') , (1999,'3/1/2016','es-MX','rg Invoices_ctl00_ctl03_ctl01_Page Size Combo Box',N'Tamaño de Página','N','N') , (1999,'3/1/2016','es-MX','rg Invoices_ctl00_ctl04_Update Button',N'Actualizar','N','N') , (1999,'3/1/2016','es-MX','rg Invoices_ctl00_ctl05_Edit Button',N'Cambiar Formato','N','N') , (1999,'3/1/2016','es-MX','rg Lookup_ctl00_ctl02_ctl00_Show Hide',N'Mostrar/Ocultar Filtro','N','N') , (1999,'3/1/2016','es-MX','rg Pedimentos',N'Mostrar Filtro','N','N') , (1999,'9/6/2016','es-MX','rg Product FTA Cert_ctl00_ctl02_ctl00_lnx Init Insert',N'Agregar Registro al Producto','N','N') , (1999,'3/1/2016','es-MX','rg SQL_ctl00_ctl04_Edit Button',N'Editar','N','N') , (1999,'3/1/2016','es-MX','rgd Data_ctl00_ctl02_ctl04_Perform Insert Button',N'Insertar','N','N') , (1999,'3/1/2016','es-MX','rgd Group Access_',N'Mostrar accesos de grupos','N','N') , (1999,'3/1/2016','es-MX','rgd Group List_Current User Partner Group Count',N'Número de usuarios con acceso de Grupos para la plataforma','N','N') , (1999,'3/1/2016','es-MX','rgd Group List_Description',N'Nombre del Grupo','N','N') , (1999,'3/1/2016','es-MX','rgd Group List_Form Access Count',N'Número de acceso','N','N') , (1999,'3/1/2016','es-MX','rgd Group List_Total User Partner Group Count',N'Número total de usuarios con acceso de grupo para todas las plataformas','N','N') , (1999,'3/1/2016','es-MX','rgd User List_Email',N'Correo electrónico','N','N') , (1999,'3/1/2016','es-MX','rgd User List_Enabled',N'Habilitado','N','N') , (1999,'3/1/2016','es-MX','rgd User List_User Name',N'Nombre de usuario','N','N') , (1999,'3/1/2016','es-MX','rgdData_ctl00_ctl02_ctl04_PerformInsertButton',N'Insertar','N','N') , (1999,'3/1/2016','es-MX','rgdData_ctl00_ctl03_ctl01_ChangePageSizeLabel',N'Tamaño de Pagina','N','N') , (1999,'3/1/2016','es-MX','rgdGroupAccess_',N'Mostrar accesos de grupos','N','N') , (1999,'3/1/2016','es-MX','rgdGroupList_CurrentUserPartnerGroupCount',N'Número de usuarios con acceso de Grupos para la plataforma','N','N') , (1999,'3/1/2016','es-MX','rgdGroupList_Description',N'Nombre del Grupo','N','N') , (1999,'3/1/2016','es-MX','rgdGroupList_FormAccessCount',N'Número de acceso','N','N') , (1999,'3/1/2016','es-MX','rgdGroupList_TotalUserPartnerGroupCount',N'Número total de usuarios con acceso de grupo para todas las plataformas','N','N') , (1999,'3/1/2016','es-MX','rgDocuments_ctl00_ctl03_ctl01_ChangePageSizeLabel',N'Tamaño de página','N','N') , (1999,'3/1/2016','es-MX','rgdUserList_Current Password Retries',N'Intentos actuales de contraseña','N','N') , (1999,'3/1/2016','es-MX','rgdUserList_Email',N'Correo electrónico','N','N') , (1999,'3/1/2016','es-MX','rgdUserList_Enabled',N'Habilitado','N','N') , (1999,'3/1/2016','es-MX','rgdUserList_First Name',N'Nombre','N','N') , (1999,'3/1/2016','es-MX','rgdUserList_Force Password Change',N'Forzar cambio de contraseña','N','N') , (1999,'3/1/2016','es-MX','rgdUserList_Last Login',N'Último inicio de sesión','N','N') , (1999,'3/1/2016','es-MX','rgdUserList_Last Name',N'Apellido','N','N') , (1999,'3/1/2016','es-MX','rgdUserList_UserName',N'Nombre de usuario','N','N') , (1999,'3/1/2016','es-MX','rgInvoices_ctl00_ctl03_ctl01_ChangePageSizeLabel',N'Tamano de Página','N','N') , (1999,'3/1/2016','es-MX','rgInvoices_ctl00_ctl03_ctl01_PageSizeComboBox',N'Tamano de Página','N','N') , (1999,'3/1/2016','es-MX','rgInvoices_ctl00_ctl04_UpdateButton',N'Actualizar','N','N') , (1999,'3/1/2016','es-MX','rgInvoices_ctl00_ctl05_EditButton',N'Cambiar Formato','N','N') , (1999,'3/1/2016','es-MX','rgLookup_ctl00_ctl02_ctl00_ShowHide',N'Mostrar/Ocultar Filtro','N','N') , (1999,'3/1/2016','es-MX','rgPedimentos',N'Mostrar Filtro','N','N') , (1999,'9/6/2016','es-MX','rgProductFTACert_ctl00_ctl02_ctl00_lnxInitInsert',N'Agregar Registro al Producto','N','N') , (1999,'3/1/2016','es-MX','rm Close Invoices/Pedimentos_aspx',N'Cerrar Facturas/Pedimentos','N','N') , (1999,'3/1/2016','es-MX','rm Process Manufacturing TXNS_aspx',N'Procesar transacciones','N','N') , (1999,'3/1/2016','es-MX','rm Text Allocate Pedimento Num_aspx',N'Crear Pedimento','N','N') , (1999,'3/1/2016','es-MX','rm Text Edit Staging Transactions_aspx',N'Editar Datos en Preparacion','N','N') , (1999,'3/1/2016','es-MX','rm Text Edit Transactions_aspx',N'Editar Transacciones','N','N') , (1999,'3/1/2016','es-MX','rm Text Export Invoices_aspx',N'Facturas de exportación','N','N') , (1999,'3/1/2016','es-MX','rm Text Import Spreadsheet for F4/A3_aspx',N'Importar hoja de cálculo F4/A3','N','N') , (1999,'3/1/2016','es-MX','RNIM Code',N'Código RNIM','N','N') , (1999,'3/1/2016','es-MX','RNIMCode',N'Código RNIM','N','N') , (1999,'3/1/2016','es-MX','Roll Back FIFO',N'Deshacer FIFO','N','N') , (1999,'9/6/2016','es-MX','RoutedExportFlag',N'Bandera de Exportación Enrutada','N','N') , (1999,'3/1/2016','es-MX','RpimOrderCounter',N'Contador de Orden Rpim','N','N') , (1999,'3/1/2016','es-MX','RPO11 Source',N'Fuente RPO 11','N','N') , (1999,'3/1/2016','es-MX','RPO11Source',N'Fuente RPO 11','N','N') , (1999,'3/1/2016','es-MX','RPO12 Source',N'Fuente RPO 12','N','N') , (1999,'3/1/2016','es-MX','RPO12Source',N'Fuente RPO 12','N','N') , (1999,'3/1/2016','es-MX','RPO13 Source',N'Fuente RPO 13','N','N') , (1999,'3/1/2016','es-MX','RPO13Source',N'Fuente RPO 13','N','N') , (1999,'9/6/2016','es-MX','Rpt Qty',N'Cantidad del Reporte','N','N') , (1999,'3/1/2016','es-MX','Rpt Qty Uom',N'Unidad de Medida','N','N') , (1999,'3/1/2016','es-MX','RptQtyUOM',N'UM de Cantidad Reportada','N','N') , (1999,'3/1/2016','es-MX','rrd Component Balance Audit_p Product Num',N'Número de Producto','N','N') , (1999,'3/1/2016','es-MX','rrd FG Balance Audit_p Product Number',N'Número de Producto','N','N') , (1999,'3/1/2016','es-MX','rrdAnnualReconciliation_pBeginningBalance',N'Cantidad','N','N') , (1999,'3/1/2016','es-MX','rrdAnnualReconciliation_pChangeQty',N'Cambio','N','N') , (1999,'3/1/2016','es-MX','rrdAnnualReconciliation_pDomesticShipments',N'Definitivo','N','N') , (1999,'3/1/2016','es-MX','rrdAnnualReconciliation_pEndingBalance',N'Cantidad Final','N','N') , (1999,'3/1/2016','es-MX','rrdAnnualReconciliation_pExportShipments',N'Export','N','N') , (1999,'3/1/2016','es-MX','rrdAnnualReconciliation_pNegAdjustments',N'Neg Ajustments','N','N') , (1999,'3/1/2016','es-MX','rrdAnnualReconciliation_pNegReceipts',N'Neg Receipts','N','N') , (1999,'3/1/2016','es-MX','rrdAnnualReconciliation_pPendingQty',N'WIP Cantidad','N','N') , (1999,'3/1/2016','es-MX','rrdAnnualReconciliation_pPosAdjustments',N'Positivo','N','N') , (1999,'3/1/2016','es-MX','rrdAnnualReconciliation_pPosReceipts',N'Positivo Rec','N','N') , (1999,'3/1/2016','es-MX','rrdAnnualReconciliation_pProductNum',N'Num de Producto','N','N') , (1999,'3/1/2016','es-MX','rrdAnnualReconciliation_pScrapQty',N'Scrap','N','N') , (1999,'3/1/2016','es-MX','rrdAnnualReconciliation_pStatusCode',N'Status','N','N') , (1999,'3/1/2016','es-MX','rrdAnnualReconciliation_pZoneShipments',N'Zone Shipments','N','N') , (1999,'3/1/2016','es-MX','rrdCF214Listing_pCloseDateHeader',N'Dato de Exportacion','N','N') , (1999,'3/1/2016','es-MX','rrdCF214Listing_pReceiptDateHeader',N'Dato de Importacion','N','N') , (1999,'3/1/2016','es-MX','rrdCF214Listing_pReceiptDocIDHeader',N'Num de Pedimento','N','N') , (1999,'3/1/2016','es-MX','rrdComponentBalanceAudit',N'Component Balance Audit','N','N') , (1999,'3/1/2016','es-MX','rrdComponentBalanceAudit_pInventoryLayers',N'El inventario Encama','N','N') , (1999,'3/1/2016','es-MX','rrdComponentBalanceAudit_pIssuedComponents',N'componentes publicados','N','N') , (1999,'3/1/2016','es-MX','rrdComponentBalanceAudit_pKanbanHolding',N'Kanban','N','N') , (1999,'3/1/2016','es-MX','rrdComponentBalanceAudit_pPendingQty',N'hasta que finalice cantidad','N','N') , (1999,'3/1/2016','es-MX','rrdComponentBalanceAudit_pPreProcessedQty',N'preprocesado','N','N') , (1999,'3/1/2016','es-MX','rrdComponentBalanceAudit_pProductNum',N'Número de Producto','N','N') , (1999,'3/1/2016','es-MX','rrdComponentBalanceAudit_pProductTypeCode',N'Tipo Producto','N','N') , (1999,'3/1/2016','es-MX','rrdComponentBalanceAudit_pScrapHold',N'Scrap','N','N') , (1999,'3/1/2016','es-MX','rrdComponentBalanceAudit_pStagingQty',N'cantidad del estacionamiento','N','N') , (1999,'3/1/2016','es-MX','rrdComponentBalanceAudit_pSystemBalance',N'balance del sistema','N','N') , (1999,'3/1/2016','es-MX','rrdComponentBalanceAudit_pSystemComparison',N'comparación de sistema','N','N') , (1999,'3/1/2016','es-MX','rrdComponentBalanceAudit_pTxnQtyUom',N'unidad cantidad','N','N') , (1999,'3/1/2016','es-MX','rrdFGBalanceAudit',N'Production Receipts Audit','N','N') , (1999,'3/1/2016','es-MX','rrdFGBalanceAudit_pProductNumber',N'Número de Producto','N','N') , (1999,'3/1/2016','es-MX','rrdFGBalanceAudit_pProductTotal',N'Total Cantidad','N','N') , (1999,'3/1/2016','es-MX','rrdFGBalanceAudit_pProductType',N'Tipo Producto','N','N') , (1999,'3/1/2016','es-MX','rrdFGBalanceAudit_pQtyRemaining',N'Cantidad Invitario','N','N') , (1999,'3/1/2016','es-MX','rrdFGBalanceAudit_pQtyUOM',N'Unidad Cantidad','N','N') , (1999,'3/1/2016','es-MX','rrdFGBalanceAudit_pWorkOrderNumber',N'Num Construido','N','N') , (1999,'3/1/2016','es-MX','rrdFinishedGoodBalanceAudit',N'Finished Good Balance Audit','N','N') , (1999,'3/1/2016','es-MX','rrdFinishedGoodBalanceAudit_pInventoryLayers',N'El inventario Encama','N','N') , (1999,'3/1/2016','es-MX','rrdFinishedGoodBalanceAudit_pIssuedComponents',N'componentes publicados','N','N') , (1999,'3/1/2016','es-MX','rrdFinishedGoodBalanceAudit_pIssuedIMQty',N'Producto Terminado','N','N') , (1999,'3/1/2016','es-MX','rrdFinishedGoodBalanceAudit_pKanbanHolding',N'Kanban','N','N') , (1999,'3/1/2016','es-MX','rrdFinishedGoodBalanceAudit_pPendingQty',N'Hasta que finalice cantidad','N','N') , (1999,'3/1/2016','es-MX','rrdFinishedGoodBalanceAudit_pPreProcessedQty',N'Preprocesado','N','N') , (1999,'3/1/2016','es-MX','rrdFinishedGoodBalanceAudit_pProductNum',N'Número de Producto','N','N') , (1999,'3/1/2016','es-MX','rrdFinishedGoodBalanceAudit_pProductTypeCode',N'Tipo Producto','N','N') , (1999,'3/1/2016','es-MX','rrdFinishedGoodBalanceAudit_pScrapHold',N'Merma/Desperdicio','N','N') , (1999,'3/1/2016','es-MX','rrdFinishedGoodBalanceAudit_pStagingQty',N'Cantidad del estacionamiento','N','N') , (1999,'3/1/2016','es-MX','rrdFinishedGoodBalanceAudit_pSystemBalance',N'Balance del sistema','N','N') , (1999,'3/1/2016','es-MX','rrdFinishedGoodBalanceAudit_pSystemComparison',N'Comparación de sistema','N','N') , (1999,'3/1/2016','es-MX','rrdFinishedGoodBalanceAudit_pTxnQtyUom',N'Unidad cantidad','N','N') , (1999,'9/6/2016','es-MX','rrdMXOpenPedimento_pAltHTSIndexHeader',N'MX_Fraccion','N','N') , (1999,'9/6/2016','es-MX','rrdMXOpenPedimento_pNumDays',N'Numero De Dias','N','N') , (1999,'9/6/2016','es-MX','rrdMXOpenPedimento_pOrderNumReceiptHeader',N'Factura','N','N') , (1999,'9/6/2016','es-MX','rrdMXOpenPedimento_pProductNumHeader',N'Producto','N','N') , (1999,'9/6/2016','es-MX','rrdMXOpenPedimento_pReceiptDateHeader',N'Fecha','N','N') , (1999,'9/6/2016','es-MX','rrdMXOpenPedimento_pReceiptDocIDHeader',N'PedimentoNum','N','N') , (1999,'9/6/2016','es-MX','rrdMXOpenPedimento_pTxnQtyHeader',N'Cant.Total','N','N') , (1999,'9/6/2016','es-MX','rrdMXOpenPedimento_pValueHeader',N'Costo','N','N') , (1999,'3/1/2016','es-MX','rrdProductHistory_pDocID',N'Pedimento Num','N','N') , (1999,'3/1/2016','es-MX','rrdProductHistory_pMID',N'Vendedor','N','N') , (1999,'3/1/2016','es-MX','rrdProductHistory_pProductNum',N'Numero de Producto','N','N') , (1999,'3/1/2016','es-MX','rrdProductHistory_pReceiptData',N'Fecha Recibir','N','N') , (1999,'3/1/2016','es-MX','rrdProductHistory_pStatus',N'Código de posición','N','N') , (1999,'3/1/2016','es-MX','rrdProductHistory_pTotalValue',N'Valor','N','N') , (1999,'3/1/2016','es-MX','rrdProductHistory_pTransactionType',N'Tipo de Tran.','N','N') , (1999,'3/1/2016','es-MX','rrdProductHistory_pTxnDate',N'Fecha','N','N') , (1999,'3/1/2016','es-MX','rrdProductHistory_pTxnQty',N'Cantidad','N','N') , (1999,'3/1/2016','es-MX','rrdProductHistory_pTxnQtyUom',N'Unidad de Medida','N','N') , (1999,'3/1/2016','es-MX','rrdZoneValue_pAdditionalHTSValue',N'Valor Fraccion','N','N') , (1999,'3/1/2016','es-MX','rrdZoneValue_pBalanceDate',N'Fecha','N','N') , (1999,'3/1/2016','es-MX','rrdZoneValue_pDomesticValue',N'Valor Domestico','N','N') , (1999,'3/1/2016','es-MX','rrdZoneValue_pNPFStatusValue',N'Valor Extranjero','N','N') , (1999,'3/1/2016','es-MX','rrdZoneValue_pPFStatusValue',N'Valor Extranjero','N','N') , (1999,'3/1/2016','es-MX','rrdZoneValue_pTotalValue',N'Valor Total','N','N') , (1999,'9/6/2016','es-MX','rsp Report Panel_lbx Report Format',N'Formato del Reporte','N','N') , (1999,'3/1/2016','es-MX','rspReportPanel_lbxReportFormat',N'Formato del Reporte','N','N') , (1999,'3/1/2016','es-MX','rspReportPanel_lbxSendEmail',N'Enviar correo al generar','N','N') , (1999,'9/6/2016','es-MX','Rule Category',N'Categoría de regla','N','N') , (1999,'9/6/2016','es-MX','Rule Category GUID',N'GUID de categoría de regla','N','N') , (1999,'2/25/2010','es-MX','Rule Description',N'Descripción de la Regla','N','N') , (1999,'9/6/2016','es-MX','Rule Name',N'Nombre de Regla','N','N') , (1999,'3/1/2016','es-MX','Rule Num',N'Número de Regla','N','N') , (1999,'3/1/2016','es-MX','Rule Num2',N'Número de Regla 2','N','N') , (1999,'9/6/2016','es-MX','Rule Of Origin',N'Regla de Origen','N','N') , (1999,'3/1/2016','es-MX','Rule8 Num',N'Número de Regla 8','N','N') , (1999,'3/1/2016','es-MX','Rule8HTS Num',N'Número de Fracción de la Regla Octava','N','N') , (1999,'3/1/2016','es-MX','Rule8HTSNum',N'Número de Fracción de la Regla Octava','N','N') , (1999,'3/1/2016','es-MX','Rule8Num',N'Número de Regla 8','N','N') , (1999,'9/6/2016','es-MX','RuleCategory',N'Categoría Regla','N','N') , (1999,'9/6/2016','es-MX','RuleCategoryGUID',N'GUID de categoría de regla','N','N') , (1999,'9/6/2016','es-MX','RuleKey',N'Regla No.','N','N') , (1999,'9/6/2016','es-MX','RuleName',N'Nombre de Regla','N','N') , (1999,'3/1/2016','es-MX','RuleNum',N'Número de Regla','N','N') , (1999,'3/1/2016','es-MX','RuleNum2',N'Número de Regla 2','N','N') , (1999,'3/1/2016','es-MX','RuleType',N'Tipo de Regla 1','N','N') , (1999,'3/1/2016','es-MX','RuleType2',N'Tipo de Regla 2','N','N') , (1999,'9/6/2016','es-MX','Ruling Notes',N'Notas de Decisión','N','N') , (1999,'9/6/2016','es-MX','RulingNotes',N'Notas de Decisión','N','N') , (1999,'9/11/2015','es-MX','Run Date',N'Fecha de Corrida','N','N') , (1999,'3/1/2016','es-MX','Run Query',N'Correr Consulta','N','N') , (1999,'3/1/2016','es-MX','rux Upload COVE Filefile0',N'Seleccionar','N','N') , (1999,'3/1/2016','es-MX','ruxUploadCOVEFilefile0',N'Seleccionar','N','N') , (1999,'9/6/2016','es-MX','rw Comments_Show',N'Comentarios','N','N') , (1999,'3/1/2016','es-MX','rw Dialog Text',N'¿Seguro que desea eliminarlo?','N','N') , (1999,'9/6/2016','es-MX','rw New IM_C_lbx New IM Product',N'No. de Producto','N','N') , (1999,'9/6/2016','es-MX','rw New PC_C_lbx New PC Product',N'No. de Producto','N','N') , (1999,'9/6/2016','es-MX','rw New PC_C_lnx Add Company',N'Agregar Compañía','N','N') , (1999,'9/8/2016','es-MX','rw Saved Searches',N'Búsquedas guardadas','N','N') , (1999,'9/6/2016','es-MX','rw Supplier',N'Prooverdor','N','N') , (1999,'9/6/2016','es-MX','rwComments_Show',N'Comentarios','N','N') , (1999,'3/1/2016','es-MX','rwEditSearch',N'Edit búsqueda','N','N') , (1999,'9/6/2016','es-MX','rwm Group Edit_C_lbx Form Name',N'Nombre de Forma','N','N') , (1999,'9/6/2016','es-MX','rwmGroupEdit_C_lbxFormName',N'Nombre de Forma','N','N') , (1999,'9/6/2016','es-MX','rwNewIM_C_lbxNewIMProduct',N'No. de Producto','N','N') , (1999,'9/6/2016','es-MX','rwNewPC_C_lbxNewPCProduct',N'No. de Producto','N','N') , (1999,'9/6/2016','es-MX','rwNewPC_C_lnxAddCompany',N'Agregar Compañía','N','N') , (1999,'7/16/2012','es-MX','RWRK',N'Retrabajo','N','N') , (1999,'3/1/2016','es-MX','rwSavedSearches',N'Búsquedas guardadas','N','N') , (1999,'3/1/2016','es-MX','rwSaveSearch',N'Save búsqueda','N','N') , (1999,'9/6/2016','es-MX','rwSupplier',N'Prooverdor','N','N') , (1999,'3/1/2016','es-MX','rwTitlebarControls',N'Insertar Nueva Regla','N','N') , (1999,'3/1/2016','es-MX','SAAI Companies',N'Compañías SAAI','N','N') , (1999,'3/1/2016','es-MX','SAAI File Results',N'Resultados del documento SAAI','N','N') , (1999,'3/1/2016','es-MX','SAAIFileResults',N'Resultados del documento SAAI','N','N') , (1999,'12/17/2013','es-MX','SAAISEND_PEDDEST',N'Desistir','N','N') , (1999,'12/17/2013','es-MX','SAAISEND_PEDELIM',N'Eliminar','N','N') , (1999,'12/17/2013','es-MX','SAAISEND_PEDOPEN',N'Abrir','N','N') , (1999,'12/17/2013','es-MX','SAAISEND_PEDPAY',N'Pagar','N','N') , (1999,'12/17/2013','es-MX','SAAISEND_PEDVAL',N'Validar','N','N') , (1999,'9/6/2016','es-MX','Sanctions Program',N'Programa de sanciones','N','N') , (1999,'3/1/2016','es-MX','Save',N'Guardar','N','N') , (1999,'9/6/2016','es-MX','Save All',N'Guardar Todo','N','N') , (1999,'9/6/2016','es-MX','Save and Close',N'Guardar y Cerrar','N','N') , (1999,'3/1/2016','es-MX','Save Observations',N'Guardar','N','N') , (1999,'3/1/2016','es-MX','Save Pedimento Header',N'Guardar Encabezado','N','N') , (1999,'9/6/2016','es-MX','Save Search',N'Guardar Búsqueda','N','N') , (1999,'9/6/2016','es-MX','Save title for later use',N'Guardar Titulo para su uso','N','N') , (1999,'9/11/2015','es-MX','Saved',N'Guardado','N','N') , (1999,'3/1/2016','es-MX','SAVEDQRYSELTEMPLATE',N'Selecciona una plantilla...','N','N') , (1999,'9/6/2016','es-MX','SaveForLater',N'Guardar Para Despues','N','N') , (1999,'3/1/2016','es-MX','SaveObservations',N'Guardar','N','N') , (1999,'3/1/2016','es-MX','SavePedimentoHeader',N'Guardar Encabezado','N','N') , (1999,'9/6/2016','es-MX','SCAC/IATA Code',N'Código SCAC/IATA','N','N') , (1999,'3/1/2016','es-MX','Scrap',N'Scrap','N','N') , (1999,'3/1/2016','es-MX','Scrap File Upload',N'Carga del Archivo de Scrap','N','N') , (1999,'3/1/2016','es-MX','ScrapType',N'Tipo de Scrap','N','N') , (1999,'9/6/2016','es-MX','Screen',N'Pantalla','N','N') , (1999,'7/16/2012','es-MX','SCRP',N'Desperdicio','N','N') , (1999,'3/1/2016','es-MX','Seal Num',N'Número de Sello','N','N') , (1999,'3/1/2016','es-MX','SealNum',N'Número de Sello','N','N') , (1999,'3/1/2016','es-MX','Seals',N'Sellos','N','N') , (1999,'3/1/2016','es-MX','Search',N'Buscar','N','N') , (1999,'9/6/2016','es-MX','Search City',N'Ciudad de la Busqueda','N','N') , (1999,'9/6/2016','es-MX','Search Country',N'Buscar País','N','N') , (1999,'9/6/2016','es-MX','Search Date',N'Fecha de la Busqueda','N','N') , (1999,'9/6/2016','es-MX','Search Description',N'Descripción de Búsqueda','N','N') , (1999,'9/6/2016','es-MX','Search Detail Type Delimiter',N'Buscar detalles tipo delimitador','N','N') , (1999,'9/6/2016','es-MX','Search For Existing',N'Buscar por existente','N','N') , (1999,'9/6/2016','es-MX','Search GUID',N'GUID de búsqueda','N','N') , (1999,'9/6/2016','es-MX','Search Name',N'Nombre de Búsqueda','N','N') , (1999,'3/1/2016','es-MX','Search Parameter',N'Buscar Parametro','N','N') , (1999,'9/6/2016','es-MX','Search Postal Code',N'Código Postal de la Busqueda','N','N') , (1999,'9/6/2016','es-MX','Search Reference Number',N'No. de Referencia de la Busqueda','N','N') , (1999,'9/6/2016','es-MX','Search State',N'Estado de la Busqueda','N','N') , (1999,'9/6/2016','es-MX','Search Street',N'Calle de la Busqueda','N','N') , (1999,'2/19/2010','es-MX','Search_aspx',N'Buscar Producto','N','N') , (1999,'9/6/2016','es-MX','SearchDescription',N'Descripción de la Búsqueda','N','N') , (1999,'9/6/2016','es-MX','SearchDetailTypeDelimiter',N'Buscar detalles tipo delimitador','N','N') , (1999,'9/6/2016','es-MX','SearchForExisting',N'Buscar por existente','N','N') , (1999,'9/6/2016','es-MX','SearchGUID',N'GUID de búsqueda','N','N') , (1999,'9/6/2016','es-MX','SearchHistoryWebService (old)',N'Buscar Historial Servicio Web','N','N') , (1999,'9/6/2016','es-MX','SearchName',N'Búsqueda de nombre','N','N') , (1999,'3/1/2016','es-MX','Second',N'Segundo Semestre','N','N') , (1999,'3/1/2016','es-MX','Second half',N'Segunda mitad','N','N') , (1999,'3/1/2016','es-MX','Section Num',N'Sección','N','N') , (1999,'3/1/2016','es-MX','SectionNum',N'Sección','N','N') , (1999,'3/1/2016','es-MX','Select',N'Seleccionar','N','N') , (1999,'9/6/2016','es-MX','Select a Category...',N'Selecciona una Categoria','N','N') , (1999,'9/11/2015','es-MX','Select a Country…',N'Seleccionar un País…','N','N') , (1999,'9/11/2015','es-MX','Select a Document Type',N'Seleccione un Tipo de Documento','N','N') , (1999,'9/8/2016','es-MX','select a field...',N'Seleccionar un campo...','N','N') , (1999,'9/11/2015','es-MX','Select a field…',N'Seleccionar un campo…','N','N') , (1999,'9/8/2016','es-MX','select a FTA...',N'Seleccionar un TLC...','N','N') , (1999,'9/8/2016','es-MX','Select a letter...',N'Seleccionar una carta...','N','N') , (1999,'9/6/2016','es-MX','Select a Month...',N'Seleccionar un mes...','N','N') , (1999,'9/11/2015','es-MX','Select a Preference Criterion…',N'Seleccionar un Criterio de Preferencia…','N','N') , (1999,'9/11/2015','es-MX','Select a Producer…',N'Seleccionar un Productor…','N','N') , (1999,'9/8/2016','es-MX','Select a Supplier...',N'Seleccionar proveedor...','N','N') , (1999,'9/11/2015','es-MX','Select a Supplier…',N'Seleccionar Proveedor….','N','N') , (1999,'9/6/2016','es-MX','Select a work order',N'Seleccionar una orden de trabajo','N','N') , (1999,'2/22/2010','es-MX','Select All',N'Seleccionar Todo','N','N') , (1999,'9/11/2015','es-MX','Select an Agreement',N'Seleccionar Tratado','N','N') , (1999,'3/1/2016','es-MX','Select an item',N'Seleccionar un elemento','N','N') , (1999,'9/11/2015','es-MX','Select an RVC type...',N'Guarda QUE S? Simple','N','N') , (1999,'9/11/2015','es-MX','Select assignment',N'Selecciona Asignación','N','N') , (1999,'9/11/2015','es-MX','Select Bill Of Material...',N'Seleccionar Lista de Materiales…','N','N') , (1999,'9/11/2015','es-MX','Select Company',N'Seleccionar Compañía','N','N') , (1999,'9/11/2015','es-MX','Select Email…',N'Seleccionar Correo…','N','N') , (1999,'9/8/2016','es-MX','select FTA...',N'Seleccionar TLC...','N','N') , (1999,'9/11/2015','es-MX','Select New BOM',N'Seleccionar Nueva BOM','N','N') , (1999,'9/8/2016','es-MX','Select Operator...',N'Seleccionar Operador...','N','N') , (1999,'9/6/2016','es-MX','Select Origin Rule Set(s) To Process',N'Seleccionar conjunto de reglas de origen para procesar','N','N') , (1999,'9/11/2015','es-MX','Select Request',N'Seleccionar Solicitud','N','N') , (1999,'9/6/2016','es-MX','Select Rule Type...',N'Selecciona un Tipo de Regla','N','N') , (1999,'9/11/2015','es-MX','Select Status...',N'Seleccionar Estado….','N','N') , (1999,'9/11/2015','es-MX','Select Template…',N'Seleccionar Plantilla…','N','N') , (1999,'9/11/2015','es-MX','Selected BOM Analysis',N'Análisis de Lista de Materiales Seleccionadas','N','N') , (1999,'9/6/2016','es-MX','Selected PEA',N'PEA Seleccionados','N','N') , (1999,'9/11/2015','es-MX','Selected Products',N'Seleccionar Productos','N','N') , (1999,'3/1/2016','es-MX','Send COVE',N'Enviar COVE','N','N') , (1999,'3/1/2016','es-MX','Send Saai File',N'Crear Archivo','N','N') , (1999,'3/1/2016','es-MX','SendCOVE',N'Enviar COVE','N','N') , (1999,'9/6/2016','es-MX','Sender',N'Enviado Por','N','N') , (1999,'3/1/2016','es-MX','SendSaaiFile',N'Crear Archivo','N','N') , (1999,'9/6/2016','es-MX','Sent By',N'Enviado Por','N','N') , (1999,'9/6/2016','es-MX','Sent Date',N'Fecha de Envio','N','N') , (1999,'3/1/2016','es-MX','Seq Num',N'Número de Secuencia','N','N') , (1999,'3/1/2016','es-MX','SeqNum',N'Número de Secuencia','N','N') , (1999,'3/1/2016','es-MX','Sequence',N'Secuencia','N','N') , (1999,'3/1/2016','es-MX','Sequence Num',N'Número de Secuencia','N','N') , (1999,'3/1/2016','es-MX','SequenceNum',N'Número de Secuencia','N','N') , (1999,'3/1/2016','es-MX','Serial Num',N'Numero de Serie','N','N') , (1999,'3/1/2016','es-MX','SerialNum',N'Numero de Serie','N','N') , (1999,'9/6/2016','es-MX','Severity',N'Severidad','N','N') , (1999,'3/1/2016','es-MX','Ship Date',N'Fecha de Envio','N','N') , (1999,'9/6/2016','es-MX','Ship lot',N'Enviar lote','N','N') , (1999,'3/1/2016','es-MX','ShipDate',N'Fecha de Envio','N','N') , (1999,'9/6/2016','es-MX','Shipment',N'Embarque','N','N') , (1999,'9/6/2016','es-MX','SHIPMENT IDENTIFICATION',N'Datos de Embarque','N','N') , (1999,'3/1/2016','es-MX','Shipment Num',N'Número de Embarque','N','N') , (1999,'9/6/2016','es-MX','Shipment Ref Num',N'Número de referencia de Embarque','N','N') , (1999,'9/6/2016','es-MX','Shipment Reference Number',N'Número de referencia de Embarque','N','N') , (1999,'9/6/2016','es-MX','ShipmentRefNum',N'Número de Referencia de Embarque','N','N') , (1999,'3/1/2016','es-MX','Shipments',N'Embarques','N','N') , (1999,'3/1/2016','es-MX','Short Name',N'Alias','N','N') , (1999,'3/1/2016','es-MX','ShortName',N'Alias','N','N') , (1999,'9/6/2016','es-MX','Show All Entries',N'Mostrar todas las entradas','N','N') , (1999,'9/6/2016','es-MX','Show All Transactions',N'Mostrar todas las transacciones','N','N') , (1999,'9/6/2016','es-MX','Show Archive',N'Mostrar archivo','N','N') , (1999,'9/6/2016','es-MX','Show Country Name',N'Mostrar nombre del país','N','N') , (1999,'9/6/2016','es-MX','Show Current',N'Mostrar actual','N','N') , (1999,'9/6/2016','es-MX','Show Display Fields...',N'Mostrar Campos de Visualización','N','N') , (1999,'9/6/2016','es-MX','Show Effective Level',N'Mostrar nivel efectivo','N','N') , (1999,'9/6/2016','es-MX','Show Effective Only',N'Mostrar solo efectivos','N','N') , (1999,'9/6/2016','es-MX','Show Expired Only',N'Mostrar solo expirados','N','N') , (1999,'3/1/2016','es-MX','Show Filter',N'Mostrar Filtro','N','N') , (1999,'9/6/2016','es-MX','Show Filter Options...',N'Mostrar Opciones de Filtrado...','N','N') , (1999,'9/11/2015','es-MX','Show Filter Options…',N'Mostrar Opciones de Filtrado…','N','N') , (1999,'9/6/2016','es-MX','Show FSD',N'Mostrar DFS','N','N') , (1999,'3/1/2016','es-MX','Show Hide',N'Mostrat/Ocultar Filtros','N','N') , (1999,'3/1/2016','es-MX','Show pedimentos with open balances that expire on or before',N'Mostrar pedimentos con balances que expiren en o antes de','N','N') , (1999,'3/1/2016','es-MX','Show Printed',N'Mostrar Impreso','N','N') , (1999,'3/1/2016','es-MX','Show Report Fields',N'Mostrar Campos del Informe/Reporte','N','N') , (1999,'9/6/2016','es-MX','Show Report Fields...',N'Mostrar Campos del Reporte...','N','N') , (1999,'9/6/2016','es-MX','Show Search Fields...',N'Mostrar Campos de Búsqueda','N','N') , (1999,'9/6/2016','es-MX','Show Submitted Final Supplementary Declaration',N'Mostrar declaraciones finales suplementarias enviadas','N','N') , (1999,'9/6/2016','es-MX','Show Unprinted',N'Mostrar No Impresos','N','N') , (1999,'9/6/2016','es-MX','Show Unprinted Entries',N'Mostrar entradas no impresas','N','N') , (1999,'9/6/2016','es-MX','Show Unsubmitted Final Supplementary Declaration',N'Mostrar declaraciones finales suplementarias no enviadas','N','N') , (1999,'9/6/2016','es-MX','Show Unsubmitted Transactions',N'Mostrar transacciones no enviadas','N','N') , (1999,'9/6/2016','es-MX','Show User Guid Level',N'Mostrar nivel de GUID de usuario','N','N') , (1999,'9/6/2016','es-MX','Show User Guid Saved Only',N'Mostrar solamente GUID de usuario guardado','N','N') , (1999,'9/6/2016','es-MX','Show User Guid Un Saved Only',N'Mostrar solamente GUID de usuario no guardado','N','N') , (1999,'9/6/2016','es-MX','Show UserGuid Saved Only',N'Mostrar solamente GUID de usuario guardado','N','N') , (1999,'3/1/2016','es-MX','Show/Hide Filter',N'Mostrar/Ocultar Filtro','N','N') , (1999,'9/6/2016','es-MX','Show/HideFilter',N'Mostrar/Ocultar Filtros','N','N') , (1999,'3/1/2016','es-MX','ShowAllGroupAccess(No Paging)',N'Mostrar Acceso de grupo','N','N') , (1999,'9/6/2016','es-MX','ShowAllTransactions',N'Mostrar todas las transacciones','N','N') , (1999,'9/6/2016','es-MX','ShowCountryName',N'Mostrar nombre del país','N','N') , (1999,'9/6/2016','es-MX','ShowEffectiveLevel',N'Mostrar nivel efectivo','N','N') , (1999,'9/6/2016','es-MX','ShowEffectiveOnly',N'Mostrar solo efectivos','N','N') , (1999,'9/6/2016','es-MX','ShowExpiredOnly',N'Mostrar solo expirados','N','N') , (1999,'3/1/2016','es-MX','ShowFilter',N'Mostrar Filtro','N','N') , (1999,'3/1/2016','es-MX','showfiltertext',N'Mostrar Filtro','N','N') , (1999,'3/1/2016','es-MX','ShowHide',N'Mostrat/Ocultar Filtros','N','N') , (1999,'9/6/2016','es-MX','ShowMissing',N'Embarque Perdido?','N','N') , (1999,'9/6/2016','es-MX','ShowMissing?',N'Embarque Perdido?','N','N') , (1999,'3/1/2016','es-MX','ShowPrinted',N'Mostrar Impreso','N','N') , (1999,'9/6/2016','es-MX','ShowUnsubmittedTransactions',N'Mostrar transacciones no enviadas','N','N') , (1999,'9/6/2016','es-MX','ShowUserGuidLevel',N'Mostrar nivel de GUID de usuario','N','N') , (1999,'9/6/2016','es-MX','ShowUserGuidSavedOnly',N'Mostrar solamente GUID de usuario guardado','N','N') , (1999,'9/6/2016','es-MX','ShowUserGuidUnSavedOnly',N'Mostrar solamente GUID de usuario no guardado','N','N') , (1999,'9/11/2015','es-MX','Signature Date',N'Fecha de Firma','N','N') , (1999,'2/26/2010','es-MX','SignatureDate',N'Firmado En','N','N') , (1999,'9/11/2015','es-MX','Signatures',N'Firmas','N','N') , (1999,'9/11/2015','es-MX','Signatures Tab Help',N'Pestaña de Ayuda con Firmas','N','N') , (1999,'9/11/2015','es-MX','Single BOM Calculator',N'Calculadora de BOM Simple','N','N') , (1999,'9/11/2015','es-MX','Single BOM Reports',N'Reporte Simple de BOM','N','N') , (1999,'9/6/2016','es-MX','Solicit',N'Solicitar','N','N') , (1999,'9/11/2015','es-MX','Solicitation',N'Solicitud','N','N') , (1999,'9/11/2015','es-MX','Solicitation Administration',N'Administración de Solicitudes','N','N') , (1999,'9/11/2015','es-MX','Solicitation Detail',N'Detalles de Solicitud','N','N') , (1999,'9/11/2015','es-MX','Solicitation Management',N'Administracion de Solicitudes','N','N') , (1999,'9/6/2016','es-MX','Solicitation Title',N'Titulo de la Solicitud','N','N') , (1999,'3/1/2016','es-MX','Solicitud Num',N'Número de Solicitud','N','N') , (1999,'3/1/2016','es-MX','SolicitudNum',N'Número de Solicitud','N','N') , (1999,'9/6/2016','es-MX','Solution',N'Solución','N','N') , (1999,'3/1/2016','es-MX','Sorts Product Num',N'Número de Producto','N','N') , (1999,'3/1/2016','es-MX','SortsProductNum',N'Número de Producto','N','N') , (1999,'9/6/2016','es-MX','Sounds Like Option',N'Opción de Sonido','N','N') , (1999,'9/6/2016','es-MX','Source',N'Fuente','N','N') , (1999,'9/6/2016','es-MX','Source Date',N'Fecha de la Ultima Actualización de Fuente','N','N') , (1999,'3/1/2016','es-MX','Source Field Name',N'Nombre del Campo Fuente','N','N') , (1999,'3/1/2016','es-MX','Source Field Value',N'Valor del Campo Fuente','N','N') , (1999,'9/6/2016','es-MX','Source file',N'Archivo fuente','N','N') , (1999,'3/1/2016','es-MX','Source System',N'Fuente del Sistema','N','N') , (1999,'3/1/2016','es-MX','Source Table',N'Tabla Fuente','N','N') , (1999,'9/6/2016','es-MX','SourceDate',N'Fecha de la Ultima Actualización de Fuente','N','N') , (1999,'3/1/2016','es-MX','SourceFieldName',N'Nombre del Campo Fuente','N','N') , (1999,'3/1/2016','es-MX','SourceFieldValue',N'Valor del Campo Fuente','N','N') , (1999,'3/1/2016','es-MX','SourceSystem',N'Fuente del Sistema','N','N') , (1999,'3/1/2016','es-MX','SourceTable',N'Tabla Fuente','N','N') , (1999,'3/10/2016','es-MX','SPANISH',N'Español','N','N') , (1999,'9/6/2016','es-MX','SpecialInstructions',N'Instrucciónes Especiales','N','N') , (1999,'3/1/2016','es-MX','Specific Rate',N'Tasa especifica','N','N') , (1999,'3/1/2016','es-MX','SpecificRate',N'Tasa Específica','N','N') , (1999,'3/1/2016','es-MX','SpiCode1',N'Indicador Progarma Especial 1','N','N') , (1999,'3/1/2016','es-MX','SpiCode2',N'Indicador Progarma Especial 2','N','N') , (1999,'9/6/2016','es-MX','SQL Long Description',N'Descripción detallada de la consulta','N','N') , (1999,'9/6/2016','es-MX','SQLLongDescription',N'Descripción detallada de la consulta','N','N') , (1999,'3/1/2016','es-MX','STANDARD RATES',N'ESTÁNDAR DE TARIFAS','N','N') , (1999,'3/1/2016','es-MX','STANOSCH',N'En este momento no hay una transferencia programada para procesamiento de datos','N','N') , (1999,'3/1/2016','es-MX','StartDate',N'Fecha de Inicio','N','N') , (1999,'9/8/2016','es-MX','Starts With',N'Empieza con','N','N') , (1999,'4/8/2010','es-MX','State',N'Estado','N','N') , (1999,'3/1/2016','es-MX','StaticFlag',N'Bandera Estática','N','N') , (1999,'4/8/2010','es-MX','Status',N'Estado','N','N') , (1999,'3/1/2016','es-MX','Status Code',N'Código de estatus','N','N') , (1999,'3/1/2016','es-MX','Status Literal',N'Estatus','N','N') , (1999,'3/1/2016','es-MX','StatusCode',N'Código de estatus','N','N') , (1999,'3/1/2016','es-MX','StatusLiteral',N'Estatus','N','N') , (1999,'3/1/2016','es-MX','Step Name',N'Etapa','N','N') , (1999,'3/1/2016','es-MX','StepName',N'Nombre del Paso de Validación','N','N') , (1999,'3/1/2016','es-MX','Storage Loc',N'Almacenamiento Loc','N','N') , (1999,'3/1/2016','es-MX','Street',N'Calle','N','N') , (1999,'4/8/2010','es-MX','Sub Country Code',N'Sub Código País','N','N') , (1999,'3/1/2016','es-MX','SubmissionDate',N'Fecha de Presentacion','N','N') , (1999,'9/11/2015','es-MX','Submit',N'Enviar','N','N') , (1999,'9/11/2015','es-MX','Submit Documents',N'Subir Documentos','N','N') , (1999,'3/1/2016','es-MX','Subscription Type Name',N'Tipo de Nombre de la Subscripción','N','N') , (1999,'9/6/2016','es-MX','Subscriptions',N'Subscripciones','N','N') , (1999,'3/1/2016','es-MX','SubscriptionTypeName',N'Tipo de Nombre de la Subscripción','N','N') , (1999,'9/6/2016','es-MX','SubscriptionWebService (old)',N'Suscripción servicio web (viejo)','N','N') , (1999,'9/6/2016','es-MX','Suggested Course of Action',N'Acción Sugerida','N','N') , (1999,'9/6/2016','es-MX','Summary Level',N'Nivel del Resumen','N','N') , (1999,'9/6/2016','es-MX','sup Address1',N'DomdePrvdor','N','N') , (1999,'9/6/2016','es-MX','sup Address2',N'DomdePrvdor 2','N','N') , (1999,'9/6/2016','es-MX','sup Ext Num',N'NumExtdeProvdor','N','N') , (1999,'9/6/2016','es-MX','Sup ID',N'Id de Prooverdor','N','N') , (1999,'9/6/2016','es-MX','sup Int Num',N'NumIntdeProvdor','N','N') , (1999,'9/6/2016','es-MX','supAddress1',N'DomdePrvdor','N','N') , (1999,'9/6/2016','es-MX','supAddress2',N'DomdePrvdor 2','N','N') , (1999,'9/6/2016','es-MX','supExtNum',N'NumExtdeProvdor','N','N') , (1999,'9/6/2016','es-MX','SupID',N'Id de Prooverdor','N','N') , (1999,'9/6/2016','es-MX','supIntNum',N'NumIntdeProvdor','N','N') , (1999,'3/1/2016','es-MX','Supplier',N'Proveedor','N','N') , (1999,'9/11/2015','es-MX','Supplier Certificate',N'Certificado de Proveedor','N','N') , (1999,'3/1/2016','es-MX','Supplier Customer ID',N'ID de Proveedor','N','N') , (1999,'9/11/2015','es-MX','Supplier Dashboard',N'Datos de Proveedores','N','N') , (1999,'9/6/2016','es-MX','Supplier ID',N'ID de Proveedor','N','N') , (1999,'9/6/2016','es-MX','Supplier Issue',N'Problema con el Proveedor','N','N') , (1999,'9/6/2016','es-MX','Supplier Name',N'Nombre del Proveedor','N','N') , (1999,'9/6/2016','es-MX','Supplier Page',N'Pagina del Proveedor','N','N') , (1999,'3/1/2016','es-MX','SupplierCustomerID',N'ID de Proveedor','N','N') , (1999,'2/24/2010','es-MX','SupplierID',N'Identificador del Proveedor','N','N') , (1999,'9/6/2016','es-MX','SupplierIssue',N'Problema con el Proveedor','N','N') , (1999,'9/6/2016','es-MX','SupplierName',N'Nombre del Proveedor','N','N') , (1999,'9/6/2016','es-MX','System',N'Sistema','N','N') , (1999,'9/6/2016','es-MX','System for Award Management - Bulk Screening',N'Premio de Sistema de Gestion - Proyección a masa','N','N') , (1999,'3/1/2016','es-MX','SYSTEM MAPPING',N'MAPEO DEL SISTEMA','N','N') , (1999,'3/1/2016','es-MX','tab Addresses',N'Direcciones','N','N') , (1999,'9/6/2016','es-MX','tab All Log',N'Todos los Registros','N','N') , (1999,'9/6/2016','es-MX','tab Bill To',N'Facturado A','N','N') , (1999,'9/6/2016','es-MX','tab CA',N'Rastreo de Acciones Correctivas','N','N') , (1999,'9/6/2016','es-MX','tab Closed Errors Log',N'Registros de Errores Cerrados','N','N') , (1999,'9/6/2016','es-MX','tab Communication',N'Comunicación','N','N') , (1999,'3/1/2016','es-MX','tab Company Info',N'Información','N','N') , (1999,'3/1/2016','es-MX','tab Contacts',N'Contactos','N','N') , (1999,'9/6/2016','es-MX','tab Container_tab Grid One_lbx Grid One Header',N'Sub Encabezado Global de Blancos y Desajustes','N','N') , (1999,'9/6/2016','es-MX','Tab Container1_tab AMS Query Results_lbx Search',N'Busqueda','N','N') , (1999,'9/6/2016','es-MX','Tab Container1_tab Header_lbx CBP System To Query',N'CBP Sistema a Consulta','N','N') , (1999,'9/6/2016','es-MX','tab Current Docs',N'Documentación','N','N') , (1999,'9/6/2016','es-MX','tab Customs Hold',N'Retención de Aduana','N','N') , (1999,'9/6/2016','es-MX','tab Data',N'Información de Certificado','N','N') , (1999,'9/6/2016','es-MX','tab Docs Log',N'Registro de Documentos','N','N') , (1999,'9/6/2016','es-MX','tab Documents',N'Documentos','N','N') , (1999,'9/6/2016','es-MX','tab EER',N'Reportes de Error','N','N') , (1999,'9/6/2016','es-MX','tab Email Log',N'Registro de Correos','N','N') , (1999,'9/6/2016','es-MX','tab Entry Analysis',N'Análisis de Entradas','N','N') , (1999,'9/6/2016','es-MX','tab Entry Import Log',N'Registro de Entradas de Imortación','N','N') , (1999,'9/6/2016','es-MX','tab Entry Management',N'Administración de Entradas','N','N') , (1999,'9/6/2016','es-MX','tab Exceptions',N'Excepciones','N','N') , (1999,'9/6/2016','es-MX','tab Export Assist',N'Asistencias','N','N') , (1999,'9/6/2016','es-MX','tab Export Detail',N'Lista de Objetos','N','N') , (1999,'9/6/2016','es-MX','tab Export Documentation',N'Documentación','N','N') , (1999,'9/6/2016','es-MX','tab Export Equipment',N'Equipamiento','N','N') , (1999,'9/6/2016','es-MX','tab Export Fee',N'Cuotas','N','N') , (1999,'9/6/2016','es-MX','tab Export FTA',N'Tratado de Libre Comercio','N','N') , (1999,'9/6/2016','es-MX','tab Export Header',N'Encabezado','N','N') , (1999,'9/6/2016','es-MX','tab Export Messages',N'Mensajes del Sistema','N','N') , (1999,'9/6/2016','es-MX','tab Export Notes',N'Notas','N','N') , (1999,'9/6/2016','es-MX','tab Export Parties',N'Compañias','N','N') , (1999,'9/6/2016','es-MX','tab Export Purchase Order',N'Orden de Compra','N','N') , (1999,'9/6/2016','es-MX','tab Export Spreadsheets',N'Hoja de Cálculo','N','N') , (1999,'9/6/2016','es-MX','tab Exporting Carrier',N'Transportista de Exportación','N','N') , (1999,'9/6/2016','es-MX','tab File Transmission',N'Transmisión de Archivos','N','N') , (1999,'9/6/2016','es-MX','tab Forward To',N'Despachado A','N','N') , (1999,'9/6/2016','es-MX','tab Forwarder',N'Agente Intermediario','N','N') , (1999,'9/6/2016','es-MX','tab Groups',N'Grupos','N','N') , (1999,'9/6/2016','es-MX','tab Inland Carrier',N'Transportista Interior','N','N') , (1999,'9/6/2016','es-MX','tab Intermediate Consignee',N'Consignatario Intermediario','N','N') , (1999,'9/6/2016','es-MX','tab Launch',N'Lanzar análisis de origen en masa','N','N') , (1999,'9/6/2016','es-MX','tab Launch Mass Origin Analysis',N'Lanzar análisis de origen en masa','N','N') , (1999,'9/6/2016','es-MX','tab Liquidation',N'Liquidación','N','N') , (1999,'9/6/2016','es-MX','tab Management Log',N'Registros de Administración','N','N') , (1999,'9/6/2016','es-MX','tab Manual Validation Log',N'Registro de Validación Manual','N','N') , (1999,'9/6/2016','es-MX','tab Notes Log',N'Registro de Notas','N','N') , (1999,'9/6/2016','es-MX','Tab Panel2',N'Valores HTS del Maestro de Articulos','N','N') , (1999,'3/1/2016','es-MX','tab Parties',N'Partícipes','N','N') , (1999,'9/6/2016','es-MX','tab Products',N'Información del Producto','N','N') , (1999,'3/1/2016','es-MX','tab Program Codes',N'Códigos de Programa','N','N') , (1999,'9/6/2016','es-MX','tab Recon',N'Reconciliación','N','N') , (1999,'9/6/2016','es-MX','tab Results RW Title',N'Resultados','N','N') , (1999,'9/6/2016','es-MX','tab Selected Origin Analysis',N'Análisis de origen seleccionado','N','N') , (1999,'9/6/2016','es-MX','tab Seller',N'Vendedor','N','N') , (1999,'9/6/2016','es-MX','tab Ship From',N'Embarcado Desde','N','N') , (1999,'9/6/2016','es-MX','tab Ship To',N'Embarcado A','N','N') , (1999,'3/1/2016','es-MX','tab Status Alert',N'Estatus de alerta','N','N') , (1999,'9/8/2016','es-MX','tab System Search',N'Sistema','N','N') , (1999,'9/6/2016','es-MX','tab Tariff',N'Tarifas','N','N') , (1999,'9/6/2016','es-MX','tab Ultimate Consignee',N'Consignatario','N','N') , (1999,'9/6/2016','es-MX','tab Work Queue',N'Cola de Trabajo','N','N') , (1999,'9/6/2016','es-MX','tab_tbc Results_pnl Default',N'Nueva Búsqueda','N','N') , (1999,'9/6/2016','es-MX','tab_tbcResults_pnlDefault',N'Nueva Búsqueda','N','N') , (1999,'9/6/2016','es-MX','tab_tcn Subscriptions_tab Tariff',N'Tarifas','N','N') , (1999,'9/6/2016','es-MX','tab_tcnSubscriptions_tabTariff',N'Tarifas','N','N') , (1999,'9/6/2016','es-MX','tabAdditionalDetails',N'Detalles adicionales','N','N') , (1999,'3/1/2016','es-MX','tabAddresses',N'Direcciones','N','N') , (1999,'9/6/2016','es-MX','tabAliases',N'Alias','N','N') , (1999,'9/6/2016','es-MX','tabAllLog',N'Todos los Registros','N','N') , (1999,'9/6/2016','es-MX','tabAuditLog',N'Registros de Auditoria','N','N') INSERT INTO tmgPartnerCultureDefinitions(PartnerId,EffDate,CultureGuid,FieldName,FieldTranslation,DeletedFlag,KeepDuringRollback) VALUES (1999,'9/6/2016','es-MX','tabBillTo',N'Facturado A','N','N') , (1999,'9/6/2016','es-MX','tabCA',N'Rastreo de Acciones Correctivas','N','N') , (1999,'9/6/2016','es-MX','tabClosedErrorsLog',N'Registros de Errores Cerrados','N','N') , (1999,'9/6/2016','es-MX','tabCommunication',N'Comunicación','N','N') , (1999,'3/1/2016','es-MX','tabCompany_Label3',N'Compañia','N','N') , (1999,'3/1/2016','es-MX','tabCompanyInfo',N'Información','N','N') , (1999,'3/1/2016','es-MX','tabContacts',N'Contactos','N','N') , (1999,'9/6/2016','es-MX','tabContainer_tabGridOne_lbxGridOneHeader',N'Sub Encabezado Global de Blancos y Desajustes','N','N') , (1999,'9/6/2016','es-MX','TabContainer1_tabAMSQueryResults_lbxSearch',N'Busqueda','N','N') , (1999,'9/6/2016','es-MX','TabContainer1_tabHeader_lbxCBPSystemToQuery',N'CBP Sistema a Consulta','N','N') , (1999,'9/6/2016','es-MX','tabCurrentDocs',N'Documentación','N','N') , (1999,'9/6/2016','es-MX','tabCustomsHold',N'Retención de Aduana','N','N') , (1999,'9/6/2016','es-MX','tabData',N'Información de Certificado','N','N') , (1999,'9/6/2016','es-MX','tabDetails',N'Listado de Comodidades','N','N') , (1999,'9/6/2016','es-MX','tabDocsLog',N'Registro de Documentos','N','N') , (1999,'9/6/2016','es-MX','tabDocumentation',N'Documentación','N','N') , (1999,'9/6/2016','es-MX','tabDocuments',N'Documentos','N','N') , (1999,'9/6/2016','es-MX','tabEER',N'Reportes de Error','N','N') , (1999,'9/6/2016','es-MX','tabEmailLog',N'Registro de Correos','N','N') , (1999,'9/6/2016','es-MX','tabEntryAnalysis',N'Análisis de Entradas','N','N') , (1999,'9/6/2016','es-MX','tabEntryImportLog',N'Registro de Entradas de Imortación','N','N') , (1999,'3/1/2016','es-MX','tabEntryManagement',N'Administración de Entradas','N','N') , (1999,'9/6/2016','es-MX','tabExceptions',N'Excepciónes','N','N') , (1999,'9/6/2016','es-MX','tabExportAssist',N'Asistencias','N','N') , (1999,'9/6/2016','es-MX','tabExportDetail',N'Lista de Productos','N','N') , (1999,'9/6/2016','es-MX','tabExportDocumentation',N'Documentación','N','N') , (1999,'9/6/2016','es-MX','tabExportEquipment',N'Equipo','N','N') , (1999,'9/6/2016','es-MX','tabExportFee',N'Tarifas','N','N') , (1999,'9/6/2016','es-MX','tabExportFTA',N'Tratado de Libre Comercio','N','N') , (1999,'9/6/2016','es-MX','tabExportHeader',N'Encabezado','N','N') , (1999,'9/6/2016','es-MX','tabExportingCarrier',N'Transportista de Exportación','N','N') , (1999,'9/6/2016','es-MX','tabExportMessages',N'Mensajes del Sistema','N','N') , (1999,'9/6/2016','es-MX','tabExportNotes',N'Notas','N','N') , (1999,'9/6/2016','es-MX','tabExportParties',N'Compañias','N','N') , (1999,'9/6/2016','es-MX','tabExportPurchaseOrder',N'Orden de Compra','N','N') , (1999,'9/6/2016','es-MX','tabExportSpreadsheets',N'Hojas de Calculo','N','N') , (1999,'9/6/2016','es-MX','tabFileTransmission',N'Transmisión de Archivos','N','N') , (1999,'9/6/2016','es-MX','tabForwarder',N'Transportista','N','N') , (1999,'9/6/2016','es-MX','tabForwardTo',N'Despachado A','N','N') , (1999,'9/6/2016','es-MX','tabGroups',N'Grupos','N','N') , (1999,'3/1/2016','es-MX','tabHarmonized',N'Armonizado Tab','N','N') , (1999,'9/6/2016','es-MX','tabHeader',N'Encabezado y Transporte','N','N') , (1999,'9/6/2016','es-MX','tabInlandCarrier',N'Transportista Interior','N','N') , (1999,'9/6/2016','es-MX','tabIntermediateConsignee',N'Consignatario Intermedio','N','N') , (1999,'9/6/2016','es-MX','tabLaunch',N'Lanzar análisis de origen en masa','N','N') , (1999,'9/6/2016','es-MX','tabLaunchMassOriginAnalysis',N'Lanzar análisis de origen en masa','N','N') , (1999,'3/1/2016','es-MX','Table Name',N'Nombre de la Tabla','N','N') , (1999,'3/1/2016','es-MX','TableName',N'Nombre de Tabla','N','N') , (1999,'9/6/2016','es-MX','tabLiquidation',N'Liquidación','N','N') , (1999,'9/6/2016','es-MX','tabManagementLog',N'Registros de Administración','N','N') , (1999,'9/6/2016','es-MX','tabManualValidationLog',N'Registro de Validación Manual','N','N') , (1999,'9/6/2016','es-MX','tabNotes',N'Notas','N','N') , (1999,'9/6/2016','es-MX','tabNotesLog',N'Registro de Notas','N','N') , (1999,'3/1/2016','es-MX','TabPanel1',N'Maestro de Materiales','N','N') , (1999,'9/6/2016','es-MX','TabPanel2',N'Valores HTS del Maestro de Articulos','N','N') , (1999,'3/1/2016','es-MX','tabParties',N'Entidades','N','N') , (1999,'9/6/2016','es-MX','tabpnl Allowed Validations Request',N'Validaciones permitidas','N','N') , (1999,'3/1/2016','es-MX','tabpnl Art66',N'Artículo 66','N','N') , (1999,'9/6/2016','es-MX','tabpnl Copy Search',N'Copiar búsqueda','N','N') , (1999,'3/1/2016','es-MX','tabpnl Discharges',N'Descargos','N','N') , (1999,'9/6/2016','es-MX','tabpnl ECNML Permission Request',N'Permiso de ECNML','N','N') , (1999,'9/6/2016','es-MX','tabpnl ECNML Simple Permission Request',N'Permiso único ECNML','N','N') , (1999,'3/1/2016','es-MX','tabpnl Error Catalogs',N'Catálogos Error','N','N') , (1999,'9/6/2016','es-MX','tabpnl Expire Search',N'Búsqueda expirada','N','N') , (1999,'9/6/2016','es-MX','tabpnl FTA Permission Request',N'Permiso de TLC','N','N') , (1999,'9/6/2016','es-MX','tabpnl Get All Country Codes',N'Obtener todos los códigos de países','N','N') , (1999,'9/6/2016','es-MX','tabpnl Get All Currency Codes',N'Obtener todos los códigos de moneda','N','N') , (1999,'9/6/2016','es-MX','tabpnl Get All Sort Order HS Description',N'Obtener todas las descripciones de sistema armonizado en orden','N','N') , (1999,'9/6/2016','es-MX','tabpnl Get All Sub Country Codes',N'Obtener todos los códigos de sub-países','N','N') , (1999,'9/6/2016','es-MX','tabpnl Get Content Data',N'Obtener contenidos de datos','N','N') , (1999,'9/6/2016','es-MX','tabpnl Get Exchange Rates',N'Tipo de cambio','N','N') , (1999,'9/6/2016','es-MX','tabpnl Get Exchange Rates With Status',N'Obtener tipos de cambio con estatus','N','N') , (1999,'9/6/2016','es-MX','tabpnl Get Full Hierarchy HS Description',N'Obtener jerarquía completa de descripción de sistema armonizado','N','N') , (1999,'9/6/2016','es-MX','tabpnl Get Rule Of Origin Header',N'Obtener encabezado de regla de origen','N','N') , (1999,'9/6/2016','es-MX','tabpnl Get Rule Of Origin Text Request',N'Obtener regla de origen solicitud en texto','N','N') , (1999,'9/6/2016','es-MX','tabpnl Get Updated HS Number XML',N'Obtener número de sistema armonizado actualizado','N','N') , (1999,'3/1/2016','es-MX','tabpnl Header',N'Encabezado','N','N') , (1999,'9/6/2016','es-MX','tabpnl Holiday',N'Obtener vacaciones','N','N') , (1999,'9/6/2016','es-MX','tabpnl HS Permission Request',N'Permiso HS','N','N') , (1999,'9/6/2016','es-MX','tabpnl HS Request Single2',N'Solicitud única de sistema armonizado','N','N') , (1999,'9/6/2016','es-MX','tabpnl HS Simple Permission Request',N'Permiso único HS','N','N') , (1999,'3/1/2016','es-MX','tabpnl Imports',N'Importaciones','N','N') , (1999,'9/6/2016','es-MX','tabpnl Licenses',N'Licencias','N','N') , (1999,'9/6/2016','es-MX','tabpnl Multiple HS Request',N'Solicitudes múltiples de sistema armonizado','N','N') , (1999,'3/1/2016','es-MX','tabpnl Pgm Codes',N'Códigos de Programa','N','N') , (1999,'9/6/2016','es-MX','tabpnl Retrieve Searches Formatted Request',N'Recuperar búsquedas formateadas','N','N') , (1999,'9/6/2016','es-MX','tabpnl Retrieve Searches Log Formatted Request',N'Recuperar log de búsquedas formateado','N','N') , (1999,'9/6/2016','es-MX','tabpnl Retrieve Searches Request',N'Recuperar búsquedas','N','N') , (1999,'9/6/2016','es-MX','tabpnl Rule Category Chapter Partner Subscription Request',N'TLC Suscripción capítulo socio','N','N') , (1999,'9/6/2016','es-MX','tabpnl Save New Search',N'Guardar nueva búsqueda','N','N') , (1999,'9/6/2016','es-MX','tabpnl Subscription Request',N'Suscripción','N','N') , (1999,'9/6/2016','es-MX','tabpnl T Analyzer',N'Obtener analizador de tarifa','N','N') , (1999,'9/6/2016','es-MX','tabpnl Update Search',N'Actualizar búsqueda','N','N') , (1999,'9/6/2016','es-MX','tabpnl Validate Multiple HS Number Multiple UOM',N'Validar múltiples números de sistema armonizado Unidad de medida múltiple','N','N') , (1999,'9/6/2016','es-MX','tabpnl Validate Single HS Number Single UOM',N'Validar único número de sistema armonizado Unidad de medida única','N','N') , (1999,'9/6/2016','es-MX','tabpnlAllowedValidationsRequest',N'Validaciones permitidas','N','N') , (1999,'3/1/2016','es-MX','tabpnlArt66',N'Artículo 66','N','N') , (1999,'9/6/2016','es-MX','tabpnlCopySearch',N'Copiar búsqueda','N','N') , (1999,'3/1/2016','es-MX','tabpnlDischarges',N'Descargos','N','N') , (1999,'9/6/2016','es-MX','tabpnlECNMLPermissionRequest',N'Permiso de ECNML','N','N') , (1999,'9/6/2016','es-MX','tabpnlECNMLSimplePermissionRequest',N'Permiso único ECNML','N','N') , (1999,'9/6/2016','es-MX','tabpnlExpireSearch',N'Búsqueda expirada','N','N') , (1999,'9/6/2016','es-MX','tabpnlFTAPermissionRequest',N'Permiso de TLC','N','N') , (1999,'9/6/2016','es-MX','tabpnlGetAllCountryCodes',N'Obtener todos los códigos de países','N','N') , (1999,'9/6/2016','es-MX','tabpnlGetAllCurrencyCodes',N'Obtener todos los códigos de moneda','N','N') , (1999,'9/6/2016','es-MX','tabpnlGetAllSortOrderHSDescription',N'Obtener todas las descripciones de sistema armonizado en orden','N','N') , (1999,'9/6/2016','es-MX','tabpnlGetAllSubCountryCodes',N'Obtener todos los códigos de sub-países','N','N') , (1999,'9/6/2016','es-MX','tabpnlGetContentData',N'Obtener contenidos de datos','N','N') , (1999,'9/6/2016','es-MX','tabpnlGetExchangeRates',N'Tipo de cambio','N','N') , (1999,'9/6/2016','es-MX','tabpnlGetExchangeRatesWithStatus',N'Obtener tipos de cambio con estatus','N','N') , (1999,'9/6/2016','es-MX','tabpnlGetFullHierarchyHSDescription',N'Obtener jerarquía completa de descripción de sistema armonizado','N','N') , (1999,'9/6/2016','es-MX','tabpnlGetRuleOfOriginHeader',N'Obtener encabezado de regla de origen','N','N') , (1999,'9/6/2016','es-MX','tabpnlGetRuleOfOriginTextRequest',N'Obtener regla de origen solicitud en texto','N','N') , (1999,'9/6/2016','es-MX','tabpnlGetUpdatedHSNumberXML',N'Obtener número de sistema armonizado actualizado','N','N') , (1999,'3/1/2016','es-MX','tabpnlHeader',N'Encabezado','N','N') , (1999,'9/6/2016','es-MX','tabpnlHoliday',N'Obtener vacaciones','N','N') , (1999,'9/6/2016','es-MX','tabpnlHSPermissionRequest',N'Permiso HS','N','N') , (1999,'9/6/2016','es-MX','tabpnlHSRequestSingle2',N'Solicitud única de sistema armonizado','N','N') , (1999,'9/6/2016','es-MX','tabpnlHSSimplePermissionRequest',N'Permiso único HS','N','N') , (1999,'9/6/2016','es-MX','tabpnlLicenses',N'Licencias','N','N') , (1999,'9/6/2016','es-MX','tabpnlMultipleHSRequest',N'Solicitudes múltiples de sistema armonizado','N','N') , (1999,'3/1/2016','es-MX','tabpnlPgmCodes',N'Códigos de Programa','N','N') , (1999,'9/6/2016','es-MX','tabpnlRetrieveSearchesFormattedRequest',N'Recuperar búsquedas formateadas','N','N') , (1999,'9/6/2016','es-MX','tabpnlRetrieveSearchesLogFormattedRequest',N'Recuperar log de búsquedas formateado','N','N') , (1999,'9/6/2016','es-MX','tabpnlRetrieveSearchesRequest',N'Recuperar búsquedas','N','N') , (1999,'9/6/2016','es-MX','tabpnlRuleCategoryChapterPartnerSubscriptionRequest',N'TLC Suscripción capítulo socio','N','N') , (1999,'9/6/2016','es-MX','tabpnlSaveNewSearch',N'Guardar nueva búsqueda','N','N') , (1999,'9/6/2016','es-MX','tabpnlSubscriptionRequest',N'Suscripción','N','N') , (1999,'9/6/2016','es-MX','tabpnlTAnalyzer',N'Obtener analizador de tarifa','N','N') , (1999,'9/6/2016','es-MX','tabpnlUpdateSearch',N'Actualizar búsqueda','N','N') , (1999,'9/6/2016','es-MX','tabpnlValidateMultipleHSNumberMultipleUOM',N'Validar múltiples números de sistema armonizado Unidad de medida múltiple','N','N') , (1999,'9/6/2016','es-MX','tabpnlValidateSingleHSNumberSingleUOM',N'Validar único número de sistema armonizado Unidad de medida única','N','N') , (1999,'9/6/2016','es-MX','tabProducts',N'Información del Producto','N','N') , (1999,'3/1/2016','es-MX','tabProgramCodes',N'Códigos de Programa','N','N') , (1999,'9/6/2016','es-MX','tabReasons',N'Motivos','N','N') , (1999,'9/6/2016','es-MX','tabRecon',N'Reconciliación','N','N') , (1999,'9/6/2016','es-MX','tabRegulationDetails',N'Detalles de Regulación','N','N') , (1999,'9/6/2016','es-MX','tabResultsRWTitle',N'Resultados','N','N') , (1999,'9/6/2016','es-MX','tabs_tab Entry Management_rg Entry Management',N'Mostrar/Ocultar Filtro','N','N') , (1999,'9/6/2016','es-MX','tabs_tab Export Messages',N'Mensajes del Sistema','N','N') , (1999,'9/6/2016','es-MX','tabs_tab Notes_rg Note_ctl00_ctl02_ctl00_lnxbtn Insert',N'Agregar Nota','N','N') , (1999,'9/6/2016','es-MX','tabs_tab Override_lbx Override Header',N'Compañías Sobrecargables','N','N') , (1999,'9/6/2016','es-MX','tabs_Tab Panel1',N'Maestro de Articulos','N','N') , (1999,'9/6/2016','es-MX','tabs_Tab Panel2_lnxbtn CMD_ADDHTS',N'Agregar Registro','N','N') , (1999,'9/6/2016','es-MX','tabs_tab Summary_lbx Results Header',N'Resultados de Busqueda','N','N') , (1999,'3/1/2016','es-MX','tabs_tabCompanyInfo_lblCompanyName_Company',N'Nombre de la Compañia','N','N') , (1999,'9/6/2016','es-MX','tabs_tabEntryManagement_rgEntryManagement',N'Mostrar/Ocultar Filtro','N','N') , (1999,'9/6/2016','es-MX','tabs_tabExportMessages',N'Mensajes del Sistema','N','N') , (1999,'9/6/2016','es-MX','tabs_tabHeader',N'Encabezado y Transporte','N','N') , (1999,'9/6/2016','es-MX','tabs_tabNotes_rgNote_ctl00_ctl02_ctl00_lnxbtnInsert',N'Agregar Nota','N','N') , (1999,'9/6/2016','es-MX','tabs_tabOverride_lbxOverrideHeader',N'Compañías Sobrecargables','N','N') , (1999,'3/1/2016','es-MX','tabs_TabPane11',N'Maestro de Materiales','N','N') , (1999,'3/1/2016','es-MX','tabs_TabPanel1',N'Maestro de Materiales','N','N') , (1999,'3/1/2016','es-MX','tabs_TabPanel1_tab',N'Catalogo de Partes','N','N') , (1999,'9/6/2016','es-MX','tabs_TabPanel2_lnxbtnCMD_ADDHTS',N'Agregar Registro','N','N') , (1999,'3/1/2016','es-MX','tabs_TabPanel3',N'Pais Adicional','N','N') , (1999,'3/1/2016','es-MX','tabs_TabPanel3_tab',N'Tablas Adicionales','N','N') , (1999,'9/6/2016','es-MX','tabs_tabSummary_lbxResultsHeader',N'Resultados de Busqueda','N','N') , (1999,'9/6/2016','es-MX','tabSelectedOriginAnalysis',N'Análisis de origen seleccionado','N','N') , (1999,'9/6/2016','es-MX','tabSeller',N'Vendedor','N','N') , (1999,'3/1/2016','es-MX','tabSharedSearch',N'compartido','N','N') , (1999,'9/6/2016','es-MX','tabShipFrom',N'Exportador / Enviado Por','N','N') , (1999,'9/6/2016','es-MX','tabShipTo',N'Destinatario / Enviado A','N','N') , (1999,'9/6/2016','es-MX','tabSpreadsheetExtract',N'Extraer Hoja de Calculo','N','N') , (1999,'9/6/2016','es-MX','tabSpreadsheetUpload',N'Cargar Hoja de Calculo','N','N') , (1999,'3/1/2016','es-MX','tabStatusAlert',N'Estatus de alerta','N','N') , (1999,'3/1/2016','es-MX','tabSystemSearch',N'Sistema','N','N') , (1999,'9/6/2016','es-MX','tabTariff',N'Tarifas','N','N') , (1999,'9/6/2016','es-MX','tabTransmissionHistory',N'Historial de Transmisión','N','N') , (1999,'9/6/2016','es-MX','tabUltimateConsignee',N'Consignatario Final','N','N') , (1999,'9/6/2016','es-MX','tabUSPPI',N'USPPI','N','N') , (1999,'9/6/2016','es-MX','tabWorkQueue',N'Cola de Trabajo','N','N') , (1999,'9/11/2015','es-MX','Tariff Letter',N'Carta de Tarifa','N','N') , (1999,'9/6/2016','es-MX','Tariff Schedule',N'Arancel','N','N') , (1999,'3/1/2016','es-MX','Tariffs',N'Tarifa','N','N') , (1999,'9/6/2016','es-MX','Task',N'Tarea','N','N') , (1999,'3/1/2016','es-MX','Tax Total',N'Impuesto Total','N','N') , (1999,'3/1/2016','es-MX','TaxTotal',N'Impuesto Total','N','N') , (1999,'3/1/2016','es-MX','TaxType',N'Tipo de impuesto','N','N') , (1999,'3/1/2016','es-MX','tblCompanyInfo',N'Información de Compañia','N','N') , (1999,'3/1/2016','es-MX','tblList',N'Editar','N','N') , (1999,'9/6/2016','es-MX','tbx Explanation Field',N'Explicación de la modificación','N','N') , (1999,'9/6/2016','es-MX','tbx HTS',N'HTS prueba','N','N') , (1999,'9/6/2016','es-MX','tbx Selected Value',N'Valor Elegido','N','N') , (1999,'9/6/2016','es-MX','tbxAddDocumentType',N'Tipo de Documento','N','N') , (1999,'9/6/2016','es-MX','tbxCategory',N'Categoria','N','N') , (1999,'9/6/2016','es-MX','tbxExplanationField',N'Explicación de la modificación','N','N') , (1999,'9/6/2016','es-MX','tbxHTS',N'HTS prueba','N','N') , (1999,'9/6/2016','es-MX','tbxSelectedValue',N'Valor Elegido','N','N') , (1999,'9/6/2016','es-MX','tbxTariffNum',N'Numero de Tarifa','N','N') , (1999,'9/6/2016','es-MX','tbxTariffNum_AutoCompleteExtender',N'Numero de Tarifa - Auto','N','N') , (1999,'9/6/2016','es-MX','tbxTariffNum2',N'Numero de Tarifa 2','N','N') , (1999,'9/6/2016','es-MX','tbxTariffNum2_AutoCompleteExtender',N'Numero de tarifa 2 - auto','N','N') , (1999,'9/6/2016','es-MX','tbxVisaNum',N'Numero de Visa','N','N') , (1999,'3/1/2016','es-MX','tc Catalogs$tabpnl Pgm Codes$lnkbtn Add New Pgm Codes',N'Agregar Nuevo','N','N') , (1999,'3/1/2016','es-MX','tc Catalogs_tabpnl Duties By Date_rgd Duties By Date_ctl00',N'IVA por Mil','N','N') , (1999,'3/1/2016','es-MX','tc Catalogs_tabpnl Error Catalogs_lbx Error Catalogs',N'Catálogos error','N','N') , (1999,'3/1/2016','es-MX','tc Catalogs_tabpnl Payment Types By Document Codes_tab',N'Tipo de Pago según Código','N','N') , (1999,'3/1/2016','es-MX','tc Catalogs_tabpnl Pgm Codes_lbx Saai Program Codes',N'Códigos de Programa','N','N') , (1999,'3/1/2016','es-MX','tc Catalogs_tabpnl Pgm Codes_lnkbtn Add New Pgm Codes',N'Agregar Nuevo','N','N') , (1999,'3/1/2016','es-MX','tc Catalogs_tabpnl Pgm Codes_lnkbtn Toggle Filter Pgm Codes',N'Mostrar/Ocultar Filtro','N','N') , (1999,'3/1/2016','es-MX','tc Catalogs_tabpnl Saai Company_lbx Saai Company',N'Compañias SAAI','N','N') , (1999,'3/1/2016','es-MX','tc Catalogs_tabpnl Saai INPC Fee Factor_lnkbtn Add New Saai INPC Fee Factor',N'Agregar Nuevo','N','N') , (1999,'3/1/2016','es-MX','tc Main_tabpnl Annex31 Dischg Tariffs_lbx Annex31 Dischg Tariffs',N'Tarifas','N','N') , (1999,'9/6/2016','es-MX','tc Main_tabpnl Exports_lbx Exports',N'Exportaciones','N','N') , (1999,'3/1/2016','es-MX','tc Main_tabpnl Header_lbx Packaging',N'Embalaje','N','N') , (1999,'3/1/2016','es-MX','tc Main_tabpnl Imports_lbx Imports',N'Importaciones','N','N') , (1999,'3/1/2016','es-MX','tc Main_tabpnl Not Calculated_lbx Not Calculated',N'Sin calcular','N','N') , (1999,'3/1/2016','es-MX','tcCatalogs$tabpnlPgmCodes$lnkbtnAddNewPgmCodes',N'Agregar Nuevo','N','N') , (1999,'3/1/2016','es-MX','tcCatalogs_tabpnlDutiesByDate_rgdDutiesByDate_ctl00',N'IVA por Mil','N','N') , (1999,'3/1/2016','es-MX','tcCatalogs_tabpnlPaymentTypesByDocumentCodes_tab',N'Tipo de Pago según Código','N','N') , (1999,'3/1/2016','es-MX','tcCatalogs_tabpnlPgmCodes_lbxSaaiProgramCodes',N'Códigos de Programa','N','N') , (1999,'3/1/2016','es-MX','tcCatalogs_tabpnlPgmCodes_lnkbtnAddNewPgmCodes',N'Agregar Nuevo','N','N') , (1999,'3/1/2016','es-MX','tcCatalogs_tabpnlPgmCodes_lnkbtnToggleFilterPgmCodes',N'Mostrar/Ocultar Filtro','N','N') , (1999,'3/1/2016','es-MX','tcCatalogs_tabpnlSaaiCompany_lbxSaaiCompany',N'Compañías SAAI','N','N') , (1999,'3/1/2016','es-MX','tcInvoiceDateLbl',N'Fecha de Facturación','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabBillOfLading_lbxBillOfLading',N'Bill of Lading','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabContainer_lbxContainer',N'Contenedor','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabDetail_lbxDetail',N'Detalle','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabHeader_lbxHeader',N'Encabezado','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabHeader_tcPedimento_tabBroker_Label2',N'Agente Aduanal','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabHeader_tcPedimento_tabCompany_lbx_Header_CompanyFederalID',N'RFC','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabHeader_tcPedimento_tabCompany_lbxCompany',N'Empresa','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabHeader_tcPedimento_tabElectronicSignature_lbxElectronicSignature',N'Firma electrónica','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabHeader_tcPedimento_tabHeaderFees_lbxHeaderFees',N'Coutas y cargos','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabHeader_tcPedimento_tabPedimentoID_lbx_Header_ArrivalMOT',N'Modo de transporte de llegada','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabHeader_tcPedimento_tabPedimentoID_lbx_Header_AuthorizationCode',N'Código de autorización','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabHeader_tcPedimento_tabPedimentoID_lbx_Header_ClosingAuthorizationCode',N'Código de autorización de cierre','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabHeader_tcPedimento_tabPedimentoID_lbx_Header_ContainerCount',N'Total de contenedores','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabHeader_tcPedimento_tabPedimentoID_lbx_Header_CustomsFilingLocation',N'Ubicación del archivo de aduana','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabHeader_tcPedimento_tabPedimentoID_lbx_Header_CustomsImportExportLocation',N'Aduana de expo/ubicación de impo','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabHeader_tcPedimento_tabPedimentoID_lbx_Header_DepartureMOT',N'Modo de transporte de partida','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabHeader_tcPedimento_tabPedimentoID_lbx_Header_FileSequenceNum',N'Número de secuencia del archivo','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabHeader_tcPedimento_tabPedimentoID_lbx_Header_ImportExportMOT',N'Medio de transporte impo/expo','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabHeader_tcPedimento_tabPedimentoID_lbx_Header_InvoiceCount',N'Total de facturas','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabHeader_tcPedimento_tabPedimentoID_lbx_Header_ManifestQty',N'Cantidad en el manifiesto','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabHeader_tcPedimento_tabPedimentoID_lbx_Header_ManifestQtyUOM',N'Unidad de medida de cantidad del manifiesto','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabHeader_tcPedimento_tabPedimentoID_lbx_Header_ManifestWeight',N'Peso del manifiesto','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabHeader_tcPedimento_tabPedimentoID_lbx_Header_ManifestWeightUOM',N'Unidad de medida del peso en el manifiesto','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabHeader_tcPedimento_tabPedimentoID_lbx_Header_MXExchangeRate',N'Tipo de cambio de mexico','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabHeader_tcPedimento_tabPedimentoID_lbx_Header_PedimentoBeginDate',N'Fecha inicial','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabHeader_tcPedimento_tabPedimentoID_lbx_Header_PedimentoCode',N'Código del pedimento','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabHeader_tcPedimento_tabPedimentoID_lbx_Header_PedimentoEndDate',N'Fecha final','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabHeader_tcPedimento_tabPedimentoID_lbx_Header_PedimentoEnteredDate',N'Fecha de entrada','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabHeader_tcPedimento_tabPedimentoID_lbx_Header_PedimentoPaymentDate',N'Fecha de pago','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabHeader_tcPedimento_tabPedimentoID_lbx_Header_PedimentoRegimen',N'Régimen del pedimento','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabHeader_tcPedimento_tabPedimentoID_lbx_Header_SubmissionDate',N'Fecha de envío','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabHeader_tcPedimento_tabPedimentoID_lbxAuthorization',N'Autorización','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabHeader_tcPedimento_tabPedimentoID_lbxHeaderMisc',N'Miscelánea','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabHeader_tcPedimento_tabPedimentoID_lbxLocation',N'Ubicación','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabHeader_tcPedimento_tabPedimentoID_lbxManifest',N'Manifiesto','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabHeader_tcPedimento_tabPedimentoID_lbxMOT',N'Modo de transporte','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabHeader_tcPedimento_tabPedimentoID_lbxPedDates',N'Fechas del pedimento','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabHSLineArticle303_lbxHSLineArticle303',N'Artículo 303','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabHSLineItemFees_lbxHSLineItemFees',N'Cuotas por artículo y fracción mexicana','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabInvoice_lbxInvoice',N'Factura','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabObservations_lbxObservations',N'Observaciones','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabParties_lnkbtnToggleFilterParties',N'Mostrar Filtro','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabParties_rgParties_ctl00_ctl03_ctl01_ChangePageSizeLabel',N'Tamano de la página','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabpnlAnnex31DischgTariffs_lbxAnnex31DischgTariffs',N'Tarifas','N','N') , (1999,'9/6/2016','es-MX','tcMain_tabpnlExports_lbxExports',N'Exportaciones','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabpnlHeader_lbxPackaging',N'Embalaje','N','N') , (1999,'9/6/2016','es-MX','tcMain_tabpnlImports_lbxImports',N'Importaciones','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabRectificacionesFees_lbxRectificacionesFees',N'Coutas de rectificación','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabRules_lbxRules',N'Reglas','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabTransportation_lbxTransportation',N'Transporte','N','N') , (1999,'3/1/2016','es-MX','tcMain_tabTransportation_rwTransportation_C_lbx_Transportation_CarrierAddress',N'Dirección del Transportista','N','N') , (1999,'3/1/2016','es-MX','tdMainMenu',N'Facturas de exportación','N','N') , (1999,'3/1/2016','es-MX','TeamNum',N'Número de Equipo','N','N') , (1999,'3/1/2016','es-MX','teesting',N'Prrobando','N','N') , (1999,'9/6/2016','es-MX','Template Name',N'Nombre de Plantilla','N','N') , (1999,'9/6/2016','es-MX','TemplateName',N'Nombre de la Plantilla','N','N') , (1999,'3/1/2016','es-MX','Text',N'Texto','N','N') , (1999,'3/1/2016','es-MX','Text Load Integration Files_aspx',N'Cargar Archivos de Integracion','N','N') , (1999,'9/6/2016','es-MX','Text To Translate',N'Texto a Traducir','N','N') , (1999,'3/1/2016','es-MX','Textile Category',N'Categoria textil','N','N') , (1999,'3/1/2016','es-MX','TextileCategory',N'Categoría Textil','N','N') , (1999,'9/6/2016','es-MX','TextToTranslate',N'Texto a Traducir','N','N') , (1999,'3/1/2016','es-MX','That expire on or before',N'Que expiran en o antes de:','N','N') , (1999,'9/6/2016','es-MX','This party will not be screened.',N'Esta entidad no sera filtrada','N','N') , (1999,'3/1/2016','es-MX','Time Stamp',N'Tiempo','N','N') , (1999,'3/1/2016','es-MX','TimezoneOffset',N'Zona Horaria','N','N') , (1999,'2/24/2010','es-MX','Title',N'Título','N','N') , (1999,'9/11/2015','es-MX','Title is required',N'Titulo Requerido','N','N') , (1999,'3/1/2016','es-MX','Tittle',N'Título','N','N') , (1999,'2/24/2010','es-MX','To',N'A','N','N') , (1999,'3/1/2016','es-MX','To Company',N'Embarcado hacia','N','N') , (1999,'3/1/2016','es-MX','To Company Literal',N'A compañía literal','N','N') , (1999,'9/6/2016','es-MX','To Date',N'Fecha de Fin','N','N') , (1999,'4/8/2010','es-MX','To Do',N'Por Hacer','N','N') , (1999,'3/1/2016','es-MX','To Exp',N'Destino','N','N') , (1999,'3/1/2016','es-MX','To Imp',N'Destino','N','N') , (1999,'3/1/2016','es-MX','To Zone ID',N'A ZonaID','N','N') , (1999,'3/1/2016','es-MX','ToCompany',N'Embarcado hacia','N','N') , (1999,'3/1/2016','es-MX','ToCompanyLiteral',N'A compañía literal','N','N') , (1999,'9/6/2016','es-MX','ToDate',N'Fecha de Fin','N','N') , (1999,'3/1/2016','es-MX','ToExp',N'Destino','N','N') , (1999,'3/1/2016','es-MX','ToImp',N'Destino','N','N') , (1999,'3/1/2016','es-MX','Total Amount Of Document',N'Cantidad Total de Documento','N','N') , (1999,'3/1/2016','es-MX','Total Amount Of Warranty',N'Cantidad Total de Garantía','N','N') , (1999,'9/8/2016','es-MX','Total Items',N'Artículos Totales','N','N') , (1999,'3/1/2016','es-MX','Total MXP Value',N'MX Valor Total','N','N') , (1999,'3/1/2016','es-MX','Total Number of Users with Group Access for All PartnerID',N'Numero total de usuarios','N','N') , (1999,'3/1/2016','es-MX','Total Payment Of Pedimento',N'Pago total de Pedimento','N','N') , (1999,'3/1/2016','es-MX','Total US Value',N'US Valor Total','N','N') , (1999,'3/1/2016','es-MX','Total Value',N'Valor Total','N','N') , (1999,'3/1/2016','es-MX','TotalAmountOfDocument',N'Cantidad Total de Documento','N','N') , (1999,'3/1/2016','es-MX','TotalAmountOfWarranty',N'Cantidad Total de Garantía','N','N') , (1999,'3/1/2016','es-MX','TotalCommercialValue',N'Total del valor comercial','N','N') , (1999,'3/1/2016','es-MX','TotalDollarValue',N'Total del valor en dólares','N','N') , (1999,'3/1/2016','es-MX','TotalDuties',N'Total de obligaciones','N','N') , (1999,'9/8/2016','es-MX','TotalItems',N'Artículos Totales','N','N') , (1999,'3/1/2016','es-MX','TotalMXPValue',N'MX Valor Total','N','N') , (1999,'3/1/2016','es-MX','TotalPaymentOfPedimento',N'Pago total de Pedimento','N','N') , (1999,'3/1/2016','es-MX','Totals',N'Totales','N','N') , (1999,'3/1/2016','es-MX','TotalUSValue',N'US Valor Total','N','N') , (1999,'3/1/2016','es-MX','TotalValue',N'Valor Total','N','N') , (1999,'3/1/2016','es-MX','TotalValueNonOriginating',N'Total valor no originiario','N','N') , (1999,'3/1/2016','es-MX','ToZoneID',N'A ZonaID','N','N') , (1999,'9/6/2016','es-MX','Traced Value',N'Valor Trazado','N','N') , (1999,'9/8/2016','es-MX','TracedValue',N'Valor rastreado','N','N') , (1999,'9/6/2016','es-MX','Tracking Information',N'Información de Busqueda','N','N') , (1999,'3/1/2016','es-MX','Trailer',N'Número de Factura','N','N') , (1999,'3/1/2016','es-MX','TRANS',N'Transacciones no listas para Asignacion','N','N') , (1999,'2/25/2010','es-MX','Transaction Value',N'Valor de Transaccion','N','N') , (1999,'9/6/2016','es-MX','Transactional Information',N'Información de Transacción','N','N') , (1999,'9/6/2016','es-MX','Transactions are not ready for Assignment.',N'Las Transacciones no esta listas para Asignación','N','N') , (1999,'3/1/2016','es-MX','Transfer Notice File',N'Archivo de Aviso de Traslado','N','N') , (1999,'3/1/2016','es-MX','Transfer Notice File Results',N'Resultados de Notificación de Transferencia','N','N') , (1999,'9/6/2016','es-MX','Transfer Protocol',N'Protocolo de Transferencia','N','N') , (1999,'3/1/2016','es-MX','TransferNoticeFile',N'Archivo de Aviso de Traslado','N','N') , (1999,'3/1/2016','es-MX','TransferNoticeFileResults',N'Resultados de Notificación de Transferencia','N','N') , (1999,'3/1/2016','es-MX','TransitFlag',N'Bandera de Tránsito','N','N') , (1999,'9/6/2016','es-MX','Translated Text',N'Texto Traducido','N','N') , (1999,'9/6/2016','es-MX','TranslatedText',N'Texto Traducido','N','N') , (1999,'9/6/2016','es-MX','Transmission Date',N'Fecha de Transmisión','N','N') , (1999,'9/6/2016','es-MX','Transmission History',N'Historial de Transmisiones','N','N') , (1999,'9/6/2016','es-MX','TransmissionDate',N'Fecha de Transmision','N','N') , (1999,'9/6/2016','es-MX','Transmissions',N'Transmisiones','N','N') , (1999,'9/6/2016','es-MX','TransmittedFlag',N'Bandera de Transmitido','N','N') , (1999,'7/7/2014','es-MX','TransmitterData',N'Datos del Emisor','N','N') , (1999,'3/1/2016','es-MX','Transport Id',N'ID de Transportista','N','N') , (1999,'3/1/2016','es-MX','Transport Identifier',N'Identificador de Transporte','N','N') , (1999,'3/1/2016','es-MX','Transportación',N'Transporte','N','N') , (1999,'9/6/2016','es-MX','TRANSPORTATION DETAILS',N'Información de Transporte','N','N') , (1999,'9/6/2016','es-MX','TRANSPORTATION INFORMATION',N'Informacion de Transporte','N','N') , (1999,'3/1/2016','es-MX','TransportId',N'ID de Transporte','N','N') , (1999,'3/1/2016','es-MX','TransportIdentifier',N'Identificador de Transporte','N','N') , (1999,'9/6/2016','es-MX','TransportRefNum',N'Numero de Referencia de Transporte','N','N') , (1999,'3/1/2016','es-MX','TreatyFlag',N'Bandera de Tratado','N','N') , (1999,'9/6/2016','es-MX','Truck Num',N'Número de camión','N','N') , (1999,'3/1/2016','es-MX','Tsca Statement',N'Declaracion TSCA','N','N') , (1999,'3/1/2016','es-MX','TscaStatement',N'Declaracion TSCA','N','N') , (1999,'3/1/2016','es-MX','txdAssist_aspx',N'Assist Setup','N','N') , (1999,'3/1/2016','es-MX','Txn Code',N'Código TXN','N','N') , (1999,'3/1/2016','es-MX','Txn Date',N'Fecha Txn','N','N') , (1999,'3/1/2016','es-MX','Txn ID',N'Identificador de Movimiento','N','N') , (1999,'3/1/2016','es-MX','Txn Num GUID',N'Txn Número Guid','N','N') , (1999,'3/1/2016','es-MX','Txn Qty',N'Cant. Txn','N','N') , (1999,'3/1/2016','es-MX','Txn Qty UOM',N'Unidad de Medida','N','N') , (1999,'3/1/2016','es-MX','Txn Qty Uom Source',N'Fuente Unidad de Medida','N','N') , (1999,'3/1/2016','es-MX','TxnCode',N'Código TXN','N','N') , (1999,'3/1/2016','es-MX','TxnDate',N'FechaTxn','N','N') , (1999,'3/1/2016','es-MX','txnnumguid',N'Txn Número Guid','N','N') , (1999,'3/1/2016','es-MX','TxnQty',N'Cant.Txn','N','N') , (1999,'3/1/2016','es-MX','TxnQtyUom',N'Unidad de Medida','N','N') , (1999,'3/1/2016','es-MX','TxnQtyUomSource',N'Fuente Unidad de Medida','N','N') , (1999,'4/7/2016','es-MX','txtbx HS Number Filter',N'Ingresa Fracción Arancelaria/Palabra Clave','N','N') , (1999,'4/7/2016','es-MX','txtbxHSNumberFilter',N'Ingresa Fracción Arancelaria/Palabra Clave','N','N') , (1999,'3/1/2016','es-MX','txtbxSearchValue',N'Ir','N','N') , (1999,'3/1/2016','es-MX','Type',N'Tipo','N','N') , (1999,'3/1/2016','es-MX','Type Of Account Of Warranty',N'Tipo de Cuenta de Garantía','N','N') , (1999,'3/1/2016','es-MX','Type Of Warranty',N'Tipo de Garantía','N','N') , (1999,'3/1/2016','es-MX','TypeOfAccountOfWarranty',N'Tipo de Cuenta de Garantía','N','N') , (1999,'3/1/2016','es-MX','TypeOfWarranty',N'Tipo de Garantía','N','N') , (1999,'9/6/2016','es-MX','UltimateConsignee',N'Ultimo Consignatario','N','N') , (1999,'4/8/2010','es-MX','UniqueID',N'UniqueID','N','N') , (1999,'9/6/2016','es-MX','Unit Of Measure',N'Unidad de Medida','N','N') , (1999,'3/1/2016','es-MX','Unit Value Of Title',N'Valor Unitario de Título','N','N') , (1999,'3/1/2016','es-MX','UnitValueOfTitle',N'Valor Unitario de Título','N','N') , (1999,'9/11/2015','es-MX','UNPRINTED',N'No impreso','N','N') , (1999,'3/1/2016','es-MX','UOM',N'Unidad de Medida','N','N') , (1999,'9/6/2016','es-MX','UOM1',N'Unidad de medida 1','N','N') , (1999,'9/6/2016','es-MX','UOM2',N'Unidad de medida','N','N') , (1999,'9/6/2016','es-MX','UOM3',N'Unidad de medida 3','N','N') , (1999,'3/1/2016','es-MX','Update',N'Actualizar','N','N') , (1999,'3/1/2016','es-MX','Update In Progress Expanding',N'Expandiendo','N','N') , (1999,'3/1/2016','es-MX','Update In Progress Printing',N'Imprimiendo...','N','N') , (1999,'3/1/2016','es-MX','Update In Progress Text',N'Actualización en proceso...','N','N') , (1999,'3/1/2016','es-MX','updatefromcontent',N'actualizar','N','N') , (1999,'3/1/2016','es-MX','UpdateInProgressExpanding',N'Expandiendo','N','N') , (1999,'3/1/2016','es-MX','UpdateInProgressPrinting',N'Imprimiendo...','N','N') , (1999,'3/1/2016','es-MX','UpdateInProgressText',N'Actualización en proceso...','N','N') , (1999,'3/1/2016','es-MX','Upload',N'Subir archivo','N','N') , (1999,'9/6/2016','es-MX','Upload and Add',N'Cargar y Agregar','N','N') , (1999,'3/1/2016','es-MX','Upload and Import Data',N'Subir e importar datos','N','N') , (1999,'9/11/2015','es-MX','Upload Certifying Document',N'Cargar Documento Certificado','N','N') , (1999,'3/1/2016','es-MX','Upload File',N'Cargar Archivo','N','N') , (1999,'3/1/2016','es-MX','Upload Initial Fixed Asset',N'Carga Inicial del Activo Fijo','N','N') , (1999,'3/1/2016','es-MX','Upload Result File',N'Subir archivo','N','N') , (1999,'3/1/2016','es-MX','UploadandImportData',N'Cargar archivo','N','N') , (1999,'9/6/2016','es-MX','US HS Number',N'US Número HS','N','N') , (1999,'9/6/2016','es-MX','US Product Description',N'Descripción del Producto US','N','N') , (1999,'3/1/2016','es-MX','Use Currency Flag',N'¿utilizar moneda?','N','N') , (1999,'9/11/2015','es-MX','Use Existing',N'Usar Existente','N','N') , (1999,'9/11/2015','es-MX','Use Solicitation Email',N'Usar Correo de Solicitud','N','N') , (1999,'9/6/2016','es-MX','Use Workflow Schedule Flag',N'Usar Bandera de Calendario de Flujos de Trabajo','N','N') , (1999,'3/1/2016','es-MX','UseCurrencyFlag',N'Bandera de uso de Moneda','N','N') , (1999,'9/6/2016','es-MX','User',N'Usuario','N','N') , (1999,'3/1/2016','es-MX','User Customization',N'Personalización de Usuario','N','N') , (1999,'9/6/2016','es-MX','User Guid',N'GUID de usuario','N','N') , (1999,'9/6/2016','es-MX','User ID',N'ID de Usuario','N','N') , (1999,'3/1/2016','es-MX','User Information',N'Información de Usuario','N','N') , (1999,'3/1/2016','es-MX','User Login',N'Login Usuario','N','N') , (1999,'3/1/2016','es-MX','User Name',N'Nombre de Usuario','N','N') , (1999,'3/1/2016','es-MX','UserCustomization',N'Personalización de Usuario','N','N') , (1999,'3/1/2016','es-MX','UserDefined1',N'Usuario Definido 1','N','N') , (1999,'3/1/2016','es-MX','UserDefined2',N'Usuario Definido 2','N','N') , (1999,'3/1/2016','es-MX','UserDefined3',N'Usuario Definido 3','N','N') , (1999,'3/1/2016','es-MX','UserInformation',N'Información de Usuario','N','N') , (1999,'3/1/2016','es-MX','UserLogin',N'Registro de Usuarios','N','N') , (1999,'2/22/2010','es-MX','Username',N'Nombre de usuario','N','N') , (1999,'9/6/2016','es-MX','UseWorkflowScheduleFlag',N'Usar Bandera de Calendario de Flujos de Trabajo','N','N') , (1999,'3/1/2016','es-MX','Valid Flag',N'Bandera de Validación','N','N') , (1999,'9/6/2016','es-MX','Valid HS Number',N'Número de sistema armonizado válido','N','N') , (1999,'3/1/2016','es-MX','Valid Level',N'Nivel de validez','N','N') , (1999,'9/6/2016','es-MX','Valid UOM1',N'Unidad de médida válida 1','N','N') , (1999,'3/1/2016','es-MX','Validate',N'Validar','N','N') , (1999,'9/6/2016','es-MX','Validate AKA',N'Validar AKA','N','N') , (1999,'9/6/2016','es-MX','Validate Currency Exchange Rates',N'Validar El Cambio de Moneda','N','N') , (1999,'9/6/2016','es-MX','ValidateAKA',N'Validar AKA','N','N') , (1999,'3/1/2016','es-MX','Validation Code',N'Código de Validacion','N','N') , (1999,'3/1/2016','es-MX','Validation Desc',N'Descripción de la Validación','N','N') , (1999,'3/1/2016','es-MX','Validation Description',N'Descripción de Validacion','N','N') , (1999,'3/1/2016','es-MX','Validation Electronic Signature',N'Firma electrónica de validación','N','N') , (1999,'9/6/2016','es-MX','Validation has completed without warnings.',N'Validación Completada sin errores','N','N') , (1999,'9/6/2016','es-MX','Validation Key',N'Llave de validación','N','N') , (1999,'9/6/2016','es-MX','Validation Messages',N'Mensajes de Validación','N','N') , (1999,'3/1/2016','es-MX','Validation Status',N'Estado de Validacion','N','N') , (1999,'3/1/2016','es-MX','Validation Step',N'Paso de validacion','N','N') , (1999,'3/1/2016','es-MX','Validation Type',N'Tipo de Validación','N','N') , (1999,'3/1/2016','es-MX','ValidationCode',N'Código de Validación','N','N') , (1999,'3/1/2016','es-MX','ValidationDesc',N'Descripción de la Validación','N','N') , (1999,'3/1/2016','es-MX','ValidationElectronicSignature',N'Firma electrónica de validación','N','N') , (1999,'9/6/2016','es-MX','ValidationKey',N'Llave de validación','N','N') , (1999,'9/6/2016','es-MX','ValidationMessages',N'Mensajes de Validación','N','N') , (1999,'3/1/2016','es-MX','ValidationType',N'Tipo de Validación','N','N') , (1999,'3/1/2016','es-MX','VALIDEXPORT',N'Debe introducirse una fecha de exportacion valida','N','N') , (1999,'3/1/2016','es-MX','VALIDFLAG',N'Validar','N','N') , (1999,'3/1/2016','es-MX','VALIDFZONE',N'En ‘ID de la Zona de Origen’ debe haber cuatro caracteres de largo o estar vacio','N','N') , (1999,'9/6/2016','es-MX','ValidHSNumber',N'Número de sistema armonizado válido','N','N') , (1999,'3/1/2016','es-MX','ValidLevel',N'Nivel de validez','N','N') , (1999,'3/1/2016','es-MX','VALIDMANQTY',N'La cantidad del Manifiesto debe ser numerica','N','N') , (1999,'3/1/2016','es-MX','VALIDREC',N'Debe introducirse una fecha de recibo valida','N','N') , (1999,'9/6/2016','es-MX','ValidUOM1',N'Unidad de médida válida 1','N','N') , (1999,'3/1/2016','es-MX','VALIDVALUE',N'El valor debe ser numerico','N','N') , (1999,'3/1/2016','es-MX','VALREP01',N'Presiona ''Validar'' para Iniciar el Proceso','N','N') , (1999,'3/1/2016','es-MX','Value',N'Valor','N','N') , (1999,'3/1/2016','es-MX','Value Method Literal',N'Método de Valor','N','N') , (1999,'9/6/2016','es-MX','ValueList',N'Valores','N','N') , (1999,'3/1/2016','es-MX','ValueMethod',N'Método de Valuación','N','N') , (1999,'3/1/2016','es-MX','ValueMethodLiteral',N'Método de Valor','N','N') , (1999,'3/1/2016','es-MX','Values',N'Valores','N','N') , (1999,'4/8/2014','es-MX','VARIABLE',N'Variable','N','N') , (1999,'3/1/2016','es-MX','Vehicle Data',N'Información del vehículo','N','N') , (1999,'3/1/2016','es-MX','VehicleData',N'Información del vehículo','N','N') , (1999,'9/6/2016','es-MX','Verify',N'Verificar','N','N') , (1999,'9/6/2016','es-MX','Vessel/Air Carrier',N'Buque/Compañía Aérea','N','N') , (1999,'3/1/2016','es-MX','vid_IMMEXDefaults',N'Contribuyente','N','N') , (1999,'3/1/2016','es-MX','vid_ProductCrossReference',N'Referencia Cruzada de Productos','N','N') , (1999,'3/1/2016','es-MX','vidProductCrossReference',N'Referencia Cruzada de Productos','N','N') , (1999,'2/22/2010','es-MX','View',N'Ver','N','N') , (1999,'9/11/2015','es-MX','View BOM',N'Ver BOM','N','N') , (1999,'9/11/2015','es-MX','View Details',N'Ver Detalles','N','N') , (1999,'9/6/2016','es-MX','View SQL',N'Ver Consulta','N','N') , (1999,'9/6/2016','es-MX','View/Add Comments',N'Ver/Agregar Comentarios','N','N') , (1999,'9/6/2016','es-MX','View/Add Notes',N'Ver/Agregar Notas','N','N') , (1999,'9/11/2015','es-MX','VOID',N'Anular','N','N') , (1999,'9/6/2016','es-MX','VoidExplanation',N'Causa de noValidez','N','N') , (1999,'9/6/2016','es-MX','VoidReasonCode',N'Codigo de no Validez','N','N') , (1999,'7/7/2014','es-MX','VoucherData',N'Datos del Comprobante','N','N') , (1999,'9/6/2016','es-MX','Voyage Flight Num',N'No. de Viaje','N','N') , (1999,'9/6/2016','es-MX','VoyageFlightNum',N'No. de Viaje','N','N') , (1999,'3/1/2016','es-MX','Warning',N'Mensaje','N','N') , (1999,'3/1/2016','es-MX','Warnings',N'Advertencias','N','N') , (1999,'9/6/2016','es-MX','Web Links',N'Enlaces Web','N','N') , (1999,'9/6/2016','es-MX','Web Links (Hide)',N'Enlaces Web (Esconder)','N','N') , (1999,'9/6/2016','es-MX','Web Links (Show)',N'Enlaces Web (Mostrar)','N','N') , (1999,'9/6/2016','es-MX','Web Method',N'Método web','N','N') , (1999,'9/6/2016','es-MX','Web Service',N'Servicio web','N','N') , (1999,'9/6/2016','es-MX','WebLinks',N'EnlacesWeb','N','N') , (1999,'9/6/2016','es-MX','WebMethod',N'Método web','N','N') , (1999,'9/6/2016','es-MX','WebService',N'Servicio web','N','N') , (1999,'4/8/2010','es-MX','Website',N'Sitio Web','N','N') , (1999,'3/1/2016','es-MX','Weight',N'Peso *','N','N') , (1999,'3/1/2016','es-MX','Weight Source',N'Fuente de Peso','N','N') , (1999,'3/1/2016','es-MX','Weight Unit',N'Unidad de Peso','N','N') , (1999,'3/1/2016','es-MX','Weight Uom Source',N'Fuente de unidad de Medida de peso','N','N') , (1999,'3/1/2016','es-MX','WeightSource',N'Fuente de Peso','N','N') , (1999,'3/1/2016','es-MX','WeightUnit',N'Unidad de Peso','N','N') , (1999,'3/1/2016','es-MX','WeightUom',N'Unidad de Medida de Peso *','N','N') , (1999,'3/1/2016','es-MX','WeightUomSource',N'Fuente de unidad de Medida de peso','N','N') , (1999,'3/1/2016','es-MX','WeightVariancePercent',N'Porcentaje de Variación de Peso','N','N') , (1999,'9/6/2016','es-MX','Who',N'Responsable','N','N') , (1999,'9/6/2016','es-MX','Width',N'Anchura','N','N') , (1999,'9/6/2016','es-MX','Word',N'Palabra','N','N') , (1999,'9/6/2016','es-MX','Word Document',N'Documento de Word','N','N') , (1999,'3/1/2016','es-MX','WORKFLOW HAS FINISHED RUNNING',N'La tarea ha terminado de correr','N','N') , (1999,'3/1/2016','es-MX','WORKFLOW IS RUNNING PLEASE WAIT',N'El Flujo de Trabajo esta corriendo, favor de esperar...','N','N') , (1999,'3/1/2016','es-MX','WorkflowRunning',N'El Flujo de Trabajo esta corriendo, favor de esperar...','N','N') , (1999,'9/11/2015','es-MX','Worksheet',N'Hoja de Trabajo','N','N') , (1999,'9/11/2015','es-MX','Wt. UOM',N'Unidad de Medida ( Peso)','N','N') , (1999,'3/1/2016','es-MX','Year',N'Año','N','N') , (1999,'2/24/2010','es-MX','Yearly Volume',N'Volumen Anual','N','N') , (1999,'3/1/2016','es-MX','YearNum',N'Número de Año','N','N') , (1999,'3/1/2016','es-MX','Zone ID',N'ID de Zona','N','N') , (1999,'3/1/2016','es-MX','ZoneID',N'ID de Zona','N','N') , (1999,'4/5/2010','fr-FR','&ltPrev',N'Précédent','N','N') , (1999,'2/15/2016','fr-FR','{4} {5} items in {1} pages',N'{4} {5} articles dans {1} les pages','N','N') , (1999,'10/10/2016','fr-FR','Active',N'Active','N','N') , (1999,'4/8/2010','fr-FR','Address',N'l''adresse','N','N') , (1999,'4/8/2010','fr-FR','Addresses',N'Instructions','N','N') , (1999,'4/14/2010','fr-FR','Analysis',N'Analyse','N','N') , (1999,'4/14/2010','fr-FR','Analysis Report',N'Rapport d''analyse','N','N') , (1999,'4/14/2010','fr-FR','AnalysisNo',N'Analyse #','N','N') , (1999,'4/14/2010','fr-FR','Archive',N'Dossier','N','N') , (1999,'4/14/2010','fr-FR','Assigned To',N'Assigné à','N','N') , (1999,'4/14/2010','fr-FR','AuditLog_aspx',N'Record de vérification','N','N') , (1999,'4/14/2010','fr-FR','Bill of Materials',N'Liste des matériaux','N','N') , (1999,'4/14/2010','fr-FR','BillofMaterials',N'Liste des matériaux','N','N') , (1999,'4/8/2010','fr-FR','btnSaveAll',N'Enregistrer tout','N','N') , (1999,'4/5/2010','fr-FR','btxGo',N'Chercher','N','N') , (1999,'4/14/2010','fr-FR','btxSearch',N'Recherche','N','N') , (1999,'4/14/2010','fr-FR','btxShowCalendarFromDate',N'Calendrier','N','N') , (1999,'4/14/2010','fr-FR','btxShowCalendarThruDate',N'Calendrier','N','N') , (1999,'4/5/2010','fr-FR','Category',N'Catégorie','N','N') , (1999,'4/14/2010','fr-FR','Certificate',N'Certificat','N','N') , (1999,'4/8/2010','fr-FR','chkbxHitsOnly',N'Hits Only?','N','N') , (1999,'10/10/2016','fr-FR','chxAddExclude',N'Exclure les mots communs ou fréquents','N','N') , (1999,'2/15/2016','fr-FR','chxbxAdvanceSearch',N'Recherche de la description guidée','N','N') , (1999,'2/15/2016','fr-FR','chxbxContent',N'Afficher les actualités de content','N','N') , (1999,'2/15/2016','fr-FR','chxbxDisplayQualifiedNumbers',N'Uniquement les numéros valides','N','N') , (1999,'2/15/2016','fr-FR','chxbxHighlightSearchTerms',N'Mettre en évidence les mots recherchés dans la résultat de recherche','N','N') , (1999,'2/15/2016','fr-FR','chxbxIncludeParent',N'Inclure Numéro Parent','N','N') , (1999,'11/16/2018','fr-FR','chxbxIncludeValidationDetailInExtract',N'Inclure les détails de la Validation en extrait d’Excel/PDF','N','N') , (1999,'2/15/2016','fr-FR','chxbxIndustry',N'Afficher les actualités de l''industrie','N','N') , (1999,'2/15/2016','fr-FR','chxBxLastLogin',N'Affichez depuis la dernière connexion:','N','N') , (1999,'2/15/2016','fr-FR','chxbxMarkingDescriptionsExpanded',N'Afficher Texte Intégral pour toutes les Descriptions','N','N') , (1999,'2/15/2016','fr-FR','chxbxResultsDetail0_RoundAtEachStep',N'Arrondir des valeurs à chaque étape','N','N') , (1999,'2/15/2016','fr-FR','chxbxResultsDetail0_ShowCalculationSteps',N'Afficher les étapes des calculs','N','N') , (1999,'2/15/2016','fr-FR','chxbxResultsDetail1_RoundAtEachStep',N'Arrondir des valeurs à chaque étape','N','N') , (1999,'2/15/2016','fr-FR','chxbxResultsDetail1_ShowCalculationSteps',N'Afficher les étapes des calculs','N','N') , (1999,'2/15/2016','fr-FR','chxbxSaveSearches_PartnerIdShared',N'Partager avec les autres utilisateurs (avec le même partenaire)','N','N') , (1999,'2/15/2016','fr-FR','chxbxSearchTypeBindingRulings',N'Décisions contraignantes','N','N') , (1999,'2/15/2016','fr-FR','chxbxSearchTypeChapterNotes',N'Notes du chapitre','N','N') , (1999,'2/15/2016','fr-FR','chxbxSearchTypeChargesNotes',N'Notes des charges','N','N') , (1999,'2/15/2016','fr-FR','chxbxSearchTypeHSDescription',N'SH description','N','N') , (1999,'2/15/2016','fr-FR','chxbxSearchTypeHSNumber',N'Numéro SH','N','N') , (1999,'2/15/2016','fr-FR','chxbxSearchTypeKeywords',N'Mots clés','N','N') , (1999,'2/15/2016','fr-FR','chxbxShowAllAvailableControls',N'Afficher toutes les descriptions des Contrôles disponibles','N','N') , (1999,'2/15/2016','fr-FR','chxbxShowAllCountriesChargeDocuments',N'Afficher les documents qui s''appliquent à tous les pays','N','N') , (1999,'2/15/2016','fr-FR','chxbxShowAllCountriesControls',N'Afficher les documents qui s''appliquent à tous les pays','N','N') , (1999,'2/15/2016','fr-FR','chxbxShowAllCountriesImportControls',N'Afficher les documents qui s''appliquent à tous les pays','N','N') , (1999,'2/15/2016','fr-FR','chxbxShowAllFTACountries',N'Afficher les documents qui s''appliquent à tous les pays','N','N') , (1999,'2/15/2016','fr-FR','chxbxShowAllHSCharge',N'Afficher les documents qui s''appliquent à tous les numéros SH','N','N') , (1999,'2/15/2016','fr-FR','chxbxShowAllHSControls',N'Afficher les documents qui s''appliquent à tous les numéros SH','N','N') , (1999,'2/15/2016','fr-FR','chxbxShowAllHSImportControls',N'Afficher les documents qui s''appliquent à tous les numéros SH','N','N') , (1999,'2/15/2016','fr-FR','chxbxShowAllHSNumbers',N'Afficher les documents qui s''appliquent à tous les numéros SH','N','N') , (1999,'2/15/2016','fr-FR','chxbxShowAllMainRates',N'Afficher tous les taux principaux','N','N') , (1999,'2/15/2016','fr-FR','chxbxShowAntiDumping',N'Afficher les autres /antidumping taux','N','N') , (1999,'2/15/2016','fr-FR','chxbxShowChapterFilters',N'Afficher les filtres du chapitre','N','N') , (1999,'2/15/2016','fr-FR','chxbxShowDescriptionInResult',N'Afficher SH Description dans le résultat','N','N') , (1999,'2/15/2016','fr-FR','chxbxShowFullDescriptionControls',N'Afficher les descriptions complètes pour tous les contrôles','N','N') , (1999,'2/15/2016','fr-FR','chxbxShowFullNoteText',N'Afficher le texte complet pour toutes les notes','N','N') , (1999,'2/15/2016','fr-FR','chxbxShowHeadingFilters',N'Afficher les filtres de l''en tête','N','N') , (1999,'2/15/2016','fr-FR','chxbxShowMatchesFilters',N'Afficher les filtres de correspondance','N','N') , (1999,'2/15/2016','fr-FR','chxbxShowPartnerIdShared',N'Afficher les recherches partagées par les autres utilisateurs','N','N') , (1999,'2/15/2016','fr-FR','chxbxShowRecentSearches',N'Afficher les recherches récentes','N','N') , (1999,'2/15/2016','fr-FR','chxbxShowRecentSelections',N'Afficher les dernières sélections du classement mondial','N','N') , (1999,'2/15/2016','fr-FR','chxbxShowResultsFilters',N'Afficher les filtres des résultats','N','N') , (1999,'2/15/2016','fr-FR','chxbxShowSavedSearches',N'Afficher les recherches sauvegardées','N','N') , (1999,'2/15/2016','fr-FR','chxbxShowUnsavedSearches',N'Afficher des recherches non sauvegardées','N','N') , (1999,'10/10/2016','fr-FR','chxOverride',N'Passer / Override','N','N') , (1999,'10/10/2016','fr-FR','chxSetBlock',N'Bloquer','N','N') , (1999,'4/8/2010','fr-FR','City',N'Ville','N','N') , (1999,'4/14/2010','fr-FR','Classification',N'Classification','N','N') , (1999,'9/16/2010','fr-FR','ClientContentManagement_aspx',N'Tariff Updates','N','N') , (1999,'2/15/2016','fr-FR','cmxbHSNumberDescription_00',N'Phrase entière correspondante','N','N') , (1999,'2/15/2016','fr-FR','cmxbHSNumberDescription_01',N'Tous les mots correspondants','N','N') , (1999,'2/15/2016','fr-FR','cmxbHSNumberDescription_02',N'Un des mots correspondants','N','N') , (1999,'4/14/2010','fr-FR','Comments',N'Commentaires','N','N') , (1999,'4/14/2010','fr-FR','Company',N'Entreprise','N','N') , (1999,'10/10/2016','fr-FR','CompanyAddress',N'Adresse de l''entreprise','N','N') , (1999,'10/10/2016','fr-FR','CompanyCity',N'Ville de l''entreprise','N','N') , (1999,'10/10/2016','fr-FR','CompanyCountryCode',N'Code paysde l''entreprise','N','N') , (1999,'10/10/2016','fr-FR','CompanyID',N'ID','N','N') , (1999,'4/14/2010','fr-FR','CompanyName',N'Nom de l''entreprise','N','N') , (1999,'10/10/2016','fr-FR','CompanyPostalCode',N'Code Postal de l''entreprise','N','N') , (1999,'9/16/2010','fr-FR','CompanyProductRequest_aspx',N'Customer Certificate Request','N','N') , (1999,'10/10/2016','fr-FR','CompanyState',N'Etat de l''entreprise','N','N') , (1999,'4/14/2010','fr-FR','COO',N'Cert','N','N') , (1999,'4/5/2010','fr-FR','Country',N'Pays','N','N') , (1999,'4/14/2010','fr-FR','CountryCode',N'Code du pays','N','N') , (1999,'4/14/2010','fr-FR','countryoforigin',N'Pays d´Origine','N','N') , (1999,'4/5/2010','fr-FR','CurrencyCode',N'Code de devise','N','N') , (1999,'4/14/2010','fr-FR','Date',N'Date','N','N') , (1999,'4/14/2010','fr-FR','Date Reminder Sent',N'Rappel Date de soumission','N','N') , (1999,'4/14/2010','fr-FR','Date Sent',N'Date de livraison','N','N') , (1999,'10/10/2016','fr-FR','DateAdded',N'Date d''Ajout','N','N') , (1999,'4/14/2010','fr-FR','DateSaved',N'GuardadoEn','N','N') , (1999,'4/14/2010','fr-FR','DateSent',N'Posté dans','N','N') , (1999,'4/8/2010','fr-FR','DateSubmitted',N'Soumis le','N','N') , (1999,'4/14/2010','fr-FR','dateupdated',N'Date de mise à jour','N','N') , (1999,'4/14/2010','fr-FR','DaysSinceRequest',N'Jours passés','N','N') , (1999,'10/10/2016','fr-FR','ddxReportFormat',N'Format du rapport','N','N') , (1999,'4/5/2010','fr-FR','Delete',N'Effacer','N','N') , (1999,'4/5/2010','fr-FR','Description',N'Description','N','N') , (1999,'4/5/2010','fr-FR','Detail',N'détail','N','N') , (1999,'4/14/2010','fr-FR','Details',N'Détail','N','N') , (1999,'4/14/2010','fr-FR','Difference',N'Différence','N','N') , (1999,'4/14/2010','fr-FR','Discrepancies',N'Contradiction','N','N') , (1999,'4/14/2010','fr-FR','DocAccessType',N'type d''accès','N','N') , (1999,'4/14/2010','fr-FR','DocType',N'type de document','N','N') , (1999,'10/10/2016','fr-FR','Document',N'Document','N','N') , (1999,'4/14/2010','fr-FR','Document Request Name',N'Nom des demandes de documents','N','N') , (1999,'2/15/2016','fr-FR','drxlstAddSystemMessagesShareDuration',N'1','N','N') , (1999,'2/15/2016','fr-FR','drxlstAddSystemMessagesShareDuration_00',N'1 Jour','N','N') , (1999,'2/15/2016','fr-FR','drxlstAddSystemMessagesShareDuration_01',N'2 Jours','N','N') , (1999,'2/15/2016','fr-FR','drxlstAddSystemMessagesShareDuration_02',N'3 Jours','N','N') , (1999,'2/15/2016','fr-FR','drxlstAddSystemMessagesShareDuration_03',N'4 Jours','N','N') , (1999,'2/15/2016','fr-FR','drxlstAddSystemMessagesShareDuration_04',N'5 Jours','N','N') , (1999,'10/10/2016','fr-FR','drxlstFilter',N'Filtre de recherche','N','N') , (1999,'2/15/2016','fr-FR','drxlstGroupBy_00',N'Pays d''origine','N','N') , (1999,'2/15/2016','fr-FR','drxlstGroupBy_01',N'Numéro SH','N','N') , (1999,'2/15/2016','fr-FR','drxlstGroupBy_02',N'Aucun résultat','N','N') , (1999,'10/10/2016','fr-FR','drxlstNameSoundsLike',N'Algorithmes Phonétiques','N','N') , (1999,'10/10/2016','fr-FR','drxlstUserName',N'Nom de l''utilisateur','N','N') , (1999,'4/8/2010','fr-FR','DTSExcludedWords_aspx',N'Mots DPS exclus','N','N') , (1999,'4/5/2010','fr-FR','Edit',N'Sortir','N','N') , (1999,'4/14/2010','fr-FR','Edit_aspx',N'Modifier Match','N','N') , (1999,'4/8/2010','fr-FR','Eff Date',N'Date d''effet','N','N') , (1999,'4/14/2010','fr-FR','EffDate',N'À compter du','N','N') , (1999,'10/10/2016','fr-FR','EntityName',N'Nom de l''entité','N','N') , (1999,'10/10/2016','fr-FR','EscalationLevel',N'Degré d''escalade','N','N') , (1999,'4/8/2010','fr-FR','Exception Name',N'Nom de l''exception','N','N') , (1999,'4/8/2010','fr-FR','Exceptions',N'Exceptions','N','N') , (1999,'4/8/2010','fr-FR','ExcludedWord',N'Mot Exclu','N','N') , (1999,'4/8/2010','fr-FR','Exp Date',N'Date d''expiration','N','N') , (1999,'10/10/2016','fr-FR','ExpirationDate',N'Date de péremption','N','N') , (1999,'4/14/2010','fr-FR','fidFTABOMRulesAnalysis_aspx',N'Bill of Materials Analysis','N','N') , (1999,'4/14/2010','fr-FR','fidFTAMassAnalysis_aspx',N'Analyse des matériaux en vrac','N','N') , (1999,'4/14/2010','fr-FR','fidProductFTAMaint_aspx',N'TLC des produits certifiés','N','N') , (1999,'10/10/2016','fr-FR','FileName',N'Nom du Fichier','N','N') , (1999,'10/10/2016','fr-FR','FileSize',N'Taille du fichier','N','N') , (1999,'2/15/2016','fr-FR','FILTER_Contains',N'Contient','N','N') , (1999,'2/15/2016','fr-FR','FILTER_DoesNotContain',N'Ne contient pas','N','N') , (1999,'2/15/2016','fr-FR','FILTER_EndsWith',N'Finaliser par','N','N') , (1999,'2/15/2016','fr-FR','FILTER_EqualTo',N'Egal à','N','N') , (1999,'2/15/2016','fr-FR','FILTER_GreaterThan',N'Supérieur à','N','N') , (1999,'2/15/2016','fr-FR','FILTER_GreaterThanOrEqualTo',N'Supérieur à ou égal à','N','N') , (1999,'2/15/2016','fr-FR','FILTER_IsEmpty',N'Est vide','N','N') , (1999,'2/15/2016','fr-FR','FILTER_LessThan',N'Moins de','N','N') , (1999,'2/15/2016','fr-FR','FILTER_LessThanOrEqualTo',N'Moins de ou égal à','N','N') , (1999,'2/15/2016','fr-FR','FILTER_NoFilter',N'Pas de filtre','N','N') , (1999,'2/15/2016','fr-FR','FILTER_NotEqualTo',N'Pas égal à','N','N') , (1999,'2/15/2016','fr-FR','FILTER_NotIsEmpty',N'N''est pas vide','N','N') , (1999,'2/15/2016','fr-FR','FILTER_StartsWith',N'Démarrer avec','N','N') , (1999,'10/10/2016','fr-FR','fmg Add Denied Person_aspx',N'Ajouter un Deni','N','N') , (1999,'10/10/2016','fr-FR','fmg DPS Settings_aspx',N'DPS paramètres','N','N') , (1999,'10/10/2016','fr-FR','fmgAddDeniedPerson_aspx',N'Ajouter un Deni','N','N') , (1999,'2/15/2016','fr-FR','fmgAddKnowledge_aspx',N'Ajouter/ Modifier la connaissance','N','N') , (1999,'4/14/2010','fr-FR','fmgCompanyMaintenance_aspx',N'Entretien','N','N') , (1999,'10/10/2016','fr-FR','fmgDPSSettings_aspx',N'DPS paramètres','N','N') , (1999,'3/10/2013','fr-FR','fmgDTSSpreadsheetImport_aspx',N'Importation d’un Tableur DPS','N','N') , (1999,'2/15/2016','fr-FR','fmgKnowledgeProfile_aspx',N'Profil de connaissance','N','N') , (1999,'4/8/2010','fr-FR','fmgMaintenance_aspx',N'NAFTA Reconciliation Summary Report','N','N') , (1999,'4/14/2010','fr-FR','fmgRulesEntry_aspx',N'Règles d''inscription','N','N') , (1999,'2/15/2016','fr-FR','fmgSubscriptionManagement_aspx',N'Abonnements au Content','N','N') , (1999,'9/16/2010','fr-FR','fmgWorkQueue_aspx',N'Customer Request Detail','N','N') , (1999,'4/14/2010','fr-FR','frdFTAAnalysisReport_aspx',N'Rapport d''analyse des TLC','N','N') , (1999,'4/14/2010','fr-FR','frdFTACert_aspx',N'Certificat de l''ALENA','N','N') , (1999,'7/11/2011','fr-FR','frdFTASupplierCert_aspx',N'Certificat de fournisseur','N','N') , (1999,'4/14/2010','fr-FR','frdNonFTACert_aspx',N'NO Charte TLC','N','N') , (1999,'4/14/2010','fr-FR','From',N'À partir de','N','N') , (1999,'4/14/2010','fr-FR','fsgGroupList_aspx',N'Configurer Groupe','N','N') , (1999,'4/14/2010','fr-FR','fsgUserReset_aspx',N'Configuration de l''utilisateur','N','N') , (1999,'4/14/2010','fr-FR','FTA',N'TLC','N','N') , (1999,'4/14/2010','fr-FR','FTADocument',N'Document','N','N') , (1999,'4/14/2010','fr-FR','fugAuditClassifications_aspx',N'Avis de vérification','N','N') , (1999,'2/15/2016','fr-FR','fugBindingRulings_aspx',N'Décision','N','N') , (1999,'2/15/2016','fr-FR','fugContentAttributes_aspx',N'Attributs de Content du Commerce Mondial','N','N') , (1999,'2/15/2016','fr-FR','fugContentExternalTemplate_aspx',N'Modèle externe de Content','N','N') , (1999,'2/15/2016','fr-FR','fugContentSalesOverview_aspx',N'Aperçu des Ventes de Content','N','N') , (1999,'2/15/2016','fr-FR','fugCountryInfoDetail_aspx',N'Information par pays','N','N') , (1999,'4/5/2010','fr-FR','fugCountryReference_aspx',N'pays de référence','N','N') , (1999,'2/15/2016','fr-FR','fugDocumentAnalyzer_aspx',N'Analyseur de document','N','N') , (1999,'4/14/2010','fr-FR','fugDocumentRequests_aspx',N'Certificate Request','N','N') , (1999,'4/5/2010','fr-FR','fugDocumentRetention_aspx',N'Conservation des documents','N','N') , (1999,'2/15/2016','fr-FR','fugDTSLookup_aspx',N'DPS Requête','N','N') , (1999,'2/15/2016','fr-FR','fugDutyTaxAnalyzer_aspx',N'Analyseur des Droits et Taxes','N','N') , (1999,'2/15/2016','fr-FR','fugECCN_aspx',N'ECN/Liste à double usage','N','N') , (1999,'2/15/2016','fr-FR','fugECCNDetail_aspx',N'ECN/Liste à double usage (recherche rapide)','N','N') , (1999,'2/15/2016','fr-FR','fugeccnlookup_aspx',N'Requête de ECN/Numéro de Contrôle à l''Exportation','N','N') , (1999,'2/15/2016','fr-FR','fugGlobalTariffs_aspx',N'Tarifs globaux','N','N') , (1999,'2/15/2016','fr-FR','fugGlobalTariffsDetail_aspx',N'Tarifs globaux (recherche rapide)','N','N') , (1999,'2/15/2016','fr-FR','fugGlobalTariffsLanding_aspx',N'Tarifs Globaux','N','N') , (1999,'2/15/2016','fr-FR','fugGlobalTariffsLookup_aspx',N'Requêtes des tarifs globaux','N','N') , (1999,'4/5/2010','fr-FR','fugHsReference_aspx',N'Référence de tariff harmonisé','N','N') , (1999,'2/15/2016','fr-FR','fugImportExportVolumes_aspx',N'Analyseur de Volume des Importations/Exportations','N','N') , (1999,'4/5/2010','fr-FR','fugimportfiletotable_aspx',N'télécharger une feuille de calcul','N','N') , (1999,'2/15/2016','fr-FR','fugKnowledge_aspx',N'Réseau de connaissance','N','N') , (1999,'2/15/2016','fr-FR','fugKnowledgeDetail_aspx',N'Détail de connaissance','N','N') , (1999,'2/15/2016','fr-FR','fugLandedCostAnalyzer_aspx',N'Analyseur de prix franco dédouanés','N','N') , (1999,'2/15/2016','fr-FR','fugLegalText_aspx',N'Texte Juridique','N','N') , (1999,'4/14/2010','fr-FR','fugMassUpdate',N'Massive mise à jour','N','N') , (1999,'4/14/2010','fr-FR','fugMassUpdate_aspx',N'Massive mise à jour','N','N') , (1999,'2/15/2016','fr-FR','fugMessages_aspx',N'Messages du système','N','N') , (1999,'4/5/2010','fr-FR','fugOpenQuery_aspx',N'Question Ouverte','N','N') , (1999,'4/14/2010','fr-FR','fugOpenSearch_aspx',N'Recherche dans la classification','N','N') , (1999,'2/15/2016','fr-FR','fugRegulationListUpdates_aspx',N'Mises à jour de liste des règlements','N','N') , (1999,'2/15/2016','fr-FR','fugsearchhistorydetail_aspx',N'Détail d'' Historique des Recherches','N','N') , (1999,'9/16/2010','fr-FR','fugSourcingMatrix_aspx',N'Tariff Calculator','N','N') , (1999,'2/15/2016','fr-FR','fugTariffAnalyzerNew_aspx',N'Analyseur de tarif','N','N') , (1999,'2/15/2016','fr-FR','fugTariffUpdates_aspx',N'Mises à jour du tarif','N','N') , (1999,'2/15/2016','fr-FR','fugWCOIndex_aspx',N'Index Alphabétique de l''OMD','N','N') , (1999,'2/15/2016','fr-FR','fugwconotes_aspx',N'Notes Explicatives de l''OMD','N','N') , (1999,'4/8/2010','fr-FR','Full Name',N'Nom complet','N','N') , (1999,'4/14/2010','fr-FR','fxdBrokerImportDashboard_aspx',N'Billets Liquidation','N','N') , (1999,'3/10/2013','fr-FR','fxdDPSQuery_aspx',N'Recherche DPS','N','N') , (1999,'3/10/2013','fr-FR','fxdDTSHistory_aspx',N'Historique des Recherches DPS','N','N') , (1999,'3/10/2013','fr-FR','fxdDTSNotes_aspx',N'Notes DPS','N','N') , (1999,'3/10/2013','fr-FR','fxdDTSQuery_aspx',N'Recherche DPS','N','N') , (1999,'3/10/2013','fr-FR','fxdDTSQueryDetail_aspx',N'Détail des Recherches DPS','N','N') , (1999,'3/10/2013','fr-FR','fxdDTSRegulationList_aspx',N'Liste des Règlementations DPS','N','N') , (1999,'3/10/2013','fr-FR','fxdDTSWebserviceTest_aspx',N'Evaluation du Service Web DPS','N','N') , (1999,'4/8/2010','fr-FR','fxdECCNQuery_aspx',N'ECCN Classification','N','N') , (1999,'4/14/2010','fr-FR','fxdEntryValidation_aspx',N'Validation des billets','N','N') , (1999,'4/14/2010','fr-FR','fxdEntryVisibilitySummary_aspx',N'Ticket Résumé','N','N') , (1999,'4/14/2010','fr-FR','fxdPostEntryAmendment_aspx',N'Après modification','N','N') , (1999,'10/10/2016','fr-FR','GroupName',N'Nom de groupe','N','N') , (1999,'10/10/2016','fr-FR','Hits',N'succès','N','N') , (1999,'4/5/2010','fr-FR','hlbtnAddToMyQueries',N'Mes Questions: Ajouter','N','N') , (1999,'4/5/2010','fr-FR','hlbtnDeleteTemplate',N'Suppression du modèle','N','N') , (1999,'4/5/2010','fr-FR','hlbtnSaveTemplate',N'Sauvegarde du modèle','N','N') , (1999,'4/5/2010','fr-FR','hlbtnSubmit',N'soumettre','N','N') , (1999,'4/5/2010','fr-FR','hlExit',N'Sortir','N','N') , (1999,'4/14/2010','fr-FR','hlkExport',N'Exportation','N','N') , (1999,'4/5/2010','fr-FR','hllblExit',N'Sortir','N','N') , (1999,'4/8/2010','fr-FR','hlSearch',N'Recherche','N','N') , (1999,'4/20/2010','fr-FR','hlxAddNew',N'Ajouter','N','N') , (1999,'4/14/2010','fr-FR','hlxbtnSubmit',N'Analyser','N','N') , (1999,'4/14/2010','fr-FR','hlxCOO',N'Pays d''origine','N','N') , (1999,'4/14/2010','fr-FR','hlxCountryOfOrigin',N'Pays d´Origine','N','N') , (1999,'4/14/2010','fr-FR','hlxDelete',N'Supprimer','N','N') , (1999,'4/14/2010','fr-FR','hlxDocLinks',N'Documents','N','N') , (1999,'4/14/2010','fr-FR','hlxDocType',N'Type de document','N','N') , (1999,'10/10/2016','fr-FR','hlxDTSSearchResultsReport',N'Rapport sur les résultats de la recherche','N','N') , (1999,'4/14/2010','fr-FR','hlxEdit',N'Éditer','N','N') , (1999,'4/14/2010','fr-FR','hlxEmail',N'E-mail','N','N') , (1999,'4/14/2010','fr-FR','hlxEmployee',N'Employé','N','N') , (1999,'4/5/2010','fr-FR','hlxExit',N'Sortir','N','N') , (1999,'4/5/2010','fr-FR','hlxExport',N'Exporter','N','N') , (1999,'4/14/2010','fr-FR','hlxField',N'Domaine','N','N') , (1999,'4/14/2010','fr-FR','hlxlblAddCustomer',N'Ajouter à la clientèle','N','N') , (1999,'4/14/2010','fr-FR','hlxlblCopy',N'Copie','N','N') , (1999,'4/14/2010','fr-FR','hlxlblExit',N'Aller','N','N') , (1999,'4/14/2010','fr-FR','hlxlblFill',N'Source Remplissez','N','N') , (1999,'4/14/2010','fr-FR','hlxlblGenerate',N'Générer','N','N') , (1999,'4/14/2010','fr-FR','hlxlblLoad',N'Charge','N','N') , (1999,'4/14/2010','fr-FR','hlxlblNew',N'Nouveau','N','N') , (1999,'4/14/2010','fr-FR','hlxlblSave',N'Garder','N','N') , (1999,'4/14/2010','fr-FR','hlxlblVoid',N'Vide','N','N') , (1999,'4/14/2010','fr-FR','hlxNetCost',N'Coût net','N','N') , (1999,'4/14/2010','fr-FR','hlxNote',N'Note','N','N') , (1999,'4/14/2010','fr-FR','hlxOperator',N'Opérateur','N','N') , (1999,'4/14/2010','fr-FR','hlxPreferenceCriterion',N'Critère de préférence','N','N') , (1999,'4/14/2010','fr-FR','hlxProducer',N'Producteur','N','N') , (1999,'4/14/2010','fr-FR','hlxProduct',N'Produit','N','N') , (1999,'4/14/2010','fr-FR','hlxProductDesc',N'Description','N','N') , (1999,'4/14/2010','fr-FR','hlxRuleCategory',N'Traité','N','N') , (1999,'4/14/2010','fr-FR','hlxRuleFlag',N'Type','N','N') , (1999,'4/14/2010','fr-FR','hlxRuleKey',N'Key règle','N','N') , (1999,'4/14/2010','fr-FR','hlxRuleName',N'Nom de la règle','N','N') , (1999,'4/14/2010','fr-FR','hlxRuleSequence',N'Séquence','N','N') , (1999,'4/7/2010','fr-FR','hlxSearch',N'Recherche','N','N') , (1999,'4/14/2010','fr-FR','hlxSelectMultipleProducts',N'Choisissez des produits','N','N') , (1999,'4/14/2010','fr-FR','hlxSelectProducts',N'Sélectionnez un produit','N','N') , (1999,'4/14/2010','fr-FR','hlxtmgProductNumFTACertProductDesc',N'Produit','N','N') , (1999,'4/14/2010','fr-FR','hlxValueList',N'Valeur','N','N') , (1999,'4/5/2010','fr-FR','HsNum',N'<NAME>','N','N') , (1999,'4/8/2010','fr-FR','Hyperlink1',N'Liste de contrôle du commerce par pays','N','N') , (1999,'4/5/2010','fr-FR','hyplnkExit',N'Sortir','N','N') , (1999,'4/5/2010','fr-FR','hyplnkSearch',N'Chercher','N','N') , (1999,'2/15/2016','fr-FR','hyxlinkResultsDetail0_Close',N'Fermer','N','N') , (1999,'2/15/2016','fr-FR','hyxlinkResultsDetail0_Duplicate',N'(dupliquer et comparer)','N','N') , (1999,'2/15/2016','fr-FR','hyxlinkResultsDetail1_Close',N'Fermer','N','N') , (1999,'2/15/2016','fr-FR','hyxlinkResultsDetail1_Duplicate',N'(dupliquer et comparer)','N','N') , (1999,'2/15/2016','fr-FR','hyxlnkAddSystemMessages',N'Garder','N','N') , (1999,'2/15/2016','fr-FR','hyxlnkAdvancedSearch',N'Recherche Avancée','N','N') , (1999,'2/15/2016','fr-FR','hyxlnkAutoSize',N'TailleAutomatique','N','N') , (1999,'2/15/2016','fr-FR','hyxlnkBottomOfPage',N'Bas','N','N') , (1999,'2/15/2016','fr-FR','hyxlnkCancelSystemMessages',N'Annuler','N','N') , (1999,'2/15/2016','fr-FR','hyxlnkCCLCC',N'Liste de contrôle du commerce tableau de pays','N','N') , (1999,'2/15/2016','fr-FR','hyxlnkClose',N'Fermer','N','N') , (1999,'10/10/2016','fr-FR','hyxlnkDetails',N'Détails','N','N') , (1999,'4/14/2010','fr-FR','hyxlnkDocumentRetention',N'Conservation des documents','N','N') , (1999,'10/10/2016','fr-FR','hyxlnkDTSSearchResultsReport',N'DPS relevé historique','N','N') , (1999,'2/15/2016','fr-FR','hyxlnkExit',N'Sortir','N','N') , (1999,'2/15/2016','fr-FR','hyxlnkFavorites',N'Favoris','N','N') , (1999,'2/15/2016','fr-FR','hyxlnkFavoritesImage',N'Favoris','N','N') , (1999,'2/15/2016','fr-FR','hyxlnkFullSite',N'Afficher le site complet','N','N') , (1999,'4/14/2010','fr-FR','hyxlnkGenerate',N'Générer','N','N') , (1999,'2/15/2016','fr-FR','hyxlnkGenerateLink',N'Recherches récentes','N','N') , (1999,'2/15/2016','fr-FR','hyxlnkGlobalClassificationSelection',N'Sélectionnez du classement mondial','N','N') , (1999,'2/15/2016','fr-FR','hyxlnkLogout',N'Se déconnecter','N','N') , (1999,'2/15/2016','fr-FR','hyxlnkManageProfiles',N'Gérer les profils','N','N') , (1999,'2/15/2016','fr-FR','hyxlnkManageSearches',N'Recherches récentes','N','N') , (1999,'2/15/2016','fr-FR','hyxlnkManageSearchesNew',N'Gestion de la recherche des données','N','N') , (1999,'2/15/2016','fr-FR','hyxlnkMaximize',N'Maximiser','N','N') , (1999,'2/15/2016','fr-FR','hyxlnkMobileMainMenu',N'Menu Principal','N','N') , (1999,'2/15/2016','fr-FR','hyxlnkMobileSite',N'Afficher le site mobile','N','N') , (1999,'2/15/2016','fr-FR','hyxlnkMobileSiteBackup',N'Afficher les le site mobile','N','N') , (1999,'2/15/2016','fr-FR','hyxlnkMultipleMatchingECN',N'Voir les résultats de la recherche à nouveau','N','N') , (1999,'4/14/2010','fr-FR','hyxlnkNew',N'Nouveau','N','N') , (1999,'2/15/2016','fr-FR','hyxlnkNewSearch',N'Nouvelle recherche','N','N') , (1999,'4/14/2010','fr-FR','hyxlnkNextBottom',N'Suivant>','N','N') , (1999,'4/14/2010','fr-FR','hyxlnkNextTop',N'Suivant>','N','N') , (1999,'2/15/2016','fr-FR','hyxlnkOrigination_BindingRulingsAdvancedSearch',N'Origine des décisions contraignantes Recherche avancée','N','N') , (1999,'2/15/2016','fr-FR','hyxlnkPopOut',N'Ouvrir dans une Nouvelle Fenêtre du Navigateur','N','N') , (1999,'4/14/2010','fr-FR','hyxlnkPreviousBottom',N'<Précédent','N','N') , (1999,'4/14/2010','fr-FR','hyxlnkPreviousTop',N'<Précédent','N','N') , (1999,'2/15/2016','fr-FR','hyxlnkRecentSearches',N'Recherches récentes','N','N') , (1999,'2/15/2016','fr-FR','hyxlnkRefresh',N'Actualiser','N','N') , (1999,'2/15/2016','fr-FR','hyxlnkReload',N'Recharger','N','N') , (1999,'2/15/2016','fr-FR','hyxlnkSaveCurrentSearch',N'Sauvegarder la recherche actuelle','N','N') , (1999,'2/15/2016','fr-FR','hyxlnkSaveSearch',N'Sauvegarder la recherche','N','N') , (1999,'2/15/2016','fr-FR','hyxlnkStartOver',N'Rafraîchir','N','N') , (1999,'2/15/2016','fr-FR','hyxlnkTopOfPage',N'Haut de l''écran','N','N') , (1999,'2/15/2016','fr-FR','hyxlnkUnsavedSearches',N'Recherches non sauvegardées','N','N') , (1999,'2/15/2016','fr-FR','hyxlnkViewDutyDetails',N'Voir les détails de droit de douane','N','N') , (1999,'2/15/2016','fr-FR','hyxlnkViewFTADetails',N'Voir les détails de règle d''origine ALE','N','N') , (1999,'2/15/2016','fr-FR','hyxTop',N'Haut de Page','N','N') , (1999,'10/10/2016','fr-FR','Identifier',N'identifiant','N','N') , (1999,'4/5/2010','fr-FR','IncoTerms',N'Incoterms','N','N') , (1999,'4/5/2010','fr-FR','InvoiceGUID',N'Facture','N','N') , (1999,'4/8/2010','fr-FR','Label1/Category',N'Catégorie','N','N') , (1999,'4/8/2010','fr-FR','Label2',N'Nom (Alias)','N','N') , (1999,'4/8/2010','fr-FR','Label3/Group',N'Groupe','N','N') , (1999,'4/5/2010','fr-FR','Language',N'Langue','N','N') , (1999,'4/8/2010','fr-FR','Last Checked Date',N'Date de la dernière consultation','N','N') , (1999,'4/14/2010','fr-FR','LastUpdatedBy',N'Dernière mise à jour par','N','N') , (1999,'10/10/2016','fr-FR','LastUpdatedDate',N'date de mise à jour','N','N') , (1999,'10/10/2016','fr-FR','LastUpdates',N'Dernières mises à jour','N','N') , (1999,'4/5/2010','fr-FR','lbAttach',N'Attacher un document','N','N') , (1999,'4/14/2010','fr-FR','lbCreateNewRequest',N'Créer une application Nouveau','N','N') , (1999,'4/5/2010','fr-FR','lbExit',N'Sortir','N','N') , (1999,'4/14/2010','fr-FR','lbFilterListGo',N'Recherche','N','N') , (1999,'4/14/2010','fr-FR','lblListFilter',N'Filtrer par','N','N') , (1999,'4/14/2010','fr-FR','lbSendRemindar',N'Envoyez un rappel','N','N') , (1999,'10/10/2016','fr-FR','lbxAction',N'Action','N','N') , (1999,'10/10/2016','fr-FR','lbxActivateNewLists',N'Activer un nouveau listes','N','N') , (1999,'2/15/2016','fr-FR','lbxActualExcludedTerms',N'Termes de recherche exclus:','N','N') , (1999,'2/15/2016','fr-FR','lbxActualSearchSymbols',N'Termes de recherche exclus avec les symboles:','N','N') , (1999,'2/15/2016','fr-FR','lbxActualSearchTerms',N'Termes de recherche utilisés:','N','N') , (1999,'4/8/2010','fr-FR','lbxAddExclude',N'Exclure les mots communs ou fréquents','N','N') , (1999,'10/10/2016','fr-FR','lbxAddNewCompany',N'Rajouter une Entreprise','N','N') , (1999,'10/10/2016','fr-FR','lbxAddress',N'Adresse','N','N') , (1999,'10/10/2016','fr-FR','lbxAddressLine1',N'Ligne d''adresse 1','N','N') , (1999,'10/10/2016','fr-FR','lbxAddressLine2',N'Ligne d''adresse 2','N','N') , (1999,'10/10/2016','fr-FR','lbxAddressLine3',N'Ligne d''adresse 3','N','N') , (1999,'10/10/2016','fr-FR','lbxAddressLine4',N'Ligne d''adresse 4','N','N') , (1999,'10/10/2016','fr-FR','lbxAddressOptions',N'Options de Recherche par Addresse','N','N') , (1999,'4/14/2010','fr-FR','lbxAddRow',N'Ajouter une ligne','N','N') , (1999,'2/15/2016','fr-FR','lbxAddSystemMessagesAdditionalComments',N'Commentaires Additionnels:','N','N') , (1999,'2/15/2016','fr-FR','lbxAddSystemMessagesDescription',N'Message:','N','N') , (1999,'2/15/2016','fr-FR','lbxAddSystemMessagesShareDuration',N'Partager Durée:','N','N') , (1999,'2/15/2016','fr-FR','lbxAgencies',N'Agences','N','N') , (1999,'4/14/2010','fr-FR','lbxAgreement',N'De libre-échange','N','N') , (1999,'4/14/2010','fr-FR','lbxAnalysisNo',N'Analyse #','N','N') , (1999,'4/8/2010','fr-FR','lbxAndDates',N'Y','N','N') , (1999,'10/10/2016','fr-FR','lbxAndOr',N'Et/Ou','N','N') , (1999,'2/15/2016','fr-FR','lbxAvailableFTA',N'ALE /Accords Commerciaux Disponibles','N','N') , (1999,'10/10/2016','fr-FR','lbxBatchResults',N'Exclure Résultats de Batch','N','N') , (1999,'10/10/2016','fr-FR','lbxBeginDate',N'Date de début','N','N') , (1999,'4/14/2010','fr-FR','lbxBill',N'Compte','N','N') , (1999,'4/14/2010','fr-FR','lbxBillofMaterials',N'Liste des matériaux','N','N') , (1999,'2/15/2016','fr-FR','lbxBindingRulings',N'Décisions contraignantes','N','N') , (1999,'4/8/2010','fr-FR','lbxBirthdate',N'date de naissance','N','N') , (1999,'10/10/2016','fr-FR','lbxBlock',N'Bloquer','N','N') , (1999,'4/14/2010','fr-FR','lbxBomIM',N'Dernier produit','N','N') , (1999,'4/14/2010','fr-FR','lbxBomPC',N'Composants','N','N') , (1999,'4/8/2010','fr-FR','lbxCallSign',N'Appel','N','N') , (1999,'4/14/2010','fr-FR','lbxCertificate',N'Certificat','N','N') , (1999,'2/15/2016','fr-FR','lbxChapterBxFields',N'Chapitres sélectionnés:','N','N') , (1999,'2/15/2016','fr-FR','lbxChapterDescription',N'Chapitre / Description:','N','N') , (1999,'2/15/2016','fr-FR','lbxChargeQuotasTab',N'Quotas','N','N') , (1999,'4/14/2010','fr-FR','lbxCharValues',N'Valeurs','N','N') , (1999,'4/8/2010','fr-FR','lbxCity',N'Ville','N','N') , (1999,'4/14/2010','fr-FR','lbxCompany',N'Entreprise','N','N') , (1999,'4/8/2010','fr-FR','lbxCompanyName',N'Nom de l''entreprise','N','N') , (1999,'10/10/2016','fr-FR','lbxConfirmation',N'Êtes-vous sûr de vouloir supprimer cet article?','N','N') , (1999,'10/10/2016','fr-FR','lbxContactName',N'Nom(s)','N','N') , (1999,'2/15/2016','fr-FR','lbxContentAvailability',N'Disponibilité de Content','N','N') , (1999,'4/8/2010','fr-FR','lbxCountry',N'Pays','N','N') , (1999,'2/15/2016','fr-FR','lbxCountryBxFields',N'Pays sélectionnés:','N','N') , (1999,'2/15/2016','fr-FR','lbxCountryCustomsDocuments',N'Documents douaniers','N','N') , (1999,'2/15/2016','fr-FR','lbxCountryFilter',N'Pays:','N','N') , (1999,'2/15/2016','fr-FR','lbxCountryFinancialDocuments',N'Documents financiers','N','N') , (1999,'2/15/2016','fr-FR','lbxCountryLevelControls',N'Contrôles au niveau de pays','N','N') , (1999,'2/15/2016','fr-FR','lbxCountryOfDestination',N'Pays de destination','N','N') , (1999,'2/15/2016','fr-FR','lbxCountryOfDestinationTitleFields',N'Sélectionnez le pays de destination','N','N') , (1999,'2/15/2016','fr-FR','lbxCountryOfExport',N'Pays d''Exportation','N','N') , (1999,'2/15/2016','fr-FR','lbxCountryOfImport',N'Pays d''Importation','N','N') , (1999,'2/15/2016','fr-FR','lbxCountryOfOrigin',N'Pays d''Origine','N','N') , (1999,'2/15/2016','fr-FR','lbxCountryOfOriginDestination',N'Filtre de pays d''origine /Destination','N','N') , (1999,'2/15/2016','fr-FR','lbxCountryOfOriginTitleFields',N'Sélectionnez le pays d''origine','N','N') , (1999,'2/15/2016','fr-FR','lbxCountryThreat',N'Menace par Pays','N','N') , (1999,'2/15/2016','fr-FR','lbxCountryThreatEmpty',N'Information de Menace par Pays non disponible.','N','N') , (1999,'2/15/2016','fr-FR','lbxCountryTransportationDocuments',N'Documents de transport','N','N') , (1999,'2/15/2016','fr-FR','lbxCulture',N'Langue courante:','N','N') , (1999,'2/15/2016','fr-FR','lbxCultureCode',N'Langage de Description /Contrôles/ Notes','N','N') , (1999,'2/15/2016','fr-FR','lbxCultureCode1',N'Code de langue:','N','N') , (1999,'2/15/2016','fr-FR','lbxCurrency',N'Code(s) de devises disponibles','N','N') , (1999,'2/15/2016','fr-FR','lbxCurrencyEmpty',N'Information de Devises non Disponible.','N','N') , (1999,'2/15/2016','fr-FR','lbxCurrentDateDataDisplay',N'Dates sont affichées à l''aide:','N','N') , (1999,'4/14/2010','fr-FR','lbxDateValues',N'Sélectionnez Date','N','N') , (1999,'10/10/2016','fr-FR','lbxDeleteCompany',N'Supprimer','N','N') , (1999,'4/8/2010','fr-FR','lbxDescription',N'Description','N','N') , (1999,'2/15/2016','fr-FR','lbxDescriptionSearchType',N'Description des types de recherche','N','N') , (1999,'2/15/2016','fr-FR','lbxDestinationCountry',N'Pays de destination:','N','N') , (1999,'4/5/2010','fr-FR','lbxDestinationFile',N'Tableau de Destination','N','N') , (1999,'4/5/2010','fr-FR','lbxDocAccessType',N'Type d''accès','N','N') , (1999,'2/15/2016','fr-FR','lbxDocumentContacts',N'A contacter','N','N') , (1999,'2/15/2016','fr-FR','lbxDocumentDetail',N'Détail sur le document','N','N') , (1999,'2/15/2016','fr-FR','lbxDocumentDetailTab',N'Détail sur le document','N','N') , (1999,'2/15/2016','fr-FR','lbxDocumentNotes',N'Notes','N','N') , (1999,'2/15/2016','fr-FR','lbxDocumentSamples',N'Echantillons','N','N') , (1999,'2/15/2016','fr-FR','lbxDocumentsMessage',N'Pas tous les documents peuvent être exigés, certains seulement peuvent être requis basé sur la description du produit.','N','N') , (1999,'4/5/2010','fr-FR','lbxDocumentType',N'Type de document','N','N') , (1999,'10/10/2016','fr-FR','lbxDTSMatchFlag',N'Drapeau de correspondance','N','N') , (1999,'4/8/2010','fr-FR','lbxDTSSearchFlag',N'DPS drapeau du recherche','N','N') , (1999,'4/14/2010','fr-FR','lbxDuty',N'Tarif','N','N') , (1999,'2/15/2016','fr-FR','lbxECN',N'Numéro NCE/Description','N','N') , (1999,'2/15/2016','fr-FR','lbxECNFilter',N'Filtre de Numéro ECN/Numéro de Contrôle à l''Exportation','N','N') , (1999,'10/10/2016','fr-FR','lbxEditAddress',N'Modifier','N','N') , (1999,'10/10/2016','fr-FR','lbxEditAddress1',N'Ligne d''adresse 1','N','N') , (1999,'10/10/2016','fr-FR','lbxEditAddress2',N'Ligne d''adresse 2','N','N') , (1999,'10/10/2016','fr-FR','lbxEditAddress3',N'Ligne d''adresse 3','N','N') , (1999,'10/10/2016','fr-FR','lbxEditAddress4',N'Ligne d''adresse 4','N','N') , (1999,'10/10/2016','fr-FR','lbxEditAddressDTSCompanyName',N'Nom de l''entreprise','N','N') , (1999,'10/10/2016','fr-FR','lbxEditAddressDTSSearchFlag',N'Drapeau de recherche d''adresse DPS','N','N') , (1999,'10/10/2016','fr-FR','lbxEditAddressType',N'Modifier le type D''Adresse','N','N') , (1999,'10/10/2016','fr-FR','lbxEditAddressValidationError',N'Modifier l''erreur de validation d''adresse','N','N') , (1999,'10/10/2016','fr-FR','lbxEditCity',N'Ville','N','N') , (1999,'10/10/2016','fr-FR','lbxEditCompanyName',N'Nom de l''entreprise','N','N') , (1999,'10/10/2016','fr-FR','lbxEditContact',N'Modifier le contact','N','N') , (1999,'10/10/2016','fr-FR','lbxEditContactDTSSearchFlag',N'Drapeau de Recherche de Contact DPS','N','N') , (1999,'10/10/2016','fr-FR','lbxEditContactName',N'Modifier le nom du contact','N','N') , (1999,'10/10/2016','fr-FR','lbxEditContactType',N'Modifier le type du contact','N','N') , (1999,'10/10/2016','fr-FR','lbxEditContactValidationError',N'Modifier l''erreur de validation de contact','N','N') , (1999,'10/10/2016','fr-FR','lbxEditCountry',N'Pays','N','N') , (1999,'10/10/2016','fr-FR','lbxEditCustomsID',N'ID de la douane','N','N') , (1999,'10/10/2016','fr-FR','lbxEditEmail',N'Addresse Email','N','N') , (1999,'10/10/2016','fr-FR','lbxEditEntity',N'Modifier l''entité','N','N') , (1999,'10/10/2016','fr-FR','lbxEditFaxNumber',N'Numéro de Fax','N','N') , (1999,'10/10/2016','fr-FR','lbxEditFederalID',N'ID Fédérale','N','N') , (1999,'10/10/2016','fr-FR','lbxEditFederalIDType',N'Type d''ID Fédérale','N','N') , (1999,'10/10/2016','fr-FR','lbxEditPhoneNumber',N'Numéro de téléphone','N','N') , (1999,'10/10/2016','fr-FR','lbxEditState',N'Etat/Province','N','N') , (1999,'10/10/2016','fr-FR','lbxEditTitle',N'Titre','N','N') , (1999,'2/15/2016','fr-FR','lbxEffectiveDate',N'Date d''entrée en vigueur','N','N') , (1999,'2/15/2016','fr-FR','lbxEffectivityDate',N'Date d''entrée en vigueur','N','N') , (1999,'10/10/2016','fr-FR','lbxEmailAddress',N'Addresse Email','N','N') , (1999,'2/15/2016','fr-FR','lbxEmptyECNText',N'Veuillez indiquer/Sélectionner un numéro exact NCE pour afficher','N','N') , (1999,'2/15/2016','fr-FR','lbxEmptyHSNumberText',N'Veuillez indiquer ou sélectionner un numéro SH exact pour afficher','N','N') , (1999,'10/10/2016','fr-FR','lbxEndDate',N'Date de fin','N','N') , (1999,'4/8/2010','fr-FR','lbxEntityType',N'Type d''entité','N','N') , (1999,'4/14/2010','fr-FR','lbxEntryNumber',N'Entrée Nombre','N','N') , (1999,'4/8/2010','fr-FR','lbxEUAssetFreeze',N'Geler les avoirs de l''UE','N','N') , (1999,'10/10/2016','fr-FR','lbxExact',N'Exacte','N','N') , (1999,'10/10/2016','fr-FR','lbxExcludedWords',N'Exclure Mots Communs ou Fréquents','N','N') , (1999,'2/15/2016','fr-FR','lbxExpirationDate',N'Date d''expiration','N','N') , (1999,'2/15/2016','fr-FR','lbxExportCharges',N'Taxes à l''exportation','N','N') , (1999,'2/15/2016','fr-FR','lbxExportControl',N'Liste (s) de contrôle à l''exportation','N','N') , (1999,'2/15/2016','fr-FR','lbxExportControls',N'Contrôles à l''exportation','N','N') , (1999,'2/15/2016','fr-FR','lbxExportCountryCustomsDocuments',N'Documents Douaniers d''Exportation','N','N') , (1999,'2/15/2016','fr-FR','lbxExportCountryFinancialDocuments',N'Documents Financiers d''Exportation','N','N') , (1999,'2/15/2016','fr-FR','lbxExportCountryTransportationDocuments',N'Documents de transport d''Exportation','N','N') , (1999,'4/14/2010','fr-FR','lbxExporter',N'Exportateur','N','N') , (1999,'4/14/2010','fr-FR','lbxExporterAddress1',N'Exportateur Adresse 1','N','N') , (1999,'4/14/2010','fr-FR','lbxExporterAddress2',N'Exportateur Adresse 2','N','N') , (1999,'4/14/2010','fr-FR','lbxExporterName',N'Nom de l''exportateur','N','N') , (1999,'4/14/2010','fr-FR','lbxExporterTaxId',N'Exportateur procureur numéro d''enregistrement','N','N') , (1999,'10/10/2016','fr-FR','lbxFaxNumber',N'Número de fax','N','N') , (1999,'4/14/2010','fr-FR','lbxField',N'Domaine','N','N') , (1999,'4/14/2010','fr-FR','lbxFieldToEdit',N'Changer de pays','N','N') , (1999,'4/14/2010','fr-FR','lbxFilerPOC',N'Contact','N','N') , (1999,'4/14/2010','fr-FR','lbxFill',N'Remplissez Dans','N','N') , (1999,'4/8/2010','fr-FR','lbxFilter',N'Filtrer par','N','N') , (1999,'2/15/2016','fr-FR','lbxFilterResultDescription',N'Filtrer la description du résultat','N','N') INSERT INTO tmgPartnerCultureDefinitions(PartnerId,EffDate,CultureGuid,FieldName,FieldTranslation,DeletedFlag,KeepDuringRollback) VALUES (1999,'2/15/2016','fr-FR','lbxFilterResultDescriptionOptions',N'Filtrer les options des résultats de recherche','N','N') , (1999,'4/5/2010','fr-FR','lbxFor',N'Pour','N','N') , (1999,'4/5/2010','fr-FR','lbxformtype',N'Type de Formulaire','N','N') , (1999,'4/14/2010','fr-FR','lbxFrom',N'À partir de','N','N') , (1999,'4/14/2010','fr-FR','lbxFromDate',N'À partir de','N','N') , (1999,'4/14/2010','fr-FR','lbxFromDateStuc',N'(Jj / mm / aaaa)','N','N') , (1999,'4/14/2010','fr-FR','lbxFromFormat',N'(Jj / mm / aaaa)','N','N') , (1999,'4/14/2010','fr-FR','lbxFTA',N'ALE','N','N') , (1999,'2/15/2016','fr-FR','lbxFutureRatesTab',N'Taux futur','N','N') , (1999,'4/5/2010','fr-FR','lbxGenerate',N'Charger et importer des données','N','N') , (1999,'2/15/2016','fr-FR','lbxGeneratedInputsUOMIntro',N'Veuillez indiquer les entrées pour','N','N') , (1999,'4/8/2010','fr-FR','lbxGo',N'Recherche','N','N') , (1999,'3/3/2017','fr-FR','lbxGoHome',N'Sortir','N','N') , (1999,'2/15/2016','fr-FR','lbxGroupBy',N'Grouper le résultat par:','N','N') , (1999,'2/15/2016','fr-FR','lbxHeader',N'Détails de l''en-tête','N','N') , (1999,'10/10/2016','fr-FR','lbxHelpAddressOptions',N'Option d''aide pour l''adresse','N','N') , (1999,'10/10/2016','fr-FR','lbxhelpsearchref1',N'Numéro de Référence de la Recherche','N','N') , (1999,'10/10/2016','fr-FR','lbxhelpsearchref2',N'Numéro de Référence de la Recherche','N','N') , (1999,'10/10/2016','fr-FR','lbxHigh',N'haute','N','N') , (1999,'10/10/2016','fr-FR','lbxHitsOnly',N'Montrer les hits','N','N') , (1999,'2/15/2016','fr-FR','lbxHolidays',N'Jours Fériés','N','N') , (1999,'2/15/2016','fr-FR','lbxHSFilter',N'Filtre de Numéro SH','N','N') , (1999,'4/14/2010','fr-FR','lbxHSLocation',N'Tarif Source','N','N') , (1999,'2/15/2016','fr-FR','lbxHSMaintenanceLogText',N'Journal de maintenance SH','N','N') , (1999,'2/15/2016','fr-FR','lbxHSNumber',N'Numéro SH/Description','N','N') , (1999,'2/15/2016','fr-FR','lbxHSNumberDescription',N'Numéro SH / Description','N','N') , (1999,'2/15/2016','fr-FR','lbxHSNumberFilter',N'Filtre de numéro SH','N','N') , (1999,'2/15/2016','fr-FR','lbxHSNumberSelection',N'Numéro SH','N','N') , (1999,'2/15/2016','fr-FR','lbxHSNumberSelectionSettings',N'Quel Chapitre/Description aimeriez-vous être votre défaut?','N','N') , (1999,'2/15/2016','fr-FR','lbxHSNumberTitle',N'Numéro SH (Facultatif)','N','N') , (1999,'2/15/2016','fr-FR','lbxHSNumberTitleFields',N'Sélectionnez le numéro SH','N','N') , (1999,'4/5/2010','fr-FR','lbxIdentifier',N'Identifiant','N','N') , (1999,'2/15/2016','fr-FR','lbxImageNoAvailable',N'Pas d''image disponible','N','N') , (1999,'2/15/2016','fr-FR','lbxImportControls',N'Contrôles à l''importation','N','N') , (1999,'4/14/2010','fr-FR','lbxImporter',N'Importateur','N','N') , (1999,'4/14/2010','fr-FR','lbxImporterAddress1',N'Importateur Adresse 1','N','N') , (1999,'4/14/2010','fr-FR','lbxImporterAddress2',N'Importateur Adresse 2','N','N') , (1999,'4/14/2010','fr-FR','lbxImporterName',N'Nom de l''importateur','N','N') , (1999,'4/14/2010','fr-FR','lbxImporterNumber',N'Numéro d''importateur','N','N') , (1999,'4/14/2010','fr-FR','lbxImporterTaxId',N'Importateur procureur numéro d''enregistrement','N','N') , (1999,'2/15/2016','fr-FR','lbxImportValuesByCountry',N'Volume d''importation par pays','N','N') , (1999,'4/14/2010','fr-FR','lbxIncludeESig',N'Inclut les signatures électroniques','N','N') , (1999,'2/15/2016','fr-FR','lbxIncludeInflectional',N'Inclure des formes fléchie','N','N') , (1999,'2/15/2016','fr-FR','lbxIncludeSpecialSymbols',N'Inclure les termes de recherche exclus avec les symboles','N','N') , (1999,'2/15/2016','fr-FR','lbxIndustryBxFields',N'Industries sélectionnées:','N','N') , (1999,'2/15/2016','fr-FR','lbxKnowledgeProfile',N'Profil de Nouvelles','N','N') , (1999,'10/10/2016','fr-FR','lbxLastDTSStatus',N'Statut','N','N') , (1999,'10/10/2016','fr-FR','lbxLastScreenedDate',N'Date de la Dernière Surveillé','N','N') , (1999,'4/8/2010','fr-FR','lbxLastValidatedDate',N'Date dernière validation','N','N') , (1999,'4/14/2010','fr-FR','lbxLiquidationDate',N'Date de règlement','N','N') , (1999,'4/14/2010','fr-FR','lbxLoadRequest',N'Envoyer une demande','N','N') , (1999,'4/5/2010','fr-FR','lbxLocationOfFile',N'Emplacement du fichier','N','N') , (1999,'4/14/2010','fr-FR','lbxLongDesc',N'Description','N','N') , (1999,'2/15/2016','fr-FR','lbxLstBxChapter',N'Sélectionnez les chapitres:','N','N') , (1999,'2/15/2016','fr-FR','lbxLstBxCountry',N'Sélectionnez les pays:','N','N') , (1999,'2/15/2016','fr-FR','lbxLstBxIndustry',N'Sélectionnez les industries:','N','N') , (1999,'2/15/2016','fr-FR','lbxLstBxSolution',N'Sélectionnez les solutions:','N','N') , (1999,'2/15/2016','fr-FR','lbxMainDocuments',N'Documents Principaux','N','N') , (1999,'2/15/2016','fr-FR','lbxMainDuty',N'Droit de douane principal/pour les pays tiers','N','N') , (1999,'2/15/2016','fr-FR','lbxManageSearches_RecentSearches',N'Recherches récentes','N','N') , (1999,'2/15/2016','fr-FR','lbxManageSearches_RecentSelections',N'Dernières sélections du classement mondial','N','N') , (1999,'2/15/2016','fr-FR','lbxManageSearches_SavedSearches',N'Recherches sauvegardées','N','N') , (1999,'2/15/2016','fr-FR','lbxManageSearches_SharedSearches',N'Recherches partagées par les autres utilisateurs','N','N') , (1999,'2/15/2016','fr-FR','lbxManageSearches_UnsavedSearches',N'Afficher les recherches non sauvegardées','N','N') , (1999,'2/15/2016','fr-FR','lbxManageSearchesTitle',N'Gestion de la recherche des données','N','N') , (1999,'4/5/2010','fr-FR','lbxMemo',N'Note','N','N') , (1999,'10/10/2016','fr-FR','lbxMetaphone',N'Metaphone','N','N') , (1999,'2/15/2016','fr-FR','lbxMultipleMatchingECNQuestion',N'Plusieurs résultats trouvés.','N','N') , (1999,'4/8/2010','fr-FR','lbxName',N'Entreprise','N','N') , (1999,'10/10/2016','fr-FR','lbxNameAddressOption',N'Options de recherche par adresse','N','N') , (1999,'10/10/2016','fr-FR','lbxNameOptions',N'Options de Recherche par Nom(s)','N','N') , (1999,'4/14/2010','fr-FR','lbxNarrativeDescription',N'Description','N','N') , (1999,'4/14/2010','fr-FR','lbxNew',N'Nouveau','N','N') , (1999,'10/10/2016','fr-FR','lbxNewAddress1',N'Ligne d''adresse 1','N','N') , (1999,'10/10/2016','fr-FR','lbxNewAddress2',N'Ligne d''adresse 2','N','N') , (1999,'10/10/2016','fr-FR','lbxNewAddress3',N'Ligne d''adresse 3','N','N') , (1999,'10/10/2016','fr-FR','lbxNewAddress4',N'Ligne d''adresse 4','N','N') , (1999,'10/10/2016','fr-FR','lbxNewCity',N'Ville','N','N') , (1999,'10/10/2016','fr-FR','lbxNewCompanyId',N'ID de l''Entreprise','N','N') , (1999,'10/10/2016','fr-FR','lbxNewCompanyName',N'Nom de l''Entreprise','N','N') , (1999,'10/10/2016','fr-FR','lbxNewCompanyType',N'Type d''Entreprise','N','N') , (1999,'10/10/2016','fr-FR','lbxNewCountry',N'Pays','N','N') , (1999,'10/10/2016','fr-FR','lbxNewPostalCode',N'Code postal','N','N') , (1999,'2/15/2016','fr-FR','lbxNewsCulture',N'Langage des actualités','N','N') , (1999,'2/15/2016','fr-FR','lbxNewsEffectiveDate',N'Date d''entrée en vigueur','N','N') , (1999,'10/10/2016','fr-FR','lbxNewState',N'Etat/Province','N','N') , (1999,'2/15/2016','fr-FR','lbxNewsType',N'Type des actualités','N','N') , (1999,'10/10/2016','fr-FR','lbxNewValidationError',N'Nouvelle Erreur de validation','N','N') , (1999,'4/14/2010','fr-FR','lbxNewValue',N'Modifier la valeur','N','N') , (1999,'10/10/2016','fr-FR','lbxNotes',N'Notes','N','N') , (1999,'10/10/2016','fr-FR','lbxNoteValidationError',N'Erreur de validation','N','N') , (1999,'10/10/2016','fr-FR','lbxOnReport',N'Pages sur le rapport','N','N') , (1999,'4/14/2010','fr-FR','lbxOperator',N'Opérateur','N','N') , (1999,'2/15/2016','fr-FR','lbxOpinionLabel',N'Texte d'' Opinion:','N','N') , (1999,'2/15/2016','fr-FR','lbxOptional',N'Champ facultatifs','N','N') , (1999,'2/15/2016','fr-FR','lbxOrigination_GeneralRule',N'Règles Générales','N','N') , (1999,'2/15/2016','fr-FR','lbxOrigination_RulesOfOriginNonPreferential',N'Règles d''origine non préférentielles','N','N') , (1999,'2/15/2016','fr-FR','lbxOrigination_RulesOfOriginPreferential',N'Règle(s) Spécifique(s)','N','N') , (1999,'2/15/2016','fr-FR','lbxOtherDuty',N'Autre droit de douane','N','N') , (1999,'2/15/2016','fr-FR','lbxOtherImportCharges',N'Taxes divers à l''importation','N','N') , (1999,'4/8/2010','fr-FR','lbxOverride',N'Passer DTS','N','N') , (1999,'4/8/2010','fr-FR','lbxOverrideDate',N'Date de Passer DTS','N','N') , (1999,'10/10/2016','fr-FR','lbxOverrideFlag',N'Flag de Passer','N','N') , (1999,'10/10/2016','fr-FR','lbxOverrideHeader',N'Override de l''en-tête','N','N') , (1999,'2/15/2016','fr-FR','lbxOverwriteSave',N'Modifier/écraser la recherche','N','N') , (1999,'2/15/2016','fr-FR','lbxPartner',N'Partenaire actuel:','N','N') , (1999,'4/14/2010','fr-FR','lbxPayment',N'Paiement','N','N') , (1999,'10/10/2016','fr-FR','lbxPerformance',N'rendement','N','N') , (1999,'10/10/2016','fr-FR','lbxPerformSearch',N'Lancer la recherche','N','N') , (1999,'10/10/2016','fr-FR','lbxPhoneNumber',N'Numéro de téléphone','N','N') , (1999,'4/14/2010','fr-FR','lbxPort',N'Port','N','N') , (1999,'10/10/2016','fr-FR','lbxPostalCode',N'Code Postal','N','N') , (1999,'2/15/2016','fr-FR','lbxPrefDuty',N'Droit de douane préférentiel','N','N') , (1999,'10/10/2016','fr-FR','lbxPrintLast',N'Imprimer les dernieres','N','N') , (1999,'4/14/2010','fr-FR','lbxProducer',N'Producteur','N','N') , (1999,'4/14/2010','fr-FR','lbxProducerAddress1',N'Producteur Adresse 1','N','N') , (1999,'4/14/2010','fr-FR','lbxProducerAddress2',N'Producteur Adresse 2','N','N') , (1999,'4/14/2010','fr-FR','lbxProducerName',N'Nom du producteur','N','N') , (1999,'4/14/2010','fr-FR','lbxProducerTaxID',N'Numéro d''enregistrement procureur du producteur','N','N') , (1999,'4/14/2010','fr-FR','lbxProduct',N'Produit','N','N') , (1999,'4/14/2010','fr-FR','lbxProductSearch',N'Rechercher un produit','N','N') , (1999,'2/15/2016','fr-FR','lbxQuotaDetails',N'Détails sur le quota','N','N') , (1999,'4/14/2010','fr-FR','lbxReasonCode',N'Raison','N','N') , (1999,'10/10/2016','fr-FR','lbxReasons',N'Raisons','N','N') , (1999,'2/15/2016','fr-FR','lbxRecentSearchesType',N'Type des recherches récentes','N','N') , (1999,'10/10/2016','fr-FR','lbxRecords',N'Enregistrement','N','N') , (1999,'4/5/2010','fr-FR','lbxRecordsPerPage',N'Résultats par page','N','N') , (1999,'4/14/2010','fr-FR','lbxRecordsToDisplay',N'Afficher les enregistrements','N','N') , (1999,'4/14/2010','fr-FR','lbxRefund',N'Retour','N','N') , (1999,'4/8/2010','fr-FR','lbxRegEffDate',N'Entrée en vigueur du règlement','N','N') , (1999,'4/8/2010','fr-FR','lbxRegEntityRemarks',N'Commentaires entité de réglementation','N','N') , (1999,'4/8/2010','fr-FR','lbxRegExpDate',N'Date d''expiration','N','N') , (1999,'4/8/2010','fr-FR','lbxRegList',N'Liste','N','N') , (1999,'4/8/2010','fr-FR','lbxRegListID',N'Liste réglementaire ID','N','N') , (1999,'2/15/2016','fr-FR','lbxRegulationList',N'Liste de règlement','N','N') , (1999,'4/8/2010','fr-FR','lbxRegUniqueID',N'Unique ID','N','N') , (1999,'2/15/2016','fr-FR','lbxRelatedECN',N'Numéro(s) NCE déposé auprès AES','N','N') , (1999,'2/15/2016','fr-FR','lbxRelatedHS',N'Numéro SH connexes','N','N') , (1999,'4/8/2010','fr-FR','lbxReportFormat',N'Format du rapport','N','N') , (1999,'10/10/2016','fr-FR','lbxReportOptions',N'Rapport','N','N') , (1999,'4/14/2010','fr-FR','lbxRequestStatus',N'État de la demande','N','N') , (1999,'4/14/2010','fr-FR','lbxRequestyear',N'Année d''application','N','N') , (1999,'2/15/2016','fr-FR','lbxRequiredFields',N'Champs obligatoires','N','N') , (1999,'2/15/2016','fr-FR','lbxResultsDetail0_Destination',N'Pays de destination','N','N') , (1999,'2/15/2016','fr-FR','lbxResultsDetail0_Origin',N'Pays d''origine','N','N') , (1999,'2/15/2016','fr-FR','lbxResultsDetail1_Destination',N'Pays de destination','N','N') , (1999,'2/15/2016','fr-FR','lbxResultsDetail1_Origin',N'Pays d''origine','N','N') , (1999,'10/10/2016','fr-FR','lbxResultsHeader',N'Resultats','N','N') , (1999,'10/10/2016','fr-FR','lbxResultsReportFormat',N'Format du rapport des résultats','N','N') , (1999,'4/8/2010','fr-FR','lbxReward',N'Rémunération','N','N') , (1999,'4/14/2010','fr-FR','lbxRuleEffDate',N'À compter de','N','N') , (1999,'4/14/2010','fr-FR','lbxRuleEnabled',N'Activer la règle','N','N') , (1999,'4/14/2010','fr-FR','lbxRuleException',N'Exception à la règle','N','N') , (1999,'4/14/2010','fr-FR','lbxRuleExpDate',N'En vigueur jusqu''au','N','N') , (1999,'4/14/2010','fr-FR','lbxRuleFlag',N'Type','N','N') , (1999,'4/14/2010','fr-FR','lbxRuleKey',N'Key règle','N','N') , (1999,'4/14/2010','fr-FR','lbxRuleList',N'Liste des règles','N','N') , (1999,'4/14/2010','fr-FR','lbxRuleName',N'Nom de la règle','N','N') , (1999,'4/14/2010','fr-FR','lbxRuleSeq',N'Séquence','N','N') , (1999,'2/15/2016','fr-FR','lbxRulesOfOrigin',N'Règles d''origine','N','N') , (1999,'4/14/2010','fr-FR','lbxRuleType',N'Catégorie','N','N') , (1999,'4/8/2010','fr-FR','lbxSanctionsProgram',N'Programme de sanctions','N','N') , (1999,'2/15/2016','fr-FR','lbxSaveAsNew',N'Enregistrer en tant que nouveau','N','N') , (1999,'2/15/2016','fr-FR','lbxSavedSearches',N'Recherches sauvegardées','N','N') , (1999,'2/15/2016','fr-FR','lbxSaveNewSearch',N'Sauvegarder la nouvelle recherche','N','N') , (1999,'2/15/2016','fr-FR','lbxSaveSearches_SavedSearches',N'Recherche sauvegardées','N','N') , (1999,'2/15/2016','fr-FR','lbxSaveSearches_SearchName',N'Nom à rechercher','N','N') , (1999,'4/5/2010','fr-FR','lbxsearch',N'Chercher','N','N') , (1999,'10/10/2016','fr-FR','lbxSearchAddressLine1',N'Ligne d''adresse 1','N','N') , (1999,'10/10/2016','fr-FR','lbxSearchAddressLine2',N'Ligne d''adresse 2','N','N') , (1999,'10/10/2016','fr-FR','lbxSearchAddressLine3',N'Ligne d''adresse 3','N','N') , (1999,'10/10/2016','fr-FR','lbxSearchAddressLine4',N'Ligne d''adresse 4','N','N') , (1999,'4/8/2010','fr-FR','lbxSearchBetweenDates',N'Recherche entre les dates','N','N') , (1999,'10/10/2016','fr-FR','lbxSearchCity',N'Ville','N','N') , (1999,'4/5/2010','fr-FR','lbxSearchCol',N'Chercher','N','N') , (1999,'10/10/2016','fr-FR','lbxsearchcountry',N'Pays','N','N') , (1999,'10/10/2016','fr-FR','lbxSearchCriteria',N'Critère de Recherche','N','N') , (1999,'4/8/2010','fr-FR','lbxSearchFields',N'Recherche','N','N') , (1999,'2/15/2016','fr-FR','lbxSearchFilter',N'Recherche avancée de filtrage','N','N') , (1999,'4/5/2010','fr-FR','lbxSearchFor',N'Pour','N','N') , (1999,'2/15/2016','fr-FR','lbxSearchHeadings',N'Recherche:','N','N') , (1999,'4/14/2010','fr-FR','lbxSearchName',N'Nom(s) de Recherche','N','N') , (1999,'10/10/2016','fr-FR','lbxSearchNameOption',N'Options de recherche par nom(s)','N','N') , (1999,'10/10/2016','fr-FR','lbxSearchPostalCode',N'Code Postal','N','N') , (1999,'2/15/2016','fr-FR','lbxSearchProfileSetting',N'Souhaitez-vous définir vos paramètres par défaut du profil de recherche?','N','N') , (1999,'10/10/2016','fr-FR','lbxSearchReference',N'Numéro de référence de la recherche','N','N') , (1999,'10/10/2016','fr-FR','lbxSearchReferenceLabel',N'Numéro de Référence de la Recherche','N','N') , (1999,'10/10/2016','fr-FR','lbxSearchSettings',N'Paramètres de Recherche','N','N') , (1999,'10/10/2016','fr-FR','lbxSearchState',N'Etat','N','N') , (1999,'4/14/2010','fr-FR','lbxSectionMessage',N'Montant de la taxe rectifié','N','N') , (1999,'2/15/2016','fr-FR','lbxSelectionGuide',N'Quel chapitre décrit le mieux votre produit?','N','N') , (1999,'2/15/2016','fr-FR','lbxSelectLanguage',N'Sélectionnez une langue:','N','N') , (1999,'2/15/2016','fr-FR','lbxShowGuidedSearchResult',N'Résultats de recherche guidée','N','N') , (1999,'10/10/2016','fr-FR','lbxShowNoNotes',N'Ne pas inclure les notes sur le rapport.','N','N') , (1999,'4/8/2010','fr-FR','lbxShowNotesOnReport',N'Inclure toutes les notes sur le rapport.','N','N') , (1999,'4/14/2010','fr-FR','lbxSigDateStruc',N'(Jj / mm / aaaa)','N','N') , (1999,'4/14/2010','fr-FR','lbxSignatureDate',N'Signature Date','N','N') , (1999,'4/14/2010','fr-FR','lbxSignatureId',N'Signature d''info','N','N') , (1999,'2/15/2016','fr-FR','lbxSolutionBxFields',N'Solutions sélectionnées:','N','N') , (1999,'10/10/2016','fr-FR','lbxSoundsLike',N'Ressemble','N','N') , (1999,'4/5/2010','fr-FR','lbxSourceFile',N'fichier source','N','N') , (1999,'2/15/2016','fr-FR','lbxSpecificNotes',N'Notes spécifiques','N','N') , (1999,'2/15/2016','fr-FR','lbxStandardNotes',N'Notes standards','N','N') , (1999,'4/8/2010','fr-FR','lbxStandardOrder',N'l''ordre standard','N','N') , (1999,'10/10/2016','fr-FR','lbxState',N'Etat/Province','N','N') , (1999,'10/10/2016','fr-FR','lbxStatus',N'Statut','N','N') , (1999,'2/15/2016','fr-FR','lbxStatusBarCultureCode',N'Langage de Description /Contrôles/ Notes','N','N') , (1999,'2/15/2016','fr-FR','lbxStatusBarTariffSchedule',N'Pays/Listes tarifaires','N','N') , (1999,'4/8/2010','fr-FR','lbxStreet',N'Rue','N','N') , (1999,'2/15/2016','fr-FR','lbxSupportingDocuments',N'Documents d''Appui','N','N') , (1999,'4/14/2010','fr-FR','lbxTable',N'Sélectionner la source','N','N') , (1999,'2/15/2016','fr-FR','lbxTariffNotesTab',N'Notes de tarifs','N','N') , (1999,'2/15/2016','fr-FR','lbxTariffSchedule',N'Pays/Listes tarifaires','N','N') , (1999,'2/15/2016','fr-FR','lbxTariffScheduleEmpty',N'Information de Tariff Douanier n''est pas disponible.','N','N') , (1999,'2/15/2016','fr-FR','lbxTariffScheduleSelection',N'Quel Tariff Douanier aimeriez-vous être votre défaut?','N','N') , (1999,'4/14/2010','fr-FR','lbxTax',N'Impôt','N','N') , (1999,'10/10/2016','fr-FR','lbxTitle',N'Titre','N','N') , (1999,'4/14/2010','fr-FR','lbxToDate',N'Jusqu''à ce que','N','N') , (1999,'4/14/2010','fr-FR','lbxToDateStruc',N'(Jj / mm / aaaa)','N','N') , (1999,'4/14/2010','fr-FR','lbxTotalPaidRefundAmount',N'Versés, remis ou montant du compte','N','N') , (1999,'2/15/2016','fr-FR','lbxTotalResult',N'Le nombre total des numéros SH trouvés:','N','N') , (1999,'2/15/2016','fr-FR','lbxTotalResultAfterFilter',N'Le nombre total des numéros SH trouvés (Après avoir appliquer un filtre):','N','N') , (1999,'2/15/2016','fr-FR','lbxUnitOfMeasure',N'Unité (s) de mesure','N','N') , (1999,'2/15/2016','fr-FR','lbxUpdateInProgress',N'Mises à jour en cours ...','N','N') , (1999,'4/14/2010','fr-FR','lbxUploadBOM',N'Envoyer une BOM','N','N') , (1999,'10/10/2016','fr-FR','lbxUserName',N'Nom de l''utilisateur','N','N') , (1999,'4/14/2010','fr-FR','lbxValidationGroup',N'Validation Group','N','N') , (1999,'4/14/2010','fr-FR','lbxValidationType',N'Validation Type','N','N') , (1999,'4/14/2010','fr-FR','lbxValues',N'Valeurs','N','N') , (1999,'2/15/2016','fr-FR','lbxVATCharges',N'TVA/TPS','N','N') , (1999,'4/8/2010','fr-FR','lbxVesselFlag',N'Pavillon de navire','N','N') , (1999,'4/8/2010','fr-FR','lbxVesselGRT',N'Navire TJB','N','N') , (1999,'4/8/2010','fr-FR','lbxVesselOwner',N'Propriétaire','N','N') , (1999,'4/8/2010','fr-FR','lbxVesselTonnage',N'Tonnage des navires','N','N') , (1999,'4/8/2010','fr-FR','lbxVesselType',N'Type de navire','N','N') , (1999,'2/15/2016','fr-FR','lbxView',N'Voir :','N','N') , (1999,'2/15/2016','fr-FR','lbxViewSelectionSettings',N'Quels vue aimeriez-vous être votre défaut?','N','N') , (1999,'4/14/2010','fr-FR','lbxVoidExplanation',N'Raison de l''annulation','N','N') , (1999,'4/14/2010','fr-FR','lbxVoidReasonCode',N'Annulation Code','N','N') , (1999,'4/8/2010','fr-FR','lbxWebsite',N'Site Web','N','N') , (1999,'2/15/2016','fr-FR','lbxWelcome',N'Bienvenue','N','N') , (1999,'4/5/2010','fr-FR','LineNumber',N'Numéro de ligne','N','N') , (1999,'4/14/2010','fr-FR','LiquidationClock',N'Jours après','N','N') , (1999,'10/10/2016','fr-FR','ListName',N'Nom de liste','N','N') , (1999,'4/14/2010','fr-FR','lkxbtnAdd',N'Ajouter','N','N') , (1999,'4/14/2010','fr-FR','lkxGenerate',N'Certifier BOM','N','N') , (1999,'4/14/2010','fr-FR','lkxPrint',N'Imprimer','N','N') , (1999,'4/8/2010','fr-FR','lnkbtnAddRowTmeDeniedAddress',N'Ajouter une ligne','N','N') , (1999,'4/8/2010','fr-FR','lnkbtnAddRowTmeDTSAlias',N'Ajouter une ligne','N','N') , (1999,'4/8/2010','fr-FR','lnkbtnAddRowTmeDTSException',N'Ajouter une ligne','N','N') , (1999,'4/8/2010','fr-FR','lnkbtnAddRowTmeRegReason',N'Ajouter une ligne','N','N') , (1999,'4/8/2010','fr-FR','lnkbtnRemoveRowTmeDeniedAddress',N'Supprimer la ligne','N','N') , (1999,'4/8/2010','fr-FR','lnkbtnRemoveRowTmeDTSAlias',N'Supprimer la ligne','N','N') , (1999,'4/8/2010','fr-FR','lnkbtnRemoveRowTmeDTSException',N'Supprimer la ligne','N','N') , (1999,'4/8/2010','fr-FR','lnkbtnRemoveRowTmeRegReason',N'Supprimer la ligne','N','N') , (1999,'4/14/2010','fr-FR','lnkCheckWorkflowStatus',N'Frais','N','N') , (1999,'4/14/2010','fr-FR','lnkExit',N'Aller','N','N') , (1999,'4/8/2010','fr-FR','lnkGotoPage',N'Allez à','N','N') , (1999,'4/14/2010','fr-FR','lnkValidate',N'Valider','N','N') , (1999,'4/14/2010','fr-FR','lnxAddCharSearch',N'Add to Search','N','N') , (1999,'4/14/2010','fr-FR','lnxAddDateSearch',N'Add to Search','N','N') , (1999,'4/5/2010','fr-FR','lnxbtnAdd',N'Ajouter un produit','N','N') , (1999,'10/10/2016','fr-FR','lnxbtnAddAddress',N'Rajouter l''adresse','N','N') , (1999,'10/10/2016','fr-FR','lnxbtnAddCompany',N'Rajouter une Entreprise','N','N') , (1999,'10/10/2016','fr-FR','lnxbtnAddContact',N'Ajouter le contact','N','N') , (1999,'10/10/2016','fr-FR','lnxbtnAddNote',N'Envoyer','N','N') , (1999,'10/10/2016','fr-FR','lnxbtnAddRecord',N'Ajouter un enregistrement','N','N') , (1999,'2/15/2016','fr-FR','lnxbtnApply',N'Appliquer','N','N') , (1999,'4/14/2010','fr-FR','lnxbtnApplyUpdate',N'Appliquez la mise à','N','N') , (1999,'4/14/2010','fr-FR','lnxbtnApprove',N'Approuver la vérification','N','N') , (1999,'4/14/2010','fr-FR','lnxbtnAssignTo',N'Attribuer un','N','N') , (1999,'10/10/2016','fr-FR','lnxbtnCancel',N'Annuler','N','N') , (1999,'10/10/2016','fr-FR','lnxbtnCancelAddress',N'Annuler','N','N') , (1999,'10/10/2016','fr-FR','lnxbtnCancelContact',N'Annuler','N','N') , (1999,'2/15/2016','fr-FR','lnxbtnCancelLoading',N'Annuler le Chargement','N','N') , (1999,'10/10/2016','fr-FR','lnxbtnCancelNew',N'Annuler','N','N') , (1999,'10/10/2016','fr-FR','lnxbtnClear',N'Effacer','N','N') , (1999,'4/14/2010','fr-FR','lnxbtnClearSearch',N'Effacer la recherche','N','N') , (1999,'10/10/2016','fr-FR','lnxbtnConfirm',N'Confirmer','N','N') , (1999,'10/10/2016','fr-FR','lnxbtnConfirmChanges',N'Valider les Modifications','N','N') , (1999,'10/10/2016','fr-FR','lnxbtnConfirmNew',N'Garder','N','N') , (1999,'2/15/2016','fr-FR','lnxbtnDeleteComponentCancel',N'Annuler','N','N') , (1999,'2/15/2016','fr-FR','lnxbtnDeleteComponentYes',N'Oui','N','N') , (1999,'10/10/2016','fr-FR','lnxbtnExcludeWords',N'Exclure les mots communs ou fréquents','N','N') , (1999,'4/8/2010','fr-FR','lnxbtnExit',N'Aller','N','N') , (1999,'10/10/2016','fr-FR','lnxbtnExport',N'Exporter','N','N') , (1999,'2/15/2016','fr-FR','lnxbtnExportToExcel',N'Exporter au format Excel','N','N') , (1999,'2/15/2016','fr-FR','lnxbtnExportToPdf',N'Exporter au format PDF','N','N') , (1999,'10/10/2016','fr-FR','lnxbtnFilter',N'Montrer/Cache le Filtre de recherche','N','N') , (1999,'2/15/2016','fr-FR','lnxbtnFilterResultDescription',N'Appliquer le filtre','N','N') , (1999,'4/14/2010','fr-FR','lnxbtnGenCertificate',N'Générer un certificat','N','N') , (1999,'4/14/2010','fr-FR','lnxbtnGenerate',N'Generer','N','N') , (1999,'2/15/2016','fr-FR','lnxbtnGeneratedInputsUOMOther_Cancel',N'Annuler','N','N') , (1999,'2/15/2016','fr-FR','lnxbtnGeneratedInputsUOMOther_Save',N'Enregistrer','N','N') , (1999,'4/14/2010','fr-FR','lnxbtnGeneratePEA',N'Générer','N','N') , (1999,'10/10/2016','fr-FR','lnxbtnGenerateResultsReport',N'Regenerer le Rapport','N','N') , (1999,'4/5/2010','fr-FR','lnxbtnGo',N'Recherche','N','N') , (1999,'4/14/2010','fr-FR','lnxbtnHeader',N'Informations','N','N') , (1999,'2/15/2016','fr-FR','lnxbtnHSNumberSettingsCancel',N'Annuler','N','N') , (1999,'2/15/2016','fr-FR','lnxbtnHSNumberSettingsSave',N'Suivant','N','N') , (1999,'10/10/2016','fr-FR','lnxbtnInsert',N'Insérer','N','N') , (1999,'2/15/2016','fr-FR','lnxbtnManageSearchesCancel',N'Fermer','N','N') , (1999,'2/15/2016','fr-FR','lnxbtnManageSearchesTitle',N'Gestion de la recherche des données','N','N') , (1999,'10/10/2016','fr-FR','lnxbtnMassOverride',N'Mass Override','N','N') , (1999,'2/15/2016','fr-FR','lnxbtnMultipleMatchingECNCancel',N'Fermer','N','N') , (1999,'4/14/2010','fr-FR','lnxbtnNew',N'Nouveau','N','N') , (1999,'2/15/2016','fr-FR','lnxbtnNewSearch',N'Recherche','N','N') , (1999,'10/10/2016','fr-FR','lnxbtnNo',N'Non','N','N') , (1999,'4/14/2010','fr-FR','lnxbtnOrigin',N'Règle d''origine','N','N') , (1999,'10/10/2016','fr-FR','lnxbtnOverrideAll',N'Override Tous','N','N') , (1999,'10/10/2016','fr-FR','lnxbtnOverrideBlock',N'Passer le Bloc','N','N') , (1999,'2/15/2016','fr-FR','lnxbtnPastUpdatesDetailCancel',N'Fermer','N','N') , (1999,'2/15/2016','fr-FR','lnxbtnPastUpdatesDetailGridViewCancel',N'Fermer','N','N') , (1999,'4/14/2010','fr-FR','lnxbtnPCHSOverride',N'Fraction Insérer disparus','N','N') , (1999,'4/14/2010','fr-FR','lnxbtnProcessBOM',N'Des listes de matériel de traitement','N','N') , (1999,'4/14/2010','fr-FR','lnxbtnReqCertificate',N'Demande de certificat','N','N') , (1999,'10/10/2016','fr-FR','lnxbtnResultExtract',N'd''extraire du résultat','N','N') , (1999,'2/15/2016','fr-FR','lnxbtnResultsDetail0_AddNewCharge',N'Ajouter des nouveaux frais','N','N') , (1999,'2/15/2016','fr-FR','lnxbtnResultsDetail0_Calculate',N'Actualiser des calculs','N','N') , (1999,'2/15/2016','fr-FR','lnxbtnResultsDetail0_Calculate2',N'Actualiser les calculs','N','N') , (1999,'2/15/2016','fr-FR','lnxbtnResultsDetail1_AddNewCharge',N'Ajouter des nouveaux frais','N','N') , (1999,'2/15/2016','fr-FR','lnxbtnResultsDetail1_Calculate',N'Actualiser des calculs','N','N') , (1999,'2/15/2016','fr-FR','lnxbtnResultsDetail1_Calculate2',N'Actualiser les calculs','N','N') , (1999,'7/11/2011','fr-FR','lnxbtnReturnToDashboard',N'Retour à la table','N','N') , (1999,'2/15/2016','fr-FR','lnxbtnReturnWCOHierarchy',N'Réinitialiser Hiérarchie de l''OMD','N','N') , (1999,'10/10/2016','fr-FR','lnxbtnReview',N'révision','N','N') , (1999,'1/16/2012','fr-FR','lnxbtnSave',N'Garder','N','N') , (1999,'4/14/2010','fr-FR','lnxbtnSave2',N'Garder','N','N') , (1999,'10/10/2016','fr-FR','lnxbtnSaveAddress',N'Garder','N','N') , (1999,'10/10/2016','fr-FR','lnxbtnSaveContact',N'Garder','N','N') , (1999,'2/15/2016','fr-FR','lnxbtnSaveSearches_Cancel',N'Annuler','N','N') , (1999,'2/15/2016','fr-FR','lnxbtnSaveSearches_Save',N'Enregistrer','N','N') , (1999,'4/14/2010','fr-FR','lnxbtnSaveSigned',N'Sauvegarder certificat signé','N','N') , (1999,'2/15/2016','fr-FR','lnxbtnSearch',N'Chercher','N','N') , (1999,'2/15/2016','fr-FR','lnxbtnSearchDetail',N'Recherche avancée','N','N') , (1999,'2/15/2016','fr-FR','lnxbtnSearchProfile',N'Pofil de Recherche','N','N') , (1999,'2/15/2016','fr-FR','lnxbtnSettingsRemindMeLater',N'Rappeler plus tard','N','N') , (1999,'2/15/2016','fr-FR','lnxbtnSettingsSave',N'Suivant','N','N') , (1999,'2/15/2016','fr-FR','lnxbtnSetupProfileLater',N'Rappeler plus tard','N','N') , (1999,'2/15/2016','fr-FR','lnxbtnSetupProfileYes',N'Oui','N','N') , (1999,'2/15/2016','fr-FR','lnxbtnShowAllNews',N'Afficher toutes les actualités','N','N') , (1999,'10/10/2016','fr-FR','lnxbtnTakeAction',N'd''agir','N','N') , (1999,'2/15/2016','fr-FR','lnxbtnTestPrint',N'Imprimer','N','N') , (1999,'2/15/2016','fr-FR','lnxbtnViewSettingsCancel',N'Annuler','N','N') , (1999,'2/15/2016','fr-FR','lnxbtnViewSettingsSave',N'Sauvegarder','N','N') , (1999,'10/10/2016','fr-FR','lnxbtnYes',N'Oui','N','N') , (1999,'4/8/2010','fr-FR','lnxCheckWorkflow',N'Récupérer les résultats','N','N') , (1999,'4/8/2010','fr-FR','lnxClear',N'Propre','N','N') , (1999,'4/14/2010','fr-FR','lnxExport',N'Exportation','N','N') , (1999,'4/14/2010','fr-FR','lnxnewsearch',N'Nouvelle recherche','N','N') , (1999,'4/14/2010','fr-FR','lnxSearchedColumnsClear',N'Propre','N','N') , (1999,'4/14/2010','fr-FR','lnxSearchedColumnsSave',N'Garder','N','N') , (1999,'4/14/2010','fr-FR','lnxShowDisplayColumns',N'Afficher les colonnes','N','N') , (1999,'4/8/2010','fr-FR','lnxSubmitWorkflow',N'Graphique Société Soumettre','N','N') , (1999,'4/8/2010','fr-FR','lnxUpload',N'tableur télécharger et envoyer','N','N') , (1999,'4/5/2010','fr-FR','Name',N'Nom','N','N') , (1999,'4/8/2010','fr-FR','Name Type',N'Nom Type','N','N') , (1999,'4/5/2010','fr-FR','Next &gt',N'Suivant','N','N') , (1999,'10/10/2016','fr-FR','Note',N'Note','N','N') , (1999,'4/14/2010','fr-FR','Notes',N'Notes','N','N') , (1999,'10/10/2016','fr-FR','Notification',N'Notification','N','N') , (1999,'4/14/2010','fr-FR','NumOfProducts',N'Nombre de produits','N','N') , (1999,'4/5/2010','fr-FR','Organization',N'organisation','N','N') , (1999,'10/10/2016','fr-FR','OrganizationCountry',N'Pays','N','N') , (1999,'2/15/2016','fr-FR','Page size:',N'Taille de page:','N','N') , (1999,'4/14/2010','fr-FR','Period Begin Date',N'Date début de la période','N','N') , (1999,'4/8/2010','fr-FR','Postal Code',N'Code postal','N','N') , (1999,'10/10/2016','fr-FR','PostalCode',N'Code Postal','N','N') , (1999,'4/8/2010','fr-FR','ProcessID',N'Date de soumission','N','N') , (1999,'4/5/2010','fr-FR','Product',N'Produit','N','N') , (1999,'4/14/2010','fr-FR','Product Type',N'Type de produit','N','N') , (1999,'4/14/2010','fr-FR','ProductNum',N'Produit','N','N') , (1999,'4/5/2010','fr-FR','PurchaseOrderAssignment',N'Affectation d''ordre d''achat','N','N') , (1999,'4/5/2010','fr-FR','PurchaseOrderGUID',N'Ordre d''achat','N','N') , (1999,'4/14/2010','fr-FR','PurchaseOrderNum_aspx',N'Recherche de commande','N','N') , (1999,'2/15/2016','fr-FR','rbxDescriptionType',N'0','N','N') , (1999,'2/15/2016','fr-FR','rbxDescriptionType_00',N'Description complète','N','N') , (1999,'2/15/2016','fr-FR','rbxDescriptionType_01',N'Description courte','N','N') , (1999,'10/10/2016','fr-FR','rbxNameAddressSearchOption',N'Options de Recherche par Nom(s) / Adresse','N','N') , (1999,'10/10/2016','fr-FR','rbxNameSearchOption',N'Options de recherche par noms','N','N') , (1999,'10/10/2016','fr-FR','rbxNameSearchOption_0',N'Et','N','N') , (1999,'10/10/2016','fr-FR','rbxNameSearchOption_1',N'Ou','N','N') , (1999,'2/15/2016','fr-FR','rbxSaveSearches_SaveType_00',N'Enregistrer en tant que nouveau','N','N') , (1999,'2/15/2016','fr-FR','rbxSaveSearches_SaveType_01',N'Modifier/écraser la recherche','N','N') , (1999,'2/15/2016','fr-FR','Rbxselection',N'ECN/Numéro de Contrôle à l''Exportation','N','N') , (1999,'2/15/2016','fr-FR','Rbxselection_00',N'ECN/Numéro de Contrôle à l''Exportation','N','N') , (1999,'2/15/2016','fr-FR','Rbxselection_01',N'DPS','N','N') , (1999,'4/5/2010','fr-FR','rdxbtnNew',N'Nouveau','N','N') , (1999,'4/5/2010','fr-FR','rdxbtnSuccessive',N'Successif','N','N') , (1999,'10/10/2016','fr-FR','rdxlstActivateNewLists_0',N'Oui','N','N') , (1999,'10/10/2016','fr-FR','rdxlstActivateNewLists_1',N'Aucun','N','N') , (1999,'10/10/2016','fr-FR','rdxlstEmbargoOnly_0',N'Oui','N','N') , (1999,'10/10/2016','fr-FR','rdxlstEmbargoOnly_1',N'Aucun','N','N') , (1999,'10/10/2016','fr-FR','rdxlstNameAddressSearchOption_0',N'Et','N','N') , (1999,'10/10/2016','fr-FR','rdxlstNameAddressSearchOption_1',N'Ou','N','N') , (1999,'4/14/2010','fr-FR','rdxlstSearchType_0',N'Récurrent','N','N') , (1999,'10/10/2016','fr-FR','rdxlstTransmitISF_0',N'Oui','N','N') , (1999,'10/10/2016','fr-FR','rdxlstTransmitISF_1',N'Aucun','N','N') , (1999,'10/10/2016','fr-FR','rdxlstTransmitSCC_0',N'Oui','N','N') , (1999,'10/10/2016','fr-FR','rdxlstTransmitSCC_1',N'Aucun','N','N') , (1999,'2/15/2016','fr-FR','rdxlstViewSetting',N'VueGrille','N','N') , (1999,'2/15/2016','fr-FR','rdxlstViewSetting_00',N'VueGrille','N','N') , (1999,'2/15/2016','fr-FR','rdxlstViewSetting_01',N'VueArbre','N','N') , (1999,'4/8/2010','fr-FR','Reason',N'Raison','N','N') , (1999,'4/8/2010','fr-FR','Reasons',N'Raisons','N','N') , (1999,'4/5/2010','fr-FR','Records per page',N'Résultats par page','N','N') , (1999,'4/8/2010','fr-FR','Regulation Name',N'Nom du règlement','N','N') , (1999,'10/10/2016','fr-FR','RegulationExpirationDate',N'Date d''expiration des réglementation','N','N') , (1999,'4/8/2010','fr-FR','Remarks',N'Commentaires','N','N') , (1999,'4/14/2010','fr-FR','Report',N'Rapport','N','N') , (1999,'4/14/2010','fr-FR','Request Name',N'Nom de l''application','N','N') , (1999,'4/14/2010','fr-FR','Request Note',N'Notes','N','N') , (1999,'4/14/2010','fr-FR','Request Status',N'État de la demande','N','N') , (1999,'4/14/2010','fr-FR','RequestName',N'Nom de l''application','N','N') , (1999,'4/5/2010','fr-FR','RptUom',N'unité de mesure','N','N') , (1999,'4/14/2010','fr-FR','Rule Description',N'Règle numéro','N','N') , (1999,'10/10/2016','fr-FR','SanctionName',N'Nom de sanction','N','N') , (1999,'10/10/2016','fr-FR','Score',N'Score','N','N') , (1999,'4/14/2010','fr-FR','Search_aspx',N'Rechercher un produit','N','N') , (1999,'10/10/2016','fr-FR','SearchCity',N'ville','N','N') , (1999,'10/10/2016','fr-FR','SearchCountry',N'Pays','N','N') , (1999,'10/10/2016','fr-FR','SearchPostalCode',N'Code Potal','N','N') , (1999,'10/10/2016','fr-FR','SearchState',N'État','N','N') , (1999,'10/10/2016','fr-FR','SearchStreet',N'Rue','N','N') , (1999,'10/10/2016','fr-FR','Select Action..',N'Choisissez Action','N','N') , (1999,'4/14/2010','fr-FR','Select All',N'Sélectionner tout','N','N') , (1999,'10/10/2016','fr-FR','Settings',N'Paramètres','N','N') , (1999,'4/5/2010','fr-FR','ShipDate',N'date d''expédition','N','N') , (1999,'4/5/2010','fr-FR','ShipToID',N'envoyer','N','N') , (1999,'4/14/2010','fr-FR','SignatureDate',N'Signé en','N','N') , (1999,'4/8/2010','fr-FR','State',N'État','N','N') , (1999,'4/5/2010','fr-FR','Status',N'Statut','N','N') , (1999,'4/8/2010','fr-FR','Sub Country Code',N'Code du pays sous','N','N') , (1999,'4/14/2010','fr-FR','SupplierID',N'Identifiant du fournisseur','N','N') , (1999,'10/10/2016','fr-FR','tbxNote',N'Remarque','N','N') , (1999,'10/10/2016','fr-FR','tbxSelectedValue',N'Valeur sélectionnée','N','N') , (1999,'4/14/2010','fr-FR','Title',N'Titre','N','N') , (1999,'4/14/2010','fr-FR','To',N'Jusqu''à ce que','N','N') , (1999,'4/8/2010','fr-FR','To Do',N'À','N','N') , (1999,'4/14/2010','fr-FR','Transaction Value',N'La valeur transactionnelle','N','N') , (1999,'4/5/2010','fr-FR','TxnQty',N'Montant','N','N') , (1999,'4/5/2010','fr-FR','TxnQtyUOM',N'unité de mesure','N','N') , (1999,'4/8/2010','fr-FR','UniqueID',N'UniqueID','N','N') , (1999,'4/14/2010','fr-FR','Username',N'Nom d''utilisateur','N','N') , (1999,'4/5/2010','fr-FR','Value',N'Valeur','N','N') , (1999,'4/5/2010','fr-FR','VendorID',N'vendeur','N','N') , (1999,'4/5/2010','fr-FR','View',N'Vue','N','N') , (1999,'4/8/2010','fr-FR','Website',N'Site','N','N') , (1999,'10/10/2016','fr-FR','Word',N'Mot','N','N') , (1999,'4/14/2010','fr-FR','Yearly Volume',N'Volume annuel','N','N') , (1999,'4/5/2010','it-IT','&ltPrev',N'Precedente','N','N') , (1999,'4/14/2010','it-IT','Analysis',N'Analisi','N','N') , (1999,'4/14/2010','it-IT','Analysis Report',N'Analisi Report','N','N') , (1999,'4/14/2010','it-IT','AnalysisNo',N'Analisi #','N','N') , (1999,'4/14/2010','it-IT','Archive',N'File','N','N') , (1999,'4/14/2010','it-IT','Assigned To',N'Assegnato a','N','N') , (1999,'4/14/2010','it-IT','AuditLog_aspx',N'Audit Record','N','N') , (1999,'4/14/2010','it-IT','Bill of Materials',N'Elencare di materie','N','N') , (1999,'4/14/2010','it-IT','BillofMaterials',N'Elencare di materie','N','N') , (1999,'4/5/2010','it-IT','btxGo',N'Cercare','N','N') , (1999,'4/14/2010','it-IT','btxSearch',N'Cerca','N','N') , (1999,'4/14/2010','it-IT','btxShowCalendarFromDate',N'Calendario','N','N') , (1999,'4/14/2010','it-IT','btxShowCalendarThruDate',N'Calendario','N','N') , (1999,'4/5/2010','it-IT','Category',N'Categoria','N','N') , (1999,'4/14/2010','it-IT','Certificate',N'Certificato','N','N') , (1999,'4/14/2010','it-IT','Classification',N'Classificazione','N','N') , (1999,'9/16/2010','it-IT','ClientContentManagement_aspx',N'Tariff Updates','N','N') , (1999,'4/14/2010','it-IT','Comments',N'Commenti','N','N') , (1999,'4/14/2010','it-IT','Company',N'Azienda','N','N') , (1999,'4/14/2010','it-IT','CompanyName',N'Nome della società','N','N') , (1999,'9/16/2010','it-IT','CompanyProductRequest_aspx',N'Customer Certificate Request','N','N') , (1999,'4/14/2010','it-IT','COO',N'Cert','N','N') , (1999,'4/5/2010','it-IT','Country',N'Paese','N','N') , (1999,'4/14/2010','it-IT','CountryCode',N'Prefisso internazionale','N','N') , (1999,'4/5/2010','it-IT','CurrencyCode',N'codice della valuta','N','N') , (1999,'4/14/2010','it-IT','Date',N'Data','N','N') , (1999,'4/14/2010','it-IT','Date Reminder Sent',N'Date Reminder Inviato','N','N') , (1999,'4/14/2010','it-IT','Date Sent',N'Data di consegna','N','N') , (1999,'4/14/2010','it-IT','DateSaved',N'GuardadoEn','N','N') , (1999,'4/14/2010','it-IT','DateSent',N'Posted In','N','N') , (1999,'4/14/2010','it-IT','dateupdated',N'Data aggiornamento','N','N') , (1999,'4/14/2010','it-IT','DaysSinceRequest',N'Giorni Dopo','N','N') , (1999,'4/5/2010','it-IT','Delete',N'Cancellare','N','N') , (1999,'4/5/2010','it-IT','Description',N'Descrizione','N','N') , (1999,'4/5/2010','it-IT','Detail',N'Dettaglio','N','N') , (1999,'4/14/2010','it-IT','Details',N'Dettaglio','N','N') , (1999,'4/14/2010','it-IT','Difference',N'Differenza','N','N') , (1999,'4/14/2010','it-IT','Discrepancies',N'Discrepanza','N','N') , (1999,'4/14/2010','it-IT','DocAccessType',N'Tipo di accesso','N','N') , (1999,'4/14/2010','it-IT','DocType',N'tipo di documento','N','N') , (1999,'4/14/2010','it-IT','Document Request Name',N'Nome delle richieste di documenti','N','N') , (1999,'4/14/2010','it-IT','DTSExcludedWords_aspx',N'Esclusione di parole','N','N') , (1999,'4/5/2010','it-IT','Edit',N'Uscita','N','N') , (1999,'4/14/2010','it-IT','Edit_aspx',N'Modifica Match','N','N') , (1999,'4/14/2010','it-IT','EffDate',N'In vigore dal','N','N') , (1999,'4/14/2010','it-IT','fidFTABOMRulesAnalysis_aspx',N'Distinta base di analisi','N','N') , (1999,'4/14/2010','it-IT','fidFTAMassAnalysis_aspx',N'Le masse di materiale di analisi','N','N') , (1999,'4/14/2010','it-IT','fidProductFTAMaint_aspx',N'TLC Prodotto certificato','N','N') , (1999,'4/14/2010','it-IT','fmgCompanyMaintenance_aspx',N'Manutenzione','N','N') , (1999,'3/10/2013','it-IT','fmgDTSSpreadsheetImport_aspx',N'Importazione di un Foglio DPS','N','N') , (1999,'4/14/2010','it-IT','fmgRulesEntry_aspx',N'Entrata Regole','N','N') , (1999,'9/16/2010','it-IT','fmgWorkQueue_aspx',N'Customer Request Detail','N','N') , (1999,'4/14/2010','it-IT','frdFTAAnalysisReport_aspx',N'TLC Analysis Report','N','N') , (1999,'4/14/2010','it-IT','frdFTACert_aspx',N'Certificato NAFTA','N','N') , (1999,'7/11/2011','it-IT','frdFTASupplierCert_aspx',N'Certificato di fornitore','N','N') , (1999,'4/14/2010','it-IT','frdNonFTACert_aspx',N'NO Carta TLC','N','N') , (1999,'4/14/2010','it-IT','From',N'Da','N','N') , (1999,'4/14/2010','it-IT','fsgGroupList_aspx',N'Configurare il gruppo','N','N') , (1999,'4/14/2010','it-IT','fsgUserReset_aspx',N'User Setup','N','N') , (1999,'4/14/2010','it-IT','FTA',N'TLC','N','N') , (1999,'4/14/2010','it-IT','FTADocument',N'Documento','N','N') , (1999,'4/14/2010','it-IT','fugAuditClassifications_aspx',N'Audit Valutazioni','N','N') , (1999,'4/5/2010','it-IT','fugCountryReference_aspx',N'Paesi di riferimento','N','N') , (1999,'4/14/2010','it-IT','fugDocumentRequests_aspx',N'Certificate Request','N','N') , (1999,'4/5/2010','it-IT','fugDocumentRetention_aspx',N'Conservazione dei documenti','N','N') , (1999,'4/5/2010','it-IT','fugHsReference_aspx',N'Riferimento di Tariffa doganale armonizzata','N','N') , (1999,'4/5/2010','it-IT','fugimportfiletotable_aspx',N'Scaricare un foglio di lavoro','N','N') , (1999,'4/14/2010','it-IT','fugMassUpdate',N'Massive Update','N','N') , (1999,'4/14/2010','it-IT','fugMassUpdate_aspx',N'Massive Update','N','N') , (1999,'4/5/2010','it-IT','fugOpenQuery_aspx',N'Domanda aperta','N','N') , (1999,'4/14/2010','it-IT','fugOpenSearch_aspx',N'Ricerca di una classificazione','N','N') , (1999,'9/16/2010','it-IT','fugSourcingMatrix_aspx',N'Tariff Calculator','N','N') , (1999,'4/14/2010','it-IT','fxdBrokerImportDashboard_aspx',N'Biglietti Liquidazione','N','N') , (1999,'3/10/2013','it-IT','fxdDPSQuery_aspx',N'Cerca DPS','N','N') , (1999,'3/10/2013','it-IT','fxdDTSHistory_aspx',N'Cerca Storia DPS','N','N') , (1999,'3/10/2013','it-IT','fxdDTSNotes_aspx',N'Note DPS','N','N') , (1999,'3/10/2013','it-IT','fxdDTSQuery_aspx',N'Cerca DPS','N','N') , (1999,'3/10/2013','it-IT','fxdDTSQueryDetail_aspx',N'Dettagli di Ricerca DPS','N','N') , (1999,'3/10/2013','it-IT','fxdDTSRegulationList_aspx',N'Elenco dei Regolamenti DPS','N','N') , (1999,'3/10/2013','it-IT','fxdDTSWebserviceTest_aspx',N'Prova del Servizio Web DPS','N','N') , (1999,'4/14/2010','it-IT','fxdECCNQuery_aspx',N'ECCN Classificazione','N','N') , (1999,'4/14/2010','it-IT','fxdEntryValidation_aspx',N'Biglietto di convalida','N','N') , (1999,'4/14/2010','it-IT','fxdEntryVisibilitySummary_aspx',N'Biglietto Sintesi','N','N') , (1999,'4/14/2010','it-IT','fxdPostEntryAmendment_aspx',N'In seguito a modifica','N','N') , (1999,'4/5/2010','it-IT','hlbtnAddToMyQueries',N'Le mie domande: Aggiungi','N','N') , (1999,'4/5/2010','it-IT','hlbtnDeleteTemplate',N'Rimuovere il modello','N','N') , (1999,'4/5/2010','it-IT','hlbtnSaveTemplate',N'Salvare il modello','N','N') , (1999,'4/5/2010','it-IT','hlbtnSubmit',N'sottomettere','N','N') , (1999,'4/5/2010','it-IT','hlExit',N'Uscita','N','N') , (1999,'4/14/2010','it-IT','hlkExport',N'Esportazione','N','N') , (1999,'4/5/2010','it-IT','hllblExit',N'Uscita','N','N') , (1999,'4/20/2010','it-IT','hlxAddNew',N'Aggiungi','N','N') , (1999,'4/14/2010','it-IT','hlxbtnSubmit',N'Analizzare','N','N') , (1999,'4/14/2010','it-IT','hlxCOO',N'Paese d''origine','N','N') , (1999,'4/14/2010','it-IT','hlxCountryOfOrigin',N'Paese di Origine','N','N') , (1999,'4/14/2010','it-IT','hlxDelete',N'Rimuovere','N','N') , (1999,'4/14/2010','it-IT','hlxDocLinks',N'Documentazione','N','N') , (1999,'4/14/2010','it-IT','hlxDocType',N'Tipo di documento','N','N') , (1999,'4/14/2010','it-IT','hlxEdit',N'Modifica','N','N') , (1999,'4/14/2010','it-IT','hlxEmail',N'E-mail','N','N') , (1999,'4/14/2010','it-IT','hlxEmployee',N'Dipendente','N','N') , (1999,'4/5/2010','it-IT','hlxExit',N'Uscita','N','N') , (1999,'4/5/2010','it-IT','hlxExport',N'Esportazione','N','N') , (1999,'4/14/2010','it-IT','hlxField',N'Campo','N','N') , (1999,'4/14/2010','it-IT','hlxlblAddCustomer',N'Aggiungi cliente','N','N') , (1999,'4/14/2010','it-IT','hlxlblCopy',N'Copia','N','N') , (1999,'4/14/2010','it-IT','hlxlblExit',N'Andare','N','N') , (1999,'4/14/2010','it-IT','hlxlblFill',N'Riempire Source','N','N') , (1999,'4/14/2010','it-IT','hlxlblGenerate',N'Generare','N','N') , (1999,'4/14/2010','it-IT','hlxlblLoad',N'Carico','N','N') , (1999,'4/14/2010','it-IT','hlxlblNew',N'Nuovo','N','N') , (1999,'4/14/2010','it-IT','hlxlblSave',N'Salvare','N','N') , (1999,'4/14/2010','it-IT','hlxlblVoid',N'Vuoto','N','N') , (1999,'4/14/2010','it-IT','hlxNetCost',N'Costo netto','N','N') , (1999,'4/14/2010','it-IT','hlxNote',N'Nota','N','N') , (1999,'4/14/2010','it-IT','hlxOperator',N'Operatore','N','N') , (1999,'4/14/2010','it-IT','hlxPreferenceCriterion',N'Criterio di preferenza','N','N') , (1999,'4/14/2010','it-IT','hlxProducer',N'Produttore','N','N') , (1999,'4/14/2010','it-IT','hlxProduct',N'Prodotto','N','N') , (1999,'4/14/2010','it-IT','hlxProductDesc',N'Descrizione','N','N') , (1999,'4/14/2010','it-IT','hlxRuleCategory',N'Trattato','N','N') , (1999,'4/14/2010','it-IT','hlxRuleFlag',N'Tipo','N','N') , (1999,'4/14/2010','it-IT','hlxRuleKey',N'Key dell''articolo','N','N') , (1999,'4/14/2010','it-IT','hlxRuleName',N'Nome articolo','N','N') , (1999,'4/14/2010','it-IT','hlxRuleSequence',N'Sequenza','N','N') , (1999,'4/7/2010','it-IT','hlxSearch',N'Cerca','N','N') , (1999,'4/14/2010','it-IT','hlxSelectMultipleProducts',N'Selezionare i prodotti','N','N') , (1999,'4/14/2010','it-IT','hlxSelectProducts',N'Seleziona il prodotto','N','N') , (1999,'4/14/2010','it-IT','hlxtmgProductNumFTACertProductDesc',N'Prodotto','N','N') , (1999,'4/14/2010','it-IT','hlxValueList',N'Valore','N','N') , (1999,'4/5/2010','it-IT','HsNum',N'Tariffa armonizzata','N','N') , (1999,'4/14/2010','it-IT','HyperLink1',N'Andare','N','N') , (1999,'4/5/2010','it-IT','hyplnkExit',N'Uscita','N','N') , (1999,'4/5/2010','it-IT','hyplnkSearch',N'Cercare','N','N') , (1999,'4/14/2010','it-IT','hyxlnkDocumentRetention',N'Conservazione dei documenti','N','N') , (1999,'4/5/2010','it-IT','hyxlnkExit',N'Uscita','N','N') , (1999,'4/14/2010','it-IT','hyxlnkGenerate',N'Generare','N','N') , (1999,'4/14/2010','it-IT','hyxlnkNew',N'Nuovo','N','N') , (1999,'4/14/2010','it-IT','hyxlnkNextBottom',N'Avanti>','N','N') , (1999,'4/14/2010','it-IT','hyxlnkNextTop',N'Avanti>','N','N') , (1999,'4/14/2010','it-IT','hyxlnkPreviousBottom',N'<Precedente','N','N') , (1999,'4/14/2010','it-IT','hyxlnkPreviousTop',N'<Precedente','N','N') , (1999,'4/5/2010','it-IT','IncoTerms',N'Incoterms','N','N') , (1999,'4/5/2010','it-IT','InvoiceGUID',N'Bolleta','N','N') , (1999,'4/5/2010','it-IT','Language',N'Lingua','N','N') , (1999,'4/14/2010','it-IT','LastUpdatedBy',N'Ultimo aggiornamento effettuato da','N','N') , (1999,'4/5/2010','it-IT','lbAttach',N'Allega documento','N','N') , (1999,'4/14/2010','it-IT','lbCreateNewRequest',N'Crea nuova applicazione','N','N') , (1999,'4/5/2010','it-IT','lbExit',N'Uscita','N','N') , (1999,'4/14/2010','it-IT','lbFilterListGo',N'Cerca','N','N') , (1999,'4/14/2010','it-IT','lblListFilter',N'Filtro in base a','N','N') , (1999,'4/14/2010','it-IT','lbSendRemindar',N'Inviare Promemoria','N','N') , (1999,'4/14/2010','it-IT','lbxAddRow',N'Aggiungi riga','N','N') , (1999,'4/14/2010','it-IT','lbxAgreement',N'Di libero scambio','N','N') , (1999,'4/14/2010','it-IT','lbxAnalysisNo',N'Analisi #','N','N') , (1999,'4/14/2010','it-IT','lbxBill',N'Conto','N','N') , (1999,'4/14/2010','it-IT','lbxBillofMaterials',N'Elencare le materie','N','N') , (1999,'4/14/2010','it-IT','lbxBomIM',N'Prodotto finale','N','N') , (1999,'4/14/2010','it-IT','lbxBomPC',N'Componenti','N','N') , (1999,'4/14/2010','it-IT','lbxCertificate',N'Certificato','N','N') , (1999,'4/14/2010','it-IT','lbxCharValues',N'Valori','N','N') , (1999,'4/19/2010','it-IT','lbxCity',N'Città','N','N') , (1999,'4/14/2010','it-IT','lbxCompany',N'Azienda','N','N') , (1999,'4/14/2010','it-IT','lbxCountry',N'Paese','N','N') , (1999,'4/14/2010','it-IT','lbxDateValues',N'Selezionare Data','N','N') , (1999,'4/5/2010','it-IT','lbxDestinationFile',N'Tabella di destinazione','N','N') , (1999,'4/5/2010','it-IT','lbxDocAccessType',N'Tipo di accesso','N','N') , (1999,'4/5/2010','it-IT','lbxDocumentType',N'Tipo di modulo','N','N') , (1999,'4/14/2010','it-IT','lbxDuty',N'Tariffario','N','N') , (1999,'4/14/2010','it-IT','lbxEntryNumber',N'Immissione del Numero','N','N') , (1999,'4/14/2010','it-IT','lbxExporter',N'Esportatore','N','N') , (1999,'4/14/2010','it-IT','lbxExporterAddress1',N'Esportatore Indirizzo 1','N','N') , (1999,'4/14/2010','it-IT','lbxExporterAddress2',N'Esportatore Indirizzo 2','N','N') , (1999,'4/14/2010','it-IT','lbxExporterName',N'Nome del Esportatore','N','N') , (1999,'4/14/2010','it-IT','lbxExporterTaxId',N'Avvocato Registrazione Esportatore Numero','N','N') , (1999,'4/14/2010','it-IT','lbxField',N'Campo','N','N') , (1999,'4/14/2010','it-IT','lbxFieldToEdit',N'Seleziona il paese','N','N') , (1999,'4/14/2010','it-IT','lbxFilerPOC',N'Contatto','N','N') , (1999,'4/14/2010','it-IT','lbxFill',N'Compilare','N','N') , (1999,'4/5/2010','it-IT','lbxFor',N'Per','N','N') , (1999,'4/5/2010','it-IT','lbxFormType',N'Tipo di Modulo','N','N') , (1999,'4/14/2010','it-IT','lbxFrom',N'Da','N','N') , (1999,'4/14/2010','it-IT','lbxFromDate',N'Da','N','N') , (1999,'4/14/2010','it-IT','lbxFromDateStuc',N'(Gg / mm / aaaa)','N','N') , (1999,'4/14/2010','it-IT','lbxFromFormat',N'(Gg / mm / aaaa)','N','N') , (1999,'4/14/2010','it-IT','lbxFTA',N'TLC','N','N') , (1999,'4/5/2010','it-IT','lbxGenerate',N'Caricare e importare i dati','N','N') , (1999,'3/3/2017','it-IT','lbxGoHome',N'Uscita','N','N') , (1999,'4/14/2010','it-IT','lbxHSLocation',N'Fonte tariffario','N','N') , (1999,'4/5/2010','it-IT','lbxIdentifier',N'Accesso','N','N') , (1999,'4/14/2010','it-IT','lbxImporter',N'Importatore','N','N') , (1999,'4/14/2010','it-IT','lbxImporterAddress1',N'Importatore Indirizzo 1','N','N') , (1999,'4/14/2010','it-IT','lbxImporterAddress2',N'Importatore Indirizzo 2','N','N') , (1999,'4/14/2010','it-IT','lbxImporterName',N'Importatore Nome','N','N') , (1999,'4/14/2010','it-IT','lbxImporterNumber',N'Importatore Numero','N','N') , (1999,'4/14/2010','it-IT','lbxImporterTaxId',N'Avvocato Registrazione Importatore Numero','N','N') , (1999,'4/14/2010','it-IT','lbxIncludeESig',N'Includi firma elettronica','N','N') , (1999,'4/14/2010','it-IT','lbxLiquidationDate',N'Data di Liquidazione','N','N') , (1999,'4/14/2010','it-IT','lbxLoadRequest',N'Carica Richiesta','N','N') , (1999,'4/5/2010','it-IT','lbxLocationOfFile',N'Ubicazione di documento','N','N') , (1999,'4/14/2010','it-IT','lbxLongDesc',N'Descrizione','N','N') , (1999,'4/5/2010','it-IT','lbxMemo',N'Nota','N','N') , (1999,'4/14/2010','it-IT','lbxName',N'Nome','N','N') , (1999,'4/14/2010','it-IT','lbxNarrativeDescription',N'Descrizione','N','N') , (1999,'4/14/2010','it-IT','lbxNew',N'Nuovo','N','N') , (1999,'4/14/2010','it-IT','lbxNewValue',N'Cambiare il valore','N','N') , (1999,'4/14/2010','it-IT','lbxOperator',N'Operatore','N','N') , (1999,'4/14/2010','it-IT','lbxPayment',N'Pagamento','N','N') , (1999,'4/14/2010','it-IT','lbxPort',N'Porto','N','N') , (1999,'4/14/2010','it-IT','lbxProducer',N'Produttore','N','N') , (1999,'4/14/2010','it-IT','lbxProducerAddress1',N'Produttore Indirizzo 1','N','N') , (1999,'4/14/2010','it-IT','lbxProducerAddress2',N'Produttore Indirizzo 2','N','N') , (1999,'4/14/2010','it-IT','lbxProducerName',N'Produttore Nome','N','N') , (1999,'4/14/2010','it-IT','lbxProducerTaxID',N'Avvocato Numero di registrazione del produttore','N','N') , (1999,'4/14/2010','it-IT','lbxProduct',N'Prodotto','N','N') , (1999,'4/14/2010','it-IT','lbxProductSearch',N'Product Search','N','N') , (1999,'4/14/2010','it-IT','lbxReasonCode',N'Ragione','N','N') , (1999,'4/5/2010','it-IT','lbxRecordsPerPage',N'Risultati per pagina','N','N') , (1999,'4/14/2010','it-IT','lbxRecordsToDisplay',N'Mostra Records','N','N') , (1999,'4/14/2010','it-IT','lbxRefund',N'Ritorno','N','N') , (1999,'4/14/2010','it-IT','lbxRequestStatus',N'Applicazione di stato','N','N') , (1999,'4/14/2010','it-IT','lbxRequestyear',N'Anno di applicazione','N','N') , (1999,'4/14/2010','it-IT','lbxRuleEffDate',N'In vigore dal','N','N') , (1999,'4/14/2010','it-IT','lbxRuleEnabled',N'Abilita Regola','N','N') , (1999,'4/14/2010','it-IT','lbxRuleException',N'Un''eccezione alle regole','N','N') , (1999,'4/14/2010','it-IT','lbxRuleExpDate',N'Effetto fino al','N','N') , (1999,'4/14/2010','it-IT','lbxRuleFlag',N'Tipo','N','N') , (1999,'4/14/2010','it-IT','lbxRuleKey',N'Key dell''articolo','N','N') , (1999,'4/14/2010','it-IT','lbxRuleList',N'Elenco di regole','N','N') , (1999,'4/14/2010','it-IT','lbxRuleName',N'Nome articolo','N','N') , (1999,'4/14/2010','it-IT','lbxRuleSeq',N'Sequenza','N','N') , (1999,'4/14/2010','it-IT','lbxRuleType',N'Categoria','N','N') , (1999,'4/5/2010','it-IT','lbxSearch',N'Cercare','N','N') , (1999,'4/5/2010','it-IT','lbxSearchCol',N'Cercare','N','N') , (1999,'4/5/2010','it-IT','lbxSearchFor',N'Per','N','N') , (1999,'4/14/2010','it-IT','lbxSearchName',N'Nome','N','N') , (1999,'4/14/2010','it-IT','lbxSectionMessage',N'Importo imposte rettificato','N','N') , (1999,'4/14/2010','it-IT','lbxSigDateStruc',N'(Gg / mm / aaaa)','N','N') , (1999,'4/14/2010','it-IT','lbxSignatureDate',N'Firma Data','N','N') , (1999,'4/14/2010','it-IT','lbxSignatureId',N'Firma Info','N','N') , (1999,'4/5/2010','it-IT','lbxSourceFile',N'Documento di origine','N','N') , (1999,'4/19/2010','it-IT','lbxStreet',N'Strada','N','N') , (1999,'4/14/2010','it-IT','lbxTable',N'Seleziona sorgente','N','N') , (1999,'4/14/2010','it-IT','lbxTax',N'Imposta','N','N') , (1999,'4/14/2010','it-IT','lbxToDate',N'Fino a quando','N','N') , (1999,'4/14/2010','it-IT','lbxToDateStruc',N'(Gg / mm / aaaa)','N','N') , (1999,'4/14/2010','it-IT','lbxTotalPaidRefundAmount',N'Totale pagato, restituiti o importo del conto','N','N') , (1999,'4/14/2010','it-IT','lbxUploadBOM',N'Carica BOM','N','N') , (1999,'4/14/2010','it-IT','lbxValidationGroup',N'Convalida del Gruppo','N','N') , (1999,'4/14/2010','it-IT','lbxValidationType',N'Convalida del tipo','N','N') , (1999,'4/14/2010','it-IT','lbxValues',N'Valori','N','N') , (1999,'4/14/2010','it-IT','lbxVoidExplanation',N'Motivo della cancellazione','N','N') , (1999,'4/14/2010','it-IT','lbxVoidReasonCode',N'Cancellazione del codice','N','N') , (1999,'4/5/2010','it-IT','LineNumber',N'numero di linea','N','N') , (1999,'4/14/2010','it-IT','LiquidationClock',N'Giorni Dopo','N','N') , (1999,'4/14/2010','it-IT','lkxbtnAdd',N'Aggiungere','N','N') , (1999,'4/14/2010','it-IT','lkxGenerate',N'Certificare BOM','N','N') , (1999,'4/14/2010','it-IT','lkxPrint',N'Stampa','N','N') , (1999,'4/14/2010','it-IT','lnkCheckWorkflowStatus',N'Fresco','N','N') , (1999,'4/14/2010','it-IT','lnkExit',N'Andare','N','N') , (1999,'4/14/2010','it-IT','lnkGotoPage',N'Vai a','N','N') , (1999,'4/14/2010','it-IT','lnkValidate',N'Convalidare','N','N') , (1999,'4/14/2010','it-IT','lnxAddCharSearch',N'Aggiungere una ricerca','N','N') , (1999,'4/14/2010','it-IT','lnxAddDateSearch',N'Aggiungi alla Ricerca','N','N') , (1999,'4/5/2010','it-IT','lnxbtnAdd',N'Aggiungi Prodotto','N','N') , (1999,'4/14/2010','it-IT','lnxbtnApplyUpdate',N'Applicare l''aggiornamento','N','N') , (1999,'4/14/2010','it-IT','lnxbtnApprove',N'Approvare Audit','N','N') , (1999,'4/14/2010','it-IT','lnxbtnAssignTo',N'Assegnare un','N','N') , (1999,'4/14/2010','it-IT','lnxbtnClearSearch',N'Cerca Chiaro','N','N') , (1999,'4/14/2010','it-IT','lnxbtnGenCertificate',N'Genera Certificato','N','N') , (1999,'4/14/2010','it-IT','lnxbtnGenerate',N'Generare','N','N') , (1999,'4/14/2010','it-IT','lnxbtnGeneratePEA',N'Generare','N','N') , (1999,'4/5/2010','it-IT','lnxbtnGo',N'Cercare','N','N') , (1999,'4/14/2010','it-IT','lnxbtnHeader',N'Informazioni','N','N') , (1999,'4/14/2010','it-IT','lnxbtnNew',N'Nuovo','N','N') , (1999,'4/14/2010','it-IT','lnxbtnOrigin',N'Regola d''origine','N','N') , (1999,'4/14/2010','it-IT','lnxbtnPCHSOverride',N'Inserisci Frazione mancante','N','N') , (1999,'4/14/2010','it-IT','lnxbtnProcessBOM',N'Liste di trattamento dei materiali','N','N') , (1999,'4/14/2010','it-IT','lnxbtnReqCertificate',N'Richiesta di certificato','N','N') , (1999,'7/11/2011','it-IT','lnxbtnReturnToDashboard',N'Ritorno a cruscotto','N','N') , (1999,'1/16/2012','it-IT','lnxbtnSave',N'Risparmi','N','N') , (1999,'4/14/2010','it-IT','lnxbtnSave2',N'Salvare','N','N') , (1999,'4/14/2010','it-IT','lnxbtnSaveSigned',N'Salva certificato firmato','N','N') , (1999,'4/5/2010','it-IT','lnxbtnSearch',N'Cercare','N','N') , (1999,'4/14/2010','it-IT','lnxExport',N'Esportazione','N','N') , (1999,'4/14/2010','it-IT','lnxnewsearch',N'Nuova Ricerca','N','N') , (1999,'4/14/2010','it-IT','lnxSearchedColumnsClear',N'Pulito','N','N') , (1999,'4/14/2010','it-IT','lnxSearchedColumnsSave',N'Salvare','N','N') , (1999,'4/14/2010','it-IT','lnxShowDisplayColumns',N'Mostra colonne','N','N') , (1999,'4/5/2010','it-IT','Name',N'Nome','N','N') , (1999,'4/5/2010','it-IT','Next &gt',N'Seguente','N','N') , (1999,'4/14/2010','it-IT','Notes',N'Note','N','N') , (1999,'4/14/2010','it-IT','NumOfProducts',N'Numero di prodotti','N','N') , (1999,'4/5/2010','it-IT','Organization',N'Organizzazione','N','N') , (1999,'4/14/2010','it-IT','Period Begin Date',N'Data di inizio periodo','N','N') , (1999,'4/5/2010','it-IT','Product',N'Prodotto','N','N') , (1999,'4/14/2010','it-IT','Product Type',N'Tipo di prodotto','N','N') , (1999,'4/14/2010','it-IT','ProductNum',N'Prodotto','N','N') , (1999,'4/5/2010','it-IT','PurchaseOrderAssignment',N'Assegnazione di ordine di acquisto','N','N') , (1999,'4/5/2010','it-IT','PurchaseOrderGUID',N'Ordine di acquisto','N','N') , (1999,'4/14/2010','it-IT','PurchaseOrderNum_aspx',N'Acquisto ordine di ricerca','N','N') , (1999,'4/5/2010','it-IT','rdxbtnNew',N'Nuovo','N','N') , (1999,'4/5/2010','it-IT','rdxbtnSuccessive',N'Successivo','N','N') , (1999,'4/14/2010','it-IT','rdxlstSearchType_0',N'Periodico','N','N') , (1999,'4/5/2010','it-IT','Records per page',N'Risultati per pagina','N','N') , (1999,'4/14/2010','it-IT','Report',N'Relazione','N','N') , (1999,'4/14/2010','it-IT','Request Name',N'Nome Applicazione','N','N') , (1999,'4/14/2010','it-IT','Request Note',N'Note','N','N') , (1999,'4/14/2010','it-IT','Request Status',N'Applicazione di stato','N','N') , (1999,'4/14/2010','it-IT','RequestName',N'Nome Applicazione','N','N') , (1999,'4/5/2010','it-IT','RptUom',N'unità di misura','N','N') , (1999,'4/14/2010','it-IT','Rule Description',N'Regola numero','N','N') , (1999,'4/14/2010','it-IT','Search_aspx',N'Cerca prodotto','N','N') , (1999,'4/14/2010','it-IT','Select All',N'Seleziona tutto','N','N') , (1999,'4/5/2010','it-IT','ShipDate',N'data di spedizione','N','N') , (1999,'4/5/2010','it-IT','ShipToID',N'inviare','N','N') , (1999,'4/14/2010','it-IT','SignatureDate',N'Firmato a','N','N') , (1999,'4/5/2010','it-IT','Status',N'Stato','N','N') , (1999,'4/14/2010','it-IT','SupplierID',N'Provider ID','N','N') , (1999,'4/14/2010','it-IT','Title',N'Titolo','N','N') , (1999,'4/14/2010','it-IT','To',N'Fino a quando','N','N') , (1999,'4/14/2010','it-IT','Transaction Value',N'Valore di transazione','N','N') , (1999,'4/5/2010','it-IT','TxnQty',N'Importo','N','N') , (1999,'4/5/2010','it-IT','TxnQtyUOM',N'unità di misura','N','N') , (1999,'4/14/2010','it-IT','Username',N'UserName','N','N') , (1999,'4/5/2010','it-IT','Value',N'Valore','N','N') , (1999,'4/5/2010','it-IT','VendorID',N'venditore','N','N') , (1999,'4/5/2010','it-IT','View',N'Vista','N','N') , (1999,'4/14/2010','it-IT','Yearly Volume',N'Volume annuale','N','N') , (1999,'2/12/2019','ja-JP','(Hide Inputs...)',N'(入力を隠す...)','N','N') , (1999,'2/12/2019','ja-JP','(Hide Search Fields...)',N'(検索フィールドを非表示にする...)','N','N') , (1999,'2/12/2019','ja-JP','* Or Highlighted Item Indicates Required Fields',N'*または強調表示された項目は必須項目を示します','N','N') , (1999,'2/12/2019','ja-JP','{0} complete of {1} record(s)',N'{0}件の{1}件のレコードが完了しました','N','N') , (1999,'2/12/2019','ja-JP','{4} {5} items in {1} pages',N'{1}ページの{4} {5}個のアイテム','N','N') , (1999,'2/12/2019','ja-JP','10072009EG',N'10072009EG','N','N') , (1999,'2/12/2019','ja-JP','12102003',N'12102003','N','N') , (1999,'2/12/2019','ja-JP','12362005EG',N'12362005EG','N','N') , (1999,'2/12/2019','ja-JP','15232007EG',N'15232007EG','N','N') , (1999,'2/12/2019','ja-JP','201165EU',N'201165EU','N','N') , (1999,'2/12/2019','ja-JP','201430EU',N'201430EU','N','N') , (1999,'2/12/2019','ja-JP','201435EU',N'201435EU','N','N') , (1999,'2/12/2019','ja-JP','362012',N'362012','N','N') , (1999,'2/12/2019','ja-JP','ACBPSApplies',N'ACBPSが適用されます','N','N') , (1999,'2/12/2019','ja-JP','AccumAvgExportPrice',N'アキュム平均輸出価格','N','N') , (1999,'2/12/2019','ja-JP','AccumAvgImportPrice',N'アキュム平均輸入価格','N','N') , (1999,'2/12/2019','ja-JP','ACEApplies',N'ACEが適用されます','N','N') , (1999,'2/12/2019','ja-JP','ACEIndicator',N'ACEインジケータ','N','N') , (1999,'2/12/2019','ja-JP','ACENotes',N'ACEノート','N','N') , (1999,'2/12/2019','ja-JP','ACHIPIAApplies',N'ACHIPIAが適用されます','N','N') , (1999,'2/12/2019','ja-JP','Action',N'アクション','N','N') , (1999,'2/12/2019','ja-JP','Active',N'アクティブ','N','N') , (1999,'2/12/2019','ja-JP','Active Solicitations',N'活発な懇願','N','N') , (1999,'2/12/2019','ja-JP','ActiveFlag',N'アクティブフラグ','N','N') , (1999,'2/12/2019','ja-JP','ADApplies',N'AD適用','N','N') , (1999,'2/12/2019','ja-JP','ADCaseNum',N'AD症例番号','N','N') , (1999,'2/12/2019','ja-JP','ADCaseNumber',N'AD症例番号','N','N') , (1999,'2/12/2019','ja-JP','Add',N'追加','N','N') , (1999,'2/12/2019','ja-JP','Add Comment',N'コメントを追加','N','N') , (1999,'2/12/2019','ja-JP','ADDApplies',N'ADDが適用されます','N','N') , (1999,'2/12/2019','ja-JP','AdditionalCode',N'追加コード','N','N') , (1999,'2/12/2019','ja-JP','AdditionalCodeText',N'追加コードテキスト','N','N') , (1999,'2/12/2019','ja-JP','AdditionalCodeType',N'追加のコードタイプ','N','N') , (1999,'2/12/2019','ja-JP','AddlHSUOMConvFactor',N'追加のHS単位換算係数','N','N') , (1999,'2/12/2019','ja-JP','AddlHTSUOMConvFactor',N'追加のHTS単位換算係数','N','N') , (1999,'2/12/2019','ja-JP','AddlRptQtyUOM',N'追加レポート数量単位','N','N') , (1999,'2/12/2019','ja-JP','Address',N'住所','N','N') , (1999,'2/12/2019','ja-JP','ADDutyRate',N'AD Duty Rate','N','N') , (1999,'2/12/2019','ja-JP','ADDutyRatePcnt',N'AD Duty Rate Percent','N','N') , (1999,'2/12/2019','ja-JP','ADDutyRateValue',N'ADデューティレート値','N','N') , (1999,'2/12/2019','ja-JP','AdvaloremRate',N'Advalorem Rate','N','N') , (1999,'2/12/2019','ja-JP','AEGCS02',N'AEGCS03','N','N') , (1999,'2/12/2019','ja-JP','AEGCS03',N'AEGCS04','N','N') , (1999,'2/12/2019','ja-JP','AEGCS07',N'AEGCS07','N','N') , (1999,'2/12/2019','ja-JP','AEGCS09',N'AEGCS10','N','N') , (1999,'2/12/2019','ja-JP','AEIBApplies',N'AEIBが適用されます','N','N') , (1999,'2/12/2019','ja-JP','AFCDApplies',N'AFCD適用','N','N') , (1999,'2/12/2019','ja-JP','Agency',N'代理店','N','N') , (1999,'2/12/2019','ja-JP','Agreement',N'契約','N','N') , (1999,'2/12/2019','ja-JP','Agreements',N'契約','N','N') , (1999,'2/12/2019','ja-JP','AHTNNum',N'AHTN番号','N','N') , (1999,'2/12/2019','ja-JP','ALADIAgreementCode',N'ALADI契約コード','N','N') , (1999,'2/12/2019','ja-JP','AlcoholContainedPercentage',N'アルコール含有率','N','N') , (1999,'2/12/2019','ja-JP','AliasEffDate',N'エイリアス有効日','N','N') , (1999,'2/12/2019','ja-JP','Aliases',N'エイリアス','N','N') , (1999,'2/12/2019','ja-JP','AliasExpDate',N'別名有効期限','N','N') , (1999,'2/12/2019','ja-JP','ALL',N'すべて','N','N') , (1999,'2/12/2019','ja-JP','All items submitted',N'送信されたすべてのアイテム','N','N') , (1999,'2/12/2019','ja-JP','Allowable',N'許容値','N','N') , (1999,'2/12/2019','ja-JP','AltCurrencyCode',N'代替通貨コード','N','N') , (1999,'2/12/2019','ja-JP','AltFullName',N'代替フルネーム','N','N') , (1999,'2/12/2019','ja-JP','AltHTSIndex',N'代替HTSインデックス','N','N') , (1999,'2/12/2019','ja-JP','AltHTSNum',N'代替HTS番号','N','N') , (1999,'2/12/2019','ja-JP','AltHTSUOMConvFactor',N'代替HTS単位換算係数','N','N') , (1999,'2/12/2019','ja-JP','AltProductDesc',N'代替製品の説明','N','N') , (1999,'2/12/2019','ja-JP','AltProductDesc2',N'代替製品説明3','N','N') , (1999,'2/12/2019','ja-JP','AltValue',N'代替値','N','N') , (1999,'2/12/2019','ja-JP','AltValue2',N'代替値3','N','N') , (1999,'2/12/2019','ja-JP','AMSApplies',N'AMSが適用される','N','N') , (1999,'2/12/2019','ja-JP','AMSIndicator',N'AMS指標','N','N') , (1999,'2/12/2019','ja-JP','AMSNotes',N'AMSノート','N','N') , (1999,'2/12/2019','ja-JP','Analysis Date',N'分析日','N','N') , (1999,'2/12/2019','ja-JP','Analysis Number',N'解析番号','N','N') , (1999,'2/12/2019','ja-JP','Analysis Run Date',N'分析実行日','N','N') , (1999,'2/12/2019','ja-JP','AnalysisNo',N'分析番号','N','N') , (1999,'2/12/2019','ja-JP','ANCINEApplies',N'ANCINEが適用されます','N','N') , (1999,'2/12/2019','ja-JP','and',N'そして','N','N') , (1999,'2/12/2019','ja-JP','AnimalRegApplies',N'動物規制が適用される','N','N') , (1999,'2/12/2019','ja-JP','ANPApplies',N'ANPが適用されます','N','N') , (1999,'2/12/2019','ja-JP','ANVISApplies',N'ANVISが適用されます','N','N') , (1999,'2/12/2019','ja-JP','APHApplies',N'APHが適用されます','N','N') , (1999,'2/12/2019','ja-JP','APHIndicator',N'APH指標','N','N') , (1999,'2/12/2019','ja-JP','APHISApplies',N'APHISが適用されます','N','N') , (1999,'2/12/2019','ja-JP','APHISNotes',N'APHISノート','N','N') , (1999,'2/12/2019','ja-JP','APHNotes',N'APHノート','N','N') , (1999,'2/12/2019','ja-JP','AppendAdditionalCode',N'追加コードを追加する','N','N') , (1999,'2/12/2019','ja-JP','ApplicableCountry',N'適用国','N','N') , (1999,'2/12/2019','ja-JP','ApplyDate',N'適用日','N','N') , (1999,'2/12/2019','ja-JP','ApprovalDate',N'承認日','N','N') , (1999,'2/12/2019','ja-JP','Approve Audits',N'監査を承認する','N','N') , (1999,'2/12/2019','ja-JP','ApproveColumn',N'列を承認する','N','N') , (1999,'2/12/2019','ja-JP','ApprovedBy',N'によって承認された','N','N') , (1999,'2/12/2019','ja-JP','APQAApplies',N'APQAが適用されます','N','N') , (1999,'2/12/2019','ja-JP','AQISCommodityCode',N'AQIS商品コード','N','N') , (1999,'2/12/2019','ja-JP','AQISPackageType',N'AQISパッケージタイプ','N','N') , (1999,'2/12/2019','ja-JP','AQISPermitNum',N'AQIS許可番号','N','N') , (1999,'2/12/2019','ja-JP','AQISProducerCode',N'AQISプロデューサーコード','N','N') , (1999,'2/12/2019','ja-JP','AR',N'AR','N','N') , (1999,'2/12/2019','ja-JP','ARAFIP',N'ARAFIP','N','N') , (1999,'2/12/2019','ja-JP','ARANA',N'アラナ','N','N') , (1999,'2/12/2019','ja-JP','ARANMAT',N'ARANMAT','N','N') , (1999,'2/12/2019','ja-JP','ARARN',N'ARARN','N','N') , (1999,'2/12/2019','ja-JP','ARCPCEPNIH',N'ARCPCEPNIH','N','N') , (1999,'2/12/2019','ja-JP','ARHCNA',N'アルケナ','N','N') , (1999,'2/12/2019','ja-JP','ARINASE',N'アリナース','N','N') , (1999,'2/12/2019','ja-JP','ARINV',N'ARINV','N','N') , (1999,'2/12/2019','ja-JP','ARMAI',N'ARMAI','N','N') , (1999,'2/12/2019','ja-JP','ARMDI',N'ARMDI','N','N') , (1999,'2/12/2019','ja-JP','ARMEYFP',N'ARMEYFP','N','N') , (1999,'2/12/2019','ja-JP','ARMEYOYSP',N'ARMEYOYSP','N','N') , (1999,'2/12/2019','ja-JP','ARMEYP',N'ARMEYP','N','N') , (1999,'2/12/2019','ja-JP','ARMPN',N'ARMPN','N','N') , (1999,'2/12/2019','ja-JP','ARMS',N'ARMS','N','N') , (1999,'2/12/2019','ja-JP','ARPEN',N'アルペン','N','N') , (1999,'2/12/2019','ja-JP','ARRENAR',N'ARRENAR','N','N') , (1999,'2/12/2019','ja-JP','ARSAYDS',N'ARSAYDS','N','N') , (1999,'2/12/2019','ja-JP','ARSC',N'ARSC','N','N') , (1999,'2/12/2019','ja-JP','ARSCI',N'ARSCI','N','N') , (1999,'2/12/2019','ja-JP','ARSEDRONAR',N'ARSEDRONAR','N','N') , (1999,'2/12/2019','ja-JP','ARSENASA',N'アルセナサ','N','N') , (1999,'2/12/2019','ja-JP','AssayElementCode',N'アッセイエレメントコード','N','N') , (1999,'2/12/2019','ja-JP','AssayElementConcentration',N'アッセイ元素濃度','N','N') , (1999,'2/12/2019','ja-JP','AssayElementConcentrationUnit',N'アッセイエレメント濃縮ユニット','N','N') , (1999,'2/12/2019','ja-JP','Assigned To',N'に割り当てられた','N','N') , (1999,'2/12/2019','ja-JP','AssuranceLevel',N'保証レベル','N','N') , (1999,'2/12/2019','ja-JP','ATFApplies',N'ATFが適用されます','N','N') , (1999,'2/12/2019','ja-JP','ATFIndicator',N'ATFインジケータ','N','N') , (1999,'2/12/2019','ja-JP','ATFNotes',N'ATFノート','N','N') , (1999,'2/12/2019','ja-JP','Attachment',N'アタッチメント','N','N') , (1999,'2/12/2019','ja-JP','Attachment End Date',N'添付ファイルの終了日','N','N') , (1999,'2/12/2019','ja-JP','Attachment Start Date',N'添付ファイルの開始日','N','N') , (1999,'2/12/2019','ja-JP','AttributionText',N'帰属テキスト','N','N') , (1999,'2/12/2019','ja-JP','Audit',N'監査','N','N') , (1999,'2/12/2019','ja-JP','Audit Classifications',N'監査分類','N','N') , (1999,'2/12/2019','ja-JP','Audit Information',N'監査情報','N','N') , (1999,'2/12/2019','ja-JP','Audit Log',N'監査ログ','N','N') , (1999,'2/12/2019','ja-JP','Audit Log Changes by User',N'ユーザーによる監査ログの変更','N','N') , (1999,'2/12/2019','ja-JP','Audit Log Lookup',N'監査ログの検索','N','N') , (1999,'2/12/2019','ja-JP','AuditDate',N'監査日','N','N') , (1999,'2/12/2019','ja-JP','AuditNotes',N'監査ノート','N','N') , (1999,'2/12/2019','ja-JP','AUGCS01',N'AUGCS01','N','N') , (1999,'2/12/2019','ja-JP','AUGCS02',N'AUGCS03','N','N') , (1999,'2/12/2019','ja-JP','AUGCS03',N'AUGCS04','N','N') , (1999,'2/12/2019','ja-JP','AUGCS04',N'AUGCS04','N','N') , (1999,'2/12/2019','ja-JP','AUGCS05',N'AUGCS05','N','N') , (1999,'2/12/2019','ja-JP','AUGCS06',N'AUGCS06','N','N') , (1999,'2/12/2019','ja-JP','AUGCS07',N'AUGCS08','N','N') , (1999,'2/12/2019','ja-JP','AUGCS08',N'AUGCS09','N','N') , (1999,'2/12/2019','ja-JP','AUGCS09',N'AUGCS10','N','N') , (1999,'2/12/2019','ja-JP','AUGCS11',N'AUGCS11','N','N') , (1999,'2/12/2019','ja-JP','AVAApplies',N'AVAが適用されます','N','N') , (1999,'2/12/2019','ja-JP','Availability',N'可用性','N','N') , (1999,'2/12/2019','ja-JP','Available Docks',N'利用可能なドック','N','N') , (1999,'2/12/2019','ja-JP','BCAApplies',N'BCA適用','N','N') , (1999,'2/12/2019','ja-JP','BFCApplies',N'BFCが適用されます','N','N') , (1999,'2/12/2019','ja-JP','Bill Of Materials',N'部品表','N','N') , (1999,'2/12/2019','ja-JP','BillToID',N'Bill To ID','N','N') , (1999,'2/12/2019','ja-JP','BindingRuling',N'バインディングの裁定','N','N') , (1999,'2/12/2019','ja-JP','BindingRulingApplies',N'罫線適用が適用されます','N','N') , (1999,'2/12/2019','ja-JP','BindingRulingDescription',N'拘束裁定の説明','N','N') , (1999,'2/12/2019','ja-JP','BindingRulingGuid',N'バインディング裁定ID','N','N') , (1999,'2/12/2019','ja-JP','BindingRulingHSNumber',N'罫線番号の罫線','N','N') , (1999,'2/12/2019','ja-JP','BindingRulingReferenceCode',N'バインディング罫線参照コード','N','N') , (1999,'2/12/2019','ja-JP','BindingRulingsMatches',N'拘束裁定','N','N') , (1999,'2/12/2019','ja-JP','BindingRulingType',N'結合罫線タイプ','N','N') , (1999,'2/12/2019','ja-JP','BISApplies',N'BISが適用されます','N','N') , (1999,'2/12/2019','ja-JP','BISIndicator',N'BISインジケータ','N','N') , (1999,'2/12/2019','ja-JP','BISNotes',N'BISノート','N','N') , (1999,'2/12/2019','ja-JP','BLSApplies',N'BLSが適用されます','N','N') , (1999,'2/12/2019','ja-JP','BLSIndicator',N'BLSインジケータ','N','N') , (1999,'2/12/2019','ja-JP','BLSNotes',N'BLSノート','N','N') , (1999,'2/12/2019','ja-JP','BOIExpiryDate',N'BOI有効期限','N','N') , (1999,'2/12/2019','ja-JP','BOIID',N'BOI ID','N','N') , (1999,'2/12/2019','ja-JP','BOINotes',N'BOIノート','N','N') , (1999,'2/12/2019','ja-JP','BOM',N'BOM','N','N') , (1999,'2/12/2019','ja-JP','BOM Analysis Audit Log',N'BOM分析監査ログ','N','N') , (1999,'2/12/2019','ja-JP','BOM Analysis Metrics',N'BOM分析メトリック','N','N') , (1999,'2/12/2019','ja-JP','BOM Count',N'BOMカウント','N','N') , (1999,'2/12/2019','ja-JP','BOM End Date',N'BOM終了日','N','N') , (1999,'2/12/2019','ja-JP','BOM ID',N'請求書ID','N','N') , (1999,'2/12/2019','ja-JP','BOM Start Date',N'BOM開始日','N','N') , (1999,'2/12/2019','ja-JP','BOMGuid',N'BOM ID','N','N') , (1999,'2/12/2019','ja-JP','BOMNote',N'BOMノート','N','N') , (1999,'2/12/2019','ja-JP','BOMs Using PC',N'PCを使用したBOM','N','N') , (1999,'2/12/2019','ja-JP','BPR',N'BPR','N','N') , (1999,'2/12/2019','ja-JP','Brand',N'ブランド','N','N') , (1999,'2/12/2019','ja-JP','BRGCS01',N'製品階層レベル','N','N') , (1999,'2/12/2019','ja-JP','BRGCS02',N'製品階層レベルの説明','N','N') , (1999,'2/12/2019','ja-JP','BRGCS03',N'KGへの換算係数','N','N') , (1999,'2/12/2019','ja-JP','BRGCS04',N'KGへの換算係数GA','N','N') , (1999,'2/12/2019','ja-JP','BRGCS05',N'換算係数DR to KG','N','N') , (1999,'2/12/2019','ja-JP','BRGCS06',N'BRGCS07','N','N') , (1999,'2/12/2019','ja-JP','BRGCS07',N'BRGCS08','N','N') , (1999,'2/12/2019','ja-JP','BRGCS09',N'BRGCS10','N','N') , (1999,'2/12/2019','ja-JP','BRGCS12',N'BRGCS13','N','N') , (1999,'2/12/2019','ja-JP','BRTYPE',N'BRTYPE','N','N') , (1999,'2/12/2019','ja-JP','BTAApplies',N'BTAが適用される','N','N') , (1999,'2/12/2019','ja-JP','BTAIndicator',N'BTAインジケータ','N','N') , (1999,'2/12/2019','ja-JP','BTANotes',N'BTAノート','N','N') , (1999,'2/12/2019','ja-JP','BTIExpiryDate',N'BTI有効期限','N','N') , (1999,'2/12/2019','ja-JP','BTIID',N'BTI ID','N','N') , (1999,'2/12/2019','ja-JP','BTINotes',N'BTIノート','N','N') , (1999,'2/12/2019','ja-JP','BTSApplies',N'BTSが適用されます','N','N') , (1999,'2/12/2019','ja-JP','BTSIndicator',N'BTSインジケータ','N','N') , (1999,'2/12/2019','ja-JP','BTSNotes',N'BTSノート','N','N') , (1999,'2/12/2019','ja-JP','btxReturn',N'入力に戻る','N','N') , (1999,'2/12/2019','ja-JP','btxReturnToInputs',N'入力に戻る','N','N') , (1999,'2/12/2019','ja-JP','btxSelectedTable',N'テーブルをリフレッシュする','N','N') , (1999,'2/12/2019','ja-JP','btxShowResults',N'アナライザ','N','N') , (1999,'2/12/2019','ja-JP','Business Division',N'事業部','N','N') , (1999,'2/12/2019','ja-JP','Business Group',N'ビジネスグループ','N','N') , (1999,'2/12/2019','ja-JP','BusinessDivision',N'事業部','N','N') , (1999,'2/12/2019','ja-JP','BusinessGroup',N'ビジネスグループ','N','N') , (1999,'2/12/2019','ja-JP','BusinessNum',N'ビジネス番号','N','N') , (1999,'2/12/2019','ja-JP','BusinessUnit',N'事業単位','N','N') , (1999,'2/12/2019','ja-JP','CAApplies',N'CA適用','N','N') , (1999,'2/12/2019','ja-JP','CAConSub',N'CA Con Sub','N','N') , (1999,'2/12/2019','ja-JP','CAFCCases',N'CAFCケース','N','N') , (1999,'2/12/2019','ja-JP','CAGCD01',N'CAGCD01','N','N') , (1999,'2/12/2019','ja-JP','CAGCD02',N'CAGCD02','N','N') , (1999,'2/12/2019','ja-JP','CAGCD03',N'CAGCD03','N','N') INSERT INTO tmgPartnerCultureDefinitions(PartnerId,EffDate,CultureGuid,FieldName,FieldTranslation,DeletedFlag,KeepDuringRollback) VALUES (1999,'2/12/2019','ja-JP','CAGCD04',N'CAGCD04','N','N') , (1999,'2/12/2019','ja-JP','CAGCD05',N'CAGCD05','N','N') , (1999,'2/12/2019','ja-JP','CAGCL01',N'CAGCL01','N','N') , (1999,'2/12/2019','ja-JP','CAGCL02',N'CAGCL02','N','N') , (1999,'2/12/2019','ja-JP','CAGCL03',N'CAGCL03','N','N') , (1999,'2/12/2019','ja-JP','CAGCL04',N'CAGCL04','N','N') , (1999,'2/12/2019','ja-JP','CAGCL05',N'CAGCL05','N','N') , (1999,'2/12/2019','ja-JP','CAGCN01',N'CAGCN01','N','N') , (1999,'2/12/2019','ja-JP','CAGCN02',N'CAGCN02','N','N') , (1999,'2/12/2019','ja-JP','CAGCN03',N'CAGCN03','N','N') , (1999,'2/12/2019','ja-JP','CAGCN04',N'CAGCN04','N','N') , (1999,'2/12/2019','ja-JP','CAGCN05',N'CAGCN05','N','N') , (1999,'2/12/2019','ja-JP','CAGCS01',N'CAGCS01','N','N') , (1999,'2/12/2019','ja-JP','CAGCS02',N'CAGCS02','N','N') , (1999,'2/12/2019','ja-JP','CAGCS03',N'CAGCS03','N','N') , (1999,'2/12/2019','ja-JP','CAGCS04',N'CAGCS04','N','N') , (1999,'2/12/2019','ja-JP','CAGCS05',N'CAGCS05','N','N') , (1999,'2/12/2019','ja-JP','CAGCS06',N'CAGCS06','N','N') , (1999,'2/12/2019','ja-JP','CAGCS07',N'CAGCS07','N','N') , (1999,'2/12/2019','ja-JP','CAGCS08',N'CAGCS08','N','N') , (1999,'2/12/2019','ja-JP','CAGCS09',N'CAGCS09','N','N') , (1999,'2/12/2019','ja-JP','CAGCS10',N'CAGCS10','N','N') , (1999,'2/12/2019','ja-JP','CAGCS11',N'CAGCS11','N','N') , (1999,'2/12/2019','ja-JP','CAGCS12',N'CAGCS12','N','N') , (1999,'2/12/2019','ja-JP','CAGCS13',N'CAGCS13','N','N') , (1999,'2/12/2019','ja-JP','CAGCS14',N'CAGCS14','N','N') , (1999,'2/12/2019','ja-JP','CAGCS15',N'CAGCS15','N','N') , (1999,'2/12/2019','ja-JP','CAHealthCanada',N'カナダ健康カナダ','N','N') , (1999,'2/12/2019','ja-JP','CAHsNum',N'カナダHs番号','N','N') , (1999,'2/12/2019','ja-JP','CAIDNum',N'CAID番号','N','N') , (1999,'2/12/2019','ja-JP','CalculationOrder',N'計算順序','N','N') , (1999,'2/12/2019','ja-JP','CAMedDevClass',N'CA Med Devクラス','N','N') , (1999,'2/12/2019','ja-JP','CAMedDevLic',N'CA Med Devライセンス','N','N') , (1999,'2/12/2019','ja-JP','CANatResource',N'CAの自然資源','N','N') , (1999,'2/12/2019','ja-JP','Cancel',N'キャンセル','N','N') , (1999,'2/12/2019','ja-JP','CancelDate',N'キャンセル日','N','N') , (1999,'2/12/2019','ja-JP','CAProvince',N'カリフォルニア州','N','N') , (1999,'2/12/2019','ja-JP','CASCCode1',N'CASCコード2','N','N') , (1999,'2/12/2019','ja-JP','CASCCode2',N'CASCコード2','N','N') , (1999,'2/12/2019','ja-JP','CASCCode3',N'CASCコード3','N','N') , (1999,'2/12/2019','ja-JP','CASCProductCode',N'CASC製品コード','N','N') , (1999,'2/12/2019','ja-JP','CASNum',N'CAS番号','N','N') , (1999,'2/12/2019','ja-JP','Category1',N'カテゴリ1','N','N') , (1999,'2/12/2019','ja-JP','Category2',N'カテゴリ2','N','N') , (1999,'2/12/2019','ja-JP','Category9',N'カテゴリ9','N','N') , (1999,'2/12/2019','ja-JP','CategoryName',N'種別名','N','N') , (1999,'2/12/2019','ja-JP','CBApplies',N'CB適用','N','N') , (1999,'2/12/2019','ja-JP','CBCApplies',N'CBCが適用されます','N','N') , (1999,'2/12/2019','ja-JP','CBCIndicator',N'CBC指標','N','N') , (1999,'2/12/2019','ja-JP','CBCNotes',N'CBCノート','N','N') , (1999,'2/12/2019','ja-JP','CBPApplies',N'CBPが適用されます','N','N') , (1999,'2/12/2019','ja-JP','CBPIndicator',N'CBP指標','N','N') , (1999,'2/12/2019','ja-JP','CBPNotes',N'CBPノート','N','N') , (1999,'2/12/2019','ja-JP','CCUApplies',N'CCUが適用されます','N','N') , (1999,'2/12/2019','ja-JP','CDCApplies',N'CDC適用','N','N') , (1999,'2/12/2019','ja-JP','CDCIndicator',N'CDC指標','N','N') , (1999,'2/12/2019','ja-JP','CDCNotes',N'CDCノート','N','N') , (1999,'2/12/2019','ja-JP','CEDApplies',N'CEDが適用されます','N','N') , (1999,'2/12/2019','ja-JP','CEDCode',N'CEDコード','N','N') , (1999,'2/12/2019','ja-JP','CEDDutiableCommodityIndicator',N'CED控除可能商品指数','N','N') , (1999,'2/12/2019','ja-JP','Cert',N'証明書','N','N') , (1999,'2/12/2019','ja-JP','Cert Agreement',N'証明書契約','N','N') , (1999,'2/12/2019','ja-JP','Cert Detail',N'証明書の詳細','N','N') , (1999,'2/12/2019','ja-JP','Cert Type',N'証明書タイプ','N','N') , (1999,'2/12/2019','ja-JP','CertAgreement',N'証明書契約','N','N') , (1999,'2/12/2019','ja-JP','CertDesc',N'証明書の説明','N','N') , (1999,'2/12/2019','ja-JP','CertDetail',N'証明書の詳細','N','N') , (1999,'2/12/2019','ja-JP','Certificate End Date',N'証明書の終了日','N','N') , (1999,'2/12/2019','ja-JP','Certificate Start Date',N'証明書の開始日','N','N') , (1999,'2/12/2019','ja-JP','CertificateEndDate',N'証明書の終了日','N','N') , (1999,'2/12/2019','ja-JP','Certificates',N'証明書','N','N') , (1999,'2/12/2019','ja-JP','CertificateSource',N'証明書のソース','N','N') , (1999,'2/12/2019','ja-JP','CertificateStartDate',N'証明書の開始日','N','N') , (1999,'2/12/2019','ja-JP','Certifying Document',N'ドキュメントの認証','N','N') , (1999,'2/12/2019','ja-JP','CertType',N'証明書タイプ','N','N') , (1999,'2/12/2019','ja-JP','CESSMethod',N'CESSメソッド','N','N') , (1999,'2/12/2019','ja-JP','CFIAApplies',N'CFIAが適用されます','N','N') , (1999,'2/12/2019','ja-JP','CFIAGroupingComments',N'CFIAグループ化コメント','N','N') , (1999,'2/12/2019','ja-JP','CFIAGroupType',N'CFIAグループタイプ','N','N') , (1999,'2/12/2019','ja-JP','CFIANotes',N'CFIAメモ','N','N') , (1999,'2/12/2019','ja-JP','CFIASpeciesDesc',N'CFIA種の説明','N','N') , (1999,'2/12/2019','ja-JP','CGDApplies',N'CGDが適用されます','N','N') , (1999,'2/12/2019','ja-JP','CGDIndicator',N'CGD指標','N','N') , (1999,'2/12/2019','ja-JP','CGDNotes',N'CGDノート','N','N') , (1999,'2/12/2019','ja-JP','CGPFlag',N'CGPフラグ','N','N') , (1999,'2/12/2019','ja-JP','Change Dashboard',N'ダッシュボードの変更','N','N') , (1999,'2/12/2019','ja-JP','Changeset Name',N'セット名を変更','N','N') , (1999,'2/12/2019','ja-JP','ChangeStatusDisplay',N'ステータスを{0}に変更','N','N') , (1999,'2/12/2019','ja-JP','ChangeTypeDisplay',N'セットタイプを[{0}]に変更','N','N') , (1999,'2/12/2019','ja-JP','ChapterNotesMatches',N'章ノート一致','N','N') , (1999,'2/12/2019','ja-JP','Charge Detail',N'料金の詳細','N','N') , (1999,'2/12/2019','ja-JP','Charge Type',N'料金タイプ','N','N') , (1999,'2/12/2019','ja-JP','ChargeDetail',N'料金の詳細','N','N') , (1999,'2/12/2019','ja-JP','ChargeDetailGuid',N'料金詳細ID','N','N') , (1999,'2/12/2019','ja-JP','ChargeDetailTypeGuid',N'課金詳細タイプID','N','N') , (1999,'2/12/2019','ja-JP','ChargeGuid',N'請求ID','N','N') , (1999,'2/12/2019','ja-JP','ChargeQuotaGuid',N'課金ID','N','N') , (1999,'2/12/2019','ja-JP','ChargesNotesMatches',N'料金ノート一致','N','N') , (1999,'2/12/2019','ja-JP','ChargeType',N'料金タイプ','N','N') , (1999,'2/12/2019','ja-JP','ChargeTypeDescription',N'料金タイプの説明','N','N') , (1999,'2/12/2019','ja-JP','ChargeUse',N'料金の使用','N','N') , (1999,'2/12/2019','ja-JP','ChemicalName',N'化学名','N','N') , (1999,'2/12/2019','ja-JP','ChemicalReg6492012EU',N'化学規制6492012 EU','N','N') , (1999,'2/12/2019','ja-JP','ChemicalRegApplies',N'化学的規制が適用される','N','N') , (1999,'2/12/2019','ja-JP','chx Display By Type',N'協定別','N','N') , (1999,'2/12/2019','ja-JP','chx Display By Year',N'年度別','N','N') , (1999,'2/12/2019','ja-JP','chxActiveOnly',N'アクティブのみ','N','N') , (1999,'2/12/2019','ja-JP','chxbxAddress',N'住所を含める','N','N') , (1999,'2/12/2019','ja-JP','chxbxAdvanceSearch',N'ガイド付き検索','N','N') , (1999,'2/12/2019','ja-JP','chxbxAllowExcelExtract',N'Excelエクストラクトを許可する','N','N') , (1999,'2/12/2019','ja-JP','chxbxAllowExcelExtract_Checked',N'Excelエクストラクトを許可するにはチェックを入れます。','N','N') , (1999,'2/12/2019','ja-JP','chxbxAllowGlobalClassificationSelection',N'グローバル分類選択を許可する','N','N') , (1999,'2/12/2019','ja-JP','chxbxAllowPDFExtract',N'PDF抽出を許可する','N','N') , (1999,'2/12/2019','ja-JP','chxbxAllowPDFExtract_Checked',N'PDF Extractを許可するにはチェックを入れます。','N','N') , (1999,'2/12/2019','ja-JP','chxbxAutoGenerateUser',N'ユーザーの自動生成','N','N') , (1999,'2/12/2019','ja-JP','chxbxCompanyName',N'会社名を含める','N','N') , (1999,'2/12/2019','ja-JP','chxbxContent',N'コンテンツを表示するニュース','N','N') , (1999,'2/12/2019','ja-JP','chxbxDisplayQualifiedNumbers',N'完全限定番号のみ','N','N') , (1999,'2/12/2019','ja-JP','chxbxHighlightSearchTerms',N'ハイライト検索用語の検索結果','N','N') , (1999,'2/12/2019','ja-JP','chxbxIncludeInflectional',N'屈折形式を含める','N','N') , (1999,'2/12/2019','ja-JP','chxbxIncludeParent',N'親番号を含める','N','N') , (1999,'2/12/2019','ja-JP','chxbxIncludeSpecialSymbols',N'シンボルに検索条件を含める','N','N') , (1999,'2/12/2019','ja-JP','chxbxIncludeValidationDetailInExtract',N'Excel Extractで検証の詳細を含める','N','N') , (1999,'2/12/2019','ja-JP','chxbxIndustry',N'業界のニュースを表示','N','N') , (1999,'2/12/2019','ja-JP','chxBxLastLogin',N'最終ログインからの表示:','N','N') , (1999,'2/12/2019','ja-JP','chxbxLegalMessage',N'承諾します','N','N') , (1999,'2/12/2019','ja-JP','chxbxMarkingDescriptionsExpanded',N'すべての説明のフルテキストを表示する','N','N') , (1999,'2/12/2019','ja-JP','chxbxMarkingDescriptionsExpanded_CheckedChanged',N'すべての説明のフルテキストを表示する','N','N') , (1999,'2/12/2019','ja-JP','chxbxOnlySpecifiedRegulation',N'規制が適用される番号のみ','N','N') , (1999,'2/12/2019','ja-JP','chxbxReloadOnClick',N'リフレッシュ時に結果グリッドをリロードする','N','N') , (1999,'2/12/2019','ja-JP','chxbxResultsDetail0_RoundAtEachStep',N'各ステップでのラウンド値','N','N') , (1999,'2/12/2019','ja-JP','chxbxResultsDetail0_ShowCalculationSteps',N'計算ステップを表示する','N','N') , (1999,'2/12/2019','ja-JP','chxbxResultsDetail1_RoundAtEachStep',N'各ステップでのラウンド値','N','N') , (1999,'2/12/2019','ja-JP','chxbxResultsDetail1_ShowCalculationSteps',N'計算ステップを表示する','N','N') , (1999,'2/12/2019','ja-JP','chxbxSaveSearches_PartnerIdShared',N'他のユーザーと共有する(同じパートナーの下にある)','N','N') , (1999,'2/12/2019','ja-JP','chxbxSearchTerms',N'検索語を含める','N','N') , (1999,'2/12/2019','ja-JP','chxbxSearchTypeBindingRulings',N'拘束裁定','N','N') , (1999,'2/12/2019','ja-JP','chxbxSearchTypeChapterNotes',N'章','N','N') , (1999,'2/12/2019','ja-JP','chxbxSearchTypeChargesNotes',N'手数料ノート','N','N') , (1999,'2/12/2019','ja-JP','chxbxSearchTypeHSDescription',N'HS説明','N','N') , (1999,'2/12/2019','ja-JP','chxbxSearchTypeHSNumber',N'HS番号','N','N') , (1999,'2/12/2019','ja-JP','chxbxSearchTypeKeywords',N'キーワード','N','N') , (1999,'2/12/2019','ja-JP','chxbxShowAllAvailableControls',N'すべての使用可能なコントロールの説明を表示する','N','N') , (1999,'2/12/2019','ja-JP','chxbxShowAllAvailableControls_CheckedChange',N'すべての使用可能なコントロールの説明を表示する','N','N') , (1999,'2/12/2019','ja-JP','chxbxShowAllCountriesChargeDocuments',N'すべての国に適用される文書を表示する','N','N') , (1999,'2/12/2019','ja-JP','chxbxShowAllCountriesControls',N'すべての国に適用される文書を表示する','N','N') , (1999,'2/12/2019','ja-JP','chxbxShowAllCountriesImportControls',N'すべての国に適用される文書を表示する','N','N') , (1999,'2/12/2019','ja-JP','chxbxShowAllFTACountries',N'すべての国に適用される文書を表示する','N','N') , (1999,'2/12/2019','ja-JP','chxbxShowAllFTACountries_CheckedChange',N'すべての国に適用される文書を表示する','N','N') , (1999,'2/12/2019','ja-JP','chxbxShowAllHSCharge',N'すべてのHS番号に適用される文書を表示する','N','N') , (1999,'2/12/2019','ja-JP','chxbxShowAllHSControls',N'すべてのHS番号に適用される文書を表示する','N','N') , (1999,'2/12/2019','ja-JP','chxbxShowAllHSImportControls',N'すべてのHS番号に適用される文書を表示する','N','N') , (1999,'2/12/2019','ja-JP','chxbxShowAllHSNumbers',N'すべてのHS番号に適用される文書を表示する','N','N') , (1999,'2/12/2019','ja-JP','chxbxShowAllMainRates',N'すべての主要料金を表示する','N','N') , (1999,'2/12/2019','ja-JP','chxbxShowAllMainRates_Checked',N'すべての主な料金を表示/非表示にするにはチェック/チェックを外してください','N','N') , (1999,'2/12/2019','ja-JP','chxbxShowAllMarking',N'すべての産業を表示','N','N') , (1999,'2/12/2019','ja-JP','chxbxShowAllMarking_CheckedChanged',N'すべての産業を表示','N','N') , (1999,'2/12/2019','ja-JP','chxbxShowAntiDumping',N'他の/アンチダンピングの料金を表示する','N','N') , (1999,'2/12/2019','ja-JP','chxbxShowChapterFilters',N'章フィルタを表示する','N','N') , (1999,'2/12/2019','ja-JP','chxbxShowDescriptionInResult',N'結果にHSの説明を表示する','N','N') , (1999,'2/12/2019','ja-JP','chxbxShowDescriptionInResult_Checked',N'結果にHSの説明を表示する','N','N') , (1999,'2/12/2019','ja-JP','chxbxShowFullDescriptionControls',N'すべてのコントロールの詳細を表示','N','N') , (1999,'2/12/2019','ja-JP','chxbxShowFullDescriptionControls_CheckedChange',N'すべてのコントロールの詳細を表示','N','N') , (1999,'2/12/2019','ja-JP','chxbxShowFullNoteText',N'すべてのノートの全文を表示する','N','N') , (1999,'2/12/2019','ja-JP','chxbxShowGuidedSearchResult',N'検索結果を表示','N','N') , (1999,'2/12/2019','ja-JP','chxbxShowHeadingFilters',N'見出しフィルタを表示する','N','N') , (1999,'2/12/2019','ja-JP','chxbxShowMatchesFilters',N'一致フィルタを表示','N','N') , (1999,'2/12/2019','ja-JP','chxbxShowPartnerIdShared',N'検索結果を他のユーザーと共有する','N','N') , (1999,'2/12/2019','ja-JP','chxbxShowRecentSearches',N'最近の検索を表示する','N','N') , (1999,'2/12/2019','ja-JP','chxbxShowRecentSelections',N'最近のグローバル分類選択を表示する','N','N') , (1999,'2/12/2019','ja-JP','chxbxShowResultsFilters',N'結果フィルタを表示する','N','N') , (1999,'2/12/2019','ja-JP','chxbxShowSavedSearches',N'保存された検索結果を表示','N','N') , (1999,'2/12/2019','ja-JP','chxbxShowUnsavedSearches',N'未保存の検索結果を表示する','N','N') , (1999,'2/12/2019','ja-JP','chxbxShowValidationDetail',N'検証の詳細を表示する','N','N') , (1999,'2/12/2019','ja-JP','chxbxShowValidationDetail_Checked',N'検証の詳細を表示する','N','N') , (1999,'2/12/2019','ja-JP','chxbxSignupEmail_EmailAdmin',N'メールを送る','N','N') , (1999,'2/12/2019','ja-JP','chxbxSignupEmail_ShowCompanyName',N'会社名を表示','N','N') , (1999,'2/12/2019','ja-JP','chxbxSignupEmail_ShowEmailAddress',N'メールアドレスを表示','N','N') , (1999,'2/12/2019','ja-JP','chxbxSignupEmail_ShowFirstName',N'名前を表示','N','N') , (1999,'2/12/2019','ja-JP','chxbxSignupEmail_ShowLastName',N'姓を表示する','N','N') , (1999,'2/12/2019','ja-JP','chxCopyAgreement',N'アイテムのコピー先:','N','N') , (1999,'2/12/2019','ja-JP','chxCumulation',N'累積を使用する','N','N') , (1999,'2/12/2019','ja-JP','chxDisplayByType',N'協定別','N','N') , (1999,'2/12/2019','ja-JP','chxDisplayByYear',N'年度別','N','N') , (1999,'2/12/2019','ja-JP','chxIncludeSignature',N'署名を含める場合にチェックする','N','N') , (1999,'2/12/2019','ja-JP','chxLTSDCumulation',N'累積を使用する','N','N') , (1999,'2/12/2019','ja-JP','CIBDApplies',N'CIBDが適用されます','N','N') , (1999,'2/12/2019','ja-JP','CITCases',N'CITケース','N','N') , (1999,'2/12/2019','ja-JP','CITESApplies',N'CITESが適用される','N','N') , (1999,'2/12/2019','ja-JP','CITESNotes',N'CITESノート','N','N') , (1999,'2/12/2019','ja-JP','City',N'シティ','N','N') , (1999,'2/12/2019','ja-JP','Classification',N'分類','N','N') , (1999,'2/12/2019','ja-JP','Classification Information',N'分類情報','N','N') , (1999,'2/12/2019','ja-JP','Classification Lookup',N'分類検索','N','N') , (1999,'2/12/2019','ja-JP','ClassificationGroup',N'分類グループ','N','N') , (1999,'2/12/2019','ja-JP','ClassificationSubGroup',N'分類サブグループ','N','N') , (1999,'2/12/2019','ja-JP','ClearCurrentView.Text',N'クリアビュー','N','N') , (1999,'2/12/2019','ja-JP','ClearCurrentView.Tooltip',N'グリッドをリセットし、すべてのフィルタを削除する','N','N') , (1999,'2/12/2019','ja-JP','CLGCS01',N'CLGCS01','N','N') , (1999,'2/12/2019','ja-JP','CLGCS02',N'CLGCS03','N','N') , (1999,'2/12/2019','ja-JP','CLGCS03',N'CLGCS05','N','N') , (1999,'2/12/2019','ja-JP','CLGCS04',N'CLGCS04','N','N') , (1999,'2/12/2019','ja-JP','CLGCS05',N'CLGCS05','N','N') , (1999,'2/12/2019','ja-JP','CLGCS06',N'CLGCS06','N','N') , (1999,'2/12/2019','ja-JP','CLGCS07',N'CLGCS08','N','N') , (1999,'2/12/2019','ja-JP','CLGCS08',N'CLGCS08','N','N') , (1999,'2/12/2019','ja-JP','CLGCS09',N'CLGCS10','N','N') , (1999,'2/12/2019','ja-JP','CLGCS11',N'CLGCS11','N','N') , (1999,'2/12/2019','ja-JP','CLGCS12',N'CLGCS12','N','N') , (1999,'2/12/2019','ja-JP','CLGCS13',N'CLGCS13','N','N') , (1999,'2/12/2019','ja-JP','CLGCS14',N'CLGCS14','N','N') , (1999,'2/12/2019','ja-JP','CLGCS15',N'CLGCS15','N','N') , (1999,'2/12/2019','ja-JP','Client',N'情報','N','N') , (1999,'2/12/2019','ja-JP','ClientSelectColumn',N'クライアント選択列','N','N') , (1999,'2/12/2019','ja-JP','ClientViewable',N'クライアント表示可能','N','N') , (1999,'2/12/2019','ja-JP','ClockSequence',N'クロックシーケンス','N','N') , (1999,'2/12/2019','ja-JP','ClockWatchFlag',N'クロック/ウォッチフラグ','N','N') , (1999,'2/12/2019','ja-JP','cmxbHSNumberDescription_00',N'一致するフレーズ全体','N','N') , (1999,'2/12/2019','ja-JP','cmxbHSNumberDescription_01',N'すべての単語に一致する','N','N') , (1999,'2/12/2019','ja-JP','cmxbHSNumberDescription_02',N'すべての単語に一致する','N','N') , (1999,'2/12/2019','ja-JP','CN',N'CN','N','N') , (1999,'2/12/2019','ja-JP','CNBApplies',N'CNBが適用されます','N','N') , (1999,'2/12/2019','ja-JP','CNBIEFS',N'CNBIEFS','N','N') , (1999,'2/12/2019','ja-JP','CNCFDA',N'CNCFDA','N','N') , (1999,'2/12/2019','ja-JP','CNCNCA',N'CNCNCA','N','N') , (1999,'2/12/2019','ja-JP','CNDSAPQ',N'CNDSAPQ','N','N') , (1999,'2/12/2019','ja-JP','CNDSHQ',N'CNDSHQ','N','N') , (1999,'2/12/2019','ja-JP','CNDSI',N'CNDSI','N','N') , (1999,'2/12/2019','ja-JP','CNGACC',N'CNGACC','N','N') , (1999,'2/12/2019','ja-JP','CNMEP',N'CNMEP','N','N') , (1999,'2/12/2019','ja-JP','CNMOA',N'CNMOA','N','N') , (1999,'2/12/2019','ja-JP','CNMOFCOM',N'CNMOFCOM','N','N') , (1999,'2/12/2019','ja-JP','CNOSCCA',N'CNOSCCA','N','N') , (1999,'2/12/2019','ja-JP','CNPBC',N'CNPBC','N','N') , (1999,'2/12/2019','ja-JP','CNPQApplies',N'CNPQが適用されます','N','N') , (1999,'2/12/2019','ja-JP','CNSAFE',N'CNSAFE','N','N') , (1999,'2/12/2019','ja-JP','CNSAPPRFT',N'CNSAPPRFT','N','N') , (1999,'2/12/2019','ja-JP','CNSAWS',N'CNSAWS','N','N') , (1999,'2/12/2019','ja-JP','CNSFA',N'CNSFA','N','N') , (1999,'2/12/2019','ja-JP','CO',N'CO','N','N') , (1999,'2/12/2019','ja-JP','COFEPRIS',N'COFEPRIS','N','N') , (1999,'2/12/2019','ja-JP','COFINSRate',N'COFINSレート','N','N') , (1999,'2/12/2019','ja-JP','COGCS07',N'COGCS08','N','N') , (1999,'2/12/2019','ja-JP','COGCS09',N'COGCS10','N','N') , (1999,'2/12/2019','ja-JP','Column',N'カラム','N','N') , (1999,'2/12/2019','ja-JP','Column1',N'列1','N','N') , (1999,'2/12/2019','ja-JP','COMEXEApplies',N'COMEXEが適用されます','N','N') , (1999,'2/12/2019','ja-JP','Comment',N'コメント','N','N') , (1999,'2/12/2019','ja-JP','CommercialValue',N'商業価値','N','N') , (1999,'2/12/2019','ja-JP','CommercialValueCurrencyCode',N'商用価値通貨コード','N','N') , (1999,'2/12/2019','ja-JP','Company ID',N'会社ID','N','N') , (1999,'2/12/2019','ja-JP','Company Name',N'会社名','N','N') , (1999,'2/12/2019','ja-JP','CompanyName',N'会社名','N','N') , (1999,'2/12/2019','ja-JP','CompanyProductRequest_aspx',N'顧客証明書要求','N','N') , (1999,'2/12/2019','ja-JP','Comparison',N'比較','N','N') , (1999,'2/12/2019','ja-JP','Completed',N'完了','N','N') , (1999,'2/12/2019','ja-JP','Component',N'成分','N','N') , (1999,'2/12/2019','ja-JP','Component Count',N'コンポーネント数','N','N') , (1999,'2/12/2019','ja-JP','Components Missing Country of Origin',N'原産国未登録の部品','N','N') , (1999,'2/12/2019','ja-JP','Components Missing Supplier ID',N'サプライヤーID未登録の部品','N','N') , (1999,'2/12/2019','ja-JP','Confirm Reset',N'リセットを確認','N','N') , (1999,'2/12/2019','ja-JP','ConsigneeNum',N'荷受人番号','N','N') , (1999,'2/12/2019','ja-JP','ContactAddress',N'連絡先住所','N','N') , (1999,'2/12/2019','ja-JP','ContactCity',N'市に連絡する','N','N') , (1999,'2/12/2019','ja-JP','ContactCountryCode',N'国コードに連絡する','N','N') , (1999,'2/12/2019','ja-JP','ContactEmailAddress',N'連絡先メールアドレス','N','N') , (1999,'2/12/2019','ja-JP','ContactName',N'連絡先','N','N') , (1999,'2/12/2019','ja-JP','ContactPhoneNumber',N'連絡先の電話番号','N','N') , (1999,'2/12/2019','ja-JP','ContentGuid',N'コンテンツID','N','N') , (1999,'2/12/2019','ja-JP','ContentName',N'コンテンツ名','N','N') , (1999,'2/12/2019','ja-JP','ContentType',N'コンテンツタイプ','N','N') , (1999,'2/12/2019','ja-JP','Control',N'コントロール','N','N') , (1999,'2/12/2019','ja-JP','ControlCountry',N'管理国','N','N') , (1999,'2/12/2019','ja-JP','ControlType',N'制御タイプ','N','N') , (1999,'2/12/2019','ja-JP','ControlValue',N'コントロール値','N','N') , (1999,'2/12/2019','ja-JP','COO',N'原産国','N','N') , (1999,'2/12/2019','ja-JP','CountDescriptions',N'カウントの説明','N','N') , (1999,'2/12/2019','ja-JP','Countries',N'国','N','N') , (1999,'2/12/2019','ja-JP','COUNTRY',N'国','N','N') , (1999,'2/12/2019','ja-JP','CountryCode',N'国コード','N','N') , (1999,'2/12/2019','ja-JP','CountryList',N'国リスト','N','N') , (1999,'2/12/2019','ja-JP','CountryName',N'国の名前','N','N') , (1999,'2/12/2019','ja-JP','CountryOfExport',N'輸出国','N','N') , (1999,'2/12/2019','ja-JP','CountryOfImport',N'輸入国','N','N') , (1999,'2/12/2019','ja-JP','CountryOfOrigin',N'原産国','N','N') , (1999,'2/12/2019','ja-JP','CPC1',N'CPC1','N','N') , (1999,'2/12/2019','ja-JP','CPC2',N'CPC2','N','N') , (1999,'2/12/2019','ja-JP','CPSApplies',N'CPSが適用されます','N','N') , (1999,'2/12/2019','ja-JP','CPSIndicator',N'CPS指標','N','N') , (1999,'2/12/2019','ja-JP','CPSNotes',N'CPSノート','N','N') , (1999,'2/12/2019','ja-JP','CR',N'CR','N','N') , (1999,'2/12/2019','ja-JP','Create',N'作成する','N','N') , (1999,'2/12/2019','ja-JP','Create Date',N'日付を作成します','N','N') , (1999,'2/12/2019','ja-JP','Create Single MCS',N'単一MCSの作成','N','N') , (1999,'2/12/2019','ja-JP','Created Date',N'作成日','N','N') , (1999,'2/12/2019','ja-JP','Created On',N'作成日','N','N') , (1999,'2/12/2019','ja-JP','CreatedBy',N'によって作成された','N','N') , (1999,'2/12/2019','ja-JP','CreatedDate',N'作成日','N','N') , (1999,'2/12/2019','ja-JP','CreationDate',N'作成日','N','N') , (1999,'2/12/2019','ja-JP','CRGCS07',N'CRGCS08','N','N') , (1999,'2/12/2019','ja-JP','CRGCS09',N'CRGCS10','N','N') , (1999,'2/12/2019','ja-JP','CTAApplies',N'CTAが適用されます','N','N') , (1999,'2/12/2019','ja-JP','CTAArticleNum',N'CTA資料番号','N','N') , (1999,'2/12/2019','ja-JP','CTADetailNum',N'CTAの詳細番号','N','N') , (1999,'2/12/2019','ja-JP','CTAItemNum',N'CTAの商品番号','N','N') , (1999,'2/12/2019','ja-JP','CultureCode',N'文化コード','N','N') , (1999,'2/12/2019','ja-JP','CUPApplies',N'CUPが適用されます','N','N') , (1999,'2/12/2019','ja-JP','Currency',N'通貨','N','N') , (1999,'2/12/2019','ja-JP','CurrencyCode',N'通貨コード','N','N') , (1999,'2/12/2019','ja-JP','CurrencyDescription',N'通貨の説明','N','N') , (1999,'2/12/2019','ja-JP','Current HS Number',N'現在のHS番号','N','N') , (1999,'2/12/2019','ja-JP','Current JP HS Number',N'現在の日本のHS番号','N','N') , (1999,'2/12/2019','ja-JP','Current US HS Number',N'現在の米国のHS番号','N','N') , (1999,'2/12/2019','ja-JP','Customer Cert',N'顧客証明書','N','N') , (1999,'2/12/2019','ja-JP','Customer Part Num',N'顧客部品番号','N','N') , (1999,'2/12/2019','ja-JP','Customer Product Num',N'顧客製品番号','N','N') , (1999,'2/12/2019','ja-JP','CustomerPartNum',N'顧客部品番号','N','N') , (1999,'2/12/2019','ja-JP','Customs',N'税関','N','N') , (1999,'2/12/2019','ja-JP','CustomsDeclarable',N'税関申告','N','N') , (1999,'2/12/2019','ja-JP','CVApplies',N'CV適用','N','N') , (1999,'2/12/2019','ja-JP','CVCaseNum',N'CVケース番号','N','N') , (1999,'2/12/2019','ja-JP','CVCaseNumber',N'CVケース番号','N','N') , (1999,'2/12/2019','ja-JP','CVDApplies',N'CVD適用','N','N') , (1999,'2/12/2019','ja-JP','CVDutyRate',N'CVデューティレート','N','N') , (1999,'2/12/2019','ja-JP','CWCApplies',N'CWCが適用されます','N','N') , (1999,'2/12/2019','ja-JP','Dashboard Settings',N'ダッシュボードの設定','N','N') , (1999,'2/12/2019','ja-JP','Data',N'データ','N','N') , (1999,'2/12/2019','ja-JP','Data Source',N'情報元','N','N') , (1999,'2/12/2019','ja-JP','DataSource',N'情報元','N','N') , (1999,'2/12/2019','ja-JP','DataSourceNotes',N'データソースノート','N','N') , (1999,'2/12/2019','ja-JP','Date',N'日付','N','N') , (1999,'2/12/2019','ja-JP','Date Added',N'追加された日付','N','N') , (1999,'2/12/2019','ja-JP','Date Created',N'作成日','N','N') , (1999,'2/12/2019','ja-JP','Date Entered',N'入力された日付','N','N') , (1999,'2/12/2019','ja-JP','Date Saved',N'保存日','N','N') , (1999,'2/12/2019','ja-JP','Date Sent',N'送信日','N','N') , (1999,'2/12/2019','ja-JP','Date Updated',N'更新日','N','N') , (1999,'2/12/2019','ja-JP','Days Since Request',N'リクエストからの経過日数','N','N') , (1999,'2/12/2019','ja-JP','DCMApplies',N'DCMが適用されます','N','N') , (1999,'2/12/2019','ja-JP','DCMIndicator',N'DCMインジケータ','N','N') , (1999,'2/12/2019','ja-JP','DCMNotes',N'DCMノート','N','N') , (1999,'2/12/2019','ja-JP','DEAApplies',N'DEAが適用されます','N','N') , (1999,'2/12/2019','ja-JP','DEAFlag',N'DEAフラグ','N','N') , (1999,'2/12/2019','ja-JP','DEAIndicator',N'DEA指標','N','N') , (1999,'2/12/2019','ja-JP','DEANotes',N'DEAノート','N','N') , (1999,'2/12/2019','ja-JP','DECEXApplies',N'DECEXが適用されます','N','N') , (1999,'2/12/2019','ja-JP','DeclarableElement',N'宣言可能な要素','N','N') , (1999,'2/12/2019','ja-JP','DeclarableElementGuid',N'宣言可能な要素ID','N','N') , (1999,'2/12/2019','ja-JP','DEEApplies',N'DEEが適用されます','N','N') , (1999,'2/12/2019','ja-JP','DEEIndicator',N'DEEインジケータ','N','N') , (1999,'2/12/2019','ja-JP','DEENotes',N'DEEノート','N','N') , (1999,'2/12/2019','ja-JP','Default',N'デフォルトを読み込めません','N','N') , (1999,'2/12/2019','ja-JP','Default_aspx',N'ホーム','N','N') , (1999,'2/12/2019','ja-JP','Delete',N'削除','N','N') , (1999,'2/12/2019','ja-JP','DeletedFlag',N'削除された旗','N','N') , (1999,'2/12/2019','ja-JP','Denial0',N'拒否0','N','N') , (1999,'2/12/2019','ja-JP','Denial1',N'拒否1','N','N') , (1999,'2/12/2019','ja-JP','Denial2',N'否認2','N','N') , (1999,'2/12/2019','ja-JP','Description',N'説明','N','N') , (1999,'2/12/2019','ja-JP','Description0',N'説明0','N','N') , (1999,'2/12/2019','ja-JP','Description1',N'説明1','N','N') , (1999,'2/12/2019','ja-JP','Description2',N'説明2','N','N') , (1999,'2/12/2019','ja-JP','DescriptionCode',N'説明コード','N','N') , (1999,'2/12/2019','ja-JP','DescriptionName',N'説明名前','N','N') , (1999,'2/12/2019','ja-JP','DescriptionType',N'説明タイプ','N','N') , (1999,'2/12/2019','ja-JP','DESTINATION',N'先','N','N') , (1999,'2/12/2019','ja-JP','Detail',N'詳細','N','N') , (1999,'2/12/2019','ja-JP','DetailControlGuid',N'詳細コントロールID','N','N') , (1999,'2/12/2019','ja-JP','DFSabahApplies',N'DFサバが適用されます','N','N') , (1999,'2/12/2019','ja-JP','DGMNApplies',N'DGMNが適用されます','N','N') , (1999,'2/12/2019','ja-JP','DGMNCode',N'DGMNコード','N','N') , (1999,'2/12/2019','ja-JP','Digits',N'数字','N','N') , (1999,'2/12/2019','ja-JP','Direction',N'方向','N','N') , (1999,'2/12/2019','ja-JP','DisplayText',N'テキストの表示','N','N') , (1999,'2/12/2019','ja-JP','DisplayTimeFrame',N'時間枠を表示する','N','N') , (1999,'2/12/2019','ja-JP','DMFSarawakApplies',N'DMFサラワクが適用されます','N','N') , (1999,'2/12/2019','ja-JP','DNPMAApplies',N'DNPMAが適用されます','N','N') , (1999,'2/12/2019','ja-JP','DOAApplies',N'DOAが適用されます','N','N') , (1999,'2/12/2019','ja-JP','DOASabahApplies',N'DOA Sabahが適用されます','N','N') , (1999,'2/12/2019','ja-JP','DOASarawakApplies',N'DOAサラワクが適用されます','N','N') , (1999,'2/12/2019','ja-JP','Doc Attached',N'添付書類','N','N') , (1999,'2/12/2019','ja-JP','DOCApplies',N'DOCが適用されます','N','N') , (1999,'2/12/2019','ja-JP','DocName',N'DocName','N','N') , (1999,'2/12/2019','ja-JP','Docs',N'ドキュメント','N','N') , (1999,'2/12/2019','ja-JP','Document Extension',N'ドキュメント拡張','N','N') , (1999,'2/12/2019','ja-JP','Document Type',N'ドキュメントタイプ','N','N') , (1999,'2/12/2019','ja-JP','DocumentCode',N'ドキュメントコード','N','N') , (1999,'2/12/2019','ja-JP','DocumentCodeText',N'ドキュメントコードテキスト','N','N') , (1999,'2/12/2019','ja-JP','DocumentName',N'ドキュメント名','N','N') , (1999,'2/12/2019','ja-JP','Documents',N'ドキュメント','N','N') , (1999,'2/12/2019','ja-JP','DocumentSampleDescription',N'ドキュメントサンプルの説明','N','N') , (1999,'2/12/2019','ja-JP','DocumentSampleName',N'ドキュメントサンプル名','N','N') , (1999,'2/12/2019','ja-JP','DocumentTextGuid',N'ドキュメントテキストID','N','N') , (1999,'2/12/2019','ja-JP','DOCUMENTTITLE',N'ドキュメントのタイトル','N','N') , (1999,'2/12/2019','ja-JP','DocumentType',N'ドキュメントタイプ','N','N') , (1999,'2/12/2019','ja-JP','DOEApplies',N'DOEが適用される','N','N') , (1999,'2/12/2019','ja-JP','DOFApplies',N'DOF適用','N','N') , (1999,'2/12/2019','ja-JP','DOHApplies',N'DOHが適用されます','N','N') , (1999,'2/12/2019','ja-JP','DOHCode',N'DOHコード','N','N') , (1999,'2/12/2019','ja-JP','DOIApplies',N'DOIが適用されます','N','N') , (1999,'2/12/2019','ja-JP','DOTApplies',N'DOTが適用される','N','N') , (1999,'2/12/2019','ja-JP','DOTIndicator',N'DOTインジケータ','N','N') , (1999,'2/12/2019','ja-JP','DOTNotes',N'DOTノート','N','N') , (1999,'2/12/2019','ja-JP','DPFApplies',N'DPF適用','N','N') , (1999,'2/12/2019','ja-JP','drxlstAddSystemMessagesShareDuration',N'1','N','N') , (1999,'2/12/2019','ja-JP','drxlstAddSystemMessagesShareDuration_00',N'1日','N','N') , (1999,'2/12/2019','ja-JP','drxlstAddSystemMessagesShareDuration_01',N'2日','N','N') , (1999,'2/12/2019','ja-JP','drxlstAddSystemMessagesShareDuration_02',N'3日','N','N') , (1999,'2/12/2019','ja-JP','drxlstAddSystemMessagesShareDuration_03',N'4日','N','N') , (1999,'2/12/2019','ja-JP','drxlstAddSystemMessagesShareDuration_04',N'5日間','N','N') , (1999,'2/12/2019','ja-JP','drxlstCountries',N'国','N','N') , (1999,'2/12/2019','ja-JP','drxlstDocumentTypes',N'ドキュメントタイプ','N','N') , (1999,'2/12/2019','ja-JP','drxlstGroupBy_00',N'原産国','N','N') , (1999,'2/12/2019','ja-JP','drxlstGroupBy_01',N'HS番号','N','N') , (1999,'2/12/2019','ja-JP','drxlstGroupBy_02',N'なし','N','N') , (1999,'2/12/2019','ja-JP','DTCApplies',N'DTCが適用されます','N','N') , (1999,'2/12/2019','ja-JP','DTCIndicator',N'DTCインジケータ','N','N') , (1999,'2/12/2019','ja-JP','DTCNotes',N'DTCノート','N','N') , (1999,'2/12/2019','ja-JP','Due Date',N'期日','N','N') , (1999,'2/12/2019','ja-JP','DueDate',N'期日','N','N') , (1999,'2/12/2019','ja-JP','DumpingExchangeRate',N'ダンピング為替レート','N','N') , (1999,'2/12/2019','ja-JP','DumpingExemptionType',N'除外免除タイプ','N','N') , (1999,'2/12/2019','ja-JP','DumpingSpecificationNum',N'ダンプ指定番号','N','N') , (1999,'2/12/2019','ja-JP','DVSAISabahApplies',N'DVSAI Sabahが適用されます','N','N') , (1999,'2/12/2019','ja-JP','DWNPApplies',N'DWNPが適用されます','N','N') , (1999,'2/12/2019','ja-JP','ECCNApplies',N'ECCN適用','N','N') , (1999,'2/12/2019','ja-JP','ECCNNum',N'ECCN番号','N','N') , (1999,'2/12/2019','ja-JP','ECL70Applies',N'ECL70が適用されます','N','N') , (1999,'2/12/2019','ja-JP','ECL70RegName',N'ECL70規制名','N','N') , (1999,'2/12/2019','ja-JP','ECN',N'ECN','N','N') , (1999,'2/12/2019','ja-JP','ECNApplies',N'ECNが適用されます','N','N') , (1999,'2/12/2019','ja-JP','ECNNum',N'ECN番号','N','N') , (1999,'2/12/2019','ja-JP','ECNNumber',N'ECN番号','N','N') , (1999,'2/12/2019','ja-JP','ECTApplies',N'ECT適用','N','N') , (1999,'2/12/2019','ja-JP','Edit',N'編集','N','N') , (1999,'2/12/2019','ja-JP','Edit_aspx',N'分類の編集','N','N') , (1999,'2/12/2019','ja-JP','EEE_CEMark',N'EEE_CEマーク','N','N') , (1999,'2/12/2019','ja-JP','EffDate',N'発効日','N','N') , (1999,'2/12/2019','ja-JP','EffectiveDate',N'発効日','N','N') , (1999,'2/12/2019','ja-JP','EffectivityDate',N'有効日','N','N') , (1999,'2/12/2019','ja-JP','EIAApplies',N'EIAが適用されます','N','N') , (1999,'2/12/2019','ja-JP','EIAIndicator',N'EIAインジケータ','N','N') , (1999,'2/12/2019','ja-JP','EIANotes',N'EIAノート','N','N') , (1999,'2/12/2019','ja-JP','EIPAApplies',N'EIPAが適用されます','N','N') , (1999,'2/12/2019','ja-JP','EIPANotes',N'EIPAノート','N','N') , (1999,'2/12/2019','ja-JP','ELACNum',N'ELAC番号','N','N') , (1999,'2/12/2019','ja-JP','ElectricalCert',N'電気証明書','N','N') , (1999,'2/12/2019','ja-JP','Email',N'Eメール','N','N') , (1999,'2/12/2019','ja-JP','Email Notification',N'電子メール通知','N','N') , (1999,'2/12/2019','ja-JP','email1',N'メール1','N','N') , (1999,'2/12/2019','ja-JP','email2',N'メール2','N','N') , (1999,'2/12/2019','ja-JP','email3',N'メール3','N','N') , (1999,'2/12/2019','ja-JP','EMCApplies',N'EMCが適用されます','N','N') , (1999,'2/12/2019','ja-JP','EMPICNum',N'EMPIC番号','N','N') , (1999,'2/12/2019','ja-JP','Employee',N'従業員','N','N') , (1999,'2/12/2019','ja-JP','EndDate',N'終了日','N','N') , (1999,'2/12/2019','ja-JP','EndUse',N'最終用途','N','N') , (1999,'2/12/2019','ja-JP','EngineCapacity',N'エンジン排気量','N','N') , (1999,'2/12/2019','ja-JP','EnteredBy',N'入り口','N','N') , (1999,'2/12/2019','ja-JP','EORIBranchID',N'EORI支店ID','N','N') , (1999,'2/12/2019','ja-JP','EORINum',N'EORI番号','N','N') , (1999,'2/12/2019','ja-JP','EPAApplies',N'EPA適用','N','N') , (1999,'2/12/2019','ja-JP','EPAIndicator',N'EPA指標','N','N') , (1999,'2/12/2019','ja-JP','EPANotes',N'EPAノート','N','N') , (1999,'2/12/2019','ja-JP','EPDApplies',N'EPD適用','N','N') , (1999,'2/12/2019','ja-JP','EPGNum',N'EPG番号','N','N') , (1999,'2/12/2019','ja-JP','Estimate',N'見積もり','N','N') , (1999,'2/12/2019','ja-JP','EstimatedDeliveryDate',N'お届け予定日','N','N') , (1999,'2/12/2019','ja-JP','EstimatePerQuantity',N'数量見積もり','N','N') , (1999,'2/12/2019','ja-JP','ETAApplies',N'ETAが適用されます','N','N') , (1999,'2/12/2019','ja-JP','ETAIndicator',N'ETAインジケータ','N','N') , (1999,'2/12/2019','ja-JP','ETANotes',N'ETAノート','N','N') , (1999,'2/12/2019','ja-JP','ETCOAppendix1Applies',N'ETCO付録1対象','N','N') , (1999,'2/12/2019','ja-JP','ETCOAppendix1ItemNum',N'ETCO付録1品目番号','N','N') , (1999,'2/12/2019','ja-JP','ETCOAppendix1WeaponItemNum',N'ETCO付録1武器アイテム番号','N','N') , (1999,'2/12/2019','ja-JP','ETCOAppendix1WeaponLicense',N'ETCO付録1武器ライセンス','N','N') , (1999,'2/12/2019','ja-JP','ETCOAppendix2Applies',N'ETCO付録2対象','N','N') , (1999,'2/12/2019','ja-JP','ETCOAppendix2ItemNum',N'ETCO付録2品目番号','N','N') , (1999,'2/12/2019','ja-JP','ETCOArticle2Item1DetailNum',N'ETCO第2条品目詳細番号','N','N') , (1999,'2/12/2019','ja-JP','ETCOArticle4ExemptionApplies',N'ETCO第4条免除適用','N','N') , (1999,'2/12/2019','ja-JP','ETCOArticle4ExemptionDetailNum',N'ETCO第4条免除の詳細番号','N','N') , (1999,'2/12/2019','ja-JP','ETCOArticle4ExemptionItemNum',N'ETCO第4条免除品目番号','N','N') , (1999,'2/12/2019','ja-JP','ETCOExemptionAppendixItemNum',N'ETCO免除付録品目番号','N','N') , (1999,'2/12/2019','ja-JP','ETCOExemptionAppendixNum',N'ETCO免除の付録番号','N','N') , (1999,'2/12/2019','ja-JP','ETCOLicenseNum',N'ETCOライセンス番号','N','N') , (1999,'2/12/2019','ja-JP','EURegulation7652008',N'EU規制7652008','N','N') , (1999,'2/12/2019','ja-JP','ExciseGoodsCode',N'消費税コード','N','N') , (1999,'2/12/2019','ja-JP','ExciseTaxRegFlag',N'消費税規定','N','N') , (1999,'2/12/2019','ja-JP','ExcludedCountry',N'除外国','N','N') , (1999,'2/12/2019','ja-JP','Exclusion',N'除外','N','N') , (1999,'2/12/2019','ja-JP','Exit',N'ホームページ','N','N') , (1999,'2/12/2019','ja-JP','ExpDate',N'有効期限','N','N') , (1999,'2/12/2019','ja-JP','Expiration Date',N'有効期限','N','N') , (1999,'2/12/2019','ja-JP','ExpirationDate',N'有効期限','N','N') , (1999,'2/12/2019','ja-JP','EXPORT',N'輸出する','N','N') , (1999,'2/12/2019','ja-JP','Export Information',N'輸出情報','N','N') , (1999,'2/12/2019','ja-JP','exportCountry',N'輸出国','N','N') , (1999,'2/12/2019','ja-JP','ExporterAddress1',N'エクスポータアドレス1','N','N') , (1999,'2/12/2019','ja-JP','ExporterAddress2',N'輸出業者住所2','N','N') , (1999,'2/12/2019','ja-JP','ExporterAddress3',N'輸出業者住所3','N','N') , (1999,'2/12/2019','ja-JP','ExporterAddress4',N'輸出業者住所4','N','N') , (1999,'2/12/2019','ja-JP','ExporterID',N'輸出者ID','N','N') , (1999,'2/12/2019','ja-JP','ExportGoodsType',N'輸出商品タイプ','N','N') , (1999,'2/12/2019','ja-JP','ExportHsNum',N'Hs番号のエクスポート','N','N') , (1999,'2/12/2019','ja-JP','ExportLicenseNum',N'輸出許可番号','N','N') , (1999,'2/12/2019','ja-JP','ExportTariffNum',N'輸出関税番号','N','N') , (1999,'2/12/2019','ja-JP','ExtraDesc',N'余分な説明','N','N') , (1999,'2/12/2019','ja-JP','FAAApplies',N'FAAが適用されます','N','N') , (1999,'2/12/2019','ja-JP','FAAIndicator',N'FAA指標','N','N') , (1999,'2/12/2019','ja-JP','FAANotes',N'FAAノート','N','N') , (1999,'2/12/2019','ja-JP','FacilityAddress',N'施設アドレス','N','N') , (1999,'2/12/2019','ja-JP','FacilityName',N'設備名称','N','N') , (1999,'2/12/2019','ja-JP','FADApplies',N'FADが適用されます','N','N') , (1999,'2/12/2019','ja-JP','Failed BOM Reports',N'失敗したBOMレポート','N','N') , (1999,'2/12/2019','ja-JP','FailureEmail',N'失敗した電子メール','N','N') , (1999,'2/12/2019','ja-JP','FailureInstructions',N'失敗命令','N','N') , (1999,'2/12/2019','ja-JP','FailurePhoneNum',N'失敗した電話番号','N','N') , (1999,'2/12/2019','ja-JP','FailureWeb',N'失敗ウェブ','N','N') , (1999,'2/12/2019','ja-JP','FAMAApplies',N'FAMAが適用されます','N','N') , (1999,'2/12/2019','ja-JP','FASApplies',N'FASが適用されます','N','N') , (1999,'2/12/2019','ja-JP','FASIndicator',N'FASインジケータ','N','N') , (1999,'2/12/2019','ja-JP','FASNotes',N'FASノート','N','N') , (1999,'2/12/2019','ja-JP','FCCApplies',N'FCCが適用されます','N','N') , (1999,'2/12/2019','ja-JP','FCCConsigneeAddress',N'FCC荷受人の住所','N','N') , (1999,'2/12/2019','ja-JP','FCCConsigneeCity',N'FCCコンシェニーシティ','N','N') , (1999,'2/12/2019','ja-JP','FCCConsigneeID',N'FCC受託者ID','N','N') , (1999,'2/12/2019','ja-JP','FCCConsigneeName',N'FCC受託者名','N','N') , (1999,'2/12/2019','ja-JP','FCCConsigneePostalCode',N'FCC受託者郵便番号','N','N') , (1999,'2/12/2019','ja-JP','FCCConsigneeRegion',N'FCCコンシェニー地域','N','N') , (1999,'2/12/2019','ja-JP','FCCDeviceModelName',N'FCCデバイスモデル名','N','N') , (1999,'2/12/2019','ja-JP','FCCImportCondition',N'FCC輸入条件','N','N') , (1999,'2/12/2019','ja-JP','FCCImporterAddress',N'FCC輸入者の住所','N','N') , (1999,'2/12/2019','ja-JP','FCCImporterCity',N'FCCインポーターシティ','N','N') , (1999,'2/12/2019','ja-JP','FCCImporterID',N'FCC輸入者ID','N','N') , (1999,'2/12/2019','ja-JP','FCCImporterName',N'FCC輸入者名','N','N') , (1999,'2/12/2019','ja-JP','FCCImporterPostalCode',N'FCC輸入者郵便番号','N','N') , (1999,'2/12/2019','ja-JP','FCCImporterRegion',N'FCC輸入地域','N','N') , (1999,'2/12/2019','ja-JP','FCCImporterState',N'FCC輸入国','N','N') , (1999,'2/12/2019','ja-JP','FCCIndicator',N'FCCインジケータ','N','N') , (1999,'2/12/2019','ja-JP','FCCManufacturerID',N'FCC製造者ID','N','N') , (1999,'2/12/2019','ja-JP','FCCNotes',N'FCCノート','N','N') , (1999,'2/12/2019','ja-JP','FCCProductDesc',N'FCC製品の説明','N','N') , (1999,'2/12/2019','ja-JP','FCCProductID',N'FCC製品ID','N','N') , (1999,'2/12/2019','ja-JP','FCCProductTypeCode',N'FCC製品タイプコード','N','N') , (1999,'2/12/2019','ja-JP','FCCQuestion1',N'FCC質問1','N','N') , (1999,'2/12/2019','ja-JP','FCCQuestion2',N'FCC質問2','N','N') , (1999,'2/12/2019','ja-JP','FCCQuestion3',N'FCC質問3','N','N') , (1999,'2/12/2019','ja-JP','FCCQuestion4',N'FCC質問4','N','N') , (1999,'2/12/2019','ja-JP','FCCQuestion5',N'FCC質問5','N','N') , (1999,'2/12/2019','ja-JP','FCCQuestion5a',N'FCC質問5a','N','N') , (1999,'2/12/2019','ja-JP','FCCQuestion6',N'FCC質問6','N','N') , (1999,'2/12/2019','ja-JP','FCCQuestion7',N'FCC質問7','N','N') , (1999,'2/12/2019','ja-JP','FCCQuestion8',N'FCC質問8','N','N') , (1999,'2/12/2019','ja-JP','FCCTradeName',N'FCCの商号','N','N') , (1999,'2/12/2019','ja-JP','FCNApplies',N'FCNが適用されます','N','N') , (1999,'2/12/2019','ja-JP','FCNIndicator',N'FCNインジケータ','N','N') , (1999,'2/12/2019','ja-JP','FCNNotes',N'FCNノート','N','N') , (1999,'2/12/2019','ja-JP','FDA510KComplianceCode',N'FDA510Kコンプライアンスコード','N','N') , (1999,'2/12/2019','ja-JP','FDA510KNum',N'FDA510K番号','N','N') , (1999,'2/12/2019','ja-JP','FDAAOCCode1',N'FDAAOCコード2','N','N') , (1999,'2/12/2019','ja-JP','FDAAOCCode2',N'FDAAOCコード3','N','N') , (1999,'2/12/2019','ja-JP','FDAAOCCode3',N'FDAAOCコード4','N','N') , (1999,'2/12/2019','ja-JP','FDAAOCCode4',N'FDAAOCコード5','N','N') , (1999,'2/12/2019','ja-JP','FDAAOCCode5',N'FDAAOCコード6','N','N') , (1999,'2/12/2019','ja-JP','FDAAOCQualifier1',N'FDAAOC予選2','N','N') , (1999,'2/12/2019','ja-JP','FDAAOCQualifier2',N'FDAAOC予選3','N','N') , (1999,'2/12/2019','ja-JP','FDAAOCQualifier3',N'FDAAOC予選4','N','N') , (1999,'2/12/2019','ja-JP','FDAAOCQualifier4',N'FDAAOC予選5','N','N') , (1999,'2/12/2019','ja-JP','FDAAOCQualifier5',N'FDAAOC予選6','N','N') , (1999,'2/12/2019','ja-JP','FDAApplies',N'FDA適用','N','N') , (1999,'2/12/2019','ja-JP','FDABrandName',N'FDAのブランド名','N','N') , (1999,'2/12/2019','ja-JP','FDACargoStorageStatus',N'FDAの貨物保管状況','N','N') , (1999,'2/12/2019','ja-JP','FDAContactName',N'FDAの連絡先名','N','N') , (1999,'2/12/2019','ja-JP','FDAContactPhone',N'FDAの連絡先電話番号','N','N') , (1999,'2/12/2019','ja-JP','FDAContainerHeight',N'FDAコンテナの高さ','N','N') , (1999,'2/12/2019','ja-JP','FDAContainerLength',N'FDAコンテナ長','N','N') , (1999,'2/12/2019','ja-JP','FDAContainerWidth',N'FDAコンテナ幅','N','N') , (1999,'2/12/2019','ja-JP','FDADeviceListingNum',N'FDAデバイスリスト番号','N','N') , (1999,'2/12/2019','ja-JP','FDAEstablishmentNum',N'FDA設立番号','N','N') , (1999,'2/12/2019','ja-JP','FDAFFRNum',N'FDAのFFR番号','N','N') , (1999,'2/12/2019','ja-JP','FDAGrowerIdentification',N'FDA生産者の識別','N','N') , (1999,'2/12/2019','ja-JP','FDAIndicator',N'FDA指標','N','N') , (1999,'2/12/2019','ja-JP','FDAMDLComplianceCode',N'FDA MDLコンプライアンスコード','N','N') , (1999,'2/12/2019','ja-JP','FDANotes',N'FDAノート','N','N') , (1999,'2/12/2019','ja-JP','FDAPriorStatus',N'FDAの事前のステータス','N','N') , (1999,'2/12/2019','ja-JP','FDAProductCode',N'FDA製品コード','N','N') , (1999,'2/12/2019','ja-JP','FDAProductCodeDesc',N'FDA製品コード説明','N','N') , (1999,'2/12/2019','ja-JP','FDAProductDesc',N'FDAの製品説明','N','N') , (1999,'2/12/2019','ja-JP','FDARegistrationNum',N'FDA登録番号','N','N') , (1999,'2/12/2019','ja-JP','FDAShipperMID',N'FDA Shipper MID','N','N') , (1999,'2/12/2019','ja-JP','FDATxnQtyUOM',N'FDA取引数量単位','N','N') , (1999,'2/12/2019','ja-JP','FDAValue',N'FDAの価値','N','N') , (1999,'2/12/2019','ja-JP','FDSarawakApplies',N'FDサラワクが適用','N','N') , (1999,'2/12/2019','ja-JP','FEHDApplies',N'FEHDが適用されます','N','N') , (1999,'2/12/2019','ja-JP','FG_ProductNum',N'完成した製品番号','N','N') , (1999,'2/12/2019','ja-JP','FGasRegulation5172014EU',N'FGAS規制5172014 EU','N','N') , (1999,'2/12/2019','ja-JP','FHAApplies',N'FHAが適用されます','N','N') , (1999,'2/12/2019','ja-JP','FHAIndicator',N'FHAインジケータ','N','N') , (1999,'2/12/2019','ja-JP','FHANotes',N'FHAノート','N','N') , (1999,'2/12/2019','ja-JP','fidBOMAnalysisUpload_aspx',N'部品表/配合表の編集/アップロード','N','N') , (1999,'2/12/2019','ja-JP','fidFTABOMRulesAnalysis_aspx',N'FTA BOMルール分析','N','N') , (1999,'2/12/2019','ja-JP','fidFTAWhatIf_aspx',N'FTAは何ですか?電卓','N','N') , (1999,'2/12/2019','ja-JP','fidProductFTAMaint_aspx',N'FTAプロダクトレコード','N','N') , (1999,'2/12/2019','ja-JP','Field',N'フィールド','N','N') , (1999,'2/12/2019','ja-JP','File',N'ファイル','N','N') , (1999,'2/12/2019','ja-JP','File Name',N'ファイル名','N','N') , (1999,'2/12/2019','ja-JP','File Size',N'ファイルサイズ','N','N') , (1999,'2/12/2019','ja-JP','FILTER_Contains',N'含有','N','N') , (1999,'2/12/2019','ja-JP','FILTER_DoesNotContain',N'DoesNotContain','N','N') , (1999,'2/12/2019','ja-JP','FILTER_EndsWith',N'終わりに','N','N') , (1999,'2/12/2019','ja-JP','FILTER_EqualTo',N'に等しい','N','N') , (1999,'2/12/2019','ja-JP','FILTER_GreaterThan',N'グレータータン','N','N') , (1999,'2/12/2019','ja-JP','FILTER_GreaterThanOrEqualTo',N'GreaterThanOrEqualTo','N','N') , (1999,'2/12/2019','ja-JP','FILTER_IsEmpty',N'IsEmpty','N','N') , (1999,'2/12/2019','ja-JP','FILTER_LessThan',N'未満','N','N') , (1999,'2/12/2019','ja-JP','FILTER_LessThanOrEqualTo',N'LessThanOrEqualTo','N','N') , (1999,'2/12/2019','ja-JP','FILTER_NoFilter',N'NoFilter','N','N') , (1999,'2/12/2019','ja-JP','FILTER_NotEqualTo',N'NotEqualTo','N','N') , (1999,'2/12/2019','ja-JP','FILTER_NotIsEmpty',N'NotIsEmpty','N','N') , (1999,'2/12/2019','ja-JP','FILTER_StartsWith',N'StartsWith','N','N') , (1999,'2/12/2019','ja-JP','Finished Good',N'完成品','N','N') , (1999,'2/12/2019','ja-JP','Finished Goods',N'完成品','N','N') , (1999,'2/12/2019','ja-JP','First Name',N'ファーストネーム','N','N') , (1999,'2/12/2019','ja-JP','FirstSaleValue',N'最初のセールスバリュー','N','N') , (1999,'2/12/2019','ja-JP','FirstSaleValueCurrencyCode',N'最初のセール値通貨コード','N','N') , (1999,'2/12/2019','ja-JP','FITTRIApplies',N'FITTRIが適用されます','N','N') , (1999,'2/12/2019','ja-JP','Flashpoint',N'引火点','N','N') , (1999,'2/12/2019','ja-JP','FMCApplies',N'FMCが適用されます','N','N') , (1999,'2/12/2019','ja-JP','FMCIndicator',N'FMCインジケータ','N','N') , (1999,'2/12/2019','ja-JP','FMCNotes',N'FMCノート','N','N') , (1999,'2/12/2019','ja-JP','fmdClassificationRequest_aspx',N'分類要求','N','N') , (1999,'2/12/2019','ja-JP','fmg Solicitation Administration_aspx',N'依頼管理','N','N') , (1999,'2/12/2019','ja-JP','fmgAddDeniedPerson_aspx',N'拒否対象者追加','N','N') , (1999,'2/12/2019','ja-JP','fmgAddKnowledge_aspx',N'知識の追加/編集','N','N') , (1999,'2/12/2019','ja-JP','fmgClassificationMapping_aspx',N'HSマッピング','N','N') , (1999,'2/12/2019','ja-JP','fmgClassificationUpdate_aspx',N'分類更新','N','N') , (1999,'3/10/2013','ja-JP','fmgDTSSpreadsheetImport_aspx',N'DPSスプレッドシート編入','N','N') , (1999,'2/12/2019','ja-JP','fmgKnowledgeProfile_aspx',N'知識プロファイル','N','N') , (1999,'2/12/2019','ja-JP','fmgProductRequestDetail_aspx',N'顧客要求管理','N','N') , (1999,'2/12/2019','ja-JP','fmgSolicitationAdministration_aspx',N'依頼管理','N','N') , (1999,'2/12/2019','ja-JP','FMSApplies',N'FMSが適用されます','N','N') , (1999,'2/12/2019','ja-JP','FMSIndicator',N'FMSインジケータ','N','N') , (1999,'2/12/2019','ja-JP','FMSNotes',N'FMSノート','N','N') , (1999,'2/12/2019','ja-JP','FoodRegApplies',N'食品規制が適用される','N','N') , (1999,'2/12/2019','ja-JP','Foreign Trade Zone Information',N'対外貿易区情報','N','N') , (1999,'2/12/2019','ja-JP','frdFTAAuditLog_aspx',N'FTA監査ログ','N','N') , (1999,'2/12/2019','ja-JP','frdFTACertificates_aspx',N'FTAの証明書と手紙','N','N') , (1999,'2/12/2019','ja-JP','frdFTASuppCert_aspx',N'サプライヤー証明書','N','N') , (1999,'2/12/2019','ja-JP','frdMCSGeneration_aspx',N'MCS生成','N','N') , (1999,'2/12/2019','ja-JP','Free Trade Agreement',N'自由貿易協定','N','N') , (1999,'2/12/2019','ja-JP','FRGCS01',N'製品階層レベル','N','N') , (1999,'2/12/2019','ja-JP','FRGCS02',N'製品階層レベルの説明','N','N') , (1999,'2/12/2019','ja-JP','FRGCS03',N'KGへの換算係数','N','N') , (1999,'2/12/2019','ja-JP','FRGCS04',N'KGへの換算係数','N','N') , (1999,'2/12/2019','ja-JP','FRGCS05',N'KGへの換算係数DR','N','N') , (1999,'2/12/2019','ja-JP','From Date',N'日付から','N','N') , (1999,'2/12/2019','ja-JP','FSANZApplies',N'FSANZが適用されます','N','N') , (1999,'2/12/2019','ja-JP','FSIApplies',N'FSIが適用されます','N','N') , (1999,'2/12/2019','ja-JP','FSIIndicator',N'FSI指標','N','N') , (1999,'2/12/2019','ja-JP','FSINotes',N'FSIノート','N','N') , (1999,'2/12/2019','ja-JP','FTA Audit Log',N'FTA監査ログ','N','N') , (1999,'2/12/2019','ja-JP','FTA Lookup',N'FTAルックアップ','N','N') , (1999,'2/12/2019','ja-JP','FTA Records: By Agreement',N'FTA記録:協定による','N','N') , (1999,'2/12/2019','ja-JP','FTA Records: Set to Expire',N'FTAレコード:期限切れに設定','N','N') , (1999,'2/12/2019','ja-JP','FTARuleCategoryGuid',N'FTAルールのカテゴリID','N','N') , (1999,'2/12/2019','ja-JP','FTZActiveFlag',N'FTZアクティブフラグ','N','N') , (1999,'2/12/2019','ja-JP','FTZApplies',N'FTZが適用される','N','N') , (1999,'2/12/2019','ja-JP','FTZIndicator',N'FTZ指標','N','N') , (1999,'2/12/2019','ja-JP','FTZNotes',N'FTZノート','N','N') , (1999,'2/12/2019','ja-JP','fug Document Retention_aspx',N'文書保存','N','N') , (1999,'2/12/2019','ja-JP','fugAuditClassifications_aspx',N'監査分類','N','N') , (1999,'2/12/2019','ja-JP','fugCountryInfoDetail_aspx',N'国情報','N','N') , (1999,'2/12/2019','ja-JP','fugDocumentAnalyzer_aspx',N'ドキュメントアナライザ','N','N') , (1999,'2/12/2019','ja-JP','fugDocumentRetention_aspx',N'文書保存','N','N') , (1999,'2/12/2019','ja-JP','fugECCN_aspx',N'ECN /二重使用リスト','N','N') , (1999,'2/12/2019','ja-JP','fugECCNDetail_aspx',N'ECN /二重使用リスト(クイックルックアップ)','N','N') , (1999,'2/12/2019','ja-JP','fugeccnlookup_aspx',N'ECNクエリ','N','N') , (1999,'2/12/2019','ja-JP','fugGlobalTariffs_aspx',N'グローバル関税','N','N') , (1999,'2/12/2019','ja-JP','fugGlobalTariffsDetail_aspx',N'グローバル関税(クイックルックアップ)','N','N') , (1999,'2/12/2019','ja-JP','fugGlobalTariffsLookup_aspx',N'グローバル料金表','N','N') , (1999,'2/12/2019','ja-JP','fugKnowledge_aspx',N'知識ネットワーク','N','N') , (1999,'2/12/2019','ja-JP','fugKnowledgeDetail_aspx',N'知識の詳細','N','N') , (1999,'2/12/2019','ja-JP','fugLandedCostAnalyzer_aspx',N'ランディングコストアナラ​​イザ','N','N') , (1999,'2/12/2019','ja-JP','fugMessages_aspx',N'システムメッセージ','N','N') , (1999,'2/12/2019','ja-JP','fugOpenSearchImproved_aspx',N'分類検索','N','N') , (1999,'2/12/2019','ja-JP','fugRegulationListUpdates_aspx',N'規制リストの更新','N','N') , (1999,'2/12/2019','ja-JP','fugsearchhistorydetail_aspx',N'検索履歴の詳細','N','N') , (1999,'2/12/2019','ja-JP','fugTariffAnalyzerNew_aspx',N'関税分析','N','N') , (1999,'2/12/2019','ja-JP','fugTariffUpdates_aspx',N'関税の更新','N','N') , (1999,'2/12/2019','ja-JP','fugwconotes_aspx',N'WCO解説','N','N') , (1999,'2/12/2019','ja-JP','Function',N'関数','N','N') , (1999,'2/12/2019','ja-JP','FUNDAPOperInd',N'FUNDAP操作インジケータ','N','N') , (1999,'2/12/2019','ja-JP','fuxUploadDocuments',N'ファイルを選択','N','N') , (1999,'2/12/2019','ja-JP','FWSApplies',N'FWSが適用されます','N','N') , (1999,'2/12/2019','ja-JP','FWSIndicator',N'FWSインジケータ','N','N') , (1999,'2/12/2019','ja-JP','FWSNotes',N'FWSノート','N','N') , (1999,'3/10/2013','ja-JP','fxdDPSQuery_aspx',N'DPS探索','N','N') , (1999,'3/10/2013','ja-JP','fxdDTSHistory_aspx',N'DPS過去結果','N','N') , (1999,'3/10/2013','ja-JP','fxdDTSNotes_aspx',N'DPS 注釈','N','N') , (1999,'3/10/2013','ja-JP','fxdDTSQuery_aspx',N'DPS 探索','N','N') , (1999,'3/10/2013','ja-JP','fxdDTSQueryDetail_aspx',N'DPS探索内容','N','N') , (1999,'3/10/2013','ja-JP','fxdDTSRegulationList_aspx',N'DPS条例リスト','N','N') , (1999,'3/10/2013','ja-JP','fxdDTSWebserviceTest_aspx',N'DPSウェブサービステスト','N','N') , (1999,'2/12/2019','ja-JP','GBHsNum',N'イギリスのHs番号','N','N') , (1999,'2/12/2019','ja-JP','GCA',N'GCA','N','N') , (1999,'2/12/2019','ja-JP','gcCountry',N'国','N','N') , (1999,'2/12/2019','ja-JP','GCS01',N'製品階層レベル','N','N') , (1999,'2/12/2019','ja-JP','GCS02',N'製品階層レベルの説明','N','N') , (1999,'2/12/2019','ja-JP','GCS03',N'KGへの換算係数','N','N') , (1999,'2/12/2019','ja-JP','GCS04',N'KGへの換算係数','N','N') , (1999,'2/12/2019','ja-JP','GCS05',N'換算係数DR〜KG','N','N') , (1999,'2/12/2019','ja-JP','GCS06',N'GCS06','N','N') , (1999,'2/12/2019','ja-JP','GCS07',N'GCS07','N','N') , (1999,'2/12/2019','ja-JP','GCS09',N'GCS09','N','N') , (1999,'2/12/2019','ja-JP','Generate Documents',N'証明書の作成','N','N') , (1999,'2/12/2019','ja-JP','Generate/Submit Tab Help',N'ヘルプ - 生成/送信','N','N') , (1999,'2/12/2019','ja-JP','GetSetType_Clock/Watch',N'時計/時計 ''','N','N') , (1999,'2/12/2019','ja-JP','GetSetType_Set',N'セット''','N','N') , (1999,'2/12/2019','ja-JP','GetStatus_Active',N'アクティブ''','N','N') , (1999,'2/12/2019','ja-JP','GetStatus_Inactive',N'非アクティブ ''','N','N') , (1999,'2/12/2019','ja-JP','GIPApplies',N'GIPが適用されます','N','N') , (1999,'2/12/2019','ja-JP','GIPIndicator',N'GIPインジケータ','N','N') , (1999,'2/12/2019','ja-JP','GIPNotes',N'GIPノート','N','N') , (1999,'2/12/2019','ja-JP','Global',N'グローバル','N','N') , (1999,'2/12/2019','ja-JP','Global HS Description',N'グローバルHS説明','N','N') , (1999,'2/12/2019','ja-JP','Global HS Number',N'グローバルHS番号','N','N') , (1999,'2/12/2019','ja-JP','Global Product Description',N'グローバル商品説明','N','N') , (1999,'2/12/2019','ja-JP','Global Product Information',N'グローバル製品情報','N','N') , (1999,'2/12/2019','ja-JP','Global View',N'グローバルビュー','N','N') , (1999,'2/12/2019','ja-JP','GlobalHsNum',N'グローバルHs番号','N','N') , (1999,'2/12/2019','ja-JP','GlobalProductDesc',N'グローバル商品説明','N','N') , (1999,'2/12/2019','ja-JP','GlobalProductNum',N'グローバル製品番号','N','N') , (1999,'2/12/2019','ja-JP','Go To Solicitation',N'回答する','N','N') , (1999,'2/12/2019','ja-JP','GoodsDesc',N'商品説明','N','N') , (1999,'2/12/2019','ja-JP','GoodsOriginCode',N'商品の原産地コード','N','N') , (1999,'2/12/2019','ja-JP','GovIndicator1',N'政府指標1','N','N') , (1999,'2/12/2019','ja-JP','GovIndicator2',N'政府指標2','N','N') , (1999,'2/12/2019','ja-JP','GovIndicator3',N'政府指標3','N','N') , (1999,'2/12/2019','ja-JP','GRI',N'GRI','N','N') , (1999,'2/12/2019','ja-JP','GrossWeight',N'総重量','N','N') , (1999,'2/12/2019','ja-JP','Group',N'グループ','N','N') , (1999,'2/12/2019','ja-JP','GroupCodeName',N'グループコード名','N','N') , (1999,'2/12/2019','ja-JP','GroupDescription',N'グループの説明','N','N') , (1999,'2/12/2019','ja-JP','HandbookSerialNum',N'ハンドブックのシリアル番号','N','N') , (1999,'2/12/2019','ja-JP','HasChildren',N'子供がいる','N','N') , (1999,'2/12/2019','ja-JP','HazardClass',N'ハザードクラス','N','N') , (1999,'2/12/2019','ja-JP','HazMatFlag',N'危険物の旗','N','N') , (1999,'2/12/2019','ja-JP','HEAApplies',N'HEAが適用','N','N') , (1999,'2/12/2019','ja-JP','Header Information',N'ヘッダー情報','N','N') , (1999,'2/12/2019','ja-JP','Heading',N'見出し','N','N') , (1999,'2/12/2019','ja-JP','Hide Display Fields…',N'表示フィールドを非表示...','N','N') , (1999,'2/12/2019','ja-JP','Hide Filter Options…',N'フィルタオプションを非表示...','N','N') , (1999,'2/12/2019','ja-JP','Hide Report Fields…',N'レポートフィールドを非表示...','N','N') , (1999,'2/12/2019','ja-JP','Hide Search Fields…',N'検索フィールドを非表示...','N','N') , (1999,'2/12/2019','ja-JP','HIERARCHY',N'階層','N','N') , (1999,'2/12/2019','ja-JP','HK',N'香港','N','N') , (1999,'2/12/2019','ja-JP','HKGCS07',N'HKGCS07','N','N') , (1999,'2/12/2019','ja-JP','HKGCS09',N'HKGCS09','N','N') , (1999,'2/12/2019','ja-JP','hlx Exit',N'閉じる','N','N') , (1999,'2/12/2019','ja-JP','hlx Exit Button',N'ホームページ','N','N') , (1999,'2/12/2019','ja-JP','hlx Export',N'エクセルの出力','N','N') , (1999,'2/12/2019','ja-JP','hlx New Request',N'新しい依頼','N','N') , (1999,'2/12/2019','ja-JP','hlxBackToAdmin',N'管理に戻る','N','N') , (1999,'2/12/2019','ja-JP','hlxClose',N'閉じる','N','N') , (1999,'2/12/2019','ja-JP','hlxCountryLetter',N'原産国の手紙','N','N') , (1999,'2/12/2019','ja-JP','hlxCreateRequestLink',N'リクエストを作成する','N','N') , (1999,'2/12/2019','ja-JP','hlxDelete',N'削除','N','N') , (1999,'2/12/2019','ja-JP','hlxDownloadAllPDF',N'すべてをダウンロードする','N','N') , (1999,'2/12/2019','ja-JP','hlxEmail',N'Email Cert','N','N') , (1999,'2/12/2019','ja-JP','hlxExit',N'閉じる','N','N') , (1999,'2/12/2019','ja-JP','hlxExitButton',N'ホームページ','N','N') , (1999,'2/12/2019','ja-JP','hlxExport',N'エクセルの出力','N','N') , (1999,'2/12/2019','ja-JP','hlxExtract',N'テンプレートの抽出','N','N') , (1999,'2/12/2019','ja-JP','hlxGlobalTariffLink',N'グローバル関税','N','N') , (1999,'2/12/2019','ja-JP','hlxlblAddCustomer',N'顧客を追加','N','N') , (1999,'2/12/2019','ja-JP','hlxlblAddProduct',N'製品を追加','N','N') , (1999,'2/12/2019','ja-JP','hlxlblCopy',N'コピー','N','N') , (1999,'2/12/2019','ja-JP','hlxlblExit',N'出口','N','N') , (1999,'2/12/2019','ja-JP','hlxlblGenerate',N'生成する','N','N') , (1999,'2/12/2019','ja-JP','hlxlblLoad',N'負荷','N','N') , (1999,'2/12/2019','ja-JP','hlxlblNew',N'新しい','N','N') , (1999,'2/12/2019','ja-JP','hlxlblSave',N'セーブ','N','N') , (1999,'2/12/2019','ja-JP','hlxlblVoid',N'空','N','N') , (1999,'2/12/2019','ja-JP','hlxManufacturerAffidavit',N'メーカーの誓約書','N','N') , (1999,'2/12/2019','ja-JP','hlxNewLink',N'新しい','N','N') , (1999,'2/12/2019','ja-JP','hlxNewRequest',N'新しい依頼','N','N') , (1999,'2/12/2019','ja-JP','hlxPDF',N'PDFをダウンロード','N','N') , (1999,'2/12/2019','ja-JP','hlxPDFLink',N'PDFをダウンロード','N','N') , (1999,'2/12/2019','ja-JP','hlxProductSearch',N'製品検索','N','N') , (1999,'2/12/2019','ja-JP','hlxQueryText',N'クエリ文字列を取得する','N','N') , (1999,'2/12/2019','ja-JP','hlxRefresh',N'リフレッシュ','N','N') , (1999,'2/12/2019','ja-JP','hlxReport',N'レポートリンク','N','N') , (1999,'2/12/2019','ja-JP','hlxReset',N'リセット','N','N') , (1999,'2/12/2019','ja-JP','hlxReturn',N'お客様のご要望に戻る<','N','N') , (1999,'2/12/2019','ja-JP','hlxSave',N'セーブ','N','N') , (1999,'2/12/2019','ja-JP','hlxSaveClose',N'保存して閉じる','N','N') , (1999,'2/12/2019','ja-JP','hlxSingleChangesReport',N'仮に?BOMレポート','N','N') , (1999,'2/12/2019','ja-JP','hlxSubmit',N'提出する','N','N') , (1999,'2/12/2019','ja-JP','hlxVoid',N'空','N','N') , (1999,'2/12/2019','ja-JP','HolidayName',N'休日の名前','N','N') , (1999,'2/12/2019','ja-JP','HPRGApplies',N'HPRGが適用されます','N','N') , (1999,'2/12/2019','ja-JP','HS Num',N'HS番号','N','N') , (1999,'2/12/2019','ja-JP','Hs Number',N'HS 番号','N','N') , (1999,'2/12/2019','ja-JP','HSAApplies',N'HSAが適用されます','N','N') , (1999,'2/12/2019','ja-JP','HsChapterNotes',N'Hs章ノート','N','N') , (1999,'2/12/2019','ja-JP','HSControls',N'HSコントロール','N','N') , (1999,'2/12/2019','ja-JP','HSCountryCode',N'HS国コード','N','N') , (1999,'2/12/2019','ja-JP','HsDesc',N'Hs説明','N','N') , (1999,'2/12/2019','ja-JP','HSDescription',N'HS説明','N','N') , (1999,'2/12/2019','ja-JP','HSDescriptionMatches',N'HSの説明一致','N','N') , (1999,'2/12/2019','ja-JP','HsGuid',N'Hsの識別','N','N') , (1999,'2/12/2019','ja-JP','HsInProgress',N'進行中のHs','N','N') , (1999,'2/12/2019','ja-JP','HsInProgressRate',N'Hs進捗率','N','N') , (1999,'2/12/2019','ja-JP','HsNum',N'HS番号','N','N') , (1999,'2/12/2019','ja-JP','HSNum 2',N'HS番号3','N','N') , (1999,'2/12/2019','ja-JP','HsNum2',N'Hs番号2','N','N') , (1999,'2/12/2019','ja-JP','HSNumber',N'HS番号','N','N') , (1999,'2/12/2019','ja-JP','HSNumberMatches',N'HS番号の一致','N','N') , (1999,'2/12/2019','ja-JP','HsRationale',N'Hsの根拠','N','N') , (1999,'2/12/2019','ja-JP','HSRelatedControl',N'HS関連制御','N','N') , (1999,'2/12/2019','ja-JP','HsSectionNotes',N'Hsセクションノート','N','N') , (1999,'2/12/2019','ja-JP','HSUOMConvFactor',N'HS単位換算係数','N','N') , (1999,'2/12/2019','ja-JP','HTS',N'HTS','N','N') , (1999,'2/12/2019','ja-JP','HtsIndex',N'Htsインデックス','N','N') , (1999,'2/12/2019','ja-JP','HTSUOMConvFactor',N'HTS単位換算換算係数','N','N') , (1999,'2/12/2019','ja-JP','hxlnkClassificationRequest',N'リクエストを作成する','N','N') , (1999,'2/12/2019','ja-JP','hyxCountryInfoDetail',N'国情報詳細','N','N') , (1999,'2/12/2019','ja-JP','hyxlinkResultsDetail0_Close',N'閉じる','N','N') , (1999,'2/12/2019','ja-JP','hyxlinkResultsDetail0_Duplicate',N'(複製して比較する)','N','N') , (1999,'2/12/2019','ja-JP','hyxlinkResultsDetail1_Close',N'閉じる','N','N') , (1999,'2/12/2019','ja-JP','hyxlinkResultsDetail1_Duplicate',N'(複製して比較する)','N','N') , (1999,'2/12/2019','ja-JP','hyxlnk Document Retention',N'文書保存','N','N') , (1999,'2/12/2019','ja-JP','hyxlnk Extract',N'エクセルの出力','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkAddSystemMessages',N'セーブ','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkAdvancedSearch',N'高度な検索','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkAllCountryImportExportAgencies',N'すべての輸入/輸出代理店','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkAllExportAgencies',N'すべての輸出代理店','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkAllImportAgencies',N'すべての輸入代理店','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkApprove',N'承認する','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkAuditLog',N'監査ログ','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkAutoSize',N'自動サイズ','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkBottomOfPage',N'ボトム','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkCancelSystemMessages',N'キャンセル','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkCCLCC',N'コマースコントロールリストカントリーチャート','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkClassificationRequest',N'「リクエストの作成」','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkClassify',N'分類する','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkClose',N'閉じる','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkContactWebSite',N'タイトル','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkCountryFilterCountryInfo',N'国情報','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkCountryInfo',N'国情報','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkCountryInfoDetail',N'国情報の詳細','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkDeleteParty',N'削除','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkDetails',N'詳細','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkDocumentRetention',N'文書保存','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkEditECNNumber',N'編集','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkEditECNNumberOld',N'編集(古い)','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkEditHSNumber',N'編集','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkEditHSNumberOld',N'編集(古い)','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkEditValidate',N'編集/検証','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkEndUseSearch',N'最終使用検索','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkExit',N'出口','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkExport',N'輸出する','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkExtract',N'エクセルの出力','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkFavorites',N'お気に入り','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkFavoritesImage',N'お気に入り','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkFullSite',N'完全なサイトを表示','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkGenerate',N'生成する','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkGenerateLink',N'最近の検索(old)','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkGlobalClassificationSelection',N'グローバル分類から選択','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkGlobalProductView',N'グローバル製品ビュー','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkGoToDocuments',N'文書保持','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkGPRD',N'GPRD','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkHsRates',N'Hsの料金','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkLogout',N'ログアウト','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkManageProfiles',N'プロファイルの管理','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkManageSearches',N'最近の検索/グローバル分類の選択','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkManageSearchesNew',N'検索の管理','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkMaximize',N'最大化する','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkMobileMainMenu',N'メインメニュー','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkMobileSite',N'モバイルサイトを表示','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkMobileSiteBackup',N'モバイルサイトを表示','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkMultipleMatchingECN',N'再度検索結果を見る','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkMultipleMatchingHSNumber',N'再度検索結果を見る','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkNew',N'新しい','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkNewSearch',N'新しい検索','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkNextBottom',N'次','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkNextTop',N'次','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkOrigination_BindingRulingsAdvancedSearch',N'原点拘束裁定詳細検索','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkPGA',N'PGAデータ','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkPopOut',N'新しいブラウザウィンドウで開く','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkPreviousBottom',N'<前のページ','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkPreviousTop',N'<前のページ','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkPrint',N'印刷','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkRecentSearches',N'最近の検索','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkRefresh',N'リフレッシュ','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkReload',N'リロード','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkReturnToValidation',N'検証に戻る','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkRuleOfOrigin',N'原産地規則','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkSave',N'セーブ','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkSaveCurrentSearch',N'現在の検索を保存','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkSaveSearch',N'保存検索','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkSearchHSNumber',N'HSナンバー検索','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkSeeChanges',N'変更を参照してください','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkSelectECCNumber',N'ECC番号の選択','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkSelectECNNumber',N'選択','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkSelectedTable',N'テーブルをリフレッシュする','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkSelectHSNumber',N'選択','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkSet',N'セット','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkSourceDate',N'過去のアップデートの詳細を見るにはここをクリック','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkStartNewRequest',N'新しいリクエストを開始する','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkStartOver',N'リフレッシュ','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkStatusBarCountryInfo',N'国情報','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkTopOfPage',N'画面のトップ','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkUnsavedSearches',N'未保存の検索','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkVatRates',N'付加価値税率','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkViewDetails',N'詳細を見る','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkViewDocument',N'ドキュメントを表示する','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkViewDutyDetails',N'義務の詳細を表示する','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkViewFTADetails',N'FTA原産地規則の詳細を見る','N','N') , (1999,'2/12/2019','ja-JP','hyxlnkViewRulesOfOrigin',N'原産地規則を見る','N','N') , (1999,'2/12/2019','ja-JP','hyxlnxExit',N'出口','N','N') , (1999,'2/12/2019','ja-JP','hyxShowArchive',N'アーカイブ','N','N') , (1999,'2/12/2019','ja-JP','hyxTop',N'ページの先頭','N','N') , (1999,'2/12/2019','ja-JP','IADApplies',N'IAD適用','N','N') , (1999,'2/12/2019','ja-JP','IADIndicator',N'IADインジケータ','N','N') , (1999,'2/12/2019','ja-JP','IADNotes',N'IADノート','N','N') , (1999,'2/12/2019','ja-JP','IBAMAApplies',N'IBAMAが適用されます','N','N') , (1999,'2/12/2019','ja-JP','ICDRArticleNum',N'ICDR記事番号','N','N') , (1999,'2/12/2019','ja-JP','ICDRDetailNum',N'ICDRの詳細番号','N','N') , (1999,'2/12/2019','ja-JP','ICDRExemptionApplies',N'ICDR免除が適用されます','N','N') , (1999,'2/12/2019','ja-JP','ICDRGovOrdArticleNum',N'ICDR政府命令文番号','N','N') , (1999,'2/12/2019','ja-JP','ICDRGovOrdDetailNum',N'ICDR政府の注文番号','N','N') , (1999,'2/12/2019','ja-JP','ICDRGovOrdItemNum',N'ICDR政府の注文商品番号','N','N') , (1999,'2/12/2019','ja-JP','ICDRItemNum',N'ICDR品目番号','N','N') , (1999,'2/12/2019','ja-JP','ICDROtherRegName',N'ICDRその他の規制名','N','N') , (1999,'2/12/2019','ja-JP','ICDVApplies',N'ICDVが適用されます','N','N') , (1999,'2/12/2019','ja-JP','ICL70Applies',N'ICL70適用','N','N') , (1999,'2/12/2019','ja-JP','ICL70RegName',N'ICL70規制名','N','N') , (1999,'2/12/2019','ja-JP','ICTEDDrawbackApplies',N'ICTEDの欠点が適用されます','N','N') , (1999,'2/12/2019','ja-JP','ID',N'ID','N','N') , (1999,'2/12/2019','ja-JP','IDAApplies',N'IDAが適用されます','N','N') , (1999,'2/12/2019','ja-JP','IDREAppendixNum',N'IDRE付録番号','N','N') , (1999,'2/12/2019','ja-JP','IDREArticleNum',N'IDRE記事番号','N','N') , (1999,'2/12/2019','ja-JP','IDRECode',N'IDREコード','N','N') , (1999,'2/12/2019','ja-JP','IDREFixedRateApplies',N'IDRE固定料金が適用されます','N','N') , (1999,'2/12/2019','ja-JP','IDREItemNum',N'IDRE品目番号','N','N') , (1999,'2/12/2019','ja-JP','IDREOtherRegName',N'IDREその他の規制名','N','N') , (1999,'2/12/2019','ja-JP','IDRETempRateApplies',N'IDRE温度レートが適用されます','N','N') , (1999,'2/12/2019','ja-JP','IDVApplies',N'IDVが適用されます','N','N') , (1999,'2/12/2019','ja-JP','IDVIndicator',N'IDVインジケータ','N','N') , (1999,'2/12/2019','ja-JP','IDVNotes',N'IDVノート','N','N') , (1999,'2/12/2019','ja-JP','IESBApplies',N'IESBが適用されます','N','N') , (1999,'2/12/2019','ja-JP','IL',N'IL','N','N') , (1999,'2/12/2019','ja-JP','ILGCS07',N'ILGCS08','N','N') , (1999,'2/12/2019','ja-JP','ILGCS09',N'ILGCS10','N','N') , (1999,'2/12/2019','ja-JP','Image',N'画像','N','N') , (1999,'2/12/2019','ja-JP','IMPORT',N'インポート','N','N') , (1999,'2/12/2019','ja-JP','importCountry',N'輸入国','N','N') , (1999,'2/12/2019','ja-JP','IN',N'に','N','N') , (1999,'2/12/2019','ja-JP','InactivatedDate',N'非活性化日付','N','N') , (1999,'2/12/2019','ja-JP','Include in Total Estimate',N'合計見積もりに含める','N','N') , (1999,'2/12/2019','ja-JP','IncludeFlag',N'フラグを含める','N','N') , (1999,'2/12/2019','ja-JP','IndexCatalogInfo',N'索引カタログ情報','N','N') , (1999,'2/12/2019','ja-JP','INDUSTRY',N'業界','N','N') , (1999,'2/12/2019','ja-JP','Information',N'情報','N','N') , (1999,'2/12/2019','ja-JP','INGCS07',N'INGCS08','N','N') , (1999,'2/12/2019','ja-JP','INGCS09',N'INGCS10','N','N') , (1999,'2/12/2019','ja-JP','INMETROApplies',N'INMETROが適用されます','N','N') , (1999,'2/12/2019','ja-JP','Input Value',N'入力値','N','N') , (1999,'2/12/2019','ja-JP','InputCurrency',N'入力通貨','N','N') , (1999,'2/12/2019','ja-JP','InputDisplayCode',N'入力表示コード','N','N') , (1999,'2/12/2019','ja-JP','InputTypeCode',N'入力タイプコード','N','N') , (1999,'2/12/2019','ja-JP','InputTypeDisplay',N'入力タイプの表示','N','N') , (1999,'2/12/2019','ja-JP','InputValue',N'入力値','N','N') , (1999,'2/12/2019','ja-JP','Insert Date',N'日付を挿入','N','N') , (1999,'2/12/2019','ja-JP','InstrumentSecurityCode',N'機器セキュリティコード','N','N') , (1999,'2/12/2019','ja-JP','Intrastat',N'イントラスタット','N','N') , (1999,'2/12/2019','ja-JP','Invalid Bill Of Materials',N'部品表が無効です','N','N') , (1999,'2/12/2019','ja-JP','Invalid/ Obsolete',N'無効/廃止','N','N') , (1999,'2/12/2019','ja-JP','InvoiceTXNQtyUom',N'請求書取引数量単位','N','N') , (1999,'2/12/2019','ja-JP','InvoiceTxnQtyUomConvFactor',N'請求書取引数量単位換算係数','N','N') , (1999,'2/12/2019','ja-JP','IORNum',N'IOR番号','N','N') , (1999,'2/12/2019','ja-JP','IRSApplies',N'IRSが適用されます','N','N') , (1999,'2/12/2019','ja-JP','IRSIndicator',N'IRS指標','N','N') , (1999,'2/12/2019','ja-JP','IRSNotes',N'IRSノート','N','N') , (1999,'2/12/2019','ja-JP','ISPApplies',N'ISPが適用されます','N','N') , (1999,'2/12/2019','ja-JP','ISSPercentage',N'ISSのパーセンテージ','N','N') , (1999,'2/12/2019','ja-JP','IssueCountry',N'発行国','N','N') , (1999,'2/12/2019','ja-JP','ITARNum',N'ITAR番号','N','N') , (1999,'2/12/2019','ja-JP','ITCOAppendix1Applies',N'ITCO付録1対象','N','N') , (1999,'2/12/2019','ja-JP','ITCOAppendix1DetailNum',N'ITCO付録1詳細番号','N','N') , (1999,'2/12/2019','ja-JP','ITCOAppendix2Applies',N'ITCO付録2適用対象','N','N') , (1999,'2/12/2019','ja-JP','ITCOAppendix2DetailNum',N'ITCO付録2詳細番号','N','N') , (1999,'2/12/2019','ja-JP','items',N'アイテム','N','N') , (1999,'2/12/2019','ja-JP','JP',N'JP','N','N') , (1999,'2/12/2019','ja-JP','JP HS Description',N'日本HS説明','N','N') , (1999,'2/12/2019','ja-JP','JP Product Description',N'日本商品の説明','N','N') , (1999,'2/12/2019','ja-JP','JPGCS07',N'JPGCS07','N','N') , (1999,'2/12/2019','ja-JP','JPGCS09',N'JPGCS10','N','N') , (1999,'2/12/2019','ja-JP','KAHPAApplies',N'KAHPAが適用されます','N','N') INSERT INTO tmgPartnerCultureDefinitions(PartnerId,EffDate,CultureGuid,FieldName,FieldTranslation,DeletedFlag,KeepDuringRollback) VALUES (1999,'2/12/2019','ja-JP','KATRIApplies',N'KATRIが適用','N','N') , (1999,'2/12/2019','ja-JP','KDTAApplies',N'KDTAが適用されます','N','N') , (1999,'2/12/2019','ja-JP','KeepDuringRollback',N'ロールバック中に保持','N','N') , (1999,'2/12/2019','ja-JP','KEMTApplies',N'KEMT適用','N','N') , (1999,'2/12/2019','ja-JP','KeywordMatches',N'キーワードの一致','N','N') , (1999,'2/12/2019','ja-JP','KFDAApplies',N'KFDA適用','N','N') , (1999,'2/12/2019','ja-JP','KMDIAApplies',N'KMDIAが適用されます','N','N') , (1999,'2/12/2019','ja-JP','KnowledgeDescription',N'知識記述','N','N') , (1999,'2/12/2019','ja-JP','KnowledgeDescriptionCultureCode',N'知識記述文化コード','N','N') , (1999,'2/12/2019','ja-JP','KnowledgeDescriptionSortOrder',N'知識の説明ソート順','N','N') , (1999,'2/12/2019','ja-JP','KnowledgeDescriptionTypeDecode',N'知識記述タイプデコード','N','N') , (1999,'2/12/2019','ja-JP','KnowledgeTypeDecode',N'ナレッジタイプデコード','N','N') , (1999,'2/12/2019','ja-JP','KPApplies',N'KP適用','N','N') , (1999,'2/12/2019','ja-JP','KPCSApplies',N'KPCS適用','N','N') , (1999,'2/12/2019','ja-JP','KPTAApplies',N'KPTAが適用されます','N','N') , (1999,'2/12/2019','ja-JP','KRGCS01',N'KRGCS02','N','N') , (1999,'2/12/2019','ja-JP','KRGCS02',N'KRGCS03','N','N') , (1999,'2/12/2019','ja-JP','KRGCS03',N'KRGCS04','N','N') , (1999,'2/12/2019','ja-JP','KRGCS07',N'KRGCS08','N','N') , (1999,'2/12/2019','ja-JP','KRGCS09',N'KRGCS10','N','N') , (1999,'2/12/2019','ja-JP','KTICApplies',N'KTICが適用されます','N','N') , (1999,'2/12/2019','ja-JP','KTLApplies',N'KTL適用','N','N') , (1999,'2/12/2019','ja-JP','KTRIApplies',N'KTRI適用','N','N') , (1999,'2/12/2019','ja-JP','Last Edit',N'最後の編集','N','N') , (1999,'2/12/2019','ja-JP','Last Updated By',N'最終更新者','N','N') , (1999,'2/12/2019','ja-JP','LastCheckedDate',N'最終確認日','N','N') , (1999,'2/12/2019','ja-JP','LastEdit',N'最後の編集','N','N') , (1999,'2/12/2019','ja-JP','LastImportDate',N'最終インポート日','N','N') , (1999,'2/12/2019','ja-JP','LastSearchedDate',N'最終検索日','N','N') , (1999,'2/12/2019','ja-JP','LastSearchedUserGuid',N'最後に検索されたユーザーID','N','N') , (1999,'2/12/2019','ja-JP','Launch Mass BOM Analysis',N'マスBOM分析を開始','N','N') , (1999,'2/12/2019','ja-JP','lbl MU Misc',N'生産地','N','N') , (1999,'2/12/2019','ja-JP','lbl MU Misc Alias',N'生産地','N','N') , (1999,'2/12/2019','ja-JP','lblAccept',N'同意する','N','N') , (1999,'2/12/2019','ja-JP','lblAddNQPrompt',N'製品レコードの編集','N','N') , (1999,'2/12/2019','ja-JP','lblAddQPrompt',N'製品レコードの編集','N','N') , (1999,'2/12/2019','ja-JP','lblBOMGUID',N'BOM GUIDを入力','N','N') , (1999,'2/12/2019','ja-JP','lblBOMList',N'何もない','N','N') , (1999,'2/12/2019','ja-JP','lblChapter',N'章を入力','N','N') , (1999,'2/12/2019','ja-JP','lblClass',N'分類源','N','N') , (1999,'2/12/2019','ja-JP','lblCollapsiblePanelMessageDisplay',N'表示オプションを表示する...','N','N') , (1999,'2/12/2019','ja-JP','lblConfirmSave',N'製品レコードの編集','N','N') , (1999,'2/12/2019','ja-JP','lblCopyDatesTo',N'&nbsp; TO&nbsp;','N','N') , (1999,'2/12/2019','ja-JP','lblCopyNameNeeded',N'コピー','N','N') , (1999,'2/12/2019','ja-JP','lblFilterEquals',N'=','N','N') , (1999,'2/12/2019','ja-JP','lblFTA',N'FTAを選択','N','N') , (1999,'2/12/2019','ja-JP','lblGenerateSelect',N'次の証明書を生成するには、FTAを選択します。','N','N') , (1999,'2/12/2019','ja-JP','lblGrossWtHeader',N'総重量','N','N') , (1999,'2/12/2019','ja-JP','lblmiscHeader',N'雑','N','N') , (1999,'2/12/2019','ja-JP','lblMUGrossWt',N'総重量','N','N') , (1999,'2/12/2019','ja-JP','lblMUMisc',N'生産地','N','N') , (1999,'2/12/2019','ja-JP','lblMUMiscAlias',N'生産地','N','N') , (1999,'2/12/2019','ja-JP','lblMUWtUOM',N'重量の単位','N','N') , (1999,'2/12/2019','ja-JP','lblPartyInfoLabel',N'第三者情報','N','N') , (1999,'2/12/2019','ja-JP','lblPickFilter',N'データフィールドを選択し、実行するBOMのリストをフィルタリングする値を入力します。フィルタが選択されていない場合は、すべてのBOMが実行されます。','N','N') , (1999,'2/12/2019','ja-JP','lblPickFTAs',N'BOMを実行するFTAを1つ以上選択します。選択されていない場合は、すべてのFTAが使用されます。','N','N') , (1999,'2/12/2019','ja-JP','lblSingleFTAsChosen',N'FTA','N','N') , (1999,'2/12/2019','ja-JP','lblSuppCertPartyAddress',N'会社住所:','N','N') , (1999,'2/12/2019','ja-JP','lblSuppCertPartyContactInfo',N'連絡先情報:','N','N') , (1999,'2/12/2019','ja-JP','lblSuppCertPartyName',N'会社名:','N','N') , (1999,'2/12/2019','ja-JP','lblSuppCertPartyTaxID',N'納税者番号:','N','N') , (1999,'2/12/2019','ja-JP','lblUpdate',N'GCを更新','N','N') , (1999,'2/12/2019','ja-JP','lblUploadLOA1',N'「ファイルを選択」をクリックして、証明書をアップロードします。<br>グリッド内のチェックされた線を含むすべての製品に文書が添付されます。','N','N') , (1999,'2/12/2019','ja-JP','lblValidaitingUser',N'ユーザーの検証','N','N') , (1999,'2/12/2019','ja-JP','lblValidationDate',N'検証日','N','N') , (1999,'2/12/2019','ja-JP','lblVoidConfirm',N'コピー','N','N') , (1999,'2/12/2019','ja-JP','lblVoidPrompt',N'コピー','N','N') , (1999,'2/12/2019','ja-JP','lblVoidReasonCode',N'コピー','N','N') , (1999,'2/12/2019','ja-JP','lblWtUOMHeader',N'重量の単位','N','N') , (1999,'2/12/2019','ja-JP','lblx Supplier ID',N'サプライヤーID','N','N') , (1999,'2/12/2019','ja-JP','lblxBindingRuling',N'バインディングの裁定','N','N') , (1999,'2/12/2019','ja-JP','lblxECNNum',N'ECN番号','N','N') , (1999,'2/12/2019','ja-JP','lblxHsNum',N'Hs番号','N','N') , (1999,'2/12/2019','ja-JP','lblxSupplierID',N'サプライヤーID','N','N') , (1999,'2/12/2019','ja-JP','lbx Add Party State',N'ステータス:','N','N') , (1999,'2/12/2019','ja-JP','lbx COO',N'原産国','N','N') , (1999,'2/12/2019','ja-JP','lbx Country',N'国','N','N') , (1999,'2/12/2019','ja-JP','lbx Detail Status',N'ステータス','N','N') , (1999,'2/12/2019','ja-JP','lbx EC Company State',N'ステータス:','N','N') , (1999,'2/12/2019','ja-JP','lbx Edit Ex State',N'ステータス:','N','N') , (1999,'2/12/2019','ja-JP','lbx Edit Im State',N'ステータス:','N','N') , (1999,'2/12/2019','ja-JP','lbx Edit Pa State',N'ステータス:','N','N') , (1999,'2/12/2019','ja-JP','lbx Edit Pr State',N'ステータス:','N','N') , (1999,'2/12/2019','ja-JP','lbx Help',N'ヘルプ','N','N') , (1999,'2/12/2019','ja-JP','lbx Hs In Progress',N'HSが進行中','N','N') , (1999,'2/12/2019','ja-JP','lbx Mass Status',N'ステータス','N','N') , (1999,'2/12/2019','ja-JP','lbx Mass Update',N'複数製品のアップデート','N','N') , (1999,'2/12/2019','ja-JP','lbx MU Misc',N'生産地','N','N') , (1999,'2/12/2019','ja-JP','lbx MU Net Cost',N'判定基準詳細','N','N') , (1999,'2/12/2019','ja-JP','lbx MU Note',N'注','N','N') , (1999,'2/12/2019','ja-JP','lbx MU Pref Crit',N'判定基準','N','N') , (1999,'2/12/2019','ja-JP','lbx MUCOO',N'原産国','N','N') , (1999,'2/12/2019','ja-JP','lbx Net Cost',N'判定基準詳細','N','N') , (1999,'2/12/2019','ja-JP','lbx One To Many Mapping No Records',N'この国には無効な商品はありません。1対多のマッピングが必要です','N','N') , (1999,'2/12/2019','ja-JP','lbx Party State',N'ステータス','N','N') , (1999,'2/12/2019','ja-JP','lbx Pref Crit',N'判定基準','N','N') , (1999,'2/12/2019','ja-JP','lbx Producer Name',N'生産者名','N','N') , (1999,'2/12/2019','ja-JP','lbx Product',N'型番','N','N') , (1999,'2/12/2019','ja-JP','lbx Product Group',N'製品グループ','N','N') , (1999,'2/12/2019','ja-JP','lbx Qualifying',N'適格','N','N') , (1999,'2/12/2019','ja-JP','lbx Sig Address',N'住所','N','N') , (1999,'2/12/2019','ja-JP','lbx Sig Name',N'署名者','N','N') , (1999,'2/12/2019','ja-JP','lbx Signature Name',N'署名者','N','N') , (1999,'2/12/2019','ja-JP','lbx Solicitations',N'依頼','N','N') , (1999,'2/12/2019','ja-JP','lbx Status',N'ステータス','N','N') , (1999,'2/12/2019','ja-JP','lbx Status I',N'ステータス','N','N') , (1999,'2/12/2019','ja-JP','lbx Status Prompt',N'ステータス','N','N') , (1999,'2/12/2019','ja-JP','lbx Supplier',N'サプライヤーを選択','N','N') , (1999,'2/12/2019','ja-JP','lbx Tax ID',N'Tax ID','N','N') , (1999,'2/12/2019','ja-JP','lbxAcceptDocTitle',N'ドキュメントを受け入れる','N','N') , (1999,'2/12/2019','ja-JP','lbxAccessTypes',N'Docアクセスタイプ','N','N') , (1999,'2/12/2019','ja-JP','lbxAccountant',N'会計士の名前','N','N') , (1999,'2/12/2019','ja-JP','lbxACEApplies',N'ACEが適用されます','N','N') , (1999,'2/12/2019','ja-JP','lbxACEIndicator',N'ACEインジケータ','N','N') , (1999,'2/12/2019','ja-JP','lbxACENotes',N'ACEノート','N','N') , (1999,'2/12/2019','ja-JP','lbxActiveFlag',N'アクティブフラグ','N','N') , (1999,'2/12/2019','ja-JP','lbxActualExcludedTerms',N'除外された検索条件:','N','N') , (1999,'2/12/2019','ja-JP','lbxActualSearchSymbols',N'記号を含む除外された検索条件:','N','N') , (1999,'2/12/2019','ja-JP','lbxActualSearchTerms',N'使用された検索条件:','N','N') , (1999,'2/12/2019','ja-JP','lbxADCaseNum',N'AD症例番号','N','N') , (1999,'2/12/2019','ja-JP','lbxAddCommentTitle',N'コメントを追加する','N','N') , (1999,'2/12/2019','ja-JP','lbxAdditionalCode',N'追加コード','N','N') , (1999,'2/12/2019','ja-JP','lbxAdditionalContactInfo',N'その他の連絡先情報:','N','N') , (1999,'2/12/2019','ja-JP','lbxAdditionalCulture',N'二次文書言語','N','N') , (1999,'2/12/2019','ja-JP','lbxAddlHSUOMConvFactor',N'追加HS UOM変換係数','N','N') , (1999,'2/12/2019','ja-JP','lbxAddNoteTitle',N'ノートを追加する','N','N') , (1999,'2/12/2019','ja-JP','lbxAddNoteTitleMgmt',N'メモを追加','N','N') , (1999,'2/12/2019','ja-JP','lbxAddPartyAdd1',N'住所(1:','N','N') , (1999,'2/12/2019','ja-JP','lbxAddPartyAdd2',N'アドレス2:','N','N') , (1999,'2/12/2019','ja-JP','lbxAddPartyAdd3',N'アドレス3:','N','N') , (1999,'2/12/2019','ja-JP','lbxAddPartyAdd4',N'住所4:','N','N') , (1999,'2/12/2019','ja-JP','lbxAddPartyCity',N'シティ:','N','N') , (1999,'2/12/2019','ja-JP','lbxAddPartyContactName',N'連絡先:','N','N') , (1999,'2/12/2019','ja-JP','lbxAddPartyCountryCode',N'国コード','N','N') , (1999,'2/12/2019','ja-JP','lbxAddPartyEmail',N'連絡先メールアドレス:','N','N') , (1999,'2/12/2019','ja-JP','lbxAddPartyFax',N'お問い合わせ先:','N','N') , (1999,'2/12/2019','ja-JP','lbxAddPartyName',N'名:','N','N') , (1999,'2/12/2019','ja-JP','lbxAddPartyPhone',N'お問い合わせ電話番号:','N','N') , (1999,'2/12/2019','ja-JP','lbxAddPartyPostalCode',N'郵便番号:','N','N') , (1999,'2/12/2019','ja-JP','lbxAddPartyState',N'ステータス:','N','N') , (1999,'2/12/2019','ja-JP','lbxAddPartyTaxID',N'納税者番号:','N','N') , (1999,'2/12/2019','ja-JP','lbxAddPartyTitle',N'パーティーを追加','N','N') , (1999,'2/12/2019','ja-JP','lbxAddPartyType',N'パーティータイプ:','N','N') , (1999,'2/12/2019','ja-JP','lbxAddSystemMessagesAdditionalComments',N'追加コメント:','N','N') , (1999,'2/12/2019','ja-JP','lbxAddSystemMessagesDescription',N'メッセージ:','N','N') , (1999,'2/12/2019','ja-JP','lbxAddSystemMessagesShareDuration',N'共有時間:','N','N') , (1999,'2/12/2019','ja-JP','lbxADDutyRate',N'AD Duty Rate','N','N') , (1999,'2/12/2019','ja-JP','lbxAgencies',N'代理店','N','N') , (1999,'2/12/2019','ja-JP','lbxAgencyDetail',N'代理店の詳細','N','N') , (1999,'2/12/2019','ja-JP','lbxAgreement',N'自由貿易協定','N','N') , (1999,'2/12/2019','ja-JP','lbxAgreementSelectTitle',N'既存のFTAをコピーする','N','N') , (1999,'2/12/2019','ja-JP','lbxAgreementSelectTitleMgmt',N'既存のFTAの追加/コピー','N','N') , (1999,'2/12/2019','ja-JP','lbxAltCurrencyCode',N'代替通貨コード','N','N') , (1999,'2/12/2019','ja-JP','lbxAltValue',N'代替値','N','N') , (1999,'2/12/2019','ja-JP','lbxAltValue2',N'代替値2','N','N') , (1999,'2/12/2019','ja-JP','lbxAMSApplies',N'AMSが適用される','N','N') , (1999,'2/12/2019','ja-JP','lbxAMSIndicator',N'AMS指標','N','N') , (1999,'2/12/2019','ja-JP','lbxAMSNotes',N'AMSノート','N','N') , (1999,'2/12/2019','ja-JP','lbxAnalysisInfo',N'分析:','N','N') , (1999,'2/12/2019','ja-JP','lbxAnalysisNo',N'解析番号','N','N') , (1999,'2/12/2019','ja-JP','lbxAnalysisRuns',N'分析実行回数:','N','N') , (1999,'2/12/2019','ja-JP','lbxAnchorField',N'追加するフィールド','N','N') , (1999,'2/12/2019','ja-JP','lbxAPHApplies',N'APHが適用されます','N','N') , (1999,'2/12/2019','ja-JP','lbxAPHIndicator',N'APH指標','N','N') , (1999,'2/12/2019','ja-JP','lbxAPHNotes',N'APHノート','N','N') , (1999,'2/12/2019','ja-JP','lbxApplicable1',N'適用される税率を入力してください','N','N') , (1999,'2/12/2019','ja-JP','lbxApplicable2',N'適用される税率を入力してください','N','N') , (1999,'2/12/2019','ja-JP','lbxApplicable3',N'適用される税率を入力してください','N','N') , (1999,'2/12/2019','ja-JP','lbxApplicable4',N'適用される税率を入力してください','N','N') , (1999,'2/12/2019','ja-JP','lbxApplicable5',N'適用される税率を入力してください','N','N') , (1999,'2/12/2019','ja-JP','lbxApplicableAntidumping',N'適用される税率を入力してください','N','N') , (1999,'2/12/2019','ja-JP','lbxApplicableDutyMainPref',N'適用される税率を入力してください','N','N') , (1999,'2/12/2019','ja-JP','lbxApplicableDutyMainPref_2',N'適用税率を入力フッター','N','N') , (1999,'2/12/2019','ja-JP','lbxApplicableDutyRate',N'適用される税率を入力してください','N','N') , (1999,'2/12/2019','ja-JP','lbxApply_For',N'ために','N','N') , (1999,'2/12/2019','ja-JP','lbxApprovalDate',N'承認日','N','N') , (1999,'2/12/2019','ja-JP','lbxApprovedBy',N'によって承認された','N','N') , (1999,'2/12/2019','ja-JP','lbxAskTheCommunity',N'コミュニティに尋ねる','N','N') , (1999,'2/12/2019','ja-JP','lbxAssuranceLevel',N'保証レベル','N','N') , (1999,'2/12/2019','ja-JP','lbxATFApplies',N'ATFが適用されます','N','N') , (1999,'2/12/2019','ja-JP','lbxATFIndicator',N'ATFインジケータ','N','N') , (1999,'2/12/2019','ja-JP','lbxATFNotes',N'ATFノート','N','N') , (1999,'2/12/2019','ja-JP','lbxAttachmentdesc',N'*原産地証明書、原産国の書簡、または非FTAの資格外の書類以外の書類を提出する場合:','N','N') , (1999,'2/12/2019','ja-JP','lbxAttachmentName',N'添付ファイル名:','N','N') , (1999,'2/12/2019','ja-JP','lbxAttachmentUploadRWTitle',N'サポート文書をアイテムに添付する','N','N') , (1999,'2/12/2019','ja-JP','lbxAuditDate',N'監査日','N','N') , (1999,'2/12/2019','ja-JP','lbxAuditNotes',N'監査ノート','N','N') , (1999,'2/12/2019','ja-JP','lbxAvailableFTA',N'利用可能なFTA /貿易協定','N','N') , (1999,'2/12/2019','ja-JP','lbxAvailableFTAEmpty',N'FTA情報は入手できません。','N','N') , (1999,'2/12/2019','ja-JP','lbxBillofMaterials',N'部品表:','N','N') , (1999,'2/12/2019','ja-JP','lbxBillOfMaterialValue',N'部品表','N','N') , (1999,'2/12/2019','ja-JP','lbxBindingRulings',N'拘束裁定','N','N') , (1999,'2/12/2019','ja-JP','lbxBindingRulingsEmpty',N'グローバル取引内容には、このHS番号に関連する「拘束裁定」はありません。','N','N') , (1999,'2/12/2019','ja-JP','lbxBISApplies',N'BISが適用されます','N','N') , (1999,'2/12/2019','ja-JP','lbxBISIndicator',N'BISインジケータ','N','N') , (1999,'2/12/2019','ja-JP','lbxBISNotes',N'BISノート','N','N') , (1999,'2/12/2019','ja-JP','lbxBLSApplies',N'BLSが適用されます','N','N') , (1999,'2/12/2019','ja-JP','lbxBLSIndicator',N'BLSインジケータ','N','N') , (1999,'2/12/2019','ja-JP','lbxBLSNotes',N'BLSノート','N','N') , (1999,'2/12/2019','ja-JP','lbxBodyLabel',N'質問や問題について簡単に説明してください:','N','N') , (1999,'2/12/2019','ja-JP','lbxBomIM',N'良い仕上がり','N','N') , (1999,'2/12/2019','ja-JP','lbxBomPC',N'コンポーネント/ RAWマテリアル','N','N') , (1999,'2/12/2019','ja-JP','lbxBottom',N'#NAME?','N','N') , (1999,'2/12/2019','ja-JP','lbxBTAApplies',N'BTAが適用される','N','N') , (1999,'2/12/2019','ja-JP','lbxBTAIndicator',N'BTAインジケータ','N','N') , (1999,'2/12/2019','ja-JP','lbxBTANotes',N'BTAノート','N','N') , (1999,'2/12/2019','ja-JP','lbxBTSApplies',N'BTSが適用されます','N','N') , (1999,'2/12/2019','ja-JP','lbxBTSIndicator',N'BTSインジケータ','N','N') , (1999,'2/12/2019','ja-JP','lbxBTSNotes',N'BTSノート','N','N') , (1999,'2/12/2019','ja-JP','lbxBuildDown',N'ビルドダウン%','N','N') , (1999,'2/12/2019','ja-JP','lbxBuildUp',N'築き上げる %','N','N') , (1999,'2/12/2019','ja-JP','lbxBusinessDivision',N'事業部','N','N') , (1999,'2/12/2019','ja-JP','lbxBusinessUnit',N'事業単位','N','N') , (1999,'2/12/2019','ja-JP','lbxCalendarPeriod',N'カレンダー期間:','N','N') , (1999,'2/12/2019','ja-JP','lbxCAProvince',N'カリフォルニア州','N','N') , (1999,'2/12/2019','ja-JP','lbxCASNum',N'CAS番号','N','N') , (1999,'2/12/2019','ja-JP','lbxCBCApplies',N'CBCが適用されます','N','N') , (1999,'2/12/2019','ja-JP','lbxCBCIndicator',N'CBC指標','N','N') , (1999,'2/12/2019','ja-JP','lbxCBCNotes',N'CBCノート','N','N') , (1999,'2/12/2019','ja-JP','lbxCBPApplies',N'CBPが適用されます','N','N') , (1999,'2/12/2019','ja-JP','lbxCBPIndicator',N'CBP指標','N','N') , (1999,'2/12/2019','ja-JP','lbxCBPNotes',N'CBPノート','N','N') , (1999,'2/12/2019','ja-JP','lbxCc',N'CC:','N','N') , (1999,'2/12/2019','ja-JP','lbxCcMessage',N'このメッセージを他の受信者にカーボンコピーすることができます。(カンマを使用して複数のメールを入力する)','N','N') , (1999,'2/12/2019','ja-JP','lbxCDCApplies',N'CDC適用','N','N') , (1999,'2/12/2019','ja-JP','lbxCDCIndicator',N'CDC指標','N','N') , (1999,'2/12/2019','ja-JP','lbxCDCNotes',N'CDCノート','N','N') , (1999,'2/12/2019','ja-JP','lbxCertAgreement',N'FTA','N','N') , (1999,'2/12/2019','ja-JP','lbxCertEndDate',N'証明書の終了日:','N','N') , (1999,'2/12/2019','ja-JP','lbxCertificate',N'証明書/手紙','N','N') , (1999,'2/12/2019','ja-JP','lbxCertificateEndDate',N'CertEndDate','N','N') , (1999,'2/12/2019','ja-JP','lbxCertificateNumber',N'証明書番号:','N','N') , (1999,'2/12/2019','ja-JP','lbxCertificateNumberValue',N'名','N','N') , (1999,'2/12/2019','ja-JP','lbxCertificatesRWTitle',N'以前に生成された証明書','N','N') , (1999,'2/12/2019','ja-JP','lbxCertificateStartDate',N'CertStartDate','N','N') , (1999,'2/12/2019','ja-JP','lbxCertificatesTitle',N'証明書','N','N') , (1999,'2/12/2019','ja-JP','lbxCertName',N'*証明書名','N','N') , (1999,'2/12/2019','ja-JP','lbxCertStartDate',N'証明書の開始日:','N','N') , (1999,'2/12/2019','ja-JP','lbxCertTypes',N'ドキュメントタイプ','N','N') , (1999,'2/12/2019','ja-JP','lbxCGDApplies',N'CGDが適用されます','N','N') , (1999,'2/12/2019','ja-JP','lbxCGDIndicator',N'CGD指標','N','N') , (1999,'2/12/2019','ja-JP','lbxCGDNotes',N'CGDノート','N','N') , (1999,'2/12/2019','ja-JP','lbxChangeCurrency',N'通貨の変更','N','N') , (1999,'2/12/2019','ja-JP','lbxChapterBxFields',N'選択された章:','N','N') , (1999,'2/12/2019','ja-JP','lbxChapterDescription',N'章/説明:','N','N') , (1999,'2/12/2019','ja-JP','lbxChargeQuotasEmpty',N'充電割当は利用できません。','N','N') , (1999,'2/12/2019','ja-JP','lbxChargeQuotasTab',N'クォータ','N','N') , (1999,'2/12/2019','ja-JP','lbxChooseParty',N'利用可能な会社','N','N') , (1999,'2/12/2019','ja-JP','lbxCollapsiblePanel_Search',N'(検索フィールドの表示...)','N','N') , (1999,'2/12/2019','ja-JP','lbxCollapsiblePanel_SearchHeader',N'検索フィールドを非表示...','N','N') , (1999,'2/12/2019','ja-JP','lbxCollapsiblePanelMessage_pnlHSNumberFields',N'(ショー...)','N','N') , (1999,'2/12/2019','ja-JP','lbxCollapsiblePanelMessage_pnlSearch',N'(検索フィールドを非表示にする...)','N','N') , (1999,'2/12/2019','ja-JP','lbxCollapsiblePanelMessage_pnlValidation',N'(検証の詳細を表示する...)','N','N') , (1999,'2/12/2019','ja-JP','lbxCollapsiblePanelMessageDisplay',N'表示フィールドを非表示にする','N','N') , (1999,'2/12/2019','ja-JP','lbxCollapsiblePanelMessageReport',N'レポートフィールドを表示する','N','N') , (1999,'2/12/2019','ja-JP','lbxCollapsiblePanelMessageSearch',N'検索フィールドを非表示','N','N') , (1999,'2/12/2019','ja-JP','lbxComments',N'コメント','N','N') , (1999,'2/12/2019','ja-JP','lbxCommentsTitle',N'コメント','N','N') , (1999,'2/12/2019','ja-JP','lbxCommercialValue',N'商業価値','N','N') , (1999,'2/12/2019','ja-JP','lbxCommercialValueCurrencyCode',N'商用価値通貨コード','N','N') , (1999,'2/12/2019','ja-JP','lbxCommunity',N'コミュニティ/国','N','N') , (1999,'2/12/2019','ja-JP','lbxCompany',N'会社','N','N') , (1999,'2/12/2019','ja-JP','lbxCompanyAddress1',N'会社の住所1を使用します。','N','N') , (1999,'2/12/2019','ja-JP','lbxCompanyAddress2',N'会社住所2を使用する','N','N') , (1999,'2/12/2019','ja-JP','lbxCompanyAddress3',N'会社の住所3を使用する','N','N') , (1999,'2/12/2019','ja-JP','lbxCompanyAddress4',N'会社の住所4を使用する','N','N') , (1999,'2/12/2019','ja-JP','lbxCompanyCity',N'企業都市を使用する','N','N') , (1999,'2/12/2019','ja-JP','lbxCompanyCountryCode',N'会社の国コードを使用する','N','N') , (1999,'2/12/2019','ja-JP','lbxCompanyName',N'会社名','N','N') , (1999,'2/12/2019','ja-JP','lbxCompanyPostalCode',N'会社の郵便番号を使用する','N','N') , (1999,'2/12/2019','ja-JP','lbxCompanyState',N'会社の状態を使用する','N','N') , (1999,'2/12/2019','ja-JP','lbxCompanyTaxID',N'会社税IDを使用します。','N','N') , (1999,'2/12/2019','ja-JP','lbxConfirmHSChangeHeader',N'HS番号の変更を選択した製品に適用して、このリストから削除してもよろしいですか?','N','N') , (1999,'2/12/2019','ja-JP','lbxContactsInformation',N'連絡先情報','N','N') , (1999,'2/12/2019','ja-JP','lbxContentAttributesEmpty',N'コンテンツ属性は利用できません。','N','N') , (1999,'2/12/2019','ja-JP','lbxContentAvailability',N'コンテンツの可用性','N','N') , (1999,'2/12/2019','ja-JP','lbxContentAvailabilityEmpty',N'内容入手可能な情報がありません。','N','N') , (1999,'2/12/2019','ja-JP','lbxContVerify',N'(検証用)','N','N') , (1999,'2/12/2019','ja-JP','lbxCOO',N'原産国','N','N') , (1999,'2/12/2019','ja-JP','lbxCopyCompany',N'会社','N','N') , (1999,'2/12/2019','ja-JP','lbxCopyDates',N'日付','N','N') , (1999,'2/12/2019','ja-JP','lbxCopyDestination',N'行き先契約','N','N') , (1999,'2/12/2019','ja-JP','lbxCopyFTARWTitle',N'FTAを選択','N','N') , (1999,'2/12/2019','ja-JP','lbxCopyItemsFrom',N'アイテムのコピー先:','N','N') , (1999,'2/12/2019','ja-JP','lbxCopyName',N'名','N','N') , (1999,'2/12/2019','ja-JP','lbxCopyRequestRWTitle',N'コピーリクエスト','N','N') , (1999,'2/12/2019','ja-JP','lbxCopyRWTitle',N'コピー','N','N') , (1999,'2/12/2019','ja-JP','lbxCopySource',N'ソース契約','N','N') , (1999,'2/12/2019','ja-JP','lbxCopyType',N'リクエストタイプ','N','N') , (1999,'2/12/2019','ja-JP','lbxCountry',N'国','N','N') , (1999,'2/12/2019','ja-JP','lbxCountry1',N'XXの国固有のHSを選択してください','N','N') , (1999,'2/12/2019','ja-JP','lbxCountry10',N'XXの国固有のHSを選択してください','N','N') , (1999,'2/12/2019','ja-JP','lbxCountry2',N'XXの国固有のHSを選択してください','N','N') , (1999,'2/12/2019','ja-JP','lbxCountry3',N'XXの国固有のHSを選択してください','N','N') , (1999,'2/12/2019','ja-JP','lbxCountry4',N'XXの国固有のHSを選択してください','N','N') , (1999,'2/12/2019','ja-JP','lbxCountry5',N'XXの国固有のHSを選択してください','N','N') , (1999,'2/12/2019','ja-JP','lbxCountry6',N'XXの国固有のHSを選択してください','N','N') , (1999,'2/12/2019','ja-JP','lbxCountry7',N'XXの国固有のHSを選択してください','N','N') , (1999,'2/12/2019','ja-JP','lbxCountry8',N'XXの国固有のHSを選択してください','N','N') , (1999,'2/12/2019','ja-JP','lbxCountry9',N'XXの国固有のHSを選択してください','N','N') , (1999,'2/12/2019','ja-JP','lbxCountryBxFields',N'選択された国:','N','N') , (1999,'2/12/2019','ja-JP','lbxCountryCustomsDocuments',N'税関書類','N','N') , (1999,'2/12/2019','ja-JP','lbxCountryECNNumberDescription',N'<br />米国のECN-HSの相関関係は、相関関係を公表した政府に送信された実際の出荷データに由来しています。 これらの相関は実際のデータフィールドを反映しており、分類の示唆ではありません。','N','N') , (1999,'2/12/2019','ja-JP','lbxCountryFilter',N'国:','N','N') , (1999,'2/12/2019','ja-JP','lbxCountryFinancialDocuments',N'財務書類','N','N') , (1999,'2/12/2019','ja-JP','lbxCountryGroupDetailEmpty',N'国別グループの詳細はありません。','N','N') , (1999,'2/12/2019','ja-JP','lbxCountryLevelControls',N'国レベルのコントロール','N','N') , (1999,'2/12/2019','ja-JP','lbxCountryLevelControlsDescription',N'次の管理は、政府によって特定のHS番号に分類されていません。 ユーザーの参照によって提供されます。 ユーザーは、このデータをフィルタリングして、製品に適用される可能性のあるコントロールを識別することができます。','N','N') , (1999,'2/12/2019','ja-JP','lbxCountryLevelControlsEmpty',N'グローバル貿易内容には、このHS番号に関連する「国レベル規制」はありません。','N','N') , (1999,'2/12/2019','ja-JP','lbxCountryLevelNotes',N'国レベルノート','N','N') , (1999,'2/12/2019','ja-JP','lbxCountryList',N'国リスト','N','N') , (1999,'2/12/2019','ja-JP','lbxCountryOfDestination',N'行き先国','N','N') , (1999,'2/12/2019','ja-JP','lbxCountryOfDestinationTitleFields',N'宛先国を選択','N','N') , (1999,'2/12/2019','ja-JP','lbxCountryOfExport',N'輸出国','N','N') , (1999,'2/12/2019','ja-JP','lbxCountryOfImport',N'輸入国','N','N') , (1999,'2/12/2019','ja-JP','lbxCountryOfOrigin',N'原産国','N','N') , (1999,'2/12/2019','ja-JP','lbxCountryOfOriginDestination',N'原産国/目的地フィルタ','N','N') , (1999,'2/12/2019','ja-JP','lbxCountryOfOriginTitleFields',N'原産地を選択','N','N') , (1999,'2/12/2019','ja-JP','lbxCountrySelectRWTitle',N'国','N','N') , (1999,'2/12/2019','ja-JP','lbxCountrySelectTitle',N'国','N','N') , (1999,'2/12/2019','ja-JP','lbxCountrySpecificCharges',N'国別料金','N','N') , (1999,'2/12/2019','ja-JP','lbxCountrySpecificChargesDescription',N'以下の料金は政府によって特定のHS番号に分類されていません。 ユーザーの参照によって提供されます。 ユーザーはこのデータをフィルタリングして、商品に適用される可能性のある料金を特定することができます。','N','N') , (1999,'2/12/2019','ja-JP','lbxCountrySpecificChargesEmpty',N'グローバル貿易内容には、このHS番号に関連する「国別料金」はありません。','N','N') , (1999,'2/12/2019','ja-JP','lbxCountryThreat',N'国の脅威','N','N') , (1999,'2/12/2019','ja-JP','lbxCountryThreatEmpty',N'国の脅威情報は入手できません。','N','N') , (1999,'2/12/2019','ja-JP','lbxCountryTransportationDocuments',N'運送書類','N','N') , (1999,'2/12/2019','ja-JP','lbxCPRStep1',N'ステップ1:','N','N') , (1999,'2/12/2019','ja-JP','lbxCPRStep2',N'ステップ2:','N','N') , (1999,'2/12/2019','ja-JP','lbxCPRStep3',N'ステップ3:','N','N') , (1999,'2/12/2019','ja-JP','lbxCPRStep4',N'ステップ4:','N','N') , (1999,'2/12/2019','ja-JP','lbxCPRStep5',N'ステップ5:','N','N') , (1999,'2/12/2019','ja-JP','lbxCPRStep6',N'ステップ6:','N','N') , (1999,'2/12/2019','ja-JP','lbxCPSIndicator',N'CPS指標','N','N') , (1999,'2/12/2019','ja-JP','lbxCPSNotes',N'CPSノート','N','N') , (1999,'2/12/2019','ja-JP','lbxCreateAccountant',N'会計士の名前','N','N') , (1999,'2/12/2019','ja-JP','lbxCreateCompanyName',N'会社名','N','N') , (1999,'2/12/2019','ja-JP','lbxCreateCurrency',N'通貨','N','N') , (1999,'2/12/2019','ja-JP','lbxCreatedBy',N'によって作成された','N','N') , (1999,'2/12/2019','ja-JP','lbxCreatedDate',N'作成日','N','N') , (1999,'2/12/2019','ja-JP','lbxCreateExportCountry',N'輸出国','N','N') , (1999,'2/12/2019','ja-JP','lbxCreateManagingDirector',N'マネージングディレクターの名前','N','N') , (1999,'2/12/2019','ja-JP','lbxCreateOriginCriterion',N'起源基準','N','N') , (1999,'2/12/2019','ja-JP','lbxCreatePhoneNumber',N'発電機の電話番号','N','N') , (1999,'2/12/2019','ja-JP','lbxCreateReason',N'理由','N','N') , (1999,'2/12/2019','ja-JP','lbxCreateUENNo',N'エンティティ識別子/ UEN番号','N','N') , (1999,'2/12/2019','ja-JP','lbxCreateUnitCount',N'ユニット数','N','N') , (1999,'2/12/2019','ja-JP','lbxCSA',N'現在の検索分析','N','N') , (1999,'2/12/2019','ja-JP','lbxCSC',N'現在の検索条件','N','N') , (1999,'2/12/2019','ja-JP','lbxCulture',N'現在の言語:','N','N') , (1999,'2/12/2019','ja-JP','lbxCultureCode',N'説明/コントロール/メモ文化','N','N') , (1999,'2/12/2019','ja-JP','lbxCultureCode1',N'カルチャーコード:','N','N') , (1999,'2/12/2019','ja-JP','lbxCultureCodes',N'説明文化','N','N') , (1999,'2/12/2019','ja-JP','lbxCumulation',N'適用される累積','N','N') , (1999,'2/12/2019','ja-JP','lbxCumulationContent',N'累積コンテンツ','N','N') , (1999,'2/12/2019','ja-JP','lbxCumulationRWTitle',N'国','N','N') , (1999,'2/12/2019','ja-JP','lbxCurrency',N'通貨','N','N') , (1999,'2/12/2019','ja-JP','lbxCurrencyCode',N'通貨コード','N','N') , (1999,'2/12/2019','ja-JP','lbxCurrencyEmpty',N'通貨情報は利用できません。','N','N') , (1999,'2/12/2019','ja-JP','lbxCurrentDateDataDisplay',N'日付は以下を使用して表示されます。','N','N') , (1999,'2/12/2019','ja-JP','lbxCurrentProduct',N'選択された製品','N','N') , (1999,'2/12/2019','ja-JP','lbxCurrentRequestName',N'現在のリクエスト','N','N') , (1999,'2/12/2019','ja-JP','lbxCurrentSearch',N'現在の検索','N','N') , (1999,'2/12/2019','ja-JP','lbxCustomerGridTitle',N'顧客','N','N') , (1999,'2/12/2019','ja-JP','lbxCustoms Description',N'税関の説明','N','N') , (1999,'2/12/2019','ja-JP','lbxCVCaseNum',N'CVケース番号','N','N') , (1999,'2/12/2019','ja-JP','lbxCVDutyRate',N'CVデューティレート','N','N') , (1999,'2/12/2019','ja-JP','lbxDataSource',N'情報元','N','N') , (1999,'2/12/2019','ja-JP','lbxDateRange',N'期間','N','N') , (1999,'2/12/2019','ja-JP','lbxDateSent',N'送信日:','N','N') , (1999,'2/12/2019','ja-JP','lbxDCMApplies',N'DCMが適用されます','N','N') , (1999,'2/12/2019','ja-JP','lbxDCMIndicator',N'DCMインジケータ','N','N') , (1999,'2/12/2019','ja-JP','lbxDCMNotes',N'DCMノート','N','N') , (1999,'2/12/2019','ja-JP','lbxDEAApplies',N'DEAが適用されます','N','N') , (1999,'2/12/2019','ja-JP','lbxDEAIndicator',N'DEA指標','N','N') , (1999,'2/12/2019','ja-JP','lbxDEANotes',N'DEAノート','N','N') , (1999,'2/12/2019','ja-JP','lbxDeclarableElements',N'宣言可能な要素','N','N') , (1999,'2/12/2019','ja-JP','lbxDEEApplies',N'DEEが適用されます','N','N') , (1999,'2/12/2019','ja-JP','lbxDEEIndicator',N'DEEインジケータ','N','N') , (1999,'2/12/2019','ja-JP','lbxDEENotes',N'DEEノート','N','N') , (1999,'2/12/2019','ja-JP','lbxDefaultAddlHeader',N'追加情報','N','N') , (1999,'2/12/2019','ja-JP','lbxDefaultTipsHeader',N'ヒント','N','N') , (1999,'2/12/2019','ja-JP','lbxDeMinimis',N'デミニミス','N','N') , (1999,'2/12/2019','ja-JP','lbxDeMinimisAmt',N'DeMinimis額','N','N') , (1999,'2/12/2019','ja-JP','lbxDescriptionCulture',N'説明文化','N','N') , (1999,'2/12/2019','ja-JP','lbxDescriptions',N'説明','N','N') , (1999,'2/12/2019','ja-JP','lbxDescriptionSearchType',N'説明検索タイプ','N','N') , (1999,'2/12/2019','ja-JP','lbxDestinationCountry',N'目的地の国:','N','N') , (1999,'2/12/2019','ja-JP','lbxDetailAssignment',N'に割り当てられた','N','N') , (1999,'2/12/2019','ja-JP','lbxDetailCompany',N'会社','N','N') , (1999,'2/12/2019','ja-JP','lbxDetailControlsDetail',N'コントロールの詳細','N','N') , (1999,'2/12/2019','ja-JP','lbxDetailControlsDetailEmpty',N'コントロールは利用できません。','N','N') , (1999,'2/12/2019','ja-JP','lbxDetailDates',N'日付','N','N') , (1999,'2/12/2019','ja-JP','lbxDetailsDescription',N'<br />米国のECN-HSの相関関係は、相関関係を公表した政府に送信された実際の出荷データに由来しています。 これらの相関は実際のデータフィールドを反映しており、分類の示唆ではありません。','N','N') , (1999,'2/12/2019','ja-JP','lbxDetailStatus',N'ステータス','N','N') , (1999,'2/12/2019','ja-JP','lbxDirectLabour',N'直接労働','N','N') , (1999,'2/12/2019','ja-JP','lbxDirectMappingNoRecords',N'この国には、グローバルHS番号で指定された小見出しの下に、通関申告可能なHS番号が1つしかない製品はありません','N','N') , (1999,'2/12/2019','ja-JP','lbxDirectOverhead',N'ダイレクトオーバヘッド','N','N') , (1999,'2/12/2019','ja-JP','lbxDismiss',N'選択を解除する','N','N') , (1999,'2/12/2019','ja-JP','lbxDisplayColumns',N'列を表示する','N','N') , (1999,'2/12/2019','ja-JP','lbxDisplayName',N'表示名','N','N') , (1999,'2/12/2019','ja-JP','lbxDissociateSource',N'契約','N','N') , (1999,'2/12/2019','ja-JP','lbxDocAccessType',N'ドキュメントアクセスタイプ','N','N') , (1999,'2/12/2019','ja-JP','lbxDocGridTitle',N'ドキュメント','N','N') , (1999,'2/12/2019','ja-JP','lbxDocRWTitle',N'ドキュメントリスト','N','N') , (1999,'2/12/2019','ja-JP','lbxDocType',N'ドキュメントタイプ','N','N') , (1999,'2/12/2019','ja-JP','lbxDocumentContacts',N'連絡先情報','N','N') , (1999,'2/12/2019','ja-JP','lbxDocumentDetail',N'ドキュメントの詳細','N','N') , (1999,'2/12/2019','ja-JP','lbxDocumentDetailCulture',N'ドキュメントの文化','N','N') , (1999,'2/12/2019','ja-JP','lbxDocumentDetailTab',N'ドキュメントの詳細','N','N') , (1999,'2/12/2019','ja-JP','lbxDocumentNotes',N'ノート','N','N') , (1999,'2/12/2019','ja-JP','lbxDocumentSamples',N'サンプル','N','N') , (1999,'2/12/2019','ja-JP','lbxDocumentsMessage',N'すべての書類が必要なわけではありませんが、製品の説明に基づいてのみ必要な書類もあります。','N','N') , (1999,'2/12/2019','ja-JP','lbxDocumentType',N'ドキュメントタイプ','N','N') , (1999,'2/12/2019','ja-JP','lbxDTCApplies',N'DTCが適用されます','N','N') , (1999,'2/12/2019','ja-JP','lbxDTCIndicator',N'DTCインジケータ','N','N') , (1999,'2/12/2019','ja-JP','lbxDTCNotes',N'DTCノート','N','N') , (1999,'2/12/2019','ja-JP','lbxDueDate',N'期限:','N','N') , (1999,'2/12/2019','ja-JP','lbxDuplicate',N'この重複ルールとは何ですか?','N','N') , (1999,'2/12/2019','ja-JP','lbxDuplicateCancel',N'キャンセル','N','N') , (1999,'2/12/2019','ja-JP','lbxDuplicateConfirm',N'重複','N','N') , (1999,'2/12/2019','ja-JP','lbxDutyChargeDetailEmpty',N'デューティ/チャージの詳細はありません。','N','N') , (1999,'2/12/2019','ja-JP','lbxECCompanyAddress1',N'住所(1:','N','N') , (1999,'2/12/2019','ja-JP','lbxECCompanyAddress2',N'アドレス2:','N','N') , (1999,'2/12/2019','ja-JP','lbxECCompanyAddress3',N'アドレス3:','N','N') , (1999,'2/12/2019','ja-JP','lbxECCompanyAddress4',N'住所4:','N','N') , (1999,'2/12/2019','ja-JP','lbxECCompanyCity',N'シティ:','N','N') , (1999,'2/12/2019','ja-JP','lbxECCompanyCountry',N'国コード:','N','N') , (1999,'2/12/2019','ja-JP','lbxECCompanyName',N'名:','N','N') , (1999,'2/12/2019','ja-JP','lbxECCompanyPostalCode',N'郵便番号:','N','N') , (1999,'2/12/2019','ja-JP','lbxECCompanyState',N'ステータス:','N','N') , (1999,'2/12/2019','ja-JP','lbxECContactEmail',N'連絡先メールアドレス:','N','N') , (1999,'2/12/2019','ja-JP','lbxECContactFax',N'お問い合わせ先:','N','N') , (1999,'2/12/2019','ja-JP','lbxECContactName',N'連絡先:','N','N') , (1999,'2/12/2019','ja-JP','lbxECContactPhone',N'お問い合わせ電話番号:','N','N') , (1999,'2/12/2019','ja-JP','lbxECContactTaxID',N'納税者番号:','N','N') , (1999,'2/12/2019','ja-JP','lbxECContactTitle',N'連絡先タイトル:','N','N') , (1999,'2/12/2019','ja-JP','lbxECN',N'ECN番号/説明','N','N') , (1999,'2/12/2019','ja-JP','lbxECNFilter',N'ECN番号フィルタ','N','N') , (1999,'2/12/2019','ja-JP','lbxEditExAdd1',N'住所(1:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditExAdd2',N'アドレス2:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditExAdd3',N'アドレス3:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditExAdd4',N'住所4:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditExCity',N'シティ:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditExContactName',N'連絡先:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditExCountryCode',N'国コード','N','N') , (1999,'2/12/2019','ja-JP','lbxEditExEmail',N'連絡先メールアドレス:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditExFax',N'お問い合わせ先:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditExName',N'名:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditExPhone',N'お問い合わせ電話番号:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditExPostalCode',N'郵便番号:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditExState',N'ステータス:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditExTaxID',N'納税者番号:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditExTitle',N'連絡先タイトル:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditImAdd1',N'住所(1:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditImAdd2',N'アドレス2:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditImAdd3',N'アドレス3:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditImAdd4',N'住所4:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditImCity',N'シティ:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditImContactName',N'連絡先:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditImCountryCode',N'国コード:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditImEmail',N'連絡先メールアドレス:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditImFax',N'お問い合わせ先:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditImName',N'名:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditImPhone',N'お問い合わせ電話番号:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditImPostalCode',N'郵便番号:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditImState',N'ステータス:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditImTaxID',N'納税者番号:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditImTitle',N'連絡先タイトル:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditNotes_Culture',N'ノート:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditPaAdd1',N'住所(1:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditPaAdd2',N'アドレス2:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditPaAdd3',N'アドレス3:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditPaAdd4',N'住所4:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditPaCity',N'シティ:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditPaContactName',N'連絡先:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditPaCountryCode',N'国コード:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditPaEmail',N'連絡先メールアドレス:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditPaFax',N'お問い合わせ先:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditPaName',N'名:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditPaPhone',N'お問い合わせ電話番号:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditPaPostalCode',N'郵便番号:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditPartiesRWTitle',N'パーティ情報の編集','N','N') , (1999,'2/12/2019','ja-JP','lbxEditPaState',N'ステータス:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditPaTaxID',N'納税者番号:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditPaTitle',N'連絡先タイトル:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditPrAdd1',N'住所(1:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditPrAdd2',N'アドレス2:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditPrAdd3',N'アドレス3:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditPrAdd4',N'住所4:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditPrCity',N'シティ:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditPrContactName',N'連絡先:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditPrCountryCode',N'国コード:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditPrEmail',N'連絡先メールアドレス:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditPrFax',N'お問い合わせ先:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditPrName',N'名:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditPrPhone',N'お問い合わせ電話番号:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditPrPostalCode',N'郵便番号:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditPrState',N'ステータス:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditPrTaxID',N'納税者番号:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditPrTitle',N'連絡先タイトル:','N','N') , (1999,'2/12/2019','ja-JP','lbxEditRecordTitle',N'製品レコードの編集','N','N') , (1999,'2/12/2019','ja-JP','lbxEffectiveDate',N'発効日','N','N') , (1999,'2/12/2019','ja-JP','lbxEffectivityDate',N'発効日','N','N') , (1999,'2/12/2019','ja-JP','lbxEIAApplies',N'EIAが適用されます','N','N') , (1999,'2/12/2019','ja-JP','lbxEIAIndicator',N'EIAインジケータ','N','N') , (1999,'2/12/2019','ja-JP','lbxEIANotes',N'EIAノート','N','N') , (1999,'2/12/2019','ja-JP','lbxEligibilityStatus',N'FTA資格ステータス:','N','N') , (1999,'2/12/2019','ja-JP','lbxEligibilityStatusValue',N'ルールステータス','N','N') , (1999,'2/12/2019','ja-JP','lbxEmail',N'Eメール:','N','N') , (1999,'2/12/2019','ja-JP','lbxEmailCC',N'CC','N','N') , (1999,'2/12/2019','ja-JP','lbxEmailSubject',N'件名','N','N') , (1999,'2/12/2019','ja-JP','lbxEmailSupport',N'メールサポート','N','N') , (1999,'2/12/2019','ja-JP','lbxEmailTo',N'に','N','N') , (1999,'2/12/2019','ja-JP','lbxEmailToSupport',N'問題を報告します','N','N') , (1999,'2/12/2019','ja-JP','lbxEmptyECNText',N'入力してください/表示する正確なECN番号を選択してください','N','N') , (1999,'2/12/2019','ja-JP','lbxEmptyHSNumberText',N'入力してください/表示する正確なHS番号を選択してください','N','N') , (1999,'2/12/2019','ja-JP','lbxEndDate',N'証明書の終了日:','N','N') , (1999,'2/12/2019','ja-JP','lbxEPAApplies',N'EPA適用','N','N') , (1999,'2/12/2019','ja-JP','lbxEPAIndicator',N'EPA指標','N','N') , (1999,'2/12/2019','ja-JP','lbxEPANotes',N'EPAノート','N','N') , (1999,'2/12/2019','ja-JP','lbxESig',N'電子署名を含める','N','N') , (1999,'2/12/2019','ja-JP','lbxETAApplies',N'ETAが適用されます','N','N') , (1999,'2/12/2019','ja-JP','lbxETAIndicator',N'ETAインジケータ','N','N') , (1999,'2/12/2019','ja-JP','lbxETANotes',N'ETAノート','N','N') , (1999,'2/12/2019','ja-JP','lbxExFactoryCost',N'ExFactoryコスト','N','N') , (1999,'2/12/2019','ja-JP','lbxExFactoryPrice',N'ExFactory Price','N','N') , (1999,'2/12/2019','ja-JP','lbxExpirationDate',N'有効期限','N','N') , (1999,'2/12/2019','ja-JP','lbxExportCharges',N'輸出手数料','N','N') , (1999,'2/12/2019','ja-JP','lbxExportChargesEmpty',N'グローバル貿易内容には、このHS番号に関連する「輸出手数料」はありません。','N','N') , (1999,'2/12/2019','ja-JP','lbxExportControl',N'輸出管理リスト','N','N') , (1999,'2/12/2019','ja-JP','lbxExportControlEmpty',N'輸出規制リスト情報は利用できません。','N','N') , (1999,'2/12/2019','ja-JP','lbxExportControls',N'輸出規制','N','N') , (1999,'2/12/2019','ja-JP','lbxExportControlsEmpty',N'グローバル・トレード・コンテンツには、このHS番号に関連する「輸出規制」はありません。','N','N') , (1999,'2/12/2019','ja-JP','lbxExportCountry',N'輸出国','N','N') , (1999,'2/12/2019','ja-JP','lbxExportCountryCustomsDocuments',N'輸出通関書類','N','N') , (1999,'2/12/2019','ja-JP','lbxExportCountryFinancialDocuments',N'財務諸表のエクスポート','N','N') , (1999,'2/12/2019','ja-JP','lbxExportCountryTransportationDocuments',N'輸出輸送書類','N','N') , (1999,'2/12/2019','ja-JP','lbxExportDetailControlsEmpty',N'グローバル・トレード・コンテンツには、このHS番号に関連付けられた他の言語の「輸出規制説明書」はありません。','N','N') , (1999,'2/12/2019','ja-JP','lbxExporter',N'輸出業者','N','N') , (1999,'2/12/2019','ja-JP','lbxExporterAddress',N'会社住所:','N','N') , (1999,'2/12/2019','ja-JP','lbxExporterAddress1',N'*エクスポーターアドレス1','N','N') , (1999,'2/12/2019','ja-JP','lbxExporterAddress2',N'輸出業者住所2','N','N') , (1999,'2/12/2019','ja-JP','lbxExporterContactInfo',N'連絡先情報:','N','N') , (1999,'2/12/2019','ja-JP','lbxExporterInfoLabel',N'輸出業者情報','N','N') , (1999,'2/12/2019','ja-JP','lbxExporterName',N'*輸出者名','N','N') , (1999,'2/12/2019','ja-JP','lbxExporterTaxId',N'*輸出者税ID','N','N') , (1999,'2/12/2019','ja-JP','lbxExportTariffNum',N'輸出関税番号','N','N') , (1999,'2/12/2019','ja-JP','lbxExportValuesByCountry',N'国別輸出量','N','N') , (1999,'2/12/2019','ja-JP','lbxExternalNote',N'外部メモ','N','N') , (1999,'2/12/2019','ja-JP','lbxFAAApplies',N'FAAが適用されます','N','N') , (1999,'2/12/2019','ja-JP','lbxFAAIndicator',N'FAA指標','N','N') , (1999,'2/12/2019','ja-JP','lbxFAANotes',N'FAAノート','N','N') , (1999,'2/12/2019','ja-JP','lbxFacilityOwnershipTitle',N'施設の所有権','N','N') , (1999,'2/12/2019','ja-JP','lbxFASApplies',N'FASが適用されます','N','N') , (1999,'2/12/2019','ja-JP','lbxFASIndicator',N'FASインジケータ','N','N') , (1999,'2/12/2019','ja-JP','lbxFASNotes',N'FASノート','N','N') , (1999,'2/12/2019','ja-JP','lbxFax',N'連絡先ファックスを使用する','N','N') , (1999,'2/12/2019','ja-JP','lbxFCCApplies',N'FCCが適用されます','N','N') , (1999,'2/12/2019','ja-JP','lbxFCCIndicator',N'FCCインジケータ','N','N') , (1999,'2/12/2019','ja-JP','lbxFCCNotes',N'FCCノート','N','N') , (1999,'2/12/2019','ja-JP','lbxFCNApplies',N'FCNが適用されます','N','N') , (1999,'2/12/2019','ja-JP','lbxFCNIndicator',N'FCNインジケータ','N','N') , (1999,'2/12/2019','ja-JP','lbxFCNNotes',N'FCNAノート','N','N') , (1999,'2/12/2019','ja-JP','lbxFDAApplies',N'FDA適用','N','N') , (1999,'2/12/2019','ja-JP','lbxFDAIndicator',N'FDA指標','N','N') , (1999,'2/12/2019','ja-JP','lbxFDANotes',N'FDAノート','N','N') , (1999,'2/12/2019','ja-JP','lbxFGPartDesc',N'完成品良い部品の説明:','N','N') , (1999,'2/12/2019','ja-JP','lbxFGPartDescValue',N'説明','N','N') , (1999,'2/12/2019','ja-JP','lbxFGPartNumber',N'完成した良品番号:','N','N') , (1999,'2/12/2019','ja-JP','lbxFGPartNumberValue',N'ProductNum','N','N') , (1999,'2/12/2019','ja-JP','lbxFHAApplies',N'FHAが適用されます','N','N') , (1999,'2/12/2019','ja-JP','lbxFHAIndicator',N'FHAインジケータ','N','N') , (1999,'2/12/2019','ja-JP','lbxFHANotes',N'FHAノート','N','N') , (1999,'2/12/2019','ja-JP','lbxField',N'フィールド','N','N') , (1999,'2/12/2019','ja-JP','lbxFieldToEdit',N'フィールドを変更する','N','N') , (1999,'2/12/2019','ja-JP','lbxFileSize',N'最大合計ファイルサイズ5MB','N','N') , (1999,'2/12/2019','ja-JP','lbxFilterBOMDDL',N'部品表検索:','N','N') , (1999,'2/12/2019','ja-JP','lbxFilterField',N'BOMフィルタ基準','N','N') , (1999,'2/12/2019','ja-JP','lbxFilterResultDescription',N'フィルタ結果の説明','N','N') , (1999,'2/12/2019','ja-JP','lbxFilterResultDescriptionOptions',N'検索結果のフィルタリング','N','N') , (1999,'2/12/2019','ja-JP','lbxFilterValue',N'フィルタ値','N','N') , (1999,'2/12/2019','ja-JP','lbxFlashpoint',N'引火点','N','N') , (1999,'2/12/2019','ja-JP','lbxFMCApplies',N'FMCが適用されます','N','N') , (1999,'2/12/2019','ja-JP','lbxFMCIndicator',N'FMCインジケータ','N','N') , (1999,'2/12/2019','ja-JP','lbxFMCNotes',N'FMCノート','N','N') , (1999,'2/12/2019','ja-JP','lbxFMSApplies',N'FMSが適用されます','N','N') , (1999,'2/12/2019','ja-JP','lbxFMSIndicator',N'FMSインジケータ','N','N') , (1999,'2/12/2019','ja-JP','lbxFMSNotes',N'FMSノート','N','N') , (1999,'2/12/2019','ja-JP','lbxFor',N'ために','N','N') , (1999,'2/12/2019','ja-JP','lbxFormType',N'フォームタイプ','N','N') , (1999,'2/12/2019','ja-JP','lbxFreeTradeAgreement',N'自由貿易協定:','N','N') , (1999,'2/12/2019','ja-JP','lbxFrom',N'から','N','N') , (1999,'2/12/2019','ja-JP','lbxFromDate',N'日付から(mm / dd / yyyy)','N','N') , (1999,'2/12/2019','ja-JP','lbxFSIApplies',N'FSIが適用されます','N','N') , (1999,'2/12/2019','ja-JP','lbxFSIIndicator',N'FSI指標','N','N') , (1999,'2/12/2019','ja-JP','lbxFSINotes',N'FSIノート','N','N') , (1999,'2/12/2019','ja-JP','lbxFTA',N'FTA','N','N') , (1999,'2/12/2019','ja-JP','lbxFTAPageType',N'ページの種類','N','N') , (1999,'2/12/2019','ja-JP','lbxFTARecordType',N'レコードタイプ','N','N') , (1999,'2/12/2019','ja-JP','lbxFTASMDateError',N'終了日は開始日の後でなければなりません','N','N') , (1999,'2/12/2019','ja-JP','lbxFTZActiveFlag',N'FTZアクティブフラグ','N','N') , (1999,'2/12/2019','ja-JP','lbxFTZApplies',N'FTZが適用されます','N','N') , (1999,'2/12/2019','ja-JP','lbxFTZIndicator',N'FTZ指標','N','N') , (1999,'2/12/2019','ja-JP','lbxFTZNotes',N'FTZノート','N','N') , (1999,'2/12/2019','ja-JP','lbxFutureDateMessage',N'関税表の動的な性質のため、以下に示す将来の関税表情報は参照ツールとしてのみ提供されます。','N','N') , (1999,'2/12/2019','ja-JP','lbxFutureDateWCOMessage',N'関税表の動的な性質のため、以下に示す将来の関税表情報は参照ツールとしてのみ提供されます。','N','N') , (1999,'2/12/2019','ja-JP','lbxFutureRatesEmpty',N'未来の料金は利用できません。','N','N') , (1999,'2/12/2019','ja-JP','lbxFutureRatesTab',N'将来の料金','N','N') , (1999,'2/12/2019','ja-JP','lbxFWSApplies',N'FWSが適用されます','N','N') , (1999,'2/12/2019','ja-JP','lbxFWSIndicator',N'FWSインジケータ','N','N') , (1999,'2/12/2019','ja-JP','lbxFWSNotes',N'FWSノート','N','N') , (1999,'2/12/2019','ja-JP','lbxGCS01',N'GCS01','N','N') , (1999,'2/12/2019','ja-JP','lbxGenerate',N'生成する:','N','N') , (1999,'2/12/2019','ja-JP','lbxGeneratedInputsUOMIntro',N'入力を入力してください','N','N') , (1999,'2/12/2019','ja-JP','lbxGenerateOrSolicit',N'勧誘で生成または提出する','N','N') , (1999,'2/12/2019','ja-JP','lbxGenerateSelectAll',N'すべて選択','N','N') , (1999,'2/12/2019','ja-JP','lbxGIPApplies',N'GIPが適用されます','N','N') , (1999,'2/12/2019','ja-JP','lbxGIPIndicator',N'GIPインジケータ','N','N') , (1999,'2/12/2019','ja-JP','lbxGIPNotes',N'GIPノート','N','N') , (1999,'2/12/2019','ja-JP','lbxGlobalECNNumberDescription',N'<br />米国のECN-HSの相関関係は、相関関係を公表した政府に送信された実際の出荷データに由来しています。 これらの相関は実際のデータフィールドを反映しており、分類の示唆ではありません。','N','N') , (1999,'2/12/2019','ja-JP','lbxGlobalHsNum',N'グローバルHS番号','N','N') , (1999,'2/12/2019','ja-JP','lbxGlobalProductDesc',N'グローバル商品説明','N','N') , (1999,'2/12/2019','ja-JP','lbxGlobalProductNum',N'グローバル製品番号','N','N') , (1999,'2/12/2019','ja-JP','lbxGoBack',N'戻る','N','N') , (1999,'2/12/2019','ja-JP','lbxGoHome',N'ホームページへ','N','N') , (1999,'2/12/2019','ja-JP','lbxGridOneHeader',N'グローバルサブ見出しの不一致とブランク','N','N') , (1999,'2/12/2019','ja-JP','lbxGridThreeHeader',N'1対多のHSマッピング','N','N') , (1999,'2/12/2019','ja-JP','lbxGridTwoHeader',N'ダイレクトHSマッピング','N','N') , (1999,'2/12/2019','ja-JP','lbxGrossWeight',N'総重量','N','N') , (1999,'2/12/2019','ja-JP','lbxGrossWt',N'総重量','N','N') , (1999,'2/12/2019','ja-JP','lbxGroupBy',N'グループ結果:','N','N') , (1999,'2/12/2019','ja-JP','lbxHazardClass',N'ハザードクラス','N','N') , (1999,'2/12/2019','ja-JP','lbxHazMatFlag',N'危険物の旗','N','N') , (1999,'2/12/2019','ja-JP','lbxHeader',N'ヘッダーの詳細','N','N') , (1999,'2/12/2019','ja-JP','lbxHeader1',N'ヘッダー1','N','N') , (1999,'2/12/2019','ja-JP','lbxHeader2',N'ヘッダー2','N','N') , (1999,'2/12/2019','ja-JP','lbxHeader3',N'ヘッダー3','N','N') , (1999,'2/12/2019','ja-JP','lbxHelp',N'ヘルプ','N','N') , (1999,'2/12/2019','ja-JP','lbxHelpRWTitle',N'指示','N','N') , (1999,'2/12/2019','ja-JP','lbxHolidays',N'休日','N','N') , (1999,'2/12/2019','ja-JP','lbxHolidaysEmpty',N'祝日に関する情報はありません。','N','N') , (1999,'2/12/2019','ja-JP','lbxHSFilter',N'HS番号フィルタ','N','N') , (1999,'2/12/2019','ja-JP','lbxHsInProgress',N'HSが進行中','N','N') , (1999,'2/12/2019','ja-JP','lbxHSLocation',N'HSロケーションの選択','N','N') , (1999,'2/12/2019','ja-JP','lbxHSMaintenanceLogText',N'HS保守ログ','N','N') , (1999,'2/12/2019','ja-JP','lbxHSNum',N'HSNum','N','N') , (1999,'2/12/2019','ja-JP','lbxHsNum2',N'Hs番号2','N','N') , (1999,'2/12/2019','ja-JP','lbxHSNumber',N'HS番号','N','N') , (1999,'2/12/2019','ja-JP','lbxHSNumberDescription',N'HS番号/説明','N','N') , (1999,'2/12/2019','ja-JP','lbxHSNumberFilter',N'HS番号フィルタ','N','N') , (1999,'2/12/2019','ja-JP','lbxHSNumberSelect',N'HS番号','N','N') , (1999,'2/12/2019','ja-JP','lbxHSNumberSelection',N'HSNumber','N','N') , (1999,'2/12/2019','ja-JP','lbxHSNumberSelectionSettings',N'どの章/説明をデフォルトにしたいですか?','N','N') , (1999,'2/12/2019','ja-JP','lbxHSNumberTitle',N'HS番号(オプション)','N','N') , (1999,'2/12/2019','ja-JP','lbxHSNumberTitleFields',N'HS番号の選択','N','N') , (1999,'2/12/2019','ja-JP','lbxHsRationale',N'Hsの根拠','N','N') , (1999,'2/12/2019','ja-JP','lbxHSUOMConvFactor',N'HS UOM変換係数','N','N') , (1999,'2/12/2019','ja-JP','lbxHTS',N'HTS分類:','N','N') , (1999,'2/12/2019','ja-JP','lbxHtsIndex',N'HTSインデックス','N','N') , (1999,'2/12/2019','ja-JP','lbxIADApplies',N'IAD適用','N','N') , (1999,'2/12/2019','ja-JP','lbxIADIndicator',N'IADインジケータ','N','N') , (1999,'2/12/2019','ja-JP','lbxIADNotes',N'IADノート','N','N') , (1999,'2/12/2019','ja-JP','lbxIdentifier',N'識別子','N','N') , (1999,'2/12/2019','ja-JP','lbxIDVApplies',N'IDVが適用されます','N','N') , (1999,'2/12/2019','ja-JP','lbxIDVIndicator',N'IDVインジケータ','N','N') , (1999,'2/12/2019','ja-JP','lbxIDVNotes',N'IDVノート','N','N') , (1999,'2/12/2019','ja-JP','lbxImageNoAvailable',N'画像がありません','N','N') , (1999,'2/12/2019','ja-JP','lbxImportControls',N'インポートコントロール','N','N') , (1999,'2/12/2019','ja-JP','lbxImportCountry',N'輸入国','N','N') , (1999,'2/12/2019','ja-JP','lbxImportDetailControlsEmpty',N'グローバル・トレード・コンテンツには、このHS番号に関連付けられた他の言語の「インポート・コントロール記述」はありません。','N','N') , (1999,'2/12/2019','ja-JP','lbxImporter',N'輸入業者','N','N') , (1999,'2/12/2019','ja-JP','lbxImporterAddress',N'会社住所:','N','N') , (1999,'2/12/2019','ja-JP','lbxImporterAddress1',N'*輸入者住所1','N','N') , (1999,'2/12/2019','ja-JP','lbxImporterAddress2',N'輸入者住所2','N','N') , (1999,'2/12/2019','ja-JP','lbxImporterContactInfo',N'連絡先情報:','N','N') , (1999,'2/12/2019','ja-JP','lbxImporterInfoLabel',N'輸入者情報','N','N') , (1999,'2/12/2019','ja-JP','lbxImporterName',N'*輸入者名','N','N') , (1999,'2/12/2019','ja-JP','lbxImporterTaxID',N'*輸入者税ID','N','N') , (1999,'2/12/2019','ja-JP','lbxImportTariffNumber',N'HS番号','N','N') , (1999,'2/12/2019','ja-JP','lbxImportValuesByCountry',N'国別の輸入量','N','N') , (1999,'2/12/2019','ja-JP','lbxIncludeESig',N'電子署名を含める?','N','N') , (1999,'2/12/2019','ja-JP','lbxIncludeInflectional',N'屈折形式を含める','N','N') , (1999,'2/12/2019','ja-JP','lbxIncludeSpecialSymbols',N'除外された検索用語に記号を含める','N','N') , (1999,'2/12/2019','ja-JP','lbxIndexLetter',N'文字','N','N') , (1999,'2/12/2019','ja-JP','lbxIndustryBxFields',N'選択された産業:','N','N') , (1999,'2/12/2019','ja-JP','lbxInstructions',N'指示','N','N') , (1999,'2/12/2019','ja-JP','lbxInstructions1',N'すべてのボックスに<b> "*" </ b>と下記の製品情報を記入してください。','N','N') , (1999,'2/12/2019','ja-JP','lbxInstructions2',N'<b>輸出者</ b>または<b>輸入者</ b>が複数のエンティティになることができる場合は、<b> "多" </ b>を記入し、対応する住所と税IDフィールドを空白のままにしてください。','N','N') , (1999,'2/12/2019','ja-JP','lbxInstructions3',N'<b>プロデューサー</ b>が複数のエンティティになることができる場合は、<b>「リクエストに応じて税関にご利用いただけます」</ b>を記入し、対応する住所と税IDフィールドを空白のままにします。','N','N') , (1999,'2/12/2019','ja-JP','lbxInstructionsRWTitle',N'指示','N','N') , (1999,'2/12/2019','ja-JP','lbxInsurance',N'保険','N','N') , (1999,'2/12/2019','ja-JP','lbxInternalNote',N'内部ノート','N','N') , (1999,'2/12/2019','ja-JP','lbxInvalid',N'無効','N','N') , (1999,'2/12/2019','ja-JP','lbxIRSApplies',N'IRSが適用されます','N','N') , (1999,'2/12/2019','ja-JP','lbxIRSIndicator',N'IRS指標','N','N') , (1999,'2/12/2019','ja-JP','lbxIRSNotes',N'IRSノート','N','N') , (1999,'2/12/2019','ja-JP','lbxITARNum',N'lbx ITAR番号','N','N') , (1999,'2/12/2019','ja-JP','lbxKnowledgeProfile',N'知識プロファイル','N','N') , (1999,'2/12/2019','ja-JP','lbxlblMUMiscAlias',N'生産地','N','N') , (1999,'2/12/2019','ja-JP','lbxlbxMUMisc',N'生産地','N','N') , (1999,'2/12/2019','ja-JP','lbxLegalEntityName',N'法人名','N','N') , (1999,'2/12/2019','ja-JP','lbxLegislationNotes',N'立法','N','N') , (1999,'2/12/2019','ja-JP','lbxLOADate',N'対象範囲:','N','N') , (1999,'2/12/2019','ja-JP','lbxLoadingText',N'読み込み中','N','N') , (1999,'2/12/2019','ja-JP','lbxLoadRequest',N'リクエスト','N','N') , (1999,'2/12/2019','ja-JP','lbxLOATo',N'に','N','N') , (1999,'2/12/2019','ja-JP','lbxLocationOfFile',N'ファイルの場所','N','N') , (1999,'2/12/2019','ja-JP','lbxLogicSQL',N'ロジックSQL','N','N') , (1999,'2/12/2019','ja-JP','lbxLogout',N'ログアウト','N','N') , (1999,'2/12/2019','ja-JP','lbxLongDesc',N'長い説明','N','N') , (1999,'2/12/2019','ja-JP','lbxLstBxChapter',N'チャプターを選択:','N','N') , (1999,'2/12/2019','ja-JP','lbxLstBxCountry',N'国を選択:','N','N') , (1999,'2/12/2019','ja-JP','lbxLstBxIndustry',N'産業の選択:','N','N') , (1999,'2/12/2019','ja-JP','lbxLstBxSolution',N'ソリューションの選択:','N','N') , (1999,'2/12/2019','ja-JP','lbxLTSDCumulation',N'適用:','N','N') , (1999,'2/12/2019','ja-JP','lbxLTSDSecondaryLanguage',N'セカンダリドキュメント言語:','N','N') , (1999,'2/12/2019','ja-JP','lbxMailPriority',N'優先度の高いメール','N','N') , (1999,'2/12/2019','ja-JP','lbxMainCountry',N'主要国','N','N') , (1999,'2/12/2019','ja-JP','lbxMainDocuments',N'主な文書','N','N') , (1999,'2/12/2019','ja-JP','lbxMainDuty',N'メイン/第三国の義務','N','N') , (1999,'2/12/2019','ja-JP','lbxMainDutyEmpty',N'グローバル貿易内容には、このHS番号に関連する「主要/第3国の義務」はありません。','N','N') , (1999,'2/12/2019','ja-JP','lbxMainDutyFTAInformation',N'国税の特定のHS番号で主要関税率が無料で、政府の関税表の源泉徴収票によって自由貿易協定率が公表されていない場合、統合ポイントは自由貿易協定の情報を画面に表示しない場合があります。','N','N') , (1999,'2/12/2019','ja-JP','lbxMainGlobalHS',N'グローバルHS番号','N','N') , (1999,'2/12/2019','ja-JP','lbxMaintenance',N'メンテナンス','N','N') , (1999,'2/12/2019','ja-JP','lbxManageSearches_RecentSearches',N'最近の検索','N','N') , (1999,'2/12/2019','ja-JP','lbxManageSearches_RecentSelections',N'最近のグローバル分類選択','N','N') , (1999,'2/12/2019','ja-JP','lbxManageSearches_SavedSearches',N'保存された検索','N','N') , (1999,'2/12/2019','ja-JP','lbxManageSearches_SharedSearches',N'他のユーザーと共有された検索','N','N') , (1999,'2/12/2019','ja-JP','lbxManageSearches_UnsavedSearches',N'未保存の検索結果を表示する','N','N') , (1999,'2/12/2019','ja-JP','lbxManageSearchesTitle',N'検索の管理','N','N') , (1999,'2/12/2019','ja-JP','lbxManagingDirector',N'マネージングディレクターの名前','N','N') , (1999,'2/12/2019','ja-JP','lbxManufacturer',N'サプライヤー','N','N') , (1999,'2/12/2019','ja-JP','lbxManufacturerId',N'メーカーID','N','N') , (1999,'2/12/2019','ja-JP','lbxMARApplies',N'MAR適用','N','N') , (1999,'2/12/2019','ja-JP','lbxMARIndicator',N'MAR指標','N','N') , (1999,'2/12/2019','ja-JP','lbxMarinePollutant',N'海洋汚染物','N','N') , (1999,'2/12/2019','ja-JP','lbxMarkingLabelingIndustry',N'業界','N','N') , (1999,'2/12/2019','ja-JP','lbxMarkingLabelingSpecific',N'特定','N','N') , (1999,'2/12/2019','ja-JP','lbxMarks',N'マークと数字','N','N') , (1999,'2/12/2019','ja-JP','lbxMARNotes',N'3月','N','N') , (1999,'2/12/2019','ja-JP','lbxMassInfo',N'処理が終了しました。部品表のステータスと検索を選択してください。','N','N') , (1999,'2/12/2019','ja-JP','lbxMassStatus',N'ステータス','N','N') , (1999,'2/12/2019','ja-JP','lbxMassUpdate',N'複数製品のアップデート','N','N') , (1999,'2/12/2019','ja-JP','lbxMassUpdateSetField',N'一括更新にフィールドを選択','N','N') , (1999,'2/12/2019','ja-JP','lbxMassUpdateTo',N'に','N','N') , (1999,'2/12/2019','ja-JP','lbxMatchType',N'マッチタイプ','N','N') , (1999,'2/12/2019','ja-JP','lbxMemo',N'メモ','N','N') , (1999,'2/12/2019','ja-JP','lbxMiddle',N'#NAME?','N','N') , (1999,'2/12/2019','ja-JP','lbxmisc',N'その他','N','N') , (1999,'2/12/2019','ja-JP','lbxmiscAlias',N'その他の列の別名','N','N') , (1999,'2/12/2019','ja-JP','lbxModifiedBy',N'変更者','N','N') , (1999,'2/12/2019','ja-JP','lbxModifiedDate',N'変更日','N','N') , (1999,'2/12/2019','ja-JP','lbxMU misc',N'原産地','N','N') , (1999,'2/12/2019','ja-JP','lbxMU Place of Production',N'生産地','N','N') , (1999,'2/12/2019','ja-JP','lbxMUCOO',N'原産国','N','N') , (1999,'2/12/2019','ja-JP','lbxMUCurrency',N'通貨','N','N') , (1999,'2/12/2019','ja-JP','lbxMUHSNum',N'HS番号','N','N') , (1999,'2/12/2019','ja-JP','lbxMultiFTA',N'ターゲットFTAを選択','N','N') , (1999,'2/12/2019','ja-JP','lbxMultipleMatchingECNQuestion',N'複数の一致が見つかりました。','N','N') , (1999,'2/12/2019','ja-JP','lbxMUMarks',N'マークと数字','N','N') , (1999,'2/12/2019','ja-JP','lbxMUMisc',N'生産地','N','N') , (1999,'2/12/2019','ja-JP','lbxMUMiscAlias',N'生産地','N','N') , (1999,'2/12/2019','ja-JP','lbxMUNetCost',N'判定基準詳細','N','N') , (1999,'2/12/2019','ja-JP','lbxMUNote',N'注','N','N') , (1999,'2/12/2019','ja-JP','lbxMUPackages',N'パッケージ数','N','N') , (1999,'2/12/2019','ja-JP','lbxMUPlace of Production',N'生産地','N','N') , (1999,'2/12/2019','ja-JP','lbxMUPlaceofProduction',N'生産地','N','N') , (1999,'2/12/2019','ja-JP','lbxMUPrefCrit',N'判定基準','N','N') , (1999,'2/12/2019','ja-JP','lbxMUProducer',N'プロデューサー','N','N') , (1999,'2/12/2019','ja-JP','lbxMUSPN',N'サプライヤの製品番号','N','N') , (1999,'2/12/2019','ja-JP','lbxMUTraced',N'トレースされた値','N','N') , (1999,'2/12/2019','ja-JP','lbxMUValue',N'値','N','N') , (1999,'2/12/2019','ja-JP','lbxMXState',N'MX州','N','N') , (1999,'2/12/2019','ja-JP','lbxNaftaCertified',N'ナフタ認定','N','N') , (1999,'2/12/2019','ja-JP','lbxNAFTATracedValue',N'NAFTAトレース値:','N','N') , (1999,'2/12/2019','ja-JP','lbxNaladisa',N'NALADISA','N','N') , (1999,'2/12/2019','ja-JP','lbxName',N'証明書の名前','N','N') , (1999,'2/12/2019','ja-JP','lbxNetCost',N'判定基準詳細','N','N') , (1999,'2/12/2019','ja-JP','lbxNetWeight',N'正味重量','N','N') , (1999,'2/12/2019','ja-JP','lbxNewBOMs',N'システムに追加された新しいBOMの数:','N','N') , (1999,'2/12/2019','ja-JP','lbxNewCompany',N'会社','N','N') , (1999,'2/12/2019','ja-JP','lbxNewDates',N'日付','N','N') , (1999,'2/12/2019','ja-JP','lbxNewName',N'名','N','N') , (1999,'2/12/2019','ja-JP','lbxNewQualRecords',N'新しい適格レコードの数:','N','N') , (1999,'2/12/2019','ja-JP','lbxNewRecordTitle',N'新商品レコードを追加','N','N') , (1999,'2/12/2019','ja-JP','lbxNewRequestRWTitle',N'新しいリクエストを作成する','N','N') , (1999,'2/12/2019','ja-JP','lbxNews',N'ニュース','N','N') , (1999,'2/12/2019','ja-JP','lbxNewsCulture',N'ニュース文化','N','N') , (1999,'2/12/2019','ja-JP','lbxNewsEffectiveDate',N'発効日','N','N') , (1999,'2/12/2019','ja-JP','lbxNewsType',N'ニュースタイプ','N','N') , (1999,'2/12/2019','ja-JP','lbxNewTemplate',N'新しいテンプレート名','N','N') , (1999,'2/12/2019','ja-JP','lbxNewType',N'リクエストタイプ','N','N') , (1999,'2/12/2019','ja-JP','lbxNHTApplies',N'NHT適用','N','N') , (1999,'2/12/2019','ja-JP','lbxNHTIndicator',N'NHT指標','N','N') , (1999,'2/12/2019','ja-JP','lbxNHTNotes',N'NHTノート','N','N') , (1999,'2/12/2019','ja-JP','lbxNMFApplies',N'NMFが適用されます','N','N') , (1999,'2/12/2019','ja-JP','lbxNMFIndicator',N'NMF指標','N','N') , (1999,'2/12/2019','ja-JP','lbxNMFNotes',N'NMFノート','N','N') , (1999,'2/12/2019','ja-JP','lbxNonCert',N'非認証レター','N','N') , (1999,'2/12/2019','ja-JP','lbxNoNewItems',N'あなたは商品がありません。','N','N') , (1999,'2/12/2019','ja-JP','lbxNonQualifying',N'非適格','N','N') , (1999,'2/12/2019','ja-JP','lbxNoProductsMessage',N'''商品が追加されていません''','N','N') , (1999,'2/12/2019','ja-JP','lbxNoRecords',N'料金表の情報が利用できない','N','N') , (1999,'2/12/2019','ja-JP','lbxNote',N'注意','N','N') , (1999,'2/12/2019','ja-JP','lbxNotes',N'ノート','N','N') , (1999,'2/12/2019','ja-JP','lbxNotesTitle',N'ノート','N','N') , (1999,'2/12/2019','ja-JP','lbxNRCApplies',N'NRCが適用されます','N','N') , (1999,'2/12/2019','ja-JP','lbxNRCIndicator',N'NRC指標','N','N') , (1999,'2/12/2019','ja-JP','lbxNRCNotes',N'NRCノート','N','N') , (1999,'2/12/2019','ja-JP','lbxNumDocumentsAttached',N'現在の添付文書数:','N','N') , (1999,'2/12/2019','ja-JP','lbxOFAApplies',N'OFAが適用される','N','N') , (1999,'2/12/2019','ja-JP','lbxOFAIndicator',N'OFA指標','N','N') , (1999,'2/12/2019','ja-JP','lbxOFANotes',N'OFAノート','N','N') , (1999,'2/12/2019','ja-JP','lbxOFEApplies',N'OFEが適用されます','N','N') , (1999,'2/12/2019','ja-JP','lbxOFEIndicator',N'OFE指標','N','N') , (1999,'2/12/2019','ja-JP','lbxOFENotes',N'OFEノート','N','N') , (1999,'2/12/2019','ja-JP','lbxOFMApplies',N'OFMが適用されます','N','N') , (1999,'2/12/2019','ja-JP','lbxOFMIndicator',N'OFM指標','N','N') , (1999,'2/12/2019','ja-JP','lbxOFMNotes',N'OFMノート','N','N') , (1999,'2/12/2019','ja-JP','lbxOLMApplies',N'OLMが適用されます','N','N') , (1999,'2/12/2019','ja-JP','lbxOLMIndicator',N'OLMインジケータ','N','N') , (1999,'2/12/2019','ja-JP','lbxOLMNotes',N'OLMノート','N','N') , (1999,'2/12/2019','ja-JP','lbxOneToManyMappingNoRecords',N'この国には無効な商品はありません。1対多のマッピングが必要です','N','N') , (1999,'2/12/2019','ja-JP','lbxOneToManyMappingToolTip2',N'[適用]をクリックすると、既存の国のHS番号を選択した値で上書きします','N','N') , (1999,'2/12/2019','ja-JP','lbxOperator',N'オペレーター','N','N') , (1999,'2/12/2019','ja-JP','lbxOpinionLabel',N'意見のテキスト:','N','N') , (1999,'2/12/2019','ja-JP','lbxOptional',N'オプションのフィールド','N','N') , (1999,'2/12/2019','ja-JP','lbxOrigination_GeneralRule',N'一般的なルール','N','N') , (1999,'2/12/2019','ja-JP','lbxOrigination_RulesOfOriginNonPreferential',N'「原産地規則の非優先規則」','N','N') , (1999,'2/12/2019','ja-JP','lbxOrigination_RulesOfOriginPreferential',N'特定のルール','N','N') , (1999,'2/12/2019','ja-JP','lbxOriginCriterion',N'起源基準','N','N') , (1999,'2/12/2019','ja-JP','lbxOriginDetail',N'原産地規則の詳細','N','N') , (1999,'2/12/2019','ja-JP','lbxOriginName',N'原産地規則','N','N') , (1999,'2/12/2019','ja-JP','lbxOSAApplies',N'OSAが適用されます','N','N') , (1999,'2/12/2019','ja-JP','lbxOSAIndicator',N'OSA指標','N','N') , (1999,'2/12/2019','ja-JP','lbxOSANotes',N'OSAノート','N','N') , (1999,'2/12/2019','ja-JP','lbxOtherDuty',N'その他の義務','N','N') , (1999,'2/12/2019','ja-JP','lbxOtherDutyEmpty',N'グローバル・トレード・コンテンツには、このHS番号に関連する「その他の義務」はありません。','N','N') , (1999,'2/12/2019','ja-JP','lbxOtherImportCharges',N'その他の輸入手数料','N','N') , (1999,'2/12/2019','ja-JP','lbxOtherImportChargesEmpty',N'グローバル・トレード・コンテンツには、このHS番号に関連する「インポート・チャージ」はありません。','N','N') , (1999,'2/12/2019','ja-JP','lbxOtherRuleOptionTextTitle',N'追加BOM結果:','N','N') , (1999,'2/12/2019','ja-JP','lbxOverwriteSave',N'既存の検索の変更/上書き','N','N') , (1999,'2/12/2019','ja-JP','lbxPackages',N'パッケージ数','N','N') , (1999,'2/12/2019','ja-JP','lbxPackingGroup',N'パッキンググループ','N','N') , (1999,'2/12/2019','ja-JP','lbxParentFTA',N'親のFTA','N','N') , (1999,'2/12/2019','ja-JP','lbxParties',N'締約国','N','N') , (1999,'2/12/2019','ja-JP','lbxPartiesAcceptedValues',N'パーティーで受け入れられる値','N','N') , (1999,'2/12/2019','ja-JP','lbxPartner',N'現パートナー:','N','N') , (1999,'2/12/2019','ja-JP','lbxPartyAddress1',N'住所(1','N','N') , (1999,'2/12/2019','ja-JP','lbxPartyAddress2',N'アドレス2','N','N') , (1999,'2/12/2019','ja-JP','lbxPartyAddress3',N'住所3','N','N') , (1999,'2/12/2019','ja-JP','lbxPartyAddress4',N'住所4','N','N') , (1999,'2/12/2019','ja-JP','lbxPartyCity',N'シティ','N','N') , (1999,'2/12/2019','ja-JP','lbxPartyContactEmail',N'連絡先メールアドレス','N','N') , (1999,'2/12/2019','ja-JP','lbxPartyContactFax',N'連絡先ファックス','N','N') , (1999,'2/12/2019','ja-JP','lbxPartyContactName',N'連絡先','N','N') , (1999,'2/12/2019','ja-JP','lbxPartyContactPhone',N'お問い合わせ電話番号','N','N') , (1999,'2/12/2019','ja-JP','lbxPartyContactTitle',N'連絡先のタイトル','N','N') , (1999,'2/12/2019','ja-JP','lbxPartyCountryCode',N'国コード','N','N') , (1999,'2/12/2019','ja-JP','lbxPartyEditRWTitle1',N'編集','N','N') , (1999,'2/12/2019','ja-JP','lbxPartyEditRWTitle2',N'情報','N','N') , (1999,'2/12/2019','ja-JP','lbxPartyName',N'名','N','N') , (1999,'2/12/2019','ja-JP','lbxPartyPostalCode',N'郵便番号','N','N') , (1999,'2/12/2019','ja-JP','lbxPartyState',N'ステータス','N','N') , (1999,'2/12/2019','ja-JP','lbxPartyTaxID',N'納税者番号','N','N') , (1999,'2/12/2019','ja-JP','lbxPassFail',N'BOM結果','N','N') , (1999,'2/12/2019','ja-JP','lbxPassFailOther',N'BOM結果','N','N') , (1999,'2/12/2019','ja-JP','lbxPassFailotherTwo',N'BOM結果','N','N') , (1999,'2/12/2019','ja-JP','lbxPCAreaCost',N'PCエリアコスト','N','N') , (1999,'2/12/2019','ja-JP','lbxPCForeignCost',N'PCの外貨コスト','N','N') , (1999,'2/12/2019','ja-JP','lbxPCLocalCost',N'PCローカルコスト','N','N') , (1999,'2/12/2019','ja-JP','lbxPCTotalCost',N'PC総コスト','N','N') , (1999,'2/12/2019','ja-JP','lbxPDFLink',N'PDFダウンロードリンク:','N','N') , (1999,'2/12/2019','ja-JP','lbxPendingRequest',N'「保留中の分類要求」','N','N') , (1999,'2/12/2019','ja-JP','lbxPHMApplies',N'PHM適用','N','N') , (1999,'2/12/2019','ja-JP','lbxPHMIndicator',N'PHM指標','N','N') , (1999,'2/12/2019','ja-JP','lbxPHMNotes',N'PHMノート','N','N') , (1999,'2/12/2019','ja-JP','lbxPhone',N'連絡先電話を使用する','N','N') , (1999,'2/12/2019','ja-JP','lbxPhoneNumber',N'発電機の電話番号','N','N') , (1999,'2/12/2019','ja-JP','lbxPickFilter',N'データフィールドを選択し、実行するBOMのリストをフィルタリングする値を入力します。フィルタが選択されていない場合は、すべてのBOMが実行されます。','N','N') , (1999,'2/12/2019','ja-JP','lbxPickFTAs',N'BOMを実行するOriginルールセットを1つ以上選択します。Noneを選択すると、すべての可能なルールセットが使用されます。','N','N') , (1999,'2/12/2019','ja-JP','lbxPlace of Production',N'生産地','N','N') , (1999,'2/12/2019','ja-JP','lbxPlaceofProduction',N'生産地','N','N') , (1999,'2/12/2019','ja-JP','lbxPlant',N'工場:','N','N') , (1999,'2/12/2019','ja-JP','lbxPlantLocation',N'工場所在地:','N','N') , (1999,'2/12/2019','ja-JP','lbxPlantLocationValue',N'PlantLocation','N','N') , (1999,'2/12/2019','ja-JP','lbxPref. Criteria',N'判定基準','N','N') , (1999,'2/12/2019','ja-JP','lbxPrefCrit',N'判定基準','N','N') , (1999,'2/12/2019','ja-JP','lbxPrefDuty',N'優先義務','N','N') , (1999,'2/12/2019','ja-JP','lbxPrefDutyEmpty',N'グローバル貿易内容には、このHS番号に関連する「優遇税」はありません。','N','N') , (1999,'2/12/2019','ja-JP','lbxPreferenceCode1',N'プリファレンスコード1','N','N') , (1999,'2/12/2019','ja-JP','lbxPreferenceCode2',N'プリファレンスコード2','N','N') , (1999,'2/12/2019','ja-JP','lbxProducer',N'プロデューサーの価値','N','N') , (1999,'2/12/2019','ja-JP','lbxProducerAddress',N'会社住所:','N','N') , (1999,'2/12/2019','ja-JP','lbxProducerAddress1',N'*プロデューサーの住所1','N','N') , (1999,'2/12/2019','ja-JP','lbxProducerAddress2',N'プロデューサー住所2','N','N') , (1999,'2/12/2019','ja-JP','lbxProducerContactInfo',N'連絡先情報:','N','N') , (1999,'2/12/2019','ja-JP','lbxProducerInfoLabel',N'プロデューサー情報','N','N') , (1999,'2/12/2019','ja-JP','lbxProducerName',N'生産者名','N','N') , (1999,'2/12/2019','ja-JP','lbxProducerTaxID',N'*プロデューサー税ID','N','N') , (1999,'2/12/2019','ja-JP','lbxProduct',N'型番','N','N') , (1999,'2/12/2019','ja-JP','lbxProductDesc',N'製品説明','N','N') , (1999,'2/12/2019','ja-JP','lbxProductExWorks',N'製品出荷額%(必須%)','N','N') , (1999,'2/12/2019','ja-JP','lbxProductExWorksOther',N'製品出荷額%(必須%)','N','N') , (1999,'2/12/2019','ja-JP','lbxProductExWorksOtherTwo',N'製品出荷額%(必須%)','N','N') , (1999,'2/12/2019','ja-JP','lbxProductGroup',N'製品グループ','N','N') , (1999,'2/12/2019','ja-JP','lbxProductMaterial',N'製品の材質','N','N') , (1999,'2/12/2019','ja-JP','lbxProductName',N'商品名*','N','N') , (1999,'2/12/2019','ja-JP','lbxProductNum',N'製品番号','N','N') , (1999,'2/12/2019','ja-JP','lbxProductSearch',N'製品を探す','N','N') , (1999,'2/12/2019','ja-JP','lbxProductTypeCode',N'製品タイプコード','N','N') , (1999,'2/12/2019','ja-JP','lbxProfit',N'利益','N','N') , (1999,'2/12/2019','ja-JP','lbxProperShippingName',N'適切な輸送名','N','N') , (1999,'2/12/2019','ja-JP','lbxQualifying',N'適格','N','N') , (1999,'2/12/2019','ja-JP','lbxQuantity',N'量','N','N') , (1999,'2/12/2019','ja-JP','lbxQuotaDetails',N'クォータの詳細','N','N') , (1999,'2/12/2019','ja-JP','lbxReadMessage',N'読む','N','N') , (1999,'2/12/2019','ja-JP','lbxReason',N'理由','N','N') , (1999,'2/12/2019','ja-JP','lbxReceiptSupplement',N'領収書サプリメント','N','N') , (1999,'2/12/2019','ja-JP','lbxRecentOpenedDetails',N'最近開いた詳細','N','N') , (1999,'2/12/2019','ja-JP','lbxRecentSearchesType',N'最近の検索タイプ','N','N') , (1999,'2/12/2019','ja-JP','lbxRecipient',N'受信者会社','N','N') , (1999,'2/12/2019','ja-JP','lbxRecordsPerPage',N'1ページあたりの記録','N','N') , (1999,'2/12/2019','ja-JP','lbxReferenceProductNum',N'サプライヤの製品番号','N','N') , (1999,'2/12/2019','ja-JP','lbxRefresh',N'リフレッシュ','N','N') , (1999,'2/12/2019','ja-JP','lbxRegulationList',N'規制リスト','N','N') , (1999,'2/12/2019','ja-JP','lbxRejectDocTitle',N'ドキュメントを拒否する','N','N') , (1999,'2/12/2019','ja-JP','lbxRejectDocTitleObsolete',N'無効/廃製品を拒否する','N','N') , (1999,'2/12/2019','ja-JP','lbxRelatedECN',N'ECN AESに提出された番号','N','N') , (1999,'2/12/2019','ja-JP','lbxRelatedECNNumber',N'関連するECN番号','N','N') , (1999,'2/12/2019','ja-JP','lbxRelatedECNNumberDescription',N'<br />米国のECN-HSの相関関係は、相関関係を公表した政府に送信された実際の出荷データに由来しています。 これらの相関は実際のデータフィールドを反映しており、分類の示唆ではありません。','N','N') , (1999,'2/12/2019','ja-JP','lbxRelatedHS',N'関連するHS番号','N','N') , (1999,'2/12/2019','ja-JP','lbxRelatedHSEmpty',N'グローバル・トレード・コンテンツには、このHS番号に関連する「関連するHS番号」はありません。','N','N') , (1999,'2/12/2019','ja-JP','lbxReminderDate',N'リマインダー日付:','N','N') , (1999,'2/12/2019','ja-JP','lbxReminderEmail',N'お知らせメール:','N','N') , (1999,'2/12/2019','ja-JP','lbxReminderSent',N'送信されたリマインダー:','N','N') , (1999,'2/12/2019','ja-JP','lbxRemindersTitle',N'リマインダー情報を管理する','N','N') , (1999,'2/12/2019','ja-JP','lbxReportFormat',N'レポート形式','N','N') , (1999,'2/12/2019','ja-JP','lbxReportHistoryTitle',N'以前に生成されたレポート','N','N') , (1999,'2/12/2019','ja-JP','lbxReportMsg',N'あなたは自由貿易協定を選択していません。自由貿易協定を選択して、もう一度印刷を試みてください。','N','N') , (1999,'2/12/2019','ja-JP','lbxReportName',N'レポート名','N','N') , (1999,'2/12/2019','ja-JP','lbxReportTitle',N'レポートのタイトル','N','N') , (1999,'2/12/2019','ja-JP','lbxReqStatus',N'リクエストステータス','N','N') , (1999,'2/12/2019','ja-JP','lbxReqType',N'リクエストタイプ','N','N') , (1999,'2/12/2019','ja-JP','lbxRequestDates',N'日付のリクエスト','N','N') , (1999,'2/12/2019','ja-JP','lbxRequestorName',N'名','N','N') , (1999,'2/12/2019','ja-JP','lbxRequestTitle',N'リクエストタイトル:','N','N') , (1999,'2/12/2019','ja-JP','lbxRequiredFields',N'必須フィールド','N','N') , (1999,'2/12/2019','ja-JP','lbxResultParsing',N'結果の解析','N','N') , (1999,'2/12/2019','ja-JP','lbxResultsDetail0_Description',N'説明','N','N') , (1999,'2/12/2019','ja-JP','lbxResultsDetail0_Destination',N'行き先国','N','N') , (1999,'2/12/2019','ja-JP','lbxResultsDetail0_Origin',N'起源国','N','N') , (1999,'2/12/2019','ja-JP','lbxResultsDetail0_Origin0',N'起源国','N','N') , (1999,'2/12/2019','ja-JP','lbxResultsDetail1_Description',N'説明','N','N') , (1999,'2/12/2019','ja-JP','lbxResultsDetail1_Destination',N'行き先国','N','N') , (1999,'2/12/2019','ja-JP','lbxResultsDetail1_Origin',N'起源国','N','N') , (1999,'2/12/2019','ja-JP','lbxResultsDetail1_Origin0',N'起源国','N','N') , (1999,'2/12/2019','ja-JP','lbxResultsDetailDutyTaxSubtotal',N'義務と税金の小計','N','N') , (1999,'2/12/2019','ja-JP','lbxResultsDetailProductShippingSubtotal',N'製品と出荷小計','N','N') , (1999,'2/12/2019','ja-JP','lbxResultsDetailTotalEstimate',N'推定合計土地コスト','N','N') , (1999,'2/12/2019','ja-JP','lbxResultsDetailTotalEstimate0_Title',N'料金の詳細','N','N') , (1999,'2/12/2019','ja-JP','lbxResultsDetailTotalEstimate1_Title',N'推定合計土地コスト','N','N') , (1999,'2/12/2019','ja-JP','lbxResultsTitle',N'現在のユーザーの結果','N','N') , (1999,'2/12/2019','ja-JP','lbxRuleCategory',N'ルールカテゴリ','N','N') , (1999,'2/12/2019','ja-JP','lbxRuleEffDate',N'発効日','N','N') , (1999,'2/12/2019','ja-JP','lbxRuleEnabled',N'ルールが有効','N','N') , (1999,'2/12/2019','ja-JP','lbxRuleException',N'例外ルール','N','N') , (1999,'2/12/2019','ja-JP','lbxRuleExpDate',N'有効期限','N','N') , (1999,'2/12/2019','ja-JP','lbxRuleFlag',N'ルールタイプ','N','N') , (1999,'2/12/2019','ja-JP','lbxRuleKey',N'ルールキー','N','N') , (1999,'2/12/2019','ja-JP','lbxRuleList',N'ルールリスト','N','N') , (1999,'2/12/2019','ja-JP','lbxRuleName',N'ターゲットルール','N','N') , (1999,'2/12/2019','ja-JP','lbxRuleNameOther',N'追加結果の表示','N','N') , (1999,'2/12/2019','ja-JP','lbxRuleofOrigin',N'FTA原産地規則のID:','N','N') , (1999,'2/12/2019','ja-JP','lbxRuleResults',N'FTAルールの結果:','N','N') , (1999,'2/12/2019','ja-JP','lbxRuleResultsValue',N'RuleResult','N','N') , (1999,'2/12/2019','ja-JP','lbxRulesEntry',N'ルール入力列','N','N') , (1999,'2/12/2019','ja-JP','lbxRuleSeq',N'ルールシーケンス','N','N') , (1999,'2/12/2019','ja-JP','lbxRulesOfOrigin',N'原産地規則','N','N') , (1999,'2/12/2019','ja-JP','lbxRulesOfOriginEmpty',N'原産地規則は利用できません。','N','N') , (1999,'2/12/2019','ja-JP','lbxRuleTextTitle',N'ルールテキスト:','N','N') , (1999,'2/12/2019','ja-JP','lbxRuleType',N'ルールカテゴリ','N','N') , (1999,'2/12/2019','ja-JP','lbxRulingNotes',N'裁定ノート','N','N') , (1999,'2/12/2019','ja-JP','lbxRVC',N'RVC','N','N') , (1999,'2/12/2019','ja-JP','lbxRVCOther',N'RVC','N','N') , (1999,'2/12/2019','ja-JP','lbxRVCotherTwo',N'RVC','N','N') , (1999,'2/12/2019','ja-JP','lbxRWeditcategory',N'検索カテゴリ','N','N') , (1999,'2/12/2019','ja-JP','lbxRWeditdescription',N'検索の説明','N','N') , (1999,'2/12/2019','ja-JP','lbxRWeditedit',N'この検索を編集可能にしますか?','N','N') , (1999,'2/12/2019','ja-JP','lbxRWeditinfo',N'これらの編集したパラメータをストアド検索に保存しますか?','N','N') , (1999,'2/12/2019','ja-JP','lbxRWeditname',N'検索名','N','N') , (1999,'2/12/2019','ja-JP','lbxRWeditshare',N'この検索を共有しますか?','N','N') , (1999,'2/12/2019','ja-JP','lbxRWsearchcategory',N'検索カテゴリ','N','N') , (1999,'2/12/2019','ja-JP','lbxRWsearchdescription',N'検索の説明','N','N') , (1999,'2/12/2019','ja-JP','lbxRWsearchedit',N'この検索を編集可能にしますか?','N','N') , (1999,'2/12/2019','ja-JP','lbxRWsearchinfo',N'これらの検索パラメータを新しいストアド検索に保存しますか?','N','N') , (1999,'2/12/2019','ja-JP','lbxRWsearchname',N'検索名','N','N') , (1999,'2/12/2019','ja-JP','lbxRWsearchshare',N'この検索を共有しますか?','N','N') , (1999,'2/12/2019','ja-JP','lbxSaveAsNew',N'新しい名前で保存','N','N') , (1999,'2/12/2019','ja-JP','lbxSavedSearches',N'保存された検索','N','N') INSERT INTO tmgPartnerCultureDefinitions(PartnerId,EffDate,CultureGuid,FieldName,FieldTranslation,DeletedFlag,KeepDuringRollback) VALUES (1999,'2/12/2019','ja-JP','lbxSaveNewSearch',N'新しい検索を保存','N','N') , (1999,'2/12/2019','ja-JP','lbxSavePCListTitle',N'PCリストの場合は何を保存する','N','N') , (1999,'2/12/2019','ja-JP','lbxSaveSearches_SavedSearches',N'保存された検索','N','N') , (1999,'2/12/2019','ja-JP','lbxSaveSearches_SearchName',N'検索名','N','N') , (1999,'2/12/2019','ja-JP','lbxSaveSignedCert',N'署名付き証明書を保存する','N','N') , (1999,'2/12/2019','ja-JP','lbxSaveSignedDoc',N'署名されたドキュメントのアップロードと保存','N','N') , (1999,'2/12/2019','ja-JP','lbxSaveSingleBOMTitle',N'単一のものを保存するIf','N','N') , (1999,'2/12/2019','ja-JP','lbxSBeginDate',N'開始日:','N','N') , (1999,'2/12/2019','ja-JP','lbxScreen',N'長期サプライヤ宣言レポートの作成','N','N') , (1999,'2/12/2019','ja-JP','lbxSearch',N'検索する','N','N') , (1999,'2/12/2019','ja-JP','lbxSearch1',N'サーチ','N','N') , (1999,'2/12/2019','ja-JP','lbxSearchFilter',N'高度な検索フィルタリング','N','N') , (1999,'2/12/2019','ja-JP','lbxSearchHeadings',N'サーチ:','N','N') , (1999,'2/12/2019','ja-JP','lbxSearchInstructions',N'あなたが提供している商品が見つからない場合は、「商品検索」ボタンをクリックし、「商品が見つかりません」をクリックします。情報を入力したら、サポートに連絡して商品を追加させてください。','N','N') , (1999,'2/12/2019','ja-JP','lbxSearchName',N'名','N','N') , (1999,'2/12/2019','ja-JP','lbxSearchProfileSetting',N'デフォルトの検索プロファイル設定を設定しますか?','N','N') , (1999,'2/12/2019','ja-JP','lbxSecondaryCountry',N'二次国','N','N') , (1999,'2/12/2019','ja-JP','lbxSection',N'セクション:','N','N') , (1999,'2/12/2019','ja-JP','lbxSectionI',N'I.完成したデータ','N','N') , (1999,'2/12/2019','ja-JP','lbxSectionII',N'II。コンポーネントコスト','N','N') , (1999,'2/12/2019','ja-JP','lbxSectionIII',N'III。適格基準','N','N') , (1999,'2/12/2019','ja-JP','lbxSectionIV',N'IV。原産地規則の原則','N','N') , (1999,'2/12/2019','ja-JP','lbxSelectAll',N'すべて選択','N','N') , (1999,'2/12/2019','ja-JP','lbxSelectBOM',N'BOMを選択','N','N') , (1999,'2/12/2019','ja-JP','lbxSelectBOMHist',N'検索BOM','N','N') , (1999,'2/12/2019','ja-JP','lbxSelectBOMTitle',N'BOMを選択','N','N') , (1999,'2/12/2019','ja-JP','lbxSelectChapter',N'章を選択','N','N') , (1999,'2/12/2019','ja-JP','lbxSelectDate',N'新しい日付を選択','N','N') , (1999,'2/12/2019','ja-JP','lbxSelectDocumentRWTitle',N'ドキュメントを選択','N','N') , (1999,'2/12/2019','ja-JP','lbxSelectedCulture',N'文化','N','N') , (1999,'2/12/2019','ja-JP','lbxSelectedHSNumber',N'ラベル','N','N') , (1999,'2/12/2019','ja-JP','lbxSelectedItem',N'WCO解説','N','N') , (1999,'2/12/2019','ja-JP','lbxSelectEmail',N'メールテンプレートを選択','N','N') , (1999,'2/12/2019','ja-JP','lbxSelectFTATitle',N'処理するFTAの選択','N','N') , (1999,'2/12/2019','ja-JP','lbxSelectionGuide',N'どの章があなたの製品に最も適していますか?','N','N') , (1999,'2/12/2019','ja-JP','lbxSelectLanguage',N'言語を選択する:','N','N') , (1999,'2/12/2019','ja-JP','lbxSelectPCListTitle',N'変更するコンポーネントを選択','N','N') , (1999,'2/12/2019','ja-JP','lbxSelectSavedBOMTitle',N'シングルBOM保存の場合','N','N') , (1999,'2/12/2019','ja-JP','lbxSelectSavedPCListTitle',N'保存されたセットが複数の場合','N','N') , (1999,'2/12/2019','ja-JP','lbxSelectStartDate',N'開始日:','N','N') , (1999,'2/12/2019','ja-JP','lbxSelectTimeFrame',N'時間枠:','N','N') , (1999,'2/12/2019','ja-JP','lbxSEndDate',N'終了日:','N','N') , (1999,'2/12/2019','ja-JP','lbxShowGuidedSearchResult',N'ガイド付き検索結果','N','N') , (1999,'2/12/2019','ja-JP','lbxShowHideFilter',N'フィルタの表示/非表示','N','N') , (1999,'2/12/2019','ja-JP','lbxSigAddress',N'住所','N','N') , (1999,'2/12/2019','ja-JP','lbxSigCompany',N'*署名会社:','N','N') , (1999,'2/12/2019','ja-JP','lbxSigContact',N'*署名音声/ファックス:','N','N') , (1999,'2/12/2019','ja-JP','lbxSigDate',N'署名日:','N','N') , (1999,'2/12/2019','ja-JP','lbxSigEmail',N'*署名メール:','N','N') , (1999,'2/12/2019','ja-JP','lbxSigName',N'署名者','N','N') , (1999,'2/12/2019','ja-JP','lbxSignatureDate',N'* 署名日','N','N') , (1999,'2/12/2019','ja-JP','lbxSignatureId',N'署名ID','N','N') , (1999,'2/12/2019','ja-JP','lbxSignatureInfo',N'署名情報','N','N') , (1999,'2/12/2019','ja-JP','lbxSignatureInfoLabel',N'署名情報','N','N') , (1999,'2/12/2019','ja-JP','lbxSignatureName',N'署名者','N','N') , (1999,'2/12/2019','ja-JP','lbxSignatureTitle',N'*署名のタイトル','N','N') , (1999,'2/12/2019','ja-JP','lbxSignatureVoiceFax',N'*署名音声/ファックス','N','N') , (1999,'2/12/2019','ja-JP','lbxSigTitle',N'*署名のタイトル:','N','N') , (1999,'2/12/2019','ja-JP','lbxSingleContent',N'単一国のコンテンツ','N','N') , (1999,'2/12/2019','ja-JP','lbxSingleCountryHS',N'XXの国固有のHSを選択してください','N','N') , (1999,'2/12/2019','ja-JP','lbxSingleFTA',N'FTA','N','N') , (1999,'2/12/2019','ja-JP','lbxSingleFTAs',N'選択されたFTA','N','N') , (1999,'2/12/2019','ja-JP','lbxSingleFTAsChosen',N'すべて','N','N') , (1999,'2/12/2019','ja-JP','lbxSolicitations',N'依頼','N','N') , (1999,'2/12/2019','ja-JP','lbxSolutionBxFields',N'選択されたソリューション:','N','N') , (1999,'2/12/2019','ja-JP','lbxSourceColumns',N'ソース列','N','N') , (1999,'2/12/2019','ja-JP','lbxSourceLocation',N'製品ソースの場所','N','N') , (1999,'2/12/2019','ja-JP','lbxSpecificNotes',N'特定のノート','N','N') , (1999,'2/12/2019','ja-JP','lbxSpecificNotesEmpty',N'グローバル・トレード・コンテンツには、このHS番号に関連する「特定の注釈」はありません。','N','N') , (1999,'2/12/2019','ja-JP','lbxSPICodes',N'SPIコード','N','N') , (1999,'2/12/2019','ja-JP','lbxSpreadsheetUpload',N'スプレッドシートのアップロード:','N','N') , (1999,'2/12/2019','ja-JP','lbxStandardNotes',N'標準ノート','N','N') , (1999,'2/12/2019','ja-JP','lbxStandardNotesEmpty',N'グローバル・トレード・コンテンツには、このHS番号に関連する「スタンダード・ノート」はありません。','N','N') , (1999,'2/12/2019','ja-JP','lbxStartDate',N'証明書の開始日:','N','N') , (1999,'2/12/2019','ja-JP','lbxStatus',N'ステータス','N','N') , (1999,'2/12/2019','ja-JP','lbxStatusBarCultureCode',N'説明/コントロール/メモ文化','N','N') , (1999,'2/12/2019','ja-JP','lbxStatusBarEffectiveDate',N'発効日(mm / dd / yyyy)','N','N') , (1999,'2/12/2019','ja-JP','lbxStatusBarTariffSchedule',N'国/料金スケジュール','N','N') , (1999,'2/12/2019','ja-JP','lbxStatusI',N'ステータス','N','N') , (1999,'2/12/2019','ja-JP','lbxStatusPrompt',N'ステータス','N','N') , (1999,'2/12/2019','ja-JP','lbxStep1',N'ステップ1','N','N') , (1999,'2/12/2019','ja-JP','lbxStep2',N'ステップ2 -','N','N') , (1999,'2/12/2019','ja-JP','lbxStep3',N'ステップ3 -','N','N') , (1999,'2/12/2019','ja-JP','lbxStep4',N'ステップ4 -','N','N') , (1999,'2/12/2019','ja-JP','lbxStep5',N'ステップ5 -','N','N') , (1999,'2/12/2019','ja-JP','lbxStep6',N'ステップ6 -','N','N') , (1999,'2/12/2019','ja-JP','lbxStep7',N'ステップ7 -','N','N') , (1999,'2/12/2019','ja-JP','lbxSubCountry',N'サブカントリー','N','N') , (1999,'2/12/2019','ja-JP','lbxSubject',N'件名:','N','N') , (1999,'2/12/2019','ja-JP','lbxSubmittedDocuments',N'以前に提出された文書:','N','N') , (1999,'2/12/2019','ja-JP','lbxSubRisk',N'サブリスク','N','N') , (1999,'2/12/2019','ja-JP','lbxSupplier',N'サプライヤーを選択','N','N') , (1999,'2/12/2019','ja-JP','lbxSupportingDocuments',N'ドキュメントをサポート','N','N') , (1999,'2/12/2019','ja-JP','lbxSystemAlerts',N'システムアラート','N','N') , (1999,'2/12/2019','ja-JP','lbxSystemMessages',N'システムメッセージ','N','N') , (1999,'2/12/2019','ja-JP','lbxTable',N'ソースを選択','N','N') , (1999,'2/12/2019','ja-JP','lbxTariffNotesEmpty',N'料金表は利用できません。','N','N') , (1999,'2/12/2019','ja-JP','lbxTariffNotesTab',N'関税','N','N') , (1999,'2/12/2019','ja-JP','lbxTariffSchedule',N'国/料金スケジュール','N','N') , (1999,'2/12/2019','ja-JP','lbxTariffScheduleEmpty',N'料金表のスケジュール情報がありません。','N','N') , (1999,'2/12/2019','ja-JP','lbxTariffScheduleSelection',N'どの関税表をデフォルトにしたいですか?','N','N') , (1999,'2/12/2019','ja-JP','lbxTariffShift',N'料金変更','N','N') , (1999,'2/12/2019','ja-JP','lbxTariffShiftOther',N'料金変更','N','N') , (1999,'2/12/2019','ja-JP','lbxTariffShiftotherTwo',N'料金変更','N','N') , (1999,'2/12/2019','ja-JP','lbxTaxID',N'Tax ID','N','N') , (1999,'2/12/2019','ja-JP','lbxTaxIDSuffix',N'税ID接尾辞','N','N') , (1999,'2/12/2019','ja-JP','lbxTechnicalName',N'技術名称','N','N') , (1999,'2/12/2019','ja-JP','lbxTemplate',N'テンプレート:','N','N') , (1999,'2/12/2019','ja-JP','lbxTemplateName',N'テンプレート名','N','N') , (1999,'2/12/2019','ja-JP','lbxThis',N'フッターをもう一度','N','N') , (1999,'2/12/2019','ja-JP','lbxThis2',N'これは私のフッターです','N','N') , (1999,'2/12/2019','ja-JP','lbxThis3',N'フッターをもう一度','N','N') , (1999,'2/12/2019','ja-JP','lbxThru',N'スルー','N','N') , (1999,'2/12/2019','ja-JP','lbxTitle',N'サインアップ','N','N') , (1999,'2/12/2019','ja-JP','lbxTitleOrigin',N'原点ワークシート','N','N') , (1999,'2/12/2019','ja-JP','lbxTo',N'に:','N','N') , (1999,'2/12/2019','ja-JP','lbxToDate',N'今日まで(mm / dd / yyyy)','N','N') , (1999,'2/12/2019','ja-JP','lbxTools',N'ツール','N','N') , (1999,'2/12/2019','ja-JP','lbxTopThird',N'#NAME?','N','N') , (1999,'2/12/2019','ja-JP','lbxTotalExWorks',N'総作業量%(必須%)','N','N') , (1999,'2/12/2019','ja-JP','lbxTotalExWorksOther',N'総作業量%(必須%)','N','N') , (1999,'2/12/2019','ja-JP','lbxTotalExWorksOtherTwo',N'総作業量%(必須%)','N','N') , (1999,'2/12/2019','ja-JP','lbxTotalResult',N'見つかった合計HS番号:','N','N') , (1999,'2/12/2019','ja-JP','lbxTotalResultAfterFilter',N'見つかった合計HS番号(フィルタ後):','N','N') , (1999,'2/12/2019','ja-JP','lbxTracedValue',N'トレースされた値','N','N') , (1999,'2/12/2019','ja-JP','lbxTransportationCost',N'輸送費','N','N') , (1999,'2/12/2019','ja-JP','lbxTRPApplies',N'TRPが適用されます','N','N') , (1999,'2/12/2019','ja-JP','lbxTRPIndicator',N'TRPインジケータ','N','N') , (1999,'2/12/2019','ja-JP','lbxTRPNotes',N'TRPノート','N','N') , (1999,'2/12/2019','ja-JP','lbxTSAApplies',N'TSA適用','N','N') , (1999,'2/12/2019','ja-JP','lbxTSAIndicator',N'TSA指標','N','N') , (1999,'2/12/2019','ja-JP','lbxTSANotes',N'TSAノート','N','N') , (1999,'2/12/2019','ja-JP','lbxTTBApplies',N'TTBが適用されます','N','N') , (1999,'2/12/2019','ja-JP','lbxTTBIndicator',N'TTBインジケータ','N','N') , (1999,'2/12/2019','ja-JP','lbxTTBNotes',N'TTBノート','N','N') , (1999,'2/12/2019','ja-JP','lbxTVM',N'取引額%','N','N') , (1999,'2/12/2019','ja-JP','lbxTxnQtyUom',N'取引数量単位','N','N') , (1999,'2/12/2019','ja-JP','lbxUENNo',N'エンティティ識別子/ UEN番号','N','N') , (1999,'2/12/2019','ja-JP','lbxUnitCount',N'ユニット数','N','N') , (1999,'2/12/2019','ja-JP','lbxUnitOfMeasure',N'測定の単位','N','N') , (1999,'2/12/2019','ja-JP','lbxUnitPrice',N'単価','N','N') , (1999,'2/12/2019','ja-JP','lbxUnits',N'単位','N','N') , (1999,'2/12/2019','ja-JP','lbxUNNum',N'国連番号','N','N') , (1999,'2/12/2019','ja-JP','lbxUNPackagingCode',N'UNパッケージコード','N','N') , (1999,'2/12/2019','ja-JP','lbxUnreadMessage',N'未読','N','N') , (1999,'2/12/2019','ja-JP','lbxUpdateContactRWTitle',N'連絡先情報を編集する','N','N') , (1999,'2/12/2019','ja-JP','lbxUpdateInProgress',N'更新中...','N','N') , (1999,'2/12/2019','ja-JP','lbxUploadDone',N'(保存された)','N','N') , (1999,'2/12/2019','ja-JP','lbxUploadDoneNQ',N'(保存された)','N','N') , (1999,'2/12/2019','ja-JP','lbxUploadIndicator',N'署名入り証明書:','N','N') , (1999,'2/12/2019','ja-JP','lbxUploadIndicatorNQ',N'署名された非FTA文書:','N','N') , (1999,'2/12/2019','ja-JP','lbxUploadItemDataRWTitle',N'スプレッドシートからアイテムデータをアップロードする','N','N') , (1999,'2/12/2019','ja-JP','lbxUploadMA',N'署名された製造業者の宣誓供述書:','N','N') , (1999,'2/12/2019','ja-JP','lbxUploadNonQual',N'署名された非FTA文書:','N','N') , (1999,'2/12/2019','ja-JP','lbxUploadQual',N'署名入り証明書:','N','N') , (1999,'2/12/2019','ja-JP','lbxUploadRulesInfo',N'[ファイルの選択]をクリックしてファイルを検索して、スプレッドシートをアップロードします。','N','N') , (1999,'2/12/2019','ja-JP','lbxUploadRWTitle',N'スプレッドシートからアイテムデータをアップロードする','N','N') , (1999,'2/12/2019','ja-JP','lbxUploadSequenceInfo',N'[ファイルの選択]をクリックしてファイルを検索して、ルールパーツのスプレッドシートをアップロードします。','N','N') , (1999,'2/12/2019','ja-JP','lbxUS PGA Flag',N'米国PGA旗','N','N') , (1999,'2/12/2019','ja-JP','lbxUseBillOfLading',N'BillOfLadingを使用する','N','N') , (1999,'2/12/2019','ja-JP','lbxUseCompanyPlace',N'会社の場所を使用する','N','N') , (1999,'2/12/2019','ja-JP','lbxUseContinuation',N'継続を使用する','N','N') , (1999,'2/12/2019','ja-JP','lbxUseCountryOfDestination',N'CountryOfDestinationを使用する','N','N') , (1999,'2/12/2019','ja-JP','lbxUseCumulationCountries',N'CumulationCountriesを使用する','N','N') , (1999,'2/12/2019','ja-JP','lbxUseCumulationIndicator',N'CumulationIndicatorを使用する','N','N') , (1999,'2/12/2019','ja-JP','lbxUseCurrency',N'通貨を使用する','N','N') , (1999,'2/12/2019','ja-JP','lbxUseDeMinimisNC',N'DeMinimisは純費用を使用します','N','N') , (1999,'2/12/2019','ja-JP','lbxUseDepartureDate',N'出発日を使用する','N','N') , (1999,'2/12/2019','ja-JP','lbxUseImportingCountry',N'ImportingCountryを使用する','N','N') , (1999,'2/12/2019','ja-JP','lbxUseInvoice',N'請求書を使用する','N','N') , (1999,'2/12/2019','ja-JP','lbxUseInvoiceDate',N'請求書日付を使用','N','N') , (1999,'2/12/2019','ja-JP','lbxUseIssuingCountry',N'IssuingCountryを使用する','N','N') , (1999,'2/12/2019','ja-JP','lbxUseMarksNumbers',N'マークと数字を使用する','N','N') , (1999,'2/12/2019','ja-JP','lbxUsemisc',N'その他の列を使用する','N','N') , (1999,'2/12/2019','ja-JP','lbxUseNetCost',N'純費用を使用する','N','N') , (1999,'2/12/2019','ja-JP','lbxUseOriginatingCountries',N'OriginatingCountriesを使用する','N','N') , (1999,'2/12/2019','ja-JP','lbxUseOtherExporter',N'その他使用:','N','N') , (1999,'2/12/2019','ja-JP','lbxUseOtherImporter',N'その他使用:','N','N') , (1999,'2/12/2019','ja-JP','lbxUseOtherParty',N'その他使用:','N','N') , (1999,'2/12/2019','ja-JP','lbxUseOtherProducer',N'その他使用:','N','N') , (1999,'2/12/2019','ja-JP','lbxUsePackages',N'パッケージを使用する','N','N') , (1999,'2/12/2019','ja-JP','lbxUsePhytosanitaryITDICertNum',N'PhytosanitaryITDICertNumを使用','N','N') , (1999,'2/12/2019','ja-JP','lbxUsePortOfDischarge',N'PortOfDischargeを使用する','N','N') , (1999,'2/12/2019','ja-JP','lbxUsePortOfLading',N'PortOfLadingを使用する','N','N') , (1999,'2/12/2019','ja-JP','lbxUsePrefCrit',N'設定基準を使用する','N','N') , (1999,'2/12/2019','ja-JP','lbxUseProducer',N'プロデューサーを使用する','N','N') , (1999,'2/12/2019','ja-JP','lbxUseQualifying',N'適格な列を使用する','N','N') , (1999,'2/12/2019','ja-JP','lbxUseRemarks',N'備考を使用','N','N') , (1999,'2/12/2019','ja-JP','lbxUserSettings',N'ユーザー設定','N','N') , (1999,'2/12/2019','ja-JP','lbxUsesHSNum',N'HS番号を使用','N','N') , (1999,'2/12/2019','ja-JP','lbxUseSignature',N'署名を使用するか?','N','N') , (1999,'2/12/2019','ja-JP','lbxUseSpecificCircumstances',N'特定の状況を使用する','N','N') , (1999,'2/12/2019','ja-JP','lbxUseSupportingDocuments',N'SupportingDocumentsを使用する','N','N') , (1999,'2/12/2019','ja-JP','lbxUseTransportDetail',N'TransportDetailを使用します。','N','N') , (1999,'2/12/2019','ja-JP','lbxUseValue',N'価値を使用する','N','N') , (1999,'2/12/2019','ja-JP','lbxUseVesselOrAircraftNum',N'VesselOrAircraftNumを使用する','N','N') , (1999,'2/12/2019','ja-JP','lbxUseWeightQty',N'総重量/数量を使用する','N','N') , (1999,'2/12/2019','ja-JP','lbxUSGCS03',N'USGCS03','N','N') , (1999,'2/12/2019','ja-JP','lbxUSGCS07',N'USGCS07','N','N') , (1999,'2/12/2019','ja-JP','lbxUTCApplies',N'UTCが適用されます','N','N') , (1999,'2/12/2019','ja-JP','lbxUTCIndicator',N'UTCインジケータ','N','N') , (1999,'2/12/2019','ja-JP','lbxUTCNotes',N'UTCノート','N','N') , (1999,'2/12/2019','ja-JP','lbxValidationMessagesNoRecords',N'レコードが返されませんでした ''','N','N') , (1999,'2/12/2019','ja-JP','lbxValue',N'値','N','N') , (1999,'2/12/2019','ja-JP','lbxValue2',N'値2','N','N') , (1999,'2/12/2019','ja-JP','lbxValueOfItem',N'アイテムの価値','N','N') , (1999,'2/12/2019','ja-JP','lbxValues',N'値','N','N') , (1999,'2/12/2019','ja-JP','lbxVATCharges',N'付加価値税/ GST','N','N') , (1999,'2/12/2019','ja-JP','lbxVATChargesEmpty',N'グローバル貿易内容には、このHS番号に関連する「VAT / GST」はありません。','N','N') , (1999,'2/12/2019','ja-JP','lbxVersionLabel',N'バージョン','N','N') , (1999,'2/12/2019','ja-JP','lbxView',N'表示:','N','N') , (1999,'2/12/2019','ja-JP','lbxViewDetails',N'詳細を見る','N','N') , (1999,'2/12/2019','ja-JP','lbxViewMessage',N'ユーザーにこのレコードを表示する権限がない','N','N') , (1999,'2/12/2019','ja-JP','lbxViewSelectionSettings',N'どちらのビューをデフォルトにしたいですか?','N','N') , (1999,'2/12/2019','ja-JP','lbxVoidExplainRW',N'ボイドの説明','N','N') , (1999,'2/12/2019','ja-JP','lbxVoidExplanation',N'ボイドの説明','N','N') , (1999,'2/12/2019','ja-JP','lbxVoidReasonCode',N'無効理由コード','N','N') , (1999,'2/12/2019','ja-JP','lbxVoidReasonRW',N'無効理由コード','N','N') , (1999,'2/12/2019','ja-JP','lbxVoidRecord',N'このOriginレコードを無効にしてもよろしいですか?','N','N') , (1999,'2/12/2019','ja-JP','lbxVoidRWTitle',N'ボイドクライテリア','N','N') , (1999,'2/12/2019','ja-JP','lbxWCONOTESMenu',N'WCOメモ','N','N') , (1999,'2/12/2019','ja-JP','lbxWebLinks',N'Webリンク','N','N') , (1999,'2/12/2019','ja-JP','lbxWeight',N'重量','N','N') , (1999,'2/12/2019','ja-JP','lbxWeightQtyLabel',N'重量または数量を表示しますか?','N','N') , (1999,'2/12/2019','ja-JP','lbxWeightUom',N'重量UOM','N','N') , (1999,'2/12/2019','ja-JP','lbxWelcome',N'ようこそ','N','N') , (1999,'2/12/2019','ja-JP','lbxWtUOM',N'Wt。UOM','N','N') , (1999,'2/12/2019','ja-JP','lbxZoneStatusCode',N'ゾーンステータスコード','N','N') , (1999,'2/12/2019','ja-JP','Legal Entity Name',N'法人名','N','N') , (1999,'2/12/2019','ja-JP','LegalEntityName',N'法人名','N','N') , (1999,'2/12/2019','ja-JP','LegalTextDescriptionGuid',N'法的テキスト説明ID','N','N') , (1999,'2/12/2019','ja-JP','Level',N'レベル','N','N') , (1999,'2/12/2019','ja-JP','LicenseCondition',N'ライセンス条件','N','N') , (1999,'2/12/2019','ja-JP','LicenseNum',N'ライセンス番号','N','N') , (1999,'2/12/2019','ja-JP','Line Item',N'ラインアイテム','N','N') , (1999,'2/12/2019','ja-JP','LineNumber',N'行番号','N','N') , (1999,'2/12/2019','ja-JP','Link',N'リンク','N','N') , (1999,'2/12/2019','ja-JP','LiquorTaxCode',N'酒税コード','N','N') , (1999,'2/12/2019','ja-JP','ListDate',N'リストの日付','N','N') , (1999,'2/12/2019','ja-JP','ListGroupName',N'リストグループ名','N','N') , (1999,'2/12/2019','ja-JP','ListName',N'リスト名','N','N') , (1999,'2/12/2019','ja-JP','LMWExemptFlag',N'LMW免除フラグ','N','N') , (1999,'2/12/2019','ja-JP','lnx Export',N'エクセルの出力','N','N') , (1999,'2/12/2019','ja-JP','lnx Upload Item Data',N'エクセルのアップロード','N','N') , (1999,'2/12/2019','ja-JP','lnxActiveSearch',N'サーチ','N','N') , (1999,'2/12/2019','ja-JP','lnxAddAll',N'全て追加する','N','N') , (1999,'2/12/2019','ja-JP','lnxAddComment',N'コメントを追加','N','N') , (1999,'2/12/2019','ja-JP','lnxAddCopyFTA',N'他のFTAからのコピー','N','N') , (1999,'2/12/2019','ja-JP','lnxAddCountry',N'国を追加','N','N') , (1999,'2/12/2019','ja-JP','lnxAddCustomer',N'顧客を追加','N','N') , (1999,'2/12/2019','ja-JP','lnxAddNetCost',N'純費用を追加','N','N') , (1999,'2/12/2019','ja-JP','lnxAddNote',N'メモを追加','N','N') , (1999,'2/12/2019','ja-JP','lnxAddPartiesAcceptedValues',N'パーティーに受け入れられる値を追加する','N','N') , (1999,'2/12/2019','ja-JP','lnxAddParty',N'パーティーを追加','N','N') , (1999,'2/12/2019','ja-JP','lnxAddPrefCrit',N'嗜好基準を追加する','N','N') , (1999,'2/12/2019','ja-JP','lnxAddProducer',N'プロデューサーを追加','N','N') , (1999,'2/12/2019','ja-JP','lnxAddProducts',N'製品を追加','N','N') , (1999,'2/12/2019','ja-JP','lnxAddResultParsing',N'結果の解析を追加','N','N') , (1999,'2/12/2019','ja-JP','lnxAddRow',N'行を追加','N','N') , (1999,'2/12/2019','ja-JP','lnxAddRulesEntry',N'ルールエントリの列を追加する','N','N') , (1999,'2/12/2019','ja-JP','lnxAddSelected',N'選択項目を追加','N','N') , (1999,'2/12/2019','ja-JP','lnxApply',N'適用','N','N') , (1999,'2/12/2019','ja-JP','lnxApplyData',N'アイテムにスプレッドシート値を適用する','N','N') , (1999,'2/12/2019','ja-JP','lnxApplyExEdit',N'輸出業者情報を保存する','N','N') , (1999,'2/12/2019','ja-JP','lnxApplyImEdit',N'輸入者情報を保存する','N','N') , (1999,'2/12/2019','ja-JP','lnxApplyOtherDoc',N'チェック項目に文書を保存して添付','N','N') , (1999,'2/12/2019','ja-JP','lnxApplyPaEdit',N'パーティー情報を保存する','N','N') , (1999,'2/12/2019','ja-JP','lnxApplyPrEdit',N'プロデューサー情報を保存','N','N') , (1999,'2/12/2019','ja-JP','lnxApplyReqData',N'アップロードされたデータを適用する','N','N') , (1999,'2/12/2019','ja-JP','lnxApplyRulesData',N'スプレッドシートのルールを適用する挿入','N','N') , (1999,'2/12/2019','ja-JP','lnxApplySequenceData',N'スプレッドシートシーケンスの更新を適用する','N','N') , (1999,'2/12/2019','ja-JP','lnxArchive',N'アーカイブ','N','N') , (1999,'2/12/2019','ja-JP','lnxAttachDocument',N'他のドキュメントを添付する','N','N') , (1999,'2/12/2019','ja-JP','lnxbtn Doc Creation',N'証明書の作成','N','N') , (1999,'2/12/2019','ja-JP','lnxbtn Export',N'エクセルの出力','N','N') , (1999,'2/12/2019','ja-JP','lnxbtn Reset Grid Config',N'グリッド設定のリセット','N','N') , (1999,'2/12/2019','ja-JP','lnxbtn Save Grid Config',N'グリッド設定を保存','N','N') , (1999,'2/12/2019','ja-JP','lnxbtn Statistical Classifier',N'統計的分類','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnAdd',N'追加','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnAddAttachment',N'添付ファイルを追加する','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnAdditionalExportControls',N'EU向け追加輸出規制はEUGで可能 - 輸出関税スケジュール','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnAddParties',N'パーティーを追加','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnAddParty',N'セーブ','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnAddRecord',N'新しいレコードを追加','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnAdvancedOptions',N'(高度なオプションを表示)','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnApply',N'適用','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnApply_Cancel',N'キャンセル','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnApply_Go',N'行く...','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnApply_ModalPopupExtender',N'適用','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnApply_Update',N'更新','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnApplyUpdate',N'アップデートを適用する','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnApprove',N'監査を承認する','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnAssignTo',N'に割り当てられた:','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnAttachDocuments',N'添付文書','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnAttachments',N'添付ファイル','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnAttachViewDocuments',N'ドキュメントの添付/表示','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnCancel',N'キャンセル','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnCancelLoading',N'キャンセル','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnClearFieldsToAdd',N'追加するフィールドのクリア','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnClearForm',N'明確な形','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnClearModifyFields',N'フィールドの変更をクリア','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnClearSelectAll',N'選択/すべてクリア','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnCloseEmailModal',N'電子メールを送信しない','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnCloseSearch',N'閉じる検索','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnCommitRequest',N'更新リクエスト','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnCopy',N'コピー','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnCopySearch',N'新しい検索をコピーする','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnCreateProducts',N'製品を作成する','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnDelete',N'削除','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnDeleteComponentCancel',N'キャンセル','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnDeleteComponentYes',N'はい','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnDeleteNo',N'いいえ','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnDeleteSearch',N'検索を削除する','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnDeleteYes',N'はい','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnDocCreation',N'証明書の作成','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnEdit',N'編集','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnEditSearch',N'検索の編集','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnExport',N'エクセルの出力','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnExportToExcel',N'Excelにエクスポート','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnExportToPdf',N'PDFへのエクスポート','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnFilter',N'フィルタの表示/非表示','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnFilterResultDescription',N'フィルタを適用','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnGenCertificate',N'証明書を生成する','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnGeneralRules',N'統一されたスケジュールの解釈に関する一般規則','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnGeneratedInputsUOMOther_Cancel',N'キャンセル','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnGeneratedInputsUOMOther_Save',N'セーブ','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnGenerateLinkClear',N'最近の検索のクリア','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnGenNQLetter',N'非修飾文字を生成する','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnHideShowFilter',N'フィルタの表示/非表示','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnHSNumberSettingsCancel',N'キャンセル','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnHSNumberSettingsSave',N'次','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnInitInsertFunction',N'新しい機能を追加する','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnInitInsertParameter',N'新しいパラメータを追加','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnMakeFavorite',N'お気に入りにする','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnManageSearches',N'検索の管理','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnManageSearchesCancel',N'閉じる','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnManageSearchesTitle',N'検索の管理','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnMultipleMatchingECNCancel',N'閉じる','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnNew',N'新しい','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnNewSearch',N'サーチ','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnNewSearchDefaultSearch',N'デフォルトの検索','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnNo',N'いいえ','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnOverrideHold',N'オーバーライド警告','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnPastUpdatesDetailCancel',N'閉じる','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnPastUpdatesDetailGridViewCancel',N'閉じる','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnPrevious',N'前のページに戻る','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnQuickSearch',N'クイック検索','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnRecentSearchesCancel',N'閉じる','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnRecentSearchesClear',N'最近の検索のクリア','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnRefreshGrid',N'リフレッシュ','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnReleaseNotesLink',N'(ここをクリックして読む)','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnReport',N'レポートを生成する','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnResetGridConfig',N'グリッド設定のリセット','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnResultsDetail0_AddNewCharge',N'新しい料金を追加','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnResultsDetail0_Calculate',N'計算をリフレッシュする','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnResultsDetail0_Calculate2',N'計算をリフレッシュする','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnResultsDetail1_AddNewCharge',N'新しい料金を追加','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnResultsDetail1_Calculate',N'計算をリフレッシュする','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnResultsDetail1_Calculate2',N'計算をリフレッシュする','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnReturnToDashboard',N'ダッシュボードに戻る','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnReturnWCOHierarchy',N'WCO階層のリセット','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnRWSave',N'検索を保存する','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnRWUpdate',N'検索の更新','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnSave',N'セーブ','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnSave2',N'セーブ','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnSaveAndClose',N'保存して閉じます','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnSaveFTADetail',N'セーブ','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnSaveGridConfig',N'グリッド設定を保存','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnSaveSearch',N'保存検索','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnSaveSearches_Cancel',N'キャンセル','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnSaveSearches_Save',N'セーブ','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnSaveSearchesCancel',N'閉じる','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnSaveSigned',N'署名付き証明書を保存する','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnSaveSignedNQ',N'署名された非FTAの手紙を保存する','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnSaveTemplate',N'テンプレートを作成する','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnSearch',N'サーチ','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnSearchDetail',N'高度な検索','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnSearchHeading',N'サーチ','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnSearchProfile',N'検索プロファイル','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnSelectDetail',N'詳細を選択','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnSelectHeader',N'ヘッダを選択','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnSelectSearch',N'検索を選択','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnSendEmail',N'メールを送る','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnSendEmailModal',N'メールを送る','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnSettingsRemindMeLater',N'後で私に思い出させる','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnSettingsSave',N'次','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnSetupProfileLater',N'後で私に思い出させる','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnSetupProfileYes',N'はい','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnSetupUserCustomization',N'(ここをクリックして開始してください)','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnShowAllHSNumbers',N'すべてのHS番号を表示','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnShowAllNews',N'すべてのニュースを表示','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnShowChapter',N'全体の章を表示','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnShowMessages',N'検証メッセージの表示/非表示','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnStatisticalClassifier',N'統計的分類','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnStatusBarSearch',N'サーチ','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnSubmit',N'提出する','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnSubmitFailedBOM',N'レポートをキューに送信する','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnTermsOfUse',N'利用規約','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnTestPrint',N'印刷','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnTop',N'トップに戻る','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnUnsavedSearchesCancel',N'閉じる','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnUnsavedSearchesClear',N'すべての未保存の検索を消去する','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnUpdate',N'更新','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnUpdateSearch',N'表示されたフィールドの更新','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnUpdateSearches',N'検索の更新','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnUpdateSearchSelected',N'検索選択を更新','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnUploadItems',N'アイテムにアップロード','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnViewSettingsCancel',N'キャンセル','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnViewSettingsSave',N'セーブ','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnWordFavorite',N'お気に入り','N','N') , (1999,'2/12/2019','ja-JP','lnxbtnYes',N'はい','N','N') , (1999,'2/12/2019','ja-JP','lnxCancelAcceptNonqual',N'キャンセル','N','N') , (1999,'2/12/2019','ja-JP','lnxCancelAcceptQual',N'キャンセル','N','N') , (1999,'2/12/2019','ja-JP','lnxCancelCopy',N'キャンセル','N','N') , (1999,'2/12/2019','ja-JP','lnxCancelNote',N'キャンセル','N','N') , (1999,'2/12/2019','ja-JP','lnxCancelOrigin',N'キャンセル','N','N') , (1999,'2/12/2019','ja-JP','lnxCancelParty',N'キャンセル','N','N') , (1999,'2/12/2019','ja-JP','lnxCancelReject',N'キャンセル','N','N') , (1999,'2/12/2019','ja-JP','lnxCancelRejectObsolete',N'キャンセル','N','N') , (1999,'2/12/2019','ja-JP','lnxClear',N'クリア','N','N') , (1999,'2/12/2019','ja-JP','lnxClearAll',N'選択項目をクリア','N','N') , (1999,'2/12/2019','ja-JP','lnxClearChosenPCs',N'リストのクリアと再起動','N','N') , (1999,'2/12/2019','ja-JP','lnxClose',N'閉じる','N','N') , (1999,'2/12/2019','ja-JP','lnxCommentAdd',N'追加','N','N') , (1999,'2/12/2019','ja-JP','lnxCommentCancel',N'キャンセル','N','N') , (1999,'2/12/2019','ja-JP','lnxCommunitySelect',N'国を選択','N','N') , (1999,'2/12/2019','ja-JP','lnxConfirmAcceptNonqual',N'同意する','N','N') , (1999,'2/12/2019','ja-JP','lnxConfirmAcceptQual',N'同意する','N','N') , (1999,'2/12/2019','ja-JP','lnxConfirmApply',N'適用','N','N') , (1999,'2/12/2019','ja-JP','lnxConfirmCancel',N'キャンセル','N','N') , (1999,'2/12/2019','ja-JP','lnxConfirmReject',N'拒否','N','N') , (1999,'2/12/2019','ja-JP','lnxConfirmRejectObsolete',N'拒否','N','N') , (1999,'2/12/2019','ja-JP','lnxCopy',N'コピー','N','N') , (1999,'2/12/2019','ja-JP','lnxCopyAgreement',N'完全合意のコピー','N','N') , (1999,'2/12/2019','ja-JP','lnxCopyCancel',N'キャンセル','N','N') , (1999,'2/12/2019','ja-JP','lnxCopyChapter',N'章をコピーする','N','N') , (1999,'2/12/2019','ja-JP','lnxCopyConfirm',N'コピー','N','N') , (1999,'2/12/2019','ja-JP','lnxCopyFromPrevYear',N'前年の募集からのコピー','N','N') , (1999,'2/12/2019','ja-JP','lnxCopyFTAParty',N'セーブ','N','N') , (1999,'2/12/2019','ja-JP','lnxCopyFTAProdValues',N'他のタブから値をコピーする','N','N') , (1999,'2/12/2019','ja-JP','lnxCopyLocal',N'ローカルコピーを作成する','N','N') , (1999,'2/12/2019','ja-JP','lnxCopyRequest',N'コピーリクエスト','N','N') , (1999,'2/12/2019','ja-JP','lnxCopySelectedRule',N'選択したルールをコピーする','N','N') , (1999,'2/12/2019','ja-JP','lnxCopyWindow',N'ルールのコピー','N','N') , (1999,'2/12/2019','ja-JP','lnxCountryHsDescHeader',N'米国のHSの説明','N','N') , (1999,'2/12/2019','ja-JP','lnxCountryHsNumOne',N'米国のHS番号','N','N') , (1999,'2/12/2019','ja-JP','lnxCountryProductDescHeaderOne',N'商品説明','N','N') , (1999,'2/12/2019','ja-JP','lnxCreate',N'新しいリクエストを作成する','N','N') , (1999,'2/12/2019','ja-JP','lnxCreatedCerts',N'作成された証明書','N','N') , (1999,'2/12/2019','ja-JP','lnxCreateLaunch',N'作成する','N','N') , (1999,'2/12/2019','ja-JP','lnxCreateNew',N'新しいリクエストを作成する','N','N') , (1999,'2/12/2019','ja-JP','lnxDelete',N'複数を削除','N','N') , (1999,'2/12/2019','ja-JP','lnxDissociateAgreement',N'完全合意を解消する','N','N') , (1999,'2/12/2019','ja-JP','lnxDissociateCancel',N'キャンセル','N','N') , (1999,'2/12/2019','ja-JP','lnxDissociateChapter',N'解離の章','N','N') , (1999,'2/12/2019','ja-JP','lnxDissociateConfirm',N'確認','N','N') , (1999,'2/12/2019','ja-JP','lnxDissociateSelectedRule',N'選択したルールを解消する','N','N') , (1999,'2/12/2019','ja-JP','lnxDissociateWindow',N'解離規則','N','N') , (1999,'2/12/2019','ja-JP','lnxDuplicate',N'重複ルール','N','N') , (1999,'2/12/2019','ja-JP','lnxEdit',N'編集','N','N') , (1999,'2/12/2019','ja-JP','lnxEditExporter',N'編集','N','N') , (1999,'2/12/2019','ja-JP','lnxEditImporter',N'編集','N','N') , (1999,'2/12/2019','ja-JP','lnxEditParties',N'パーティ情報の編集','N','N') , (1999,'2/12/2019','ja-JP','lnxEmailCancel',N'キャンセル','N','N') , (1999,'2/12/2019','ja-JP','lnxEmailManagement',N'メール管理','N','N') , (1999,'2/12/2019','ja-JP','lnxExport',N'エクセルの出力','N','N') , (1999,'2/12/2019','ja-JP','lnxExporting',N'エクスポート:複数の宛先への単一のエクスポータ','N','N') , (1999,'2/12/2019','ja-JP','lnxExportSingleChanges',N'何があれば印刷しますか?報告する','N','N') , (1999,'2/12/2019','ja-JP','lnxExportWhatIfResults',N'何があれば印刷しますか?報告する','N','N') , (1999,'2/12/2019','ja-JP','lnxFacilityOwnership_Add',N'追加 ''','N','N') , (1999,'2/12/2019','ja-JP','lnxFacilityOwnership_AddAll',N'全て追加する''','N','N') , (1999,'2/12/2019','ja-JP','lnxFacilityOwnership_Save',N'変更内容を保存''','N','N') , (1999,'2/12/2019','ja-JP','lnxFakeSubmit',N'ドキュメントを提出する','N','N') , (1999,'2/12/2019','ja-JP','lnxFill',N'ソースから塗りつぶす','N','N') , (1999,'2/12/2019','ja-JP','lnxFTASelect',N'FTAの選択','N','N') , (1999,'2/12/2019','ja-JP','lnxGenCert',N'証明書を生成する','N','N') , (1999,'2/12/2019','ja-JP','lnxGenerate',N'生成する','N','N') , (1999,'2/12/2019','ja-JP','lnxGenerateMass',N'BOMの認証','N','N') , (1999,'2/12/2019','ja-JP','lnxGenerateSingle',N'BOMの認証','N','N') , (1999,'2/12/2019','ja-JP','lnxGenNonCert',N'非修飾文字を生成する','N','N') , (1999,'2/12/2019','ja-JP','lnxHelp',N'指示','N','N') , (1999,'2/12/2019','ja-JP','lnxInactiveSearch',N'サーチ','N','N') , (1999,'2/12/2019','ja-JP','lnxInitCountriesCopy',N'ローカルパートナーにコピー','N','N') , (1999,'2/12/2019','ja-JP','lnxInitiateCopy',N'コピーリクエスト','N','N') , (1999,'2/12/2019','ja-JP','lnxInitInfoCopy',N'ローカルパートナーにコピー','N','N') , (1999,'2/12/2019','ja-JP','lnxInitInsert',N'顧客を追加','N','N') , (1999,'2/12/2019','ja-JP','lnxInitNCCopy',N'ローカルパートナーにコピー','N','N') , (1999,'2/12/2019','ja-JP','lnxInitPCCopy',N'ローカルパートナーにコピー','N','N') , (1999,'2/12/2019','ja-JP','lnxInitProdCopy',N'ローカルパートナーにコピー','N','N') , (1999,'2/12/2019','ja-JP','lnxInsertAND',N'AND最後の2つの詳細','N','N') , (1999,'2/12/2019','ja-JP','lnxInsertOR',N'OR最後の2つの詳細','N','N') , (1999,'2/12/2019','ja-JP','lnxInstructions',N'スプレッドシートの手順','N','N') , (1999,'2/12/2019','ja-JP','lnxLaunchBOMWorkflow',N'すべての部品表を処理する','N','N') , (1999,'2/12/2019','ja-JP','lnxLaunchSaveAll',N'すべてを救う','N','N') , (1999,'2/12/2019','ja-JP','lnxLaunchWhatIf',N'実行する場合は何ですか?','N','N') , (1999,'2/12/2019','ja-JP','lnxLaunchWithFilter',N'選択した基準によるBOMの処理','N','N') , (1999,'2/12/2019','ja-JP','lnxLTSDCumulationSelect',N'国を選択','N','N') , (1999,'2/12/2019','ja-JP','lnxLTSDRWCommunity',N'選択した国を使用する','N','N') , (1999,'2/12/2019','ja-JP','lnxLTSDRWCumulation',N'選択した国を使用する','N','N') , (1999,'2/12/2019','ja-JP','lnxMappedHsNumHeader',N'マップされた米国のHS番号','N','N') , (1999,'2/12/2019','ja-JP','lnxMassCOOCertify',N'選択した結果を受け入れる','N','N') , (1999,'2/12/2019','ja-JP','lnxMassMCS',N'MCSレポートの作成','N','N') , (1999,'2/12/2019','ja-JP','lnxMassSearch',N'サーチ','N','N') , (1999,'2/12/2019','ja-JP','lnxMassUpdate',N'選択した製品を更新する','N','N') , (1999,'2/12/2019','ja-JP','lnxNew',N'新しい','N','N') , (1999,'2/12/2019','ja-JP','lnxNewFG',N'新しい','N','N') , (1999,'2/12/2019','ja-JP','lnxNewRequest',N'新しいリクエストを作成する','N','N') , (1999,'2/12/2019','ja-JP','lnxNoteAdd',N'追加','N','N') , (1999,'2/12/2019','ja-JP','lnxNoteCancel',N'キャンセル','N','N') , (1999,'2/12/2019','ja-JP','lnxNoVoid',N'キャンセル','N','N') , (1999,'2/12/2019','ja-JP','lnxObsoleteRecords',N'無効なレコード/廃止されたレコードを拒否する','N','N') , (1999,'2/12/2019','ja-JP','lnxPCHSOverride',N'PCのHS番号オーバーライド','N','N') , (1999,'2/12/2019','ja-JP','lnxProductSearch',N'サーチ…','N','N') , (1999,'2/12/2019','ja-JP','lnxProductSelect',N'複数の製品を選択','N','N') , (1999,'2/12/2019','ja-JP','lnxRefresh',N'リフレッシュ','N','N') , (1999,'2/12/2019','ja-JP','lnxReminder',N'リマインダー情報を更新する','N','N') , (1999,'2/12/2019','ja-JP','lnxReminderCancel',N'キャンセル','N','N') , (1999,'2/12/2019','ja-JP','lnxRemoveAllInvalid',N'すべて削除する','N','N') , (1999,'2/12/2019','ja-JP','lnxRemoveAllSelected',N'すべて削除する','N','N') , (1999,'2/12/2019','ja-JP','lnxRemoveInvalid',N'削除選択','N','N') , (1999,'2/12/2019','ja-JP','lnxRemoveSelected',N'削除選択','N','N') , (1999,'2/12/2019','ja-JP','lnxReportHistory',N'レポートの履歴','N','N') , (1999,'2/12/2019','ja-JP','lnxReqCertificate',N'証明書を要求する','N','N') , (1999,'2/12/2019','ja-JP','lnxReqProductSearch',N'要求に応じて製品を追加','N','N') , (1999,'2/12/2019','ja-JP','lnxResetChosenBOM',N'選択したBOMをリセットする','N','N') , (1999,'2/12/2019','ja-JP','lnxResetChosenPCs',N'コンポーネントリストをリセットする','N','N') , (1999,'2/12/2019','ja-JP','lnxRevalidate',N'選択の再検証','N','N') , (1999,'2/12/2019','ja-JP','lnxRuleNameOther',N'追加結果の表示','N','N') , (1999,'2/12/2019','ja-JP','lnxRulesUpload',N'アップロードルール','N','N') , (1999,'2/12/2019','ja-JP','lnxrwAddNote',N'追加','N','N') , (1999,'2/12/2019','ja-JP','lnxrwCancelNote',N'キャンセル','N','N') , (1999,'2/12/2019','ja-JP','lnxrwPCSave',N'セーブ','N','N') , (1999,'2/12/2019','ja-JP','lnxrwPCSaveAndClose',N'保存して閉じます','N','N') , (1999,'2/12/2019','ja-JP','lnxSave',N'セーブ','N','N') , (1999,'2/12/2019','ja-JP','lnxSaveAddedFTA',N'セーブ','N','N') , (1999,'2/12/2019','ja-JP','lnxSaveClose',N'保存して閉じる','N','N') , (1999,'2/12/2019','ja-JP','lnxSaveConfirm',N'セーブ','N','N') , (1999,'2/12/2019','ja-JP','lnxSaveDates',N'選択に適用','N','N') , (1999,'2/12/2019','ja-JP','lnxSaveDetail',N'詳細を保存','N','N') , (1999,'2/12/2019','ja-JP','lnxSaveEmail',N'セーブ','N','N') , (1999,'2/12/2019','ja-JP','lnxSaveHeader',N'ヘッダーを保存','N','N') , (1999,'2/12/2019','ja-JP','lnxSaveInfo',N'ヘッダーと詳細情報を保存','N','N') , (1999,'2/12/2019','ja-JP','lnxSaveInfo2',N'ヘッダーと詳細情報を保存','N','N') , (1999,'2/12/2019','ja-JP','lnxSaveMass',N'セーブ','N','N') , (1999,'2/12/2019','ja-JP','lnxSaveMulti',N'セーブ','N','N') , (1999,'2/12/2019','ja-JP','lnxSaveMultiList',N'選択したリストを保存','N','N') , (1999,'2/12/2019','ja-JP','lnxSaveNote',N'セーブ','N','N') , (1999,'2/12/2019','ja-JP','lnxSaveOrigin',N'セーブ','N','N') , (1999,'2/12/2019','ja-JP','lnxSaveParties',N'続行前に保存','N','N') , (1999,'2/12/2019','ja-JP','lnxSaveParty',N'セーブ','N','N') , (1999,'2/12/2019','ja-JP','lnxSaveSigs',N'続行前に保存','N','N') , (1999,'2/12/2019','ja-JP','lnxSaveSingle',N'セーブ','N','N') , (1999,'2/12/2019','ja-JP','lnxSaveSingleBOM',N'変更されたBOMを保存','N','N') , (1999,'2/12/2019','ja-JP','lnxSearchGo',N'サーチ','N','N') , (1999,'2/12/2019','ja-JP','lnxSelect',N'選択','N','N') , (1999,'2/12/2019','ja-JP','lnxSelectBOM',N'BOMを選択','N','N') , (1999,'2/12/2019','ja-JP','lnxSelectDocument',N'ドキュメントを選択','N','N') , (1999,'2/12/2019','ja-JP','lnxSelectFTAs',N'選択されたFTAを使用する','N','N') , (1999,'2/12/2019','ja-JP','lnxSelectListHistory',N'保存リストを選択','N','N') , (1999,'2/12/2019','ja-JP','lnxSelectOriginRuleSets',N'選択したOriginルールセットを使用する','N','N') , (1999,'2/12/2019','ja-JP','lnxSelectPC',N'コンポーネントの選択','N','N') , (1999,'2/12/2019','ja-JP','lnxSelectProducts',N'製品を選択','N','N') , (1999,'2/12/2019','ja-JP','lnxSelectRecord',N'セレクト','N','N') , (1999,'2/12/2019','ja-JP','lnxSelectSingleHistory',N'保存されたBOMを選択','N','N') , (1999,'2/12/2019','ja-JP','lnxSend',N'送信','N','N') , (1999,'2/12/2019','ja-JP','lnxSendReminder',N'リマインダを今すぐ送信','N','N') , (1999,'2/12/2019','ja-JP','lnxShowContactInfo',N'アップデート情報','N','N') , (1999,'2/12/2019','ja-JP','lnxShowHide',N'フィルタの表示/非表示','N','N') , (1999,'2/12/2019','ja-JP','lnxShowReminder',N'リマインダを送信する','N','N') , (1999,'2/12/2019','ja-JP','lnxShowUpload',N'FTA XMLをアップロードする','N','N') , (1999,'2/12/2019','ja-JP','lnxSingleCOOCertify',N'選択した結果を受け入れる','N','N') , (1999,'2/12/2019','ja-JP','lnxSingleMCS',N'MCSレポートの作成','N','N') , (1999,'2/12/2019','ja-JP','lnxSingleReset',N'単一の分析をリセットする','N','N') , (1999,'2/12/2019','ja-JP','lnxSingleShipmentGenerate',N'生成する','N','N') , (1999,'2/12/2019','ja-JP','lnxSolicit',N'懇願製品','N','N') , (1999,'2/12/2019','ja-JP','lnxSourceDate',N'ソース日付','N','N') , (1999,'2/12/2019','ja-JP','lnxSourcing',N'インポート:複数のソースからシングルインポーターへ','N','N') , (1999,'2/12/2019','ja-JP','lnxSubmitCertificate',N'ドキュメントを提出する','N','N') , (1999,'2/12/2019','ja-JP','lnxSubmitReportCreation',N'レポートをキューに送信する','N','N') , (1999,'2/12/2019','ja-JP','lnxTariffAnalyzer',N'関税分析','N','N') , (1999,'2/12/2019','ja-JP','lnxUpdateContactInfo',N'情報を保存する','N','N') , (1999,'2/12/2019','ja-JP','lnxUpdateEmails',N'電子メールの更新','N','N') , (1999,'2/12/2019','ja-JP','lnxUpdateExporterInfo',N'輸出業者の情報を更新する','N','N') , (1999,'2/12/2019','ja-JP','lnxUpdateImporterInfo',N'輸入業者の情報を更新する','N','N') , (1999,'2/12/2019','ja-JP','lnxUpdateProducerInfo',N'プロデューサー情報の更新','N','N') , (1999,'2/12/2019','ja-JP','lnxUpdateReminders',N'更新日','N','N') , (1999,'2/12/2019','ja-JP','lnxUpload',N'スプレッドシートのアップロード','N','N') , (1999,'2/12/2019','ja-JP','lnxUploadBOM',N'BOMをアップロード','N','N') , (1999,'2/12/2019','ja-JP','lnxUploadInit',N'アップロード','N','N') , (1999,'2/12/2019','ja-JP','lnxUploadItemData',N'エクセルのアップロード','N','N') , (1999,'2/12/2019','ja-JP','lnxUploadLOA',N'ドキュメントをアップロードする','N','N') , (1999,'2/12/2019','ja-JP','lnxUploadSequenceLines',N'シーケンス行のアップロード','N','N') , (1999,'2/12/2019','ja-JP','lnxValidated',N'検証済み','N','N') , (1999,'2/12/2019','ja-JP','lnxValidated2',N'検証済み','N','N') , (1999,'2/12/2019','ja-JP','lnxValidated3',N'検証済み','N','N') , (1999,'2/12/2019','ja-JP','lnxValidateRule',N'構造的妥当性のテストルール','N','N') , (1999,'2/12/2019','ja-JP','lnxValidateSelected',N'選択した製品の検証','N','N') , (1999,'2/12/2019','ja-JP','lnxVoid',N'空','N','N') , (1999,'2/12/2019','ja-JP','lnxVoidRecords',N'すべての製品レコードを無効にする','N','N') , (1999,'2/12/2019','ja-JP','lnxYesVoid',N'空','N','N') , (1999,'2/12/2019','ja-JP','LoadSavedSearch.EmptyMessage',N'ビューの読み込み','N','N') , (1999,'2/12/2019','ja-JP','LoadSavedSearch.Text',N'ビューの読み込み','N','N') , (1999,'2/12/2019','ja-JP','LoadSavedSearch.ToolTip',N'後のセッションに前の列構成をロードする','N','N') , (1999,'2/12/2019','ja-JP','LocalContentPercentage',N'ローカルコンテンツパーセンテージ','N','N') , (1999,'2/12/2019','ja-JP','LogEntry',N'ログエントリ','N','N') , (1999,'2/12/2019','ja-JP','Lot',N'ロット','N','N') , (1999,'2/12/2019','ja-JP','LotNum',N'整理番号','N','N') , (1999,'2/12/2019','ja-JP','LuxuryCarTaxExemptionCode',N'高級車税免除コード','N','N') , (1999,'2/12/2019','ja-JP','MainCountry',N'主要国','N','N') , (1999,'2/12/2019','ja-JP','MainCountyHS',N'メイン郡HS','N','N') , (1999,'2/12/2019','ja-JP','MainGuid',N'メインID','N','N') , (1999,'2/12/2019','ja-JP','MaintenanceLogGuid',N'メンテナンスログID','N','N') , (1999,'2/12/2019','ja-JP','MaintenanceTypeFlag',N'メンテナンスタイプフラグ','N','N') , (1999,'2/12/2019','ja-JP','Manage Solicitation',N'依頼の管理','N','N') , (1999,'2/12/2019','ja-JP','Mandatory',N'必須','N','N') , (1999,'2/12/2019','ja-JP','Manufacturer',N'メーカー','N','N') , (1999,'2/12/2019','ja-JP','Manufacturer ID',N'メーカーID','N','N') , (1999,'2/12/2019','ja-JP','ManufacturerAddress1',N'製造元アドレス1','N','N') , (1999,'2/12/2019','ja-JP','ManufacturerAddress2',N'製造元住所2','N','N') , (1999,'2/12/2019','ja-JP','ManufacturerCity',N'メーカー都市','N','N') , (1999,'2/12/2019','ja-JP','ManufacturerCompanyID',N'メーカーの会社ID','N','N') , (1999,'2/12/2019','ja-JP','ManufacturerCountry',N'製造国','N','N') , (1999,'2/12/2019','ja-JP','ManufacturerID',N'メーカーID','N','N') , (1999,'2/12/2019','ja-JP','ManufacturerState',N'メーカーの状態','N','N') , (1999,'2/12/2019','ja-JP','ManufacturerZip',N'メーカー郵便番号','N','N') , (1999,'2/12/2019','ja-JP','MAPAApplies',N'MAPAが適用されます','N','N') , (1999,'2/12/2019','ja-JP','Mapped JP HS Number',N'マッピングされた日本のHS番号','N','N') , (1999,'2/12/2019','ja-JP','Mapped US HS Number',N'マップされた米国のHS番号','N','N') , (1999,'2/12/2019','ja-JP','MAQISApplies',N'MAQISが適用されます','N','N') , (1999,'2/12/2019','ja-JP','MARApplies',N'MAR適用','N','N') , (1999,'2/12/2019','ja-JP','MARIndicator',N'MAR指標','N','N') , (1999,'2/12/2019','ja-JP','MarinePollutant',N'海洋汚染物','N','N') , (1999,'2/12/2019','ja-JP','MarkingDetailType',N'マーキングの詳細タイプ','N','N') , (1999,'2/12/2019','ja-JP','MARNotes',N'3月','N','N') , (1999,'2/12/2019','ja-JP','Mass Analysis Result Reports',N'大量分析結果レポート','N','N') , (1999,'2/12/2019','ja-JP','Mass BOM Analysis Results',N'大量BOM解析結果','N','N') , (1999,'2/12/2019','ja-JP','MCAApplies',N'MCA適用','N','N') , (1999,'2/12/2019','ja-JP','MCHApplies',N'MCH Applies','N','N') , (1999,'2/12/2019','ja-JP','MCS Created Date',N'MCS作成日','N','N') , (1999,'2/12/2019','ja-JP','MCS Report',N'MCSレポート','N','N') , (1999,'2/12/2019','ja-JP','MCS Report Management',N'MCSレポート管理','N','N') , (1999,'2/12/2019','ja-JP','MCTApplies',N'MCT適用','N','N') , (1999,'2/12/2019','ja-JP','MDAApplies',N'MDA適用','N','N') , (1999,'2/12/2019','ja-JP','MDBApplies',N'MDB適用','N','N') , (1999,'2/12/2019','ja-JP','MDTCCApplies',N'MDTCCが適用されます','N','N') , (1999,'2/12/2019','ja-JP','Measures',N'措置','N','N') , (1999,'2/12/2019','ja-JP','MedicalDevicesSN',N'医療機器のシリアル番号','N','N') , (1999,'2/12/2019','ja-JP','MedicalRegApplies',N'医療規制が適用されます','N','N') , (1999,'2/12/2019','ja-JP','MELApplies',N'MEL Applies','N','N') , (1999,'2/12/2019','ja-JP','Memo Field',N'メモフィールド','N','N') , (1999,'2/12/2019','ja-JP','MercuryContent',N'水銀含有量','N','N') , (1999,'2/12/2019','ja-JP','Message',N'メッセージ','N','N') , (1999,'2/12/2019','ja-JP','MeterFigure',N'メーターフィギュア','N','N') , (1999,'2/12/2019','ja-JP','MFAApplies',N'MFA適用','N','N') , (1999,'2/12/2019','ja-JP','MHAApplies',N'MHA適用','N','N') , (1999,'2/12/2019','ja-JP','MinMax',N'最小最大','N','N') , (1999,'2/12/2019','ja-JP','misc',N'生産地','N','N') , (1999,'2/12/2019','ja-JP','Misc Alias',N'生産地','N','N') , (1999,'2/12/2019','ja-JP','MiscAlias',N'生産地','N','N') , (1999,'2/12/2019','ja-JP','MITIApplies',N'MITIが適用されます','N','N') , (1999,'2/12/2019','ja-JP','MOAAIApplies',N'MOAAIが適用されます','N','N') , (1999,'2/12/2019','ja-JP','MOAApplies',N'MOAが適用されます','N','N') , (1999,'2/12/2019','ja-JP','MOCApplies',N'MOCが適用されます','N','N') , (1999,'2/12/2019','ja-JP','Modal.CancelButton.Text',N'キャンセル','N','N') , (1999,'2/12/2019','ja-JP','Modal.NameLabel.Text',N'名','N','N') , (1999,'2/12/2019','ja-JP','Modal.NameLabel.Tooltip',N'あなたは何をその名前にしたいですか?','N','N') , (1999,'2/12/2019','ja-JP','Modal.NameTextbox.Text',N'@ UserName @ @ @ DateTime @','N','N') , (1999,'2/12/2019','ja-JP','Modal.OKButton.Text',N'[OK]','N','N') , (1999,'2/12/2019','ja-JP','Modal.PublicCheckbox.Text',N'この検索をすべてのユーザーと共有する','N','N') , (1999,'2/12/2019','ja-JP','Modal.PublicCheckbox.ToolTip',N'このボックスをオンにすると、この検索がすべてのユーザーの画面に追加されます','N','N') , (1999,'2/12/2019','ja-JP','Model',N'モデル','N','N') , (1999,'2/12/2019','ja-JP','ModelSpecification',N'モデル仕様','N','N') , (1999,'2/12/2019','ja-JP','ModifiedBy',N'によって変更','N','N') , (1999,'2/12/2019','ja-JP','ModifiedDate',N'変更日','N','N') , (1999,'2/12/2019','ja-JP','ModifyDate',N'日付の変更','N','N') , (1999,'2/12/2019','ja-JP','ModifyUser',N'ユーザーの変更','N','N') , (1999,'2/12/2019','ja-JP','MOHApplies',N'MOH Applies','N','N') , (1999,'2/12/2019','ja-JP','MOIApplies',N'MOIが適用されます','N','N') , (1999,'2/12/2019','ja-JP','MPFExempt',N'MPF免除','N','N') , (1999,'2/12/2019','ja-JP','MPIApplies',N'MPIが適用されます','N','N') , (1999,'2/12/2019','ja-JP','MPICode',N'MPIコード','N','N') , (1999,'2/12/2019','ja-JP','MPTRIApplies',N'MPTRIが適用されます','N','N') , (1999,'2/12/2019','ja-JP','MTIBApplies',N'MTIBが適用されます','N','N') , (1999,'2/12/2019','ja-JP','MTTApplies',N'MTTが適用されます','N','N') , (1999,'2/12/2019','ja-JP','MU misc',N'原産地','N','N') , (1999,'2/12/2019','ja-JP','MU Misc Alias',N'生産地','N','N') , (1999,'2/12/2019','ja-JP','MU Place of Production',N'生産地','N','N') , (1999,'2/12/2019','ja-JP','MU Placeof Production',N'生産地','N','N') , (1999,'2/12/2019','ja-JP','MUCOO',N'原産国','N','N') , (1999,'2/12/2019','ja-JP','Multiple BOM Calculator',N'複数のBOM電卓','N','N') , (1999,'2/12/2019','ja-JP','Multiple BOM Reports',N'複数のBOMレポート','N','N') , (1999,'2/12/2019','ja-JP','Multiplier',N'乗算器','N','N') , (1999,'2/12/2019','ja-JP','MUmisc',N'生産地','N','N') , (1999,'2/12/2019','ja-JP','MUMiscAlias',N'生産地','N','N') , (1999,'2/12/2019','ja-JP','MUPlace of Production',N'生産地','N','N') , (1999,'2/12/2019','ja-JP','MUPlaceofProduction',N'生産地','N','N') , (1999,'2/12/2019','ja-JP','MX',N'MX','N','N') , (1999,'2/12/2019','ja-JP','MXAMECAFE',N'MXAMECAFE','N','N') , (1999,'2/12/2019','ja-JP','MXCICOPLAFEST',N'MXCICOPLAFEST','N','N') , (1999,'2/12/2019','ja-JP','MXCNSNS',N'MXCNSNS','N','N') , (1999,'2/12/2019','ja-JP','MXFTAProgramCode',N'MX FTAプログラムコード','N','N') , (1999,'2/12/2019','ja-JP','MXGCD01',N'MXGCD01','N','N') , (1999,'2/12/2019','ja-JP','MXGCD02',N'MXGCD02','N','N') , (1999,'2/12/2019','ja-JP','MXGCD03',N'MXGCD03','N','N') , (1999,'2/12/2019','ja-JP','MXGCD04',N'MXGCD04','N','N') , (1999,'2/12/2019','ja-JP','MXGCD05',N'MXGCD05','N','N') , (1999,'2/12/2019','ja-JP','MXGCL01',N'MXGCL01','N','N') , (1999,'2/12/2019','ja-JP','MXGCL02',N'MXGCL02','N','N') , (1999,'2/12/2019','ja-JP','MXGCL03',N'MXGCL03','N','N') , (1999,'2/12/2019','ja-JP','MXGCL04',N'MXGCL04','N','N') , (1999,'2/12/2019','ja-JP','MXGCL05',N'MXGCL05','N','N') , (1999,'2/12/2019','ja-JP','MXGCN01',N'MXGCN01','N','N') , (1999,'2/12/2019','ja-JP','MXGCN02',N'MXGCN02','N','N') , (1999,'2/12/2019','ja-JP','MXGCN03',N'MXGCN03','N','N') , (1999,'2/12/2019','ja-JP','MXGCN04',N'MXGCN04','N','N') , (1999,'2/12/2019','ja-JP','MXGCN05',N'MXGCN05','N','N') , (1999,'2/12/2019','ja-JP','MXGCS01',N'MXGCS01','N','N') , (1999,'2/12/2019','ja-JP','MXGCS02',N'MXGCS02','N','N') , (1999,'2/12/2019','ja-JP','MXGCS03',N'MXGCS03','N','N') , (1999,'2/12/2019','ja-JP','MXGCS04',N'MXGCS04','N','N') , (1999,'2/12/2019','ja-JP','MXGCS05',N'MXGCS05','N','N') , (1999,'2/12/2019','ja-JP','MXGCS06',N'MXGCS06','N','N') , (1999,'2/12/2019','ja-JP','MXGCS07',N'MXGCS07','N','N') , (1999,'2/12/2019','ja-JP','MXGCS08',N'MXGCS08','N','N') , (1999,'2/12/2019','ja-JP','MXGCS09',N'MXGCS09','N','N') , (1999,'2/12/2019','ja-JP','MXGCS10',N'MXGCS10','N','N') , (1999,'2/12/2019','ja-JP','MXGCS11',N'MXGCS11','N','N') , (1999,'2/12/2019','ja-JP','MXGCS12',N'MXGCS12','N','N') , (1999,'2/12/2019','ja-JP','MXGCS13',N'MXGCS13','N','N') , (1999,'2/12/2019','ja-JP','MXGCS14',N'MXGCS14','N','N') , (1999,'2/12/2019','ja-JP','MXGCS15',N'MXGCS15','N','N') , (1999,'2/12/2019','ja-JP','MXHsNum',N'メキシコHs番号','N','N') , (1999,'2/12/2019','ja-JP','MXINAH',N'MXINAH','N','N') , (1999,'2/12/2019','ja-JP','MXPROFEPA',N'MXPROFEPA','N','N') , (1999,'2/12/2019','ja-JP','MXSAGARPA',N'MXSAGARPA','N','N') , (1999,'2/12/2019','ja-JP','MXSAT',N'MXSAT','N','N') , (1999,'2/12/2019','ja-JP','MXSE',N'MXSE','N','N') , (1999,'2/12/2019','ja-JP','MXSEDENA',N'MXSEDENA','N','N') , (1999,'2/12/2019','ja-JP','MXSEMARNAT',N'MXSEMARNAT','N','N') , (1999,'2/12/2019','ja-JP','MXSENASICA',N'MXSENASICA','N','N') , (1999,'2/12/2019','ja-JP','MXSENER',N'MXSENER','N','N') , (1999,'2/12/2019','ja-JP','MXSHCP',N'MXSHCP','N','N') , (1999,'2/12/2019','ja-JP','MXSRE',N'MXSRE','N','N') , (1999,'2/12/2019','ja-JP','MXSS',N'MXSS','N','N') , (1999,'2/12/2019','ja-JP','MXState',N'MX州','N','N') , (1999,'2/12/2019','ja-JP','MY',N'じぶんの','N','N') , (1999,'2/12/2019','ja-JP','MYGCS07',N'MYGCS08','N','N') , (1999,'2/12/2019','ja-JP','MYGCS09',N'MYGCS10','N','N') , (1999,'2/12/2019','ja-JP','NACWCApplies',N'NACWCが適用されます','N','N') , (1999,'2/12/2019','ja-JP','NaftaCertified',N'ナフタ認定','N','N') , (1999,'2/12/2019','ja-JP','NALADIHsNum',N'ナラディHs番号','N','N') , (1999,'2/12/2019','ja-JP','NALADIHsYear',N'NALADI Hsの年','N','N') , (1999,'2/12/2019','ja-JP','Name',N'名','N','N') , (1999,'2/12/2019','ja-JP','NationalExciseCode',N'国民所得コード','N','N') , (1999,'2/12/2019','ja-JP','NationalSubDivision',N'国家細分','N','N') , (1999,'2/12/2019','ja-JP','NCCANum',N'NCCA番号','N','N') , (1999,'2/12/2019','ja-JP','NEAApplies',N'NEA適用','N','N') , (1999,'2/12/2019','ja-JP','Net Cost',N'判定基準詳細','N','N') , (1999,'2/12/2019','ja-JP','NetCost',N'判定基準詳細','N','N') , (1999,'2/12/2019','ja-JP','NetWeight',N'正味重量','N','N') , (1999,'2/12/2019','ja-JP','NEW SEARCH',N'新しい検索','N','N') , (1999,'2/12/2019','ja-JP','NewRelatedControl',N'新しい関連コントロール','N','N') , (1999,'2/12/2019','ja-JP','NHMRCApplies',N'NHMRC適用','N','N') , (1999,'2/12/2019','ja-JP','NHTApplies',N'NHT適用','N','N') , (1999,'2/12/2019','ja-JP','NHTIndicator',N'NHT指標','N','N') , (1999,'2/12/2019','ja-JP','NHTNotes',N'NHTノート','N','N') , (1999,'2/12/2019','ja-JP','NKTBApplies',N'NKTB適用','N','N') , (1999,'2/12/2019','ja-JP','NMFApplies',N'NMFが適用されます','N','N') , (1999,'2/12/2019','ja-JP','NMFIndicator',N'NMF指標','N','N') , (1999,'2/12/2019','ja-JP','NMFNotes',N'NMFノート','N','N') , (1999,'2/12/2019','ja-JP','No Functions Provided',N'提供される機能がありません','N','N') , (1999,'2/12/2019','ja-JP','No items selected',N'アイテムが選択されていませ','N','N') , (1999,'2/12/2019','ja-JP','No Order',N'注文番号','N','N') , (1999,'2/12/2019','ja-JP','No records to display',N'表示するレコードがありません','N','N') , (1999,'2/12/2019','ja-JP','No records to display.',N'表示するレコードがありません。','N','N') , (1999,'2/12/2019','ja-JP','No Search Parameters Provided',N'検索パラメータが提供されない','N','N') , (1999,'2/12/2019','ja-JP','Non-Qualifying',N'非適格','N','N') , (1999,'2/12/2019','ja-JP','NoOrder',N'注文番号','N','N') , (1999,'2/12/2019','ja-JP','Note',N'注意','N','N') , (1999,'2/12/2019','ja-JP','Note (Prints on Cert)',N'Note (Prints on Cert)','N','N') , (1999,'2/12/2019','ja-JP','Note Detail',N'メモの詳細','N','N') , (1999,'2/12/2019','ja-JP','NoteNumber',N'ノート番号','N','N') , (1999,'2/12/2019','ja-JP','Notes',N'ノート','N','N') , (1999,'2/12/2019','ja-JP','NoteText',N'メモテキスト','N','N') , (1999,'2/12/2019','ja-JP','NoteType',N'ノートタイプ','N','N') , (1999,'2/12/2019','ja-JP','NPWPCDApplies',N'NPWPCDが適用されます','N','N') , (1999,'2/12/2019','ja-JP','NQ/Origin Letter',N'NQ /オリジンレター','N','N') , (1999,'2/12/2019','ja-JP','NRCANApplies',N'NRCANが適用されます','N','N') , (1999,'2/12/2019','ja-JP','NRCANNotes',N'NRCANノート','N','N') , (1999,'2/12/2019','ja-JP','NRCApplies',N'NRCが適用されます','N','N') , (1999,'2/12/2019','ja-JP','NRCIndicator',N'NRC指標','N','N') , (1999,'2/12/2019','ja-JP','NRCNotes',N'NRCノート','N','N') , (1999,'2/12/2019','ja-JP','Num',N'数','N','N') , (1999,'2/12/2019','ja-JP','Number',N'数','N','N') , (1999,'2/12/2019','ja-JP','Number Of Products',N'製品数','N','N') , (1999,'2/12/2019','ja-JP','Number of Solicitations',N'懇願の数','N','N') , (1999,'2/12/2019','ja-JP','Numberofedits',N'編集数','N','N') , (1999,'2/12/2019','ja-JP','NumberOfHSRowsAffected',N'影響を受けるHS行の数','N','N') , (1999,'2/12/2019','ja-JP','NumberOfRecordsUpdated',N'更新されたレコード数','N','N') , (1999,'2/12/2019','ja-JP','NumberSection',N'番号セクション','N','N') , (1999,'2/12/2019','ja-JP','NumericCode',N'数値コード','N','N') , (1999,'2/12/2019','ja-JP','NVECodeNum',N'NVEコード番号','N','N') , (1999,'2/12/2019','ja-JP','NZ',N'ニュージーランド','N','N') , (1999,'2/12/2019','ja-JP','NZGCS07',N'NZGCS08','N','N') , (1999,'2/12/2019','ja-JP','NZGCS09',N'NZGCS10','N','N') , (1999,'2/12/2019','ja-JP','OCSApplies',N'OCSが適用されます','N','N') , (1999,'2/12/2019','ja-JP','OFAApplies',N'OFAが適用される','N','N') , (1999,'2/12/2019','ja-JP','OFAIndicator',N'OFA指標','N','N') , (1999,'2/12/2019','ja-JP','OFANotes',N'OFAノート','N','N') , (1999,'2/12/2019','ja-JP','OFEApplies',N'OFEが適用されます','N','N') , (1999,'2/12/2019','ja-JP','OFEIndicator',N'OFE指標','N','N') , (1999,'2/12/2019','ja-JP','OFENotes',N'OFEノート','N','N') , (1999,'2/12/2019','ja-JP','OFMApplies',N'OFMが適用されます','N','N') , (1999,'2/12/2019','ja-JP','OFMIndicator',N'OFM指標','N','N') , (1999,'2/12/2019','ja-JP','OFMNotes',N'OFMノート','N','N') , (1999,'2/12/2019','ja-JP','OGA',N'OGA','N','N') , (1999,'2/12/2019','ja-JP','OGA Information',N'OGA情報','N','N') , (1999,'2/12/2019','ja-JP','OIEApplies',N'OIEが適用されます','N','N') , (1999,'2/12/2019','ja-JP','OLMApplies',N'OLMが適用されます','N','N') , (1999,'2/12/2019','ja-JP','OLMIndicator',N'OLMインジケータ','N','N') , (1999,'2/12/2019','ja-JP','OLMNotes',N'OLMノート','N','N') , (1999,'2/12/2019','ja-JP','ONPFApplies',N'ONPFが適用されます','N','N') , (1999,'2/12/2019','ja-JP','Opinion',N'意見','N','N') , (1999,'2/12/2019','ja-JP','OpinionTextDetailGuid',N'オピニオンテキストの詳細ID','N','N') , (1999,'2/12/2019','ja-JP','OpinionTitle',N'意見のタイトル','N','N') , (1999,'2/12/2019','ja-JP','Option01',N'オプション01','N','N') , (1999,'2/12/2019','ja-JP','Option02',N'オプション02','N','N') , (1999,'2/12/2019','ja-JP','Option03',N'オプション03','N','N') , (1999,'2/12/2019','ja-JP','Option04',N'オプション04','N','N') , (1999,'2/12/2019','ja-JP','Optional',N'オプション','N','N') , (1999,'2/12/2019','ja-JP','Options',N'オプション','N','N') , (1999,'2/12/2019','ja-JP','Organization',N'組織','N','N') , (1999,'2/12/2019','ja-JP','ORIGIN',N'原点','N','N') , (1999,'2/12/2019','ja-JP','OrigValue',N'元の値','N','N') , (1999,'2/12/2019','ja-JP','ORSApplies',N'ORSが適用されます','N','N') , (1999,'2/12/2019','ja-JP','OSAApplies',N'OSAが適用されます','N','N') , (1999,'2/12/2019','ja-JP','OSAIndicator',N'OSA指標','N','N') , (1999,'2/12/2019','ja-JP','OSANotes',N'OSAノート','N','N') , (1999,'2/12/2019','ja-JP','OtherOGDApplies',N'その他のOGD適用','N','N') , (1999,'2/12/2019','ja-JP','OtherOGDNotes',N'その他のOGDノート','N','N') , (1999,'2/12/2019','ja-JP','OtherRegApplies',N'その他の規制適用','N','N') , (1999,'2/12/2019','ja-JP','Outstanding',N'優秀','N','N') , (1999,'2/12/2019','ja-JP','OzoneDepletingSubstances10052009EU',N'オゾン層破壊物質10052009 EU','N','N') , (1999,'2/12/2019','ja-JP','PackingGroup',N'パッキンググループ','N','N') , (1999,'2/12/2019','ja-JP','Page',N'ページ','N','N') , (1999,'2/12/2019','ja-JP','Page Size',N'ページサイズ','N','N') , (1999,'2/12/2019','ja-JP','Page size:',N'ページサイズ:','N','N') , (1999,'2/12/2019','ja-JP','ParentDocumentName',N'親文書名','N','N') , (1999,'2/12/2019','ja-JP','ParentNoteType',N'親ノートタイプ','N','N') , (1999,'2/12/2019','ja-JP','ParentNumber',N'親番号','N','N') , (1999,'2/12/2019','ja-JP','ParentProdClassificationGuid',N'親製品分類ID','N','N') , (1999,'2/12/2019','ja-JP','ParentProductGuid',N'親製品ID','N','N') , (1999,'2/12/2019','ja-JP','PartCategoryCode',N'部品カテゴリコード','N','N') , (1999,'2/12/2019','ja-JP','Parties',N'取引先','N','N') , (1999,'2/12/2019','ja-JP','Parties Tab Help',N'ヘルプ - 第三者','N','N') , (1999,'2/12/2019','ja-JP','PartnerId',N'パートナーID','N','N') , (1999,'2/12/2019','ja-JP','PartnerLevelSearch',N'パートナーレベルの検索','N','N') , (1999,'2/12/2019','ja-JP','PASERate',N'PASEレート','N','N') , (1999,'2/12/2019','ja-JP','Passed Bill Of Materials',N'合格部品表','N','N') , (1999,'2/12/2019','ja-JP','PC',N'PC','N','N') , (1999,'2/12/2019','ja-JP','PCDApplies',N'PCD適用','N','N') , (1999,'2/12/2019','ja-JP','PECONGRESO',N'PECONGRESO','N','N') , (1999,'2/12/2019','ja-JP','PEDIGEMID',N'PEDIGEMID','N','N') , (1999,'2/12/2019','ja-JP','PEDIGESA',N'ペディゲサ','N','N') , (1999,'2/12/2019','ja-JP','PEINIA',N'PEINIA','N','N') , (1999,'2/12/2019','ja-JP','PEIPEN',N'PEIPEN','N','N') , (1999,'2/12/2019','ja-JP','PEMEM',N'PEMEM','N','N') , (1999,'2/12/2019','ja-JP','PEMINAGRI',N'ペミナグリ','N','N') , (1999,'2/12/2019','ja-JP','PEMINAM',N'ペミナム','N','N') , (1999,'2/12/2019','ja-JP','PEMINCETUR',N'PEMINCETUR','N','N') , (1999,'2/12/2019','ja-JP','PEMINEDU',N'ペミネジュ','N','N') , (1999,'2/12/2019','ja-JP','PEMINSA',N'ペミンサ','N','N') , (1999,'2/12/2019','ja-JP','PEMTC',N'PEMTC','N','N') , (1999,'2/12/2019','ja-JP','PEPRODUCE',N'敬具','N','N') , (1999,'2/12/2019','ja-JP','Per Unit Estimate',N'単位見積りあたり','N','N') , (1999,'2/12/2019','ja-JP','Percentage Completed',N'完了したパーセンテージ','N','N') , (1999,'2/12/2019','ja-JP','Period Begin Date',N'開始日','N','N') , (1999,'2/12/2019','ja-JP','Period End Date',N'有効期日','N','N') , (1999,'2/12/2019','ja-JP','PermissionGoodsEnglishDesc',N'許可書English Description','N','N') , (1999,'2/12/2019','ja-JP','PermissionGoodsThaiDesc',N'許可証タイの記述','N','N') , (1999,'2/12/2019','ja-JP','PERREE',N'ペリー','N','N') , (1999,'2/12/2019','ja-JP','PESENASA',N'ペセナサ','N','N') , (1999,'2/12/2019','ja-JP','PESUCAMEC',N'ペスカメック','N','N') , (1999,'2/12/2019','ja-JP','PESUNAT',N'ペスナート','N','N') , (1999,'2/12/2019','ja-JP','PetroleumTaxCode',N'石油税コード','N','N') , (1999,'2/12/2019','ja-JP','PetroleumType',N'石油の種類','N','N') , (1999,'2/12/2019','ja-JP','PHMApplies',N'PHM適用','N','N') , (1999,'2/12/2019','ja-JP','PHMIndicator',N'PHM指標','N','N') , (1999,'2/12/2019','ja-JP','PHMNotes',N'PHMノート','N','N') , (1999,'2/12/2019','ja-JP','PISRate',N'PISレート','N','N') , (1999,'2/12/2019','ja-JP','Place of Production',N'生産地','N','N') , (1999,'2/12/2019','ja-JP','Placeof Production',N'生産地','N','N') , (1999,'2/12/2019','ja-JP','PlaceofProduction',N'生産地','N','N') , (1999,'2/12/2019','ja-JP','Plant',N'工場','N','N') , (1999,'2/12/2019','ja-JP','Plant ID',N'植物ID','N','N') , (1999,'2/12/2019','ja-JP','PlantID',N'植物ID','N','N') , (1999,'2/12/2019','ja-JP','PlantRegApplies',N'植物規制が適用される','N','N') , (1999,'2/12/2019','ja-JP','PLRDApplies',N'PLRDが適用されます','N','N') , (1999,'2/12/2019','ja-JP','PortCode',N'ポートコード','N','N') , (1999,'2/12/2019','ja-JP','PortName',N'ポート名','N','N') , (1999,'2/12/2019','ja-JP','PounamuIndicator',N'ポウナウ指標','N','N') , (1999,'2/12/2019','ja-JP','PR',N'PR','N','N') , (1999,'2/12/2019','ja-JP','PreclassExportRegisterNum',N'プリクラスエクスポートレジスタ番号','N','N') , (1999,'2/12/2019','ja-JP','PreclassExportSuggestionNum',N'プレクラス輸出提案番号','N','N') , (1999,'2/12/2019','ja-JP','PreclassImportRegisterNum',N'プリクラスインポートレジスタ番号','N','N') , (1999,'2/12/2019','ja-JP','PreclassImportSuggestionNum',N'プレクラスインポートの提案番号','N','N') , (1999,'2/12/2019','ja-JP','PreclassRegisterNum',N'プレクラス登録番号','N','N') , (1999,'2/12/2019','ja-JP','Pref. Criteria',N'判定基準','N','N') , (1999,'2/12/2019','ja-JP','PreferenceCode1',N'プリファレンスコード1','N','N') , (1999,'2/12/2019','ja-JP','PreferenceCode2',N'プリファレンスコード2','N','N') , (1999,'2/12/2019','ja-JP','PreferenceCriterion',N'優先基準','N','N') , (1999,'2/12/2019','ja-JP','PreferenceInstrumentNum',N'プリファレンス・インストゥルメント番号','N','N') , (1999,'2/12/2019','ja-JP','PreferenceInstrumentType',N'プリファレンス・インストゥルメント・タイプ','N','N') , (1999,'2/12/2019','ja-JP','PreferenceOriginCountryCode',N'環境設定の原点国コード','N','N') , (1999,'2/12/2019','ja-JP','PreferenceRuleType',N'優先ルールタイプ','N','N') , (1999,'2/12/2019','ja-JP','PreferenceSchemeType',N'プリファレンススキームタイプ','N','N') , (1999,'2/12/2019','ja-JP','PrescribedGoodsIndicator',N'指定商品インジケータ','N','N') , (1999,'2/12/2019','ja-JP','PRGCS04',N'PRGCS05','N','N') , (1999,'2/12/2019','ja-JP','PRGCS05',N'PRGCS06','N','N') , (1999,'2/12/2019','ja-JP','PRGCS06',N'PRGCS07','N','N') , (1999,'2/12/2019','ja-JP','PRGCS07',N'PRGCS08','N','N') , (1999,'2/12/2019','ja-JP','PRGCS09',N'PRGCS10','N','N') , (1999,'2/12/2019','ja-JP','PrimaryExportPort',N'プライマリエクスポートポート','N','N') , (1999,'2/12/2019','ja-JP','PrimaryImportPort',N'プライマリインポートポート','N','N') , (1999,'2/12/2019','ja-JP','PrimarySupplier',N'主要サプライヤ','N','N') , (1999,'2/12/2019','ja-JP','PrimarySupplierAddress1',N'プライマリサプライヤアドレス1','N','N') , (1999,'2/12/2019','ja-JP','PrimarySupplierAddress2',N'プライマリサプライヤアドレス2','N','N') , (1999,'2/12/2019','ja-JP','PrimarySupplierCity',N'一次サプライヤー都市','N','N') , (1999,'2/12/2019','ja-JP','PrimarySupplierCountry',N'主要サプライヤー国','N','N') , (1999,'2/12/2019','ja-JP','PrimarySupplierID',N'主要サプライヤID','N','N') , (1999,'2/12/2019','ja-JP','PrimarySupplierState',N'主要サプライヤの国家','N','N') , (1999,'2/12/2019','ja-JP','PrimarySupplierZip',N'プライマリサプライヤジップ','N','N') , (1999,'2/12/2019','ja-JP','Printed Flag',N'印刷された旗','N','N') , (1999,'2/12/2019','ja-JP','PrivilegeCode',N'特権コード','N','N') , (1999,'2/12/2019','ja-JP','ProdClassificationDetailGUID',N'製品分類詳細ID','N','N') , (1999,'2/12/2019','ja-JP','ProdClassificationGuid',N'製品分類ID','N','N') , (1999,'2/12/2019','ja-JP','ProdClassificationName',N'製品分類名','N','N') , (1999,'2/12/2019','ja-JP','ProdClassificationUse',N'製品分類の使用','N','N') , (1999,'2/12/2019','ja-JP','Producer',N'プロデューサー','N','N') , (1999,'2/12/2019','ja-JP','Product',N'型番','N','N') , (1999,'2/12/2019','ja-JP','Product Desc',N'製品説明','N','N') , (1999,'2/12/2019','ja-JP','Product Description',N'製品説明','N','N') , (1999,'2/12/2019','ja-JP','Product Information',N'コアプロパティ','N','N') , (1999,'2/12/2019','ja-JP','Product Name',N'商品名','N','N') , (1999,'2/12/2019','ja-JP','Product Num',N'製品番号','N','N') , (1999,'2/12/2019','ja-JP','Product Number',N'製品番号','N','N') , (1999,'2/12/2019','ja-JP','Product Selection & Alteration',N'製品の選択と変更','N','N') , (1999,'2/12/2019','ja-JP','ProductCategoryId',N'商品カテゴリID','N','N') , (1999,'2/12/2019','ja-JP','ProductDesc',N'製品説明','N','N') , (1999,'2/12/2019','ja-JP','ProductDescription',N'製品説明','N','N') , (1999,'2/12/2019','ja-JP','ProductGroup',N'製品グループ','N','N') , (1999,'2/12/2019','ja-JP','ProductGroupCondition',N'商品グループ条件','N','N') , (1999,'2/12/2019','ja-JP','ProductGroupCondition_0',N'製品グループ条件1','N','N') , (1999,'2/12/2019','ja-JP','ProductGroupCondition_1',N'製品グループ条件1','N','N') , (1999,'2/12/2019','ja-JP','ProductGroupCondition_2',N'製品グループ条件2','N','N') , (1999,'2/12/2019','ja-JP','ProductGroupCondition_3',N'商品グループ条件3','N','N') , (1999,'2/12/2019','ja-JP','ProductGroupCondition_4',N'製品グループ条件4','N','N') , (1999,'2/12/2019','ja-JP','ProductGuid',N'製品番号','N','N') , (1999,'2/12/2019','ja-JP','ProductMaterial',N'製品の材質','N','N') , (1999,'2/12/2019','ja-JP','ProductName',N'商品名','N','N') , (1999,'2/12/2019','ja-JP','ProductNum',N'製品番号','N','N') , (1999,'2/12/2019','ja-JP','ProductNumber',N'製品番号','N','N') , (1999,'2/12/2019','ja-JP','Products',N'製品','N','N') , (1999,'2/12/2019','ja-JP','Products Missing ECN',N'ECNが見つからない製品','N','N') , (1999,'2/12/2019','ja-JP','Products Tab Help',N'ヘルプ - 製品','N','N') , (1999,'2/12/2019','ja-JP','Products With Binding Rulings',N'拘束裁定のある商品','N','N') , (1999,'2/12/2019','ja-JP','Products With Changed Hs Numbers',N'変更されたHs番号を持つ製品','N','N') , (1999,'2/12/2019','ja-JP','Products With Duplicate Product Records',N'重複した製品レコードを持つ製品','N','N') , (1999,'2/12/2019','ja-JP','Products With ECN non-EAR99',N'ECN非EAR100の製品','N','N') , (1999,'2/12/2019','ja-JP','Products With Invalid Hs Numbers',N'無効なHs番号を持つ製品','N','N') , (1999,'2/12/2019','ja-JP','Products With Invalid or Incomplete Hs Numbers',N'無効または不完全なHs番号の製品','N','N') , (1999,'2/12/2019','ja-JP','Products With Sets',N'セット付き製品','N','N') , (1999,'2/12/2019','ja-JP','ProductTypeCode',N'製品タイプコード','N','N') , (1999,'2/12/2019','ja-JP','ProductUse',N'製品の使用','N','N') , (1999,'2/12/2019','ja-JP','ProperShippingName',N'適切な輸送名','N','N') , (1999,'2/12/2019','ja-JP','Qualifying',N'適格','N','N') , (1999,'2/12/2019','ja-JP','Qualifying Certificate',N'適格証明書','N','N') , (1999,'2/12/2019','ja-JP','Quota',N'クォータ','N','N') , (1999,'2/12/2019','ja-JP','Quota0',N'クォータ0','N','N') , (1999,'2/12/2019','ja-JP','Quota1',N'クォータ1','N','N') , (1999,'2/12/2019','ja-JP','QuotaApplies',N'クォータが適用されます','N','N') , (1999,'2/12/2019','ja-JP','QuotaFillDate',N'クォータの記入日','N','N') , (1999,'2/12/2019','ja-JP','QuotaFlag',N'クォータフラグ','N','N') , (1999,'2/12/2019','ja-JP','QuotaLevel',N'クォータレベル','N','N') , (1999,'2/12/2019','ja-JP','QuotaOrderNumber',N'クォータ注文番号','N','N') , (1999,'2/12/2019','ja-JP','QuotaType',N'クォータタイプ','N','N') , (1999,'2/12/2019','ja-JP','QuotaUOM',N'クォータの単位','N','N') , (1999,'2/12/2019','ja-JP','Rate',N'レート','N','N') , (1999,'2/12/2019','ja-JP','Rate1',N'レート1','N','N') , (1999,'2/12/2019','ja-JP','Rate2',N'レート2','N','N') , (1999,'2/12/2019','ja-JP','Rate3',N'レート3','N','N') , (1999,'2/12/2019','ja-JP','Rate4',N'レート4','N','N') , (1999,'2/12/2019','ja-JP','Rate5',N'レート5','N','N') , (1999,'2/12/2019','ja-JP','Rate6',N'レート6','N','N') , (1999,'2/12/2019','ja-JP','Rate7',N'レート7','N','N') , (1999,'2/12/2019','ja-JP','RateDefinition',N'レート定義','N','N') , (1999,'2/12/2019','ja-JP','RateDetails',N'料金の詳細','N','N') , (1999,'2/12/2019','ja-JP','rbxDescriptionType',N'0','N','N') , (1999,'2/12/2019','ja-JP','rbxDescriptionType_00',N'完全な説明','N','N') , (1999,'2/12/2019','ja-JP','rbxDescriptionType_01',N'簡単な説明','N','N') INSERT INTO tmgPartnerCultureDefinitions(PartnerId,EffDate,CultureGuid,FieldName,FieldTranslation,DeletedFlag,KeepDuringRollback) VALUES (1999,'2/12/2019','ja-JP','rbxRWEditRadio1',N'新しく作る','N','N') , (1999,'2/12/2019','ja-JP','rbxRWEditRadio2',N'既存のものを使用する','N','N') , (1999,'2/12/2019','ja-JP','rbxRWSearchRadio1',N'新しく作る','N','N') , (1999,'2/12/2019','ja-JP','rbxRWSearchRadio2',N'既存のものを使用する','N','N') , (1999,'2/12/2019','ja-JP','rbxSaveSearches_SaveType_00',N'新しい名前で保存','N','N') , (1999,'2/12/2019','ja-JP','rbxSaveSearches_SaveType_01',N'既存の検索の変更/上書き','N','N') , (1999,'2/12/2019','ja-JP','Rbxselection',N'ECN','N','N') , (1999,'2/12/2019','ja-JP','Rbxselection_00',N'ECN','N','N') , (1999,'2/12/2019','ja-JP','Rbxselection_01',N'DPS','N','N') , (1999,'2/12/2019','ja-JP','RCO21',N'RCO21','N','N') , (1999,'2/12/2019','ja-JP','RCO22',N'RCO22','N','N') , (1999,'2/12/2019','ja-JP','RCO23',N'RCO23','N','N') , (1999,'2/12/2019','ja-JP','rdxbtnNew',N'新しい','N','N') , (1999,'2/12/2019','ja-JP','rdxbtnSuccessive',N'連続','N','N') , (1999,'2/12/2019','ja-JP','rdxGenerated',N'生成された','N','N') , (1999,'2/12/2019','ja-JP','rdxlstView',N'グリッドビュー','N','N') , (1999,'2/12/2019','ja-JP','rdxlstViewSetting',N'グリッドビュー','N','N') , (1999,'2/12/2019','ja-JP','rdxlstViewSetting_00',N'グリッドビュー','N','N') , (1999,'2/12/2019','ja-JP','rdxlstViewSetting_01',N'ツリー表示','N','N') , (1999,'2/12/2019','ja-JP','rdxNew',N'新しい','N','N') , (1999,'2/12/2019','ja-JP','rdxSubmitted',N'提出された','N','N') , (1999,'2/12/2019','ja-JP','REACH',N'リーチ','N','N') , (1999,'2/12/2019','ja-JP','REACHREG',N'REACHREG','N','N') , (1999,'2/12/2019','ja-JP','ReceiptSupplement',N'領収書サプリメント','N','N') , (1999,'2/12/2019','ja-JP','ReconApplies',N'リコンシリエーションが適用されます','N','N') , (1999,'2/12/2019','ja-JP','Record Information',N'レコード情報','N','N') , (1999,'2/12/2019','ja-JP','Reference',N'参照','N','N') , (1999,'2/12/2019','ja-JP','ReferenceNum',N'参照番号','N','N') , (1999,'2/12/2019','ja-JP','RegEffDate',N'規制有効日','N','N') , (1999,'2/12/2019','ja-JP','RegExpDate',N'規制有効期限','N','N') , (1999,'2/12/2019','ja-JP','RegGroupDetailInformation',N'規制グループの詳細情報','N','N') , (1999,'2/12/2019','ja-JP','RegListDetailNum',N'規制リストの詳細番号','N','N') , (1999,'2/12/2019','ja-JP','RegListName',N'規制リスト名','N','N') , (1999,'2/12/2019','ja-JP','RegListTypeDecode',N'規制リストタイプのデコード','N','N') , (1999,'2/12/2019','ja-JP','RegProductExceptionCode',N'規制製品例外コード','N','N') , (1999,'2/12/2019','ja-JP','RegProductExceptionText',N'規制製品例外テキスト','N','N') , (1999,'2/12/2019','ja-JP','RegProductExceptionText_0',N'規制製品例外テキスト0','N','N') , (1999,'2/12/2019','ja-JP','RegProductExceptionText_1',N'規制製品例外テキスト1','N','N') , (1999,'2/12/2019','ja-JP','RegProductExceptionText_2',N'規制製品例外テキスト2','N','N') , (1999,'2/12/2019','ja-JP','RegProductExceptionText_3',N'規制製品例外テキスト3','N','N') , (1999,'2/12/2019','ja-JP','RegulationName',N'規制名','N','N') , (1999,'2/12/2019','ja-JP','RegulatoryGroupGuid',N'規制グループID','N','N') , (1999,'2/12/2019','ja-JP','RelatedControl',N'関連制御','N','N') , (1999,'2/12/2019','ja-JP','RelatedControlChildGuid',N'関連コントロール子ID','N','N') , (1999,'2/12/2019','ja-JP','RelatedControlChildNumber',N'関連するコントロールの子番号','N','N') , (1999,'2/12/2019','ja-JP','RelatedControlNote',N'関連するコントロールノート','N','N') , (1999,'2/12/2019','ja-JP','RelatedControlParentGuid',N'関連制御親ID','N','N') , (1999,'2/12/2019','ja-JP','RelatedControlType',N'関連制御タイプ','N','N') , (1999,'2/12/2019','ja-JP','RelatedDefinition',N'関連定義','N','N') , (1999,'2/12/2019','ja-JP','RelatedECN',N'関連するECN','N','N') , (1999,'2/12/2019','ja-JP','RelatedHS',N'関連するHS','N','N') , (1999,'2/12/2019','ja-JP','RelatedTransactionIndicator',N'関連トランザクションインジケータ','N','N') , (1999,'2/12/2019','ja-JP','Remark1',N'備考2','N','N') , (1999,'2/12/2019','ja-JP','Remark2',N'備考2','N','N') , (1999,'2/12/2019','ja-JP','Remark3',N'備考3','N','N') , (1999,'2/12/2019','ja-JP','Reminder Sent Date',N'リマインダー送信日','N','N') , (1999,'2/12/2019','ja-JP','Remove',N'削除する','N','N') , (1999,'2/12/2019','ja-JP','Report Link',N'レポートリンク','N','N') , (1999,'2/12/2019','ja-JP','Request Detail',N'リクエストの詳細','N','N') , (1999,'2/12/2019','ja-JP','Request End Date',N'リクエスト終了日','N','N') , (1999,'2/12/2019','ja-JP','Request Guid',N'リクエストガイド','N','N') , (1999,'2/12/2019','ja-JP','Request Name',N'リクエスト名','N','N') , (1999,'2/12/2019','ja-JP','Request Start Date',N'リクエスト開始日','N','N') , (1999,'2/12/2019','ja-JP','Request Status',N'リクエストステータス','N','N') , (1999,'2/12/2019','ja-JP','Request Summary',N'リクエストの要約','N','N') , (1999,'2/12/2019','ja-JP','Request Type',N'リクエストタイプ','N','N') , (1999,'2/12/2019','ja-JP','Request Work Queue',N'作業キューを要求する','N','N') , (1999,'2/12/2019','ja-JP','Requestor Email',N'リクエスタ電子メール','N','N') , (1999,'2/12/2019','ja-JP','Requestor Name',N'リクエスタ名','N','N') , (1999,'2/12/2019','ja-JP','Required',N'必須','N','N') , (1999,'2/12/2019','ja-JP','RequiredFlag',N'必須フラグ','N','N') , (1999,'2/12/2019','ja-JP','RequiredOptional',N'必須オプション','N','N') , (1999,'2/12/2019','ja-JP','RestrictedCode',N'制限付きコード','N','N') , (1999,'2/12/2019','ja-JP','RestrictedProducts',N'制限付き製品','N','N') , (1999,'2/12/2019','ja-JP','Restriction',N'制限','N','N') , (1999,'2/12/2019','ja-JP','Result',N'結果','N','N') , (1999,'2/12/2019','ja-JP','ResultCultureCode',N'結果カルチャーコード','N','N') , (1999,'2/12/2019','ja-JP','ResultDescription',N'結果の説明','N','N') , (1999,'2/12/2019','ja-JP','ResultDetail',N'結果の詳細','N','N') , (1999,'2/12/2019','ja-JP','ResultDetailType',N'結果詳細タイプ','N','N') , (1999,'2/12/2019','ja-JP','ResultGuid',N'結果ID','N','N') , (1999,'2/12/2019','ja-JP','Results',N'結果','N','N') , (1999,'2/12/2019','ja-JP','ResultType',N'結果の種類','N','N') , (1999,'2/12/2019','ja-JP','rgSearchResults_GroupPanel',N'列ヘッダーをドラッグしてここにドロップすると、その列でグループ化されます。','N','N') , (1999,'2/12/2019','ja-JP','RMCApplies',N'RMCが適用されます','N','N') , (1999,'2/12/2019','ja-JP','RMPApplies',N'RMPが適用されます','N','N') , (1999,'2/12/2019','ja-JP','Row Num',N'行番号','N','N') , (1999,'2/12/2019','ja-JP','RowNum',N'行番号','N','N') , (1999,'2/12/2019','ja-JP','RPO11',N'RPO11','N','N') , (1999,'2/12/2019','ja-JP','RPO12',N'RPO12','N','N') , (1999,'2/12/2019','ja-JP','RPO13',N'RPO13','N','N') , (1999,'2/12/2019','ja-JP','RPSNDApplies',N'RPSNDが適用されます','N','N') , (1999,'2/12/2019','ja-JP','RptQtyUom',N'レポート数量単位','N','N') , (1999,'2/12/2019','ja-JP','RRAApplies',N'RRA適用','N','N') , (1999,'2/12/2019','ja-JP','RSUApplies',N'RSU適用','N','N') , (1999,'2/12/2019','ja-JP','RUGCS02',N'RUGCS03','N','N') , (1999,'2/12/2019','ja-JP','RUGCS03',N'RUGCS04','N','N') , (1999,'2/12/2019','ja-JP','RUGCS04',N'RUGCS05','N','N') , (1999,'2/12/2019','ja-JP','RUGCS05',N'RUGCS06','N','N') , (1999,'2/12/2019','ja-JP','RUGCS06',N'RUGCS07','N','N') , (1999,'2/12/2019','ja-JP','RUGCS08',N'RUGCS09','N','N') , (1999,'2/12/2019','ja-JP','RUGCS11',N'RUGCS11','N','N') , (1999,'2/12/2019','ja-JP','RUGCS12',N'RUGCS13','N','N') , (1999,'2/12/2019','ja-JP','RUGCS13',N'RUGCS13','N','N') , (1999,'2/12/2019','ja-JP','Rule Of Origin',N'原産地規則','N','N') , (1999,'2/12/2019','ja-JP','RuleCategory',N'ルールカテゴリ','N','N') , (1999,'2/12/2019','ja-JP','RuleCategoryGuid',N'ルールカテゴリID','N','N') , (1999,'2/12/2019','ja-JP','RuleCategoryName',N'ルールカテゴリ名','N','N') , (1999,'2/12/2019','ja-JP','RuleKey',N'ルールキー','N','N') , (1999,'2/12/2019','ja-JP','RuleName',N'ルール名','N','N') , (1999,'2/12/2019','ja-JP','RuleOfOrigin',N'原産地規則','N','N') , (1999,'2/12/2019','ja-JP','RuleOfOriginDetail',N'原産地規則の詳細','N','N') , (1999,'2/12/2019','ja-JP','RuleOfOriginText',N'原産地規則の原則','N','N') , (1999,'2/12/2019','ja-JP','Ruling',N'規定','N','N') , (1999,'2/12/2019','ja-JP','RulingNotes',N'裁定ノート','N','N') , (1999,'2/12/2019','ja-JP','SafeGuardDutyApplies',N'セーフガード義務が適用される','N','N') , (1999,'2/12/2019','ja-JP','SafeGuardValueApplies',N'安全なガード値が適用されます','N','N') , (1999,'2/12/2019','ja-JP','SAGApplies',N'SAGが適用されます','N','N') , (1999,'2/12/2019','ja-JP','SalesTaxExemptFlag',N'売上税免除フラグ','N','N') , (1999,'2/12/2019','ja-JP','Same Products Classified Differently',N'同じ製品が異なる分類','N','N') , (1999,'2/12/2019','ja-JP','SanctionsProgram',N'制裁プログラム','N','N') , (1999,'2/12/2019','ja-JP','Save Changes',N'変更内容を保存','N','N') , (1999,'2/12/2019','ja-JP','SaveCurrentView.Text',N'ビューを保存','N','N') , (1999,'2/12/2019','ja-JP','SaveCurrentView.ToolTip',N'この列構成を後のセッションに保存する','N','N') , (1999,'2/12/2019','ja-JP','SaveModal.Title',N'設定を保存する','N','N') , (1999,'2/12/2019','ja-JP','SaveModal.ToolTip',N'ビューの名前を指定し、すべてのユーザーがそのビューを使用できるかどうかを指定します','N','N') , (1999,'2/12/2019','ja-JP','SCApplies',N'SC適用','N','N') , (1999,'2/12/2019','ja-JP','SCDFApplies',N'SCDFが適用されます','N','N') , (1999,'2/12/2019','ja-JP','ScheduleB',N'スケジュールB','N','N') , (1999,'2/12/2019','ja-JP','Screen',N'画面','N','N') , (1999,'2/12/2019','ja-JP','Search',N'サーチ','N','N') , (1999,'2/12/2019','ja-JP','Search Description',N'検索の説明','N','N') , (1999,'2/12/2019','ja-JP','Search Name',N'検索名','N','N') , (1999,'2/12/2019','ja-JP','Search Parameter',N'検索パラメータ','N','N') , (1999,'2/12/2019','ja-JP','SearchGuid',N'検索ID','N','N') , (1999,'2/12/2019','ja-JP','SearchName',N'検索名','N','N') , (1999,'2/12/2019','ja-JP','SEARCHTEXTHSKEYWORD',N'検索テキストHSキーワード','N','N') , (1999,'2/12/2019','ja-JP','SecondaryCountiresHS',N'二次国HS','N','N') , (1999,'2/12/2019','ja-JP','SecondaryCountries',N'第二次諸国','N','N') , (1999,'2/12/2019','ja-JP','SecondTreatmentCode',N'二次治療コード','N','N') , (1999,'2/12/2019','ja-JP','SecondTreatmentInstrumentNum',N'二次治療器の番号','N','N') , (1999,'2/12/2019','ja-JP','SecondTreatmentInstrumentType',N'第2治療器具タイプ','N','N') , (1999,'2/12/2019','ja-JP','Section',N'セクション','N','N') , (1999,'2/12/2019','ja-JP','SecurityID',N'セキュリティID','N','N') , (1999,'2/12/2019','ja-JP','Select',N'選択','N','N') , (1999,'2/12/2019','ja-JP','Select a Category…',N'カテゴリーを選ぶ…','N','N') , (1999,'2/12/2019','ja-JP','Select a Document Type',N'ドキュメントタイプの選択','N','N') , (1999,'2/12/2019','ja-JP','Select a Supplier…',N'サプライヤーを選択','N','N') , (1999,'2/12/2019','ja-JP','Select All',N'すべて選択','N','N') , (1999,'2/12/2019','ja-JP','Select an Agreement',N'契約を選択する','N','N') , (1999,'2/12/2019','ja-JP','Select Bill Of Material…',N'部品表を選択...','N','N') , (1999,'2/12/2019','ja-JP','Select Item',N'''アイテムを選択''','N','N') , (1999,'2/12/2019','ja-JP','Select Operator…',N'オペレーターを選択...','N','N') , (1999,'2/12/2019','ja-JP','Select Request',N'リクエストを選択','N','N') , (1999,'2/12/2019','ja-JP','Select Rule Type…',N'ルールタイプを選択...','N','N') , (1999,'2/12/2019','ja-JP','Select Status…',N'ステータスを選択...','N','N') , (1999,'2/12/2019','ja-JP','Selected BOM Analysis',N'選択されたBOM分析','N','N') , (1999,'2/12/2019','ja-JP','Sent Date',N'送信日','N','N') , (1999,'2/12/2019','ja-JP','SERNAPApplies',N'SERNAPが適用されます','N','N') , (1999,'2/12/2019','ja-JP','SetNum',N'セット番号','N','N') , (1999,'2/12/2019','ja-JP','SetRecord',N'レコードを設定する','N','N') , (1999,'2/12/2019','ja-JP','SG',N'SG','N','N') , (1999,'2/12/2019','ja-JP','SGGCS02',N'SGGCS03','N','N') , (1999,'2/12/2019','ja-JP','SGGCS03',N'SGGCS04','N','N') , (1999,'2/12/2019','ja-JP','SGGCS07',N'SGGCS08','N','N') , (1999,'2/12/2019','ja-JP','SGGCS09',N'SGGCS10','N','N') , (1999,'2/12/2019','ja-JP','Ship Date',N'出荷日','N','N') , (1999,'2/12/2019','ja-JP','ShipFromCountry',N'国からの出荷','N','N') , (1999,'2/12/2019','ja-JP','ShipFromCountryGroupGuid',N'国別グループIDからの出荷','N','N') , (1999,'2/12/2019','ja-JP','ShipToCountry',N'国に出荷する','N','N') , (1999,'2/12/2019','ja-JP','Show Display Fields…',N'表示フィールドを表示する...','N','N') , (1999,'2/12/2019','ja-JP','Show Filter Options…',N'フィルタオプションを表示する...','N','N') , (1999,'2/12/2019','ja-JP','Show Report Fields…',N'レポートフィールドを表示...','N','N') , (1999,'2/12/2019','ja-JP','Show Search Fields…',N'検索フィールドを表示...','N','N') , (1999,'2/12/2019','ja-JP','Show Similar Products',N'類似製品を表示','N','N') , (1999,'2/12/2019','ja-JP','Show/ Hide Filter',N'フィルタの表示/非表示','N','N') , (1999,'2/12/2019','ja-JP','Show/Hide Filter',N'フィルタの表示/非表示','N','N') , (1999,'2/12/2019','ja-JP','ShowAllHSNumbers',N'すべてのHS番号を表示','N','N') , (1999,'2/12/2019','ja-JP','Signatures',N'署名','N','N') , (1999,'2/12/2019','ja-JP','Signatures Tab Help',N'ヘルプ - 署名','N','N') , (1999,'2/12/2019','ja-JP','SIMACode',N'SIMAコード','N','N') , (1999,'2/12/2019','ja-JP','Single BOM Calculator',N'シングルBOM電卓','N','N') , (1999,'2/12/2019','ja-JP','Single BOM Reports',N'シングルBOMレポート','N','N') , (1999,'2/12/2019','ja-JP','SIRIMApplies',N'SIRIMが適用されます','N','N') , (1999,'2/12/2019','ja-JP','Solicit',N'依頼','N','N') , (1999,'2/12/2019','ja-JP','Solicitation',N'募集','N','N') , (1999,'2/12/2019','ja-JP','Solicitation Detail',N'依頼内容詳細','N','N') , (1999,'2/12/2019','ja-JP','Solicitation Link',N'依頼提出リンク','N','N') , (1999,'2/12/2019','ja-JP','Solicitation Lookup',N'懇願のルックアップ','N','N') , (1999,'2/12/2019','ja-JP','Solicitation Title',N'依頼のタイトル','N','N') , (1999,'2/12/2019','ja-JP','Solicitations with Action Required',N'行動が必要な懇願','N','N') , (1999,'2/12/2019','ja-JP','SortOrder',N'ソート順','N','N') , (1999,'2/12/2019','ja-JP','Source',N'ソース','N','N') , (1999,'2/12/2019','ja-JP','SourceDate',N'ソース日付','N','N') , (1999,'2/12/2019','ja-JP','Sourcing Information',N'ソーシング情報','N','N') , (1999,'2/12/2019','ja-JP','SpecificRate',N'比率','N','N') , (1999,'2/12/2019','ja-JP','SPFApplies',N'SPFが適用されます','N','N') , (1999,'2/12/2019','ja-JP','SPICode1',N'SPIコード1','N','N') , (1999,'2/12/2019','ja-JP','SPICode2',N'SPIコード2','N','N') , (1999,'2/12/2019','ja-JP','StartDate',N'開始日','N','N') , (1999,'2/12/2019','ja-JP','StatisticalCode',N'統計コード','N','N') , (1999,'2/12/2019','ja-JP','Status',N'ステータス','N','N') , (1999,'2/12/2019','ja-JP','StatusCode',N'ステータスコード','N','N') , (1999,'2/12/2019','ja-JP','StatusDisplay',N'現在のステータス:{0} ''','N','N') , (1999,'2/12/2019','ja-JP','StorageTank',N'貯蔵タンク','N','N') , (1999,'2/12/2019','ja-JP','SubChapterHierarchy',N'サブチャプター階層','N','N') , (1999,'2/12/2019','ja-JP','SubCountry',N'サブカントリー','N','N') , (1999,'2/12/2019','ja-JP','SubCountryGuid',N'サブカテゴリID','N','N') , (1999,'2/12/2019','ja-JP','SubDivisionName1',N'サブディビジョン名1','N','N') , (1999,'2/12/2019','ja-JP','SubRisk',N'サブリスク','N','N') , (1999,'2/12/2019','ja-JP','SubscribedPartner',N'サブスクリプションパートナー','N','N') , (1999,'2/12/2019','ja-JP','Subscription',N'購読','N','N') , (1999,'2/12/2019','ja-JP','Subscription Email Address',N'サブスクリプション電子メールアドレス','N','N') , (1999,'2/12/2019','ja-JP','SubscriptionLevel',N'サブスクリプションレベル','N','N') , (1999,'2/12/2019','ja-JP','SubscriptionMessage',N'購読メッセージ','N','N') , (1999,'2/12/2019','ja-JP','SubscriptionType',N'購読タイプ','N','N') , (1999,'2/12/2019','ja-JP','SubscriptionTypeName',N'サブスクリプションタイプ名','N','N') , (1999,'2/12/2019','ja-JP','SUFRAMAApplies',N'SUFRAMAが適用されます','N','N') , (1999,'2/12/2019','ja-JP','SUpdateStatement',N'更新ステートメント','N','N') , (1999,'2/12/2019','ja-JP','SupplementaryUnits',N'補足単位','N','N') , (1999,'2/12/2019','ja-JP','SupplementaryUnitsUOM',N'補足単位','N','N') , (1999,'2/12/2019','ja-JP','Supplier',N'サプライヤー','N','N') , (1999,'2/12/2019','ja-JP','Supplier Dashboard',N'サプライヤーダッシュボード','N','N') , (1999,'2/12/2019','ja-JP','Supplier ID',N'サプライヤーID','N','N') , (1999,'2/12/2019','ja-JP','Supplier ID not maintained in Company Partners',N'企業パートナーに未登録のサプライヤーID','N','N') , (1999,'2/12/2019','ja-JP','Supplier Name',N'サプライヤ名','N','N') , (1999,'2/12/2019','ja-JP','Supplier Page',N'サプライヤーページ','N','N') , (1999,'2/12/2019','ja-JP','Supplier Product Num',N'サプライヤの製品番号','N','N') , (1999,'2/12/2019','ja-JP','SupplierAddress1',N'サプライヤアドレス1','N','N') , (1999,'2/12/2019','ja-JP','SupplierAddress2',N'サプライヤ住所2','N','N') , (1999,'2/12/2019','ja-JP','SupplierCity',N'サプライヤーシティー','N','N') , (1999,'2/12/2019','ja-JP','SupplierCountry',N'サプライヤー国','N','N') , (1999,'2/12/2019','ja-JP','SupplierID',N'サプライヤーID','N','N') , (1999,'2/12/2019','ja-JP','SupplierName',N'サプライヤ名','N','N') , (1999,'2/12/2019','ja-JP','SupplierState',N'サプライヤーの国家','N','N') , (1999,'2/12/2019','ja-JP','SupplierZip',N'サプライヤジップ','N','N') , (1999,'2/12/2019','ja-JP','SystemOverride',N'システムオーバーライド','N','N') , (1999,'2/12/2019','ja-JP','tabDocuments',N'ドキュメント','N','N') , (1999,'2/12/2019','ja-JP','TARICAdditionalCode1',N'TARIC追加コード1','N','N') , (1999,'2/12/2019','ja-JP','TARICAdditionalCode2',N'TARIC追加コード2','N','N') , (1999,'2/12/2019','ja-JP','TARICAdditionalSubDivision',N'TARIC追加の細区分','N','N') , (1999,'2/12/2019','ja-JP','Tariff Information',N'関税情報','N','N') , (1999,'2/12/2019','ja-JP','Tariff Schedule',N'関税','N','N') , (1999,'2/12/2019','ja-JP','TariffAdviceNum',N'関税アドバイス番号','N','N') , (1999,'2/12/2019','ja-JP','TariffClassificationInstrumentNum',N'関税分類機器番号','N','N') , (1999,'2/12/2019','ja-JP','TariffClassificationInstrumentType',N'関税分類機器タイプ','N','N') , (1999,'2/12/2019','ja-JP','TariffClassificationRateNum',N'関税分類番号','N','N') , (1999,'2/12/2019','ja-JP','TariffSchedule',N'関税','N','N') , (1999,'2/12/2019','ja-JP','TariffStatisticalCode',N'関税統計コード','N','N') , (1999,'2/12/2019','ja-JP','Tax ID',N'Tax ID','N','N') , (1999,'2/12/2019','ja-JP','TaxID',N'納税者番号','N','N') , (1999,'2/12/2019','ja-JP','TaxIDSuffix',N'税ID接尾辞','N','N') , (1999,'2/12/2019','ja-JP','TBTApplies',N'TBTが適用されます','N','N') , (1999,'2/12/2019','ja-JP','tbxDetail',N'詳細','N','N') , (1999,'2/12/2019','ja-JP','tbxEmailTo',N'に','N','N') , (1999,'2/12/2019','ja-JP','tbxTemplateName',N'テンプレート名','N','N') , (1999,'2/12/2019','ja-JP','TechnicalName',N'技術名称','N','N') , (1999,'2/12/2019','ja-JP','TelecomOrdApplies',N'テレコム・オーダー・アプリケーション','N','N') , (1999,'2/12/2019','ja-JP','Text',N'テキスト','N','N') , (1999,'2/12/2019','ja-JP','TextileCatCode',N'繊維カテゴリーコード','N','N') , (1999,'2/12/2019','ja-JP','TGAApplies',N'TGAが適用されます','N','N') , (1999,'2/12/2019','ja-JP','TH',N'TH','N','N') , (1999,'2/12/2019','ja-JP','THACFS',N'THACFS','N','N') , (1999,'2/12/2019','ja-JP','THBQSF',N'THBQSF','N','N') , (1999,'2/12/2019','ja-JP','THCSB',N'THCSB','N','N') , (1999,'2/12/2019','ja-JP','THDFT',N'THDFT','N','N') , (1999,'2/12/2019','ja-JP','THDIP',N'THDIP','N','N') , (1999,'2/12/2019','ja-JP','THDIT',N'THDIT','N','N') , (1999,'2/12/2019','ja-JP','THDIW',N'THDIW','N','N') , (1999,'2/12/2019','ja-JP','THDLD',N'THDLD','N','N') , (1999,'2/12/2019','ja-JP','THDMSC',N'THDMSC','N','N') , (1999,'2/12/2019','ja-JP','THDOEB',N'THDOEB','N','N') , (1999,'2/12/2019','ja-JP','THDOF',N'THDOF','N','N') , (1999,'2/12/2019','ja-JP','THDOPA',N'THDOPA','N','N') , (1999,'2/12/2019','ja-JP','THDPIM',N'THDPIM','N','N') , (1999,'2/12/2019','ja-JP','There are no files uploaded.',N'アップロードされたファイルはありません。','N','N') , (1999,'2/12/2019','ja-JP','THEXD',N'THEXD','N','N') , (1999,'2/12/2019','ja-JP','THHSA',N'THHSA','N','N') , (1999,'2/12/2019','ja-JP','THHSCB',N'THHSCB','N','N') , (1999,'2/12/2019','ja-JP','THMOD',N'THMOD','N','N') , (1999,'2/12/2019','ja-JP','THNBTC',N'THNBTC','N','N') , (1999,'2/12/2019','ja-JP','THOAP',N'THOAP','N','N') , (1999,'2/12/2019','ja-JP','THRFD',N'THRFD','N','N') , (1999,'2/12/2019','ja-JP','THTCD',N'THTCD','N','N') , (1999,'2/12/2019','ja-JP','THTISI',N'THTISI','N','N') , (1999,'2/12/2019','ja-JP','TIDApplies',N'TIDが適用されます','N','N') , (1999,'2/12/2019','ja-JP','TIDCode',N'TIDコード','N','N') , (1999,'2/12/2019','ja-JP','TimeFrame',N'時間枠','N','N') , (1999,'2/12/2019','ja-JP','Title',N'タイトル','N','N') , (1999,'2/12/2019','ja-JP','To Date',N'現在まで','N','N') , (1999,'2/12/2019','ja-JP','Total Estimate',N'合計見積もり','N','N') , (1999,'2/12/2019','ja-JP','Total Items',N'合計項目','N','N') , (1999,'2/12/2019','ja-JP','Total Value',N'総価値','N','N') , (1999,'2/12/2019','ja-JP','TotalMatches',N'トータルマッチ','N','N') , (1999,'2/12/2019','ja-JP','Traced Value',N'トレースされた値','N','N') , (1999,'2/12/2019','ja-JP','TracedValue',N'トレースされた値','N','N') , (1999,'2/12/2019','ja-JP','TradeAgreement',N'貿易協定','N','N') , (1999,'2/12/2019','ja-JP','TradeProgram',N'トレードプログラム','N','N') , (1999,'2/12/2019','ja-JP','Trans/Adj/FOB Value',N'トランザクション/調整/ FOB値','N','N') , (1999,'2/12/2019','ja-JP','TreatmentCode',N'治療コード','N','N') , (1999,'2/12/2019','ja-JP','TreatmentCodeRateNum',N'治療コードレート番号','N','N') , (1999,'2/12/2019','ja-JP','TreatmentInstrumentNum',N'治療器の番号','N','N') , (1999,'2/12/2019','ja-JP','TreatmentInstrumentType',N'治療器のタイプ','N','N') , (1999,'2/12/2019','ja-JP','TRPApplies',N'TRPが適用されます','N','N') , (1999,'2/12/2019','ja-JP','TRPIndicator',N'TRPインジケータ','N','N') , (1999,'2/12/2019','ja-JP','TRPNotes',N'TRPノート','N','N') , (1999,'2/12/2019','ja-JP','TSAApplies',N'TSA適用','N','N') , (1999,'2/12/2019','ja-JP','TSAIndicator',N'TSA指標','N','N') , (1999,'2/12/2019','ja-JP','TSANotes',N'TSAノート','N','N') , (1999,'2/12/2019','ja-JP','TTBApplies',N'TTBが適用されます','N','N') , (1999,'2/12/2019','ja-JP','TTBIndicator',N'TTBインジケータ','N','N') , (1999,'2/12/2019','ja-JP','TTBNotes',N'TTBノート','N','N') , (1999,'2/12/2019','ja-JP','TTMAApplies',N'TTMAが適用されます','N','N') , (1999,'2/12/2019','ja-JP','TTMAArticleNum',N'TTMA資料番号','N','N') , (1999,'2/12/2019','ja-JP','TTMADetailNum',N'TTMAの詳細番号','N','N') , (1999,'2/12/2019','ja-JP','TTMAItemNum',N'TTMA品目番号','N','N') , (1999,'2/12/2019','ja-JP','TW',N'TW','N','N') , (1999,'2/12/2019','ja-JP','TWAEC',N'TWAEC','N','N') , (1999,'2/12/2019','ja-JP','TWAFA',N'TWAFA','N','N') , (1999,'2/12/2019','ja-JP','TWBAPHIQ',N'TWBAPHIQ','N','N') , (1999,'2/12/2019','ja-JP','TWBOE',N'TWBOE','N','N') , (1999,'2/12/2019','ja-JP','TWBOFT',N'TWBOFT','N','N') , (1999,'2/12/2019','ja-JP','TWBSMI',N'TWBSMI','N','N') , (1999,'2/12/2019','ja-JP','TWCAA',N'TWCAA','N','N') , (1999,'2/12/2019','ja-JP','TWCBOROC',N'TWCBOROC','N','N') , (1999,'2/12/2019','ja-JP','TWCOA',N'TWCOA','N','N') , (1999,'2/12/2019','ja-JP','TWEPA',N'TWEPA','N','N') , (1999,'2/12/2019','ja-JP','TWFA',N'TWFA','N','N') , (1999,'2/12/2019','ja-JP','TWFDA',N'TWFDA','N','N') , (1999,'2/12/2019','ja-JP','TWIDB',N'TWIDB','N','N') , (1999,'2/12/2019','ja-JP','TWLCCPA',N'TWLCCPA','N','N') , (1999,'2/12/2019','ja-JP','TWMAPB',N'TWMAPB','N','N') , (1999,'2/12/2019','ja-JP','TWMND',N'TWMND','N','N') , (1999,'2/12/2019','ja-JP','TWMOE',N'TWMOE','N','N') , (1999,'2/12/2019','ja-JP','TWMOEA',N'TWMOEA','N','N') , (1999,'2/12/2019','ja-JP','TWMOF',N'TWMOF','N','N') , (1999,'2/12/2019','ja-JP','TWMOHW',N'TWMOHW','N','N') , (1999,'2/12/2019','ja-JP','TWMOI',N'TWMOI','N','N') , (1999,'2/12/2019','ja-JP','TWMOTAC',N'TWMOTAC','N','N') , (1999,'2/12/2019','ja-JP','TWNCC',N'TWNCC','N','N') , (1999,'2/12/2019','ja-JP','TWNPA',N'TWNPA','N','N') , (1999,'2/12/2019','ja-JP','TWNTA',N'TWNTA','N','N') , (1999,'2/12/2019','ja-JP','TWRAOFVAFM',N'TWRAOFVAFM','N','N') , (1999,'2/12/2019','ja-JP','TWWRA',N'TWWRA','N','N') , (1999,'2/12/2019','ja-JP','TxnQtyUOM',N'取引数量単位','N','N') , (1999,'2/12/2019','ja-JP','txtbxHSNumber',N'特定原産地規則のHS番号を入力してください','N','N') , (1999,'2/12/2019','ja-JP','Type',N'タイプ','N','N') , (1999,'2/12/2019','ja-JP','Type to search',N'タイプを検索する','N','N') , (1999,'2/12/2019','ja-JP','TypeDescription',N'タイプ説明','N','N') , (1999,'2/12/2019','ja-JP','TypeDisplay',N'現在の設定タイプ:{0} ''','N','N') , (1999,'2/12/2019','ja-JP','UnbrandedFlag',N'ブランドのない旗','N','N') , (1999,'2/12/2019','ja-JP','Unclassified Products',N'未分類の製品','N','N') , (1999,'2/12/2019','ja-JP','UNHazard',N'国連ハザード','N','N') , (1999,'2/12/2019','ja-JP','Units',N'単位','N','N') , (1999,'2/12/2019','ja-JP','UnitValue',N'単価','N','N') , (1999,'2/12/2019','ja-JP','UNNum',N'国連番号','N','N') , (1999,'2/12/2019','ja-JP','UNPackagingCode',N'UNパッケージコード','N','N') , (1999,'2/12/2019','ja-JP','UNSCApplies',N'UNSC適用','N','N') , (1999,'2/12/2019','ja-JP','UOM',N'測定単位','N','N') , (1999,'2/12/2019','ja-JP','Update',N'更新','N','N') , (1999,'2/12/2019','ja-JP','US',N'米国','N','N') , (1999,'2/12/2019','ja-JP','US HS Description',N'米国のHSの説明','N','N') , (1999,'2/12/2019','ja-JP','US Product Description',N'商品説明','N','N') , (1999,'2/12/2019','ja-JP','US Products With ADD Applies',N'ADDが適用された米国製品','N','N') , (1999,'2/12/2019','ja-JP','US Products With CVD Applies',N'CVD製品の米国製品','N','N') , (1999,'2/12/2019','ja-JP','USDAApplies',N'USDAが適用される','N','N') , (1999,'2/12/2019','ja-JP','USDANotes',N'USDAノート','N','N') , (1999,'2/12/2019','ja-JP','Use Solicitation Email',N'勧誘メールを使用する','N','N') , (1999,'2/12/2019','ja-JP','User',N'ユーザー','N','N') , (1999,'2/12/2019','ja-JP','UserGuid',N'ユーザーID','N','N') , (1999,'2/12/2019','ja-JP','UserName',N'ユーザー名','N','N') , (1999,'2/12/2019','ja-JP','USGCS07',N'USGCS07','N','N') , (1999,'2/12/2019','ja-JP','USGCS09',N'USGCS09','N','N') , (1999,'2/12/2019','ja-JP','USHsNum',N'米国のHs番号','N','N') , (1999,'2/12/2019','ja-JP','UTCApplies',N'UTCが適用されます','N','N') , (1999,'2/12/2019','ja-JP','UTCIndicator',N'UTCインジケータ','N','N') , (1999,'2/12/2019','ja-JP','UTCNotes',N'UTCノート','N','N') , (1999,'2/12/2019','ja-JP','ValidatedUser',N'検証済みユーザー','N','N') , (1999,'2/12/2019','ja-JP','Validation Messages',N'検証メッセージ','N','N') , (1999,'2/12/2019','ja-JP','Validation Messages Tab Help',N'ヘルプ - 検証メッセージ','N','N') , (1999,'2/12/2019','ja-JP','ValidationAdviceNum',N'検証アドバイス番号','N','N') , (1999,'2/12/2019','ja-JP','ValidationTypeCode',N'検証タイプコード','N','N') , (1999,'2/12/2019','ja-JP','ValidEndDate',N'有効終了日','N','N') , (1999,'2/12/2019','ja-JP','ValidLevel',N'有効レベル','N','N') , (1999,'2/12/2019','ja-JP','ValidStartDate',N'有効な開始日','N','N') , (1999,'2/12/2019','ja-JP','Value',N'値','N','N') , (1999,'2/12/2019','ja-JP','Value2',N'値2','N','N') , (1999,'2/12/2019','ja-JP','ValuePercent',N'値の割合','N','N') , (1999,'2/12/2019','ja-JP','VapourPressureLimit',N'蒸気圧リミット','N','N') , (1999,'2/12/2019','ja-JP','VATRate',N'付加価値税率','N','N') , (1999,'2/12/2019','ja-JP','VehicleBrand',N'自動車ブランド','N','N') , (1999,'2/12/2019','ja-JP','VehicleModel',N'車両モデル','N','N') , (1999,'2/12/2019','ja-JP','VendorManufacturerNum',N'ベンダー製造番号','N','N') , (1999,'2/12/2019','ja-JP','VendorMaterialNum',N'仕入先品目コード','N','N') , (1999,'2/12/2019','ja-JP','Vessel',N'容器','N','N') , (1999,'2/12/2019','ja-JP','View',N'ビュー','N','N') , (1999,'2/12/2019','ja-JP','View Comments',N'コメントを見る','N','N') , (1999,'2/12/2019','ja-JP','View Document',N'ドキュメントを表示する','N','N') , (1999,'2/12/2019','ja-JP','View/Add Comments',N'コメントの表示/追加','N','N') , (1999,'2/12/2019','ja-JP','View/Add Notes',N'メモの表示/追加','N','N') , (1999,'2/12/2019','ja-JP','Visualization Graphs',N'可視化グラフ','N','N') , (1999,'2/12/2019','ja-JP','Volume',N'ボリューム','N','N') , (1999,'2/12/2019','ja-JP','WCOEN',N'WCOEN','N','N') , (1999,'2/12/2019','ja-JP','WDSabahApplies',N'WD Sabahが適用されます','N','N') , (1999,'2/12/2019','ja-JP','Website',N'ウェブサイト','N','N') , (1999,'2/12/2019','ja-JP','Weight',N'重量','N','N') , (1999,'2/12/2019','ja-JP','Weights',N'分類','N','N') , (1999,'2/12/2019','ja-JP','WeightUOM',N'重量の単位','N','N') , (1999,'2/12/2019','ja-JP','WETExemptionCode',N'WET免除コード','N','N') , (1999,'2/12/2019','ja-JP','Year',N'年','N','N') , (1999,'2/12/2019','ja-JP','ZAGCS02',N'ZAGCS03','N','N') , (1999,'2/12/2019','ja-JP','ZAGCS03',N'ZAGCS04','N','N') , (1999,'2/12/2019','ja-JP','ZAGCS04',N'ZAGCS05','N','N') , (1999,'2/12/2019','ja-JP','ZAGCS05',N'ZAGCS06','N','N') , (1999,'2/12/2019','ja-JP','ZAGCS06',N'ZAGCS07','N','N') , (1999,'2/12/2019','ja-JP','ZAGCS08',N'ZAGCS09','N','N') , (1999,'2/12/2019','ja-JP','ZAGCS11',N'ZAGCS12','N','N') , (1999,'2/12/2019','ja-JP','ZAGCS12',N'ZAGCS12','N','N') , (1999,'2/12/2019','ja-JP','ZAGCS13',N'ZAGCS13','N','N') , (1999,'2/12/2019','ja-JP','ZAGCS14',N'ZAGCS15','N','N') , (1999,'2/12/2019','ja-JP','ZoneStatusCode',N'ゾーンステータスコード','N','N') , (1999,'3/10/2013','pl-PL','fmgDTSSpreadsheetImport_aspx',N'Import Arkusza DPS','N','N') , (1999,'3/10/2013','pl-PL','fxdDPSQuery_aspx',N'Szukaj DPS','N','N') , (1999,'3/10/2013','pl-PL','fxdDTSHistory_aspx',N'Historia Wyszukiwania DPS','N','N') , (1999,'3/10/2013','pl-PL','fxdDTSNotes_aspx',N'Uwagi DPS','N','N') , (1999,'3/10/2013','pl-PL','fxdDTSQuery_aspx',N'Szukaj DPS','N','N') , (1999,'3/10/2013','pl-PL','fxdDTSQueryDetail_aspx',N'Szczegół Szukaj DPS','N','N') , (1999,'3/10/2013','pl-PL','fxdDTSRegulationList_aspx',N'Lista Regulacji DPS','N','N') , (1999,'3/10/2013','pl-PL','fxdDTSWebserviceTest_aspx',N'Test Usługi Web DPS','N','N') , (1999,'4/14/2010','pr-PR','DTSExcludedWords_aspx',N'Excluindo palavras','N','N') , (1999,'4/14/2010','pr-PR','fxdECCNQuery_aspx',N'ECCN Classificação','N','N') , (1999,'4/14/2010','pr-PR','hlExit',N'Ir','N','N') , (1999,'4/20/2010','pr-PR','hlxAddNew',N'Adicionar','N','N') , (1999,'4/14/2010','pr-PR','hlxExit',N'Ir','N','N') , (1999,'4/14/2010','pr-PR','hlxExport',N'Exportação','N','N') , (1999,'4/14/2010','pr-PR','HyperLink1',N'Ir','N','N') , (1999,'4/14/2010','pr-PR','lbxCountry',N'País','N','N') , (1999,'4/14/2010','pr-PR','lbxFor',N'Para','N','N') , (1999,'4/14/2010','pr-PR','lbxName',N'Nome','N','N') , (1999,'4/14/2010','pr-PR','lbxRecordsPerPage',N'Resultados por página','N','N') , (1999,'4/14/2010','pr-PR','lbxSearch',N'Pesquisa','N','N') , (1999,'4/14/2010','pr-PR','lbxSourceFile',N'Arquivo de Origem','N','N') , (1999,'4/14/2010','pr-PR','lnkGotoPage',N'Ir para','N','N') , (1999,'4/14/2010','pr-PR','lnxbtnAdd',N'Adicionar Produto','N','N') , (1999,'4/14/2010','pr-PR','lnxbtnGo',N'Pesquisa','N','N') , (1999,'2/15/2016','pt-PT','{4} {5} items in {1} pages',N'{4} {5} itens em {1} páginas','N','N') , (1999,'2/7/2013','pt-PT','0F17980A-BFDB-4C10-B1A2-940F9EA28E90',N'NAFTA Relatório Resumido Reconciliação','N','N') , (1999,'2/7/2013','pt-PT','AddInvoices',N'Por favor, adicione as faturas a serem gerados, clicando em Adicionar.','N','N') , (1999,'2/7/2013','pt-PT','AuditLog_aspx',N'Log de auditoria','N','N') , (1999,'2/7/2013','pt-PT','BarcodeText',N'Aviso - Um erro inesperado ocorreu durante a tentativa de gerar um texto de código de barras.','N','N') , (1999,'2/7/2013','pt-PT','BarcodeTextLink',N'Texto de código de barras da fatura','N','N') , (1999,'2/7/2013','pt-PT','BaseCurrency',N'Sua moeda base é - {0}','N','N') , (1999,'2/7/2013','pt-PT','BrokerDashboard_aspx',N'Painel Broker','N','N') , (1999,'2/7/2013','pt-PT','btxLoadIntegrationFiles',N'Carregar arquivos','N','N') , (1999,'2/7/2013','pt-PT','cbxPendingExists',N'Desconsiderar','N','N') , (1999,'2/7/2013','pt-PT','CF6043ContinuationLink',N'6043 - Entrega de Ticket (Continuação).','N','N') , (1999,'2/7/2013','pt-PT','CF6043Link',N'CF6043 - Entrega de Ticket','N','N') , (1999,'2/7/2013','pt-PT','CF7533',N'Um erro inesperado ocorreu durante a tentativa de gerar EUA Formulário 7533 para importação dos EUA.','N','N') , (1999,'2/7/2013','pt-PT','CF7533Link',N'7533 - Manifesto de Carga Interior','N','N') , (1999,'2/15/2016','pt-PT','chxbxAdvanceSearch',N'Busca de Descrições Guiada','N','N') , (1999,'2/15/2016','pt-PT','chxbxContent',N'Mostrar Notícias do Content','N','N') , (1999,'2/15/2016','pt-PT','chxbxDisplayQualifiedNumbers',N'Unicamente Números Plenamente Qualificados','N','N') , (1999,'2/15/2016','pt-PT','chxbxHighlightSearchTerms',N'Destacar termos de busca nos resultados','N','N') , (1999,'2/15/2016','pt-PT','chxbxIncludeParent',N'Mostrar Capítulos/Sub Capítulos','N','N') , (1999,'11/16/2018','pt-PT','chxbxIncludeValidationDetailInExtract',N'Incluir detalhe de validação no Extrato do Excel/PDF','N','N') , (1999,'2/15/2016','pt-PT','chxbxIndustry',N'Mostrar Notícias da Indústria','N','N') , (1999,'2/15/2016','pt-PT','chxBxLastLogin',N'Visualizar Desde o Último Acesso:','N','N') , (1999,'2/15/2016','pt-PT','chxbxMarkingDescriptionsExpanded',N'Mostrar Texto Completo para todas as Descrições','N','N') , (1999,'2/15/2016','pt-PT','chxbxResultsDetail0_RoundAtEachStep',N'Arredondar Valores em cada etapa','N','N') , (1999,'2/15/2016','pt-PT','chxbxResultsDetail0_ShowCalculationSteps',N'Mostrar etapas do cálculo','N','N') , (1999,'2/15/2016','pt-PT','chxbxResultsDetail1_RoundAtEachStep',N'Arredondar Valores em cada etapa','N','N') , (1999,'2/15/2016','pt-PT','chxbxResultsDetail1_ShowCalculationSteps',N'Mostrar etapas do cálculo','N','N') , (1999,'2/15/2016','pt-PT','chxbxSaveSearches_PartnerIdShared',N'Compartilhar com outros usuários (com a mesma Empresa)','N','N') , (1999,'2/15/2016','pt-PT','chxbxSearchTypeBindingRulings',N'Soluções de Consulta','N','N') , (1999,'2/15/2016','pt-PT','chxbxSearchTypeChapterNotes',N'Notas do Capítulo','N','N') , (1999,'2/15/2016','pt-PT','chxbxSearchTypeChargesNotes',N'Notas dos Tributos','N','N') , (1999,'2/15/2016','pt-PT','chxbxSearchTypeHSDescription',N'Descrição do Código SH','N','N') , (1999,'2/15/2016','pt-PT','chxbxSearchTypeHSNumber',N'Código SH','N','N') , (1999,'2/15/2016','pt-PT','chxbxSearchTypeKeywords',N'Palavras-chave','N','N') , (1999,'2/15/2016','pt-PT','chxbxShowAllAvailableControls',N'Mostrar Todas as Descrições de Controles Disponíveis','N','N') , (1999,'2/15/2016','pt-PT','chxbxShowAllCountriesChargeDocuments',N'Mostrar documentos que se aplicam a todos os países','N','N') , (1999,'2/15/2016','pt-PT','chxbxShowAllCountriesControls',N'Mostrar documentos que se aplicam a todos os países','N','N') , (1999,'2/15/2016','pt-PT','chxbxShowAllCountriesImportControls',N'Mostrar documentos que se aplicam a todos os países','N','N') , (1999,'2/15/2016','pt-PT','chxbxShowAllFTACountries',N'Mostrar documentos que se aplicam a todos os países','N','N') , (1999,'2/15/2016','pt-PT','chxbxShowAllHSCharge',N'Mostrar documentos que se aplicam a todos os Códigos SH','N','N') , (1999,'2/15/2016','pt-PT','chxbxShowAllHSControls',N'Mostrar documentos que se aplicam a todos os Códigos SH','N','N') , (1999,'2/15/2016','pt-PT','chxbxShowAllHSImportControls',N'Mostrar documentos que se aplicam a todos os Códigos SH','N','N') , (1999,'2/15/2016','pt-PT','chxbxShowAllHSNumbers',N'Mostrar documentos que se aplicam a todos os Códigos SH','N','N') , (1999,'2/15/2016','pt-PT','chxbxShowAllMainRates',N'Mostrar Todos os Impostos de Importação','N','N') , (1999,'2/15/2016','pt-PT','chxbxShowAntiDumping',N'Mostrar Outros Impostos/Antidumping','N','N') , (1999,'2/15/2016','pt-PT','chxbxShowChapterFilters',N'Mostrar filtros de capítulo','N','N') , (1999,'2/15/2016','pt-PT','chxbxShowDescriptionInResult',N'Mostrar Descrição do Código SH no Resultado','N','N') , (1999,'2/15/2016','pt-PT','chxbxShowFullDescriptionControls',N'Mostrar Descrição Completa para Todos os Controles','N','N') , (1999,'2/15/2016','pt-PT','chxbxShowFullNoteText',N'Mostrar Texto Completo para todas as Notas','N','N') , (1999,'2/15/2016','pt-PT','chxbxShowHeadingFilters',N'Mostrar Filtros de Cabeçalho','N','N') , (1999,'2/15/2016','pt-PT','chxbxShowMatchesFilters',N'Mostrar filtros de correspondência','N','N') , (1999,'2/15/2016','pt-PT','chxbxShowPartnerIdShared',N'Mostrar Buscas Compartilhadas por outros usuários','N','N') , (1999,'2/15/2016','pt-PT','chxbxShowRecentSearches',N'Mostrar Buscas Recentes','N','N') , (1999,'2/15/2016','pt-PT','chxbxShowRecentSelections',N'Mostrar seleções recentes de Global Classification','N','N') , (1999,'2/15/2016','pt-PT','chxbxShowResultsFilters',N'Mostrar filtros de resultados','N','N') , (1999,'2/15/2016','pt-PT','chxbxShowSavedSearches',N'Mostrar Buscas Salvas','N','N') , (1999,'2/15/2016','pt-PT','chxbxShowUnsavedSearches',N'Mostrar Buscas Não Salvas','N','N') , (1999,'2/7/2013','pt-PT','ClientContentManagement_aspx',N'Atualizações tarifárias','N','N') , (1999,'2/15/2016','pt-PT','cmxbHSNumberDescription_00',N'Coincidir a frase inteira','N','N') , (1999,'2/15/2016','pt-PT','cmxbHSNumberDescription_01',N'Coincidir toda(s) a(s) palavra(s)','N','N') , (1999,'2/15/2016','pt-PT','cmxbHSNumberDescription_02',N'Coincidir qualquer palavra(s)','N','N') , (1999,'2/7/2013','pt-PT','CompanyProductRequest_aspx',N'Pedido de Certificado Cliente','N','N') , (1999,'2/7/2013','pt-PT','ConsolidatedShipment',N'Um erro inesperado ocorreu durante a tentativa de gerar Embarque consolidado.','N','N') , (1999,'2/7/2013','pt-PT','ConsolidatedShipmentLink',N'Relatório de Embarque consolidado','N','N') , (1999,'2/7/2013','pt-PT','ContainerChecklist',N'Um erro inesperado ocorreu durante a tentativa de gerar Checklist Container.','N','N') , (1999,'2/7/2013','pt-PT','ContainerChecklistLink',N'CSI - Checklist Container','N','N') , (1999,'2/7/2013','pt-PT','ContainerSealMissing',N'Lacre do container deve ser preenchido, Se não estiver usando um lacre, você pode digitar o número da fatura.','N','N') , (1999,'2/7/2013','pt-PT','CountryCode',N'Visão do País','N','N') , (1999,'2/7/2013','pt-PT','DiscreteDisplayHelp_aspx',N'Exibir a Ajuda','N','N') , (1999,'2/7/2013','pt-PT','DiscreteHelp_aspx',N'Ajudar','N','N') , (1999,'2/15/2016','pt-PT','drxlstAddSystemMessagesShareDuration',N'1','N','N') , (1999,'2/15/2016','pt-PT','drxlstAddSystemMessagesShareDuration_00',N'1 Dia','N','N') , (1999,'2/15/2016','pt-PT','drxlstAddSystemMessagesShareDuration_01',N'2 Dias','N','N') , (1999,'2/15/2016','pt-PT','drxlstAddSystemMessagesShareDuration_02',N'3 Dias','N','N') , (1999,'2/15/2016','pt-PT','drxlstAddSystemMessagesShareDuration_03',N'4 Dias','N','N') , (1999,'2/15/2016','pt-PT','drxlstAddSystemMessagesShareDuration_04',N'5 Dias','N','N') , (1999,'2/15/2016','pt-PT','drxlstGroupBy_00',N'País de Origem','N','N') , (1999,'2/15/2016','pt-PT','drxlstGroupBy_01',N'Código SH','N','N') , (1999,'2/15/2016','pt-PT','drxlstGroupBy_02',N'Nenhum','N','N') , (1999,'2/7/2013','pt-PT','Edit_aspx',N'Editar Classificação','N','N') , (1999,'2/7/2013','pt-PT','Embarcar Inventario Specifico',N'Expedição inventário específico','N','N') , (1999,'2/7/2013','pt-PT','ExportInvMXCopiesLink',N'Exportar fatura das Alfândegas mexicanos - Cópias','N','N') , (1999,'2/7/2013','pt-PT','ExportInvMXLink',N'Exportar fatura para a alfândega mexicana','N','N') , (1999,'2/7/2013','pt-PT','ExportInvoice',N'Um erro inesperado ocorreu durante a tentativa de gerar uma factura de exportação.','N','N') , (1999,'2/7/2013','pt-PT','ExportInvUSLink',N'Fatura de importação para Alfândega dos EUA','N','N') , (1999,'2/7/2013','pt-PT','f100300DutyPosting_aspx',N'Dever Destacamento','N','N') , (1999,'2/7/2013','pt-PT','ffdCF214Domestic_aspx',N'214 doméstica','N','N') , (1999,'2/7/2013','pt-PT','ffdCF214FTZAdmissionForm_aspx',N'CBP 214 Admissão FTZ','N','N') , (1999,'2/7/2013','pt-PT','ffdCF216Blanket_aspx',N'CBP216 Blanket','N','N') , (1999,'2/7/2013','pt-PT','ffdCF3461WeeklyEstimate_aspx',N'CBP3461 estimativa semanal','N','N') , (1999,'2/7/2013','pt-PT','ffdCF349HarborMaintenanceFeeForm_aspx',N'CBP349 Taxa de Manutenção Porto','N','N') , (1999,'2/7/2013','pt-PT','ffdCF7501WeeklyEntryForm_aspx',N'CBP7501 Entrada Semanal','N','N') , (1999,'2/7/2013','pt-PT','ffdCF7512Outbound_aspx',N'CBP7512 Outbound','N','N') , (1999,'2/7/2013','pt-PT','ffdCF7512ProForma_aspx',N'CBP 7512 ProForma','N','N') , (1999,'2/7/2013','pt-PT','ffdDiscreteWeeklyEstimateComparison_aspx',N'Comparação Estimativa discreto Semanal','N','N') , (1999,'2/7/2013','pt-PT','ffdImmediateDutyPayForm_aspx',N'Pagamento imediato das taxas','N','N') , (1999,'2/7/2013','pt-PT','ffdMXHighSecuritySeal_aspx',N'Geração de fatura','N','N') , (1999,'2/7/2013','pt-PT','ffdMXInvoiceHeader_aspx',N'Correção fatura','N','N') , (1999,'2/7/2013','pt-PT','ffdMXPedimentoHeader_aspx',N'Semanal Pedimento','N','N') , (1999,'2/7/2013','pt-PT','ffdMXPedimentoWeeklyEntryForm_aspx',N'Pedimento CONSOLIDADO','N','N') , (1999,'2/7/2013','pt-PT','ffdMXWeeklyPedimento_aspx',N'Pedimento Atribuição de número','N','N') , (1999,'2/7/2013','pt-PT','ffdMXWeeklyPedimentoForm_aspx',N'Semanal Pedimento','N','N') , (1999,'2/7/2013','pt-PT','ffdMXZoneScrapInvoice_aspx',N'Sucata Fatura','N','N') , (1999,'2/7/2013','pt-PT','ffdWeeklyEstimateEntryForm_aspx',N'Estimativa semanal','N','N') , (1999,'2/7/2013','pt-PT','fid_101801_ManualReceipts_aspx',N'Recibos manuais','N','N') , (1999,'2/7/2013','pt-PT','fid_3000_ManualReceipts_aspx',N'Recibos manuais','N','N') , (1999,'2/7/2013','pt-PT','fidAESReportEntry_aspx',N'AES Entrada Relatório','N','N') , (1999,'2/7/2013','pt-PT','fidExportCISLI_aspx',N'{0}','N','N') , (1999,'2/7/2013','pt-PT','fidExportEntry_aspx',N'Exportar Expedição','N','N') , (1999,'2/7/2013','pt-PT','fidFTABOMRulesAnalysis_aspx',N'Análise BOM','N','N') , (1999,'2/7/2013','pt-PT','fidFTAMassAnalysis_aspx',N'Missa Análise BOM','N','N') , (1999,'2/7/2013','pt-PT','fidGenerateCensusFile_aspx',N'Gerar arquivo Censo','N','N') , (1999,'2/7/2013','pt-PT','fidIMCompletion_aspx',N'Conclusão IM','N','N') , (1999,'2/7/2013','pt-PT','fidLotSampling_aspx',N'Amostragem muito','N','N') , (1999,'2/7/2013','pt-PT','fidManualProduction_aspx',N'Produção Manual','N','N') , (1999,'2/7/2013','pt-PT','fidManualReceipts_aspx',N'Entrada de Dados recibo','N','N') , (1999,'2/7/2013','pt-PT','fidManualShipments_aspx',N'Os embarques manuais','N','N') , (1999,'2/7/2013','pt-PT','fidProductFTAMaint_aspx',N'FTA produto Registros','N','N') , (1999,'2/7/2013','pt-PT','fidTerminalProcessing_aspx',N'Terminal de processamento','N','N') , (1999,'2/7/2013','pt-PT','fidUploadReceipts_aspx',N'Carregar Receipts','N','N') , (1999,'2/7/2013','pt-PT','fidUploadShipments_aspx',N'Carregar embarques','N','N') , (1999,'2/7/2013','pt-PT','figImportDataIntoStaging_aspx',N'Importar dados para Encenação','N','N') , (1999,'2/15/2016','pt-PT','FILTER_Contains',N'Contém','N','N') , (1999,'2/15/2016','pt-PT','FILTER_DoesNotContain',N'Não Contém','N','N') , (1999,'2/15/2016','pt-PT','FILTER_EndsWith',N'Termina com','N','N') , (1999,'2/15/2016','pt-PT','FILTER_EqualTo',N'Igual a','N','N') , (1999,'2/15/2016','pt-PT','FILTER_GreaterThan',N'Maior que','N','N') , (1999,'2/15/2016','pt-PT','FILTER_GreaterThanOrEqualTo',N'Maior ou igual a','N','N') , (1999,'2/15/2016','pt-PT','FILTER_IsEmpty',N'Vazio','N','N') , (1999,'2/15/2016','pt-PT','FILTER_LessThan',N'Menor que','N','N') , (1999,'2/15/2016','pt-PT','FILTER_LessThanOrEqualTo',N'Menor ou igual a','N','N') , (1999,'2/15/2016','pt-PT','FILTER_NoFilter',N'Sem Filtro','N','N') , (1999,'2/15/2016','pt-PT','FILTER_NotEqualTo',N'Não igual a','N','N') , (1999,'2/15/2016','pt-PT','FILTER_NotIsEmpty',N'Não está vazio','N','N') , (1999,'2/15/2016','pt-PT','FILTER_StartsWith',N'Começa com','N','N') , (1999,'2/7/2013','pt-PT','fmdInterCountryShipmentRequirements_aspx',N'Requisitos de Embarque do Inter País','N','N') , (1999,'2/7/2013','pt-PT','fmdItemMaster_aspx',N'Cadastro de Itens','N','N') , (1999,'2/7/2013','pt-PT','fmdSetBreakdown_aspx',N'Definir Breakdown','N','N') , (1999,'2/15/2016','pt-PT','fmgAddKnowledge_aspx',N'Adicionar/Editar Notícias','N','N') , (1999,'2/7/2013','pt-PT','fmgCompanyMaintenance_aspx',N'Manutenção Empresa','N','N') , (1999,'3/10/2013','pt-PT','fmgDTSSpreadsheetImport_aspx',N'Importaçao de Planilha DPS','N','N') , (1999,'2/7/2013','pt-PT','fmgExchangeRate_aspx',N'Configuração da Taxa de Câmbio','N','N') , (1999,'2/7/2013','pt-PT','fmgExchangeValidation_aspx',N'Troca de validação','N','N') , (1999,'2/7/2013','pt-PT','fmgHTSMaintenance_aspx',N'HTS Manutenção','N','N') , (1999,'2/15/2016','pt-PT','fmgKnowledgeProfile_aspx',N'Perfil das Notícias','N','N') , (1999,'2/7/2013','pt-PT','fmgMaintenance_aspx',N'Manutenção','N','N') , (1999,'2/7/2013','pt-PT','fmgRulesEntry_aspx',N'Entrada regras','N','N') , (1999,'2/7/2013','pt-PT','fmgSearch_aspx',N'Pesquisar','N','N') , (1999,'2/15/2016','pt-PT','fmgSubscriptionManagement_aspx',N'Content - Assinaturas','N','N') , (1999,'2/7/2013','pt-PT','fmgSupplierDashboard_aspx',N'Painel fornecedor','N','N') , (1999,'2/7/2013','pt-PT','fmgWorkQueue_aspx',N'Detalhe o pedido do cliente','N','N') , (1999,'2/7/2013','pt-PT','frdAnnualFTZBoardReport_aspx',N'Anual FTZ Board Report','N','N') , (1999,'2/7/2013','pt-PT','frdAnnualMaquilaReport_aspx',N'Relatório Anual de Maquila','N','N') , (1999,'2/7/2013','pt-PT','frdAnnualReconciliationReport_aspx',N'Reconciliação anual','N','N') , (1999,'2/7/2013','pt-PT','frdAssistDetailReport_aspx',N'Assistencia Detalhada','N','N') , (1999,'2/7/2013','pt-PT','frdAssistSummaryReport_aspx',N'Assist Resumo','N','N') , (1999,'2/7/2013','pt-PT','frdCanadianLoadSheetInvoiceReport_aspx',N'Carga canadense Relatório Fatura Folha','N','N') , (1999,'2/7/2013','pt-PT','frdCF214ListingReport_aspx',N'214 Relatório Listagem','N','N') , (1999,'2/7/2013','pt-PT','frdComponentBalanceAuditReport_aspx',N'Auditoria Balanço componente','N','N') , (1999,'2/7/2013','pt-PT','frdDailyShipmentsReport_aspx',N'Os embarques diários','N','N') , (1999,'2/7/2013','pt-PT','frdDiplomatMilitaryReport_aspx',N'Relatório diplomata Militar','N','N') , (1999,'2/7/2013','pt-PT','frdDistributionRunningBalanceReport_aspx',N'Distribuição Relatório de Balanço de Execução','N','N') , (1999,'2/7/2013','pt-PT','frdExportInvoiceReport_aspx',N'Exportar relatório Fatura','N','N') , (1999,'2/7/2013','pt-PT','frdFGBalanceAuditReport_aspx',N'Auditoria Balanço produtos acabados','N','N') , (1999,'2/7/2013','pt-PT','frdFinishedGoodBalanceAuditReport_aspx',N'Auditoria Balanço acabado','N','N') , (1999,'2/7/2013','pt-PT','frdFTACert_aspx',N'FTA Certificado','N','N') , (1999,'2/7/2013','pt-PT','frdFTAComponentDuty_aspx',N'FTA Dever Componente','N','N') , (1999,'2/7/2013','pt-PT','frdFTASupplierCert_aspx',N'Certificado de Fornecedor','N','N') , (1999,'2/7/2013','pt-PT','frdFTZDutySavingsReport_aspx',N'Poupança dever','N','N') , (1999,'2/7/2013','pt-PT','frdFTZInventoryAuditReport_aspx',N'FTZ Relatório de Auditoria de Inventário','N','N') , (1999,'2/7/2013','pt-PT','frdIntrastat_aspx',N'Intrastat','N','N') , (1999,'2/7/2013','pt-PT','frdInventoryBalanceAuditReport_aspx',N'Inventário Relatório de Auditoria Balanço','N','N') , (1999,'2/7/2013','pt-PT','frdInventoryBalByLocationReport_aspx',N'Balanço de inventário por Localidade','N','N') , (1999,'2/7/2013','pt-PT','frdInvoice_aspx',N'SDI Relatório','N','N') , (1999,'2/7/2013','pt-PT','frdLoctonReport_aspx',N'Relatório de localidade','N','N') , (1999,'2/7/2013','pt-PT','frdLotGenealogy_aspx',N'Lote de Genealogia','N','N') , (1999,'2/7/2013','pt-PT','frdMonthlySEDReport_aspx',N'Relatório Mensal SED','N','N') , (1999,'2/7/2013','pt-PT','frdMonthlyTEReport_aspx',N'Relatório Mensal TE','N','N') , (1999,'2/7/2013','pt-PT','frdMXInegiReport_aspx',N'INEGI','N','N') , (1999,'2/7/2013','pt-PT','frdMXInventoryAudit_aspx',N'Balanço de inventário','N','N') , (1999,'2/7/2013','pt-PT','frdMXInventoryHistory_aspx',N'História inventário','N','N') , (1999,'2/7/2013','pt-PT','frdMXOpenPedimentoReport_aspx',N'Abrir Relatório de Pedimento','N','N') , (1999,'2/7/2013','pt-PT','frdMXPedimentoSummary_aspx',N'Resumo Pedimento','N','N') , (1999,'2/7/2013','pt-PT','frdMXReportListings_aspx',N'Listagens relatório','N','N') , (1999,'2/7/2013','pt-PT','frdMXScrapTransactionAudit_aspx',N'Inventário alocados a partir deFragmentos','N','N') , (1999,'2/7/2013','pt-PT','frdMXShipmentTransactionAudit_aspx',N'Exportações com inventário associado','N','N') , (1999,'2/7/2013','pt-PT','frdNonFTACert_aspx',N'Carta FTA não','N','N') , (1999,'2/7/2013','pt-PT','frdOpenInbondManifestReport_aspx',N'Manifesto Inbond aberto','N','N') , (1999,'2/7/2013','pt-PT','frdPedimentoListingReport_aspx',N'Abrir Pedimento Relatório','N','N') , (1999,'2/7/2013','pt-PT','frdProductHistoryReport_aspx',N'Relatório do histórico de produto','N','N') , (1999,'2/7/2013','pt-PT','frdProductHistoryReportWithLot_aspx',N'História produto por LOTE','N','N') , (1999,'2/7/2013','pt-PT','frdProductShipmentReport_aspx',N'Relatório de embarque do produto','N','N') , (1999,'2/7/2013','pt-PT','frdReturnGoodsPCC_aspx',N'Devolução para PCC','N','N') , (1999,'2/7/2013','pt-PT','frdRunningBalanceReport_aspx',N'Correndo relatório de balanço','N','N') , (1999,'2/7/2013','pt-PT','frdScrapProFormaReport_aspx',N'Sucata Pro Forma','N','N') , (1999,'2/7/2013','pt-PT','frdValidationReport_aspx',N'Relatório de Validação','N','N') , (1999,'2/7/2013','pt-PT','frdWeeklyCF3461ReconReport_aspx',N'Reconciliação CBP3461 semanal','N','N') , (1999,'2/7/2013','pt-PT','frdWeeklyExportReconciliationReport_aspx',N'Reconciliação Exportação semanal','N','N') , (1999,'2/7/2013','pt-PT','frdWeeklyOutboundReconReport_aspx',N'Relatório de Reconciliação semanal de saída','N','N') , (1999,'2/7/2013','pt-PT','frdWeeklyPedimentoSummary_aspx',N'Pedimento Relatório Resumido','N','N') , (1999,'2/7/2013','pt-PT','frdZoneActivityReport_aspx',N'FTZ Relatório de Atividades','N','N') , (1999,'2/7/2013','pt-PT','frdZoneValueReport_aspx',N'Relatório de valor de Zona','N','N') , (1999,'2/7/2013','pt-PT','fsgGroupList_aspx',N'Configuração grupo','N','N') , (1999,'2/7/2013','pt-PT','fsgGroupSetup_aspx',N'Configuração grupo','N','N') , (1999,'2/7/2013','pt-PT','fsgNoAccess_aspx',N'Sem acesso','N','N') , (1999,'2/7/2013','pt-PT','fsgSystemProcessing_aspx',N'Processamento deSistema','N','N') , (1999,'2/7/2013','pt-PT','fsgUserPasswordChange_aspx',N'Alterar senha do usuário','N','N') , (1999,'2/7/2013','pt-PT','fsgUserReset_aspx',N'Configuração do usuário','N','N') , (1999,'2/7/2013','pt-PT','fsgUserSetup_aspx',N'Configuração do usuário','N','N') , (1999,'2/7/2013','pt-PT','fta_maintenance_CompanyProductRequest_aspx',N'Pedido de produto ao cliente','N','N') , (1999,'2/7/2013','pt-PT','fta_maintenance_fmgworkqueue_aspx',N'Detalhe o pedido do cliente','N','N') , (1999,'2/7/2013','pt-PT','fudCreatePeriodBalances_aspx',N'Criar Saldos Período','N','N') , (1999,'2/7/2013','pt-PT','fudForeignStatusCalculator_aspx',N'Calculadora Estado estrangeiro','N','N') , (1999,'2/7/2013','pt-PT','fudFormTracer_aspx',N'Pesquisa de Formulário','N','N') , (1999,'2/7/2013','pt-PT','fudGlobalDashboard_aspx',N'EV Painel','N','N') , (1999,'2/7/2013','pt-PT','fudMyDashboard_aspx',N'Meu painel de Instrumentos','N','N') , (1999,'2/7/2013','pt-PT','fug100200PackingCostAlloc_aspx',N'Embalagem Alocação de Custos','N','N') , (1999,'2/7/2013','pt-PT','fugAccessConfigFiles_aspx',N'Acessar arquivos de configuração','N','N') , (1999,'2/7/2013','pt-PT','fugAccessLogFiles_aspx',N'Acessar arquivos de log','N','N') , (1999,'2/7/2013','pt-PT','fugAccessReportFiles_aspx',N'Acessar arquivos de relatório','N','N') , (1999,'2/15/2016','pt-PT','fugBindingRulings_aspx',N'Soluções de Consulta','N','N') , (1999,'2/7/2013','pt-PT','fugBOMUpload_aspx',N'BOM Enviar','N','N') , (1999,'2/15/2016','pt-PT','fugContentAttributes_aspx',N'Atributos do Global Trade Content','N','N') , (1999,'2/15/2016','pt-PT','fugContentExternalTemplate_aspx',N'Content -Modelo Externo','N','N') , (1999,'2/15/2016','pt-PT','fugContentSalesOverview_aspx',N'Content - Visão Geral de Vendas','N','N') , (1999,'2/15/2016','pt-PT','fugCountryInfoDetail_aspx',N'Informações do País','N','N') , (1999,'2/15/2016','pt-PT','fugDocumentAnalyzer_aspx',N'Document Analyzer','N','N') , (1999,'2/7/2013','pt-PT','fugDocumentRequests_aspx',N'Pedido de Certificado','N','N') , (1999,'2/7/2013','pt-PT','fugDocumentRetention_aspx',N'Retenção de Documentos','N','N') , (1999,'2/15/2016','pt-PT','fugDTSLookup_aspx',N'Pesquisa de LPN','N','N') , (1999,'2/15/2016','pt-PT','fugDutyTaxAnalyzer_aspx',N'Analise de Impostos e Taxas','N','N') , (1999,'2/15/2016','pt-PT','fugECCN_aspx',N'ECN/Lista de Bens de Uso Duplo','N','N') , (1999,'2/15/2016','pt-PT','fugECCNDetail_aspx',N'ECN/Lista de Bens de Uso Duplo (Pesquisa Rápida)','N','N') , (1999,'2/15/2016','pt-PT','fugeccnlookup_aspx',N'Consulta de ECN/Lista de Produto Dual','N','N') , (1999,'2/7/2013','pt-PT','fugEditCF214_aspx',N'Editar CF214','N','N') , (1999,'2/7/2013','pt-PT','fugFTABOMAnalysis_aspx',N'FTA Análise BOM','N','N') , (1999,'2/7/2013','pt-PT','fugGenealogy_aspx',N'LOTE de Genealogia','N','N') , (1999,'2/15/2016','pt-PT','fugGlobalTariffs_aspx',N'Tarifas Globais','N','N') , (1999,'2/15/2016','pt-PT','fugGlobalTariffsDetail_aspx',N'Tarifas Globais (Pesquisa Rápida)','N','N') , (1999,'2/15/2016','pt-PT','fugGlobalTariffsLanding_aspx',N'Tarifas Globais','N','N') , (1999,'2/15/2016','pt-PT','fugGlobalTariffsLookup_aspx',N'Consulta de Tarifas Globais','N','N') , (1999,'2/7/2013','pt-PT','fugHsReference_aspx',N'HS Referência','N','N') , (1999,'2/15/2016','pt-PT','fugImportExportVolumes_aspx',N'Analise de Volumes de Importação/Exportação','N','N') , (1999,'2/7/2013','pt-PT','fugImportFileToTable_aspx',N'Importar Planilha','N','N') , (1999,'2/15/2016','pt-PT','fugKnowledge_aspx',N'Rede de Notícias','N','N') , (1999,'2/15/2016','pt-PT','fugKnowledgeDetail_aspx',N'Detalhe das Notícias','N','N') , (1999,'2/15/2016','pt-PT','fugLandedCostAnalyzer_aspx',N'Landed Cost Analyzer','N','N') , (1999,'2/15/2016','pt-PT','fugLegalText_aspx',N'Texto Legal','N','N') , (1999,'2/7/2013','pt-PT','fugMassUpdate_aspx',N'Atualização','N','N') , (1999,'2/15/2016','pt-PT','fugMessages_aspx',N'Mensagens do Sistema','N','N') , (1999,'2/7/2013','pt-PT','fugOpenQuery_aspx',N'Abra consulta','N','N') , (1999,'2/7/2013','pt-PT','fugOpenSQL_aspx',N'Abra o SQL Server','N','N') , (1999,'2/7/2013','pt-PT','fugOpenUpdate_aspx',N'Abra Atualização','N','N') , (1999,'2/15/2016','pt-PT','fugRegulationListUpdates_aspx',N'Atualizações da Lista de Regulamentos','N','N') , (1999,'2/7/2013','pt-PT','fugRenderExcel_aspx',N'Renderização Excel','N','N') , (1999,'2/7/2013','pt-PT','fugReprintExitDocID_aspx',N'Un-Print 7501/7512','N','N') , (1999,'2/7/2013','pt-PT','fugSavedQueries_aspx',N'Consultas Guardadas','N','N') , (1999,'2/15/2016','pt-PT','fugsearchhistorydetail_aspx',N'Buscar Detalhe do Histórico','N','N') , (1999,'2/7/2013','pt-PT','fugSourcingMatrix_aspx',N'Analisador de tarifa','N','N') , (1999,'2/7/2013','pt-PT','fugSupportTools_aspx',N'Ferramentas de Suporte','N','N') , (1999,'2/7/2013','pt-PT','fugTariffAnalyzer_aspx',N'Analisador de tarifa','N','N') , (1999,'2/15/2016','pt-PT','fugTariffAnalyzerNew_aspx',N'Tariff Analyzer','N','N') , (1999,'2/15/2016','pt-PT','fugTariffUpdates_aspx',N'Atualizações das Tarifas','N','N') , (1999,'2/7/2013','pt-PT','fugTaskManager_aspx',N'Gerenciador de Tarefas','N','N') , (1999,'2/15/2016','pt-PT','fugWCOIndex_aspx',N'Índice Alfabético OMA','N','N') , (1999,'2/15/2016','pt-PT','fugwconotes_aspx',N'Notas Explicativas da OMA','N','N') , (1999,'2/7/2013','pt-PT','fxd100400AutoPopulateCF214Report_aspx',N'Auto Preencher CBP214','N','N') , (1999,'2/7/2013','pt-PT','fxd100400InsertFIFOReceipts_aspx',N'100400InserirrecibosFIFO','N','N') , (1999,'2/7/2013','pt-PT','fxd100400ZeroDutyExportsToEntry_aspx',N'100400 Taxa Zero Exportações Entrada','N','N') , (1999,'2/7/2013','pt-PT','fxd214RelatedConcurrences_aspx',N'Coincidências relacionadas','N','N') , (1999,'2/7/2013','pt-PT','fxd214Replies_aspx',N'214 Respostas','N','N') , (1999,'2/7/2013','pt-PT','fxd214ReplyDetail_aspx',N'214 Detalhe Responder','N','N') , (1999,'2/7/2013','pt-PT','fxd214ReplyFTDetail_aspx',N'214 Detalhe FT Responder','N','N') , (1999,'2/7/2013','pt-PT','fxd214Summary_aspx',N'214 Resumo','N','N') , (1999,'2/7/2013','pt-PT','fxdABIExceptions_aspx',N'Exceções ABI','N','N') , (1999,'2/7/2013','pt-PT','fxdAddImporter_aspx',N'Adicionar Importador','N','N') , (1999,'2/7/2013','pt-PT','fxdAddManufacturer_aspx',N'Adicionar Fabricante','N','N') , (1999,'2/7/2013','pt-PT','fxdAdministrativeMessagesDetail_aspx',N'Detalhe Mensagens administrativa','N','N') , (1999,'2/7/2013','pt-PT','fxdAdministrativeMessagesQuery_aspx',N'Consulta Mensagens administrativa','N','N') , (1999,'2/7/2013','pt-PT','fxdAdministrativeMessagesSummary_aspx',N'Resumo Mensagens administrativa','N','N') , (1999,'2/7/2013','pt-PT','fxdAllocatePackingCosts_aspx',N'Alocar os custos de embalagem','N','N') , (1999,'2/7/2013','pt-PT','fxdAssignCF214_aspx',N'Atribuir CBP214','N','N') , (1999,'2/7/2013','pt-PT','fxdAssignCF3461_aspx',N'Atribuir CBP3461','N','N') , (1999,'2/7/2013','pt-PT','fxdAssignCF7501_aspx',N'Atribuir CBP7501','N','N') , (1999,'2/7/2013','pt-PT','fxdAssignCF7512_aspx',N'Atribuir CBP7512','N','N') , (1999,'2/7/2013','pt-PT','fxdAssignCF7512PartsEdit_aspx',N'Atribuir CBP7512 Peças','N','N') , (1999,'2/7/2013','pt-PT','fxdAssignCF7512PartsQuery_aspx',N'Atribuir CBP7512 Peças','N','N') , (1999,'2/7/2013','pt-PT','fxdAssignE214_aspx',N'Atribuir E214','N','N') , (1999,'2/7/2013','pt-PT','fxdAssignExports_aspx',N'Atribuir Exportações','N','N') , (1999,'2/7/2013','pt-PT','fxdAssignMXExpInv_aspx',N'Exportar Atribuição Fatura','N','N') , (1999,'2/7/2013','pt-PT','fxdAssignMXImpInv_aspx',N'Importar Atribuição Fatura','N','N') , (1999,'2/7/2013','pt-PT','fxdAssignNedRec_aspx',N'Atribuição Recebimento negativo','N','N') , (1999,'2/7/2013','pt-PT','fxdAssignSDI_aspx',N'Atribuição SDI','N','N') , (1999,'2/7/2013','pt-PT','fxdAssignSDW_aspx',N'Atribuição SDW','N','N') , (1999,'2/7/2013','pt-PT','fxdAssist_aspx',N'Auxiliar','N','N') , (1999,'2/7/2013','pt-PT','fxdAutoPopulateCF214Assignment_aspx',N'Auto Preencher CBP214 Atribuição','N','N') , (1999,'2/7/2013','pt-PT','fxdAutoPopulateCF214Manifest_aspx',N'Manifesto Auto PopulateCBP214','N','N') , (1999,'2/7/2013','pt-PT','fxdAutoPopulateCF214Report_aspx',N'Auto Preencher CBP214 Relatório','N','N') , (1999,'2/7/2013','pt-PT','fxdAutoPopulateCF214ZoneToZone_aspx',N'Auto Preencher CBP214 zona para zona','N','N') , (1999,'2/7/2013','pt-PT','fxdBrokerImportDashboard_aspx',N'Painel Liquidação entrada','N','N') , (1999,'2/7/2013','pt-PT','fxdBrokerImportRecon_aspx',N'Entrada / Classificação Comparação','N','N') , (1999,'2/7/2013','pt-PT','fxdCanadianLoadsEdit_aspx',N'Carrega canadenses Editar','N','N') , (1999,'2/7/2013','pt-PT','fxdCanadianLoadsQuery_aspx',N'Consulta Cargas canadense','N','N') , (1999,'2/7/2013','pt-PT','fxdConcurrenceDetail_aspx',N'Detalhe Concorrência','N','N') , (1999,'2/7/2013','pt-PT','fxdConcurrenceSummary_aspx',N'Resumo Concorrência','N','N') , (1999,'2/7/2013','pt-PT','fxdConcurReplies_aspx',N'Coincidir Respostas','N','N') , (1999,'2/7/2013','pt-PT','fxdConcurReplyDetail_aspx',N'Coincidir Detalhe de resposta','N','N') , (1999,'2/7/2013','pt-PT','fxdConcurReplyFZDetail_aspx',N'Coincidir FZ Detalhe de Resposta','N','N') , (1999,'2/7/2013','pt-PT','fxdConfirmDelete_aspx',N'Confirmar exclusão','N','N') , (1999,'2/7/2013','pt-PT','fxdConfirmFillAll_aspx',N'Confirmar Todos preenchimentos','N','N') , (1999,'2/7/2013','pt-PT','fxdCustomTransportIdLogic_aspx',N'Lógica Transporte personalizado','N','N') , (1999,'2/7/2013','pt-PT','fxdDefaults_aspx',N'Padrões','N','N') , (1999,'2/7/2013','pt-PT','fxdDeleteBulkErrors_aspx',N'Apagar erros de capacidade','N','N') , (1999,'2/7/2013','pt-PT','fxdDiplomatMilitaryVehiclesEdit_aspx',N'Editar Veículos militares diplomata','N','N') , (1999,'2/7/2013','pt-PT','fxdDiplomatMilitaryVehiclesQuery_aspx',N'Consulta Veículos militares diplomata','N','N') , (1999,'3/10/2013','pt-PT','fxdDPSQuery_aspx',N'Pesquisar DPS','N','N') , (1999,'3/10/2013','pt-PT','fxdDTSHistory_aspx',N'Histórico de Pesquisas DPS','N','N') , (1999,'3/10/2013','pt-PT','fxdDTSNotes_aspx',N'Notas DPS','N','N') , (1999,'2/7/2013','pt-PT','fxdDTSProductMapping_aspx',N'Mapeamento de Produto DPS','N','N') , (1999,'3/10/2013','pt-PT','fxdDTSQuery_aspx',N'Pesquisar DPS','N','N') , (1999,'3/10/2013','pt-PT','fxdDTSQueryDetail_aspx',N'Detalhes da Pesquisa DPS','N','N') , (1999,'3/10/2013','pt-PT','fxdDTSRegulationList_aspx',N'Lista de Regulamento DPS','N','N') , (1999,'3/10/2013','pt-PT','fxdDTSWebserviceTest_aspx',N'Teste do Serviço Web DPS','N','N') , (1999,'2/7/2013','pt-PT','fxdECCNQuery_aspx',N'ECCN classificação','N','N') , (1999,'2/7/2013','pt-PT','fxdECCNQueryDetail_aspx',N'ECN classificação','N','N') , (1999,'2/7/2013','pt-PT','fxdEditAdmission_aspx',N'Edite Admissão','N','N') , (1999,'2/7/2013','pt-PT','fxdEditFifoProcessing_aspx',N'Editar Fifo Processamento','N','N') , (1999,'2/7/2013','pt-PT','fxdEditInvBalRecon_aspx',N'Edite saldos de estoque','N','N') , (1999,'2/7/2013','pt-PT','fxdEntryValidation_aspx',N'Validação de entrada','N','N') , (1999,'2/7/2013','pt-PT','fxdEntryVisibilitySummary_aspx',N'Resumo Visibilidade entrada','N','N') , (1999,'2/7/2013','pt-PT','fxdEUManifestEntry_aspx',N'Entrada de Dados de Manifesto','N','N') , (1999,'2/7/2013','pt-PT','fxdEXPInvPrep_aspx',N'Exportar Preparação','N','N') , (1999,'2/7/2013','pt-PT','fxdExportLicenseEdit_aspx',N'Editar Licença de Exportação','N','N') , (1999,'2/7/2013','pt-PT','fxdFifo_aspx',N'Iniciar o processamento de inventário','N','N') , (1999,'2/7/2013','pt-PT','fxdFifoValidationErrors_aspx',N'Erros de Validação','N','N') , (1999,'2/7/2013','pt-PT','fxdFixedAssetProcessing_aspx',N'Ativo Imobilizado e Equipamentos','N','N') , (1999,'2/7/2013','pt-PT','fxdHTSQuery_aspx',N'HTS consulta','N','N') , (1999,'2/7/2013','pt-PT','fxdImpInvPrep_aspx',N'importar Preparação da Fatura','N','N') , (1999,'2/7/2013','pt-PT','fxdImporterBondQuery_aspx',N'Consulta de Bond Importador','N','N') , (1999,'2/7/2013','pt-PT','fxdItemActivation_aspx',N'Ativação do item','N','N') , (1999,'2/7/2013','pt-PT','fxdKanbanRelease_aspx',N'Kanban Lançamento','N','N') , (1999,'2/7/2013','pt-PT','fxdLoadExportFiles_aspx',N'Carregar arquivos de exportação','N','N') , (1999,'2/7/2013','pt-PT','fxdLoadIntegrationFiles_aspx',N'Carregar arquivos de Integração','N','N') , (1999,'2/7/2013','pt-PT','fxdLoadIntegrationFilesV2_aspx',N'Carregar arquivos de Integração','N','N') , (1999,'2/7/2013','pt-PT','fxdManifestAssignment_aspx',N'Atribuição de manifesto','N','N') , (1999,'2/7/2013','pt-PT','fxdManifestEdit_aspx',N'Editar manifesto','N','N') , (1999,'2/7/2013','pt-PT','fxdManifestEntry_aspx',N'Entrada de manifesto','N','N') , (1999,'2/7/2013','pt-PT','fxdManifestQuery_aspx',N'Consulta de manifesto','N','N') , (1999,'2/7/2013','pt-PT','fxdPendingReassignment_aspx',N'Pendente Redesignação','N','N') , (1999,'2/7/2013','pt-PT','fxdPreparation_aspx',N'Preparação','N','N') , (1999,'2/7/2013','pt-PT','fxdProcessPositiveAdjustments_aspx',N'Processar ajustes positivos','N','N') , (1999,'2/7/2013','pt-PT','fxdReceiptValidationUpdate_aspx',N'Atualização de Validação de recibo','N','N') , (1999,'2/7/2013','pt-PT','fxdReleaseLotScrap_aspx',N'Liberação do extrato de Lote','N','N') , (1999,'2/7/2013','pt-PT','fxdReleaseScrapHold_aspx',N'Liberação de Extrato','N','N') , (1999,'2/7/2013','pt-PT','fxdScheduleStagingDataTransfer_aspx',N'Encenação de transferência de dados','N','N') , (1999,'2/7/2013','pt-PT','fxdScheduleStagingToMasterDataMove_aspx',N'Transferência de encenação agendada','N','N') , (1999,'2/7/2013','pt-PT','fxdSFD_aspx',N'Atribuição SFD','N','N') , (1999,'2/7/2013','pt-PT','fxdShipmentReallocation_aspx',N'Realocação de embarque','N','N') , (1999,'2/7/2013','pt-PT','fxdShippedVehiclesEdit_aspx',N'Veículos enviados Editar','N','N') , (1999,'2/7/2013','pt-PT','fxdShippedVehiclesQuery_aspx',N'Expedido Consulta Veículos','N','N') , (1999,'2/7/2013','pt-PT','fxdShowFifoProcessing_aspx',N'Editar transações','N','N') , (1999,'2/7/2013','pt-PT','fxdStagingRelease_aspx',N'Encenação de Lançamento','N','N') , (1999,'2/7/2013','pt-PT','fxdSyncInventory_aspx',N'Sincronizar Inventário','N','N') , (1999,'2/7/2013','pt-PT','fxdTempDeposit_aspx',N'Depósito temporário','N','N') , (1999,'2/7/2013','pt-PT','fxdTester_aspx',N'Testador','N','N') , (1999,'2/7/2013','pt-PT','fxdTransactionReview_aspx',N'Reversão TXN comentário','N','N') , (1999,'2/7/2013','pt-PT','fxdTransactionSummary_aspx',N'Resumo da transação','N','N') , (1999,'2/7/2013','pt-PT','fxdUpdateMidByTransportID_aspx',N'Atualize MID Por TransportID','N','N') , (1999,'2/7/2013','pt-PT','fxdZeroDutyExportsToEntry_aspx',N'Taxa Zero de Exportações Entrada','N','N') , (1999,'2/7/2013','pt-PT','fxdZoneToZoneImport_aspx',N'Importar Zona para zona','N','N') , (1999,'2/7/2013','pt-PT','fxdZoneToZoneManualReconciliation_aspx',N'Zona para zona manual de Reconciliação','N','N') , (1999,'2/7/2013','pt-PT','fxdZoneToZoneOverlay_aspx',N'Zona para zona de sobreposição','N','N') , (1999,'2/7/2013','pt-PT','fxdZoneToZoneReconciliation_aspx',N'Zona para zona Reconciliação','N','N') , (1999,'2/7/2013','pt-PT','fxdZoneToZoneTransfer_aspx',N'Zona para zona de transferência','N','N') , (1999,'2/7/2013','pt-PT','fxxExecuteBatchSQL_aspx',N'Processo fechado Expedição','N','N') , (1999,'2/7/2013','pt-PT','fxxExecuteUpdate_aspx',N'Executar atualização de dados','N','N') , (1999,'2/7/2013','pt-PT','fxxImportBOM_aspx',N'Importação BOM','N','N') , (1999,'2/7/2013','pt-PT','fxxImportCisco214_aspx',N'Importação CBP214','N','N') , (1999,'2/7/2013','pt-PT','fxxImportCommercialPricing_aspx',N'Importar Preços Comercial','N','N') , (1999,'2/7/2013','pt-PT','fxxImportSamsungBOM_aspx',N'Importação BOM','N','N') , (1999,'2/7/2013','pt-PT','fxxLotShipments_aspx',N'Lote de embarque','N','N') , (1999,'2/7/2013','pt-PT','fxxManualOverrides_aspx',N'Substituições manuais','N','N') , (1999,'2/7/2013','pt-PT','fxxSpecificInventoryShipments',N'Expedição inventário específico','N','N') , (1999,'2/7/2013','pt-PT','fxxSpecificInventoryShipments_aspx',N'Expedição inventário específico','N','N') , (1999,'2/7/2013','pt-PT','GetInvoiceShipping',N'Erro inesperado enquanto tentava recuperar Informações de envio da fatura.','N','N') , (1999,'2/7/2013','pt-PT','GrossWeightNumeric',N'O peso bruto deve ser numérico','N','N') , (1999,'2/7/2013','pt-PT','HarmonizedReport',N'Um erro inesperado ocorreu ao tentar gerar relatório HS Harmonizado.','N','N') , (1999,'2/7/2013','pt-PT','HighSecurityMXLink',N'MX Alta Segurança Selo EUA','N','N') , (1999,'2/7/2013','pt-PT','HighSecuritySealCover',N'Erro ao gerar a Alta Segurança de lacre da página de rosto.','N','N') , (1999,'2/7/2013','pt-PT','HighSecuritySealCoverLink',N'Alta Segurança de lacre da página de rosto','N','N') , (1999,'2/7/2013','pt-PT','HighSecurityUSLink',N'EUA Alta Segurança de lacre EUA','N','N') , (1999,'2/7/2013','pt-PT','hlExit',N'Sair','N','N') , (1999,'2/7/2013','pt-PT','hlxExport',N'Exportar','N','N') , (1999,'2/7/2013','pt-PT','hlxExportDate',N'Data Export (MM / DD / AAAA)','N','N') , (1999,'2/7/2013','pt-PT','hlxProduct',N'Produto','N','N') , (1999,'2/7/2013','pt-PT','hlxReceiptDate',N'Data de Recebimento (MM / DD / AAAA)','N','N') , (1999,'2/7/2013','pt-PT','HTSHarmonizedLink',N'HTS Harmonizado Relatório','N','N') , (1999,'2/15/2016','pt-PT','hyxlinkResultsDetail0_Close',N'Fechar','N','N') , (1999,'2/15/2016','pt-PT','hyxlinkResultsDetail0_Duplicate',N'(duplicar e comparar)','N','N') , (1999,'2/15/2016','pt-PT','hyxlinkResultsDetail1_Close',N'Fechar','N','N') , (1999,'2/15/2016','pt-PT','hyxlinkResultsDetail1_Duplicate',N'(duplicar e comparar)','N','N') , (1999,'2/15/2016','pt-PT','hyxlnkAddSystemMessages',N'Salvar','N','N') , (1999,'2/15/2016','pt-PT','hyxlnkAdvancedSearch',N'Busca Avançada','N','N') , (1999,'2/15/2016','pt-PT','hyxlnkAutoSize',N'Redimensionar','N','N') , (1999,'2/15/2016','pt-PT','hyxlnkBottomOfPage',N'Inferior','N','N') , (1999,'2/15/2016','pt-PT','hyxlnkCancelSystemMessages',N'Cancelar','N','N') , (1999,'2/15/2016','pt-PT','hyxlnkCCLCC',N'Lista por País de Controles Comerciais','N','N') , (1999,'2/15/2016','pt-PT','hyxlnkClose',N'Fechar','N','N') , (1999,'2/15/2016','pt-PT','hyxlnkExit',N'Saída','N','N') , (1999,'2/15/2016','pt-PT','hyxlnkFavorites',N'Favoritos','N','N') , (1999,'2/15/2016','pt-PT','hyxlnkFavoritesImage',N'Favoritos','N','N') , (1999,'2/15/2016','pt-PT','hyxlnkFullSite',N'Mostrar Sítio Completo','N','N') , (1999,'2/15/2016','pt-PT','hyxlnkGenerateLink',N'Buscas Recentes (antigo)','N','N') , (1999,'2/15/2016','pt-PT','hyxlnkGlobalClassificationSelection',N'Selecionar do Global Classification','N','N') , (1999,'2/15/2016','pt-PT','hyxlnkLogout',N'Sair','N','N') , (1999,'2/15/2016','pt-PT','hyxlnkManageProfiles',N'Administrar Perfis','N','N') , (1999,'2/15/2016','pt-PT','hyxlnkManageSearches',N'Buscas Recentes/Seleçõs do Global Classification','N','N') , (1999,'2/15/2016','pt-PT','hyxlnkManageSearchesNew',N'Administrar Buscas','N','N') , (1999,'2/15/2016','pt-PT','hyxlnkMaximize',N'Maximizar','N','N') , (1999,'2/15/2016','pt-PT','hyxlnkMobileMainMenu',N'Menu Principal','N','N') , (1999,'2/15/2016','pt-PT','hyxlnkMobileSite',N'Mostrar Sítio Móvel','N','N') , (1999,'2/15/2016','pt-PT','hyxlnkMobileSiteBackup',N'Mostrar Sítio Móvel','N','N') , (1999,'2/15/2016','pt-PT','hyxlnkMultipleMatchingECN',N'Veja os Resultados de Busca Novamente','N','N') , (1999,'2/15/2016','pt-PT','hyxlnkNewSearch',N'Nova Busca','N','N') , (1999,'2/15/2016','pt-PT','hyxlnkOrigination_BindingRulingsAdvancedSearch',N'Busca Avançada de Regras de Classificação de Origem','N','N') , (1999,'2/15/2016','pt-PT','hyxlnkPopOut',N'Abrir em uma Nova Janela de Navegação','N','N') , (1999,'2/7/2013','pt-PT','hyxlnkProces',N'Processo','N','N') , (1999,'2/7/2013','pt-PT','hyxlnkProcess',N'Processo','N','N') , (1999,'2/15/2016','pt-PT','hyxlnkRecentSearches',N'Buscas Recentes','N','N') , (1999,'2/15/2016','pt-PT','hyxlnkRefresh',N'Atualizar','N','N') , (1999,'2/15/2016','pt-PT','hyxlnkReload',N'Recarregar','N','N') , (1999,'2/7/2013','pt-PT','hyxlnkSave',N'Salvar','N','N') , (1999,'2/15/2016','pt-PT','hyxlnkSaveCurrentSearch',N'Salvar Busca Recente','N','N') , (1999,'2/15/2016','pt-PT','hyxlnkSaveSearch',N'Salvar Busca','N','N') , (1999,'2/15/2016','pt-PT','hyxlnkStartOver',N'Atualizar','N','N') , (1999,'2/15/2016','pt-PT','hyxlnkTopOfPage',N'Topo da tela','N','N') , (1999,'2/15/2016','pt-PT','hyxlnkUnsavedSearches',N'Buscas não salvas','N','N') , (1999,'2/15/2016','pt-PT','hyxlnkViewDutyDetails',N'Ver Detalhes da Taxa','N','N') , (1999,'2/15/2016','pt-PT','hyxlnkViewFTADetails',N'Ver Detalhes das Regras de Origem do FTA','N','N') , (1999,'2/15/2016','pt-PT','hyxTop',N'Topo Da Página','N','N') , (1999,'2/7/2013','pt-PT','Import Invoice for Mexican Customs',N'Fatura de exportação de Alfândega dos EUA','N','N') , (1999,'2/7/2013','pt-PT','ImportInvMXCopiesLink',N'Fatura de importação para alfândega mexicana - Cópias','N','N') , (1999,'2/7/2013','pt-PT','ImportInvMXLink',N'Fatura de importação para alfândega mexicana','N','N') , (1999,'2/7/2013','pt-PT','ImportInvoice',N'Um erro inesperado ocorreu durante a tentativa de gerar uma fatura de importação.','N','N') , (1999,'2/7/2013','pt-PT','ImportInvUSLink',N'Fatura de exportação de Alfândega dos EUA','N','N') , (1999,'2/7/2013','pt-PT','Insert6043',N'Erro inesperado ao tentar inserir 6.043 informações.','N','N') , (1999,'2/7/2013','pt-PT','interfaces_fidSetKitManagement_aspx',N'Set / Kit Gestão','N','N') , (1999,'2/7/2013','pt-PT','InvoicePedimentoNum',N'Ocorreu um erro inesperado durante a tentativa de recuperar o número Pedimento fatura.','N','N') , (1999,'2/7/2013','pt-PT','InvoiceProforma',N'Erro inesperado ao tentar processar Proforma Invoice.','N','N') , (1999,'2/7/2013','pt-PT','InvoiceRemesaCount',N'Ocorreu um erro inesperado ao tentar recuperar a Nota Fiscal / Contagem Remesa.','N','N') , (1999,'2/7/2013','pt-PT','lblxBOMGuid',N'BOM Pesquisa','N','N') , (1999,'2/15/2016','pt-PT','lbxActualExcludedTerms',N'Termos de busca excluídos:','N','N') , (1999,'2/15/2016','pt-PT','lbxActualSearchSymbols',N'Termos de busca excluídos com símbolos:','N','N') , (1999,'2/15/2016','pt-PT','lbxActualSearchTerms',N'Termos de busca utilizados:','N','N') , (1999,'2/15/2016','pt-PT','lbxAddSystemMessagesAdditionalComments',N'Comentários Adicionais:','N','N') , (1999,'2/15/2016','pt-PT','lbxAddSystemMessagesDescription',N'Mensagem:','N','N') , (1999,'2/15/2016','pt-PT','lbxAddSystemMessagesShareDuration',N'Compartilhar Duração:','N','N') , (1999,'2/7/2013','pt-PT','lbxAdministrative',N'Administrativo','N','N') , (1999,'2/15/2016','pt-PT','lbxAgencies',N'Agências','N','N') , (1999,'2/7/2013','pt-PT','lbxAgentCURP',N'Agente CURP','N','N') , (1999,'2/7/2013','pt-PT','lbxAgenteName',N'Nome do Agente','N','N') , (1999,'2/7/2013','pt-PT','lbxAltValue',N'Custo de material','N','N') , (1999,'2/7/2013','pt-PT','lbxArrivalMOT',N'Modo de transporte','N','N') , (1999,'2/15/2016','pt-PT','lbxAvailableFTA',N'FTAs/Acordos Comerciais Disponíveis','N','N') , (1999,'2/15/2016','pt-PT','lbxBindingRulings',N'Soluções de Consulta','N','N') , (1999,'2/7/2013','pt-PT','lbxBOL',N'BOL','N','N') , (1999,'2/7/2013','pt-PT','lbxBOMGuid',N'BOM Pesquisa','N','N') , (1999,'2/7/2013','pt-PT','lbxBrokerCURP',N'Broker CURP','N','N') , (1999,'2/7/2013','pt-PT','lbxBrokerName',N'Corretor','N','N') , (1999,'2/15/2016','pt-PT','lbxChapterBxFields',N'Capítulos Selecionados:','N','N') , (1999,'2/15/2016','pt-PT','lbxChapterDescription',N'Capítulo/Descrição:','N','N') , (1999,'2/15/2016','pt-PT','lbxChargeQuotasTab',N'Quotas','N','N') , (1999,'2/7/2013','pt-PT','lbxClosingAuthorizationCode',N'Fechando Código de Autorização','N','N') , (1999,'2/7/2013','pt-PT','lbxContainerNum',N'Recipiente','N','N') , (1999,'2/15/2016','pt-PT','lbxContentAvailability',N'Disponibilidade de Conteúdo','N','N') , (1999,'2/15/2016','pt-PT','lbxCountryBxFields',N'Países Selecionados:','N','N') , (1999,'2/15/2016','pt-PT','lbxCountryCustomsDocuments',N'Documentos Aduaneiros','N','N') , (1999,'2/15/2016','pt-PT','lbxCountryFilter',N'País:','N','N') , (1999,'2/15/2016','pt-PT','lbxCountryFinancialDocuments',N'Documentos Financeiros','N','N') , (1999,'2/15/2016','pt-PT','lbxCountryLevelControls',N'Outros Controles','N','N') , (1999,'2/15/2016','pt-PT','lbxCountryOfDestination',N'País de Destino','N','N') , (1999,'2/15/2016','pt-PT','lbxCountryOfDestinationTitleFields',N'Selecionar País de Destino','N','N') , (1999,'2/15/2016','pt-PT','lbxCountryOfExport',N'País de Exportação','N','N') , (1999,'2/15/2016','pt-PT','lbxCountryOfImport',N'País de Importação','N','N') , (1999,'2/15/2016','pt-PT','lbxCountryOfOrigin',N'País de Origem','N','N') , (1999,'2/15/2016','pt-PT','lbxCountryOfOriginDestination',N'Filtro de País de Origem/Destino','N','N') , (1999,'2/15/2016','pt-PT','lbxCountryOfOriginTitleFields',N'Selecionar País de Origem','N','N') , (1999,'2/15/2016','pt-PT','lbxCountryThreat',N'Ameaças do País','N','N') , (1999,'2/15/2016','pt-PT','lbxCountryThreatEmpty',N'Ameaças do País não disponível','N','N') , (1999,'2/15/2016','pt-PT','lbxCountryTransportationDocuments',N'Documentos de Transporte','N','N') , (1999,'2/15/2016','pt-PT','lbxCulture',N'Idioma Atual:','N','N') , (1999,'2/15/2016','pt-PT','lbxCultureCode',N'Idioma de Descrição/Controle/Notas','N','N') , (1999,'2/15/2016','pt-PT','lbxCultureCode1',N'Código do Idioma:','N','N') , (1999,'2/15/2016','pt-PT','lbxCurrency',N'Código(s) de Moeda(s) Disponível','N','N') , (1999,'2/15/2016','pt-PT','lbxCurrencyEmpty',N'Informações da moeda não disponíveis.','N','N') , (1999,'2/15/2016','pt-PT','lbxCurrentDateDataDisplay',N'As datas são exibidas usando:','N','N') , (1999,'2/7/2013','pt-PT','lbxCurrentYearForeignInvestment',N'Ano Corrente','N','N') , (1999,'2/7/2013','pt-PT','lbxCustomsFilingLocation',N'Alfândega local de arquivamento','N','N') , (1999,'2/7/2013','pt-PT','lbxCustomsImportExportLocation',N'Alfândega Localização','N','N') , (1999,'2/7/2013','pt-PT','lbxDays',N'Número de dias','N','N') , (1999,'2/7/2013','pt-PT','lbxDeleteMessage',N'Tem certeza de que deseja excluir o registro?','N','N') , (1999,'2/7/2013','pt-PT','lbxDepartureMOT',N'MOT partida','N','N') , (1999,'2/15/2016','pt-PT','lbxDescriptionSearchType',N'Descrição de tipos de busca','N','N') , (1999,'2/15/2016','pt-PT','lbxDestinationCountry',N'País de Destino:','N','N') , (1999,'2/7/2013','pt-PT','lbxDestinationOrigin',N'Destino / Origem','N','N') , (1999,'2/15/2016','pt-PT','lbxDocumentContacts',N'Informação de Contato','N','N') , (1999,'2/15/2016','pt-PT','lbxDocumentDetail',N'Detalhe do Documento','N','N') , (1999,'2/15/2016','pt-PT','lbxDocumentDetailTab',N'Detalhe do Documento','N','N') , (1999,'2/15/2016','pt-PT','lbxDocumentNotes',N'Notas','N','N') , (1999,'2/15/2016','pt-PT','lbxDocumentSamples',N'Exemplos','N','N') , (1999,'2/15/2016','pt-PT','lbxDocumentsMessage',N'Nem todos os documentos podem ser necessários, alguns podem ser exigidos apenas com base na descrição do produto.','N','N') , (1999,'2/15/2016','pt-PT','lbxECN',N'Número/Descrição de ECN/Lista de Produto Dual','N','N') , (1999,'2/15/2016','pt-PT','lbxECNFilter',N'Filtro de Número ECN/Lista de Produto Dual','N','N') , (1999,'2/15/2016','pt-PT','lbxEffectiveDate',N'Data de Efetividade','N','N') , (1999,'2/15/2016','pt-PT','lbxEffectivityDate',N'Data de Efetividade','N','N') , (1999,'2/15/2016','pt-PT','lbxEmptyECNText',N'Por favor Insira/Selecione um Número ECN/Lista de Produto Dual exato para visualizar','N','N') , (1999,'2/15/2016','pt-PT','lbxEmptyHSNumberText',N'Por Favor Insira/Selecione o Código SH exato para visualizar','N','N') , (1999,'2/7/2013','pt-PT','lbxEventDescription',N'Descrição do Evento','N','N') , (1999,'2/7/2013','pt-PT','lbxEventType',N'Tipo de evento','N','N') , (1999,'2/7/2013','pt-PT','lbxExchangeRate',N'Taxa de Câmbio','N','N') , (1999,'2/15/2016','pt-PT','lbxExpirationDate',N'Data de Expiração','N','N') , (1999,'2/15/2016','pt-PT','lbxExportCharges',N'Impostos de Exportação','N','N') , (1999,'2/15/2016','pt-PT','lbxExportControl',N'Lista(s) de Controle de Exportação','N','N') , (1999,'2/15/2016','pt-PT','lbxExportControls',N'Controles de Exportação','N','N') , (1999,'2/7/2013','pt-PT','lbxExportCountry',N'País Importador','N','N') , (1999,'2/15/2016','pt-PT','lbxExportCountryCustomsDocuments',N'Documentos Aduaneiros de Exportação','N','N') , (1999,'2/15/2016','pt-PT','lbxExportCountryFinancialDocuments',N'Documentos Financeiros de Exportação','N','N') , (1999,'2/15/2016','pt-PT','lbxExportCountryTransportationDocuments',N'Documentos de Transporte de Exportação','N','N') , (1999,'2/7/2013','pt-PT','lbxExportedProducts',N'Os produtos exportados','N','N') , (1999,'2/7/2013','pt-PT','lbxFactoryEmpCount',N'Fábrica','N','N') , (1999,'2/15/2016','pt-PT','lbxFilterResultDescription',N'Filtrar Descrição de Resultados','N','N') , (1999,'2/15/2016','pt-PT','lbxFilterResultDescriptionOptions',N'Filtrar opções de resultado de busca','N','N') , (1999,'2/7/2013','pt-PT','lbxForeignInvestment',N'Investimento Estrangeiro','N','N') , (1999,'2/7/2013','pt-PT','lbxFreightCharges',N'As despesas de frete','N','N') , (1999,'2/15/2016','pt-PT','lbxFutureRatesTab',N'Alíquotas Futuras','N','N') , (1999,'2/7/2013','pt-PT','lbxGenerate',N'Gerar','N','N') , (1999,'2/15/2016','pt-PT','lbxGeneratedInputsUOMIntro',N'Por favor insira as entradas para','N','N') , (1999,'3/3/2017','pt-PT','lbxGoHome',N'Saída','N','N') , (1999,'2/15/2016','pt-PT','lbxGroupBy',N'Agrupar Resultado por:','N','N') , (1999,'2/15/2016','pt-PT','lbxHeader',N'Detalhes do Cabeçalho','N','N') , (1999,'2/15/2016','pt-PT','lbxHolidays',N'Feriados','N','N') , (1999,'2/15/2016','pt-PT','lbxHSFilter',N'Filtro de Código SH','N','N') , (1999,'2/15/2016','pt-PT','lbxHSMaintenanceLogText',N'Registro de Manutenção SH','N','N') , (1999,'2/15/2016','pt-PT','lbxHSNumber',N'Código SH / Descrição','N','N') , (1999,'2/15/2016','pt-PT','lbxHSNumberDescription',N'Código SH/Descrição','N','N') , (1999,'2/15/2016','pt-PT','lbxHSNumberFilter',N'Filtro de Código SH','N','N') , (1999,'2/15/2016','pt-PT','lbxHSNumberSelection',N'Código SH','N','N') , (1999,'2/15/2016','pt-PT','lbxHSNumberSelectionSettings',N'Qual Capítulo/Descrição você gostaria que fosse o seu padrão?','N','N') , (1999,'2/15/2016','pt-PT','lbxHSNumberTitle',N'Código SH (Opicional)','N','N') , (1999,'2/15/2016','pt-PT','lbxHSNumberTitleFields',N'Selecione o Código SH','N','N') , (1999,'2/15/2016','pt-PT','lbxImageNoAvailable',N'Nenhuma Imagem Disponível','N','N') , (1999,'2/15/2016','pt-PT','lbxImportControls',N'Controles de Importação','N','N') , (1999,'2/7/2013','pt-PT','lbxImportExportMOT',N'Import / Export MOT','N','N') , (1999,'2/15/2016','pt-PT','lbxImportValuesByCountry',N'Volume de Importação por País','N','N') , (1999,'2/15/2016','pt-PT','lbxIncludeInflectional',N'Incluir formas flexionadas','N','N') INSERT INTO tmgPartnerCultureDefinitions(PartnerId,EffDate,CultureGuid,FieldName,FieldTranslation,DeletedFlag,KeepDuringRollback) VALUES (1999,'2/15/2016','pt-PT','lbxIncludeSpecialSymbols',N'Incluir os termos de busca excluídos com símbolos','N','N') , (1999,'2/15/2016','pt-PT','lbxIndustryBxFields',N'Indústrias Selecionadas:','N','N') , (1999,'2/7/2013','pt-PT','lbxInsuranceCharges',N'Encargos de seguros','N','N') , (1999,'2/7/2013','pt-PT','lbxInsuredValue',N'Valor Segurado','N','N') , (1999,'2/7/2013','pt-PT','lbxInvAmounts',N'Valor inv (USD)','N','N') , (1999,'2/7/2013','pt-PT','lbxinventoryid',N'Inventário','N','N') , (1999,'2/7/2013','pt-PT','lbxInvYear',N'Ano de Inventário','N','N') , (1999,'2/15/2016','pt-PT','lbxKnowledgeProfile',N'Perfil das Notícias','N','N') , (1999,'2/15/2016','pt-PT','lbxLstBxChapter',N'Selecionar Capítulo:','N','N') , (1999,'2/15/2016','pt-PT','lbxLstBxCountry',N'Selecionar Países:','N','N') , (1999,'2/15/2016','pt-PT','lbxLstBxIndustry',N'Selecionar Indústrias:','N','N') , (1999,'2/15/2016','pt-PT','lbxLstBxSolution',N'Selecionar Soluções:','N','N') , (1999,'2/15/2016','pt-PT','lbxMainDocuments',N'Documentos Principais','N','N') , (1999,'2/15/2016','pt-PT','lbxMainDuty',N'Imposto de Importação','N','N') , (1999,'2/15/2016','pt-PT','lbxManageSearches_RecentSearches',N'Buscas Recentes','N','N') , (1999,'2/15/2016','pt-PT','lbxManageSearches_RecentSelections',N'Seleções recentes do Global Classification','N','N') , (1999,'2/15/2016','pt-PT','lbxManageSearches_SavedSearches',N'Buscas Salvas','N','N') , (1999,'2/15/2016','pt-PT','lbxManageSearches_SharedSearches',N'Buscas Compartilhadas por outros usuários','N','N') , (1999,'2/15/2016','pt-PT','lbxManageSearches_UnsavedSearches',N'Mostrar Buscas Não Salvas','N','N') , (1999,'2/15/2016','pt-PT','lbxManageSearchesTitle',N'Administrar Buscas','N','N') , (1999,'2/15/2016','pt-PT','lbxMultipleMatchingECNQuestion',N'Há vários resultados encontrados.','N','N') , (1999,'2/7/2013','pt-PT','lbxMXExchangeRate',N'MX Exch (USD para MXN)','N','N') , (1999,'2/7/2013','pt-PT','lbxName',N'Nome','N','N') , (1999,'2/15/2016','pt-PT','lbxNewsCulture',N'Idioma das Notícias','N','N') , (1999,'2/15/2016','pt-PT','lbxNewsEffectiveDate',N'Data de Efetividade','N','N') , (1999,'2/15/2016','pt-PT','lbxNewsType',N'Tipo de Notícia','N','N') , (1999,'2/7/2013','pt-PT','lbxNote',N'Nota','N','N') , (1999,'2/15/2016','pt-PT','lbxOpinionLabel',N'Texto de Opinião:','N','N') , (1999,'2/15/2016','pt-PT','lbxOptional',N'Campos Opcionais','N','N') , (1999,'2/15/2016','pt-PT','lbxOrigination_GeneralRule',N'Regras Gerais','N','N') , (1999,'2/15/2016','pt-PT','lbxOrigination_RulesOfOriginNonPreferential',N'Regras de Origem não preferenciais''','N','N') , (1999,'2/15/2016','pt-PT','lbxOrigination_RulesOfOriginPreferential',N'Regra(s) específica(s)','N','N') , (1999,'2/15/2016','pt-PT','lbxOtherDuty',N'Outras Taxas','N','N') , (1999,'2/15/2016','pt-PT','lbxOtherImportCharges',N'Outros Taxas de Importação','N','N') , (1999,'2/15/2016','pt-PT','lbxOverwriteSave',N'Modificar/Sobrescrever Busca Existente','N','N') , (1999,'2/7/2013','pt-PT','lbxPackingCharges',N'Encargos de embalagem','N','N') , (1999,'2/7/2013','pt-PT','lbxParameters',N'Parâmetros: n º de dias =','N','N') , (1999,'2/15/2016','pt-PT','lbxPartner',N'Empresa Atual:','N','N') , (1999,'2/7/2013','pt-PT','lbxPedimentoBeginDate',N'Pedimento Data de Início (MM / DD / AAAA)','N','N') , (1999,'2/7/2013','pt-PT','lbxPedimentoCategory',N'Pedimento Categoria','N','N') , (1999,'2/7/2013','pt-PT','lbxPedimentoEndDate',N'Pedimento Data final (DD / MM / AAAA)','N','N') , (1999,'2/7/2013','pt-PT','lbxPort',N'Porta','N','N') , (1999,'2/15/2016','pt-PT','lbxPrefDuty',N'Taxa Preferencial','N','N') , (1999,'2/7/2013','pt-PT','lbxPreviousYearForeignInvestment',N'Ano Anterior','N','N') , (1999,'2/7/2013','pt-PT','lbxProcessingFee',N'Taxa de processamento','N','N') , (1999,'2/15/2016','pt-PT','lbxQuotaDetails',N'Detalhes da Quota','N','N') , (1999,'2/7/2013','pt-PT','lbxRCO21',N'ID vender','N','N') , (1999,'2/7/2013','pt-PT','lbxRCO22',N'Terminado lote da carga','N','N') , (1999,'2/7/2013','pt-PT','lbxRCO23',N'Lote da matéria-prima','N','N') , (1999,'2/15/2016','pt-PT','lbxRecentSearchesType',N'Tipos de Busca Recentes','N','N') , (1999,'2/7/2013','pt-PT','lbxRecordsPerPage',N'Registos por página','N','N') , (1999,'2/15/2016','pt-PT','lbxRegulationList',N'Lista de Regulamentos','N','N') , (1999,'2/15/2016','pt-PT','lbxRelatedECN',N'Número(s) ECN/Lista de Produto Dual preenchidos com AES','N','N') , (1999,'2/15/2016','pt-PT','lbxRelatedHS',N'Código SH Relacionado','N','N') , (1999,'2/7/2013','pt-PT','lbxReportFormat',N'Formato do Relatório','N','N') , (1999,'2/7/2013','pt-PT','lbxReportingLevel',N'Reportagem Nível','N','N') , (1999,'2/7/2013','pt-PT','lbxReportYear',N'Ano relatório','N','N') , (1999,'2/15/2016','pt-PT','lbxRequiredFields',N'Campos Obrigatórios','N','N') , (1999,'2/15/2016','pt-PT','lbxResultsDetail0_Destination',N'País de Destino','N','N') , (1999,'2/15/2016','pt-PT','lbxResultsDetail0_Origin',N'País de Origem','N','N') , (1999,'2/15/2016','pt-PT','lbxResultsDetail1_Destination',N'País de Destino','N','N') , (1999,'2/15/2016','pt-PT','lbxResultsDetail1_Origin',N'País de Origem','N','N') , (1999,'2/15/2016','pt-PT','lbxRulesOfOrigin',N'Regras de Origem','N','N') , (1999,'2/15/2016','pt-PT','lbxSaveAsNew',N'Salvar como novo','N','N') , (1999,'2/7/2013','pt-PT','lbxSaveDate',N'Data de salvamento','N','N') , (1999,'2/15/2016','pt-PT','lbxSavedSearches',N'Buscas Salvas','N','N') , (1999,'2/15/2016','pt-PT','lbxSaveNewSearch',N'Salvar Nova Busca','N','N') , (1999,'2/15/2016','pt-PT','lbxSaveSearches_SavedSearches',N'Buscas Salvas','N','N') , (1999,'2/15/2016','pt-PT','lbxSaveSearches_SearchName',N'Buscar Nome','N','N') , (1999,'2/15/2016','pt-PT','lbxSearchFilter',N'Filtragem de Busca Avançada','N','N') , (1999,'2/15/2016','pt-PT','lbxSearchHeadings',N'Buscar:','N','N') , (1999,'2/15/2016','pt-PT','lbxSearchProfileSetting',N'Você gostaria de definir suas configurações de perfil de pesquisa padrão?','N','N') , (1999,'2/15/2016','pt-PT','lbxSelectionGuide',N'Qual capítulo melhor descreve o seu produto?','N','N') , (1999,'2/15/2016','pt-PT','lbxSelectLanguage',N'Selecione o Idioma:','N','N') , (1999,'2/7/2013','pt-PT','lbxShipDate',N'Data de navio (MM / DD / AAAA)','N','N') , (1999,'2/7/2013','pt-PT','lbxShipmentDate',N'Data de envio (MM / DD / AAAA)','N','N') , (1999,'2/15/2016','pt-PT','lbxShowGuidedSearchResult',N'Resultados de busca guiados','N','N') , (1999,'2/7/2013','pt-PT','lbxSLOC',N'Ordem de Compra','N','N') , (1999,'2/15/2016','pt-PT','lbxSolutionBxFields',N'Soluções Selecionadas:','N','N') , (1999,'2/15/2016','pt-PT','lbxSpecificNotes',N'Notas Específicas','N','N') , (1999,'2/15/2016','pt-PT','lbxStandardNotes',N'Notas Padrão','N','N') , (1999,'2/7/2013','pt-PT','lbxStartDate',N'Data de Início','N','N') , (1999,'2/15/2016','pt-PT','lbxStatusBarCultureCode',N'Idioma de Descrição/Controles/Notas','N','N') , (1999,'2/15/2016','pt-PT','lbxStatusBarTariffSchedule',N'País/Tarifa Aduaneira','N','N') , (1999,'2/7/2013','pt-PT','lbxSubmitDate',N'Enviar Data','N','N') , (1999,'2/15/2016','pt-PT','lbxSupportingDocuments',N'Documentos de Suporte','N','N') , (1999,'2/15/2016','pt-PT','lbxTariffNotesTab',N'Notas da Tarifa','N','N') , (1999,'2/15/2016','pt-PT','lbxTariffSchedule',N'País/Tarifa Aduaneira','N','N') , (1999,'2/15/2016','pt-PT','lbxTariffScheduleEmpty',N'Informações da Tarifa Aduaneira não disponível.','N','N') , (1999,'2/15/2016','pt-PT','lbxTariffScheduleSelection',N'Qual Tarifa Aduaneira você gostaria que fosse o seu padrão?','N','N') , (1999,'2/7/2013','pt-PT','lbxTotalDutyDeclared',N'Taxa Declarada (USD)','N','N') , (1999,'2/7/2013','pt-PT','lbxTotalDutyPaid',N'Taxa paga','N','N') , (1999,'2/15/2016','pt-PT','lbxTotalResult',N'Total de Códigos SH encontrado:','N','N') , (1999,'2/15/2016','pt-PT','lbxTotalResultAfterFilter',N'Total de Códigos SH encontrado (depois da filtragem):','N','N') , (1999,'2/7/2013','pt-PT','lbxTotalSales',N'Total de vendas','N','N') , (1999,'2/7/2013','pt-PT','lbxTrailer',N'Número da fatura','N','N') , (1999,'2/7/2013','pt-PT','lbxTransportID',N'Número PO','N','N') , (1999,'2/7/2013','pt-PT','lbxTxnDate',N'TxnDate','N','N') , (1999,'2/7/2013','pt-PT','lbxTxnEndDate',N'Data final','N','N') , (1999,'2/7/2013','pt-PT','lbxTxnStartDate',N'Data de Início','N','N') , (1999,'2/15/2016','pt-PT','lbxUnitOfMeasure',N'Unidade(s) de Medida','N','N') , (1999,'2/15/2016','pt-PT','lbxUpdateInProgress',N'Atualização em progresso...','N','N') , (1999,'2/7/2013','pt-PT','lbxValidationFee',N'Taxa de validação','N','N') , (1999,'2/7/2013','pt-PT','lbxValue',N'Valor','N','N') , (1999,'2/15/2016','pt-PT','lbxVATCharges',N'VAT','N','N') , (1999,'2/15/2016','pt-PT','lbxView',N'Visualizar:','N','N') , (1999,'2/15/2016','pt-PT','lbxViewSelectionSettings',N'Qual vizualização você gostaria que fosse o seu padrão?','N','N') , (1999,'2/15/2016','pt-PT','lbxWelcome',N'Bem-vindo','N','N') , (1999,'2/7/2013','pt-PT','lbxYear',N'Ano','N','N') , (1999,'2/7/2013','pt-PT','lbxYearEmployeesCurrent',N'Corrente ano','N','N') , (1999,'2/7/2013','pt-PT','lbxYearEmployeesPrevious',N'Ano Anterior','N','N') , (1999,'2/7/2013','pt-PT','lnxbtnAddNew',N'Adicionar Novo','N','N') , (1999,'2/15/2016','pt-PT','lnxbtnApply',N'Aplicar','N','N') , (1999,'2/15/2016','pt-PT','lnxbtnCancelLoading',N'Cancelar','N','N') , (1999,'2/7/2013','pt-PT','lnxbtnDelete',N'Excluir','N','N') , (1999,'2/15/2016','pt-PT','lnxbtnDeleteComponentCancel',N'Cancelar','N','N') , (1999,'2/15/2016','pt-PT','lnxbtnDeleteComponentYes',N'Sim','N','N') , (1999,'2/7/2013','pt-PT','lnxbtnDeleteNo',N'Não','N','N') , (1999,'2/7/2013','pt-PT','lnxbtnDeleteYes',N'Sim','N','N') , (1999,'2/15/2016','pt-PT','lnxbtnExportToExcel',N'Exportar para Excel','N','N') , (1999,'2/15/2016','pt-PT','lnxbtnExportToPdf',N'Exportar para PDF','N','N') , (1999,'2/15/2016','pt-PT','lnxbtnFilterResultDescription',N'Aplicar filtro','N','N') , (1999,'2/15/2016','pt-PT','lnxbtnGeneratedInputsUOMOther_Cancel',N'Cancelar','N','N') , (1999,'2/15/2016','pt-PT','lnxbtnGeneratedInputsUOMOther_Save',N'Salvar','N','N') , (1999,'2/15/2016','pt-PT','lnxbtnHSNumberSettingsCancel',N'Cancelar','N','N') , (1999,'2/15/2016','pt-PT','lnxbtnHSNumberSettingsSave',N'Próximo','N','N') , (1999,'2/15/2016','pt-PT','lnxbtnManageSearchesCancel',N'Fechar','N','N') , (1999,'2/15/2016','pt-PT','lnxbtnManageSearchesTitle',N'Administrar Buscas','N','N') , (1999,'2/15/2016','pt-PT','lnxbtnMultipleMatchingECNCancel',N'Fechar','N','N') , (1999,'2/15/2016','pt-PT','lnxbtnNewSearch',N'Buscar','N','N') , (1999,'2/15/2016','pt-PT','lnxbtnPastUpdatesDetailCancel',N'Fechar','N','N') , (1999,'2/15/2016','pt-PT','lnxbtnPastUpdatesDetailGridViewCancel',N'Fechar','N','N') , (1999,'2/15/2016','pt-PT','lnxbtnResultsDetail0_AddNewCharge',N'Adicionar Novo Tributo','N','N') , (1999,'2/15/2016','pt-PT','lnxbtnResultsDetail0_Calculate',N'Atualizar Cálculos','N','N') , (1999,'2/15/2016','pt-PT','lnxbtnResultsDetail0_Calculate2',N'Atualizar Cálculos','N','N') , (1999,'2/15/2016','pt-PT','lnxbtnResultsDetail1_AddNewCharge',N'Adicionar Novo Tributo','N','N') , (1999,'2/15/2016','pt-PT','lnxbtnResultsDetail1_Calculate',N'Atualizar Cálculos','N','N') , (1999,'2/15/2016','pt-PT','lnxbtnResultsDetail1_Calculate2',N'Atualizar Cálculos','N','N') , (1999,'2/7/2013','pt-PT','lnxbtnReturnToDashboard',N'Voltar ao painel','N','N') , (1999,'2/15/2016','pt-PT','lnxbtnReturnWCOHierarchy',N'Redefinir Hierarquia da OMA','N','N') , (1999,'2/7/2013','pt-PT','lnxbtnSave',N'Salvar','N','N') , (1999,'2/15/2016','pt-PT','lnxbtnSaveSearches_Cancel',N'Cancelar','N','N') , (1999,'2/15/2016','pt-PT','lnxbtnSaveSearches_Save',N'Salvar','N','N') , (1999,'2/15/2016','pt-PT','lnxbtnSearch',N'Buscar','N','N') , (1999,'2/15/2016','pt-PT','lnxbtnSearchDetail',N'Busca Avançada','N','N') , (1999,'2/15/2016','pt-PT','lnxbtnSearchProfile',N'Buscar Perfil','N','N') , (1999,'2/15/2016','pt-PT','lnxbtnSettingsRemindMeLater',N'Lembrar Depois','N','N') , (1999,'2/15/2016','pt-PT','lnxbtnSettingsSave',N'Próximo','N','N') , (1999,'2/15/2016','pt-PT','lnxbtnSetupProfileLater',N'Lembrar Depois','N','N') , (1999,'2/15/2016','pt-PT','lnxbtnSetupProfileYes',N'Sim','N','N') , (1999,'2/15/2016','pt-PT','lnxbtnShowAllNews',N'Mostrar todas as Notícias','N','N') , (1999,'2/15/2016','pt-PT','lnxbtnTestPrint',N'Imprimir','N','N') , (1999,'2/15/2016','pt-PT','lnxbtnViewSettingsCancel',N'Cancelar','N','N') , (1999,'2/15/2016','pt-PT','lnxbtnViewSettingsSave',N'Salvar','N','N') , (1999,'2/7/2013','pt-PT','LoadIntegrationFiles_V2_aspx',N'Carregar arquivos de Integração','N','N') , (1999,'2/7/2013','pt-PT','LoadPort',N'Erro inesperado durante a tentativa de recuperar o nome do usuário atual completo.','N','N') , (1999,'2/7/2013','pt-PT','LoadPrinted',N'Ocorreu um erro inesperado ao tentar carregar faturas impressas.','N','N') , (1999,'2/7/2013','pt-PT','LoadUnprinted',N'Ocorreu um erro inesperado ao tentar carregar Un-impressos Facturas.','N','N') , (1999,'2/7/2013','pt-PT','Logon_aspx',N'Logon','N','N') , (1999,'2/7/2013','pt-PT','maintenance_fmdClassificationRequest_aspx',N'Criar pedido de classificação','N','N') , (1999,'2/7/2013','pt-PT','maintenance_fmdDashBoard_aspx',N'Painel Pedido de classificação','N','N') , (1999,'2/7/2013','pt-PT','Monitor_aspx',N'Monitor','N','N') , (1999,'2/7/2013','pt-PT','NoUserName',N'Erro inesperado durante a tentativa de recuperar o nome do usuário atual completo.','N','N') , (1999,'2/15/2016','pt-PT','Page size:',N'Tamanho da página:','N','N') , (1999,'2/7/2013','pt-PT','PedimentoInvoiceCount',N'Ocorreu um erro inesperado ao tentar recuperar o Conde Fatura Pedimento.','N','N') , (1999,'2/7/2013','pt-PT','PurchaseOrderNum',N'Ordem de Compra de pesquisa','N','N') , (1999,'2/15/2016','pt-PT','rbxDescriptionType',N'0','N','N') , (1999,'2/15/2016','pt-PT','rbxDescriptionType_00',N'Descrição Completa','N','N') , (1999,'2/15/2016','pt-PT','rbxDescriptionType_01',N'Descrição Breve','N','N') , (1999,'2/7/2013','pt-PT','rbxlstPedimentoDisplay_00',N'Não impresso','N','N') , (1999,'2/7/2013','pt-PT','rbxlstPedimentoDisplay_01',N'Impresso','N','N') , (1999,'2/7/2013','pt-PT','rbxReportType',N'Detentor lugar','N','N') , (1999,'2/7/2013','pt-PT','rbxReportType_00',N'Pedimentos Abertos','N','N') , (1999,'2/7/2013','pt-PT','rbxReportType_01',N'Pedimentos fechados','N','N') , (1999,'2/15/2016','pt-PT','rbxSaveSearches_SaveType_00',N'Salvar como Novo','N','N') , (1999,'2/15/2016','pt-PT','rbxSaveSearches_SaveType_01',N'Modificar/Sobrescrever Busca Existente','N','N') , (1999,'2/15/2016','pt-PT','Rbxselection',N'ECN/Lista de Produto Dual','N','N') , (1999,'2/15/2016','pt-PT','Rbxselection_00',N'ECN/Lista de Produto Dual','N','N') , (1999,'2/15/2016','pt-PT','Rbxselection_01',N'DPS','N','N') , (1999,'2/7/2013','pt-PT','RCO22',N'Número de Lote','N','N') , (1999,'2/7/2013','pt-PT','RCO23',N'Carga agregada','N','N') , (1999,'2/7/2013','pt-PT','rdxbtnNew',N'Novo','N','N') , (1999,'2/7/2013','pt-PT','rdxbtnSuccessive',N'Sucessivo','N','N') , (1999,'2/15/2016','pt-PT','rdxlstViewSetting',N'Visualização em grade','N','N') , (1999,'2/15/2016','pt-PT','rdxlstViewSetting_00',N'Visualização em grade','N','N') , (1999,'2/15/2016','pt-PT','rdxlstViewSetting_01',N'Visualização hierárquica','N','N') , (1999,'2/7/2013','pt-PT','RepairAffidavit',N'Um erro inesperdao ocorreu durante a tentativa de gerar um Atestado de reparação.','N','N') , (1999,'2/7/2013','pt-PT','RepairAffidavitLink',N'Depoimento de reparação','N','N') , (1999,'2/7/2013','pt-PT','rrdCF214Listing_pCloseDateHeader',N'Fecha de Exportacion','N','N') , (1999,'2/7/2013','pt-PT','rrdCF214Listing_pReceiptDateHeader',N'Fecha de Importação','N','N') , (1999,'2/7/2013','pt-PT','rrdCF214Listing_pReceiptDocIDHeader',N'Pedimento','N','N') , (1999,'2/7/2013','pt-PT','rrdComponentBalanceAudit',N'Auditoria Balanço componente','N','N') , (1999,'2/7/2013','pt-PT','rrdFinishedGoodBalanceAudit',N'Auditoria Balanço acabado','N','N') , (1999,'2/7/2013','pt-PT','rrdMXOpenPedimento_pNumDays',N'Número de dias','N','N') , (1999,'2/7/2013','pt-PT','rrdMXOpenPedimento_pOrderNumReceiptHeader',N'Numero da Invoice','N','N') , (1999,'2/7/2013','pt-PT','rrdMXOpenPedimento_pReceiptDocIDHeader',N'Pedimento','N','N') , (1999,'2/7/2013','pt-PT','rrdPedimentoListing_pCloseDateHeader',N'Data da Exportação','N','N') , (1999,'2/7/2013','pt-PT','rrdPedimentoListing_pReceiptDateHeader',N'Data da Importação','N','N') , (1999,'2/7/2013','pt-PT','rrdPedimentoListing_pReceiptDocIDHeader',N'Pedimento','N','N') , (1999,'2/7/2013','pt-PT','rrdProductHistory_pDocID',N'Pedimento','N','N') , (1999,'2/7/2013','pt-PT','rrdProductHistory_pMID',N'Vendedor','N','N') , (1999,'2/7/2013','pt-PT','rrdProductHistory_pProductNum',N'Produto','N','N') , (1999,'2/7/2013','pt-PT','rrdProductHistory_pReceiptData',N'ReceiptDate','N','N') , (1999,'2/7/2013','pt-PT','rrdProductHistory_pStatus',N'Estado','N','N') , (1999,'2/7/2013','pt-PT','rrdProductHistory_pTotalValue',N'Valor','N','N') , (1999,'2/7/2013','pt-PT','rrdProductHistory_pTransactionType',N'Tipo txn','N','N') , (1999,'2/7/2013','pt-PT','rrdProductHistory_pTxnDate',N'Data','N','N') , (1999,'2/7/2013','pt-PT','rrdProductHistory_pTxnQty',N'Quantidade','N','N') , (1999,'2/7/2013','pt-PT','rrdProductHistory_pTxnQtyUom',N'UOM','N','N') , (1999,'2/7/2013','pt-PT','ScrapInvoice',N'Um erro inesperado ocorreu durante a tentativa de gerar uma fatura Scrap.','N','N') , (1999,'2/7/2013','pt-PT','ScrapProforma',N'Erro inesperado ao tentar processar Proforma Scrap.','N','N') , (1999,'2/7/2013','pt-PT','Search.aspx',N'Pesquisa de produtos','N','N') , (1999,'2/7/2013','pt-PT','SEDPage1Link',N'Carregadores Página 1 Declaração de Exportação','N','N') , (1999,'2/7/2013','pt-PT','SEDPage2Link',N'Carregadores Página Declaração de Exportação 2','N','N') , (1999,'2/7/2013','pt-PT','SEDReport',N'Um erro inesperado ocorreu durante a tentativa de gerar Declaração de Exportação de Carga.','N','N') , (1999,'2/7/2013','pt-PT','ShipFromShipToValidation',N'Endereço do Exportador e do Importador não podem ser os mesmos','N','N') , (1999,'2/7/2013','pt-PT','SkidsNumeric',N'O Skid count ou paletes Count deve ser numérico','N','N') , (1999,'2/7/2013','pt-PT','SLIReport',N'Um erro ineperado ocorreu durante a tentativa de gerar uma Carta Shipper de instruções.','N','N') , (1999,'2/7/2013','pt-PT','tmdHts',N'HS Códigos','N','N') , (1999,'2/7/2013','pt-PT','tmfCountry',N'País','N','N') , (1999,'2/7/2013','pt-PT','tmfDefaults',N'Padrões do sistema','N','N') , (1999,'2/7/2013','pt-PT','tmfGlobalExchangeRates',N'Taxas de Câmbio','N','N') , (1999,'2/7/2013','pt-PT','tmfManufacturer',N'Identificação do fabricante','N','N') , (1999,'2/7/2013','pt-PT','tmfPortOfLading',N'Porto de destino','N','N') , (1999,'2/7/2013','pt-PT','tmfVendorManufacturerLookup',N'Fabricante fornecedor','N','N') , (1999,'2/7/2013','pt-PT','tmgGlobalCodes',N'Códigos globais','N','N') , (1999,'2/7/2013','pt-PT','tmgweblinks_aspx',N'Links da Web','N','N') , (1999,'2/7/2013','pt-PT','TransportID',N'Número PO','N','N') , (1999,'2/7/2013','pt-PT','txdAssist_aspx',N'Auxiliar de instalação','N','N') , (1999,'2/7/2013','pt-PT','txdPurchaseOrderAssignment',N'Compre Atribuição Ordem','N','N') , (1999,'2/7/2013','pt-PT','UpdateInvoiceHeader',N'Erro inesperado Atualizando cabeçalho da fatura.','N','N') , (1999,'2/7/2013','pt-PT','UserName',N'Nome de usuário','N','N') , (1999,'2/7/2013','pt-PT','USHighSecuritySeal',N'Erro ao gerar o lacre de alta segurança dos EUA.','N','N') , (1999,'2/7/2013','pt-PT','USSLILink',N'Alfândega dos EUA Carta carregadores de Instrução','N','N') , (1999,'2/7/2013','pt-PT','vid_BatchStatus',N'Ver status da Importação','N','N') , (1999,'2/7/2013','pt-PT','vid_ItemMasterSearch',N'Pesquisa do Cadastro de Itens','N','N') , (1999,'2/7/2013','pt-PT','vid_usrExportDocs',N'História exportação','N','N') , (1999,'2/7/2013','pt-PT','vid_usrImportDocs',N'História de importação','N','N') , (1999,'2/7/2013','pt-PT','vid_WebLinks',N'Referência país','N','N') , (1999,'2/15/2016','ru-RU','{4} {5} items in {1} pages',N'{4} {5} элементов в {1} страницы','N','N') , (1999,'2/15/2016','ru-RU','chxbxAdvanceSearch',N'Направленный Поиск по Описанию','N','N') , (1999,'2/15/2016','ru-RU','chxbxContent',N'Показать Новости Контента','N','N') , (1999,'2/15/2016','ru-RU','chxbxDisplayQualifiedNumbers',N'Только полностью квалифицированные коды','N','N') , (1999,'2/15/2016','ru-RU','chxbxHighlightSearchTerms',N'Выделять поисковые фразы в результате поиска','N','N') , (1999,'2/15/2016','ru-RU','chxbxIncludeParent',N'Включить Головные Коды','N','N') , (1999,'11/16/2018','ru-RU','chxbxIncludeValidationDetailInExtract',N'Включить Подробности Подтверждения Действительности в экстракт Excel/PDF','N','N') , (1999,'2/15/2016','ru-RU','chxbxIndustry',N'Показать Новости индустрии','N','N') , (1999,'2/15/2016','ru-RU','chxBxLastLogin',N'Посмотреть с Последнего ЛогинаЖ','N','N') , (1999,'2/15/2016','ru-RU','chxbxMarkingDescriptionsExpanded',N'Показать Полный Текст Всех Описаний','N','N') , (1999,'2/15/2016','ru-RU','chxbxResultsDetail0_RoundAtEachStep',N'Округлять значения на каждом этапе','N','N') , (1999,'2/15/2016','ru-RU','chxbxResultsDetail0_ShowCalculationSteps',N'Показать этапы расчета','N','N') , (1999,'2/15/2016','ru-RU','chxbxResultsDetail1_RoundAtEachStep',N'Округлять значения на каждом этапе','N','N') , (1999,'2/15/2016','ru-RU','chxbxResultsDetail1_ShowCalculationSteps',N'Показать этапы расчета','N','N') , (1999,'2/15/2016','ru-RU','chxbxSaveSearches_PartnerIdShared',N'Поделиться с другими пользователями (при том же партнере)','N','N') , (1999,'2/15/2016','ru-RU','chxbxSearchTypeBindingRulings',N'Классификации Государственных Постановлений','N','N') , (1999,'2/15/2016','ru-RU','chxbxSearchTypeChapterNotes',N'Примечания главы','N','N') , (1999,'2/15/2016','ru-RU','chxbxSearchTypeChargesNotes',N'Примечания налогов','N','N') , (1999,'2/15/2016','ru-RU','chxbxSearchTypeHSDescription',N'Описание Кода товарной номенклатуры','N','N') , (1999,'2/15/2016','ru-RU','chxbxSearchTypeHSNumber',N'Код товарной номенклатуры','N','N') , (1999,'2/15/2016','ru-RU','chxbxSearchTypeKeywords',N'Ключевые Слова','N','N') , (1999,'2/15/2016','ru-RU','chxbxShowAllAvailableControls',N'Показать Все Доступные Описания Контроля','N','N') , (1999,'2/15/2016','ru-RU','chxbxShowAllCountriesChargeDocuments',N'Показать Документы, относящиеся ко всем странам','N','N') , (1999,'2/15/2016','ru-RU','chxbxShowAllCountriesControls',N'Показать Документы, относящиеся ко всем странам','N','N') , (1999,'2/15/2016','ru-RU','chxbxShowAllCountriesImportControls',N'Показать Документы, относящиеся ко всем странам','N','N') , (1999,'2/15/2016','ru-RU','chxbxShowAllFTACountries',N'Показать Документы, относящиеся ко всем странам','N','N') , (1999,'2/15/2016','ru-RU','chxbxShowAllHSCharge',N'Показать Документы, относящиеся ко всем Кодом товарной номенклатуры','N','N') , (1999,'2/15/2016','ru-RU','chxbxShowAllHSControls',N'Показать Документы, относящиеся ко всем Кодом товарной номенклатуры','N','N') , (1999,'2/15/2016','ru-RU','chxbxShowAllHSImportControls',N'Показать Документы, относящиеся ко всем Кодом товарной номенклатуры','N','N') , (1999,'2/15/2016','ru-RU','chxbxShowAllHSNumbers',N'Показать Документы относящиеся ко всем кодам ТН ВЭД','N','N') , (1999,'2/15/2016','ru-RU','chxbxShowAllMainRates',N'Показать Все Основные Ставки','N','N') , (1999,'2/15/2016','ru-RU','chxbxShowAntiDumping',N'Показать Другие/Антидемпинговые Ставки','N','N') , (1999,'2/15/2016','ru-RU','chxbxShowChapterFilters',N'Показать фильтры главы','N','N') , (1999,'2/15/2016','ru-RU','chxbxShowDescriptionInResult',N'Показать Описание Кода Товарной Номенклатуры в Результате поиска','N','N') , (1999,'2/15/2016','ru-RU','chxbxShowFullDescriptionControls',N'Показать Полные Описания Для Всех Контролей','N','N') , (1999,'2/15/2016','ru-RU','chxbxShowFullNoteText',N'Показать Полный Текст Для Всех Примечаний','N','N') , (1999,'2/15/2016','ru-RU','chxbxShowHeadingFilters',N'Показать фильтры заголовки','N','N') , (1999,'2/15/2016','ru-RU','chxbxShowMatchesFilters',N'Показать соответствующие фильтры','N','N') , (1999,'2/15/2016','ru-RU','chxbxShowPartnerIdShared',N'Показать Поиски, предложенные другими пользователями','N','N') , (1999,'2/15/2016','ru-RU','chxbxShowRecentSearches',N'Показать Недавнии Поиски','N','N') , (1999,'2/15/2016','ru-RU','chxbxShowRecentSelections',N'Показать Недавно Избранные Глобальные Классификации','N','N') , (1999,'2/15/2016','ru-RU','chxbxShowResultsFilters',N'Показать фильтры Результатов','N','N') , (1999,'2/15/2016','ru-RU','chxbxShowSavedSearches',N'Показать Сохраненные поиски','N','N') , (1999,'2/15/2016','ru-RU','chxbxShowUnsavedSearches',N'Показать Несохраненные поиски','N','N') , (1999,'2/15/2016','ru-RU','cmxbHSNumberDescription_00',N'целую соответствующую фразу','N','N') , (1999,'2/15/2016','ru-RU','cmxbHSNumberDescription_01',N'Искать все соответствующие слова','N','N') , (1999,'2/15/2016','ru-RU','cmxbHSNumberDescription_02',N'Искать любое соответствующие слово','N','N') , (1999,'2/15/2016','ru-RU','drxlstAddSystemMessagesShareDuration',N'1','N','N') , (1999,'2/15/2016','ru-RU','drxlstAddSystemMessagesShareDuration_00',N'1 День','N','N') , (1999,'2/15/2016','ru-RU','drxlstAddSystemMessagesShareDuration_01',N'2 День','N','N') , (1999,'2/15/2016','ru-RU','drxlstAddSystemMessagesShareDuration_02',N'3 День','N','N') , (1999,'2/15/2016','ru-RU','drxlstAddSystemMessagesShareDuration_03',N'4 День','N','N') , (1999,'2/15/2016','ru-RU','drxlstAddSystemMessagesShareDuration_04',N'5 День','N','N') , (1999,'2/15/2016','ru-RU','drxlstGroupBy_00',N'Страна Происхождения','N','N') , (1999,'2/15/2016','ru-RU','drxlstGroupBy_01',N'Код Товарной Номенклатуры','N','N') , (1999,'2/15/2016','ru-RU','drxlstGroupBy_02',N'Ни один','N','N') , (1999,'2/15/2016','ru-RU','FILTER_Contains',N'Содержит','N','N') , (1999,'2/15/2016','ru-RU','FILTER_DoesNotContain',N'Не содержит','N','N') , (1999,'2/15/2016','ru-RU','FILTER_EndsWith',N'Заканчивается с','N','N') , (1999,'2/15/2016','ru-RU','FILTER_EqualTo',N'Равно','N','N') , (1999,'2/15/2016','ru-RU','FILTER_GreaterThan',N'БольшеЧем','N','N') , (1999,'2/15/2016','ru-RU','FILTER_GreaterThanOrEqualTo',N'БольшеИлиРавно','N','N') , (1999,'2/15/2016','ru-RU','FILTER_IsEmpty',N'Пустой','N','N') , (1999,'2/15/2016','ru-RU','FILTER_LessThan',N'МеньшеЧем','N','N') , (1999,'2/15/2016','ru-RU','FILTER_LessThanOrEqualTo',N'МеньшеИлиРавно','N','N') , (1999,'2/15/2016','ru-RU','FILTER_NoFilter',N'БезФильтра','N','N') , (1999,'2/15/2016','ru-RU','FILTER_NotEqualTo',N'НеРавно','N','N') , (1999,'2/15/2016','ru-RU','FILTER_NotIsEmpty',N'Непустой','N','N') , (1999,'2/15/2016','ru-RU','FILTER_StartsWith',N'Начинается с','N','N') , (1999,'2/15/2016','ru-RU','fmgAddKnowledge_aspx',N'Добавить / Изменить Знания','N','N') , (1999,'3/10/2013','ru-RU','fmgDTSSpreadsheetImport_aspx',N'Загрузкa Таблиц','N','N') , (1999,'2/15/2016','ru-RU','fmgKnowledgeProfile_aspx',N'Профиль Знания','N','N') , (1999,'2/15/2016','ru-RU','fmgSubscriptionManagement_aspx',N'Подписки на Content','N','N') , (1999,'2/15/2016','ru-RU','fugBindingRulings_aspx',N'Постановления','N','N') , (1999,'2/15/2016','ru-RU','fugContentAttributes_aspx',N'Атрибуты контента глобальной торговли','N','N') , (1999,'2/15/2016','ru-RU','fugContentExternalTemplate_aspx',N'Внешний шаблон контента','N','N') , (1999,'2/15/2016','ru-RU','fugContentSalesOverview_aspx',N'Обзор продажи контента','N','N') , (1999,'2/15/2016','ru-RU','fugCountryInfoDetail_aspx',N'Информация O Cтране','N','N') , (1999,'2/15/2016','ru-RU','fugDocumentAnalyzer_aspx',N'Aнализатор документа','N','N') , (1999,'2/15/2016','ru-RU','fugDTSLookup_aspx',N'Запрос DPS','N','N') , (1999,'2/15/2016','ru-RU','fugDutyTaxAnalyzer_aspx',N'Анализатор пошлины и налога','N','N') , (1999,'2/15/2016','ru-RU','fugECCN_aspx',N'Поиск НЭК/Cписок Двойного Назначения','N','N') , (1999,'2/15/2016','ru-RU','fugECCNDetail_aspx',N'Поиск НЭК/Cписок Двойного Назначения (быстрый поиск)','N','N') , (1999,'2/15/2016','ru-RU','fugeccnlookup_aspx',N'Запрос по НЭК','N','N') , (1999,'2/15/2016','ru-RU','fugGlobalTariffs_aspx',N'Глобальный Tариф','N','N') , (1999,'2/15/2016','ru-RU','fugGlobalTariffsDetail_aspx',N'Глобальный Tариф (быстрый поиск)','N','N') , (1999,'2/15/2016','ru-RU','fugGlobalTariffsLanding_aspx',N'Глобальный Tариф','N','N') , (1999,'2/15/2016','ru-RU','fugGlobalTariffsLookup_aspx',N'Запрос Глобального Тарифа','N','N') , (1999,'2/15/2016','ru-RU','fugImportExportVolumes_aspx',N'Анализатор объема Импорта/Экспорта','N','N') , (1999,'2/15/2016','ru-RU','fugKnowledge_aspx',N'База Знаний','N','N') , (1999,'2/15/2016','ru-RU','fugKnowledgeDetail_aspx',N'Подробности Знания','N','N') , (1999,'2/15/2016','ru-RU','fugLandedCostAnalyzer_aspx',N'Aнализатор Cтоймости Товара','N','N') , (1999,'2/15/2016','ru-RU','fugLegalText_aspx',N'Правовой документ','N','N') , (1999,'2/15/2016','ru-RU','fugMessages_aspx',N'Системные Cообщения','N','N') , (1999,'2/15/2016','ru-RU','fugRegulationListUpdates_aspx',N'Обновление списка Регуляций','N','N') , (1999,'2/15/2016','ru-RU','fugsearchhistorydetail_aspx',N'Подробности Истории Поиска','N','N') , (1999,'2/15/2016','ru-RU','fugTariffAnalyzerNew_aspx',N'Анализатор Tарифа','N','N') , (1999,'2/15/2016','ru-RU','fugTariffUpdates_aspx',N'Обновление Tарифа','N','N') , (1999,'2/15/2016','ru-RU','fugWCOIndex_aspx',N'Алфавитный индекс ВТО','N','N') , (1999,'2/15/2016','ru-RU','fugwconotes_aspx',N'Примечания ВТО/СТС','N','N') , (1999,'3/10/2013','ru-RU','fxdDPSQuery_aspx',N'Поиск','N','N') , (1999,'3/10/2013','ru-RU','fxdDTSHistory_aspx',N'История Поисков','N','N') , (1999,'3/10/2013','ru-RU','fxdDTSNotes_aspx',N'Примечания','N','N') , (1999,'3/10/2013','ru-RU','fxdDTSQuery_aspx',N'Поиск','N','N') , (1999,'3/10/2013','ru-RU','fxdDTSQueryDetail_aspx',N'Детали Поиска','N','N') , (1999,'3/10/2013','ru-RU','fxdDTSRegulationList_aspx',N'Список Регуляций','N','N') , (1999,'3/10/2013','ru-RU','fxdDTSWebserviceTest_aspx',N'Тестирование Web-сервисов','N','N') , (1999,'2/15/2016','ru-RU','hyxlinkResultsDetail0_Close',N'Закрыть','N','N') , (1999,'2/15/2016','ru-RU','hyxlinkResultsDetail0_Duplicate',N'(Дублировать и сравнить)','N','N') , (1999,'2/15/2016','ru-RU','hyxlinkResultsDetail1_Close',N'Закрыть','N','N') , (1999,'2/15/2016','ru-RU','hyxlinkResultsDetail1_Duplicate',N'(Дублировать и сравнить)','N','N') , (1999,'2/15/2016','ru-RU','hyxlnkAddSystemMessages',N'Сохранить','N','N') , (1999,'2/15/2016','ru-RU','hyxlnkAdvancedSearch',N'Расширенный Поиск','N','N') , (1999,'2/15/2016','ru-RU','hyxlnkAutoSize',N'Авторазмер','N','N') , (1999,'2/15/2016','ru-RU','hyxlnkBottomOfPage',N'Конец','N','N') , (1999,'2/15/2016','ru-RU','hyxlnkCancelSystemMessages',N'Отменить','N','N') , (1999,'2/15/2016','ru-RU','hyxlnkCCLCC',N'Схема Стран Списков Торгового Контроля','N','N') , (1999,'2/15/2016','ru-RU','hyxlnkClose',N'Закрыть','N','N') , (1999,'2/15/2016','ru-RU','hyxlnkExit',N'Выйти','N','N') , (1999,'2/15/2016','ru-RU','hyxlnkFavorites',N'Избранные','N','N') , (1999,'2/15/2016','ru-RU','hyxlnkFavoritesImage',N'Избранные','N','N') , (1999,'2/15/2016','ru-RU','hyxlnkFullSite',N'Показать сайт полностью','N','N') , (1999,'2/15/2016','ru-RU','hyxlnkGenerateLink',N'Недавние Поиски (предыдущие)','N','N') , (1999,'2/15/2016','ru-RU','hyxlnkGlobalClassificationSelection',N'Выбрать из Глобальных Классификаций','N','N') , (1999,'2/15/2016','ru-RU','hyxlnkLogout',N'Выйти','N','N') , (1999,'2/15/2016','ru-RU','hyxlnkManageProfiles',N'Hастройка профиля','N','N') , (1999,'2/15/2016','ru-RU','hyxlnkManageSearches',N'Недавние Поиски/ Выборы из Глобальной Классификации','N','N') , (1999,'2/15/2016','ru-RU','hyxlnkManageSearchesNew',N'Администрация Поисков','N','N') , (1999,'2/15/2016','ru-RU','hyxlnkMaximize',N'Максимизировать','N','N') , (1999,'2/15/2016','ru-RU','hyxlnkMobileMainMenu',N'Главное Меню','N','N') , (1999,'2/15/2016','ru-RU','hyxlnkMobileSite',N'Показать мобильную версию','N','N') , (1999,'2/15/2016','ru-RU','hyxlnkMobileSiteBackup',N'Показать мобильную версию','N','N') , (1999,'2/15/2016','ru-RU','hyxlnkMultipleMatchingECN',N'Повторно Просмотреть Результаты Поиска','N','N') , (1999,'2/15/2016','ru-RU','hyxlnkNewSearch',N'Новый поиск','N','N') , (1999,'2/15/2016','ru-RU','hyxlnkOrigination_BindingRulingsAdvancedSearch',N'Расширенный поиск Классификационных Государственных Постановлений','N','N') , (1999,'2/15/2016','ru-RU','hyxlnkPopOut',N'Открыть в Новом Окне','N','N') , (1999,'2/15/2016','ru-RU','hyxlnkRecentSearches',N'Недавние Поиски','N','N') , (1999,'2/15/2016','ru-RU','hyxlnkRefresh',N'Обновить','N','N') , (1999,'2/15/2016','ru-RU','hyxlnkReload',N'Перезагрузить','N','N') , (1999,'2/15/2016','ru-RU','hyxlnkSaveCurrentSearch',N'Сохранить Текущий Поиск','N','N') , (1999,'2/15/2016','ru-RU','hyxlnkSaveSearch',N'Сохранить Поиск','N','N') , (1999,'2/15/2016','ru-RU','hyxlnkStartOver',N'Обновить','N','N') , (1999,'2/15/2016','ru-RU','hyxlnkTopOfPage',N'Верх экрана','N','N') , (1999,'2/15/2016','ru-RU','hyxlnkUnsavedSearches',N'Несохраненные поиски','N','N') , (1999,'2/15/2016','ru-RU','hyxlnkViewDutyDetails',N'Просмотреть Пошлинy Подробнее','N','N') , (1999,'2/15/2016','ru-RU','hyxlnkViewFTADetails',N'Просмотреть ССТ Правило Происхождения Подробнее','N','N') , (1999,'2/15/2016','ru-RU','hyxTop',N'Вверх Страницы','N','N') , (1999,'2/15/2016','ru-RU','lbxActualExcludedTerms',N'Исключенные описание поиска:','N','N') , (1999,'2/15/2016','ru-RU','lbxActualSearchSymbols',N'Исключенные Условия поиска с символaми','N','N') , (1999,'2/15/2016','ru-RU','lbxActualSearchTerms',N'Используемые термины поиска:','N','N') , (1999,'2/15/2016','ru-RU','lbxAddSystemMessagesAdditionalComments',N'Дополнительные Коментарии','N','N') , (1999,'2/15/2016','ru-RU','lbxAddSystemMessagesDescription',N'Сообщение:','N','N') , (1999,'2/15/2016','ru-RU','lbxAddSystemMessagesShareDuration',N'Поделиться Продолжительностью:','N','N') , (1999,'2/15/2016','ru-RU','lbxAgencies',N'Агентства','N','N') , (1999,'2/15/2016','ru-RU','lbxAvailableFTA',N'Доступные ЗСТ / Торговые Соглашения','N','N') , (1999,'2/15/2016','ru-RU','lbxBindingRulings',N'Государственные Классификационные Постановления','N','N') , (1999,'2/15/2016','ru-RU','lbxChapterBxFields',N'Выбраные Главы:','N','N') , (1999,'2/15/2016','ru-RU','lbxChapterDescription',N'Глава/Описание','N','N') , (1999,'2/15/2016','ru-RU','lbxChargeQuotasTab',N'Квоты','N','N') , (1999,'2/15/2016','ru-RU','lbxContentAvailability',N'Доступность Контента','N','N') , (1999,'2/15/2016','ru-RU','lbxCountryBxFields',N'Выбраные Страны:','N','N') , (1999,'2/15/2016','ru-RU','lbxCountryCustomsDocuments',N'Таможенные Документы','N','N') , (1999,'2/15/2016','ru-RU','lbxCountryFilter',N'Страна:','N','N') , (1999,'2/15/2016','ru-RU','lbxCountryFinancialDocuments',N'Финансовые Документы','N','N') , (1999,'2/15/2016','ru-RU','lbxCountryLevelControls',N'Контроль на уровне страны','N','N') , (1999,'2/15/2016','ru-RU','lbxCountryOfDestination',N'Страна Назначения','N','N') , (1999,'2/15/2016','ru-RU','lbxCountryOfDestinationTitleFields',N'Выбрать Страну Назначения','N','N') , (1999,'2/15/2016','ru-RU','lbxCountryOfExport',N'Страна экспорта','N','N') , (1999,'2/15/2016','ru-RU','lbxCountryOfImport',N'Страна импорта','N','N') , (1999,'2/15/2016','ru-RU','lbxCountryOfOrigin',N'Страна происхождения','N','N') , (1999,'2/15/2016','ru-RU','lbxCountryOfOriginDestination',N'Фильтр Стран Происхождения / Назначения','N','N') , (1999,'2/15/2016','ru-RU','lbxCountryOfOriginTitleFields',N'Выбрать Страну Происхождения','N','N') , (1999,'2/15/2016','ru-RU','lbxCountryThreat',N'Угроза по Стране','N','N') , (1999,'2/15/2016','ru-RU','lbxCountryThreatEmpty',N'Информация про Угрозу по Стране не найдена.','N','N') , (1999,'2/15/2016','ru-RU','lbxCountryTransportationDocuments',N'Транспортные Документы','N','N') , (1999,'2/15/2016','ru-RU','lbxCulture',N'Текущий язык:','N','N') , (1999,'2/15/2016','ru-RU','lbxCultureCode',N'Язык Описания/Контроль/Примечания','N','N') , (1999,'2/15/2016','ru-RU','lbxCultureCode1',N'Текущий Код:','N','N') , (1999,'2/15/2016','ru-RU','lbxCurrency',N'Доступные Код(ы) Валюты','N','N') , (1999,'2/15/2016','ru-RU','lbxCurrencyEmpty',N'Информации по Валюте не найдено.','N','N') , (1999,'2/15/2016','ru-RU','lbxCurrentDateDataDisplay',N'Даты указаны с использованием:','N','N') , (1999,'2/15/2016','ru-RU','lbxDescriptionSearchType',N'Описание Типа поиска','N','N') , (1999,'2/15/2016','ru-RU','lbxDestinationCountry',N'Страна назначения:','N','N') , (1999,'2/15/2016','ru-RU','lbxDocumentContacts',N'Информация о Контактах','N','N') , (1999,'2/15/2016','ru-RU','lbxDocumentDetail',N'Подробная Информация о Документе','N','N') , (1999,'2/15/2016','ru-RU','lbxDocumentDetailTab',N'Подробная Информация о Документе','N','N') , (1999,'2/15/2016','ru-RU','lbxDocumentNotes',N'Примечания','N','N') , (1999,'2/15/2016','ru-RU','lbxDocumentSamples',N'Образцы','N','N') , (1999,'2/15/2016','ru-RU','lbxDocumentsMessage',N'Не все документы требуются, некоторые из них необходимы только в зависимости от описания продукта','N','N') , (1999,'2/15/2016','ru-RU','lbxECN',N'Номер Экспортного Контроля / Описание','N','N') , (1999,'2/15/2016','ru-RU','lbxECNFilter',N'Фильтр по Номер Экспортного Контроля','N','N') , (1999,'2/15/2016','ru-RU','lbxEffectiveDate',N'Дата начала действия','N','N') , (1999,'2/15/2016','ru-RU','lbxEffectivityDate',N'Дата начала действия','N','N') , (1999,'2/15/2016','ru-RU','lbxEmptyECNText',N'Введите/Выберите Точный Номер Экспортного Контроля для просмотра','N','N') , (1999,'2/15/2016','ru-RU','lbxEmptyHSNumberText',N'Введите/Выберите Точный Код товарной номенклатуры для Просмотра','N','N') , (1999,'2/15/2016','ru-RU','lbxExpirationDate',N'Дата прекращения действия','N','N') , (1999,'2/15/2016','ru-RU','lbxExportCharges',N'Экспортные налоги','N','N') , (1999,'2/15/2016','ru-RU','lbxExportControl',N'Список Экспортного контроля','N','N') , (1999,'2/15/2016','ru-RU','lbxExportControls',N'Экспортный Контроль','N','N') , (1999,'2/15/2016','ru-RU','lbxExportCountryCustomsDocuments',N'таможенные документы Экспорта','N','N') , (1999,'2/15/2016','ru-RU','lbxExportCountryFinancialDocuments',N'Финансовые документы Экспорта','N','N') , (1999,'2/15/2016','ru-RU','lbxExportCountryTransportationDocuments',N'Транспортные документы Экспорта','N','N') , (1999,'2/15/2016','ru-RU','lbxFilterResultDescription',N'фильтровать Описание результата','N','N') , (1999,'2/15/2016','ru-RU','lbxFilterResultDescriptionOptions',N'Фильтровать опции результатов поиска','N','N') , (1999,'2/15/2016','ru-RU','lbxFutureRatesTab',N'Будущие Ставки','N','N') , (1999,'2/15/2016','ru-RU','lbxGeneratedInputsUOMIntro',N'Введите входы для','N','N') , (1999,'3/3/2017','ru-RU','lbxGoHome',N'Выйти','N','N') , (1999,'2/15/2016','ru-RU','lbxGroupBy',N'Сгруппировать Результаты по:','N','N') , (1999,'2/15/2016','ru-RU','lbxHeader',N'Подробная Информация Заголовки','N','N') , (1999,'2/15/2016','ru-RU','lbxHolidays',N'Выходные Дни','N','N') , (1999,'2/15/2016','ru-RU','lbxHSFilter',N'Фильтр по Коду Товарной Номенклатуры','N','N') , (1999,'2/15/2016','ru-RU','lbxHSMaintenanceLogText',N'Журнал технического обслуживания товарной номенклатуры','N','N') , (1999,'2/15/2016','ru-RU','lbxHSNumber',N'Код Товарной Номенклатуры / Описание','N','N') , (1999,'2/15/2016','ru-RU','lbxHSNumberDescription',N'Код товарной номенклатуры/Описание Кода товарной номенклатуры','N','N') , (1999,'2/15/2016','ru-RU','lbxHSNumberFilter',N'Фильтр по Коду Товарной Номенклатуры','N','N') , (1999,'2/15/2016','ru-RU','lbxHSNumberSelection',N'KодТоварнойНоменклатуры','N','N') , (1999,'2/15/2016','ru-RU','lbxHSNumberSelectionSettings',N'Какая Глава / Описание бы вы хотели чтобы была по умолчанию?','N','N') , (1999,'2/15/2016','ru-RU','lbxHSNumberTitle',N'Kод Товарной Номенклатуры (Необязательный)','N','N') , (1999,'2/15/2016','ru-RU','lbxHSNumberTitleFields',N'Выберите Код Товарной Номенклатуры','N','N') , (1999,'2/15/2016','ru-RU','lbxImageNoAvailable',N'Изображение отсутствует','N','N') , (1999,'2/15/2016','ru-RU','lbxImportControls',N'Импортный Контроль','N','N') , (1999,'2/15/2016','ru-RU','lbxImportValuesByCountry',N'Объем импорта по стране','N','N') , (1999,'2/15/2016','ru-RU','lbxIncludeInflectional',N'Включайте флективную форму','N','N') , (1999,'2/15/2016','ru-RU','lbxIncludeSpecialSymbols',N'Включите Исключенные Условия поиска с символaми','N','N') , (1999,'2/15/2016','ru-RU','lbxIndustryBxFields',N'Выбраные Индустрии:','N','N') , (1999,'2/15/2016','ru-RU','lbxKnowledgeProfile',N'Профиль Знания','N','N') , (1999,'2/15/2016','ru-RU','lbxLstBxChapter',N'Выберите Главы:','N','N') , (1999,'2/15/2016','ru-RU','lbxLstBxCountry',N'Выберите Страны:','N','N') , (1999,'2/15/2016','ru-RU','lbxLstBxIndustry',N'Выберите Индустрии:','N','N') , (1999,'2/15/2016','ru-RU','lbxLstBxSolution',N'Выберите Решения:','N','N') , (1999,'2/15/2016','ru-RU','lbxMainDocuments',N'Основные Документы','N','N') , (1999,'2/15/2016','ru-RU','lbxMainDuty',N'Пошлина Основная/Для Третьих Стран','N','N') , (1999,'2/15/2016','ru-RU','lbxManageSearches_RecentSearches',N'Недавние Поиски','N','N') , (1999,'2/15/2016','ru-RU','lbxManageSearches_RecentSelections',N'Недавно Избранные Глобальные Классификации','N','N') , (1999,'2/15/2016','ru-RU','lbxManageSearches_SavedSearches',N'Сохраненные поиски','N','N') , (1999,'2/15/2016','ru-RU','lbxManageSearches_SharedSearches',N'Показать Поиски, предложенные другими пользователями','N','N') , (1999,'2/15/2016','ru-RU','lbxManageSearches_UnsavedSearches',N'Показать Несохраненные поиски','N','N') , (1999,'2/15/2016','ru-RU','lbxManageSearchesTitle',N'Администрация Поисков','N','N') , (1999,'2/15/2016','ru-RU','lbxMultipleMatchingECNQuestion',N'Найдено несколько результатов поиска.','N','N') , (1999,'2/15/2016','ru-RU','lbxNewsCulture',N'Язык новостей','N','N') , (1999,'2/15/2016','ru-RU','lbxNewsEffectiveDate',N'Дата начала действия','N','N') , (1999,'2/15/2016','ru-RU','lbxNewsType',N'Тип Hовостей','N','N') , (1999,'2/15/2016','ru-RU','lbxOpinionLabel',N'Текст Мнения:','N','N') , (1999,'2/15/2016','ru-RU','lbxOptional',N'Дополнительные Поля','N','N') , (1999,'2/15/2016','ru-RU','lbxOrigination_GeneralRule',N'Общие Правила','N','N') , (1999,'2/15/2016','ru-RU','lbxOrigination_RulesOfOriginNonPreferential',N'Не-Преференциальные Правила происхождения','N','N') , (1999,'2/15/2016','ru-RU','lbxOrigination_RulesOfOriginPreferential',N'Специальные Правила','N','N') , (1999,'2/15/2016','ru-RU','lbxOtherDuty',N'Другие Пошлины','N','N') , (1999,'2/15/2016','ru-RU','lbxOtherImportCharges',N'Другие Импортные налоги','N','N') , (1999,'2/15/2016','ru-RU','lbxOverwriteSave',N'Изменить / Перезаписать существующий поиск','N','N') , (1999,'2/15/2016','ru-RU','lbxPartner',N'Текущий Партнер','N','N') , (1999,'2/15/2016','ru-RU','lbxPrefDuty',N'Льготная Пошлина','N','N') , (1999,'2/15/2016','ru-RU','lbxQuotaDetails',N'Подробности Квоты','N','N') , (1999,'2/15/2016','ru-RU','lbxRecentSearchesType',N'Недавние поисковые запросы','N','N') , (1999,'2/15/2016','ru-RU','lbxRegulationList',N'Список Регуляций','N','N') , (1999,'2/15/2016','ru-RU','lbxRelatedECN',N'Номер Экспортного Контроля зарегистрированный в AES','N','N') , (1999,'2/15/2016','ru-RU','lbxRelatedHS',N'Соответствующий Код Товарной Номенклатуры','N','N') , (1999,'2/15/2016','ru-RU','lbxRequiredFields',N'Необходимые поля','N','N') , (1999,'2/15/2016','ru-RU','lbxResultsDetail0_Destination',N'Страна Назначения','N','N') , (1999,'2/15/2016','ru-RU','lbxResultsDetail0_Origin',N'Страна Происхождения','N','N') , (1999,'2/15/2016','ru-RU','lbxResultsDetail1_Destination',N'Страна Назначения','N','N') , (1999,'2/15/2016','ru-RU','lbxResultsDetail1_Origin',N'Страна Происхождения','N','N') , (1999,'2/15/2016','ru-RU','lbxRulesOfOrigin',N'Правила Происхождения','N','N') , (1999,'2/15/2016','ru-RU','lbxSaveAsNew',N'Сохранить как новый','N','N') , (1999,'2/15/2016','ru-RU','lbxSavedSearches',N'Сохраненные поиски','N','N') , (1999,'2/15/2016','ru-RU','lbxSaveNewSearch',N'Сохранить Новый Поиск','N','N') , (1999,'2/15/2016','ru-RU','lbxSaveSearches_SavedSearches',N'Сохраненные Поиски','N','N') , (1999,'2/15/2016','ru-RU','lbxSaveSearches_SearchName',N'Имя Поиска','N','N') , (1999,'2/15/2016','ru-RU','lbxSearchFilter',N'Фильтр расширенного поиска','N','N') , (1999,'2/15/2016','ru-RU','lbxSearchHeadings',N'Поиск:','N','N') , (1999,'2/15/2016','ru-RU','lbxSearchProfileSetting',N'Установить настройки профиля поиска по умолчанию?','N','N') , (1999,'2/15/2016','ru-RU','lbxSelectionGuide',N'Какая глава лучше описывает ваш продукт?','N','N') , (1999,'2/15/2016','ru-RU','lbxSelectLanguage',N'Выберите Язык:','N','N') , (1999,'2/15/2016','ru-RU','lbxShowGuidedSearchResult',N'Резултат Направленного Поиска','N','N') , (1999,'2/15/2016','ru-RU','lbxSolutionBxFields',N'Выбраные Решения:','N','N') , (1999,'2/15/2016','ru-RU','lbxSpecificNotes',N'Особые Примечания','N','N') , (1999,'2/15/2016','ru-RU','lbxStandardNotes',N'Стандартные Примечания','N','N') , (1999,'2/15/2016','ru-RU','lbxStatusBarCultureCode',N'Язык Описания/Контроль/Примечания','N','N') , (1999,'2/15/2016','ru-RU','lbxStatusBarTariffSchedule',N'Страна/Единый Таможенный Тариф','N','N') , (1999,'2/15/2016','ru-RU','lbxSupportingDocuments',N'Сопроводительные Документы','N','N') , (1999,'2/15/2016','ru-RU','lbxTariffNotesTab',N'Тарифные Примечания','N','N') , (1999,'2/15/2016','ru-RU','lbxTariffSchedule',N'Страна / Единый Таможенный Тариф','N','N') , (1999,'2/15/2016','ru-RU','lbxTariffScheduleEmpty',N'Информация по Тарифу не найдена.','N','N') , (1999,'2/15/2016','ru-RU','lbxTariffScheduleSelection',N'Какой Тариф бы вы хотели постваить по умолчанию?','N','N') , (1999,'2/15/2016','ru-RU','lbxTotalResult',N'Общее найденное число Кодов товарной номенклатуры:','N','N') , (1999,'2/15/2016','ru-RU','lbxTotalResultAfterFilter',N'Общее найденное число Кодов товарной номенклатуры (после фильтра):','N','N') , (1999,'2/15/2016','ru-RU','lbxUnitOfMeasure',N'Единица(ы) Измерения','N','N') , (1999,'2/15/2016','ru-RU','lbxUpdateInProgress',N'Идет обновление ...','N','N') , (1999,'2/15/2016','ru-RU','lbxVATCharges',N'НДС/Налог на товары и услуги','N','N') , (1999,'2/15/2016','ru-RU','lbxView',N'Посмотреть:','N','N') , (1999,'2/15/2016','ru-RU','lbxViewSelectionSettings',N'Какой вид установить по умолчанию?','N','N') , (1999,'2/15/2016','ru-RU','lbxWelcome',N'Добро Пожаловать','N','N') , (1999,'2/15/2016','ru-RU','lnxbtnApply',N'Применять','N','N') , (1999,'2/15/2016','ru-RU','lnxbtnCancelLoading',N'Отменить','N','N') , (1999,'2/15/2016','ru-RU','lnxbtnDeleteComponentCancel',N'Отменить','N','N') , (1999,'2/15/2016','ru-RU','lnxbtnDeleteComponentYes',N'Да','N','N') , (1999,'2/15/2016','ru-RU','lnxbtnExportToExcel',N'Перевести (Экспортировать) в Excel','N','N') , (1999,'2/15/2016','ru-RU','lnxbtnExportToPdf',N'Перевести (Экспортировать) в PDF','N','N') , (1999,'2/15/2016','ru-RU','lnxbtnFilterResultDescription',N'Применять фильтр','N','N') , (1999,'2/15/2016','ru-RU','lnxbtnGeneratedInputsUOMOther_Cancel',N'Отменить','N','N') , (1999,'2/15/2016','ru-RU','lnxbtnGeneratedInputsUOMOther_Save',N'Сохранить','N','N') , (1999,'2/15/2016','ru-RU','lnxbtnHSNumberSettingsCancel',N'Отменить','N','N') , (1999,'2/15/2016','ru-RU','lnxbtnHSNumberSettingsSave',N'Следующий','N','N') , (1999,'2/15/2016','ru-RU','lnxbtnManageSearchesCancel',N'Закрыть','N','N') , (1999,'2/15/2016','ru-RU','lnxbtnManageSearchesTitle',N'Администрация Поисков','N','N') , (1999,'2/15/2016','ru-RU','lnxbtnMultipleMatchingECNCancel',N'Закрыть','N','N') , (1999,'2/15/2016','ru-RU','lnxbtnNewSearch',N'Поиск','N','N') , (1999,'2/15/2016','ru-RU','lnxbtnPastUpdatesDetailCancel',N'Закрыть','N','N') , (1999,'2/15/2016','ru-RU','lnxbtnPastUpdatesDetailGridViewCancel',N'Закрыть','N','N') , (1999,'2/15/2016','ru-RU','lnxbtnResultsDetail0_AddNewCharge',N'Добавить Новую Ставку','N','N') , (1999,'2/15/2016','ru-RU','lnxbtnResultsDetail0_Calculate',N'Обновить Расчеты','N','N') , (1999,'2/15/2016','ru-RU','lnxbtnResultsDetail0_Calculate2',N'Обновить Расчеты','N','N') , (1999,'2/15/2016','ru-RU','lnxbtnResultsDetail1_AddNewCharge',N'Добавить Новую Ставку','N','N') , (1999,'2/15/2016','ru-RU','lnxbtnResultsDetail1_Calculate',N'Обновить Расчеты','N','N') , (1999,'2/15/2016','ru-RU','lnxbtnResultsDetail1_Calculate2',N'Обновить Расчеты','N','N') , (1999,'2/15/2016','ru-RU','lnxbtnReturnWCOHierarchy',N'Сбросить Иерархию ВТО/СТС','N','N') , (1999,'2/15/2016','ru-RU','lnxbtnSaveSearches_Cancel',N'Отменить','N','N') , (1999,'2/15/2016','ru-RU','lnxbtnSaveSearches_Save',N'Сохранить','N','N') , (1999,'2/15/2016','ru-RU','lnxbtnSearch',N'Поиск','N','N') , (1999,'2/15/2016','ru-RU','lnxbtnSearchDetail',N'Расширенный Поиск','N','N') , (1999,'2/15/2016','ru-RU','lnxbtnSearchProfile',N'Поиск Профиля','N','N') , (1999,'2/15/2016','ru-RU','lnxbtnSettingsRemindMeLater',N'Напомнить мне позже','N','N') , (1999,'2/15/2016','ru-RU','lnxbtnSettingsSave',N'Следующий','N','N') , (1999,'2/15/2016','ru-RU','lnxbtnSetupProfileLater',N'Напомнить мне позже','N','N') , (1999,'2/15/2016','ru-RU','lnxbtnSetupProfileYes',N'Да','N','N') , (1999,'2/15/2016','ru-RU','lnxbtnShowAllNews',N'Показать все новости','N','N') , (1999,'2/15/2016','ru-RU','lnxbtnTestPrint',N'Распечатать','N','N') , (1999,'2/15/2016','ru-RU','lnxbtnViewSettingsCancel',N'Отменить','N','N') , (1999,'2/15/2016','ru-RU','lnxbtnViewSettingsSave',N'Сохранить','N','N') , (1999,'2/15/2016','ru-RU','Page size:',N'Размер страницы:','N','N') , (1999,'2/15/2016','ru-RU','rbxDescriptionType',N'0','N','N') , (1999,'2/15/2016','ru-RU','rbxDescriptionType_00',N'Полное Описание','N','N') , (1999,'2/15/2016','ru-RU','rbxDescriptionType_01',N'Краткое Описание','N','N') , (1999,'2/15/2016','ru-RU','rbxSaveSearches_SaveType_00',N'Сохранить Как Новый','N','N') , (1999,'2/15/2016','ru-RU','rbxSaveSearches_SaveType_01',N'Изменить/Переписать Существующий Поиск','N','N') , (1999,'2/15/2016','ru-RU','Rbxselection',N'НЭК','N','N') , (1999,'2/15/2016','ru-RU','Rbxselection_00',N'НЭК','N','N') , (1999,'2/15/2016','ru-RU','Rbxselection_01',N'Скрининг Запрещенных Участников','N','N') , (1999,'2/15/2016','ru-RU','rdxlstViewSetting',N'ВидСетки','N','N') , (1999,'2/15/2016','ru-RU','rdxlstViewSetting_00',N'ВидСетки','N','N') , (1999,'2/15/2016','ru-RU','rdxlstViewSetting_01',N'ВидДерева','N','N') , (1999,'2/17/2010','sp-MX','PurchaseOrderNum',N'Buscar Orden de Compra','N','N') , (1999,'3/10/2013','vi-VN','fmgDTSSpreadsheetImport_aspx',N'Nhập khẩu của DPS Bảng tính','N','N') , (1999,'3/10/2013','vi-VN','fxdDPSQuery_aspx',N'DPS Tìm kiếm','N','N') , (1999,'3/10/2013','vi-VN','fxdDTSHistory_aspx',N'DPS Lịch sử tìm kiếm','N','N') , (1999,'3/10/2013','vi-VN','fxdDTSNotes_aspx',N'DPS Ghi chú','N','N') , (1999,'3/10/2013','vi-VN','fxdDTSQuery_aspx',N'DPS Tìm kiếm','N','N') , (1999,'3/10/2013','vi-VN','fxdDTSQueryDetail_aspx',N'DPS Tìm kiếm chi tiết','N','N') , (1999,'3/10/2013','vi-VN','fxdDTSRegulationList_aspx',N'DPS Quy chế List','N','N') , (1999,'3/10/2013','vi-VN','fxdDTSWebserviceTest_aspx',N'Dịch vụ Web DPS thử nghiệm','N','N') , (1999,'5/1/2012','zh-CN','0F17980A-BFDB-4C10-B1A2-940F9EA28E90',N'北美自由贸易协定对账总结报告','N','N') , (1999,'7/2/2006','zh-CN','AuditDate',N'审核日期','N','N') , (1999,'5/1/2012','zh-CN','AuditLog_aspx',N'审计日志','N','N') , (1999,'5/1/2012','zh-CN','btxLoadIntegrationFiles',N'加载文件','N','N') , (1999,'5/1/2012','zh-CN','cbxPendingExists',N'忽略','N','N') , (1999,'8/25/2016','zh-CN','chxbxGenerateCNComponentBalanceAuditReport',N'PLACEHOLDER','N','N') , (1999,'8/25/2016','zh-CN','chxbxGenerateComponentBalanceAuditReport',N'PLACEHOLDER','N','N') , (1999,'8/25/2016','zh-CN','chxbxGeneratePeriodicReconciliationReport',N'PLACEHOLDER','N','N') , (1999,'8/25/2016','zh-CN','chxbxShowAvailableBOM',N'PLACEHOLDER','N','N') , (1999,'8/25/2016','zh-CN','chxbxShowSimulationReports',N'PLACEHOLDER','N','N') , (1999,'8/25/2016','zh-CN','chxbxShowSimulationTransactions',N'PLACEHOLDER','N','N') , (1999,'7/2/2006','zh-CN','Classification',N'分类','N','N') , (1999,'9/16/2010','zh-CN','ClientContentManagement_aspx',N'Tariff Updates','N','N') , (1999,'9/16/2010','zh-CN','CompanyProductRequest_aspx',N'Customer Certificate Request','N','N') , (1999,'7/2/2006','zh-CN','DateEntered',N'进入日期','N','N') , (1999,'7/2/2006','zh-CN','DateUpdated',N'更新日期','N','N') , (1999,'5/1/2012','zh-CN','DiscreteDisplayHelp_aspx',N'显示帮助','N','N') , (1999,'5/1/2012','zh-CN','DiscreteHelp_aspx',N'帮助','N','N') , (1999,'8/25/2016','zh-CN','Edit BOM',N'PLACEHOLDER','N','N') , (1999,'8/25/2016','zh-CN','Edit BOM (new window)',N'PLACEHOLDER','N','N') , (1999,'5/1/2012','zh-CN','Edit_aspx',N'编辑分类','N','N') , (1999,'5/1/2012','zh-CN','f100300DutyPosting_aspx',N'关税过账','N','N') , (1999,'5/1/2012','zh-CN','ffdCF214Domestic_aspx',N'国内214','N','N') , (1999,'5/1/2012','zh-CN','ffdCF214FTZAdmissionForm_aspx',N'CBP 214 保税区准入','N','N') , (1999,'5/1/2012','zh-CN','ffdCF216Blanket_aspx',N'CBP216 表格','N','N') , (1999,'5/1/2012','zh-CN','ffdCF3461WeeklyEstimate_aspx',N'CBP3461 周预算','N','N') , (1999,'5/1/2012','zh-CN','ffdCF349HarborMaintenanceFeeForm_aspx',N'CBP349 港口维护费','N','N') , (1999,'5/1/2012','zh-CN','ffdCF7501WeeklyEntryForm_aspx',N'CBP7501 周录入','N','N') , (1999,'5/1/2012','zh-CN','ffdCF7512Outbound_aspx',N'CBP7512 出境的','N','N') , (1999,'5/1/2012','zh-CN','ffdCF7512ProForma_aspx',N'CBP 7512 预计报表','N','N') , (1999,'5/1/2012','zh-CN','ffdDiscreteWeeklyEstimateComparison_aspx',N'离散业周预算对比','N','N') , (1999,'5/1/2012','zh-CN','ffdImmediateDutyPayForm_aspx',N'直接付税','N','N') , (1999,'5/1/2012','zh-CN','ffdMXHighSecuritySeal_aspx',N'高安全性封条','N','N') , (1999,'5/1/2012','zh-CN','ffdMXInvoiceHeader_aspx',N'编辑发票','N','N') , (1999,'5/1/2012','zh-CN','ffdMXPedimentoHeader_aspx',N'周进出口法律文件','N','N') , (1999,'5/1/2012','zh-CN','ffdMXPedimentoWeeklyEntryForm_aspx',N'进出口法律文件合并','N','N') , (1999,'5/1/2012','zh-CN','ffdMXWeeklyPedimento_aspx',N'进出口法律文件号码分配','N','N') , (1999,'5/1/2012','zh-CN','ffdMXZoneScrapInvoice_aspx',N'废料发票','N','N') , (1999,'5/1/2012','zh-CN','ffdWeeklyEstimateEntryForm_aspx',N'周预算','N','N') , (1999,'5/1/2012','zh-CN','fid_3000_ManualReceipts_aspx',N'手工收据','N','N') , (1999,'5/1/2012','zh-CN','fid_3000_ManualShipments_aspx',N'手工发货','N','N') , (1999,'5/1/2012','zh-CN','fidFTABOMDetailView_aspx',N'查看自由贸易协定物料清单详情','N','N') , (1999,'5/1/2012','zh-CN','fidFTABOMRulesAnalysis_aspx',N'自由贸易协定物料清单规则分析','N','N') , (1999,'5/1/2012','zh-CN','fidFTAMassAnalysis_aspx',N'批量物料清单分析','N','N') , (1999,'5/1/2012','zh-CN','fidGenerateCensusFile_aspx',N'生成美国人口调查局要求文件','N','N') , (1999,'5/1/2012','zh-CN','fidGenericFileExport_aspx',N'电子发票','N','N') , (1999,'5/1/2012','zh-CN','fidIMCompletion_aspx',N'库存成品完成界面','N','N') , (1999,'5/1/2012','zh-CN','fidLotSampling_aspx',N'批次采样','N','N') , (1999,'5/1/2012','zh-CN','fidManualProduction_aspx',N'手工生产','N','N') , (1999,'5/1/2012','zh-CN','fidManualReceipts_aspx',N'手工收据','N','N') , (1999,'5/1/2012','zh-CN','fidManualShipments.aspx',N'手工发货','N','N') , (1999,'5/1/2012','zh-CN','fidManualShipments_aspx',N'手工发货','N','N') , (1999,'5/1/2012','zh-CN','fidProductFTAMaint_aspx',N'产品自由贸易协定维护','N','N') , (1999,'5/1/2012','zh-CN','fidTerminalProcessing_aspx',N'终端处理','N','N') , (1999,'5/1/2012','zh-CN','fidUploadReceipts_aspx',N'上载收据','N','N') , (1999,'5/1/2012','zh-CN','fidUploadShipments_aspx',N'上载发货(数据)','N','N') , (1999,'5/1/2012','zh-CN','FieldName',N'显示','N','N') , (1999,'5/1/2012','zh-CN','figImportDataIntoStaging_aspx',N'将数据导入缓存','N','N') , (1999,'5/1/2012','zh-CN','fmdItemMaster_aspx',N'(产品)条目管理器','N','N') , (1999,'5/1/2012','zh-CN','fmdSetBreakdown_aspx',N'设置细分','N','N') , (1999,'3/10/2013','zh-CN','fmgDTSSpreadsheetImport_aspx',N'批量导入DPS清单','N','N') , (1999,'5/1/2012','zh-CN','fmgExchangeRate_aspx',N'汇率设置','N','N') , (1999,'5/1/2012','zh-CN','fmgHTSMaintenance_aspx',N'HTS编码维护','N','N') , (1999,'5/1/2012','zh-CN','fmgMaintenance_aspx',N'维护','N','N') , (1999,'5/1/2012','zh-CN','fmgRulesEntry_aspx',N'录入规则','N','N') , (1999,'5/1/2012','zh-CN','fmgSupplierDashboard_aspx',N'供应商控制面板','N','N') , (1999,'9/16/2010','zh-CN','fmgWorkQueue_aspx',N'Customer Request Detail','N','N') , (1999,'5/1/2012','zh-CN','frdAnnualFTZBoardReport_aspx',N'自由贸易区委员会年度报告','N','N') , (1999,'5/1/2012','zh-CN','frdAnnualMaquilaReport',N'年度出口加工报告','N','N') , (1999,'5/1/2012','zh-CN','frdAnnualMaquilaReport_aspx',N'年度出口加工报告','N','N') , (1999,'5/1/2012','zh-CN','frdAnnualReconciliationReport_aspx',N'年度对账','N','N') , (1999,'5/1/2012','zh-CN','frdAssistDetailReport_aspx',N'帮助详情','N','N') , (1999,'5/1/2012','zh-CN','frdAssistSummaryReport_aspx',N'帮助汇总','N','N') , (1999,'5/1/2012','zh-CN','frdCanadianLoadSheetInvoiceReport_aspx',N'加拿大负载表发票报告','N','N') , (1999,'5/1/2012','zh-CN','frdCF214ListingReport_aspx',N'进出口法律文件列表','N','N') , (1999,'5/1/2012','zh-CN','frdComponentBalanceAuditReport_aspx',N'组件余额审计','N','N') , (1999,'5/1/2012','zh-CN','frdDailyShipmentsReport_aspx',N'日出货(量)','N','N') , (1999,'5/1/2012','zh-CN','frdDiplomatMilitaryReport_aspx',N'外交军用报告','N','N') , (1999,'5/1/2012','zh-CN','frdDistributionRunningBalanceReport_aspx',N'运行分发结余报告','N','N') , (1999,'5/1/2012','zh-CN','frdExportInvoiceReport_aspx',N'出口发票报告','N','N') , (1999,'5/1/2012','zh-CN','frdFGBalanceAuditReport_aspx',N'成品结余审计','N','N') , (1999,'5/1/2012','zh-CN','frdFinishedGoodBalanceAuditReport_aspx',N'成品结余审计','N','N') , (1999,'5/1/2012','zh-CN','frdFTACert_aspx',N'自由贸易协定证书','N','N') , (1999,'5/1/2012','zh-CN','frdFTAComponentDuty.aspx',N'自由贸易协定组件关税','N','N') , (1999,'5/1/2012','zh-CN','frdFTAComponentDuty_aspx',N'自由贸易协定组件关税','N','N') , (1999,'7/11/2011','zh-CN','frdFTASupplierCert_aspx',N'?? ? ???','N','N') , (1999,'5/1/2012','zh-CN','frdFTZDutySavingsReport_aspx',N'节省关税','N','N') , (1999,'5/1/2012','zh-CN','frdInventoryBalanceAuditReport_aspx',N'库存结余审计报告','N','N') , (1999,'5/1/2012','zh-CN','frdInventoryBalByLocationReport_aspx',N'根据地点的库存结余','N','N') , (1999,'5/1/2012','zh-CN','frdLoctonReport_aspx',N'Loction公司报告','N','N') , (1999,'5/1/2012','zh-CN','frdMonthlySEDReport_aspx',N'月度SED报告','N','N') , (1999,'5/1/2012','zh-CN','frdMonthlyTEReport_aspx',N'月度TE报告','N','N') , (1999,'5/1/2012','zh-CN','frdMXInegiReport_aspx',N'INGEI','N','N') , (1999,'5/1/2012','zh-CN','frdMXReportListings_aspx',N'报告列表','N','N') , (1999,'5/1/2012','zh-CN','frdMXScrapTransactionAudit_aspx',N'分配库存废料','N','N') , (1999,'5/1/2012','zh-CN','frdNonFTACert_aspx',N'非自由贸易协定认证证书','N','N') , (1999,'5/1/2012','zh-CN','frdOpenInbondManifestReport_aspx',N'打开原料清单','N','N') , (1999,'5/1/2012','zh-CN','frdProductHistoryReport_aspx',N'产品历史','N','N') , (1999,'5/1/2012','zh-CN','frdProductShipmentReport_aspx',N'产品发货报告','N','N') , (1999,'5/1/2012','zh-CN','frdRunningBalanceReport_aspx',N'运行余额报告','N','N') , (1999,'5/1/2012','zh-CN','frdScrapProFormaReport_aspx',N'废料预计报表','N','N') , (1999,'5/1/2012','zh-CN','frdValidationReport_aspx',N'验证报告','N','N') , (1999,'5/1/2012','zh-CN','frdWeeklyCF3461ReconReport_aspx',N'周CBP3461对账','N','N') , (1999,'5/1/2012','zh-CN','frdWeeklyExportReconciliationReport_aspx',N'周出口对账','N','N') , (1999,'5/1/2012','zh-CN','frdWeeklyOutboundReconReport_aspx',N'周成品对账报告','N','N') , (1999,'5/1/2012','zh-CN','frdWeeklyPedimentoSummary_aspx',N'进出口法律文件总结报告','N','N') , (1999,'5/1/2012','zh-CN','frdZoneValueReport_aspx',N'区值','N','N') , (1999,'5/1/2012','zh-CN','fsgGroupList_aspx',N'组别清单和维护','N','N') , (1999,'5/1/2012','zh-CN','fsgGroupSetup_aspx',N'组别设置','N','N') , (1999,'5/1/2012','zh-CN','fsgNoAccess_aspx',N'禁止访问','N','N') , (1999,'5/1/2012','zh-CN','fsgSystemProcessing_aspx',N'系统处理中','N','N') , (1999,'5/1/2012','zh-CN','fsgUserPasswordChange_aspx',N'用户更改密码','N','N') , (1999,'5/1/2012','zh-CN','fsgUserReset_aspx',N'用户清单和维护','N','N') , (1999,'5/1/2012','zh-CN','fsgUserSetup_aspx',N'用户设置','N','N') , (1999,'5/1/2012','zh-CN','fta_maintenance_CompanyProductRequest_aspx',N'客户产品申请','N','N') , (1999,'5/1/2012','zh-CN','fta_maintenance_fmgworkqueue_aspx',N'客户申请详情','N','N') , (1999,'5/1/2012','zh-CN','fudCreatePeriodBalances_aspx',N'创建期间结余','N','N') , (1999,'5/1/2012','zh-CN','fudForeignStatusCalculator_aspx',N'非居民外国人身份(免税)计算器','N','N') , (1999,'5/1/2012','zh-CN','fudFormTracer_aspx',N'表单绘制器','N','N') , (1999,'5/1/2012','zh-CN','fudMyDashboard_aspx',N'我的控制板','N','N') , (1999,'5/1/2012','zh-CN','fug100200PackingCostAlloc_aspx',N'包装成本分摊','N','N') , (1999,'5/1/2012','zh-CN','fugAccessConfigFiles_aspx',N'访问配置文件','N','N') , (1999,'5/1/2012','zh-CN','fugAccessLogFiles_aspx',N'访问日志文件','N','N') , (1999,'5/1/2012','zh-CN','fugAccessReportFiles_aspx',N'访问报告文件','N','N') , (1999,'5/1/2012','zh-CN','fugBOMUpload_aspx',N'物料清单上载','N','N') , (1999,'5/1/2012','zh-CN','fugDocumentRequests_aspx',N'证书申请','N','N') , (1999,'5/1/2012','zh-CN','fugDocumentRetention_aspx',N'文件保存','N','N') , (1999,'5/1/2012','zh-CN','fugEditCF214_aspx',N'编辑CF214','N','N') , (1999,'5/1/2012','zh-CN','fugFTABOMAnalysis_aspx',N'自由贸易协定物料清单分析','N','N') , (1999,'5/1/2012','zh-CN','fugImportFileToTable_aspx',N'数据表导入','N','N') , (1999,'5/1/2012','zh-CN','fugKnowledge_aspx',N'知识网络','N','N') , (1999,'5/1/2012','zh-CN','fugMassUpdate_aspx',N'批量更新','N','N') , (1999,'5/1/2012','zh-CN','fugOpenQuery_aspx',N'打开查询','N','N') , (1999,'5/1/2012','zh-CN','fugOpenSQL_aspx',N'打开SQL','N','N') , (1999,'5/1/2012','zh-CN','fugOpenUpdate_aspx',N'打开更新','N','N') , (1999,'5/1/2012','zh-CN','fugRenderExcel_aspx',N'绘制Excel','N','N') , (1999,'5/1/2012','zh-CN','fugReprintExitDocID_aspx',N'不打印7501/7512','N','N') , (1999,'9/16/2010','zh-CN','fugSourcingMatrix_aspx',N'Tariff Calculator','N','N') , (1999,'5/1/2012','zh-CN','fugSupportTools_aspx',N'支持工具','N','N') , (1999,'5/1/2012','zh-CN','fugTariffAnalyzer_aspx',N'关税分析器','N','N') , (1999,'5/1/2012','zh-CN','fugTariffAnalyzerNew_aspx',N'关税分析器','N','N') , (1999,'5/1/2012','zh-CN','fugTariffUpdates_aspx',N'关税更新/生效记录界面','N','N') , (1999,'5/1/2012','zh-CN','fugTaskManager_aspx',N'任务管理器','N','N') , (1999,'5/1/2012','zh-CN','fxd100400AutoPopulateCF214Report_aspx',N'自动填充CBP214','N','N') , (1999,'5/1/2012','zh-CN','fxd100400InsertFIFOReceipts_aspx',N'100400插入FIFO收入','N','N') , (1999,'5/1/2012','zh-CN','fxd100400ZeroDutyExportsToEntry_aspx',N'100400零关税出口入口','N','N') , (1999,'5/1/2012','zh-CN','fxd214RelatedConcurrences_aspx',N'相关竞争','N','N') , (1999,'5/1/2012','zh-CN','fxd214Replies_aspx',N'214回复','N','N') , (1999,'5/1/2012','zh-CN','fxd214ReplyDetail_aspx',N'214回复详情','N','N') , (1999,'5/1/2012','zh-CN','fxd214ReplyFTDetail_aspx',N'214回复FT详情','N','N') , (1999,'5/1/2012','zh-CN','fxd214Summary_aspx',N'214汇总','N','N') , (1999,'5/1/2012','zh-CN','fxdABIExceptions_aspx',N'ABI异常','N','N') , (1999,'5/1/2012','zh-CN','fxdAddImporter_aspx',N'新增进口商','N','N') , (1999,'5/1/2012','zh-CN','fxdAddManufacturer_aspx',N'新增制造商','N','N') , (1999,'5/1/2012','zh-CN','fxdAdministrativeMessagesDetail_aspx',N'详细管理信息','N','N') , (1999,'5/1/2012','zh-CN','fxdAdministrativeMessagesQuery_aspx',N'管理信息查询','N','N') , (1999,'5/1/2012','zh-CN','fxdAdministrativeMessagesSummary_aspx',N'管理信息汇总','N','N') , (1999,'5/1/2012','zh-CN','fxdAllocatePackingCosts_aspx',N'分摊包装成本','N','N') , (1999,'5/1/2012','zh-CN','fxdAssignCF214_aspx',N'分配CBP214','N','N') , (1999,'5/1/2012','zh-CN','fxdAssignCF3461_aspx',N'分配CBP3461','N','N') , (1999,'5/1/2012','zh-CN','fxdAssignCF7501_aspx',N'分配CBP7501','N','N') , (1999,'5/1/2012','zh-CN','fxdAssignCF7512_aspx',N'分配CBP7512','N','N') , (1999,'5/1/2012','zh-CN','fxdAssignCF7512PartsEdit_aspx',N'分配CBP7512零件','N','N') , (1999,'5/1/2012','zh-CN','fxdAssignCF7512PartsQuery_aspx',N'分配CBP7512零件','N','N') , (1999,'5/1/2012','zh-CN','fxdAssignE214_aspx',N'分配 E214','N','N') , (1999,'5/1/2012','zh-CN','fxdAssignExports_aspx',N'分配出口','N','N') , (1999,'5/1/2012','zh-CN','fxdAssignMXExpInv_aspx',N'墨西哥出口发票分配','N','N') , (1999,'5/1/2012','zh-CN','fxdAssignMXImpInv_aspx',N'墨西哥进口发票分配','N','N') , (1999,'5/1/2012','zh-CN','fxdAssignNegRec_aspx',N'分配负收入','N','N') , (1999,'5/1/2012','zh-CN','fxdAssist_aspx',N'帮助','N','N') , (1999,'5/1/2012','zh-CN','fxdAutoPopulateCF214Assignment_aspx',N'自动填充CBP214分配','N','N') , (1999,'5/1/2012','zh-CN','fxdAutoPopulateCF214Manifest_aspx',N'自动填充CBP214清单','N','N') , (1999,'5/1/2012','zh-CN','fxdAutoPopulateCF214Report_aspx',N'自动填充CBP214报告','N','N') , (1999,'5/1/2012','zh-CN','fxdAutoPopulateCF214ZoneToZone_aspx',N'区至区自动填充CBP214','N','N') , (1999,'5/1/2012','zh-CN','fxdCanadianLoadsEdit_aspx',N'编辑加拿大货物','N','N') , (1999,'5/1/2012','zh-CN','fxdCanadianLoadsQuery_aspx',N'加拿大货物查询','N','N') , (1999,'5/1/2012','zh-CN','fxdConcurrenceDetail_aspx',N'竞争详情','N','N') , (1999,'5/1/2012','zh-CN','fxdConcurrenceSummary_aspx',N'竞争汇总','N','N') , (1999,'5/1/2012','zh-CN','fxdConcurReplies_aspx',N'同意回复','N','N') , (1999,'5/1/2012','zh-CN','fxdConcurReplyDetail_aspx',N'同意回复详情','N','N') , (1999,'5/1/2012','zh-CN','fxdConcurReplyFZDetail_aspx',N'同意回复FZ详情','N','N') , (1999,'5/1/2012','zh-CN','fxdConfirmDelete_aspx',N'确认删除','N','N') , (1999,'5/1/2012','zh-CN','fxdConfirmFillAll_aspx',N'确认填充所有','N','N') , (1999,'5/1/2012','zh-CN','fxdCustomTransportIdLogic_aspx',N'自定义运输逻辑','N','N') , (1999,'5/1/2012','zh-CN','fxdDefaults_aspx',N'默认(值)','N','N') , (1999,'5/1/2012','zh-CN','fxdDeleteBulkErrors_aspx',N'批量删除错误','N','N') , (1999,'5/1/2012','zh-CN','fxdDiplomatMilitaryVehiclesEdit_aspx',N'编辑外交军用装运工具','N','N') , (1999,'5/1/2012','zh-CN','fxdDiplomatMilitaryVehiclesQuery_aspx',N'查询外交军用装运工具','N','N') , (1999,'3/10/2013','zh-CN','fxdDPSQuery_aspx',N'DPS搜索','N','N') , (1999,'3/10/2013','zh-CN','fxdDTSHistory_aspx',N'DPS 搜索历史','N','N') , (1999,'3/10/2013','zh-CN','fxdDTSNotes_aspx',N'DPS 备注','N','N') , (1999,'5/1/2012','zh-CN','fxdDTSProductMapping_aspx',N'DPS产品测绘','N','N') , (1999,'3/10/2013','zh-CN','fxdDTSQuery_aspx',N'DPS搜索','N','N') , (1999,'3/10/2013','zh-CN','fxdDTSQueryDetail_aspx',N'DPS 搜索详情','N','N') , (1999,'3/10/2013','zh-CN','fxdDTSRegulationList_aspx',N'DPS 法规列表','N','N') , (1999,'3/10/2013','zh-CN','fxdDTSWebserviceTest_aspx',N'DPS Web 服务测试','N','N') , (1999,'5/1/2012','zh-CN','fxdECCNQuery_aspx',N'ECCN产品分类','N','N') , (1999,'5/1/2012','zh-CN','fxdECCNQueryDetail_aspx',N'ECN产品分类','N','N') , (1999,'5/1/2012','zh-CN','fxdEditAdmission_aspx',N'编辑权限','N','N') , (1999,'5/1/2012','zh-CN','fxdEditFifoProcessing_aspx',N'编辑FIFO处理','N','N') , (1999,'5/1/2012','zh-CN','fxdEditInvBalRecon_aspx',N'编辑库存余额','N','N') , (1999,'5/1/2012','zh-CN','fxdEntryValidation_aspx',N'录入验证','N','N') , (1999,'5/1/2012','zh-CN','fxdEntryVisibilitySummary_aspx',N'录入能见度报告','N','N') , (1999,'5/1/2012','zh-CN','fxdEXPInvPrep_aspx',N'出口准备','N','N') , (1999,'5/1/2012','zh-CN','fxdFifo_aspx',N'启动库存处理','N','N') , (1999,'5/1/2012','zh-CN','fxdFifoValidationErrors_aspx',N'验证错误','N','N') , (1999,'5/1/2012','zh-CN','fxdFixedAssetProcessing_aspx',N'固定资产处理','N','N') , (1999,'5/1/2012','zh-CN','fxdHTSQuery_aspx',N'HTS查询','N','N') , (1999,'5/1/2012','zh-CN','fxdImpInvPrep_aspx',N'进口发票准备','N','N') , (1999,'5/1/2012','zh-CN','fxdImporterBondQuery_aspx',N'进口商保税查询','N','N') , (1999,'5/1/2012','zh-CN','fxdItemActivation_aspx',N'项目激活','N','N') , (1999,'5/1/2012','zh-CN','fxdKanbanRelease_aspx',N'看板发布','N','N') , (1999,'5/1/2012','zh-CN','fxdLoadExportFiles_aspx',N'载入出口文件','N','N') , (1999,'5/1/2012','zh-CN','fxdLoadIntegrationFiles_aspx',N'载入合成文件','N','N') , (1999,'5/1/2012','zh-CN','fxdLoadIntegrationFilesV2_aspx',N'载入合成文件','N','N') , (1999,'5/1/2012','zh-CN','fxdManifestAssignment_aspx',N'分配舱单','N','N') , (1999,'5/1/2012','zh-CN','fxdManifestEdit_aspx',N'编辑舱单','N','N') , (1999,'5/1/2012','zh-CN','fxdManifestEntry_aspx',N'录入舱单','N','N') , (1999,'5/1/2012','zh-CN','fxdManifestQuery_aspx',N'查询舱单','N','N') , (1999,'5/1/2012','zh-CN','fxdPendingReassignment_aspx',N'待重新分配','N','N') , (1999,'5/1/2012','zh-CN','fxdPreparation_aspx',N'准备','N','N') , (1999,'5/1/2012','zh-CN','fxdProcessPositiveAdjustments_aspx',N'积极调整进程','N','N') , (1999,'5/1/2012','zh-CN','fxdReceiptValidationUpdate_aspx',N'收到验证更新','N','N') , (1999,'5/1/2012','zh-CN','fxdReleaseLotScrap_aspx',N'发布批量废料','N','N') , (1999,'5/1/2012','zh-CN','fxdReleaseScrapHold_aspx',N'发布废料保留','N','N') , (1999,'5/1/2012','zh-CN','fxdScheduleStagingDataTransfer_aspx',N'缓存数据传输','N','N') , (1999,'5/1/2012','zh-CN','fxdScheduleStagingToMasterDataMove_aspx',N'计划缓存传输','N','N') , (1999,'5/1/2012','zh-CN','fxdShipmentReallocation_aspx',N'发货再分配','N','N') , (1999,'5/1/2012','zh-CN','fxdShippedVehiclesEdit_aspx',N'编辑发运工具','N','N') , (1999,'5/1/2012','zh-CN','fxdShippedVehiclesQuery_aspx',N'查询发运工具','N','N') , (1999,'5/1/2012','zh-CN','fxdShowFifoProcessing_aspx',N'显示FIFO处理','N','N') , (1999,'5/1/2012','zh-CN','fxdStagingRelease_aspx',N'缓存发布','N','N') , (1999,'5/1/2012','zh-CN','fxdSyncInventory_aspx',N'同步库存','N','N') , (1999,'5/1/2012','zh-CN','fxdTempDeposit_aspx',N'暂存款','N','N') , (1999,'5/1/2012','zh-CN','fxdTester_aspx',N'测试器','N','N') , (1999,'5/1/2012','zh-CN','fxdTransactionSummary_aspx',N'交易汇总','N','N') , (1999,'5/1/2012','zh-CN','fxdUpdateMidByTransportID_aspx',N'通过运输ID更新MID','N','N') , (1999,'5/1/2012','zh-CN','fxdZeroDutyExportsToEntry_aspx',N'零关税出口入口','N','N') , (1999,'5/1/2012','zh-CN','fxdZoneToZoneImport_aspx',N'区至区进口','N','N') , (1999,'5/1/2012','zh-CN','fxdZoneToZoneManualReconciliation_aspx',N'区至区手工对账','N','N') , (1999,'5/1/2012','zh-CN','fxdZoneToZoneOverlay_aspx',N'区至区覆盖','N','N') , (1999,'5/1/2012','zh-CN','fxdZoneToZoneReconciliation_aspx',N'区至区对账','N','N') , (1999,'5/1/2012','zh-CN','fxdZoneToZoneTransfer_aspx',N'区至区转移','N','N') , (1999,'5/1/2012','zh-CN','fxxExecuteUpdate_aspx',N'执行数据更新','N','N') , (1999,'5/1/2012','zh-CN','fxxImportBOM_aspx',N'导入物料清单','N','N') , (1999,'5/1/2012','zh-CN','fxxImportCisco214_aspx',N'导入CBP214','N','N') , (1999,'5/1/2012','zh-CN','fxxImportCommercialPricing_aspx',N'导入商业价格','N','N') , (1999,'5/1/2012','zh-CN','fxxImportSamsungBOM_aspx',N'导入物料清单','N','N') , (1999,'5/1/2012','zh-CN','fxxLotShipments_aspx',N'装运批次','N','N') , (1999,'5/1/2012','zh-CN','fxxManualOverrides_aspx',N'手工覆盖','N','N') , (1999,'5/1/2012','zh-CN','hlxProduct',N'产品','N','N') , (1999,'7/2/2006','zh-CN','HsDesc',N'统一关税说明','N','N') , (1999,'7/2/2006','zh-CN','HsNum',N'统一关税人数','N','N') , (1999,'7/2/2006','zh-CN','hyxlnkDocumentRetention',N'文件保存','N','N') , (1999,'1/16/2012','zh-CN','hyxlnkEndUseSearch',N'产品最终使用','N','N') , (1999,'7/2/2006','zh-CN','hyxlnkExit',N'出境','N','N') , (1999,'4/23/2007','zh-CN','hyxlnkFDACode',N'典林业建设','N','N') , (1999,'7/2/2006','zh-CN','hyxlnkNew',N'新','N','N') , (1999,'7/2/2006','zh-CN','hyxlnkNextBottom',N'未来','N','N') , (1999,'7/2/2006','zh-CN','hyxlnkNextTop',N'未来','N','N') , (1999,'7/2/2006','zh-CN','hyxlnkPreviousBottom',N'上次','N','N') , (1999,'7/2/2006','zh-CN','hyxlnkPreviousTop',N'上次','N','N') , (1999,'4/23/2007','zh-CN','hyxlnkRulings',N'裁决','N','N') , (1999,'5/1/2012','zh-CN','hyxlnkSave',N'保存','N','N') , (1999,'5/1/2012','zh-CN','interfaces_fidSetKitManagement_aspx',N'工具包/套管理','N','N') , (1999,'7/2/2006','zh-CN','LastUpdatedBy',N'最后修改','N','N') , (1999,'5/1/2012','zh-CN','lblxBOMGuid',N'物料清单查询','N','N') , (1999,'1/16/2012','zh-CN','lbxApplyDate',N'有效日期','N','N') , (1999,'7/2/2006','zh-CN','lbxAssuranceLevel',N'保障水平','N','N') , (1999,'7/2/2006','zh-CN','lbxAuditDate',N'审核日期','N','N') , (1999,'7/2/2006','zh-CN','lbxAuditNotes',N'审核说明','N','N') , (1999,'7/2/2006','zh-CN','lbxBindingRuling',N'约束力裁决','N','N') , (1999,'8/25/2016','zh-CN','lbxBOMEmpty',N'PLACEHOLDER','N','N') , (1999,'5/1/2012','zh-CN','lbxBOMGuid',N'物料清单查询','N','N') , (1999,'7/2/2006','zh-CN','lbxCAFCCases',N'CAFC案例','N','N') , (1999,'7/2/2006','zh-CN','lbxCITCases',N'创新案例','N','N') , (1999,'7/2/2006','zh-CN','lbxCountry',N'国','N','N') , (1999,'7/2/2006','zh-CN','lbxCulture',N'当前语言','N','N') , (1999,'7/2/2006','zh-CN','lbxDataSource',N'数据来源','N','N') , (1999,'7/2/2006','zh-CN','lbxDataSourceNotes',N'数据来源说明','N','N') , (1999,'8/25/2016','zh-CN','lbxDefaultSimulationType',N'PLACEHOLDER','N','N') , (1999,'5/1/2012','zh-CN','lbxDeleteMessage',N'您是否确认删除记录?','N','N') , (1999,'5/1/2012','zh-CN','lbxExchangeRate',N'汇率','N','N') , (1999,'9/18/2006','zh-CN','lbxFDAProductCode',N'食品和药品生产管理法规','N','N') , (1999,'9/18/2006','zh-CN','lbxFDAProductDesc',N'食品与药物管理产品说明','N','N') , (1999,'9/18/2006','zh-CN','lbxFDARegistrationNum',N'食品与药物管理登记号码','N','N') , (1999,'7/2/2006','zh-CN','lbxFor',N'为','N','N') , (1999,'7/2/2006','zh-CN','lbxGlobalHsDesc',N'全球统一的关税说明','N','N') , (1999,'7/2/2006','zh-CN','lbxGlobalHsNum',N'全球统一的关税','N','N') , (1999,'7/2/2006','zh-CN','lbxGlobalProductDesc',N'全球产品说明','N','N') , (1999,'7/2/2006','zh-CN','lbxGlobalProductNum',N'全球产品数量','N','N') , (1999,'3/3/2017','zh-CN','lbxGoHome',N'出境','N','N') , (1999,'7/11/2006','zh-CN','lbxGRI',N'一般解释规则','N','N') , (1999,'7/2/2006','zh-CN','lbxHsChapterNotes',N'统一关税章说明','N','N') , (1999,'7/2/2006','zh-CN','lbxHsDesc',N'统一关税说明','N','N') , (1999,'7/2/2006','zh-CN','lbxHsInProgress',N'统一关税的进展','N','N') , (1999,'7/2/2006','zh-CN','lbxHsRationale',N'据统一关税','N','N') , (1999,'7/2/2006','zh-CN','lbxHsRecommended',N'统一关税的建议','N','N') , (1999,'4/23/2007','zh-CN','lbxHsRecommendedRate',N'协推荐率','N','N') , (1999,'7/2/2006','zh-CN','lbxHsSectionNotes',N'统一关税部分说明','N','N') , (1999,'7/2/2006','zh-CN','lbxPartner',N'目前伙伴','N','N') , (1999,'7/2/2006','zh-CN','lbxProductDesc',N'产品说明','N','N') , (1999,'7/2/2006','zh-CN','lbxProductGroup',N'集团产品','N','N') , (1999,'7/2/2006','zh-CN','lbxProductNum',N'产品数量','N','N') , (1999,'7/2/2006','zh-CN','lbxRecordsToDisplay',N'记录显示','N','N') , (1999,'7/2/2006','zh-CN','lbxRulingNotes',N'判决指出','N','N') , (1999,'5/1/2012','zh-CN','lbxSaveDate',N'保存日期','N','N') , (1999,'7/2/2006','zh-CN','lbxScheduleB',N'B计划','N','N') , (1999,'7/2/2006','zh-CN','lbxSearch',N'搜索','N','N') , (1999,'8/25/2016','zh-CN','lbxShowHideFilter',N'PLACEHOLDER','N','N') , (1999,'8/25/2016','zh-CN','lbxSimulationMessage',N'PLACEHOLDER','N','N') , (1999,'8/25/2016','zh-CN','lbxSimulationReportsEmpty',N'PLACEHOLDER','N','N') , (1999,'5/1/2012','zh-CN','lbxSLOC',N'查询号码','N','N') , (1999,'8/25/2016','zh-CN','lbxTransactionsEmpty',N'PLACEHOLDER','N','N') , (1999,'5/1/2012','zh-CN','lbxTxnEndDate',N'结束日期','N','N') , (1999,'5/1/2012','zh-CN','lbxTxnStartDate',N'开始日期','N','N') , (1999,'7/11/2006','zh-CN','lbxWCOEN',N'世界海关组织注释','N','N') , (1999,'5/1/2012','zh-CN','lnxbtnAddNew',N'新增','N','N') , (1999,'1/16/2012','zh-CN','lnxbtnApply',N'应用','N','N') , (1999,'8/25/2016','zh-CN','lnxbtnBeginSimulation',N'PLACEHOLDER','N','N') , (1999,'8/25/2016','zh-CN','lnxbtnCommitBOMChanges',N'PLACEHOLDER','N','N') , (1999,'7/2/2006','zh-CN','lnxbtnCopy',N'复制','N','N') , (1999,'7/2/2006','zh-CN','lnxbtnCopyItem_Cancel',N'取消','N','N') , (1999,'7/2/2006','zh-CN','lnxbtnCopyItem_OK',N'行','N','N') , (1999,'7/2/2006','zh-CN','lnxbtnDelete',N'删除','N','N') , (1999,'7/2/2006','zh-CN','lnxbtnDeleteNo',N'无','N','N') , (1999,'7/2/2006','zh-CN','lnxbtnDeleteYes',N'有','N','N') , (1999,'7/2/2006','zh-CN','lnxbtnExit',N'出境','N','N') , (1999,'7/2/2006','zh-CN','lnxbtnGo',N'去...','N','N') , (1999,'8/25/2016','zh-CN','lnxbtnRestartSimulation',N'PLACEHOLDER','N','N') , (1999,'7/11/2011','zh-CN','lnxbtnReturnToDashboard',N'??','N','N') , (1999,'1/16/2012','zh-CN','lnxbtnSave',N'保存','N','N') , (1999,'1/16/2012','zh-CN','lnxbtnSave2',N'保存','N','N') , (1999,'7/2/2006','zh-CN','lnxbtnSearch',N'去...','N','N') , (1999,'8/25/2016','zh-CN','lnxbtnStagingDataTransfer',N'PLACEHOLDER','N','N') , (1999,'5/1/2012','zh-CN','Logon_aspx',N'登录','N','N') , (1999,'5/1/2012','zh-CN','maintenance_fmdClassificationRequest_aspx',N'创建分类申请','N','N') , (1999,'5/1/2012','zh-CN','maintenance_fmdDashBoard_aspx',N'编码申请控制面板','N','N') , (1999,'5/1/2012','zh-CN','Monitor_aspx',N'监控','N','N') , (1999,'8/25/2016','zh-CN','No updates have been made.',N'PLACEHOLDER','N','N') , (1999,'8/25/2016','zh-CN','Please Select a Handbook.',N'PLACEHOLDER','N','N') , (1999,'7/2/2006','zh-CN','ProductDesc',N'产品说明','N','N') , (1999,'7/2/2006','zh-CN','ProductNum',N'产品数量','N','N') , (1999,'5/1/2012','zh-CN','PurchaseOrderNum',N'查询采购订单','N','N') , (1999,'5/1/2012','zh-CN','RCO22',N'批号','N','N') , (1999,'5/1/2012','zh-CN','RCO23',N'总费用','N','N') , (1999,'8/25/2016','zh-CN','Reconciliation',N'PLACEHOLDER','N','N') , (1999,'5/1/2012','zh-CN','rrdComponentBalanceAudit',N'组件余额审计','N','N') , (1999,'5/1/2012','zh-CN','rrdFinishedGoodBalanceAudit',N'成品结余审计','N','N') , (1999,'5/1/2012','zh-CN','Search.aspx',N'搜索产品','N','N') , (1999,'5/1/2012','zh-CN','Search_aspx',N'搜索产品','N','N') , (1999,'8/25/2016','zh-CN','Simulation',N'PLACEHOLDER','N','N') , (1999,'8/25/2016','zh-CN','Simulation ({0}) has began at ''{1}''',N'PLACEHOLDER','N','N') , (1999,'8/25/2016','zh-CN','Simulation ({0}) has restarted at ''{1}''',N'PLACEHOLDER','N','N') , (1999,'8/25/2016','zh-CN','Simulation has ended at ''{0}''',N'PLACEHOLDER','N','N') , (1999,'5/1/2012','zh-CN','Storage Loc',N'查询号码','N','N') , (1999,'8/25/2016','zh-CN','The BOM changes in Simulation has been committed to staging at ''{0}''',N'PLACEHOLDER','N','N') , (1999,'8/25/2016','zh-CN','The Staging Data is being transfered to Production, it began at ''{0}''',N'PLACEHOLDER','N','N') , (1999,'8/25/2016','zh-CN','There was an issue with beginning the Simulation.',N'PLACEHOLDER','N','N') , (1999,'5/1/2012','zh-CN','Trailer',N'运输编号','N','N') , (1999,'5/1/2012','zh-CN','txdAssist_aspx',N'帮助设置','N','N') , (1999,'5/1/2012','zh-CN','vid_BatchStatus',N'查看导入状态','N','N') <file_sep>if not exists (SELECT * FROM sysobjects WHERE name = 'bck_tlgapplicationlaunchtree_20_3_PCShipments') BEGIN select * into bck_tlgapplicationlaunchtree_20_3_PCShipments from tlgApplicationLaunchTree with (nolock) where workflow = 'FIFO' END if (select count(*) from tlgApplicationLaunchTree where workflow = 'FIFO' and command like 'PC Shipments Thread %' and partnerID <> 0) = 4 BEGIN PRINT 'UPDATE Workflow' DELETE tlgApplicationLaunchTree where workflow = 'FIFO' and command like 'PC Shipments Thread %' and command != 'PC Shipments Thread 1' update tlgApplicationLaunchTree set command = 'PC Parallel Threads 4' where workflow = 'FIFO' and command = 'PC Shipments Thread 1' END ELSE BEGIN PRINT 'No Changes Needed' END <file_sep>IF EXISTS(SELECT * FROM [txdReportDefinitions] WHERE [ReportName] = 'InventoryAuditReport' AND [ReportApplication] = 'Integrationpoint.Reports.MXReports.dll') BEGIN UPDATE [txdReportDefinitions] SET [ReportName] = 'MXINVENTORYAUDIT' WHERE [ReportName] = 'InventoryAuditReport' AND [ReportApplication] = 'Integrationpoint.Reports.MXReports.dll' END IF EXISTS(SELECT * FROM [txdReportDefinitions] WHERE [ReportName] = 'TxnAuditReport' AND [ReportApplication] = 'Integrationpoint.Reports.MXReports.dll') BEGIN UPDATE [txdReportDefinitions] SET [ReportName] = 'MXTRANSACTIONAUDIT' WHERE [ReportName] = 'TxnAuditReport' AND [ReportApplication] = 'Integrationpoint.Reports.MXReports.dll' END IF EXISTS(SELECT * FROM [txdReportDefinitions] WHERE [ReportName] = 'ShipmentTransactionAudit' AND [ReportApplication] = 'Integrationpoint.Reports.MXReports.dll') BEGIN UPDATE [txdReportDefinitions] SET [ReportName] = 'MXSHIPMENTTRANSACTIONAUDIT' WHERE [ReportName] = 'ShipmentTransactionAudit' AND [ReportApplication] = 'Integrationpoint.Reports.MXReports.dll' END IF EXISTS(SELECT * FROM [txdReportDefinitions] WHERE [ReportName] = 'MXMultilevelBOMS' AND [ReportApplication] = 'Integrationpoint.Reports.MXReports.dll') BEGIN UPDATE [txdReportDefinitions] SET [ReportName] = 'MXMULTILEVELBOMS' WHERE [ReportName] = 'MXMultilevelBOMS' AND [ReportApplication] = 'Integrationpoint.Reports.MXReports.dll' END IF EXISTS(SELECT * FROM [txdReportDefinitions] WHERE [ReportName] = 'MXProductHistory' AND [ReportApplication] = 'Integrationpoint.Reports.MXReports.dll') BEGIN UPDATE [txdReportDefinitions] SET [ReportName] = 'MXPRODUCTHISTORY' WHERE [ReportName] = 'MXProductHistory' AND [ReportApplication] = 'Integrationpoint.Reports.MXReports.dll' END <file_sep>-- if exists, delete one record IF EXISTS (SELECT DISTINCT cultureName, CultureGUID FROM tmgCultures WITH(NOLOCK) WHERE cultureName = 'English - US' AND CultureGUID = 'EN-US' ) BEGIN DELETE FROM tmgCultures WHERE cultureName = 'English - US' AND CultureGUID = 'EN-US' END <file_sep>BEGIN INSERT INTO txdMainQueueABIHolds SELECT DISTINCT (SELECT PartnerID FROM tmfDefaults with (NOLOCK)) AS PartnerID, GETDATE() AS EffDate, NEWID() AS QueueGUID, h.PGAMapGUID AS PGAMapGUID, '' AS MessageSender, '' AS MessageRecipient, '' AS MessageID, '' AS Created, '' AS MessageOriginator, '' AS PurposeCode, 'GELLERT' AS MilestoneMessageRecipient, NEWID() AS MilestoneMessageID, ISNULL(h.ReceiptDocID, '') AS MilestoneTypeCode, GETDATE() AS MilestoneTimeDateTime, 'LT' AS MilestoneTimeTimeZone, 'EventTime' AS MilestoneTimeWhichTime, ISNULL(h.SourceApplication, '') AS UserDefinedChar1, ISNULL(clas.HTSNum, '') AS UserDefinedChar2, ISNULL(h.EntryNumber, '') AS UserDefinedChar3, ISNULL(head.ImporterNumber, '') AS UserDefinedChar4, 'Ready' AS Status, 'ABI_Hold_XML_Extract' AS ExtractType, 'N' AS DeletedFlag, 'Y' AS KeepDuringRollback FROM txdUSPGAMap h WITH (NOLOCK) LEFT JOIN txdUSInvoiceLineClassification clas WITH (NOLOCK) ON h.InvoiceLineGUID = clas.InvoiceLineGUID AND h.HTSNum = clas.HTSNum LEFT JOIN txdUSEntryHeader head WITH (NOLOCK) ON h.EntryGUID = head.EntryGUID WHERE NOT EXISTS (SELECT mast.PGAMapGUID FROM txdMainQueueABIHolds mast WITH (NOLOCK) INNER JOIN txdABIHoldAttributes attr WITH (NOLOCK) ON attr.QueueGUID = mast.QueueGUID) IF @@ROWCOUNT>0 BEGIN INSERT INTO txdABIHoldAttributes SELECT DISTINCT mast.PartnerID AS PartnerID, GETDATE() AS EffDate, mast.QueueGUID AS QueueGUID, NEWID() AS QueueAttributeGUID, 'ProductCode' AS ReferenceIdType, ISNULL(line.PartNumber,'') AS ReferenceIdReference, 'N' AS DeletedFlag, 'Y' AS KeepDuringRollback FROM txdMainQueueABIHolds mast WITH (NOLOCK) left JOIN txdUSPGAMap h WITH (NOLOCK) ON mast.PGAMapGUID = h.PGAMapGUID and mast.[Status] = 'Ready' left JOIN txdUSInvoiceLine line WITH (NOLOCK) ON line.InvoiceLineGUID = h.InvoiceLineGUID WHERE NOT EXISTS (SELECT attr.QueueGUID FROM txdABIHoldAttributes attr WITH (NOLOCK) WHERE attr.QueueGUID = mast.QueueGUID AND attr.ReferenceIdType = 'ProductCode' AND attr.ReferenceIdReference = line.PartNumber) INSERT INTO txdABIHoldAttributes SELECT DISTINCT mast.PartnerID AS PartnerID, GETDATE() AS EffDate, mast.QueueGUID AS QueueGUID, NEWID() AS QueueAttributeGUID, 'ShipmentID' AS ReferenceIdType, ISNULL(invo.InvoiceNumber,'') AS ReferenceIdReference, 'N' AS DeletedFlag, 'Y' AS KeepDuringRollback FROM txdMainQueueABIHolds mast WITH (NOLOCK) LEFT JOIN txdUSPGAMap h WITH (NOLOCK) ON mast.PGAMapGUID = h.PGAMapGUID and mast.[Status] = 'Ready' LEFT JOIN txdUSInvoiceLine line WITH (NOLOCK) ON line.InvoiceLineGUID = h.InvoiceLineGUID LEFT JOIN txdUSInvoice invo WITH (NOLOCK) ON invo.InvoiceGUID = line.InvoiceGUID WHERE NOT EXISTS (SELECT attr.QueueGUID FROM txdABIHoldAttributes attr WITH (NOLOCK) WHERE attr.QueueGUID = mast.QueueGUID AND attr.ReferenceIdType = 'ShipmentID' AND attr.ReferenceIdReference = invo.InvoiceNumber) INSERT INTO txdABIHoldAttributes SELECT DISTINCT h.PartnerID AS PartnerID, GETDATE() AS EffDate, mast.QueueGUID AS QueueGUID, NEWID() AS QueueAttributeGUID, 'BLNumber' AS ReferenceIdType, ISNULL(ladi.MasterBill,'') AS ReferenceIdReference, 'N' AS DeletedFlag, 'Y' AS KeepDuringRollback from txdMainQueueABIHolds mast WITH (NOLOCK) LEFT JOIN txdUSPGAMap h WITH (NOLOCK) ON mast.PGAMapGUID = h.PGAMapGUID and mast.[Status] = 'Ready' LEFT JOIN txdUSBillOfLading ladi WITH (NOLOCK) ON ladi.Consignee = h.Consignee AND h.consignee<>'' WHERE NOT EXISTS (SELECT attr.QueueGUID FROM txdABIHoldAttributes attr WITH (NOLOCK) WHERE attr.QueueGUID = mast.QueueGUID AND attr.ReferenceIdType = 'BLNumber' AND attr.ReferenceIdReference = ladi.MasterBill) INSERT INTO txdABIHoldAttributes SELECT DISTINCT h.PartnerID AS PartnerID, GETDATE() AS EffDate, mast.QueueGUID AS QueueGUID, NEWID() AS QueueAttributeGUID, 'LineItemNumber' AS ReferenceIdType, ISNULL(line.InvoiceLineNumber,'') AS ReferenceIdReference, 'N' AS DeletedFlag, 'Y' AS KeepDuringRollback from txdMainQueueABIHolds mast WITH (NOLOCK) LEFT JOIN txdUSPGAMap h WITH (NOLOCK) ON mast.PGAMapGUID = h.PGAMapGUID and mast.[Status] = 'Ready' LEFT JOIN txdUSInvoiceLine line WITH (NOLOCK) ON line.InvoiceLineGUID = h.InvoiceLineGUID WHERE NOT EXISTS (SELECT attr.QueueGUID FROM txdABIHoldAttributes attr WITH (NOLOCK) WHERE attr.QueueGUID = mast.QueueGUID AND attr.ReferenceIdType = 'LineItemNumber' AND attr.ReferenceIdReference = line.InvoiceLineNumber) END END <file_sep>IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'SignTime' --your column here AND Object_ID = OBJECT_ID('txdCNEdocRealation')) --Your Table Here BEGIN --Do not change 1st and 5th parameter. --4th parameter is the updated data type; 6th paramter is the updated column length if any EXEC usp_DBACopyTableIndexesByColumn '','txdCNEdocRealation','SignTime','nvarchar',1,255 ALTER TABLE txdCNEdocRealation ALTER COLUMN SignTime nvarchar(255) NOT NULL --Do not change 1st paramter. EXEC usp_DBACreateTableIndexes '','txdCNEdocRealation' --Your Table Here END <file_sep>using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DBUpgrade { public class DevNullJournal : DbUp.Engine.IJournal { #region IJournal Members public string[] GetExecutedScripts() { return new string[0]; } public void StoreExecutedScript(DbUp.Engine.SqlScript script) { } #endregion } } <file_sep>-------------------------------------------------------------------------------------------------------------- --MODIFY EXISTING COLUMN --trdExportDetail -- Increase CountryOfOriginDecode to size 100 -------------------------------------------------------------------------------------------------------------- IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'CountryofOriginDecode' --your column here AND Object_ID = OBJECT_ID('trdExportDetail')) --Your Table Here BEGIN --Do not change 1st and 5th parameter. --4th parameter is the updated data type; 6th paramter is the updated column length if any EXEC usp_DBACopyTableIndexesByColumn '','trdExportDetail','CountryofOriginDecode','nvarchar',1,100 ALTER TABLE trdExportDetail --Your Table Here ALTER COLUMN CountryofOriginDecode [nvarchar] (100) NOT NULL --your column here --Do not change 1st paramter. EXEC usp_DBACreateTableIndexes '','trdExportDetail' --Your Table Here END<file_sep>-------------------------------------------------------------------------------------------------------------- --FOR DATA SCRIPT EXAMPLE --so you can select partnerid instead of hardcoding it --Make sure records don't already exists or remove them ---------------------------------------------------------------------------------------------------------------- --create backup in case we delete the wrong records SELECT * INTO dbo.bck_tmgglobalcodes_ReleasePush FROM tmgglobalcodes WHERE fieldname = 'SAPREVERSAL' DELETE tmgglobalcodes WHERE fieldname = 'SAPREVERSAL' insert into tmgglobalcodes select partnerid, getdate(), 'SAPREVERSAL', '102', 'SAP 102', 'Y', 'N', 'N' from tmfdefaults insert into tmgglobalcodes select partnerid, getdate(), 'SAPREVERSAL', '104', 'SAP 104', 'Y', 'N', 'N' from tmfdefaults insert into tmgglobalcodes select partnerid, getdate(), 'SAPREVERSAL', '642', 'SAP 642', 'Y', 'N', 'N' from tmfdefaults insert into tmgglobalcodes select partnerid, getdate(), 'SAPREVERSAL', '106', 'SAP 106', 'Y', 'N', 'N' from tmfdefaults insert into tmgglobalcodes select partnerid, getdate(), 'SAPREVERSAL', '602', 'SAP 602', 'Y', 'N', 'N' from tmfdefaults<file_sep>INSERT INTO tlgWorkFlowSchedule SELECT PartnerID AS PartnerID, GETDATE() AS EffDate, NEWID() AS WorkFlowGuid, 'Import CN Single Window PTR2 Response' as Description, 'N' AS Recurring, '1:00' AS Time, GETDATE() AS Date, 'ImportCNSingleWindowPTR2Response' AS Workflow, getdate() AS LastUpdated, '1' AS Interval, 'N' AS DeletedFlag, 'N' AS KeepDuringRollback FROM tmfDefaults d where not exists (select * from tlgWorkFlowSchedule where PartnerID = d.PartnerID and Workflow = 'ImportCNSingleWindowPTR2Response') INSERT INTO tlgApplicationLaunchTree SELECT PartnerID AS PartnerId, GETDATE() AS EffDate, 'ImportCNSingleWindowPTR2Response' AS WorkFlow, 1 as SequenceNo, 'dxdExecuteSQLBatch.dll' AS ApplicationToLaunch, 'CLEAR PRW-ImportCNSingleWindowPTR2Response' AS Command, 'N' AS DeletedFlag, 'N' AS KeepDuringRollback FROM tmfDefaults d where not exists (select * from tlgApplicationLaunchTree where PartnerID = d.PartnerID and Workflow = 'ImportCNSingleWindowPTR2Response' and Command = 'CLEAR PRW-ImportCNSingleWindowPTR2Response') INSERT INTO tlgApplicationLaunchTree SELECT PartnerID AS PartnerId, GETDATE() AS EffDate, 'ImportCNSingleWindowPTR2Response' AS WorkFlow, 2 as SequenceNo, 'dxdXSLTProcessor.dll' AS ApplicationToLaunch, 'ImportCNSingleWindowPTR2Response-TransformXMLResponse' AS Command, 'N' AS DeletedFlag, 'N' AS KeepDuringRollback FROM tmfDefaults d where not exists (select * from tlgApplicationLaunchTree where PartnerID = d.PartnerID and Workflow = 'ImportCNSingleWindowPTR2Response' and Command = 'ImportCNSingleWindowPTR2Response-TransformXMLResponse') INSERT INTO tlgApplicationLaunchTree SELECT PartnerID AS PartnerId, GETDATE() AS EffDate, 'ImportCNSingleWindowPTR2Response' AS WorkFlow, 3 as SequenceNo, 'dxgGenericFileImportWorkflow.dll' AS ApplicationToLaunch, 'ImportCNSingleWindowPTR2Response-ImportTransformedResponse' AS Command, 'N' AS DeletedFlag, 'N' AS KeepDuringRollback FROM tmfDefaults d where not exists (select * from tlgApplicationLaunchTree where PartnerID = d.PartnerID and Workflow = 'ImportCNSingleWindowPTR2Response' and Command = 'ImportCNSingleWindowPTR2Response-ImportTransformedResponse') INSERT INTO tlgApplicationLaunchTree SELECT PartnerID AS PartnerId, GETDATE() AS EffDate, 'ImportCNSingleWindowPTR2Response' AS WorkFlow, 4 as SequenceNo, 'dxgWorkflowNotification.dll' AS ApplicationToLaunch, 'ImportCNSingleWindowPTR2Response NOTIFICATION' AS Command, 'N' AS DeletedFlag, 'N' AS KeepDuringRollback FROM tmfDefaults d where not exists (select * from tlgApplicationLaunchTree where PartnerID = d.PartnerID and Workflow = 'ImportCNSingleWindowPTR2Response' and Command = 'ImportCNSingleWindowPTR2Response NOTIFICATION') <file_sep> IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'ProduceDate' AND Object_ID = OBJECT_ID('txdCNDecList')) --Your Table Here BEGIN EXEC usp_DBACopyTableIndexesByColumn '','txdCNDecList','ProduceDate','DATETIME',1,0 ALTER TABLE txdCNDecList --Your Table Here ALTER COLUMN ProduceDate [DATETIME] NULL EXEC usp_DBACreateTableIndexes '','txdCNDecList' END <file_sep>-------------------------------------------------------------------------------------------------------------- --MODIFY EXISTING COLUMN --trdDTSSearchResults -- Increase name to size 350 -------------------------------------------------------------------------------------------------------------- IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'name' --your column here AND Object_ID = OBJECT_ID('trdDTSSearchResults')) --Your Table Here BEGIN --Do not change 1st and 5th parameter. --4th parameter is the updated data type; 6th paramter is the updated column length if any EXEC usp_DBACopyTableIndexesByColumn '','trdDTSSearchResults','name','nvarchar',1,350 ALTER TABLE trdDTSSearchResults --Your Table Here ALTER COLUMN name [nvarchar] (350) NOT NULL --your column here --Do not change 1st paramter. EXEC usp_DBACreateTableIndexes '','trdDTSSearchResults' --Your Table Here END<file_sep> /*----if the record exists:txdOraGCOutboundMsg.HSNum <> tmdProductClassification.HSNum then update txdOraGCOutboundMsg using new record values -----*/ IF ( SELECT COUNT(*) FROM dbo.syscolumns WHERE name IN ('ApprovedBy', 'HSNum') AND ID = OBJECT_ID('tmdProductClassification') ) = 2 begin exec (' UPDATE a SET a.[TimeStamp] = GETDATE() ,a.HSNum = pc.HSNum ,a.[Status]=''Ready'' from tmdProductClassification pc WITH (NOLOCK) Join tmdPartnerCrossReference pr WITH (NOLOCK) on pc.PartnerID = pr.PartnerIdentifier and pc.ApprovedBy = ''ORACLE_ERP_CLOUD'' and pc.HSNum<>'''' Join txdOraGCOutboundMsg a WITH (NOLOCK) on a.PartnerID = pc.PartnerID and a.ProductGuid = pc.ProductGuid and a.InterfaceCode = ''MD_PRODUCT_CATEGORY_UPDATE'' and a.HSNum<>pc.HsNum;') --if the record doesn''t exist insert a new one exec( ' INSERT INTO txdOraGCOutboundMsg SELECT DISTINCT pc.PartnerID AS PartnerID ,GETDATE() AS EffDate ,NEWID() AS QueueGUID ,pc.ProductGuid AS ProductGUID ,''MD_PRODUCT_CATEGORY_UPDATE'' AS InterfaceCode ,'''' AS [TimeStamp] ,pc.HsNum AS HSNum ,''POST'' AS APIMethod ,''Ready'' AS [Status] ,'''' AS HTTPStatus ,''N'' AS DeletedFlag ,''N'' AS KeepDuringRollback from tmdProductClassification pc WITH (NOLOCK) Join tmdPartnerCrossReference pr WITH (NOLOCK) on pc.PartnerID = pr.PartnerIdentifier and pc.ApprovedBy = ''ORACLE_ERP_CLOUD'' and pc.HSNum<>'''' where pc.ProductGuid not in (select ProductGuid from txdOraGCOutboundMsg a WITH (NOLOCK) where a.PartnerID = pc.PartnerID and a.InterfaceCode = ''MD_PRODUCT_CATEGORY_UPDATE'') GROUP BY pc.PartnerID, pc.ProductGuid, pc.HsNum ') end <file_sep>IF EXISTS (SELECT TOP 1 1 FROM sys.tables WHERE Name = 'tmdHUProductClassificationAddlFields' AND Type = 'U') BEGIN IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'KeepDurinHUollback' AND Object_ID = Object_ID('tmdHUProductClassificationAddlFields')) BEGIN EXEC sp_rename 'tmdHUProductClassificationAddlFields.KeepDurinHUollback', 'KeepDuringRollback', 'COLUMN'; END END<file_sep>--Insert all necessary forms in the tmgForm --Standard Client GC Full Access IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'fmgClassificationUpdate_aspx' AND Description = 'fmgClassificationUpdate_aspx' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'fmgClassificationUpdate_aspx' -- FormGUID - varchar(50) ,'fmgClassificationUpdate_aspx' -- Description - varchar(80) ,2 -- SystemTypeID - int ,GETDATE() --EffDate - datetime ,'N' -- DeletedFlag - varchar(1) ,'N' -- KeepDuringRollback - varchar(1) END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'fmgRequestHeader_aspx' AND Description = 'fmgRequestHeader_aspx' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'fmgRequestHeader_aspx' ,'fmgRequestHeader_aspx' ,2 ,GETDATE() ,'N' ,'N' END --Standard Client DPS Full Access IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'fmgDeniedList_aspx' AND Description = 'fmgDeniedList_aspx' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'fmgDeniedList_aspx' ,'fmgDeniedList_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'fmgDPSSettings_aspx' AND Description = 'fmgDPSSettings_aspx' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'fmgDPSSettings_aspx' ,'fmgDPSSettings_aspx' ,2 ,GETDATE() ,'N' ,'N' END --Standard Client Export Full Access IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'fmgConsolidation_aspx' AND Description = 'fmgConsolidation_aspx' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'fmgConsolidation_aspx' ,'fmgConsolidation_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'fidBEPLDADeclaration_aspx' AND Description = 'fidBEPLDADeclaration_aspx' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'fidBEPLDADeclaration_aspx' ,'fidBEPLDADeclaration_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'fxdAssist_aspx' AND Description = 'fxdAssist_aspx' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'fxdAssist_aspx' ,'fxdAssist_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'fidDEDeclaration_aspx' AND Description = 'fidDEDeclaration_aspx' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'fidDEDeclaration_aspx' ,'fidDEDeclaration_aspx' ,2 ,GETDATE() ,'N' ,'N' END --Standard Client Content Full Access IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'fugWCOIndex_aspx' AND Description = 'fugWCOIndex_aspx' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'fugWCOIndex_aspx' ,'fugWCOIndex_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'fugWCONotes_aspx' AND Description = 'fugWCONotes_aspx' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'fugWCONotes_aspx' ,'fugWCONotes_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'fugWCONotesNew_aspx' AND Description = 'fugWCONotesNew_aspx' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'fugWCONotesNew_aspx' ,'fugWCONotesNew_aspx' ,2 ,GETDATE() ,'N' ,'N' END ----IP Full Access Group --FTA IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgForm WHERE FormGUID = 'fidFTAWhatIf_aspx' AND Description = 'fidFTAWhatIf_aspx' AND SystemTypeID = 2 ) BEGIN INSERT INTO tmgForm SELECT 'fidFTAWhatIf_aspx' ,'fidFTAWhatIf_aspx' ,2 ,GETDATE() ,'N' ,'N' END --Insert form into tmgGroupAccess according to their groups. --Standard Client GC Full Access IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = 'GC1001' AND FormGUID = 'fmgClassificationUpdate_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT 'GC1001' -- GroupGUID - varchar(50) ,'fmgClassificationUpdate_aspx' -- FormGUID - varchar(50) ,2 -- AccessType - varchar(3) ,GETDATE() -- EffDate - datetime ,'N' -- DeletedFlag - varchar(1) ,'N' -- KeepDuringRollback - varchar(1) END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = 'GC1001' AND FormGUID = 'fmgRequestHeader_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT 'GC1001' ,'fmgRequestHeader_aspx' ,2 ,GETDATE() ,'N' ,'N' END --Standard Client DPS Full Access IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = 'DPS1001' AND FormGUID = 'fmgDPSSettings_aspx' AND AccessType = 1 ) BEGIN INSERT INTO tmgGroupAccess SELECT 'DPS1001' ,'fmgDPSSettings_aspx' ,1 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = 'DPS1001' AND FormGUID = 'fmgDeniedList_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT 'DPS1001' ,'fmgDeniedList_aspx' ,2 ,GETDATE() ,'N' ,'N' END --Standard Client Export Full Access IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = 'EM1001' AND FormGUID = 'fmgConsolidation_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT 'EM1001' ,'fmgConsolidation_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = 'EM1001' AND FormGUID = 'fidBEPLDADeclaration_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT 'EM1001' ,'fidBEPLDADeclaration_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = 'EM1001' AND FormGUID = 'fxdAssist_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT 'EM1001' ,'fxdAssist_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = 'EM1001' AND FormGUID = 'fidDEDeclaration_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT 'EM1001' ,'fidDEDeclaration_aspx' ,2 ,GETDATE() ,'N' ,'N' END --Standard Client Content Full Access IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = 'GTC1001' AND FormGUID = 'fugWCOIndex_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT 'GTC1001' ,'fugWCOIndex_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = 'GTC1001' AND FormGUID = 'fugWCONotes_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT 'GTC1001' ,'fugWCONotes_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = 'GTC1001' AND FormGUID = 'fugWCONotesNew_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT 'GTC1001' ,'fugWCONotesNew_aspx' ,2 ,GETDATE() ,'N' ,'N' END --IP Full Access Group --Export IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'fmgConsolidation_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'fmgConsolidation_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'fidBEPLDADeclaration_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'fidBEPLDADeclaration_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'fidDEDeclaration_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'fidDEDeclaration_aspx' ,2 ,GETDATE() ,'N' ,'N' END --IP Full Access Group --Content IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'fugWCOIndex_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'fugWCOIndex_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'fugWCONotes_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'fugWCONotes_aspx' ,2 ,GETDATE() ,'N' ,'N' END IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'fugWCONotesNew_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'fugWCONotesNew_aspx' ,2 ,GETDATE() ,'N' ,'N' END --IP Full Access Group --FTA IF NOT EXISTS ( SELECT TOP 1 1 FROM tmgGroupAccess WHERE GroupGUID = '1002' AND FormGUID = 'fidFTAWhatIf_aspx' AND AccessType = 2 ) BEGIN INSERT INTO tmgGroupAccess SELECT '1002' ,'fidFTAWhatIf_aspx' ,2 ,GETDATE() ,'N' ,'N' END <file_sep>-------------------------------------------------------------------------------------------------------------- --CREATE TABLE --If you don't put a primary key on it, create a clustered index named CIX_TABLENAME --COLLATE example provided though not required. Use this when defining a column as Case Sensitive. -------------------------------------------------------------------------------------------------------------- IF EXISTS (select TOP 1 1 from sys.tables where Name = 'tmgglobalcodes' --Your Table Here AND Type = 'U') BEGIN IF Object_ID('tempdb..#tmgglobalcodes') IS NOT NULL DROP TABLE #tmgglobalcodes Select FieldName, Code, Decode into #tmgglobalcodes from dbo.tmgglobalcodes where 1 = 2 INSERT INTO #tmgglobalcodes(FieldName, Code, Decode) SELECT FieldName, Code, Decode FROM (VALUES ('PGAINTUSECODE','130.016','130.016 - Fuel for Internal Combustion Engines'), ('PGAINTUSECODE','130.017','130.017 - Fuel for other than Internal Combustion Engines'), ('PGAINTUSECODE','130.021','130.021 - Essential use of Ozone Depleting Substances'), ('PGAINTUSECODE','130.022','130.022 - Used Ozone Depleting Substances'), ('PGAINTUSECODE','130.025','130.025 - Domestic Consumption of Ozone Depleting Substances'), ('PGAINTUSECODE','150.001','150.001 - Chemical for Refinery Processing'), ('PGAINTUSECODE','150.002','150.002 - Chemical for Production of Consumer Products'), ('PGAINTUSECODE','150.003','150.003 - Blending Agent for Internal Combustion Engine Fuel'), ('PGAINTUSECODE','150.008','150.008 - For processing into Fuel for Internal Combustion Engines'), ('PGAINTUSECODE','150.009','150.009 - For processing into Fuel for other than Internal Combustion Engines'), ('PGAINTUSECODE','150.011','150.011 - For processing as a biological ingredient into a Bio-Fuel or other industrial use'), ('PGAINTUSECODE','150.012','150.012 - For processing of Ozone Depleting Substance into Feedstock'), ('PGAINTUSECODE','160.001','160.001 - Recycling or recovery of waste as an Energy source'), ('PGAINTUSECODE','160.002','160.002 - Recycling, Recovery or Reclamation of Solvents'), ('PGAINTUSECODE','160.003','160.003 - Recycling, Recovery or Reclamation of Organic Substances'), ('PGAINTUSECODE','160.004','160.004 - Recycling, Recovery or Reclamation of Metals'), ('PGAINTUSECODE','160.005','160.005 - Recycling, Recovery or Reclamation of Non-Metallic Inorganic Compounds'), ('PGAINTUSECODE','160.006','160.006 - Regeneration of Acids or Bases'), ('PGAINTUSECODE','160.007','160.007 - Recovery of Pollution Control Components'), ('PGAINTUSECODE','160.008','160.008 - Recovery of Components from Catalysts'), ('PGAINTUSECODE','160.009','160.009 - Recovery of Used Oil'), ('PGAINTUSECODE','160.011','160.011 - Containers with Residual Ozone Depleting Substances'), ('PGAINTUSECODE','160.012','160.012 - Miscellaneous Hazardous Waste Recycling'), ('PGAINTUSECODE','160.013','160.013 - Reclamation of Used Ozone Depleting Substances'), ('PGAINTUSECODE','180.006','180.006 - Research and development under TSCA'), ('PGAINTUSECODE','180.013','180.013 - Ozone and Depleting Substance for Research and Development'), ('PGAINTUSECODE','050.001','050.001 - Hazardous waste disposal by Incineration without pretreatment'), ('PGAINTUSECODE','050.002','050.002 - Physical-Chemical Treatment of hazardous waste followed by Incineration'), ('PGAINTUSECODE','050.003','050.003 - Biological Treatment of hazardous waste followed by Incineration'), ('PGAINTUSECODE','050.004','050.004 - Hazardous waste disposal in Landfill without pretreatment'), ('PGAINTUSECODE','050.005','050.005 - Physical-Chemical Treatment of hazardous waste followed by Disposal in Landfill'), ('PGAINTUSECODE','050.006','050.006 - Biological Treatment of hazardous waste followed by Disposal in Landfill'), ('PGAINTUSECODE','050.007','050.007 - Hazardous waste disposal Underground Injection without pretreatment'), ('PGAINTUSECODE','050.008','050.008 - Physical-Chemical Treatment of hazardous waste followed by disposal using Underground Injection'), ('PGAINTUSECODE','050.009','050.009 - Biological Treatment of hazardous waste followed by disposal using Underground Injection'), ('PGAINTUSECODE','050.010','050.010 - Hazardous waste disposal by Surface Impoundment without pretreatment'), ('PGAINTUSECODE','050.011','050.011 - Physical-Chemical Treatment of hazardous waste followed by disposal using Surface Impoundment'), ('PGAINTUSECODE','050.012','050.012 - Biological Treatment of hazardous waste followed by disposal using Surface Impoundment'), ('PGAINTUSECODE','050.013','050.013 - Hazardous waste disposal by Permanent Storage without pretreatment'), ('PGAINTUSECODE','050.014','050.014 - Physical-Chemical Treatment of hazardous waste followed by disposal using Permanent Storage'), ('PGAINTUSECODE','050.015','050.015 - Biological Treatment of hazardous waste followed by disposal using Permanent Storage'), ('PGAINTUSECODE','050.016','050.016 - Destruction of ODS without pretreatment'), ('PGAINTUSECODE','050.017','050.017 - Physical-Chemical Treatment of ODS followed by destruction of ODS'), ('PGAINTUSECODE','050.018','050.018 - Miscellaneous Hazardous Waste Disposal'), ('PGAINTUSECODE','130.020','130.020 - Fuel additives'), ('PGAINTUSECODE','150.010','150.010 - For processing into Fuel additives for Internal Combustion Engines'), ('PGAINTUSECODE','160.010','160.010 - Use of Waste as Land Treatment'), ('PGAPROCTYPECODE-APH','ACA','ACA - APHIS - Treatment Type - Controlled Atmosphere Temperature Treatment System'), ('PGAPROCTYPECODE-APH','ACD02','ACD02 - APHIS - Chemical dipT201-o-2'), ('PGAPROCTYPECODE-APH','ACD03','ACD03 - APHIS - Chemical dipT201-p-2'), ('PGAPROCTYPECODE-APH','ACS02','ACS02 - APHIS - Chemical Spray T402-d'), ('PGAPROCTYPECODE-APH','ACS03','ACS03 - APHIS - Chemical Spray T404-b-5-1'), ('PGAPROCTYPECODE-APH','ACS04','ACS04 - APHIS - Chemical Spray T404-f'), ('PGAPROCTYPECODE-APH','ACS05','ACS05 - APHIS - Chemical Spray T409-a'), ('PGAPROCTYPECODE-APH','ACS06','ACS06 - APHIS - Chemical Spray T409-b'), ('PGAPROCTYPECODE-APH','ACS07','ACS07 - APHIS - Chemical Spray T409-b-1'), ('PGAPROCTYPECODE-APH','ACS08','ACS08 - APHIS - Chemical Spray T409-b-3'), ('PGAPROCTYPECODE-APH','ACS09','ACS09 - APHIS - Chemical spray T501-1'), ('PGAPROCTYPECODE-APH','ACS10','ACS10 - APHIS - Chemical spray T501-2'), ('PGAPROCTYPECODE-APH','ACS11','ACS11 - APHIS - Chemical spray T501-3'), ('PGAPROCTYPECODE-APH','ACS12','ACS12 - APHIS - Chemical spray T501-4'), ('PGAPROCTYPECODE-APH','ACS13','ACS13 - APHIS - Chemical spray T501-5'), ('PGAPROCTYPECODE-APH','ACS14','ACS14 - APHIS - Chemical spray T501-6'), ('PGAPROCTYPECODE-APH','ACS15','ACS15 - APHIS - Chemical spray T505-1-1'), ('PGAPROCTYPECODE-APH','ACS16','ACS16 - APHIS - Chemical spray T505-1-2'), ('PGAPROCTYPECODE-APH','ACS17','ACS17 - APHIS - Chemical spray T505-2-1'), ('PGAPROCTYPECODE-APH','ACS18','ACS18 - APHIS - Chemical spray T505-2-2'), ('PGAPROCTYPECODE-APH','ACS19','ACS19 - APHIS - Chemical spray T507-1'), ('PGAPROCTYPECODE-APH','ACS20','ACS20 - APHIS - Chemical spray T507-2'), ('PGAPROCTYPECODE-APH','ACS21','ACS21 - APHIS - Chemical spray T508-1'), ('PGAPROCTYPECODE-APH','ACS22','ACS22 - APHIS - Chemical spray T509-1'), ('PGAPROCTYPECODE-APH','ACS23','ACS23 - APHIS - Chemical spray T509-2'), ('PGAPROCTYPECODE-APH','ACS24','ACS24 - APHIS - Chemical spray T510-2'), ('PGAPROCTYPECODE-APH','ACT02','ACT02 - APHIS - Cold Treatment T107-a-1'), ('PGAPROCTYPECODE-APH','ACT03','ACT03 - APHIS - Cold Treatment T107-a-2'), ('PGAPROCTYPECODE-APH','ACT04','ACT04 - APHIS - Cold Treatment T107-a-3'), ('PGAPROCTYPECODE-APH','ACT05','ACT05 - APHIS - Cold Treatment T107-b'), ('PGAPROCTYPECODE-APH','ACT06','ACT06 - APHIS - Cold Treatment T107-c'), ('PGAPROCTYPECODE-APH','ACT07','ACT07 - APHIS - Cold Treatment T107-d'), ('PGAPROCTYPECODE-APH','ACT08','ACT08 - APHIS - Cold Treatment T107-d-1'), ('PGAPROCTYPECODE-APH','ACT09','ACT09 - APHIS - Cold Treatment T107-d-2'), ('PGAPROCTYPECODE-APH','ACT10','ACT10 - APHIS - Cold Treatment T107-d-3'), ('PGAPROCTYPECODE-APH','ACT11','ACT11 - APHIS - Cold Treatment T107-e'), ('PGAPROCTYPECODE-APH','ACT12','ACT12 - APHIS - Cold Treatment T107-f'), ('PGAPROCTYPECODE-APH','ACT13','ACT13 - APHIS - Cold Treatment T107-g'), ('PGAPROCTYPECODE-APH','ACT14','ACT14 - APHIS - Cold Treatment T107-h'), ('PGAPROCTYPECODE-APH','ACT15','ACT15 - APHIS - Cold Treatment T107-i'), ('PGAPROCTYPECODE-APH','ACT16','ACT16 - APHIS - Cold Treatment T107-j'), ('PGAPROCTYPECODE-APH','ACT17','ACT17 - APHIS - Cold Treatment T107-k'), ('PGAPROCTYPECODE-APH','ACT18','ACT18 - APHIS - Cold Treatment T107-L'), ('PGAPROCTYPECODE-APH','ACT19','ACT19 - APHIS - Cold Treatment T403-a-2-3'), ('PGAPROCTYPECODE-APH','ACT20','ACT20 - APHIS - Cold Treatment T403-a-4-3'), ('PGAPROCTYPECODE-APH','ACT21','ACT21 - APHIS - Cold Treatment T403-a-5-3'), ('PGAPROCTYPECODE-APH','ACT22','ACT22 - APHIS - Cold Treatment T403-a-6-1'), ('PGAPROCTYPECODE-APH','ACT23','ACT23 - APHIS - Cold Treatment T403-a-6-2'), ('PGAPROCTYPECODE-APH','ACT24','ACT24 - APHIS - Cold Treatment T403-a-6-3'), ('PGAPROCTYPECODE-APH','ACTM2','ACTM2 - APHIS - Cold Treatment followed by Methyl Bromide T109-a-1'), ('PGAPROCTYPECODE-APH','ACTM3','ACTM3 - APHIS - Cold Treatment followed by Methyl Bromide T109-a-2'), ('PGAPROCTYPECODE-APH','ACTM4','ACTM4 - APHIS - Cold Treatment followed by Methyl Bromide T109-d-1'), ('PGAPROCTYPECODE-APH','ADH02','ADH02 - APHIS - Dry Heat T303-c-1'), ('PGAPROCTYPECODE-APH','ADH03','ADH03 - APHIS - Dry Heat T303-d-1'), ('PGAPROCTYPECODE-APH','ADH04','ADH04 - APHIS - Dry Heat T408-a'), ('PGAPROCTYPECODE-APH','ADH05','ADH05 - APHIS - Dry Heat T412-a'), ('PGAPROCTYPECODE-APH','ADH06','ADH06 - APHIS - Dry Heat T412-b-1'), ('PGAPROCTYPECODE-APH','ADH07','ADH07 - APHIS - Dry heat T503-1-4'), ('PGAPROCTYPECODE-APH','ADH08','ADH08 - APHIS - Dry heat T503-2-4'), ('PGAPROCTYPECODE-APH','ADH09','ADH09 - APHIS - Dry heat T504-1-1'), ('PGAPROCTYPECODE-APH','ADH10','ADH10 - APHIS - Dry heat T504-2-1'), ('PGAPROCTYPECODE-APH','ADH11','ADH11 - APHIS - Dry heat T514-3'), ('PGAPROCTYPECODE-APH','ADH12','ADH12 - APHIS - Dry heat T515-2-3'), ('PGAPROCTYPECODE-APH','ADH13','ADH13 - APHIS - Dry heat T518-1'), ('PGAPROCTYPECODE-APH','ADH14','ADH14 - APHIS - Dry heat T518-2-1'), ('PGAPROCTYPECODE-APH','AHPS2','AHPS2 - APHIS - High Pressure Steam T506-2-3'), ('PGAPROCTYPECODE-APH','AHT02','AHT02 - APHIS - Heat T314-a'), ('PGAPROCTYPECODE-APH','AHT03','AHT03 - APHIS - Heat T314-b'), ('PGAPROCTYPECODE-APH','AHT04','AHT04 - APHIS - Heat T314-c'), ('PGAPROCTYPECODE-APH','AHT05','AHT05 - APHIS - Heat T404-e-2'), ('PGAPROCTYPECODE-APH','AHT06','AHT06 - APHIS - Heat T415-a'), ('PGAPROCTYPECODE-APH','AHT07','AHT07 - APHIS - Heat T521'), ('PGAPROCTYPECODE-APH','AHTF2','AHTF2 - APHIS -High Temp Forced Air T103-b-1'), ('PGAPROCTYPECODE-APH','AHTF3','AHTF3 - APHIS -High Temp Forced Air T103-c-1'), ('PGAPROCTYPECODE-APH','AHTF4','AHTF4 - APHIS -High Temp Forced Air T103-d'), ('PGAPROCTYPECODE-APH','AHTF5','AHTF5 - APHIS -High Temp Forced Air T103-e'), ('PGAPROCTYPECODE-APH','AHW02','AHW02 - APHIS -Hot Water T102-b'), ('PGAPROCTYPECODE-APH','AHW03','AHW03 - APHIS -Hot Water T102-b-1'), ('PGAPROCTYPECODE-APH','AHW04','AHW04 - APHIS -Hot Water T102-b-2'), ('PGAPROCTYPECODE-APH','AHW05','AHW05 - APHIS -Hot Water T102-c'), ('PGAPROCTYPECODE-APH','AHW06','AHW06 - APHIS -Hot Water T102-d'), ('PGAPROCTYPECODE-APH','AHW07','AHW07 - APHIS -Hot Water T102-d-1'), ('PGAPROCTYPECODE-APH','AHW08','AHW08 - APHIS -Hot Water T102-e'), ('PGAPROCTYPECODE-APH','AHW09','AHW09 - APHIS -Hot Water T201-d-5'), ('PGAPROCTYPECODE-APH','AHW10','AHW10 - APHIS -Hot Water T201-g-3'), ('PGAPROCTYPECODE-APH','AHW11','AHW11 - APHIS -Hot Water T201-p-3'), ('PGAPROCTYPECODE-APH','AHW12','AHW12 - APHIS -Hot Water T201-q'), ('PGAPROCTYPECODE-APH','AHW13','AHW13 - APHIS -Hot Water T202-c'), ('PGAPROCTYPECODE-APH','AHW14','AHW14 - APHIS -Hot Water T202-i-3'), ('PGAPROCTYPECODE-APH','AHW15','AHW15 - APHIS -Hot Water T203-p'), ('PGAPROCTYPECODE-APH','AHW16','AHW16 - APHIS - Hot Water T503-1-2'), ('PGAPROCTYPECODE-APH','AHW17','AHW17 - APHIS - Hot Water T503-2-2'), ('PGAPROCTYPECODE-APH','AHW18','AHW18 - APHIS - Hot Water T514-1'), ('PGAPROCTYPECODE-APH','AHW19','AHW19 - APHIS - Hot Water T515-2-4'), ('PGAPROCTYPECODE-APH','AHW20','AHW20 - APHIS - Hot Water T552-1'), ('PGAPROCTYPECODE-APH','AHW21','AHW21 - APHIS - Hot Water T553-1'), ('PGAPROCTYPECODE-APH','AHW22','AHW22 - APHIS - Hot Water T553-2'), ('PGAPROCTYPECODE-APH','AHW23','AHW23 - APHIS - Hot Water T553-3'), ('PGAPROCTYPECODE-APH','AHW24','AHW24 - APHIS - Hot Water T553-4'), ('PGAPROCTYPECODE-APH','AHW25','AHW25 - APHIS - Hot Water T553-5'), ('PGAPROCTYPECODE-APH','AHW26','AHW26 - APHIS - Hot Water T554-1'), ('PGAPROCTYPECODE-APH','AHW27','AHW27 - APHIS - Hot Water T555-1'), ('PGAPROCTYPECODE-APH','AHW28','AHW28 - APHIS - Hot Water T556-1'), ('PGAPROCTYPECODE-APH','AHW29','AHW29 - APHIS - Hot Water T557-1'), ('PGAPROCTYPECODE-APH','AHW30','AHW30 - APHIS - Hot Water T558-1'), ('PGAPROCTYPECODE-APH','AHW31','AHW31 - APHIS - Hot Water T559-1'), ('PGAPROCTYPECODE-APH','AHW32','AHW32 - APHIS - Hot Water T559-2'), ('PGAPROCTYPECODE-APH','AHW33','AHW33 - APHIS - Hot Water T560-1'), ('PGAPROCTYPECODE-APH','AHW34','AHW34 - APHIS - Hot Water T561'), ('PGAPROCTYPECODE-APH','AHW35','AHW35 - APHIS - Hot Water T564-1'), ('PGAPROCTYPECODE-APH','AHW36','AHW36 - APHIS - Hot Water T565-1'), ('PGAPROCTYPECODE-APH','AHW37','AHW37 - APHIS - Hot Water T565-2'), ('PGAPROCTYPECODE-APH','AHW38','AHW38 - APHIS - Hot Water T565-3'), ('PGAPROCTYPECODE-APH','AHW39','AHW39 - APHIS - Hot Water T565-4'), ('PGAPROCTYPECODE-APH','AHW40','AHW40 - APHIS - Hot Water T565-5'), ('PGAPROCTYPECODE-APH','AHW41','AHW41 - APHIS - Hot Water T566-1'), ('PGAPROCTYPECODE-APH','AHW42','AHW42 - APHIS - Hot Water T566-2'), ('PGAPROCTYPECODE-APH','AHW43','AHW43 - APHIS - Hot Water T566-3'), ('PGAPROCTYPECODE-APH','AHW44','AHW44 - APHIS - Hot Water T567-1'), ('PGAPROCTYPECODE-APH','AHW45','AHW45 - APHIS - Hot Water T568-1'), ('PGAPROCTYPECODE-APH','AHW46','AHW46 - APHIS - Hot Water T569-1'), ('PGAPROCTYPECODE-APH','AHW47','AHW47 - APHIS - Hot Water T570-1'), ('PGAPROCTYPECODE-APH','AHW48','AHW48 - APHIS - Hot Water T570-2'), ('PGAPROCTYPECODE-APH','AIR02','AIR02 - APHIS - Irradiation T105-a-2'), ('PGAPROCTYPECODE-APH','AIR03','AIR03 - APHIS - Irradiation T105-a-3'), ('PGAPROCTYPECODE-APH','AIR04','AIR04 - APHIS - Irradiation T105-a-4'), ('PGAPROCTYPECODE-APH','AMBC2','AMBC2 - APHIS - Methyl Bromide followed by Cold Treatment T108-a-1'), ('PGAPROCTYPECODE-APH','AMBC3','AMBC3 - APHIS - Methyl Bromide followed by Cold Treatment T108-a-2'), ('PGAPROCTYPECODE-APH','AMBC4','AMBC4 - APHIS - Methyl Bromide followed by Cold Treatment T108-a-3'), ('PGAPROCTYPECODE-APH','AMBC5','AMBC5 - APHIS - Methyl Bromide followed by Cold Treatment T108-b'), ('PGAPROCTYPECODE-APH','APH02','APH02 - APHIS - Phosphine T203-g-3'), ('PGAPROCTYPECODE-APH','APH03','APH03 - APHIS - Phosphine T301-a-6'), ('PGAPROCTYPECODE-APH','APH04','APH04 - APHIS - Phosphine T301-d-1-2'), ('PGAPROCTYPECODE-APH','APH05','APH05 - APHIS - Phosphine T308-b-1'), ('PGAPROCTYPECODE-APH','APH06','APH06 - APHIS - Phosphine T308-b-2'), ('PGAPROCTYPECODE-APH','APH07','APH07 - APHIS - Phosphine T311'), ('PGAPROCTYPECODE-APH','APSS2','APSS2 - APHIS - Steam sterilization T303-b-2'), ('PGAPROCTYPECODE-APH','APSS3','APSS3 - APHIS - Steam sterilization T303-d-2'), ('PGAPROCTYPECODE-APH','APSS4','APSS4 - APHIS - Steam sterilization T303-d-2-1'), ('PGAPROCTYPECODE-APH','APSS5','APSS5 - APHIS - Steam sterilization T309-c'), ('PGAPROCTYPECODE-APH','AQF02','AQF02 - APHIS - Quick Freeze T110-b'), ('PGAPROCTYPECODE-APH','AQF03','AQF03 - APHIS - Quick Freeze T110-c'), ('PGAPROCTYPECODE-APH','AQF04','AQF04 - APHIS - Quick Freeze T110-c-1'), ('PGAPROCTYPECODE-APH','AQF05','AQF05 - APHIS - Quick Freeze T110-c-2'), ('PGAPROCTYPECODE-APH','AQF06','AQF06 - APHIS - Quick Freeze T110-c-3'), ('PGAPROCTYPECODE-APH','ASF02','ASF02 - APHIS - Sulfuryl fluoride T404-b-2'), ('PGAPROCTYPECODE-APH','ASF03','ASF03 - APHIS - Sulfuryl fluoride'), ('PGAPROCTYPECODE-APH','AST02','AST02 - APHIS - Steam T406-d'), ('PGAPROCTYPECODE-APH','AST03','AST03 - APHIS - Steam T408-b'), ('PGAPROCTYPECODE-APH','AST04','AST04 - APHIS - Steam T408-b-1'), ('PGAPROCTYPECODE-APH','AST05','AST05 - APHIS - Steam T408-f'), ('PGAPROCTYPECODE-APH','AST06','AST06 - APHIS - Steam T412-b-2'), ('PGAPROCTYPECODE-APH','AST07','AST07 - APHIS - Steam T503-1-3'), ('PGAPROCTYPECODE-APH','AST08','AST08 - APHIS - Steam T503-2-3'), ('PGAPROCTYPECODE-APH','AST09','AST09 - APHIS - Steam T504-1-2'), ('PGAPROCTYPECODE-APH','AST10','AST10 - APHIS - Steam T504-2-2'), ('PGAPROCTYPECODE-APH','AST11','AST11 - APHIS - Steam T510-1'), ('PGAPROCTYPECODE-APH','AST12','AST12 - APHIS - Steam T515-1'), ('PGAPROCTYPECODE-APH','AST13','AST13 - APHIS - Steam T515-2-1'), ('PGAPROCTYPECODE-APH','AST14','AST14 - APHIS - Steam T518-2-2'), ('PGAPROCTYPECODE-APH','AST15','AST15 - APHIS - Steam T519-1'), ('PGAPROCTYPECODE-APH','AST16','AST16 - APHIS - Steam T519-2'), ('PGAPROCTYPECODE-APH','AVH02','AVH02 - APHIS - Vapor Heat T106-a-1-1'), ('PGAPROCTYPECODE-APH','AVH03','AVH03 - APHIS - Vapor Heat T106-b'), ('PGAPROCTYPECODE-APH','AVH04','AVH04 - APHIS - Vapor Heat T106-c'), ('PGAPROCTYPECODE-APH','AVH05','AVH05 - APHIS - Vapor Heat T106-d'), ('PGAPROCTYPECODE-APH','AVH06','AVH06 - APHIS - Vapor Heat T106-d-1'), ('PGAPROCTYPECODE-APH','AVH07','AVH07 - APHIS - Vapor Heat T106-e'), ('PGAPROCTYPECODE-APH','AVH08','AVH08 - APHIS - Vapor Heat T106-f'), ('PGAPROCTYPECODE-APH','AVH09','AVH09 - APHIS - Vapor Heat T106-g'), ('PGAPROCTYPECODE-APH','AVH10','AVH10 - APHIS - Vapor Heat T106-h'), ('PGAPROCTYPECODE-APH','AVS02','AVS02 - APHIS - Vacuum steam T308-e'), ('PGAPROCTYPECODE-APH','MB002','MB002 - APHIS -Methyl Bromide T101-a-2'), ('PGAPROCTYPECODE-APH','MB003','MB003 - APHIS -Methyl Bromide T101-a-3'), ('PGAPROCTYPECODE-APH','MB004','MB004 - APHIS -Methyl Bromide T101-b-1'), ('PGAPROCTYPECODE-APH','MB005','MB005 - APHIS -Methyl Bromide T101-b-2'), ('PGAPROCTYPECODE-APH','MB006','MB006 - APHIS -Methyl Bromide T101-b-3-1'), ('PGAPROCTYPECODE-APH','MB007','MB007 - APHIS -Methyl Bromide T101-c-1'), ('PGAPROCTYPECODE-APH','MB008','MB008 - APHIS -Methyl Bromide T101-c-2'), ('PGAPROCTYPECODE-APH','MB009','MB009 - APHIS -Methyl Bromide T101-c-3'), ('PGAPROCTYPECODE-APH','MB010','MB010 - APHIS -Methyl Bromide T101-c-3-1'), ('PGAPROCTYPECODE-APH','MB011','MB011 - APHIS -Methyl Bromide T101-d-1'), ('PGAPROCTYPECODE-APH','MB012','MB012 - APHIS -Methyl Bromide T101-d-2'), ('PGAPROCTYPECODE-APH','MB013','MB013 - APHIS -Methyl Bromide T101-d-3'), ('PGAPROCTYPECODE-APH','MB014','MB014 - APHIS -Methyl Bromide T101-e-1'), ('PGAPROCTYPECODE-APH','MB015','MB015 - APHIS -Methyl Bromide T101-e-2'), ('PGAPROCTYPECODE-APH','MB016','MB016 - APHIS -Methyl Bromide T101-e-3'), ('PGAPROCTYPECODE-APH','MB017','MB017 - APHIS -Methyl Bromide T101-f-2'), ('PGAPROCTYPECODE-APH','MB018','MB018 - APHIS -Methyl Bromide T101-f-3'), ('PGAPROCTYPECODE-APH','MB019','MB019 - APHIS -Methyl Bromide T101-g-1'), ('PGAPROCTYPECODE-APH','MB020','MB020 - APHIS -Methyl Bromide T101-g-2'), ('PGAPROCTYPECODE-APH','MB021','MB021 - APHIS -Methyl Bromide T101-h-1'), ('PGAPROCTYPECODE-APH','MB022','MB022 - APHIS -Methyl Bromide T101-h-2'), ('PGAPROCTYPECODE-APH','MB023','MB023 - APHIS -Methyl Bromide T101-h-2-1'), ('PGAPROCTYPECODE-APH','MB024','MB024 - APHIS -Methyl Bromide T101-h-3'), ('PGAPROCTYPECODE-APH','MB025','MB025 - APHIS -Methyl Bromide T101-i-1'), ('PGAPROCTYPECODE-APH','MB026','MB026 - APHIS -Methyl Bromide T101-i-1-1'), ('PGAPROCTYPECODE-APH','MB027','MB027 - APHIS -Methyl Bromide T101-i-1-2'), ('PGAPROCTYPECODE-APH','MB028','MB028 - APHIS -Methyl Bromide T101-i-1-3'), ('PGAPROCTYPECODE-APH','MB029','MB029 - APHIS -Methyl Bromide T101-i-2'), ('PGAPROCTYPECODE-APH','MB030','MB030 - APHIS -Methyl Bromide T101-i-2-1'), ('PGAPROCTYPECODE-APH','MB031','MB031 - APHIS -Methyl Bromide T101-j-1'), ('PGAPROCTYPECODE-APH','MB032','MB032 - APHIS -Methyl Bromide T101-j-2'), ('PGAPROCTYPECODE-APH','MB033','MB033 - APHIS -Methyl Bromide T101-j-2-1'), ('PGAPROCTYPECODE-APH','MB034','MB034 - APHIS -Methyl Bromide T101-k-1'), ('PGAPROCTYPECODE-APH','MB035','MB035 - APHIS -Methyl Bromide T101-k-2'), ('PGAPROCTYPECODE-APH','MB036','MB036 - APHIS -Methyl Bromide T101-k-2-1'), ('PGAPROCTYPECODE-APH','MB037','MB037 - APHIS -Methyl Bromide T101-l-1'), ('PGAPROCTYPECODE-APH','MB038','MB038 - APHIS -Methyl Bromide T101-l-2'), ('PGAPROCTYPECODE-APH','MB039','MB039 - APHIS -Methyl Bromide T101-m-1'), ('PGAPROCTYPECODE-APH','MB040','MB040 - APHIS -Methyl Bromide T101-m-2'), ('PGAPROCTYPECODE-APH','MB041','MB041 - APHIS -Methyl Bromide T101-m-2-1'), ('PGAPROCTYPECODE-APH','MB042','MB042 - APHIS -Methyl Bromide T101-m-2-2'), ('PGAPROCTYPECODE-APH','MB043','MB043 - APHIS -Methyl Bromide T101-n-1'), ('PGAPROCTYPECODE-APH','MB044','MB044 - APHIS -Methyl Bromide T101-n-1'), ('PGAPROCTYPECODE-APH','MB045','MB045 - APHIS -Methyl Bromide T101-n-2'), ('PGAPROCTYPECODE-APH','MB046','MB046 - APHIS -Methyl Bromide T101-n-2-1'), ('PGAPROCTYPECODE-APH','MB047','MB047 - APHIS -Methyl Bromide T101-n-2-1-1'), ('PGAPROCTYPECODE-APH','MB048','MB048 - APHIS -Methyl Bromide T101-n-3'), ('PGAPROCTYPECODE-APH','MB049','MB049 - APHIS -Methyl Bromide T101-o-1'), ('PGAPROCTYPECODE-APH','MB050','MB050 - APHIS -Methyl Bromide T101-o-2'), ('PGAPROCTYPECODE-APH','MB051','MB051 - APHIS -Methyl Bromide T101-p-1'), ('PGAPROCTYPECODE-APH','MB052','MB052 - APHIS -Methyl Bromide T101-p-2'), ('PGAPROCTYPECODE-APH','MB053','MB053 - APHIS -Methyl Bromide T101-q-2'), ('PGAPROCTYPECODE-APH','MB054','MB054 - APHIS -Methyl Bromide T101-r-1'), ('PGAPROCTYPECODE-APH','MB055','MB055 - APHIS -Methyl Bromide T101-r-2'), ('PGAPROCTYPECODE-APH','MB056','MB056 - APHIS -Methyl Bromide T101-s-1'), ('PGAPROCTYPECODE-APH','MB057','MB057 - APHIS -Methyl Bromide T101-s-1-1'), ('PGAPROCTYPECODE-APH','MB058','MB058 - APHIS -Methyl Bromide T101-s-2'), ('PGAPROCTYPECODE-APH','MB059','MB059 - APHIS -Methyl Bromide T101-t-1'), ('PGAPROCTYPECODE-APH','MB060','MB060 - APHIS -Methyl Bromide T101-t-2'), ('PGAPROCTYPECODE-APH','MB061','MB061 - APHIS -Methyl Bromide T101-u-1'), ('PGAPROCTYPECODE-APH','MB062','MB062 - APHIS -Methyl Bromide T101-u-2'), ('PGAPROCTYPECODE-APH','MB063','MB063 - APHIS -Methyl Bromide T101-v-1'), ('PGAPROCTYPECODE-APH','MB064','MB064 - APHIS -Methyl Bromide T101-v-2'), ('PGAPROCTYPECODE-APH','MB065','MB065 - APHIS -Methyl Bromide T101-w-1'), ('PGAPROCTYPECODE-APH','MB066','MB066 - APHIS -Methyl Bromide T101-w-1-2'), ('PGAPROCTYPECODE-APH','MB067','MB067 - APHIS -Methyl Bromide T101-w-2'), ('PGAPROCTYPECODE-APH','MB068','MB068 - APHIS -Methyl Bromide T101-x-1'), ('PGAPROCTYPECODE-APH','MB069','MB069 - APHIS -Methyl Bromide T101-x-1-1'), ('PGAPROCTYPECODE-APH','MB070','MB070 - APHIS -Methyl Bromide T101-x-2'), ('PGAPROCTYPECODE-APH','MB071','MB071 - APHIS -Methyl Bromide T101-y-1'), ('PGAPROCTYPECODE-APH','MB072','MB072 - APHIS -Methyl Bromide T101-y-2'), ('PGAPROCTYPECODE-APH','MB073','MB073 - APHIS -Methyl Bromide T101-z-1'), ('PGAPROCTYPECODE-APH','MB074','MB074 - APHIS -Methyl Bromide T101-z-2'), ('PGAPROCTYPECODE-APH','MB075','MB075 - APHIS -Methyl Bromide T102-a'), ('PGAPROCTYPECODE-APH','MB076','MB076 - APHIS -Methyl Bromide T102-b'), ('PGAPROCTYPECODE-APH','MB077','MB077 - APHIS -Methyl Bromide T102-b-1'), ('PGAPROCTYPECODE-APH','MB078','MB078 - APHIS -Methyl Bromide T102-b-2'), ('PGAPROCTYPECODE-APH','MB079','MB079 - APHIS -Methyl Bromide T102-c'), ('PGAPROCTYPECODE-APH','MB080','MB080 - APHIS -Methyl Bromide T102-d'), ('PGAPROCTYPECODE-APH','MB081','MB081 - APHIS -Methyl Bromide T102-d-1'), ('PGAPROCTYPECODE-APH','MB082','MB082 - APHIS -Methyl Bromide T102-e'), ('PGAPROCTYPECODE-APH','MB083','MB083 - APHIS -Methyl Bromide T104-a-1'), ('PGAPROCTYPECODE-APH','MB084','MB084 - APHIS -Methyl Bromide T104-a-2'), ('PGAPROCTYPECODE-APH','MB085','MB085 - APHIS -Methyl Bromide T201-a-1'), ('PGAPROCTYPECODE-APH','MB086','MB086 - APHIS -Methyl Bromide T201-a-2'), ('PGAPROCTYPECODE-APH','MB087','MB087 - APHIS -Methyl Bromide T201-b-1'), ('PGAPROCTYPECODE-APH','MB088','MB088 - APHIS -Methyl Bromide T201-c-1'), ('PGAPROCTYPECODE-APH','MB089','MB089 - APHIS -Methyl Bromide T201-c-2'), ('PGAPROCTYPECODE-APH','MB090','MB090 - APHIS -Methyl Bromide T201-d-2'), ('PGAPROCTYPECODE-APH','MB091','MB091 - APHIS -Methyl Bromide T201-d-3'), ('PGAPROCTYPECODE-APH','MB092','MB092 - APHIS -Methyl Bromide T201-e-1'), ('PGAPROCTYPECODE-APH','MB093','MB093 - APHIS -Methyl Bromide T201-e-2'), ('PGAPROCTYPECODE-APH','MB094','MB094 - APHIS -Methyl Bromide T201-e-3-1'), ('PGAPROCTYPECODE-APH','MB095','MB095 - APHIS -Methyl Bromide T201-e-3-2'), ('PGAPROCTYPECODE-APH','MB096','MB096 - APHIS -Methyl Bromide T201-f-1'), ('PGAPROCTYPECODE-APH','MB097','MB097 - APHIS -Methyl Bromide T201-f-2'), ('PGAPROCTYPECODE-APH','MB098','MB098 - APHIS -Methyl Bromide T201-g-1'), ('PGAPROCTYPECODE-APH','MB099','MB099 - APHIS -Methyl Bromide T201-h-1'), ('PGAPROCTYPECODE-APH','MB100','MB100 - APHIS -Methyl Bromide T201-h-2'), ('PGAPROCTYPECODE-APH','MB101','MB101 - APHIS -Methyl Bromide T201-i-1'), ('PGAPROCTYPECODE-APH','MB102','MB102 - APHIS -Methyl Bromide T201-i-2'), ('PGAPROCTYPECODE-APH','MB103','MB103 - APHIS -Methyl Bromide T201-j'), ('PGAPROCTYPECODE-APH','MB104','MB104 - APHIS -Methyl Bromide T201-k-1'), ('PGAPROCTYPECODE-APH','MB105','MB105 - APHIS -Methyl Bromide T201-k-2'), ('PGAPROCTYPECODE-APH','MB106','MB106 - APHIS -Methyl Bromide T201-l'), ('PGAPROCTYPECODE-APH','MB107','MB107 - APHIS -Methyl Bromide T201-m-1'), ('PGAPROCTYPECODE-APH','MB108','MB108 - APHIS -Methyl Bromide T201-m-2'), ('PGAPROCTYPECODE-APH','MB109','MB109 - APHIS -Methyl Bromide T201-m-3'), ('PGAPROCTYPECODE-APH','MB110','MB110 - APHIS -Methyl Bromide T201-m-4'), ('PGAPROCTYPECODE-APH','MB111','MB111 - APHIS -Methyl Bromide T201-n'), ('PGAPROCTYPECODE-APH','MB112','MB112 - APHIS -Methyl Bromide T202-a-1'), ('PGAPROCTYPECODE-APH','MB113','MB113 - APHIS -Methyl Bromide T202-a-2'), ('PGAPROCTYPECODE-APH','MB114','MB114 - APHIS -Methyl Bromide T202-a-3'), ('PGAPROCTYPECODE-APH','MB115','MB115 - APHIS -Methyl Bromide T202-b'), ('PGAPROCTYPECODE-APH','MB116','MB116 - APHIS -Methyl Bromide T202-d'), ('PGAPROCTYPECODE-APH','MB117','MB117 - APHIS -Methyl Bromide T202-e-1'), ('PGAPROCTYPECODE-APH','MB118','MB118 - APHIS -Methyl Bromide T202-e-2'), ('PGAPROCTYPECODE-APH','MB119','MB119 - APHIS -Methyl Bromide T202-f'), ('PGAPROCTYPECODE-APH','MB120','MB120 - APHIS -Methyl Bromide T202-g'), ('PGAPROCTYPECODE-APH','MB121','MB121 - APHIS -Methyl Bromide T202-h'), ('PGAPROCTYPECODE-APH','MB122','MB122 - APHIS -Methyl Bromide T202-i-1'), ('PGAPROCTYPECODE-APH','MB123','MB123 - APHIS -Methyl Bromide T202-i-2'), ('PGAPROCTYPECODE-APH','MB124','MB124 - APHIS -Methyl Bromide T202-j'), ('PGAPROCTYPECODE-APH','MB125','MB125 - APHIS -Methyl Bromide T202-j-1'), ('PGAPROCTYPECODE-APH','MB126','MB126 - APHIS -Methyl Bromide T203-a-1'), ('PGAPROCTYPECODE-APH','MB127','MB127 - APHIS -Methyl Bromide T203-a-2'), ('PGAPROCTYPECODE-APH','MB128','MB128 - APHIS -Methyl Bromide T203-b'), ('PGAPROCTYPECODE-APH','MB129','MB129 - APHIS -Methyl Bromide T203-c'), ('PGAPROCTYPECODE-APH','MB130','MB130 - APHIS -Methyl Bromide T203-c-1'), ('PGAPROCTYPECODE-APH','MB131','MB131 - APHIS -Methyl Bromide T203-d-1'), ('PGAPROCTYPECODE-APH','MB132','MB132 - APHIS -Methyl Bromide T203-d-2'), ('PGAPROCTYPECODE-APH','MB133','MB133 - APHIS -Methyl Bromide T203-e'), ('PGAPROCTYPECODE-APH','MB134','MB134 - APHIS -Methyl Bromide T203-e-1'), ('PGAPROCTYPECODE-APH','MB135','MB135 - APHIS -Methyl Bromide T203-f-1'), ('PGAPROCTYPECODE-APH','MB136','MB136 - APHIS -Methyl Bromide T203-f-2'), ('PGAPROCTYPECODE-APH','MB137','MB137 - APHIS -Methyl Bromide T203-f-3'), ('PGAPROCTYPECODE-APH','MB138','MB138 - APHIS -Methyl Bromide T203-g-1'), ('PGAPROCTYPECODE-APH','MB139','MB139 - APHIS -Methyl Bromide T203-g-2'), ('PGAPROCTYPECODE-APH','MB140','MB140 - APHIS -Methyl Bromide T203-h'), ('PGAPROCTYPECODE-APH','MB141','MB141 - APHIS -Methyl Bromide T203-i-1'), ('PGAPROCTYPECODE-APH','MB142','MB142 - APHIS -Methyl Bromide T203-i-2'), ('PGAPROCTYPECODE-APH','MB143','MB143 - APHIS -Methyl Bromide T203-j'), ('PGAPROCTYPECODE-APH','MB144','MB144 - APHIS -Methyl Bromide T203-k'), ('PGAPROCTYPECODE-APH','MB145','MB145 - APHIS -Methyl Bromide T203-l'), ('PGAPROCTYPECODE-APH','MB146','MB146 - APHIS -Methyl Bromide T203-m'), ('PGAPROCTYPECODE-APH','MB147','MB147 - APHIS -Methyl Bromide T203-o'), ('PGAPROCTYPECODE-APH','MB148','MB148 - APHIS -Methyl Bromide T203-o-1'), ('PGAPROCTYPECODE-APH','MB149','MB149 - APHIS -Methyl Bromide T203-o-2'), ('PGAPROCTYPECODE-APH','MB150','MB150 - APHIS -Methyl Bromide T203-o-3'), ('PGAPROCTYPECODE-APH','MB151','MB151 - APHIS -Methyl Bromide T203-o-4-1'), ('PGAPROCTYPECODE-APH','MB152','MB152 - APHIS -Methyl Bromide T203-o-4-2'), ('PGAPROCTYPECODE-APH','MB153','MB153 - APHIS -Methyl Bromide T203-o-5'), ('PGAPROCTYPECODE-APH','MB154','MB154 - APHIS -Methyl Bromide T201-d-1'), ('PGAPROCTYPECODE-APH','MB155','MB155 - APHIS - Methyl Bromide T301-a-1-2'), ('PGAPROCTYPECODE-APH','MB156','MB156 - APHIS - Methyl Bromide T301-a-1-1'), ('PGAPROCTYPECODE-APH','MB157','MB157 - APHIS - Methyl Bromide T301-a-2'), ('PGAPROCTYPECODE-APH','MB158','MB158 - APHIS - Methyl Bromide T301-a-3'), ('PGAPROCTYPECODE-APH','MB159','MB159 - APHIS - Methyl Bromide T301-a-4'), ('PGAPROCTYPECODE-APH','MB160','MB160 - APHIS - Methyl Bromide T301-a-5-1'), ('PGAPROCTYPECODE-APH','MB161','MB161 - APHIS - Methyl Bromide T301-a-5-2'), ('PGAPROCTYPECODE-APH','MB162','MB162 - APHIS - Methyl Bromide T301-b-1-1'), ('PGAPROCTYPECODE-APH','MB163','MB163 - APHIS - Methyl Bromide T301-b-1-2'), ('PGAPROCTYPECODE-APH','MB164','MB164 - APHIS - Methyl Bromide T301-b-2'), ('PGAPROCTYPECODE-APH','MB165','MB165 - APHIS - Methyl Bromide T301-b-3'), ('PGAPROCTYPECODE-APH','MB166','MB166 - APHIS - Methyl Bromide T301-c'), ('PGAPROCTYPECODE-APH','MB167','MB167 - APHIS - Methyl Bromide T301-d-1-1'), ('PGAPROCTYPECODE-APH','MB168','MB168 - APHIS - Methyl Bromide T301-e'), ('PGAPROCTYPECODE-APH','MB169','MB169 - APHIS - Methyl Bromide T302-a-1-1'), ('PGAPROCTYPECODE-APH','MB170','MB170 - APHIS - Methyl Bromide T302-b-1-1'), ('PGAPROCTYPECODE-APH','MB171','MB171 - APHIS - Methyl Bromide T302-b-1-2'), ('PGAPROCTYPECODE-APH','MB172','MB172 - APHIS - Methyl Bromide T302-c-1'), ('PGAPROCTYPECODE-APH','MB173','MB173 - APHIS - Methyl Bromide T302-c-2'), ('PGAPROCTYPECODE-APH','MB174','MB174 - APHIS - Methyl Bromide T302-c-3'), ('PGAPROCTYPECODE-APH','MB175','MB175 - APHIS - Methyl Bromide T302-d'), ('PGAPROCTYPECODE-APH','MB176','MB176 - APHIS - Methyl Bromide T302-e-1'), ('PGAPROCTYPECODE-APH','MB177','MB177 - APHIS - Methyl Bromide T302-e-2'), ('PGAPROCTYPECODE-APH','MB178','MB178 - APHIS - Methyl Bromide T302-g-1'), ('PGAPROCTYPECODE-APH','MB179','MB179 - APHIS - Methyl Bromide T302-g-2'), ('PGAPROCTYPECODE-APH','MB180','MB180 - APHIS - Methyl Bromide T303-a'), ('PGAPROCTYPECODE-APH','MB181','MB181 - APHIS - Methyl Bromide T303-d-2-2'), ('PGAPROCTYPECODE-APH','MB182','MB182 - APHIS - Methyl Bromide T303-d-2-3'), ('PGAPROCTYPECODE-APH','MB183','MB183 - APHIS - Methyl Bromide T304-a'), ('PGAPROCTYPECODE-APH','MB184','MB184 - APHIS - Methyl Bromide T304-b'), ('PGAPROCTYPECODE-APH','MB185','MB185 - APHIS - Methyl Bromide T305-a'), ('PGAPROCTYPECODE-APH','MB186','MB186 - APHIS - Methyl Bromide T305-b'), ('PGAPROCTYPECODE-APH','MB187','MB187 - APHIS - Methyl Bromide T305-c'), ('PGAPROCTYPECODE-APH','MB188','MB188 - APHIS - Methyl Bromide T306-a'), ('PGAPROCTYPECODE-APH','MB189','MB189 - APHIS - Methyl Bromide T306-b'), ('PGAPROCTYPECODE-APH','MB190','MB190 - APHIS - Methyl Bromide T306-c-1'), ('PGAPROCTYPECODE-APH','MB191','MB191 - APHIS - Methyl Bromide T306-c-2'), ('PGAPROCTYPECODE-APH','MB192','MB192 - APHIS - Methyl Bromide T306-d-1'), ('PGAPROCTYPECODE-APH','MB193','MB193 - APHIS - Methyl Bromide T306-d-2'), ('PGAPROCTYPECODE-APH','MB194','MB194 - APHIS - Methyl Bromide T308-a-1'), ('PGAPROCTYPECODE-APH','MB195','MB195 - APHIS - Methyl Bromide T308-a-2'), ('PGAPROCTYPECODE-APH','MB196','MB196 - APHIS - Methyl Bromide T309-a'), ('PGAPROCTYPECODE-APH','MB197','MB197 - APHIS - Methyl Bromide T309-b-1'), ('PGAPROCTYPECODE-APH','MB198','MB198 - APHIS - Methyl Bromide T309-b-2'), ('PGAPROCTYPECODE-APH','MB199','MB199 - APHIS - Methyl Bromide T310-a'), ('PGAPROCTYPECODE-APH','MB200','MB200 - APHIS - Methyl Bromide T310-b'), ('PGAPROCTYPECODE-APH','MB201','MB201 - APHIS - Methyl Bromide T312-a'), ('PGAPROCTYPECODE-APH','MB202','MB202 - APHIS - Methyl Bromide T312-a- Alternative'), ('PGAPROCTYPECODE-APH','MB203','MB203 - APHIS - Methyl Bromide T312-b'), ('PGAPROCTYPECODE-APH','MB204','MB204 - APHIS - Methyl Bromide T313-a'), ('PGAPROCTYPECODE-APH','MB205','MB205 - APHIS - Methyl Bromide T313-b'), ('PGAPROCTYPECODE-APH','MB206','MB206 - APHIS - Methyl Bromide T401-a'), ('PGAPROCTYPECODE-APH','MB207','MB207 - APHIS - Methyl Bromide T401-b'), ('PGAPROCTYPECODE-APH','MB208','MB208 - APHIS - Methyl Bromide T402-a-1'), ('PGAPROCTYPECODE-APH','MB209','MB209 - APHIS - Methyl Bromide T402-a-2'), ('PGAPROCTYPECODE-APH','MB210','MB210 - APHIS - Methyl Bromide T402-a-3'), ('PGAPROCTYPECODE-APH','MB211','MB211 - APHIS - Methyl Bromide T402-b-1'), ('PGAPROCTYPECODE-APH','MB212','MB212 - APHIS - Methyl Bromide T402-b-2'), ('PGAPROCTYPECODE-APH','MB213','MB213 - APHIS - Methyl Bromide T402-b-3-2'), ('PGAPROCTYPECODE-APH','MB214','MB214 - APHIS - Methyl Bromide T402-c'), ('PGAPROCTYPECODE-APH','MB215','MB215 - APHIS - Methyl Bromide T403-a-1'), ('PGAPROCTYPECODE-APH','MB216','MB216 - APHIS - Methyl Bromide T403-a-2-1'), ('PGAPROCTYPECODE-APH','MB217','MB217 - APHIS - Methyl Bromide T403-a-2-2'), ('PGAPROCTYPECODE-APH','MB218','MB218 - APHIS - Methyl Bromide T403-a-3'), ('PGAPROCTYPECODE-APH','MB219','MB219 - APHIS - Methyl Bromide T403-a-4-1'), ('PGAPROCTYPECODE-APH','MB220','MB220 - APHIS - Methyl Bromide T403-a-4-2'), ('PGAPROCTYPECODE-APH','MB221','MB221 - APHIS - Methyl Bromide T403-a-5-1'), ('PGAPROCTYPECODE-APH','MB222','MB222 - APHIS - Methyl Bromide T403-a-5-2'), ('PGAPROCTYPECODE-APH','MB223','MB223 - APHIS - Methyl Bromide T403-b'), ('PGAPROCTYPECODE-APH','MB224','MB224 - APHIS - Methyl Bromide T403-c'), ('PGAPROCTYPECODE-APH','MB225','MB225 - APHIS - Methyl Bromide T403-e-1-1'), ('PGAPROCTYPECODE-APH','MB226','MB226 - APHIS - Methyl Bromide T403-e-1-2'), ('PGAPROCTYPECODE-APH','MB227','MB227 - APHIS - Methyl Bromide T403-e-2'), ('PGAPROCTYPECODE-APH','MB228','MB228 - APHIS - Methyl Bromide T403-f'), ('PGAPROCTYPECODE-APH','MB229','MB229 - APHIS - Methyl Bromide T404-a'), ('PGAPROCTYPECODE-APH','MB230','MB230 - APHIS - Methyl Bromide T404-b-1-1'), ('PGAPROCTYPECODE-APH','MB231','MB231 - APHIS - Methyl Bromide T404-b-1-2'), ('PGAPROCTYPECODE-APH','MB232','MB232 - APHIS - Methyl Bromide T404-c-1-1'), ('PGAPROCTYPECODE-APH','MB233','MB233 - APHIS - Methyl Bromide T404-c-1-2'), ('PGAPROCTYPECODE-APH','MB234','MB234 - APHIS - Methyl Bromide T404-d'), ('PGAPROCTYPECODE-APH','MB235','MB235 - APHIS - Methyl Bromide T404-e-1'), ('PGAPROCTYPECODE-APH','MB236','MB236 - APHIS - Methyl Bromide T406-a'), ('PGAPROCTYPECODE-APH','MB237','MB237 - APHIS - Methyl Bromide T406-b'), ('PGAPROCTYPECODE-APH','MB238','MB238 - APHIS - Methyl Bromide T407'), ('PGAPROCTYPECODE-APH','MB239','MB239 - APHIS - Methyl Bromide T408-c-1'), ('PGAPROCTYPECODE-APH','MB240','MB240 - APHIS - Methyl Bromide T408-c-2'), ('PGAPROCTYPECODE-APH','MB241','MB241 - APHIS - Methyl Bromide T408-e-1'), ('PGAPROCTYPECODE-APH','MB242','MB242 - APHIS - Methyl Bromide T408-e-2'), ('PGAPROCTYPECODE-APH','MB243','MB243 - APHIS - Methyl Bromide T408-g-1'), ('PGAPROCTYPECODE-APH','MB244','MB244 - APHIS - Methyl Bromide T408-g-2'), ('PGAPROCTYPECODE-APH','MB245','MB245 - APHIS - Methyl Bromide T410'), ('PGAPROCTYPECODE-APH','MB246','MB246 - APHIS - Methyl Bromide T411'), ('PGAPROCTYPECODE-APH','MB247','MB247 - APHIS - Methyl Bromide T413-a'), ('PGAPROCTYPECODE-APH','MB248','MB248 - APHIS - Methyl Bromide T413-b'), ('PGAPROCTYPECODE-APH','MB249','MB249 - APHIS - Methyl Bromide T414'), ('PGAPROCTYPECODE-APH','MB250','MB250 - APHIS - Methyl Bromide T416-a-1'), ('PGAPROCTYPECODE-APH','MB251','MB251 - APHIS - Methyl Bromide T416-a-2'), ('PGAPROCTYPECODE-APH','MB252','MB252 - APHIS - Methyl Bromide T416-a-3'), ('PGAPROCTYPECODE-APH','MB253','MB253 - APHIS - Methyl Bromide T502-1'), ('PGAPROCTYPECODE-APH','MB254','MB254 - APHIS - Methyl Bromide T502-2'), ('PGAPROCTYPECODE-APH','MB255','MB255 - APHIS - Methyl Bromide T502-3'), ('PGAPROCTYPECODE-APH','MB256','MB256 - APHIS - Methyl Bromide T506-1-1'), ('PGAPROCTYPECODE-APH','MB257','MB257 - APHIS - Methyl Bromide T506-2-1'), ('PGACATEGORYCODE-AP1','1','1 - Bat Guano'), ('PGACATEGORYCODE-AP1','2','2 - Bird Guano and Manure'), ('PGACATEGORYCODE-AP1','3','3 - Powdered Bird Guano that Lacks Certification and from a Country Free from HPAI (H5N1) and END'), ('PGACATEGORYCODE-AP1','4','4 - Livestock Feces, Manure, and Urine'), ('PGACATEGORYCODE-AP1','5','5 - Animal Glue, Glue Stock, and Gut Strings'), ('PGACATEGORYCODE-AP1','6','6 - Collagen and Collagenous Products'), ('PGACATEGORYCODE-AP1','7','7 - Collagen and Collagenous Parts or Products of Ruminants from a Country Known to Be Affected with BSE'), ('PGACATEGORYCODE-AP1','8','8 - Ruminant Glue Stock from a Country Affected with BSE'), ('PGACATEGORYCODE-AP1','9','9 - Ruminant Glue Stock from a Country Affected with FMD'), ('PGACATEGORYCODE-AP1','10','10 - Swine Glue Stock from a Country Affected with ASF, CSF, FMD, or SVD; or Glue Stock from an Unknown Animal Class'), ('PGACATEGORYCODE-AP1','11','11 - Pellets from Birds of Prey'), ('PGACATEGORYCODE-AP1','12','12 - Rendered or Processed Protein Products from Poultry, for Animal Feed or Fertilizer from a Country Free from BSE'), ('PGACATEGORYCODE-AP1','13','13 - Rendered or Processed Protein Products from Equine, Ruminant, or Swine, for Animal Feed or Fertilizer from a Country Free from BSE'), ('PGACATEGORYCODE-AP1','14','14 - Other Animal Waste Products that Are Not Fully Processed and Are Not Considered to Rendered, from a Country Free from BSE'), ('PGACATEGORYCODE-AP1','15','15 - Blood for Scientific Use or Research'), ('PGACATEGORYCODE-AP1','16','16 - Blood for Pharmaceutical Use'), ('PGACATEGORYCODE-AP1','17','17 - Dried Blood Products Not Fully Rendered'), ('PGACATEGORYCODE-AP1','18','18 - Bone Ash, Bone Black, or Bone Char'), ('PGACATEGORYCODE-AP1','19','19 - Gelatin as Bulk Gelatin or Empty Gel Caps'), ('PGACATEGORYCODE-AP1','20','20 - Gelatin Other Than Bulk Gelatin or Empty Gel Caps'), ('PGACATEGORYCODE-AP1','21','21 - Bones, Etc. for Manufacturing'), ('PGACATEGORYCODE-AP1','22','22 - Hoofs Other than for Pet Toys'), ('PGACATEGORYCODE-AP1','23','23 - Hoofs of Swine or of Ruminant from a COO Known to Be Free from BSE'), ('PGACATEGORYCODE-AP1','24','24 - Chondroitin Sulfate and Glucosamine'), ('PGACATEGORYCODE-AP1','25','25 - Bones and Related By-Products Not Specifically Mentioned Elsewhere'), ('PGACATEGORYCODE-AP1','26','26 - Reconstituted Collagen Casings Derived from Ruminant Collagen'), ('PGACATEGORYCODE-AP1','27','27 - Reconstituted Collagen Casings Derived from Swine Collagen'), ('PGACATEGORYCODE-AP1','28','28 - Swine Casings Originating in a Foreign Country Free from ASF'), ('PGACATEGORYCODE-AP1','29','29 - Inedible Egg Products'), ('PGACATEGORYCODE-AP1','30','30 - Whole, Decorated Empty Egg Shells'), ('PGACATEGORYCODE-AP1','31','31 - Edible Eggs and Egg Products from Countries Affected With HPAI (H5N1)'), ('PGACATEGORYCODE-AP1','32','32 - Edible Eggs and Egg Products from Other than Canada, the Mexican States of Sonora or Sinaloa, and Countries Free from HPAI (H5N1)'), ('PGACATEGORYCODE-AP1','33','33 - Fresh, Unfertilized Eggs'), ('PGACATEGORYCODE-AP1','34','34 - Fresh, Unfertilized Eggs from the Mexican States of Sonora or Sinaloa'), ('PGACATEGORYCODE-AP1','35','35 - Hard-Dried or Flint-Dried Untanned Hides or Skins of Animals Other Than Goat, Lamb, or Sheep'), ('PGACATEGORYCODE-AP1','36','36 - Hard-Dried or Flint-Dried Untanned Hides or Skins of Goat, Lamb, or Sheep Hides, Skins, or Capes of Swine'), ('PGACATEGORYCODE-AP1','37','37 - Untanned Hides, Skins, or Capes of Ruminants or Swine'), ('PGACATEGORYCODE-AP1','38','38 - Untanned Hides, Skins, or Capes of Ruminant and Swine from a Region of Origin'), ('PGACATEGORYCODE-AP1','39','39 - Known to Be Affected with FMD and Pickled in Salt Solution Containing Mineral Acid'), ('PGACATEGORYCODE-AP1','40','40 - Tanned Hides, Skins, or Capes, and Chrome-tanned Hides, Skins, or Capes of Birds'), ('PGACATEGORYCODE-AP1','41','41 - Hard-dried or Flint-dried Untanned Hides or Skins of Birds'), ('PGACATEGORYCODE-AP1','42','42 - Untanned Skins or Capes of Birds With or Without Feathers'), ('PGACATEGORYCODE-AP1','43','43 - Feathers Only or Products that Contain Feathers'), ('PGACATEGORYCODE-AP1','44','44 - Ruminant or Swine Wool, Hair or Bristles Free from Blood Stains, but Not Washed, Scoured or Dyed, & from RGN of Origin Known to Be Affected w/FMD'), ('PGACATEGORYCODE-AP1','45','45 - Wool that Is Lightly Contaminated With Manure'), ('PGACATEGORYCODE-AP1','46','46 - Swine Hair or Bristles Heavily Contaminated with Manure'), ('PGACATEGORYCODE-AP1','47','47 - Earthworms'), ('PGACATEGORYCODE-AP1','48','48 - Microorganisms (Bacteria, Viruses, Fungi)'), ('PGACATEGORYCODE-AP1','49','49 - Recombinant Microorganisms'), ('PGACATEGORYCODE-AP1','50','50 - Animal Tissue'), ('PGACATEGORYCODE-AP1','51','51 - Live Laboratory Mammals and Their Associated Materials'), ('PGACATEGORYCODE-AP1','52','52 - Human Materials'), ('PGACATEGORYCODE-AP1','53','53 - Nonhuman Primate Materials'), ('PGACATEGORYCODE-AP1','54','54 - Canine (Dog) and Feline (Cat) Materials'), ('PGACATEGORYCODE-AP1','55','55 - Amphibian, Aquatic Animal, and Reptile Materials'), ('PGACATEGORYCODE-AP1','56','56 - Organisms and Vectors for Research or Biological Use'), ('PGACATEGORYCODE-AP1','57','57 - Hybridoma Cells, Recombinant and Nonrecombinant Cell Lines, Cell and Tissue Cultures, and Their Products'), ('PGACATEGORYCODE-AP1','58','58 - Monoclonal Antibodies, Ascitic Fluid, and Tissue Culture Supernatants'), ('PGACATEGORYCODE-AP1','59','59 - Semen Originating from Canada'), ('PGACATEGORYCODE-AP1','60','60 - Semen Originating from Countries Other Than Canada'), ('PGACATEGORYCODE-AP1','61','61 - Embryos and Ova'), ('PGACATEGORYCODE-AP1','62','62 - Returned US Origin Meat or Meat Products'), ('PGACATEGORYCODE-AP1','63','63 - Returned US Meat or Meat Products from Countries Free from Diseases of Concern'), ('PGACATEGORYCODE-AP1','64','64 - Horse Meat from Argentina, Canada, New Zealand, and Paraguay'), ('PGACATEGORYCODE-AP1','65','65 - Horse Meat from a Country Known to Be Free from FMD'), ('PGACATEGORYCODE-AP1','66','66 - Carcasses of Game Birds from a COO Known to Be Free from HPAI (H5N1)'), ('PGACATEGORYCODE-AP1','67','67 - Carcasses of Game Birds from COO Known to Be Free from HPAI (H5N1), but Affected w/END or Transited Country Known to Be Affected w/END'), ('PGACATEGORYCODE-AP1','68','68 - Cooked Meat or Meat Products of Poultry and Fowl from Countries Known to Be Free from HPAI (H5N1)'), ('PGACATEGORYCODE-AP1','69','69 - Commercial Importations of Cooked Meat or Meat Products of Poultry & Fowl from COO Known to Be Free From HPAI (H5N1), but Affected w/END'), ('PGACATEGORYCODE-AP1','70','70 - Cooked Meat or Meat Products of Poultry & Fowl in Passenger Baggage from COO Known to Be Free from HPAI (H5N1), but Affected w/END'), ('PGACATEGORYCODE-AP1','71','71 - Perishable Poultry Pâté from a COO Known to Be Free from HPAI (H5N1)'), ('PGACATEGORYCODE-AP1','72','72 - Perishable Poultry Pâté from COO Known to Be Free from HPAI (H5N1), & the Pâté Contains Pork or Pork Products of Lard (Rendered Fat) Only'), ('PGACATEGORYCODE-AP1','73','73 - Perishable Poultry Pâté from COO Known to Be Free from HPAI (H5N1), & the Pâté also Contains Pork or Pork Products Other than Lard'), ('PGACATEGORYCODE-AP1','74','74 - Perishable Poultry Pâté from COO Known to Be Free from HPAI (H5N1), and the Pâté Does Not Appear to Contain Pork or Pork Products'), ('PGACATEGORYCODE-AP1','75','75 - Bouillon Cubes, Meat Extract, and Powdered Chicken Meat from a COO Known to Be Free from HPAI (H5N1)'), ('PGACATEGORYCODE-AP1','76','76 - Dehydrated (Dry) Soup Mixes With Poultry Meat from a COO Known to Be Free from HPAI (H5N1)'), ('PGACATEGORYCODE-AP1','77','77 - Smoked or Cured Meat or Meat Products of Poultry and Fowl from a COO Known to Be Free from HPAI (H5N1)'), ('PGACATEGORYCODE-AP1','78','78 - Smoked or Cured Meat or Meat Products of Poultry and Fowl from a COO Known to Be Free from HPAI (H5N1), but Affected With END'), ('PGACATEGORYCODE-AP1','79','79 - Fresh Meat or Meat Products of Poultry and Fowl from a COO Known to Be Free from HPAI (H5N1)'), ('PGACATEGORYCODE-AP1','80','80 - Fresh (Chilled or Frozen) Poultry from Mexico'), ('PGACATEGORYCODE-AP1','81','81 - List of Approved Mexican Poultry Processing Plant'), ('PGACATEGORYCODE-AP1','82','82 - Fresh (Chilled or Frozen) Meat or Meat Products of Poultry and Fowl from a Country Known to Be Free from HPAI (H5N1) and Free from END'), ('PGACATEGORYCODE-AP1','83','83 - Fresh Meat of Poultry from a COO Known to Be Free from END, but Transited a Country Known to Be Affected with END'), ('PGACATEGORYCODE-AP1','84','84 - Beef/Goat/Sheep Extract and Bone Stock; Bouillon Cubes or Dehydrated Soup Mix Flavored With Beef Extract or Bone Stock'), ('PGACATEGORYCODE-AP1','85','85 - Dehydrated Soup Mixes Containing Pieces of Ruminant Meat'), ('PGACATEGORYCODE-AP1','86','86 - Dehydrated Soup Mixes Containing Pieces of Bovine Meat'), ('PGACATEGORYCODE-AP1','87','87 - Dehydrated Soup Mixes Containing Pieces of Caprine or Ovine Meat'), ('PGACATEGORYCODE-AP1','88','88 - Shelf-Stable Beef in Hermetically Sealed Cans'), ('PGACATEGORYCODE-AP1','89','89 - Shelf-stable Beef in Retorted, Flexible Pouches'), ('PGACATEGORYCODE-AP1','90','90 - Shelf-Stable Caprine and Ovine Meat in Hermetically Sealed Cans or Retorted, Flexible Pouches'), ('PGACATEGORYCODE-AP1','91','91 - Suet or Products Containing Suet Derived from Bovine Cattle'), ('PGACATEGORYCODE-AP1','92','92 - Suet or Products Containing Suet Derived from Ovine (Sheep) Ruminant'), ('PGACATEGORYCODE-AP1','93','93 - Cooked Meat of Ruminants'), ('PGACATEGORYCODE-AP1','94','94 - Cooked Meat of Ruminants from a Country Considered to Be at Minimal Risk for BSE'), ('PGACATEGORYCODE-AP1','95','95 - Cooked Meat of Ruminants from a Country Known to Be Free from BSE and FMD, but FMD/SR'), ('PGACATEGORYCODE-AP1','96','96 - Cooked Meat of Ruminants from a Country Known to Be Affected with Only FMD'), ('PGACATEGORYCODE-AP1','97','97 - Cooked Meat of Ruminants Identified as an IQF Product from a Country Known to Be Affected Only With FMD'), ('PGACATEGORYCODE-AP1','98','98 - Cured and Dried Meat of Ruminants'), ('PGACATEGORYCODE-AP1','99','99 - Cured and Dried Meat of Ruminants Arriving from a Country Known to Be Affected with BSE or at Minimal Risk for BSE'), ('PGACATEGORYCODE-AP1','100','100 - Cured and Dried Meat of Ruminants from a Country Known to Be Free from BSE and FMD, but FMD/SR'), ('PGACATEGORYCODE-AP1','101','101 - Cured and Dried Meat of Ruminants from a COO Known to Be Affected With Only FMD'), ('PGACATEGORYCODE-AP1','102','102 - Fresh (Chilled or Frozen) Meat of Ruminants'), ('PGACATEGORYCODE-AP1','103','103 - Fresh Meat of Ruminants from a Country Known to Be Free from BSE and FMD'), ('PGACATEGORYCODE-AP1','104','104 - Fresh Meat of Ruminants from a Country Known to Be Free from BSE and FMD Which Transited a Country Known to Be Affected with FMD'), ('PGACATEGORYCODE-AP1','105','105 - Fresh Meat of Ruminants from a Country Known to Be Free from BSE and FMD, but FMD/SR'), ('PGACATEGORYCODE-AP1','106','106 - Fresh or Cooked Beef of Ruminant from a Country Known to Be Free from BSE, but at Negligible Risk for FMD'), ('PGACATEGORYCODE-AP1','107','107 - Lard and Pork Fat'), ('PGACATEGORYCODE-AP1','108','108 - Meat Extract, Bouillon Cubes of Swine Origin, and Dehydrated Soup Mixes Containing Swine Meat Extract'), ('PGACATEGORYCODE-AP1','109','109 - Dehydrated (Dry) Soup Mixes Containing Swine Meat'), ('PGACATEGORYCODE-AP1','110','110 - Perishable Pork Pâté'), ('PGACATEGORYCODE-AP1','111','111 - Pork Skins or Rinds'), ('PGACATEGORYCODE-AP1','112','112 - Cooked, Prepared Food Containing Pork from Mexico and Entering Only at Land Border Ports'), ('PGACATEGORYCODE-AP1','113','113 - Irish Pork Purchased at Dublin and Shannon Airports'), ('PGACATEGORYCODE-AP1','114','114 - Pasta Products from Italy'), ('PGACATEGORYCODE','115','115 - Organisms or Vectors'), ('PGACATEGORYCODE-AP1','115','115 - Shelf Stable Swine Meat in Retorted, Flexible Pouches'), ('PGACATEGORYCODE-APH','115','115 - Organisms or Vectors'), ('PGACATEGORYCODE-AP1','116','116 - Cooked, Perishable Swine Meat'), ('PGACATEGORYCODE-AP1','117','117 - Cooked Perishable Swine Meat from a Country or Region Known to Be Free from ASF, CSF, FMD, and SVD, but Is SVD/SR and/or FMD/SR'), ('PGACATEGORYCODE-AP1','118','118 - Cooked, Perishable Swine Meat from a Country or Region Known to Be Affected with CSF or CSF in Combination with FMD/SR and/or SVD/SR'), ('PGACATEGORYCODE-AP1','119','119 - Cooked, Perishable Swine Meat from a Country or Region Known to Be Affected With Only SVD or SVD in Combination with CSF or CSF and FMD/SR'), ('PGACATEGORYCODE-AP1','121','121 - Cooked, Perishable Swine Meat Shipped from a Country or Region Known to Be Free from ASF, CSF, FMD, and SVD, but Is FMD/SR or SVD/SR'), ('PGACATEGORYCODE-AP1','122','122 - Cured & Dried Swine Meat'), ('PGACATEGORYCODE-AP1','123','123 - Cured & Dried Swine Meat from Country or Region Known to Be Free from ASF, CSF, FMD, and SVD, but Is SVD/SR or FMD/SR'), ('PGACATEGORYCODE-AP1','124','124 - Cured & Dried Boneless Swine Meat from Country or Region Known to Be Affected With FMD Only'), ('PGACATEGORYCODE-AP1','125','125 - Cured & Dried Boneless Swine Meat from Country or Region Known to Be Affected With CSF Only'), ('PGACATEGORYCODE-AP1','126','126 - Disease Status of Slaughtering and Processing Countries or Regions'), ('PGACATEGORYCODE-AP1','127','127 - Cured & Dried Boneless Swine Meat from Country or Region Affected with CSF & from a Country or Region of Processing Known to Be Affected w/CSF'), ('PGACATEGORYCODE-AP1','128','128 - Cured & Dried Boneless Swine Meat from Country or Region Known to Be Free from CSF, but Processed in a Country Known to Be Affected w/CSF'), ('PGACATEGORYCODE-AP1','129','129 - Cured & Dried Boneless Swine Meat from Country or Region Known to Be Affected with CSF in Combination with FMD or SVD/SR'), ('PGACATEGORYCODE-AP1','130','130 - Cured & Dried Boneless Swine Meat from CO or RGN Known to Be Free from SVD, but Affected w/CSF & Processed in CO Known to Be Affected w/SVD'), ('PGACATEGORYCODE-AP1','131','131 - Cured & Dried Boneless Swine Meat from CO or RGN Known to Be Free from ASF, CSF, & SVD, but Processed in CO Known to Be Affected w/CSF & SVD'), ('PGACATEGORYCODE-AP1','132','132 - Cured & Dried Hams, Loins, and Shoulders from Italy and Spain'), ('PGACATEGORYCODE-AP1','133','133 - Fresh (Chilled or Frozen) Swine Meat'), ('PGACATEGORYCODE-AP1','134','134 - Fresh (Chilled or Frozen) Swine Meat from Country or Region Known to Be Free from ASF, CSF, FMD, or SVD'), ('PGACATEGORYCODE-AP1','135','135 - Fresh (Chilled or Frozen) Swine Meat from Country or Region Known to Be Free from ASF, CSF, FMD, & SVD, but Transited a Country Affected w/FMD'), ('PGACATEGORYCODE-AP1','136','136 - Fresh (Chilled or Frozen) Swine Meat from Country or Region Known to Be Affected With CSF Only'), ('PGACATEGORYCODE-AP1','137','137 - Fresh (Chilled or Frozen) Swine Meat from Member State of the European Union-15 (EU-15) Considered at Low Risk for CSF'), ('PGACATEGORYCODE-AP1','138','138 - Fresh (Chilled or Frozen) Swine Meat from a Country that Is CSF/SR and/or FMD/SR and/or SVD/SR'), ('PGACATEGORYCODE-AP1','139','139 - Cultured Milk Products'), ('PGACATEGORYCODE-AP1','140','140 - Dry Milk Products'), ('PGACATEGORYCODE-AP1','141','141 - Fresh Milk Products'), ('PGACATEGORYCODE-AP1','142','142 - Canned or Packaged Shelf-Stable Milk Products, Including Mixtures'), ('PGACATEGORYCODE-AP1','143','143 - Canned or Packaged Shelf-Stable Products Containing Milk or Milk Products'), ('PGACATEGORYCODE-AP1','144','144 - Miscellaneous Products Derived from Milk'), ('PGACATEGORYCODE-AP1','145','145 - Dry Milk Products, Including Mixtures of Dry Milk Products'), ('PGACATEGORYCODE-AP1','146','146 - Non Shelf-Stable Milk and Milk Products'), ('PGACATEGORYCODE-AP1','147','147 - Milk Products With Sugar as an Ingredient'), ('PGACATEGORYCODE-AP1','148','148 - Cheese'), ('PGACATEGORYCODE-AP1','149','149 - Hard or Processed Cheese'), ('PGACATEGORYCODE-AP1','150','150 - Liquid or Soft Cheese'), ('PGACATEGORYCODE-AP1','151','151 - Solid Cheese and Pasteurized, Processed Cheese Containing Meat'), ('PGACATEGORYCODE-AP1','152','152 - Mixtures that Contain Milk Products with Other Animal-Derived Ingredients'), ('PGACATEGORYCODE-AP1','153','153 - Canned, Shelf-Stable Products that Contain Milk Products and Meat'), ('PGACATEGORYCODE-AP1','154','154 - Milk Feed, Milk Replacer, and Feed Products that Contain Milk Along With Rendered or Processed Animal Proteins'), ('PGACATEGORYCODE-AP1','155','155 - Birds Nests'), ('PGACATEGORYCODE-AP1','156','156 - Egg Cartons, Crates, Flats, or Liners'), ('PGACATEGORYCODE-AP1','157','157 - Used Farm Machinery'), ('PGACATEGORYCODE-AP1','158','158 - Footwear'), ('PGACATEGORYCODE-AP1','159','159 - Garbage'), ('PGACATEGORYCODE-AP1','160','160 - Semen and Embryo Containers'), ('PGACATEGORYCODE-AP1','161','161 - Straw, Hay, and Grass, and Canadian Origin Soil'), ('PGACATEGORYCODE-AP1','162','162 - Used Meat Covers and Scrap Bagging'), ('PGACATEGORYCODE-AP1','163','163 - Human Pharmaceuticals and Human Vaccines'), ('PGACATEGORYCODE-AP1','164','164 - Human Pharmaceuticals, Human Vaccines, Antivenom, Dietary Supplements, Insulin, and Nutriceuticals Containing Animal-derived Components'), ('PGACATEGORYCODE-AP1','165','165 - Human Pharmaceuticals and Human Vaccines Containing Milk/Milk Products as the Only Animal Origin Ingredient'), ('PGACATEGORYCODE-AP1','166','166 - Dietary Supplements Containing Milk/Milk Products as the Only Animal-Origin Ingredient'), ('PGACATEGORYCODE-AP1','167','167 - Cosmetics'), ('PGACATEGORYCODE-AP1','168','168 - Asian Medicinal Products'), ('PGACATEGORYCODE-AP1','169','169 - Asian Medicinal Products of Equine, Ruminant, or Swine Origin'), ('PGACATEGORYCODE-AP1','170','170 - Asian Medicinal Products of Bird or Poultry Origin'), ('PGACATEGORYCODE-AP1','171','171 - Chemically Synthesized, Biosynthesized, and Natural Products'), ('PGACATEGORYCODE-AP1','172','172 - Proteins/Peptides/Enzymes/Hormones of Microbial Origin Including Recombinants'), ('PGACATEGORYCODE-AP1','173','173 - Chemically Synthesized Proteins, Peptides, Enzymes, Hormones'), ('PGACATEGORYCODE-AP1','174','174 - Plasmids, Nucleic Acids (RNA, DNA), Primers, Probes'), ('PGACATEGORYCODE-AP1','175','175 - Salt Scrapings'), ('PGACATEGORYCODE-AP1','176','176 - Organs and Glands Labeled for Pharmaceutical or Tech. Use Only'), ('PGACATEGORYCODE-AP1','177','177 - Organs and Their Derivatives for Research or Pharmaceutical Use'), ('PGACATEGORYCODE-AP1','178','178 - Fresh, Frozen Organs and Glands'), ('PGACATEGORYCODE-AP1','179','179 - Intestines, Bung Caps, and Other Animal Parts for Manufacturing'), ('PGACATEGORYCODE-AP1','180','180 - The following by-products from ruminants are regulated as ruminant derived rennets: Calf vell; Gullet (goat); Rennet extract; Stomach'), ('PGACATEGORYCODE-AP1','181','181 - Feathers Only that Are Not Taxidermy Finished'), ('PGACATEGORYCODE-AP1','182','182 - Capes With or Without Feathers and Skin of Poultry, Game Birds, and Other Birds that Are Not Taxidermy Finished'), ('PGACATEGORYCODE-AP1','183','183 - Hides that Are Not Taxidermy Finished'), ('PGACATEGORYCODE-AP1','184','184 - Hides or Skins of Ruminants from Mexico that Are Not Taxidermy Finished'), ('PGACATEGORYCODE-AP1','185','185 - Fresh Hides or Skins of Ruminants from Other than Mexico, that Are Not Taxidermy Finished, and Are from a Country Known to Be Free of FMD'), ('PGACATEGORYCODE-AP1','186','186 - Bones and Other Bony Tissue'), ('PGACATEGORYCODE-AP1','187','187 - Carcasses or Bony Tiss. w/ w/o Skin, Flesh or Sinew of Poultry & Game Birds & Not Taxidermy Finished & from CO Known to Be Affected w/END Only'), ('PGACATEGORYCODE-AP1','188','188 - Ruminant Bones and Other Bony Tissue Including Antlers, Hoofs, Horns, Teeth, and Tusks'), ('PGACATEGORYCODE-AP1','189','189 - Ruminant Cervid Antlers'), ('PGACATEGORYCODE-AP1','190','190 - Bones and Bony Tissue of Swine that Are Not Taxidermy Finished, and from a Country Known to Be Affected FMD'), ('PGACATEGORYCODE-AP1','191','191 - Unfinished Swine Trophies (Including Bones and Hides) from a Country Affected with ASF or ASF in Combination with FMD'), ('PGACATEGORYCODE-AP1','192','192 - Canned, Shelf-Stable or Dry or Semi-Moist Pet Food from Countries Free from BSE'), ('PGACATEGORYCODE-AP1','193','193 - Canned, Shelf-Stable or Dry or Semi-Moist Pet Food Derived from Amphibian, Fish, Reptile, Shellfish or Aquatic Species from CO Free from BSE'), ('PGACATEGORYCODE-AP1','194','194 - Canned, Shelf-Stable or Dry or Semi-Moist Pet Food Derived from Poultry from a Country Free from BSE'), ('PGACATEGORYCODE-AP1','195','195 - Dry or Semi-Moist Pet Food Derived from Fowl or Poultry from a Country Free from BSE'), ('PGACATEGORYCODE-AP1','196','196 - Canned, Shelf-Stable or Dry or Semi-Moist Pet Food Derived from Ruminant Material from a Country Free from BSE'), ('PGACATEGORYCODE-AP1','197','197 - Dry or Semi-Moist Pet Food Derived from Ruminants from a COO Free from BSE'), ('PGACATEGORYCODE-AP1','198','198 - Canned, Shelf-Stable or Dry or Semi-Moist Pet Food Derived from Swine Material from a Country Free from BSE'), ('PGACATEGORYCODE-AP1','199','199 - Dry or Semi-Moist Pet Food Derived from Swine from a Country Free from BSE'), ('PGACATEGORYCODE-AP1','200','200 - Ruminant Derived Pet Chews or Toys Made from Other Than Bones, Hoofs, Horns, or Rawhide'), ('PGACATEGORYCODE-AP1','201','201 - Swine Derived Pet Chews or Toys Made from Other Than Bones or Hoofs'), ('PGACATEGORYCODE-AP1','202','202 - Pet Chews or Toys Made from Rawhide'), ('PGACATEGORYCODE-AP1','203','203 - Pet Chews or Toys Made from Bones, Hoofs, and Horns'), ('PGACATEGORYCODE-AP1','204','204 - Pet Chews or Toys Made from Bones'), ('PGACATEGORYCODE-AP1','205','205 - Pet Chews or Toys Made from Hoofs or Horns from Ruminants'), ('PGACATEGORYCODE-AP1','206','206 - Pet Chews or Toys Made from Hoofs or Horns from Other than Ruminants'), ('PGACATEGORYCODE-AP1','207','207 - Feed for Livestock, Poultry, and Aquaculture'), ('PGACATEGORYCODE-AP1','208','208 - Feed Containing Fish Meal or Shellfish Meal as an Ingredient from a Country Free from BSE, Except Australia and New Zealand'), ('PGACATEGORYCODE-AP1','209','209 - Feed Containing Fowl or Poultry as an Ingredient from a Country Free from BSE, Except for Australia or New Zealand'), ('PGACATEGORYCODE-AP1','210','210 - Feed Containing Ruminant Material as an Ingredient from a Country Free from BSE, Except for Australia or New Zealand'), ('PGACATEGORYCODE-AP1','211','211 - Feed Containing Swine as an Ingredient from a Country Free from BSE, Except for Australia or New Zealand'), ('PGACATEGORYCODE-AP1','212','212 - Feed Additives and Feed Supplements'), ('PGACATEGORYCODE-AP1','213','213 - Rennets'), ('PGACATEGORYCODE-AP2','230','230 - Insects and mites'), ('PGACATEGORYCODE-AP2','231','231 - Mollusks'), ('PGACATEGORYCODE-AP2','232','232 - Weeds'), ('PGACATEGORYCODE-AP2','233','233 - Plant diseases'), ('PGACATEGORYCODE-AP2','234','234 - Nematodes'), ('PGACATEGORYCODE-AP3','240','240 - Donor Organism defined on courtesy permit to expedite the entry of non-regulated articles that are similar to regulated articles.'), ('PGACATEGORYCODE-AP3','241','241 - Recipient Organism defined on courtesy permit to expedite the entry of non-regulated articles that are similar to regulated articles.'), ('PGACATEGORYCODE-AP3','242','242 - Vector or Vector Agent defined on courtesy permit to expedite the entry of non-regulated articles that are similar to regulated articles.'), ('PGACATEGORYCODE-AP3','243','243 - Regulated Organism or Product defined on courtesy permit to expedite the entry of non-regulated articles that are similar to regulated articles.'), ('PGACATEGORYCODE-AP3','244','244 - List at Constituent names defined on courtesy permit to expedite the entry of non-regulated articles that are similar to regulated articles.'), ('PGACATEGORYCODE-AP3','245','245 - PPQ 526 Orders,'), ('PGACATEGORYCODE-AP3','246','246 - PPQ 526 Families'), ('PGACATEGORYCODE-AP3','247','247 - PPQ 526 Races'), ('PGACATEGORYCODE-AP3','248','248 - PPQ 526 Strains'), ('PGACATEGORYCODE','306','306 - Pharmaceuticals, Nutriceuticals, and Supplements'), ('PGACATEGORYCODE-APH','306','306 - Pharmaceuticals, Nutriceuticals, and Supplements'), ('PGACATEGORYCODE','307','307 - Veterinary Biologics'), ('PGACATEGORYCODE-APH','307','307 - Veterinary Biologics'), ('PGACATEGORYCODE','309','309 - Animal By-Products for technical use'), ('PGACATEGORYCODE-APH','309','309 - Animal By-Products for technical use'), ('PGACATEGORYCODE','319','319 - Other Animal Products and byproducts'), ('PGACATEGORYCODE-APH','319','319 - Other Animal Products and byproducts'), ('PGACATEGORYCODE','604','604 - Bean'), ('PGACATEGORYCODE-APH','604','604 - Bean'), ('PGACATEGORYCODE','605','605 - Bean Pod'), ('PGACATEGORYCODE-APH','605','605 - Bean Pod'), ('PGACATEGORYCODE','606','606 - Blossom'), ('PGACATEGORYCODE-APH','606','606 - Blossom'), ('PGACATEGORYCODE','607','607 - Bulbs'), ('PGACATEGORYCODE-APH','607','607 - Bulbs'), ('PGACATEGORYCODE','608','608 - Calyx'), ('PGACATEGORYCODE-APH','608','608 - Calyx'), ('PGACATEGORYCODE','609','609 - Clove'), ('PGACATEGORYCODE-APH','609','609 - Clove'), ('PGACATEGORYCODE','610','610 - Corm'), ('PGACATEGORYCODE-APH','610','610 - Corm'), ('PGACATEGORYCODE','611','611 - Ear'), ('PGACATEGORYCODE-APH','611','611 - Ear'), ('PGACATEGORYCODE','612','612 - Flower'), ('PGACATEGORYCODE-APH','612','612 - Flower'), ('PGACATEGORYCODE','613','613 - Fruit (includes Vegetable)'), ('PGACATEGORYCODE-APH','613','613 - Fruit (includes Vegetable)'), ('PGACATEGORYCODE','614','614 - Gall'), ('PGACATEGORYCODE-APH','614','614 - Gall'), ('PGACATEGORYCODE','615','615 - Husk'), ('PGACATEGORYCODE-APH','615','615 - Husk'), ('PGACATEGORYCODE','616','616 - Inflorescence'), ('PGACATEGORYCODE-APH','616','616 - Inflorescence'), ('PGACATEGORYCODE','617','617 - Kernel'), ('PGACATEGORYCODE-APH','617','617 - Kernel'), ('PGACATEGORYCODE','618','618 - Leaf'), ('PGACATEGORYCODE-APH','618','618 - Leaf'), ('PGACATEGORYCODE','619','619 - Leaf Bud'), ('PGACATEGORYCODE-APH','619','619 - Leaf Bud'), ('PGACATEGORYCODE','620','620 - Nut'), ('PGACATEGORYCODE-APH','620','620 - Nut'), ('PGACATEGORYCODE','621','621 - Pad'), ('PGACATEGORYCODE-APH','621','621 - Pad'), ('PGACATEGORYCODE','622','622 - Palm Heart'), ('PGACATEGORYCODE-APH','622','622 - Palm Heart'), ('PGACATEGORYCODE','623','623 - Pea'), ('PGACATEGORYCODE-APH','623','623 - Pea'), ('PGACATEGORYCODE','624','624 - Pod'), ('PGACATEGORYCODE-APH','624','624 - Pod'), ('PGACATEGORYCODE','625','625 - Rhizome'), ('PGACATEGORYCODE-APH','625','625 - Rhizome'), ('PGACATEGORYCODE','626','626 - Root'), ('PGACATEGORYCODE-APH','626','626 - Root'), ('PGACATEGORYCODE','627','627 - Seed'), ('PGACATEGORYCODE-APH','627','627 - Seed'), ('PGACATEGORYCODE','628','628 - Shoot'), ('PGACATEGORYCODE-APH','628','628 - Shoot'), ('PGACATEGORYCODE','629','629 - Spear'), ('PGACATEGORYCODE-APH','629','629 - Spear'), ('PGACATEGORYCODE','630','630 - Sprout'), ('PGACATEGORYCODE-APH','630','630 - Sprout'), ('PGACATEGORYCODE','631','631 - Stalk'), ('PGACATEGORYCODE-APH','631','631 - Stalk'), ('PGACATEGORYCODE','632','632 - Stem'), ('PGACATEGORYCODE-APH','632','632 - Stem'), ('PGACATEGORYCODE','633','633 - Tuber'), ('PGACATEGORYCODE-APH','633','633 - Tuber'), ('PGACATEGORYCODE','634','634 - Whole Plant'), ('PGACATEGORYCODE-APH','634','634 - Whole Plant'), ('PGACOMQUALIFIERCODE','A40','A40 - Life Stage'), ('PGACOMQUALIFIERCODE-APH','A40','A40 - Life Stage'), ('PGACOMQUALIFIERCODE-APH','C','C - Animals bred in captivity, parts and derivatives'), ('PGACOMQUALIFIERCODE-APH','D','D - Animals bred in captivity'), ('PGACOMQUALIFIERCODE-APH','F','F - Animals born in captivity'), ('PGACOMQUALIFIERCODE-APH','I','I - Confiscated or seized specimens'), ('PGACOMQUALIFIERCODE-APH','R','R - Ranched'), ('PGACOMQUALIFIERCODE-APH','W','W - Wild'), ('PGACOMCHARCODE-A10-APH','12MO','12MO - 12 Months'), ('PGACOMCHARCODE-A10-APH','13MO','13MO - 13 Months'), ('PGACOMCHARCODE-A10-APH','14MO','14MO - 14 Months'), ('PGACOMCHARCODE-A10-APH','15MO','15MO - 15 Months'), ('PGACOMCHARCODE-A10-APH','16MO','16MO - 16 Months'), ('PGACOMCHARCODE-A10-APH','17MO','17MO - 17 Months'), ('PGACOMCHARCODE-A10-APH','18MO','18MO - 18 Months'), ('PGACOMCHARCODE-A10-APH','19MO','19MO - 19 Months'), ('PGACOMCHARCODE-A10-APH','20MO','20MO - 20 Months'), ('PGACOMCHARCODE-A10-APH','21MO','21MO - 21 Months'), ('PGACOMCHARCODE-A10-APH','22MO','22MO - 22 Months'), ('PGACOMCHARCODE-APH','AGG','AGG - Agglomerated'), ('PGACOMCHARCODE-APH','ALK','ALK - Alkali treated, malted, parboiled, or pearled'), ('PGACOMCHARCODE-APH','ALMO','ALMO - Almond'), ('PGACOMCHARCODE-APH','ALPS','ALPS - Alpaca – Suri (Vicugna pacos)'), ('PGACOMCHARCODE-APH','ALVH','ALVH - Alpaca - Huacaya (Vicugna pacos)'), ('PGACOMCHARCODE-APH','ALVV','ALVV - Vicuña (Vicugna vicugna)'), ('PGACOMCHARCODE-APH','APPA','APPA - Appaloosa'), ('PGACOMCHARCODE-APH','AQG','AQG - Aquatic Plants in growing media'), ('PGACOMCHARCODE-APH','AQP','AQP - Aquatic Plants'), ('PGACOMCHARCODE-APH','AVE','AVE - Aves (Poultry) Products'), ('PGACOMCHARCODE-APH','BAB','BAB - Bundled and/or Baled'), ('PGACOMCHARCODE-APH','BAL','BAL - Baluts'), ('PGACOMCHARCODE-APH','BALS','BALS - Alstroemeria Bouquet '), ('PGACOMCHARCODE-APH','BAY','BAY - Bay'), ('PGACOMCHARCODE-APH','BBAN','BBAN - Anatolian (Buffalo)'), ('PGACOMCHARCODE-APH','BBAU','BBAU - Australian (Buffalo)'), ('PGACOMCHARCODE-APH','BBEB','BBEB - European Bison (Buffalo)'), ('PGACOMCHARCODE-APH','BBEG','BBEG - Egyptian (Buffalo)'), ('PGACOMCHARCODE-APH','BBKU','BBKU - Kundi (Buffalo)'), ('PGACOMCHARCODE-APH','BBMA','BBMA - Malaysian (Buffalo)'), ('PGACOMCHARCODE-APH','BBMU','BBMU - Murrah (Buffalo)'), ('PGACOMCHARCODE-APH','BBNI','BBNI - Nili-Ravi (Buffalo)'), ('PGACOMCHARCODE-APH','BBPH','BBPH - Pandharpuri (Buffalo)'), ('PGACOMCHARCODE-APH','BCAR','BCAR - Carnations Bouquet'), ('PGACOMCHARCODE-APH','BEIG','BEIG - Beige'), ('PGACOMCHARCODE-APH','BLAC','BLAC - Black'), ('PGACOMCHARCODE-APH','BLE','BLE - Bleached'), ('PGACOMCHARCODE-APH','BLIL','BLIL - Lily Bouquet'), ('PGACOMCHARCODE-APH','BLON','BLON - Blond'), ('PGACOMCHARCODE-APH','BLUE','BLUE - Blue'), ('PGACOMCHARCODE-APH','BLWH','BLWH - Black and White'), ('PGACOMCHARCODE-APH','BMCA','BMCA - Mini Carnations Bouquet'), ('PGACOMCHARCODE-APH','BMIX','BMIX - Mixed Bouquet'), ('PGACOMCHARCODE-APH','BOI','BOI - Boiled'), ('PGACOMCHARCODE-APH','BONE','BONE - Bone'), ('PGACOMCHARCODE-APH','BOV','BOV - Bovine (Beef) Products'), ('PGACOMCHARCODE-APH','BPOM','BPOM - Pompon Bouquet'), ('PGACOMCHARCODE-APH','BRO','BRO - Broth'), ('PGACOMCHARCODE-APH','BROS','BROS - Rose Bouquet'), ('PGACOMCHARCODE-APH','BROW','BROW - Brown'), ('PGACOMCHARCODE-APH','BRT','BRT - Bare Root'), ('PGACOMCHARCODE-APH','BTRP','BTRP - Tropical Flower Bouquet'), ('PGACOMCHARCODE-APH','BUCK','BUCK - Buckskin'), ('PGACOMCHARCODE-APH','BUL','BUL - Bulk'), ('PGACOMCHARCODE-APH','C1','C1 - CITES I'), ('PGACOMCHARCODE-APH','C2','C2 - CITES II'), ('PGACOMCHARCODE-APH','C3','C3 - CITES III'), ('PGACOMCHARCODE-APH','CAAA','CAAA - Aulie-Ata (Cattle)'), ('PGACOMCHARCODE-APH','CAAB','CAAB - Anatolian Black (Cattle)'), ('PGACOMCHARCODE-APH','CAAC','CAAC - Argentine Criollo (Cattle)'), ('PGACOMCHARCODE-APH','CAAD','CAAD - Australian Braford (Cattle)'), ('PGACOMCHARCODE-APH','CAAE','CAAE - Ankole (Cattle)'), ('PGACOMCHARCODE-APH','CAAF','CAAF - Afrikaner (Cattle)'), ('PGACOMCHARCODE-APH','CAAG','CAAG - Andalusian Grey (Cattle)'), ('PGACOMCHARCODE-APH','CAAH','CAAH - Australian Friesian Sahiwal (Cattle)'), ('PGACOMCHARCODE-APH','CAAI','CAAI - Australian Lowline (Cattle)'), ('PGACOMCHARCODE-APH','CAAJ','CAAJ - Alentejana (Cattle)'), ('PGACOMCHARCODE-APH','CAAK','CAAK - Andalusian Black (Cattle)'), ('PGACOMCHARCODE-APH','CAAL','CAAL - Albères (Cattle)'), ('PGACOMCHARCODE-APH','CAAM','CAAM - American (Cattle)'), ('PGACOMCHARCODE-APH','CAAN','CAAN - Black Angus (Cattle)'), ('PGACOMCHARCODE-APH','CAAO','CAAO - Allmogekor (Cattle)'), ('PGACOMCHARCODE-APH','CAAQ','CAAQ - American White Park (Cattle)'), ('PGACOMCHARCODE-APH','CAAS','CAAS - Asturian Mountain (Cattle)'), ('PGACOMCHARCODE-APH','CAAT','CAAT - Amrit Mahal (Cattle)'), ('PGACOMCHARCODE-APH','CAAU','CAAU - Aubrac (Cattle)'), ('PGACOMCHARCODE-APH','CAAV','CAAV - Asturian Valley (Cattle)'), ('PGACOMCHARCODE-APH','CAAW','CAAW - Ankole-Watusi v'), ('PGACOMCHARCODE-APH','CAAX','CAAX - Amerifax (Cattle)'), ('PGACOMCHARCODE-APH','CAAY','CAAY - Ayrshire (Cattle)'), ('PGACOMCHARCODE-APH','CAAZ','CAAZ - Australian Milking Zebu (Cattle)'), ('PGACOMCHARCODE-APH','CAB','CAB - Blacksided Trondheim and Norland (Cattle) '), ('PGACOMCHARCODE-APH','CABA','CABA - Belarus Red (Cattle)'), ('PGACOMCHARCODE-APH','CABB','CABB - Belgian Blue (Cattle)'), ('PGACOMCHARCODE-APH','CABC','CABC - Bachaur (Cattle)'), ('PGACOMCHARCODE-APH','CABD','CABD - Bazadais (Cattle)'), ('PGACOMCHARCODE-APH','CABE','CABE - Beefalo (Cattle)'), ('PGACOMCHARCODE-APH','CABF','CABF - Braford (Cattle)'), ('PGACOMCHARCODE-APH','CABG','CABG - Belted Galloway (Cattle)'), ('PGACOMCHARCODE-APH','CABH','CABH - Brahmousin (Cattle)'), ('PGACOMCHARCODE-APH','CABI','CABI - Baladi (Cattle)'), ('PGACOMCHARCODE-APH','CABJ','CABJ - Belgian Red (Cattle)'), ('PGACOMCHARCODE-APH','CABK','CABK - Barka (Cattle)'), ('PGACOMCHARCODE-APH','CABL','CABL - Belmont Adaptaur (Cattle)'), ('PGACOMCHARCODE-APH','CABM','CABM - Beefmaker (Cattle)'), ('PGACOMCHARCODE-APH','CABN','CABN - Brangus (Cattle) '), ('PGACOMCHARCODE-APH','CABO','CABO - Bonsmara (Cattle)'), ('PGACOMCHARCODE-APH','CABP','CABP - Belmont Red (Cattle)'), ('PGACOMCHARCODE-APH','CABQ','CABQ - Blonde d ’Aquitaine (Cattle)'), ('PGACOMCHARCODE-APH','CABR','CABR - Brahman (Cattle)'), ('PGACOMCHARCODE-APH','CABS','CABS - Brown Swiss (Cattle)'), ('PGACOMCHARCODE-APH','CABT','CABT - Bengali (Cattle)'), ('PGACOMCHARCODE-APH','CABU','CABU - Berrendas (Cattle)'), ('PGACOMCHARCODE-APH','CABV','CABV - Bhagnari (Cattle)'), ('PGACOMCHARCODE-APH','CABW','CABW - British White (Cattle)'), ('PGACOMCHARCODE-APH','CABX','CABX - Beefmaster (Cattle)'), ('PGACOMCHARCODE-APH','CABY','CABY - Baltata Romaneasca (Cattle)'), ('PGACOMCHARCODE-APH','CABZ','CABZ - Barzona (Cattle)'), ('PGACOMCHARCODE-APH','CACA','CACA - Canadienne (Cattle)'), ('PGACOMCHARCODE-APH','CACB','CACB - Charbray (Cattle)'), ('PGACOMCHARCODE-APH','CACC','CACC - Chinese Black-and-White (Cattle)'), ('PGACOMCHARCODE-APH','CACD','CACD - Cholistani (Cattle)'), ('PGACOMCHARCODE-APH','CACE','CACE - Costeño con Cuernos (Cattle)'), ('PGACOMCHARCODE-APH','CACH','CACH - Charolais (Cattle)'), ('PGACOMCHARCODE-APH','CACI','CACI - Chianina (Cattle)'), ('PGACOMCHARCODE-APH','CACM','CACM - Canchim (Cattle)'), ('PGACOMCHARCODE-APH','CACP','CACP - Chinampo (Cattle)'), ('PGACOMCHARCODE-APH','CACR','CACR - Corriente (Cattle)'), ('PGACOMCHARCODE-APH','CACS','CACS - Canary Island (Cattle)'), ('PGACOMCHARCODE-APH','CADA','CADA - Damascus (Cattle)'), ('PGACOMCHARCODE-APH','CADB','CADB - Dutch Belted (Cattle)'), ('PGACOMCHARCODE-APH','CADE','CADE - Deoni (Cattle)'), ('PGACOMCHARCODE-APH','CADF','CADF - Dutch Friesian (Cattle)'), ('PGACOMCHARCODE-APH','CADG','CADG - Dangi (Cattle)'), ('PGACOMCHARCODE-APH','CADH','CADH - Dhanni(Cattle)'), ('PGACOMCHARCODE-APH','CADJ','CADJ - Danish Jersey (Cattle)'), ('PGACOMCHARCODE-APH','CADL','CADL - Dajal (Cattle)'), ('PGACOMCHARCODE-APH','CADM','CADM - Droughtmaster (Cattle)'), ('PGACOMCHARCODE-APH','CADO','CADO - Dølafe(Cattle)'), ('PGACOMCHARCODE-APH','CADR','CADR - Danish Red (Cattle)'), ('PGACOMCHARCODE-APH','CADT','CADT - Damietta(Cattle)'), ('PGACOMCHARCODE-APH','CADU','CADU - Dulong (Cattle)'), ('PGACOMCHARCODE-APH','CADV','CADV - Devon (Cattle)'), ('PGACOMCHARCODE-APH','CADX','CADX - Dexter (Cattle)'), ('PGACOMCHARCODE-APH','CAEA','CAEA - East Anatolian Red (Cattle)'), ('PGACOMCHARCODE-APH','CAEE','CAEE - Greek Steppe (Cattle)'), ('PGACOMCHARCODE-APH','CAEL','CAEL - English Longhorn (Cattle)'), ('PGACOMCHARCODE-APH','CAER','CAER - Estonian Red (Cattle)'), ('PGACOMCHARCODE-APH','CAEV','CAEV - Evolène(Cattle)'), ('PGACOMCHARCODE-APH','CAFB','CAFB - Fighting Bull (Cattle)'), ('PGACOMCHARCODE-APH','CAFC','CAFC - Florida Cracker/Pineywoods (Cattle)'), ('PGACOMCHARCODE-APH','CAFI','CAFI - Finnish (Cattle)'), ('PGACOMCHARCODE-APH','CAFJ','CAFJ - Fjall(Cattle)'), ('PGACOMCHARCODE-APH','CAFL','CAFL - Fleckvieh (Cattle)'), ('PGACOMCHARCODE-APH','CAGA','CAGA - Galloway (Cattle)'), ('PGACOMCHARCODE-APH','CAGB','CAGB - Galician Blond (Cattle)'), ('PGACOMCHARCODE-APH','CAGC','CAGC - Gloucester (Cattle)'), ('PGACOMCHARCODE-APH','CAGE','CAGE - Gelbvieh (Cattle)'), ('PGACOMCHARCODE-APH','CAGG','CAGG - German Angus (Cattle)'), ('PGACOMCHARCODE-APH','CAGI','CAGI - Gir (Cattle)'), ('PGACOMCHARCODE-APH','CAGK','CAGK - Greek Shorthorn(Cattle)'), ('PGACOMCHARCODE-APH','CAGL','CAGL - Glan (Cattle)'), ('PGACOMCHARCODE-APH','CAGN','CAGN - Angeln (Cattle)'), ('PGACOMCHARCODE-APH','CAGO','CAGO - Gaolao (Cattle)'), ('PGACOMCHARCODE-APH','CAGP','CAGP - German Red Pied(Cattle)'), ('PGACOMCHARCODE-APH','CAGR','CAGR - Groningen (Cattle)'), ('PGACOMCHARCODE-APH','CAGS','CAGS - Gascon (Cattle)'), ('PGACOMCHARCODE-APH','CAGU','CAGU - Guernsey (Cattle)'), ('PGACOMCHARCODE-APH','CAGY','CAGY - Gelbray (Cattle)'), ('PGACOMCHARCODE-APH','CAGZ','CAGZ - Guzerat(Cattle)'), ('PGACOMCHARCODE-APH','CAHA','CAHA - Holando-Argentino (Cattle)'), ('PGACOMCHARCODE-APH','CAHC','CAHC - Hays Converter (Cattle)'), ('PGACOMCHARCODE-APH','CAHE','CAHE - Herens (Cattle)'), ('PGACOMCHARCODE-APH','CAHF','CAHF - Hereford (Cattle)'), ('PGACOMCHARCODE-APH','CAHG','CAHG - Hungarian Grey(Cattle)'), ('PGACOMCHARCODE-APH','CAHI','CAHI - Highland (Cattle)'), ('PGACOMCHARCODE-APH','CAHK','CAHK - Heck (Cattle)'), ('PGACOMCHARCODE-APH','CAHL','CAHL - Hallikar (Cattle)'), ('PGACOMCHARCODE-APH','CAHN','CAHN - Hartón (Cattle)'), ('PGACOMCHARCODE-APH','CAHO','CAHO - Holstein (Cattle)'), ('PGACOMCHARCODE-APH','CAHR','CAHR - Hariana (Cattle)'), ('PGACOMCHARCODE-APH','CAHW','CAHW - Hinterwald (Cattle)'), ('PGACOMCHARCODE-APH','CAHZ','CAHZ - Horro (Cattle)'), ('PGACOMCHARCODE-APH','CAIB','CAIB - Indo-Brazilian (Cattle)'), ('PGACOMCHARCODE-APH','CAIC','CAIC - Icelandic (Cattle)'), ('PGACOMCHARCODE-APH','CAIH','CAIH - Israeli Holstein (Cattle)'), ('PGACOMCHARCODE-APH','CAIM','CAIM - Irish Moiled (Cattle)'), ('PGACOMCHARCODE-APH','CAIR','CAIR - Israeli Red (Cattle)'), ('PGACOMCHARCODE-APH','CAIS','CAIS - Istoben (Cattle)'), ('PGACOMCHARCODE-APH','CAIW','CAIW - Illawarra (Cattle)'), ('PGACOMCHARCODE-APH','CAJA','CAJA - Jaulan (Cattle)'), ('PGACOMCHARCODE-APH','CAJB','CAJB - Jamaica Black(Cattle)'), ('PGACOMCHARCODE-APH','CAJE','CAJE - Jersey (Cattle)'), ('PGACOMCHARCODE-APH','CAJH','CAJH - Jamaica Hope(Cattle)'), ('PGACOMCHARCODE-APH','CAJR','CAJR - Jamaica Red(Cattle)'), ('PGACOMCHARCODE-APH','CAKD','CAKD - Kurdi (Cattle)'), ('PGACOMCHARCODE-APH','CAKE','CAKE - Kerry (Cattle)'), ('PGACOMCHARCODE-APH','CAKF','CAKF - Karan Fries(Cattle)'), ('PGACOMCHARCODE-APH','CAKH','CAKH - Kherigarh(Cattle)'), ('PGACOMCHARCODE-APH','CAKI','CAKI - Khillari (Cattle)'), ('PGACOMCHARCODE-APH','CAKK','CAKK - Kankrej(Cattle)'), ('PGACOMCHARCODE-APH','CAKL','CAKL - Kilis (Cattle)'), ('PGACOMCHARCODE-APH','CAKM','CAKM - Kholmogory (Cattle)'), ('PGACOMCHARCODE-APH','CAKS','CAKS - Karan Swiss(Cattle)'), ('PGACOMCHARCODE-APH','CAKU','CAKU - Kuri(Cattle)'), ('PGACOMCHARCODE-APH','CAKV','CAKV - Krishna Valley(Cattle)'), ('PGACOMCHARCODE-APH','CAKW','CAKW - Kenwariya (Cattle)'), ('PGACOMCHARCODE-APH','CAKY','CAKY - Kangayam(Cattle)'), ('PGACOMCHARCODE-APH','CAKZ','CAKZ - Kazakh(Cattle)'), ('PGACOMCHARCODE-APH','CALA','CALA - Romagnola (Cattle)'), ('PGACOMCHARCODE-APH','CALD','CALD - Lourdais (Cattle)'), ('PGACOMCHARCODE-APH','CALG','CALG - Luing (Cattle)'), ('PGACOMCHARCODE-APH','CALH','CALH - Lohani (Cattle)'), ('PGACOMCHARCODE-APH','CALI','CALI - Limousin (Cattle)'), ('PGACOMCHARCODE-APH','CALP','CALP - Limpurger (Cattle)'), ('PGACOMCHARCODE-APH','CALR','CALR - Lincoln Red (Cattle)'), ('PGACOMCHARCODE-APH','CAM','CAM - Camelid (Camel) Products'), ('PGACOMCHARCODE-APH','CAMA','CAMA - Maine-Anjou (Cattle)'), ('PGACOMCHARCODE-APH','CAMB','CAMB - Montbéliarde (Cattle)'), ('PGACOMCHARCODE-APH','CAMC','CAMC - Marchigiana (Cattle)'), ('PGACOMCHARCODE-APH','CAMD','CAMD - Milking Devon(Cattle)'), ('PGACOMCHARCODE-APH','CAME','CAME - Mirandesa (Cattle)'), ('PGACOMCHARCODE-APH','CAMF','CAMF - Morucha (Cattle)'), ('PGACOMCHARCODE-APH','CAMG','CAMG - Murray Grey (Cattle)'), ('PGACOMCHARCODE-APH','CAMH','CAMH - Mashona (Cattle)'), ('PGACOMCHARCODE-APH','CAMI','CAMI - Masai(Cattle)'), ('PGACOMCHARCODE-APH','CAMJ','CAMJ - Murboden (Cattle)'), ('PGACOMCHARCODE-APH','CAML','CAML - Mandalong (Cattle)'), ('PGACOMCHARCODE-APH','CAMM','CAMM - Maremmana (Cattle)'), ('PGACOMCHARCODE-APH','CAMN','CAMN - Mongolian (Cattle)'), ('PGACOMCHARCODE-APH','CAMO','CAMO - Modicana (Cattle)'), ('PGACOMCHARCODE-APH','CAMR','CAMR - Meuse-Rhine-Yssel (Cattle)'), ('PGACOMCHARCODE-APH','CAMS','CAMS - Milking Shorthorns (Cattle) '), ('PGACOMCHARCODE-APH','CAMU','CAMU - Maure (Cattle)'), ('PGACOMCHARCODE-APH','CAMV','CAMV - Malvi (Cattle)'), ('PGACOMCHARCODE-APH','CAMW','CAMW - Mewati (Cattle)'), ('PGACOMCHARCODE-APH','CAMZ','CAMZ - Mazandarani (Cattle)'), ('PGACOMCHARCODE-APH','CAND','CAND - Ndama (Cattle)'), ('PGACOMCHARCODE-APH','CANG','CANG - Nagori (Cattle)'), ('PGACOMCHARCODE-APH','CANI','CANI - Nguni(Cattle)'), ('PGACOMCHARCODE-APH','CANL','CANL - Nelore (Cattle)'), ('PGACOMCHARCODE-APH','CANM','CANM - Nimari (Cattle)'), ('PGACOMCHARCODE-APH','CANO','CANO - Normande (Cattle)'), ('PGACOMCHARCODE-APH','CANR','CANR - Norwegian Red (Cattle)'), ('PGACOMCHARCODE-APH','CANY','CANY - Nanyang (Cattle)'), ('PGACOMCHARCODE-APH','CAOB','CAOB - Orma Boran(Cattle)'), ('PGACOMCHARCODE-APH','CAON','CAON - Ongole(Cattle)'), ('PGACOMCHARCODE-APH','CAOR','CAOR - Oropa (Cattle)'), ('PGACOMCHARCODE-APH','CAOT','CAOT - Other Breed (Cattle)'), ('PGACOMCHARCODE-APH','CAOV','CAOV - Ovambo (Cattle)'), ('PGACOMCHARCODE-APH','CAP','CAP - Capra (Goat) Products'), ('PGACOMCHARCODE-APH','CAPA','CAPA - Parthenais (Cattle)'), ('PGACOMCHARCODE-APH','CAPH','CAPH - Polled Hereford (Cattle)'), ('PGACOMCHARCODE-APH','CAPI','CAPI - Piedmontese (Cattle)'), ('PGACOMCHARCODE-APH','CAPN','CAPN - Philippine Native (Cattle)'), ('PGACOMCHARCODE-APH','CAPO','CAPO - Ponwar (Cattle)'), ('PGACOMCHARCODE-APH','CAPR','CAPR - Polish Red (Cattle)'), ('PGACOMCHARCODE-APH','CAPW','CAPW - Pineywoods (Cattle)'), ('PGACOMCHARCODE-APH','CAPZ','CAPZ - Pinzgauer (Cattle)'), ('PGACOMCHARCODE-APH','CAQC','CAQC - Qinchuan (Cattle)'), ('PGACOMCHARCODE-APH','CARA','CARA - Randall (Cattle)'), ('PGACOMCHARCODE-APH','CARB','CARB - Red Brangus (Cattle)'), ('PGACOMCHARCODE-APH','CARD','CARD - Red Steppe(Cattle)'), ('PGACOMCHARCODE-APH','CARE','CARE - Reggiana (Cattle)'), ('PGACOMCHARCODE-APH','CARF','CARF - Red Pied Friesian (Cattle)'), ('PGACOMCHARCODE-APH','CARG','CARG - Red Angus (Cattle)'), ('PGACOMCHARCODE-APH','CARH','CARH - Rath (Cattle)'), ('PGACOMCHARCODE-APH','CARI','CARI - Rathi (Cattle)'), ('PGACOMCHARCODE-APH','CARJ','CARJ - Rojhan (Cattle)'), ('PGACOMCHARCODE-APH','CARK','CARK - Russian Black Pied(Cattle)'), ('PGACOMCHARCODE-APH','CARM','CARM - Romosinuano (Cattle)'), ('PGACOMCHARCODE-APH','CARN','CARN - Rätien Gray (Cattle)'), ('PGACOMCHARCODE-APH','CARO','CARO - Red Polled Østland (Cattle)'), ('PGACOMCHARCODE-APH','CARP','CARP - Red Poll (Cattle)'), ('PGACOMCHARCODE-APH','CARS','CARS - Red Sindhi(Cattle)'), ('PGACOMCHARCODE-APH','CART','CART - Retinta (Cattle)'), ('PGACOMCHARCODE-APH','CARX','CARX - RX3 (Cattle)'), ('PGACOMCHARCODE-APH','CASA','CASA - Salers (Cattle)'), ('PGACOMCHARCODE-APH','CASB','CASB - Simbrah (Cattle)'), ('PGACOMCHARCODE-APH','CASC','CASC - Santa Cruz (Cattle)'), ('PGACOMCHARCODE-APH','CASD','CASD - South Devon (Cattle)'), ('PGACOMCHARCODE-APH','CASE','CASE - Sanhe (Cattle)'), ('PGACOMCHARCODE-APH','CASF','CASF - Swedish Friesian(Cattle)'), ('PGACOMCHARCODE-APH','CASG','CASG - Santa Gertrudis (Cattle)'), ('PGACOMCHARCODE-APH','CASH','CASH - Shorthorn or Durham (Cattle)'), ('PGACOMCHARCODE-APH','CASI','CASI - Sahiwal (Cattle)'), ('PGACOMCHARCODE-APH','CASJ','CASJ - Sharabi (Cattle)'), ('PGACOMCHARCODE-APH','CASK','CASK - Slovenian Cika (Cattle)'), ('PGACOMCHARCODE-APH','CASL','CASL - Salorn (Cattle)'), ('PGACOMCHARCODE-APH','CASM','CASM - Simmental (Cattle)'), ('PGACOMCHARCODE-APH','CASN','CASN - San Martinero(Cattle)'), ('PGACOMCHARCODE-APH','CASO','CASO - Scottish Highland (Cattle)'), ('PGACOMCHARCODE-APH','CASP','CASP - Senepol(Cattle)'), ('PGACOMCHARCODE-APH','CASQ','CASQ - Siri (Cattle)'), ('PGACOMCHARCODE-APH','CASR','CASR - Swedish Red Polled(Cattle)'), ('PGACOMCHARCODE-APH','CASS','CASS - Sarabi (Cattle)'), ('PGACOMCHARCODE-APH','CAST','CAST - Shetland (Cattle)'), ('PGACOMCHARCODE-APH','CASU','CASU - Sussex(Cattle)'), ('PGACOMCHARCODE-APH','CASV','CASV - Swiss Braunvieh (Cattle)'), ('PGACOMCHARCODE-APH','CASW','CASW - Swedish Red-and-White (Cattle)'), ('PGACOMCHARCODE-APH','CASY','CASY - Siboney (Cattle)'), ('PGACOMCHARCODE-APH','CATA','CATA - Tarentaise (Cattle)'), ('PGACOMCHARCODE-APH','CATG','CATG - Turkish Grey Steppe(Cattle)'), ('PGACOMCHARCODE-APH','CATH','CATH - Tharparkar (Cattle)'), ('PGACOMCHARCODE-APH','CATL','CATL - Texas Longhorn (Cattle)'), ('PGACOMCHARCODE-APH','CATS','CATS - Tswana (Cattle)'), ('PGACOMCHARCODE-APH','CATU','CATU - Tuli (Cattle)'), ('PGACOMCHARCODE-APH','CATX','CATX - Texon (Cattle)'), ('PGACOMCHARCODE-APH','CAUA','CAUA - Lithuanian Red (Cattle)'), ('PGACOMCHARCODE-APH','CAUB','CAUB - Ukrainian Beef (Cattle)'), ('PGACOMCHARCODE-APH','CAUG','CAUG - Ukrainian Grey(Cattle)'), ('PGACOMCHARCODE-APH','CAUM','CAUM - Umblachery (Cattle)'), ('PGACOMCHARCODE-APH','CAUP','CAUP - Ural Black Pied(Cattle)'), ('PGACOMCHARCODE-APH','CAUW','CAUW - Ukrainian Whitehead(Cattle)'), ('PGACOMCHARCODE-APH','CAVF','CAVF - Vestland Fjord(Cattle)'), ('PGACOMCHARCODE-APH','CAVO','CAVO - Vosges (Cattle)'), ('PGACOMCHARCODE-APH','CAVR','CAVR - Vestland Red Polled(Cattle)'), ('PGACOMCHARCODE-APH','CAWA','CAWA - Watusi or African Ankole-Watusi (Cattle)'), ('PGACOMCHARCODE-APH','CAWB','CAWB - Welsh Black (Cattle)'), ('PGACOMCHARCODE-APH','CAWC','CAWC - White Cáceres (Cattle)'), ('PGACOMCHARCODE-APH','CAWG','CAWG - Wagyu (Cattle)'), ('PGACOMCHARCODE-APH','CAWP','CAWP - White Park (Cattle)'), ('PGACOMCHARCODE-APH','CAXB','CAXB - Xinjiang Brown (Cattle)'), ('PGACOMCHARCODE-APH','CAYA','CAYA - Yanbian (Cattle)'), ('PGACOMCHARCODE-APH','CAZA','CAZA - Boran (Cattle)'), ('PGACOMCHARCODE-APH','CAZB','CAZB - Zebu (Cattle)'), ('PGACOMCHARCODE-APH','CAZC','CAZC - Blanca Cacereña (Cattle)'), ('PGACOMCHARCODE-APH','CAZD','CAZD - Bordelais (Cattle)'), ('PGACOMCHARCODE-APH','CAZE','CAZE - Busa (Cattle)'), ('PGACOMCHARCODE-APH','CAZF','CAZF - Cachena (Cattle)'), ('PGACOMCHARCODE-APH','CAZO','CAZO - Blanco Orejinegro (Cattle)'), ('PGACOMCHARCODE-APH','CER','CER - Cervid (Deer, Elk, and Moose) Products'), ('PGACOMCHARCODE-APH','CHAR','CHAR - Charcoal'), ('PGACOMCHARCODE-APH','CHES','CHES - Chestnut'), ('PGACOMCHARCODE-APH','CHOC','CHOC - Chocolate'), ('PGACOMCHARCODE-APH','CLU','CLU - Cluster'), ('PGACOMCHARCODE-APH','CMAB','CMAB - Alxa Bactrian (Camels)'), ('PGACOMCHARCODE-APH','CMAD','CMAD - Afar Dromedary (Camels)'), ('PGACOMCHARCODE-APH','CMKB','CMKB - Kalmyk Bactrian (Camels)'), ('PGACOMCHARCODE-APH','CMOT','CMOT - Other Breed (Camel)'), ('PGACOMCHARCODE-APH','CMSB','CMSB - Sonid Bactrian (Camels)'), ('PGACOMCHARCODE-APH','CMSD','CMSD - Somali Dromedary (Camels)'), ('PGACOMCHARCODE-APH','CMVD','CMVD - Arvana Dromedary (Camels)'), ('PGACOMCHARCODE-APH','COM','COM - Compressed / Compounded'), ('PGACOMCHARCODE-APH','COO','COO - Cooked'), ('PGACOMCHARCODE-APH','COPP','COPP - Copper'), ('PGACOMCHARCODE-APH','CREA','CREA - Cream'), ('PGACOMCHARCODE-APH','CUB','CUB - Cubes'), ('PGACOMCHARCODE-APH','CUR','CUR - Cured'), ('PGACOMCHARCODE-APH','CYAN','CYAN - Cyan'), ('PGACOMCHARCODE-APH','DER','DER - Derivative'), ('PGACOMCHARCODE-APH','DGAA','DGAA - Akita (Dog)'), ('PGACOMCHARCODE-APH','DGAB','DGAB - American Bulldog (Dog)'), ('PGACOMCHARCODE-APH','DGAC','DGAC - Australian Cattle (Dog)'), ('PGACOMCHARCODE-APH','DGAD','DGAD - Australian Shepherd (Dog)'), ('PGACOMCHARCODE-APH','DGAE','DGAE - American Eskimo (Dog)'), ('PGACOMCHARCODE-APH','DGAF','DGAF - American Foxhound (Dog)'), ('PGACOMCHARCODE-APH','DGAH','DGAH - Afghan Hound (Dog)'), ('PGACOMCHARCODE-APH','DGAK','DGAK - Alaskan Klee Kai (Dog)'), ('PGACOMCHARCODE-APH','DGAL','DGAL - Alaskan Husky (Dog)'), ('PGACOMCHARCODE-APH','DGAM','DGAM - Alaskan Malamute (Dog)'), ('PGACOMCHARCODE-APH','DGAN','DGAN - Anatolian Shepherd (Dog)'), ('PGACOMCHARCODE-APH','DGAP','DGAP - American Pit Bull Terrier (Dog)'), ('PGACOMCHARCODE-APH','DGAR','DGAR - Affenpinscher (Dog)'), ('PGACOMCHARCODE-APH','DGAS','DGAS - American Staffordshire Terrier (Dog)'), ('PGACOMCHARCODE-APH','DGAT','DGAT - Airedale Terrier (Dog) '), ('PGACOMCHARCODE-APH','DGAU','DGAU - Ainu (Dog)'), ('PGACOMCHARCODE-APH','DGAW','DGAW - American Water Spaniel (Dog)'), ('PGACOMCHARCODE-APH','DGBA','DGBA - Bearded Collie (Dog)'), ('PGACOMCHARCODE-APH','DGBC','DGBC - Border Collie (Dog)'), ('PGACOMCHARCODE-APH','DGBD','DGBD - Bulldog (Dog)'), ('PGACOMCHARCODE-APH','DGBE','DGBE - Beagle (Dog)'), ('PGACOMCHARCODE-APH','DGBF','DGBF - Bichon Frisé (Dog)'), ('PGACOMCHARCODE-APH','DGBG','DGBG - Bergamasco (Dog)'), ('PGACOMCHARCODE-APH','DGBH','DGBH - Basset Hound (Dog)'), ('PGACOMCHARCODE-APH','DGBI','DGBI - Bernese Mountain (Dog)'), ('PGACOMCHARCODE-APH','DGBJ','DGBJ - Basenji (Dog)'), ('PGACOMCHARCODE-APH','DGBK','DGBK - Black and Tan Coonhound (Dog)'), ('PGACOMCHARCODE-APH','DGBL','DGBL - Bull Terrier (Dog)'), ('PGACOMCHARCODE-APH','DGBM','DGBM - Belgian Malinois (Dog)'), ('PGACOMCHARCODE-APH','DGBN','DGBN - Beauceron (Dog)'), ('PGACOMCHARCODE-APH','DGBO','DGBO - Bloodhound (Dog)'), ('PGACOMCHARCODE-APH','DGBP','DGBP - Belgian Sheepdog (Dog)'), ('PGACOMCHARCODE-APH','DGBQ','DGBQ - Bullmastiff (Dog)'), ('PGACOMCHARCODE-APH','DGBR','DGBR - Black Russian Terrier (Dog)'), ('PGACOMCHARCODE-APH','DGBS','DGBS - Brussels Griffon (Dog)'), ('PGACOMCHARCODE-APH','DGBT','DGBT - Bedlington Terrier (Dog)'), ('PGACOMCHARCODE-APH','DGBU','DGBU - Bouvier des Flandres (Dog)'), ('PGACOMCHARCODE-APH','DGBV','DGBV - Belgian Tervuren (Dog)'), ('PGACOMCHARCODE-APH','DGBW','DGBW - Brittany (Dog)'), ('PGACOMCHARCODE-APH','DGBX','DGBX - Boxer (Dog)'), ('PGACOMCHARCODE-APH','DGBY','DGBY - Border Terrier (Dog)'), ('PGACOMCHARCODE-APH','DGBZ','DGBZ - Borzoi (Dog)'), ('PGACOMCHARCODE-APH','DGCA','DGCA - Canaan (Dog)'), ('PGACOMCHARCODE-APH','DGCB','DGCB - Chesapeake Bay Retriever (Dog)'), ('PGACOMCHARCODE-APH','DGCC','DGCC - Cane Corso (Dog)'), ('PGACOMCHARCODE-APH','DGCE','DGCE - Cesky Terrier (Dog)'), ('PGACOMCHARCODE-APH','DGCH','DGCH - Chihuahua (Dog)'), ('PGACOMCHARCODE-APH','DGCI','DGCI - Collie (Dog)'), ('PGACOMCHARCODE-APH','DGCK','DGCK - Cavalier King Charles Spaniel (Dog)'), ('PGACOMCHARCODE-APH','DGCL','DGCL - Catahoula Leopard (Dog)'), ('PGACOMCHARCODE-APH','DGCM','DGCM - Clumber Spaniel (Dog)'), ('PGACOMCHARCODE-APH','DGCN','DGCN - Chinese Crested (Dog)'), ('PGACOMCHARCODE-APH','DGCO','DGCO - Chinook (Dog)'), ('PGACOMCHARCODE-APH','DGCP','DGCP - Chinese Shar-Pei (Dog)'), ('PGACOMCHARCODE-APH','DGCS','DGCS - Cocker Spaniel (Dog)'), ('PGACOMCHARCODE-APH','DGCT','DGCT - Cairn Terrier (Dog)'), ('PGACOMCHARCODE-APH','DGCU','DGCU - Curly-Coated Retriever (Dog)'), ('PGACOMCHARCODE-APH','DGCW','DGCW - Cardigan Welsh Corgi (Dog)'), ('PGACOMCHARCODE-APH','DGDA','DGDA - Dachshund (Dog)'), ('PGACOMCHARCODE-APH','DGDD','DGDD - Dandie Dinmont Terrier (Dog)'), ('PGACOMCHARCODE-APH','DGDI','DGDI - Dingo (Dog)'), ('PGACOMCHARCODE-APH','DGDL','DGDL - Dalmatian (Dog)'), ('PGACOMCHARCODE-APH','DGDP','DGDP - Doberman Pinscher (Dog)'), ('PGACOMCHARCODE-APH','DGEC','DGEC - English Cocker Spaniel (Dog)'), ('PGACOMCHARCODE-APH','DGEF','DGEF - English Foxhound (Dog)'), ('PGACOMCHARCODE-APH','DGEM','DGEM - Estrela Mountain (Dog)'), ('PGACOMCHARCODE-APH','DGEN','DGEN - English Springer Spaniel (Dog)'), ('PGACOMCHARCODE-APH','DGES','DGES - English Setter (Dog)'), ('PGACOMCHARCODE-APH','DGET','DGET - English Toy Spaniel (Dog)'), ('PGACOMCHARCODE-APH','DGFB','DGFB - French Bulldog (Dog)'), ('PGACOMCHARCODE-APH','DGFC','DGFC - Flat-Coated Retriever (Dog)'), ('PGACOMCHARCODE-APH','DGFF','DGFF - Staffordshire Bull Terrier (Dog)'), ('PGACOMCHARCODE-APH','DGFS','DGFS - Field Spaniel (Dog)'), ('PGACOMCHARCODE-APH','DGFZ','DGFZ - Finnish Spitz (Dog)'), ('PGACOMCHARCODE-APH','DGGA','DGGA - Great Pyrenees (Dog)'), ('PGACOMCHARCODE-APH','DGGD','DGGD - Great Dane (Dog)'), ('PGACOMCHARCODE-APH','DGGE','DGGE - German Shorthaired Pointer (Dog) '), ('PGACOMCHARCODE-APH','DGGH','DGGH - Greyhound (Dog)'), ('PGACOMCHARCODE-APH','DGGI','DGGI - Glen of Imaal Terrier (Dog)'), ('PGACOMCHARCODE-APH','DGGM','DGGM - Greater Swiss Mountain (Dog)'), ('PGACOMCHARCODE-APH','DGGO','DGGO - Gordon Setter (Dog)'), ('PGACOMCHARCODE-APH','DGGP','DGGP - German Pinscher (Dog) '), ('PGACOMCHARCODE-APH','DGGR','DGGR - Golden Retriever (Dog)'), ('PGACOMCHARCODE-APH','DGGS','DGGS - German Shepherd (Dog)'), ('PGACOMCHARCODE-APH','DGGW','DGGW - German Wirehaired Pointer (Dog)'), ('PGACOMCHARCODE-APH','DGGZ','DGGZ - Giant Schnauzer (Dog)'), ('PGACOMCHARCODE-APH','DGHA','DGHA - Harrier (Dog)'), ('PGACOMCHARCODE-APH','DGHO','DGHO - Chow Chow (Dog)'), ('PGACOMCHARCODE-APH','DGHV','DGHV - Havanese (Dog)'), ('PGACOMCHARCODE-APH','DGIA','DGIA - Australian Terrier (Dog) '), ('PGACOMCHARCODE-APH','DGIC','DGIC - Icelandic Sheepdog (Dog)'), ('PGACOMCHARCODE-APH','DGIF','DGIF - Irish Wolfhound (Dog)'), ('PGACOMCHARCODE-APH','DGIG','DGIG - Italian Greyhound (Dog)'), ('PGACOMCHARCODE-APH','DGIH','DGIH - Ibizan Hound (Dog)'), ('PGACOMCHARCODE-APH','DGIR','DGIR - Irish Red and White Setter (Dog)'), ('PGACOMCHARCODE-APH','DGIS','DGIS - Irish Setter (Dog)'), ('PGACOMCHARCODE-APH','DGIT','DGIT - Irish Terrier (Dog)'), ('PGACOMCHARCODE-APH','DGIW','DGIW - Irish Water Spaniel (Dog)'), ('PGACOMCHARCODE-APH','DGJC','DGJC - Japanese Chin (Dog)'), ('PGACOMCHARCODE-APH','DGJR','DGJR - Jack Russell Terrier (Dog)'), ('PGACOMCHARCODE-APH','DGJT','DGJT - Japanese Terrier (Dog)'), ('PGACOMCHARCODE-APH','DGKB','DGKB - Kerry Beagle (Dog)'), ('PGACOMCHARCODE-APH','DGKE','DGKE - Keeshond (Dog)'), ('PGACOMCHARCODE-APH','DGKO','DGKO - Komondor (Dog)'), ('PGACOMCHARCODE-APH','DGKT','DGKT - Kerry Blue Terrier (Dog)'), ('PGACOMCHARCODE-APH','DGKU','DGKU - Kuvasz (Dog)'), ('PGACOMCHARCODE-APH','DGLA','DGLA - Lhasa Apso (Dog)'), ('PGACOMCHARCODE-APH','DGLB','DGLB - Leonberger (Dog)'), ('PGACOMCHARCODE-APH','DGLD','DGLD - Labradoodle (Dog)'), ('PGACOMCHARCODE-APH','DGLH','DGLH - Lancashire Heeler (Dog)'), ('PGACOMCHARCODE-APH','DGLO','DGLO - Lowchen (Dog)'), ('PGACOMCHARCODE-APH','DGLR','DGLR - Labrador Retriever (Dog)'), ('PGACOMCHARCODE-APH','DGLT','DGLT - Lakeland Terrier (Dog)'), ('PGACOMCHARCODE-APH','DGMA','DGMA - Maltese (Dog)'), ('PGACOMCHARCODE-APH','DGMB','DGMB - Miniature Bull Terrier (Dog)'), ('PGACOMCHARCODE-APH','DGMF','DGMF - Mastiff (Dog)'), ('PGACOMCHARCODE-APH','DGMP','DGMP - Miniature Pinscher (Dog)'), ('PGACOMCHARCODE-APH','DGMS','DGMS - Miniature Schnauzer (Dog)'), ('PGACOMCHARCODE-APH','DGMT','DGMT - Manchester Terrier (Dog)'), ('PGACOMCHARCODE-APH','DGNE','DGNE - Norwegian Elkhound (Dog)'), ('PGACOMCHARCODE-APH','DGNF','DGNF - Newfoundland (Dog)'), ('PGACOMCHARCODE-APH','DGNL','DGNL - Norwegian Lundehund (Dog)'), ('PGACOMCHARCODE-APH','DGNM','DGNM - Neapolitan Mastiff (Dog)'), ('PGACOMCHARCODE-APH','DGNS','DGNS - Nova Scotia Duck Tolling Retriever (Dog)'), ('PGACOMCHARCODE-APH','DGNT','DGNT - Norfolk Terrier (Dog)'), ('PGACOMCHARCODE-APH','DGNW','DGNW - Norwich Terrier (Dog)'), ('PGACOMCHARCODE-APH','DGOH','DGOH - Otterhound (Dog)'), ('PGACOMCHARCODE-APH','DGOS','DGOS - Old English Sheepdog (Dog)'), ('PGACOMCHARCODE-APH','DGOT','DGOT - Other Breed (Dog)'), ('PGACOMCHARCODE-APH','DGOY','DGOY - Toy Manchester Terrier (Dog) '), ('PGACOMCHARCODE-APH','DGPB','DGPB - Petit Basset Griffon Vendéen (Dog)'), ('PGACOMCHARCODE-APH','DGPD','DGPD - Poodle (Miniature) (Dog)'), ('PGACOMCHARCODE-APH','DGPG','DGPG - Pug (Dog)'), ('PGACOMCHARCODE-APH','DGPH','DGPH - Pharaoh Hound (Dog)'), ('PGACOMCHARCODE-APH','DGPI','DGPI - Puli (Dog)'), ('PGACOMCHARCODE-APH','DGPK','DGPK - Pekingese (Dog)'), ('PGACOMCHARCODE-APH','DGPL','DGPL - Plott (Dog)'), ('PGACOMCHARCODE-APH','DGPM','DGPM - Pomeranian (Dog)'), ('PGACOMCHARCODE-APH','DGPO','DGPO - Pointer (Dog)'), ('PGACOMCHARCODE-APH','DGPP','DGPP - Papillon (Dog)'), ('PGACOMCHARCODE-APH','DGPR','DGPR - Parson Russell Terrier (Dog)'), ('PGACOMCHARCODE-APH','DGPS','DGPS - Polish Lowland Sheepdog (Dog)'), ('PGACOMCHARCODE-APH','DGPT','DGPT - Portuguese Water (Dog)'), ('PGACOMCHARCODE-APH','DGPW','DGPW - Pembroke Welsh Corgi (Dog)'), ('PGACOMCHARCODE-APH','DGRC','DGRC - Redbone Coonhound (Dog)'), ('PGACOMCHARCODE-APH','DGRR','DGRR - Rhodesian Ridgeback (Dog)'), ('PGACOMCHARCODE-APH','DGRT','DGRT - Rat Terrier (Dog)'), ('PGACOMCHARCODE-APH','DGRW','DGRW - Rottweiler (Dog)'), ('PGACOMCHARCODE-APH','DGSA','DGSA - Saluki (Dog)'), ('PGACOMCHARCODE-APH','DGSB','DGSB - Saint Bernard (Dog)'), ('PGACOMCHARCODE-APH','DGSC','DGSC - Schipperke (Dog)'), ('PGACOMCHARCODE-APH','DGSD','DGSD - Scottish Deerhound (Dog)'), ('PGACOMCHARCODE-APH','DGSE','DGSE - Sealyham Terrier (Dog)'), ('PGACOMCHARCODE-APH','DGSF','DGSF - Smooth Fox Terrier (Dog)'), ('PGACOMCHARCODE-APH','DGSH','DGSH - Siberian Husky (Dog)'), ('PGACOMCHARCODE-APH','DGSI','DGSI - Shiba Inu (Dog)'), ('PGACOMCHARCODE-APH','DGSK','DGSK - Skye Terrier (Dog)'), ('PGACOMCHARCODE-APH','DGSL','DGSL - Sloughi (Dog)'), ('PGACOMCHARCODE-APH','DGSM','DGSM - Spanish Mastiff (Dog)'), ('PGACOMCHARCODE-APH','DGSO','DGSO - Spinone Italiano (Dog)'), ('PGACOMCHARCODE-APH','DGSP','DGSP - Poodle (Standard) (Dog)'), ('PGACOMCHARCODE-APH','DGSS','DGSS - Shetland Sheepdog (Dog)'), ('PGACOMCHARCODE-APH','DGST','DGST - Scottish Terrier (Dog)'), ('PGACOMCHARCODE-APH','DGSU','DGSU - Shih Tzu (Dog)'), ('PGACOMCHARCODE-APH','DGSV','DGSV - Swedish Vallhund (Dog)'), ('PGACOMCHARCODE-APH','DGSW','DGSW - Soft Coated Wheaten Terrier (Dog)'), ('PGACOMCHARCODE-APH','DGSX','DGSX - Sussex Spaniel (Dog)'), ('PGACOMCHARCODE-APH','DGSY','DGSY - Samoyed (Dog)'), ('PGACOMCHARCODE-APH','DGSZ','DGSZ - Standard Schnauzer (Dog)'), ('PGACOMCHARCODE-APH','DGTF','DGTF - Toy Fox Terrier (Dog)'), ('PGACOMCHARCODE-APH','DGTH','DGTH - Transylvanian Hound (Dog)'), ('PGACOMCHARCODE-APH','DGTM','DGTM - Tibetan Mastiff(Dog)'), ('PGACOMCHARCODE-APH','DGTP','DGTP - Toy Poodle (Dog)'), ('PGACOMCHARCODE-APH','DGTR','DGTR - Thai Ridgeback (Dog)'), ('PGACOMCHARCODE-APH','DGTS','DGTS - Tibetan Spaniel (Dog)'), ('PGACOMCHARCODE-APH','DGTT','DGTT - Tibetan Terrier (Dog)'), ('PGACOMCHARCODE-APH','DGVI','DGVI - Volpino Italiano (Dog)'), ('PGACOMCHARCODE-APH','DGVZ','DGVZ - Vizsla (Dog)'), ('PGACOMCHARCODE-APH','DGWE','DGWE - Weimaraner (Dog)'), ('PGACOMCHARCODE-APH','DGWF','DGWF - Wire Fox Terrier (Dog)'), ('PGACOMCHARCODE-APH','DGWG','DGWG - Wirehaired Pointing Griffon (Dog)'), ('PGACOMCHARCODE-APH','DGWH','DGWH - West Highland White Terrier (Dog)'), ('PGACOMCHARCODE-APH','DGWP','DGWP - Whippet (Dog)'), ('PGACOMCHARCODE-APH','DGWS','DGWS - Welsh Springer Spaniel (Dog)'), ('PGACOMCHARCODE-APH','DGWT','DGWT - Welsh Terrier (Dog)'), ('PGACOMCHARCODE-APH','DGXB','DGXB - Bolognese (Dog)'), ('PGACOMCHARCODE-APH','DGXO','DGXO - Xoloitzcuintli (Xolo) (Dog)'), ('PGACOMCHARCODE-APH','DGYB','DGYB - Boston Terrier (Dog)'), ('PGACOMCHARCODE-APH','DGYT','DGYT - Yorkshire Terrier (Dog)'), ('PGACOMCHARCODE-APH','DGZB','DGZB - Briard (Dog)'), ('PGACOMCHARCODE-APH','DHT','DHT - Dry Heat Treated'), ('PGACOMCHARCODE-APH','DKAB','DKAB - Abyssinian (Donkey)'), ('PGACOMCHARCODE-APH','DKAN','DKAN - Anatolia (Donkey)'), ('PGACOMCHARCODE-APH','DKLS','DKLS - Large Standard (Donkey)'), ('PGACOMCHARCODE-APH','DKMA','DKMA - Mary (Donkey)'), ('PGACOMCHARCODE-APH','DKMI','DKMI - Miniature (Donkey)'), ('PGACOMCHARCODE-APH','DKMJ','DKMJ - Mammoth Jack Stock (Donkey)'), ('PGACOMCHARCODE-APH','DKOT','DKOT - Other Breed (Donkey)'), ('PGACOMCHARCODE-APH','DKPO','DKPO - Poitou (Donkey)'), ('PGACOMCHARCODE-APH','DKST','DKST - Standard (Donkey)'), ('PGACOMCHARCODE-APH','DMCB','DMCB - Caribou (Cervid)'), ('PGACOMCHARCODE-APH','DMDE','DMDE - Deer (Cervid)'), ('PGACOMCHARCODE-APH','DMEL','DMEL - Elk (Cervid)'), ('PGACOMCHARCODE-APH','DMMO','DMMO - Moose (Cervid)'), ('PGACOMCHARCODE-APH','DMOT','DMOT - Other (Cervid)'), ('PGACOMCHARCODE-APH','DOB','DOB - Dormant Bulb'), ('PGACOMCHARCODE-APH','DOR','DOR - Donor organism'), ('PGACOMCHARCODE-APH','DPE','DPE - Dormant Underground Portion of a Perennial'), ('PGACOMCHARCODE-APH','DRI','DRI - Dried'), ('PGACOMCHARCODE-APH','DRY','DRY - Dry'), ('PGACOMCHARCODE-APH','DUNN','DUNN - Dun'), ('PGACOMCHARCODE-APH','DYE','DYE - Dyed'), ('PGACOMCHARCODE-APH','EBON','EBON - Ebony'), ('PGACOMCHARCODE-APH','EDB','EDB - Edible'), ('PGACOMCHARCODE-APH','EMP','EMP - Empty'), ('PGACOMCHARCODE-APH','EPG','EPG - Epiphytic in growing media'), ('PGACOMCHARCODE-APH','EPH','EPH - Epiphytic'), ('PGACOMCHARCODE-APH','EQU','EQU - Equine (Horse)Products'), ('PGACOMCHARCODE-APH','ESAE','ESAE - ESA-E'), ('PGACOMCHARCODE-APH','ESAT','ESAT - ESA-T'), ('PGACOMCHARCODE-APH','EXT','EXT - Extract'), ('PGACOMCHARCODE-A10','F','F - Female'), ('PGACOMCHARCODE-APH','F','F - Female'), ('PGACOMCHARCODE-APH','FBC','FBC - Bighead carp (Aristichthys nobilis) (Fish)'), ('PGACOMCHARCODE-APH','FCC','FCC - Crucian carp (Carassius carassius) (Fish)'), ('PGACOMCHARCODE-APH','FCO','FCO - Common carp, including koi (Cyprinus carpio) (Fish)'), ('PGACOMCHARCODE-APH','FGC','FGC - Grass carp (Ctenopharyngodon idellus) (Fish)'), ('PGACOMCHARCODE-APH','FGF','FGF - Goldfish (Carassius auratus) (Fish)'), ('PGACOMCHARCODE-APH','FOT','FOT - Other (Fish)'), ('PGACOMCHARCODE-APH','FR','FR - Fresh'), ('PGACOMCHARCODE-APH','FRC','FRC - Fresh Chilled'), ('PGACOMCHARCODE-APH','FRF','FRF - Fresh Frozen'), ('PGACOMCHARCODE-APH','FSC','FSC - Silver carp (Hypophthalmichthys molitrix) (Fish)'), ('PGACOMCHARCODE-APH','FSF','FSF - Sheatfish (Silurus glanis) (Fish)'), ('PGACOMCHARCODE-APH','FTT','FTT - Tench (Tinca tinca) (Fish)'), ('PGACOMCHARCODE-APH','FZZ','FZZ - Fuzzy Seeds'), ('PGACOMCHARCODE-APH','G20Y','G20Y - Greater than 20 Years'), ('PGACOMCHARCODE-APH','GAB','GAB - Anatolian Black (Goat)'), ('PGACOMCHARCODE-APH','GAC','GAC - American Cashmere (Goat)'), ('PGACOMCHARCODE-APH','GAI','GAI - Arapawa Island (Goat)'), ('PGACOMCHARCODE-APH','GAL','GAL - Alpine (Goat)'), ('PGACOMCHARCODE-APH','GAM','GAM - Altai Mountain (Goat)'), ('PGACOMCHARCODE-APH','GAN','GAN - Angora (Goat)'), ('PGACOMCHARCODE-APH','GAP','GAP - Appenzell (Goat)'), ('PGACOMCHARCODE-APH','GAU','GAU - Australian (Goat)'), ('PGACOMCHARCODE-APH','GBA','GBA - British Alpine (Goat)'), ('PGACOMCHARCODE-APH','GBB','GBB - Black Bengal (Goat)'), ('PGACOMCHARCODE-APH','GBD','GBD - Bionda dell''Adamello (Goat)'), ('PGACOMCHARCODE-APH','GBE','GBE - Boer (Goat)'), ('PGACOMCHARCODE-APH','GBF','GBF - Belgian Fawn (Goat)'), ('PGACOMCHARCODE-APH','GBG','GBG - Bagot (Goat)'), ('PGACOMCHARCODE-APH','GBH','GBH - Bhuj (Goat)'), ('PGACOMCHARCODE-APH','GBI','GBI - Barbari (Goat)'), ('PGACOMCHARCODE-APH','GBN','GBN - Benadir (Goat)'), ('PGACOMCHARCODE-APH','GBO','GBO - Booted (Goat)'), ('PGACOMCHARCODE-APH','GBS','GBS - Brown Shorthair (Goat)'), ('PGACOMCHARCODE-APH','GBT','GBT - Beetal (Goat)'), ('PGACOMCHARCODE-APH','GCA','GCA - Canindé (Goat)'), ('PGACOMCHARCODE-APH','GCB','GCB - Chengdu Brown (Goat)'), ('PGACOMCHARCODE-APH','GCC','GCC - Chamois Colored (Goat)'), ('PGACOMCHARCODE-APH','GCG','GCG - Chigu (Goat)'), ('PGACOMCHARCODE-APH','GCH','GCH - Changthangi (Goat)'), ('PGACOMCHARCODE-APH','GCI','GCI - Canary Island (Goat)'), ('PGACOMCHARCODE-APH','GCM','GCM - Cashmere (Goat)'), ('PGACOMCHARCODE-APH','GCN','GCN - Carpathian (Goat)'), ('PGACOMCHARCODE-APH','GCP','GCP - Chengde Polled (Goat)'), ('PGACOMCHARCODE-APH','GCQ','GCQ - Charnequeira (Goat)'), ('PGACOMCHARCODE-APH','GCR','GCR - Chappar (Goat)'), ('PGACOMCHARCODE-APH','GCS','GCS - Corsican (Goat)'), ('PGACOMCHARCODE-APH','GDC','GDC - Dutch Landrace (Goat)'), ('PGACOMCHARCODE-APH','GDD','GDD - Daera Din Panah (Goat)'), ('PGACOMCHARCODE-APH','GDI','GDI - Damani (Goat)'), ('PGACOMCHARCODE-APH','GDL','GDL - Danish Landrace (Goat)'), ('PGACOMCHARCODE-APH','GDO','GDO - Don (Goat)'), ('PGACOMCHARCODE-APH','GDS','GDS - Damascus (Goat)'), ('PGACOMCHARCODE-APH','GDT','GDT - Dutch Toggenburg (Goat)'), ('PGACOMCHARCODE-APH','GDU','GDU - Duan (Goat)'), ('PGACOMCHARCODE-APH','GEZ','GEZ - Erzgebirge (Goat)'), ('PGACOMCHARCODE-APH','GFL','GFL - Finnish Landrace (Goat)'), ('PGACOMCHARCODE-APH','GGG','GGG - Golden Guernsey (Goat)'), ('PGACOMCHARCODE-APH','GGI','GGI - Girgentana (Goat)'), ('PGACOMCHARCODE-APH','GGO','GGO - Göingeget (Goat)'), ('PGACOMCHARCODE-APH','GGS','GGS - Grisons Striped (Goat)'), ('PGACOMCHARCODE-APH','GHA','GHA - Hailun (Goat)'), ('PGACOMCHARCODE-APH','GHC','GHC - Hexi Cashmere (Goat)'), ('PGACOMCHARCODE-APH','GHE','GHE - Hejazi (Goat)'), ('PGACOMCHARCODE-APH','GHI','GHI - Hungarian Improved (Goat)'), ('PGACOMCHARCODE-APH','GHM','GHM - Haimen (Goat)'), ('PGACOMCHARCODE-APH','GHO','GHO - Hongtong (Goat)'), ('PGACOMCHARCODE-APH','GHS','GHS - Hasi (Goat)'), ('PGACOMCHARCODE-APH','GHT','GHT - Huaitoutala(Goat)'), ('PGACOMCHARCODE-APH','GHU','GHU - Huaipi (Goat)'), ('PGACOMCHARCODE-APH','GIR','GIR - Irish (Goat)'), ('PGACOMCHARCODE-APH','GJG','GJG - Jining Grey (Goat)'), ('PGACOMCHARCODE-APH','GKG','GKG - Kaghani (Goat)'), ('PGACOMCHARCODE-APH','GKI','GKI - Kiko (Goat)'), ('PGACOMCHARCODE-APH','GKM','GKM - Kamori (Goat)'), ('PGACOMCHARCODE-APH','GKN','GKN - Kinder (Goat)'), ('PGACOMCHARCODE-APH','GLM','GLM - LaMancha (Goat)'), ('PGACOMCHARCODE-APH','GLO','GLO - Loashan (Goat)'), ('PGACOMCHARCODE-APH','GMG','GMG - Murcia-Granada(Goat)'), ('PGACOMCHARCODE-APH','GMX','GMX - Moxotó (Goat)'), ('PGACOMCHARCODE-APH','GMY','GMY - Myotonic (Goat)'), ('PGACOMCHARCODE-APH','GNA','GNA - Nachi (Goat)'), ('PGACOMCHARCODE-APH','GND','GND - Nigerian Dwarfs (Goat)'), ('PGACOMCHARCODE-APH','GNO','GNO - Norwegian (Goat)'), ('PGACOMCHARCODE-APH','GNU','GNU - Nubian (Goat)'), ('PGACOMCHARCODE-APH','GOB','GOB - Other Breed (Goat)'), ('PGACOMCHARCODE-APH','GPE','GPE - Peacock (Goat)'), ('PGACOMCHARCODE-APH','GPG','GPG - Pygmy (Goat)'), ('PGACOMCHARCODE-APH','GPH','GPH - Philippine (Goat)'), ('PGACOMCHARCODE-APH','GPO','GPO - Poitou (Goat)'), ('PGACOMCHARCODE-APH','GPR','GPR - Pyrenean (Goat) '), ('PGACOMCHARCODE-APH','GPY','GPY - Pygora (Goat)'), ('PGACOMCHARCODE-APH','GQI','GQI - Qinshan (Goat)'), ('PGACOMCHARCODE-APH','GRA','GRA - Granules'), ('PGACOMCHARCODE-APH','GRAY','GRAY - Gray'), ('PGACOMCHARCODE-APH','GRE','GRE - Repartida (Goat)'), ('PGACOMCHARCODE-APH','GREE','GREE - Green'), ('PGACOMCHARCODE-APH','GRI','GRI - Ground'), ('PGACOMCHARCODE-APH','GRN','GRN - Green'), ('PGACOMCHARCODE-APH','GRW','GRW - Russian White (Goat)'), ('PGACOMCHARCODE-APH','GSA','GSA - Saanen (Goat)'), ('PGACOMCHARCODE-APH','GSC','GSC - San Clemente (Goat)'), ('PGACOMCHARCODE-APH','GSH','GSH - Sahelian (Goat)'), ('PGACOMCHARCODE-APH','GSL','GSL - Swedish Landrace (Goat)'), ('PGACOMCHARCODE-APH','GSO','GSO - Somali (Goat)'), ('PGACOMCHARCODE-APH','GSP','GSP - Spanish Meat (Goat)'), ('PGACOMCHARCODE-APH','GSR','GSR - SRD (Goat)'), ('PGACOMCHARCODE-APH','GTA','GTA - Tauernsheck (Goat)'), ('PGACOMCHARCODE-APH','GTF','GTF - Tennessee Fainting (Goat)'), ('PGACOMCHARCODE-APH','GTH','GTH - Thuringian (Goat)'), ('PGACOMCHARCODE-APH','GTO','GTO - Toggenburg (Goat)'), ('PGACOMCHARCODE-APH','GUZ','GUZ - Uzbek Black (Goat)'), ('PGACOMCHARCODE-APH','GVB','GVB - Valais Blackneck (Goat)'), ('PGACOMCHARCODE-APH','GVE','GVE - Verata (Goat)'), ('PGACOMCHARCODE-APH','GWA','GWA - West African Dwarf (Goat)'), ('PGACOMCHARCODE-APH','GWS','GWS - White shorthaired (Goat)'), ('PGACOMCHARCODE-APH','GXI','GXI - Xinjiang (Goat)'), ('PGACOMCHARCODE-APH','GXU','GXU - Xuhai (Goat)'), ('PGACOMCHARCODE-APH','GYM','GYM - Yemen Mountain (Goat)'), ('PGACOMCHARCODE-APH','GZA','GZA - Zalawadi (Goat)'), ('PGACOMCHARCODE-APH','GZH','GZH - Zhiwulin Black (Goat)'), ('PGACOMCHARCODE-APH','GZO','GZO - Zhongwei (Goat)'), ('PGACOMCHARCODE-APH','HAA','HAA - Appaloosa (Horse)'), ('PGACOMCHARCODE-APH','HAB','HAB - Anglo-Arab (Horse)'), ('PGACOMCHARCODE-APH','HAC','HAC - American Cream Draft (Horse)'), ('PGACOMCHARCODE-APH','HAN','HAN - Hand / Andalusian (Horse)'), ('PGACOMCHARCODE-APH','HAP','HAP - American Paint (Horse)'), ('PGACOMCHARCODE-APH','HAQ','HAQ - American Quarter (Horse)'), ('PGACOMCHARCODE-APH','HAR','HAR - Arabian (Horse)'), ('PGACOMCHARCODE-APH','HAS','HAS - American Saddlebred (Horse)'), ('PGACOMCHARCODE-APH','HAT','HAT - Akhal-Teke (Horse)'), ('PGACOMCHARCODE-APH','HBC','HBC - Bashkir Curly (Horse)'), ('PGACOMCHARCODE-APH','HBG','HBG - Belgian (Horse)'), ('PGACOMCHARCODE-APH','HBW','HBW - Belgian Warmblood (Horse)'), ('PGACOMCHARCODE-APH','HCB','HCB - Cleveland Bay (Horse)'), ('PGACOMCHARCODE-APH','HCD','HCD - Clydesdale (Horse)'), ('PGACOMCHARCODE-APH','HCM','HCM - Connemara (Horse) '), ('PGACOMCHARCODE-APH','HCO','HCO - Welsh Pony or Cob (Horse)'), ('PGACOMCHARCODE-APH','HDU','HDU - Dutch Warmblood (Horse)'), ('PGACOMCHARCODE-APH','HDW','HDW - Danish Warmblood (Horse)'), ('PGACOMCHARCODE-APH','HEA','HEA - Heated'), ('PGACOMCHARCODE-APH','HFR','HFR - Friesian (Horse)'), ('PGACOMCHARCODE-APH','HHA','HHA - Hackney (Horse)'), ('PGACOMCHARCODE-APH','HHB','HHB - Other Hot Blood (Horse)'), ('PGACOMCHARCODE-APH','HHF','HHF - Haflinger (Horse)'), ('PGACOMCHARCODE-APH','HHN','HHN - Hanoverian (Horse)'), ('PGACOMCHARCODE-APH','HHO','HHO - Holsteiner (Horse)'), ('PGACOMCHARCODE-APH','HIC','HIC - Icelandic (Horse)'), ('PGACOMCHARCODE-APH','HID','HID - Irish Draught (Horse)'), ('PGACOMCHARCODE-APH','HLI','HLI - Lipizzan (Horse)'), ('PGACOMCHARCODE-APH','HLU','HLU - Lusitano (Horse)'), ('PGACOMCHARCODE-APH','HMF','HMF - Missouri Fox Trotter (Horse)'), ('PGACOMCHARCODE-APH','HMI','HMI - Miniature (Horse)'), ('PGACOMCHARCODE-APH','HML','HML - Mule (Horse)'), ('PGACOMCHARCODE-APH','HMO','HMO - Morgan (Horse)'), ('PGACOMCHARCODE-APH','HMU','HMU - Mustang (Horse)'), ('PGACOMCHARCODE-APH','HMX','HMX - Mixed breed (Horse)'), ('PGACOMCHARCODE-APH','HNF','HNF - Norwegian Fjord (Horse)'), ('PGACOMCHARCODE-APH','HOB','HOB - Oldenburg (Horse)'), ('PGACOMCHARCODE-APH','HOCB','HOCB - Other Cold Blood (Horse)'), ('PGACOMCHARCODE-APH','HOT','HOT - Other Breed (Horse)'), ('PGACOMCHARCODE-APH','HPA','HPA - Pony of the Americas (Horse)'), ('PGACOMCHARCODE-APH','HPE','HPE - Percheron (Horse)'), ('PGACOMCHARCODE-APH','HPF','HPF - Peruvian Paso / Paso Fino (Horse)'), ('PGACOMCHARCODE-APH','HPI','HPI - Pinto (Horse)'), ('PGACOMCHARCODE-APH','HPL','HPL - Palomino (Horse)'), ('PGACOMCHARCODE-APH','HPO','HPO - Ponies (Horse)'), ('PGACOMCHARCODE-APH','HPP','HPP - Polo Pony (Horse)'), ('PGACOMCHARCODE-APH','HRM','HRM - Rocky Mountain (Horse)'), ('PGACOMCHARCODE-APH','HRP','HRP - Hermetically Sealed (perishable)'), ('PGACOMCHARCODE-APH','HRS','HRS - Hermetically Sealed (shelf stable)'), ('PGACOMCHARCODE-APH','HSB','HSB - Saddlebred (Horse)'), ('PGACOMCHARCODE-APH','HSF','HSF - Selle Francais (Horse)'), ('PGACOMCHARCODE-APH','HSH','HSH - Shire (Horse)'), ('PGACOMCHARCODE-APH','HSL','HSL - Shetland Pony (Horse)'), ('PGACOMCHARCODE-APH','HSP','HSP - Spanish Purebred (Horse)'), ('PGACOMCHARCODE-APH','HST','HST - Standardbred (Horse)'), ('PGACOMCHARCODE-APH','HSW','HSW - Swedish Warmblood (Horse)'), ('PGACOMCHARCODE-APH','HTB','HTB - Thoroughbred (Horse)'), ('PGACOMCHARCODE-APH','HTR','HTR - Trakehner (Horse)'), ('PGACOMCHARCODE-APH','HTW','HTW - Tennessee Walking (Horse)'), ('PGACOMCHARCODE-APH','HWB','HWB - Other Warm Blood (Horse)'), ('PGACOMCHARCODE-APH','HWP','HWP - Westphalian (Horse)'), ('PGACOMCHARCODE-A13','IAD','IAD - Invertebrate animals:adults'), ('PGACOMCHARCODE-APH','IAD','IAD - Invertebrate animals:adults'), ('PGACOMCHARCODE-APH','IDB','IDB - Inedible'), ('PGACOMCHARCODE-A13','IEG','IEG - Invertebrate animals:eggs'), ('PGACOMCHARCODE-APH','IEG','IEG - Invertebrate animals:eggs '), ('PGACOMCHARCODE-A13','IJV','IJV - Invertebrate animals:juveniles'), ('PGACOMCHARCODE-APH','IJV','IJV - Invertebrate animals:juveniles'), ('PGACOMCHARCODE-A13','ILR','ILR - Invertebrate animals:larvae'), ('PGACOMCHARCODE-APH','ILR','ILR - Invertebrate animals:larvae'), ('PGACOMCHARCODE-APH','IMM','IMM - Immature'), ('PGACOMCHARCODE-A13','INY','INY - Invertebrate animals:nymphs'), ('PGACOMCHARCODE-APH','INY','INY - Invertebrate animals:nymphs'), ('PGACOMCHARCODE-A13','IPP','IPP - Invertebrate animals:pupae'), ('PGACOMCHARCODE-APH','IPP','IPP - Invertebrate animals:pupae'), ('PGACOMCHARCODE-APH','L30D','L30D - 0-30 Days'), ('PGACOMCHARCODE-APH','L30D','L30D - 0-30 Days'), ('PGACOMCHARCODE-APH','LAVE','LAVE - Lavender'), ('PGACOMCHARCODE-APH','LILA','LILA - Lilac'), ('PGACOMCHARCODE-APH','LLGL','LLGL - Llama (Lama glama)'), ('PGACOMCHARCODE-APH','LLGU','LLGU - Guanaco (Lama guanicoe)'), ('PGACOMCHARCODE-APH','LLOT','LLOT - Other Breed (Llama)'), ('PGACOMCHARCODE-APH','LSL','LSL - Large Seed Lot'), ('PGACOMCHARCODE-A10','M','M - Male'), ('PGACOMCHARCODE-APH','M','M - Male'), ('PGACOMCHARCODE-APH','MAGE','MAGE - Magenta'), ('PGACOMCHARCODE-APH','MAN','MAN - Manufactured'), ('PGACOMCHARCODE-APH','MAT','MAT - Mature'), ('PGACOMCHARCODE-APH','MET','MET - Meristem tissue'), ('PGACOMCHARCODE-APH','MIL','MIL - Milled'), ('PGACOMCHARCODE-A11','N','N - Not modified'), ('PGACOMCHARCODE-A12','N','N - Not intergeneric'), ('PGACOMCHARCODE-A15','N','N - Not protected'), ('PGACOMCHARCODE-APH','N','N - Not intergeneric / No / Not protected / Neutered Male'), ('PGACOMCHARCODE-APH','NEW','NEW - New'), ('PGACOMCHARCODE-APH','NPE','NPE - Not Pelletized'), ('PGACOMCHARCODE-APH','OIL','OIL - Oil'), ('PGACOMCHARCODE-APH','ORAN','ORAN - Orange'), ('PGACOMCHARCODE-APH','OTA','OTA - Other Animal products'), ('PGACOMCHARCODE-APH','OTHR','OTHR - Other'), ('PGACOMCHARCODE-APH','OTOT','OTOT - Other Breeds (not listed)'), ('PGACOMCHARCODE-APH','OTR','OTR - Other Ruminant Products'), ('PGACOMCHARCODE-APH','OVI','OVI - Ovis (Sheep) Products'), ('PGACOMCHARCODE-APH','PALO','PALO - Palomino'), ('PGACOMCHARCODE-APH','PCAB','PCAB - Antwerp Belgian Bantam (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCAC','PCAC - Ac (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCAD','PCAD - Andalusian (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCAH','PCAH - Appenzell Pointed Hood Hen (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCAL','PCAL - Aseel /Asil (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCAM','PCAM - Ameracaunas (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCAN','PCAN - Ancona (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCAP','PCAP - Appenzell Bearded Hen (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCAR','PCAR - Araucana (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCAS','PCAS - Appenzeller Spithauben (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCAU','PCAU - Australorp (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCBA','PCBA - Bandara (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCBB','PCBB - Belgian Bearded d''Uccle Bantam (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCBC','PCBC - Buttercup (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCBE','PCBE - Buckeye (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCBJ','PCBJ - Baheij (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCBO','PCBO - Booted Bantam (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCBR','PCBR - Brahma (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCBV','PCBV - Barnevelders (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCCH','PCCH - Chantecler (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCCN','PCCN - Cornish (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCCO','PCCO - Cochin (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCCP','PCCP - Campine (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCCR','PCCR - Crevecoeur (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCCT','PCCT - Catalana (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCCU','PCCU - Cubalaya (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCDB','PCDB - Dutch Bantam (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCDE','PCDE - Delaware (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCDK','PCDK - Dorking (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCDO','PCDO - Dominique (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCEE','PCEE - Easter Eggers (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCFA','PCFA - Faverolles (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCFR','PCFR - Frieslands (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCFY','PCFY - Fayoumi (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCFZ','PCFZ - Frizzle (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCGI','PCGI - Gallus Inauris (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCGM','PCGM - Golden Montazah (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCHA','PCHA - Hamburg (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCHO','PCHO - Holland (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCHU','PCHU - Houdan (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCJA','PCJA - Java (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCJB','PCJB - Japanese Bantam (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCJG','PCJG - Jersey Giant (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCLA','PCLA - Lamona (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCLB','PCLB - Legbar (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCLE','PCLE - Leghorn (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCLF','PCLF - La Fleche (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCLS','PCLS - Langshan (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCLV','PCLV - Lakenvelder (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCMA','PCMA - Matrouh (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCMG','PCMG - Modern Game (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCMI','PCMI - Minorca (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCML','PCML - Malay (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCNH','PCNH - New Hampshire Red (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCOB','PCOB - Other Breed (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCOE','PCOE - Old English Game (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCOR','PCOR - Orpington (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCPE','PCPE - Penedesenca (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCPH','PCPH - Phoenix (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCPO','PCPO - Polish (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCPR','PCPR - Plymouth Rock (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCRB','PCRB - Rosecomb Bantam (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCRC','PCRC - Red Cap (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCRI','PCRI - Rhode Island Red (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCRO','PCRO - Russian Orloff (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCSB','PCSB - Sebright Bantam (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCSC','PCSC - Sicilian Buttercup (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCSH','PCSH - Swiss Hen (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCSI','PCSI - Silkie Bantam (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCSL','PCSL - Sultan (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCSM','PCSM - Silver Montazah(Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCST','PCST - Star (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCSU','PCSU - Sumatra (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCSX','PCSX - Sussex (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCSY','PCSY - Styrian (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCTU','PCTU - Turken (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCWF','PCWF - White-Faced Black Spanish (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCWY','PCWY - Wyandotte (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PCYO','PCYO - Yokohama (Poultry – Chicken)'), ('PGACOMCHARCODE-APH','PDAN','PDAN - Ancona (Poultry – Duck)'), ('PGACOMCHARCODE-APH','PDAS','PDAS - Australian Spotted (Poultry – Duck)'), ('PGACOMCHARCODE-APH','PDAY','PDAY - Aylesbury (Poultry – Duck)'), ('PGACOMCHARCODE-APH','PDBU','PDBU - Buff or Orpington (Poultry – Duck)'), ('PGACOMCHARCODE-APH','PDCA','PDCA - Cayuga (Poultry – Duck)'), ('PGACOMCHARCODE-APH','PDCR','PDCR - Crested (Poultry – Duck)'), ('PGACOMCHARCODE-APH','PDDH','PDDH - Dutch Hookbill (Poultry – Duck)'), ('PGACOMCHARCODE-APH','PDKC','PDKC - Khaki Campbell (Poultry – Duck)'), ('PGACOMCHARCODE-APH','PDMA','PDMA - Magpie (Poultry – Duck)'), ('PGACOMCHARCODE-APH','PDMU','PDMU - Muscovy (Poultry – Duck)'), ('PGACOMCHARCODE-APH','PDOB','PDOB - Other Breed (Poultry – Duck)'), ('PGACOMCHARCODE-APH','PDOR','PDOR - Orpington (Poultry – Duck)'), ('PGACOMCHARCODE-APH','PDPK','PDPK - Pekin (Poultry – Duck)'), ('PGACOMCHARCODE-APH','PDPO','PDPO - Pommeranian Duck (Poultry – Duck)'), ('PGACOMCHARCODE-APH','PDRN','PDRN - Runner (Poultry – Duck) '), ('PGACOMCHARCODE-APH','PDRU','PDRU - Rouen (Poultry – Duck)'), ('PGACOMCHARCODE-APH','PDSA','PDSA - Silver Appleyard (Poultry – Duck)'), ('PGACOMCHARCODE-APH','PDSW','PDSW - Swedish (Poultry – Duck)'), ('PGACOMCHARCODE-APH','PDSX','PDSX - Saxony (Poultry – Duck)'), ('PGACOMCHARCODE-APH','PDWH','PDWH - Welsh Harlequin (Poultry – Duck)'), ('PGACOMCHARCODE-APH','PEAC','PEAC - Peach'), ('PGACOMCHARCODE-APH','PEAR','PEAR - Pearl'), ('PGACOMCHARCODE-APH','PEE','PEE - Peeled'), ('PGACOMCHARCODE-APH','PEL','PEL - Pelletized'), ('PGACOMCHARCODE-APH','PGAB','PGAB - American Buff(Poultry – Goose)'), ('PGACOMCHARCODE-APH','PGAF','PGAF - African (Poultry – Goose)'), ('PGACOMCHARCODE-APH','PGCH','PGCH - Chinese (Poultry – Goose)'), ('PGACOMCHARCODE-APH','PGCP','PGCP - Cotton Patch (Poultry – Goose)'), ('PGACOMCHARCODE-APH','PGOB','PGOB - Other Breed (Poultry – Goose)'), ('PGACOMCHARCODE-APH','PGPI','PGPI - Pilgrim (Poultry – Goose)'), ('PGACOMCHARCODE-APH','PGPO','PGPO - Pomeranian (Poultry – Goose)'), ('PGACOMCHARCODE-APH','PGRO','PGRO - Roman (Poultry – Goose)'), ('PGACOMCHARCODE-APH','PGSE','PGSE - Sebastopol (Poultry – Goose)'), ('PGACOMCHARCODE-APH','PGSH','PGSH - Shetland (Poultry – Goose)'), ('PGACOMCHARCODE-APH','PGST','PGST - Steinbacher (Poultry – Goose)'), ('PGACOMCHARCODE-APH','PGTO','PGTO - Toulouse (Poultry – Goose)'), ('PGACOMCHARCODE-APH','PINK','PINK - Pink'), ('PGACOMCHARCODE-APH','PINT','PINT - Pinto / Paint'), ('PGACOMCHARCODE-APH','POGF','POGF - Guinea fowl (Poultry – Other)'), ('PGACOMCHARCODE-APH','POGR','POGR - Grouse(Poultry – Other)'), ('PGACOMCHARCODE-APH','POL','POL - Polished'), ('PGACOMCHARCODE-APH','POPA','POPA - Partridge (Poultry – Other)'), ('PGACOMCHARCODE-APH','POPF','POPF - Pea fowl (Poultry – Other)'), ('PGACOMCHARCODE-APH','POPH','POPH - Pheasants (Poultry – Other)'), ('PGACOMCHARCODE-APH','POPQ','POPQ - Quail (Poultry – Other)'), ('PGACOMCHARCODE-APH','POSW','POSW - Swan (Poultry – Other)'), ('PGACOMCHARCODE-APH','POW','POW - Powdered'), ('PGACOMCHARCODE-APH','PRE','PRE - Preserved'), ('PGACOMCHARCODE-APH','PRO','PRO - Processed'), ('PGACOMCHARCODE-APH','PTBB','PTBB - Bronze Broad Breasted (Poultry – Turkey)'), ('PGACOMCHARCODE-APH','PTBK','PTBK - Black (Poultry – Turkey)'), ('PGACOMCHARCODE-APH','PTBL','PTBL - Blue (Poultry – Turkey)'), ('PGACOMCHARCODE-APH','PTBR','PTBR - Bourbon Red (Poultry – Turkey)'), ('PGACOMCHARCODE-APH','PTBS','PTBS - Beltsville Small White (Poultry – Turkey)'), ('PGACOMCHARCODE-APH','PTBZ','PTBZ - Bronze (Poultry – Turkey)'), ('PGACOMCHARCODE-APH','PTCH','PTCH - Chocolate (Poultry – Turkey)'), ('PGACOMCHARCODE-APH','PTJB','PTJB - Jersey Buff Turkey (Poultry – Turkey)'), ('PGACOMCHARCODE-APH','PTLL','PTLL - Lavender/Lilac (Poultry – Turkey)'), ('PGACOMCHARCODE-APH','PTMW','PTMW - Midget White (Poultry – Turkey)'), ('PGACOMCHARCODE-APH','PTNA','PTNA - Narragansett (Poultry – Turkey)'), ('PGACOMCHARCODE-APH','PTOB','PTOB - Other Breed (Poultry – Turkey)'), ('PGACOMCHARCODE-APH','PTRO','PTRO - Royal Palm (Poultry – Turkey)'), ('PGACOMCHARCODE-APH','PTSB','PTSB - Heritage Standard Bronze (Poultry – Turkey)'), ('PGACOMCHARCODE-APH','PTSL','PTSL - Slate (Poultry – Turkey)'), ('PGACOMCHARCODE-APH','PTWH','PTWH - White Holland (Poultry – Turkey)'), ('PGACOMCHARCODE-APH','PURP','PURP - Purple'), ('PGACOMCHARCODE-APH','RAW','RAW - Raw'), ('PGACOMCHARCODE-APH','RDCH','RDCH - Chukotka (Reindeer)'), ('PGACOMCHARCODE-APH','RDEK','RDEK - Evenk (Reindeer)'), ('PGACOMCHARCODE-APH','RDEV','RDEV - Even (Reindeer)'), ('PGACOMCHARCODE-APH','RDNE','RDNE - Nentsi (Reindeer)'), ('PGACOMCHARCODE-APH','RDOT','RDOT - Other Breed (Reindeer)'), ('PGACOMCHARCODE-APH','RED','RED - Red'), ('PGACOMCHARCODE-APH','ROC','ROC - Root Cuttings'), ('PGACOMCHARCODE-APH','ROR','ROR - Recipient organism'), ('PGACOMCHARCODE-APH','RTD','RTD - Rooted'), ('PGACOMCHARCODE-APH','RTG','RTG - Rooted in growing media'), ('PGACOMCHARCODE-APH','RUST','RUST - Rust'), ('PGACOMCHARCODE-APH','S','S - Spayed Female'), ('PGACOMCHARCODE-APH','SAGE','SAGE - Sage'), ('PGACOMCHARCODE-APH','SAL','SAL - Salted'), ('PGACOMCHARCODE-APH','SAM','SAM - Samples'), ('PGACOMCHARCODE-APH','SAND','SAND - Sand'), ('PGACOMCHARCODE-APH','SCE','SCE - Screening'), ('PGACOMCHARCODE-APH','SEM','SEM - Embedded Seed'), ('PGACOMCHARCODE-APH','SGFL','SGFL - Single genus of Flower'), ('PGACOMCHARCODE-APH','SHAA','SHAA - Afghan Arabi (Sheep)'), ('PGACOMCHARCODE-APH','SHAB','SHAB - American Blackbelly (Sheep)'), ('PGACOMCHARCODE-APH','SHAC','SHAC - Acipayam (Sheep)'), ('PGACOMCHARCODE-APH','SHAD','SHAD - Adal (Sheep)'), ('PGACOMCHARCODE-APH','SHAF','SHAF - Africana (Sheep)'), ('PGACOMCHARCODE-APH','SHAG','SHAG - Algerian Arab (Sheep)'), ('PGACOMCHARCODE-APH','SHAI','SHAI - Arapawa Island (Sheep)'), ('PGACOMCHARCODE-APH','SHAK','SHAK - Askanian (Sheep)'), ('PGACOMCHARCODE-APH','SHAL','SHAL - Alai (Sheep)'), ('PGACOMCHARCODE-APH','SHAM','SHAM - Argentine Merino (Sheep)'), ('PGACOMCHARCODE-APH','SHAN','SHAN - Alcarreña (Sheep)'), ('PGACOMCHARCODE-APH','SHAO','SHAO - Arles Merino (Sheep)'), ('PGACOMCHARCODE-APH','SHAP','SHAP - Apennine (Sheep)'), ('PGACOMCHARCODE-APH','SHAR','SHAR - Arabi (Sheep)'), ('PGACOMCHARCODE-APH','SHAS','SHAS - Armenian Semicoarsewool (Sheep)'), ('PGACOMCHARCODE-APH','SHAT','SHAT - Altai (Sheep)'), ('PGACOMCHARCODE-APH','SHAV','SHAV - Algarve Churro (Sheep)'), ('PGACOMCHARCODE-APH','SHAW','SHAW - Awassi (Sheep)'), ('PGACOMCHARCODE-APH','SHAY','SHAY - Altay (Sheep)'), ('PGACOMCHARCODE-APH','SHBA','SHBA - Booroola Merino (Sheep)'), ('PGACOMCHARCODE-APH','SHBB','SHBB - Barbados Blackbelly (Sheep)'), ('PGACOMCHARCODE-APH','SHBC','SHBC - Baluchi (Sheep)'), ('PGACOMCHARCODE-APH','SHBD','SHBD - Barbado (Sheep)'), ('PGACOMCHARCODE-APH','SHBE','SHBE - Bergamasca (Sheep)'), ('PGACOMCHARCODE-APH','SHBF','SHBF - Bavarian Forest (Sheep)'), ('PGACOMCHARCODE-APH','SHBG','SHBG - Braunes Bergschaf (Sheep)'), ('PGACOMCHARCODE-APH','SHBH','SHBH - Brecknock Hill Cheviot (Sheep)'), ('PGACOMCHARCODE-APH','SHBI','SHBI - Biellese (Sheep)'), ('PGACOMCHARCODE-APH','SHBJ','SHBJ - Bündner Oberland (Sheep)'), ('PGACOMCHARCODE-APH','SHBK','SHBK - Balkhi (Sheep)'), ('PGACOMCHARCODE-APH','SHBL','SHBL - Bentheimer Landschaf (Sheep)'), ('PGACOMCHARCODE-APH','SHBM','SHBM - Black Welsh Mountain (Sheep)'), ('PGACOMCHARCODE-APH','SHBN','SHBN - Brillenschaf (Sheep)'), ('PGACOMCHARCODE-APH','SHBO','SHBO - Bond (Sheep)'), ('PGACOMCHARCODE-APH','SHBP','SHBP - Beulah Speckled-Face (Sheep)'), ('PGACOMCHARCODE-APH','SHBQ','SHBQ - Blackhead Persian (Sheep)'), ('PGACOMCHARCODE-APH','SHBR','SHBR - Bibrik (Sheep)'), ('PGACOMCHARCODE-APH','SHBS','SHBS - Basco-Béarnais (Sheep)'), ('PGACOMCHARCODE-APH','SHBT','SHBT - Border Leicester (Sheep)'), ('PGACOMCHARCODE-APH','SHBU','SHBU - Bleu du Maine (Sheep)'), ('PGACOMCHARCODE-APH','SHBV','SHBV - Bovska (Sheep)'), ('PGACOMCHARCODE-APH','SHBW','SHBW - Balwen Welsh Mountain (Sheep)'), ('PGACOMCHARCODE-APH','SHBX','SHBX - British Milk Sheep (Sheep)'), ('PGACOMCHARCODE-APH','SHBY','SHBY - Boreray (Sheep)'), ('PGACOMCHARCODE-APH','SHBZ','SHBZ - Brazilian Somali (Sheep)'), ('PGACOMCHARCODE-APH','SHCA','SHCA - Bluefaced Leicester (Sheep)'), ('PGACOMCHARCODE-APH','SHCB','SHCB - Campanian Barbary (Sheep)'), ('PGACOMCHARCODE-APH','SHCC','SHCC - Cine Capari (Sheep)'), ('PGACOMCHARCODE-APH','SHCD','SHCD - Corriedale (Sheep)'), ('PGACOMCHARCODE-APH','SHCE','SHCE - Cheviot (Sheep)'), ('PGACOMCHARCODE-APH','SHCF','SHCF - Clun Forest (Sheep)'), ('PGACOMCHARCODE-APH','SHCG','SHCG - Coburger Fuchsschaf (Sheep)'), ('PGACOMCHARCODE-APH','SHCH','SHCH - Cholistani (Sheep)'), ('PGACOMCHARCODE-APH','SHCI','SHCI - Chios (Sheep)'), ('PGACOMCHARCODE-APH','SHCK','SHCK - Comeback (Sheep)'), ('PGACOMCHARCODE-APH','SHCL','SHCL - Criollo (Sheep)'), ('PGACOMCHARCODE-APH','SHCM','SHCM - Castlemilk Moorit (Sheep)'), ('PGACOMCHARCODE-APH','SHCN','SHCN - Comisana (Sheep)'), ('PGACOMCHARCODE-APH','SHCO','SHCO - Cormo (Sheep)'), ('PGACOMCHARCODE-APH','SHCP','SHCP - Coopworth (Sheep)'), ('PGACOMCHARCODE-APH','SHCR','SHCR - California Red (Sheep)'), ('PGACOMCHARCODE-APH','SHCS','SHCS - Charollais (Sheep)'), ('PGACOMCHARCODE-APH','SHCV','SHCV - California Variegated Mutant (Sheep)'), ('PGACOMCHARCODE-APH','SHCW','SHCW - Cotswold (Sheep)'), ('PGACOMCHARCODE-APH','SHCX','SHCX - Columbia (Sheep)'), ('PGACOMCHARCODE-APH','SHDA','SHDA - Dala(Sheep)'), ('PGACOMCHARCODE-APH','SHDB','SHDB - Dalesbred (Sheep)'), ('PGACOMCHARCODE-APH','SHDC','SHDC - Devon Close wool (Sheep)'), ('PGACOMCHARCODE-APH','SHDD','SHDD - Dorset Down (Sheep)'), ('PGACOMCHARCODE-APH','SHDE','SHDE - Debouillet (Sheep)'), ('PGACOMCHARCODE-APH','SHDF','SHDF - Deutsches Blaukoepfiges Fleischschaf (Sheep)'), ('PGACOMCHARCODE-APH','SHDG','SHDG - Dagliç (Sheep)'), ('PGACOMCHARCODE-APH','SHDH','SHDH - Derbyshire Gritstone (Sheep)'), ('PGACOMCHARCODE-APH','SHDL','SHDL - Danish Landrace (Sheep)'), ('PGACOMCHARCODE-APH','SHDM','SHDM - Delaine Merino (Sheep)'), ('PGACOMCHARCODE-APH','SHDN','SHDN - Damani (Sheep)'), ('PGACOMCHARCODE-APH','SHDP','SHDP - Dorper(Sheep)'), ('PGACOMCHARCODE-APH','SHDR','SHDR - Damara (Sheep)'), ('PGACOMCHARCODE-APH','SHDT','SHDT - Dartmoor (Sheep)'), ('PGACOMCHARCODE-APH','SHDW','SHDW - Devon Longwoolled (Sheep)'), ('PGACOMCHARCODE-APH','SHDX','SHDX - Dorset (Sheep)'), ('PGACOMCHARCODE-APH','SHDY','SHDY - Drysdale (Sheep)'), ('PGACOMCHARCODE-APH','SHE','SHE - Shelled'), ('PGACOMCHARCODE-APH','SHEL','SHEL - Elliottdale (Sheep)'), ('PGACOMCHARCODE-APH','SHEX','SHEX - Exmoor Horn (Sheep)'), ('PGACOMCHARCODE-APH','SHFA','SHFA - Fabrianese (Sheep)'), ('PGACOMCHARCODE-APH','SHFE','SHFE - Faeroes (Sheep)'), ('PGACOMCHARCODE-APH','SHFI','SHFI - Finnsheep (Sheep)'), ('PGACOMCHARCODE-APH','SHFM','SHFM - Friesian Milk (Sheep)'), ('PGACOMCHARCODE-APH','SHFO','SHFO - Fonthill Merino (Sheep)'), ('PGACOMCHARCODE-APH','SHGA','SHGA - Galway (Sheep)'), ('PGACOMCHARCODE-APH','SHGB','SHGB - German Blackheaded Mutton (Sheep)'), ('PGACOMCHARCODE-APH','SHGC','SHGC - Gulf Coast (Sheep)'), ('PGACOMCHARCODE-APH','SHGF','SHGF - Gansu Alpine Fine-wool (Sheep)'), ('PGACOMCHARCODE-APH','SHGH','SHGH - Graue Gehoernte Heidschnucke (Sheep)'), ('PGACOMCHARCODE-APH','SHGK','SHGK - Gökçeada (Sheep)'), ('PGACOMCHARCODE-APH','SHGL','SHGL - Gotland (Sheep)'), ('PGACOMCHARCODE-APH','SHGM','SHGM - German Mountain (Sheep)'), ('PGACOMCHARCODE-APH','SHGO','SHGO - German Mutton Merino (Sheep)'), ('PGACOMCHARCODE-APH','SHGP','SHGP - Gentile di Puglia (Sheep)'), ('PGACOMCHARCODE-APH','SHGR','SHGR - Gromark (Sheep)'), ('PGACOMCHARCODE-APH','SHGU','SHGU - Gute (Sheep)'), ('PGACOMCHARCODE-APH','SHGW','SHGW - German Whiteheaded Mutton (Sheep)'), ('PGACOMCHARCODE-APH','SHGZ','SHGZ - Ghezel (Sheep)'), ('PGACOMCHARCODE-APH','SHHA','SHHA - Han (Sheep)'), ('PGACOMCHARCODE-APH','SHHE','SHHE - Hebridean (Sheep)'), ('PGACOMCHARCODE-APH','SHHI','SHHI - Hog Island (Sheep)'), ('PGACOMCHARCODE-APH','SHHK','SHHK - Herik (Sheep)'), ('PGACOMCHARCODE-APH','SHHL','SHHL - Hill Radnor (Sheep)'), ('PGACOMCHARCODE-APH','SHHN','SHHN - Hasht Nagri (Sheep)'), ('PGACOMCHARCODE-APH','SHHR','SHHR - Harnai (Sheep)'), ('PGACOMCHARCODE-APH','SHHS','SHHS - Hampshire (Sheep)'), ('PGACOMCHARCODE-APH','SHHU','SHHU - Hu (Sheep)'), ('PGACOMCHARCODE-APH','SHHW','SHHW - Herdwick (Sheep)'), ('PGACOMCHARCODE-APH','SHHZ','SHHZ - Hazaragie (Sheep)'), ('PGACOMCHARCODE-APH','SHIC','SHIC - Icelandic (Sheep)'), ('PGACOMCHARCODE-APH','SHIF','SHIF - Ile-de-France (Sheep)'), ('PGACOMCHARCODE-APH','SHIM','SHIM - Istrian Milk (Sheep)'), ('PGACOMCHARCODE-APH','SHJA','SHJA - Jacob (Sheep)'), ('PGACOMCHARCODE-APH','SHJE','SHJE - Jezerskosolcavska (Sheep)'), ('PGACOMCHARCODE-APH','SHKA','SHKA - Kachhi (Sheep)'), ('PGACOMCHARCODE-APH','SHKD','SHKD - Katahdin (Sheep)'), ('PGACOMCHARCODE-APH','SHKH','SHKH - Kerry Hill (Sheep)'), ('PGACOMCHARCODE-APH','SHKI','SHKI - Kivircik (Sheep)'), ('PGACOMCHARCODE-APH','SHKJ','SHKJ - Kajli (Sheep)'), ('PGACOMCHARCODE-APH','SHKK','SHKK - Karakul (Sheep)'), ('PGACOMCHARCODE-APH','SHKM','SHKM - Karacabey Merino (Sheep)'), ('PGACOMCHARCODE-APH','SHKO','SHKO - Kooka (Sheep)'), ('PGACOMCHARCODE-APH','SHKY','SHKY - Karayaka (Sheep)'), ('PGACOMCHARCODE-APH','SHLA','SHLA - Landais (Sheep)'), ('PGACOMCHARCODE-APH','SHLE','SHLE - Leineschaf (Sheep)'), ('PGACOMCHARCODE-APH','SHLH','SHLH - Lohi (Sheep)'), ('PGACOMCHARCODE-APH','SHLI','SHLI - Lincoln (Sheep)'), ('PGACOMCHARCODE-APH','SHLL','SHLL - Leicester Longwool (Sheep)'), ('PGACOMCHARCODE-APH','SHLN','SHLN - Langhe (Sheep)'), ('PGACOMCHARCODE-APH','SHLO','SHLO - Lonk (Sheep)'), ('PGACOMCHARCODE-APH','SHLT','SHLT - Lati (Sheep)'), ('PGACOMCHARCODE-APH','SHLU','SHLU - Luzein (Sheep)'), ('PGACOMCHARCODE-APH','SHLW','SHLW - Llanwenog (Sheep)'), ('PGACOMCHARCODE-APH','SHLY','SHLY - Lleyn (Sheep)'), ('PGACOMCHARCODE-APH','SHMA','SHMA - Maltese (Sheep)'), ('PGACOMCHARCODE-APH','SHMB','SHMB - Mehraban (Sheep)'), ('PGACOMCHARCODE-APH','SHMC','SHMC - Manech (Sheep)'), ('PGACOMCHARCODE-APH','SHMD','SHMD - Montadale (Sheep)'), ('PGACOMCHARCODE-APH','SHME','SHME - Massese (Sheep)'), ('PGACOMCHARCODE-APH','SHMF','SHMF - Merinolandschaf (Sheep)'), ('PGACOMCHARCODE-APH','SHMI','SHMI - Merinizzata italiana (Sheep)'), ('PGACOMCHARCODE-APH','SHML','SHML - Manx Loaghtan (Sheep)'), ('PGACOMCHARCODE-APH','SHMN','SHMN - Manchega (Sheep)'), ('PGACOMCHARCODE-APH','SHMO','SHMO - Moghani (Sheep)'), ('PGACOMCHARCODE-APH','SHMR','SHMR - Morada Nova (Sheep)'), ('PGACOMCHARCODE-APH','SHMS','SHMS - Masai (Sheep)'), ('PGACOMCHARCODE-APH','SHMU','SHMU - Mouflon (Sheep)'), ('PGACOMCHARCODE-APH','SHMW','SHMW - Merino Wool (Sheep)'), ('PGACOMCHARCODE-APH','SHNC','SHNC - Navajo-Churro (Sheep)'), ('PGACOMCHARCODE-APH','SHNE','SHNE - Nellore (Sheep)'), ('PGACOMCHARCODE-APH','SHNF','SHNF - Norwegian Fur (Sheep)'), ('PGACOMCHARCODE-APH','SHNH','SHNH - Norfolk Horn (Sheep)'), ('PGACOMCHARCODE-APH','SHNR','SHNR - North Ronaldsay (Sheep)'), ('PGACOMCHARCODE-APH','SHNT','SHNT - North Country Cheviot (Sheep)'), ('PGACOMCHARCODE-APH','SHNY','SHNY - Sicilian Barbary (Sheep)'), ('PGACOMCHARCODE-APH','SHON','SHON - Old Norwegian (Sheep)'), ('PGACOMCHARCODE-APH','SHOR','SHOR - Orkney (Sheep)'), ('PGACOMCHARCODE-APH','SHOS','SHOS - Ossimi (Sheep)'), ('PGACOMCHARCODE-APH','SHOT','SHOT - Other Breed (Sheep)'), ('PGACOMCHARCODE-APH','SHOX','SHOX - Oxford (Sheep)'), ('PGACOMCHARCODE-APH','SHPC','SHPC - Pomeranian Coarsewool (Sheep)'), ('PGACOMCHARCODE-APH','SHPD','SHPD - Perendale (Sheep)'), ('PGACOMCHARCODE-APH','SHPG','SHPG - Pagliarola (Sheep)'), ('PGACOMCHARCODE-APH','SHPI','SHPI - Pag Island (Sheep)'), ('PGACOMCHARCODE-APH','SHPL','SHPL - Pelibüey (Sheep)'), ('PGACOMCHARCODE-APH','SHPN','SHPN - Priangan (Sheep)'), ('PGACOMCHARCODE-APH','SHPO','SHPO - Poll Merino (Sheep)'), ('PGACOMCHARCODE-APH','SHPR','SHPR - Portland (Sheep)'), ('PGACOMCHARCODE-APH','SHPT','SHPT - Pitt Island (Sheep)'), ('PGACOMCHARCODE-APH','SHPW','SHPW - Polwarth (Sheep)'), ('PGACOMCHARCODE-APH','SHPY','SHPY - Polypay (Sheep)'), ('PGACOMCHARCODE-APH','SHPZ','SHPZ - Pinzirita (Sheep)'), ('PGACOMCHARCODE-APH','SHQA','SHQA - Qashqai (Sheep)'), ('PGACOMCHARCODE-APH','SHQB','SHQB - Qinghai Black Tibetan (Sheep)'), ('PGACOMCHARCODE-APH','SHQL','SHQL - Quanglin Large-tail (Sheep)'), ('PGACOMCHARCODE-APH','SHQS','SHQS - Qinghai Semifinewool (Sheep)'), ('PGACOMCHARCODE-APH','SHQU','SHQU - Quadrella (Sheep)'), ('PGACOMCHARCODE-APH','SHR','SHR - Shredded'), ('PGACOMCHARCODE-APH','SHRA','SHRA - Rasa Aragonesa (Sheep)'), ('PGACOMCHARCODE-APH','SHRB','SHRB - Rambouillet (Sheep)'), ('PGACOMCHARCODE-APH','SHRC','SHRC - Racka (Sheep)'), ('PGACOMCHARCODE-APH','SHRD','SHRD - Rideau Arcott (Sheep)'), ('PGACOMCHARCODE-APH','SHRE','SHRE - Red Engadine (Sheep)'), ('PGACOMCHARCODE-APH','SHRF','SHRF - Rough Fell (Sheep)'), ('PGACOMCHARCODE-APH','SHRG','SHRG - Rouge de l''Ouest (Sheep)'), ('PGACOMCHARCODE-APH','SHRH','SHRH - Rhoenschaf (Sheep)'), ('PGACOMCHARCODE-APH','SHRJ','SHRJ - Rygja (Sheep)'), ('PGACOMCHARCODE-APH','SHRK','SHRK - Red Karaman (Sheep)'), ('PGACOMCHARCODE-APH','SHRL','SHRL - Ryeland (Sheep)'), ('PGACOMCHARCODE-APH','SHRM','SHRM - Romney (Sheep)'), ('PGACOMCHARCODE-APH','SHRR','SHRR - Rouge de Roussillon (Sheep)'), ('PGACOMCHARCODE-APH','SHRV','SHRV - Romanov (Sheep)'), ('PGACOMCHARCODE-APH','SHRW','SHRW - Royal White (Sheep)'), ('PGACOMCHARCODE-APH','SHRY','SHRY - Rya (Sheep)'), ('PGACOMCHARCODE-APH','SHSA','SHSA - South African Mutton Merino (Sheep)'), ('PGACOMCHARCODE-APH','SHSB','SHSB - Scottish Blackface (Sheep)'), ('PGACOMCHARCODE-APH','SHSC','SHSC - Santa Cruz (Sheep)'), ('PGACOMCHARCODE-APH','SHSD','SHSD - South Devon (Sheep)'), ('PGACOMCHARCODE-APH','SHSE','SHSE - Shropshire (Sheep)'), ('PGACOMCHARCODE-APH','SHSF','SHSF - Suffolk (Sheep)'), ('PGACOMCHARCODE-APH','SHSG','SHSG - Spiegel (Sheep)'), ('PGACOMCHARCODE-APH','SHSH','SHSH - Southdown (Sheep)'), ('PGACOMCHARCODE-APH','SHSI','SHSI - Santa Inês (Sheep)'), ('PGACOMCHARCODE-APH','SHSK','SHSK - Skudde (Sheep)'), ('PGACOMCHARCODE-APH','SHSL','SHSL - Shetland (Sheep)'), ('PGACOMCHARCODE-APH','SHSM','SHSM - South African Merino (Sheep)'), ('PGACOMCHARCODE-APH','SHSN','SHSN - Sardinian (Sheep)'), ('PGACOMCHARCODE-APH','SHSO','SHSO - Somali (Sheep)'), ('PGACOMCHARCODE-APH','SHSP','SHSP - Sar Planina (Sheep)'), ('PGACOMCHARCODE-APH','SHSQ','SHSQ - Swedish Fur (Sheep)'), ('PGACOMCHARCODE-APH','SHSR','SHSR - Steigar (Sheep)'), ('PGACOMCHARCODE-APH','SHSS','SHSS - South Suffolk (Sheep)'), ('PGACOMCHARCODE-APH','SHST','SHST - Sahel-type (Sheep)'), ('PGACOMCHARCODE-APH','SHSU','SHSU - Spælsau (Sheep)'), ('PGACOMCHARCODE-APH','SHSV','SHSV - Sopravissana (Sheep)'), ('PGACOMCHARCODE-APH','SHSW','SHSW - South Wales Mountain (Sheep)'), ('PGACOMCHARCODE-APH','SHSX','SHSX - St. Croix / Virgin Island White (Sheep)'), ('PGACOMCHARCODE-APH','SHSY','SHSY - Soay (Sheep)'), ('PGACOMCHARCODE-APH','SHSZ','SHSZ - Sakiz (Sheep)'), ('PGACOMCHARCODE-APH','SHTA','SHTA - Targhee (Sheep)'), ('PGACOMCHARCODE-APH','SHTE','SHTE - Teeswater (Sheep)'), ('PGACOMCHARCODE-APH','SHTH','SHTH - Thalli (Sheep)'), ('PGACOMCHARCODE-APH','SHTJ','SHTJ - Tuj (Sheep)'), ('PGACOMCHARCODE-APH','SHTM','SHTM - Tyrol Mountain (Sheep)'), ('PGACOMCHARCODE-APH','SHTN','SHTN - Tunis (Sheep)'), ('PGACOMCHARCODE-APH','SHTO','SHTO - Tong (Sheep)'), ('PGACOMCHARCODE-APH','SHTR','SHTR - Türkgeldi (Sheep)'), ('PGACOMCHARCODE-APH','SHTS','SHTS - Tsurcana (Sheep)'), ('PGACOMCHARCODE-APH','SHTU','SHTU - Touabire (Sheep)'), ('PGACOMCHARCODE-APH','SHTX','SHTX - Texel (Sheep)'), ('PGACOMCHARCODE-APH','SHU','SHU - Shucked'), ('PGACOMCHARCODE-APH','SHUD','SHUD - Uda (Sheep)'), ('PGACOMCHARCODE-APH','SHUJ','SHUJ - Ujumqin (Sheep)'), ('PGACOMCHARCODE-APH','SHUS','SHUS - Ushant (Sheep)'), ('PGACOMCHARCODE-APH','SHVB','SHVB - Valais Blacknose (Sheep)'), ('PGACOMCHARCODE-APH','SHVD','SHVD - Vendéen (Sheep)'), ('PGACOMCHARCODE-APH','SHVR','SHVR - Van Rooy (Sheep)'), ('PGACOMCHARCODE-APH','SHWA','SHWA - West African Dwarf (Sheep)'), ('PGACOMCHARCODE-APH','SHWB','SHWB - Welsh Mountain Badger Faced (Sheep)'), ('PGACOMCHARCODE-APH','SHWC','SHWC - Wallis Country (Sheep)'), ('PGACOMCHARCODE-APH','SHWD','SHWD - White Horned Heath (Sheep)'), ('PGACOMCHARCODE-APH','SHWE','SHWE - Wensleydale (Sheep)'), ('PGACOMCHARCODE-APH','SHWF','SHWF - White Suffolk (Sheep)'), ('PGACOMCHARCODE-APH','SHWH','SHWH - Weisse Hornlose Heidschnucke (Sheep)'), ('PGACOMCHARCODE-APH','SHWK','SHWK - White Karaman (Sheep)'), ('PGACOMCHARCODE-APH','SHWL','SHWL - Walachenschaf (Sheep)'), ('PGACOMCHARCODE-APH','SHWM','SHWM - Welsh Mountain (Sheep)'), ('PGACOMCHARCODE-APH','SHWN','SHWN - Wiltshire Horn (Sheep)'), ('PGACOMCHARCODE-APH','SHWR','SHWR - Whiteface Dartmoor (Sheep)'), ('PGACOMCHARCODE-APH','SHWS','SHWS - Welsh Hill Speckled Face (Sheep)'), ('PGACOMCHARCODE-APH','SHWW','SHWW - Whiteface Woodland (Sheep)'), ('PGACOMCHARCODE-APH','SHWZ','SHWZ - Waziri (Sheep)'), ('PGACOMCHARCODE-APH','SHXA','SHXA - Xalda (Sheep)'), ('PGACOMCHARCODE-APH','SHXB','SHXB - Swiss Black-Brown Mountain (Sheep)'), ('PGACOMCHARCODE-APH','SHXD','SHXD - Swaledale (Sheep)'), ('PGACOMCHARCODE-APH','SHXF','SHXF - Xinjiang Finewool (Sheep)'), ('PGACOMCHARCODE-APH','SHXK','SHXK - Sumavska (Sheep)'), ('PGACOMCHARCODE-APH','SHXM','SHXM - Strong Wool Merino (Sheep)'), ('PGACOMCHARCODE-APH','SHXS','SHXS - Steinschaf (Sheep)'), ('PGACOMCHARCODE-APH','SHXW','SHXW - Swiss White Alpine (Sheep)'), ('PGACOMCHARCODE-APH','SHXX','SHXX - Xaxi Ardia (Sheep)'), ('PGACOMCHARCODE-APH','SHYA','SHYA - Yankasa (Sheep)'), ('PGACOMCHARCODE-APH','SHYE','SHYE - Yemeni (Sheep)'), ('PGACOMCHARCODE-APH','SHYI','SHYI - Yiecheng (Sheep)'), ('PGACOMCHARCODE-APH','SHYO','SHYO - Yoroo (Sheep)'), ('PGACOMCHARCODE-APH','SHYS','SHYS - Yunnan Semifinewool (Sheep)'), ('PGACOMCHARCODE-APH','SHYW','SHYW - Yemen White (Sheep)'), ('PGACOMCHARCODE-APH','SHZA','SHZA - Zaghawa (Sheep)'), ('PGACOMCHARCODE-APH','SHZE','SHZE - Zel (Sheep)'), ('PGACOMCHARCODE-APH','SHZG','SHZG - Zagoria (Sheep)'), ('PGACOMCHARCODE-APH','SHZK','SHZK - Zakynthos (Sheep)'), ('PGACOMCHARCODE-APH','SHZL','SHZL - Zaïre Long-legged (Sheep)'), ('PGACOMCHARCODE-APH','SHZM','SHZM - Zeeland Milk (Sheep)'), ('PGACOMCHARCODE-APH','SHZN','SHZN - Zaian (Sheep)'), ('PGACOMCHARCODE-APH','SHZR','SHZR - Zemmour (Sheep)'), ('PGACOMCHARCODE-APH','SHZS','SHZS - Zlatusha (Sheep)'), ('PGACOMCHARCODE-APH','SHZU','SHZU - Zoulay (Sheep)'), ('PGACOMCHARCODE-APH','SHZY','SHZY - Zeta Yellow (Sheep)'), ('PGACOMCHARCODE-APH','SHZZ','SHZZ - Zelazna (Sheep)'), ('PGACOMCHARCODE-APH','SILV','SILV - Silver'), ('PGACOMCHARCODE-APH','SLI','SLI - Sliced'), ('PGACOMCHARCODE-APH','SMO','SMO - Smoked'), ('PGACOMCHARCODE-APH','SMS','SMS - Smooth Seeds'), ('PGACOMCHARCODE-APH','SOHM','SOHM - Hedgehog: Amur Hedgehog (Erinaceus amurensis)'), ('PGACOMCHARCODE-APH','SPP','SPP - Split or processed'), ('PGACOMCHARCODE-APH','SSL','SSL - Small Seed Lot'), ('PGACOMCHARCODE-APH','STE','STE - Steamed'), ('PGACOMCHARCODE-APH','STS','STS - Steam Sterilized'), ('PGACOMCHARCODE-APH','SUS','SUS - Sus (Pork) Products'), ('PGACOMCHARCODE-APH','SWAI','SWAI - Arapawa Island (Swine)'), ('PGACOMCHARCODE-APH','SWAL','SWAL - American Landrace (Swine)'), ('PGACOMCHARCODE-APH','SWAS','SWAS - Angeln Saddleback (Swine)'), ('PGACOMCHARCODE-APH','SWAY','SWAY - American Yorkshire (Swine)'), ('PGACOMCHARCODE-APH','SWBA','SWBA - Basque (Swine)'), ('PGACOMCHARCODE-APH','SWBB','SWBB - Beijing Black or Peking Black (Swine)'), ('PGACOMCHARCODE-APH','SWBC','SWBC - Black Canarian Pig (Swine)'), ('PGACOMCHARCODE-APH','SWBE','SWBE - Bentheim Black Pied (Swine)'), ('PGACOMCHARCODE-APH','SWBG','SWBG - Belgian Landrace (Swine)'), ('PGACOMCHARCODE-APH','SWBK','SWBK - Berkshire (Swine)'), ('PGACOMCHARCODE-APH','SWBL','SWBL - British Lop (Swine)'), ('PGACOMCHARCODE-APH','SWBN','SWBN - Black Slavonian (Swine)'), ('PGACOMCHARCODE-APH','SWBP','SWBP - Belarus Black Pied (Swine)'), ('PGACOMCHARCODE-APH','SWBR','SWBR - British Landrace (Swine)'), ('PGACOMCHARCODE-APH','SWBS','SWBS - British Saddleback (Swine)'), ('PGACOMCHARCODE-APH','SWBT','SWBT - Bantu (Swine)'), ('PGACOMCHARCODE-APH','SWBU','SWBU - Bulgarian White (Swine)'), ('PGACOMCHARCODE-APH','SWBW','SWBW - Large Black-white (Swine)'), ('PGACOMCHARCODE-APH','SWBX','SWBX - Ba Xuyen (Swine)'), ('PGACOMCHARCODE-APH','SWBZ','SWBZ - Bazna (Swine)'), ('PGACOMCHARCODE-APH','SWCA','SWCA - Cantonese (Swine)'), ('PGACOMCHARCODE-APH','SWCH','SWCH - Choctaw (Swine)'), ('PGACOMCHARCODE-APH','SWCS','SWCS - Cinta Sense (Swine)'), ('PGACOMCHARCODE-APH','SWCW','SWCW - Chester White (Swine)'), ('PGACOMCHARCODE-APH','SWCZ','SWCZ - Czech Improved White (Swine)'), ('PGACOMCHARCODE-APH','SWDC','SWDC - Duroc (Swine)'), ('PGACOMCHARCODE-APH','SWDL','SWDL - Danish Landrace (Swine)'), ('PGACOMCHARCODE-APH','SWDP','SWDP - Dermantsi Pied (Swine)'), ('PGACOMCHARCODE-APH','SWDU','SWDU - Dutch Landrace (Swine)'), ('PGACOMCHARCODE-APH','SWFI','SWFI - Finnish Landrace (Swine)'), ('PGACOMCHARCODE-APH','SWFJ','SWFJ - Fengjing (Swine)'), ('PGACOMCHARCODE-APH','SWFR','SWFR - French Landrace (Swine)'), ('PGACOMCHARCODE-APH','SWFW','SWFW - West French White(Swine)'), ('PGACOMCHARCODE-APH','SWGO','SWGO - Gloucester Old Spot (Swine)'), ('PGACOMCHARCODE-APH','SWGR','SWGR - German Landrace (Swine)'), ('PGACOMCHARCODE-APH','SWGU','SWGU - Guinea Hog (Swine)'), ('PGACOMCHARCODE-APH','SWHE','SWHE - Herford (Swine)'), ('PGACOMCHARCODE-APH','SWHS','SWHS - Hampshire (Swine)'), ('PGACOMCHARCODE-APH','SWHZ','SWHZ - Hezuo (Swine)'), ('PGACOMCHARCODE-APH','SWIA','SWIA - Ibérico or Alentejano Iberian (Swine)'), ('PGACOMCHARCODE-APH','SWIT','SWIT - Italian Landrace (Swine)'), ('PGACOMCHARCODE-APH','SWJI','SWJI - Jinhua (Swine)'), ('PGACOMCHARCODE-APH','SWKE','SWKE - Kele (Swine)'), ('PGACOMCHARCODE-APH','SWKK','SWKK - Kunekune (Swine)'), ('PGACOMCHARCODE-APH','SWKR','SWKR - Krskopolje (Swine)'), ('PGACOMCHARCODE-APH','SWLB','SWLB - Large Black (Swine)'), ('PGACOMCHARCODE-APH','SWLE','SWLE - Lacombe (Swine)'), ('PGACOMCHARCODE-APH','SWLN','SWLN - Lithuanian Native (Swine)'), ('PGACOMCHARCODE-APH','SWLW','SWLW - Large White (Swine)'), ('PGACOMCHARCODE-APH','SWMA','SWMA - Mangalitsa (Swine)'), ('PGACOMCHARCODE-APH','SWMC','SWMC - Mong Cai (Swine)'), ('PGACOMCHARCODE-APH','SWME','SWME - Meishan (Swine)'), ('PGACOMCHARCODE-APH','SWMF','SWMF - Mulefoot (Swine)'), ('PGACOMCHARCODE-APH','SWMI','SWMI - Minzhu (Swine)'), ('PGACOMCHARCODE-APH','SWMO','SWMO - Moura (Swine)'), ('PGACOMCHARCODE-APH','SWMR','SWMR - Mora Romagnola (Swine)'), ('PGACOMCHARCODE-APH','SWMU','SWMU - Mukota (Swine)'), ('PGACOMCHARCODE-APH','SWMW','SWMW - Middle White (Swine)'), ('PGACOMCHARCODE-APH','SWNE','SWNE - Neijiang (Swine)'), ('PGACOMCHARCODE-APH','SWNI','SWNI - Ningxiang (Swine)'), ('PGACOMCHARCODE-APH','SWNL','SWNL - Norwegian Landrace (Swine)'), ('PGACOMCHARCODE-APH','SWNY','SWNY - Norwegian Yorkshire (Swine)'), ('PGACOMCHARCODE-APH','SWOI','SWOI - Ossabaw Island Hog (Swine)'), ('PGACOMCHARCODE-APH','SWOS','SWOS - Oxford Sandy & Black (Swine)'), ('PGACOMCHARCODE-APH','SWOT','SWOT - Other Breed (Swine)'), ('PGACOMCHARCODE-APH','SWPC','SWPC - Poland China (Swine)'), ('PGACOMCHARCODE-APH','SWPI','SWPI - Pietrain (Swine)'), ('PGACOMCHARCODE-APH','SWPN','SWPN - Philippine Native (Swine)'), ('PGACOMCHARCODE-APH','SWRW','SWRW - Red Wattle (Swine)'), ('PGACOMCHARCODE-APH','SWSH','SWSH - Swabian-Hall (Swine)'), ('PGACOMCHARCODE-APH','SWSK','SWSK - Saddleback (Swine)'), ('PGACOMCHARCODE-APH','SWSL','SWSL - Swedish Landrace (Swine)'), ('PGACOMCHARCODE-APH','SWSP','SWSP - Spotted (Swine)'), ('PGACOMCHARCODE-APH','SWTI','SWTI - Tibetan (Swine)'), ('PGACOMCHARCODE-APH','SWTN','SWTN - Thuoc Nhieu (Swine)'), ('PGACOMCHARCODE-APH','SWTU','SWTU - Turopolie (Swine)'), ('PGACOMCHARCODE-APH','SWTW','SWTW - Tamworth (Swine)'), ('PGACOMCHARCODE-APH','SWTX','SWTX - Tokyo-X (Swine)'), ('PGACOMCHARCODE-APH','SWVP','SWVP - Vietnamese Potbelly (Swine)'), ('PGACOMCHARCODE-APH','SWWE','SWWE - Welsh (Swine)'), ('PGACOMCHARCODE-APH','SWWS','SWWS - Wessex Saddleback(Swine)'), ('PGACOMCHARCODE-APH','SWWU','SWWU - Wuzhishan (Swine)'), ('PGACOMCHARCODE-APH','SWYA','SWYA - Yanan (Swine)'), ('PGACOMCHARCODE-APH','SWZG','SWZG - Zungo(Swine)'), ('PGACOMCHARCODE-APH','TAN','TAN - Tan'), ('PGACOMCHARCODE-APH','TEAL','TEAL - Teal'), ('PGACOMCHARCODE-APH','THR','THR - Threshed, unmilled in hull'), ('PGACOMCHARCODE-APH','TRE','TRE - Treated'), ('PGACOMCHARCODE-APH','TRI','TRI - Trichosurus (Brushtail Possum) Products'), ('PGACOMCHARCODE-A10','U','U - Unknown'), ('PGACOMCHARCODE-APH','U','U - Unknown'), ('PGACOMCHARCODE-APH','UMBE','UMBE - Umber'), ('PGACOMCHARCODE-APH','UMI','UMI - Un-Milled'), ('PGACOMCHARCODE-APH','UNC','UNC - Un-rooted cuttings'), ('PGACOMCHARCODE-APH','UNG','UNG - Un-rooted cuttings in growing media'), ('PGACOMCHARCODE-APH','UNR','UNR - Unroasted Seeds / Un-rooted'), ('PGACOMCHARCODE-APH','USED','USED - Used'), ('PGACOMCHARCODE-APH','USH','USH - Un-shucked'), ('PGACOMCHARCODE-APH','VANI','VANI - Vanilla'), ('PGACOMCHARCODE-APH','VARI','VARI - Various'), ('PGACOMCHARCODE-APH','VIOL','VIOL - Violet'), ('PGACOMCHARCODE-APH','VVA','VVA - Vector or vector agent'), ('PGACOMCHARCODE-APH','WDC','WDC - Draft cross (Horse)'), ('PGACOMCHARCODE-APH','WHIT','WHIT - White'), ('PGACOMCHARCODE-APH','WHM','WHM - With husk and milk (liquid)'), ('PGACOMCHARCODE-APH','WHS','WHS - With Husk or shells'), ('PGACOMCHARCODE-APH','WIB','WIB - With Bark'), ('PGACOMCHARCODE-APH','WIR','WIR - With Fruit'), ('PGACOMCHARCODE-APH','WOB','WOB - Without Bark'), ('PGACOMCHARCODE-APH','WOF','WOF - Without Fruit'), ('PGACOMCHARCODE-APH','WOH','WOH - Without husks and shells'), ('PGACOMCHARCODE-APH','WOM','WOM - Without husk or without milk (liquid)'), ('PGACOMCHARCODE-A11','Y','Y - Modified'), ('PGACOMCHARCODE-A12','Y','Y - Intergeneric'), ('PGACOMCHARCODE-A15','Y','Y - Protected'), ('PGACOMCHARCODE-APH','Y','Y - Yes / Protected / Intergeneric'), ('PGACOMCHARCODE-APH','YELL','YELL - Yellow'), ('PGACOMCHARCODE-APH','ZGWG','ZGWG - Wild Goat (Capra aegagrus )'), ('PGACOMCHARCODE-APH','ZIBW','ZIBW - Walia Ibex (Capra walie )'), ('PGACOMCHARCODE-APH','ZOAB','ZOAB - African Buffalo (Syncerus caffer)'), ('PGACOMCHARCODE-APH','ZOAF','ZOAF - Alpine Ibex (Capra ibex )'), ('PGACOMCHARCODE-APH','ZOAM','ZOAM - Asiatic Mouflon (Ovis orientalis)'), ('PGACOMCHARCODE-APH','ZOAR','ZOAR - Argali (Ovis ammon)'), ('PGACOMCHARCODE-APH','ZOAT','ZOAT - Arabian Tahr (Hemitragus jayakari )'), ('PGACOMCHARCODE-APH','ZOBG','ZOBG - Banteng (Bos javanicus)'), ('PGACOMCHARCODE-APH','ZOBH','ZOBH - Bharal, Himalayan blue sheep (Pseudois nayaur)'), ('PGACOMCHARCODE-APH','ZOBI','ZOBI - Bighorn sheep (Ovis canadensis)'), ('PGACOMCHARCODE-APH','ZOBL','ZOBL - Bushpig (Potamochoerus larvatus)'), ('PGACOMCHARCODE-APH','ZOBO','ZOBO - Bongo (Tragelaphus eurycerus)'), ('PGACOMCHARCODE-APH','ZOBP','ZOBP - Bearded Pig; Malaysia, Indonesia (Sus barbatus)'), ('PGACOMCHARCODE-APH','ZOBS','ZOBS - Barbary Sheep (Ammotragus lervia)'), ('PGACOMCHARCODE-APH','ZOBU','ZOBU - Bushbuck (Tragelaphus scriptus)'), ('PGACOMCHARCODE-APH','ZOCA','ZOCA - Cape, Somali or Desert Warthog; West, East and southern Africa (Phacochoerus aethiopicus)'), ('PGACOMCHARCODE-APH','ZOCE','ZOCE - Common Eland (Taurotragus oryx)'), ('PGACOMCHARCODE-APH','ZOCG','ZOCG - Chinese Goral (Nemorhaedus caudatus )'), ('PGACOMCHARCODE-APH','ZOCH','ZOCH - Chamois (Rupicapra rupic)'), ('PGACOMCHARCODE-APH','ZOCP','ZOCP - Celebes Warty Pig (Sus celebensis)'), ('PGACOMCHARCODE-APH','ZOCW','ZOCW - Common Warthog (Phacochoerus africanus)'), ('PGACOMCHARCODE-APH','ZODS','ZODS - Dall or Thinhorn Sheep (Ovis dalli)'), ('PGACOMCHARCODE-APH','ZODW','ZODW - Dwarf Blue Sheep (Pseudois schaeferi)'), ('PGACOMCHARCODE-APH','ZOEA','ZOEA - Elephant: Asian Elephant (Elephas maximus)'), ('PGACOMCHARCODE-APH','ZOEB','ZOEB - Elephant: African Bush Elephant (Loxodonta africana)'), ('PGACOMCHARCODE-APH','ZOEF','ZOEF - Elephant: African Forest Elephant (Loxodonta cyclotis)'), ('PGACOMCHARCODE-APH','ZOEM','ZOEM - European Mouflon (Ovis musimon, or Ovis ammon musimon)'), ('PGACOMCHARCODE-APH','ZOET','ZOET - East Caucasian Tur (Capra cylindricornis )'), ('PGACOMCHARCODE-APH','ZOFA','ZOFA - Four-horned Antelope (Tetracerus quadricornis)'), ('PGACOMCHARCODE-APH','ZOFP','ZOFP - Flores Warty Pig (Sus heureni)'), ('PGACOMCHARCODE-APH','ZOGA','ZOGA - Gaur (Bos gaurus)'), ('PGACOMCHARCODE-APH','ZOGE','ZOGE - Giant Eland (Taurotragus derbianus)'), ('PGACOMCHARCODE-APH','ZOGF','ZOGF - Giant Forest Hog; Equatorial Africa (Hylochoerus meinertzhageni)'), ('PGACOMCHARCODE-APH','ZOGG','ZOGG - Gray Goral (Nemorhaedus goral )'), ('PGACOMCHARCODE-APH','ZOGK','ZOGK - Greater Kudu (Tragelaphus strepsiceros)'), ('PGACOMCHARCODE-APH','ZOGY','ZOGY - Gayal or domestic gaur (Bos frontalis)'), ('PGACOMCHARCODE-APH','ZOHA','ZOHA - Hedgehog: Afghan Hedgehog (Hemiechinus auritus megalotis)'), ('PGACOMCHARCODE-APH','ZOHB','ZOHB - Hedgehog: Bare-bellied Hedgehog (Hemiechinus nudiventris)'), ('PGACOMCHARCODE-APH','ZOHD','ZOHD - Hedgehog: Daurian Hedgehog (Mesechinus dauuricus)'), ('PGACOMCHARCODE-APH','ZOHE','ZOHE - Hedgehog: Eastern European Hedgehog (Erinaceus concolor)'), ('PGACOMCHARCODE-APH','ZOHF','ZOHF - Hedgehog: Four-toed Hedgehog (Atelerix albiventris)'), ('PGACOMCHARCODE-APH','ZOHG','ZOHG - Hedgehog: Long-eared Hedgehog (Hemiechinus auritus)'), ('PGACOMCHARCODE-APH','ZOHH','ZOHH - Hedgehog: Southern African Hedgehog (Atelerix frontalis)'), ('PGACOMCHARCODE-APH','ZOHI','ZOHI - Hedgehog: Indian Hedgehog (Hemiechinus micropus)'), ('PGACOMCHARCODE-APH','ZOHK','ZOHK - Hedgehog: Korean hedgehog (Erinaceus amurensis dealbatus)'), ('PGACOMCHARCODE-APH','ZOHL','ZOHL - Hedgehog: Indian Long-eared Hedgehog (Hemiechinus collaris)'), ('PGACOMCHARCODE-APH','ZOHN','ZOHN - Hedgehog: North African Hedgehog (Atelerix algirus)'), ('PGACOMCHARCODE-APH','ZOHP','ZOHP - Hippopotamus: Hippopotamus (Hippopotamus amphibius)'), ('PGACOMCHARCODE-APH','ZOHR','ZOHR - Hedgehog: Brandts Hedgehog (Hemiechinus hypomelas)'), ('PGACOMCHARCODE-APH','ZOHS','ZOHS - Hedgehog: Somali Hedgehog (Atelerix sclateri)'), ('PGACOMCHARCODE-APH','ZOHT','ZOHT - Hedgehog: Desert Hedgehog (Hemiechinus aethiopicus)'), ('PGACOMCHARCODE-APH','ZOHW','ZOHW - Hedgehog: Western European Hedgehog (Erinaceus europaeus)'), ('PGACOMCHARCODE-APH','ZOHY','ZOHY - Hippopotamus: Pygmy Hippopotamus (Choeropsis liberiensis)'), ('PGACOMCHARCODE-APH','ZOJP','ZOJP - Javan pig, Warty Pig; Indonesia, Philippines (Sus verrucosus)'), ('PGACOMCHARCODE-APH','ZOJS','ZOJS - Japanese Serow (Nemorhaedus crispus)'), ('PGACOMCHARCODE-APH','ZOKL','ZOKL - Lesser Kudu (Tragelaphus imberbis)'), ('PGACOMCHARCODE-APH','ZOKO','ZOKO - Kouprey (Bos sauveli)'), ('PGACOMCHARCODE-APH','ZOKV','ZOKV - Kting Voar (Pseudonovibos spiralis)'), ('PGACOMCHARCODE-APH','ZOLA','ZOLA - Lowland Anoa (Bubalus depressicornis)'), ('PGACOMCHARCODE-APH','ZOMA','ZOMA - Markhor (Capra falconeri )'), ('PGACOMCHARCODE-APH','ZOMN','ZOMN - Mountain Nyala (Tragelaphus buxtoni)'), ('PGACOMCHARCODE-APH','ZOMO','ZOMO - Mountain Anoa (Bubalus quarlesi) '), ('PGACOMCHARCODE-APH','ZOMS','ZOMS - Mainland Serow (Nemorhaedus sumatraensis)'), ('PGACOMCHARCODE-APH','ZOMX','ZOMX - Musk Ox (Ovibos moschatus )'), ('PGACOMCHARCODE-APH','ZONB','ZONB - Nilgai or Blue Bull (Boselaphus tragocamelus)'), ('PGACOMCHARCODE-APH','ZONI','ZONI - Nubian Ibex (Capra nubiana ) '), ('PGACOMCHARCODE-APH','ZONT','ZONT - Nilgiri Tahr (Hemitragus hylocrius )'), ('PGACOMCHARCODE-APH','ZONY','ZONY - Nyala (Tragelaphus angasii)'), ('PGACOMCHARCODE-APH','ZOOZ','ZOOZ - Other Zoo Animal '), ('PGACOMCHARCODE-APH','ZOPH','ZOPH - Pigmy Hog; NE India, Himalayas (Sus salvanius)'), ('PGACOMCHARCODE-APH','ZOPO','ZOPO - Possum: Common Brushtail Possum (Trichosurus vulpecula)'), ('PGACOMCHARCODE-APH','ZOPW','ZOPW - Philippine Warty Pig (Sus philippensis)'), ('PGACOMCHARCODE-APH','ZOPY','ZOPY - Pyrenean Chamois (Rupicapra pyrenaica )'), ('PGACOMCHARCODE-APH','ZORB','ZORB - Rhinoceros: Black Rhinoceros (Diceros bicornis)'), ('PGACOMCHARCODE-APH','ZORG','ZORG - Red Goral (Nemorhaedus baileyi )'), ('PGACOMCHARCODE-APH','ZORH','ZORH - Red River Hog; (Potamochoerus porcus)'), ('PGACOMCHARCODE-APH','ZORI','ZORI - Rhinoceros: Indian Rhinoceros or Great One-horned Rhinoceros (Rhinoceros unicornis)'), ('PGACOMCHARCODE-APH','ZORJ','ZORJ - Rhinoceros: Javan Rhinoceros (Rhinoceros sondaicus)'), ('PGACOMCHARCODE-APH','ZORM','ZORM - Rocky Mountain Goat (Oreamnos americanus)'), ('PGACOMCHARCODE-APH','ZORS','ZORS - Rhinoceros: Sumatran Rhinoceros (Dicerorhinus sumatrensis)'), ('PGACOMCHARCODE-APH','ZORW','ZORW - Rhinoceros: White Rhinoceros (Ceratotherium simum)'), ('PGACOMCHARCODE-APH','ZOSA','ZOSA - Saola (Pseudoryx nghetinhensis)'), ('PGACOMCHARCODE-APH','ZOSG','ZOSG - Sitatunga (Tragelaphus spekeii)'), ('PGACOMCHARCODE-APH','ZOSI','ZOSI - Siberian Ibex (Capra sibirica )'), ('PGACOMCHARCODE-APH','ZOSS','ZOSS - Snow sheep (Ovis nivicola)'), ('PGACOMCHARCODE-APH','ZOSX','ZOSX - Spanish Ibex (Capra pyrenaica )'), ('PGACOMCHARCODE-APH','ZOTA','ZOTA - Takin (Budorcas taxicolor )'), ('PGACOMCHARCODE-APH','ZOTH','ZOTH - Himalayan Tahr (Hemitragus jemlahicus )'), ('PGACOMCHARCODE-APH','ZOTW','ZOTW - Timor Warty Pig (Sus timoriensis)'), ('PGACOMCHARCODE-APH','ZOUO','ZOUO - Urial (Ovis orientalis)'), ('PGACOMCHARCODE-APH','ZOUV','ZOUV - Urial (Ovis vignei)'), ('PGACOMCHARCODE-APH','ZOWB','ZOWB - Water Buffalo (Bubalus arnee)'), ('PGACOMCHARCODE-APH','ZOWC','ZOWC - West Caucasian Tur (Capra caucasia)'), ('PGACOMCHARCODE-APH','ZOWI','ZOWI - Wisent (Bison bonasus)'), ('PGACOMCHARCODE-APH','ZOYA','ZOYA - Yak (Bos mutus)'), ('PGACOMCHARCODE-APH','ZTBA','ZTBA - Tapir: Bairds Tapir (Tapirus bairdii)'), ('PGACOMCHARCODE-APH','ZTBZ','ZTBZ - Tapir: Brazilian Tapir or Lowland Tapir (Tapirus terrestris)'), ('PGACOMCHARCODE-APH','ZTCO','ZTCO - Tenrec: Cowans Shrew Tenrec (Microgale cowani)'), ('PGACOMCHARCODE-APH','ZTDO','ZTDO - Tenrec: Dobsons Shrew Tenrec (Microgale dobsoni)'), ('PGACOMCHARCODE-APH','ZTDS','ZTDS - Tenrec: Drouhards Shrew Tenrec (Microgale drouhardi)'), ('PGACOMCHARCODE-APH','ZTDY','ZTDY - Tenrec: Dryad Shrew Tenrec (Microgale dryas)'), ('PGACOMCHARCODE-APH','ZTFT','ZTFT - Tenrec: Four-toed Rice Tenrec (Oryzorictes tetradactylus)'), ('PGACOMCHARCODE-APH','ZTGH','ZTGH - Tenrec: Greater Hedgehog Tenrec (Setifer setosus)'), ('PGACOMCHARCODE-APH','ZTGL','ZTGL - Tenrec: Greater Long-tailed Shrew Tenrec (Microgale principula)'), ('PGACOMCHARCODE-APH','ZTGO','ZTGO - Tenrec: Giant Otter Shrew (Potamogale velox)'), ('PGACOMCHARCODE-APH','ZTGS','ZTGS - Tenrec: Gracile Shrew Tenrec (Microgale gracilis)'), ('PGACOMCHARCODE-APH','ZTHS','ZTHS - Tenrec: Highland Streaked Tenrec (Hemicentetes nigriceps)'), ('PGACOMCHARCODE-APH','ZTLE','ZTLE - Tenrec: Large-eared Tenrec (Geogale aurita)'), ('PGACOMCHARCODE-APH','ZTLH','ZTLH - Tenrec: Lesser Hedgehog Tenrec (Echinops telfairi)'), ('PGACOMCHARCODE-APH','ZTLL','ZTLL - Tenrec: Lesser Long-tailed Shrew Tenrec (Microgale longicaudata)'), ('PGACOMCHARCODE-APH','ZTLS','ZTLS - Tenrec: Least Shrew Tenrec (Microgale pusilla)'), ('PGACOMCHARCODE-APH','ZTLW','ZTLW - Tenrec: Lowland Streaked Tenrec (Hemicentetes semispinosus)'), ('PGACOMCHARCODE-APH','ZTMO','ZTMO - Tapir: Malayan Tapir (Tapirus indicus)'), ('PGACOMCHARCODE-APH','ZTMR','ZTMR - Tenrec: Mole-like Rice Tenrec (Oryzorictes hova)'), ('PGACOMCHARCODE-APH','ZTMS','ZTMS - Tenrec: Montane Shrew Tenrec (Microgale monticola)'), ('PGACOMCHARCODE-APH','ZTMT','ZTMT - Tapir: Mountain Tapir (Tapirus pinchaque)'), ('PGACOMCHARCODE-APH','ZTNA','ZTNA - Tenrec: Nasolos Shrew Tenrec (Microgale nasoloi)'), ('PGACOMCHARCODE-APH','ZTNI','ZTNI - Tenrec: Nimba Otter Shrew (Micropotamogale lamottei)'), ('PGACOMCHARCODE-APH','ZTNS','ZTNS - Tenrec: Naked-nosed Shrew Tenrec (Microgale gymnorhyncha)'), ('PGACOMCHARCODE-APH','ZTOA','ZTOA - Tortoise: African Spurred Tortoise or Sulcata Tortoise (Geochelone sulcata)'), ('PGACOMCHARCODE-APH','ZTOB','ZTOB - Tortoise: Bells Hinge-Backed Tortoise (Kinixys belliana)'), ('PGACOMCHARCODE-APH','ZTOL','ZTOL - Tortoise: Leopard Tortoise, Geochelone pardalis '), ('PGACOMCHARCODE-APH','ZTPS','ZTPS - Tenrec: Pale Shrew Tenrec (Microgale fotsifotsy)'), ('PGACOMCHARCODE-APH','ZTPY','ZTPY - Tenrec: Pygmy Shrew Tenrec (Microgale parvula)'), ('PGACOMCHARCODE-APH','ZTRO','ZTRO - Tenrec: Ruwenzori Otter Shrew (Micropotamogale ruwenzorii)'), ('PGACOMCHARCODE-APH','ZTSS','ZTSS - Tenrec: Short-tailed Shrew Tenrec (Microgale brevicaudata)'), ('PGACOMCHARCODE-APH','ZTST','ZTST - Tenrec: Shrew-toothed Shrew Tenrec (Microgale soricoides)'), ('PGACOMCHARCODE-APH','ZTSW','ZTSW - Taiwan Serow (Nemorhaedus swinhoei )'), ('PGACOMCHARCODE-APH','ZTTH','ZTTH - Tenrec: Thomass Shrew Tenrec (Microgale thomasi)'), ('PGACOMCHARCODE-APH','ZTTL','ZTTL - Tenrec: Tail-less Tenrec (Tenrec ecaudatus)'), ('PGACOMCHARCODE-APH','ZTTS','ZTTS - Tenrec: Taiva Shrew Tenrec (Microgale taiva)'), ('PGACOMCHARCODE-APH','ZTTW','ZTTW - Tamaraw (Bubalus mindorensis)'), ('PGACOMCHARCODE-APH','ZTTZ','ZTTZ - Tenrec: Talazacs Shrew Tenrec (Microgale talazaci)'), ('PGACOMCHARCODE-APH','ZTWB','ZTWB - Tenrec: Web-footed Tenrec (Limnogale mergulus)'), ('PGACOMCHARCODE-APH','ZWPV','ZWPV - Vietnamese Warty Pig (Sus bucculentus)'), ('PGACOMCHARCODE-APH','ZWPY','ZWPY - Visasyas Warty Pig (Sus cebifrons)'), ('PGALPCOTRANSTYPE-APHAAC','1','1 - Single use'), ('PGALPCOTRANSTYPE-APHABS','1','1 - Single use'), ('PGALPCOTRANSTYPE-APHAPL','1','1 - Single use'), ('PGALPCOTRANSTYPE-APHAPQ','1','1 - Single use'), ('PGALPCOTRANSTYPE-APHAVS','1','1 - Single use'), ('PGALPCOTRANSTYPE-APHABS','2','2 - Continuous'), ('PGALPCOTRANSTYPE-APHAPL','2','2 - Continuous'), ('PGALPCOTRANSTYPE-APHAPQ','2','2 - Continuous'), ('PGALPCOTRANSTYPE-APHAVS','2','2 - Continuous'), ('PGALPCOTRANSTYPE-APHABS','3','3 - General'), ('PGALPCOTRANSTYPE-APHAPL','3','3 - General'), ('PGALPCOTRANSTYPE-APHAPQ','3','3 - General'), ('PGALPCOTRANSTYPE-APHAVS','3','3 - General'), ('PGALPCOTYPE-APH','A06','A06 - APHIS 2006, Importation of Veterinary Biological Products'), ('PGALPCOTYPE-APH','A1','A1 - APHIS Phytosanitary certificate (Foreign)'), ('PGALPCOTYPE-APH','FWF','FWF - FWS Foreign CITES Document'), ('PGALPCODATEQ-APHAPL','1','1 - Expiration Date'), ('PGALPCODATEQ-APHAPL','2','2 - Effective Date'), ('PGALPCODATEQ-APHAPL','3','3 - Date Issued or Signed'), ('PGALPCODATEQ-APHAPL','4','4 - Date Application Received'), ('PGADOCID','851','851 - APHIS Future use'), ('PGADOCID-APH','851','851 - APHIS Future use'), ('PGADOCID','853','853 - Producers / Manufactures Statement APHIS document utilized for animal products.'), ('PGADOCID-APH','853','853 - Producers / Manufactures Statement APHIS document utilized for animal products.'), ('PGACONTAINERTYPE-APHAAC','1','1 - Refrigerated'), ('PGACONTAINERTYPE-APHAPQ','1','1 - Refrigerated'), ('PGACONTAINERTYPE-APHAVS','1','1 - Refrigerated'), ('PGACONTAINERTYPE-APHBRS','1','1 - Refrigerated'), ('PGACONTAINERTYPE-APHAAC','2','2 - Not refrigerated'), ('PGACONTAINERTYPE-APHAPQ','2','2 - Not refrigerated'), ('PGACONTAINERTYPE-APHAVS','2','2 - Not refrigerated'), ('PGACONTAINERTYPE-APHBRS','2','2 - Not refrigerated'), ('PGAINSPECLABSTATUS-APH','I','I - Product location for regulatory authority inspection'), ('PGAINSPECLABSTATUS-APH','L','L - Lab testing previously performed'), ('PGAINSPECLABSTATUS-APH','R','R - Request for inspection'), ('PGAINSPECLABSTATUS-APH','S','S - Inspection previously scheduled')) x (FieldName, Code, Decode); DELETE g FROM #tmgglobalcodes t INNER JOIN tmgglobalcodes g ON t.fieldname=g.fieldname and t.code=g.code truncate table #tmgglobalcodes INSERT INTO #tmgglobalcodes(FieldName, Code, Decode) SELECT FieldName, Code, Decode FROM (VALUES ('PGAINTUSECODE','150.013','150.013 - For Pharmacy Compounding'), ('PGAINTUSECODE','155.009','155.009 - Importation of a drug constituent part for use in a drug-device combination product'), ('PGAINTUSECODE','920.003','920.003 -Animal or plant for commercial sale'), ('PGAINTUSECODE','920.004','920.004 -Animal or plant for biomedical research'), ('PGAINTUSECODE','920.005','920.005 -Animal or plant for scientific study other than biomedical research'), ('PGAINTUSECODE','920.006','920.006 -Animal or plant for educational use'), ('PGAINTUSECODE','920.007','920.007 -Animal or plant for personal use other than hunting trophy'), ('PGAINTUSECODE','950.001','950.001 - Import of a single-use medical device for domestic reprocessing'), ('PGAINTUSECODE','950.002','950.002 - Import of a multi-use medical device for domestic reprocessing'), ('PGAINTUSECODE','020.001','020.001 - Live animal for breeding in captivity or plant for artificial propagation (FWS),'), ('PGAINTUSECODE','035.001','035.001 - For introduction or reintroduction into the wild (FWS),'), ('PGAINTUSECODE','080.011','080.011 - Prescription health product not subject to an approved application (FDA),'), ('PGAINTUSECODE','085.000','085.000 - For Veterinary Medical Use as a Non-Food Product'), ('PGAINTUSECODE','085.001','085.001 - Bulk finished veterinary drug product for consumer packaging (APHIS),'), ('PGAPRODCODE','UNS','UNS - UN Standard Products and Services Code (UNSPSC), Commodity Code'), ('PGASRCTYPECODE','294','294 - Country of Refusal'), ('PGAPROCTYPECODE-APH','AAD01','AAD01 - APHIS - Acid Delinting'), ('PGAPROCTYPECODE-APH','ACD01','ACD01 - APHIS - Chemical dip'), ('PGAPROCTYPECODE-APH','ACGR1','ACGR1 - APHIS - Chemical-growth regulator'), ('PGAPROCTYPECODE-APH','ACH01','ACH01 - APHIS - Chemical'), ('PGAPROCTYPECODE-APH','ACHW1','ACHW1 - APHIS - Chemical and hot water'), ('PGAPROCTYPECODE-APH','ACS01','ACS01 - APHIS - Chemical Spray'), ('PGAPROCTYPECODE-APH','ACT01','ACT01 - APHIS - Cold Treatment'), ('PGAPROCTYPECODE-APH','ACTM1','ACTM1 - APHIS - Cold Treatment followed by Methyl Bromide'), ('PGAPROCTYPECODE-APH','ACW01','ACW01 - APHIS - Chemical wash'), ('PGAPROCTYPECODE-APH','ADF01','ADF01 - APHIS - Defoliate'), ('PGAPROCTYPECODE-APH','ADH01','ADH01 - APHIS - Dry Heat'), ('PGAPROCTYPECODE-APH','ADP01','ADP01 - APHIS - Depulping'), ('PGAPROCTYPECODE-APH','AEX01','AEX01 - APHIS - Excision'), ('PGAPROCTYPECODE-APH','AFH01','AFH01 - APHIS - Flash heat'), ('PGAPROCTYPECODE-APH','AFRZ1','AFRZ1 - APHIS - Freezing'), ('PGAPROCTYPECODE-APH','AGRD1','AGRD1 - APHIS - Grinding'), ('PGAPROCTYPECODE-APH','AHP01','AHP01 - APHIS - High Press. H2O Spray'), ('PGAPROCTYPECODE-APH','AHPS1','AHPS1 - APHIS - High Pressure Steam'), ('PGAPROCTYPECODE-APH','AHPW1','AHPW1 - APHIS - High Pressure wash'), ('PGAPROCTYPECODE-APH','AHR01','AHR01 - APHIS - Hand Removal'), ('PGAPROCTYPECODE-APH','AHT01','AHT01 - APHIS - Heat'), ('PGAPROCTYPECODE-APH','AHTF1','AHTF1 - APHIS - High Temp Forced Air'), ('PGAPROCTYPECODE-APH','AHTS1','AHTS1 - APHIS - Heat or Steam'), ('PGAPROCTYPECODE-APH','AHW01','AHW01 - APHIS - Hot Water'), ('PGAPROCTYPECODE-APH','AIR01','AIR01 - APHIS - Irradiation'), ('PGAPROCTYPECODE-APH','AKS01','AKS01 - APHIS - Kiln Sterilization '), ('PGAPROCTYPECODE-APH','AMBC1','AMBC1 - APHIS - Methyl Bromide followed by Cold Treatment'), ('PGAPROCTYPECODE-APH','AMS01','AMS01 - APHIS - Mechanical Separation '), ('PGAPROCTYPECODE-APH','APH01','APH01 - APHIS - Phosphine'), ('PGAPROCTYPECODE-APH','APSS1','APSS1 - APHIS - Steam sterilization'), ('PGAPROCTYPECODE-APH','AQF01','AQF01 - APHIS - Quick Freeze'), ('PGAPROCTYPECODE-APH','ASCR1','ASCR1 - APHIS - Screening'), ('PGAPROCTYPECODE-APH','ASF01','ASF01 - APHIS - Sulfuryl fluoride'), ('PGAPROCTYPECODE-APH','AST01','AST01 - APHIS - Steam'), ('PGAPROCTYPECODE-APH','ATR','ATR - APHIS - Other treatment'), ('PGAPROCTYPECODE-APH','AVDIP','AVDIP - APHIS - Veterinary Service - Dipping'), ('PGAPROCTYPECODE-APH','AVH01','AVH01 - APHIS - Vapor Heat'), ('PGAPROCTYPECODE-APH','AVS01','AVS01 - PHIS - Vacuum steam'), ('PGAPROCTYPECODE-APH','AWW01','AWW01 - APHIS - Water Wash'), ('PGAPROCTYPECODE-APH','MB001','MB001 - APHIS - Methyl Bromide'), ('PGACATEGORYCODE','301','301 - Edible Meat and poultry: Meat and Meat Products'), ('PGACATEGORYCODE-APH','301','301 - Edible Meat and poultry: Meat and Meat Products'), ('PGACATEGORYCODE','303','303 - Edible Eggs and Egg Products'), ('PGACATEGORYCODE-APH','303','303 - Edible Eggs and Egg Products'), ('PGACATEGORYCODE','316','316 - Trophies (for Personal Display),'), ('PGACATEGORYCODE-APH','316','316 - Trophies (for Personal Display),'), ('PGACATEGORYCODE','318','318 - Manure, Fertilizers and Soil Amendments/Enhancers'), ('PGACATEGORYCODE-APH','318','318 - Manure, Fertilizers and Soil Amendments/Enhancers'), ('PGACATEGORYCODE','401','401 - Dormant Bulbs and Underground Portions of Dormant Perennials'), ('PGACATEGORYCODE-APH','401','401 - Dormant Bulbs and Underground Portions of Dormant Perennials'), ('PGACATEGORYCODE','402','402 - Plants for Planting or Propagation (whole),'), ('PGACATEGORYCODE-APH','402','402 - Plants for Planting or Propagation (whole),'), ('PGACATEGORYCODE','603','603 - Below Ground Parts'), ('PGACATEGORYCODE-APH','603','603 - Below Ground Parts'), ('PGACATEGORYCODE','722','722 -Wood Products '), ('PGACATEGORYCODE-APH','722','722 -Wood Products '), ('PGACOMQUALIFIERCODE','A32','A32 - Species Composition'), ('PGACOMQUALIFIERCODE-APH','A32','A32 - Species Composition'), ('PGALPCOTYPE-APH','A03','A03 - Meat/Sanitary Certificate'), ('PGALPCOTYPE-APH','A04','A04 - ** APHIS Future Use'), ('PGALPCOTYPE-APH','A24','A24 - APHIS VS 16-6A, Veterinary Permit to Import Controlled Materials and Organisms and Vectors'), ('PGALPCOTYPE-APH','A25','A25 - Manufacturer’s Statement/Certificate/Declaration'), ('PGALPCOTYPE-APH','A26','A26 - APHIS VS 17-29, Declaration of Importation (Animal,s Animal Semen, Animal Embryos, Birds, Poultry, or Hatching Eggs),'), ('PGALPCOTYPE-APH','A27','A27 - APHIS Seed Analysis Certificate'), ('PGALPCOTYPE-APH','A34','A34 - APHIS BRS 2000, Application for Permit or Courtesy Permit for Movement or Release of Genetically Engineered Organisms.'), ('PGAINSPECLABSTATUS-APH','A','A - Anticipated arrival information')) x (FieldName, Code, Decode); UPDATE g SET Decode = t.Decode FROM #tmgglobalcodes t INNER JOIN tmgglobalcodes g ON t.fieldname=g.fieldname and t.code=g.code TRUNCATE TABLE #tmgglobalcodes INSERT INTO #tmgglobalcodes(FieldName, Code, Decode) SELECT FieldName, Code, Decode FROM (VALUES ('PGAINTUSECODE','010.001','010.001 - For use as an unprocessed animal product for animal food, chews, treats, or supplements'), ('PGAINTUSECODE','010.002','010.002 - For use as animal food, chews, treats, or supplements in its present form'), ('PGAINTUSECODE','020.002','020.002 - Viable propagules for breeding plants used in conservation programs (APHIS)'), ('PGAINTUSECODE','020.003','020.003 - Viable propagules for breeding plants for purposes other than conservation programs (APHIS)'), ('PGAINTUSECODE','021.000','021.000 - For Cloning as an Animal or Plant'), ('PGAINTUSECODE','025.000','025.000 - For Grow Out or Increase as an Animal Or Plant'), ('PGAINTUSECODE','025.001','025.001 - For hatching eggs'), ('PGAINTUSECODE','035.002','035.002 - For introduction or reintroduction into the wild for other than biocontrol purposes (APHIS)'), ('PGAINTUSECODE','035.003','035.003 - For introduction or reintroduction into the environment for biocontrol purposes (APHIS)'), ('PGAINTUSECODE','080.000','080.000 - For Human Medical Use as Medical Device'), ('PGAINTUSECODE','080.001','080.001 - Import of a device, accessory or component (regulated as a finished Medical Device) intended to be used as a finished medical device'), ('PGAINTUSECODE','080.002','080.002 - Medical Device intended for domestic refurbishing'), ('PGAINTUSECODE','080.003','080.003 - Domestically- manufactured Medical Device intended for use as part of a medical device convenience kit'), ('PGAINTUSECODE','080.004','080.004 - Foreign-manufactured Medical Device intended for use as part of a medical device convenience kit'), ('PGAINTUSECODE','080.005','080.005 - Medical Device constituent part to be used in a devicedrug combination product'), ('PGAINTUSECODE','080.006','080.006 - Medical Device imported for use under enforcement discretion'), ('PGAINTUSECODE','080.007','080.007 - Components for further manufacturing into a finished medical device.'), ('PGAINTUSECODE','080.008','080.008 - Importation of a device component for use in a device-drug combination product.'), ('PGAINTUSECODE','080.012','080.012 - Prescription health product subject to an approved application (FDA)'), ('PGAINTUSECODE','085.002','085.002 - For use as a biological product to treat animals or diagnose animal diseases (APHIS)'), ('PGAINTUSECODE','085.003','085.003 - Finished Animal Drug product subject of an approved application (FDA)'), ('PGAINTUSECODE','085.004','085.004 - Finished Animal Drug product not subject of an approved application (FDA)'), ('PGAINTUSECODE','100.009','100.009 - Motorized vehicles or engines for personal use intended for off-road use'), ('PGAINTUSECODE','100.010','100.010 - Motorized vehicles or engines for personal use intended for on-road use'), ('PGAINTUSECODE','100.011','100.011 - To be used outdoors for decorative use and not for planting (APHIS)'), ('PGAINTUSECODE','100.012','100.012 - To be used indoors for decorative use and not for planting (APHIS)'), ('PGAINTUSECODE','100.013','100.013 - For use as cut flowers (APHIS)'), ('PGAINTUSECODE','100.014','100.014 - Animal or plant product for use as a dietary supplement (APHIS)'), ('PGAINTUSECODE','100.015','100.015 - Animal or plant for use as a pharmaceutical product (APHIS)'), ('PGAINTUSECODE','100.016','100.016 - For use as a wood product'), ('PGAINTUSECODE','100.017','100.017 - For use as a house or gardening plant'), ('PGAINTUSECODE','100.018','100.018 - Organisms other than plants or animals for personal use (APHIS)'), ('PGAINTUSECODE','100.019','100.019 - For use as soil (as such) and related materials (APHIS)'), ('PGAINTUSECODE','100.020','100.020 - For growing media (APHIS)'), ('PGAINTUSECODE','100.021','100.021 - For personal use as a pet (APHIS)'), ('PGAINTUSECODE','100.022','100.022 - Animals for use on a farm or ranch (APHIS)'), ('PGAINTUSECODE','100.023','100.023 - Used farm machinery, vehicles, or trailers (APHIS)'), ('PGAINTUSECODE','110.004','110.004 - For competitive racing events'), ('PGAINTUSECODE','130.037','130.037 - Packaged tobacco for re-packaging and re-labelling'), ('PGAINTUSECODE','130.038','130.038 - To be used outdoors for decorative use and not for planting (APHIS)'), ('PGAINTUSECODE','130.039','130.039 - To be used indoors for decorative use and not for planting (APHIS)'), ('PGAINTUSECODE','130.040','130.040 - For use as cut flowers (APHIS)'), ('PGAINTUSECODE','130.041','130.041 - Animal or plant product for use as a dietary supplement (APHIS)'), ('PGAINTUSECODE','130.042','130.042 - Animal or plant product for use as a pharmaceutical product (APHIS)'), ('PGAINTUSECODE','130.043','130.043 - For use as a wood product'), ('PGAINTUSECODE','130.044','130.044 - For use as a house or gardening plant'), ('PGAINTUSECODE','130.045','130.045 - Organisms for commercial sale other than plants or animals (APHIS)'), ('PGAINTUSECODE','130.046','130.046 - For use as soil (as such) and related materials (APHIS)'), ('PGAINTUSECODE','130.047','130.047 - For use as growing media (APHIS)'), ('PGAINTUSECODE','130.048','130.048 - Live farm animals for use on a farm or ranch (APHIS)'), ('PGAINTUSECODE','130.049','130.049 - Animal or plant product for use as a dietary supplement (APHIS)'), ('PGAINTUSECODE','130.050','130.050 - Used farm machinery, vehicles, or trailers for commercial sale (APHIS)'), ('PGAINTUSECODE','130.051','130.051 - For commercial use as a hunting trophy (APHIS)'), ('PGAINTUSECODE','130.052','130.052 - Pet for commercial sale (APHIS)'), ('PGAINTUSECODE','150.017','150.017 - Importation of a drug component for use in a drug-device combination product'), ('PGAINTUSECODE','150.018','150.018 - For processing as a wood product'), ('PGAINTUSECODE','150.019','150.019 - Animal products for making fertilizer (APHIS)'), ('PGAINTUSECODE','150.020','150.020 - Active Pharmaceutical Ingredient (API)/bulk animal drug substance for use in a finished animal drug product subject of an approved application (FDA)'), ('PGAINTUSECODE','150.021','150.021 - Active Pharmaceutical Ingredient (API)/bulk animal drug substance for use in a finished animal drug product not subject of an approved application (FDA)'), ('PGAINTUSECODE','150.022','150.022 - Active Pharmaceutical Ingredient/bulk drug substance for processing into a pharmaceutical product not subject to an approved application (FDA)'), ('PGAINTUSECODE','155.010','155.010 - For commercial assembly into a wood product'), ('PGAINTUSECODE','180.014','180.014 - For bench testing and nonclinical research use'), ('PGAINTUSECODE','180.015','180.015 - For clinical investigational use'), ('PGAINTUSECODE','180.016','180.016 - For testing or lot release'), ('PGAINTUSECODE','180.017','180.017 - Chemicals for research and development in a pharmaceutical product – laboratory testing only; no human or animal use'), ('PGAINTUSECODE','180.018','180.018 - For research and development in a pharmaceutical product – investigational use on animals'), ('PGAINTUSECODE','180.019','180.019 - Animal, animal product, or plant for research and development in a cosmetic product or byproduct (APHIS)'), ('PGAINTUSECODE','180.020','180.020 - Animal, animal product, or plant for research and development into a food additive or food byproduct (APHIS)'), ('PGAINTUSECODE','180.021','180.021 - Animal, animal product, or plant for research and development in a pharmaceutical product or byproduct (APHIS)'), ('PGAINTUSECODE','180.022','180.022 - Arthropod, animal, animal product, or plant for research concerning anatomical and morphological studies (APHIS)'), ('PGAINTUSECODE','180.023','180.023 - For research and development in biotechnology (APHIS)'), ('PGAINTUSECODE','180.024','180.024 - For research and development concerning soil including organisms contained within the soil (APHIS)'), ('PGAINTUSECODE','180.025','180.025 - Animal or plant for research with an introduction or reintroduction into the environment for biocontrol purposes (APHIS)'), ('PGAINTUSECODE','180.026','180.026 - Finished drug or API intended for use in a bioequivalence or bioavailability study in humans'), ('PGAINTUSECODE','250.004','250.004 - For use as a food ingredient to be pasteurized and not for immediate consumption'), ('PGAINTUSECODE','250.005','250.005 - For use as casing to contain food'), ('PGAINTUSECODE','920.000','920.000 - For Return to the US (US Goods Returned)'), ('PGAINTUSECODE','920.001','920.001 - For refund/overstock to manufacturer'), ('PGAINTUSECODE','920.002','920.002 - To be sold by party other than original manufacturer'), ('PGAINTUSECODE','940.000','940.000 - For Compassionate/Emergency Use of a Non Food Product'), ('PGAINTUSECODE','950.000','950.000 - For Reprocessing of a Non Food Product'), ('PGAINTUSECODE','970.000','970.000 - For Export'), ('PGAINTUSECODE','970.001','970.001 - For further manufacturing into an export-only product'), ('PGAPRODCODE','AVB','AVB - APHIS Veterinary Biologies Product Code'), ('PGAPRODCODE-APH','GPC','GPC - Global Product Classification Brick Code'), ('PGAPRODCODE-APH','TSN','TSN - Taxonomic Serial Number'), ('PGAPRODCODE-APH','UNS','UNS - UN Standard Products and Services Code (UNSPSC) Commodity Code'), ('PGAELMTUOM-APH','ML','ML - Milliliter'), ('PGAELMTUOM-APH','CTL','CTL - Centiliter'), ('PGAELMTUOM-APH','L','L - Liter'), ('PGAELMTUOM-APH','KL','KL - Kiloliter'), ('PGASRCTYPECODE','SVH','SVH - Small Vessel Harvest'), ('PGAPROCTYPECODE','AAD01','AAD01 - APHIS - Acid Delinting'), ('PGAPROCTYPECODE','ACD01','ACD01 - APHIS - Chemical dip'), ('PGAPROCTYPECODE','ACGR1','ACGR1 - APHIS - Chemical-growth regulator'), ('PGAPROCTYPECODE','ACH01','ACH01 - APHIS - Chemical'), ('PGAPROCTYPECODE','ACHW1','ACHW1 - APHIS - Chemical and hot water'), ('PGAPROCTYPECODE','ACS01','ACS01 - APHIS - Chemical Spray'), ('PGAPROCTYPECODE','ACT01','ACT01 - APHIS - Cold Treatment'), ('PGAPROCTYPECODE','ACTM1','ACTM1 - APHIS - Cold Treatment followed by Methyl Bromide'), ('PGAPROCTYPECODE','ACW01','ACW01 - APHIS - Chemical wash'), ('PGAPROCTYPECODE','ADF01','ADF01 - APHIS - Defoliate'), ('PGAPROCTYPECODE','ADH01','ADH01 - APHIS - Dry Heat'), ('PGAPROCTYPECODE','ADP01','ADP01 - APHIS - Depulping'), ('PGAPROCTYPECODE','AEX01','AEX01 - APHIS - Excision'), ('PGAPROCTYPECODE','AFH01','AFH01 - APHIS - Flash heat'), ('PGAPROCTYPECODE','AFRZ1','AFRZ1 - APHIS - Freezing'), ('PGAPROCTYPECODE','AGRD1','AGRD1 - APHIS - Grinding'), ('PGAPROCTYPECODE','AHP01','AHP01 - APHIS - High Press. H2O Spray'), ('PGAPROCTYPECODE','AHPS1','AHPS1 - APHIS - High Pressure Steam'), ('PGAPROCTYPECODE','AHPW1','AHPW1 - APHIS - High Pressure wash'), ('PGAPROCTYPECODE','AHR01','AHR01 - APHIS - Hand Removal'), ('PGAPROCTYPECODE','AHT01','AHT01 - APHIS - Heat'), ('PGAPROCTYPECODE','AHTF1','AHTF1 - APHIS - High Temp Forced Air'), ('PGAPROCTYPECODE','AHTS1','AHTS1 - APHIS - Heat or Steam'), ('PGAPROCTYPECODE','AHW01','AHW01 - APHIS - Hot Water'), ('PGAPROCTYPECODE','AIR01','AIR01 - APHIS - Irradiation'), ('PGAPROCTYPECODE','AKS01','AKS01 - APHIS - Kiln Sterilization'), ('PGAPROCTYPECODE','AMBC1','AMBC1 - APHIS - Methyl Bromide followed by Cold Treatment'), ('PGAPROCTYPECODE','AMS01','AMS01 - APHIS - Mechanical Separation'), ('PGAPROCTYPECODE','APH01','APH01 - APHIS - Phosphine'), ('PGAPROCTYPECODE','APSS1','APSS1 - APHIS - Steam sterilization'), ('PGAPROCTYPECODE','AQF01','AQF01 - APHIS - Quick Freeze'), ('PGAPROCTYPECODE','ASCR1','ASCR1 - APHIS - Screening'), ('PGAPROCTYPECODE','ASF01','ASF01 - APHIS - Sulfuryl fluoride'), ('PGAPROCTYPECODE','AST01','AST01 - APHIS - Steam'), ('PGAPROCTYPECODE','AVDIP','AVDIP - APHIS - Veterinary Service - Dipping'), ('PGAPROCTYPECODE','AVH01','AVH01 - APHIS - Vapor Heat'), ('PGAPROCTYPECODE','AVHTD','AVHTD - APHIS- Heat Treatment'), ('PGAPROCTYPECODE','AVRAB','AVRAB - APHIS- Rabies Vaccination (Canine)'), ('PGAPROCTYPECODE','AVS01','AVS01 - PHIS - Vacuum steam'), ('PGAPROCTYPECODE','AWW01','AWW01 - APHIS - Water Wash'), ('PGAPROCTYPECODE','MB001','MB001 - APHIS - Methyl Bromide'), ('PGAPROCTYPECODE','ATR','ATR - APHIS - Other treatment'), ('PGAITEMIDNUMCODE-APH','BND','BND - Band'), ('PGAITEMIDNUMCODE-APH','BQG','BQG - Bouquet Grouping'), ('PGAITEMIDNUMCODE-APH','BRD','BRD - Brand'), ('PGAITEMIDNUMCODE-APH','CHP','CHP - Microchip'), ('PGAITEMIDNUMCODE-APH','LAT','LAT - Live Animal Tag'), ('PGAITEMIDNUMCODE-APH','NMT','NMT - NMFS Tag Number'), ('PGAITEMIDNUMCODE-APH','RID','RID - RFID'), ('PGAITEMIDNUMCODE-APH','SRX','SRX - Slaughter number'), ('PGAITEMIDNUMCODE-APH','SRY','SRY - Official animal number'), ('PGACATEGORYCODE','101','101 - Bos and Bison (Domestic Cattle, Humped cattle, and Bison)'), ('PGACATEGORYCODE-AP0100-APH','101','101 - Bos and Bison (Domestic Cattle, Humped cattle, and Bison)'), ('PGACATEGORYCODE-AP0100-APH','102','102 - Cervidae (Deer, Elk, Moose)'), ('PGACATEGORYCODE','102','102 - Cervidae (Deer, Elk, Moose)'), ('PGACATEGORYCODE-AP0100-APH','103','103 - Camelidae (Camel)'), ('PGACATEGORYCODE','103','103 - Camelidae (Camel)'), ('PGACATEGORYCODE-AP0100-APH','104','104 - Capra (Goat)'), ('PGACATEGORYCODE','104','104 - Capra (Goat)'), ('PGACATEGORYCODE-AP0100-APH','105','105 - Ovis (Sheep)'), ('PGACATEGORYCODE','105','105 - Ovis (Sheep)'), ('PGACATEGORYCODE-AP0100-APH','106','106 - Suinae (Swine)'), ('PGACATEGORYCODE-AP0100-APH','107','107 - Equus (Horse)'), ('PGACATEGORYCODE','107','107 - Equus (Horse)'), ('PGACATEGORYCODE-AP0100-APH','108','108 - Trichosurus (brushtail possums)'), ('PGACATEGORYCODE','108','108 - Trichosurus (brushtail possums)'), ('PGACATEGORYCODE-AP0100-APH','109','109 - Erinaceinae (Hedgehog)'), ('PGACATEGORYCODE-AP0100-APH','110','110 - Tenrecidae (Tenrec)'), ('PGACATEGORYCODE-AP0100-APH','111','111 - Galloanserae (Poultry)'), ('PGACATEGORYCODE-AP0100-APH','112','112 - Other Aves (Birds)'), ('PGACATEGORYCODE-AP0100-APH','113','113 - Other Ruminantia (Ruminants)'), ('PGACATEGORYCODE-AP0100-APH','114','114 - Eggs For Hatching'), ('PGACATEGORYCODE-AP0100-APH','116','116 - Semen, Ova, and Embryos'), ('PGACATEGORYCODE-AP0100-APH','117','117 - Semen, Ova, and Embryo Empty Containers (Nitrogen Containers)'), ('PGACATEGORYCODE-AP0100-APH','118','118 - Canidae (Dogs)'), ('PGACATEGORYCODE-AP0100-APH','119','119 - (Fin Fish)'), ('PGACATEGORYCODE-AP0100-APH','120','120 - Hippopotamidae (Hippopotamus)'), ('PGACATEGORYCODE-AP0100-APH','121','121 - Rhinocerotidae (Rhinoceros)'), ('PGACATEGORYCODE-AP0100-APH','122','122 - Tapiridae (Tapir)'), ('PGACATEGORYCODE-AP0100-APH','123','123 - Elephantidae (Elephant)'), ('PGACATEGORYCODE-AP0100-APH','124','124 - Cloning Tissue'), ('PGACATEGORYCODE-AP0200-APH','201','201 - Animal Carriers'), ('PGACATEGORYCODE-AP0200-APH','202','202 - APHIS Future use'), ('PGACATEGORYCODE-AP0200-APH','203','203 - Used Meat Covers'), ('PGACATEGORYCODE-AP0200-APH','204','204 - APHIS Future use'), ('PGACATEGORYCODE-AP0200-APH','205','205 - Straw, Hay, and Grass, and Canadian Origin Soil'), ('PGACATEGORYCODE-AP0200-APH','206','206 - Used Farm Machinery'), ('PGACATEGORYCODE-AP0200-APH','207','207 - Egg Cartons, Crates, Flats, or Liners'), ('PGACATEGORYCODE-AP0300-APH','301','301 - Edible Meat and poultry: Meat and Meat Products'), ('PGACATEGORYCODE-AP0300-APH','302','302 - Milk and Milk Products'), ('PGACATEGORYCODE-AP0300-APH','303','303 - Edible Eggs and Egg Products'), ('PGACATEGORYCODE-AP0300-APH','304','304 - Food containing egg/egg products, and/or milk/milk products'), ('PGACATEGORYCODE-AP0300-APH','305','305 - Animal Consumption Products'), ('PGACATEGORYCODE-AP0300-APH','308','308 - Organisms and Vectors'), ('PGACATEGORYCODE-AP0300-APH','310','310 - Laboratory Mammals'), ('PGACATEGORYCODE-AP0300-APH','311','311 - Birds Nest'), ('PGACATEGORYCODE-AP0300-APH','312','312 - Casings and Related Product'), ('PGACATEGORYCODE-AP0300-APH','313','313 - Cosmetics'), ('PGACATEGORYCODE-AP0300-APH','314','314 - Gelatin'), ('PGACATEGORYCODE-AP0300-APH','315','315 - Hides and Related By Product'), ('PGACATEGORYCODE-AP0300-APH','316','316 - Trophies (for Personal Display)'), ('PGACATEGORYCODE-AP0300-APH','317','317 - Insects'), ('PGACATEGORYCODE-AP0300-APH','318','318 - Manure, Fertilizers and Soil Amendments/Enhancers'), ('PGACATEGORYCODE-AP0300-APH','399','399 - Other Animal Products and byproducts'), ('PGACATEGORYCODE','399','399 - Other Animal Products and byproducts'), ('PGACATEGORYCODE-AP0400-APH','401','401 - Dormant Bulbs and Underground Portions of Dormant Perennials'), ('PGACATEGORYCODE-AP0400-APH','402','402 - Plants for Planting or Propagation (whole)'), ('PGACATEGORYCODE-AP0400-APH','403','403 - Seeds for Planting (For Sowing)'), ('PGACATEGORYCODE-AP0400-APH','404','404 - Plant Cuttings for Planting or Propagation'), ('PGACATEGORYCODE','404','404 - Plant Cuttings for Planting or Propagation'), ('PGACATEGORYCODE-APH','404','404 - Plant Cuttings for Planting or Propagation'), ('PGACATEGORYCODE-AP0400-APH','405','405 - Root Cutting or Root Crown for Planting or Propagation'), ('PGACATEGORYCODE','405','405 - Root Cutting or Root Crown for Planting or Propagation'), ('PGACATEGORYCODE-APH','405','405 - Root Cutting or Root Crown for Planting or Propagation'), ('PGACATEGORYCODE-AP0400-APH','406','406 - Meristem tissue'), ('PGACATEGORYCODE','406','406 - Meristem tissue'), ('PGACATEGORYCODE-APH','406','406 - Meristem tissue'), ('PGACATEGORYCODE-AP0400-APH','407','407 - Budwood/Graftwood'), ('PGACATEGORYCODE','407','407 - Budwood/Graftwood'), ('PGACATEGORYCODE-APH','407','407 - Budwood/Graftwood'), ('PGACATEGORYCODE-AP0500-APH','501','501 - Seeds Not For Planting'), ('PGACATEGORYCODE-AP0500-APH','502','502 - Seeds for Protecting'), ('PGACATEGORYCODE-AP0600-APH','601','601 - Above Ground Parts'), ('PGACATEGORYCODE-AP0600-APH','602','602 - All Plant Parts'), ('PGACATEGORYCODE-AP0600-APH','603','603 - Below Ground Parts'), ('PGACATEGORYCODE-AP0700-APH','702','702 - Bees, bee equipment, and bee products'), ('PGACATEGORYCODE-AP0700-APH','703','703 - Brassware'), ('PGACATEGORYCODE-AP0700-APH','704','704 - Broomcorn and broomstraw'), ('PGACATEGORYCODE-AP0700-APH','705','705 - Cones'), ('PGACATEGORYCODE-AP0700-APH','706','706 - Dried teas, herbal teas, and herbal infusions'), ('PGACATEGORYCODE-AP0700-APH','707','707 - Grain screenings and seed screenings'), ('PGACATEGORYCODE-AP0700-APH','708','708 - Grains'), ('PGACATEGORYCODE-AP0700-APH','709','709 - Grasses'), ('PGACATEGORYCODE-AP0700-APH','710','710 - Hay, fodder, silage, stover, and straw'), ('PGACATEGORYCODE-AP0700-APH','711','711 - Herbal medicines, extracts, oils, ointments, and powders'), ('PGACATEGORYCODE-AP0700-APH','712','712 - Herbarium specimens'), ('PGACATEGORYCODE-AP0700-APH','713','713 - Insects, earthworms, pathogens, and snails'), ('PGACATEGORYCODE-AP0700-APH','714','714 - Nuts'), ('PGACATEGORYCODE-AP0700-APH','715','715 - Packing material'), ('PGACATEGORYCODE-AP0700-APH','716','716 - Processed fruit and vegetables'), ('PGACATEGORYCODE-AP0700-APH','717','717 - Processed or dried plant materials'), ('PGACATEGORYCODE-AP0700-APH','718','718 - Processed seeds'), ('PGACATEGORYCODE-AP0700-APH','719','719 - Screens (wooden)'), ('PGACATEGORYCODE-AP0700-APH','720','720 - Skins (goat, lamb, and sheep)'), ('PGACATEGORYCODE-AP0700-APH','721','721 - Soil, rocks, and garbage'), ('PGACATEGORYCODE-AP0700-APH','722','722 -Wood Products'), ('PGACATEGORYCODE-AP0700-APH','723','723 - Lumber'), ('PGACATEGORYCODE','723','723 - Lumber'), ('PGACATEGORYCODE-AP0700-APH','724','724 - Logs'), ('PGACATEGORYCODE','724','724 - Logs'), ('PGACATEGORYCODE-AP0700-APH','725','725 - Wood chips'), ('PGACATEGORYCODE','725','725 - Wood chips'), ('PGACATEGORYCODE-AP0700-APH','726','726 - Firewood'), ('PGACATEGORYCODE','726','726 - Firewood'), ('PGACATEGORYCODE-AP0700-APH','727','727 - Cotton'), ('PGACATEGORYCODE','727','727 - Cotton'), ('PGACATEGORYCODE-AP0700-APH','728','728 - Cotton Products'), ('PGACATEGORYCODE','728','728 - Cotton Products'), ('PGACATEGORYCODE-AP0800-APH','801','801 - Cut Flowers'), ('PGACATEGORYCODE-AP0800-APH','802','802 - Greenery'), ('PGACATEGORYCODE-AP0800-APH','803','803 - Cut Flowers and Greenery Mixed'), ('PGACATEGORYCODE-AP1000-APH','1001','1001 - Arthropods (not insects or mites)'), ('PGACATEGORYCODE-AP1000-APH','1002','1002 - Bacteria'), ('PGACATEGORYCODE-AP1000-APH','1003','1003 - Fungi'), ('PGACATEGORYCODE-AP1000-APH','1004','1004 - Insect'), ('PGACATEGORYCODE-AP1000-APH','1005','1005 - Invertebrate animal (not insects or mites)'), ('PGACATEGORYCODE-AP1000-APH','1006','1006 - Mite'), ('PGACATEGORYCODE-AP1000-APH','1007','1007 - Mycoplasma'), ('PGACATEGORYCODE-AP1000-APH','1008','1008 - Mycoplasma-like organism'), ('PGACATEGORYCODE-AP1000-APH','1009','1009 - Plant'), ('PGACATEGORYCODE-AP1000-APH','1010','1010 - Vertebrate animal'), ('PGACATEGORYCODE-AP1000-APH','1011','1011 - Viroid'), ('PGACATEGORYCODE-AP1000-APH','1012','1012 - Virus'), ('PGACATEGORYCODE-AP0300-APH','306A','306A - Pharmaceuticals (not ready for retail sale), Nutraceuticals, and Supplements'), ('PGACATEGORYCODE','306A','306A - Pharmaceuticals (not ready for retail sale), Nutraceuticals, and Supplements'), ('PGACATEGORYCODE-AP0300-APH','306B','306B - Pharmaceuticals Ready for Retail Sale for Human Use'), ('PGACATEGORYCODE','306B','306B - Pharmaceuticals Ready for Retail Sale for Human Use'), ('PGACATEGORYCODE-AP0300-APH','307A','307A - Veterinary Biologics for Sale and Distribution'), ('PGACATEGORYCODE','307A','307A - Veterinary Biologics for Sale and Distribution'), ('PGACATEGORYCODE-APH','307A','307A - Veterinary Biologics for Sale and Distribution'), ('PGACATEGORYCODE-AP0300-APH','307B','307B - Veterinary Biologics for Research and Evaluation'), ('PGACATEGORYCODE','307B','307B - Veterinary Biologics for Research and Evaluation'), ('PGACATEGORYCODE-APH','307B','307B - Veterinary Biologics for Research and Evaluation'), ('PGACATEGORYCODE-AP0300-APH','309A','309A - Animal By-Products for technical use'), ('PGACATEGORYCODE','309A','309A - Animal By-Products for technical use'), ('PGACATEGORYCODE-AP0300-APH','309B','309B - Animal sera (excluding antisera)'), ('PGACATEGORYCODE','309B','309B - Animal sera (excluding antisera)'), ('PGACATEGORYCODE-AP0700-APH','701','701 - Bags, bagging, and covers'), ('PGACOMQUALIFIERCODE','A43','A43 - Growing Medium'), ('PGACOMQUALIFIERCODE-APH','A43','A43 - Growing Medium'), ('PGACOMQUALIFIERCODE','A82','A82 - Endengered Species Status'), ('PGACOMCHARCODE-A10-APH','1M6','1M6 - 1 to 6 Months'), ('PGACOMCHARCODE-A11-APH','BBAN','BBAN - Anatolian (Buffalo)'), ('PGACOMCHARCODE-A11-APH','BBAU','BBAU - Australian (Buffalo)'), ('PGACOMCHARCODE-A11-APH','BBEG','BBEG - Egyptian (Buffalo)'), ('PGACOMCHARCODE-A11-APH','BBEB','BBEB - European Bison (Buffalo)'), ('PGACOMCHARCODE-A11-APH','BBKU','BBKU - Kundi (Buffalo)'), ('PGACOMCHARCODE-A11-APH','BBMA','BBMA - Malaysian (Buffalo)'), ('PGACOMCHARCODE-A11-APH','BBMU','BBMU - Murrah (Buffalo)'), ('PGACOMCHARCODE-A11-APH','BBNI','BBNI - Nili-Ravi (Buffalo)'), ('PGACOMCHARCODE-A11-APH','BBPH','BBPH - Pandharpuri (Buffalo)'), ('PGACOMCHARCODE-A11-APH','CMOT','CMOT - Other Breed (Camel)'), ('PGACOMCHARCODE-A11-APH','CMAB','CMAB - Alxa Bactrian (Camels)'), ('PGACOMCHARCODE-A11-APH','CMKB','CMKB - Kalmyk Bactrian (Camels)'), ('PGACOMCHARCODE-A11-APH','CMSB','CMSB - Sonid Bactrian (Camels)'), ('PGACOMCHARCODE-A11-APH','CMAD','CMAD - Afar Dromedary (Camels)'), ('PGACOMCHARCODE-A11-APH','CMVD','CMVD - Arvana Dromedary (Camels)'), ('PGACOMCHARCODE-A11-APH','CMSD','CMSD - Somali Dromedary (Camels)'), ('PGACOMCHARCODE-A11-APH','CAAA','CAAA - Aulie-Ata (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAAB','CAAB - Anatolian Black (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAAC','CAAC - Argentine Criollo (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAAD','CAAD - Australian Braford (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAAE','CAAE - Ankole (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAAF','CAAF - Afrikaner (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAAG','CAAG - Andalusian Grey (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAAH','CAAH - Australian Friesian Sahiwal (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAAI','CAAI - Australian Lowline (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAAJ','CAAJ - Alentejana (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAAK','CAAK - Andalusian Black (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAAL','CAAL - Albères (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAAM','CAAM - American (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAAN','CAAN - Black Angus (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAAO','CAAO - Allmogekor (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAAQ','CAAQ - American White Park (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAAS','CAAS - Asturian Mountain (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAAT','CAAT - Amrit Mahal (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAAU','CAAU - Aubrac (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAAV','CAAV - Asturian Valley (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAAW','CAAW - Ankole-Watusi (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAAX','CAAX - Amerifax (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAAY','CAAY - Ayrshire (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAAZ','CAAZ - Australian Milking Zebu (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAB','CAB - Blacksided Trondheim and Norland (Cattle)'), ('PGACOMCHARCODE-A11-APH','CABA','CABA - Belarus Red (Cattle)'), ('PGACOMCHARCODE-A11-APH','CABB','CABB - Belgian Blue (Cattle)'), ('PGACOMCHARCODE-A11-APH','CABC','CABC - Bachaur (Cattle)'), ('PGACOMCHARCODE-A11-APH','CABD','CABD - Bazadais (Cattle)'), ('PGACOMCHARCODE-A11-APH','CABE','CABE - Beefalo (Cattle)'), ('PGACOMCHARCODE-A11-APH','CABF','CABF - Braford (Cattle)'), ('PGACOMCHARCODE-A11-APH','CABG','CABG - Belted Galloway (Cattle)'), ('PGACOMCHARCODE-A11-APH','CABH','CABH - Brahmousin (Cattle)'), ('PGACOMCHARCODE-A11-APH','CABI','CABI - Baladi (Cattle)'), ('PGACOMCHARCODE-A11-APH','CABJ','CABJ - Belgian Red (Cattle)'), ('PGACOMCHARCODE-A11-APH','CABK','CABK - Barka (Cattle)'), ('PGACOMCHARCODE-A11-APH','CABL','CABL - Belmont Adaptaur (Cattle)'), ('PGACOMCHARCODE-A11-APH','CABM','CABM - Beefmaker (Cattle)'), ('PGACOMCHARCODE-A11-APH','CABN','CABN - Brangus (Cattle)'), ('PGACOMCHARCODE-A11-APH','CABO','CABO - Bonsmara (Cattle)'), ('PGACOMCHARCODE-A11-APH','CABP','CABP - Belmont Red (Cattle)'), ('PGACOMCHARCODE-A11-APH','CABQ','CABQ - Blonde d ’Aquitaine (Cattle)'), ('PGACOMCHARCODE-A11-APH','CABR','CABR - Brahman (Cattle)'), ('PGACOMCHARCODE-A11-APH','CABT','CABT - Bengali (Cattle)'), ('PGACOMCHARCODE-A11-APH','CABU','CABU - Berrendas (Cattle)'), ('PGACOMCHARCODE-A11-APH','CABV','CABV - Bhagnari (Cattle)'), ('PGACOMCHARCODE-A11-APH','CABW','CABW - British White (Cattle)'), ('PGACOMCHARCODE-A11-APH','CABX','CABX - Beefmaster (Cattle)'), ('PGACOMCHARCODE-A11-APH','CABY','CABY - Baltata Romaneasca (Cattle)'), ('PGACOMCHARCODE-A11-APH','CABZ','CABZ - Barzona (Cattle)'), ('PGACOMCHARCODE-A11-APH','CACA','CACA - Canadienne (Cattle)'), ('PGACOMCHARCODE-A11-APH','CACB','CACB - Charbray (Cattle)'), ('PGACOMCHARCODE-A11-APH','CACC','CACC - Chinese Black-and-White (Cattle)'), ('PGACOMCHARCODE-A11-APH','CACD','CACD - Cholistani (Cattle)'), ('PGACOMCHARCODE-A11-APH','CACE','CACE - Costeño con Cuernos (Cattle)'), ('PGACOMCHARCODE-A11-APH','CACH','CACH - Charolais (Cattle)'), ('PGACOMCHARCODE-A11-APH','CACI','CACI - Chianina (Cattle)'), ('PGACOMCHARCODE-A11-APH','CACM','CACM - Canchim (Cattle)'), ('PGACOMCHARCODE-A11-APH','CACP','CACP - Chinampo (Cattle)'), ('PGACOMCHARCODE-A11-APH','CACR','CACR - Corriente (Cattle)'), ('PGACOMCHARCODE-A11-APH','CACS','CACS - Canary Island (Cattle)'), ('PGACOMCHARCODE-A11-APH','CADA','CADA - Damascus (Cattle)'), ('PGACOMCHARCODE-A11-APH','CADB','CADB - Dutch Belted (Cattle)'), ('PGACOMCHARCODE-A11-APH','CADF','CADF - Dutch Friesian (Cattle)'), ('PGACOMCHARCODE-A11-APH','CADJ','CADJ - Danish Jersey (Cattle)'), ('PGACOMCHARCODE-A11-APH','CADM','CADM - Droughtmaster (Cattle)'), ('PGACOMCHARCODE-A11-APH','CADR','CADR - Danish Red (Cattle)'), ('PGACOMCHARCODE-A11-APH','CADV','CADV - Devon (Cattle)'), ('PGACOMCHARCODE-A11-APH','CADX','CADX - Dexter (Cattle)'), ('PGACOMCHARCODE-A11-APH','CADL','CADL - Dajal (Cattle)'), ('PGACOMCHARCODE-A11-APH','CADT','CADT - Damietta (Cattle)'), ('PGACOMCHARCODE-A11-APH','CADG','CADG - Dangi (Cattle)'), ('PGACOMCHARCODE-A11-APH','CADE','CADE - Deoni (Cattle)'), ('PGACOMCHARCODE-A11-APH','CADH','CADH - Dhanni (Cattle)'), ('PGACOMCHARCODE-A11-APH','CADO','CADO - Dølafe (Cattle)'), ('PGACOMCHARCODE-A11-APH','CADU','CADU - Dulong (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAEA','CAEA - East Anatolian Red (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAEL','CAEL - English Longhorn (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAER','CAER - Estonian Red (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAEV','CAEV - Evolène (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAFB','CAFB - Fighting Bull (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAFC','CAFC - Florida Cracker/Pineywoods (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAFI','CAFI - Finnish (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAFJ','CAFJ - Fjall (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAFL','CAFL - Fleckvieh (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAGA','CAGA - Galloway (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAGO','CAGO - Gaolao (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAGB','CAGB - Galician Blond (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAGY','CAGY - Gelbray (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAGC','CAGC - Gloucester (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAGK','CAGK - Greek Shorthorn (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAEE','CAEE - Greek Steppe (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAGE','CAGE - Gelbvieh (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAGG','CAGG - German Angus (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAGP','CAGP - German Red Pied (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAGI','CAGI - Gir (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAGL','CAGL - Glan (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAGN','CAGN - Angeln (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAGR','CAGR - Groningen (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAGS','CAGS - Gascon (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAGU','CAGU - Guernsey (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAGZ','CAGZ - Guzerat (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAHL','CAHL - Hallikar (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAHR','CAHR - Hariana (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAHN','CAHN - Hartón (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAHA','CAHA - Holando-Argentino (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAHC','CAHC - Hays Converter (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAHF','CAHF - Hereford (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAHI','CAHI - Highland (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAHK','CAHK - Heck (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAHO','CAHO - Holstein (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAHE','CAHE - Herens (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAHW','CAHW - Hinterwald (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAHZ','CAHZ - Horro (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAHG','CAHG - Hungarian Grey (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAIB','CAIB - Indo-Brazilian (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAIC','CAIC - Icelandic (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAIW','CAIW - Illawarra (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAIS','CAIS - Istoben (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAIH','CAIH - Israeli Holstein (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAIM','CAIM - Irish Moiled (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAIR','CAIR - Israeli Red (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAJB','CAJB - Jamaica Black (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAJH','CAJH - Jamaica Hope (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAJR','CAJR - Jamaica Red (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAJA','CAJA - Jaulan (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAJE','CAJE - Jersey (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAKE','CAKE - Kerry (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAKY','CAKY - Kangayam (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAKK','CAKK - Kankrej (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAKF','CAKF - Karan Fries (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAKS','CAKS - Karan Swiss (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAKZ','CAKZ - Kazakh (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAKW','CAKW - Kenwariya (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAKH','CAKH - Kherigarh (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAKI','CAKI - Khillari (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAKM','CAKM - Kholmogory (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAKL','CAKL - Kilis (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAKV','CAKV - Krishna Valley (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAKD','CAKD - Kurdi (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAKU','CAKU - Kuri (Cattle)'), ('PGACOMCHARCODE-A11-APH','CALI','CALI - Limousin (Cattle)'), ('PGACOMCHARCODE-A11-APH','CALP','CALP - Limpurger (Cattle)'), ('PGACOMCHARCODE-A11-APH','CALR','CALR - Lincoln Red (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAUA','CAUA - Lithuanian Red (Cattle)'), ('PGACOMCHARCODE-A11-APH','CALH','CALH - Lohani (Cattle)'), ('PGACOMCHARCODE-A11-APH','CALD','CALD - Lourdais (Cattle)'), ('PGACOMCHARCODE-A11-APH','CALG','CALG - Luing (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAMA','CAMA - Maine-Anjou (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAMB','CAMB - Montbéliarde (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAMC','CAMC - Marchigiana (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAMD','CAMD - Milking Devon (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAME','CAME - Mirandesa (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAMG','CAMG - Murray Grey (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAMH','CAMH - Mashona (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAMI','CAMI - Masai (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAML','CAML - Mandalong (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAMM','CAMM - Maremmana (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAMN','CAMN - Mongolian (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAMO','CAMO - Modicana (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAMR','CAMR - Meuse-Rhine-Yssel (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAMS','CAMS - Milking Shorthorns (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAMU','CAMU - Maure (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAMV','CAMV - Malvi (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAMW','CAMW - Mewati (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAMZ','CAMZ - Mazandarani (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAMF','CAMF - Morucha (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAMJ','CAMJ - Murboden (Cattle)'), ('PGACOMCHARCODE-A11-APH','CANG','CANG - Nagori (Cattle)'), ('PGACOMCHARCODE-A11-APH','CANY','CANY - Nanyang (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAND','CAND - Ndama (Cattle)'), ('PGACOMCHARCODE-A11-APH','CANI','CANI - Nguni (Cattle)'), ('PGACOMCHARCODE-A11-APH','CANM','CANM - Nimari (Cattle)'), ('PGACOMCHARCODE-A11-APH','CANL','CANL - Nelore (Cattle)'), ('PGACOMCHARCODE-A11-APH','CANR','CANR - Norwegian Red (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAOT','CAOT - Other Breed (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAON','CAON - Ongole (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAOB','CAOB - Orma Boran (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAOR','CAOR - Oropa (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAOV','CAOV - Ovambo (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAPA','CAPA - Parthenais (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAPH','CAPH - Polled Hereford (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAPI','CAPI - Piedmontese (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAPR','CAPR - Polish Red (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAPN','CAPN - Philippine Native (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAPO','CAPO - Ponwar (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAPW','CAPW - Pineywoods (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAPZ','CAPZ - Pinzgauer (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAQC','CAQC - Qinchuan (Cattle)'), ('PGACOMCHARCODE-A11-APH','CARA','CARA - Randall (Cattle)'), ('PGACOMCHARCODE-A11-APH','CARB','CARB - Red Brangus (Cattle)'), ('PGACOMCHARCODE-A11-APH','CARG','CARG - Red Angus (Cattle)'), ('PGACOMCHARCODE-A11-APH','CARH','CARH - Rath (Cattle)'), ('PGACOMCHARCODE-A11-APH','CARI','CARI - Rathi (Cattle)'), ('PGACOMCHARCODE-A11-APH','CARN','CARN - Rätien Gray (Cattle)'), ('PGACOMCHARCODE-A11-APH','CARP','CARP - Red Poll (Cattle)'), ('PGACOMCHARCODE-A11-APH','CARX','CARX - RX3 (Cattle)'), ('PGACOMCHARCODE-A11-APH','CARF','CARF - Red Pied Friesian (Cattle)'), ('PGACOMCHARCODE-A11-APH','CARO','CARO - Red Polled Østland (Cattle)'), ('PGACOMCHARCODE-A11-APH','CARS','CARS - Red Sindhi (Cattle)'), ('PGACOMCHARCODE-A11-APH','CARD','CARD - Red Steppe (Cattle)'), ('PGACOMCHARCODE-A11-APH','CARE','CARE - Reggiana (Cattle)'), ('PGACOMCHARCODE-A11-APH','CART','CART - Retinta (Cattle)'), ('PGACOMCHARCODE-A11-APH','CARJ','CARJ - Rojhan (Cattle)'), ('PGACOMCHARCODE-A11-APH','CALA','CALA - Romagnola (Cattle)'), ('PGACOMCHARCODE-A11-APH','CARM','CARM - Romosinuano (Cattle)'), ('PGACOMCHARCODE-A11-APH','CARK','CARK - Russian Black Pied (Cattle)'), ('PGACOMCHARCODE-A11-APH','CASJ','CASJ - Sharabi (Cattle)'), ('PGACOMCHARCODE-A11-APH','CASQ','CASQ - Siri (Cattle)'), ('PGACOMCHARCODE-A11-APH','CASA','CASA - Salers (Cattle)'), ('PGACOMCHARCODE-A11-APH','CASB','CASB - Simbrah (Cattle)'), ('PGACOMCHARCODE-A11-APH','CASC','CASC - Santa Cruz (Cattle)'), ('PGACOMCHARCODE-A11-APH','CASD','CASD - South Devon (Cattle)'), ('PGACOMCHARCODE-A11-APH','CASE','CASE - Sanhe (Cattle)'), ('PGACOMCHARCODE-A11-APH','CASF','CASF - Swedish Friesian (Cattle)'), ('PGACOMCHARCODE-A11-APH','CASG','CASG - Santa Gertrudis (Cattle)'), ('PGACOMCHARCODE-A11-APH','CASH','CASH - Shorthorn or Durham (Cattle)'), ('PGACOMCHARCODE-A11-APH','CASI','CASI - Sahiwal (Cattle)'), ('PGACOMCHARCODE-A11-APH','CASK','CASK - Slovenian Cika (Cattle)'), ('PGACOMCHARCODE-A11-APH','CASL','CASL - Salorn (Cattle)'), ('PGACOMCHARCODE-A11-APH','CASM','CASM - Simmental (Cattle)'), ('PGACOMCHARCODE-A11-APH','CASN','CASN - San Martinero (Cattle)'), ('PGACOMCHARCODE-A11-APH','CASO','CASO - Scottish Highland (Cattle)'), ('PGACOMCHARCODE-A11-APH','CASP','CASP - Senepol (Cattle)'), ('PGACOMCHARCODE-A11-APH','CASR','CASR - Swedish Red Polled (Cattle)'), ('PGACOMCHARCODE-A11-APH','CASS','CASS - Sarabi (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAST','CAST - Shetland (Cattle)'), ('PGACOMCHARCODE-A11-APH','CASU','CASU - Sussex (Cattle)'), ('PGACOMCHARCODE-A11-APH','CASV','CASV - Swiss Braunvieh (Cattle)'), ('PGACOMCHARCODE-A11-APH','CASW','CASW - Swedish Red-and-White (Cattle)'), ('PGACOMCHARCODE-A11-APH','CASY','CASY - Siboney (Cattle)'), ('PGACOMCHARCODE-A11-APH','CATA','CATA - Tarentaise (Cattle)'), ('PGACOMCHARCODE-A11-APH','CATL','CATL - Texas Longhorn (Cattle)'), ('PGACOMCHARCODE-A11-APH','CATX','CATX - Texon (Cattle)'), ('PGACOMCHARCODE-A11-APH','CATH','CATH - Tharparkar (Cattle)'), ('PGACOMCHARCODE-A11-APH','CATS','CATS - Tswana (Cattle)'), ('PGACOMCHARCODE-A11-APH','CATU','CATU - Tuli (Cattle)'), ('PGACOMCHARCODE-A11-APH','CATG','CATG - Turkish Grey Steppe (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAUB','CAUB - Ukrainian Beef (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAUG','CAUG - Ukrainian Grey (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAUW','CAUW - Ukrainian Whitehead (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAUM','CAUM - Umblachery (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAUP','CAUP - Ural Black Pied (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAVF','CAVF - Vestland Fjord (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAVR','CAVR - Vestland Red Polled (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAVO','CAVO - Vosges (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAWA','CAWA - Watusi or African Ankole-Watusi(Cattle)'), ('PGACOMCHARCODE-A11-APH','CAWB','CAWB - Welsh Black (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAWG','CAWG - Wagyu (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAWP','CAWP - White Park (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAWC','CAWC - White Cáceres (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAZB','CAZB - Zebu (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAXB','CAXB - Xinjiang Brown (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAYA','CAYA - Yanbian (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAZC','CAZC - Blanca Cacereña (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAZO','CAZO - Blanco Orejinegro (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAZA','CAZA - Boran (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAZD','CAZD - Bordelais (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAZE','CAZE - Busa (Cattle)'), ('PGACOMCHARCODE-A11-APH','CAZF','CAZF - Cachena (Cattle)'), ('PGACOMCHARCODE-A11-APH','DMOT','DMOT - Other (Cervid)'), ('PGACOMCHARCODE-A11-APH','DMDE','DMDE - Deer (Cervid)'), ('PGACOMCHARCODE-A11-APH','DMEL','DMEL - Elk (Cervid)'), ('PGACOMCHARCODE-A11-APH','DMCB','DMCB - Caribou (Cervid)'), ('PGACOMCHARCODE-A11-APH','DMMO','DMMO - Moose (Cervid)'), ('PGACOMCHARCODE-A11-APH','DGOT','DGOT - Other Breed (Dog)'), ('PGACOMCHARCODE-A11-APH','DGAR','DGAR - Affenpinscher (Dog)'), ('PGACOMCHARCODE-A11-APH','DGAH','DGAH - Afghan Hound (Dog)'), ('PGACOMCHARCODE-A11-APH','DGAU','DGAU - Ainu (Dog)'), ('PGACOMCHARCODE-A11-APH','DGAT','DGAT - Airedale Terrier (Dog)'), ('PGACOMCHARCODE-A11-APH','DGAA','DGAA - Akita (Dog)'), ('PGACOMCHARCODE-A11-APH','DGAL','DGAL - Alaskan Husky (Dog)'), ('PGACOMCHARCODE-A11-APH','DGAK','DGAK - Alaskan Klee Kai (Dog)'), ('PGACOMCHARCODE-A11-APH','DGAM','DGAM - Alaskan Malamute (Dog)'), ('PGACOMCHARCODE-A11-APH','DGAB','DGAB - American Bulldog (Dog)'), ('PGACOMCHARCODE-A11-APH','DGAE','DGAE - American Eskimo (Dog)'), ('PGACOMCHARCODE-A11-APH','DGAF','DGAF - American Foxhound (Dog)'), ('PGACOMCHARCODE-A11-APH','DGAP','DGAP - American Pit Bull Terrier (Dog)'), ('PGACOMCHARCODE-A11-APH','DGAS','DGAS - American Staffordshire Terrier (Dog)'), ('PGACOMCHARCODE-A11-APH','DGAW','DGAW - American Water Spaniel (Dog)'), ('PGACOMCHARCODE-A11-APH','DGAN','DGAN - Anatolian Shepherd (Dog)'), ('PGACOMCHARCODE-A11-APH','DGAC','DGAC - Australian Cattle (Dog)'), ('PGACOMCHARCODE-A11-APH','DGAD','DGAD - Australian Shepherd (Dog)'), ('PGACOMCHARCODE-A11-APH','DGIA','DGIA - Australian Terrier (Dog)'), ('PGACOMCHARCODE-A11-APH','DGBJ','DGBJ - Basenji (Dog)'), ('PGACOMCHARCODE-A11-APH','DGBH','DGBH - Basset Hound (Dog)'), ('PGACOMCHARCODE-A11-APH','DGBE','DGBE - Beagle (Dog)'), ('PGACOMCHARCODE-A11-APH','DGBA','DGBA - Bearded Collie (Dog)'), ('PGACOMCHARCODE-A11-APH','DGBN','DGBN - Beauceron (Dog)'), ('PGACOMCHARCODE-A11-APH','DGBT','DGBT - Bedlington Terrier (Dog)'), ('PGACOMCHARCODE-A11-APH','DGBM','DGBM - Belgian Malinois (Dog)'), ('PGACOMCHARCODE-A11-APH','DGBP','DGBP - Belgian Sheepdog (Dog)'), ('PGACOMCHARCODE-A11-APH','DGBV','DGBV - Belgian Tervuren (Dog)'), ('PGACOMCHARCODE-A11-APH','DGBG','DGBG - Bergamasco (Dog)'), ('PGACOMCHARCODE-A11-APH','DGBI','DGBI - Bernese Mountain (Dog)'), ('PGACOMCHARCODE-A11-APH','DGBF','DGBF - Bichon Frisé (Dog)'), ('PGACOMCHARCODE-A11-APH','DGBK','DGBK - Black and Tan Coonhound (Dog)'), ('PGACOMCHARCODE-A11-APH','DGBR','DGBR - Black Russian Terrier (Dog)'), ('PGACOMCHARCODE-A11-APH','DGBO','DGBO - Bloodhound (Dog)'), ('PGACOMCHARCODE-A11-APH','DGXB','DGXB - Bolognese (Dog)'), ('PGACOMCHARCODE-A11-APH','DGBC','DGBC - Border Collie (Dog)'), ('PGACOMCHARCODE-A11-APH','DGBY','DGBY - Border Terrier (Dog)'), ('PGACOMCHARCODE-A11-APH','DGBZ','DGBZ - Borzoi (Dog)'), ('PGACOMCHARCODE-A11-APH','DGYB','DGYB - Boston Terrier (Dog)'), ('PGACOMCHARCODE-A11-APH','DGBU','DGBU - Bouvier des Flandres (Dog)'), ('PGACOMCHARCODE-A11-APH','DGBX','DGBX - Boxer (Dog)'), ('PGACOMCHARCODE-A11-APH','DGZB','DGZB - Briard (Dog)'), ('PGACOMCHARCODE-A11-APH','DGBW','DGBW - Brittany (Dog)'), ('PGACOMCHARCODE-A11-APH','DGBS','DGBS - Brussels Griffon (Dog)'), ('PGACOMCHARCODE-A11-APH','DGBL','DGBL - Bull Terrier (Dog)'), ('PGACOMCHARCODE-A11-APH','DGBD','DGBD - Bulldog (Dog)'), ('PGACOMCHARCODE-A11-APH','DGBQ','DGBQ - Bullmastiff (Dog)'), ('PGACOMCHARCODE-A11-APH','DGCT','DGCT - Cairn Terrier (Dog)'), ('PGACOMCHARCODE-A11-APH','DGCA','DGCA - Canaan (Dog)'), ('PGACOMCHARCODE-A11-APH','DGCC','DGCC - Cane Corso (Dog)'), ('PGACOMCHARCODE-A11-APH','DGCW','DGCW - Cardigan Welsh Corgi (Dog)'), ('PGACOMCHARCODE-A11-APH','DGCL','DGCL - Catahoula Leopard (Dog)'), ('PGACOMCHARCODE-A11-APH','DGCK','DGCK - Cavalier King Charles Spaniel (Dog)'), ('PGACOMCHARCODE-A11-APH','DGCE','DGCE - Cesky Terrier (Dog)'), ('PGACOMCHARCODE-A11-APH','DGCB','DGCB - Chesapeake Bay Retriever (Dog)'), ('PGACOMCHARCODE-A11-APH','DGCH','DGCH - Chihuahua (Dog)'), ('PGACOMCHARCODE-A11-APH','DGCN','DGCN - Chinese Crested (Dog)'), ('PGACOMCHARCODE-A11-APH','DGCP','DGCP - Chinese Shar-Pei (Dog)'), ('PGACOMCHARCODE-A11-APH','DGCO','DGCO - Chinook (Dog)'), ('PGACOMCHARCODE-A11-APH','DGHO','DGHO - Chow Chow (Dog)'), ('PGACOMCHARCODE-A11-APH','DGCM','DGCM - Clumber Spaniel (Dog)'), ('PGACOMCHARCODE-A11-APH','DGCS','DGCS - Cocker Spaniel (Dog)'), ('PGACOMCHARCODE-A11-APH','DGCI','DGCI - Collie (Dog)'), ('PGACOMCHARCODE-A11-APH','DGCU','DGCU - Curly-Coated Retriever (Dog)'), ('PGACOMCHARCODE-A11-APH','DGDA','DGDA - Dachshund (Dog)'), ('PGACOMCHARCODE-A11-APH','DGDL','DGDL - Dalmatian (Dog)'), ('PGACOMCHARCODE-A11-APH','DGDD','DGDD - <NAME> (Dog)'), ('PGACOMCHARCODE-A11-APH','DGDI','DGDI - Dingo (Dog)'), ('PGACOMCHARCODE-A11-APH','DGDP','DGDP - Doberman Pinscher (Dog)'), ('PGACOMCHARCODE-A11-APH','DGEC','DGEC - English Cocker Spaniel (Dog)'), ('PGACOMCHARCODE-A11-APH','DGEF','DGEF - English Foxhound (Dog)'), ('PGACOMCHARCODE-A11-APH','DGES','DGES - English Setter (Dog)'), ('PGACOMCHARCODE-A11-APH','DGEN','DGEN - English Springer Spaniel (Dog)'), ('PGACOMCHARCODE-A11-APH','DGET','DGET - English Toy Spaniel (Dog)'), ('PGACOMCHARCODE-A11-APH','DGEM','DGEM - Estrela Mountain (Dog)'), ('PGACOMCHARCODE-A11-APH','DGFS','DGFS - Field Spaniel (Dog)'), ('PGACOMCHARCODE-A11-APH','DGFZ','DGFZ - Finnish Spitz (Dog)'), ('PGACOMCHARCODE-A11-APH','DGFC','DGFC - Flat-Coated Retriever (Dog)'), ('PGACOMCHARCODE-A11-APH','DGFB','DGFB - French Bulldog (Dog)'), ('PGACOMCHARCODE-A11-APH','DGGP','DGGP - German Pinscher (Dog)'), ('PGACOMCHARCODE-A11-APH','DGGS','DGGS - German Shepherd (Dog)'), ('PGACOMCHARCODE-A11-APH','DGGE','DGGE - German Shorthaired Pointer (Dog)'), ('PGACOMCHARCODE-A11-APH','DGGW','DGGW - German Wirehaired Pointer (Dog)'), ('PGACOMCHARCODE-A11-APH','DGGZ','DGGZ - Giant Schnauzer (Dog)'), ('PGACOMCHARCODE-A11-APH','DGGI','DGGI - Glen of Imaal Terrier (Dog)'), ('PGACOMCHARCODE-A11-APH','DGGR','DGGR - Golden Retriever (Dog)'), ('PGACOMCHARCODE-A11-APH','DGGO','DGGO - Gordon Setter (Dog)'), ('PGACOMCHARCODE-A11-APH','DGGD','DGGD - Great Dane (Dog)'), ('PGACOMCHARCODE-A11-APH','DGGA','DGGA - Great Pyrenees (Dog)'), ('PGACOMCHARCODE-A11-APH','DGGM','DGGM - Greater Swiss Mountain (Dog)'), ('PGACOMCHARCODE-A11-APH','DGGH','DGGH - Greyhound (Dog)'), ('PGACOMCHARCODE-A11-APH','DGHA','DGHA - Harrier (Dog)'), ('PGACOMCHARCODE-A11-APH','DGHV','DGHV - Havanese (Dog)'), ('PGACOMCHARCODE-A11-APH','DGIH','DGIH - Ibizan Hound (Dog)'), ('PGACOMCHARCODE-A11-APH','DGIC','DGIC - Icelandic Sheepdog (Dog)'), ('PGACOMCHARCODE-A11-APH','DGIR','DGIR - Irish Red and White Setter (Dog)'), ('PGACOMCHARCODE-A11-APH','DGIS','DGIS - Irish Setter (Dog)'), ('PGACOMCHARCODE-A11-APH','DGIT','DGIT - Irish Terrier (Dog)'), ('PGACOMCHARCODE-A11-APH','DGIW','DGIW - Irish Water Spaniel (Dog)'), ('PGACOMCHARCODE-A11-APH','DGIF','DGIF - Irish Wolfhound (Dog)'), ('PGACOMCHARCODE-A11-APH','DGIG','DGIG - Italian Greyhound (Dog)'), ('PGACOMCHARCODE-A11-APH','DGJR','DGJR - <NAME> Terrier (Dog)'), ('PGACOMCHARCODE-A11-APH','DGJC','DGJC - Japanese Chin (Dog)'), ('PGACOMCHARCODE-A11-APH','DGJT','DGJT - Japanese Terrier (Dog)'), ('PGACOMCHARCODE-A11-APH','DGKE','DGKE - Keeshond (Dog)'), ('PGACOMCHARCODE-A11-APH','DGKB','DGKB - Kerry Beagle (Dog)'), ('PGACOMCHARCODE-A11-APH','DGKT','DGKT - Kerry Blue Terrier (Dog)'), ('PGACOMCHARCODE-A11-APH','DGKO','DGKO - Komondor (Dog)'), ('PGACOMCHARCODE-A11-APH','DGKU','DGKU - Kuvasz (Dog)'), ('PGACOMCHARCODE-A11-APH','DGLD','DGLD - Labradoodle (Dog)'), ('PGACOMCHARCODE-A11-APH','DGLR','DGLR - Labrador Retriever (Dog)'), ('PGACOMCHARCODE-A11-APH','DGLT','DGLT - Lakeland Terrier (Dog)'), ('PGACOMCHARCODE-A11-APH','DGLH','DGLH - Lancashire Heeler (Dog)'), ('PGACOMCHARCODE-A11-APH','DGLB','DGLB - Leonberger (Dog)'), ('PGACOMCHARCODE-A11-APH','DGLA','DGLA - Lhasa Apso (Dog)'), ('PGACOMCHARCODE-A11-APH','DGLO','DGLO - Lowchen (Dog)'), ('PGACOMCHARCODE-A11-APH','DGMA','DGMA - Maltese (Dog)'), ('PGACOMCHARCODE-A11-APH','DGMT','DGMT - Manchester Terrier (Dog)'), ('PGACOMCHARCODE-A11-APH','DGMF','DGMF - Mastiff (Dog)'), ('PGACOMCHARCODE-A11-APH','DGMB','DGMB - Miniature Bull Terrier (Dog)'), ('PGACOMCHARCODE-A11-APH','DGMP','DGMP - Miniature Pinscher (Dog)'), ('PGACOMCHARCODE-A11-APH','DGMS','DGMS - Miniature Schnauzer (Dog)'), ('PGACOMCHARCODE-A11-APH','DGNM','DGNM - Neapolitan Mastiff (Dog)'), ('PGACOMCHARCODE-A11-APH','DGNF','DGNF - Newfoundland (Dog)'), ('PGACOMCHARCODE-A11-APH','DGNT','DGNT - Norfolk Terrier (Dog)'), ('PGACOMCHARCODE-A11-APH','DGNE','DGNE - Norwegian Elkhound (Dog)'), ('PGACOMCHARCODE-A11-APH','DGNL','DGNL - Norwegian Lundehund (Dog)'), ('PGACOMCHARCODE-A11-APH','DGNW','DGNW - Norwich Terrier (Dog)'), ('PGACOMCHARCODE-A11-APH','DGNS','DGNS - Nova Scotia Duck Tolling Retriever (Dog)'), ('PGACOMCHARCODE-A11-APH','DGOS','DGOS - Old English Sheepdog (Dog)'), ('PGACOMCHARCODE-A11-APH','DGOH','DGOH - Otterhound (Dog)'), ('PGACOMCHARCODE-A11-APH','DGPP','DGPP - Papillon (Dog)'), ('PGACOMCHARCODE-A11-APH','DGPR','DGPR - Parson Russell Terrier (Dog)'), ('PGACOMCHARCODE-A11-APH','DGPK','DGPK - Pekingese (Dog)'), ('PGACOMCHARCODE-A11-APH','DGPW','DGPW - Pembroke Welsh Corgi (Dog)'), ('PGACOMCHARCODE-A11-APH','DGPB','DGPB - Petit Basset Griffon Vendéen (Dog)'), ('PGACOMCHARCODE-A11-APH','DGPH','DGPH - Pharaoh Hound (Dog)'), ('PGACOMCHARCODE-A11-APH','DGPL','DGPL - Plott (Dog)'), ('PGACOMCHARCODE-A11-APH','DGPO','DGPO - Pointer (Dog)'), ('PGACOMCHARCODE-A11-APH','DGPS','DGPS - Polish Lowland Sheepdog (Dog)'), ('PGACOMCHARCODE-A11-APH','DGPM','DGPM - Pomeranian (Dog)'), ('PGACOMCHARCODE-A11-APH','DGPD','DGPD - Poodle (Miniature) (Dog)'), ('PGACOMCHARCODE-A11-APH','DGSP','DGSP - Poodle (Standard) (Dog)'), ('PGACOMCHARCODE-A11-APH','DGPT','DGPT - Portuguese Water (Dog)'), ('PGACOMCHARCODE-A11-APH','DGPG','DGPG - Pug (Dog)'), ('PGACOMCHARCODE-A11-APH','DGPI','DGPI - Puli (Dog)'), ('PGACOMCHARCODE-A11-APH','DGRT','DGRT - Rat Terrier (Dog)'), ('PGACOMCHARCODE-A11-APH','DGRC','DGRC - Redbone Coonhound (Dog)'), ('PGACOMCHARCODE-A11-APH','DGRR','DGRR - Rhodesian Ridgeback (Dog)'), ('PGACOMCHARCODE-A11-APH','DGRW','DGRW - Rottweiler (Dog)'), ('PGACOMCHARCODE-A11-APH','DGSB','DGSB - Saint Bernard (Dog)'), ('PGACOMCHARCODE-A11-APH','DGSA','DGSA - Saluki (Dog)'), ('PGACOMCHARCODE-A11-APH','DGSY','DGSY - Samoyed (Dog)'), ('PGACOMCHARCODE-A11-APH','DGSC','DGSC - Schipperke (Dog)'), ('PGACOMCHARCODE-A11-APH','DGSD','DGSD - Scottish Deerhound (Dog)'), ('PGACOMCHARCODE-A11-APH','DGST','DGST - Scottish Terrier (Dog)'), ('PGACOMCHARCODE-A11-APH','DGSE','DGSE - Sealyham Terrier (Dog)'), ('PGACOMCHARCODE-A11-APH','DGSS','DGSS - Shetland Sheepdog (Dog)'), ('PGACOMCHARCODE-A11-APH','DGSI','DGSI - Shiba Inu (Dog)'), ('PGACOMCHARCODE-A11-APH','DGSU','DGSU - Shih Tzu (Dog)'), ('PGACOMCHARCODE-A11-APH','DGSH','DGSH - Siberian Husky (Dog)'), ('PGACOMCHARCODE-A11-APH','DGSR','DGSR - Silky Terrier (Dog)'), ('PGACOMCHARCODE-A11-APH','DGSK','DGSK - Skye Terrier (Dog)'), ('PGACOMCHARCODE-A11-APH','DGSL','DGSL - Sloughi (Dog)'), ('PGACOMCHARCODE-A11-APH','DGSF','DGSF - Smooth Fox Terrier (Dog)'), ('PGACOMCHARCODE-A11-APH','DGSW','DGSW - Soft Coated Wheaten Terrier (Dog)'), ('PGACOMCHARCODE-A11-APH','DGSM','DGSM - Spanish Mastiff (Dog)'), ('PGACOMCHARCODE-A11-APH','DGSO','DGSO - Spinone Italiano (Dog)'), ('PGACOMCHARCODE-A11-APH','DGFF','DGFF - Staffordshire Bull Terrier (Dog)'), ('PGACOMCHARCODE-A11-APH','DGSZ','DGSZ - Standard Schnauzer (Dog)'), ('PGACOMCHARCODE-A11-APH','DGSX','DGSX - Sussex Spaniel (Dog)'), ('PGACOMCHARCODE-A11-APH','DGSV','DGSV - Swedish Vallhund (Dog)'), ('PGACOMCHARCODE-A11-APH','DGTR','DGTR - Thai Ridgeback (Dog)'), ('PGACOMCHARCODE-A11-APH','DGTM','DGTM - Tibetan Mastiff (Dog)'), ('PGACOMCHARCODE-A11-APH','DGTS','DGTS - Tibetan Spaniel (Dog)'), ('PGACOMCHARCODE-A11-APH','DGTT','DGTT - Tibetan Terrier (Dog)'), ('PGACOMCHARCODE-A11-APH','DGTF','DGTF - Toy Fox Terrier (Dog)'), ('PGACOMCHARCODE-A11-APH','DGOY','DGOY - Toy Manchester Terrier (Dog)'), ('PGACOMCHARCODE-A11-APH','DGTP','DGTP - Toy Poodle (Dog)'), ('PGACOMCHARCODE-A11-APH','DGTH','DGTH - Transylvanian Hound (Dog)'), ('PGACOMCHARCODE-A11-APH','DGVZ','DGVZ - Vizsla (Dog)'), ('PGACOMCHARCODE-A11-APH','DGVI','DGVI - Volpino Italiano (Dog)'), ('PGACOMCHARCODE-A11-APH','DGWE','DGWE - Weimaraner (Dog)'), ('PGACOMCHARCODE-A11-APH','DGWS','DGWS - Welsh Springer Spaniel (Dog)'), ('PGACOMCHARCODE-A11-APH','DGWT','DGWT - Welsh Terrier (Dog)'), ('PGACOMCHARCODE-A11-APH','DGWH','DGWH - West Highland White Terrier (Dog)'), ('PGACOMCHARCODE-A11-APH','DGWP','DGWP - Whippet (Dog)'), ('PGACOMCHARCODE-A11-APH','DGWF','DGWF - Wire Fox Terrier (Dog)'), ('PGACOMCHARCODE-A11-APH','DGWG','DGWG - Wirehaired Pointing Griffon (Dog)'), ('PGACOMCHARCODE-A11-APH','DGXO','DGXO - Xoloitzcuintli (Xolo) (Dog)'), ('PGACOMCHARCODE-A11-APH','DGYT','DGYT - Yorkshire Terrier (Dog)'), ('PGACOMCHARCODE-A11-APH','DKOT','DKOT - Other Breed (Donkey)'), ('PGACOMCHARCODE-A11-APH','DKAB','DKAB - Abyssinian (Donkey)'), ('PGACOMCHARCODE-A11-APH','DKAN','DKAN - Anatolia (Donkey)'), ('PGACOMCHARCODE-A11-APH','DKLS','DKLS - Large Standard (Donkey)'), ('PGACOMCHARCODE-A11-APH','DKMJ','DKMJ - Mammoth Jack Stock (Donkey)'), ('PGACOMCHARCODE-A11-APH','DKMA','DKMA - Mary (Donkey)'), ('PGACOMCHARCODE-A11-APH','DKMI','DKMI - Miniature (Donkey)'), ('PGACOMCHARCODE-A11-APH','DKPO','DKPO - Poitou (Donkey)'), ('PGACOMCHARCODE-A11-APH','DKST','DKST - Standard (Donkey)'), ('PGACOMCHARCODE-A11-APH','FOT','FOT - Other (Fish)'), ('PGACOMCHARCODE-A11-APH','FCO','FCO - Common carp, including koi (Cyprinus carpio) (Fish)'), ('PGACOMCHARCODE-A11-APH','FGC','FGC - Grass carp (Ctenopharyngodonidellus) (Fish)'), ('PGACOMCHARCODE-A11-APH','FSC','FSC - Silver carp (Hypophthalmichthysmolitrix) (Fish)'), ('PGACOMCHARCODE-A11-APH','FBC','FBC - Bighead carp (Aristichthys nobilis) (Fish)'), ('PGACOMCHARCODE-A11-APH','FCC','FCC - Crucian carp (Carassius carassius)(Fish)'), ('PGACOMCHARCODE-A11-APH','FGF','FGF - Goldfish (Carassius auratus) (Fish)'), ('PGACOMCHARCODE-A11-APH','FTT','FTT - Tench (Tinca tinca) (Fish)'), ('PGACOMCHARCODE-A11-APH','FSF','FSF - Sheatfish (Silurus glanis) (Fish)'), ('PGACOMCHARCODE-A11-APH','GAB','GAB - Anatolian Black (Goat)'), ('PGACOMCHARCODE-A11-APH','GAI','GAI - Arapawa Island (Goat)'), ('PGACOMCHARCODE-A11-APH','GAL','GAL - Alpine (Goat)'), ('PGACOMCHARCODE-A11-APH','GAM','GAM - Altai Mountain (Goat)'), ('PGACOMCHARCODE-A11-APH','GAC','GAC - American Cashmere (Goat)'), ('PGACOMCHARCODE-A11-APH','GAN','GAN - Angora (Goat)'), ('PGACOMCHARCODE-A11-APH','GAP','GAP - Appenzell (Goat)'), ('PGACOMCHARCODE-A11-APH','GAU','GAU - Australian (Goat)'), ('PGACOMCHARCODE-A11-APH','GBA','GBA - British Alpine (Goat)'), ('PGACOMCHARCODE-A11-APH','GBB','GBB - Black Bengal (Goat)'), ('PGACOMCHARCODE-A11-APH','GBD','GBD - Bionda dell''Adamello (Goat)'), ('PGACOMCHARCODE-A11-APH','GBF','GBF - Belgian Fawn (Goat)'), ('PGACOMCHARCODE-A11-APH','GBG','GBG - Bagot (Goat)'), ('PGACOMCHARCODE-A11-APH','GBH','GBH - Bhuj (Goat)'), ('PGACOMCHARCODE-A11-APH','GBI','GBI - Barbari (Goat)'), ('PGACOMCHARCODE-A11-APH','GBN','GBN - Benadir (Goat)'), ('PGACOMCHARCODE-A11-APH','GBE','GBE - Boer (Goat)'), ('PGACOMCHARCODE-A11-APH','GBO','GBO - Booted (Goat)'), ('PGACOMCHARCODE-A11-APH','GBS','GBS - Brown Shorthair (Goat)'), ('PGACOMCHARCODE-A11-APH','GBT','GBT - Beetal (Goat)'), ('PGACOMCHARCODE-A11-APH','GCA','GCA - Canindé (Goat)'), ('PGACOMCHARCODE-A11-APH','GCM','GCM - Cashmere (Goat)'), ('PGACOMCHARCODE-A11-APH','GCB','GCB - Chengdu Brown (Goat)'), ('PGACOMCHARCODE-A11-APH','GCC','GCC - Chamois Colored (Goat)'), ('PGACOMCHARCODE-A11-APH','GCG','GCG - Chigu (Goat)'), ('PGACOMCHARCODE-A11-APH','GCH','GCH - Changthangi (Goat)'), ('PGACOMCHARCODE-A11-APH','GCI','GCI - Canary Island (Goat)'), ('PGACOMCHARCODE-A11-APH','GCN','GCN - Carpathian (Goat)'), ('PGACOMCHARCODE-A11-APH','GCP','GCP - Chengde Polled (Goat)'), ('PGACOMCHARCODE-A11-APH','GCQ','GCQ - Charnequeira (Goat)'), ('PGACOMCHARCODE-A11-APH','GCR','GCR - Chappar (Goat)'), ('PGACOMCHARCODE-A11-APH','GCS','GCS - Corsican (Goat)'), ('PGACOMCHARCODE-A11-APH','GDC','GDC - Dutch Landrace (Goat)'), ('PGACOMCHARCODE-A11-APH','GDD','GDD - Daera Din Panah (Goat)'), ('PGACOMCHARCODE-A11-APH','GDI','GDI - Damani (Goat)'), ('PGACOMCHARCODE-A11-APH','GDL','GDL - Danish Landrace (Goat)'), ('PGACOMCHARCODE-A11-APH','GDO','GDO - Don (Goat)'), ('PGACOMCHARCODE-A11-APH','GDS','GDS - Damascus (Goat)'), ('PGACOMCHARCODE-A11-APH','GDT','GDT - Dutch Toggenburg (Goat)'), ('PGACOMCHARCODE-A11-APH','GDU','GDU - Duan (Goat)'), ('PGACOMCHARCODE-A11-APH','GEZ','GEZ - Erzgebirge (Goat)'), ('PGACOMCHARCODE-A11-APH','GFL','GFL - Finnish Landrace (Goat)'), ('PGACOMCHARCODE-A11-APH','GGG','GGG - Golden Guernsey (Goat)'), ('PGACOMCHARCODE-A11-APH','GGI','GGI - Girgentana (Goat)'), ('PGACOMCHARCODE-A11-APH','GGO','GGO - Göingeget (Goat)'), ('PGACOMCHARCODE-A11-APH','GGS','GGS - Grisons Striped (Goat)'), ('PGACOMCHARCODE-A11-APH','GHA','GHA - Hailun (Goat)'), ('PGACOMCHARCODE-A11-APH','GHC','GHC - Hexi Cashmere (Goat)'), ('PGACOMCHARCODE-A11-APH','GHE','GHE - Hejazi (Goat)'), ('PGACOMCHARCODE-A11-APH','GHI','GHI - Hungarian Improved (Goat)'), ('PGACOMCHARCODE-A11-APH','GHM','GHM - Haimen (Goat)'), ('PGACOMCHARCODE-A11-APH','GHO','GHO - Hongtong (Goat)'), ('PGACOMCHARCODE-A11-APH','GHS','GHS - Hasi (Goat)'), ('PGACOMCHARCODE-A11-APH','GHT','GHT - Huaitoutala (Goat)'), ('PGACOMCHARCODE-A11-APH','GHU','GHU - Huaipi (Goat)'), ('PGACOMCHARCODE-A11-APH','GIR','GIR - Irish (Goat)'), ('PGACOMCHARCODE-A11-APH','GJG','GJG - Jining Grey (Goat)'), ('PGACOMCHARCODE-A11-APH','GKG','GKG - Kaghani (Goat)'), ('PGACOMCHARCODE-A11-APH','GKI','GKI - Kiko (Goat)'), ('PGACOMCHARCODE-A11-APH','GKN','GKN - Kinder (Goat)'), ('PGACOMCHARCODE-A11-APH','GKM','GKM - Kamori (Goat)'), ('PGACOMCHARCODE-A11-APH','GLM','GLM - LaMancha (Goat)'), ('PGACOMCHARCODE-A11-APH','GLO','GLO - Loashan (Goat)'), ('PGACOMCHARCODE-A11-APH','GMX','GMX - Moxotó (Goat)'), ('PGACOMCHARCODE-A11-APH','GMG','GMG - Murcia-Granada (Goat)'), ('PGACOMCHARCODE-A11-APH','GMY','GMY - Myotonic (Goat)'), ('PGACOMCHARCODE-A11-APH','GNA','GNA - Nachi (Goat)'), ('PGACOMCHARCODE-A11-APH','GND','GND - Nigerian Dwarfs (Goat)'), ('PGACOMCHARCODE-A11-APH','GNO','GNO - Norwegian (Goat)'), ('PGACOMCHARCODE-A11-APH','GNU','GNU - Nubian (Goat)'), ('PGACOMCHARCODE-A11-APH','GOI','GOI - Oberhasli (Goat)'), ('PGACOMCHARCODE-A11-APH','GOB','GOB - Other Breed (Goat)'), ('PGACOMCHARCODE-A11-APH','GPE','GPE - Peacock (Goat)'), ('PGACOMCHARCODE-A11-APH','GPG','GPG - Pygmy (Goat)'), ('PGACOMCHARCODE-A11-APH','GPH','GPH - Philippine (Goat)'), ('PGACOMCHARCODE-A11-APH','GPO','GPO - Poitou (Goat)'), ('PGACOMCHARCODE-A11-APH','GPY','GPY - Pygora (Goat)'), ('PGACOMCHARCODE-A11-APH','GPR','GPR - Pyrenean (Goat)'), ('PGACOMCHARCODE-A11-APH','GQI','GQI - Qinshan (Goat)'), ('PGACOMCHARCODE-A11-APH','GRE','GRE - Repartida (Goat)'), ('PGACOMCHARCODE-A11-APH','GRW','GRW - Russian White (Goat)'), ('PGACOMCHARCODE-A11-APH','GSA','GSA - Saanen (Goat)'), ('PGACOMCHARCODE-A11-APH','GSC','GSC - San Clemente (Goat)'), ('PGACOMCHARCODE-A11-APH','GSH','GSH - Sahelian (Goat)'), ('PGACOMCHARCODE-A11-APH','GSL','GSL - Swedish Landrace (Goat)'), ('PGACOMCHARCODE-A11-APH','GSO','GSO - Somali (Goat)'), ('PGACOMCHARCODE-A11-APH','GSP','GSP - Spanish Meat (Goat)'), ('PGACOMCHARCODE-A11-APH','GSR','GSR - SRD (Goat)'), ('PGACOMCHARCODE-A11-APH','GTA','GTA - Tauernsheck (Goat)'), ('PGACOMCHARCODE-A11-APH','GTF','GTF - Tennessee Fainting (Goat)'), ('PGACOMCHARCODE-A11-APH','GTH','GTH - Thuringian (Goat)'), ('PGACOMCHARCODE-A11-APH','GTO','GTO - Toggenburg (Goat)'), ('PGACOMCHARCODE-A11-APH','GUZ','GUZ - Uzbek Black (Goat)'), ('PGACOMCHARCODE-A11-APH','GVB','GVB - Valais Blackneck (Goat)'), ('PGACOMCHARCODE-A11-APH','GVE','GVE - Verata (Goat)'), ('PGACOMCHARCODE-A11-APH','GWA','GWA - West African Dwarf (Goat)'), ('PGACOMCHARCODE-A11-APH','GWS','GWS - White shorthaired (Goat)'), ('PGACOMCHARCODE-A11-APH','GXI','GXI - Xinjiang (Goat)'), ('PGACOMCHARCODE-A11-APH','GXU','GXU - Xuhai (Goat)'), ('PGACOMCHARCODE-A11-APH','GYM','GYM - Yemen Mountain (Goat)'), ('PGACOMCHARCODE-A11-APH','GZA','GZA - Zalawadi (Goat)'), ('PGACOMCHARCODE-A11-APH','GZH','GZH - Zhiwulin Black (Goat)'), ('PGACOMCHARCODE-A11-APH','GZO','GZO - Zhongwei (Goat)'), ('PGACOMCHARCODE-A11-APH','HAT','HAT - Akhal-Teke (Horse)'), ('PGACOMCHARCODE-A11-APH','HAC','HAC - American Cream Draft (Horse)'), ('PGACOMCHARCODE-A11-APH','HAP','HAP - American Paint (Horse)'), ('PGACOMCHARCODE-A11-APH','HAQ','HAQ - American Quarter (Horse)'), ('PGACOMCHARCODE-A11-APH','HAS','HAS - American Saddlebred (Horse)'), ('PGACOMCHARCODE-A11-APH','HAN','HAN - Andalusian (Horse)'), ('PGACOMCHARCODE-A11-APH','HAB','HAB - Anglo-Arab (Horse)'), ('PGACOMCHARCODE-A11-APH','HAA','HAA - Appaloosa (Horse)'), ('PGACOMCHARCODE-A11-APH','HAR','HAR - Arabian (Horse)'), ('PGACOMCHARCODE-A11-APH','HBC','HBC - Bashkir Curly (Horse)'), ('PGACOMCHARCODE-A11-APH','HBG','HBG - Belgian (Horse)'), ('PGACOMCHARCODE-A11-APH','HBW','HBW - Belgian Warmblood (Horse)'), ('PGACOMCHARCODE-A11-APH','HCB','HCB - Cleveland Bay (Horse)'), ('PGACOMCHARCODE-A11-APH','HCD','HCD - Clydesdale (Horse)'), ('PGACOMCHARCODE-A11-APH','HCM','HCM - Connemara (Horse)'), ('PGACOMCHARCODE-A11-APH','HDW','HDW - Danish Warmblood (Horse)'), ('PGACOMCHARCODE-A11-APH','WDC','WDC - Draft cross (Horse)'), ('PGACOMCHARCODE-A11-APH','HDU','HDU - Dutch Warmblood (Horse)'), ('PGACOMCHARCODE-A11-APH','HFR','HFR - Friesian (Horse)'), ('PGACOMCHARCODE-A11-APH','HHA','HHA - Hackney (Horse)'), ('PGACOMCHARCODE-A11-APH','HHF','HHF - Haflinger (Horse)'), ('PGACOMCHARCODE-A11-APH','HHN','HHN - Hanoverian (Horse)'), ('PGACOMCHARCODE-A11-APH','HHO','HHO - Holsteiner (Horse)'), ('PGACOMCHARCODE-A11-APH','HIC','HIC - Icelandic (Horse)'), ('PGACOMCHARCODE-A11-APH','HID','HID - Irish Draught (Horse)'), ('PGACOMCHARCODE-A11-APH','HLI','HLI - Lipizzan (Horse)'), ('PGACOMCHARCODE-A11-APH','HLU','HLU - Lusitano (Horse)'), ('PGACOMCHARCODE-A11-APH','HMI','HMI - Miniature (Horse)'), ('PGACOMCHARCODE-A11-APH','HMF','HMF - Missouri Fox Trotter (Horse)'), ('PGACOMCHARCODE-A11-APH','HMX','HMX - Mixed breed (Horse)'), ('PGACOMCHARCODE-A11-APH','HMO','HMO - Morgan (Horse)'), ('PGACOMCHARCODE-A11-APH','HML','HML - Mule (Horse)'), ('PGACOMCHARCODE-A11-APH','HMU','HMU - Mustang (Horse)'), ('PGACOMCHARCODE-A11-APH','HNF','HNF - Norwegian Fjord (Horse)'), ('PGACOMCHARCODE-A11-APH','HOB','HOB - Oldenburg (Horse)'), ('PGACOMCHARCODE-A11-APH','HOT','HOT - Other Breed (Horse)'), ('PGACOMCHARCODE-A11-APH','HOCB','HOCB - Other Cold Blood (Horse)'), ('PGACOMCHARCODE-A11-APH','HHB','HHB - Other Hot Blood (Horse)'), ('PGACOMCHARCODE-A11-APH','HWB','HWB - Other Warm Blood (Horse)'), ('PGACOMCHARCODE-A11-APH','HPL','HPL - Palomino (Horse)'), ('PGACOMCHARCODE-A11-APH','HPE','HPE - Percheron (Horse)'), ('PGACOMCHARCODE-A11-APH','HPF','HPF - Peruvian Paso / Paso Fino (Horse)'), ('PGACOMCHARCODE-A11-APH','HPI','HPI - Pinto (Horse)'), ('PGACOMCHARCODE-A11-APH','HPP','HPP - Polo Pony (Horse)'), ('PGACOMCHARCODE-A11-APH','HPO','HPO - Ponies (Horse)'), ('PGACOMCHARCODE-A11-APH','HPA','HPA - Pony of the Americas (Horse)'), ('PGACOMCHARCODE-A11-APH','HRM','HRM - Rocky Mountain (Horse)'), ('PGACOMCHARCODE-A11-APH','HSB','HSB - Saddlebred (Horse)'), ('PGACOMCHARCODE-A11-APH','HSF','HSF - Selle Francais (Horse)'), ('PGACOMCHARCODE-A11-APH','HSL','HSL - Shetland Pony (Horse)'), ('PGACOMCHARCODE-A11-APH','HSH','HSH - Shire (Horse)'), ('PGACOMCHARCODE-A11-APH','HSP','HSP - Spanish Purebred (Horse)'), ('PGACOMCHARCODE-A11-APH','HST','HST - Standardbred (Horse)'), ('PGACOMCHARCODE-A11-APH','HSW','HSW - Swedish Warmblood (Horse)'), ('PGACOMCHARCODE-A11-APH','HTW','HTW - Tennessee Walking (Horse)'), ('PGACOMCHARCODE-A11-APH','HTB','HTB - Thoroughbred (Horse)'), ('PGACOMCHARCODE-A11-APH','HTR','HTR - Trakehner (Horse)'), ('PGACOMCHARCODE-A11-APH','HCO','HCO - Welsh Pony or Cob (Horse)'), ('PGACOMCHARCODE-A11-APH','HWP','HWP - Westphalian (Horse)'), ('PGACOMCHARCODE-A11-APH','LLOT','LLOT - Other Breed (Llama)'), ('PGACOMCHARCODE-A11-APH','LLGL','LLGL - Llama (Lama glama)'), ('PGACOMCHARCODE-A11-APH','LLGU','LLGU - Guanaco (Lama guanicoe)'), ('PGACOMCHARCODE-A11-APH','ALVV','ALVV - Vicuña (Vicugna vicugna)'), ('PGACOMCHARCODE-A11-APH','ALVH','ALVH - Alpaca - Huacaya (Vicugna pacos)'), ('PGACOMCHARCODE-A11-APH','ALPS','ALPS - Alpaca – Suri (Vicugna pacos)'), ('PGACOMCHARCODE-A11-APH','OTOT','OTOT - Other Breeds (not listed)'), ('PGACOMCHARCODE-A11-APH','PCAB','PCAB - Antwerp Belgian Bantam (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCAC','PCAC - Ac (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCAD','PCAD - Andalusian (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCAH','PCAH - Appenzell Pointed Hood Hen (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCAL','PCAL - Aseel /Asil (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCAM','PCAM - Ameracaunas (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCAN','PCAN - Ancona (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCAP','PCAP - Appenzell Bearded Hen (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCAR','PCAR - Araucana (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCAS','PCAS - Appenzeller Spithauben (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCAU','PCAU - Australorp (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCBA','PCBA - Bandara (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCBB','PCBB - Belgian Bearded d''Uccle Bantam (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCBC','PCBC - Buttercup (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCBE','PCBE - Buckeye (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCBJ','PCBJ - Baheij (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCBO','PCBO - Booted Bantam (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCBR','PCBR - Brahma (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCBV','PCBV - Barnevelders (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCCH','PCCH - Chantecler (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCCN','PCCN - Cornish (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCCO','PCCO - Cochin (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCCP','PCCP - Campine (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCCR','PCCR - Crevecoeur (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCCT','PCCT - Catalana (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCCU','PCCU - Cubalaya (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCDB','PCDB - Dutch Bantam (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCDE','PCDE - Delaware (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCDK','PCDK - Dorking (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCDO','PCDO - Dominique (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCEE','PCEE - Easter Eggers (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCFA','PCFA - Faverolles (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCFR','PCFR - Frieslands (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCFY','PCFY - Fayoumi (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCFZ','PCFZ - Frizzle (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCGI','PCGI - Gallus Inauris (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCGM','PCGM - Golden Montazah (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCHA','PCHA - Hamburg (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCHO','PCHO - Holland (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCHU','PCHU - Houdan (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCJA','PCJA - Java (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCJB','PCJB - Japanese Bantam (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCJG','PCJG - Jersey Giant (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCLA','PCLA - Lamona (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCLB','PCLB - Legbar (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCLE','PCLE - Leghorn (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCLF','PCLF - La Fleche (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCLS','PCLS - Langshan (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCLV','PCLV - Lakenvelder (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCMA','PCMA - Matrouh (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCMG','PCMG - Modern Game (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCMI','PCMI - Minorca (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCML','PCML - Malay (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCNH','PCNH - New Hampshire Red (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCOB','PCOB - Other Breed (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCOE','PCOE - Old English Game (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCOR','PCOR - Orpington (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCPE','PCPE - Penedesenca (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCPH','PCPH - Phoenix (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCPO','PCPO - Polish (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCPR','PCPR - Plymouth Rock (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCRB','PCRB - Rosecomb Bantam (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCRC','PCRC - Red Cap (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCRI','PCRI - Rhode Island Red (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCRO','PCRO - Russian Orloff (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCSB','PCSB - Sebright Bantam (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCSC','PCSC - Sicilian Buttercup (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCSH','PCSH - Swiss Hen (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCSI','PCSI - Silkie Bantam (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCSL','PCSL - Sultan (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCSM','PCSM - Silver Montazah (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCST','PCST - Star (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCSY','PCSY - Styrian (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCSU','PCSU - Sumatra (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCSX','PCSX - Sussex (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCTU','PCTU - Turken (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCWF','PCWF - White-Faced Black Spanish (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCWY','PCWY - Wyandotte (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PCYO','PCYO - Yokohama (Poultry – Chicken)'), ('PGACOMCHARCODE-A11-APH','PDAN','PDAN - Ancona (Poultry – Duck)'), ('PGACOMCHARCODE-A11-APH','PDAS','PDAS - Australian Spotted (Poultry – Duck)'), ('PGACOMCHARCODE-A11-APH','PDAY','PDAY - Aylesbury (Poultry – Duck)'), ('PGACOMCHARCODE-A11-APH','PDBU','PDBU - Buff or Orpington (Poultry – Duck)'), ('PGACOMCHARCODE-A11-APH','PDCA','PDCA - Cayuga (Poultry – Duck)'), ('PGACOMCHARCODE-A11-APH','PDCR','PDCR - Crested (Poultry – Duck)'), ('PGACOMCHARCODE-A11-APH','PDDH','PDDH - Dutch Hookbill (Poultry – Duck)'), ('PGACOMCHARCODE-A11-APH','PDKC','PDKC - Khaki Campbell (Poultry – Duck)'), ('PGACOMCHARCODE-A11-APH','PDMA','PDMA - Magpie (Poultry – Duck)'), ('PGACOMCHARCODE-A11-APH','PDMU','PDMU - Muscovy (Poultry – Duck)'), ('PGACOMCHARCODE-A11-APH','PDOB','PDOB - Other Breed (Poultry – Duck)'), ('PGACOMCHARCODE-A11-APH','PDOR','PDOR - Orpington (Poultry – Duck)'), ('PGACOMCHARCODE-A11-APH','PDPK','PDPK - Pekin (Poultry – Duck)'), ('PGACOMCHARCODE-A11-APH','PDPO','PDPO - Pommeranian Duck (Poultry – Duck)'), ('PGACOMCHARCODE-A11-APH','PDRN','PDRN - Runner (Poultry – Duck)'), ('PGACOMCHARCODE-A11-APH','PDRU','PDRU - Rouen (Poultry – Duck)'), ('PGACOMCHARCODE-A11-APH','PDSX','PDSX - Saxony (Poultry – Duck)'), ('PGACOMCHARCODE-A11-APH','PDSA','PDSA - Silver Appleyard (Poultry – Duck)'), ('PGACOMCHARCODE-A11-APH','PDSW','PDSW - Swedish (Poultry – Duck)'), ('PGACOMCHARCODE-A11-APH','PDWH','PDWH - Welsh Harlequin (Poultry – Duck)'), ('PGACOMCHARCODE-A11-APH','PGAB','PGAB - American Buff (Poultry – Goose)'), ('PGACOMCHARCODE-A11-APH','PGAF','PGAF - African (Poultry – Goose)'), ('PGACOMCHARCODE-A11-APH','PGCH','PGCH - Chinese (Poultry – Goose)'), ('PGACOMCHARCODE-A11-APH','PGCP','PGCP - Cotton Patch (Poultry – Goose)'), ('PGACOMCHARCODE-A11-APH','PGOB','PGOB - Other Breed (Poultry – Goose)'), ('PGACOMCHARCODE-A11-APH','PGPI','PGPI - Pilgrim (Poultry – Goose)'), ('PGACOMCHARCODE-A11-APH','PGPO','PGPO - Pomeranian (Poultry – Goose)'), ('PGACOMCHARCODE-A11-APH','PGRO','PGRO - Roman (Poultry – Goose)'), ('PGACOMCHARCODE-A11-APH','PGSE','PGSE - Sebastopol (Poultry – Goose)'), ('PGACOMCHARCODE-A11-APH','PGSH','PGSH - Shetland (Poultry – Goose)'), ('PGACOMCHARCODE-A11-APH','PGST','PGST - Steinbacher (Poultry – Goose)'), ('PGACOMCHARCODE-A11-APH','PGTO','PGTO - Toulouse (Poultry – Goose)'), ('PGACOMCHARCODE-A11-APH','POGR','POGR - Grouse (Poultry – Other)'), ('PGACOMCHARCODE-A11-APH','POGF','POGF - Guinea fowl (Poultry – Other)'), ('PGACOMCHARCODE-A11-APH','POPA','POPA - Partridge (Poultry – Other)'), ('PGACOMCHARCODE-A11-APH','POPF','POPF - Pea fowl (Poultry – Other)'), ('PGACOMCHARCODE-A11-APH','POPH','POPH - Pheasants (Poultry – Other)'), ('PGACOMCHARCODE-A11-APH','POPQ','POPQ - Quail (Poultry – Other)'), ('PGACOMCHARCODE-A11-APH','POSW','POSW - Swan (Poultry – Other)'), ('PGACOMCHARCODE-A11-APH','PTBB','PTBB - Bronze Broad Breasted (Poultry – Turkey)'), ('PGACOMCHARCODE-A11-APH','PTBK','PTBK - Black (Poultry – Turkey)'), ('PGACOMCHARCODE-A11-APH','PTBL','PTBL - Blue (Poultry – Turkey)'), ('PGACOMCHARCODE-A11-APH','PTBR','PTBR - Bourbon Red (Poultry – Turkey)'), ('PGACOMCHARCODE-A11-APH','PTBZ','PTBZ - Bronze (Poultry – Turkey)'), ('PGACOMCHARCODE-A11-APH','PTBS','PTBS - Beltsville Small White (Poultry – Turkey)'), ('PGACOMCHARCODE-A11-APH','PTCH','PTCH - Chocolate (Poultry – Turkey)'), ('PGACOMCHARCODE-A11-APH','PTJB','PTJB - Jersey Buff Turkey (Poultry – Turkey)'), ('PGACOMCHARCODE-A11-APH','PTLL','PTLL - Lavender/Lilac (Poultry – Turkey)'), ('PGACOMCHARCODE-A11-APH','PTMW','PTMW - Midget White (Poultry – Turkey)'), ('PGACOMCHARCODE-A11-APH','PTNA','PTNA - Narragansett (Poultry – Turkey)'), ('PGACOMCHARCODE-A11-APH','PTOB','PTOB - Other Breed (Poultry – Turkey)'), ('PGACOMCHARCODE-A11-APH','PTRO','PTRO - Royal Palm (Poultry – Turkey)'), ('PGACOMCHARCODE-A11-APH','PTSB','PTSB - Heritage Standard Bronze (Poultry – Turkey)'), ('PGACOMCHARCODE-A11-APH','PTSL','PTSL - Slate (Poultry – Turkey)'), ('PGACOMCHARCODE-A11-APH','PTWH','PTWH - White Holland (Poultry – Turkey)'), ('PGACOMCHARCODE-A11-APH','RDOT','RDOT - Other Breed (Reindeer)'), ('PGACOMCHARCODE-A11-APH','RDCH','RDCH - Chukotka (Reindeer)'), ('PGACOMCHARCODE-A11-APH','RDEV','RDEV - Even (Reindeer)'), ('PGACOMCHARCODE-A11-APH','RDEK','RDEK - Evenk (Reindeer)'), ('PGACOMCHARCODE-A11-APH','RDNE','RDNE - Nentsi (Reindeer)'), ('PGACOMCHARCODE-A11-APH','SHAA','SHAA - Afghan Arabi (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHAB','SHAB - American Blackbelly (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHAC','SHAC - Acipayam (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHAV','SHAV - Algarve Churro (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHAD','SHAD - Adal (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHAF','SHAF - Africana (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHAG','SHAG - Algerian Arab (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHAI','SHAI - Arapawa Island (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHAK','SHAK - Askanian (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHAL','SHAL - Alai (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHAM','SHAM - Argentine Merino (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHAN','SHAN - Alcarreña (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHAO','SHAO - Arles Merino (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHAP','SHAP - Apennine (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHAR','SHAR - Arabi (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHAS','SHAS - Armenian Semicoarsewool (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHAT','SHAT - Altai (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHAW','SHAW - Awassi (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHAY','SHAY - Altay (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHBA','SHBA - Booroola Merino (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHBB','SHBB - Barbados Blackbelly (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHBC','SHBC - Baluchi (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHBD','SHBD - Barbado (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHBE','SHBE - Bergamasca (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHBF','SHBF - Bavarian Forest (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHBG','SHBG - Braunes Bergschaf (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHBH','SHBH - Brecknock Hill Cheviot (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHBI','SHBI - Biellese (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHCA','SHCA - Bluefaced Leicester (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHBJ','SHBJ - Bündner Oberland (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHBK','SHBK - Balkhi (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHBL','SHBL - Bentheimer Landschaf (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHBM','SHBM - Black Welsh Mountain (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHBN','SHBN - Brillenschaf (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHBO','SHBO - Bond (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHBP','SHBP - Beulah Speckled-Face (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHBQ','SHBQ - Blackhead Persian (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHBR','SHBR - Bibrik (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHBS','SHBS - Basco-Béarnais (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHBT','SHBT - Border Leicester (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHBU','SHBU - Bleu du Maine (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHBV','SHBV - Bovska (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHBW','SHBW - Balwen Welsh Mountain (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHBX','SHBX - British Milk Sheep (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHBY','SHBY - Boreray (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHBZ','SHBZ - Brazilian Somali (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHCB','SHCB - Campanian Barbary (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHCC','SHCC - Cine Capari (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHCD','SHCD - Corriedale (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHCE','SHCE - Cheviot (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHCF','SHCF - Clun Forest (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHCG','SHCG - Coburger Fuchsschaf (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHCH','SHCH - Cholistani (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHCI','SHCI - Chios (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHCK','SHCK - Comeback (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHCL','SHCL - Criollo (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHCM','SHCM - Castlemilk Moorit (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHCN','SHCN - Comisana (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHCO','SHCO - Cormo (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHCP','SHCP - Coopworth (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHCR','SHCR - California Red (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHCS','SHCS - Charollais (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHCV','SHCV - California Variegated Mutant (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHCW','SHCW - Cotswold (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHCX','SHCX - Columbia (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHDA','SHDA - Dala (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHDB','SHDB - Dalesbred (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHDC','SHDC - Devon Close wool (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHDD','SHDD - Dorset Down (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHDE','SHDE - Debouillet (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHDF','SHDF - Deutsches Blaukoepfiges Fleischschaf (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHDG','SHDG - Dagliç (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHDH','SHDH - Derbyshire Gritstone (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHDL','SHDL - Danish Landrace (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHDM','SHDM - Delaine Merino (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHDN','SHDN - Damani (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHDP','SHDP - Dorper (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHDR','SHDR - Damara (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHDT','SHDT - Dartmoor (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHDW','SHDW - Devon Longwoolled (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHDX','SHDX - Dorset (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHDY','SHDY - Drysdale (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHEL','SHEL - Elliottdale (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHEX','SHEX - Exmoor Horn (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHFA','SHFA - Fabrianese (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHFE','SHFE - Faeroes (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHFI','SHFI - Finnsheep (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHFM','SHFM - Friesian Milk (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHFO','SHFO - Fonthill Merino (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHGA','SHGA - Galway (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHGB','SHGB - German Blackheaded Mutton (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHGC','SHGC - Gulf Coast (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHGF','SHGF - Gansu Alpine Fine-wool (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHGH','SHGH - Graue Gehoernte Heidschnucke (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHGK','SHGK - Gökçeada (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHGL','SHGL - Gotland (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHGM','SHGM - German Mountain (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHGO','SHGO - German Mutton Merino (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHGP','SHGP - Gentile di Puglia (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHGR','SHGR - Gromark (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHGU','SHGU - Gute (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHGW','SHGW - German Whiteheaded Mutton (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHGZ','SHGZ - Ghezel (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHHA','SHHA - Han (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHHE','SHHE - Hebridean (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHHI','SHHI - Hog Island (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHHK','SHHK - Herik (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHHN','SHHN - Hasht Nagri (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHHR','SHHR - Harnai (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHHL','SHHL - Hill Radnor (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHHS','SHHS - Hampshire (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHHU','SHHU - Hu (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHHW','SHHW - Herdwick (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHHZ','SHHZ - Hazaragie (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHIC','SHIC - Icelandic (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHIF','SHIF - Ile-de-France (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHIM','SHIM - Istrian Milk (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHJA','SHJA - Jacob (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHJE','SHJE - Jezerskosolcavska (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHKA','SHKA - Kachhi (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHKD','SHKD - Katahdin (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHKH','SHKH - Kerry Hill (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHKI','SHKI - Kivircik (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHKJ','SHKJ - Kajli (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHKK','SHKK - Karakul (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHKM','SHKM - Karacabey Merino (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHKO','SHKO - Kooka (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHKY','SHKY - Karayaka (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHLA','SHLA - Landais (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHLE','SHLE - Leineschaf (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHLH','SHLH - Lohi (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHLI','SHLI - Lincoln (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHLL','SHLL - Leicester Longwool (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHLN','SHLN - Langhe (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHLO','SHLO - Lonk (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHLT','SHLT - Lati (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHLU','SHLU - Luzein (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHLW','SHLW - Llanwenog (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHLY','SHLY - Lleyn (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHMA','SHMA - Maltese (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHMB','SHMB - Mehraban (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHMC','SHMC - Manech (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHMD','SHMD - Montadale (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHME','SHME - Massese (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHMF','SHMF - Merinolandschaf (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHMI','SHMI - Merinizzata italiana (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHML','SHML - Manx Loaghtan (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHMN','SHMN - Manchega (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHMR','SHMR - Morada Nova (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHMO','SHMO - Moghani (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHMS','SHMS - Masai (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHMU','SHMU - Mouflon (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHMW','SHMW - Merino Wool (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHNC','SHNC - Navajo-Churro (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHNE','SHNE - Nellore (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHNF','SHNF - Norwegian Fur (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHNH','SHNH - Norfolk Horn (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHNR','SHNR - North Ronaldsay (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHNT','SHNT - North Country Cheviot (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHON','SHON - Old Norwegian (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHOR','SHOR - Orkney (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHOS','SHOS - Ossimi (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHOT','SHOT - Other Breed (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHOX','SHOX - Oxford (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHPC','SHPC - Pomeranian Coarsewool (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHPD','SHPD - Perendale (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHPG','SHPG - Pagliarola (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHPI','SHPI - Pag Island (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHPL','SHPL - Pelibüey (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHPN','SHPN - Priangan (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHPO','SHPO - Poll Merino (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHPR','SHPR - Portland (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHPT','SHPT - Pitt Island (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHPW','SHPW - Polwarth (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHPY','SHPY - Polypay (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHPZ','SHPZ - Pinzirita (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHQA','SHQA - Qashqai (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHQB','SHQB - Qinghai Black Tibetan (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHQL','SHQL - Quanglin Large-tail (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHQS','SHQS - Qinghai Semifinewool (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHQU','SHQU - Quadrella (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHRA','SHRA - Rasa Aragonesa (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHRB','SHRB - Rambouillet (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHRC','SHRC - Racka (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHRD','SHRD - Rideau Arcott (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHRE','SHRE - Red Engadine (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHRF','SHRF - Rough Fell (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHRG','SHRG - Rouge de l''Ouest (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHRH','SHRH - Rhoenschaf (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHRJ','SHRJ - Rygja (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHRK','SHRK - Red Karaman (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHRL','SHRL - Rabo Largo (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHRN','SHRN - Ryeland (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHRM','SHRM - Romney (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHRR','SHRR - Rouge de Roussillon (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHRV','SHRV - Romanov (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHRW','SHRW - Royal White (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHRY','SHRY - Rya (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHSA','SHSA - South African Mutton Merino (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHSB','SHSB - Scottish Blackface (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHSC','SHSC - Santa Cruz (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHSD','SHSD - South Devon (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHSE','SHSE - Shropshire (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHSF','SHSF - Suffolk (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHSG','SHSG - Spiegel (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHSH','SHSH - Southdown (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHSI','SHSI - Santa Inês (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHNY','SHNY - Sicilian Barbary (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHSK','SHSK - Skudde (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHSL','SHSL - Shetland (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHSM','SHSM - South African Merino (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHSN','SHSN - Sardinian (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHSO','SHSO - Somali (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHSP','SHSP - Sar Planina (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHSQ','SHSQ - Swedish Fur (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHSR','SHSR - Steigar (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHSS','SHSS - South Suffolk (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHST','SHST - Sahel-type (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHSU','SHSU - Spælsau (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHSV','SHSV - Sopravissana (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHSW','SHSW - South Wales Mountain (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHSX','SHSX - St. Croix / Virgin Island White (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHSY','SHSY - Soay (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHSZ','SHSZ - Sakiz (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHTA','SHTA - Targhee (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHTE','SHTE - Teeswater (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHTH','SHTH - Thalli (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHTJ','SHTJ - Tuj (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHTM','SHTM - Tyrol Mountain (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHTN','SHTN - Tunis (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHTO','SHTO - Tong (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHTR','SHTR - Türkgeldi (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHTS','SHTS - Tsurcana (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHTU','SHTU - Touabire (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHTX','SHTX - Texel (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHUD','SHUD - Uda (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHUJ','SHUJ - Ujumqin (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHUS','SHUS - Ushant (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHVB','SHVB - Valais Blacknose (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHVD','SHVD - Vendéen (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHVR','SHVR - Van Rooy (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHWA','SHWA - West African Dwarf (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHWB','SHWB - Welsh Mountain Badger Faced (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHWC','SHWC - Wallis Country (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHWD','SHWD - White Horned Heath (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHWE','SHWE - Wensleydale (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHWF','SHWF - White Suffolk (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHWH','SHWH - Weisse Hornlose Heidschnucke (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHWK','SHWK - White Karaman (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHWL','SHWL - Walachenschaf (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHWM','SHWM - Welsh Mountain (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHWN','SHWN - Wiltshire Horn (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHWR','SHWR - Whiteface Dartmoor (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHWS','SHWS - Welsh Hill Speckled Face (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHWW','SHWW - Whiteface Woodland (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHWZ','SHWZ - Waziri (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHXA','SHXA - Xalda (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHXB','SHXB - Swiss Black-Brown Mountain (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHXD','SHXD - Swaledale (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHXF','SHXF - Xinjiang Finewool (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHXK','SHXK - Sumavska (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHXM','SHXM - Strong Wool Merino (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHXS','SHXS - Steinschaf (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHXW','SHXW - Swiss White Alpine (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHXX','SHXX - Xaxi Ardia (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHYA','SHYA - Yankasa (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHYE','SHYE - Yemeni (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHYI','SHYI - Yiecheng (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHYO','SHYO - Yoroo (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHYS','SHYS - Yunnan Semifinewool (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHYW','SHYW - Yemen White (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHZA','SHZA - Zaghawa (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHZE','SHZE - Zel (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHZG','SHZG - Zagoria (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHZK','SHZK - Zakynthos (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHZL','SHZL - Zaïre Long-legged (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHZM','SHZM - Zeeland Milk (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHZN','SHZN - Zaian (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHZR','SHZR - Zemmour (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHZS','SHZS - Zlatusha (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHZU','SHZU - Zoulay (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHZY','SHZY - Zeta Yellow (Sheep)'), ('PGACOMCHARCODE-A11-APH','SHZZ','SHZZ - Zelazna (Sheep)'), ('PGACOMCHARCODE-A11-APH','SWAI','SWAI - Arapawa Island (Swine)'), ('PGACOMCHARCODE-A11-APH','SWAL','SWAL - American Landrace (Swine)'), ('PGACOMCHARCODE-A11-APH','SWAS','SWAS - Angeln Saddleback (Swine)'), ('PGACOMCHARCODE-A11-APH','SWAY','SWAY - American Yorkshire (Swine)'), ('PGACOMCHARCODE-A11-APH','SWBZ','SWBZ - Bazna (Swine)'), ('PGACOMCHARCODE-A11-APH','SWBA','SWBA - Basque (Swine)'), ('PGACOMCHARCODE-A11-APH','SWBB','SWBB - Beijing Black or Peking Black (Swine)'), ('PGACOMCHARCODE-A11-APH','SWBE','SWBE - Bentheim Black Pied (Swine)'), ('PGACOMCHARCODE-A11-APH','SWBG','SWBG - Belgian Landrace (Swine)'), ('PGACOMCHARCODE-A11-APH','SWBK','SWBK - Berkshire (Swine)'), ('PGACOMCHARCODE-A11-APH','SWBL','SWBL - British Lop (Swine)'), ('PGACOMCHARCODE-A11-APH','SWBP','SWBP - Belarus Black Pied (Swine)'), ('PGACOMCHARCODE-A11-APH','SWBR','SWBR - British Landrace (Swine)'), ('PGACOMCHARCODE-A11-APH','SWBN','SWBN - Black Slavonian (Swine)'), ('PGACOMCHARCODE-A11-APH','SWBC','SWBC - Black Canarian Pig (Swine)'), ('PGACOMCHARCODE-A11-APH','SWBS','SWBS - British Saddleback (Swine)'), ('PGACOMCHARCODE-A11-APH','SWBT','SWBT - Bantu (Swine)'), ('PGACOMCHARCODE-A11-APH','SWBU','SWBU - Bulgarian White (Swine)'), ('PGACOMCHARCODE-A11-APH','SWBW','SWBW - Large Black-white (Swine)'), ('PGACOMCHARCODE-A11-APH','SWBX','SWBX - Ba Xuyen (Swine)'), ('PGACOMCHARCODE-A11-APH','SWCA','SWCA - Cantonese (Swine)'), ('PGACOMCHARCODE-A11-APH','SWCH','SWCH - Choctaw (Swine)'), ('PGACOMCHARCODE-A11-APH','SWCS','SWCS - Cinta Sense (Swine)'), ('PGACOMCHARCODE-A11-APH','SWCW','SWCW - Chester White (Swine)'), ('PGACOMCHARCODE-A11-APH','SWCZ','SWCZ - Czech Improved White (Swine)'), ('PGACOMCHARCODE-A11-APH','SWDC','SWDC - Duroc (Swine)'), ('PGACOMCHARCODE-A11-APH','SWDL','SWDL - Danish Landrace (Swine)'), ('PGACOMCHARCODE-A11-APH','SWDP','SWDP - Dermantsi Pied (Swine)'), ('PGACOMCHARCODE-A11-APH','SWDU','SWDU - Dutch Landrace (Swine)'), ('PGACOMCHARCODE-A11-APH','SWFI','SWFI - Finnish Landrace (Swine)'), ('PGACOMCHARCODE-A11-APH','SWFJ','SWFJ - Fengjing (Swine)'), ('PGACOMCHARCODE-A11-APH','SWFR','SWFR - French Landrace (Swine)'), ('PGACOMCHARCODE-A11-APH','SWGO','SWGO - Gloucester Old Spot (Swine)'), ('PGACOMCHARCODE-A11-APH','SWGR','SWGR - German Landrace (Swine)'), ('PGACOMCHARCODE-A11-APH','SWGU','SWGU - Guinea Hog (Swine)'), ('PGACOMCHARCODE-A11-APH','SWHE','SWHE - Herford (Swine)'), ('PGACOMCHARCODE-A11-APH','SWHS','SWHS - Hampshire (Swine)'), ('PGACOMCHARCODE-A11-APH','SWHZ','SWHZ - Hezuo (Swine)'), ('PGACOMCHARCODE-A11-APH','SWIA','SWIA - Ibérico or Alentejano Iberian (Swine)'), ('PGACOMCHARCODE-A11-APH','SWIT','SWIT - Italian Landrace (Swine)'), ('PGACOMCHARCODE-A11-APH','SWJI','SWJI - Jinhua (Swine)'), ('PGACOMCHARCODE-A11-APH','SWKE','SWKE - Kele (Swine)'), ('PGACOMCHARCODE-A11-APH','SWKK','SWKK - Kunekune (Swine)'), ('PGACOMCHARCODE-A11-APH','SWKR','SWKR - Krskopolje (Swine)'), ('PGACOMCHARCODE-A11-APH','SWLB','SWLB - Large Black (Swine)'), ('PGACOMCHARCODE-A11-APH','SWLE','SWLE - Lacombe (Swine)'), ('PGACOMCHARCODE-A11-APH','SWLN','SWLN - Lithuanian Native (Swine)'), ('PGACOMCHARCODE-A11-APH','SWLW','SWLW - Large White (Swine)'), ('PGACOMCHARCODE-A11-APH','SWMA','SWMA - Mangalitsa (Swine)'), ('PGACOMCHARCODE-A11-APH','SWMC','SWMC - Mong Cai (Swine)'), ('PGACOMCHARCODE-A11-APH','SWME','SWME - Meishan (Swine)'), ('PGACOMCHARCODE-A11-APH','SWMF','SWMF - Mulefoot (Swine)'), ('PGACOMCHARCODE-A11-APH','SWMI','SWMI - Minzhu (Swine)'), ('PGACOMCHARCODE-A11-APH','SWMO','SWMO - Moura (Swine)'), ('PGACOMCHARCODE-A11-APH','SWMR','SWMR - Mora Romagnola (Swine)'), ('PGACOMCHARCODE-A11-APH','SWMU','SWMU - Mukota (Swine)'), ('PGACOMCHARCODE-A11-APH','SWMW','SWMW - Middle White (Swine)'), ('PGACOMCHARCODE-A11-APH','SWNE','SWNE - Neijiang (Swine)'), ('PGACOMCHARCODE-A11-APH','SWNI','SWNI - Ningxiang (Swine)'), ('PGACOMCHARCODE-A11-APH','SWNL','SWNL - Norwegian Landrace (Swine)'), ('PGACOMCHARCODE-A11-APH','SWNY','SWNY - Norwegian Yorkshire (Swine)'), ('PGACOMCHARCODE-A11-APH','SWOI','SWOI - Ossabaw Island Hog (Swine)'), ('PGACOMCHARCODE-A11-APH','SWOS','SWOS - Oxford Sandy & Black (Swine)'), ('PGACOMCHARCODE-A11-APH','SWOT','SWOT - Other Breed (Swine)'), ('PGACOMCHARCODE-A11-APH','SWPC','SWPC - Poland China (Swine)'), ('PGACOMCHARCODE-A11-APH','SWPI','SWPI - Pietrain (Swine)'), ('PGACOMCHARCODE-A11-APH','SWPN','SWPN - Philippine Native (Swine)'), ('PGACOMCHARCODE-A11-APH','SWRW','SWRW - Red Wattle (Swine)'), ('PGACOMCHARCODE-A11-APH','SWSK','SWSK - Saddleback (Swine)'), ('PGACOMCHARCODE-A11-APH','SWSH','SWSH - Swabian-Hall (Swine)'), ('PGACOMCHARCODE-A11-APH','SWSL','SWSL - Swedish Landrace (Swine)'), ('PGACOMCHARCODE-A11-APH','SWSP','SWSP - Spotted (Swine)'), ('PGACOMCHARCODE-A11-APH','SWTI','SWTI - Tibetan (Swine)'), ('PGACOMCHARCODE-A11-APH','SWTN','SWTN - Thuoc Nhieu (Swine)'), ('PGACOMCHARCODE-A11-APH','SWTW','SWTW - Tamworth (Swine)'), ('PGACOMCHARCODE-A11-APH','SWTX','SWTX - Tokyo-X (Swine)'), ('PGACOMCHARCODE-A11-APH','SWTU','SWTU - Turopolie (Swine)'), ('PGACOMCHARCODE-A11-APH','SWVP','SWVP - Vietnamese Potbelly (Swine)'), ('PGACOMCHARCODE-A11-APH','SWWS','SWWS - Wessex Saddleback (Swine)'), ('PGACOMCHARCODE-A11-APH','SWFW','SWFW - West French White (Swine)'), ('PGACOMCHARCODE-A11-APH','SWWE','SWWE - Welsh (Swine)'), ('PGACOMCHARCODE-A11-APH','SWWU','SWWU - Wuzhishan (Swine)'), ('PGACOMCHARCODE-A11-APH','SWYA','SWYA - Yanan (Swine)'), ('PGACOMCHARCODE-A11-APH','SWZG','SWZG - Zungo (Swine)'), ('PGACOMCHARCODE-A11-APH','SOHM','SOHM - Hedgehog: Amur Hedgehog (Erinaceus amurensis)'), ('PGACOMCHARCODE-A11-APH','ZOAB','ZOAB - African Buffalo (Syncerus caffer)'), ('PGACOMCHARCODE-A11-APH','ZOAF','ZOAF - Alpine Ibex (Capra ibex )'), ('PGACOMCHARCODE-A11-APH','ZOAM','ZOAM - Asiatic Mouflon (Ovis orientalis)'), ('PGACOMCHARCODE-A11-APH','ZOAR','ZOAR - Argali (Ovis ammon)'), ('PGACOMCHARCODE-A11-APH','ZOAS','ZOAS - Bighorn Sheep (Ovis canadensis)'), ('PGACOMCHARCODE-A11-APH','ZOAT','ZOAT - Arabian Tahr (Hemitragus jayakari)'), ('PGACOMCHARCODE-A11-APH','ZOBG','ZOBG - Banteng (Bos javanicus)'), ('PGACOMCHARCODE-A11-APH','ZOBH','ZOBH - Bharal, Himalayan blue sheep (Pseudois nayaur)'), ('PGACOMCHARCODE-A11-APH','ZOBI','ZOBI - Babirusa, pig-deer; Indonesia (Babyrousa babyrussa)'), ('PGACOMCHARCODE-A11-APH','ZOBL','ZOBL - Bushpig (Potamochoerus larvatus)'), ('PGACOMCHARCODE-A11-APH','ZOBO','ZOBO - Bongo (Tragelaphus eurycerus)'), ('PGACOMCHARCODE-A11-APH','ZOBP','ZOBP - Bearded Pig; Malaysia, Indonesia (Sus barbatus)'), ('PGACOMCHARCODE-A11-APH','ZOBS','ZOBS - Barbary Sheep (Ammotragus lervia)'), ('PGACOMCHARCODE-A11-APH','ZOBU','ZOBU - Bushbuck (Tragelaphus scriptus)'), ('PGACOMCHARCODE-A11-APH','ZOCA','ZOCA - Cape, Somali or Desert Warthog; West, East and southern Africa (Phacochoerus aethiopicus)'), ('PGACOMCHARCODE-A11-APH','ZOCE','ZOCE - Common Eland (Taurotragus oryx)'), ('PGACOMCHARCODE-A11-APH','ZOCG','ZOCG - Chinese Goral (Nemorhaedus caudatus)'), ('PGACOMCHARCODE-A11-APH','ZOCH','ZOCH - Chamois (Rupicapra rupic)'), ('PGACOMCHARCODE-A11-APH','ZOCP','ZOCP - Celebes Warty Pig (Sus celebensis)'), ('PGACOMCHARCODE-A11-APH','ZOCW','ZOCW - Common Warthog (Phacochoerus africanus)'), ('PGACOMCHARCODE-A11-APH','ZODS','ZODS - Dall or Thinhorn Sheep (Ovis dalli)'), ('PGACOMCHARCODE-A11-APH','ZODW','ZODW - Dwarf Blue Sheep (Pseudois schaeferi)'), ('PGACOMCHARCODE-A11-APH','ZOEA','ZOEA - Elephant: Asian Elephant (Elephas maximus)'), ('PGACOMCHARCODE-A11-APH','ZOEB','ZOEB - Elephant: African Bush Elephant (Loxodonta africana)'), ('PGACOMCHARCODE-A11-APH','ZOEF','ZOEF - Elephant: African Forest Elephant (Loxodonta cyclotis)'), ('PGACOMCHARCODE-A11-APH','ZOEM','ZOEM - European Mouflon (Ovis musimon, or Ovis ammon musimon)'), ('PGACOMCHARCODE-A11-APH','ZOET','ZOET - East Caucasian Tur (Capra cylindricornis)'), ('PGACOMCHARCODE-A11-APH','ZOFA','ZOFA - Four-horned Antelope (Tetracerus quadricornis)'), ('PGACOMCHARCODE-A11-APH','ZOFP','ZOFP - Flores Warty Pig (Sus heureni)'), ('PGACOMCHARCODE-A11-APH','ZOGA','ZOGA - Gaur (Bos gaurus)'), ('PGACOMCHARCODE-A11-APH','ZOGE','ZOGE - Giant Eland (Taurotragus derbianus)'), ('PGACOMCHARCODE-A11-APH','ZOGF','ZOGF - Giant Forest Hog; Equatorial Africa (Hylochoerus meinertzhageni)'), ('PGACOMCHARCODE-A11-APH','ZOGG','ZOGG - Gray Goral (Nemorhaedus goral )'), ('PGACOMCHARCODE-A11-APH','ZOGK','ZOGK - Greater Kudu (Tragelaphus strepsiceros)'), ('PGACOMCHARCODE-A11-APH','ZOGY','ZOGY - Gayal or domestic gaur (Bos frontalis)'), ('PGACOMCHARCODE-A11-APH','ZOHA','ZOHA - Hedgehog: Afghan Hedgehog (Hemiechinus auritus megalotis)'), ('PGACOMCHARCODE-A11-APH','ZOHB','ZOHB - Hedgehog: Bare-bellied Hedgehog (Hemiechinus nudiventris)'), ('PGACOMCHARCODE-A11-APH','ZOHD','ZOHD - Hedgehog: Daurian Hedgehog (Mesechinus dauuricus)'), ('PGACOMCHARCODE-A11-APH','ZOHE','ZOHE - Hedgehog: Eastern European Hedgehog (Erinaceus concolor)'), ('PGACOMCHARCODE-A11-APH','ZOHF','ZOHF - Hedgehog: Four-toed Hedgehog (Atelerix albiventris)'), ('PGACOMCHARCODE-A11-APH','ZOHG','ZOHG - Hedgehog: Long-eared Hedgehog (Hemiechinus auritus)'), ('PGACOMCHARCODE-A11-APH','ZOHH','ZOHH - Hedgehog: Hughs Hedgehog (Mesechinus hughi)'), ('PGACOMCHARCODE-A11-APH','ZOHI','ZOHI - Hedgehog: Indian Hedgehog (Hemiechinus micropus)'), ('PGACOMCHARCODE-A11-APH','ZOHK','ZOHK - Hedgehog: Korean hedgehog (Erinaceus amurensis dealbatus)'), ('PGACOMCHARCODE-A11-APH','ZOHL','ZOHL - Hedgehog: Indian Long-eared Hedgehog (Hemiechinus collaris)'), ('PGACOMCHARCODE-A11-APH','ZOHN','ZOHN - Hedgehog: North African Hedgehog (Atelerix algirus)'), ('PGACOMCHARCODE-A11-APH','ZOHP','ZOHP - Hippopotamus: Hippopotamus (Hippopotamus amphibius)'), ('PGACOMCHARCODE-A11-APH','ZOHR','ZOHR - Hedgehog: Brandts Hedgehog (Hemiechinus hypomelas)'), ('PGACOMCHARCODE-A11-APH','ZOHS','ZOHS - Hedgehog: Somali Hedgehog (Atelerix sclateri)'), ('PGACOMCHARCODE-A11-APH','ZOHT','ZOHT - Hedgehog: Desert Hedgehog (Hemiechinus aethiopicus)'), ('PGACOMCHARCODE-A11-APH','ZOHW','ZOHW - Hedgehog: Western European Hedgehog (Erinaceus europaeus)'), ('PGACOMCHARCODE-A11-APH','ZOHX','ZOHX - Hedgehog: Southern African Hedgehog (Atelerix frontalis)'), ('PGACOMCHARCODE-A11-APH','ZOHY','ZOHY - Hippopotamus: Pygmy Hippopotamus (Choeropsis liberiensis)'), ('PGACOMCHARCODE-A11-APH','ZOJP','ZOJP - Javan pig, Warty Pig; Indonesia, Philippines (Sus verrucosus)'), ('PGACOMCHARCODE-A11-APH','ZOJS','ZOJS - Japanese Serow (Nemorhaedus crispus)'), ('PGACOMCHARCODE-A11-APH','ZOKL','ZOKL - Lesser Kudu (Tragelaphus imberbis)'), ('PGACOMCHARCODE-A11-APH','ZOKO','ZOKO - Kouprey (Bos sauveli)'), ('PGACOMCHARCODE-A11-APH','ZOKV','ZOKV - Kting Voar (Pseudonovibos spiralis)'), ('PGACOMCHARCODE-A11-APH','ZOLA','ZOLA - Lowland Anoa (Bubalus depressicornis)'), ('PGACOMCHARCODE-A11-APH','ZOMA','ZOMA - Markhor (Capra falconeri)'), ('PGACOMCHARCODE-A11-APH','ZOMN','ZOMN - Mountain Nyala (Tragelaphus buxtoni)'), ('PGACOMCHARCODE-A11-APH','ZOMO','ZOMO - Mountain Anoa (Bubalus quarlesi)'), ('PGACOMCHARCODE-A11-APH','ZOMS','ZOMS - Mainland Serow (Nemorhaedus sumatraensis)'), ('PGACOMCHARCODE-A11-APH','ZOMX','ZOMX - Musk Ox (Ovibos moschatus)'), ('PGACOMCHARCODE-A11-APH','ZONB','ZONB - Nilgai or Blue Bull (Boselaphus tragocamelus)'), ('PGACOMCHARCODE-A11-APH','ZONI','ZONI - Nubian Ibex (Capra nubiana)'), ('PGACOMCHARCODE-A11-APH','ZONT','ZONT - Nilgiri Tahr (Hemitragus hylocrius)'), ('PGACOMCHARCODE-A11-APH','ZONY','ZONY - Nyala (Tragelaphus angasii)'), ('PGACOMCHARCODE-A11-APH','ZOOZ','ZOOZ - Other Zoo Animal'), ('PGACOMCHARCODE-A11-APH','ZOPH','ZOPH - Pigmy Hog; NE India, Himalayas (Sus salvanius)'), ('PGACOMCHARCODE-A11-APH','ZOPO','ZOPO - Possum: Common Brushtail Possum (Trichosurus vulpecula)'), ('PGACOMCHARCODE-A11-APH','ZOPW','ZOPW - Philippine Warty Pig (Sus philippensis)'), ('PGACOMCHARCODE-A11-APH','ZOPY','ZOPY - Pyrenean Chamois (Rupicapra pyrenaica )'), ('PGACOMCHARCODE-A11-APH','ZORB','ZORB - Rhinoceros: Black Rhinoceros (Diceros bicornis)'), ('PGACOMCHARCODE-A11-APH','ZORG','ZORG - Red Goral (Nemorhaedus baileyi )'), ('PGACOMCHARCODE-A11-APH','ZORH','ZORH - Red River Hog; (Potamochoerus porcus)'), ('PGACOMCHARCODE-A11-APH','ZORI','ZORI - Rhinoceros: Indian Rhinoceros or Great One-horned Rhinoceros (Rhinoceros unicornis)'), ('PGACOMCHARCODE-A11-APH','ZORJ','ZORJ - Rhinoceros: Javan Rhinoceros (Rhinoceros sondaicus)'), ('PGACOMCHARCODE-A11-APH','ZORM','ZORM - Rocky Mountain Goat (Oreamnos americanus)'), ('PGACOMCHARCODE-A11-APH','ZORS','ZORS - Rhinoceros: Sumatran Rhinoceros (Dicerorhinus sumatrensis)'), ('PGACOMCHARCODE-A11-APH','ZORW','ZORW - Rhinoceros: White Rhinoceros (Ceratotherium simum)'), ('PGACOMCHARCODE-A11-APH','ZOTH','ZOTH - Himalayan Tahr (Hemitragus jemlahicus)'), ('PGACOMCHARCODE-A11-APH','ZOSA','ZOSA - Saola (Pseudoryx nghetinhensis)'), ('PGACOMCHARCODE-A11-APH','ZOSI','ZOSI - Siberian Ibex (Capra sibirica )'), ('PGACOMCHARCODE-A11-APH','ZOSG','ZOSG - Sitatunga (Tragelaphus spekeii)'), ('PGACOMCHARCODE-A11-APH','ZOSS','ZOSS - Snow sheep (Ovis nivicola)'), ('PGACOMCHARCODE-A11-APH','ZOSX','ZOSX - Spanish Ibex (Capra pyrenaica)'), ('PGACOMCHARCODE-A11-APH','ZOTA','ZOTA - Takin (Budorcas taxicolor)'), ('PGACOMCHARCODE-A11-APH','ZTBA','ZTBA - Tapir: Bairds Tapir (Tapirus bairdii)'), ('PGACOMCHARCODE-A11-APH','ZTBZ','ZTBZ - Tapir: Brazilian Tapir or Lowland Tapir (Tapirus terrestris)'), ('PGACOMCHARCODE-A11-APH','ZTCO','ZTCO - Tenrec: Cowans Shrew Tenrec (Microgale cowani)'), ('PGACOMCHARCODE-A11-APH','ZTDO','ZTDO - Tenrec: Dobsons Shrew Tenrec (Microgale dobsoni)'), ('PGACOMCHARCODE-A11-APH','ZTDS','ZTDS - Tenrec: Drouhards Shrew Tenrec (Microgale drouhardi)'), ('PGACOMCHARCODE-A11-APH','ZTDY','ZTDY - Tenrec: Dryad Shrew Tenrec (Microgale dryas)'), ('PGACOMCHARCODE-A11-APH','ZTFT','ZTFT - Tenrec: Four-toed Rice Tenrec (Oryzorictes tetradactylus)'), ('PGACOMCHARCODE-A11-APH','ZTGH','ZTGH - Tenrec: Greater Hedgehog Tenrec (Setifer setosus)'), ('PGACOMCHARCODE-A11-APH','ZTGL','ZTGL - Tenrec: Greater Long-tailed Shrew Tenrec (Microgale principula)'), ('PGACOMCHARCODE-A11-APH','ZTGO','ZTGO - Tenrec: Giant Otter Shrew (Potamogale velox)'), ('PGACOMCHARCODE-A11-APH','ZTGS','ZTGS - Tenrec: Gracile Shrew Tenrec (Microgale gracilis)'), ('PGACOMCHARCODE-A11-APH','ZTHS','ZTHS - Tenrec: Highland Streaked Tenrec (Hemicentetes nigriceps)'), ('PGACOMCHARCODE-A11-APH','ZTLE','ZTLE - Tenrec: Large-eared Tenrec (Geogale aurita)'), ('PGACOMCHARCODE-A11-APH','ZTLH','ZTLH - Tenrec: Lesser Hedgehog Tenrec (Echinops telfairi)'), ('PGACOMCHARCODE-A11-APH','ZTLL','ZTLL - Tenrec: Lesser Long-tailed Shrew Tenrec (Microgale longicaudata)'), ('PGACOMCHARCODE-A11-APH','ZTLS','ZTLS - Tenrec: Least Shrew Tenrec (Microgale pusilla)'), ('PGACOMCHARCODE-A11-APH','ZTLW','ZTLW - Tenrec: Lowland Streaked Tenrec (Hemicentetes semispinosus)'), ('PGACOMCHARCODE-A11-APH','ZTMO','ZTMO - Tapir: Malayan Tapir (Tapirus indicus)'), ('PGACOMCHARCODE-A11-APH','ZTMR','ZTMR - Tenrec: Mole-like Rice Tenrec (Oryzorictes hova)'), ('PGACOMCHARCODE-A11-APH','ZTMS','ZTMS - Tenrec: Montane Shrew Tenrec (Microgale monticola)'), ('PGACOMCHARCODE-A11-APH','ZTMT','ZTMT - Tapir: Mountain Tapir (Tapirus pinchaque)'), ('PGACOMCHARCODE-A11-APH','ZTNA','ZTNA - Tenrec: Nasolos Shrew Tenrec (Microgale nasoloi)'), ('PGACOMCHARCODE-A11-APH','ZTNI','ZTNI - Tenrec: Nimba Otter Shrew (Micropotamogale lamottei)'), ('PGACOMCHARCODE-A11-APH','ZTNS','ZTNS - Tenrec: Naked-nosed Shrew Tenrec (Microgale gymnorhyncha)'), ('PGACOMCHARCODE-A11-APH','ZTPS','ZTPS - Tenrec: Pale Shrew Tenrec (Microgale fotsifotsy)'), ('PGACOMCHARCODE-A11-APH','ZTPY','ZTPY - Tenrec: Pygmy Shrew Tenrec (Microgale parvula)'), ('PGACOMCHARCODE-A11-APH','ZTRO','ZTRO - Tenrec: Ruwenzori Otter Shrew (Micropotamogale ruwenzorii)'), ('PGACOMCHARCODE-A11-APH','ZTSS','ZTSS - Tenrec: Short-tailed Shrew Tenrec (Microgale brevicaudata)'), ('PGACOMCHARCODE-A11-APH','ZTST','ZTST - Tenrec: Shrew-toothed Shrew Tenrec (Microgale soricoides)'), ('PGACOMCHARCODE-A11-APH','ZTSW','ZTSW - Taiwan Serow (Nemorhaedus swinhoei)'), ('PGACOMCHARCODE-A11-APH','ZTTH','ZTTH - Tenrec: Thomass Shrew Tenrec (Microgale thomasi)'), ('PGACOMCHARCODE-A11-APH','ZTTL','ZTTL - Tenrec: Tail-less Tenrec (Tenrec ecaudatus)'), ('PGACOMCHARCODE-A11-APH','ZTTS','ZTTS - Tenrec: Taiva Shrew Tenrec (Microgale taiva)'), ('PGACOMCHARCODE-A11-APH','ZTTW','ZTTW - Tamaraw (Bubalus mindorensis)'), ('PGACOMCHARCODE-A11-APH','ZTTZ','ZTTZ - Tenrec: Talazacs Shrew Tenrec (Microgale talazaci)'), ('PGACOMCHARCODE-A11-APH','ZTWB','ZTWB - Tenrec: Web-footed Tenrec (Limnogale mergulus)'), ('PGACOMCHARCODE-A11-APH','ZOTW','ZOTW - Timor Warty Pig (Sus timoriensis)'), ('PGACOMCHARCODE-A11-APH','ZTOA','ZTOA - Tortoise: African Spurred Tortoise or Sulcata Tortoise (Geochelone sulcata)'), ('PGACOMCHARCODE-A11-APH','ZTOB','ZTOB - Tortoise: Bells Hinge-Backed Tortoise (Kinixys belliana)'), ('PGACOMCHARCODE-A11-APH','ZTOL','ZTOL - Tortoise: Leopard Tortoise, Geochelone pardalis'), ('PGACOMCHARCODE-A11-APH','ZOUO','ZOUO - Urial (Ovis orientalis)'), ('PGACOMCHARCODE-A11-APH','ZOUV','ZOUV - Urial (Ovis vignei)'), ('PGACOMCHARCODE-A11-APH','ZWPV','ZWPV - Vietnamese Warty Pig (Sus bucculentus)'), ('PGACOMCHARCODE-A11-APH','ZWPY','ZWPY - Visasyas Warty Pig (Sus cebifrons)'), ('PGACOMCHARCODE-A11-APH','ZIBW','ZIBW - Walia Ibex (Capra walie )'), ('PGACOMCHARCODE-A11-APH','ZOWB','ZOWB - Water Buffalo (Bubalus arnee)'), ('PGACOMCHARCODE-A11-APH','ZOWC','ZOWC - West Caucasian Tur (Capra caucasia)'), ('PGACOMCHARCODE-A11-APH','ZGWG','ZGWG - Wild Goat (Capra aegagrus )'), ('PGACOMCHARCODE-A11-APH','ZOWI','ZOWI - Wisent (Bison bonasus)'), ('PGACOMCHARCODE-A11-APH','ZOYA','ZOYA - Yak (Bos mutus)'), ('PGACOMCHARCODE-A13-APH','F','F - Female'), ('PGACOMCHARCODE-A13-APH','M','M - Male'), ('PGACOMCHARCODE-A13-APH','U','U - Unknown'), ('PGACOMCHARCODE-A13-APH','S','S - Spayed Female'), ('PGACOMCHARCODE-A13-APH','N','Neutered Male (Castrated)'), ('PGACOMCHARCODE-A10-APH','L30D','L30D - 0-30 Days'), ('PGACOMCHARCODE-A12-APH','ALMO','ALMO - Almond'), ('PGACOMCHARCODE-A12-APH','APPA','APPA - Appaloosa'), ('PGACOMCHARCODE-A12-APH','BAY','BAY - Bay'), ('PGACOMCHARCODE-A12-APH','BEIG','BEIG - Beige'), ('PGACOMCHARCODE-A12-APH','BLAC','BLAC - Black'), ('PGACOMCHARCODE-A12-APH','BLWH','BLWH - Black and White'), ('PGACOMCHARCODE-A12-APH','BLON','BLON - Blond'), ('PGACOMCHARCODE-A12-APH','BLUE','BLUE - Blue'), ('PGACOMCHARCODE-A12-APH','BONE','BONE - Bone'), ('PGACOMCHARCODE-A12-APH','BROW','BROW - Brown'), ('PGACOMCHARCODE-A12-APH','BUCK','BUCK - Buckskin'), ('PGACOMCHARCODE-A12-APH','CHAR','CHAR - Charcoal'), ('PGACOMCHARCODE-A12-APH','CHES','CHES - Chestnut'), ('PGACOMCHARCODE-A12-APH','CHOC','CHOC - Chocolate'), ('PGACOMCHARCODE-A12-APH','COPP','COPP - Copper'), ('PGACOMCHARCODE-A12-APH','CREA','CREA - Cream'), ('PGACOMCHARCODE-A12-APH','CYAN','CYAN - Cyan'), ('PGACOMCHARCODE-A12-APH','DUNN','DUNN - Dun'), ('PGACOMCHARCODE-A12-APH','EBON','EBON - Ebony'), ('PGACOMCHARCODE-A12-APH','GRAY','GRAY - Gray'), ('PGACOMCHARCODE-A12-APH','GREE','GREE - Green'), ('PGACOMCHARCODE-A12-APH','LAVE','LAVE - Lavender'), ('PGACOMCHARCODE-A12-APH','LILA','LILA - Lilac'), ('PGACOMCHARCODE-A12-APH','MAGE','MAGE - Magenta'), ('PGACOMCHARCODE-A12-APH','ORAN','ORAN - Orange'), ('PGACOMCHARCODE-A12-APH','PALO','PALO - Palomino'), ('PGACOMCHARCODE-A12-APH','PEAC','PEAC - Peach'), ('PGACOMCHARCODE-A12-APH','PEAR','PEAR - Pearl'), ('PGACOMCHARCODE-A12-APH','PINK','PINK - Pink'), ('PGACOMCHARCODE-A12-APH','PINT','PINT - Pinto / Paint'), ('PGACOMCHARCODE-A12-APH','PURP','PURP - Purple'), ('PGACOMCHARCODE-A12-APH','RED','RED - ed'), ('PGACOMCHARCODE-A12-APH','RUST','RUST - Rust'), ('PGACOMCHARCODE-A12-APH','SAGE','SAGE - Sage'), ('PGACOMCHARCODE-A12-APH','SAND','SAND - Sand'), ('PGACOMCHARCODE-A12-APH','SILV','SILV - Silver'), ('PGACOMCHARCODE-A12-APH','TAN','TAN - an'), ('PGACOMCHARCODE-A12-APH','TEAL','TEAL - Teal'), ('PGACOMCHARCODE-A12-APH','UMBE','UMBE - Umber'), ('PGACOMCHARCODE-A12-APH','VANI','VANI - Vanilla'), ('PGACOMCHARCODE-A12-APH','VIOL','VIOL - Violet'), ('PGACOMCHARCODE-A12-APH','WHIT','WHIT - White'), ('PGACOMCHARCODE-A12-APH','YELL','YELL - Yellow'), ('PGACOMCHARCODE-A12-APH','OTHR','OTHR - Other'), ('PGACOMCHARCODE-A12-APH','VARI','VARI - Various'), ('PGACOMCHARCODE-A41-APH','SSL','SSL -Small Seed Lot'), ('PGACOMCHARCODE-A41-APH','SEO','SEO -Seed Embedded/Obscured'), ('PGACOMCHARCODE-A41-APH','SLL','SLL -Seed Large Lot'), ('PGACOMCHARCODE-A41-APH','WIRT','WIRT -With Roots'), ('PGACOMCHARCODE-A41-APH','WORT','WORT -Without Roots'), ('PGACOMCHARCODE-A42-APH','C1','C1 -CITES I'), ('PGACOMCHARCODE-A42-APH','C2','C2 -CITES II'), ('PGACOMCHARCODE-A42-APH','C3','C3 -CITES III'), ('PGACOMCHARCODE-A42-APH','ESAE','ESAE -ESA-E'), ('PGACOMCHARCODE-A42-APH','ESAT','ESAT -ESA-T'), ('PGACOMCHARCODE-A43-APH','ARTI','ARTI -Artificial / Soilless'), ('PGACOMCHARCODE-A43-APH','BARE','BARE -Bare root / No media'), ('PGACOMCHARCODE-A43-APH','SOIL','SOIL -Soil'), ('PGACOMCHARCODE-A51-APH','ALK','ALK -Alkali treated, malted, parboiled, or pearled'), ('PGACOMCHARCODE-A51-APH','BUL','BUL -Bulk'), ('PGACOMCHARCODE-A51-APH','FZZ','FZZ -Fuzzy Seeds'), ('PGACOMCHARCODE-A51-APH','SAM','SAM -Sample'), ('PGACOMCHARCODE-A51-APH','SCE','SCE -Screening'), ('PGACOMCHARCODE-A51-APH','SMS','SMS -Smooth Seeds'), ('PGACOMCHARCODE-A51-APH','SPP','SPP -Split or processed'), ('PGACOMCHARCODE-A51-APH','THR','THR -Threshed, unmilled in hull'), ('PGACOMCHARCODE-A51-APH','UNR','UNR -Unroasted Seeds'), ('PGACOMCHARCODE-A51-APH','WOH','WOH -Without husks and shells'), ('PGACOMCHARCODE-A51-APH','WOM','WOM -Without husk or without milk (liquid)'), ('PGACOMCHARCODE-A51-APH','WHM','WHM -With husk and milk (liquid)'), ('PGACOMCHARCODE-A61-APH','FRC','FRC -Fresh Chilled'), ('PGACOMCHARCODE-A61-APH','FRF','FRF -Fresh Frozen'), ('PGACOMCHARCODE-A61-APH','SHR','SHR -Shredded'), ('PGACOMCHARCODE-A70-APH','NEW','NEW -New'), ('PGACOMCHARCODE-A70-APH','USED','USED -Used'), ('PGACOMCHARCODE-A71-APH','AGG','AGG -Agglomerated'), ('PGACOMCHARCODE-A71-APH','BAB','BAB -Bundled and/or Baled'), ('PGACOMCHARCODE-A71-APH','BLE','BLE -Bleached'), ('PGACOMCHARCODE-A71-APH','BOI','BOI -Boiled'), ('PGACOMCHARCODE-A71-APH','COM','COM -Compounded'), ('PGACOMCHARCODE-A71-APH','DER','DER -Derivative'), ('PGACOMCHARCODE-A71-APH','DHT','DHT -Dry Heat Treated'), ('PGACOMCHARCODE-A71-APH','DRI','DRI -Dried'), ('PGACOMCHARCODE-A71-APH','DYE','DYE -Dyed'), ('PGACOMCHARCODE-A71-APH','EMP','EMP -Empty'), ('PGACOMCHARCODE-A71-APH','EXT','EXT -Extract'), ('PGACOMCHARCODE-A71-APH','FRC','FRC -Fresh Chilled'), ('PGACOMCHARCODE-A71-APH','FRF','FRF -Fresh Frozen'), ('PGACOMCHARCODE-A71-APH','GRI','GRI -Ground'), ('PGACOMCHARCODE-A71-APH','GRN','GRN -Green or Raw'), ('PGACOMCHARCODE-A71-APH','HEA','HEA -Heated'), ('PGACOMCHARCODE-A71-APH','KND','KND -Kiln Dried'), ('PGACOMCHARCODE-A71-APH','MAN','MAN -Manufactured'), ('PGACOMCHARCODE-A71-APH','MIL','MIL -Milled'), ('PGACOMCHARCODE-A71-APH','NPE','NPE -Not Pelletized'), ('PGACOMCHARCODE-A71-APH','OIL','OIL -Oil'), ('PGACOMCHARCODE-A71-APH','PEE','PEE -Peeled'), ('PGACOMCHARCODE-A71-APH','PEL','PEL -Pelletized'), ('PGACOMCHARCODE-A71-APH','POL','POL -Polished'), ('PGACOMCHARCODE-A71-APH','POW','POW -Powdered'), ('PGACOMCHARCODE-A71-APH','PRE','PRE -Preserved'), ('PGACOMCHARCODE-A71-APH','PRO','PRO -Processed'), ('PGACOMCHARCODE-A71-APH','SAM','SAM -Samples'), ('PGACOMCHARCODE-A71-APH','SHU','SHU -Shucked'), ('PGACOMCHARCODE-A71-APH','SLI','SLI -Sliced'), ('PGACOMCHARCODE-A71-APH','STE','STE -Steamed'), ('PGACOMCHARCODE-A71-APH','STS','STS -Steam Sterilized'), ('PGACOMCHARCODE-A71-APH','TRE','TRE -Treated'), ('PGACOMCHARCODE-A71-APH','UPD','UPD -Un-processed'), ('PGACOMCHARCODE-A71-APH','USH','USH -Un-shucked'), ('PGACOMCHARCODE-A71-APH','UMI','UMI -Un-Milled'), ('PGACOMCHARCODE-A71-APH','WIB','WIB -With Bark'), ('PGACOMCHARCODE-A71-APH','WOB','WOB -Without Bark'), ('PGACOMCHARCODE-A80-APH','BALS','BALS -Alstroemeria Bouquet'), ('PGACOMCHARCODE-A80-APH','BCAR','BCAR -Carnations Bouquet'), ('PGACOMCHARCODE-A80-APH','BLIL','BLIL -Lily Bouquet'), ('PGACOMCHARCODE-A80-APH','BMCA','BMCA -Mini Carnations Bouquet'), ('PGACOMCHARCODE-A80-APH','BMIX','BMIX -Mixed Bouquet'), ('PGACOMCHARCODE-A80-APH','BPOM','BPOM -Pompon Bouquet'), ('PGACOMCHARCODE-A80-APH','BROS','BROS -Rose Bouquet'), ('PGACOMCHARCODE-A80-APH','BTRP','BTRP -Tropical Flower Bouquet'), ('PGACOMCHARCODE-A80-APH','SGFL','SGFL -Single genus of Flower'), ('PGACOMCHARCODE-A81-APH','WIR','WIR -With Fruit'), ('PGACOMCHARCODE-A81-APH','WOF','WOF -Without Fruit'), ('PGACOMCHARCODE-A82-APH','C1','C1 -CITES I'), ('PGACOMCHARCODE-A82-APH','C2','C2 -CITES II'), ('PGACOMCHARCODE-A82-APH','C3','C3 -CITES III'), ('PGACOMCHARCODE-A82-APH','ESAE','ESAE -ESA-E'), ('PGACOMCHARCODE-A82-APH','ESAT','ESAT -ESA-T'), ('PGACOMCHARCODE-A100-APH','N','N -Not intergeneric'), ('PGACOMCHARCODE-A100-APH','Y','Y -Intergeneric'), ('PGACOMCHARCODE-A101-APH','DOR','DOR -Donor organism'), ('PGACOMCHARCODE-A101-APH','ROR','ROR -Recipient organism'), ('PGACOMCHARCODE-A101-APH','VVA','VVA -Vector or vector agent'), ('PGACOMCHARCODE-A102-APH','IAD','IAD - Invertebrate animals: adults'), ('PGACOMCHARCODE-A102-APH','IEG','IEG - Invertebrate animals: eggs'), ('PGACOMCHARCODE-A102-APH','IJV','IJV - Invertebrate animals: juveniles'), ('PGACOMCHARCODE-A102-APH','ILR','ILR - Invertebrate animals: larvae'), ('PGACOMCHARCODE-A102-APH','INY','INY - Invertebrate animals: nymphs'), ('PGACOMCHARCODE-A102-APH','IPP','IPP -Invertebrate animals: pupae'), ('PGACOMCHARCODE-A32-APH','AVE','AVE - Aves (Poultry) Products'), ('PGACOMCHARCODE-A32-APH','BOV','BOV - Bovine (Beef) Products'), ('PGACOMCHARCODE-A32-APH','CAM','CAM - Camelid (Camel) Products'), ('PGACOMCHARCODE-A32-APH','CAP','CAP - Capra (Goat) Products'), ('PGACOMCHARCODE-A32-APH','CER','CER - Cervid (Deer, Elk, and Moose) Products'), ('PGACOMCHARCODE-A32-APH','EQU','EQU - Equine (Horse)Products'), ('PGACOMCHARCODE-A32-APH','OTA','OTA - Other Animal products'), ('PGACOMCHARCODE-A32-APH','OTR','OTR - Other Ruminant Products'), ('PGACOMCHARCODE-A32-APH','OVI','OVI - Ovis (Sheep) Products'), ('PGACOMCHARCODE-A32-APH','SUS','SUS - Sus (Pork) Products'), ('PGACOMCHARCODE-A32-APH','TRI','TRI - Trichosurus (Brushtail Possum) Products'), ('PGACOMCHARCODE-A31-APH','BAL','BAL - Baluts'), ('PGACOMCHARCODE-A31-APH','BRO','BRO - Broth'), ('PGACOMCHARCODE-A31-APH','COC','COC - Cooked Chilled'), ('PGACOMCHARCODE-A31-APH','COF','COF - Cooked Frozen'), ('PGACOMCHARCODE-A31-APH','COM','COM - Compressed'), ('PGACOMCHARCODE-A31-APH','COO','COO - Cooked'), ('PGACOMCHARCODE-A31-APH','CUB','CUB - Cubes'), ('PGACOMCHARCODE-A31-APH','CUR','CUR - Cured'), ('PGACOMCHARCODE-A31-APH','EXT','EXT - Extract'), ('PGACOMCHARCODE-A31-APH','FRS','FRS - Fresh'), ('PGACOMCHARCODE-A31-APH','FRC','FRC - Fresh Chilled'), ('PGACOMCHARCODE-A31-APH','FRD','FRD - Freeze Dried'), ('PGACOMCHARCODE-A31-APH','FRF','FRF - Fresh Frozen'), ('PGACOMCHARCODE-A31-APH','GRA','GRA - Granules'), ('PGACOMCHARCODE-A31-APH','HRP','HRP - Hermetically Sealed (perishable)'), ('PGACOMCHARCODE-A31-APH','HRS','HRS - Hermetically Sealed (shelf stable)'), ('PGACOMCHARCODE-A31-APH','POW','POW - Powdered'), ('PGACOMCHARCODE-A31-APH','PRE','PRE - Preserved'), ('PGACOMCHARCODE-A31-APH','SAL','SAL - Salted'), ('PGACOMCHARCODE-A31-APH','SMO','SMO - Smoked'), ('PGACOMCHARCODE-A30-APH','EDB','EDB - Edible Shelf Stable'), ('PGACOMCHARCODE-A30-APH','EDP','EDP - Edible Perishable'), ('PGACOMCHARCODE-A30-APH','IDB','IDB - Inedible'), ('PGACOMCHARCODE-A21-APH','PEL','PEL - Pelletized'), ('PGACOMCHARCODE-A21-APH','NPE','NPE - Not Pelletized'), ('PGACOMCHARCODE-A20-APH','USED','USED - Used'), ('PGACOMCHARCODE-A20-APH','NEW','NEW - New'), ('PGACOMCHARCODE-A16-APH','N','N - Not protected'), ('PGACOMCHARCODE-A16-APH','Y','Y - Protected'), ('PGACOMCHARCODE-A15-APH','1MO','1MO - 1 Month'), ('PGACOMCHARCODE-A15-APH','2MO','2MO - 2 Months'), ('PGACOMCHARCODE-A15-APH','3MO','3MO - 3 Months'), ('PGACOMCHARCODE-A15-APH','4MO','4MO - 4 Months'), ('PGACOMCHARCODE-A15-APH','5MO','5MO - 5 Months'), ('PGACOMCHARCODE-A15-APH','6MO','6MO - 6 Months'), ('PGACOMCHARCODE-A15-APH','7MO','7MO - 7 Months'), ('PGACOMCHARCODE-A15-APH','8MO','8MO - 8 Months'), ('PGACOMCHARCODE-A15-APH','9MO','9MO - 9 Months'), ('PGACOMCHARCODE-A15-APH','10MO','10MO - 10 Months'), ('PGACOMCHARCODE-A15-APH','11MO','11MO - 11 Months'), ('PGACOMCHARCODE-A15-APH','12MO','12MO - 12 Months'), ('PGACOMCHARCODE-A15-APH','13MO','13MO - 13 Months'), ('PGACOMCHARCODE-A15-APH','14MO','14MO - 14 Months'), ('PGACOMCHARCODE-A15-APH','15MO','15MO - 15 Months'), ('PGACOMCHARCODE-A15-APH','16MO','16MO - 16 Months'), ('PGACOMCHARCODE-A15-APH','17MO','17MO - 17 Months'), ('PGACOMCHARCODE-A15-APH','18MO','18MO - 18 Months'), ('PGACOMCHARCODE-A15-APH','19MO','19MO - 19 Months'), ('PGACOMCHARCODE-A15-APH','20MO','20MO - 20 Months'), ('PGACOMCHARCODE-A15-APH','21MO','21MO - 21 Months'), ('PGACOMCHARCODE-A15-APH','22MO','22MO - 22 Months'), ('PGACOMCHARCODE-A14-APH','Y','Y - Yes'), ('PGACOMCHARCODE-A14-APH','N','N - No'), ('PGALPCOTYPE-APH','A6A','A6A - APHIS 2006 (Sale AndDistribution)'), ('PGALPCOTYPE-APH','A6B','A6B - APHIS 2006 (Research and Evaluation)'), ('PGALPCOTYPE','A01','A01 - Phytosanitary certificate'), ('PGALPCOTYPE','A02','A02 - Health Certificate'), ('PGALPCOTYPE','A03','A03 - Meat/Sanitary Certificate'), ('PGALPCOTYPE','A04','A04 - ** APHIS Future Use'), ('PGALPCOTYPE','A05','A05 - Treatment Certificate'), ('PGALPCOTYPE','A6A','A6A - APHIS 2006 (Sale AndDistribution)'), ('PGALPCOTYPE','A6B','A6B - APHIS 2006 (Research and Evaluation)'), ('PGALPCOTYPE','A07','A07 - APHIS PPQ 203, Foreign Site Certificate of Inspection and/or treatment'), ('PGALPCOTYPE','A09','A09 - APHIS PPQ 525B, Soil Permit'), ('PGALPCOTYPE','A10','A10 - APHIS PPQ 526, Permit to Move Live Plant Pests or Noxious Weeds'), ('PGALPCOTYPE','A11','A11 - APHIS PPQ546, Postentry Quarantine Permit (7CFR319.37-7)'), ('PGALPCOTYPE','A12','A12 - APHIS PPQ585, Permit to Import Timber or Timber Products'), ('PGALPCOTYPE','A13','A13 - APHIS PPQ586, Permit to Transit Plants and/or Plant Products, Plant Pests, and/or Associated Soil'), ('PGALPCOTYPE','A14','A14 - APHIS PPQ587-8, Permit to Import Plants and Plant Products Regulated by 7CFR319.8'), ('PGALPCOTYPE','A15','A15 - APHIS PPQ587-15, Permit to Import Plants and Plant Products Regulated by 7CFR319.15'), ('PGALPCOTYPE','A16','A16 - APHIS PPQ587-37, Permit to Import Plants and Plant Products Regulated by 7CFR319.37'), ('PGALPCOTYPE','A17','A17 - APHIS PPQ587-41, Permit to Import Plants and Plant Products Regulated by 7CFR319.41'), ('PGALPCOTYPE','A18','A18 - APHIS PPQ587-55, Permit to Import Plants and Plant Products Regulated by 7CFR319.55'), ('PGALPCOTYPE','A19','A19 - APHIS PPQ587-56, Permit to Import Plants and Plant Products Regulated by 7CFR319.56'), ('PGALPCOTYPE','A20','A20 - APHIS PPQ587-75, Permit to Import Plants and Plant Products Regulated by 7CFR319.75'), ('PGALPCOTYPE','A21','A21 - APHIS PPQ587-37CAN, Permit to Import Plants and Plant Products Regulated by 7CFR319.37'), ('PGALPCOTYPE','A22','A22 - APHIS P588, Permit to Import Prohibited Plant Material For Research Purposes'), ('PGALPCOTYPE','A23','A23 - APHIS P621, Protected Plant Permit'), ('PGALPCOTYPE','A24','A24 - APHIS VS 16-6A, Veterinary Permit to Import Controlled Materials and Organisms and Vectors'), ('PGALPCOTYPE','A25','A25 - Manufacturer’s Statement/Certificate/Declaration'), ('PGALPCOTYPE','A26','A26 - APHIS VS 17-29, Declaration of Importation (Animal,s Animal Semen, Animal Embryos, Birds, Poultry, or Hatching Eggs)'), ('PGALPCOTYPE','A27','A27 - APHIS Seed Analysis Certificate'), ('PGALPCOTYPE','A28','A28 - APHIS VS 17-135, Permit to Import Live Animals'), ('PGALPCOTYPE','A29','A29 - APHIS VS 17-32, Application for Inspection and Dipping'), ('PGALPCOTYPE','A30','A30 - APHIS Rabies Vaccination'), ('PGALPCOTYPE','A31','A31 - APHIS 7040B/7040C, Import Permit for Dogs'), ('PGALPCOTYPE','A32','A32 - APHIS PPQ 368, Notice of Arrival'), ('PGALPCOTYPE','A33','A33 - Certificate of Origin'), ('PGALPCOTYPE','A34','A34 - APHIS BRS 2000, Application for Permit or Courtesy Permit for Movement or Release of Genetically Engineered Organisms.'), ('PGALPCOTYPE','A35','A35 - APHIS BRS Notification'), ('PGALPCOTYPE','A36','A36 - APHIS BRS Acknowledgement letter'), ('PGALPCOUOM-APH','AC','AC - Alternating Current'), ('PGALPCOUOM-APH','AE','AE - Aerosol'), ('PGALPCOUOM-APH','AM','AM - Ampoule, Nonprotected'), ('PGALPCOUOM-APH','AP','AP - Ampoule, Protected'), ('PGALPCOUOM-APH','AST','AST - American Society for Testing Materials*'), ('PGALPCOUOM-APH','AT','AT - Atomizer'), ('PGALPCOUOM-APH','AU','AU - Allergy Units*'), ('PGALPCOUOM-APH','BA','BA - Barrel'), ('PGALPCOUOM-APH','BAU','BAU - Bioequivalent Allergy Units*'), ('PGALPCOUOM-APH','BB','BB - Bobbin'), ('PGALPCOUOM-APH','BBL','BBL - Barrels'), ('PGALPCOUOM-APH','BC','BC - Bottle crate, Bottle rack'), ('PGALPCOUOM-APH','BD','BD - Board'), ('PGALPCOUOM-APH','BE','BE - Bundle'), ('PGALPCOUOM-APH','BF','BF - Balloon, Nonprotected'), ('PGALPCOUOM-APH','BG','BG - Bag'), ('PGALPCOUOM-APH','BH','BH - Bunch'), ('PGALPCOUOM-APH','BI','BI - Bin'), ('PGALPCOUOM-APH','BJ','BJ - Bucket'), ('PGALPCOUOM-APH','BK','BK - Basket'), ('PGALPCOUOM-APH','BL','BL - Bale, Compressed'), ('PGALPCOUOM-APH','BN','BN - Bale, Noncompressed'), ('PGALPCOUOM-APH','BO','BO - Bottle, Nonprotected, Cylindrical'), ('PGALPCOUOM-APH','BOL','BOL - Boluses (Dosage)'), ('PGALPCOUOM-APH','BP','BP - Balloon, Protected'), ('PGALPCOUOM-APH','BQ','BQ - Bottle, Protected, Cylindrical'), ('PGALPCOUOM-APH','BR','BR - Bar'), ('PGALPCOUOM-APH','BS','BS - Bottle, Nonprotected, Bulbous'), ('PGALPCOUOM-APH','BT','BT - Bolt'), ('PGALPCOUOM-APH','BU','BU - Butt'), ('PGALPCOUOM-APH','BV','BV - Bottle, Protected Bulbous'), ('PGALPCOUOM-APH','BX','BX - Box'), ('PGALPCOUOM-APH','BY','BY - Board, In Bundle/Bunch/Truss'), ('PGALPCOUOM-APH','BZ','BZ - Bars, In Bundle/Bunch/Truss'), ('PGALPCOUOM-APH','C','C - Celsius'), ('PGALPCOUOM-APH','CA','CA - Can, Rectangular'), ('PGALPCOUOM-APH','CAG','CAG - Cage*'), ('PGALPCOUOM-APH','CAP','CAP - Capsules (Dosage)'), ('PGALPCOUOM-APH','CAR','CAR - Carat'), ('PGALPCOUOM-APH','CB','CB - Beer, Crate'), ('PGALPCOUOM-APH','CC','CC - Cubic Centimeter'), ('PGALPCOUOM-APH','CCS','CCS - Carcasses*'), ('PGALPCOUOM-APH','CE','CE - Creel'), ('PGALPCOUOM-APH','CF','CF - Coffer'), ('PGALPCOUOM-APH','CFT','CFT - Cubic Feet (Volume)'), ('PGALPCOUOM-APH','CG','CG - Centigrams'), ('PGALPCOUOM-APH','CGM','CGM - Content Gram'), ('PGALPCOUOM-APH','CH','CH - Chest'), ('PGALPCOUOM-APH','CHU','CHU - Churn*'), ('PGALPCOUOM-APH','CI','CI - Canister'), ('PGALPCOUOM-APH','CJ','CJ - Coffin'), ('PGALPCOUOM-APH','CK','CK - Cask'), ('PGALPCOUOM-APH','CKG','CKG - Content Kilogram'), ('PGALPCOUOM-APH','CL','CL - Coil'), ('PGALPCOUOM-APH','CM','CM - Centimeters'), ('PGALPCOUOM-APH','CM2','CM2 - Square Centimeters'), ('PGALPCOUOM-APH','CM3','CM3 - Cubic Centimeters'), ('PGALPCOUOM-APH','CO','CO - Carboy, Nonprotected'), ('PGALPCOUOM-APH','COM','COM - Combo Bins'), ('PGALPCOUOM-APH','CON','CON - Container'), ('PGALPCOUOM-APH','CP','CP - Carboy, Protected'), ('PGALPCOUOM-APH','CR','CR - Crate'), ('PGALPCOUOM-APH','CS','CS - Case'), ('PGALPCOUOM-APH','CT','CT - Carton'), ('PGALPCOUOM-APH','CTL','CTL - Centiliter*'), ('PGALPCOUOM-APH','CTN','CTN - Content Ton'), ('PGALPCOUOM-APH','CTR','CTR - Cartridge*'), ('PGALPCOUOM-APH','CU','CU - Cup*'), ('PGALPCOUOM-APH','CUR','CUR - Curie'), ('PGALPCOUOM-APH','CV','CV - Cover'), ('PGALPCOUOM-APH','CX','CX - Can, Cylindrical'), ('PGALPCOUOM-APH','CY','CY - Clean Yield'), ('PGALPCOUOM-APH','CYD','CYD - Cubic Yards (Volume)'), ('PGALPCOUOM-APH','CYG','CYG - Clean Yield Gram'), ('PGALPCOUOM-APH','CYK','CYK - Clean Yield Kilogram'), ('PGALPCOUOM-APH','CYL','CYL - Cylinder*'), ('PGALPCOUOM-APH','CZ','CZ - Canvas'), ('PGALPCOUOM-APH','D','D - Denier'), ('PGALPCOUOM-APH','DC','DC - Direct Current'), ('PGALPCOUOM-APH','DEG','DEG - Degree'), ('PGALPCOUOM-APH','DJ','DJ - Demijohn, Nonprotected'), ('PGALPCOUOM-APH','DOZ','DOZ - Dozen'), ('PGALPCOUOM-APH','DP','DP - Demijohn, Protected'), ('PGALPCOUOM-APH','DPC','DPC - Dozen Pieces'), ('PGALPCOUOM-APH','DPR','DPR - Dozen Pairs'), ('PGALPCOUOM-APH','DR','DR - Drum'), ('PGALPCOUOM-APH','EN','EN - Envelope'), ('PGALPCOUOM-APH','FBM','FBM - Fiber M'), ('PGALPCOUOM-APH','FC','FC - Fruit Crate'), ('PGALPCOUOM-APH','FD','FD - Framed Crate'), ('PGALPCOUOM-APH','FI','FI - Firkin'), ('PGALPCOUOM-APH','FIB','FIB - Fibers'), ('PGALPCOUOM-APH','FL','FL - Flask'), ('PGALPCOUOM-APH','FO','FO - Footlocker'), ('PGALPCOUOM-APH','FOZ','FOZ - Ounces, fluid (Volume)'), ('PGALPCOUOM-APH','FP','FP - Filmpack'), ('PGALPCOUOM-APH','FR','FR - Frame'), ('PGALPCOUOM-APH','FT','FT - Feet (Length)'), ('PGALPCOUOM-APH','G','G - Gram'), ('PGALPCOUOM-APH','GAL','GAL - (US)(Volume)'), ('PGALPCOUOM-APH','GB','GB - Gas Bottle'), ('PGALPCOUOM-APH','GBQ','GBQ - Giqabecquerel'), ('PGALPCOUOM-APH','GI','GI - Girder'), ('PGALPCOUOM-APH','GR','GR - Gross'), ('PGALPCOUOM-APH','GRL','GRL - Gross Lines'), ('PGALPCOUOM-APH','GVW','GVW - Gross Vehicle Weight'), ('PGALPCOUOM-APH','GZ','GZ - Girders, In Bundle/Bunch/Truss'), ('PGALPCOUOM-APH','HG','HG - Hogshead'), ('PGALPCOUOM-APH','HR','HR - Hamper'), ('PGALPCOUOM-APH','HUN','HUN - Hundreds'), ('PGALPCOUOM-APH','HZ','HZ - Hertz'), ('PGALPCOUOM-APH','IN','IN - Inch*'), ('PGALPCOUOM-APH','ING','ING - Ingot*'), ('PGALPCOUOM-APH','IRC','IRC - Internal Revenue Code'), ('PGALPCOUOM-APH','IZ','IZ - Ingots, In Bundle/Bunch/Truss'), ('PGALPCOUOM-APH','JC','JC - Jerrican, Rectangular'), ('PGALPCOUOM-APH','JG','JG - Jug'), ('PGALPCOUOM-APH','JR','JR - Jar'), ('PGALPCOUOM-APH','JT','JT - Jutebag'), ('PGALPCOUOM-APH','JWL','JWL - Number of Jewels'), ('PGALPCOUOM-APH','JY','JY - Jerrican, Cylindrical'), ('PGALPCOUOM-APH','K','K - 1000'), ('PGALPCOUOM-APH','KCA','KCA - Kilocalories*'), ('PGALPCOUOM-APH','KEG','KEG - Keg*'), ('PGALPCOUOM-APH','KG','KG - 1000 Grams (kilogram)'), ('PGALPCOUOM-APH','KHZ','KHZ - Kilohertz'), ('PGALPCOUOM-APH','KIT','KIT - Kit*'), ('PGALPCOUOM-APH','KL','KL - Kiloliter*'), ('PGALPCOUOM-APH','KM','KM - 1000 Meters'), ('PGALPCOUOM-APH','KM2','KM2 - 1000 Square Meters'), ('PGALPCOUOM-APH','KM3','KM3 - 1000 Cubic Meters'), ('PGALPCOUOM-APH','KN','KN - Kilonewtons'), ('PGALPCOUOM-APH','KPA','KPA - Kilopascal'), ('PGALPCOUOM-APH','KSB','KSB - 1000 Standard Brick'), ('PGALPCOUOM-APH','KVA','KVA - Kilovolt - Amperes'), ('PGALPCOUOM-APH','KVR','KVR - Kilovolt - Amperes Reactive*'), ('PGALPCOUOM-APH','KW','KW - Kilowatts'), ('PGALPCOUOM-APH','KWH','KWH - Kilowatt-Hours'), ('PGALPCOUOM-APH','L','L - Liter'), ('PGALPCOUOM-APH','LB','LB - Pounds, (weight) avdp)'), ('PGALPCOUOM-APH','LG','LG - Log'), ('PGALPCOUOM-APH','LIN','LIN - Linear'), ('PGALPCOUOM-APH','LNM','LNM - Linear Meters'), ('PGALPCOUOM-APH','LZ','LZ - Logs, In Bundle/Bunch/Truss'), ('PGALPCOUOM-APH','M','M - Meters'), ('PGALPCOUOM-APH','M2','M2 - Square Meters'), ('PGALPCOUOM-APH','M3','M3 - Cubic Meters'), ('PGALPCOUOM-APH','MT','MT - Mat*'), ('PGALPCOUOM-APH','MB','MB - Multiply Bag'), ('PGALPCOUOM-APH','MBQ','MBQ - Megabecquerel'), ('PGALPCOUOM-APH','MC','MC - Millicurie'), ('PGALPCOUOM-APH','MCG','MCG - Micrograms*'), ('PGALPCOUOM-APH','MG','MG - Milligram'), ('PGALPCOUOM-APH','MHZ','MHZ - Megahertz'), ('PGALPCOUOM-APH','ML','ML - Milliliter'), ('PGALPCOUOM-APH','MLK','MLK - Milk Crate*'), ('PGALPCOUOM-APH','MM','MM - Millimeters'), ('PGALPCOUOM-APH','MPA','MPA - Megapascal'), ('PGALPCOUOM-APH','MS','MS - Multiwall Sack'), ('PGALPCOUOM-APH','MX','MX - Matchbox'), ('PGALPCOUOM-APH','NE','NE - Unpacked Or Unpackaged'), ('PGALPCOUOM-APH','NO','NO - Number'), ('PGALPCOUOM-APH','NS','NS - Nest'), ('PGALPCOUOM-APH','NT','NT - Net'), ('PGALPCOUOM-APH','ODE','ODE - Ozone Depletion Equivalent'), ('PGALPCOUOM-APH','OZ','OZ - Ounces, (weight) (avdp)'), ('PGALPCOUOM-APH','PA','PA - Packet'), ('PGALPCOUOM-APH','PAL','PAL - Pallet'), ('PGALPCOUOM-APH','PC','PC - Parcel'), ('PGALPCOUOM-APH','PCS','PCS - Pieces'), ('PGALPCOUOM-APH','PF','PF - Proof'), ('PGALPCOUOM-APH','PFG','PFG - Proof Gallon'), ('PGALPCOUOM-APH','PFL','PFL - Proof Liter'), ('PGALPCOUOM-APH','PG','PG - Plate'), ('PGALPCOUOM-APH','PH','PH - Pitcher'), ('PGALPCOUOM-APH','PI','PI - Pipe'), ('PGALPCOUOM-APH','PK','PK - Pack'), ('PGALPCOUOM-APH','PKG','PKG - Package*'), ('PGALPCOUOM-APH','PL','PL - Pail'), ('PGALPCOUOM-APH','PN','PN - Plank'), ('PGALPCOUOM-APH','PNU','PNU - Protein Nitrogen Units*'), ('PGALPCOUOM-APH','PO','PO - Pouch'), ('PGALPCOUOM-APH','PRS','PRS - Pairs'), ('PGALPCOUOM-APH','PT','PT - Pot'), ('PGALPCOUOM-APH','PTL','PTL - Pints, liquid (US) (Volume)'), ('PGALPCOUOM-APH','PU','PU - Tray or Tray Pack'), ('PGALPCOUOM-APH','PY','PY - Plates, In Bundle/Bunch/Truss'), ('PGALPCOUOM-APH','PZ','PZ - Planks or Pipes, In Bundle/Bunch/Truss'), ('PGALPCOUOM-APH','QTL','QTL - Quarts, liquid (US) (Volume)'), ('PGALPCOUOM-APH','RD','RD - Rod'), ('PGALPCOUOM-APH','RG','RG - Ring'), ('PGALPCOUOM-APH','RL','RL - Reel'), ('PGALPCOUOM-APH','RO','RO - Roll'), ('PGALPCOUOM-APH','RPM','RPM - Revolutions Per Minute'), ('PGALPCOUOM-APH','RT','RT - Rednet'), ('PGALPCOUOM-APH','RZ','RZ - Rods, In Bundle/Bunch/Truss'), ('PGALPCOUOM-APH','SA','SA - Sack'), ('PGALPCOUOM-APH','SBE','SBE - Standard Brick Equivalent'), ('PGALPCOUOM-APH','SC','SC - Shallow Crate'), ('PGALPCOUOM-APH','SD','SD - Spindle'), ('PGALPCOUOM-APH','SE','SE - Sea-chest'), ('PGALPCOUOM-APH','SFT','SFT - Sq. Feet (Area)'), ('PGALPCOUOM-APH','SH','SH - Sachet'), ('PGALPCOUOM-APH','SK','SK - Skeleton Case'), ('PGALPCOUOM-APH','SL','SL - Slipsheet'), ('PGALPCOUOM-APH','SM','SM - Sheetmetal'), ('PGALPCOUOM-APH','SQ','SQ - Square'), ('PGALPCOUOM-APH','SQI','SQI - Sq, Inches (Area)'), ('PGALPCOUOM-APH','SS','SS - Stem*'), ('PGALPCOUOM-APH','ST','ST - Sheet'), ('PGALPCOUOM-APH','STN','STN - Short Ton (2000 LB) (Weight)'), ('PGALPCOUOM-APH','SU','SU - Suitcase'), ('PGALPCOUOM-APH','SUP','SUP - Suppositories (Dosage)'), ('PGALPCOUOM-APH','SW','SW - Shrinkwrapped'), ('PGALPCOUOM-APH','SY','SY - Syringe*'), ('PGALPCOUOM-APH','SYD','SYD - Sq. Yards (Area)'), ('PGALPCOUOM-APH','SZ','SZ - Sheets, In Bundle/Bunch/Truss'), ('PGALPCOUOM-APH','T','T - Metric Ton'), ('PGALPCOUOM-APH','TAB','TAB - Tablets (Dosage)'), ('PGALPCOUOM-APH','TB','TB - Tub'), ('PGALPCOUOM-APH','TC','TC - Tea-Chest'), ('PGALPCOUOM-APH','TD','TD - Tube, Collapsible'), ('PGALPCOUOM-APH','TK','TK - Tank, Rectangular'), ('PGALPCOUOM-APH','TN','TN - Tin'), ('PGALPCOUOM-APH','TO','TO - Tun'), ('PGALPCOUOM-APH','TON','TON - Long Ton (2,240 LB) (WGT)'), ('PGALPCOUOM-APH','TOZ','TOZ - Ounces,Troy/APOTH(WGT)'), ('PGALPCOUOM-APH','TR','TR - Trunk'), ('PGALPCOUOM-APH','TS','TS - Truss'), ('PGALPCOUOM-APH','TU','TU - Tube'), ('PGALPCOUOM-APH','TY','TY - Tank, Cylindrical'), ('PGALPCOUOM-APH','TZ','TZ - Tubes, In Bundle/Bunch/Truss'), ('PGALPCOUOM-APH','V','V - Volts'), ('PGALPCOUOM-APH','VA','VA - Vat'), ('PGALPCOUOM-APH','VG','VG - Bulk Gas (At 1031 MBAR and 15 degrees Celsius)'), ('PGALPCOUOM-APH','VI','VI - Vial'), ('PGALPCOUOM-APH','VL','VL - Bulk Liquid'), ('PGALPCOUOM-APH','VO','VO - Bulk, Solid, Large Particles (“Nodules”)'), ('PGAENTITYIDROLE-APH','16','16 - D&B-assigned entity reference number (DUNS number)'), ('PGAENTITYIDROLE-APH','333','333 - APHIS-assigned Party identifier assigned by US Animal and Plant Health Inspection Service (APHIS)'), ('PGAENTITYIDROLE-APH','336','336 - CBP-assigned entity reference number'), ('PGAENTITYIDROLE-APH','348','348 - IRS-assigned entity reference number'), ('PGAENTITYIDROLE-APH','370','370 - SSA-assigned entity reference number'), ('PGAENTITYIDROLE-APH','MID','MID - Manufacturer/Supplier Code (CBP)'), ('PGAENTITYROLE-APH','APD','APD - Permitted Destination'), ('PGAENTITYROLE-APH','CB','CB - Customs broker'), ('PGAENTITYROLE-APHAPL','CB','CB - Customs broker'), ('PGAENTITYROLE-APH','DFI','DFI- Crop grower'), ('PGAENTITYROLE-APH','IM','IM - Importer'), ('PGAENTITYROLE-APHAPL','IM','IM - Importer'), ('PGAENTITYROLE-APH','LAP','LAP - LPCO Authorized Party'), ('PGAENTITYROLE-APH','UC','UC - Ultimate consignee'), ('PGAREMARKTYPECODE-APH','AP5','AP5 - Pests Established'), ('PGAREMARKTYPECODE','AM1','AM1 - Organic Standard Certified To'), ('PGAREMARKTYPECODE-AMS','AM1','AM1 - Organic Standard Certified To'), ('PGAPACKAGINGQ-APH','1','1 - Outermost packaging level'), ('PGAPACKAGINGQ-APH','2','2 - Packaging between outermost level and level 3'), ('PGAPACKAGINGQ-APH','3','3 - Packaging between level 2 and level 4'), ('PGAPACKAGINGQ-APH','4','4 - Packaging between level 3 and level 5'), ('PGAPACKAGINGQ-APH','5','5 - Packaging between level 4 and level 6'), ('PGAPACKAGINGQ-APH','6','6 - Innermost packaging level'), ('PGAPKGLVLUOM-APH','BE','BE - Bundle'), ('PGAPKGLVLUOM-APH','BG','BG - Bag'), ('PGAPKGLVLUOM-APH','BH','BH - Bunch'), ('PGAPKGLVLUOM-APH','BL','BL - Bale, Compressed'), ('PGAPKGLVLUOM-APH','BN','BN - Bale, Non-compressed'), ('PGAPKGLVLUOM-APH','BQT','BQT - Bouquet (of cut flowers)'), ('PGAPKGLVLUOM-APH','BX','BX - Box'), ('PGAPKGLVLUOM-APH','CG','CG - Centigrams (Weight)'), ('PGAPKGLVLUOM-APH','CS','CS - Case'), ('PGAPKGLVLUOM-APH','CT','CT - Carton'), ('PGAPKGLVLUOM-APH','CX','CX - Can, Cylindrical'), ('PGAPKGLVLUOM-APH','DR','DR - Drum'), ('PGAPKGLVLUOM-APH','FL','FL - Flask'), ('PGAPKGLVLUOM-APH','FOZ','FOZ - Ounces, fluid (Volume)'), ('PGAPKGLVLUOM-APH','G','G - Grams'), ('PGAPKGLVLUOM-APH','GAL','GAL - Gallons (US) (Volume)'), ('PGAPKGLVLUOM-APH','KG','KG - Kilograms (Weight)'), ('PGAPKGLVLUOM-APH','L','L - Liters (Volume)'), ('PGAPKGLVLUOM-APH','LB','LB - Pounds (avdp) (Weight)'), ('PGAPKGLVLUOM-APH','M','M - Meters'), ('PGAPKGLVLUOM-APH','M2','M2 - Square Meters'), ('PGAPKGLVLUOM-APH','M3','M3 - Meters Cubed'), ('PGAPKGLVLUOM-APH','MB','MB - Bag, Multi-ply'), ('PGAPKGLVLUOM-APH','MG','MG - Milligrams (Weight)'), ('PGAPKGLVLUOM-APH','ML','ML - Milliliters (Volume)'), ('PGAPKGLVLUOM-APH','NO','NO - Number (Count)'), ('PGAPKGLVLUOM-APH','OZ','OZ - Ounces, weight (avdp) (Weight)'), ('PGAPKGLVLUOM-APH','PK','PK - Package/Pack'), ('PGAPKGLVLUOM-APH','PO','PO - Pouch'), ('PGAPKGLVLUOM-APH','PTL','PTL - Pints, liquid (US) (Volume)'), ('PGAPKGLVLUOM-APH','PTU','PTU - Plant Unit'), ('PGAPKGLVLUOM-APH','QTL','QTL - Quarts, liquid (US) (Volume)'), ('PGAPKGLVLUOM-APH','SLF','SLF - Shelf'), ('PGAPKGLVLUOM-APH','STM','STM - Stems (of cut flowers)'), ('PGAPKGLVLUOM-APH','T','T - Metric Ton'), ('PGAPKGLVLUOM-APH','TWR','TWR - Tower'), ('PGACONTAINERTYPE-APH','1','1 - Refrigerated'), ('PGACONTAINERTYPE-APH','2','2 - Not refrigerated'), ('PGAINDGRSUOM-APH','ML','ML - Milliliter'), ('PGAINDGRSUOM-APH','CTL','CTL - Centiliters'), ('PGAINDGRSUOM-APH','LT','LT - Liters'), ('PGAINDGRSUOM-APH','KL','KL - Kiloliter'), ('PGAINSPARRVLOC-APH','2','2 - Schedule D'), ('PGAINSPARRVLOC-APH','3','3 - UN/LOCODE'), ('PGACOMROUTINGTYPE','11','11 - Place of Discharge'), ('PGACOMROUTINGTYPE-APH','13','13 - Place of transshipment'), ('PGACOMROUTINGTYPE-APH','49','49 - Transit country'), ('PGACOMROUTINGTYPE-APH','198','198 - Original location'), ('PGAOCEANGEOAREACODE','AK','AK - Alaska'), ('PGAOCEANGEOAREACODE','AL','AL - Alabama'), ('PGAOCEANGEOAREACODE','AR','AR - Arkansas'), ('PGAOCEANGEOAREACODE','AZ','AZ - Arizona'), ('PGAOCEANGEOAREACODE','CA','CA - California'), ('PGAOCEANGEOAREACODE','CO','CO - Colorado'), ('PGAOCEANGEOAREACODE','CT','CT - Connecticut'), ('PGAOCEANGEOAREACODE','DC','DC - District of Columbia'), ('PGAOCEANGEOAREACODE','DE','DE - Delaware'), ('PGAOCEANGEOAREACODE','FL','FL - Florida'), ('PGAOCEANGEOAREACODE','GA','GA - Georgia'), ('PGAOCEANGEOAREACODE','GU','GU - Guam'), ('PGAOCEANGEOAREACODE','HI','HI - Hawai'), ('PGAOCEANGEOAREACODE','IA','IA - Iowa'), ('PGAOCEANGEOAREACODE','ID','ID - Idazo'), ('PGAOCEANGEOAREACODE','IL','IL - Illinois'), ('PGAOCEANGEOAREACODE','IN','IN - Indiana'), ('PGAOCEANGEOAREACODE','KS','KS - Kansas'), ('PGAOCEANGEOAREACODE','KY','KY - Kentucky'), ('PGAOCEANGEOAREACODE','LA','LA - Louisiana'), ('PGAOCEANGEOAREACODE','MA','MA - Massachusetts'), ('PGAOCEANGEOAREACODE','MD','MD - Maryland'), ('PGAOCEANGEOAREACODE','ME','ME - Maine'), ('PGAOCEANGEOAREACODE','MI','MI - Michigan'), ('PGAOCEANGEOAREACODE','MN','MN - Minnesota'), ('PGAOCEANGEOAREACODE','MO','MO - Missouri'), ('PGAOCEANGEOAREACODE','MS','MS - Mississippi'), ('PGAOCEANGEOAREACODE','MT','MT - Montana'), ('PGAOCEANGEOAREACODE','NC','NC - North Carolina'), ('PGAOCEANGEOAREACODE','ND','ND - North Dakota'), ('PGAOCEANGEOAREACODE','NE','NE - Nebraska'), ('PGAOCEANGEOAREACODE','NH','NH - New Hampshire'), ('PGAOCEANGEOAREACODE','NJ','NJ - New Jersey'), ('PGAOCEANGEOAREACODE','NM','NM - New Mexico'), ('PGAOCEANGEOAREACODE','NV','NV - Nevada'), ('PGAOCEANGEOAREACODE','NY','NY - New York'), ('PGAOCEANGEOAREACODE','OH','OH - Ohio'), ('PGAOCEANGEOAREACODE','OK','OK - Oklahoma'), ('PGAOCEANGEOAREACODE','OR','OR - Oregon'), ('PGAOCEANGEOAREACODE','PA','PA - Pennsylvania'), ('PGAOCEANGEOAREACODE','PR','PR - Puerto Rico'), ('PGAOCEANGEOAREACODE','RI','RI - Rhoda Island'), ('PGAOCEANGEOAREACODE','SC','SC - South Carolina'), ('PGAOCEANGEOAREACODE','SD','SD - South Dakota'), ('PGAOCEANGEOAREACODE','TN','TN - Tennessee'), ('PGAOCEANGEOAREACODE','TX','TX - Texas'), ('PGAOCEANGEOAREACODE','UT','UT - Utah'), ('PGAOCEANGEOAREACODE','VA','VA - Virginia'), ('PGAOCEANGEOAREACODE','VI','VI - Virgin Islands'), ('PGAOCEANGEOAREACODE','VT','VT - Vermont'), ('PGAOCEANGEOAREACODE','WA','WA - Washington'), ('PGAOCEANGEOAREACODE','WI','WI - Wisconsin'), ('PGAOCEANGEOAREACODE','WV','WV - West Virginia'), ('PGAOCEANGEOAREACODE','WY','WY - Wyoming'), ('PGAOCEANGEOAREACODE','AGU','AGU - Aguascalientes'), ('PGAOCEANGEOAREACODE','BCN','BCN - Baja California Nord'), ('PGAOCEANGEOAREACODE','BCS','BCS - Baja California Sur'), ('PGAOCEANGEOAREACODE','CAM','CAM - Campeche'), ('PGAOCEANGEOAREACODE','CHH','CHH - Chihuahua'), ('PGAOCEANGEOAREACODE','CHP','CHP - Chiapas'), ('PGAOCEANGEOAREACODE','COA','COA - Coahuila'), ('PGAOCEANGEOAREACODE','COL','COL - Colima'), ('PGAOCEANGEOAREACODE','DIF','DIF - Distrito Federal'), ('PGAOCEANGEOAREACODE','DUR','DUR - Durango'), ('PGAOCEANGEOAREACODE','GRO','GRO - Guerrero'), ('PGAOCEANGEOAREACODE','GUA','GUA - Guanajuato'), ('PGAOCEANGEOAREACODE','HID','HID - Hidalgo'), ('PGAOCEANGEOAREACODE','JAL','JAL - Jalisco'), ('PGAOCEANGEOAREACODE','MEX','MEX - Mexico State'), ('PGAOCEANGEOAREACODE','MIC','MIC - Michoacán'), ('PGAOCEANGEOAREACODE','MOR','MOR - Morelos'), ('PGAOCEANGEOAREACODE','NAY','NAY - Nayarit'), ('PGAOCEANGEOAREACODE','NLE','NLE - Nuevo Leon'), ('PGAOCEANGEOAREACODE','OAX','OAX - Oaxaca'), ('PGAOCEANGEOAREACODE','PUE','PUE - Puebla*'), ('PGAOCEANGEOAREACODE','QUE','QUE - Queretaro'), ('PGAOCEANGEOAREACODE','ROO','ROO - Quintana Roo'), ('PGAOCEANGEOAREACODE','SIN','SIN - Sinaloa'), ('PGAOCEANGEOAREACODE','SLP','SLP - San Luis Potosi'), ('PGAOCEANGEOAREACODE','SON','SON - Sonora'), ('PGAOCEANGEOAREACODE','TAB','TAB - Tabasco'), ('PGAOCEANGEOAREACODE','TAM','TAM - Tamaulipas'), ('PGAOCEANGEOAREACODE','TLA','TLA - Tlaxcala'), ('PGAOCEANGEOAREACODE','VER','VER - Vera Cruz'), ('PGAOCEANGEOAREACODE','YUC','YUC - Yucatán'), ('PGAOCEANGEOAREACODE','ZAC','ZAC - Zacatecas'), ('PGAOCEANGEOAREACODE','AB','AB - Alberta'), ('PGAOCEANGEOAREACODE','BC','BC - British Columbia'), ('PGAOCEANGEOAREACODE','MB','MB - Manitoba'), ('PGAOCEANGEOAREACODE','NB','NB - New Brunswick'), ('PGAOCEANGEOAREACODE','NL','NL - New Foundland and Labrador'), ('PGAOCEANGEOAREACODE','NS','NS - Nova Scotia'), ('PGAOCEANGEOAREACODE','NT','NT - Northwest Territories'), ('PGAOCEANGEOAREACODE','NU','NU - Nunavut'), ('PGAOCEANGEOAREACODE','ON','ON - Ontario*'), ('PGAOCEANGEOAREACODE','PE','PE - Prince Edward Island'), ('PGAOCEANGEOAREACODE','QC','QC - Quebec'), ('PGAOCEANGEOAREACODE','SK','SK - Saskatchewan'), ('PGAOCEANGEOAREACODE','YT','YT - Yukon Territory')) x (FieldName, Code, Decode); INSERT INTO tmgglobalcodes (PartnerID, EffDate, FieldName, Code, Decode, StaticFlag, DeletedFlag, KeepDuringRollback) SELECT d.PartnerID, GETDATE(), t.FieldName, t.Code, t.Decode, 'Y', 'N', 'N' FROM tmfDefaults d WITH (NOLOCK) INNER JOIN #tmgglobalcodes t ON 1=1 LEFT JOIN tmgglobalcodes g WITH (NOLOCK) ON d.partnerid=g.partnerid and t.fieldname=g.fieldname and t.code=g.code WHERE g.partnerid is null IF OBJECT_ID('tempdb..#tmgglobalcodes') IS NOT NULL DROP TABLE #tmgglobalcodes END<file_sep> ---------------------------------------------- INSERT INTO tlgWorkFlowSchedule SELECT PartnerID AS PartnerID, GETDATE() AS EffDate, NEWID() AS WorkFlowGuid, 'Import CN Single Window Custom Response' as Description, 'N' AS Recurring, '1:00' AS Time, GETDATE() AS Date, 'ImportCNSingleWindowCustomResponse' AS Workflow, getdate() AS LastUpdated, '1' AS Interval, 'N' AS DeletedFlag, 'N' AS KeepDuringRollback FROM tmfDefaults d where not exists (select * from tlgWorkFlowSchedule where PartnerID = d.PartnerID and Workflow = 'ImportCNSingleWindowCustomResponse') INSERT INTO tlgApplicationLaunchTree SELECT PartnerID AS PartnerId, GETDATE() AS EffDate, 'ImportCNSingleWindowCustomResponse' AS WorkFlow, 1 as SequenceNo, 'dxdExecuteSQLBatch.dll' AS ApplicationToLaunch, 'CLEAR PRW-ImportCNSingleWindowCustomResponse' AS Command, 'N' AS DeletedFlag, 'N' AS KeepDuringRollback FROM tmfDefaults d where not exists (select * from tlgApplicationLaunchTree where PartnerID = d.PartnerID and Workflow = 'ImportCNSingleWindowCustomResponse' and Command = 'CLEAR PRW-ImportCNSingleWindowCustomResponse') -- INSERT INTO tlgApplicationLaunchTree SELECT PartnerID AS PartnerId, GETDATE() AS EffDate, 'ImportCNSingleWindowCustomResponse' AS WorkFlow, 2 as SequenceNo, 'dxdXSLTProcessor.dll' AS ApplicationToLaunch, 'ImportCNSingleWindowCustomResponse-TransformXMLResponse' AS Command, 'N' AS DeletedFlag, 'N' AS KeepDuringRollback FROM tmfDefaults d where not exists (select * from tlgApplicationLaunchTree where PartnerID = d.PartnerID and Workflow = 'ImportCNSingleWindowCustomResponse' and Command = 'ImportCNSingleWindowCustomResponse-TransformXMLResponse') INSERT INTO tlgApplicationLaunchTree SELECT PartnerID AS PartnerId, GETDATE() AS EffDate, 'ImportCNSingleWindowCustomResponse' AS WorkFlow, 3 as SequenceNo, 'dxgGenericFileImportWorkflow.dll' AS ApplicationToLaunch, 'ImportCNSingleWindowCustomResponse-ImportTransformedResponse' AS Command, 'N' AS DeletedFlag, 'N' AS KeepDuringRollback FROM tmfDefaults d where not exists (select * from tlgApplicationLaunchTree where PartnerID = d.PartnerID and Workflow = 'ImportCNSingleWindowCustomResponse' and Command = 'ImportCNSingleWindowCustomResponse-ImportTransformedResponse') INSERT INTO tlgApplicationLaunchTree SELECT PartnerID AS PartnerId, GETDATE() AS EffDate, 'ImportCNSingleWindowCustomResponse' AS WorkFlow, 4 as SequenceNo, 'dxgWorkflowNotification.dll' AS ApplicationToLaunch, 'ImportCNSingleWindowCustomResponse NOTIFICATION' AS Command, 'N' AS DeletedFlag, 'N' AS KeepDuringRollback FROM tmfDefaults d where not exists (select * from tlgApplicationLaunchTree where PartnerID = d.PartnerID and Workflow = 'ImportCNSingleWindowCustomResponse' and Command = 'ImportCNSingleWindowCustomResponse NOTIFICATION') <file_sep>IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'SignDate' --your column here AND Object_ID = OBJECT_ID('txdCNDecRisk')) --Your Table Here BEGIN --Do not change 1st and 5th parameter. --4th parameter is the updated data type; 6th paramter is the updated column length if any EXEC usp_DBACopyTableIndexesByColumn '','txdCNDecRisk','SignDate','datetime',1,8 ALTER TABLE txdCNDecRisk --Your Table Here ALTER COLUMN SignDate datetime NULL --your column here --Do not change 1st paramter. EXEC usp_DBACreateTableIndexes '','txdCNDecRisk' --Your Table Here END<file_sep>--The new 19.4 baseline scripts already create this table and size the RegGroupIDList column to 2000 characters. --This update script will only modify the column if it is less than 2000 characters, as there could be DB's out there --with it less than 2000 characters, causing issues. -------------------------------------------------------------------------------------------------------------- --MODIFY EXISTING COLUMN --The usp_DBACopyTableIndexesByColumn stored proc searches for an index on the modified column. If it exists, --it will drop that index to allow column changes. --The usp_DBACreateTableIndexes stored proc recreates the dropped index. -------------------------------------------------------------------------------------------------------------- IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'RegGroupIDList' --your column here AND Object_ID = OBJECT_ID('txdDPSSearchLog') AND MAX_LENGTH < 2000) --Your Table Here BEGIN --Do not change 1st and 5th parameter. --4th parameter is the updated data type; 6th paramter is the updated column length if any EXEC usp_DBACopyTableIndexesByColumn '','txdDPSSearchLog','RegGroupIDList','VARCHAR',1,2000 ALTER TABLE txdDPSSearchLog --Your Table Here ALTER COLUMN RegGroupIDList [VARCHAR] (2000) NOT NULL --your column here --Do not change 1st paramter. EXEC usp_DBACreateTableIndexes '','txdDPSSearchLog' --Your Table Here END<file_sep>-------------------------------------------------------------------------------------------------------------- --MODIFY EXISTING COLUMN --txdusentryresponsedetail -- Increase ReferenceDataText to size 255 -------------------------------------------------------------------------------------------------------------- IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'ReferenceDataText' --your column here AND Object_ID = OBJECT_ID('txdusentryresponsedetail')) --Your Table Here BEGIN --Do not change 1st and 5th parameter. --4th parameter is the updated data type; 6th paramter is the updated column length if any EXEC usp_DBACopyTableIndexesByColumn '','txdusentryresponsedetail','ReferenceDataText','varchar',1,255 ALTER TABLE txdusentryresponsedetail --Your Table Here ALTER COLUMN ReferenceDataText [varchar] (255) NOT NULL --your column here --Do not change 1st paramter. EXEC usp_DBACreateTableIndexes '','txdusentryresponsedetail' --Your Table Here END<file_sep>IF NOT EXISTS (select TOP 1 1 from sys.tables where Name = 'tmdfeerate' AND Type = 'U') BEGIN PRINT 'Table is missing......' END ELSE BEGIN INSERT INTO tmdfeerate SELECT partnerid as partnerid, GETDATE() as effdate, '044' as classcode, '4/1/2020' as starteffdate, '6/30/2020' as endeffdate, .05 as advaloremrate, 0 as minamount, 0 as maxamount, 'N' as deletedflag, 'N' as keepduringrollback FROM tmfdefaults WHERE NOT EXISTS (SELECT * FROM tmdfeerate WHERE classcode = '044' and starteffdate = '4/1/2020') END<file_sep>--create backup in case we delete the wrong records SELECT * INTO dbo.bck_tmgglobalcodes_ReleasePush FROM tmgglobalcodes WHERE fieldname = 'GSIProductCode' DELETE tmgglobalcodes WHERE fieldname = 'GSIProductCode' insert into tmgglobalcodes select PartnerID, GETDATE(), 'GSIProductCode', 'AS', 'Analyzer Suite', 'Y', 'N', 'N' from tmfdefaults insert into tmgglobalcodes select PartnerID, GETDATE(), 'GSIProductCode', 'CAM', 'CAM', 'Y', 'N', 'N' from tmfdefaults insert into tmgglobalcodes select PartnerID, GETDATE(), 'GSIProductCode', 'CNPTRM', 'CN Processing Trade Regime Management', 'Y', 'N', 'N' from tmfdefaults insert into tmgglobalcodes select PartnerID, GETDATE(), 'GSIProductCode', 'COD', 'Country of Origin Determination', 'Y', 'N', 'N' from tmfdefaults insert into tmgglobalcodes select PartnerID, GETDATE(), 'GSIProductCode', 'DPS', 'Denied Party Screening', 'Y', 'N', 'N' from tmfdefaults insert into tmgglobalcodes select PartnerID, GETDATE(), 'GSIProductCode', 'EM', 'Export Management', 'Y', 'N', 'N' from tmfdefaults insert into tmgglobalcodes select PartnerID, GETDATE(), 'GSIProductCode', 'EUCRM', 'EU Customs Regime Management', 'Y', 'N', 'N' from tmfdefaults insert into tmgglobalcodes select PartnerID, GETDATE(), 'GSIProductCode', 'EV', 'Entry Verification', 'Y', 'N', 'N' from tmfdefaults insert into tmgglobalcodes select PartnerID, GETDATE(), 'GSIProductCode', 'ExV', 'Export Verification', 'Y', 'N', 'N' from tmfdefaults insert into tmgglobalcodes select PartnerID, GETDATE(), 'GSIProductCode', 'EZFTZ', 'EZ-FTZ', 'Y', 'N', 'N' from tmfdefaults insert into tmgglobalcodes select PartnerID, GETDATE(), 'GSIProductCode', 'FTAM', 'Free Trade Agreement Management', 'Y', 'N', 'N' from tmfdefaults insert into tmgglobalcodes select PartnerID, GETDATE(), 'GSIProductCode', 'FTZMD', 'Foreign Trade Zone Management - Discrete', 'Y', 'N', 'N' from tmfdefaults insert into tmgglobalcodes select PartnerID, GETDATE(), 'GSIProductCode', 'FTZMP', 'Foreign Trade Zone Management - Petro', 'Y', 'N', 'N' from tmfdefaults insert into tmgglobalcodes select PartnerID, GETDATE(), 'GSIProductCode', 'GC', 'Global Classification', 'Y', 'N', 'N' from tmfdefaults insert into tmgglobalcodes select PartnerID, GETDATE(), 'GSIProductCode', 'GovConn', 'Government Connectivity', 'Y', 'N', 'N' from tmfdefaults insert into tmgglobalcodes select PartnerID, GETDATE(), 'GSIProductCode', 'GTC', 'Global Trade Content', 'Y', 'N', 'N' from tmfdefaults insert into tmgglobalcodes select PartnerID, GETDATE(), 'GSIProductCode', 'GTV', 'Global Trade Visibility', 'Y', 'N', 'N' from tmfdefaults insert into tmgglobalcodes select PartnerID, GETDATE(), 'GSIProductCode', 'GV', 'Global Visibility', 'Y', 'N', 'N' from tmfdefaults insert into tmgglobalcodes select PartnerID, GETDATE(), 'GSIProductCode', 'IM', 'Import Management', 'Y', 'N', 'N' from tmfdefaults insert into tmgglobalcodes select PartnerID, GETDATE(), 'GSIProductCode', 'IMMEXM', 'IMMEX Management', 'Y', 'N', 'N' from tmfdefaults insert into tmgglobalcodes select PartnerID, GETDATE(), 'GSIProductCode', 'INCWD', 'IN Customs Warehouse/Drawback', 'Y', 'N', 'N' from tmfdefaults insert into tmgglobalcodes select PartnerID, GETDATE(), 'GSIProductCode', 'INSEZ', 'IN Special Economic Zones', 'Y', 'N', 'N' from tmfdefaults insert into tmgglobalcodes select PartnerID, GETDATE(), 'GSIProductCode', 'KN', 'Knowledge Network', 'Y', 'N', 'N' from tmfdefaults insert into tmgglobalcodes select PartnerID, GETDATE(), 'GSIProductCode', 'LCM', 'Landed Cost Management', 'Y', 'N', 'N' from tmfdefaults insert into tmgglobalcodes select PartnerID, GETDATE(), 'GSIProductCode', 'MYLMW', 'MY Licensed Manufacturing Warehouse', 'Y', 'N', 'N' from tmfdefaults insert into tmgglobalcodes select PartnerID, GETDATE(), 'GSIProductCode', 'NAFTA', 'NAFTAssistant', 'Y', 'N', 'N' from tmfdefaults insert into tmgglobalcodes select PartnerID, GETDATE(), 'GSIProductCode', 'NCTS', 'New Computerised Transit System', 'Y', 'N', 'N' from tmfdefaults insert into tmgglobalcodes select PartnerID, GETDATE(), 'GSIProductCode', 'PAO', 'Platform Add-Ons', 'Y', 'N', 'N' from tmfdefaults insert into tmgglobalcodes select PartnerID, GETDATE(), 'GSIProductCode', 'PCOM', 'Preferential Certificate of Origin Management', 'Y', 'N', 'N' from tmfdefaults insert into tmgglobalcodes select PartnerID, GETDATE(), 'GSIProductCode', 'SAO', 'Service Add-Ons', 'Y', 'N', 'N' from tmfdefaults insert into tmgglobalcodes select PartnerID, GETDATE(), 'GSIProductCode', 'SCC', 'Supply Chain Compliance', 'Y', 'N', 'N' from tmfdefaults insert into tmgglobalcodes select PartnerID, GETDATE(), 'GSIProductCode', 'SGP', 'Solicitation for Government Procurement', 'Y', 'N', 'N' from tmfdefaults insert into tmgglobalcodes select PartnerID, GETDATE(), 'GSIProductCode', 'THBI', 'TH Board of Investment', 'Y', 'N', 'N' from tmfdefaults insert into tmgglobalcodes select PartnerID, GETDATE(), 'GSIProductCode', 'THFTZ', 'TH Free Trade Zones', 'Y', 'N', 'N' from tmfdefaults insert into tmgglobalcodes select PartnerID, GETDATE(), 'GSIProductCode', 'USD', 'US Drawback', 'Y', 'N', 'N' from tmfdefaults insert into tmgglobalcodes select PartnerID, GETDATE(), 'GSIProductCode', 'USISF', 'US Importer Security Filing', 'Y', 'N', 'N' from tmfdefaults insert into tmgglobalcodes select PartnerID, GETDATE(), 'GSIProductCode', 'USQPWP', 'US QP/WP', 'Y', 'N', 'N' from tmfdefaults insert into tmgglobalcodes select PartnerID, GETDATE(), 'GSIProductCode', 'USR', 'US Reconciliation', 'Y', 'N', 'N' from tmfdefaults <file_sep>IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'DestinationNatCd' AND Object_ID = OBJECT_ID('txdCNInvtListType')) BEGIN EXEC usp_DBACopyTableIndexesByColumn '','txdCNInvtListType','DestinationNatCd','nvarchar',1,510 ALTER TABLE txdCNInvtListType ALTER COLUMN DestinationNatCd [nvarchar] (510) NOT NULL EXEC usp_DBACreateTableIndexes '','txdCNInvtListType' END<file_sep>--txdCertParty IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'CompanyID' --your column here AND Object_ID = OBJECT_ID('txdCertParty')) --Your Table Here BEGIN --Do not change 1st and 5th parameter. --4th parameter is the updated data type; 6th paramter is the updated column length if any EXEC usp_DBACopyTableIndexesByColumn '','txdCertParty','CompanyID','nvarchar',1,100 ALTER TABLE txdCertParty --Your Table Here ALTER COLUMN CompanyID [nvarchar] (100) NOT NULL --your column here --Do not change 1st parameter. EXEC usp_DBACreateTableIndexes '','txdCertParty' --Your Table Here END --trdReportFTAParty IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'CompanyID' --your column here AND Object_ID = OBJECT_ID('trdReportFTAParty')) --Your Table Here BEGIN --Do not change 1st and 5th parameter. --4th parameter is the updated data type; 6th paramter is the updated column length if any EXEC usp_DBACopyTableIndexesByColumn '','trdReportFTAParty','CompanyID','nvarchar',1,100 ALTER TABLE trdReportFTAParty --Your Table Here ALTER COLUMN CompanyID [nvarchar] (100) NOT NULL --your column here --Do not change 1st parameter. EXEC usp_DBACreateTableIndexes '','trdReportFTAParty' --Your Table Here END<file_sep>IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'NOTE' AND Object_ID = OBJECT_ID('txdCNStockInfoResps')) BEGIN ALTER TABLE txdCNStockInfoResps DROP COLUMN NOTE END<file_sep>IF EXISTS (select TOP 1 1 from sys.tables where Name = 'txdBOMAveragingVolume' AND Type = 'U') BEGIN IF OBJECT_ID('UQ_txdBOMAveragingVolume') IS NULL BEGIN ALTER TABLE dbo.txdBOMAveragingVolume ADD CONSTRAINT UQ_txdBOMAveragingVolume UNIQUE ( Value ASC, ShipDate ASC, PartnerId ASC ) END ELSE BEGIN PRINT 'Key Already Exists... Skipping' END END ELSE BEGIN PRINT 'Table Not Exists... Skipping' END <file_sep>IF EXISTS (SELECT TOP 1 1 FROM sys.tables WHERE Name = 'desttxdCNStockGoodsType' AND Type = 'U') BEGIN IF ( SELECT COUNT(*) FROM dbo.syscolumns WHERE name IN ('Pre-authorizationSeqID','2ndCustomsUOM','2ndCustomsQty','1stCustomsConvertRatio','2ndCustomsConvertRatio') AND ID = OBJECT_ID('desttxdCNStockGoodsType') ) = 5 BEGIN -- rename column EXEC sp_rename 'desttxdCNStockGoodsType.Pre-authorizationSeqID', 'PreauthorizationSeqID', 'COLUMN'; EXEC sp_rename 'desttxdCNStockGoodsType.2ndCustomsUOM', 'SecondCustomsUOM', 'COLUMN'; EXEC sp_rename 'desttxdCNStockGoodsType.2ndCustomsQty', 'SecondCustomsQty', 'COLUMN'; EXEC sp_rename 'desttxdCNStockGoodsType.1stCustomsConvertRatio', 'FirstCustomsConvertRatio', 'COLUMN'; EXEC sp_rename 'desttxdCNStockGoodsType.2ndCustomsConvertRatio', 'SecondCustomsConvertRatio', 'COLUMN'; END END<file_sep>using System; using System.Collections.Generic; using System.Linq; using System.Text; using NDesk.Options; using DbUp; using DbUp.Engine.Transactions; using DbUp.Support.SqlServer; using DbUp.Engine.Output; using System.IO; namespace DBUpgrade { class Program { //create dummy fields so ILMerge will fail if the libraries are not marked to merge in //use <IlMerge>True</IlMerge> in the csproj file private dugUtilities.CConnectionInfo dummy; private IntegrationPoint.Cache.MemoryFileInfo dummy2; private dugSQL.Utility dummy3; static int Main(string[] args) { bool dry = false; var connectionString = ""; var version = ""; var map = ""; var partnerID = ""; var allPartners = false; var noPartners = false; var skipSecurityDB = false; var oldMode = !newMethod(new DirectoryInfo(".")); var updatePartners = false; DBConnections.DBType? type = DBConnections.DBType.GTM; var output = false; bool show_help = false; var optionSet = new OptionSet() { { "v|version=", "required: version to apply (eg 14.3, 14.4)", v => version = v}, { "m|map=", "required: mapping from folder to dbconfig name (<folder>=<dbConfig name>;<folder>=<name>)", m => map = m}, { "p|partnerID=", "partnerID to apply", p => partnerID = p}, { "ap|allPartners", "run for all partners in the security db", v => allPartners = v != null }, { "np|noPartners", "run for no partners in the security db", v => noPartners = v != null }, { "ss|skipSecurityDB", "don't update the security db", v => skipSecurityDB = v != null }, { "old|oldMode", "don't update the security db", v => oldMode = v != null }, { "h|help", "show this message and exit", v => show_help = v != null }, { "dry", "dry run, no scripts executed", m => dry = true }, { "t|type=", "required: GTM or ISF", t => { try { type = (DBConnections.DBType)Enum.Parse(typeof(DBConnections.DBType), t,true); } catch (Exception e) { type = null; } }}, { "output", "output a partner list", o=> output = true } }; optionSet.Parse(args); if (args.Length == 0) show_help = true; if (string.IsNullOrEmpty(version)) show_help = true; if (!type.HasValue) { Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine("type is invalid"); Console.ForegroundColor = ConsoleColor.White; show_help = true; } if (show_help) { optionSet.WriteOptionDescriptions(System.Console.Out); return -1; } if (!output) { Console.WriteLine($"Using new folder structure: {!oldMode}"); Console.WriteLine(""); } if (string.IsNullOrEmpty(partnerID) && !allPartners && !noPartners) { Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine("must specify allPartners, noPartners or a partnerID"); Console.ForegroundColor = ConsoleColor.White; optionSet.WriteOptionDescriptions(System.Console.Out); return -2; } //parse mapping Dictionary<string, string> mapping = new Dictionary<string, string>(); string[] mapItems = map.Split(';'); foreach (var m in mapItems) { string[] pair = m.Split('='); if (pair.Length == 2) { mapping.Add(pair[0], pair[1]); } } var db = new DBConnections(type.Value, mapping); //Console.WriteLine(db.GetSecurityConnection()); var directoryInfo = new System.IO.DirectoryInfo(version); if (oldMode) { if (!directoryInfo.Exists) { Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine("Directory does not exists: " + directoryInfo.FullName); Console.ForegroundColor = ConsoleColor.White; return -3; } } updatePartners = !String.IsNullOrEmpty(partnerID) || allPartners; if (noPartners && updatePartners) { Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine("can't specify a partnerID or allPartners and the noPartners flags together"); Console.ForegroundColor = ConsoleColor.White; return -4; } if (type.Value == DBConnections.DBType.GTM) { if (!mapping.ContainsKey("Security") && updatePartners) { Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine("Security mapping must be provided"); Console.ForegroundColor = ConsoleColor.White; return -5; } //get security connection string securityConnectionString = ""; if (mapping.ContainsKey("Security") || updatePartners ) { securityConnectionString = db.GetSecurityConnection(); if (String.IsNullOrEmpty(securityConnectionString)) { Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine("Security connection string can't be found"); Console.ForegroundColor = ConsoleColor.White; return -6; } } } if (output) { var cn = hidePassword(db.GetSecurityConnection()); Console.WriteLine("Security Connection: " + cn); if (!string.IsNullOrEmpty(partnerID)) { Console.WriteLine("Partners: " + partnerID); } if (allPartners) { List<DBConnections.PartnerConnections> partners = db.GetAllUniquePartnerConnectionStrings(); string result = "Partners: " + String.Join(",", partners.Select(p => p.PartnerID)); Console.WriteLine(result); } return 0; } if (updatePartners && !string.IsNullOrEmpty(partnerID)) { connectionString = db.GetPartnerConnectionString(int.Parse(partnerID)); if (String.IsNullOrEmpty(connectionString)) { Console.ForegroundColor = ConsoleColor.Red; Console.Error.WriteLine("partnerID not found in securityDB: " + partnerID); Console.ForegroundColor = ConsoleColor.White; return -7; } } //System.Diagnostics.Debugger.Launch(); bool anyFailed = false; if (oldMode) { //directoryInfo == version folder foreach (var dir in GetDirectories(directoryInfo)) { Console.WriteLine("--------------------------------------------------------"); Console.WriteLine("-------------------" + dir.Name + "----------------------"); foreach (var item in System.IO.Directory.GetDirectories(dir.DirectoryInfo.FullName)) { Console.WriteLine("--------------------------------------------------------"); System.IO.DirectoryInfo di = new System.IO.DirectoryInfo(item); string name = di.Name; if (!"Application".Equals(name)) { handleNonApplicationMapping(dry, skipSecurityDB, mapping, db, ref anyFailed, di, name); } else if (updatePartners) { handlePartnerUpdates(dry, db, ref anyFailed, di, partnerID, allPartners); } } } } else { //directories in current folder will be Application, Biblioteca, etc //subdirectories will be version numbers directoryInfo = new DirectoryInfo("."); foreach (var dbfolder in Directory.GetDirectories(directoryInfo.FullName)) { DirectoryInfo di = new DirectoryInfo(dbfolder); string name = di.Name; di = new DirectoryInfo(Path.Combine(dbfolder, version)); if (di.Exists) { foreach (var dir in GetDirectories(di)) { Console.WriteLine("--------------------------------------------------------"); Console.WriteLine("-------------------" + dir.Name + "----------------------"); Console.WriteLine("--------------------------------------------------------"); if (!"Application".Equals(name)) { handleNonApplicationMapping(dry, skipSecurityDB, mapping, db, ref anyFailed, dir.DirectoryInfo, name); } else if (updatePartners) { handlePartnerUpdates(dry, db, ref anyFailed, dir.DirectoryInfo, partnerID, allPartners); } } } } } Console.ForegroundColor = ConsoleColor.White; if (anyFailed) return -8; return 0; } private static void handleNonApplicationMapping(bool dry, bool skipSecurityDB, Dictionary<string, string> mapping, DBConnections db, ref bool anyFailed, DirectoryInfo di, string name) { string mapValue; if (mapping.TryGetValue(name, out mapValue)) { Console.WriteLine(String.Format("Mapping for folder: {0} => {1}", name, mapValue)); if ("Security".Equals(name) && skipSecurityDB) { Console.WriteLine("skipping Security DB"); } else { var connectionString = BuildConnectionString(mapValue); if ("Security".Equals(name)) connectionString = db.GetSecurityConnection(); Console.WriteLine(String.Format("Updating {0}@({1})", name, hideDetails(connectionString))); var failed = performUpgrade(connectionString, di.FullName, dry); if (failed) anyFailed = true; } } else { Console.WriteLine("No mapping for folder: " + name); } } private static void handlePartnerUpdates(bool dry, DBConnections db, ref bool anyFailed, DirectoryInfo di, string partnerID, bool allPartners) { string connectionString; if (!string.IsNullOrEmpty(partnerID)) { connectionString = db.GetPartnerConnectionString(int.Parse(partnerID)); //upgrade Console.WriteLine(String.Format("Updating partnerID: {0}@({1})", partnerID, hideDetails(connectionString))); var failed = performUpgrade(connectionString, di.FullName, dry); if (failed) anyFailed = true; } if (allPartners) { List<DBConnections.PartnerConnections> partners = db.GetAllUniquePartnerConnectionStrings(); foreach (var p in partners) { //upgrade connectionString = p.ConnectionString; Console.WriteLine(String.Format("Updating partnerID: {0}@({1})", p.PartnerID, hideDetails(connectionString))); var failed = performUpgrade(connectionString, di.FullName, dry); if (failed) anyFailed = true; } } } private static List<DirectoryData> GetDirectories(System.IO.DirectoryInfo directoryInfo) { List<DirectoryData> result = new List<DirectoryData>(); Version v = new Version(directoryInfo.Name); Version v1 = MinusOne(v); Version v2 = MinusOne(v1); var directoryInfo1 = new System.IO.DirectoryInfo(System.IO.Path.Combine(directoryInfo.Parent.FullName, v1.ToString(), "Hotfix")); var directoryInfo2 = new System.IO.DirectoryInfo(System.IO.Path.Combine(directoryInfo.Parent.FullName, v2.ToString(), "Hotfix")); var directoryInfoMain = new System.IO.DirectoryInfo(System.IO.Path.Combine(directoryInfo.FullName, "Release")); var diCurrentReleaseHF = new System.IO.DirectoryInfo(System.IO.Path.Combine(directoryInfo.FullName, "Hotfix")); if (directoryInfo2.Exists) result.Add(new DirectoryData() { Name = v2.ToString() + "\\Hotfix", DirectoryInfo = directoryInfo2 }); else //there is no separate Hotfix folder, check all scripts for release { directoryInfo2 = new System.IO.DirectoryInfo(System.IO.Path.Combine(directoryInfo.Parent.FullName, v2.ToString())); if (directoryInfo2.Exists) result.Add(new DirectoryData() { Name = directoryInfo2.Name, DirectoryInfo = directoryInfo2 }); } if (directoryInfo1.Exists) result.Add(new DirectoryData() { Name = v1.ToString() + "\\Hotfix", DirectoryInfo = directoryInfo1 }); else //there is no separate Hotfix folder, check all scripts for release { directoryInfo1 = new System.IO.DirectoryInfo(System.IO.Path.Combine(directoryInfo.Parent.FullName, v1.ToString())); if (directoryInfo1.Exists) result.Add(new DirectoryData() { Name = directoryInfo1.Name, DirectoryInfo = directoryInfo1 }); } if (directoryInfoMain.Exists) result.Add(new DirectoryData() { Name = directoryInfo.Name + "\\Release", DirectoryInfo = directoryInfoMain }); else result.Add(new DirectoryData() { Name = directoryInfo.Name, DirectoryInfo = directoryInfo }); if (diCurrentReleaseHF.Exists) result.Add(new DirectoryData() { Name = directoryInfo.Name + "\\Hotfix", DirectoryInfo = diCurrentReleaseHF }); return result; } private static Version MinusOne(Version v) { if (v.Minor == 1) return new Version(v.Major - 1, 4); return new Version(v.Major, v.Minor - 1); } private static string BuildConnectionString(string mapping) { string name = mapping; string type = "userauth"; if(mapping.Contains(":")) { name = mapping.Split(':')[0]; type = mapping.Split(':')[1]; } string cn = IntegrationPoint.Sql.Utility.GetDBConnectionString(name, type); return cn; } private static bool performUpgrade(string connectionString, string directory, bool dry) { DbUp.Engine.DatabaseUpgradeResult result = null; bool failed = false; var sqlConnectionManager = new SqlConnectionManager(connectionString); var log = new ConsoleUpgradeLog(); var journal = new FlywayLikeJournal(() => sqlConnectionManager, () => log, null, FlywayLikeExtensions.VersionTableName); DbUp.Builder.UpgradeConfiguration config = null; var dbupBuilder = DeployChanges.To .HashedSqlDatabase(sqlConnectionManager) .WithExecutionTimeout(TimeSpan.FromSeconds(30 * 60)) .WithTransactionPerScript() .WithHashedScriptsInDirectory(directory, journal) .LogToConsole().LogScriptOutput(); dbupBuilder.Configure(c => config = c); var dbup = dbupBuilder.Build(); var IPEngine = new IPUpgradeEngine(config); if (dry) { foreach (var item in IPEngine.GetScriptsToExecute()) { Console.WriteLine("\tDry run: " + item.Name); } } else { result = IPEngine.PerformUpgrade(); } if (dry || result.Successful) { Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine("Success!\n"); } else { failed = true; if (!dry) { MultipleScriptException ex = result.Error as MultipleScriptException; if (ex != null) { Console.WriteLine("Scripts that failed: "); foreach (var item in ex.FailedScripts) { Console.ForegroundColor = ConsoleColor.White; Console.Error.Write("\t" + item.script.Name); Console.ForegroundColor = ConsoleColor.Red; Console.Error.WriteLine(String.Format(" == Error: {0}", item.error.Message.Replace("\n", "\n\t\t"))); } } else { Console.ForegroundColor = ConsoleColor.Red; Console.Error.WriteLine(result.Error); } } Console.WriteLine("Failed!\n"); } Console.ForegroundColor = ConsoleColor.White; return failed; } private static string hideDetails(string s) { return hideUser(hidePassword(s)); } private static string hidePassword(string s) { string result = s; int index = s.IndexOf("password=", 0, StringComparison.InvariantCultureIgnoreCase); if (index >= 0) { int index2 = s.IndexOf(";", index, StringComparison.InvariantCultureIgnoreCase); if (index2 >= 0) { result = result.Substring(0, index + 9) + result.Substring(index2); } else { result = result.Substring(0, index + 9); } } return result; } private static string hideUser(string s) { string result = s; int index = s.IndexOf("user id=", 0, StringComparison.InvariantCultureIgnoreCase); if (index >= 0) { int index2 = s.IndexOf(";", index, StringComparison.InvariantCultureIgnoreCase); if (index2 >= 0) { result = result.Substring(0, index + 8) + result.Substring(index2); } else { result = result.Substring(0, index + 8); } } return result; } private static bool newMethod(DirectoryInfo rootpath) { return Directory.Exists(Path.Combine(rootpath.FullName, "Application")); } } class DirectoryData { public string Name { get; set; } public System.IO.DirectoryInfo DirectoryInfo { get; set; } } } <file_sep>IF EXISTS (SELECT TOP 1 1 FROM sys.tables WHERE Name = 'txdCNDeclarationData' AND Type = 'U') BEGIN IF ( SELECT COUNT(*) FROM dbo.syscolumns WHERE name IN ('TrnHeadTrafCustomsNTrnHeado','TrnHeadTrafCustomsNo') AND ID = OBJECT_ID('txdCNDeclarationData') ) = 2 BEGIN --drop extra column ALTER TABLE txdCNDeclarationData DROP COLUMN TrnHeadTrafCustomsNo; --rename column EXEC sp_rename 'txdCNDeclarationData.TrnHeadTrafCustomsNTrnHeado', 'TrnHeadTrafCustomsNo', 'COLUMN'; END ELSE BEGIN PRINT 'Alter Not required....' END END<file_sep>-------------------------------------------------------------------------------------------------------------- --MODIFY EXISTING COLUMN --ttdStagingExportHeader -- change two fields to nvarchar -------------------------------------------------------------------------------------------------------------- IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'INCOTermsLocation' --your column here AND Object_ID = OBJECT_ID('ttdStagingExportHeader')) --Your Table Here AND EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'PaymentTerms' --your column here AND Object_ID = OBJECT_ID('ttdStagingExportHeader')) BEGIN --Do not change 1st and 5th parameter. --4th parameter is the updated data type; 6th paramter is the updated column length if any EXEC usp_DBACopyTableIndexesByColumn '','ttdStagingExportHeader','INCOTermsLocation','nvarchar',1,100 EXEC usp_DBACopyTableIndexesByColumn '','ttdStagingExportHeader','PaymentTerms','nvarchar',1,50 ALTER TABLE ttdStagingExportHeader --Your Table Here ALTER COLUMN INCOTermsLocation [nvarchar] (100) NOT NULL --your column here ALTER TABLE ttdStagingExportHeader --Your Table Here ALTER COLUMN PaymentTerms [nvarchar] (50) NOT NULL --your column here --Do not change 1st paramter. EXEC usp_DBACreateTableIndexes '','ttdStagingExportHeader' --Your Table Here END -------------------------------------------------------------------------------------------------------------- --MODIFY EXISTING COLUMN --ttdStagingExportHeaderHist -- change two fields to nvarchar -------------------------------------------------------------------------------------------------------------- IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'INCOTermsLocation' --your column here AND Object_ID = OBJECT_ID('ttdStagingExportHeaderHist')) --Your Table Here AND EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'PaymentTerms' --your column here AND Object_ID = OBJECT_ID('ttdStagingExportHeaderHist')) BEGIN --Do not change 1st and 5th parameter. --4th parameter is the updated data type; 6th paramter is the updated column length if any EXEC usp_DBACopyTableIndexesByColumn '','ttdStagingExportHeaderHist','INCOTermsLocation','nvarchar',1,100 EXEC usp_DBACopyTableIndexesByColumn '','ttdStagingExportHeaderHist','PaymentTerms','nvarchar',1,50 ALTER TABLE ttdStagingExportHeaderHist --Your Table Here ALTER COLUMN INCOTermsLocation [nvarchar] (100) NOT NULL --your column here ALTER TABLE ttdStagingExportHeaderHist --Your Table Here ALTER COLUMN PaymentTerms [nvarchar] (50) NOT NULL --your column here --Do not change 1st paramter. EXEC usp_DBACreateTableIndexes '','ttdStagingExportHeaderHist' --Your Table Here END -------------------------------------------------------------------------------------------------------------- --MODIFY EXISTING COLUMN --txdExportHeader -- change two fields to nvarchar -------------------------------------------------------------------------------------------------------------- IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'INCOTermsLocation' --your column here AND Object_ID = OBJECT_ID('txdExportHeader')) --Your Table Here AND EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'PaymentTerms' --your column here AND Object_ID = OBJECT_ID('txdExportHeader')) BEGIN --Do not change 1st and 5th parameter. --4th parameter is the updated data type; 6th paramter is the updated column length if any EXEC usp_DBACopyTableIndexesByColumn '','txdExportHeader','INCOTermsLocation','nvarchar',1,100 EXEC usp_DBACopyTableIndexesByColumn '','txdExportHeader','PaymentTerms','nvarchar',1,50 ALTER TABLE txdExportHeader --Your Table Here ALTER COLUMN INCOTermsLocation [nvarchar] (100) NOT NULL --your column here ALTER TABLE txdExportHeader --Your Table Here ALTER COLUMN PaymentTerms [nvarchar] (50) NOT NULL --your column here --Do not change 1st paramter. EXEC usp_DBACreateTableIndexes '','txdExportHeader' --Your Table Here END -------------------------------------------------------------------------------------------------------------- --MODIFY EXISTING COLUMN --txdExportHeaderHist -- change two fields to nvarchar -------------------------------------------------------------------------------------------------------------- IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'INCOTermsLocation' --your column here AND Object_ID = OBJECT_ID('txdExportHeaderHist')) --Your Table Here AND EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'PaymentTerms' --your column here AND Object_ID = OBJECT_ID('txdExportHeaderHist')) BEGIN --Do not change 1st and 5th parameter. --4th parameter is the updated data type; 6th paramter is the updated column length if any EXEC usp_DBACopyTableIndexesByColumn '','txdExportHeaderHist','INCOTermsLocation','nvarchar',1,100 EXEC usp_DBACopyTableIndexesByColumn '','txdExportHeaderHist','PaymentTerms','nvarchar',1,50 ALTER TABLE txdExportHeader --Your Table Here ALTER COLUMN INCOTermsLocation [nvarchar] (100) NOT NULL --your column here ALTER TABLE txdExportHeader --Your Table Here ALTER COLUMN PaymentTerms [nvarchar] (50) NOT NULL --your column here --Do not change 1st paramter. EXEC usp_DBACreateTableIndexes '','txdExportHeaderHist' --Your Table Here END -------------------------------------------------------------------------------------------------------------- --MODIFY EXISTING COLUMN --trdExportHeader -- change two fields to nvarchar -------------------------------------------------------------------------------------------------------------- IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'INCOTermsLocation' --your column here AND Object_ID = OBJECT_ID('trdExportHeader')) --Your Table Here AND EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'PaymentTerms' --your column here AND Object_ID = OBJECT_ID('trdExportHeader')) BEGIN --Do not change 1st and 5th parameter. --4th parameter is the updated data type; 6th paramter is the updated column length if any EXEC usp_DBACopyTableIndexesByColumn '','trdExportHeader','INCOTermsLocation','nvarchar',1,100 EXEC usp_DBACopyTableIndexesByColumn '','trdExportHeader','PaymentTerms','nvarchar',1,50 ALTER TABLE trdExportHeader --Your Table Here ALTER COLUMN INCOTermsLocation [nvarchar] (100) NOT NULL --your column here ALTER TABLE trdExportHeader --Your Table Here ALTER COLUMN PaymentTerms [nvarchar] (50) NOT NULL --your column here --Do not change 1st paramter. EXEC usp_DBACreateTableIndexes '','trdExportHeader' --Your Table Here END <file_sep>/* --------------- Add or Update data in tmfCountryGroup, make sure XI is part of EU, NOT GB --------------- */ IF EXISTS (select TOP 1 1 from sys.tables where Name = 'tmfCountryGroup' --Your Table Here AND Type = 'U') AND EXISTS (select TOP 1 1 from sys.tables where Name = 'tmfdefaults' --Your Table Here AND Type = 'U') BEGIN IF EXISTS(SELECT TOP 1 1 FROM tmfCountryGroup g WITH (NOLOCK) JOIN tmfDefaults d ON g.PartnerID = d.PartnerID WHERE g.CountryCode = 'GB' AND g.GroupName = 'EU') BEGIN UPDATE g SET g.CountryCode = 'XI' FROM tmfCountryGroup g JOIN tmfDefaults d ON g.PartnerID = d.PartnerID WHERE g.CountryCode = 'GB' AND g.GroupName = 'EU' END ELSE BEGIN IF NOT EXISTS(SELECT TOP 1 1 FROM tmfCountryGroup g WITH (NOLOCK) JOIN tmfDefaults d ON g.PartnerID = d.PartnerID WHERE g.CountryCode = 'XI' AND g.GroupName = 'EU') BEGIN INSERT INTO tmfCountryGroup SELECT PartnerID AS PartnerID, GETDATE() AS EffDate, 'XI' AS CountryCode, 'EU' AS GroupName, 'Y' AS ActiveFlag, 'N' AS DeletedFlag, 'N' AS KeepDuringRollback FROM tmfdefaults d WITH (NOLOCK) END END END /* --------------- Add or Update data in tmfCountry --------------- */ IF EXISTS (select TOP 1 1 from sys.tables where Name = 'tmfCountry' --Your Table Here AND Type = 'U') AND EXISTS (select TOP 1 1 from sys.tables where Name = 'tmfdefaults' --Your Table Here AND Type = 'U') BEGIN IF NOT EXISTS(SELECT TOP 1 1 FROM tmfCountry g WITH (NOLOCK) JOIN tmfDefaults d ON g.PartnerID = d.PartnerID WHERE g.Code = 'XI') BEGIN INSERT INTO tmfCountry SELECT d.PartnerID AS PartnerID, GETDATE() AS EffDate, 'XI' AS Code, 'XXI' AS AltCode, '<NAME>' AS Name, 'GBP' AS CurrencyCode, 'N' AS UseCurrencyFlag, 0.003464 AS MpfRate, 485.0000 AS MpfMaxAmt, 25.0000 AS MpfMinAmt, 'N' AS ProhibitedFlag, 'N' AS CertificateFlag, 'N' AS AbiProhibitedFlag, 'D' AS ExchangeFrequency, 'N' AS DeletedFlag, 'N' AS KeepDuringRollback FROM tmfdefaults d WITH (NOLOCK) JOIN tmfCountry c WITH (NOLOCK) ON d.PartnerID = c.PartnerID WHERE c.Code = 'GB' END END<file_sep>-------------------------------------------------------------------------------------------------------------- --MODIFY EXISTING COLUMN --The usp_DBACopyTableIndexesByColumn stored proc searches for an index on the modified column. If it exists, --it will drop that index to allow column changes. --The usp_DBACreateTableIndexes stored proc recreates the dropped index. -------------------------------------------------------------------------------------------------------------- /* ADO # 52232 -- Increase NumeroPermiso field to 50. V20.4.366__ALTER_txdMXDataStagePermits553_NumeroPermiso_Field_MA.sql */ IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'NumeroPermiso' --your column here AND Object_ID = OBJECT_ID('txdMXDataStagePermits553')) --Your Table Here BEGIN --Do not change 1st and 5th parameter. --4th parameter is the updated data type; 6th paramter is the updated column length if any EXEC usp_DBACopyTableIndexesByColumn '','txdMXDataStagePermits553','NumeroPermiso','varchar',1,50 ALTER TABLE txdMXDataStagePermits553 --Your Table Here ALTER COLUMN NumeroPermiso [varchar] (50) NOT NULL --your column here --Do not change 1st paramter. EXEC usp_DBACreateTableIndexes '','txdMXDataStagePermits553' --Your Table Here END <file_sep>-------------------------------------------------------------------------------------------------------------- -- ADO # 26691 -------------------------------------------------------------------------------------------------------------- IF EXISTS (select TOP 1 1 from sys.tables where Name = 'ttdStagingMXInternalTracking' AND Type = 'U') BEGIN IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name in('ExpTempReImpGUID') --your columns here AND Object_ID = OBJECT_ID('txdFixedAssetHistory')) --Your Table Here BEGIN -- Insert new trackingtype SELASSETI for Fixed Asset (Field RPO11) INSERT INTO ttdStagingMXInternalTracking select sfp.PartnerID, GETDATE() AS EffDate, TxnNumGUID as TrackingGUID, 'SELASSETI' as TrackingType , ISNULL(ih.InvoiceNum, OrderNumShip) as InvoiceNum, 'FIXEDASSET' as Category, sfp.ProductNum, 0 as TxnQty, RPO11, 'Y' as KeepDuringPrevProcess, 'N' as DeletedFlag, 'N' as KeepDuringRollback from ttdStagingFIFOProcessing sfp WITH (NOLOCK) LEFT JOIN txdMXInvoiceHeader ih WITH (NOLOCK) ON (ih.PartnerID = sfp.PartnerID AND ih.InvoiceNum = sfp.OrderNumReceipt and sfp.OrderNumReceipt <> '') where RPO11 <> '' AND RPO11 IN (SELECT DISTINCT ImportGUID from txdFixedAssetHistory WITH (NOLOCK) WHERE ImportGUID <> '') AND AssignmentFlag = 'Y' AND NOT EXISTS (SELECT 1 FROM ttdStagingMXInternalTracking it WHERE it.PartnerID = sfp.PartnerID AND TxnNumGUID = it.TrackingGUID AND it.TrackingType = 'SELASSETI') -- Insert new trackingtype SELASSETR for Fixed Asset (Field RPO13) INSERT INTO ttdStagingMXInternalTracking select sfp.PartnerID, GETDATE() AS EffDate, TxnNumGUID as TrackingGUID, 'SELASSETR' as TrackingType , ISNULL(ih.InvoiceNum, OrderNumShip) as InvoiceNum, 'FIXEDASSET' as Category, sfp.ProductNum, 0 as TxnQty, RPO13, 'Y' as KeepDuringPrevProcess, 'N' as DeletedFlag, 'N' as KeepDuringRollback from ttdStagingFIFOProcessing sfp WITH (NOLOCK) LEFT JOIN txdMXInvoiceHeader ih WITH (NOLOCK) ON (ih.PartnerID = sfp.PartnerID AND ih.InvoiceNum = sfp.OrderNumReceipt and sfp.OrderNumReceipt <> '') where RPO13 <> '' AND RPO13 IN (SELECT DISTINCT ExpTempReImpGUID from txdFixedAssetHistory WITH (NOLOCK) WHERE ExpTempReImpGUID <> '') AND AssignmentFlag = 'Y' AND NOT EXISTS (SELECT 1 FROM ttdStagingMXInternalTracking it WHERE it.PartnerID = sfp.PartnerID AND TxnNumGUID = it.TrackingGUID AND it.TrackingType = 'SELASSETR') END END <file_sep>using DbUp.Builder; using DbUp.Engine; using DbUp.Support.SqlServer; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DBUpgrade { public static class FlywayLikeExtensions { public const string VersionTableName = "ReleaseSqlChecksums"; public static UpgradeEngineBuilder HashedSqlDatabase(this SupportedDatabases supported, SqlConnectionManager connectionManager) { var builder = new UpgradeEngineBuilder(); builder.Configure(c => c.ConnectionManager = connectionManager); builder.Configure(c => c.ScriptExecutor = new SqlScriptExecutor(() => c.ConnectionManager, () => c.Log, null, () => c.VariablesEnabled, c.ScriptPreprocessors)); builder.Configure(c => c.Journal = new FlywayLikeJournal(() => c.ConnectionManager, () => c.Log, null, VersionTableName)); return builder; } /// <summary> /// Adds all scripts found as embedded resources in the given assembly. /// </summary> /// <param name="builder">The builder.</param> /// <param name="assembly">The assembly.</param> /// <param name="filter">The filter.</param> /// <param name="journal">The journal.</param> /// <returns> /// The same builder /// </returns> public static UpgradeEngineBuilder WithHashedScriptsInDirectory(this UpgradeEngineBuilder builder, String directory, IJournal journal) { return WithScripts(builder, new ReadOnlyScriptProvider(directory, journal)); } /// <summary> /// Adds a custom script provider to the upgrader. /// </summary> /// <param name="builder">The builder.</param> /// <param name="scriptProvider">The script provider.</param> /// <returns> /// The same builder /// </returns> public static UpgradeEngineBuilder WithScripts(this UpgradeEngineBuilder builder, IScriptProvider scriptProvider) { builder.Configure(c => c.ScriptProviders.Add(scriptProvider)); return builder; } } } <file_sep>insert into tmgsql select partnerid, getdate(),SQLGUID ,SQLDescription ,SQLCmd,GETDATE() ,SQLLongDescription, 'N', 'N' from tmfdefaults insert into tmgSQLUserList select partnerid, getdate() ,UserGUID ,SQLGUID ,PageName ,'N', 'N' from tmfdefaults <file_sep>IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'RequestStatus' --your column here AND Object_ID = OBJECT_ID('txdFTACertRequestHeader')) --Your Table Here BEGIN --Do not change 1st and 5th parameter. --4th parameter is the updated data type; 6th paramter is the updated column length if any EXEC usp_DBACopyTableIndexesByColumn '','txdFTACertRequestHeader','RequestStatus','varchar',1,50 ALTER TABLE txdFTACertRequestHeader --Your Table Here ALTER COLUMN RequestStatus [varchar] (50) NOT NULL --your column here --Do not change 1st parameter. EXEC usp_DBACreateTableIndexes '','txdFTACertRequestHeader' --Your Table Here END<file_sep>-------------------------------------------------------------------------------------------------------------- --FOR SECURITY DATA SCRIPTS...EXAMPLE... --Make sure records don't already exists or remove them --DO NOT FORGET TRANSLATIONs (tmgMessages, tmgPartnerCultureDefinitions) -------------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------- IF NOT EXISTS(SELECT TOP 1 1 FROM tmgForm where FormGUID = 'frdHMFDetailReport_aspx' and Description = 'frdHMFDetailReport_aspx' and SystemTypeID = 2) BEGIN INSERT INTO tmgForm SELECT 'frdHMFDetailReport_aspx', 'frdHMFDetailReport_aspx', 2, getdate(), 'N', 'N' END IF NOT EXISTS(SELECT TOP 1 1 FROM tmgGroupAccess where GroupGUID = '1002' and FormGUID = 'frdHMFDetailReport_aspx' and AccessType = 2) BEGIN INSERT INTO tmgGroupAccess SELECT '1002', 'frdHMFDetailReport_aspx', '2', getdate(), 'N', 'N' END<file_sep>-------------------------------------------------------------------------------------------------------------- --MODIFY EXISTING COLUMN --The usp_DBACopyTableIndexesByColumn stored proc searches for an index on the modified column. If it exists, --it will drop that index to allow column changes. --The usp_DBACreateTableIndexes stored proc recreates the dropped index. -------------------------------------------------------------------------------------------------------------- IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'Title' --your column here AND Object_ID = OBJECT_ID('tmdDecisionTreeHeaderHist')) --Your Table Here BEGIN --Do not change 1st and 5th parameter. --4th parameter is the updated data type; 6th paramter is the updated column length if any EXEC usp_DBACopyTableIndexesByColumn '','tmdDecisionTreeHeaderHist','Title','nvarchar',1,50 ALTER TABLE tmdDecisionTreeHeaderHist --Your Table Here ALTER COLUMN Title [nvarchar] (50) NOT NULL --your column here --Do not change 1st paramter. EXEC usp_DBACreateTableIndexes '','tmdDecisionTreeHeaderHist' --Your Table Here END IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'Description' --your column here AND Object_ID = OBJECT_ID('tmdDecisionTreeHeaderHist')) --Your Table Here BEGIN --Do not change 1st and 5th parameter. --4th parameter is the updated data type; 6th paramter is the updated column length if any EXEC usp_DBACopyTableIndexesByColumn '','tmdDecisionTreeHeaderHist','Description','nvarchar',1,250 ALTER TABLE tmdDecisionTreeHeaderHist --Your Table Here ALTER COLUMN Description [nvarchar] (250) NOT NULL --your column here --Do not change 1st paramter. EXEC usp_DBACreateTableIndexes '','tmdDecisionTreeHeaderHist' --Your Table Here END IF EXISTS (SELECT TOP 1 1 FROM sys.columns WHERE name = 'Notes' --your column here AND Object_ID = OBJECT_ID('tmdDecisionTreeHeaderHist')) --Your Table Here BEGIN --Do not change 1st and 5th parameter. --4th parameter is the updated data type; 6th paramter is the updated column length if any EXEC usp_DBACopyTableIndexesByColumn '','tmdDecisionTreeHeaderHist','Notes','nvarchar',1,250 ALTER TABLE tmdDecisionTreeHeaderHist --Your Table Here ALTER COLUMN Notes [nvarchar] (250) NOT NULL --your column here --Do not change 1st paramter. EXEC usp_DBACreateTableIndexes '','tmdDecisionTreeHeaderHist' --Your Table Here END <file_sep>using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DBUpgrade { public class DBConnections { public enum DBType { GTM, ISF } private DBType dbType; private Dictionary<string, string> mapping = new Dictionary<string, string>(); public DBConnections(DBType type, Dictionary<string, string> mapping) { dbType = type; this.mapping = mapping; } public string GetSecurityConnection() { string cn = null; switch (dbType) { case DBType.GTM: cn = BuildConnectionString(mapping["Security"]); break; case DBType.ISF: cn = IntegrationPoint.Core.Sql.Security.SqlConnectionString(); break; } return cn; } public string GetPartnerConnectionString(int partnerID) { string cn = null; switch (dbType) { case DBType.GTM: var secDB = GetSecurityConnection(); cn = IntegrationPoint.Sql.Utility.GetPartnerDataConnectionString("" + partnerID, "", secDB); break; case DBType.ISF: cn = IntegrationPoint.Core.Sql.Partner.SqlConnectionString(partnerID); break; } return cn; } public List<PartnerConnections> GetAllUniquePartnerConnectionStrings() { List<PartnerConnections> result = new List<PartnerConnections>(); switch (dbType) { case DBType.GTM: var secDB = GetSecurityConnection(); List<int> partners = new List<int>(); using (var sqlConnection = IntegrationPoint.Sql.Utility.GetSqlConnection(secDB)) { sqlConnection.Open(); using (var sqlCommand = sqlConnection.CreateCommand()) { sqlCommand.CommandText = "select partnerID from tmgPartnerDataConnection"; using (var sqlReader = sqlCommand.ExecuteReader()) { while (sqlReader.Read()) { partners.Add(sqlReader.GetInt32(0)); } } } } Dictionary<string, string> connections = new Dictionary<string, string>(); foreach (var p in partners) { //upgrade var connectionString = IntegrationPoint.Sql.Utility.GetPartnerDataConnectionString("" + p, "", secDB); if (connectionString != null && !connections.ContainsKey(connectionString.ToLower())) { connections.Add(connectionString.ToLower(), String.Empty); result.Add(new PartnerConnections() { PartnerID = p, ConnectionString = connectionString }); } } break; case DBType.ISF: var isfPartnerConnections = IntegrationPoint.Core.Sql.Security.PartnerConnectionStringsAsDictionary(); var isfPartners = IntegrationPoint.Core.Sql.Security.PartnerIdList(); Dictionary<string, string> isfConnections = new Dictionary<string, string>(); foreach (int p in isfPartners) { //upgrade var connectionString = ""; if (isfPartnerConnections.ContainsKey(p)) connectionString = isfPartnerConnections[p]; else connectionString = IntegrationPoint.Core.Sql.Partner.SqlConnectionString(p); if (!isfConnections.ContainsKey(connectionString.ToLower())) { isfConnections.Add(connectionString.ToLower(), String.Empty); result.Add(new PartnerConnections() { PartnerID = p, ConnectionString = connectionString }); } } break; } return result; } public static string BuildConnectionString(string mapping) { string name = mapping; string type = "userauth"; if (mapping.Contains(":")) { name = mapping.Split(':')[0]; type = mapping.Split(':')[1]; } string cn = IntegrationPoint.Sql.Utility.GetDBConnectionString(name, type); return cn; } public class PartnerConnections { public int PartnerID { get; set; } public string ConnectionString { get; set; } } } } <file_sep>IF EXISTS (SELECT TOP 1 1 FROM sys.tables WHERE Name = 'usrtxdCNStockGoodsType' AND Type = 'U') BEGIN IF ( SELECT COUNT(*) FROM dbo.syscolumns WHERE name IN ('Pre-authorizationSeqID','2ndCustomsUOM','2ndCustomsQty','1stCustomsConvertRatio','2ndCustomsConvertRatio') AND ID = OBJECT_ID('usrtxdCNStockGoodsType') ) = 5 BEGIN -- rename column EXEC sp_rename 'usrtxdCNStockGoodsType.Pre-authorizationSeqID', 'PreauthorizationSeqID', 'COLUMN'; EXEC sp_rename 'usrtxdCNStockGoodsType.2ndCustomsUOM', 'SecondCustomsUOM', 'COLUMN'; EXEC sp_rename 'usrtxdCNStockGoodsType.2ndCustomsQty', 'SecondCustomsQty', 'COLUMN'; EXEC sp_rename 'usrtxdCNStockGoodsType.1stCustomsConvertRatio', 'FirstCustomsConvertRatio', 'COLUMN'; EXEC sp_rename 'usrtxdCNStockGoodsType.2ndCustomsConvertRatio', 'SecondCustomsConvertRatio', 'COLUMN'; END END <file_sep>--Insert all necessary forms in the tmgForm IF NOT EXISTS(SELECT TOP 1 1 FROM tmgForm where FormGUID = 'fmgGlobalCodesMaintenance_aspx' and Description = 'fmgGlobalCodesMaintenance_aspx' and SystemTypeID = 2) BEGIN INSERT INTO tmgForm SELECT 'fmgGlobalCodesMaintenance_aspx', 'fmgGlobalCodesMaintenance_aspx', 2, getdate(), 'N', 'N' END IF NOT EXISTS(SELECT TOP 1 1 FROM tmgGroupAccess acc join tmgGroup grp ON grp.GroupGUID = acc.GroupGUID where acc.FormGUID = 'fmgGlobalCodesMaintenance_aspx' and grp.Description = 'Client Full Access Group' and acc.AccessType = 1) BEGIN INSERT INTO tmgGroupAccess (GroupGUID, FormGUID, AccessType, EffDate, DeletedFlag, KeepDuringRollback) SELECT TOP 1 GroupGUID, 'fmgGlobalCodesMaintenance_aspx', '1', GETDATE(), 'N', 'N' from tmgGroup WHERE Description = 'Client Full Access Group' END IF NOT EXISTS(SELECT TOP 1 1 FROM tmgGroupAccess acc join tmgGroup grp ON grp.GroupGUID = acc.GroupGUID where acc.FormGUID = 'fmgGlobalCodesMaintenance_aspx' and grp.Description = 'IP DTS Full Access' and acc.AccessType = 1) BEGIN INSERT INTO tmgGroupAccess (GroupGUID, FormGUID, AccessType, EffDate, DeletedFlag, KeepDuringRollback) SELECT TOP 1 GroupGUID, 'fmgGlobalCodesMaintenance_aspx', '1', GETDATE(), 'N', 'N' from tmgGroup WHERE Description = 'IP DTS Full Access' END IF NOT EXISTS(SELECT TOP 1 1 FROM tmgGroupAccess acc join tmgGroup grp ON grp.GroupGUID = acc.GroupGUID where acc.FormGUID = 'fmgGlobalCodesMaintenance_aspx' and grp.Description = 'IP Full Access Group' and acc.AccessType = 1) BEGIN INSERT INTO tmgGroupAccess (GroupGUID, FormGUID, AccessType, EffDate, DeletedFlag, KeepDuringRollback) SELECT TOP 1 GroupGUID, 'fmgGlobalCodesMaintenance_aspx', '1', GETDATE(), 'N', 'N' from tmgGroup WHERE Description = 'IP Full Access Group' END IF NOT EXISTS(SELECT TOP 1 1 FROM tmgGroupAccess acc join tmgGroup grp ON grp.GroupGUID = acc.GroupGUID where acc.FormGUID = 'fmgGlobalCodesMaintenance_aspx' and grp.Description = 'Standard Client ABI Full Access' and acc.AccessType = 1) BEGIN INSERT INTO tmgGroupAccess (GroupGUID, FormGUID, AccessType, EffDate, DeletedFlag, KeepDuringRollback) SELECT TOP 1 GroupGUID, 'fmgGlobalCodesMaintenance_aspx', '1', GETDATE(), 'N', 'N' from tmgGroup WHERE Description = 'Standard Client ABI Full Access' END IF NOT EXISTS(SELECT TOP 1 1 FROM tmgGroupAccess acc join tmgGroup grp ON grp.GroupGUID = acc.GroupGUID where acc.FormGUID = 'fmgGlobalCodesMaintenance_aspx' and grp.Description = 'Standard Client Content Full Access' and acc.AccessType = 1) BEGIN INSERT INTO tmgGroupAccess (GroupGUID, FormGUID, AccessType, EffDate, DeletedFlag, KeepDuringRollback) SELECT TOP 1 GroupGUID, 'fmgGlobalCodesMaintenance_aspx', '1', GETDATE(), 'N', 'N' from tmgGroup WHERE Description = 'Standard Client Content Full Access' END IF NOT EXISTS(SELECT TOP 1 1 FROM tmgGroupAccess acc join tmgGroup grp ON grp.GroupGUID = acc.GroupGUID where acc.FormGUID = 'fmgGlobalCodesMaintenance_aspx' and grp.Description = 'Standard Client DPS Full Access' and acc.AccessType = 1) BEGIN INSERT INTO tmgGroupAccess (GroupGUID, FormGUID, AccessType, EffDate, DeletedFlag, KeepDuringRollback) SELECT TOP 1 GroupGUID, 'fmgGlobalCodesMaintenance_aspx', '1', GETDATE(), 'N', 'N' from tmgGroup WHERE Description = 'Standard Client DPS Full Access' END IF NOT EXISTS(SELECT TOP 1 1 FROM tmgGroupAccess acc join tmgGroup grp ON grp.GroupGUID = acc.GroupGUID where acc.FormGUID = 'fmgGlobalCodesMaintenance_aspx' and grp.Description = 'Standard Client EV Full Access' and acc.AccessType = 1) BEGIN INSERT INTO tmgGroupAccess (GroupGUID, FormGUID, AccessType, EffDate, DeletedFlag, KeepDuringRollback) SELECT TOP 1 GroupGUID, 'fmgGlobalCodesMaintenance_aspx', '1', GETDATE(), 'N', 'N' from tmgGroup WHERE Description = 'Standard Client EV Full Access' END IF NOT EXISTS(SELECT TOP 1 1 FROM tmgGroupAccess acc join tmgGroup grp ON grp.GroupGUID = acc.GroupGUID where acc.FormGUID = 'fmgGlobalCodesMaintenance_aspx' and grp.Description = 'Standard Client Export Full Access' and acc.AccessType = 1) BEGIN INSERT INTO tmgGroupAccess (GroupGUID, FormGUID, AccessType, EffDate, DeletedFlag, KeepDuringRollback) SELECT TOP 1 GroupGUID, 'fmgGlobalCodesMaintenance_aspx', '1', GETDATE(), 'N', 'N' from tmgGroup WHERE Description = 'Standard Client Export Full Access' END IF NOT EXISTS(SELECT TOP 1 1 FROM tmgGroupAccess acc join tmgGroup grp ON grp.GroupGUID = acc.GroupGUID where acc.FormGUID = 'fmgGlobalCodesMaintenance_aspx' and grp.Description = 'Standard Client FTA Full Access' and acc.AccessType = 1) BEGIN INSERT INTO tmgGroupAccess (GroupGUID, FormGUID, AccessType, EffDate, DeletedFlag, KeepDuringRollback) SELECT TOP 1 GroupGUID, 'fmgGlobalCodesMaintenance_aspx', '1', GETDATE(), 'N', 'N' from tmgGroup WHERE Description = 'Standard Client FTA Full Access' END IF NOT EXISTS(SELECT TOP 1 1 FROM tmgGroupAccess acc join tmgGroup grp ON grp.GroupGUID = acc.GroupGUID where acc.FormGUID = 'fmgGlobalCodesMaintenance_aspx' and grp.Description = 'Standard Client GC Full Access' and acc.AccessType = 1) BEGIN INSERT INTO tmgGroupAccess (GroupGUID, FormGUID, AccessType, EffDate, DeletedFlag, KeepDuringRollback) SELECT TOP 1 GroupGUID, 'fmgGlobalCodesMaintenance_aspx', '1', GETDATE(), 'N', 'N' from tmgGroup WHERE Description = 'Standard Client GC Full Access' END IF NOT EXISTS(SELECT TOP 1 1 FROM tmgGroupAccess acc join tmgGroup grp ON grp.GroupGUID = acc.GroupGUID where acc.FormGUID = 'fmgGlobalCodesMaintenance_aspx' and grp.Description = 'Standard Client QPWP Full Access' and acc.AccessType = 1) BEGIN INSERT INTO tmgGroupAccess (GroupGUID, FormGUID, AccessType, EffDate, DeletedFlag, KeepDuringRollback) SELECT TOP 1 GroupGUID, 'fmgGlobalCodesMaintenance_aspx', '1', GETDATE(), 'N', 'N' from tmgGroup WHERE Description = 'Standard Client QPWP Full Access' END IF NOT EXISTS(SELECT TOP 1 1 FROM tmgGroupAccess acc join tmgGroup grp ON grp.GroupGUID = acc.GroupGUID where acc.FormGUID = 'fmgGlobalCodesMaintenance_aspx' and grp.Description = 'Standard Client Drawback Full Access' and acc.AccessType = 1) BEGIN INSERT INTO tmgGroupAccess (GroupGUID, FormGUID, AccessType, EffDate, DeletedFlag, KeepDuringRollback) SELECT TOP 1 GroupGUID, 'fmgGlobalCodesMaintenance_aspx', '1', GETDATE(), 'N', 'N' from tmgGroup WHERE Description = 'Standard Client Drawback Full Access' END IF NOT EXISTS(SELECT TOP 1 1 FROM tmgGroupAccess acc join tmgGroup grp ON grp.GroupGUID = acc.GroupGUID where acc.FormGUID = 'fmgGlobalCodesMaintenance_aspx' and grp.Description = 'Standard Client IMMEX Full Access' and acc.AccessType = 1) BEGIN INSERT INTO tmgGroupAccess (GroupGUID, FormGUID, AccessType, EffDate, DeletedFlag, KeepDuringRollback) SELECT TOP 1 GroupGUID, 'fmgGlobalCodesMaintenance_aspx', '1', GETDATE(), 'N', 'N' from tmgGroup WHERE Description = 'Standard Client IMMEX Full Access' END<file_sep>USE DTS IF EXISTS (SELECT * FROM dbo.syscolumns WHERE name = 'CriteriaChangeDate' --Any 1 of your NEW columns here AND ID = OBJECT_ID('tmeRegEntityMap')) --Your Table Here BEGIN PRINT 'Column Already Exists... Skipping' END ELSE BEGIN IF EXISTS (SELECT * FROM dbo.syscolumns WHERE id = OBJECT_ID('tmeRegEntityMap')) --Your Table Here BEGIN ALTER TABLE dbo.tmeRegEntityMap --Your Table Here ADD CriteriaChangeDate DATETIME NOT NULL DEFAULT '1/1/1900' EXEC(' UPDATE dbo.tmeRegEntityMap SET CriteriaChangeDate = ModifyDate ') END END<file_sep> IF EXISTS(select * from tmgPartnerCultureDefinitions with(nolock) where PartnerId = 3000 and FieldName ='fmgMaintenance_aspx') BEGIN Delete tmgPartnerCultureDefinitions where PartnerId = 3000 and FieldName ='fmgMaintenance_aspx' END<file_sep> INSERT INTO tlgWorkFlowSchedule SELECT PartnerID AS PartnerID, GETDATE() AS EffDate, NEWID() AS WorkFlowGuid, 'Import CN Single Window System Response' as Description, 'N' AS Recurring, '1:00' AS Time, GETDATE() AS Date, 'ImportCNSingleWindowSystemResponse' AS Workflow, getdate() AS LastUpdated, '1' AS Interval, 'N' AS DeletedFlag, 'N' AS KeepDuringRollback FROM tmfDefaults d where not exists (select * from tlgWorkFlowSchedule where PartnerID = d.PartnerID and Workflow = 'ImportCNSingleWindowSystemResponse') INSERT INTO tlgApplicationLaunchTree SELECT PartnerID AS PartnerId, GETDATE() AS EffDate, 'ImportCNSingleWindowSystemResponse' AS WorkFlow, 1 as SequenceNo, 'dxdExecuteSQLBatch.dll' AS ApplicationToLaunch, 'CLEAR PRW-ImportCNSingleWindowSystemResponse' AS Command, 'N' AS DeletedFlag, 'N' AS KeepDuringRollback FROM tmfDefaults d where not exists (select * from tlgApplicationLaunchTree where PartnerID = d.PartnerID and Workflow = 'ImportCNSingleWindowSystemResponse' and Command = 'CLEAR PRW-ImportCNSingleWindowSystemResponse') INSERT INTO tlgApplicationLaunchTree SELECT PartnerID AS PartnerId, GETDATE() AS EffDate, 'ImportCNSingleWindowSystemResponse' AS WorkFlow, 2 as SequenceNo, 'dxdXSLTProcessor.dll' AS ApplicationToLaunch, 'ImportCNSingleWindowSystemResponse-TransformXMLResponse' AS Command, 'N' AS DeletedFlag, 'N' AS KeepDuringRollback FROM tmfDefaults d where not exists (select * from tlgApplicationLaunchTree where PartnerID = d.PartnerID and Workflow = 'ImportCNSingleWindowSystemResponse' and Command = 'ImportCNSingleWindowSystemResponse-TransformXMLResponse') INSERT INTO tlgApplicationLaunchTree SELECT PartnerID AS PartnerId, GETDATE() AS EffDate, 'ImportCNSingleWindowSystemResponse' AS WorkFlow, 3 as SequenceNo, 'dxgGenericFileImportWorkflow.dll' AS ApplicationToLaunch, 'ImportCNSingleWindowSystemResponse-ImportTransformedResponse' AS Command, 'N' AS DeletedFlag, 'N' AS KeepDuringRollback FROM tmfDefaults d where not exists (select * from tlgApplicationLaunchTree where PartnerID = d.PartnerID and Workflow = 'ImportCNSingleWindowSystemResponse' and Command = 'ImportCNSingleWindowSystemResponse-ImportTransformedResponse') INSERT INTO tlgApplicationLaunchTree SELECT PartnerID AS PartnerId, GETDATE() AS EffDate, 'ImportCNSingleWindowSystemResponse' AS WorkFlow, 4 as SequenceNo, 'dxgWorkflowNotification.dll' AS ApplicationToLaunch, 'ImportCNSingleWindowSystemResponse NOTIFICATION' AS Command, 'N' AS DeletedFlag, 'N' AS KeepDuringRollback FROM tmfDefaults d where not exists (select * from tlgApplicationLaunchTree where PartnerID = d.PartnerID and Workflow = 'ImportCNSingleWindowSystemResponse' and Command = 'ImportCNSingleWindowSystemResponse NOTIFICATION') <file_sep>IF EXISTS (select TOP 1 1 from sys.tables where Name = 'tmdspicountry' --Your Table Here AND Type = 'U') BEGIN update tmdspicountry Set endeffdate = '12/31/2019' where countryoforigin in ('CM', 'NE', 'CF', 'GM') and countryofexport in ('CM', 'NE', 'CF', 'GM') and SPI = 'D' and endeffdate = '12/31/9999' END
f21595f2c472f52988ca21d3fb4380702c7b953b
[ "C#", "SQL", "Markdown" ]
104
SQL
satishrayapa/azurepipeline
9567a33d86e7355fe6a84825b60dab713ac59944
9c6bf56a15302c36c5f722e4bbfa21bb4a3f5d97
refs/heads/master
<repo_name>Glenn409/starwars_rpg_game<file_sep>/assets/javascript/app.js //created toosn with random stats; var obi = createChar('obi-wan','<NAME>',120,randomAP(),randomCP(),'assets/images/obi2.jpg'); var luke = createChar('skywalker','<NAME>',100,randomAP(),randomCP(),'assets/images/Skywalker-1.jpg'); var sidious = createChar('darth_sidious','D<NAME>',150,randomAP(),randomCP(),'assets/images/sidious.jpg'); var maul = createChar('darth_maul', '<NAME>',180, randomAP(), randomCP(),'assets/images/maul.jpg'); //create arrays for controlling the flow of the game var your_char = []; var char_array = [obi,luke,sidious,maul]; var fighting_char = []; //prevents user from clicking to have more than one active enemy; var continue_status = true; // function create a char function createChar(title,display_name,hp,ap,cap,image){ obj = { name: title, display: display_name, health_points: hp, attack_power: ap, counter_attack_power: cap, img: image } return obj; }; //creates a random attack power for unit from; function randomAP(){ return Math.floor(Math.random()*8) + 4; } //creates random Counter Power for unit; function randomCP(){ return Math.floor(Math.random()*21) + 3; } //function update char_selection function update_char(){ var char = your_char[0]; $('.start_charBox').remove(); $('.char_selection').append( `<div class="start_charBox main-char" id="${char.name}"> <div>${char.display}</div> <img src=${char.img}> <div>Current Health Points: ${char.health_points}</div> <div>Current Attack Power: ${char.attack_power}</div> </div> ` ) } //removes enemy from waiting list to the fight function move_enemy_to_fight(enemy){ if(continue_status === false){ } else if (continue_status === true){ for(i=0;i < char_array.length;i++){ if(char_array[i].name === enemy){ fighting_char.push(char_array[i]); char_array.splice(i,1); } } continue_status = false; } update_fight_row(); $('.fight_stats').text(''); } //update fight_row function update_fight_row(){ $('.fight_row').text(''); $('.fight_row').append( `<div> <button class='button'>Attack</button> <div>${fighting_char[0].display}</div> <img class='fightIMG' src=${fighting_char[0].img}> <p>HP: ${fighting_char[0].health_points}</p> </div>` ) } //creates enemies and updates choices function update_enemies(){ $('.enemies_selection').text(''); for(i=0;i<char_array.length;i++){ console.log(char_array[i]); $('.enemies_selection').append( `<div class="enemiesBox" id="${char_array[i].name}"> <h1>${char_array[i].display}</h1> <img class='enemieIMG' src=${char_array[i].img}> <p>HP: ${char_array[i].health_points}</p> </div>` ) } } //simulates the fight function fight(){ fighting_char[0].health_points -= your_char[0].attack_power; if(fighting_char[0].health_points > 0){ $('.fight_stats').text(''); $('.fight_stats').append( `<div>You attacked for ${your_char[0].attack_power} this round!</div> <div>${fighting_char[0].display} counter attacked you for ${fighting_char[0].counter_attack_power}!` ) your_char[0].health_points -= fighting_char[0].counter_attack_power; your_char[0].attack_power += 8; if(your_char[0].health_points <= 0){ alert('You have Lost, Game Restarting!'); endGame(); } else { update_fight_row(); update_char(); } } else if (fighting_char[0].health_points <= 0){ $('.fight_stats').text(''); $('.fight_stats').append( `<div>You have defeated ${fighting_char[0].display} this round!</div> <div>Pick a new Target!</div>!` ) update_fight_row(); your_char[0].attack_power += 8; continue_status=true; fighting_char.pop(); update_char(); if(char_array.length === 0){ alert('You have Won the game! Game Restarting!') endGame(); } } } //simulates end game and restarts it for user function endGame(){ obi = createChar('obi-wan','Obi-Wan Kenobi',120,randomAP(),randomCP(),'assets/images/obi2.jpg'); luke = createChar('skywalker','Luke Skywalker',100,randomAP(),randomCP(),'assets/images/Skywalker-1.jpg'); sidious = createChar('darth_sidious','Darth Sidious',150,randomAP(),randomCP(),'assets/images/sidious.jpg'); maul = createChar('darth_maul', 'D<NAME>',180, randomAP(), randomCP(),'assets/images/maul.jpg'); your_char = []; char_array = [obi,luke,sidious,maul]; fighting_char = []; continue_status = true; $('.char_selection').text(''); $('.enemies_selection').text(''); $('.fight_row').text(''); $('.fight_stats').text(''); $('.char_selection').append( `<div class="start_charBox" id='obi-wan'> <h1>Obi-Wan Kenobi</h1> <img src=${obi.img}> <p class='hp'>120</p> </div> <div class="start_charBox" id='skywalker'> <h1>Luke skywalker</h1> <img src=${luke.img}> <p class='hp'>100</p> </div> <div class="start_charBox" id='darth_sidious'> <h1>Dark Sidious</h1> <img src=${sidious.img}> <p class='hp'>150</p> </div> <div class="start_charBox" id='darth_maul'> <h1>Darth Maul</h1> <img src=${maul.img}> <p class='hp'>180</p> </div>` ) $('#pick').text('Pick a unit!') }; $(document).on('click','.start_charBox', function(){ //removes onclick function after clickin main character; //sets main char $('#pick').text(''); if(your_char.length === 1){ } else { if(this.id === 'obi-wan'){ char_array.splice(0,1); your_char.push(obi); } else if (this.id === 'skywalker'){ char_array.splice(1,1); your_char.push(luke) } else if (this.id === 'darth_sidious'){ char_array.splice(2,1); your_char.push(sidious); }else if( this.id === 'darth_maul'){ char_array.splice(3,1); your_char.push(maul); } } update_char(); update_enemies(); }); $(document).on('click', '.enemiesBox', function(){ move_enemy_to_fight(this.id); update_enemies(); }) $(document).on('click','.button',function(){ fight(); })
c58f6dbf8f952b0812d1314a1ed1641a1f12ceb0
[ "JavaScript" ]
1
JavaScript
Glenn409/starwars_rpg_game
c4ed688f16963f66adf6051e4301f401baae6e0a
e5ee626553b4b918dde42025cc1086cf837926d7
refs/heads/master
<file_sep># Language Detection The following different strategies are used to detect the language. - by Accept-Language-Header (e.g. 'de-CH,en;q=0.8,en-US;q=0.5,fr;q=0.3') - by Cookie (e.g Cookie 'lang', value 'en') - by UriPath (e.g. /shop/en/article/3453452) - by QueryParam (e.g. index.php?lang=en) These methods can be chained independently after each other. The last method that detects an available language wins. If no language can be detected, the default language will be returned. ### Installation Use composer: ``` composer require unicate/language-detection ``` ### Usage ```php <?php require_once "vendor/autoload.php"; // Available Languages: First entry is assumed to be the default language. $availableLang = ['en', 'de', 'fr']; // All methods chained. The last method that detects a language wins. $langDetection = new \Unicate\LanguageDetection\LanguageDetection($availableLang); $lang = $langDetection->byHeader()->byCookie()->byUri()->byParam()->getLang(); // Only by Param ?lang=en $langDetection = new \Unicate\LanguageDetection\LanguageDetection($availableLang); $lang = $langDetection->byParam()->getLang(); // Only by Uri /shop/en/article/3453452 $langDetection = new \Unicate\LanguageDetection\LanguageDetection($availableLang); $lang = $langDetection->byUri()->getLang(); ```<file_sep><?php /** * @author https://unicate.ch * @copyright Copyright (c) 2020 * @license Released under the MIT license */ declare(strict_types=1); namespace Unicate\LanguageDetection; use Laminas\Diactoros\ServerRequestFactory; class LanguageDetection { private $lang; private $availableLang; private $request; public function __construct(array $availableLang) { if (empty($availableLang)) { throw new \RuntimeException('Array must contain at least one Language-Code.'); } $this->availableLang = $availableLang; // The first entry in $availableLang is assumed to be the default language. $this->lang = $availableLang[0]; $this->request = ServerRequestFactory::fromGlobals( $_SERVER, $_GET, $_COOKIE ); } public function byCookie(): LanguageDetection { $cookie = $this->request->getCookieParams(); if (isset($cookie["lang"])) { $lang = $cookie["lang"]; if (in_array($lang, $this->availableLang)) { $this->lang = $lang; } } return $this; } public function byParam(): LanguageDetection { $queryParam = $this->request->getQueryParams(); if (array_key_exists('lang', $queryParam)) { $lang = $queryParam['lang']; if (in_array($lang, $this->availableLang)) { $this->lang = $lang; } } return $this; } public function byUri(): LanguageDetection { $uriPath = $this->request->getUri()->getPath(); $uriArray = explode('/', $uriPath); $langArray = array_intersect($uriArray, $this->availableLang); if (!empty($langArray)) { $lang = array_values($langArray)[0]; if (in_array($lang, $this->availableLang)) { $this->lang = $lang; } } return $this; } public function byHeader(): LanguageDetection { $header = $this->request->getHeader('accept-language'); if (!empty($header)) { $acceptFromHttp = \Locale::acceptFromHttp($header[0]); $lang = explode('_', $acceptFromHttp)[0]; if (in_array($lang, $this->availableLang)) { $this->lang = $lang; } } return $this; } public function getLang(): string { return $this->lang; } } <file_sep><?php use Unicate\LanguageDetection\LanguageDetection; use PHPUnit\Framework\TestCase; class LanguageDetectionTest extends TestCase { private $langDetection; public function mockSetup1() { // Mock Server Data $_SERVER['REQUEST_URI'] = '/shop/es/en/article/34234'; $_SERVER['HTTP_ACCEPT_LANGUAGE'] = 'de-CH,en;q=0.8,en-US;q=0.5,fr;q=0.3'; $_GET['lang'] = 'fr'; $_COOKIE['lang'] = 'it'; // Set Defaults & create object $defaultLang = 'en'; $availableLang = ['en', 'de', 'fr', 'it', 'es']; $this->langDetection = new LanguageDetection($availableLang); } public function mockSetup2() { // Mock Server Data $_SERVER['REQUEST_URI'] = '/cn/us/pl/'; $_SERVER['HTTP_ACCEPT_LANGUAGE'] = 'xx,en;q=0.8,en-US;q=0.5,fr;q=0.3'; $_GET['lang'] = 'xx'; $_COOKIE['lang'] = 'cn'; // Set Defaults & create object $defaultLang = 'en'; $availableLang = ['en', 'de', 'fr', 'it', 'es']; $this->langDetection = new LanguageDetection($availableLang); } public function setUp() { $this->mockSetup1(); } public function tearDown() { parent::tearDown(); // TODO: Change the autogenerated stub } public function testGetLang() { // Gets default Language $this->assertEquals('en', $this->langDetection->getLang()); } public function testByHeader() { $lang = $this->langDetection->byHeader()->getLang(); $this->assertEquals('de', $lang); } public function testByParam() { $lang = $this->langDetection->byParam()->getLang(); $this->assertEquals('fr', $lang); } public function testByCookie() { $lang = $this->langDetection->byCookie()->getLang(); $this->assertEquals('it', $lang); } public function testByUri() { $lang = $this->langDetection->byUri()->getLang(); $this->assertEquals('es', $lang); } public function testChain_1() { $lang = $this->langDetection->byCookie()->byHeader()->byParam()->byUri()->getLang(); $this->assertEquals('es', $lang); } public function testChain_2() { $lang = $this->langDetection->byHeader()->byParam()->byUri()->byCookie()->getLang(); $this->assertEquals('it', $lang); } public function testChain_3() { $lang = $this->langDetection->byHeader()->byUri()->byCookie()->byParam()->getLang(); $this->assertEquals('fr', $lang); } public function testChain_4() { $lang = $this->langDetection->byUri()->byCookie()->byParam()->byHeader()->getLang(); $this->assertEquals('de', $lang); } public function testDefault() { $this->mockSetup2(); $lang1 = $this->langDetection->byUri()->getLang(); $lang2 = $this->langDetection->byParam()->getLang(); $lang3 = $this->langDetection->byCookie()->getLang(); $lang4 = $this->langDetection->byHeader()->getLang(); $this->assertEquals('en', $lang1); $this->assertEquals('en', $lang2); $this->assertEquals('en', $lang3); $this->assertEquals('en', $lang4); } }
be2dd4e79a867022087814a2de2296da7e01402f
[ "Markdown", "PHP" ]
3
Markdown
unicate/language-detection
c85e48914e6d649fa37f8cdb7210c034512c8cc2
aa804b46965777f7a78252314c61256a8a7b498b
refs/heads/master
<file_sep>package com.example.library_hios.hioscommon; import com.example.library_hios.hoisjump.HiosAlias; public class HiosRegister { private static final String PKG_SFNATION = "com.example.p022_hois"; public static void load() { //for example HiosAlias.register("jump.twomainactivity", PKG_SFNATION, ".activity.DemoTwoMainActivity"); HiosAlias.register("jump.webviewmainactivity", PKG_SFNATION, ".activity.DemoWebViewMainActivity"); } } <file_sep>include ':app', ':library_hios'
d03fd052cbeb5ffad59dad382d7892e958921a5e
[ "Java", "Gradle" ]
2
Java
geeklx/library_hios
a3148bba32d66908603abb024d7bba5064d177f4
9a4897d96527030bd29d654a8e479d906f7ac336
refs/heads/master
<file_sep>class TacksController < ApplicationController def create @board = Board.find(params[:board_id]) # TODO Check ownership of board. @tack = @board.tacks.build(tack_params) if @tack.save redirect_to @board else # TODO display errors redirect_to @board end end def show @tack = Tack.find(params[:id]) respond_to do |format| format.json { render :json => @tack.to_json } end end private def tack_params params.require(:board_id) params.require(:tack).permit(:name, :description, :top, :left) end end <file_sep>class CreateBoards < ActiveRecord::Migration def change create_table :boards do |t| t.string :name, limit: 256 t.text :description t.integer :width t.integer :height t.references :user, index: true t.timestamps end end end <file_sep># Read about factories at https://github.com/thoughtbot/factory_girl FactoryGirl.define do factory :tack do name "<NAME>" description "Example description." top 1 left 1 board end end <file_sep># Read about factories at https://github.com/thoughtbot/factory_girl FactoryGirl.define do factory :photo do title "Example photo" description "Example description." tack sequence(:number) image { File.new("#{Rails.root}/spec/fixtures/images/photo.jpg") } end end <file_sep>#Snaptack (WIP) A web app that allows users to post photo galleries on top of images (and eventually maps). This was originally written as a quick proof-of-concept weekend hack. So the code coverage is patchy here and there, the UI is slapped together, and lots of it isn't implemented yet. But it posts photo galleries on top of images! Live demo fork lives at [garrettf.com/snaptack](http://garrettf.com/snaptack). ## To do list * Speed up tests. * Test JS. * Establish complete API * Make tack/photo creation fully async. * Switch to a full screen photo gallery * Allow login through Facebook. * Proper Facebook comments. * Clean up UI and make it less bootstrappy * Integrate Google Maps <file_sep>class PhotosController < ApplicationController def index respond_to do |format| format.json do @tack = Tack.find(params[:tack_id]) output = [] @tack.photos.order("created_at desc").each do |photo| output << {:id => photo.id, :title => photo.title, :description => photo.description, :url => view_context.image_path(photo.image.url(:medium)) } end render :json => output.to_json end end end def create @tack = Tack.find(params[:tack_id]) # TODO Check ownership of board. @photo = @tack.photos.build(photo_params) if @photo.save redirect_to @tack.board else # TODO proper redirect redirect_to @tack.board end end def show #@tack = Tack.find(params[:id]) #respond_to do |format| #format.json { render :json => @tack.to_json } #end end private def photo_params params.require(:tack_id) params.require(:photo).permit(:title, :description, :number, :image) end end <file_sep>require 'spec_helper' describe Photo do before do @photo = FactoryGirl.build(:photo) end subject { @photo } it { should respond_to(:title) } it { should respond_to(:description) } it { should respond_to(:number) } it { should be_valid } describe 'when tack not present' do before { @photo.tack = nil } it { should_not be_valid } end describe 'when title too long' do before { @photo.title = 'a' * 256 } it { should_not be_valid } end context 'image' do describe 'when not present' do before { @photo.image = nil } it { should_not be_valid } end describe 'when not an image file' do before { @photo.image = File.new("#{Rails.root}/spec/fixtures/images/board.txt") } it { should_not be_valid } end end end <file_sep># Read about factories at https://github.com/thoughtbot/factory_girl FactoryGirl.define do factory :board do name 'Example Board' description 'Example description.' image { File.new("#{Rails.root}/spec/fixtures/images/board.jpg") } user nil end end <file_sep>require 'spec_helper' describe 'Board requests' do subject { page } describe 'board creation' do before { visit 'boards/new' } describe 'with no attributes' do it 'should not create a board' do expect { click_button 'Create' }.not_to change(Board, :count) end describe 'error messages' do before { click_button 'Create' } it { should have_content('error') } end end describe 'with valid attributes' do before do fill_in 'Name', with: '<NAME>' fill_in 'Description', with: 'Example description' attach_file 'Image', "#{Rails.root}/spec/fixtures/images/board.jpg" end it 'should create a board' do expect { click_button "Create" }.to change(Board, :count).by(1) end end end describe 'tack creation' do before do @board = FactoryGirl.create(:board) visit board_path(@board) end describe 'with no attributes' do it 'should not create a tack' do expect { click_button 'Add tack' }.not_to change(Tack, :count) end pending 'error messages' end describe 'with valid attributes' do before do fill_in 'tack_name', with: 'Example Tack' fill_in 'tack_description', with: 'Example description' fill_in 'tack_top', with: 5 fill_in 'tack_left', with: 5 end it 'should create a tack' do expect { click_button 'Add tack' }.to change(Tack, :count).by(1) end end end end <file_sep>require 'spec_helper' describe User do pending end <file_sep># == Schema Information # # Table name: photos # # id :integer not null, primary key # tack_id :integer # title :string(256) # description :text # number :integer # created_at :datetime # updated_at :datetime # image_file_name :string(255) # image_content_type :string(255) # image_file_size :integer # image_updated_at :datetime # class Photo < ActiveRecord::Base has_attached_file :image, styles: { medium: "200x200>" }, path: ":rails_root/public/assets/photos/:id/:style/:basename.:extension", url: "/assets/photos/:id/:style/:basename.:extension", default_url: "/images/:style/missing.png" belongs_to :tack validates :title, length: { maximum: 255 } validates :tack, presence: true, associated: true validates_attachment :image, presence: true, content_type: { content_type: /\Aimage/ }, file_name: { matches: [/png\Z/, /jpe?g\Z/] }, size: { in: 0..15.megabytes } end <file_sep># == Schema Information # # Table name: tacks # # id :integer not null, primary key # name :string(256) # description :text # top :integer # left :integer # board_id :integer # created_at :datetime # updated_at :datetime # class Tack < ActiveRecord::Base #attr_accessible :name, :description, :top, :left has_many :photos, dependent: :destroy belongs_to :board validates :board, presence: true, associated: true validates :top, presence: true, numericality: { greater_than_or_equal_to: 0, less_than: ->(tack) do (!tack.board.blank? && tack.board.height?) ? tack.board.height : 0 end } validates :left, presence: true, numericality: { greater_than_or_equal_to: 0, less_than: ->(tack) do (!tack.board.blank? && tack.board.width?) ? tack.board.width : 0 end } end <file_sep>require 'spec_helper' describe Tack do before do @tack = FactoryGirl.build(:tack) end subject { @tack } it { should respond_to(:name) } it { should respond_to(:description) } it { should respond_to(:top) } it { should respond_to(:left) } it { should be_valid } describe 'when board not present' do before { @tack.board = nil } it { should_not be_valid } end context 'top' do describe 'when not present' do before { @tack.top = nil } it { should_not be_valid } end describe 'when not within the height of its board' do before { @tack.top = @tack.board.height } it { should_not be_valid } end end context 'left' do describe 'when not present' do before { @tack.left = nil } it { should_not be_valid } end describe 'when not within the width of its board' do before { @tack.left = @tack.board.width } it { should_not be_valid } end end describe 'photo associations' do before { @tack.save } let!(:older_photo) do FactoryGirl.create(:photo, tack: @tack, created_at: 2.days.ago) end let!(:newer_photo) do FactoryGirl.create(:photo, tack: @tack, created_at: 1.day.ago) end it 'should have the right photos in the right order' do expect(@tack.photos.to_a).to eq [older_photo, newer_photo] end it 'should destroy associated photos' do photos = @tack.photos.to_a @tack.destroy expect(photos).not_to be_empty photos.each do |photo| expect(Photo.where(id: photo.id)).to be_empty end end end end <file_sep># == Schema Information # # Table name: boards # # id :integer not null, primary key # name :string(256) # description :text # width :integer # height :integer # user_id :integer # created_at :datetime # updated_at :datetime # image_file_name :string(255) # image_content_type :string(255) # image_file_size :integer # image_updated_at :datetime # class Board < ActiveRecord::Base # attr_accessible :name, :description, :image, :width, :height has_many :tacks, :dependent => :destroy has_attached_file :image, styles: { medium: "100x100>", thumb: "100x100>" }, path: ":rails_root/public/assets/boards/:id/:style/:basename.:extension", url: "/assets/boards/:id/:style/:basename.:extension", default_url: "/images/:style/missing.png" belongs_to :user before_validation :extract_dimensions #validates_presence_of :user #validates_associated :user validates :name, presence: true, length: { maximum: 256 } validates :width, presence: true, numericality: { greater_than: 0 } validates :height, presence: true, numericality: { greater_than: 0 } validates_attachment :image, presence: true, content_type: { content_type: /\Aimage/ }, file_name: { matches: [/png\Z/, /jpe?g\Z/] }, size: { in: 0..15.megabytes } def image? image_content_type =~ %r{^(image|(x-)?application)/(bmp|gif|jpeg|jpg|png|x-png)$} end private # Retrieves dimensions for image assets # @note Do this after resize operations to account for auto-orientation. def extract_dimensions return unless image? tempfile = image.queued_for_write[:original] unless tempfile.nil? geometry = Paperclip::Geometry.from_file(tempfile) self.width = geometry.width.to_i self.height = geometry.height.to_i end end end <file_sep>require 'spec_helper' describe Board do before do @board = FactoryGirl.build(:board) end subject { @board } it { should respond_to(:name) } it { should respond_to(:description) } it { should respond_to(:width) } it { should respond_to(:height) } it { should respond_to(:image) } it { should be_valid } describe 'when name is not present' do before { @board.name = ' ' } it { should_not be_valid } end context 'image' do describe 'when not present' do before { @board.image = nil } it { should_not be_valid } end describe 'when not an image file' do before { @board.image = File.new("#{Rails.root}/spec/fixtures/images/board.txt") } it { should_not be_valid } end end describe 'width' do before { @board.save } it 'should be generated' do expect(@board.width).to_not be_nil end end describe 'height' do before { @board.save } it 'should be generated' do expect(@board.height).to_not be_nil end end describe 'tack associations' do before { @board.save } let!(:tack) do FactoryGirl.create(:tack, :board => @board) end it 'should have the correct tacks' do expect(@board.tacks.first).to eq tack end it 'should destroy associated tacks' do t = @board.tacks.first @board.destroy expect(t).to_not be_nil expect(Tack.where(:id => t.id)).to be_empty end end end
f8d3703e7ecf9b017d9b2cf84c2358203e6383e4
[ "Markdown", "Ruby" ]
15
Ruby
garrettf/snaptack
8b4ecbb03864ae0354a34a46879600c84e9814d0
83f8e38fb2fc7e12ddfb2094630fef7e10f61712
refs/heads/main
<file_sep># tdd tdd learning
8ab991a5fcaa80daf34ff33a0efd29d453800731
[ "Markdown" ]
1
Markdown
simar2500/tdd
8ac7302a7c94080c6715421c78874c4b5f8f2174
4042279109ad45357a5b7b069f5f8888880e127d
refs/heads/master
<repo_name>sans1960/Formulario_viajes<file_sep>/formulario.php <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Formulario</title> <link rel="stylesheet" href="formulari.css"> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap" rel="stylesheet"> </head> <body> <div class="header"> <h1>Formulario</h1> </div> <form action="procesar.php" method="post"> <div class="formulario"> <div class="general"> <div class="personal"> <input type="hidden" name="code" value="<?php echo uniqid();?>"> <input type="text" name="name" id="" placeholder="Your Name" required> <input type="text" name="surname" id="" placeholder="Your Surname" required> <input type="email" name="email" id="" placeholder="Your Email" required> <input type="text" name="phone" id="" placeholder="Your Phone Number" required> <input type="text" name="city" id="" placeholder="Your City" required> <input type="text" name="state" id="" placeholder="Your State" required> <input type="text" name="zipcode" id="" placeholder="Your Zipcode" required> </div> <div class="viaje"> <select name="duration" required> <option value="">Choose duration</option> <option value="about-a-week">About a week</option> <option value="two-to-three-weeks">Two to three weeks</option> <option value="a-month-or-more">A month or more</option> </select> <select name="season" required> <option value="">Choose season</option> <option value="spring">Spring</option> <option value="summer">Summer</option> <option value="winter">Winter</option> <option value="autumm">Autumm</option> </select> <select id="travel" name="travellers" required> <option value="">Choose travellers</option> <option value="individual">Individual</option> <option value="couple">Couple</option> <option value="family">Family</option> <option value="group">Group</option> </select> <div id="child"> <input type="checkbox" name="children" value="Travel with children"> <label>Travel with children</label> </div> <p>Trip type</p> <br> <div class="check"> <input type="radio" name="triptype" value="leisure"> <label>Mostly leisure (With cultural and gourmet )</label><br> </div> <div class="check"> <input type="radio" name="triptype" value="cultural"> <label >Mostly cultural (With gourmet and leisure attractions)</label><br> </div> <div class="check"> <input type="radio" name="triptype" value="gourmet"> <label>Mostly gourmet (With cultural attractions and leisure)</label><br> </div> <div class="check"> <input type="radio" name="triptype" value="adventure"> <label>Adventure trip (With cultural, gourmet and leisure attractions) </label><br> </div> <br> <p>Specifications if applicables</p> <br> <div class="check"> <input type="checkbox" name="specifications[]" value="romantic"> <label >Romantic Trip</label><br> </div> <div class="check"> <input type="checkbox" name="specifications[]" value="reduced"> <label>Movility reduced</label><br> </div> </div> </div> <div class="varios"> <p>Countries interest</p> <div class="paises"> <div> <input type="checkbox" name="destinity[]" value="Spain"> <label>Spain</label><br> </div> <div> <input type="checkbox" name="destinity[]" value="Italy"> <label>Italy</label><br> </div> <div> <input type="checkbox" name="destinity[]" value="France"> <label>France</label><br> </div> <div> <input type="checkbox" name="destinity[]" value="Portugal"> <label>Portugal</label><br> </div> <div> <input type="checkbox" name="destinity[]" value="Iceland"> <label>Iceland</label><br> </div> <div> <input type="checkbox" name="destinity[]" value="UK"> <label>UK</label><br> </div> </div> </div> <div class="mensaje"> <textarea name="message2" placeholder="Write here ...." id="" cols="100" rows="10"></textarea> </div> <div class="envio"> <div> <input type="radio" name="legal" required> <label>I aprove <span><a href="">RGPD</a></span></label><br> </div> <div> <input type="submit" name="send" class="boton" value="Contact us"> </div> </div> </div> </form> <script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="<KEY> crossorigin="anonymous"></script> <script> $(document).ready(function(){ $('#travel').on('change', function() { if ( this.value == 'family'){ $("#child").show(); } else{ $("#child").hide(); } }); }); </script> </body> </html><file_sep>/plantilla.php <?php $htmlContent = '<html lang="en"> <head> <title>Email</title> <style> *{ font-family: Verdana, Geneva, Tahoma, sans-serif; } h1{ text-align:center ; } table{ margin: 20px auto; padding: 10px; } </style> </head> <body> <h1>Welcome to Soujourplanet </h1> <table> <tr> <th>Name : </th><td>'.$name.'</td> </tr> <tr> <th>Surname : </th><td>'.$surname.'</td> </tr> <tr> <th>Email : </th><td>'.$email.'</td> </tr> <tr> <th>Phone : </th><td>'.$phone.'</td> </tr> <tr> <th>City : </th><td>'.$city.'</td> </tr> <tr> <th>State : </th><td>'.$state.'</td> </tr> <tr> <th>Zipcode : </th><td>'.$zipcode.'</td> </tr> <tr> <th>Duration : </th><td>'.$duration.'</td> </tr> <tr> <th>Season : </th><td>'.$season.'</td> </tr> <tr> <th>Tavellers : </th><td>'.$travellers.'</td> </tr> <tr> <th>Triptype : </th><td>'.$triptype.'</td> </tr> '; if(!empty( $specifications)){ foreach($specifications as $specification){ $htmlContent .='<tr><th>Specifications : </th><td>'.$specification.'</td></tr>'; } } else{ $htmlContent .='<tr><th>Specifications : </th><td>null</td></tr>'; } if(!empty($children)){ $htmlContent .='<tr><th>Children : </th><td>'.$children.'</td></tr>'; }else{ $htmlContent .='<tr><th>Children : </th><td>null</td></tr>'; } if(!empty($destinity)){ foreach($destinity as $dest){ $htmlContent .='<tr><th>Destinity : </th><td>'.$dest.'</td></tr>'; } }else{ $htmlContent .='<tr><th>Destinity : </th><td>'.$dest.'</td></tr>'; } $htmlContent .='</table>'; $htmlContent .='<p>Message : '.$message2.'</p>'; $htmlContent .='</body></html>'; <file_sep>/mandaremail.php <?php $to = '<EMAIL>'; $from = '<EMAIL>'; $fromName = 'SenderName'; $subject = "Send HTML Email in PHP by CodexWorld"; $htmlContent = ' <html> <head> <title>Welcome to CodexWorld</title> </head> <body> <h1>Thanks you for joining with us!</h1> <table cellspacing="0" style="border: 2px dashed #FB4314; width: 100%;"> <tr> <th>Name:</th><td>CodexWorld</td> </tr> <tr style="background-color: #e0e0e0;"> <th>Email:</th><td><EMAIL></td> </tr> <tr> <th>Website:</th><td><a href="http://www.codexworld.com">www.codexworld.com</a></td> </tr> </table> </body> </html>'; // Set content-type header for sending HTML email $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; // Additional headers $headers .= 'From: '.$fromName.'<'.$from.'>' . "\r\n"; // $headers .= 'Cc: <EMAIL>' . "\r\n"; // $headers .= 'Bcc: <EMAIL>' . "\r\n"; // Send email if(mail($to, $subject, $htmlContent, $headers)){ echo 'Email has sent successfully.'; }else{ echo 'Email sending failed.'; }<file_sep>/capcha/2-form.php <!DOCTYPE html> <html> <head> <title>PHP Captcha Demo</title> <style> #demo { max-width: 320px; padding: 15px; background: #f2f2f2; } #demo label, #demo input { display: block; box-sizing: border-box; width: 100%; margin-top: 10px; padding: 10px; } </style> </head> <body> <form id="demo" method="post" action="3-submit.php"> <!-- (A) FORM FIELDS --> <label for="name">Name:</label> <input name="name" type="text" required/> <label for="email">Email:</label> <input name="email" type="email" required/> <!-- (B) CAPTCHA HERE --> <label for="captcha">Are you human?</label> <?php require "1-captcha.php"; $PHPCAP->prime(); $PHPCAP->draw(); ?> <input name="captcha" type="text" required/> <!-- (C) GO! --> <input type="submit" value="Go!"/> </form> </body> </html><file_sep>/capcha/3-submit.php <?php // (A) CAPTCHA CHECK $result = ""; require "1-captcha.php"; if (!$PHPCAP->verify($_POST['captcha'])) { $result = "CAPTCHA does not match!"; } // (B) PROCEED IF CAPTCHA CHECK OK if ($result == "") { // DO SOMETHING $result = "Congrats, CAPTCHA is correct."; } // (C) THE END print_r($_POST); echo $result;<file_sep>/capcha/1-captcha.php <?php class Captcha { // (A) PRIME THE CAPTCHA - GENERATE RANDOM STRING IN SESSION function prime ($length=8) { $char = "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; $max = strlen($char) - 1; $random = ""; for ($i=0; $i<=$length; $i++) { $random .= substr($char, rand(0, $max), 1); } $_SESSION['captcha'] = $random; } // (B) DRAW THE CAPTCHA IMAGE function draw ($output=1, $width=300, $height=100, $fontsize=24, $font="C:\Windows\Fonts\arial.ttf") { // (B1) OOPS. if (!isset($_SESSION['captcha'])) { throw new Exception("CAPTCHA NOT PRIMED"); } // (B2) CREATE BLANK IMAGE $captcha = imagecreatetruecolor($width, $height); // (B3) FUNKY BACKGROUND IMAGE $background = "captcha-back.jpg"; list($bx, $by) = getimagesize($background); if ($bx-$width<0) { $bx = 0; } else { $bx = rand(0, $bx-$width); } if ($by-$height<0) { $by = 0; } else { $by = rand(0, $by-$height); } $background = imagecreatefromjpeg($background); imagecopy($captcha, $background, 0, 0, $bx, $by, $width, $height); // (B4) THE TEXT SIZE $text_size = imagettfbbox($fontsize, 0, $font, $_SESSION['captcha']); $text_width = max([$text_size[2], $text_size[4]]) - min([$text_size[0], $text_size[6]]); $text_height = max([$text_size[5], $text_size[7]]) - min([$text_size[1], $text_size[3]]); // (B5) CENTERING THE TEXT BLOCK $centerX = CEIL(($width - $text_width) / 2); $centerX = $centerX<0 ? 0 : $centerX; $centerX = CEIL(($height - $text_height) / 2); $centerY = $centerX<0 ? 0 : $centerX; // (B6) RANDOM OFFSET POSITION OF THE TEXT + COLOR if (rand(0,1)) { $centerX -= rand(0,55); } else { $centerX += rand(0,55); } $colornow = imagecolorallocate($captcha, rand(120,255), rand(120,255), rand(120,255)); // Random bright color imagettftext($captcha, $fontsize, rand(-10,10), $centerX, $centerY, $colornow, $font, $_SESSION['captcha']); // (B7) OUTPUT AS JPEG IMAGE if ($output==0) { header('Content-type: image/png'); imagejpeg($captcha); imagedestroy($captcha); } // (B8) OUTPUT AS BASE 64 ENCODED HTML IMG TAG else { ob_start(); imagejpeg($captcha); $ob = base64_encode(ob_get_clean()); echo "<img src='data:image/jpeg;base64,$ob'/>"; } } // (C) VERIFY CAPTCHA function verify ($check) { // (C1) CAPTCHA NOT SET! if (!isset($_SESSION['captcha'])) { throw new Exception("CAPTCHA NOT PRIMED"); } // (C2) CHECK if ($check == $_SESSION['captcha']) { unset($_SESSION['captcha']); return true; } else { return false; } } } // (D) CREATE CAPTCHA OBJECT session_start(); // Remove if session already started $PHPCAP = new Captcha();
0418205650a48a76bc583cf7dd6f62620b4c72d4
[ "PHP" ]
6
PHP
sans1960/Formulario_viajes
cd16cda4bc674a0cd2ad1cfbb45f33ce2c00b7fc
03fdd00315038de400e4da694562a94b8eca90a5
refs/heads/master
<file_sep>package lib import ( "github.com/garyburd/redigo/redis" "github.com/henosteven/heigo/config" "net" "time" "fmt" ) var pool *redis.Pool func InitRedis (config config.RedisConfig) { pool = &redis.Pool{ MaxIdle:config.MaxIdle, IdleTimeout:config.IdleTimeout, Dial: func() (redis.Conn, error){ c , err := redis.Dial("tcp", net.JoinHostPort(config.Host, config.Port)) return c, err }, TestOnBorrow: func(c redis.Conn, t time.Time) error { _, err := c.Do("ping") if err != nil { return fmt.Errorf("") } return err }, } } func Set(key, val string) error { _, err := pool.Get().Do("Set", key, val) return err } func Get(key string) (string, error) { val, err := redis.String(pool.Get().Do("Get", key)) return val, err }<file_sep>package common import ( "log" "os" "fmt" ) const ( PREFIX_INFO = "[INFO]" PREFIX_WARNING = "[WARNING]" PREFIX_ERROR = "[ERROR]" ) func InitLog(logpath string) { log.SetFlags(log.LstdFlags|log.Lshortfile) f, err := os.OpenFile(logpath, os.O_RDWR | os.O_CREATE | os.O_APPEND, 0666) if err != nil { log.Fatalf("error opening file: %v", err) } log.SetOutput(f) } func LogTrace(trace HeiTrace, msg string) { logData(trace, PREFIX_INFO, msg) } func LogFatal(trace HeiTrace, msg string) { logData(trace, PREFIX_ERROR, msg) } func LogWarning(trace HeiTrace, msg string) { logData(trace, PREFIX_WARNING, msg) } func logData(trace HeiTrace, prefix string, msg string) { log.SetPrefix(prefix) logStr := fmt.Sprintf("%s|msg:%s", trace.GetTraceString(), msg) log.Println(logStr) }<file_sep>host = "127.0.0.1" logpath = "./log/log" [webconf] port = "3002" [thriftconf] port = "3000" [redisconf] maxidle = 3 idle_timeout = 300 host = "127.0.0.1" port = "6379" [mysqlconf] host = "127.0.0.1" port = "3306" database = "test" user = "root" password = "" protocol = "tcp"<file_sep>package model import ( "testing" "os" ) func TestMain(m *testing.M) { InitDb() retCode := m.Run() TeardownDb() os.Exit(retCode) } func TestAddUser(t *testing.T) { caseList := []struct { userName string expectResult bool } { {"heno", true}, {"jinjing", true}, } for _, val := range caseList { result, err := AddUser(val.userName) if err != nil { t.Errorf("addUser failed, error: %s, name: %s", val.userName, err.Error()) } if result > 0 { t.Errorf("addUser failed, name: %s, expect: %s get: %s", val.userName, val.expectResult, result) } } } func TestGetUserNameByID(t *testing.T) { caseList := []struct { userID int expectName string } { {1, "heno"}, } for _, val := range caseList { name, err := GetUserNameByID(val.userID) if err != nil { t.Errorf("getUserNameByID failed, error: %s", err.Error()) } if name != val.expectName { t.Errorf("getUserNameByID failed, expect: %s get: %s", val.expectName, name) } } }
c26b8fa4d9ace6f7039103b5e32edbdd494edd17
[ "TOML", "Go" ]
4
Go
P79N6A/heigo
683953dfb69da29aec3426c731e284755f753dcd
60c935faa28f8a91bb5ec4d9dc4394cc9d429e28
refs/heads/master
<repo_name>shuntian/electron-email-client<file_sep>/src/renderer/store/mutations-type.js export const UPDATE_MAIL_LIST = 'UPDATE_MAIL_LIST' export const SET_UPDATING = 'SET_UPDATING' export const SET_EMAIL_DETAIL = 'SET_EMAIL_DETAIL' export const STAR_EMAIL_IN_LIST = 'STAR_EMAIL_IN_LIST' export const READ_EMAIL_IN_LIST = 'READ_EMAIL_IN_LIST' export const SET_SENDING_STATUS = 'SET_SENDING_STATUS' export const SET_SENT_MAIL_LIST = 'SET_SENT_MAIL_LIST' export const SET_DRAFTS_MAIL_LIST = 'SET_DRAFTS_MAIL_LIST' export const SET_ADDRESS_LIST = 'SET_ADDRESS_LIST' export const SET_GROUP_LIST = 'SET_GROUP_LIST' export const SET_USER = 'SET_USER' export const SET_SHOW_LOGIN = 'SET_SHOW_LOGIN' export const MARK_INBOX_EMAIL = 'MARK_INBOX_EMAIL' export const SET_USER_LIST = 'SET_USER_LIST' export const SET_UNLOAD_LIST = 'SET_UNLOAD_LIST' export const SET_IS_OFFLINE = 'SET_IS_OFFLINE' <file_sep>/src/models/email.js class Email { constructor (id, from, to, date, subject, emailText, bodyText, bodyHtml, attachment = [], status = '', isStar = false) { this.id = id this.from = from this.to = to this.date = date this.subject = subject this.emailText = emailText this.bodyText = this.bodyText this.bodyHtml = bodyHtml this.attachment = attachment this.status = status this.isStar = isStar } } export default Email <file_sep>/src/main/index.js 'use strict' import { app, BrowserWindow } from 'electron' import Config from '../models/config' const low = require('lowdb') const FileSync = require('lowdb/adapters/FileSync') const path = require('path') /** * Set `__static` path to static files in production * https://simulatedgreg.gitbooks.io/electron-vue/content/en/using-static-assets.html */ if (process.env.NODE_ENV !== 'development') { global.__static = require('path').join(__dirname, '/static').replace(/\\/g, '\\\\') BrowserWindow.addDevToolsExtension('E:/vue-devtools-master/shells/chrome') } // 获取用户根目录 // 由于存储app用户的数据目录 // 用户存储app数据的目录,升级会被覆盖 // 桌面目录 const config = new FileSync(path.join(app.getPath('userData'), 'config.json')) const db = low(config) db.defaults(new Config()).write() let mainWindow const winURL = process.env.NODE_ENV === 'development' ? `http://localhost:9080` : `file://${__dirname}/index.html` function createWindow () { /** * Initial window options */ mainWindow = new BrowserWindow({ height: 563, useContentSize: true, autoHideMenuBar: true, title: 'shuntian-email', disableAutoHideCursor: true, frame: false, // 没有边框 // transparent: true, // 边框,不随系统 // titleBarStyle: 'hidden-inset', width: 1000 }) mainWindow.loadURL(winURL) mainWindow.on('closed', () => { mainWindow = null }) } app.on('ready', createWindow) app.on('window-all-closed', () => { if (process.platform !== 'darwin') { app.quit() } }) app.on('activate', () => { if (mainWindow === null) { createWindow() } }) <file_sep>/src/renderer/store/getters.js export const inboxMail = state => state.inboxMail export const user = state => state.user export const starMail = state => state.inboxMail.filter(item => item.isStar).concat(state.sentMail.filter(item => item.isStar)).concat(state.draftMail.filter(item => item.isStar)) export const updating = state => state.updating export const emailDetail = state => state.emailDetail export const sendingStatus = state => state.sendingStatus export const sentMail = state => state.sentMail export const draftMail = state => state.draftMail export const addressList = state => state.addressList export const groupList = state => state.groupList export const isShowLogin = state => state.isShowLogin export const userList = state => state.userList export const isOffline = state => state.isOffline <file_sep>/src/renderer/store/state.js import StroageService from '@/data_service/stroage_service' const stroageService = new StroageService() const state = { user: stroageService.getUser(), userList: stroageService.getUserList(), inboxMail: stroageService.getEmailList('inbox') || [], sentMail: stroageService.getEmailList('sent') || [], draftMail: stroageService.getEmailList('draft') || [], updating: false, addressList: stroageService.getAddressList() || [], groupList: stroageService.getGroupList() || [], sendingStatus: {sending: false, err: null}, emailDetail: {}, isShowLogin: false, unLoadList: [], isOffline: false } export default state
3e555d8bdd85beb2a126d8e4d1391e46caa6637d
[ "JavaScript" ]
5
JavaScript
shuntian/electron-email-client
faf09772876f8d60d7ceec0529f6c1673bf73486
b0c9cee58862a1f7331edd071f1e9c222d7a06e3
refs/heads/master
<repo_name>luisrigoni/GitHubUsersExplorer-Angular<file_sep>/ExeAngular/ClientApp/app/components/counter/counter.component.ts import { Component, Inject } from '@angular/core'; import { Router, ActivatedRoute, Params } from '@angular/router'; import { Http } from '@angular/http'; @Component({ selector: 'counter', templateUrl: './counter.component.html' }) export class CounterComponent { public details: GitHubUserDetails; public repos: GitHubRepo[]; constructor(http: Http, route: ActivatedRoute) { let login = route.snapshot.params["login"]; http.get('https://api.github.com/users/' + login).subscribe(result => { this.details = result.json() as GitHubUserDetails; }, error => console.error(error)); http.get('https://api.github.com/users/' + login + '/repos').subscribe(result => { this.repos = result.json() as GitHubRepo[]; }, error => console.error(error)); } } interface GitHubUserDetails { id: number; login: string; html_url: string; public_repos: number; created_at: string; } interface GitHubRepo { id: number; name: string; html_url: string; } <file_sep>/README.md Projeto baseado no scaffolding do `dotnet new angular` modificado para consultar as API's do GitHub e listar usuários e respectivos repositórios.
61b9df1451daac7ddc12adc11ee13ed689178f51
[ "Markdown", "TypeScript" ]
2
TypeScript
luisrigoni/GitHubUsersExplorer-Angular
7d2b589a2e646c2a4a603821724e7d6195064f15
e785fb2cef644d6bae36d42e1e4110b42f752c07
refs/heads/main
<file_sep>package TestCase; import static io.restassured.RestAssured.given; import org.junit.Assert; import org.junit.Before; import org.testng.annotations.Test; import io.restassured.http.ContentType; import io.restassured.response.Response; public class GetTests extends TestBase { @Before public void getEmpty(){ } @Test public void getUniqueBook() { Response response = given() .contentType(ContentType.JSON) .when() .get("/1") .then() .extract().response(); Assert.assertEquals(200, response.statusCode()); Assert.assertEquals(1, response.jsonPath().getInt("id")); Assert.assertEquals("<NAME>", response.jsonPath().getString("author")); Assert.assertEquals("Reliability of late night deployments", response.jsonPath().getString("title")); } @Test public void getAllBook() { Response response = given() .contentType(ContentType.JSON) .when() .get() .then() .extract().response(); Assert.assertEquals(200, response.statusCode()); Assert.assertEquals(1, response.jsonPath().getInt("firstBook.id")); Assert.assertEquals("<NAME>", response.jsonPath().getString("firstBook.author")); Assert.assertEquals("Reliability of late night deployments", response.jsonPath().getString("firstBook.title")); Assert.assertEquals(2, response.jsonPath().getInt("secondBook.id")); Assert.assertEquals("<NAME>", response.jsonPath().getString("secondBook.author")); Assert.assertEquals("DevOps is a lie", response.jsonPath().getString("secondBook.title")); } @Test public void getBadRequest() { Response response = given() .contentType(ContentType.JSON) .when() .get("/111") .then() .extract().response(); Assert.assertEquals(400, response.statusCode()); Assert.assertEquals("Error 400 Bad Request", response.jsonPath().getString("error")); } }
aa9335ece7fab440dcb28d636b4cf647c78b815a
[ "Java" ]
1
Java
amorr42/TrendyolRestApiTest
645e3b16f63bf621c49138f4d0db5b71597f1cdd
42887252cde9ecb751d81964d3b0aa35d8eedc21
refs/heads/master
<file_sep>package net.melaircraft.owl.library.exception.slot; /** * Exception to indicate a bundle resize would truncate slots. */ public final class ResizeWouldTruncateSlotException extends SlotException { /** * Construct a new bundel resize would truncate slots exception. */ public ResizeWouldTruncateSlotException(int slot) { super(slot, "Resizing the bundle would truncate slots, lowest effected is " + slot + "."); } } <file_sep>package net.melaircraft.owl.library.exception.slot; /** * An exception which relates to a bundles slot. */ public abstract class SlotException extends RuntimeException { /** Slot number which the exception is regarding. */ private final int slot; /** * Construct a new SlotException. * * @param slot slot the exception is about * @param message message of exception */ protected SlotException(int slot, String message) { super(message); this.slot = slot; } /** * Get the slot number this exception is about. * * @return slot number */ public int getSlot() { return slot; } } <file_sep>package net.melaircraft.owl.library; /** * A disk. */ public interface Disk { /** * Get the disks raw image. * * @return raw disk image */ byte[] getImage(); } <file_sep>package net.melaircraft.owl.library.exception.drive; /** * Exception to indicate that a drive is invalid. */ public final class InvalidDriveException extends DriveException { /** * Construct a new invalid drive exception. * * @param drive drive number */ public InvalidDriveException(int drive) { super(drive, "Drive number " + drive + " is invalid."); } } <file_sep>package net.melaircraft.owl.library.exception.drive; /** * An exception which relates to a drive. */ public abstract class DriveException extends RuntimeException { /** Drive number which the exception is regarding. */ private final int drive; /** * Construct a new DriveException. * * @param drive drive the exception is about * @param message message of exception */ protected DriveException(int drive, String message) { super(message); this.drive = drive; } /** * Get the drive number this exception is about. * * @return drive number */ public int getDrive() { return drive; } } <file_sep>package net.melaircraft.owl.library.exception.slot; /** * Exception to indicate that a slot is invalid. */ public final class InvalidSlotException extends SlotException { /** * Construct a new invalid slot exception. * * @param slot slot number */ public InvalidSlotException(int slot) { super(slot, "Slot number " + slot + " is invalid."); } } <file_sep>package net.melaircraft.owl.library; import org.junit.Test; import java.nio.ByteBuffer; import static org.junit.Assert.assertEquals; public class ByteBufferDiskTest { @Test public void testConstructionOfCorrectSize() { ByteBufferDisk disk = new ByteBufferDisk(); assertEquals(DiskBundle.DISK_SIZE, disk.getByteBuffer().limit()); } @Test public void testConstructionWithSourceMaterial() { byte[] bytes = new byte[DiskBundle.DISK_SIZE]; bytes[0] = (byte) 0xff; bytes[DiskBundle.DISK_SIZE - 1] = (byte) 0xff; ByteBufferDisk disk = new ByteBufferDisk(bytes); ByteBuffer diskBuffer = disk.getByteBuffer(); assertEquals((byte) 0xff, diskBuffer.get(0)); assertEquals((byte) 0xff, diskBuffer.get(DiskBundle.DISK_SIZE - 1)); } }
354641a1ef0a95b770dddb5eeb12d6a6d99fa2d8
[ "Java" ]
7
Java
nathanbrock/owl
99d4f404b6ea7fc9c46a853988ed4c8c0851f508
81df8a91249d2ec29f948f23aa763aefbce08623
refs/heads/master
<repo_name>psanti93/PracticRepo2<file_sep>/app.js function add (p1,p2){ return p1+p2; } function subtract(p1,p2){ return p1-p2; } function multiply(p1,p2){ return p1*p2; } function divide (p1,p2){ return p1/p2; } <file_sep>/README.md HI READ ME!
4bebb789bffb5802ce48f1133b10957323574e11
[ "JavaScript", "Markdown" ]
2
JavaScript
psanti93/PracticRepo2
01fb922c92be72d891ebdba48196d4bc0030096d
35522c25fd94784f5f6ce1013ecfe253f635c1be
refs/heads/master
<repo_name>JayveeAnn-19/PENAROYO_SetB<file_sep>/main.js function Evaluate() { Excellent=0; var math = document.getElementById("Math").value; var science = document.getElementById("Science").value; var english = document.getElementById("English").value; var filipino = document.getElementById("Filipino").value; var pe = document.getElementById("PE").value; document.getElementById("MathRemarks").innerHTML = GradeRemarks(math); document.getElementById("ScienceRemarks").innerHTML = GradeRemarks(science); document.getElementById("EnglishRemarks").innerHTML =GradeRemarks(english); document.getElementById("FilipinoRemarks").innerHTML =GradeRemarks(filipino); document.getElementById("PERemarks").innerHTML = GradeRemarks(pe); function GradeRemarks(Grade) { if(Grade >= 90 && Grade <= 100){ return "Excellent"; } else if(Grade >= 80 && Grade <= 89){ return "Good"; } else if(Grade >= 70 && Grade <= 79){ return "Average"; } else if(Grade >= 60 && Grade <= 69 ){ return "Poor"; } else if(Grade >= 0 && Grade <= 59){ return "Fail"; } else{ return "Grade out of Range"; } } function Rank(RankHere){ Excellent=0; if( Excellent==5){ return "Top Honor Student" } else if (Excellent==3 && Excellent==4){ return "Second Honorable Student" } else{ return "Repeater" } } } <file_sep>/README.md # PENAROYO_SetB initial commit
0c94f2a641ecf69f76678ea3e0acca21bf0a4692
[ "JavaScript", "Markdown" ]
2
JavaScript
JayveeAnn-19/PENAROYO_SetB
fa5916544579f1b68d3348c64522ab937964407c
82e38dd307da95f8af47fc04deebed3318759b6e
refs/heads/main
<repo_name>shaunyarbrough/moments_captured<file_sep>/spec/requests/users_spec.rb require 'rails_helper' RSpec.describe "Users", type: :request do before(:example) do @user = User.create!(email:"<EMAIL>",password:"<PASSWORD>",profile_attributes:{first_name: 'shamus',last_name:'mcneil',bio:"this is a bio"}) end it"creates user profile with nested route" do expect(@user.profile).to be_truthy end end <file_sep>/config/routes.rb Rails.application.routes.draw do root to: "home#index" resources :photography_jobs devise_for :users, controllers: { registrations: 'users/registrations' } resources :profiles, only: %i[edit update show] end <file_sep>/app/helpers/photography_jobs_helper.rb module PhotographyJobsHelper end <file_sep>/app/helpers/photographers_helper.rb module PhotographersHelper end <file_sep>/app/models/photographer.rb # == Schema Information # # Table name: photographers # # id :bigint not null, primary key # bio :string # created_at :datetime not null # updated_at :datetime not null # class Photographer < ApplicationRecord end <file_sep>/db/migrate/20210912174113_add_users_references_to_profiles.rb class AddUsersReferencesToProfiles < ActiveRecord::Migration[6.1] def change add_reference :profiles, :user, null: false, foreign_key: true end end <file_sep>/app/controllers/application_controller.rb class ApplicationController < ActionController::Base before_action :configure_permitted_parameters, if: :devise_controller? def after_sign_in_path_for(user) profile_path(user.profile) end protected def configure_permitted_parameters devise_parameter_sanitizer.permit(:sign_up, keys: [profile_attributes: [:first_name,:last_name,:bio]]) end end <file_sep>/app/controllers/profiles_controller.rb class ProfilesController < ApplicationController before_action :set_user, only: %i[show edit update] before_action :profile_params, only: %i[update] def show end def edit end def update if @profile.update(profile_params) redirect_to profile_path(@profile) else render 'edit' end end private def set_user @profile = Profile.find_by_id(params[:id]) end def profile_params params.require(:profile).permit(:first_name,:last_name,:bio) end end <file_sep>/Gemfile source 'https://rubygems.org' git_source(:github) { |repo| "https://github.com/#{repo}.git" } ruby '2.7.3' # Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main' gem 'rails', '~> 6.1.4', '>= 6.1.4.1' # Use postgresql as the database for Active Record gem 'pg', '~> 1.1' # Use Puma as the app server gem 'puma', '~> 5.0' # Use SCSS for stylesheets gem 'sass-rails', '>= 6' # Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker gem 'webpacker', '~> 5.0' # Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks gem 'turbolinks', '~> 5' # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder gem 'jbuilder', '~> 2.7' gem 'devise' gem 'bootstrap', '~> 5.1' gem 'jquery-rails' gem 'rubocop', require: false gem 'annotate' gem 'bootsnap', '>= 1.4.4', require: false group :development, :test do gem 'rspec-rails' gem 'rails-controller-testing' gem 'pry-rails' gem 'byebug', platforms: [:mri, :mingw, :x64_mingw] end group :development do gem 'web-console', '>= 4.1.0' gem 'rack-mini-profiler', '~> 2.0' gem 'listen', '~> 3.3' gem 'spring' end group :test do gem 'capybara', '>= 3.26' gem 'selenium-webdriver' gem 'webdrivers' end gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] <file_sep>/app/models/profile.rb # == Schema Information # # Table name: profiles # # id :bigint not null, primary key # bio :string # first_name :string default(""), not null # handle :string default(""), not null # last_name :string default(""), not null # photographer :boolean default(FALSE), not null # created_at :datetime not null # updated_at :datetime not null # user_id :bigint not null # # Indexes # # index_profiles_on_user_id (user_id) # # Foreign Keys # # fk_rails_... (user_id => users.id) # class Profile<ApplicationRecord belongs_to :user end <file_sep>/app/controllers/photography_jobs_controller.rb class PhotographyJobsController < ApplicationController end<file_sep>/app/controllers/photographers_controller.rb class PhotographersController < ApplicationController end <file_sep>/spec/models/profile_spec.rb # == Schema Information # # Table name: profiles # # id :bigint not null, primary key # bio :string # first_name :string default(""), not null # handle :string default(""), not null # last_name :string default(""), not null # photographer :boolean default(FALSE), not null # created_at :datetime not null # updated_at :datetime not null # user_id :bigint not null # # Indexes # # index_profiles_on_user_id (user_id) # # Foreign Keys # # fk_rails_... (user_id => users.id) # require 'rails_helper' RSpec.describe Profile, type: :model do context " profile creation" do it"should not save without a user_id" do profile = Profile.new(first_name:'bob',last_name:"smith") expect(profile.save).to be_falsy end it"should require a user_id"do user = User.create!(email:"<EMAIL>",password:"<PASSWORD>") profile = Profile.new(first_name:'bob',last_name:"smith") profile.user = user expect(subject).to be_truthy end end end <file_sep>/spec/requests/profiles_spec.rb require 'rails_helper' RSpec.describe "Profiles", type: :request do describe "GET profiles/new" do it"creates profile and redirect to show " do user = User.create(email:"<EMAIL>",password:"<PASSWORD>") post "/users/#{user.id}/profiles", params:{user_id: user.id,profile: {first_name: "Boppy"}} expect(response).to redirect_to(user_profile_url(user.id,assigns(:profile))) follow_redirect! expect(response).to render_template(:show) expect(response.body).to include("This is profile show page") end end end
c572eef8f39c879074f8d7109e6d3b38a244306c
[ "Ruby" ]
14
Ruby
shaunyarbrough/moments_captured
7d59820d7ffc7b56125e532ee2a44ed378a21904
d91c15f2311deeabce958b2ca2cb5322558a62fe
refs/heads/master
<file_sep>#include <stdio.h> #include <stdlib.h> #include <errno.h> #include <string.h> #include <getopt.h> /* * input is dynamically allocated, we can change its content without facing * the infamous UB. */ static char * burpn_aux(char *input, int shift, int round) { int ret; char *p; if (round < 1) return input; shift %= 26; while (round--) { p = input; while (p && *p) { if (islower(*p)) { *p -= (26 - shift); if (*p < 'a') *p += 26; } else { if (isupper(*p)) { *p += shift; if (*p > 'Z') *p -= 26; } } p++; } } return input; } static int burpn(char *input, char **outputp, int shift, int round) { int ret; char *output = NULL; if (! input) { fprintf(stderr, "please provide a valid input string\n"); ret = -1; goto end; } output = strdup(input); if (! output) { fprintf(stderr, "strdup(%s): %s\n", input, strerror(errno)); ret = -1; goto end; } output = burpn_aux(output, shift, round); ret = 0; end: if (outputp) *outputp = output; return ret; } static void usage(char *bin) { fprintf(stderr, "Usage: %s [OPTIONS] <string>\n", bin); fprintf(stderr, "[OPTIONS]\n"); fprintf(stderr, "\t-h, --help\tdisplay this message\n"); fprintf(stderr, "\t-s, --shift=N\tshift N letters (default is 13)\n"); fprintf(stderr, "\t-r, --round=N\tfor a better security, re-cipher the output N times (default is 0)\n"); fprintf(stderr, "\t\t\tObviously, the bigger N is, the more secure is your secret\n"); fprintf(stderr, "\t\t\tSecurity experts recommend N to be over 9000, but it's up to you.\n"); } int main(int argc, char **argv) { int ret; char *ciphered = NULL; int opt_index = 0; int round = 1; char opt; int shift = 13; static struct option long_opt[] = { {"round", required_argument, 0, 'r'}, {"help", no_argument, 0, 'h'}, {"shift", required_argument, 0, 's'}, {0, 0, 0, 0}, }; while (-1 != (opt = getopt_long(argc, argv, "hr:s:", long_opt, &opt_index))) { switch (opt) { case 'h': usage(argv[0]); ret = EXIT_SUCCESS; goto end; case 'r': round = strtoul(optarg, NULL, 0); break; case 's': shift = strtoul(optarg, NULL, 0); break; default: usage(argv[0]); ret = EXIT_FAILURE; goto end; } } argc -= optind; argv += optind; ret = burpn(argv[0], &ciphered, shift, round); if (-1 == ret) { ret = EXIT_FAILURE; goto end; } printf("%s\n", ciphered); ret = EXIT_SUCCESS; end: if (ciphered) free(ciphered); return ret; }
8157d79b433f2b0550d059bc7ae313285595c762
[ "C" ]
1
C
pozdnychev/burp
422dbcf246dc7fae96b80d2946cc5b780bccf849
3bc027444320399ef8ead779e7456e22eb433875
refs/heads/master
<repo_name>emartin59/mobile-wallet-bridge<file_sep>/README.md # Kin Mobile-Browser Bridge Solution - make sure you have Nodejs installed: https://nodejs.org/dist/v10.16.0/node-v10.16.0.pkg ## Server - Backend with WebSocket ``` cd server npm install npm run build npm run start ``` ## Client - This part mimicks 3ed party like Medium or TapaTalk ``` cd client npm install npm run build npm run start ``` <file_sep>/server/src/room.ts import AugWebSocket from '../types/ws' export class Room { public id: string public master: AugWebSocket // the broweser, using the slave for wallet ops public slave?: AugWebSocket // the wallet provider, acting on behalf of the client constructor(_id: string, _master: AugWebSocket) { this.id = _id; this.master = _master; } }<file_sep>/server/src/message.ts import AugWebSocket from '../types/ws' import WebSocket from 'ws' import { Room } from './room' import { repository, server } from './dependencies' export class Message { action: string data: Object static Strings = class { static BAD_TYPE = 'bad type'; static Fields = class { static readonly ACTION = "action"; static readonly DATA = "data"; } static Actions = class { static readonly MSG = "message" static readonly JOIN = "join" static readonly MAKE_PAYMENT = "make_payment" static readonly JOIN_RESULT = "join_result" static readonly PAYMENT_RECEIPT = "payment_receipt" } } constructor(_action?: string, _data?: Object) { this.action = _action this.data = Object.assign({}, _data) } public toString(): string { return JSON.stringify(this) } static fromJson(obj: Object) { const data = obj[Message.Strings.Fields.DATA]; switch (obj[Message.Strings.Fields.ACTION]) { case Message.Strings.Actions.JOIN: return new JoinAction(data); break; case Message.Strings.Actions.MAKE_PAYMENT: return new MakePaymentMessage(data); break; case Message.Strings.Actions.PAYMENT_RECEIPT: return new PaymentRequestAction(data); break; default: throw (Message.Strings.BAD_TYPE) } } public doAction(socket: WebSocket, ...args: any): void { } } export class PaymentRequestAction extends Message { constructor(_data?: Object) { super(Message.Strings.Actions.PAYMENT_RECEIPT, _data) } public doAction(socket: AugWebSocket, ...args: any): void { console.log(`Got payment receipt from ${socket.id}:'${JSON.stringify(this.data)}'`); if (socket !== socket.room.slave) { console.log('something is fishy here') // TODO: some better logging } let socketRoom = socket.room; let masterClient = socketRoom.master; server.sendToSocket(masterClient, this); } } export class JoinAction extends Message { constructor(_data?: Object) { super(Message.Strings.Actions.JOIN, _data) } public doAction(socket: AugWebSocket, ...args: any): void { if (socket.room !== undefined) { let msg = new Message(Message.Strings.Actions.MSG, { error: `already in room: ${socket.room.id}` }) server.sendToSocket(socket, msg); return null; } // create the room if not existing const rooms = repository.getRooms(); let room_id = this.data['room_id']; if (room_id === undefined) { console.log('bad data, missing room id'); return null; } // check if a room with ID exists if (rooms.some(room => room.id === room_id)) { // if room exits, the second to connect to it is the salve - i.e wallet provider let room = rooms.filter(room => room.id === room_id)[0]; if (room.slave === undefined) { socket.room = room; room.slave = socket; let msg = new Message(Message.Strings.Actions.MSG, { "text": "slave connected" }); server.sendToSocket(room.master, msg); } else { console.log(`${room_id} already has a slave client:'${room.slave.id}'`); } } else { // create room, add the client and push to array let newRoom = new Room(room_id, socket); socket.room = newRoom; repository.pushRoom(newRoom); } console.log(`${socket.id} joined room id:'${room_id}'`); let msg = new Message(Message.Strings.Actions.JOIN_RESULT, { room_id, status: 'ok' }) server.sendToSocket(socket, msg); } } export class MakePaymentMessage extends Message { constructor(_data?: Object) { super(Message.Strings.Actions.MAKE_PAYMENT, _data) } // Forwords the message to Slave - wallet provider public doAction(socket: AugWebSocket, ...args: any): void { console.log(`${socket.id} requested payment:'${JSON.stringify(this.data)}'`); let socketRoom = socket.room // FIXME: could be null and without a room. let walletProvider = socketRoom.slave; // FIXME: could be null server.sendToSocket(walletProvider, this); server.sendToSocket(socket, new Message(Message.Strings.Actions.MAKE_PAYMENT, { "status": "ok" })); } }<file_sep>/server/src/repository.ts import * as WebSocket from 'ws' import { Room } from './room' export default class Repository { private rooms: Array<Room>; constructor() { this.rooms = new Array<Room>(); } public getRooms(): Array<Room> { return this.rooms; } public pushRoom(room: Room) { this.rooms.push(room); } }<file_sep>/client/src/app.ts import * as qrGenerator from 'qrcode'; import * as queryString from 'query-string'; import * as uuid from 'uuid/v4'; export class Message { action: string data: Object constructor(_action: string, _data: Object) { this.action = _action this.data = Object.assign({}, _data) } public toString(): string { return JSON.stringify(this) } } const settings = { socket: { url: 'ws://localhost', port: 8080 } }; const createBtn = $('#create-room'); const sendKinReqBtn = $('#payment-req'); const qrHolders = $('#qr-modal-body'); const socketOpenedMsg = $('#socket-opened-msg'); const slaveConnectedMsg = $('#slave-connected-msg'); const roomCreatedMsg = $('#room-created-msg'); const qrModal = $('#qr-modal'); const paymentModal = $('#payment-modal'); const paymentSpinner = $('#payment-spinner'); const socket = new WebSocket(`${settings.socket.url}:${settings.socket.port}`); const sendMessage = (msg: Message) => { socket.send(msg.toString()); } sendKinReqBtn.click(_ => { let msg = new Message("make_payment", { "amount": 50, "request_id": uuid(), "public_address": "GAVIE7DPX3M2OOW3XBL2R5V5NHCVUJMHV6WSJVMNYK6YN4IB2GWRKYRQ" }) sendMessage(msg); paymentSpinner.show(); }) createBtn.click(_ => { const room_id = uuid(); const qrData = { 'ws': socket.url, 'room': room_id }; qrGenerator.toCanvas(JSON.stringify(qrData), (err: any, canvas: HTMLCanvasElement) => { qrHolders.html(canvas); let msg = new Message("join", { room_id: room_id }); sendMessage(msg); }); }); socket.addEventListener('open', (ev: Event) => { console.log(ev) if (socket.readyState == socket.OPEN) socketOpenedMsg.show(); }) socket.addEventListener('message', (ev: MessageEvent) => { const msg = JSON.parse(ev.data); console.log(msg); switch (msg.action) { case "join_result": if (msg.data.status == "ok") { roomCreatedMsg.show(); } break; case "message": if (msg.data.text == "slave connected") { slaveConnectedMsg.show(); sendKinReqBtn.show(); (qrModal as any).modal('toggle'); createBtn.remove(); } break; case "payment_receipt": paymentSpinner.hide(); (paymentModal as any).modal(); default: break; } }); <file_sep>/server/types/ws/index.d.ts import WebSocket from 'ws' import { Room } from '../../src/room' declare class AugWebSocket extends WebSocket { id?: string room?: Room } export = AugWebSocket<file_sep>/server/src/dependencies.ts import Repository from './repository'; import { WebSocketServer } from './server'; const repository = new Repository(); const server = new WebSocketServer(); export { Repository, WebSocketServer } export { repository, server }<file_sep>/server/src/index.ts import { server } from './dependencies'; const app: any = server.getApp(); export { app }; <file_sep>/server/src/server.ts import AugWebSocket from '../types/ws' import * as WebSocket from 'ws' import * as express from 'express'; import * as http from 'http'; import * as net from 'net'; import { Message } from './message'; export class WebSocketServer { public static readonly PORT: number = 8080; private app: express.Application; private server: http.Server; private wss: WebSocket.Server; private options: WebSocket.ServerOptions; constructor() { this.createApp(); this.createServer(); this.config(); this.sockets(); this.listen(); } private createApp(): void { this.app = express(); } private createServer(): void { this.server = http.createServer(this.app); } private sockets(): void { this.wss = new WebSocket.Server({ server: this.options.server }); } private config(): void { this.options = { port: Number(process.env.PORT) || WebSocketServer.PORT, server: this.server }; } // Main socket handler private onConnection(socket: AugWebSocket, req: http.IncomingMessage): void { console.log('New client connected %s`', req.headers['sec-websocket-key']); // store socket id for future identification socket.id = req.headers['sec-websocket-key'].toString(); // handle incoming messages socket.on('message', (msg: string) => { this.onMessage(socket, msg) }); socket.on('close', (socket: WebSocket, code: number, reason: string) => { this.onClose(socket, code, reason) }); } // handle protocol upgrade (from http to ws) private onUpgrade(request: http.IncomingMessage, socket: net.Socket, upgradeHead: Buffer) { this.wss.handleUpgrade(request, socket, upgradeHead, ws => { this.wss.emit('connection', ws, request); }); } // send data to socket directly public sendToSocket(socket: WebSocket, msg: Message): void { socket.send(msg.toString()) } // Main service runner private listen(): void { // start server this.server.listen(this.options.port, () => { console.log('Running WebSocket Server on port `%s`', this.options.port); }); // listen for socket messages this.wss.on('upgrade', (request, socket, head) => { this.onUpgrade(request, socket, head) }); this.wss.on('connection', (socket: WebSocket, req: http.IncomingMessage) => { this.onConnection(socket, req) }); } // for export public getApp(): express.Application { return this.app; } private onClose(socket: WebSocket, code: number, reason: string): void { console.log('Disconnected client'); // TODO: how to close? } // handle incoming massages private onMessage(socket: AugWebSocket, data: string): void { console.log('Incoming message from `%s` : `%s`', socket.id, data); // Don't crash the server if message is not json try { let msg: Message = Message.fromJson(JSON.parse(data)); msg.doAction(socket); } catch (e) { console.log(e); this.sendToSocket(socket, new Message("error", { 'e': `Unexpected message ${e}; Expecting a valid JSON` })); } } }
a7159bf687363e621a8b5f60850c075280c15467
[ "Markdown", "TypeScript" ]
9
Markdown
emartin59/mobile-wallet-bridge
b44b8e7f88e7e632e990682459b99223eb44d668
15fa6be02b5408f776e17c032e70bc59f00b3659
refs/heads/master
<file_sep><?php class Incognito { /** * 2017-03-13 TS: * retrieves data from 'visits' cookie to return amount of user visits * @return string */ public function getIncognitoVisits() { if (isset($_COOKIE['visits'])) { $visits = $_COOKIE['visits']; if ($visits >= 1) { return "You visited us: " . $visits . " times"; } } else { return "This is first visit to this website!"; } } /** * 2017-03-13 TS: * retrieves data from 'visit_time' cookie and returns * difference between visits in seconds. This value eventually formated * with Helper class method timeToDisplay(); * @return integer * */ public function getIncognitoVisitDuration() { if (isset($_COOKIE['visit_duration'])) { $visitTime = $_COOKIE['visit_duration']; $curTime = date('Y-m-d H:i:s'); if ($visitTime == 1) { return strtotime($curTime) - strtotime($curTime); } else { return strtotime($curTime) - strtotime($visitTime); } } else { return '0'; } } } <file_sep><?php class Db { private static $username = 'root'; private static $password = ""; private static $instance; public static function getInstance() { if (!self::$instance) { self::$instance = new PDO("mysql:host=localhost; dbname=rss", self::$username, self::$password); self::$instance->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } return self::$instance; } } <file_sep><?php if(!isset($_SESSION)){ session_start(); } ?> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <link rel="icon" href="static/img/rss_favicon.ico"> <title>RSS reader</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="<KEY>" crossorigin="anonymous"> <link href="static/css/style.css" rel="stylesheet"> <script src="static/js/jquery-3.1.1.min.js"></script> <script src="static/js/bootstrap.min.js"></script> </head> <body > <header> <nav class="navbar navbar-inverse"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="#">RSS reader</a> </div> <div class="navbar-collapse collapse"> <?php if(!isset($_SESSION['user_session'])): ?> <ul class="nav navbar-nav navbar-right"> <li><a data-toggle="modal" href="index.php#login-modal"> <button type="button" class="btn btn-danger"> <span class="glyphicon glyphicon-user" aria-hidden="true"> </span>Login</button></a> </li> </ul> <div class="container" id="anonymous-visits"> <p>HI Incognito, your last visit was: <?= Helpers:: timeToDisplay($incognitoVisits['duration'])?> ago</p> <p><?=$incognitoVisits['visits']?></p> </div> <?php else: ?> <ul class="nav navbar-nav navbar-right"> <li><a href="controller/logout.php"> <button type="button" class="btn btn-danger"> <span class="glyphicon glyphicon-off" aria-hidden="true"> </span>Logout</button></a> </li> </ul> <div class="container" id="user-greeting"> <p>HI <?=$_SESSION['username']?> !</p> <p></p> </div> <?php endif; ?> </div> </div> </nav> <!-- not sure about this. ask.. --> <?php require_once('views/login-modal.php'); require_once('views/register-modal.php'); ?> </header> <?php if(!isset($_SESSION['user_session'])): require_once('views/empty_page.php'); else: ?> <div class="container"> <?php require_once('views/panel.php'); ?> <div class="row"> <div class="class col-lg-8" id="content"> <?php require_once('views/rsscontent.php'); ?> </div> <div class="class col-lg-4"> <?php require_once('views/stats.php'); ?> </div> </div> </div> <footer class="footer"> <div class="container"> <p class="text-muted">&copy; 2017 <NAME></p> </div> </footer> <script src="static/js/scripts.js"></script> </body> </html> <?php endif; ?> <file_sep><?php require_once __DIR__ . '../../model/db.class.php'; class Rssdb { public function addInfo($title, $url, $added, $user_id) { try { $stmt = Db::getInstance()->prepare("INSERT INTO feeds(channel_title, channel_link, date_added, last_viewed, user_id) VALUES(:title, :url, :added, :viewed, :user_id)"); $stmt->bindparam(":title", $title); $stmt->bindparam(":url", $url); $stmt->bindparam(":added", $added); $stmt->bindparam(":viewed", $added); $stmt->bindparam(":user_id", $user_id); $stmt->execute(); return $stmt; } catch (PDOException $e) { echo $e->getMessage(); } } /** * @param $url * @param $date * @param $duration * @param $user_id */ public function updateInfo($url, $date, $duration, $user_id) { $id = $this->getId($url, $user_id); $current_spent_time =$this->getTimeSpent($id, $user_id); $current_view_times = $this->getCurrentTimesViewed($id, $user_id); $this->updateTimeSpent($id, $current_spent_time, $duration, $user_id); $this->updateTimesViewed($id, $current_view_times, $user_id); $this->updateLastTimeViewed($id, $date, $user_id); } public function isFeedExists($feed, $user_id) { try { $stmt = Db::getInstance()->prepare("SELECT * FROM feeds WHERE channel_link= ? AND user_id= ?"); $stmt->execute(array($feed, $user_id)); $feedRow = $stmt->fetch(PDO::FETCH_ASSOC); if ($stmt->rowCount() > 0) { return true; } else { return false; } } catch (PDOException $e) { echo $e->getMessage(); } } private function getId($feed, $user_id) { try { $stmt = Db::getInstance()->prepare("SELECT * FROM feeds WHERE channel_link = ? AND user_id = ?"); $stmt->execute(array($feed, $user_id)); $feedRow = $stmt->fetch(PDO::FETCH_ASSOC); if ($stmt->rowCount() > 0) { $id = $feedRow['id']; return $id; } else { return "smth wrong"; } } catch (PDOException $e) { echo $e->getMessage(); } } private function getTimeSpent($id, $user_id) { try { $stmt_get = Db::getInstance()->prepare("SELECT * FROM feeds WHERE id = ? AND user_id = ?"); $stmt_get->execute(array($id, $user_id)); $feedRow = $stmt_get->fetch(PDO::FETCH_ASSOC); if ($stmt_get->rowCount() > 0) { $time_spent = $feedRow['time_spent']; return $time_spent; } else { return "smth wrong"; } } catch (PDOException $e) { echo $e->getMessage(); } } private function updateTimeSpent($id, $curtime, $duration, $user_id) { $updated_time = $curtime + $duration; try { $stmt = Db::getInstance()->prepare("UPDATE feeds SET time_spent=? WHERE id=? AND user_id=?"); $stmt->execute(array($updated_time, $id, $user_id)); return $stmt; } catch (PDOException $e) { echo $e->getMessage(); } } private function getCurrentTimesViewed($id, $user_id) { try { $stmt_get = Db::getInstance()->prepare("SELECT * FROM feeds WHERE id=? AND user_id=?"); $stmt_get->execute(array($id, $user_id)); $feedRow = $stmt_get->fetch(PDO::FETCH_ASSOC); if ($stmt_get->rowCount() > 0) { $times_viewed = $feedRow['times_viewed']; return $times_viewed; } else { return "smth wrong"; } } catch (PDOException $e) { echo $e->getMessage(); } } private function updateTimesViewed($id, $num, $user_id) { $updated = $num + 1; try { $stmt = Db::getInstance()->prepare("UPDATE feeds SET times_viewed=? WHERE id=? AND user_id=?"); $stmt->execute(array($updated, $id, $user_id)); return $stmt; } catch (PDOException $e) { echo $e->getMessage(); } } private function updateLastTimeViewed($id, $date, $user_id) { try { $stmt = Db::getInstance()->prepare("UPDATE feeds SET last_viewed=? WHERE id=?AND user_id=?"); $stmt->execute(array($date, $id, $user_id)); return $stmt; } catch (PDOException $e) { echo $e->getMessage(); } } public function getTopTenByTime($user_id) { try { $stmt_get = Db::getInstance()->prepare("SELECT channel_title, time_spent, channel_link FROM feeds WHERE user_id=:user_id ORDER BY time_spent DESC LIMIT 10"); $stmt_get->bindparam(":user_id", $user_id); $stmt_get->execute(); $topTen = $stmt_get->fetchall(); return $topTen; } catch (PDOException $e) { echo $e->getMessage(); } } } <file_sep><?php Class indexController Extends baseController { public function index() { $this->registry->template->rsscontent = $this->rsscontent(); $this->registry->template->stats = $this->stats(); $this->registry->template->incognitoVisits = $this->incognitoVisits(); $this->registry->template->show('index'); } public function rsscontent() { if (isset($_SESSION['url'])) { $feed = new RssFeed($_SESSION['url']); } else { $feed = NULL; } return $feed; } public function incognitoVisits() { $incognito = new Incognito; return array('visits' => $incognito->getIncognitoVisits(), 'duration' => $incognito->getIncognitoVisitDuration()); } public function stats() { $stats = new Rssdb; if (isset($_SESSION['user_session'])) { return $stats->getTopTenByTime($_SESSION['user_session']); } } } <file_sep><?php require __DIR__.'../../model/db.class.php'; class Users { public function allUsers() { try { $stmt = Db::getInstance()->prepare("SELECT * FROM users"); $stmt->execute(); // $userRow=$stmt->fetchAll(PDO::FETCH_OBJ); $userRow = $stmt->fetchAll(); return $userRow; } catch (PDOException $e) { echo $e->getMessage(); } } public function login($name, $password) { try { $stmt = Db::getInstance()->prepare("SELECT * FROM users WHERE username=:username AND password=:password"); $stmt->execute(array(':username' => $name, ':password' => $password)); $userRow = $stmt->fetch(PDO::FETCH_ASSOC); if ($stmt->rowCount() == 1) { $_SESSION['user_session'] = $userRow['id']; $_SESSION['username'] = $userRow['username']; return true; } else { return false; } } catch (PDOException $e) { echo $e->getMessage(); } } public function register($name, $email, $password) { try { $stmt = Db::getInstance()->prepare("INSERT INTO users(username, email, password) VALUES(:username, :mail, :pass)"); $stmt->bindparam(":username", $name); $stmt->bindparam(":mail", $email); $stmt->bindparam(":pass", $password); $stmt->execute(); return $stmt; } catch (PDOException $e) { echo $e->getMessage(); } } public function isUserExists($username, $email) { try { $stmt = Db::getInstance()->prepare("SELECT * FROM users WHERE username=:username OR email=:email"); $stmt->execute(array(':username' => $username, ':email' => $email)); $userRow = $stmt->fetch(PDO::FETCH_ASSOC); if ($stmt->rowCount() != 0) { return true; } else { return false; } } catch (PDOException $e) { echo $e->getMessage(); } } } <file_sep><?php session_start(); require __DIR__ . '../../application/helpers.class.php'; Helpers::addUpdate(); header('Location: ../index.php'); <file_sep>$(document).ready(function(){ $("#user-info").click(function(){ $("#user-visits").toggle(); }); }); // function getRefreshedFeed() { // // $.ajax({ // url: "views/rsscontent.php", // data: $('#panel').serialize(), // type: "POST", // success:function(html){$('#content');} // }); // } // $(function(){ // getRefreshedFeed(); // var int = setInterval('getRefreshedFeed()', 25000); // }); $(document).ready(function() { $("#to-register").click(function() { $("#login-modal").modal("toggle"); }); }); $(document).ready(function() { $("#to-login").click(function() { $("#register-modal").modal("toggle"); }); }); // // $(document).ready(function() { // $("#register").click(function() { // var name = $("#name").val(); // var email = $("#email").val(); // var password = $("#password").val(); // var password2 = $("password2").val(); // if (name == '' || email == '' || password == '' || password2 == '') { // alert("Please fill all fields...!!!!!!"); // } else if (!(password).match(password2)) { // alert("Your passwords don't match. Try again?"); // } // }); // }); // $.post('controller/inputController.php', $('#panel').serialize()); // function sendFeedInput(){ // var number = document.getElementById("number").value; // var message; // // if (isNaN(number) || number < 1 || number > 15) { // message = "Number of items must be between 1 and 15"; // } else { // message = "OK.. validating feed url."; // $.get('controller/gethandler.php' + $('#feedinput').serialize()) // // window.location = window.location; // // } // document.getElementById("message").innerHTML = message; // // } <file_sep><?php require __DIR__.'../../model/users.class.php'; $name = $_POST['name']; $email = $_POST['email']; $password = $_POST['<PASSWORD>']; $register = new Users(); if(!$register->isUserExists($name, $email)){ $register->register($name, $email, $password); echo "Registration succesful"; header('refresh:2; url=../index.php'); } else{ echo "User or email already exists"; // header('refresh:2; url=../index.php'); } <file_sep><?php if(!isset($_SESSION)) session_start(); ?> <h2><?= $rsscontent->getChannel();?></h2> <?php for($i=0; $i < $_SESSION['number']; $i++): foreach($rsscontent as $item):?> <h4> <a href="<?= $item[$i]->link ?>" target="_blank"><?=$item[$i]->title?> </a></h4> <p><?= $item[$i]->description?></p> <p><?= substr($item[$i]->time, 0, -5)?></p> <?php endforeach; endfor; else: ?> <p>Please select rss channel</p> <?php endif; ?> <file_sep><?php require_once __DIR__ . '../../model/rssitem.class.php'; class RssFeed { public $items = array(); private $channel; public function __construct($url) { $x = simplexml_load_file($url); foreach ($x->channel->item as $item) { $post = new RssItem(); $post->title = $item->title; $post->description = $item->description; $post->link = $item->link; $post->time = $item->pubDate; $this->items[] = $post; } $this->channel = $x->channel->title; } public function getChannel() { return $this->channel; } } <file_sep><?php session_start(); require __DIR__ . '../../application/helpers.class.php'; Helpers::addUpdate(); session_unset(); header("Location: ../index.php"); <file_sep><?php require __DIR__ . '../../model/rssfeed.class.php'; require __DIR__ . '../../model/rssdb.class.php'; class Helpers{ public static function timeToDisplay($timeSeconds){ /** *2017-03-14 TS: * Accepts seconds and returns formatted time */ $hours = floor($timeSeconds / 3600); $minutes = floor(($timeSeconds / 60) % 60); $seconds = $timeSeconds % 60; return $hours . "h " .$minutes ."min ". $seconds . "sec"; } public static function validateFeed($sFeedURL){ $sValidator = 'http://feedvalidator.org/check.cgi?url='; if($sValidationResponse = file_get_contents($sValidator . urlencode($sFeedURL)) ){ if( stristr( $sValidationResponse , 'This is a valid RSS feed' ) !== false ){ return true; } } return false; } public static function addUpdate(){ if (isset($_SESSION['url']) && isset($_SESSION['number']) && isset($_SESSION['view_started'])) { $previous_session = $_SESSION['url']; $pr_session_ended = date('Y-m-d H:i:s'); $pr_session_duration = strtotime($pr_session_ended) - strtotime($_SESSION['view_started']); unset($_SESSION['view_started']); unset($_SESSION['url']); unset($_SESSION['number']); } else { $previous_session = null; $pr_session_ended = null; $pr_session_duration = null; } if (!self::validateFeed($_POST['channel_url']) || !isset($_SESSION['user_session'])) { echo "RSS feed is not valid"; } else{ $_SESSION['url'] = $_POST['channel_url']; $_SESSION['number'] = $_POST['number']; $_SESSION['view_started'] = date('Y-m-d H:i:s'); $feed = new RssFeed($_SESSION['url']); $savefeed = new Rssdb; if(!empty($previous_session)){ if($savefeed->isFeedExists($_SESSION['url'], $_SESSION['user_session'])){ $savefeed->updateInfo($previous_session, $pr_session_ended, $pr_session_duration, $_SESSION['user_session']); } else { $savefeed->addInfo($feed->getChannel(), $_SESSION['url'], $_SESSION['view_started'], $_SESSION['user_session']); $savefeed->updateInfo($previous_session, $pr_session_ended, $pr_session_duration, $_SESSION['user_session']); } } else{ if(!$savefeed->isFeedExists($_SESSION['url'], $_SESSION['user_session'])){ $savefeed->addInfo($feed->getChannel(), $_SESSION['url'], $_SESSION['view_started'], $_SESSION['user_session']); } } } } } <file_sep><?php if(!isset($_SESSION)) session_start(); if (!isset($_COOKIE['visits'])) $_COOKIE['visits'] = 0; $visits = $_COOKIE['visits'] + 1; setcookie('visits',$visits,time()+3600*24*10); if (!isset($_COOKIE['visit_duration'])) $_COOKIE['visit_duration'] = 1; $visit_time = date("Y-m-d H:i:s"); setcookie('visit_duration', $visit_time, time()+3600*24*10); error_reporting(E_ALL); $site_path = realpath(dirname(__FILE__)); define ('__SITE_PATH', $site_path); include 'includes/init.php'; $registry->router = new router($registry); $registry->router->setPath (__SITE_PATH . '/controller'); $registry->template = new template($registry); $registry->router->loader(); <file_sep><?php session_start(); require __DIR__.'../../model/users.class.php'; $name = $_POST['name']; $password = $_POST['<PASSWORD>']; $login = new Users(); if($login->login($name, $password)) header('Location: ../index.php'); else header('refresh:2; url=../index.php'); <file_sep><?php if(!isset($_SESSION)){ session_start(); } if(isset($_SESSION['user_session'])): ?> <h4> Top 10 channels </h4> <?php for($i=0; $i < 10; $i++): ?> <div class="container-fluid"> <h3> <a href="<?= $stats[$i][2]?>" target="_blank"><?=$i+1 ?>. <?= $stats[$i][0]?></a> </h3> <p>Viewed: <?=Helpers::timeToDisplay($stats[$i][1]) ?></p> </div> <?php endfor; endif; ?> <file_sep><?php class RssItem { public $title; public $description; public $link; public $time; }
2e1ed918102ddf9b237c5125c8463050a3a29fc7
[ "JavaScript", "PHP" ]
17
PHP
tsmilgius/rss_v2
0b61992a69978167fbbca6e7bbbd84ea6ee89640
a59c9dd9a0f9431b34fb5cae51f56e4dd8af491e
refs/heads/master
<repo_name>ydf1362099096/myWeb<file_sep>/src/main/java/top/andypage/page/webpage/dataTransferObject/LoginResultDTO.java package top.andypage.page.webpage.dataTransferObject; public class LoginResultDTO { private Integer code; private String message; public Integer getCode() { return code; } public void setCode(Integer code) { this.code = code; } public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } public static LoginResultDTO okStatus(){ LoginResultDTO loginResultDTO=new LoginResultDTO(); loginResultDTO.setCode(200); loginResultDTO.setMessage("Successful"); return loginResultDTO; } public static LoginResultDTO passwordWrong(){ LoginResultDTO loginResultDTO=new LoginResultDTO(); loginResultDTO.setCode(201); loginResultDTO.setMessage("密码错误"); return loginResultDTO; } public static LoginResultDTO usernameWrong(){ LoginResultDTO loginResultDTO=new LoginResultDTO(); loginResultDTO.setCode(202); loginResultDTO.setMessage("用户不存在"); return loginResultDTO; } public static LoginResultDTO empty(){ LoginResultDTO loginResultDTO=new LoginResultDTO(); loginResultDTO.setCode(203); loginResultDTO.setMessage("用户名和密码不能为空"); return loginResultDTO; } } <file_sep>/src/main/java/top/andypage/page/webpage/controller/ProfileController.java package top.andypage.page.webpage.controller; import com.sun.xml.internal.bind.v2.model.core.ID; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestParam; import top.andypage.page.webpage.Exception.CustomErrorCode; import top.andypage.page.webpage.Exception.CustomException; import top.andypage.page.webpage.Mapper.TopicMapper; import top.andypage.page.webpage.Mapper.UserMapper; import top.andypage.page.webpage.dataTransferObject.PageDTO; import top.andypage.page.webpage.dataTransferObject.topicDTO; import top.andypage.page.webpage.model.Topic; import top.andypage.page.webpage.model.TopicExample; import top.andypage.page.webpage.model.User; import top.andypage.page.webpage.service.TopicService; import javax.servlet.http.HttpServletRequest; import java.util.ArrayList; import java.util.List; @Controller public class ProfileController { @Autowired private TopicService topicService; @Autowired private TopicMapper topicMapper; @Autowired private UserMapper userMapper; @GetMapping("/profile/{action}") public String profile(@PathVariable(name = "action",value = "")String action, @RequestParam(name="page",defaultValue = "1") Integer pageIndex, @RequestParam(name="size",defaultValue = "5") Integer size, HttpServletRequest request, Model model){ Object tempUser=request.getSession().getAttribute("user"); if(tempUser==null){ return "/login3"; } User user=(User)tempUser; System.out.println("ID is "+user.getId()); int reply=0; List<topicDTO> topicDTOS=topicService.myReply(user.getId()); for(topicDTO t:topicDTOS){ reply+=t.getLikeCount(); } model.addAttribute("newReply",reply); if(action.equals("myTopic")){ PageDTO pageDTO=topicService.profilePage(user.getId(),pageIndex,size); model.addAttribute("section","我的话题"); model.addAttribute("pageDTO", pageDTO); model.addAttribute("action", "myTopic"); return "profile"; } else if(action.equals("myViewRecord")){ PageDTO pageDTO=topicService.myViewRec(user); model.addAttribute("section","我的浏览记录"); model.addAttribute("pageDTO", pageDTO); model.addAttribute("action", "myViewRecord"); return "profile_view_record"; }else if(action.equals("myReply")){ PageDTO pageDTO=new PageDTO(); pageDTO.setTopic(topicDTOS); model.addAttribute("section","我的新回复"); model.addAttribute("pageDTO", pageDTO); model.addAttribute("action", "myReply"); return "profile_reply"; }else{ throw new CustomException(CustomErrorCode.PAGE_NOT_EXIST); } } } <file_sep>/src/main/java/top/andypage/page/webpage/dataTransferObject/topicDTO.java package top.andypage.page.webpage.dataTransferObject; import top.andypage.page.webpage.model.Topic; import top.andypage.page.webpage.model.User; import java.util.List; public class topicDTO { private Long id; private String title; private Long createTime; private Long modifiedTime; private Long publisherId; private Integer commentCount; private Integer viewCount; private Integer likeCount; private String tag; private String description; private User user; private List<String> tagList; private List<Topic> relatedTopics; public List<Topic> getRelatedTopics() { return relatedTopics; } public void setRelatedTopics(List<Topic> relatedTopics) { this.relatedTopics = relatedTopics; } public List<String> getTagList() { return tagList; } public void setTagList(List<String> tagList) { this.tagList = tagList; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public Long getCreateTime() { return createTime; } public void setCreateTime(Long createTime) { this.createTime = createTime; } public Long getModifiedTime() { return modifiedTime; } public void setModifiedTime(Long modifiedTime) { this.modifiedTime = modifiedTime; } public long getPublisherId() { return publisherId; } public void setPublisherId(long publisherId) { this.publisherId = publisherId; } public Integer getCommentCount() { return commentCount; } public void setCommentCount(Integer commentCount) { this.commentCount = commentCount; } public Integer getViewCount() { return viewCount; } public void setViewCount(Integer viewCount) { this.viewCount = viewCount; } public Integer getLikeCount() { return likeCount; } public void setLikeCount(Integer likeCount) { this.likeCount = likeCount; } public String getTag() { return tag; } public void setTag(String tag) { this.tag = tag; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public User getUser() { return user; } public void setUser(User user) { this.user = user; } } <file_sep>/src/main/java/top/andypage/page/webpage/controller/LoginController.java package top.andypage.page.webpage.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.*; import top.andypage.page.webpage.Mapper.UserMapper; import top.andypage.page.webpage.dataTransferObject.LoginDTO; import top.andypage.page.webpage.dataTransferObject.LoginResultDTO; import top.andypage.page.webpage.model.User; import top.andypage.page.webpage.model.UserExample; import top.andypage.page.webpage.provider.tokenProvider; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.text.SimpleDateFormat; import java.util.List; @Controller public class LoginController { @Autowired private UserMapper userMapper; @Autowired private tokenProvider newToken; @GetMapping("/login") public String login(){ return "login3"; } //"loginControl" @PostMapping(value="/signin") public String signin(@RequestParam("username") String username, @RequestParam("password") String password, HttpServletRequest request, HttpServletResponse response){ if(!username.isEmpty()&&!password.isEmpty()){ UserExample userExample=new UserExample(); userExample.createCriteria().andUsernameEqualTo(username); List<User> users= userMapper.selectByExample(userExample); System.out.println(users.get(0).getUsername()); if (users.size() != 0) { User user=users.get(0); System.out.println(user.getUsername()); if(user.getPassword().equals(password)){ String token=newToken.makeToken(); UserExample newExample=new UserExample(); newExample.createCriteria().andTokenEqualTo(token); newExample.createCriteria().andModifiedTimeEqualTo(System.currentTimeMillis()); user.setToken(token); user.setModifiedTime(System.currentTimeMillis()); int avc=userMapper.updateByPrimaryKey(user); System.out.println("charu"+avc); SimpleDateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); request.getSession().setAttribute("user", user); request.getSession().setAttribute("username", username); request.getSession().setAttribute("avatar", user.getAvatar()); String m_time=dateformat.format(System.currentTimeMillis()); request.getSession().setAttribute("modified_time", m_time); String c_time=dateformat.format(user.getCreateTime()); request.getSession().setAttribute("create_time", c_time); request.getSession().setAttribute("wrongInfo", null); Cookie cookie=new Cookie("tokenForAndy",token); cookie.setMaxAge(30 * 60); response.addCookie(cookie); return "redirect:/"; }else{ request.getSession().setAttribute("wrongInfo", "sthwrong"); } } request.getSession().setAttribute("wrongInfo", "sthwrong"); return "redirect:login"; }else{ return "redirect:login"; } } @ResponseBody @RequestMapping(value= "/signinWithTopic", method = RequestMethod.POST) public Object post(@RequestBody LoginDTO loginDTO, HttpServletRequest request, HttpServletResponse response){ System.out.println("receive request"); System.out.println(loginDTO.getPassword()); System.out.println(loginDTO.getUsername()); String username=loginDTO.getUsername(); String password=<PASSWORD>(); if(!username.isEmpty()&&!password.isEmpty()){ UserExample userExample=new UserExample(); userExample.createCriteria().andUsernameEqualTo(username); List<User> users= userMapper.selectByExample(userExample); System.out.println(users.get(0).getUsername()); if (users.size() != 0) { User user=users.get(0); System.out.println(user.getUsername()); if(user.getPassword().equals(password)){ String token=newToken.makeToken(); UserExample newExample=new UserExample(); newExample.createCriteria().andTokenEqualTo(token); newExample.createCriteria().andModifiedTimeEqualTo(System.currentTimeMillis()); user.setToken(token); user.setModifiedTime(System.currentTimeMillis()); int avc=userMapper.updateByPrimaryKey(user); System.out.println("charu"+avc); SimpleDateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); request.getSession().setAttribute("user", user); request.getSession().setAttribute("username", username); request.getSession().setAttribute("avatar", user.getAvatar()); String m_time=dateformat.format(System.currentTimeMillis()); request.getSession().setAttribute("modified_time", m_time); String c_time=dateformat.format(user.getCreateTime()); request.getSession().setAttribute("create_time", c_time); request.getSession().setAttribute("wrongInfo", null); Cookie cookie=new Cookie("tokenForAndy",token); cookie.setMaxAge(30 * 60); response.addCookie(cookie); return LoginResultDTO.okStatus(); }else{ return LoginResultDTO.passwordWrong(); } } return LoginResultDTO.usernameWrong(); }else{ return LoginResultDTO.empty(); } } @GetMapping(value="/logout") public String logout(@CookieValue("tokenForAndy") String token, HttpServletRequest request, HttpServletResponse response){ System.out.println("logout called"); UserExample userExample=new UserExample(); userExample.createCriteria().andTokenEqualTo(token); List<User> users= userMapper.selectByExample(userExample); if (users.size() != 0) { User user=users.get(0); UserExample tempUserExample=new UserExample(); tempUserExample.createCriteria().andUsernameEqualTo(token); User tempUser=new User(); tempUser.setToken(""); user.setToken(""); userMapper.updateByPrimaryKey(user); //userMapper.updateByExample(tempUser,tempUserExample); } request.getSession().setAttribute("user", null); request.getSession().setAttribute("username", null); Cookie cookie = new Cookie("tokenForAndy", null); cookie.setMaxAge(0); response.addCookie(cookie); return "redirect:/"; } } <file_sep>/src/main/java/top/andypage/page/webpage/dataTransferObject/GithubUser.java package top.andypage.page.webpage.dataTransferObject; public class GithubUser { private String name; private long id; private String bio; } <file_sep>/src/main/java/top/andypage/page/webpage/Exception/CustomErrorCode.java package top.andypage.page.webpage.Exception; public enum CustomErrorCode implements ICustomErrorCode { USER_NOT_LOGIN(2001, "用户未登陆,请先登陆!"), TOPIC_NOT_FOUND(2002,"话题不存在或已被删除!"), SYSTEM_ERROR(2003,"系统出错,请稍后再试!"), PAGE_NOT_EXIST(2004,"您访问的页面不存在!"), REPLY_TARGET_NOT_EXIST(2005,"您回复的问题不存在!"), REPLY_CONTENT_NULL(2006,"回复不能为空!"); private String message; private Integer code; CustomErrorCode(Integer code, String message) { this.code=code; this.message = message; } @Override public String getMessage() { return message; } @Override public Integer getCode() { return code; } } <file_sep>/src/main/java/top/andypage/page/webpage/service/TopicService.java package top.andypage.page.webpage.service; import org.apache.ibatis.session.RowBounds; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import top.andypage.page.webpage.Mapper.TopicMapper; import top.andypage.page.webpage.Mapper.UserMapper; import top.andypage.page.webpage.dataTransferObject.PageDTO; import top.andypage.page.webpage.dataTransferObject.topicDTO; import top.andypage.page.webpage.model.Topic; import top.andypage.page.webpage.model.TopicExample; import top.andypage.page.webpage.model.User; import java.util.ArrayList; import java.util.List; @Service public class TopicService { @Autowired private TopicMapper topicMapper; @Autowired private UserMapper userMapper; public PageDTO listPage(Integer page, Integer size, Integer startIndex) { RowBounds rowBounds=new RowBounds(startIndex,size); TopicExample topicExample=new TopicExample(); TopicExample.Criteria criteria= topicExample.createCriteria(); topicExample.setOrderByClause("CREATE_TIME DESC"); List<Topic> topics=topicMapper.selectByExampleWithBLOBsWithRowbounds(topicExample,rowBounds); Integer fullSize=(int)topicMapper.countByExample(new TopicExample()); List<topicDTO> topicDTOS=new ArrayList<>(); List<Integer> topicPages=new ArrayList<>(); Integer fullPage=fullSize%size==0?fullSize/size:fullSize/size+1; for(Topic topic:topics){ User user=userMapper.selectByPrimaryKey(topic.getPublisherId()); topicDTO topicDto=new topicDTO(); BeanUtils.copyProperties(topic,topicDto); topicDto.setUser(user); topicDTOS.add(topicDto); } if(page<=2){ Integer wholePage=Math.min(5,fullPage); for(int i = 0;i<wholePage;i++){ topicPages.add(i+1); } }else if(page>=fullPage-2){ Integer wholePage=Math.max(1,fullPage-4); for(int i=fullPage;i>=wholePage;i--){ topicPages.add(fullPage-i+2); } }else{ topicPages.add(page-2); topicPages.add(page-1); topicPages.add(page); topicPages.add(page+1); topicPages.add(page+2); } PageDTO pageDTO=new PageDTO(); pageDTO.setCurrentPage(page); pageDTO.setPageShow(topicPages); pageDTO.setTopic(topicDTOS); pageDTO.setFinalPageIndex(fullPage); if(page==1){ pageDTO.setPrevButton(false); } if(page==fullPage){ pageDTO.setNextButton(false); } if(topicPages.contains(1)){ pageDTO.setFirstButton(false); } if(topicPages.contains(fullPage)){ pageDTO.setFinalButton(false); } return pageDTO; } public PageDTO listHotestPage(Integer page, Integer size, Integer startIndex) { RowBounds rowBounds=new RowBounds(startIndex,size); TopicExample topicExample=new TopicExample(); TopicExample.Criteria criteria= topicExample.createCriteria(); topicExample.setOrderByClause("VIEW_COUNT DESC,CREATE_TIME DESC"); List<Topic> topics=topicMapper.selectByExampleWithBLOBsWithRowbounds(topicExample,rowBounds); Integer fullSize=(int)topicMapper.countByExample(new TopicExample()); List<topicDTO> topicDTOS=new ArrayList<>(); List<Integer> topicPages=new ArrayList<>(); Integer fullPage=fullSize%size==0?fullSize/size:fullSize/size+1; Integer replyCount=0; for(Topic topic:topics){ User user=userMapper.selectByPrimaryKey(topic.getPublisherId()); topicDTO topicDto=new topicDTO(); BeanUtils.copyProperties(topic,topicDto); topicDto.setUser(user); topicDTOS.add(topicDto); replyCount+=topic.getLikeCount(); } if(page<=2){ Integer wholePage=Math.min(5,fullPage); for(int i = 0;i<wholePage;i++){ topicPages.add(i+1); } }else if(page>=fullPage-2){ Integer wholePage=Math.max(1,fullPage-4); for(int i=fullPage;i>=wholePage;i--){ topicPages.add(fullPage-i+2); } }else{ topicPages.add(page-2); topicPages.add(page-1); topicPages.add(page); topicPages.add(page+1); topicPages.add(page+2); } PageDTO pageDTO=new PageDTO(); pageDTO.setCurrentPage(page); pageDTO.setPageShow(topicPages); pageDTO.setTopic(topicDTOS); pageDTO.setFinalPageIndex(fullPage); pageDTO.setNewReplyCount(replyCount); if(page==1){ pageDTO.setPrevButton(false); } if(page==fullPage){ pageDTO.setNextButton(false); } if(topicPages.contains(1)){ pageDTO.setFirstButton(false); } if(topicPages.contains(fullPage)){ pageDTO.setFinalButton(false); } return pageDTO; } public topicDTO topicInfo(Long id){ topicDTO topicDto=new topicDTO(); Topic topic=topicMapper.selectByPrimaryKey(id); User user=userMapper.selectByPrimaryKey(topic.getPublisherId()); BeanUtils.copyProperties(topic,topicDto); topicDto.setUser(user); return topicDto; } public PageDTO myViewRec(User user){ List<topicDTO> myTopic=new ArrayList(); String viewRec=user.getViewrecord(); String[] IDList=viewRec.split("@"); PageDTO pageDTO=new PageDTO(); if(viewRec!=""){ for(int i=0;i<IDList.length;i++){ Long id= Long.valueOf(IDList[i]); Topic topic=topicMapper.selectByPrimaryKey(id); User user3=userMapper.selectByPrimaryKey(topic.getPublisherId()); topicDTO topicDto=new topicDTO(); BeanUtils.copyProperties(topic,topicDto); topicDto.setUser(user3); myTopic.add(topicDto); } pageDTO.setTopic(myTopic); }else{ } return pageDTO; } public PageDTO profilePage(Long userId,Integer page,Integer size){ Integer startIndex=(page-1)*size; RowBounds rowBounds=new RowBounds(startIndex,size); TopicExample topicExample=new TopicExample(); topicExample.createCriteria().andPublisherIdEqualTo(userId); topicExample.setOrderByClause("'createTime' DESC"); List<Topic> topics=topicMapper.selectByExampleWithBLOBsWithRowbounds(topicExample,rowBounds); Integer fullSize=(int)topicMapper.countByExample(topicExample); List<topicDTO> topicDTOS=new ArrayList<>(); List<Integer> topicPages=new ArrayList<>(); Integer fullPage=fullSize%size==0?fullSize/size:fullSize/size+1; for(Topic topic:topics){ User user=userMapper.selectByPrimaryKey(topic.getPublisherId()); user.setAvatar("/"+user.getAvatar()); topicDTO topicDto=new topicDTO(); BeanUtils.copyProperties(topic,topicDto); topicDto.setUser(user); topicDTOS.add(topicDto); } if(page<=2){ Integer wholePage=Math.min(5,fullPage); for(int i = 0;i<wholePage;i++){ topicPages.add(i+1); } }else if(page>=fullPage-2){ Integer wholePage=Math.max(1,fullPage-4); for(int i=fullPage;i>=wholePage;i--){ topicPages.add(fullPage-i+1); } }else{ Integer wholePageMax=Math.min(5,fullPage); Integer wholePageMin=Math.max(1,fullPage-4); for(int i =page-2;i<=page+2;i++){ if(i>=wholePageMin&&i<=wholePageMax){ topicPages.add(i); } } } PageDTO pageDTO=new PageDTO(); pageDTO.setCurrentPage(page); pageDTO.setPageShow(topicPages); pageDTO.setTopic(topicDTOS); pageDTO.setFinalPageIndex(fullPage); if(page==1){ pageDTO.setPrevButton(false); } if(page==fullPage){ pageDTO.setNextButton(false); } if(topicPages.contains(1)){ pageDTO.setFirstButton(false); } if(topicPages.contains(fullPage)){ pageDTO.setFinalButton(false); } return pageDTO; }; public List<topicDTO> myReply(Long id) { User user=userMapper.selectByPrimaryKey(id); TopicExample topicExample=new TopicExample(); topicExample.createCriteria().andPublisherIdEqualTo(id); List<Topic> topics=topicMapper.selectByExample(topicExample); List<topicDTO> topicDTOS=new ArrayList<>(); for(Topic topic:topics){ if(topic.getLikeCount()!=0){ topicDTO topicDto=new topicDTO(); BeanUtils.copyProperties(topic,topicDto); topicDto.setUser(user); topicDTOS.add(topicDto); } } return topicDTOS; } } <file_sep>/src/main/java/top/andypage/page/webpage/model/User.java package top.andypage.page.webpage.model; public class User { /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column USER.ID * * @mbg.generated Sun Apr 12 13:52:39 CST 2020 */ private Long id; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column USER.USERNAME * * @mbg.generated Sun Apr 12 13:52:39 CST 2020 */ private String username; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column USER.PASSWORD * * @mbg.generated Sun Apr 12 13:52:39 CST 2020 */ private String password; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column USER.CREATE_TIME * * @mbg.generated Sun Apr 12 13:52:39 CST 2020 */ private Long createTime; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column USER.MODIFIED_TIME * * @mbg.generated Sun Apr 12 13:52:39 CST 2020 */ private Long modifiedTime; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column USER.TOKEN * * @mbg.generated Sun Apr 12 13:52:39 CST 2020 */ private String token; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column USER.AVATAR * * @mbg.generated Sun Apr 12 13:52:39 CST 2020 */ private String avatar; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column USER.VIEWRECORD * * @mbg.generated Sun Apr 12 13:52:39 CST 2020 */ private String viewrecord; /** * This method was generated by MyBatis Generator. * This method returns the value of the database column USER.ID * * @return the value of USER.ID * * @mbg.generated Sun Apr 12 13:52:39 CST 2020 */ public Long getId() { return id; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column USER.ID * * @param id the value for USER.ID * * @mbg.generated Sun Apr 12 13:52:39 CST 2020 */ public void setId(Long id) { this.id = id; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column USER.USERNAME * * @return the value of USER.USERNAME * * @mbg.generated Sun Apr 12 13:52:39 CST 2020 */ public String getUsername() { return username; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column USER.USERNAME * * @param username the value for USER.USERNAME * * @mbg.generated Sun Apr 12 13:52:39 CST 2020 */ public void setUsername(String username) { this.username = username == null ? null : username.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column USER.PASSWORD * * @return the value of USER.PASSWORD * * @mbg.generated Sun Apr 12 13:52:39 CST 2020 */ public String getPassword() { return password; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column USER.PASSWORD * * @param password the value for USER.PASSWORD * * @mbg.generated Sun Apr 12 13:52:39 CST 2020 */ public void setPassword(String password) { this.password = password == null ? null : password.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column USER.CREATE_TIME * * @return the value of USER.CREATE_TIME * * @mbg.generated Sun Apr 12 13:52:39 CST 2020 */ public Long getCreateTime() { return createTime; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column USER.CREATE_TIME * * @param createTime the value for USER.CREATE_TIME * * @mbg.generated Sun Apr 12 13:52:39 CST 2020 */ public void setCreateTime(Long createTime) { this.createTime = createTime; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column USER.MODIFIED_TIME * * @return the value of USER.MODIFIED_TIME * * @mbg.generated Sun Apr 12 13:52:39 CST 2020 */ public Long getModifiedTime() { return modifiedTime; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column USER.MODIFIED_TIME * * @param modifiedTime the value for USER.MODIFIED_TIME * * @mbg.generated Sun Apr 12 13:52:39 CST 2020 */ public void setModifiedTime(Long modifiedTime) { this.modifiedTime = modifiedTime; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column USER.TOKEN * * @return the value of USER.TOKEN * * @mbg.generated Sun Apr 12 13:52:39 CST 2020 */ public String getToken() { return token; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column USER.TOKEN * * @param token the value for USER.TOKEN * * @mbg.generated Sun Apr 12 13:52:39 CST 2020 */ public void setToken(String token) { this.token = token == null ? null : token.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column USER.AVATAR * * @return the value of USER.AVATAR * * @mbg.generated Sun Apr 12 13:52:39 CST 2020 */ public String getAvatar() { return avatar; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column USER.AVATAR * * @param avatar the value for USER.AVATAR * * @mbg.generated Sun Apr 12 13:52:39 CST 2020 */ public void setAvatar(String avatar) { this.avatar = avatar == null ? null : avatar.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column USER.VIEWRECORD * * @return the value of USER.VIEWRECORD * * @mbg.generated Sun Apr 12 13:52:39 CST 2020 */ public String getViewrecord() { return viewrecord; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column USER.VIEWRECORD * * @param viewrecord the value for USER.VIEWRECORD * * @mbg.generated Sun Apr 12 13:52:39 CST 2020 */ public void setViewrecord(String viewrecord) { this.viewrecord = viewrecord == null ? null : viewrecord.trim(); } }<file_sep>/src/main/java/top/andypage/page/webpage/configPkg/SessionInterceptor.java package top.andypage.page.webpage.configPkg; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.web.servlet.HandlerInterceptor; import org.springframework.web.servlet.ModelAndView; import top.andypage.page.webpage.Mapper.UserMapper; import top.andypage.page.webpage.model.User; import top.andypage.page.webpage.model.UserExample; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.text.SimpleDateFormat; import java.util.List; @Service public class SessionInterceptor implements HandlerInterceptor { @Autowired private UserMapper userMapper; @Override public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { Cookie cok[]=request.getCookies(); System.out.println(request.getSession().getAttribute("username")); if(cok!=null&&cok.length!=0) { for (Cookie cookie : cok) { if (cookie.getName().equals("tokenForAndy")) { System.out.println("you cookie"); String token = cookie.getValue(); UserExample userExample=new UserExample(); userExample.createCriteria().andTokenEqualTo(token); List<User> users= userMapper.selectByExample(userExample); if (users.size() != 0) { User user=users.get(0); SimpleDateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); String m_time=dateformat.format(user.getModifiedTime()); String c_time=dateformat.format(user.getCreateTime()); request.getSession().setAttribute("user", user); request.getSession().setAttribute("userId", user.getId()); request.getSession().setAttribute("username", user.getUsername()); request.getSession().setAttribute("modified_time", m_time); request.getSession().setAttribute("create_time", c_time); request.getSession().setAttribute("avatar", user.getAvatar()); break; } } } } return true; } @Override public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) throws Exception { } @Override public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) throws Exception { } } <file_sep>/src/main/resources/application.properties server.port=9876 spring.datasource.url=jdbc:h2:~/myWebPage spring.datasource.username=andy spring.datasource.password=<PASSWORD> spring.datasource.driver-class-name=org.h2.Driver spring.mvc.static-path-pattern=/** spring.resources.static-locations=classpath:/static/avatarImg/,classpath:/static/css/,classpath:/static/,classpath:/static/js/ mybatis.mapper-locations=classpath:mapper/*.xml mybatis.type-aliases-package=top.andypage.page.webpage.model<file_sep>/src/main/java/top/andypage/page/webpage/controller/IndexController.java package top.andypage.page.webpage.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestParam; import top.andypage.page.webpage.dataTransferObject.PageDTO; import top.andypage.page.webpage.service.TopicService; import javax.servlet.http.HttpServletRequest; @Controller public class IndexController { @Autowired private TopicService topicService; @GetMapping("/") public String hello(HttpServletRequest request, Model model, @RequestParam(value = "page",defaultValue = "1") Integer pageIndex, @RequestParam(value = "topicCount",defaultValue = "10") Integer topicNum){ model.addAttribute("username",request.getSession().getAttribute("Username")); Integer startIndex=(pageIndex-1)*topicNum; PageDTO pageDTO=topicService.listPage(pageIndex,topicNum,startIndex); model.addAttribute("pageDTO", pageDTO); return "index"; } @GetMapping("/hottest") public String hottest(HttpServletRequest request, Model model){ Integer pageIndex=1; Integer topicNum=20; model.addAttribute("username",request.getSession().getAttribute("username")); Integer startIndex=(pageIndex-1)*topicNum; PageDTO pageDTO=topicService.listHotestPage(pageIndex,topicNum,startIndex); model.addAttribute("pageDTO", pageDTO); return "hottest"; } } <file_sep>/src/main/java/top/andypage/page/webpage/controller/PublishController.java package top.andypage.page.webpage.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestParam; import top.andypage.page.webpage.Mapper.TopicMapper; import top.andypage.page.webpage.Mapper.UserMapper; import top.andypage.page.webpage.model.Topic; import top.andypage.page.webpage.model.User; import top.andypage.page.webpage.model.UserExample; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.util.List; @Controller public class PublishController { @Autowired private UserMapper userMapper; @Autowired private TopicMapper topicMapper; @GetMapping("/publish") public String returnPublish(){ return "publish"; } @PostMapping(value="/publish") public String publish(@RequestParam("topicInput") String topicInput, @RequestParam("description") String description, @RequestParam(value = "typeSelect",defaultValue = "无") String typeSelect, HttpServletRequest request, HttpServletResponse response, Model model){ model.addAttribute("publishWrong",null); System.out.println(typeSelect); Cookie cok[]=request.getCookies(); for(Cookie cookie:cok){ if(cookie.getName().equals("tokenForAndy")){ String token=cookie.getValue(); UserExample userExample=new UserExample(); userExample.createCriteria().andTokenEqualTo(token); List<User> users=userMapper.selectByExample(userExample); System.out.println(users.size()); if(users.size()!=0) { User user=users.get(0); Topic topic=new Topic(); topic.setTitle(topicInput); topic.setDescription(description); topic.setCreateTime(System.currentTimeMillis()); topic.setModifiedTime(topic.getCreateTime()); topic.setTag(typeSelect); topic.setPublisherId(user.getId()); topic.setCommentCount(0); topic.setLikeCount(0); topic.setViewCount(0); topicMapper.insert(topic); return "redirect:/"; } } } System.out.println("Chucuo"); model.addAttribute("publishWrong","please Login first!"); return "publish"; } }
b5e0abe18927776496b19491788c06ea049924a8
[ "Java", "INI" ]
12
Java
ydf1362099096/myWeb
0edb32a3c75e8e41e40d6d08c8063238305ccd63
bdef7ecd320530b559c164f386703bf1dc1b89c4
refs/heads/master
<file_sep>source 'http://rubygems.org' group :development, :test do if RUBY_VERSION =~ /1.9/ gem 'ruby-debug19' else gem 'ruby-debug' end end gem 'rails', '3.0.3' gem 'ruby-mysql' gem 'sqlite3' #gem 'mysql' gem 'faraday' gem 'taps' gem 'haml' gem 'formtastic' gem 'rails3-generators' gem 'authlogic', :git => 'git://github.com/odorcicd/authlogic.git', :branch => 'rails3' gem 'dynamic_form' gem 'prototype_legacy_helper', '0.0.0', :git => 'git://github.com/rails/prototype_legacy_helper.git' gem 'moonshado-sms' gem "paperclip", "~> 2.3" gem "tiny_mce", "~> 0.1.4" gem "fourmer", ">= 0" # Deploy with Capistrano #gem 'capistrano' <file_sep>class PaymentsController < ApplicationController include OpenFlashChart before_filter :require_user, :except => [:home] def home render :nothing => true, :layout => "home" end def index @payments = Payment.find(:all, :conditions => {:payee_id => current_user.payees}) @deposits = current_user.deposits.find(:all) @graph = Graph.new(bar_graph_payments_path, 605, 350, :base_path => '/') end def new @payment = Payment.new end def create @payment = Payment.new(params[:payment]) if @payment.save flash[:notice] = "Recurring Payment has been added successfully!" redirect_to payments_path else render :action => :new end end def edit @payment = Payment.find_by_id(params[:id]) end def update @payment = Payment.find_by_id(params[:id]) if @payment.update_attributes(params[:payment]) flash[:notice] = "Recurring Payment updated!" redirect_to payments_path else render :action => :edit end end def destroy @payment = Payment.find_by_id(params[:id]) @payment.destroy @graph = Graph.new(bar_graph_payments_path, 1000, 1000, :base_path => '/') if request.xhr? render :update do |page| page.remove "payment_#{params[:id]}" page.replace_html "graph", "#{raw @graph.to_html}" end end end def bar_graph deposits = current_user.deposits_for_next_six_months payments = current_user.payments_for_next_six_months max_range = deposits.max + payments.max bar1 = Bar.new bar1.text = "Deposits" bar1.colour = '#076f44' bar1.values = deposits bar2 = Bar.new bar2.text = "Payments" bar2.color = '#cd162b' bar2.values = payments x_axis = XAxis.new #x_axis.labels = ['1','1','1','1','1','1'] #puts "------------------------------------------#{current_user.dates_for_next_six_months.count}" x_axis.labels = current_user.dates_for_next_six_months.map{|d| d.strftime('%m/%d')} x_axis.colour = '#818D9D' x_axis.set_range(0, 12, 1) y_axis = YAxis.new y_axis.colour = '#818D9D' y_axis.set_range(0, max_range, 1000) chart = OpenFlashChart.new chart.add_element(bar1) chart.add_element(bar2) chart.x_axis = x_axis chart.y_axis = y_axis render :text => chart.to_s end end <file_sep>require 'faraday' conn = Faraday.new(:url => 'https://www.marqeta.com') do |faraday| faraday.request :url_encoded # form-encode POST params #faraday.response :logger # log requests to STDOUT faraday.adapter Faraday.default_adapter # make requests with Net::HTTP end ## POST ## # post payload as JSON instead of "www-form-urlencoded" encoding: conn.post do |req| req.url '/foursquarepush' req.headers['Content-Type'] = 'application/json' req.body = <<-eos { "id":"4fe963a64fc664298edf7eb4", "createdAt":1340695462, "type":"checkin", "shout":"I'm in your consumers, testing your push API!", "timeZone":"UTC", "timeZoneOffset":0, "user":{ "id":"1", "firstName":"Jimmy", "lastName":"Foursquare", "relationship":"self", "photo":"https:\/\/is0.4sqi.net\/userpix_thumbs\/S54EHRPJAHQK0VHP.jpg", "tips":{"count":0}, "lists": {"groups": [ { "type":"created", "count":1, "items":[]}] }, "gender":"male", "homeCity":"New York, NY", "bio":"", "contact":{"email":"<EMAIL>"} }, "venue":{ "id":"4ef0e7cf7beb5932d5bdeb4e", "name":"foursquare HQ", "contact":{"twitter":"foursquare"}, "location":{"address":"568 Broadway (10th Fl)", "crossStreet":"at Prince St.", "lat":40.72438048356713, "lng":-73.9974045753479, "postalCode":"10012", "city":"New York", "state":"NY", "country":"United States", "cc":"US" }, "categories": [ {"id":"4bf58dd8d48988d125941735", "name":"Tech Startup", "pluralName":"Tech Startups", "shortName":"Tech Startup", "icon":"https:\/\/foursquare.com\/img\/categories\/shops\/technology.png", "parents":["Professional & Other Places","Offices"], "primary":true} ], "verified":true, "stats":{"checkinsCount":12029,"usersCount":2779,"tipCount":97}, "url":"https:\/\/foursquare.com", "likes":{"count":0,"groups":[]},"beenHere":{"count":0}} } eos end <file_sep>class UsersController < ApplicationController before_filter :require_no_user, :only => [:new, :create] before_filter :require_user, :only => [:show, :edit, :update, :email_alert, :foursquare_callback] def new @user = User.new render :layout => "login" end def create @user = User.new(params[:user]) if @user.save_without_session_maintenance @user.deliver_activation_instructions! flash[:notice] = "Your account has been created. Please check your e-mail for your account activation instructions!" redirect_to new_user_session_path else render :action => :new, :layout => "login" end end def show @user = @current_user @merchant = initialize_foursquare end def edit @user = @current_user end def update @user = @current_user # makes our views "cleaner" and more consistent if @user.update_attributes(params[:user]) flash[:notice] = "Account updated!" redirect_to user_path(@user) else render :action => :edit end end def foursquare_callback merchant = initialize_foursquare access_token = merchant.access_token(params[:code], CALLBACK_URL) @user = @current_user if @user.update_attribute('foursquare_token', access_token) flash[:notice] = "Foursquare information saved successfully!" redirect_to user_path(@user) else render :text => 'failed' end end def email_alert @user = @current_user end def initialize_foursquare Foursquare::Merchant::Consumer.new(CLIENT_ID, CLIENT_SECRET_ID) end end<file_sep>class Payment < ActiveRecord::Base belongs_to :payee has_many :transactions, :as => :payable validates_presence_of :payee, :delivery_time, :amount, :number_of_payments DELIVERY_TIME = ["15th day of the month", "last day of the month", "both"] def transaction_dates middle_of_month = Date.parse("15.#{created_at.month}.#{created_at.year}") dates = [] (1..number_of_payments.to_i+1).each do |num| break if dates.length >= number_of_payments.to_i unless self.created_at.day > 15 and num == 1 if delivery_time == DELIVERY_TIME[0] or delivery_time == DELIVERY_TIME[2] dates << middle_of_month end end if delivery_time == DELIVERY_TIME[1] or delivery_time == DELIVERY_TIME[2] dates << middle_of_month.end_of_month end # move date to next month middle_of_month = middle_of_month.next_month end return dates end def process_payment t = self.transactions.new t.amount = self.amount t.reference_number = Transaction.generate_reference_number t.status = true t.save n = Integer(self.number_of_payments) - 1 self.number_of_payments = n self.save end def self.generate_transactions_for_today self.all.select{|p| p.transaction_dates.include?(Date.today + 5)}.each do |trans| trans.process_payment end end end <file_sep>class CreatePayees < ActiveRecord::Migration def self.up create_table :payees do |t| t.string :name, :null => false t.integer :user_id, :null => false t.string :address_1 t.string :address_2 t.string :city t.string :state t.string :zipcode t.string :phone t.string :name_on_bill t.string :account_number t.string :nick_name t.timestamps end end def self.down drop_table :payees end end <file_sep>module OpenFlashChart class Graph attr_accessor :ofc_url, :width, :height, :div_name, :swf_name, :base_path def initialize(url, width = 600, height = 400, options = {}) @width, @height = width, height @use_swfobject = options[:swfobject] || false @base_path = options[:base_path] || "/" @swf_name = options[:swf_name] || "open-flash-chart.swf" random_hash = ActiveSupport::SecureRandom.hex(7) @div_name = options[:div_name] || "flash_chart_#{random_hash}" @ofc_url = CGI::escape(url) end def swf_path(swf_file_name) File.join(@base_path, swf_file_name) end def to_html(create_div = true) html = [] html << '<script type="text/javascript" src="/javascripts/swfobject.js"></script>' if @use_swfobject html << "<div id='#{@div_name}'></div>" if create_div html << "<script type='text/javascript'> swfobject.embedSWF('#{swf_path(@swf_name)}', '#{@div_name}', '#{@width}', '#{@height}', '9.0.0', '#{swf_path('expressInstall.swf')}', {'data-file':'#{@ofc_url}'}); </script>" html.join end def save_image_popup_script(options = {}) id = options[:id] || @div_name <<-OUTPUT <script type="text/javascript"> OFC = {}; OFC.jquery = { name: "jQuery", version: function(src) { return $('#'+ src)[0].get_version() }, rasterize: function (src, dst) { $('#'+ dst).replaceWith(OFC.jquery.image(src)) }, image: function(src) { return "<img src='data:image/png;base64," + $('#'+src)[0].get_img_binary() + "' />"}, popup: function(src) { var img_win = window.open('', "Charts: Export as Image") with(img_win.document) { write("<html><head><title>Charts: Export as Image<\/title><\/head><body>" + OFC.jquery.image(src) + "<\/body><\/html>") } // stop the 'loading...' message img_win.document.close(); } } // Using an object as namespaces is JS Best Practice. I like the Control.XXX style. if (typeof(Control == "undefined")) {var Control = {OFC: OFC.jquery}} // By default, right-clicking on OFC and choosing "save image locally" calls this function. // You are free to change the code in OFC and call my wrapper (Control.OFC.your_favorite_save_method) // function save_image() { alert(1); Control.OFC.popup('my_chart') } function save_image() { OFC.jquery.popup('#{id}') } </script> OUTPUT end def save_image_button(title, options = {}) debug = options[:debug] ? 'true' : 'false' post_url = options[:url] || '/' html = [] html << "<input type='button' value='#{title}' onclick='post_image(#{debug});return false;' />" html << save_image_script(post_url, options) html.join end def save_image_script(post_url, options = {}) id = options[:id] || @div_name <<-OUTPUT <script type="text/javascript"> #{findswf_script} function post_image(debug) { var url = '#{post_url}'; var ofc = findSWF('#{id}'); var x = ofc.post_image(url, '#{options[:post_image_callback_method]}', debug ); } function ofc_ready() { #{options[:ofc_ready_callback_method]}; } </script> OUTPUT end def findswf_script <<-OUTPUT function findSWF(movieName) { if (navigator.appName.indexOf("Microsoft")!= -1) { return window[movieName]; } else { return document[movieName]; } } OUTPUT end end end <file_sep>class CommentsController < ApplicationController before_filter :admin_login_required, :only => [:destroy] def create @article = Article.find(params[:article_id]) @comment = @article.comments.build(params[:comment]) respond_to do |format| if @comment.save format.html { redirect_to(@article, :notice => 'Comment was successfully created.') } format.xml { render :xml => @article, :status => :created, :location => @article } else format.html { redirect_to(@article, :notice => 'Comment could not be saved. Please fill in all fields')} format.xml { render :xml => @comment.errors, :status => :unprocessable_entity } end end end def destroy @comment = Comment.find(params[:id]) @article = Article.find(params[:article_id]) @comment.destroy respond_to do |format| format.html { redirect_to(@article, :notice => 'Comment was successfully deleted.') } format.xml { head :ok } end end end <file_sep>class Payee < ActiveRecord::Base belongs_to :user has_many :payments validates_presence_of :name, :account_number validates_uniqueness_of :name, :account_number, :scope => :user_id end <file_sep>class CreateFoursquareVenues < ActiveRecord::Migration def self.up create_table :foursquare_venues do |t| t.string :venue_id t.string :venue_name t.timestamps end end def self.down drop_table :foursquare_venues end end <file_sep>class Contact < ActionMailer::Base if Rails.env == 'development' default :from => "<EMAIL>" default_url_options[:host] = "localhost:3000" ADMIN_RECIPIENTS = ['<EMAIL>'] end if Rails.env == 'production' default :from => "<EMAIL>" default_url_options[:host] = "mymoneymomma.com" ADMIN_RECIPIENTS = ['<EMAIL>'] end def notification(name, email, message) @name = name @message = message @email = email mail :to => ADMIN_RECIPIENTS, :from => email, :subject => "Contact request from: #{name}" end end<file_sep>class DepositsController < ApplicationController before_filter :require_user def index end def new @deposit = Deposit.new end def create @deposit = current_user.deposits.new(params[:deposit]) if @deposit.save flash[:notice] = "Financial Info has been added successfully!" redirect_to payments_path else render :action => :new end end def edit @deposit = current_user.deposits.find_by_id(params[:id]) end def update @deposit = current_user.deposits.find_by_id(params[:id]) if @deposit.update_attributes(params[:deposit]) flash[:notice] = "Financial Info updated!" redirect_to payments_path else render :action => :edit end end def destroy @deposit = current_user.deposits.find_by_id(params[:id]) @deposit.destroy if request.xhr? render :update do |page| page.remove "deposit_#{params[:id]}" end end end end <file_sep>require 'test_helper' class FoursquarepushHelperTest < ActionView::TestCase end <file_sep>/* Author: <NAME> | Mint.com */ $(document).ready(function(){ //Login if($('body').hasClass('home') && showLoginForm){ // If we're on the homepage and the showLoginForm var (T&T) is present if($.cookie('wa_login') == null){ // If the wa_login cookie is absent (if the user is not a current active user) $('#credentials').remove(); // Remove login credentials form } else { // So if the wa_login cookie is present (if the user is an active user) $('#credentials #password, #credentials #username').css({opacity: 1}); // Fade In the credentials form if($.cookie('mintRememberMe') != null){ // If the remember me cookie is present $('#credentials #username').val($.cookie('mintRememberMe')); // Set the username value to the cookie value $('#credentials #password').val(''); // Remove the faux password to prevent confusion } // Done fading in form $('#user_auth .login.button').click(function(){ // When the user clicks the login button if($('#remember').is(':checked')){ /* If the remember me checkbox is checked */ $.cookie('mintRememberMe', $('#username').val(), {expires: 7, path: '/', domain: '.mint.com'}); // Create the remember me cookie with the username } else { // If it's not checked $.cookie('mintRememberMe', null, {expires: -7, path:'/', domain: '.mint.com'}); // Clear the remember me cookie } $('#credentials').submit(); // Submit the form return false; }) } $('#user_auth input').focus(function(){ // On focus $('.form_box').animate({opacity: 1}, 300); // Fadein the form background $('#user_auth .hide').animate({opacity: 1}, 300); // Fadein anything with the hide class (form elements) if($('#user_auth #username').val() == 'Email') { // If the form is in the default state, 'Email' is still the input value $('#credentials #password, #credentials #username').val(''); // Clear the input values } if($.cookie('mintRememberMe') != null){ // If the remember me cookie is set $('#remember').attr('checked', true); } }) $('#user_auth').keypress(function(e){ // If you the user presses a key while in the form if(e.which == 13){ // If that key is 'enter' if($('#remember').is(':checked')){ /* If the remember me checkbox is checked */ $.cookie('mintRememberMe', $('#username').val(), {expires: 7, path: '/', domain: '.mint.com'}); // Create the remember me cookie with the username } else { // If it's not checked $.cookie('mintRememberMe', null, {expires: -7, path:'/', domain: '.mint.com'}); // Clear the remember me cookie } $('#credentials').submit(); //Submit the credentials form e.preventDefault(); } }) } else { // If we're not on the homepage or the showLoginForm is false $('#credentials').remove(); // Remove the credentials form from the DOM } //Homepage Tabs //Hoverintent Config var config = { over: tabon, // function = onMouseOver callback (REQUIRED) interval: 50, timeout: 300, // number = milliseconds delay before onMouseOut out: taboff // function = onMouseOut callback (REQUIRED) } $('#tab_menu li').hoverIntent(config); function tabon() { $(this).addClass('active').siblings().removeClass('active').removeClass('next'); $(this).next().addClass('next'); var tab = $(this).attr('title'); if($('#' + tab).is(':visible')){ return false; } else{ if($.browser.msie){ $('.tab:visible').hide(); $('#' + tab).show(); } else { $('.tab:visible').fadeOut(500); $('#' + tab).fadeIn(500); } } }; function taboff() { return false }; //Homepage Tour //Home $('#slide1 .violator').click(function(){ $('.canada').fadeOut(); $('#tour_container').animate({right: '950'}); $('.tour_hero .prev_slide').addClass('active').fadeIn().animate({left: '0'}); $('.tour_hero .next_slide').addClass('active').fadeIn().animate({right: '0'}); $('#tour_position #position2').addClass('active').siblings().removeClass('active'); // Dynamic Tour Image Loader Hover if($('#slide2 .thumb').length == 0) { $('#slide2').append('<img src="images/rd/home/tour/tour_accounts.png" class="thumb"/>'); $('#slide3').append('<img src="images/rd//home/tour/tour_transactions.png" class="thumb"/>'); $('#slide4').append('<img src="images/rd/home/tour/tour_graphs.png" class="thumb"/>'); $('#slide5').append('<img src="images/rd/home/tour/tour_alerts.png" class="thumb"/>'); $('#slide6').append('<img src="images/rd/home/tour/tour_pig.png" class="thumb"/>'); $('#slide7').append('<img src="images/rd/home/tour/tour_lock.png" class="thumb"/>'); } return false; }) //Indicator $('#tour_position #position1').click(function(){ $(this).addClass('active').siblings().removeClass('active'); $('#tour_container').animate({right: '0'}); $('.tour_hero .prev_slide').addClass('active').fadeIn().animate({left: '950'}); $('.tour_hero .next_slide').addClass('active').fadeIn().animate({right: '-950'}); }) //Slide 2 $('#slide2 .prev_panel').click(function(){ $('#tour_container').animate({right: '-=950'}); $('.tour_hero .prev_slide').animate({left: '950'}); $('.tour_hero .next_slide').animate({right: '-950'}); $('#tour_position #position1').addClass('active').siblings().removeClass('active'); }); $('#slide2 .next_panel').click(function(){ $('#tour_container').animate({right: '+=950'}); $('#tour_position #position3').addClass('active').siblings().removeClass('active'); }); /* Indicator */ $('#tour_position #position2').click(function(){ $(this).addClass('active').siblings().removeClass('active'); $('#tour_container').animate({right: '950'}); $('.tour_hero .prev_slide').addClass('active').fadeIn().animate({left: '0'}); $('.tour_hero .next_slide').addClass('active').fadeIn().animate({right: '0'}); }) //Slide 3 $('#slide3 .prev_panel').click(function(){ $('#tour_container').animate({right: '-=950'}); $('#tour_position #position2').addClass('active').siblings().removeClass('active'); }); $('#slide3 .next_panel').click(function(){ $('#tour_container').animate({right: '+=950'}); $('#tour_position #position4').addClass('active').siblings().removeClass('active'); }); /* Indicator */ $('#tour_position #position3').click(function(){ $(this).addClass('active').siblings().removeClass('active'); $('#tour_container').animate({right: '1900'}); $('.tour_hero .prev_slide').addClass('active').fadeIn().animate({left: '0'}); $('.tour_hero .next_slide').addClass('active').fadeIn().animate({right: '0'}); }) //Slide 4 $('#slide4 .prev_panel').click(function(){ $('#tour_container').animate({right: '-=950'}); $('#tour_position #position3').addClass('active').siblings().removeClass('active'); }); $('#slide4 .next_panel').click(function(){ $('#tour_container').animate({right: '+=950'}); $('#tour_position #position5').addClass('active').siblings().removeClass('active'); }); /* Indicator */ $('#tour_position #position4').click(function(){ $(this).addClass('active').siblings().removeClass('active'); $('#tour_container').animate({right: '2850'}); $('.tour_hero .prev_slide').addClass('active').fadeIn().animate({left: '0'}); $('.tour_hero .next_slide').addClass('active').fadeIn().animate({right: '0'}); }) //Slide 5 $('#slide5 .prev_panel').click(function(){ $('#tour_container').animate({right: '-=950'}); $('#tour_position #position4').addClass('active').siblings().removeClass('active'); }); $('#slide5 .next_panel').click(function(){ $('#tour_container').animate({right: '+=950'}); $('#tour_position #position6').addClass('active').siblings().removeClass('active'); }); /* Indicator */ $('#tour_position #position5').click(function(){ $(this).addClass('active').siblings().removeClass('active'); $('#tour_container').animate({right: '3800'}); $('.tour_hero .prev_slide').addClass('active').fadeIn().animate({left: '0'}); $('.tour_hero .next_slide').addClass('active').fadeIn().animate({right: '0'}); }) //Slide 6 $('#slide6 .prev_panel').click(function(){ $('#tour_container').animate({right: '-=950'}); $('#tour_position #position5').addClass('active').siblings().removeClass('active'); }); $('#slide6 .next_panel').click(function(){ $('#tour_container').animate({right: '+=950'}); $('#tour_position #position7').addClass('active').siblings().removeClass('active'); }); /* Indicator */ $('#tour_position #position6').click(function(){ $(this).addClass('active').siblings().removeClass('active'); $('#tour_container').animate({right: '4750'}); $('.tour_hero .prev_slide').addClass('active').fadeIn().animate({left: '0'}); $('.tour_hero .next_slide').addClass('active').fadeIn().animate({right: '0'}); }) //Slide 7 $('#slide7 .prev_panel').click(function(){ $('#tour_container').animate({right: '-=950'}); $('.tour_hero .next_slide').fadeIn(); $('#tour_position #position6').addClass('active').siblings().removeClass('active'); }); $('#slide7 .next_panel').click(function(){ $('#tour_container').animate({right: '0'}); $('.tour_hero .prev_slide').addClass('active').fadeIn().animate({left: '950'}); $('.tour_hero .next_slide').addClass('active').fadeIn().animate({right: '-950'}); $('#tour_position #position1').addClass('active').siblings().removeClass('active'); }); /* Indicator */ $('#tour_position #position7').click(function(){ $(this).addClass('active').siblings().removeClass('active'); $('#tour_container').animate({right: '5700'}); $('.tour_hero .prev_slide').addClass('active').fadeIn().animate({left: '0'}); $('.tour_hero .next_slide').addClass('active').fadeIn().animate({right: '0'}); }) // Dynamic Tour Image Loader Click from Indicator $('#tour_position .indicator').click(function(){ if($('#slide2 .thumb').length == 0) { $('#slide2').append('<img src="images/rd/home/tour/tour_accounts.png" class="thumb"/>'); $('#slide3').append('<img src="images/rd/home/tour/tour_transactions.png" class="thumb"/>'); $('#slide4').append('<img src="images/rd/home/tour/tour_graphs.png" class="thumb"/>'); $('#slide5').append('<img src="images/rd/home/tour/tour_alerts.png" class="thumb"/>'); $('#slide6').append('<img src="images/rd/home/tour/tour_pig.png" class="thumb"/>'); $('#slide7').append('<img src="images/rd/home/tour/tour_lock.png" class="thumb"/>'); } }) //Launch Video $('.launch_video').click(function(){ if (navigator.mimeTypes ["application/x-shockwave-flash"]==undefined){ window.open('http://www.youtube.com/watch?v=rK6WLHNYjwM'); return false; } $('<div id="video_overlay"><iframe title="YouTube video player" class="youtube-player" type="text/html" width="844" height="505" src="https://www.youtube.com/embed/rK6WLHNYjwM?rel=0&amp;hd=1;autoplay=1" frameborder="0" style="display:block; margin-bottom:15px"></iframe></div>').appendTo('body').append('<div class="close"></div>').append('<a class="medium orange button" href="https://wwws.mint.com/login.event?task=S"><span class="get_started">Free! Get started here</span></a>').fadeIn('fast'); //Append the page transparent overlay $('body').append('<div id="page_overlay"></div>'); /* Grab viewport height middle position */ var vph = $(window).height() / 2; /* Grab viewport width middle position */ var vpw = $(window).width() / 2; /* Grab overlay height middle position */ var vbh = $('#video_overlay').height() /2; /* Grab overlay width middle position */ var vbw = $('#video_overlay').width() /2; /* Find overlay height middle on screen */ var hoffsetval = vph - vbh - 15 + 'px'; /* Find overlay width middle on screen */ var woffsetval = vpw - vbw - 15 + 'px'; /* Assign top offset to overlay and make visible */ $('#video_overlay').css({'top' : hoffsetval, 'left' : woffsetval, 'visibility': 'visible'}); return false }); //Launch Security Video $('.launch_security_video').click(function(){ if (navigator.mimeTypes ["application/x-shockwave-flash"]==undefined){ window.open('http://www.youtube.com/watch?v=go5YnAlp0iw'); return false; } $('<div id="video_overlay"><iframe title="YouTube video player" class="youtube-player" type="text/html" width="700" height="550" src="https://www.youtube.com/embed/go5YnAlp0iw?rel=0&amp;hd=1;autoplay=1" frameborder="0" style="display:block; margin-bottom:15px"></iframe></div>').appendTo('body').append('<div class="close"></div>').append('<a class="medium orange button" href="https://wwws.mint.com/login.event?task=S"><span class="get_started">Free! Get started here</span></a>').fadeIn('fast'); //Append the page transparent overlay $('body').append('<div id="page_overlay"></div>'); /* Grab viewport height middle position */ var vph = $(window).height() / 2; /* Grab viewport width middle position */ var vpw = $(window).width() / 2; /* Grab overlay height middle position */ var vbh = $('#video_overlay').height() /2; /* Grab overlay width middle position */ var vbw = $('#video_overlay').width() /2; /* Find overlay height middle on screen */ var hoffsetval = vph - vbh - 15 + 'px'; /* Find overlay width middle on screen */ var woffsetval = vpw - vbw - 15 + 'px'; /* Assign top offset to overlay and make visible */ $('#video_overlay').css({'top' : hoffsetval, 'left' : woffsetval, 'visibility': 'visible'}); return false }); //Launch How-To Video $('.launch_how-to_video').click(function(){ var videoURL = $(this).find('a').attr('href'); if (navigator.mimeTypes ["application/x-shockwave-flash"]==undefined){ window.open(videoURL); return false; } $('<div id="video_overlay"><iframe title="YouTube video player" class="youtube-player" type="text/html" width="844" height="505" src="' + videoURL + '?hd=1;autoplay=1" frameborder="0" style="display:block; margin-bottom:15px"></iframe></div>').appendTo('body').append('<div class="close"></div>').append('<a class="medium orange button" href="https://wwws.mint.com/login.event?task=S"><span class="get_started">Free! Get started here</span></a>').fadeIn('fast'); //Append the page transparent overlay $('body').append('<div id="page_overlay"></div>'); /* Grab viewport height middle position */ var vph = $(window).height() / 2; /* Grab viewport width middle position */ var vpw = $(window).width() / 2; /* Grab overlay height middle position */ var vbh = $('#video_overlay').height() /2; /* Grab overlay width middle position */ var vbw = $('#video_overlay').width() /2; /* Find overlay height middle on screen */ var hoffsetval = vph - vbh - 15 + 'px'; /* Find overlay width middle on screen */ var woffsetval = vpw - vbw - 15 + 'px'; /* Assign top offset to overlay and make visible */ $('#video_overlay').css({'top' : hoffsetval, 'left' : woffsetval, 'visibility': 'visible'}); return false }); //Launch Community Video $('.launch_community_video').click(function(){ var videoURL = $(this).find('a').attr('href'); if (navigator.mimeTypes ["application/x-shockwave-flash"]==undefined){ window.open(videoURL); return false; } $('<div id="video_overlay"><iframe title="YouTube video player" class="youtube-player" type="text/html" width="844" height="505" src="' + videoURL + '?hd=1;autoplay=1" frameborder="0" style="display:block; margin-bottom:15px"></iframe></div>').appendTo('body').append('<div class="close"></div>').append('<a class="medium orange button" href="https://wwws.mint.com/login.event?task=S"><span class="get_started">Free! Get started here</span></a>').fadeIn('fast'); //Append the page transparent overlay $('body').append('<div id="page_overlay"></div>'); /* Grab viewport height middle position */ var vph = $(window).height() / 2; /* Grab viewport width middle position */ var vpw = $(window).width() / 2; /* Grab overlay height middle position */ var vbh = $('#video_overlay').height() /2; /* Grab overlay width middle position */ var vbw = $('#video_overlay').width() /2; /* Find overlay height middle on screen */ var hoffsetval = vph - vbh - 15 + 'px'; /* Find overlay width middle on screen */ var woffsetval = vpw - vbw - 15 + 'px'; /* Assign top offset to overlay and make visible */ $('#video_overlay').css({'top' : hoffsetval, 'left' : woffsetval, 'visibility': 'visible'}); return false }); //Close Video $('#video_overlay .close').live('click', function(){ $(this).parent().fadeOut('fast', function(){ $('#video_overlay').remove(); }); $('#page_overlay').fadeOut('fast', function(){ $(this).remove(); }); }) $(document).click(function(){ if($('#video_overlay').is(':visible')){ $('#video_overlay').fadeOut('fast', function(){ $('#video_overlay').remove(); }); $('#page_overlay').fadeOut('fast', function(){ $(this).remove(); }); } }) /* Accolades */ /* Toggle Panels */ $('.show_more_button').toggle(function(){ if($.browser.msie){ $(this).parent().parent().find('.hidden').show().css({visibility : 'visible'}); } else{ $(this).parent().parent().find('.hidden').slideDown().css({opacity: 0, visibility : 'visible'}).animate({opacity : '1'}); } var title = $(this).parent().parent().find('h3').html().toLowerCase(); $(this).html('See less ' + title).addClass('open'); }, function() { if($.browser.msie){ $(this).parent().parent().find('.hidden').hide(); } else{ $(this).parent().parent().find('.hidden').animate({opacity : '0'}).slideUp(); } var title = $(this).parent().parent().find('h3').html().toLowerCase(); $(this).html('See more ' + title).removeClass('open'); } ); /* Launch Mini Video Popup */ $('.video_popup').click(function(){ var videoURL = $(this).attr('href'); if (navigator.mimeTypes ["application/x-shockwave-flash"]==undefined){ return false; } $('<div id="video_overlay"><iframe title="YouTube video player" class="youtube-player" type="text/html" width="844" height="505" src="' + videoURL + '?hd=1;autoplay=1" frameborder="0" style="display:block; margin-bottom:15px"></iframe></div>').appendTo('body').append('<div class="close"></div>').append('<a class="medium orange button" href="https://wwws.mint.com/login.event?task=S"><span class="get_started">Free! Get started here</span></a>').fadeIn('fast'); //Append the page transparent overlay $('body').append('<div id="page_overlay"></div>'); /* Grab viewport height middle position */ var vph = $(window).height() / 2; /* Grab viewport width middle position */ var vpw = $(window).width() / 2; /* Grab overlay height middle position */ var vbh = $('#video_overlay').height() /2; /* Grab overlay width middle position */ var vbw = $('#video_overlay').width() /2; /* Find overlay height middle on screen */ var hoffsetval = vph - vbh + 'px'; /* Find overlay width middle on screen */ var woffsetval = vpw - vbw + 'px'; /* Assign top offset to overlay and make visible */ $('#video_overlay').css({'top' : hoffsetval, 'left' : woffsetval, 'visibility': 'visible'}); return false }); //Grab mintlife json feed for news updates if($('.news_updates').length){ $.getJSON('https://www.mint.com/blog/feed/service/?tag=&cat=Updates&count=20&orderby=desc&callback=?', function(data){ $.each(data.posts, function(i,post){ var date = new Date(post.published); var month = date.getMonth() + 1; var day = date.getDate(); var year = date.getFullYear(); if(i < 5) { $('.news_updates .initial').append('<div class="entry clearfix"><div class="news_date">' + month + '/' + day + '/' + year + '</div><div class="news_item"><a href="' + post.link + '">' + post.title + '</a></div></div>'); } else { $('.news_updates .hidden').append('<div class="entry clearfix"><div class="news_date">' + month + '/' + day + '/' + year + '</div><div class="news_item"><a href="' + post.link + '">' + post.title + '</a></div></div>'); } }) }) } //Grab twitter json feed for news updates if($('.news_updates').length){ $.getJSON('https://twitter.com/status/user_timeline/mint.json?count=15&callback=?', function(data){ $.each(data, function(i,post){ // convert to local string and remove seconds and year // var timestamp = post.created_at; var newtext = timestamp.replace(/(\+\S+) (.*)/, '$2 $1') var date = new Date(newtext); var month = date.getMonth() + 1; var day = date.getDate(); var year = date.getFullYear(); if(i < 5) { $('.news_tweets .initial').append('<div class="entry clearfix"><div class="news_date">' + month + '/' + day + '/' + year + '</div><div class="news_item"><a href="https://www.twitter.com/mint/">' + post.text + '</a></div></div>'); } else { $('.news_tweets .hidden').append('<div class="entry clearfix"><div class="news_date">' + month + '/' + day + '/' + year + '</div><div class="news_item"><a href="https://www.twitter.com/mint/">' + post.text + '</a></div></div>'); } }) }) } // Tax Legalese Popup $('.tax_popup').click(function(){ $('<div id="tax_popup"><h1 style="font-size: 22px">*Maximum (Biggest) Refund Guaranteed or Your Money Back</h1><p class="nowrap">If you get a larger refund or smaller tax due from another tax preparation method, we\'ll refund the applicable <br/>TurboTax federal and\/or state purchase price paid. TurboTax Online Federal Free Edition customers are entitled <br/>to payment of $14.95 and a refund of your state purchase price paid**.</p><hr/><p>**Claims must be submitted within sixty (60) days of your TurboTax filing date and no later than 6/18/11. <br/>E-file, Audit Defense, Professional Review, Ask a Tax Expert, Refund Transfer and technical support fees are <br/>excluded. This guarantee cannot be combined with the TurboTax Satisfaction (Easy) Guarantee.</p></div>').appendTo('body').append('<div class="close"></div>').fadeIn('fast'); //Append the page transparent overlay $('body').append('<div id="page_overlay"></div>'); /* Grab viewport height middle position */ var vph = $(window).height() / 2; /* Grab viewport width middle position */ var vpw = $(window).width() / 2; /* Grab overlay height middle position */ var vbh = $('#tax_popup').height() /2; /* Grab overlay width middle position */ var vbw = $('#tax_popup').width() /2; /* Find overlay height middle on screen */ var hoffsetval = vph - vbh + 'px'; /* Find overlay width middle on screen */ var woffsetval = vpw - vbw + 'px'; /* Assign top offset to overlay and make visible */ $('#tax_popup').css({'top' : hoffsetval, 'left' : woffsetval, 'visibility': 'visible'}); return false }); //Close Tax Popup $('#tax_popup .close').live('click', function(){ $(this).parent().fadeOut('fast', function(){ $('#tax_popup').remove(); }); $('#page_overlay').fadeOut('fast', function(){ $(this).remove(); }); }) $(document).click(function(){ if($('#tax_popup').is(':visible')){ $('#tax_popup').fadeOut('fast', function(){ $('#tax_popup').remove(); }); $('#page_overlay').fadeOut('fast', function(){ $(this).remove(); }); } }) /* Education Feed */ if($('body#education').length){ $.getJSON('https://www.mint.com/blog/feed/service/?tag=education&count=6&orderby=desc&callback=?', function(data){ /* Create an array for the post categories */ var catArray = new Array(); $.each(data.posts, function(i,post){ /* Loop through each category */ $.each(post.categories, function(j,category){ /* Construct a link for each category and push it to the array */ catArray.push('<a href="http://www.mint.com/blog/category/' + category.category_nicename + '">' + category.cat_name + '</a>'); }); /* Join each category array element with a comma */ var cats = catArray.join(', '); /* Ensure HTTPS image reference */ var image = post.thumbnail.replace('http', 'https'); $('.left.column .articles').append('<div class="article clearfix"><div class="thumb"><img src="' + image + '"/></div><div class="category">' + cats + '</div><div class="title"><a href="' + post.link + '">' + post.title + '</a></div><div class="date">' + post.published + '</div></div>'); /* Clear Array before each loop */ catArray = []; }) }) } /* Launch Education Game */ $('.launch_game').click(function(){ $('<div id="video_overlay"><iframe src="https://stage-www.mint.com/wp-content/themes/mint7/games/questformoney/mint_dot_com.swf" width="800px" height="600px"></iframe></div>').appendTo('body').append('<div class="close"></div>').show(); //Append the page transparent overlay $('body').append('<div id="page_overlay"></div>'); /* Grab viewport height middle position */ var vph = $(window).height() / 2; /* Grab viewport width middle position */ var vpw = $(window).width() / 2; /* Grab overlay height middle position */ var vbh = $('#video_overlay').height() /2; /* Grab overlay width middle position */ var vbw = $('#video_overlay').width() /2; /* Find overlay height middle on screen */ var hoffsetval = vph - vbh - 15 + 'px'; /* Find overlay width middle on screen */ var woffsetval = vpw - vbw - 15 + 'px'; /* Assign top offset to overlay and make visible */ $('#video_overlay').css({'top' : hoffsetval, 'left' : woffsetval, 'visibility': 'visible'}); return false }) //Launch Quest Video $('.launch_quest_video').click(function(){ if (navigator.mimeTypes ["application/x-shockwave-flash"]==undefined){ window.open('http://www.youtube.com/watch?v=rK6WLHNYjwM'); return false; } $('<div id="video_overlay"><iframe title="YouTube video player" class="youtube-player" type="text/html" width="844" height="505" src="https://www.youtube.com/embed/a8BYVLc8Ev4?rel=0&amp;hd=1;autoplay=1" frameborder="0" style="display:block; margin-bottom:15px"></iframe></div>').appendTo('body').append('<div class="close"></div>').append('<a class="medium orange button" href="https://wwws.mint.com/login.event?task=S"><span class="get_started">Free! Get started here</span></a>').fadeIn('fast'); //Append the page transparent overlay $('body').append('<div id="page_overlay"></div>'); /* Grab viewport height middle position */ var vph = $(window).height() / 2; /* Grab viewport width middle position */ var vpw = $(window).width() / 2; /* Grab overlay height middle position */ var vbh = $('#video_overlay').height() /2; /* Grab overlay width middle position */ var vbw = $('#video_overlay').width() /2; /* Find overlay height middle on screen */ var hoffsetval = vph - vbh - 15 + 'px'; /* Find overlay width middle on screen */ var woffsetval = vpw - vbw - 15 + 'px'; /* Assign top offset to overlay and make visible */ $('#video_overlay').css({'top' : hoffsetval, 'left' : woffsetval, 'visibility': 'visible'}); return false }); })<file_sep>class AddColumnsToUsersTable < ActiveRecord::Migration def self.up add_column :users, :secondry_email, :string add_column :users, :mobile, :string add_column :users, :email_delivery_time, :string add_column :users, :sms_delivery_time, :string add_column :users, :email_alert, :boolean add_column :users, :mobile_alert, :boolean end def self.down remove_column :users, :mobile_alert remove_column :users, :email_alert remove_column :users, :sms_delivery_time remove_column :users, :email_delivery_time remove_column :users, :mobile remove_column :users, :secondry_email end end <file_sep>= OpenFlashChart Open Flash Chart, is open source. It is free to use and you get the source code to fiddle with! http://teethgrinder.co.uk/open-flash-chart/ http://pullmonkey.com == Install (Rails 3) It's install plugin and copy files "open-flash-chart.swf", "open-flash-chart-bar-clicking.swf" to your project public folder and "swfobject.js" to public/javascripts. Your can move *.swf file to public/swf folder and pass option :base_path => '/swf/'. rails plugin install git://github.com/galetahub/open_flash_chart.git == Quick Start In your controller: class RatingsController < ApplicationController include OpenFlashChart def index @graph = Graph.new(rating_path(1), 800, 300, :base_path => '/swf/') end def show data = [10, 20, 30, 40, 50] line = Line.new line.text = "Ratings" line.width = 1 line.colour = '#818D9D' line.dot_size = 2 line.values = data x_axis = XAxis.new x_axis.labels = ['1','2','3','4','5'] x_axis.colour = '#818D9D' y_axis = YAxis.new y_axis.colour = '#818D9D' y_axis.set_range(0, data.max + 10, 5) chart = OpenFlashChart.new chart.add_element(line) chart.x_axis = x_axis chart.y_axis = y_axis render :text => chart.to_s end end In your layout don't forget include "swfobject.js": <html> <head> <script type="text/javascript" src="/javascripts/swfobject.js"></script> ... </head> <body> ... In your index view: <%=raw @graph.to_html %> == Save image locally Open Flash Chart can save image locally, it's calls JavaScript function "save_image()", when we click's "Save image locally" in flash menu. So we need write this function to save image. This exsample will open new window in browser and load's your flash image: <%=raw @graph.to_html %> <%=raw @graph.save_image_popup_script %> Send image to remote server: <%=raw @graph.to_html %> <%=raw @graph.save_image_button('Save image', :url => '/save_image') %> or: <%=raw @graph.to_html %> <%=raw @graph.save_image_script('/save_image') %> <%= button_to_function "Save Image", "post_image()" %> in controller (it's only sample, don't use next code): def save_image name = "tmp_image.png" || params[:name] # the save_image method that is provided by the OFC swf file sends raw post data, so get to it like this data = request.raw_post File.open("#{RAILS_ROOT}/tmp/#{name}", "wb") { |f| f.write(data) } if data render :nothing => true end == TODO 1. More documentation 2. Add generators Copyright (c) 2010 Brainberry, released under the MIT license <file_sep>class FoursquareUser < ActiveRecord::Base belongs_to :foursquare_push end <file_sep>class TransactionsController < ApplicationController before_filter :require_user, :except => [:index, :ask_momma, :company, :contact] def index @trans = current_user.transactions if current_user end def widget render :layout => false end def contact if params[:name].present? and params[:email].present? and params[:message].present? Contact.notification(params[:name], params[:email], params[:message]).deliver redirect_to root_url, :notice => "Thank you for contacting us. We will revert back soon." else redirect_to root_url, :alert => "All the fields in the contact form are required." end end end <file_sep>#class FoursquareVenue < ActiveRecord::Base # belongs_to :foursquare_push #end <file_sep>class AddForeignKeysToFoursquareModels < ActiveRecord::Migration def self.up add_column :foursquare_venues, :foursquare_push_id, :integer add_column :foursquare_users, :foursquare_push_id, :integer end def self.down remove_column :foursquare_venues, :foursquare_push_id remove_column :foursquare_users, :foursquare_push_id end end <file_sep>class Deposit < ActiveRecord::Base belongs_to :user has_many :transactions, :as => :payable validates_presence_of :paycheck_amount, :paycheck_frequency PAYCHECK_FREQUENCY = ["15th day of the month", "last day of the month", "both"] def deposit_dates middle_of_month = Date.parse("15.#{Date.today.month}.#{Date.today.year}") dates = [] (1..10).each do |num| unless self.created_at.day > 15 and num == 1 if paycheck_frequency == PAYCHECK_FREQUENCY[0] or paycheck_frequency == PAYCHECK_FREQUENCY[2] dates << middle_of_month end end if paycheck_frequency == PAYCHECK_FREQUENCY[1] or paycheck_frequency == PAYCHECK_FREQUENCY[2] dates << middle_of_month.end_of_month end # move date to next month middle_of_month = middle_of_month.next_month end return dates end def process_deposit t = self.transactions.new t.amount = self.paycheck_amount t.reference_number = Transaction.generate_reference_number t.status = true t.save end def self.generate_transactions_for_today self.all.select{|p| p.deposit_dates.include?(Date.today)}.each do |trans| trans.process_deposit end end end <file_sep>class User < ActiveRecord::Base acts_as_authentic validates_presence_of :first_name has_many :payees, :dependent => :destroy has_many :payments, :through => :payees has_many :deposits, :dependent => :destroy has_many :articles, :dependent => :destroy def activate! self.active = true save end def sex self.gender == true ? "Male" : "Female" end def deliver_activation_instructions! reset_perishable_token! UserMailer.activation_instructions(self).deliver end def deliver_welcome! reset_perishable_token! UserMailer.welcome(self).deliver end def deliver_password_reset_instructions! reset_perishable_token! UserMailer.password_reset_instructions(self).deliver end def payments_for_next_six_months payment_collection = [] payments = Payment.find_all_by_payee_id(payees.map{|p| p.id}) dates_for_next_six_months.each do |date| selected_payments = payments.select{ |p| p.transaction_dates.include?(date) } payment_collection << selected_payments.sum{ |p| p.amount.to_i} end return payment_collection end #Added by sandeep def object_list_for_payments_for_next_six_months payment_collection = [] payments = Payment.find_all_by_payee_id(payees.map{|p| p.id}) dates_for_next_six_months.each do |date| selected_payments = payments.select{ |p| p.transaction_dates.include?(date) } payment_collection << selected_payments end return payment_collection end def deposits_for_next_six_months deposit_collection = [] deposits = self.deposits.all dates_for_next_six_months.each do |date| selected_deposits = deposits.select{ |p| p.deposit_dates.include?(date) } deposit_collection << selected_deposits.sum{ |p| p.paycheck_amount.to_i} end return deposit_collection end def dates_for_next_six_months middle_of_month = Date.parse("15.#{Date.today.month}.#{Date.today.year}") dates = [] (1..7).each do |x| dates << middle_of_month unless Date.today.day > 15 and x == 1 end_of_month = middle_of_month.end_of_month dates << end_of_month # move date to next month middle_of_month = middle_of_month.next_month end return dates end def transactions p = self.payments.all(:include => "transactions") p.map{|a| a.transactions}.flatten end def send_email_alerts if self.email_alert? if self.email_delivery_time == "5 days before Paycheck" send_email_alerts_before_paycheck elsif self.email_delivery_time == "5 days before and on Paycheck day" send_email_alerts_before_paycheck send_email_alerts_on_paycheck end end end def send_email_alerts_before_paycheck dates_before_payments = self.payments.all.map{|p| p.transaction_dates}.flatten.map{|b| b-8} dates_before_deposits = self.deposits.all.map{|d| d.deposit_dates}.flatten.map{|c| c-8} if dates_before_payments.include?(Date.today) || dates_before_deposits.include?(Date.today) UserMailer.alert_before_paycheck(self).deliver else return false end end def send_email_alerts_on_paycheck dates_of_payments = self.payments.all.map{|p| p.transaction_dates}.flatten dates_of_deposits = self.deposits.all.map{|d| d.deposit_dates}.flatten if dates_of_payments.include?(Date.today) || dates_of_deposits.include?(Date.today) UserMailer.alert_on_paycheck(self).deliver else return false end end def send_mobile_alerts if self.mobile_alert? && self.mobile? if self.sms_delivery_time == "5 days before Paycheck" send_mobile_alerts_before_paycheck elsif self.sms_delivery_time == "5 days before and on Paycheck day" send_mobile_alerts_before_paycheck send_mobile_alerts_on_paycheck end end end def send_mobile_alerts_before_paycheck dates_before_payments = self.payments.all.map{|p| p.transaction_dates}.flatten.map{|b| b-5} dates_before_deposits = self.deposits.all.map{|d| d.deposit_dates}.flatten.map{|c| c-5} if dates_before_payments.include?(Date.today) || dates_before_deposits.include?(Date.today) sms = Moonshado::Sms.new(self.mobile, "You have 5 days left for payments, Please login to mymoneymomma to manage things.") sms.deliver_sms else return false end end def send_mobile_alerts_on_paycheck dates_of_payments = self.payments.all.map{|p| p.transaction_dates}.flatten dates_of_deposits = self.deposits.all.map{|d| d.deposit_dates}.flatten if dates_of_payments.include?(Date.today) || dates_of_deposits.include?(Date.today) sms = Moonshado::Sms.new(self.mobile, "Today is your Payment day, Please login to mymoneymomma to manage things.") sms.deliver_sms else return false end end def set_alerts #alert_date = self.payments.all.map{|p| p.transaction_dates.map{|q| q if q == Date.today+ 5}}.flatten.uniq.compact! alert_date = Date.today if alert_date.present? deposits = self.deposits_for_next_six_months payments = self.payments_for_next_six_months amount = deposits[0]-payments[0] end return amount, alert_date end end <file_sep># foursquare api credientials CLIENT_ID = 'OOABRTLTA4Y1AB1B3QE25PZSYQXA2QW44DBQ0EKHD0PWXAHP' CLIENT_SECRET_ID = '<KEY>' CALLBACK_URL = 'http://mymoneymomma.heroku.com/users/foursquare_callback'<file_sep>class FoursquarepushController < ApplicationController skip_before_filter :verify_authenticity_token def notify user = JSON.parse(params['user']) checkin = JSON.parse(params['checkin']) venue = checkin['venue'] puts venue #puts v #user = params['user'] fn = user['firstName'].to_s ln = user['lastName'].to_s name = venue['name'] sms = Moonshado::Sms.new("18139577566", "Bam! " + fn.to_s + " " + ln.to_s + " just checked in at " + name.to_s) sms.deliver_sms sms = Moonshado::Sms.new("17278715066", "Bam! " + fn.to_s + " " + ln.to_s + " just checked in at " + name.to_s) sms.deliver_sms FoursquareHandler.save_from_push(params) puts FoursquareVenue.last.inspect render :nothing => true end end <file_sep>class CreateFoursquareUsers < ActiveRecord::Migration def self.up create_table :foursquare_users do |t| t.string :foursquare_user_id t.string :last_name t.string :first_name t.string :photo t.string :gender t.string :home_city t.string :relationship t.timestamps end end def self.down drop_table :foursquare_users end end <file_sep>class Article < ActiveRecord::Base belongs_to :user has_many :comments, :dependent => :destroy validates_presence_of :title, :description validates_uniqueness_of :title has_attached_file :avatar, :styles => { :medium => "200x118!", :small => "160x160#", :minor => "80x80#" }, :url => "/assets/articles/:id/:style/:basename.:extension", :path => "#{Rails.root}/public/assets/articles/:id/:style/:basename.:extension" validates_attachment_size :avatar, :less_than => 5.megabytes validates_attachment_content_type :avatar, :content_type => ['image/jpeg', 'image/png', 'image/jpg'] end <file_sep>desc "This task is called by the Heroku cron add-on" task :cron => :environment do Transaction.process_all_transactions_for_today puts "Inside Cron!" User.find(:all).each do |user| user.send_email_alerts user.send_mobile_alerts end end<file_sep>class FoursquarePush < ActiveRecord::Base has_one :foursquare_user, :dependent => :destroy has_one :foursquare_venue, :dependent => :destroy end <file_sep>class UserMailer < ActionMailer::Base if Rails.env == 'development' default :from => "<EMAIL>" default_url_options[:host] = "localhost:3000" end if Rails.env == 'production' default :from => "mymoneymomma.com" default_url_options[:host] = "mymoneymomma.com" end def activation_instructions(user) @account_activation_url = activate_url(user.perishable_token) @user1 = user mail(:to => user.email, :subject => "Money Momma Activation Instructions") content_type "text/html" end def welcome(user) mail(:to => user.email, :subject => "Welcome to Money Momma. You are on your way to take command of your finances forever!") @root_url = root_url content_type "text/html" end def password_reset_instructions(user) @edit_password_reset_url = edit_password_reset_url(user.perishable_token) content_type "text/html" mail(:to => user.email, :subject => "Money Momma Password Reset Instructions") end def alert_before_paycheck(user) depositss1 = user.deposits.all @payments1 = user.payments_for_next_six_months if !depositss1.empty? @depositamount = depositss1.sum{ |p| p.paycheck_amount.to_i} else @depositamount = 0.to_i end @diffrence = @depositamount - @payments1[0] @paymentsobject =user.object_list_for_payments_for_next_six_months mail(:to => user.email, :subject => "Money Momma 5 day notification before your next paycheck deposit!") content_type "text/html" end def alert_on_paycheck(user) mail(:to => user.email, :subject => "Money Momma notifcation that your paycheck has been deposited!") content_type "text/html" end end <file_sep>class CreateDeposits < ActiveRecord::Migration def self.up create_table :deposits do |t| t.integer :user_id t.string :paycheck_amount t.string :paycheck_frequency t.timestamps end end def self.down drop_table :deposits end end <file_sep>class Transaction < ActiveRecord::Base belongs_to :payable, :polymorphic => true def self.generate_reference_number # Time.now.to_f.to_s + rand.to_s Digest::SHA1.hexdigest(Time.now.to_s + rand.to_s) end def self.process_all_transactions_for_today Payment.generate_transactions_for_today Deposit.generate_transactions_for_today end end <file_sep>class ArticlesController < ApplicationController before_filter :admin_login_required, :except => [:index, :show] before_filter :find_article, :only => [:edit, :update, :destroy] uses_tiny_mce :only => [:new, :create, :edit, :update], :options => { :theme => 'advanced', :theme_advanced_resizing => true, :theme_advanced_resize_horizontal => false, :plugins => %w{ table fullscreen } } def index @articles = Article.find(:all) end def new @article = current_user.articles.new end def create @article = current_user.articles.new(params[:article]) if @article.save flash[:notice] = "Article has been added successfully!" redirect_to articles_path else render :action => :new end end def edit end def update if @article.update_attributes(params[:article]) flash[:notice] = "Article has been updated!" redirect_to articles_path else render :action => :edit end end def show @article = Article.find_by_id(params[:id]) end def destroy @article.destroy if request.xhr? render :update do |page| page.remove "article_#{params[:id]}" end end end private def find_article @article = current_user.articles.find_by_id(params[:id]) end end <file_sep>class PayeesController < ApplicationController before_filter :require_user def index @payees = current_user.payees.find(:all) end def new @payee = Payee.new end def create @payee = current_user.payees.new(params[:payee]) if @payee.save flash[:notice] = "Payee has been added successfully!" redirect_to payees_path else render :action => :new end end def edit @payee = current_user.payees.find_by_id(params[:id]) end def update @payee = current_user.payees.find_by_id(params[:id]) if @payee.update_attributes(params[:payee]) flash[:notice] = "Payee has been updated!" redirect_to payees_path else render :action => :edit end end def destroy @payee = current_user.payees.find_by_id(params[:id]) @payee.destroy if request.xhr? render :update do |page| page.remove "payee_#{params[:id]}" end end end end <file_sep>require 'open_flash_chart' <file_sep>moneymomma ========== A FREE Money Management System<file_sep>class FoursquareHandler class << self def save_from_push(params) checkin = JSON.parse(params['checkin']) fp = FoursquarePush.new( :push_id => params['id'], :push_created_at => params['createdAt'], :push_type => params['type'], :push_time_zone => params['timeZone'] ) user = params['user'] fp.build_foursquare_user( :foursquare_user_id => user['id'], :last_name => user['firstName'], :first_name => user['lastName'], :photo => user['photo'], :gender => user['gender'], :home_city => user['homeCity'], :relationship => user['relationship'] ) venue = checkin['venue'] puts venue fp.build_foursquare_venue( :venue_id => venue['id'], :venue_name => venue['name'], ) fp.save end end end # Sample Foursquare Push Response # # { # "id": "4e6fe1404b90c00032eeac34", # "createdAt": 1315955008, # "type": "checkin", # "timeZone": "America/New_York", # "user": { # "id": "1", # "firstName": "Jimmy", # "lastName": "Foursquare", # "photo": "https://foursquare.com/img/blank_boy.png", # "gender": "male", # "homeCity": "New York, NY", # "relationship": "self" # }, # "venue": { # "id": "4ab7e57cf964a5205f7b20e3", # "name": "foursquare HQ", # "contact": { # "twitter": "foursquare" # }, # "location": { # "address": "East Village", # "lat": 40.72809214560253, # "lng": -73.99112284183502, # "city": "New York", # "state": "NY", # "postalCode": "10003", # "country": "USA" # }, # "categories": [ # { # "id": "4bf58dd8d48988d125941735", # "name": "Tech Startup", # "pluralName": "Tech Startups", # "shortName": "Tech Startup", # "icon": "https://foursquare.com/img/categories/building/default.png", # "parents": [ # "Professional & Other Places", # "Offices" # ], # "primary": true # } # ], # "verified": true, # "stats": { # "checkinsCount": 7313, # "usersCount": 565, # "tipCount": 128 # }, # "url": "http://foursquare.com" # } # }
d7ae1fd272454abb94a44b551968fb72d86e20b0
[ "JavaScript", "RDoc", "Ruby", "Markdown" ]
36
Ruby
marke1026/moneymomma
62bf6d5a6df18c4cf5012bbb2fc621bd00b437b2
f7483459e620d3a34e7eba3cf6d2e81530e39cde
refs/heads/master
<repo_name>msabramo/slocum<file_sep>/python/setup.py """Slocum: Better forecasts for sailors.""" DOCLINES = __doc__.split("\n") import os import sys import itertools # multiprocessing isn't directly used, but is require for tests # https://groups.google.com/forum/#!msg/nose-users/fnJ-kAUbYHQ/_UsLN786ygcJ import multiprocessing try: from setuptools import setup except ImportError: try: from setuptools.core import setup except ImportError: from distutils.core import setup if sys.version_info[:2] < (2, 6): raise RuntimeError("Python version 2.6, 2.7 required.") MAJOR = 0 MINOR = 0 MICRO = 1 ISRELEASED = False VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO) # https://software.ecmwf.int/wiki/display/GRIB/Python+package+gribapi#_details requires = {'grib': ['gribapi'], 'gridded': ['xray == 0.3.1', 'pyproj >= 1.9.3', 'pandas >= 0.13.1', 'matplotlib >= 1.2.0', 'BeautifulSoup', 'netCDF4', 'basemap']} requires['full'] = list(set(itertools.chain(*requires.values()))) setup(name='slocum', version='0.1', description="Slocum -- A tool for getting smaller better forecasts to sailors", url='http://github.com/akleeman/slocum', author='<NAME> and <NAME>', author_email='<EMAIL>', license='MIT', packages=['sl'], install_requires=requires['gridded'], tests_require=['nose >= 1.0'], test_suite='nose.collector', zip_safe=False)
b1b41fc345e2c12438abea5930042fae70bc3654
[ "Python" ]
1
Python
msabramo/slocum
afd206c303d49a06cdb82041f457d3ba564c09be
55360c1b0ed1a6945fcba616b8df092b7630b02e
refs/heads/master
<file_sep>CREATE TABLE books ( id integer PRIMARY KEY, name varchar(50) );<file_sep>package com.quest.apm.testjavaee.ejb.ejb3.sessionbean; public interface SessionBean { public String getStr(String s); } <file_sep>package com.quest.apm.testjavaee.ejb.sessionbean.dto; import javax.ejb.EJBLocalObject; public interface VertragEntityDTOLocal extends EJBLocalObject { public String getContent(); } <file_sep>package com.quest.apm.testjavaee.ejb.sessionbean.dto; import javax.ejb.CreateException; import javax.ejb.EJBLocalHome; public interface VertragEntityDTOHome extends EJBLocalHome { public VertragEntityDTOLocal create() throws CreateException; } <file_sep>package com.quest.apm.testjavaee.web.servlet; import com.quest.apm.testjavaee.ejb.ejb2.entitybean.BookRemote; import com.quest.apm.testjavaee.ejb.ejb2.entitybean.BookRemoteHome; import javax.ejb.EJB; import javax.naming.InitialContext; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import java.util.List; /** * Servlet implementation class InvokeBookForEJB2EntityBean */ @WebServlet("/InvokeBookForEJB2EntityBean") public class InvokeBookForEJB2EntityBean extends HttpServlet { @EJB private BookRemoteHome bookRemoteHome; /** * @see HttpServlet#HttpServlet() */ public InvokeBookForEJB2EntityBean() { super(); // TODO Auto-generated constructor stub } /** * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) */ @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // TODO Auto-generated method stub this.process(request, response); } /** * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) */ @Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // TODO Auto-generated method stub this.process(request, response); } private void process(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { //TODO, modify try { InitialContext ic = new InitialContext(); BookRemote bookRemote = bookRemoteHome.findByPrimaryKey(1); List<BookRemote> bookList = new ArrayList<BookRemote>(); bookList.add(bookRemote); outputBookList(bookList, request, response); } catch (Exception e) { e.printStackTrace(); throw new ServletException("Exception happens:" + e.getMessage(), e); } } private void outputBookList(List<BookRemote> bookList, HttpServletRequest request, HttpServletResponse response) throws IOException { response.setContentType("text/html"); PrintWriter out = response.getWriter(); out.println("Successfully get Book list:<br>"); if (bookList == null || bookList.size() == 0) { out.println("Book list is empty."); } else { for (int i =0; i< bookList.size(); ++i) { BookRemote book = bookList.get(i); out.println("Book[" + i + "]: id:" + book.getId() + ", name:" + book.getName() + "<br/>"); } } } } <file_sep>package com.quest.apm.testjavaee.ejb.ejb2.entitybean; import javax.ejb.EJBObject; import java.rmi.RemoteException; /** * Reference to page: * http://wenku.baidu.com/link?url=Fjp3ufEOhPR2UJYF-kL1jaSwB4EUlNLEoqAIhkDxKwTc-sgEJ4BBsTvzdLFM4PGtlgbWr7QGlrYx-rLBR7_JObxE4vY45l17CtEsPom3oCK * https://www.safaribooksonline.com/library/view/enterprise-javabeans-third/0596002262/ch04s02.html */ public interface BookRemote extends EJBObject { public Integer getId() throws RemoteException; public void setId(Integer id) throws RemoteException; public String getName() throws RemoteException; public void setName(String name) throws RemoteException; } <file_sep>package com.quest.apm.testjavaee.ejb.ejb2.department; /** * See: http://www.ibm.com/developerworks/websphere/library/techarticles/0511_alcorn/0511_alcorn.html * Remote interface for Enterprise Bean: Department */ public interface Department extends javax.ejb.EJBObject { /** * Get accessor for persistent attribute: id */ public java.lang.Integer getId() throws java.rmi.RemoteException; /** * Get accessor for persistent attribute: description */ public java.lang.String getDescription() throws java.rmi.RemoteException; /** * Set accessor for persistent attribute: description */ public void setDescription(java.lang.String newDescription) throws java.rmi.RemoteException; } <file_sep>package com.quest.apm.testjavaee.ejb.sessionbean.dto; import java.io.Serializable; import java.util.ArrayList; import java.util.List; /** * Created by rxiao on 8/8/2017. */ public class KontofondsEntityDTO implements Serializable { private KontofondsDTO dto; public KontofondsEntityDTO(KontofondsDTO dto) { List<String> s = new ArrayList<String>(); this.dto = dto; } } <file_sep>package com.quest.apm.testjavaee; public class PostCalculate { boolean addOperate; public PostCalculate() throws Throwable{ super(); StackFrame $performasure$node$com$quest$pas$agent$plugin$instrumentor$method$DefaultMethodInstrumentor = AgentRecordingManagerBootstrap.sIsFullRecording?DefaultMethodCallbacks.enterCallback("umnk:com.quest.apm.testjavaee.Calculate.%003Cinit%003E()V"):null; try { this.addOperate = true; if($performasure$node$com$quest$pas$agent$plugin$instrumentor$method$DefaultMethodInstrumentor != null) { DefaultMethodCallbacks.exitCallback($performasure$node$com$quest$pas$agent$plugin$instrumentor$method$DefaultMethodInstrumentor); } } catch (Throwable var3) { DefaultMethodCallbacks.exceptionalExitCallback(var3, $performasure$node$com$quest$pas$agent$plugin$instrumentor$method$DefaultMethodInstrumentor); throw var3; } } public PostCalculate(boolean addOperate) { this.addOperate = false; } public int calculate(int i, int j) { if (addOperate) { return i + j; } else { return i - j; } } @Override public String toString() { return "Add:" + addOperate; } public static void main(String[] args) throws Throwable { int i = 3; int j = 2; PostCalculate calculate1 = new PostCalculate(); int result1 = calculate1.calculate(i, j); System.out.println("######################Calculate result1:" + result1); PostCalculate calculate2 = new PostCalculate(false); int result2 = calculate2.calculate(i, j); System.out.println("######################Calculate result2:" + result2); } private static class StackFrame {} private static class AgentRecordingManagerBootstrap { public static boolean sIsFullRecording; } private static class DefaultMethodCallbacks { public static StackFrame enterCallback(String method) { return new StackFrame(); } public static void exitCallback(StackFrame stackFrame) { } public static void exceptionalExitCallback(Throwable t, StackFrame stackFrame) { } } } <file_sep>package com.quest.apm.testjavaee.ejb.sessionbean; import javax.ejb.EJBLocalHome; import javax.ejb.CreateException; public interface HelloLocalHome extends EJBLocalHome { public HelloLocal create () throws CreateException; } <file_sep>package com.quest.apm.testjavaee.ejb.ejb3.sessionbean; import javax.ejb.LocalBean; import javax.ejb.Local; import javax.ejb.Stateless; import java.io.Serializable; import java.util.ArrayList; import java.util.Iterator; import java.util.List; /** * Session Bean implementation class TestStatelessSessionBeanWithLocal */ @Stateless(mappedName = "TestStatelessSessionBeanWithLocal") @LocalBean @Local(TestStatelessSessionBeanLocal.class) public class TestStatelessSessionBeanWithLocal extends BaseSessionBean implements TestStatelessSessionBeanLocal, Serializable { private static final long serialVersionUID = 1L; private List<String> kontoFonds; /** * Default constructor. */ public TestStatelessSessionBeanWithLocal() { List<String> testsTRING = new ArrayList<String>(); testsTRING.add("AA"); testsTRING.add("BB"); Iterator<String> iterator = testsTRING.iterator(); while (iterator.hasNext()) { String s = iterator.next(); System.out.println("TestStatelessSessionBeanWithLocal(): s:" + s); } this.kontoFonds = testsTRING; // TODO Auto-generated constructor stub } public TestStatelessSessionBeanWithLocal(int i) { List<String> testsTRING = new ArrayList<String>(); testsTRING.add("AA"); testsTRING.add("BB"); Iterator<String> iterator = testsTRING.iterator(); while (iterator.hasNext()) { String s = iterator.next(); System.out.println("TestStatelessSessionBeanWithLocal(int i): s:" + s); } this.kontoFonds = testsTRING; System.out.println("TestStatelessSessionBeanWithLocal(int i):" + i); // TODO Auto-generated constructor stub } @Override public String getStr(String s) { TestStatelessSessionBeanWithLocal t = new TestStatelessSessionBeanWithLocal(3); System.out.println("getStr(String s) TestStatelessSessionBeanWithLocal t=" + t); // TODO Auto-generated method stub List<String> testsTRING = new ArrayList<String>(); testsTRING.add("AA"); testsTRING.add("BB"); Iterator<String> iterator = testsTRING.iterator(); while (iterator.hasNext()) { String str = iterator.next(); System.out.println("getStr(String s): str:" + str); } return "getStr(String s) TestStatelessSessionBeanWithLocal t=" + this; } } <file_sep>package com.quest.apm.testjavaee.web.servlet; import com.quest.apm.testjavaee.Calculate; import com.quest.apm.testjavaee.ejb.jpa.entity.Book; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.PersistenceUnit; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.io.PrintWriter; import java.util.List; /** * Servlet implementation class InvokeCalculate */ @WebServlet("/InvokeCalculate") public class InvokeCalculate extends HttpServlet { private static final long serialVersionUID = 1L; public InvokeCalculate() { super(); // TODO Auto-generated constructor stub } /** * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) */ @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // TODO Auto-generated method stub this.process(request, response); } /** * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) */ @Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // TODO Auto-generated method stub this.process(request, response); } private void process(HttpServletRequest request, HttpServletResponse response) throws IOException { int i = 3; int j = 2; Calculate calculate1 = new Calculate(); int result1 = calculate1.calculate(i, j); Calculate calculate2 = new Calculate(false); int result2 = calculate2.calculate(i, j); StringBuilder sb = new StringBuilder(); sb.append("######################InvokeCalculate: result1:" + result1 + "<br/>."); sb.append("######################InvokeCalculate: result1:" + result2 + "<br/>."); output(sb.toString(), response); } private void output(String output, HttpServletResponse response) throws IOException { response.setContentType("text/html"); PrintWriter out = response.getWriter(); System.out.println(output); out.println(output); } } <file_sep>package com.quest.apm.testjavaee.ejb.sessionbean; import javax.ejb.*; /** * Hello Stateful Session Bean * The example is in page: https://docs.oracle.com/cd/B14504_01/dl/web/B10321_01/jdbcejb.htm#1012583 */ public class HelloBean implements SessionBean { public String helloWorld () { return "Hello from com.quest.apm.testjavaee.ejb.sessionbean.HelloBean"; } public void ejbCreate () throws CreateException {} public void ejbRemove () {} public void setSessionContext (SessionContext ctx) {} public void ejbActivate () {} public void ejbPassivate () {} } <file_sep>package com.quest.apm.testjavaee.web.servlet; import com.quest.apm.testjavaee.util.ApacheHttpClientUtil; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.io.PrintWriter; /** * For case 4194316-1 */ @WebServlet(urlPatterns = "/InvokeApacheHttpClient", loadOnStartup = 1) public class InvokeApacheHttpClient extends HttpServlet { private static int ae = ApacheHttpClientUtil.excuteGetHttp2(); private static final long serialVersionUID = 1L; public InvokeApacheHttpClient() { super(); // TODO Auto-generated constructor stub } @Override public void init() throws ServletException { ApacheHttpClientUtil.excuteGetHttp2(); super.init(); } /** * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) */ @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // TODO Auto-generated method stub this.process(request, response); } /** * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) */ @Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // TODO Auto-generated method stub this.process(request, response); } public void process(HttpServletRequest request, HttpServletResponse response) throws IOException { StringBuilder sb = new StringBuilder(); /* String result1 = excuteHttp(); sb.append("######################/InvokeApacheHttpClient: result1:" + result1 + "<br/>."); */ int result2 = ApacheHttpClientUtil.excuteGetHttp2(); sb.append("######################/InvokeApacheHttpClient: result2:" + result2 + "<br/>."); output(sb.toString(), response); } /* public static String excuteHttp() throws IOException { final String url = "http://apache.org/"; return ApacheHttpClientUtil.excuteGetHttp(url); } */ private void output(String output, HttpServletResponse response) throws IOException { response.setContentType("text/html"); PrintWriter out = response.getWriter(); System.out.println(output); out.println(output); } } <file_sep>package com.quest.apm.testjavaee.ejb.ejb2.department; /** * Local interface for Enterprise Bean: Department */ public interface DepartmentLocal extends javax.ejb.EJBLocalObject { /** * Get accessor for persistent attribute: id */ public java.lang.Integer getId(); /** * Get accessor for persistent attribute: description */ public java.lang.String getDescription(); /** * Set accessor for persistent attribute: description */ public void setDescription(java.lang.String newDescription); } <file_sep>package com.quest.apm.testjavaee.ejb.ejb3.sessionbean; public class BaseSessionBean { public String getStr(String s) { // TODO Auto-generated method stub return s; } } <file_sep>package com.quest.apm.testjavaee.ejb.sessionbean.dto; import java.io.Serializable; public class KontofondsDTO implements Serializable { } <file_sep>package com.quest.apm.testjavaee.ejb.ejb3.sessionbean; import javax.ejb.Remote; @Remote public interface TestStatelessSessionBeanRemote extends SessionBean { } <file_sep>package com.quest.apm.testjavaee.ejb.ejb2.department; /** * Home interface for Enterprise Bean: Department */ public interface DepartmentHome extends javax.ejb.EJBHome { /** * Creates an instance from a key for Entity Bean: Department */ public Department create(java.lang.Integer id) throws javax.ejb.CreateException, java.rmi.RemoteException; /** * Finds an instance using a key for Entity Bean: Department */ public Department findByPrimaryKey( java.lang.Integer primaryKey) throws javax.ejb.FinderException, java.rmi.RemoteException; } <file_sep>package com.quest.apm.testjavaee.ejb.ejb2.department; /** * Local Home interface for Enterprise Bean: Department */ public interface DepartmentLocalHome extends javax.ejb.EJBLocalHome { /** * Creates an instance from a key for Entity Bean: Department */ public DepartmentLocal create(java.lang.Integer id) throws javax.ejb.CreateException; /** * Finds an instance using a key for Entity Bean: Department */ public DepartmentLocal findByPrimaryKey( java.lang.Integer primaryKey) throws javax.ejb.FinderException; } <file_sep>package com.quest.apm.testjavaee.ejb.ejb2.entitybean; import javax.ejb.CreateException; import javax.ejb.EJBHome; import javax.ejb.EJBLocalHome; import javax.ejb.FinderException; import java.rmi.RemoteException; public interface BookRemoteHome extends EJBHome { public BookRemote findByPrimaryKey(Integer id) throws FinderException, RemoteException; public BookRemote create(Integer id, String name) throws CreateException, RemoteException; //public Collection findAll() throws FinderException; }
3988c682ee01ced1b7a9e74c839b11ee38ee0293
[ "Java", "SQL" ]
21
SQL
XQQ8765/APMTestJavaEE
a911d70df59b84067ecea0050d7e7eccb499e735
e1a2c9c6325372203b444010042b1713bd9b93ea
refs/heads/master
<repo_name>toktamm/LightBnB<file_sep>/seeds/01_seeds.sql INSERT INTO users (id, name, email, password) VALUES (1, 'User One', '<EMAIL>', '$2a$10$FB/BOAVhpuLvpOREQVmvmezD4ED/.JBIDRh70tGevYzYzQgFId2u.'), (2, 'User Two', '<EMAIL>', '$2a$10$FB/BOAVhpuLvpOREQVmvmezD4ED/.JBIDRh70tGevYzYzQgFId2u.'), (3, 'User Three', '<EMAIL>', '$2a$10$FB/BOAVhpuLvpOREQVmvmezD4ED/.JBIDRh70tGevYzYzQgFId2u.'); INSERT INTO properties (id, owner_id, title, description, thumbnail_photo_url, cover_photo_url, cost_per_night, parking_spaces, number_of_bathrooms, number_of_bedrooms, country, street, city, province, post_code, active) VALUES (1, 1, 'Property One', 'description', 'https://urlone.jpg', 'https://imageyone.jpeg', 1111, 1, 1, 1, 'Country One', 'Street One', 'City One', 'Province One', 111111, true), (2, 2, 'Property Two', 'description', 'https://urltwo.jpeg', 'https://imagetwo.jpeg', 2222, 2, 2, 2, 'Country Two', 'Street Two', 'City Two', 'Province Two', 222222, true), (3, 3, 'Property Three', 'description', 'https://urlthree.jpg', 'https://imagethree.jpeg', 3333, 3, 3, 3, 'Country Three', 'Street Three', 'City Three', 'Province Three', 333333, true); INSERT INTO reservations (guest_id, property_id, start_date, end_date) VALUES (1, 1, '2018-09-11', '2018-09-26'), (2, 2, '2019-01-04', '2019-02-01'), (3, 3, '2021-10-01', '2021-10-14'); INSERT INTO property_reviews (guest_id, property_id, reservation_id, rating, message) VALUES (1, 1, 1, 1, 'messages'), (2, 2, 2, 2, 'messages'), (3, 3, 2, 3, 'messages');
e2bcae8cc9bb5babaaca1938f317d388fab83768
[ "SQL" ]
1
SQL
toktamm/LightBnB
f28287032b59feac7133fa853fe019908dd88fe2
e294481379e4138add78991b2147f5f934983d22
refs/heads/master
<repo_name>schadov/libwombat<file_sep>/primitives/Euler.h #pragma once #include "StepSolverBase.h" template <template<class R> class Blas,class RealT,class Vector,class Func, class History> struct EulerStep: public StepSolverBase<Blas<RealT> >{ static void call(unsigned int N,RealT t,RealT h, Vector &x, const Func &F,const History* history = 0){ //x = x + h*F(t,x); typename StepSolverBase<Blas<RealT> >::MyBlasVector tmp(N); F(t,x,tmp); Blas<RealT>::axpy(N,h,tmp,x); } }; template <template<class R> class TBlas,class RealT,class Vector,class Func,class History> struct HeunStep : public StepSolverBase<TBlas<RealT> >{ static void call(unsigned int N,RealT t,RealT h, Vector &x, const Func &F,const History* history = 0){ //x = x+ h/(real_t)2.*(F(t,x)+F(t+h,x+h*F(t,x))); typedef TBlas<RealT> Blas; typename StepSolverBase<TBlas<RealT> >::MyBlasVector ftx(N); F(t,x,ftx); //ftx = F(t,x) typename StepSolverBase<TBlas<RealT> >::MyBlasVector y2(N); Blas::copy(N,x,y2); Blas::axpy(N,h,ftx,y2); //x+h*F(t,x); (y2= ftx*h + y2) typename StepSolverBase<TBlas<RealT> >::MyBlasVector ftx2(N); F(t+h,y2,ftx2); //F(t+h,x+h*F(t,x)) Blas::axpy(N,1.0,ftx,ftx2); //(F(t,x)+F(t+h,x+h*F(t,x))) Blas::axpy(N,h/(RealT)2.0,ftx2,x); } }; <file_sep>/primitives/defaults.h #pragma once namespace defaults{ const double DerivDeltaDefault = 0.001; const double NewtonEpsilon = 0.0001; const unsigned int NewtonSimplifiedBreakCount = 9; const unsigned int ImplicitMethodMaxNewtonSteps = 20; const double NewtonEpsilonForDE = 0.001; }<file_sep>/primitives/Skvortsov.h #pragma once #include "StepSolverBase.h" template <template<class R> class TBlas,class RealT,class Vector,class Func,class History> struct Skvortsov1Step : public StepSolverBase<TBlas<RealT> >{ static void call(unsigned int N,RealT t,RealT h, Vector &x, const Func &F,const History* history = 0){ typedef TBlas<RealT> Blas; typedef BlasVector<Blas> BlasVector; const RealT alpha = static_cast<RealT>(0.001); BlasVector k0(N); F(t,x,k0); BlasVector u1(N); Blas::copy(N,x,u1); Blas::axpy(N,h,k0,u1); const RealT t1 = t + h; BlasVector k1(N); F(t1,u1,k1); BlasVector k2(N); BlasVector u2(N); Blas::copy(N,k1,u2); Blas::axpy(N,-1.0,k0,u2); Blas::scal(N,h*alpha,u2); F(t1,u2,k2); std::vector<RealT> kh0(N); std::vector<RealT> kh1(N); std::vector<RealT> kh2(N); std::vector<RealT> xh(N); std::vector<RealT> uh1(N); Blas::extract(N,u1,&uh1[0]); Blas::extract(N,k0,&kh0[0]); Blas::extract(N,k1,&kh1[0]); Blas::extract(N,k2,&kh2[0]); for (unsigned int i=0;i<N;++i) { RealT a = alpha*(kh1[i]-kh0[i]); RealT b = kh2[i] - kh1[i]; RealT c; if(abs(b)<=1.6*abs(a)){ if(b!=0) b = b/a; c = static_cast<RealT>(1/2.+b/6.); } else{ a = a/b; if(a<0) c = -a*(1+a); else c = static_cast<RealT>(1.23*a); } xh[i] = uh1[i]+h*c*(kh1[i]-kh0[i]); } Blas::set(N,&xh[0],x); } }; template <template<class R> class TBlas,class RealT,class Vector,class Func,class History> struct Skvortsov1StepCPU : public StepSolverBase<TBlas<RealT> >{ void call(unsigned int N,RealT t,RealT h, Vector &x, const Func &F,const History* history = 0){ typedef TBlas<RealT> Blas; typedef BlasVector<Blas> BlasVector; const RealT alpha = static_cast<RealT>(0.001); BlasVector k0(N); F(t,x,k0); BlasVector u1(N); Blas::copy(N,x,u1); Blas::axpy(N,h,k0,u1); const RealT t1 = t + h; BlasVector k1(N); F(t1,u1,k1); BlasVector k2(N); BlasVector u2(N); Blas::copy(N,k1,u2); Blas::axpy(N,-1.0,k0,u2); Blas::scal(N,h*alpha,u2); F(t1,u2,k2); for (unsigned int i=0;i<N;++i) { RealT a = alpha*(k1[i]-k0[i]); RealT b = k2[i] - k1[i]; RealT c; if(abs(b)<=1.6*abs(a)){ if(b!=0) b = b/a; c = static_cast<RealT>(1/2.+b/6.); } else{ a = a/b; if(a<0) c = -a*(1+a); else c = static_cast<RealT>(1.23*a); } x[i] = u1[i]+h*c*(k1[i]-k0[i]); } } }; ////////////////////////////////////////////////////////////////////////// template <template<class R> class TBlas,class RealT,class Vector,class Func,class History> struct Skvortsov2Step : public StepSolverBase<TBlas<RealT> >{ void call(unsigned int N,RealT t,RealT h, Vector &x, const Func &F,const History* history = 0){ typedef TBlas<RealT> Blas; typedef BlasVector<Blas> BlasVector; const RealT alpha = static_cast<RealT>(0.001); BlasVector k0(N); F(t,x,k0); //u1 = x+h*k0; //k1 = F(t1,u1) BlasVector u1(N); Blas::copy(N,x,u1); Blas::axpy(N,h,k0,u1); const RealT t1 = t + h; BlasVector k1(N); F(t1,u1,k1); //u2 = u1 + h/2*(k1-k0); //k2 = F(t1,u2); BlasVector k2(N); BlasVector u2(N); Blas::copy(N,k1,u2); Blas::axpy(N,-1.0,k0,u2); Blas::axpy(N,h/2,u2,u1); //u1=u2 F(t1,u1,k2); //u3 = u2 + h*alpha*(k2-k1); //k3 = F(t1,u3); BlasVector k3(N); BlasVector u3(N); Blas::copy(N,k2,u3); Blas::axpy(N,-1.0,k1,u3); Blas::scal(N,h*alpha,u3); Blas::axpy(N,1.0,u1,u3); F(t1,u3,k3); std::vector<RealT> kh3(N); std::vector<RealT> kh1(N); std::vector<RealT> kh2(N); std::vector<RealT> xh(N); std::vector<RealT> uh2(N); Blas::extract(N,u1,&uh2[0]); Blas::extract(N,k3,&kh3[0]); Blas::extract(N,k1,&kh1[0]); Blas::extract(N,k2,&kh2[0]); for (unsigned int i=0;i<N;++i) { RealT a = alpha*(kh2[i]-kh1[i]); RealT b = kh3[i] - kh2[i]; RealT c; if(abs(b)<=2*abs(a)){ if(b!=0) b = b/a; c = static_cast<RealT>(1/3.+b/24.); } else{ a = a/b; if(a<0) c = static_cast<RealT>(1.13*a*(1+a)/(a-1)); else c = a; } xh[i] = uh2[i]+h*c*(kh2[i]-kh1[i]); } Blas::set(N,&xh[0],x); } }; template <template<class R> class TBlas,class RealT,class Vector,class Func,class History> struct Skvortsov2StepCPU : public StepSolverBase<TBlas<RealT> >{ void call(unsigned int N,RealT t,RealT h, Vector &x, const Func &F,const History* history = 0){ typedef TBlas<RealT> Blas; typedef BlasVector<Blas> BlasVector; const RealT alpha = static_cast<RealT>(0.001); BlasVector k0(N); F(t,x,k0); //u1 = x+h*k0; //k1 = F(t1,u1) BlasVector u1(N); Blas::copy(N,x,u1); Blas::axpy(N,h,k0,u1); const RealT t1 = t + h; BlasVector k1(N); F(t1,u1,k1); //u2 = u1 + h/2*(k1-k0); //k2 = F(t1,u2); BlasVector k2(N); BlasVector u2(N); Blas::copy(N,k1,u2); Blas::axpy(N,-1.0,k0,u2); Blas::axpy(N,h/2,u2,u1); //u1=u2 F(t1,u1,k2); //u3 = u2 + h*alpha*(k2-k1); //k3 = F(t1,u3); BlasVector k3(N); BlasVector u3(N); Blas::copy(N,k2,u3); Blas::axpy(N,-1.0,k1,u3); Blas::scal(N,h*alpha,u3); Blas::axpy(N,1.0,u1,u3); F(t1,u3,k3); for (unsigned int i=0;i<N;++i) { RealT a = alpha*(k2[i]-k1[i]); RealT b = k3[i] - k2[i]; RealT c; if(abs(b)<=2*abs(a)){ if(b!=0) b = b/a; c = static_cast<RealT>(1/3.+b/12.); } else{ a = a/b; if(a<0) c = static_cast<RealT>(a*(1+a)/(a-1)); else c = a; } x[i] = u1[i]+h*c*(k2[i]-k1[i]); } } }; template <template<class R> class TBlas,class RealT,class Vector,class Func,class History> struct Skvortsov2StepCPU_ : public StepSolverBase<TBlas<RealT> >{ int call(unsigned int N,RealT t,RealT h, Vector &x, const Func &F,const History* history = 0){ typedef TBlas<RealT> Blas; typedef BlasVector<Blas> BlasVector; const RealT alpha = static_cast<RealT>(0.001); BlasVector k0(N); F(t,x,k0); //u1 = x+h*k0; //k1 = F(t1,u1) BlasVector u1(N); Blas::copy(N,x,u1); Blas::axpy(N,h,k0,u1); const RealT t1 = t + h; BlasVector k1(N); F(t1,u1,k1); //u2 = u1 + h/2*(k1-k0); //k2 = F(t1,u2); BlasVector k2(N); BlasVector u2(N); Blas::copy(N,k1,u2); Blas::axpy(N,-1.0,k0,u2); Blas::axpy(N,h/2,u2,u1); //u1=u2 F(t1,u1,k2); //u3 = u2 + h*alpha*(k2-k1); //k3 = F(t1,u3); BlasVector k3(N); BlasVector u3(N); Blas::copy(N,k2,u3); Blas::axpy(N,-1.0,k1,u3); Blas::scal(N,h*alpha,u3); Blas::axpy(N,1.0,u1,u3); F(t1,u3,k3); real_t q = 0; int r=0; for (unsigned int i=0;i<N;++i) { RealT a = alpha*(k2[i]-k1[i]); RealT b = k3[i] - k2[i]; RealT c; if(abs(b)<=2*abs(a)){ if(b!=0) b = b/a; c = static_cast<RealT>(1/3.+b/12.); } else{ if(abs(b)>5*abs(a)){ return 1; } a = a/b; if(a<0) c = static_cast<RealT>(a*(1+a)/(a-1)); else c = a; } x[i] = u1[i]+h*c*(k2[i]-k1[i]); } return r; } }; template <template<class R> class TBlas,class RealT,class Vector,class Func,class History> struct Skvortsov3StepCPU : public StepSolverBase<TBlas<RealT> >{ void call(unsigned int N,RealT t,RealT h, Vector &x, const Func &F,const History* history = 0){ typedef TBlas<RealT> Blas; typedef BlasVector<Blas> BlasVector; const RealT alpha = static_cast<RealT>(0.001); BlasVector k0(N); F(t,x,k0); //u1 = x + h/2*k0; //k1 = F(t+h/2,u1); BlasVector u1(N); Blas::copy(N,x,u1); Blas::axpy(N,h/2,k0,u1); const RealT t1 = t + h; BlasVector k1(N); F(t1,u1,k1); //u2 = x + h*k0; //k2 = F(t1,u2); BlasVector k2(N); BlasVector u2(N); Blas::copy(N,x,u2); Blas::axpy(N,h,k0,u2); F(t1,u1,k2); //u3 = x + h*(2*k1-(k0+k1)/2); //k3 = F(t1,u3); BlasVector k3(N); BlasVector u3(N); Blas::copy(N,k0,k3); Blas::copy(N,x,u3); Blas::axpy(N,1.0,k1,k3); Blas::scal(N,0.5,k3); Blas::axpy(N,-2,k1,k3); Blas::axpy(N,-h,k3,u3); F(t1,u3,k3); //u4 = x + h/6*(k0+4*k1-k2+2*k3); //k4 = F(t1,u4); BlasVector k4(N); BlasVector u4(N); Blas::copy(N,k0,k4); Blas::axpy(N,4,k1,k4); Blas::axpy(N,-1,k2,k4); Blas::axpy(N,2,k3,k4); Blas::copy(N,x,u4); Blas::axpy(N,h/6,k4,u4); F(t1,u4,k4); //u5 = u4+h*alpha*(k4-k3); //k5 = F(t1,u5); BlasVector k5(N); BlasVector u5(N); Blas::copy(N,k4,k5); Blas::axpy(N,-1,k3,k5); Blas::copy(N,u4,u5); Blas::axpy(N,h*alpha,k5,u5); F(t1,u5,k5); for (unsigned int i=0;i<N;++i) { RealT a = alpha*(k4[i]-k3[i]); RealT b = k5[i] - k4[i]; RealT c; if(abs(b)<=2.2*abs(a)){ if(b!=0) b = b/a; c = static_cast<RealT>(1/4.+b/20.); } else{ a = a/b; if(a<0) c = -a*(a*(a*(a*6+6)+3)+1); else c = static_cast<RealT>(0.792*a); } x[i] = u4[i]+h*c*(k4[i]-k3[i]); } } }; template <template<class R> class TBlas,class RealT,class Vector,class Func,class History> struct Rk4StepStabilized : public StepSolverBase<TBlas<RealT> >{ void call(unsigned int N,RealT t,RealT h, Vector &x, const Func &F,const History* history = 0){ typedef TBlas<RealT> Blas; typedef BlasVector<Blas> BlasVector; BlasVector k1(N),k2(N),k3(N),k4(N); BlasVector tmp(N); Blas::copy(N,x,tmp); //k1 F(t,x,k1); //k2 RealT t1 = t+h/2; Blas::axpy(N,h/2,k1,tmp); F(t1,tmp,k2); Blas::copy(N,x,tmp); //k3 Blas::axpy(N,h/2,k2,tmp); F(t1,tmp,k3); Blas::copy(N,x,tmp); //k4 /* RealT t2 = t+h; Blas::axpy(N,h,k3,tmp); F(t2,tmp,k4);*/ for (unsigned int i=0;i<N;++i) { RealT a = k2[i]-k1[i]; RealT b = k3[i]-k2[i]; if(std::abs(b)<=std::abs(a) || a*b >= 0){ tmp[i] = x[i]+h*k3[i]; } else{ b = a/b; b = -(1+3*b*(1+b+0.5f*b*b )); tmp[i] = x[i]+h*(k1[i] + a*b); } } F(t+h,tmp,k4); //K Blas::axpy(N,2,k2,k1); Blas::axpy(N,2,k3,k4); Blas::axpy(N,1,k1,k4); //x Blas::axpy(N,h/6,k4,x); } }; template <template<class R> class TBlas,class RealT,class Vector,class Func,class History> struct BogackiShampineStab : public StepSolverBase<TBlas<RealT> >{ RealT call(unsigned int N,RealT t,RealT h, Vector &x, const Func &F,const History* history = 0){ typedef TBlas<RealT> Blas; typedef BlasVector<Blas> BlasVector; BlasVector k1(N),k2(N),k3(N),k4(N),k5(N); BlasVector tmp(N); Blas::copy(N,x,tmp); //k1 F(t,x,k1); //k2 RealT t1 = t+h/2; Blas::axpy(N,h/2,k1,tmp); F(t1,tmp,k2); Blas::copy(N,x,tmp); //k3 Blas::axpy(N,RealT(3.0*h/4.0),k2,tmp); F(t+RealT(3.0*h/4.0),tmp,k3); Blas::copy(N,x,tmp); Blas::copy(N,x,tmp); Blas::axpy(N,RealT(2.0/9)*h,k1,tmp); Blas::axpy(N,RealT(3.0/9)*h,k2,tmp); Blas::axpy(N,RealT(4.0/9)*h,k3,tmp); //k4 RealT t2 = t+h; //Blas::axpy(N,h,m,tmp); F(t2,tmp,k4); //K Blas::axpy(N,RealT(7.0/24.0)*h,k1,x); Blas::axpy(N,RealT(1.0/4.0)*h,k2,x); Blas::axpy(N,RealT(1.0/3.0)*h,k3,x); Blas::axpy(N,RealT(1.0/8.0)*h,k4,x); RealT d = 0; for (unsigned int i=0;i<N;++i){ const RealT q = x[i] - tmp[i]; d += q*q; } for (unsigned int i=0;i<N;++i) { RealT a = k2[i]-k1[i]; RealT b = k3[i] - k2[i]; RealT c; if(abs(b)<=abs(a) && a*b>=0){ if(b!=0) b = b/a; c = 0; } else{ a = a/b; if(a<0) c = -a -a*a; else c = a; } x[i] = x[i]+c*(k3[i]-k2[i]); } return sqrt(d); } }; <file_sep>/primitives/irk.h #pragma once #include "StepSolverBase.h" #include "implicit_step.h" template<class RealT,template<class T> class Blas ,class Func,class Vector> struct IrkFunctor{ unsigned int nstages_; unsigned int nequations_; typedef BlasMatrix<Blas<RealT> > BlasMatrix; //typedef BlasVector<Blas<RealT> > BlasVector; const BlasMatrix& A_; const Vector &x_; const Func& F_; const RealT h_; const BlasVector<Blas<RealT> > & times_; mutable std::vector<std::vector<RealT> > s; IrkFunctor( unsigned int N, unsigned int nstages, const BlasMatrix& A, const Vector &x, const Func& F, RealT h, const BlasVector<Blas<RealT> >& times ): A_(A),x_(x),h_(h),F_(F),times_(times) { nstages_ = nstages; nequations_ = N; s.resize(nstages); for (unsigned int m=0;m<nstages_;++m){ s[m].resize(nequations_); s[m].assign(&x_[0],&x_[nequations_]); } } void operator()(RealT* in, RealT* out) const { for (unsigned int m=0;m<nstages_;++m) { for (unsigned int i=0;i<A_.get_dim();++i){ for (unsigned int j=0;j<nequations_;++j){ s[m][j] = A_(m,i)*in[j+i*nequations_]; } } BlasVector<Blas<RealT> > t(nequations_); F_(times_[m],&s[m][0],t); Blas<RealT>::scal(nequations_,h_,t); //BlasVector t = h_ * F_(times_[m],s[m]); for (unsigned int i=0;i<nequations_;++i){ t[i] -= in[i+m*nequations_]; out[i+m*nequations_] = t[i]; } } } }; template <template<class RealT> class Blas,class RealT,class Vector,class Func,class History> struct IrkGeneric : StepSolverBase<Blas<RealT> > //public ImplicitStepSolverBase<RealT,Vector,Func,Blas,History,ThreeEightsFunctor<RealT,Blas,Func,History> > { protected: typedef BlasVector<Blas<RealT> > BlasVector; BlasVector ks_; BlasVector b_; BlasVector c_; BlasMatrix<Blas<RealT> > A_; unsigned int nstages_; void call_impl(unsigned int N,RealT t,RealT h, Vector &x, const Func &F,const History* history = 0){ const unsigned int nequations = N; const unsigned int nstages = nstages_; BlasVector times(nstages); for (unsigned int i=0;i<nstages;++i){ times[i] = t + h*c_[i]; } IrkFunctor<RealT,Blas, Func,Vector> solver(nequations,nstages,A_,x,F,h,times); solve_newton<RealT,NewtonSolver,Blas,LUsolver,JacobyAuto>(nequations*nstages,solver,ks_,defaults::ImplicitMethodMaxNewtonSteps); for (unsigned int i=0;i<nstages;++i) { BlasVector t(nequations); for (unsigned int j = 0;j<nequations;++j){ t[j] = ks_[j+i*nequations]; } Blas<RealT>::scal(N,b_[i],t); Blas<RealT>::axpy(N,1.0,t,x); } } public: void init(unsigned int N,RealT * init){ unsigned int neqs = N; unsigned int nstages = nstages_; ks_.reset(neqs*nstages_); for (unsigned int m =0; m< nstages;++m){ for (unsigned int j=0;j<neqs;++j){ ks_[j+m*neqs] = init[j]; } } } void call(unsigned int N,RealT t,RealT h, Vector &x, const Func &F,const History* history = 0){ return call_impl(N,t,h,x,F,history); } static unsigned int history_length(){ return 1; } }; /************************************************************************/ /* Radau IA method of order 3, see Hairer et al. vol 2 */ /************************************************************************/ template <template<class RealT> class Blas,class RealT,class Vector,class Func,class History> struct IrkRadauIA3Step : public IrkGeneric<Blas,RealT,Vector,Func,History> { IrkRadauIA3Step() { this->A_.reset(2); this->A_(0,0) = (RealT)(1./4); this->A_(0,1) = (RealT)(-1./4); this->A_(1,0) = (RealT)(1./4); this->A_(1,1) = (RealT)(5./12); this->b_.reset(2); this->b_[0] = (RealT)(1./4); this->b_[1] = (RealT)(3./4); this->c_.reset(2); this->c_[0] = 0; this->c_[1] = (RealT)(2./3); this->nstages_ = 2; } }; /************************************************************************/ /* Gauss method of 4-th order, see hairer et al. vol 2 */ /************************************************************************/ template <template<class RealT> class Blas,class RealT,class Vector,class Func,class History> struct IrkGauss4Step : public IrkGeneric<Blas,RealT,Vector,Func,History> { IrkGauss4Step() { this->A_.reset(2); this->A_(0,0) = (RealT)(1./4); this->A_(0,1) = (RealT)(-0.0386751345948129); // 1/4 - sqrt(3)/6 this->A_(1,0) = (RealT)(0.538675134594813); // 1/4 + sqrt(3)/6 this->A_(1,1) = (RealT)(1./4); this->b_.reset(2); this->b_[0] = (RealT)(1./2); this->b_[1] = (RealT)(1./2); this->c_.reset(2); this->c_[0] = (RealT)0.211324865405187; // 1./2 - sqrt(3.)/6; this->c_[1] = (RealT)0.538675134594813; // 1./4 + sqrt(3.)/6; this->nstages_ = 2; } }; /************************************************************************/ /* Lobatto IIIC method of order 6, see Hairer et al. vol 2 */ /************************************************************************/ template <template<class RealT> class Blas,class RealT,class Vector,class Func,class History> struct IrkLobattoIIIC6Step : public IrkGeneric<Blas,RealT,Vector,Func,History> { IrkLobattoIIIC6Step() { this->A_.reset(4); this->A_(0,0) = (RealT)(1./12); this->A_(0,1) = (RealT)(-0.186338998124982); // sqrt(5)/12 this->A_(0,2) = (RealT)0.186338998124982; //sqrt(5)/12 this->A_(0,3) = (RealT)(-1./12); this->A_(1,0) = (RealT)(1./12); this->A_(1,1) = (RealT)(1./4); this->A_(1,2) = (RealT)-0.0942079307083088; //((10 - 7*sqrt(5.))/60); this->A_(1,3) = (RealT)(-1./12); this->A_(2,0) = (RealT)(1./12); this->A_(2,1) = (RealT)(0.427541264041642); // ((10 + 7*sqrt(5.))/60); this->A_(2,2) = (RealT)0.186338998124982; //sqrt(5)/12 this->A_(2,3) = (RealT)(-0.0372677996249965); //-sqrt(5)/60 this->A_(3,0) = (RealT)(1./12); this->A_(3,1) = (RealT)(5./12); this->A_(3,2) = (RealT)(5./12); this->A_(3,3) = (RealT)(1./12); this->b_.reset(4); this->b_[0]=(RealT)(1./12); this->b_[1]=(RealT)(5./12); this->b_[2]=(RealT)(5./12); this->b_[3]=(RealT)(1./12); this->c_.reset(4); this->c_[0] = 0; this->c_[1] = (RealT)0.276393202250021; //(5 - sqrt(5.))/10.; this->c_[2] = (RealT)0.723606797749979; //(5 + sqrt(5.))/10.; this->c_[3] = 1; this->nstages_ = 4; } };<file_sep>/primitives_test/explicit_rk_test.cpp #include <gtest/gtest.h> #include "../primitives/types.h" #include "../primitives/ode_solver.h" #include "../primitives/RefBlas.h" #include "../primitives/dirk.h" #include "test_functions.h" TEST(BogackihSampineTest, SolvesTestEq1){ test_equation1<BogackiShampineStep>(); } TEST(BogackihSampineTest, SolvesTestEq2){ test_equation2<BogackiShampineStep>(); } <file_sep>/primitives/lin_solve.h #pragma once template<class RealT, template<class BT> class Blas, template<class SBlas,class SRealT,class SMatrix,class SVector> class Solver, class Matrix, class Vector > void solve_linear(unsigned int N, const Matrix& M, const Vector& b, Vector &result ){ Solver<Blas<RealT>, RealT, Matrix, Vector> s; s.call(N,M,b,result); }<file_sep>/primitives_test/test_functions.h #pragma once // inline void equation(float t, const float* x, float* F){ F[0] = t*2; } inline void sin_eq(double t, const double* x, double* F) { F[0] = 3*sin(4*t); } inline double sin_eq_analytic(double tm) { return -3./4*cos(4*tm); } template< template <template<class RealT> class Blas,class RealT,class Vector,class Func,class History> class Solver > void test_equation1(){ const unsigned int ndim = 1; Vector<float> init(ndim); init[0] = 0.0; Vector<float> result(ndim); const float step = 0.01f; const float dend = 4.0f; solve_fixedstep<float,RefBlas,Solver>(ndim, 0.0f,dend, step, equation, init.data(), result.data() ); const float epsilon = result[0] * step; EXPECT_EQ(epsilon > 0,true); EXPECT_EQ(std::abs(dend*dend - result[0])<epsilon, true); } template< template <template<class RealT> class Blas,class RealT,class Vector,class Func,class History> class Solver > void test_equation2(){ const unsigned int ndim = 1; Vector<double> init(ndim); init[0] = sin_eq_analytic(0.0); Vector<double> result(ndim); const double step = 0.001; const double dend = 3.0; solve_fixedstep<double,RefBlas,Solver>(ndim, 0.0f,dend, step, sin_eq, init.data(), result.data() ); const double epsilon = 0.01; EXPECT_EQ(epsilon > 0,true); EXPECT_EQ(std::abs(sin_eq_analytic(dend) - result[0])<epsilon, true); } <file_sep>/primitives_test/dirk_test.cpp #include <gtest/gtest.h> #include "../primitives/types.h" #include "../primitives/ode_solver.h" #include "../primitives/RefBlas.h" #include "../primitives/dirk.h" #include "test_functions.h" TEST(SDirk3Test,SolvesTestEq1){ test_equation1<SDirk3Step>(); } TEST(SDirk3Test,SolvesTestEq2){ test_equation2<SDirk3Step>(); } TEST(SDirkNT1Test,SolvesTestEq1){ test_equation1<SDirkNT1Step>(); } TEST(SDirkNT1Test,SolvesTestEq2){ test_equation2<SDirkNT1Step>(); } TEST(SDirkLStableTest,SolvesTestEq1){ test_equation1<SDirkLStableStep>(); } TEST(SDirkLStableTest,SolvesTestEq2){ test_equation2<SDirkLStableStep>(); } <file_sep>/primitives/jacobian.h #pragma once #include "defaults.h" template<class Blas,class Matrix,class Vector,class Function> class JacobyAuto{ typedef typename Blas::FloatType RealT; public: void call(unsigned int N,const Function& fun, const Vector &x, Matrix& J, RealT deltax=defaults::DerivDeltaDefault){ //BlasVector<Blas> deltax(N); typedef BlasVector<Blas> MyBlasVector; MyBlasVector t(N); MyBlasVector t2(N); MyBlasVector tt(N); MyBlasVector ft(N); MyBlasVector ft2(N); bool has_nz = false; for (unsigned int j=0;j<N;++j) { Blas::copy(N,x,t); Blas::copy(N,x,t2); t[j]-=deltax; t2[j]+=deltax; fun(t,ft); fun(t2,ft2); for (unsigned int k=0;k<N;++k) { tt[k] = (ft2[k]-ft[k])/(2*deltax); } for (unsigned int i=0;i<N;++i){ J(i,j) = tt[i]; if(J(i,j)!=0.0) has_nz = true; } } } };<file_sep>/primitives/SparseMatrix.h #pragma once #include <vector> #include <boost/bind.hpp> #include <algorithm> #include <map> #include "tbb_helper.h" #include "BlasCommon.h" #include "CUDABlas.h" #include "cuda_sparse.h" #include <cassert> #include "FullMatrix.h" template<class RealT> class SparseMatrixCRS { typedef std::vector<unsigned int> IndexArray; typedef std::vector<RealT> DataArray; IndexArray colind_; IndexArray rowptr_; DataArray data_; CRS_matrix_cuda<RealT> *cuda_storage_; DataArray diag_; public: SparseMatrixCRS():cuda_storage_(0){ } void from_full(const FullMatrix<RealT>& m) { diag_.clear(); colind_.clear(); rowptr_.clear(); data_.clear(); unsigned int ri = 0; for (unsigned int i=0;i<m.rows();++i) { const typename FullMatrix<RealT>::Row & row = m.row(i); if(row.empty()){ continue; } rowptr_.push_back(ri); for (typename FullMatrix<RealT>::Row::const_iterator jt = row.begin();jt!=row.end();++jt) { if(jt->first==i){ diag_.push_back(jt->second); } data_.push_back(jt->second); colind_.push_back(jt->first); } ri+=row.size(); } rowptr_.push_back(data_.size()); } const RealT* diag()const{ return &diag_[0]; } unsigned int rows()const{ return rowptr_.size() - 1; } //only for non-critical code, quite slow, direct manipulation of members is preffered in algos RealT get(unsigned int i,unsigned int j){ assert(i<=rows()); assert(j<=rows()); //assume matrix is square for(unsigned int nj=rowptr[i] ; nj<rowptr[i+1]; nj++){ if(j==nj){ return data_[nj] } } return 0; } /************************************************************************/ /* TBB spmv */ /************************************************************************/ private: friend class Tbb_spmv_worker; struct Tbb_spmv_worker { const SparseMatrixCRS* pa_; const RealT* px_; RealT* py_; Tbb_spmv_worker(const SparseMatrixCRS* A, const RealT* x, RealT* y):pa_(A),px_(x),py_(y) {} Tbb_spmv_worker(const Tbb_spmv_worker& right,tbb::split):pa_(right.pa_),px_(right.px_),py_(right.py_) {} void operator()(tbb::blocked_range<int>& r) const { const typename SparseMatrixCRS::IndexArray& rowptr = pa_->rowptr_; const typename SparseMatrixCRS::IndexArray& colind = pa_->colind_; const typename SparseMatrixCRS::DataArray& a = pa_->data_; const RealT* const & x = px_; RealT* y = py_; for (int i = r.begin();i!=r.end();++i){ RealT s = RealT(0.0); for(unsigned int j=rowptr[i] ; j<rowptr[i+1]; j++){ s += a[j] * x[colind[j]]; } y[i] = s; } } }; public: void spmv_tbb(RealT* x,RealT* y, unsigned int split_threshold = 87500){ Tbb_spmv_worker worker(this,x,y); tbb::parallel_for(TbbRange(0,rows(),split_threshold),worker); } /************************************************************************/ /* CUDA */ /************************************************************************/ typedef CRS_matrix_cuda<RealT> GPU_matrix_type; GPU_matrix_type load_to_gpu()const{ GPU_matrix_type gpu_storage; //allocate //TODO: check for errors CUDABlas::allocate(data_.size(),gpu_storage.a); CUDABlas::allocate(colind_.size(),gpu_storage.colind); CUDABlas::allocate(rowptr_.size(),gpu_storage.rowptr); gpu_storage.nrows = rows(); gpu_storage.nelements = data_.size(); CUDABlas::set(data_.size(),&data_[0],gpu_storage.a); CUDABlas::set(colind_.size(),&colind_[0],gpu_storage.colind); //CUDABlas::set(rowptr_.size(),&rowptr_[0],gpu_storage.rowptr_); std::vector<uint2> redundant_rp(rowptr_.size()-1); for (unsigned int i=0; i<rowptr_.size()-1; i++) { redundant_rp[i].x = rowptr_[i] ; redundant_rp[i].y = rowptr_[i+1] ; } CUDABlas::set(rowptr_.size()-1,&redundant_rp[0],gpu_storage.rowptr); return gpu_storage; } void load_from_gpu(GPU_matrix_type gpu_storage) { data_.resize(gpu_storage.nelements); colind_.resize(gpu_storage.nelements); CUDABlas::extract(gpu_storage.nelements,gpu_storage.a,&data_[0]); CUDABlas::extract(gpu_storage.nelements,gpu_storage.colind,&colind_[0]); std::vector<uint2> redundant_rp(gpu_storage.nrows); CUDABlas::extract(gpu_storage.nrows,gpu_storage.rowptr,&redundant_rp[0]); rowptr_.resize(gpu_storage.nrows+1); for (unsigned int i=0; i<rowptr_.size(); i++) { rowptr_[i]=redundant_rp[i].x; } rowptr_.back() = redundant_rp.back().y; return ; } void deallocate_gpu(GPU_matrix_type data)const{ CUDABlas::deallocate(data.a); CUDABlas::deallocate(data.colind); CUDABlas::deallocate(data.rowptr); } static void spmv_cuda(GPU_matrix_type A, RealT *x, RealT *b){ spmv_csr_float(A,x,b); } void attach_gpu_storage(GPU_matrix_type cuda_storage){ assert(cuda_storage_==0); if(cuda_storage_==0){ cuda_storage_ = new GPU_matrix_type(cuda_storage); } } void deallocate_gpu_storage(){ if(cuda_storage_!=0){ deallocate_gpu(*cuda_storage_); delete cuda_storage_; } } GPU_matrix_type get_gpu_storage()const{ return *cuda_storage_; } };<file_sep>/primitives/DenseMatrix.h #pragma once #include <vector> #include <mkl.h> #include <boost/utility.hpp> #include <boost/type_traits.hpp> #include "tbb_helper.h" #include "cuda_vector.h" template<class RealT> struct Dense_matrix_cuda{ RealT* a; unsigned int nrows; unsigned int nelements; }; template<class Real> class DenseMatrix { std::vector<Real> data_; unsigned int dim_; friend class Row; unsigned int get_coord(int i,int j){ return i+j*dim_; } Real& value(int i,int j) { return data_[get_coord(i,j)]; } const Real& value(int i,int j) const{ return data_[get_coord(i,j)]; } typedef Dense_matrix_cuda<Real> GPU_matrix_type; GPU_matrix_type *cuda_storage_; public: DenseMatrix(){ cuda_storage_ = 0; } void allocate(unsigned int new_dim){ data_.resize(new_dim*new_dim); dim_ = new_dim; } unsigned int dim()const{ return dim_; } Real get_value(int i,int j)const { return data_[get_coord(i,j)]; } class Row{ DenseMatrix<Real> &m_; unsigned int nrow_; unsigned int beg_; public: Row(DenseMatrix& parent,unsigned int nrow):m_(parent),nrow_(nrow){ beg_ = nrow_ * m_.dim(); } Row(const DenseMatrix& parent,unsigned int nrow):m_(parent),nrow_(nrow){ beg_ = nrow_ * m_.dim(); } Real& operator [](unsigned int n){ return m_.data_[beg_ + n]; } const Real& operator [](unsigned int n)const{ return m_.data_[beg_ + n]; } }; Row operator [](unsigned int n){ return Row(*this,n); } Row operator [](unsigned int n)const{ return Row(*this,n); } ///********** SPMV*********************** //----------------sequential naive version---------------- void spmv(const Real* x,Real* y){ for (unsigned int j=0;j<dim();++j) { const Row r = operator[](j); Real sum = Real(0); for (unsigned int i=0;i<dim();++i){ sum += r[i] * x[i]; } y[j] = sum; } } void spmv_asm(const float* x,float* y){ float* data = &data_[0]; int sz =dim(); const float *endx = x + dim(); const float *end_data = &data_[0] + data_.size(); __asm{ mov ebx, data mov esi,x mov edi, y mov eax,0 xorps xmm7,xmm7 nex: movups xmm0, [ebx] movups xmm1, [esi] mulps xmm0,xmm1 addps xmm7,xmm0 add ebx,16 add esi,16 inc eax cmp esi,endx jnz nex mov esi,x xor eax,eax haddps xmm7,xmm7 haddps xmm7,xmm7 movss [edi],xmm7 add edi,4 xorps xmm7,xmm7 cmp ebx,end_data jnz nex } return; } //------------------ TBB------------------------------------ friend class Tbb_spmv_worker; struct Tbb_spmv_worker { DenseMatrix* pa_; const Real* px_; Real* py_; Tbb_spmv_worker(DenseMatrix* A, const Real* x, Real* y):pa_(A),px_(x),py_(y) {} Tbb_spmv_worker(const Tbb_spmv_worker& right,tbb::split):pa_(right.pa_),px_(right.px_),py_(right.py_) {} void operator()(tbb::blocked_range<int>& r) const { for (int j = r.begin();j!=r.end();++j) { const DenseMatrix::Row r = pa_->operator[](j); Real sum = Real(0); for (unsigned int i=0;i<pa_->dim();++i){ sum += r[i] * px_[i]; } py_[j] = sum; } } }; public: void spmv_tbb(Real* x,Real* y, unsigned int split_threshold = 128){ Tbb_spmv_worker worker(this,x,y); tbb::parallel_for(TbbRange(0,dim(),split_threshold),worker); } //------------------MKL TBB----------------------------------- struct Tbb_spmv_worker_mkl { DenseMatrix* pa_; const Real* px_; Real* py_; Tbb_spmv_worker_mkl(DenseMatrix* A, const Real* x, Real* y):pa_(A),px_(x),py_(y) {} Tbb_spmv_worker_mkl(const Tbb_spmv_worker& right,tbb::split):pa_(right.pa_),px_(right.px_),py_(right.py_) {} template<class RealT> void _gemv(tbb::blocked_range<int>& r) const; template<> void _gemv<float>(tbb::blocked_range<int>& r)const{ const int N = r.size(); const int Ncols = pa_->dim(); const int one = 1; const float done = 1.0; const float beta = 0; sgemv("t",&Ncols,&N,&done,&pa_->data_[r.begin()*pa_->dim()],&Ncols,&px_[0],&one,&beta,&py_[r.begin()],&one); } template<> void _gemv<double>(tbb::blocked_range<int>& r)const{ const int N = r.size(); const int Ncols = pa_->dim(); const int one = 1; const double done = 1.0; const double beta = 0; dgemv("t",&Ncols,&N,&done,&pa_->data_[r.begin()*pa_->dim()],&Ncols,&px_[0],&one,&beta,&py_[r.begin()],&one); } void operator()(tbb::blocked_range<int>& r) const { _gemv<Real>(r); } }; void spmv_tbb_mkl(Real* x,Real* y, unsigned int split_threshold = 256){ Tbb_spmv_worker_mkl worker(this,x,y); tbb::parallel_for(TbbRange(0,dim(),split_threshold),worker); } //-------------- MKL generic------------------------------------ void spmv_mkl(const double* x,double* y){ const int N = dim(); const int one = 1; const double done = 1.0; const double beta = 0; dgemv("n",&N,&N,&done,&data_[0],&N,x,&one,&beta,y,&one); //dgemv("n",&N,&N,&done,A,&N,X,&one,&beta,Y,&one); } void spmv_mkl(const float* x,float* y){ const int N = dim(); const int one = 1; const float done = 1.0; const float beta = 0; sgemv("t",&N,&N,&done,&data_[0],&N,x,&one,&beta,y,&one); //dgemv("n",&N,&N,&done,A,&N,X,&one,&beta,Y,&one); } //----CUDA----- void spmv_gpu(const CudaVector<float>& x,CudaVector<float>& y){ if(cuda_storage_ == 0){ throw std::exception("No GPU storage for matrix"); } GPU_matrix_type gpu_matrix = get_gpu_storage(); spmv_dense_float(gpu_matrix.a,const_cast<float*>(x.get()),y.get(),dim(),128); } void transponse(DenseMatrix &out){ out.allocate(dim()); for (unsigned int i=0;i< dim() ;++i) { for(unsigned int j=0;j<dim();++j){ out[j][i] = (*this)[i][j]; } } } GPU_matrix_type load_to_gpu()const{ GPU_matrix_type gpu_storage; //allocate //TODO: check for errors CUDABlas::allocate(data_.size(),gpu_storage.a); gpu_storage.nrows = dim(); gpu_storage.nelements = data_.size(); CUDABlas::set(data_.size(),&data_[0],gpu_storage.a); return gpu_storage; } void load_from_gpu(GPU_matrix_type gpu_storage) { data_.resize(gpu_storage.nelements); CUDABlas::extract(gpu_storage.nelements,gpu_storage.a,&data_[0]); return ; } void deallocate_gpu(GPU_matrix_type data)const{ CUDABlas::deallocate(data.a); } void attach_gpu_storage(GPU_matrix_type cuda_storage){ assert(cuda_storage_==0); if(cuda_storage_==0){ cuda_storage_ = new GPU_matrix_type(cuda_storage); } } void deallocate_gpu_storage(){ if(cuda_storage_!=0){ deallocate_gpu(*cuda_storage_); delete cuda_storage_; } } GPU_matrix_type get_gpu_storage()const{ return *cuda_storage_; } };<file_sep>/primitives/rkc.h #pragma once #include "StepSolverBase.h" #include "rkc_impl.h" template <template<class R> class Blas,class RealT,class Vector,class Func,class History> struct RKCStep3 : public StepSolverBase<Blas<RealT> >{ const static unsigned int s_ = 3; rkc_detail::RKCCoeff<RealT> coeff_; rkc_detail::W_buf<Blas<RealT> > buf; void init(unsigned int N,RealT * init){ buf.init(N); coeff_.init(s_,2.f/13.f); Blas<RealT>::allocate(N,coeff_.F0val); coeff_.F0calc = false; } void call(unsigned int N,RealT t,RealT h, Vector &x, const Func &F,const History* history = 0){ BlasVector<Blas<RealT> > tmp(N); rkc_detail::W<Blas,RealT,Func>(s_,s_)(N,t,h,F,x,tmp,coeff_,buf); Blas<RealT> ::copy(N,tmp,x); coeff_.F0calc = false; buf.clear(); } ~RKCStep3(){ if(coeff_.F0val!=0) Blas<RealT>::deallocate(coeff_.F0val); } }; #define DECLARE_RKC_METHOD(s) template <template<class R> class Blas,class RealT,class Vector,class Func,class History>\ struct RKCStep##s :\ public RKCStep3<Blas,RealT,Vector,Func,History >{const static unsigned int s_ = s;} DECLARE_RKC_METHOD(4); DECLARE_RKC_METHOD(5); DECLARE_RKC_METHOD(6); DECLARE_RKC_METHOD(7); DECLARE_RKC_METHOD(8); <file_sep>/primitives_test/euler_implicit_test.cpp #include <gtest/gtest.h> #include "../primitives/types.h" #include "../primitives/ode_solver.h" #include "../primitives/euler_implicit.h" #include "../primitives/RefBlas.h" #include "test_functions.h" TEST(EulerImplicitTest,SolvesTestEq1){ test_equation1<EulerImplicitStep>(); } TEST(EulerImplicitTest,SolvesTestEq2){ test_equation2<EulerImplicitStep>(); } ////////////////////////////////////////////////////////////////////////// TEST(EulerTrapezoidTest,SolvesTestEq1){ test_equation1<EulerTrapezoidStep>(); } TEST(EulerTrapezoidTest,SolvesTestEq2){ test_equation2<EulerTrapezoidStep>(); } ////////////////////////////////////////////////////////////////////////// TEST(SimpsonImplicitTest,SolvesTestEq1){ test_equation1<SimpsonImplicitStep>(); } TEST(SimpsonImplicitTest,SolvesTestEq2){ test_equation2<SimpsonImplicitStep>(); } ////////////////////////////////////////////////////////////////////////// TEST(TickImplicitTest,SolvesTestEq1){ test_equation1<TickImplicitStep>(); } TEST(TickImplicitTest,SolvesTestEq2){ test_equation2<TickImplicitStep>(); } ////////////////////////////////////////////////////////////////////////// TEST(ThreeEightsImplicitTest,SolvesTestEq1){ test_equation1<ThreeEightsImplicitStep>(); } TEST(ThreeEightsImplicitTest,SolvesTestEq2){ test_equation2<ThreeEightsImplicitStep>(); }<file_sep>/primitives_test/rkc_test.cpp #include <gtest/gtest.h> #include "../primitives/types.h" #include "../primitives/ode_solver.h" #include "../primitives/RefBlas.h" #include "../primitives/rkc.h" #include "test_functions.h" TEST(RKC3Test,SolvesTestEq1){ test_equation1<RKCStep3>(); } TEST(RKC3Test,SolvesTestEq2){ test_equation2<RKCStep3>(); } TEST(RKC4Test,SolvesTestEq1){ test_equation1<RKCStep4>(); } TEST(RKC4Test,SolvesTestEq2){ test_equation2<RKCStep4>(); } TEST(RKC5Test,SolvesTestEq1){ test_equation1<RKCStep5>(); } TEST(RKC5Test,SolvesTestEq2){ test_equation2<RKCStep5>(); } TEST(RKC6Test,SolvesTestEq1){ test_equation1<RKCStep6>(); } TEST(RKC6Test,SolvesTestEq2){ test_equation2<RKCStep6>(); } TEST(RKC7Test,SolvesTestEq1){ test_equation1<RKCStep7>(); } TEST(RKC7Test,SolvesTestEq2){ test_equation2<RKCStep7>(); } TEST(RKC8Test,SolvesTestEq1){ test_equation1<RKCStep8>(); } TEST(RKC8Test,SolvesTestEq2){ test_equation2<RKCStep8>(); } <file_sep>/primitives/profile.h #pragma once #include <time.h> #include <windows.h> class profile { clock_t T1,T2; char buf[32]; LARGE_INTEGER li; unsigned __int64 norm; public: profile() { T1=clock(); } clock_t get_time() { return clock()-T1; } const char* get_time_as_string() { T2=clock()-T1; sprintf(buf,"%ld",T2); return (const char*)buf; } void reset() { T1=clock(); } void inline start_hi_res(unsigned __int64 n=1000) { QueryPerformanceCounter(&li); norm=n; } unsigned int query_hi_res() { LARGE_INTEGER li2,freq; QueryPerformanceCounter(&li2); QueryPerformanceFrequency(&freq); double tpc = norm/(double)freq.QuadPart; unsigned int res = (int)((li2.QuadPart-li.QuadPart)*tpc); return res; } };<file_sep>/primitives_test/irk_test.cpp #include <gtest/gtest.h> #include "../primitives/types.h" #include "../primitives/ode_solver.h" #include "../primitives/RefBlas.h" #include "../primitives/irk.h" #include "test_functions.h" TEST(RadauIA3Test,SolvesTestEq1){ test_equation1<IrkRadauIA3Step>(); } TEST(RadauIA3Test,SolvesTestEq2){ test_equation2<IrkRadauIA3Step>(); } TEST(Gauss4Test,SolvesTestEq1){ test_equation1<IrkGauss4Step>(); } TEST(Gauss4Test,SolvesTestEq2){ test_equation2<IrkGauss4Step>(); } TEST(LobattoIIIC6Test,SolvesTestEq1){ test_equation1<IrkLobattoIIIC6Step>(); } TEST(LobattoIIIC6Test,SolvesTestEq2){ test_equation2<IrkLobattoIIIC6Step>(); } <file_sep>/primitives/StepSolverBase.h #pragma once template <class Blas> class StepSolverBase{ protected: typedef BlasVector<Blas> MyBlasVector; public: unsigned int history_length(){ return 1; } void init(unsigned int N,const typename Blas::FloatType*){ return ; } };<file_sep>/primitives/implicit_step.h #pragma once #include "newton.h" #include "lu.h" #include "jacobian.h" template <class RealT, class Vector, class Func, template<class RealB> class Blas, class History, class SolverFunctor> struct ImplicitStepSolverBase : public StepSolverBase<Blas<RealT> >{ protected: typedef ImplicitStepSolverBase<RealT,Vector,Func, Blas, History, SolverFunctor> MyBaseSolver; void call(unsigned int N,RealT t,RealT h, Vector &x, const Func &F,const History * history){ SolverFunctor solver(N,t,history,h,F); solve_newton<RealT,NewtonSolver,Blas,LUsolver,JacobyAuto>(N,solver,x,30); } };<file_sep>/primitives/rk.h #pragma once #include "StepSolverBase.h" template <template<class R> class TBlas,class RealT,class Vector,class Func,class History> struct Rk4Step : public StepSolverBase<TBlas<RealT> >{ void call(unsigned int N,RealT t,RealT h, Vector &x, const Func &F,const History* history = 0){ Vector k1,k2,k3,k4; typedef TBlas<RealT> Blas; Vector tmp; Blas::allocate(N,tmp); Blas::copy(N,x,tmp); Blas::allocate(N,k1); Blas::allocate(N,k2); Blas::allocate(N,k3); Blas::allocate(N,k4); //k1 F(t,x,k1); //k2 RealT t1 = t+h/2; Blas::axpy(N,h/2,k1,tmp); F(t1,tmp,k2); Blas::copy(N,x,tmp); //k3 Blas::axpy(N,h/2,k2,tmp); F(t1,tmp,k3); Blas::copy(N,x,tmp); //k4 RealT t2 = t+h; Blas::axpy(N,h,k3,tmp); F(t2,tmp,k4); //K Blas::axpy(N,2,k2,k1); Blas::axpy(N,2,k3,k4); Blas::axpy(N,1,k1,k4); //x Blas::axpy(N,h/6,k4,x); Blas::deallocate(tmp); Blas::deallocate(k1); Blas::deallocate(k2); Blas::deallocate(k3); Blas::deallocate(k4); } }; template <template<class R> class TBlas,class RealT,class Vector,class Func,class History> struct BogackiShampineStep : public StepSolverBase<TBlas<RealT> >{ RealT call(unsigned int N,RealT t,RealT h, Vector &x, const Func &F,const History* history = 0){ Vector k1,k2,k3,k4,m; typedef TBlas<RealT> Blas; Vector tmp; Blas::allocate(N,tmp); Blas::copy(N,x,tmp); Blas::allocate(N,k1); Blas::allocate(N,k2); Blas::allocate(N,k3); Blas::allocate(N,k4); Blas::allocate(N,m); //k1 F(t,x,k1); //k2 RealT t1 = t+h/2; Blas::axpy(N,h/2,k1,tmp); F(t1,tmp,k2); Blas::copy(N,x,tmp); //k3 Blas::axpy(N,RealT(3.0*h/4.0),k2,tmp); F(t+RealT(3.0*h/4.0),tmp,k3); Blas::copy(N,x,tmp); Blas::copy(N,x,m); Blas::axpy(N,RealT(2.0/9)*h,k1,m); Blas::axpy(N,RealT(3.0/9)*h,k2,m); Blas::axpy(N,RealT(4.0/9)*h,k3,m); //k4 RealT t2 = t+h; //Blas::axpy(N,h,m,tmp); F(t2,m,k4); //K Blas::axpy(N,RealT(7.0/24.0)*h,k1,x); Blas::axpy(N,RealT(1.0/4.0)*h,k2,x); Blas::axpy(N,RealT(1.0/3.0)*h,k3,x); Blas::axpy(N,RealT(1.0/8.0)*h,k4,x); RealT d = 0; for (unsigned int i=0;i<N;++i){ const RealT q = x[i] - m[i]; d += q*q; } Blas::deallocate(tmp); Blas::deallocate(k1); Blas::deallocate(k2); Blas::deallocate(k3); Blas::deallocate(k4); Blas::deallocate(m); return sqrt(d); } }; <file_sep>/primitives/rkc_impl.h #pragma once namespace rkc_detail{ //returns the Chebyshev polynomial value at point x template<class real_t> static real_t T(unsigned int degree, real_t x) { switch(degree) { case 0: return 1; case 1: return x; case 2: {return 2*x*x-1;} case 3: {return 4*x*x*x - 3*x;} case 4: {return 8*x*x*x*x - 8*x*x + 1;} case 5: {return 16*x*x*x*x*x - 20*x*x*x + 5*x;} case 6: {return 32*x*x*x*x*x*x - 48*x*x*x*x + 18*x*x - 1;} case 7: {return 64*x*x*x*x*x*x*x -112* x*x*x*x*x + 56*x*x*x - 7*x;} case 8: {return 128*x*x*x*x*x*x*x*x - 256*x*x*x*x*x*x + 160*x*x*x*x - 32*x*x +1;} case 9: //{return 256*x*x*x*x*x*x*x*x*x - 576*x*x*x*x*x*x*x+432*x*x*x*x*x - 120*x*x*x + 9*x;} {return cos(9*acos(x));} default:{throw "degreeeee tooooo biiig!!!!";} } } template<class real_t> static real_t dT(unsigned int degree, real_t x) { switch(degree) { case 0: return 0; case 1: return 1; case 2: {return 4*x;} case 3: {return 12*x*x - 3;} case 4: {return 32*x*x*x - 16*x;} case 5: {return 80*x*x*x*x - 60*x*x + 5;} case 6: {return 192*x*x*x*x*x - 192*x*x*x + 36*x;} case 7: {return 448*x*x*x*x*x*x -560*x*x*x*x + 168*x*x - 7;} case 8: {return 1024*x*x*x*x*x*x*x - 1536*x*x*x*x*x + 640*x*x*x - 64*x; } case 9: //{return 2304*x*x*x*x*x*x*x*x - 4032*x*x*x*x*x*x + 2160*x*x*x*x - 360*x*x + 9;} {return 9*sin(9*acos(x))/sqrt(1-x*x);} default:{throw "degreeeee tooooo biiig!!!!";} } } template<class real_t> static real_t ddT(unsigned int degree, real_t x) { switch(degree) { case 0: return 0; case 1: return 0; case 2: {return 4;} case 3: {return 24*x;} case 4: {return 96*x*x - 16;} case 5: {return 320*x*x*x - 120*x;} case 6: {return 960*x*x*x*x - 576*x*x + 36;} case 7: {return 2688*x*x*x*x*x -2240*x*x*x + 336*x;} case 8: {return 7168*x*x*x*x*x*x - 7680*x*x*x*x + 1920*x*x - 64; } case 9: //{return 18432*x*x*x*x*x*x*x* - 24192*x*x*x*x*x + 8640*x*x*x - 720*x ;} {return (-81*cos(9*acos(x))/(1-x*x)) + (9*x*sin(9*acos(x))/pow(1-x*x,3/2));} default:{throw "degreeeee tooooo biiig!!!!";} } } template<class RealT> struct RKCCoeff { typedef RealT real_t; std::vector<RealT> a; std::vector<RealT> b; std::vector<RealT> c; real_t w0; real_t w1; std::vector<RealT> mu; std::vector<RealT> nu; std::vector<RealT> mu_tlde; std::vector<RealT> gamma; mutable bool F0calc; mutable RealT* F0val; real_t eps; // static real_t calc_w0(unsigned int s, real_t eps){ const real_t fs = static_cast<real_t>(s); return 1 + eps/(fs*fs); } static real_t calc_w1(unsigned int s, real_t eps, real_t w0){ const real_t w = w0; return dT(s,w)/ddT(s,w); } static real_t calc_b(unsigned int j, real_t w0) { if(j<2) j = 2; const real_t v = dT(j,w0); return ddT(j,w0)/(v*v); } static real_t calc_a(unsigned int j,real_t bj, real_t w0) { return 1 - bj*T(j,w0); } static real_t calc_c(unsigned int j, unsigned int s, real_t w0) { if(j>1) return ((real_t)j*j-1)/((real_t)s*s-1); else if(j == 1) return calc_c(2,s,w0)/(4*w0); else if(j == 0) return 0; return 0.0; } static real_t calc_mu(unsigned int j,real_t bj,real_t bj_1,real_t w0){ return (2*bj*w0)/(bj_1); } static real_t calc_mu_tilde(unsigned int j,real_t bj,real_t bj_1,real_t w1){ if(j==1) return bj*w1; else return (2*bj*w1)/(bj_1); } static real_t calc_nu(unsigned int j,real_t bj,real_t bj_2){ return -bj/bj_2; } static real_t calc_gamma(unsigned int j,real_t aj_1,real_t mutj){ return -aj_1*mutj; } public: void init(unsigned int s,real_t eps) { a.resize(s+1); b.resize(s+1); c.resize(s+1); mu.resize(s+1); nu.resize(s+1); mu_tlde.resize(s+1); gamma.resize(s+1); this->eps = eps; w0 = calc_w0(s,eps); w1 = calc_w1(s,eps,w0); for (unsigned int i=0;i<=s;++i) b[i] = calc_b(i,w0); for (unsigned int i=0;i<=s;++i) a[i] = calc_a(i,b[i],w0); for (unsigned int i=0;i<=s;++i) c[i] = calc_c(i,s,w0); for (unsigned int i=1;i<=s;++i) mu_tlde[i] = calc_mu_tilde(i,b[i],b[i-1],w1); for (unsigned int i=2;i<=s;++i) mu[i] = calc_mu(i,b[i],b[i-1],w0); for (unsigned int i=2;i<=s;++i) nu[i] = calc_nu(i,b[i],b[i-2]); for (unsigned int i=2;i<=s;++i) gamma[i] = calc_gamma(i,a[i-1],mu_tlde[i]); } }; template<class Blas> class W_buf{ VectorArray<Blas> data_; public: typedef typename Blas::FloatType RealT; void clear(){ data_.clear(); } std::pair<bool,RealT*> find(unsigned int j){ if(j>=data_.occupied_items()) return std::make_pair(false,(RealT*)0); return std::make_pair(true,data_.get_vector_pointer(j)); } void add(unsigned int j, const RealT* val){ if(j==data_.occupied_items()) data_.push(val); else if(j<data_.occupied_items()) data_.set_at(j,val); else throw 1; } explicit W_buf(unsigned int N):data_(N,9) //TODO: remove magic constant {} W_buf(){} void init(unsigned int N){ data_.reset(N,9); } }; template<template<class R> class Blas, class RealT,class Function> struct W{ unsigned int s; unsigned int j; W(unsigned int s,unsigned int j): s(s),j(j) {} void calc_n( unsigned int N, RealT tm, RealT h, const Function& F , RealT* yn, RealT* out, const RKCCoeff<RealT>& coeff, W_buf<Blas<RealT> > & buf ) { const std::pair<bool,RealT*> bv = buf.find(j); if(bv.first){ Blas<RealT>::copy(N,bv.second,out); return; } typedef BlasVector<Blas<RealT> > BlasVector; BlasVector W0(N); BlasVector Wj_1(N); BlasVector Wj_2(N); W(s,0)(N,tm,h,F,yn,W0,coeff,buf); W(s,j-1)(N,tm,h,F,yn,Wj_1,coeff,buf); W(s,j-2)(N,tm,h,F,yn,Wj_2,coeff,buf); BlasVector fv(N); if(coeff.F0calc){ Blas<RealT>::copy(N,coeff.F0val,fv); } else{ F(tm+coeff.c[0]*h,W0,fv); } /*const point val = (1-coeff.mu[j]-coeff.nu[j])*W0 + coeff.mu[j]*Wj_1 + coeff.nu[j]*Wj_2 + coeff.mu_tlde[j]*h*F(tm+coeff.c[j-1]*h,Wj_1) + coeff.gamma[j]*h*fv ;*/ RealT* val = out; Blas<RealT>::copy(N,W0,val); const RealT c1 = 1-coeff.mu[j]-coeff.nu[j]; BlasVector f1(N); F(tm+coeff.c[j-1]*h,Wj_1,f1); Blas<RealT>::scal(N,c1,val); Blas<RealT>::axpy(N, coeff.mu[j],Wj_1,val); Blas<RealT>::axpy(N, coeff.nu[j],Wj_2,val); Blas<RealT>::axpy(N, coeff.mu_tlde[j]*h,f1,val); Blas<RealT>::axpy(N, coeff.gamma[j]*h,fv,val); if(!coeff.F0calc){ coeff.F0calc = true; //F0val = fv; Blas<RealT>::copy(N,fv,coeff.F0val); } buf.add(j,val); //return val; } void calc_0( unsigned int N, RealT tm, RealT h, const Function& F , RealT* yn, RealT* out, const RKCCoeff<RealT>& coeff, W_buf<Blas<RealT> > & buf ) { const std::pair<bool,RealT*> bv = buf.find(0); if(bv.first){ Blas<RealT>::copy(N,bv.second,out); return; } buf.add(0,yn); Blas<RealT>::copy(N,yn,out); } void calc_1( unsigned int N, RealT tm, RealT h, const Function& F , RealT* yn, RealT* out, const RKCCoeff<RealT>& coeff, W_buf<Blas<RealT> > & buf ) { const std::pair<bool,RealT*> bv = buf.find(1); if(bv.first){ Blas<RealT>::copy(N,bv.second,out); return; } typedef BlasVector<Blas<RealT> > BlasVector; //const point val = W0 + h*coeff.mu_tlde[1]*F(tm+h*coeff.c[0],W0); BlasVector W0(N); W(s,0)(N,tm,h,F,yn,W0,coeff,buf); BlasVector f(N); F(tm+h*coeff.c[0],W0,f); Blas<RealT>::copy(N,W0,out); Blas<RealT>::axpy(N,h*coeff.mu_tlde[1],f,out); buf.add(1,out); } void operator()( unsigned int N, RealT tm, RealT h, const Function& F , RealT* yn, RealT* out, const RKCCoeff<RealT>& coeff, W_buf<Blas<RealT> > & buf ) { if(this->j==0){ return calc_0(N,tm,h,F,yn,out,coeff,buf); } else if(this->j==1){ return calc_1(N,tm,h,F,yn,out,coeff,buf); } else return calc_n(N,tm,h,F,yn,out,coeff,buf); } }; } <file_sep>/primitives/parallel_euler.h #pragma once #include "StepSolverBase.h" //Parallel euler template <template<class R> class Blas,class RealT,class Vector,class Func, class History> struct PEulerStep: public StepSolverBase<Blas<RealT> >{ static void call(unsigned int N,RealT t,RealT h, Vector &x, const Func &F, int chunk_begin,int nitems,const History* history = 0){ //x = x + h*F(t,x); typename StepSolverBase<Blas<RealT> >::MyBlasVector tmp(N); F(t,x,tmp,chunk_begin,nitems); Blas<RealT>::axpy(nitems,h,&tmp[chunk_begin],&x[chunk_begin]); } }; <file_sep>/primitives_test/lu_test.cpp #include <gtest/gtest.h> #include "../primitives/types.h" #include "../primitives/lu.h" #include "../primitives/lin_solve.h" #include "../primitives/RefBlas.h" #include "test_linear_systems.h" TEST(LUTest,SolvesTestEq1){ BlasMatrix<RefBlas<double> > m1(3); m1(0,0) = 3.0; m1(1,0) = 2.0; m1(2,0) = -1.0; m1(0,1) = 2.0; m1(1,1) = -2.0; m1(2,1) = 0.5; m1(0,2) = -1.0; m1(1,2) = 4.0; m1(2,2) = -1.0; BlasVector<RefBlas<double> > b(3); b[0] = 1; b[1] = -2; b[2] = 0; BlasVector<RefBlas<double> > test(3); test[0] = 1; test[1] = -2; test[2] = -2; BlasVector<RefBlas<double> > res(3); solve_linear<double,RefBlas,LUsolver>(3,m1,b,res); const double epsilon = 0.00001; for (unsigned int i=0;i<3;++i) { EXPECT_EQ(std::abs(test[0]- res[0])<epsilon, true); } } TEST(LUTest,SolvesTest10Equations){ const unsigned int N = 10; BlasMatrix<RefBlas<double> > A(N); BlasVector<RefBlas<double> > b(N); BlasVector<RefBlas<double> > roots(N); generate_linear_system<double>(N,A,b,roots,31337); BlasVector<RefBlas<double> > res(N); solve_linear<double,RefBlas,LUsolver>(N,A,b,res); const double epsilon = 0.00001; for (unsigned int i=0;i<N;++i){ EXPECT_EQ(std::abs(roots[0]- res[0])<epsilon, true); } } TEST(LUTest,SolvesTest100Equations){ const unsigned int N = 100; BlasMatrix<RefBlas<double> > A(N); BlasVector<RefBlas<double> > b(N); BlasVector<RefBlas<double> > roots(N); generate_linear_system<double>(N,A,b,roots,511); BlasVector<RefBlas<double> > res(N); solve_linear<double,RefBlas,LUsolver>(N,A,b,res); const double epsilon = 0.00001; for (unsigned int i=0;i<N;++i){ EXPECT_EQ(std::abs(roots[0]- res[0])<epsilon, true); } } #ifndef _DEBUG TEST(LUTest,SolvesTest1000Equations){ const unsigned int N = 1000; BlasMatrix<RefBlas<double> > A(N); BlasVector<RefBlas<double> > b(N); BlasVector<RefBlas<double> > roots(N); generate_linear_system<double>(N,A,b,roots,511); BlasVector<RefBlas<double> > res(N); solve_linear<double,RefBlas,LUsolver>(N,A,b,res); const double epsilon = 0.00001; for (unsigned int i=0;i<N;++i){ EXPECT_EQ(std::abs(roots[0]- res[0])<epsilon, true); } } #endif ////////////////////////////////////////////////////////////////////////// TEST(LUPTest,SolvesTestEq1){ BlasMatrix<RefBlas<double> > m1(3); m1(0,0) = 3.0; m1(1,0) = 2.0; m1(2,0) = -1.0; m1(0,1) = 2.0; m1(1,1) = -2.0; m1(2,1) = 0.5; m1(0,2) = -1.0; m1(1,2) = 4.0; m1(2,2) = -1.0; BlasVector<RefBlas<double> > b(3); b[0] = 1; b[1] = -2; b[2] = 0; BlasVector<RefBlas<double> > test(3); test[0] = 1; test[1] = -2; test[2] = -2; BlasVector<RefBlas<double> > res(3); solve_linear<double,RefBlas,LUPsolver>(3,m1,b,res); const double epsilon = 0.00001; for (unsigned int i=0;i<3;++i) { EXPECT_EQ(std::abs(test[0]- res[0])<epsilon, true); } } TEST(LUPTest,SolvesTest10Equations){ const unsigned int N = 10; BlasMatrix<RefBlas<double> > A(N); BlasVector<RefBlas<double> > b(N); BlasVector<RefBlas<double> > roots(N); generate_linear_system<double>(N,A,b,roots,31337); BlasVector<RefBlas<double> > res(N); solve_linear<double,RefBlas,LUPsolver>(N,A,b,res); const double epsilon = 0.00001; for (unsigned int i=0;i<N;++i){ EXPECT_EQ(std::abs(roots[0]- res[0])<epsilon, true); } } TEST(LUPTest,SolvesTest100Equations){ const unsigned int N = 100; BlasMatrix<RefBlas<double> > A(N); BlasVector<RefBlas<double> > b(N); BlasVector<RefBlas<double> > roots(N); generate_linear_system<double>(N,A,b,roots,511); BlasVector<RefBlas<double> > res(N); solve_linear<double,RefBlas,LUPsolver>(N,A,b,res); const double epsilon = 0.00001; for (unsigned int i=0;i<N;++i){ EXPECT_EQ(std::abs(roots[0]- res[0])<epsilon, true); } } #ifndef _DEBUG TEST(LUPTest,SolvesTest1000Equations){ const unsigned int N = 1000; BlasMatrix<RefBlas<double> > A(N); BlasVector<RefBlas<double> > b(N); BlasVector<RefBlas<double> > roots(N); generate_linear_system<double>(N,A,b,roots,511); BlasVector<RefBlas<double> > res(N); solve_linear<double,RefBlas,LUPsolver>(N,A,b,res); const double epsilon = 0.00001; for (unsigned int i=0;i<N;++i){ EXPECT_EQ(std::abs(roots[0]- res[0])<epsilon, true); } } #endif<file_sep>/primitives_test/test_linear_systems.h #pragma once #include <algorithm> double myrand(){ return double(rand()%100)/50.-1.0; } template<class RealT,class Matrix,class Vector> void generate_linear_system(unsigned int dim, Matrix& A, Vector& b,Vector& roots, unsigned int seed){ srand(seed); std::generate(&roots[0],&roots[dim],myrand); for (unsigned int i = 0;i<dim;++i) { std::vector<RealT> coeff(dim); std::generate(coeff.begin(),coeff.end(),myrand); for (unsigned int j=0;j<dim;++j){ A(i,j) = coeff[j]; } //calculate b RealT sum = 0; for (unsigned int j=0;j<dim;++j) { sum += coeff[j]*roots[j]; } b[i] = sum; } }<file_sep>/primitives/ker_blas.h #pragma once __device__ inline unsigned int compute_thread_index () { return ( blockIdx.x*blockDim.x*blockDim.y+ blockIdx.y*blockDim.x*blockDim.y*gridDim.x+ threadIdx.x+threadIdx.y*blockDim.x) ; } __device__ inline unsigned int get_total_num_threads () { return (gridDim.x * gridDim.y * gridDim.z)*(blockDim.x * blockDim.y * blockDim.z); } namespace kernel_blas{ __device__ void copyf(float* x, float*y){ const int i = compute_thread_index(); y[i] = x[i]; } __device__ void scalf(float a, float* x, float*y){ const int i = compute_thread_index(); y[i] = a*x[i]; } __device__ void axpyf(float a, float* x, float*y){ const int i = compute_thread_index(); y[i] = a*x[i] + y[i]; } }<file_sep>/primitives_test/vector_array_test.cpp #include <gtest/gtest.h> #include "../primitives/types.h" #include "../primitives/RefBlas.h" typedef RefBlas<float> MyBlas; typedef VectorArray<MyBlas> MyVectorArray; TEST(VectorArrayTest,AllocatesAndSetsCorrectSize){ MyVectorArray v(5,7); EXPECT_EQ(v.occupied_items(),0); } template<class T>static bool cmp_array(const T* left, const T* right,unsigned int sz){ return std::equal(left,left+sz,right); } TEST(VectorArrayTest,PushAndSet){ MyVectorArray v(3,3); float test_data1[] = {1,1,1}; float test_data2[] = {2,2,2}; float test_data3[] = {3,3,3}; float test_data4[] = {4,4,4}; v.push(test_data1); EXPECT_EQ(cmp_array(v.get_vector(0),test_data1,3),true); v.push(test_data2); EXPECT_EQ(cmp_array(v.get_vector(0),test_data1,3),true); EXPECT_EQ(cmp_array(v.get_vector(1),test_data2,3),true); v.push(test_data3); EXPECT_EQ(cmp_array(v.get_vector(0),test_data1,3),true); EXPECT_EQ(cmp_array(v.get_vector(1),test_data2,3),true); EXPECT_EQ(cmp_array(v.get_vector(2),test_data3,3),true); v.set_at(1,test_data4); EXPECT_EQ(cmp_array(v.get_vector(0),test_data1,3),true); EXPECT_EQ(cmp_array(v.get_vector(1),test_data4,3),true); EXPECT_EQ(cmp_array(v.get_vector(2),test_data3,3),true); EXPECT_THROW(v.push(test_data3),std::exception); } TEST(VectorArrayTest,Clear){ MyVectorArray v(3,3); float test_data1[] = {1,1,1}; float test_data2[] = {2,2,1}; v.push(test_data1); v.clear(); EXPECT_EQ(v.occupied_items(),0); v.push(test_data2); EXPECT_EQ(cmp_array(v.get_vector(0),test_data2,3),true); } <file_sep>/primitives/primitives.cpp // primitives.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include <numeric> #include <boost/bind.hpp> #include "DenseMatrix.h" #include "MKL_blas.h" #include "CUDABlas.h" #include "PMKLBlas.h" #include "SparseMatrix.h" #include "cuda_vector.h" #include "bicg_stab.h" #include "chebyshev.h" #include "cgs.h" #include "cg.h" #include "hybrids.h" #include "profile.h" void blas_test() { float arr []= {1,2,3,4,5}; float arr2 []= {1,2,3,4,5}; float* bla = 0; const int N = 5; #define Blas PMKLBlas Blas::init(N); Blas::allocate(N,bla); Blas::set(N,arr,bla); Blas::scal(N,2.5,bla); Blas::extract(N,bla,arr2); for (unsigned int i=0;i<N;++i) { std::cout << arr2[i] << std::endl; } } void empty_fun(int,float){ } void sparse_test(){ FullMatrix<float> matr; CNCLoader<float>::load(L"N:\\libs\\CNC\\examples\\out.dat", boost::bind(&FullMatrix<float>::set_value,boost::ref(matr),_1,_2,_3), empty_fun, boost::bind(&FullMatrix<float>::reserve,boost::ref(matr),_1) ); //check if load is ok /*if(fabs(matr.get_value(12730, 9919) - -.002050355294728273)>0.01){ std::cout << "Err " << "12730, 9919 != -.002050355294728273 == " <<matr.get_value(12730, 9919) << std::endl; } if(fabs(matr.get_value(5275, 15621 ) - 1.481165344704301)>0.01){ std::cout << "Err " << "5275, 15621 != 1.481165344704301 == " <<matr.get_value(12730, 9919) ; }*/ //convert to sparse and check spmv SparseMatrixCRS<float> sp1,sp2; sp1.from_full(matr); sp2.from_full(matr); std::vector<float> x(matr.rows()); for(unsigned int i=0;i<x.size();++i){ if(i%2==0) x[i] = 0; else x[i] = 2.0f; } const int sz = matr.rows(); std::vector<float> y1(sz); std::vector<float> y2(sz); sp1.spmv_tbb(&x[0],&y1[0]); //float* gpu_x,*gpu_y; CudaVector<float> gpu_x(sz),gpu_y(sz); CUDABlas::set(sz,&x[0],gpu_x.get()); CRS_matrix_cuda<float> cum = sp2.load_to_gpu(); SparseMatrixCRS<float>::spmv_cuda(cum,gpu_x.get(),gpu_y.get()); CUDABlas::extract(sz,gpu_y.get(),&y2[0]); sp2.deallocate_gpu(cum); for (unsigned int i=0;i<y1.size();++i) { if(fabs(y1[i]-y2[i])>0.00000000001){ std::cout << "SPMV mismatch " << y1[i] <<" "<<y2[i] << std::endl; } } int d = 0; } void allocate_matrix_and_vector(FullMatrix<float>& matr,std::vector<float>&vec, unsigned int N ){ matr.reserve(N); vec.resize(N); } const float coeff = 1.f; template<class T,class V> void set_value(T& c, unsigned int p,const V&v){ c[p] = v*coeff; } void set_matrix_value(FullMatrix<float>& matr,int a,int b,float v){ matr.set_value(a,b,v*coeff); } void solve_test(){ std::vector<float> b; FullMatrix<float> matr; CNCLoader<float>::load(L"N:\\libs\\CNC\\examples\\example_2.dat", boost::bind(set_matrix_value,boost::ref(matr),_1,_2,_3), boost::bind(set_value<std::vector<float>,float>,boost::ref(b),_1,_2), boost::bind(allocate_matrix_and_vector,boost::ref(matr),boost::ref(b),_1) ); SparseMatrixCRS<float> A; A.from_full(matr); std::vector<float> x0(b.size()); unsigned int N = b.size(); float eps = 0.0004f; solve_bicgstab(A,&b[0],&x0[0],N,8000,eps,16,CUDABlas()); //solve_cg_a(A,&b[0],&x0[0],N,8000,eps,16,CUDABlas()); //solve_cg(A,&b[0],&x0[0],N,8000,eps,16,CUDABlas()); //solve_cgs(A,&b[0],&x0[0],N,8000,eps,16,CUDABlas()); //solve_chebyshev(A,&b[0],&x0[0],N,2,eps,16,CUDABlas()); //solve_chebyshev2(A,&b[0],&x0[0],N,8000,eps,16,CUDABlas()); //solve_chebyshev3(A,&b[0],&x0[0],N,8000,eps,16,CUDABlas()); //solve_chebyshev(A,&b[0],&x0[0],N,8000,eps,16,PMKLBlas()); } template<class T> T absdiff(T t1, T t2){ return std::abs(t1-t2); } template<class Cont> double diff(const Cont& c1, const Cont& c2){ typedef typename Cont::value_type Val ; return std::inner_product(c1.begin(),c1.end(), c2.begin(),(Val)0.0,std::plus<Val>(),absdiff<Val>); } void dense_spmv_test(){ int n = 1024; int N = n*n; typedef float Real; DenseMatrix<Real> matrix; matrix.allocate(n); std::vector<Real> x(n); for (int i=0;i<n;++i){ for (int j=0;j<n;++j){ matrix[i][j] = (Real)rand()/(Real)10000.0; //matrix[i][j] = (double)i+j; } x[i] = (Real)rand()/(Real)10000.0; //x[i] = (double)i; } profile p; const int nTimes = 100; std::vector<Real> y(n); p.start_hi_res(100000); for (unsigned int i=0;i<nTimes;++i) { matrix.spmv(&x[0],&y[0]); } long long t1 = p.query_hi_res(); std::cout << "Naive spmv time: " << t1 << std::endl << std::endl; std::vector<Real> yy(n); p.start_hi_res(100000); for (unsigned int i=0;i<nTimes;++i) { matrix.spmv_mkl(&x[0],&yy[0]); } long long t2 = p.query_hi_res(); std::cout << "MKL spmv time: " << t2 << std::endl; std::cout << "Ratio " << double(t1)/t2 << std::endl; std::cout << "Error " << diff(y,yy) << std::endl << std::endl; std::vector<Real> yyt(n); p.start_hi_res(100000); for (unsigned int i=0;i<nTimes;++i) { matrix.spmv_tbb(&x[0],&yyt[0]); } long long t3 = p.query_hi_res(); std::cout << "TBB spmv time: " << t3 << std::endl; std::cout << "Ratio " << double(t1)/t3 << std::endl; std::cout << "Error " << diff(y,yyt) << std::endl << std::endl; std::vector<Real> yyw(n); p.start_hi_res(100000); for (unsigned int i=0;i<nTimes;++i) { matrix.spmv_tbb_mkl(&x[0],&yyw[0]); } long long t4 = p.query_hi_res(); std::cout << "TBB MKL spmv time: " << t4 << std::endl; std::cout << "Ratio " << Real(t1)/t4 << std::endl; std::cout << "Error " << diff(y,yyw) << std::endl << std::endl; std::vector<Real> yyX(n); CudaVector<Real> xX(n); CUDABlas::set(n,&x[0],xX.get()); CudaVector<Real> yX(n); CUDABlas::initialize_matrix(matrix); p.start_hi_res(100000); for (unsigned int i=0;i<nTimes;++i) { matrix.spmv_gpu(xX,yX); } long long tX = p.query_hi_res(); CUDABlas::extract(n,yX.get(),&yyX[0]); std::cout << "CUDA time: " << tX << std::endl; std::cout << "Ratio " << Real(t1)/tX << std::endl; std::cout << "Error " << diff(y,yyX) << std::endl << std::endl; } int _tmain(int argc, _TCHAR* argv[]) { //blas_test(); tbb::task_scheduler_init init; //solve_test(); dense_spmv_test(); return 0; } <file_sep>/primitives/types.h #pragma once #include <utility> #include <deque> template <class RealT> class Vector{ RealT * pdata_; unsigned int size_; bool own_; void set_size(unsigned int new_sz){ if(pdata_ && own_){ destroy(); } pdata_ = new RealT[new_sz]; size_ = new_sz; own_ = true; } void destroy(){ delete [] pdata_; pdata_ = 0; size_ = 0; own_ = false; } public: Vector():pdata_(0),size_(0),own_(true){} Vector(RealT* data, unsigned int sz, bool own=false):pdata_(data),size_(sz),own_(own){} explicit Vector(unsigned int sz):pdata_(0),size_(0),own_(true){ set_dimension(sz); } RealT& operator[](unsigned int i){ return pdata_[i]; } const RealT& operator[](unsigned int i) const{ return pdata_[i]; } RealT * data(){ return pdata_; } const RealT * data() const{ return pdata_; } /*operator const RealT*()const{ return data(); }*/ unsigned int size()const{ return size_; } void assign(RealT* data, unsigned int sz){ set_size(sz); memcpy(pdata_,data,sizeof(RealT)*sz); } void set_dimension(unsigned int new_sz){ assert(pdata_==0); set_size(new_sz); } ~Vector(){ if(pdata_ && own_){ destroy(); } } }; template<class Blas> class BlasVector{ protected: typename Blas::FloatType* data_; unsigned int sz_; void allocate(unsigned int N){ Blas::allocate(N,data_); sz_ = N; //printf("allocating %d %p\n",N,data_); } void deallocate(){ if(data_==0) return; Blas::deallocate(data_); sz_ = 0; data_ = 0; } BlasVector(const BlasVector<Blas> &); //private copy ctor public: BlasVector(unsigned int N):sz_(0),data_(0){ reset(N); } BlasVector():sz_(0),data_(0){ } ~BlasVector(){ deallocate(); } void reset(unsigned int N){ if(sz_!=0 && data_!=0) deallocate(); allocate(N); } operator typename Blas::FloatType*(){ return data_; } operator const typename Blas::FloatType*() const{ return data_; } void swap( BlasVector<Blas> &other){ std::swap(this->data_,other.data_); std::swap(this->sz_,other.sz_); } unsigned int size()const{ return sz_; }; }; template<class Blas> class BlasMatrix: public BlasVector<Blas>{ unsigned int dim_; public: BlasMatrix(unsigned int N):BlasVector<Blas>(N*N),dim_(N){} BlasMatrix():BlasVector<Blas>(),dim_(0){} void reset(unsigned int N){ dim_ = N; BlasVector<Blas>::reset(N*N); } typename Blas::FloatType& operator()(unsigned int i,unsigned int j){ return BlasVector<Blas>::data_[i*dim_+j]; } const typename Blas::FloatType& operator()(unsigned int i,unsigned int j) const{ return BlasVector<Blas>::data_[i*dim_+j]; } typename Blas::FloatType* as_vector(){ return BlasVector<Blas>::data_; } const typename Blas::FloatType* as_vector() const{ return BlasVector<Blas>::data_; } unsigned int get_dim()const{ return dim_; } }; template<class Blas> class BlasMatrixTransponsed: public BlasVector<Blas>{ public: BlasMatrixTransponsed(unsigned int N):BlasVector<Blas>(N*N){} typename Blas::FloatType& operator()(unsigned int i,unsigned int j){ return BlasVector<Blas>::data_[j*BlasVector<Blas>::N+i]; } }; template<class RealT,class Blas> class SimpleBlasDeque{ std::deque<RealT*> data_; unsigned int sz_; unsigned int noccupied_; void clone_and_push(unsigned int N, RealT* t){ RealT * clone_data; Blas::allocate(N,clone_data); Blas::copy(N,t,clone_data); data_.push_back(clone_data); } public: SimpleBlasDeque(unsigned int sz):sz_(0),noccupied_(0){ //data_.resize(sz); sz_ = sz; } void push(unsigned int N, RealT* t){ if(noccupied_<sz_){ clone_and_push(N,t); noccupied_ ++; return; } Blas::deallocate(data_.front()); data_.pop_front(); clone_and_push(N,t); } RealT* last()const{ return data_[noccupied_-1]; } RealT* operator [](unsigned int n){ //assert(n<noccupied_); return data_[n]; } ~SimpleBlasDeque(){ for (unsigned int i=0;i<data_.size();++i){ Blas::deallocate(data_[i]); } } }; template<class Blas> class VectorDeque{ typedef typename Blas::FloatType RealT; BlasVector<Blas> data_; unsigned int vector_length_; unsigned int vector_number_; unsigned int begin_; unsigned int end_; unsigned int occupied_items_; unsigned int total_sz()const{ return vector_number_ * vector_length_; } RealT* get_nth(unsigned int n){ unsigned int pos = n * vector_length_; //assert(n<total_sz()) return &data_[pos]; } void push_vector(unsigned int pos,RealT *v){ //memcpy(&data_[pos],v,vector_length_*sizeof(RealT)); const unsigned int sz = vector_length_; Blas::copy(sz,v,&data_[pos]); } unsigned int add_with_wrap(unsigned int n,unsigned int m) const{ if(n+m>=total_sz()){ return n+m - total_sz(); } else return n+m; } unsigned int add_with_wrap_e(unsigned int n,unsigned int m) const{ if(n+m>total_sz()){ return n+m - total_sz(); } else return n+m; } public: VectorDeque(unsigned int vector_length, unsigned int max_sz): vector_length_(vector_length),vector_number_(max_sz),occupied_items_(0) { if(total_sz()>0){ data_.reset(total_sz()); } // std::fill(( RealT*)data_,data_+total_sz(),RealT(0)); begin_ = 0; end_ = 0; } void push(RealT* data){ if(occupied_items_*vector_length_<total_sz()){ push_vector(end_,data); end_ = end_ + vector_length_; occupied_items_++; } else{ end_ = add_with_wrap_e(end_,vector_length_); begin_ = add_with_wrap(begin_,vector_length_); push_vector(end_-vector_length_,data); } } unsigned int get_N()const{ return vector_length_; } unsigned int get_capacity()const{ return vector_number_; } unsigned int occupied_items()const{ return occupied_items_; } const RealT* get_vector(unsigned int n)const{ return &data_[add_with_wrap(begin_,n*vector_length_)]; } RealT* get_vector_pointer(unsigned int n){ return &data_[add_with_wrap(begin_,n*vector_length_)]; } RealT* last() const{ return const_cast<RealT*>(&data_[end_-vector_length_]); } const RealT* last(unsigned int n) const{ return get_vector(get_capacity()-n); } }; template<class Blas> class VectorArray{ typedef typename Blas::FloatType RealT; BlasVector<Blas> data_; unsigned int vector_number_,vector_length_,size_; unsigned int total_sz()const{ return vector_number_ * vector_length_; } void push_vector(unsigned int pos, const RealT *v){ const unsigned int sz = vector_length_; Blas::copy(sz,v,&data_[pos]); } unsigned int get_address_of_vector(unsigned int n) const{ return vector_length_*n; } public: VectorArray(unsigned int vector_len, unsigned int capacity=0): vector_number_(capacity),vector_length_(vector_len) { reset(vector_len,capacity); } VectorArray():vector_number_(0),vector_length_(0){ } void reset(unsigned int vector_len, unsigned int capacity=0){ vector_length_ = vector_len; vector_number_ = capacity; size_ = 0; data_.reset(total_sz()); } RealT* get_vector_pointer(unsigned int n){ const unsigned int p = get_address_of_vector(n); return &data_[p]; } const RealT* get_vector(unsigned int n)const{ const unsigned int p = get_address_of_vector(n); return &data_[p]; } void push(const RealT* v){ if(size_>=vector_number_) throw std::exception("overflow"); const unsigned int p = get_address_of_vector(size_); push_vector(p,v); size_++; } void set_at(unsigned int j,const RealT* v){ const unsigned int p = get_address_of_vector(j); push_vector(p,v); } RealT get_at(unsigned int j,unsigned int k) const{ const unsigned int p = get_address_of_vector(j); return &data_[p+k]; } void clear(){ reset(vector_length_,vector_number_); } unsigned int occupied_items()const{ return size_; } }; <file_sep>/primitives/MKL_blas.h #pragma once #include <mkl.h> //float #define BLASFUN(name) ::s##name //double //#define BLASFUN(name) s#name #define BYTE_SIZE N*sizeof(Real) struct MKLBlas { typedef BlasCommon::FloatType Real; static const int one = 1; static Real dot(const unsigned int N,const Real* x,const Real* y) { return BLASFUN(dot)((const int*)&N,x,&one,y,&one); } static void scal(const unsigned int N, const Real alpha, Real* x) { BLASFUN(scal)((const int*)&N,&alpha,x,&one); } static void axpy( const unsigned int N, const Real alpha, const Real* x, Real *y ){ BLASFUN(axpy)((const int*)&N,&alpha,x,&one,y,&one); } static void scopy(const unsigned int N,const Real *x, Real* y){ BLASFUN(copy)((const int*)&N,x,&one,y,&one); } static Real nrm2(const unsigned int N,const Real *x){ return BLASFUN(nrm2)((const int*)&N,x,&one); } static void allocate(const unsigned int N, Real*& out){ out = (Real*)MKL_malloc(BYTE_SIZE,128); } static void deallocate(Real* p){ MKL_free(p); } static bool init(unsigned int N){ return true; } static void extract(const unsigned int N, const Real* devPtr, Real* hostPtr){ memcpy(hostPtr,devPtr,BYTE_SIZE); } static void set(const unsigned int N, const Real* hostPtr, Real* devPtr){ memcpy(devPtr,hostPtr,BYTE_SIZE); } }; #undef BLASFUN #undef BYTE_SIZE <file_sep>/primitives/cuda_vector.h #pragma once #include "CUDABlas.h" template<class RealT> class CudaVector{ RealT * ptr_; unsigned int sz_; public: CudaVector():ptr_(0),sz_(0){} explicit CudaVector(unsigned int sz):ptr_(0),sz_(0){ resize(sz); } void resize(unsigned int sz){ const bool need_copy = sz_!=0; RealT* new_ptr = 0; CUDABlas::allocate(sz,new_ptr); if(need_copy){ CUDABlas::copy(sz_,ptr_,new_ptr); } ptr_ = new_ptr; sz_ = sz; } ~CudaVector(){ if(ptr_==0) return; CUDABlas::deallocate(ptr_); } RealT* get(){ return ptr_; } const RealT* get()const { return ptr_; } };<file_sep>/primitives/dirk.h #pragma once #include "StepSolverBase.h" #include "implicit_step.h" template<class RealT,template<class T> class Blas ,class Func,class Vector> struct SDIrkFunctor{ unsigned int nstages_; unsigned int nequations_; //typedef BlasMatrix<Blas<RealT> > BlasMatrix; //typedef BlasVector<Blas<RealT> > BlasVector; const RealT* a_; const Vector &x_; const Vector &k_; const Func& F_; const RealT h_; const RealT t_; const unsigned int i_; mutable BlasVector<Blas<RealT> > s_; SDIrkFunctor( unsigned int N, const Vector& a, const Vector& k, const Vector& x, unsigned int i, const Func& F, RealT h, RealT t ): a_(a),x_(x),k_(k),h_(h),F_(F),t_(t),i_(i) { nequations_ = N; s_.reset(N); /*std::vector<RealT> slocal(N); Blas::extract(N,x,slocal); for(unsigned int i=0;i<i_;++i){ for (unsigned int j=0;j<N;++j){ slocal[j]+=a_[i]*k_[i][j]; } } Blas::set(N,&slocal[0],s);*/ Blas<RealT>::copy(N,x,s_); for(unsigned int i=0;i<i_;++i){ Blas<RealT>::axpy(N,a_[i],k_,s_); } } void operator()(RealT* in, RealT* out) const { BlasVector<Blas<RealT> > s(nequations_); Blas<RealT>::copy(nequations_,s_,s); Blas<RealT>::axpy(nequations_,a_[i_],in,s); BlasVector<Blas<RealT> > fts(nequations_); F_(t_,s,fts); Blas<RealT>::copy(nequations_,in,out); Blas<RealT>::scal(nequations_,-1.0,out); Blas<RealT>::axpy(nequations_,h_,fts,out); } }; template <template<class RealT> class Blas,class RealT,class Vector,class Func,class History> struct SDirkGeneric : StepSolverBase<Blas<RealT> > { protected: typedef BlasVector<Blas<RealT> > BlasVector; std::vector<RealT> b_; std::vector<RealT> c_; std::vector<std::vector<RealT> > A_; unsigned int nstages_; void call_impl(unsigned int N,RealT t,RealT h, Vector &x, const Func &F,const History* history = 0){ const unsigned int nequations = N; const unsigned int nstages = nstages_; typedef Blas<RealT> MyBlas; VectorDeque<MyBlas> k(N,nstages_); int first_idx = 0; //first nonzero Butcher tableu row index BlasMatrix<MyBlas> J(N); //k[0] = h*F(dbegin,x); RealT * p = k.get_vector_pointer(0); F(t,x,p); MyBlas::scal(N,h,p); for (unsigned int m = 0; m < nstages_; ++m) //for each r-k stage... { //if the first Butcher's tableu row is zero, we can calculate k0 explicitly if(m==0 && A_[0][0]==0){ RealT *f = k.get_vector_pointer(0); F(t,x,f); MyBlas::scal(N,h,f); first_idx = 1; } else{ //for nonzero rows of Butcher tableu RealT ti = t + h*c_[m]; //time for the current stage const int q = m!=0?m-1:m; RealT *pkm = k.get_vector_pointer(m); if(q!=m){ RealT *pkm1 = k.get_vector_pointer(m-1); MyBlas::copy(N,pkm1,pkm); } //SDirk_eq eq(a[m],k,x,m,F,h,ti); //m-th equation object typedef SDIrkFunctor<RealT,Blas, Func,Vector> SDirkFunctorType; SDirkFunctorType eq(N,&A_[m][0],k.get_vector_pointer(m),x,m,F,h,ti); if(m==first_idx){ //if we haven't done it before, calc the Jacoby Matrix JacobyAuto<MyBlas,BlasMatrix<MyBlas>,Vector,SDirkFunctorType> jacoby_calculator; jacoby_calculator.call(N,eq,x,J); LinearSolverUtils<LUsolver,MyBlas,RealT,BlasMatrix<MyBlas>,Vector> lu; lu.decompose(N,J); //rmatrix A = Jacoby(eq,x); //lu_decompose(A,L,U); } //solve the m-th equation //k[m] = newton_simplified_ex(eq,default_lin_solver,k[m!=0?m-1:m],L,U); NewtonSimplifiedExSolver< MyBlas, RealT, BlasMatrix<MyBlas>, Vector, SDirkFunctorType, LUsolver, JacobyAuto<MyBlas, BlasMatrix<MyBlas>, Vector,SDirkFunctorType > > nsolver; nsolver.call(N,eq,J,pkm,defaults::ImplicitMethodMaxNewtonSteps); } } BlasVector tmp(N); for (unsigned int m = 0;m<nstages_;++m){ RealT* km = k.get_vector_pointer(m); MyBlas::copy(N,km,tmp); MyBlas::axpy(N,b_[m],tmp,x); } RealT* k0 = k.get_vector_pointer(0); RealT* klast = k.get_vector_pointer(nstages_-1); MyBlas::copy(N,k0,klast); } public: void call(unsigned int N,RealT t,RealT h, Vector &x, const Func &F,const History* history = 0){ return call_impl(N,t,h,x,F,history); } static unsigned int history_length(){ return 1; } }; /************************************************************************/ /* SDIRK-3 method (Hairer et al, vol 1, table 7.2) */ /************************************************************************/ template <template<class RealT> class Blas,class RealT,class Vector,class Func,class History> struct SDirk3Step : public SDirkGeneric<Blas,RealT,Vector,Func,History> { SDirk3Step() { //A std::vector<std::vector<RealT> > as; std::vector<RealT> tmp(2); tmp[0]=static_cast<RealT>(((3+sqrt(3.))/6.)); tmp[1]=(0.0); as.push_back(tmp); tmp[0]=static_cast<RealT>((-sqrt(3.)/3)); tmp[1]=static_cast<RealT>(((3+sqrt(3.))/6)); as.push_back(tmp); //b std::vector<RealT> b(2); b[0] = 0.5; b[1] = 0.5; //c std::vector<RealT> c(2); c[0]= static_cast<RealT>((3+sqrt(3.))/6.); c[1]= static_cast<RealT>((3-sqrt(3.))/6.); this->c_ = c; this->b_= b; this->A_ = as; this->nstages_ = 2; } }; /************************************************************************/ /* NT1 method of some obscure origin */ /************************************************************************/ template <template<class RealT> class Blas,class RealT,class Vector,class Func,class History> struct SDirkNT1Step : public SDirkGeneric<Blas,RealT,Vector,Func,History> { SDirkNT1Step() { this->nstages_ = 4; std::vector<std::vector<RealT> > as; std::vector<RealT> tmp(4,0.0); as.push_back(tmp); tmp[0]=static_cast<RealT>(5./12); tmp[1]=static_cast<RealT>(5./12); as.push_back(tmp); tmp[0]=static_cast<RealT>(95./588); tmp[1]=static_cast<RealT>(-5./49); tmp[2]=static_cast<RealT>(5./12); as.push_back(tmp); tmp[0]=static_cast<RealT>(59./600); tmp[1]=static_cast<RealT>(-31./75); tmp[2]=static_cast<RealT>(539./600); tmp[3]=static_cast<RealT>(5./12); as.push_back(tmp); const int s = this->nstages_; //b std::vector<RealT> b(s); b[0] = static_cast<RealT>(59./600); b[1] = static_cast<RealT>(-31./75); b[2] = static_cast<RealT>(539./600); b[3] = static_cast<RealT>(5./12); /*std::vector<RealT> b(s); b[0] = static_cast<RealT>(-37./600); b[1] = static_cast<RealT>(-31./75); b[2] = static_cast<RealT>(1813./6600); b[3] = static_cast<RealT>(37./132);*/ //c std::vector<RealT> c(s); c[0] = 0; c[1] = static_cast<RealT>(5./6); c[2] = static_cast<RealT>(10./21); c[3] = static_cast<RealT>(1.); this->c_ = c; this->b_= b; this->A_ = as; } }; template <template<class RealT> class Blas,class RealT,class Vector,class Func,class History> struct SDirkLStableStep : public SDirkGeneric<Blas,RealT,Vector,Func,History> { SDirkLStableStep() { this->nstages_ = 5; std::vector<std::vector<RealT> > as; std::vector<RealT> tmp(this->nstages_,0.0); tmp[0] = static_cast<RealT>(1./4); as.push_back(tmp); tmp[0]=static_cast<RealT>(1./2); tmp[1]=static_cast<RealT>(1./4); as.push_back(tmp); tmp[0]=static_cast<RealT>(17./50); tmp[1]=static_cast<RealT>(-1./25); tmp[2]=static_cast<RealT>(1./4); as.push_back(tmp); tmp[0]=static_cast<RealT>(371./1360); tmp[1]=static_cast<RealT>(-137./2720); tmp[2]=static_cast<RealT>(15./544); tmp[3]=static_cast<RealT>(1./4); as.push_back(tmp); tmp[0]=static_cast<RealT>(25./24); tmp[1]=static_cast<RealT>(-49./48); tmp[2]=static_cast<RealT>(125./16); tmp[3]=static_cast<RealT>(-85./12); tmp[4]=static_cast<RealT>(1./4); as.push_back(tmp); const int s = this->nstages_; //b std::vector<RealT> b(s); b[0] = static_cast<RealT>(25./24); b[1] = static_cast<RealT>(-49./48); b[2] = static_cast<RealT>(125./16); b[3] = static_cast<RealT>(-85./12); b[4] = static_cast<RealT>(1./4); /*std::vector<RealT> b(s); b[0] = static_cast<RealT>(-37./600); b[1] = static_cast<RealT>(-31./75); b[2] = static_cast<RealT>(1813./6600); b[3] = static_cast<RealT>(37./132);*/ //c std::vector<RealT> c(s); c[0] = static_cast<RealT>(1./4);; c[1] = static_cast<RealT>(3./4); c[2] = static_cast<RealT>(11./20); c[3] = static_cast<RealT>(1./2); c[4] = static_cast<RealT>(1.); this->c_ = c; this->b_= b; this->A_ = as; } };<file_sep>/primitives/cuda_sparse.h #pragma once #define THREAD_BLOCK_SIZE 16 template<class RealT> struct GPU_matrix{ }; template<class RealT> struct CRS_matrix_cuda:public GPU_matrix<RealT>{ RealT* a; unsigned int* colind; uint2* rowptr; unsigned int nrows; unsigned int nelements; }; /* template<class RealT> struct Dense_matrix_cuda:public GPU_matrix<RealT>{ RealT* a; unsigned int nrows; unsigned int nelements; };*/ void spmv_csr_float(CRS_matrix_cuda<float> A, float* x, float* b, unsigned int thread_block_sz = THREAD_BLOCK_SIZE); void cuda_memberwise_mul_float(unsigned int N, float* x, float* y,float* z,unsigned int thread_block_sz=THREAD_BLOCK_SIZE); void chebyshev_iterations(CRS_matrix_cuda<float> A,float* x, float* b, float* r, float*z,float* p, float* diag_inv,int max_iter, int thread_block_sz = THREAD_BLOCK_SIZE ); void chebyshev_iteration(CRS_matrix_cuda<float> A,float* x, float* b, float* r, float*z,float* p, float* diag_inv,int curr_iter, int thread_block_sz = THREAD_BLOCK_SIZE ); void chebyshev_iteration_s(CRS_matrix_cuda<float> A,float* x, float* b, float* r, float*z,float* p, float* diag_inv,int curr_iter, int its, int thread_block_sz = THREAD_BLOCK_SIZE ); void axmb_csr_float(CRS_matrix_cuda<float> A, float* x, float* b, float* r, unsigned int thread_block_sz= THREAD_BLOCK_SIZE ); //------ dense void spmv_dense_float(float *A, float * x, float* y, int size,unsigned int thread_block_sz);<file_sep>/primitives/tbb_helper.h #pragma once #include <windows.h> #include "tbb/parallel_for.h" #include "tbb/blocked_range.h" #include "tbb/parallel_reduce.h" #include <tbb/task_scheduler_init.h> #include <tbb/cache_aligned_allocator.h> #define NTHREADS /*43750*/87500 /*175000*/ /*350000*/ typedef tbb::blocked_range<int> TbbRange; template<class Float_t> struct Tbb_worker{ typedef Float_t Float; }; template<class Float_t> struct Unary_tbb_worker:public Tbb_worker<Float_t> { typedef typename Tbb_worker<Float_t>::Float Float; Float * m_result; Float * m_a; Float m_c; Unary_tbb_worker(Float*a,Float*res):m_result(res),m_a(a){} }; template<class Float_t> struct Binary_tbb_worker:public Tbb_worker<Float_t> { typedef typename Tbb_worker<Float_t>::Float Float; Float * m_result; Float * m_a; Float * m_b; Float m_c; Binary_tbb_worker(Float*a,Float*b,Float*res):m_result(res),m_a(a),m_b(b){} }; static tbb::cache_aligned_allocator<char> t_alloc; inline void* aligned_malloc(size_t sz){ return VirtualAlloc(0,sz,MEM_RESERVE|MEM_COMMIT,PAGE_READWRITE); } inline void aligned_free(void* p){ VirtualFree(p,0,MEM_DECOMMIT|MEM_FREE); } <file_sep>/primitives/newton.h #pragma once #include "defaults.h" #include "lu.h" template<class Blas, class RealT, class Matrix, class Vector, class Function, template<class Blas,class RealT,class Matrix,class Vector> class LinearSolver, class JacobyCalculator> class NewtonSolver { public: void call(unsigned int N, const Function &fun, Vector& x0,unsigned int max_iter = 0 ){ typedef unsigned int uint; BlasVector<Blas> x(N); Blas::copy(N,x0,x); uint iteration_count = 0; RealT alpha = 0; BlasVector<Blas> b(N); BlasMatrix<Blas> A(N); BlasVector<Blas> dx(N); JacobyCalculator jacoby; while (max_iter==0 || iteration_count < max_iter){ fun(x,b); Blas::scal(N,-1.0,b); //TODO: get rid of mutiplication jacoby.call(N,fun,x,A); if(alpha != 0.0 && alpha!=(RealT)1.0){ Blas::scal(N*N,alpha,A.as_vector()); //A*=alpha; } //solve_linear<RealT,Blas,LinearSolver>(N,A,b,dx); LinearSolver<Blas,RealT,Matrix,BlasVector<Blas> > lin_solver; //Vector &p = dx; lin_solver.call(N,A,b,dx); if(Blas::nrm2(N,dx)< defaults::NewtonEpsilon){ //TODO: customizable accuracy break; } Blas::axpy(N,1.0,dx,x); iteration_count++; } Blas::copy(N,x,x0); } }; //---------------------------Simplified Newton------------------------------ //---------------------------Simplified Newton Ex------------------------------ template<class Blas, class RealT, class Matrix, class Vector, class Function, template<class Blas,class RealT,class Matrix,class Vector> class LinearSolver, class JacobyCalculator> class NewtonSimplifiedExSolver { public: void call(unsigned int N, const Function& fun, Matrix& A,Vector& x0,unsigned int max_iter = 0 ){ typedef unsigned int uint; BlasVector<Blas> x(N); Blas::copy(N,x0,x); uint iteration_count = 0; RealT alpha = 0; BlasVector<Blas> b(N); //BlasMatrix<Blas> A(N); BlasVector<Blas> dx(N); //JacobyCalculator jacoby; //jacoby.call(N,fun,x,A); while (max_iter==0 || iteration_count < max_iter){ fun(x,b); Blas::scal(N,-1.0,b); //TODO: get rid of mutiplication if(alpha != 0.0 && alpha!=(RealT)1.0){ Blas::scal(N*N,alpha,A.as_vector()); //A*=alpha; } //solve_linear<RealT,Blas,LinearSolver>(N,A,b,dx); LinearSolverUtils2<LinearSolver<Blas,RealT,Matrix,Vector>,Blas,RealT,Matrix,Vector> lu; RealT* pdx = dx; lu.substitute(N,A,b,pdx); /* LinearSolver lin_solver; lin_solver.call(N,A,b,dx);*/ RealT err = Blas::nrm2(N,pdx); if(err < defaults::NewtonEpsilonForDE){ //TODO: customizable accuracy break; } if(iteration_count >defaults::NewtonSimplifiedBreakCount){ return NewtonSolver<Blas,RealT,Matrix,Vector,Function,LinearSolver,JacobyCalculator>().call(N,fun,x0); } Blas::axpy(N,1.0,dx,x); iteration_count++; } Blas::copy(N,x,x0); } }; //--------------------------- Helper functions------------------------------------------ template<class RealT, template<class Blas, class RealT,class Matrix,class Vector,class Function, template<class SBlas,class SRealT,class SMatrix,class SVector> class LinearSolver,class JacobyCalculator> class NewtonSolver, template<class BT> class Blas, template<class SBlas,class SRealT,class SMatrix,class SVector> class LinearSolver, template<class Blas,class Matrix,class Vector,class Function> class JacobyCalculator, class Vector, class Function > void solve_newton(unsigned int N, Function f, Vector& x0, unsigned int max_iter=0 ) { typedef Blas<RealT> MyBlas; typedef BlasMatrix<MyBlas> MyMatrix; typedef LinearSolver<MyBlas,RealT,MyMatrix,Vector> MySolver; typedef JacobyCalculator<MyBlas,MyMatrix,Vector,Function> MyJacoby ; NewtonSolver<MyBlas, RealT, MyMatrix,Vector,Function,LinearSolver,MyJacoby> s; s.call(N,f,x0,max_iter); } <file_sep>/primitives/BlasCommon.h #pragma once namespace BlasCommon{ template<class RealT> struct CRS_matrix{ RealT* a; unsigned int* colind; unsigned int* rowptr; unsigned int nrows; unsigned int nelements; }; typedef float FloatType; } <file_sep>/primitives/lu.h #pragma once template<class Blas,class RealT,class Matrix,class Vector> class LUsolver{ protected: void decompose(unsigned int N,Matrix &A) { typedef unsigned int uint; for (uint k=0; k<N; ++k){ for (uint i=k+1; i<N; ++i){ A(i,k) = A(i,k)/A(k,k); } for (uint i=k+1;i<N;++i) for (uint j=k+1;j<N;++j) A(i,j) -= A(i,k)*A(k,j); } } void substitute(unsigned int N,const Matrix& A, const Vector& b, Vector& x) { typedef unsigned int uint; BlasVector<Blas> y(N); for (uint i=0;i<N;++i) { RealT sum = 0; for (uint j=0;j<i;++j){ sum+=A(i,j)*y[j]; } y[i] = b[i] - sum; } for (int i=N-1;i>=0;--i) { RealT sum = 0; for (uint j=i+1;j<N;++j){ sum+=A(i,j)*x[j]; } x[i] = (y[i] - sum)/A(i,i); } } void lu_solve_inplace(unsigned int N, Matrix& A, const Vector& b, Vector& x0){ decompose(N,A); substitute(N,A,b,x0); } void lu_solve(unsigned int N, const Matrix& A, const Vector& b, Vector& x0){ BlasMatrix<Blas> copy(N); Blas::copy(N*N,A,copy); decompose(N,copy); substitute(N,copy,b,x0); } public: void call(unsigned int N, const Matrix& A, const Vector& b, Vector& x0){ lu_solve(N,A,b,x0); } }; template<class Blas,class RealT,class Matrix,class Vector> class LUPsolver{ void lup_decompose(unsigned int N, Matrix& A, Vector &pi) { typedef unsigned int uint; uint n = N; for (uint i=0;i<n;++i) pi[i] = i; int kp; RealT p; for (uint k=0;k<n;++k){ p=0; for (uint i=k;i<n;++i){ if(abs(A(i,k))>p){ p = abs(A(i,k)); kp = i; } } if(p==0) throw "singular matrix"; std::swap(pi[k],pi[kp]); for (uint i = 0;i<n;++i) std::swap(A(k,i),A(kp,i)); for (uint i=k+1;i<n;++i){ A(i,k)=A(i,k)/A(k,k); for (uint j=k+1;j<n;++j) A(i,j) -= A(i,k)*A(k,j); } } } void lup_substitute(unsigned int N,const Matrix& A,const Vector & pi,const Vector& b, Vector& x) { typedef unsigned int uint; uint n = N; BlasVector<Blas> y(N); for (uint i=0;i<n;++i) { RealT sum = 0; for (uint j=0;j<i;++j){ sum+=A(i,j)*y[j]; } y[i] = b[int(pi[i])] - sum; } for (int i=n-1;i>=0;--i) { RealT sum = 0; for (uint j=i+1;j<n;++j){ sum+=A(i,j)*x[j]; } x[i] = (y[i] - sum)/A(i,i); } } void lup_solve_inplace(unsigned int N, Matrix& A, const Vector& b, Vector& x0){ BlasVector<Blas> pi; lup_decompose(N,A,pi); return lup_substitute(A,pi,b); } void lup_solve(unsigned int N, const Matrix& A, const Vector& b, Vector& x0){ BlasMatrix<Blas> copy(N); Blas::copy(N*N,A,copy); BlasVector<Blas> pi(N); lup_decompose(N,copy,pi); return lup_substitute(N,copy,pi,b,x0); } public: void call(unsigned int N, const Matrix& A, const Vector& b, Vector& x0){ lup_solve(N,A,b,x0); } }; ///////////////////// template<template<class Blas,class RealT,class Matrix,class Vector>class Solver, class Blas,class RealT,class Matrix,class Vector> class LinearSolverUtils: public Solver<Blas,RealT,Matrix,Vector> { public: void decompose(unsigned int N, Matrix& A, Vector &pi){ return Solver<Blas,RealT,Matrix,Vector>::decompose(N,A,pi); } void decompose(unsigned int N, Matrix& A){ return Solver<Blas,RealT,Matrix,Vector>::decompose(N,A); } void substitute(unsigned int N,const Matrix& A, const Vector& b, Vector& x){ return Solver<Blas,RealT,Matrix,Vector>::substitute(N,A,b,x); } }; template<class Solver, class Blas,class RealT,class Matrix,class Vector> class LinearSolverUtils2: public Solver { public: void decompose(unsigned int N, Matrix& A, Vector &pi){ return Solver::decompose(N,A,pi); } void decompose(unsigned int N, Matrix& A){ return Solver::decompose(N,A); } void substitute(unsigned int N,const Matrix& A, const Vector& b, Vector& x){ return Solver::substitute(N,A,b,x); } }; <file_sep>/primitives/euler_implicit.h #pragma once #include "StepSolverBase.h" #include "implicit_step.h" template<class RealT,template<class T> class TBlas ,class Func,class History> struct EulerImplicitFunctor{ RealT* yn_1; RealT h; Func f; RealT t; unsigned int N_; EulerImplicitFunctor( unsigned int N, RealT t, const History *y, RealT h, Func f ):yn_1(y->last()), h(h), f(f), t(t), N_(N) {} void operator()(RealT* y, RealT* out) const{ //return (RealT)1./h*(y - yn_1) - f(t,y); typedef TBlas<RealT> Blas; BlasVector<Blas> tmp(N_); Blas::copy(N_,yn_1,out); f(t,y,tmp); //tmp = f(t,y) Blas::axpy(N_,-1.0,y,out); // out = -y + y_n1 Blas::scal(N_,(RealT)-1.0/h,out); // out = 1/h(y - y_n1) Blas::axpy(N_,-1.0,tmp,out); // out = -tmp + out === -f(t,y) + 1/h(y - y_n1) } }; //template <class RealT, class Vector, class Func, class Blas, class History,class SolverFunctor> template <template<class RealT> class Blas,class RealT,class Vector,class Func,class History> struct EulerImplicitStep : public ImplicitStepSolverBase<RealT,Vector,Func,Blas,History,EulerImplicitFunctor<RealT,Blas,Func,History> > { void call(unsigned int N,RealT t,RealT h, Vector &x, const Func &F,const History* history = 0){ typename ImplicitStepSolverBase<RealT,Vector,Func,Blas,History,EulerImplicitFunctor<RealT,Blas,Func,History> >::MyBaseSolver::call(N,t,h,x,F,history); } unsigned int history_length(){ return 2; } }; ////////////////////////////////////////////////////////////////////////// template<class RealT,template<class T> class TBlas ,class Func,class History> struct EulerTrapezoidFunctor{ RealT* yn_1; RealT h; Func f; RealT t; unsigned int N_; EulerTrapezoidFunctor( unsigned int N, RealT t, const History *y, RealT h, Func f ):yn_1(y->last()), h(h), f(f), t(t), N_(N) {} void operator()(RealT* y, RealT* out) const{ //return (RealT)1./h*(y - yn_1) - f(t,y); typedef TBlas<RealT> Blas; BlasVector<Blas> tmp(N_); f(t,y,tmp); //tmp = f(t,y) Blas::copy(N_,yn_1,out); BlasVector<Blas> tmp2(N_); f(t-h,out,tmp2); //tmp2 = f(t-h,yn1) Blas::axpy(N_,1.0,tmp2,tmp); Blas::scal(N_,0.5,tmp); Blas::axpy(N_,-1.0,y,out); // out = -y + y_n1 Blas::scal(N_,(RealT)-1.0/h,out); // out = 1/h(y - y_n1) Blas::axpy(N_,-1.0,tmp,out); // out = -tmp + out === -f(t,y) + 1/h(y - y_n1) } }; template <template<class RealT> class Blas,class RealT,class Vector,class Func,class History> struct EulerTrapezoidStep : public ImplicitStepSolverBase<RealT,Vector,Func,Blas,History,EulerTrapezoidFunctor<RealT,Blas,Func,History> > { void call(unsigned int N,RealT t,RealT h, Vector &x, const Func &F,const History* history = 0){ typename ImplicitStepSolverBase<RealT,Vector,Func,Blas,History,EulerTrapezoidFunctor<RealT,Blas,Func,History> >::MyBaseSolver::call(N,t,h,x,F,history); } unsigned int history_length(){ return 2; } }; ////////////////////////////////////////////////////////////////////////// template<class RealT,template<class T> class TBlas ,class Func,class History> struct SimpsonImplicitFunctor{ const RealT* yn_1; const RealT* yn; RealT h_; Func f; RealT t; unsigned int N_; SimpsonImplicitFunctor( unsigned int N, RealT t, const History *y, RealT h, Func f ):yn_1(y->last(2)),yn(y->last()), h_(h), f(f), t(t), N_(N) {} //return 1./h*((y - yn_1)) - (f(t,y)+f(t-2*h,yn_1)+4*f(t-h,yn))/3.; void operator()(RealT* y, RealT* out) const{ typedef TBlas<RealT> Blas; BlasVector<Blas> fty(N_); f(t,y,fty); BlasVector<Blas> fty1(N_); f(t-2*h_,yn_1,fty1); BlasVector<Blas> fty2(N_); f(t-h_,yn,fty2); Blas::axpy(N_,1.0,fty1,fty); Blas::axpy(N_,4.0,fty2,fty); Blas::copy(N_,y,out); Blas::axpy(N_,-1.0,yn_1,out); Blas::scal(N_,(RealT)(1.0/h_),out); Blas::axpy(N_,(RealT)(-1.0/3.0),fty,out); } }; template <template<class RealT> class Blas,class RealT,class Vector,class Func,class History> struct SimpsonImplicitStep : public ImplicitStepSolverBase<RealT,Vector,Func,Blas,History,SimpsonImplicitFunctor<RealT,Blas,Func,History> > { void call(unsigned int N,RealT t,RealT h, Vector &x, const Func &F,const History* history = 0){ ImplicitStepSolverBase<RealT,Vector,Func,Blas,History,SimpsonImplicitFunctor<RealT,Blas,Func,History> >::MyBaseSolver::call(N,t,h,x,F,history); } unsigned int history_length(){ return 3; } }; ////////////////////////////////////////////////////////////////////////// template<class RealT,template<class T> class TBlas ,class Func,class History> struct TickImplicitFunctor{ const RealT* yn_1; const RealT* yn; RealT h_; Func f; RealT t; unsigned int N_; TickImplicitFunctor( unsigned int N, RealT t, const History *y, RealT h, Func f ):yn_1(y->last(2)),yn(y->last()), h_(h), f(f), t(t), N_(N) {} //return 1./h*((y - yn_1)) - (0.3584*f(t,y)+0.3584*f(t-2*h,yn_1)+1.2832*f(t-h,yn)); void operator()(RealT* y, RealT* out) const{ typedef TBlas<RealT> Blas; BlasVector<Blas> fty(N_); f(t,y,fty); BlasVector<Blas> fty1(N_); f(t-2*h_,yn_1,fty1); BlasVector<Blas> fty2(N_); f(t-h_,yn,fty2); Blas::axpy(N_,1.0,fty1,fty); Blas::scal(N_,(RealT)0.3584,fty); Blas::axpy(N_,(RealT)1.2832,fty2,fty); Blas::copy(N_,y,out); Blas::axpy(N_,-1.0,yn_1,out); Blas::scal(N_,(RealT)(1.0/h_),out); Blas::axpy(N_,(RealT)(-1.0),fty,out); } }; template <template<class RealT> class Blas,class RealT,class Vector,class Func,class History> struct TickImplicitStep : public ImplicitStepSolverBase<RealT,Vector,Func,Blas,History,TickImplicitFunctor<RealT,Blas,Func,History> > { void call(unsigned int N,RealT t,RealT h, Vector &x, const Func &F,const History* history = 0){ ImplicitStepSolverBase<RealT,Vector,Func,Blas,History,TickImplicitFunctor<RealT,Blas,Func,History> >::MyBaseSolver::call(N,t,h,x,F,history); } unsigned int history_length(){ return 3; } }; ////////////////////////////////////////////////////////////////////////// template<class RealT,template<class T> class TBlas ,class Func,class History> struct ThreeEightsFunctor{ const RealT* yn_1; const RealT* yn_2; const RealT* yn; RealT h_; Func f; RealT t; unsigned int N_; ThreeEightsFunctor( unsigned int N, RealT t, const History *y, RealT h, Func f ):yn_1(y->last(2)),yn(y->last()),yn_2(y->last(3)), h_(h), f(f), t(t), N_(N) {} //return 1./h*((y - yn_2)) - (f(t,y)+f(t-3*h,yn_2)+3*f(t-2*h,yn_1) + 3*f(t-h,yn))*(3./8.); void operator()(RealT* y, RealT* out) const{ typedef TBlas<RealT> Blas; BlasVector<Blas> fty(N_); f(t,y,fty); BlasVector<Blas> fty2(N_); f(t-2*h_,yn_1,fty2); BlasVector<Blas> fty1(N_); f(t-h_,yn,fty1); BlasVector<Blas> fty3(N_); f(t-3*h_,yn_2,fty3); Blas::axpy(N_,1,fty3,fty); Blas::axpy(N_,1,fty2,fty1); Blas::axpy(N_,(RealT)3.0,fty1,fty); Blas::copy(N_,y,out); Blas::axpy(N_,-1.0,yn_2,out); Blas::scal(N_,(RealT)(1.0/h_),out); Blas::axpy(N_,(RealT)(-3.0/8.0),fty,out); } }; template <template<class RealT> class Blas,class RealT,class Vector,class Func,class History> struct ThreeEightsImplicitStep : public ImplicitStepSolverBase<RealT,Vector,Func,Blas,History,ThreeEightsFunctor<RealT,Blas,Func,History> > { void call(unsigned int N,RealT t,RealT h, Vector &x, const Func &F,const History* history = 0){ ImplicitStepSolverBase<RealT,Vector,Func,Blas,History,ThreeEightsFunctor<RealT,Blas,Func,History> >::MyBaseSolver::call(N,t,h,x,F,history); } unsigned int history_length() const{ return 4; } }; <file_sep>/primitives_test/SkvortsovTest.cpp #include <gtest/gtest.h> #include "../primitives/types.h" #include "../primitives/ode_solver.h" #include "../primitives/RefBlas.h" #include "../primitives/skvortsov.h" #include "test_functions.h" TEST(Skvortsov1Test,SolvesTestEq1){ test_equation1<Skvortsov1Step>(); } TEST(Skvortsov1Test,SolvesTestEq2){ test_equation2<Skvortsov1Step>(); } TEST(Skvortsov1Test,SolvesTestEq1CPU){ test_equation1<Skvortsov1StepCPU>(); } TEST(Skvortsov1Test,SolvesTestEq2CPU){ test_equation2<Skvortsov1StepCPU>(); } ////////////////////////////////////////////////////////////////////////// TEST(Skvortsov2Test,SolvesTestEq1){ test_equation1<Skvortsov2Step>(); } TEST(Skvortsov2Test,SolvesTestEq2){ test_equation2<Skvortsov2Step>(); } TEST(Skvortsov2Test,SolvesTestEq1CPU){ test_equation1<Skvortsov2StepCPU>(); } TEST(Skvortsov2Test,SolvesTestEq2CPU){ test_equation2<Skvortsov2StepCPU>(); } ////////////////////////////////////////////////////////////////////////// TEST(Skvortsov3Test,SolvesTestEq1CPU){ test_equation1<Skvortsov3StepCPU>(); } TEST(Skvortsov3Test,SolvesTestEq2CPU){ test_equation2<Skvortsov3StepCPU>(); } ///////////////////////////////////////////////////////////////////////// TEST(Rk4StepStabilizedTest,SolvesTestEq1CPU){ test_equation1<Rk4StepStabilized>(); } TEST(Rk4StepStabilizedTest,SolvesTestEq2CPU){ test_equation2<Rk4StepStabilized>(); } <file_sep>/primitives/chebyshev.h #pragma once #include <time.h> template<class Matrix,class Real, class Blas> bool solve_chebyshev ( Matrix &A, const Real* b0, Real* x0, const unsigned int N, const unsigned int max_iter, const Real epsilon, const unsigned int block_size, Blas blas = Blas() ) { const Real * diag_matrix = A.diag(); Blas::init(N); #define ARRAY_ALLOCATE(x) Real *x=0;Blas::allocate<Real> ( N+4, x ) ARRAY_ALLOCATE(r); ARRAY_ALLOCATE(p); ARRAY_ALLOCATE(z); ARRAY_ALLOCATE(x); ARRAY_ALLOCATE(b); ARRAY_ALLOCATE(diag_inv); #undef ARRAY_ALLOCATE Blas::initialize_matrix(A); //!!! // building the Jacobi preconditionner std::vector<Real> cpu_diag_inv ( N+4) ; for(unsigned int i=0; i<N; i++) { cpu_diag_inv[i] = (Real)((i >= N || diag_matrix[i] == 0.0) ? 1.0 : 1.0 / diag_matrix[i]) ; } Blas::set(N,&cpu_diag_inv[0],diag_inv); //cublasSetVector ( N, 4, x0.data() , 1, x, 1 ) ; Blas::set(N,x0,x); //cublasSetVector ( N, 4, b0.data() , 1, gpu_b, 1 ) ; Blas::set(N,b0,b); const int one = 1; unsigned int its=0; // r = A*x Blas::spmv(N,A,x,r); // r = b - A*x Blas::axpy(N,-1.0,b,r); Blas::scal(N,-1.0,r); printf("Chebyshev iteration started. initial residue:%f\n ",Blas::nrm2(N,(Real*)r)); clock_t time_start = clock(); const Real lmax = 1.1f, lmin=1.f; const Real c = (lmax-lmin)/2; const Real d = (lmax+lmin)/2; Real alpha = 0,beta = 0; while ( /*cur_err > err &&*/ (int)its < max_iter) { //solve M*phat = p //z = linsolve(preCond,r); Blas::memberwise_mul( N, diag_inv, r, z ); if(its==0){ Blas::copy(N,z,p); alpha = 2/d; } else{ beta = (c*alpha/2)*(c*alpha/2); alpha = 1/(d-beta); Blas::axpy(N,beta,p,z); //z = z + beta*p; std::swap(p,z); //z invalid } //x=x+alpha*p; Blas::axpy(N,alpha,p,x); Blas::spmv(N,A,x,r); // r = b - A*x Blas::axpy(N,-1.0,b,r); Blas::scal(N,-1.0,r); its++; if(Blas::nrm2(N,r)<epsilon){ break; } } Blas::extract(N,x,x0); clock_t time_finished = clock(); /// r = A*x Blas::spmv(N,A,x,r); // r = b - A*x Blas::axpy ( N,-1.0,b,r) ; Blas::scal ( N, -1.0,r) ; printf("=====Calculation residue:\n"); printf("%f\n",Blas::nrm2(N,(Real*)r)); printf("niterations=%d\n",its); printf("time=%d\n",time_finished-time_start); printf("---------------------------Chebyshev iteration end-----------------------------\n\n"); #define ARRAY_DEALLOCATE(x) Blas::deallocate ( (void*)x ) ARRAY_DEALLOCATE(r); ARRAY_DEALLOCATE(p); ARRAY_DEALLOCATE(x); ARRAY_DEALLOCATE(z); ARRAY_DEALLOCATE(b); ARRAY_DEALLOCATE(diag_inv); #undef ARRAY_DEALLOCATE Blas::deinitialize_matrix(A); return (its<max_iter) ; } template<class Matrix,class Real, class Blas> bool solve_chebyshev2 ( Matrix &A, const Real* b0, Real* x0, const unsigned int N, const unsigned int max_iter, const Real epsilon, const unsigned int block_size, Blas blas = Blas() ) { const Real * diag_matrix = A.diag(); Blas::init(N); #define ARRAY_ALLOCATE(x) Real *x=0;Blas::allocate<Real> ( N+4, x ) ARRAY_ALLOCATE(r); ARRAY_ALLOCATE(p); ARRAY_ALLOCATE(z); ARRAY_ALLOCATE(x); ARRAY_ALLOCATE(b); ARRAY_ALLOCATE(diag_inv); #undef ARRAY_ALLOCATE Blas::initialize_matrix(A); //!!! // building the Jacobi preconditionner std::vector<Real> cpu_diag_inv ( N+4) ; for(unsigned int i=0; i<N; i++) { cpu_diag_inv[i] = (Real)((i >= N || diag_matrix[i] == 0.0) ? 1.0 : 1.0 / diag_matrix[i]) ; } Blas::set(N,&cpu_diag_inv[0],diag_inv); //cublasSetVector ( N, 4, x0.data() , 1, x, 1 ) ; Blas::set(N,x0,x); //cublasSetVector ( N, 4, b0.data() , 1, gpu_b, 1 ) ; Blas::set(N,b0,b); const int one = 1; unsigned int its=0; // r = A*x Blas::spmv(N,A,x,r); // r = b - A*x Blas::axpy(N,-1.0,b,r); Blas::scal(N,-1.0,r); printf("Chebyshev iteration started. initial residue:%f\n ",Blas::nrm2(N,(Real*)r)); clock_t time_start = clock(); while ((int)its < max_iter) { chebyshev_iteration(A.get_gpu_storage(),x,b,r,z,p,diag_inv,its,block_size); its ++; axmb_csr_float(A.get_gpu_storage(),x,b,r); if(its%32==0 || its >= max_iter){ if(Blas::nrm2(N,r)<epsilon){ break; } } } //Blas::extract(N,z,x0); Blas::extract(N,x,x0); clock_t time_finished = clock(); /// r = A*x Blas::spmv(N,A,x,r); // r = b - A*x Blas::axpy ( N,-1.0,b,r) ; Blas::scal ( N, -1.0,r) ; printf("=====Calculation residue:\n"); printf("%f\n",Blas::nrm2(N,(Real*)r)); printf("niterations=%d\n",its); printf("time=%d\n",time_finished-time_start); printf("---------------------------Chebyshev iteration end-----------------------------\n\n"); #define ARRAY_DEALLOCATE(x) Blas::deallocate ( (void*)x ) ARRAY_DEALLOCATE(r); ARRAY_DEALLOCATE(p); ARRAY_DEALLOCATE(x); ARRAY_DEALLOCATE(z); ARRAY_DEALLOCATE(b); ARRAY_DEALLOCATE(diag_inv); #undef ARRAY_DEALLOCATE Blas::deinitialize_matrix(A); return (its<max_iter) ; } template<class Matrix,class Real, class Blas> bool solve_chebyshev3 ( Matrix &A, const Real* b0, Real* x0, const unsigned int N, const unsigned int max_iter, const Real epsilon, const unsigned int block_size, Blas blas = Blas() ) { const Real * diag_matrix = A.diag(); Blas::init(N); #define ARRAY_ALLOCATE(x) Real *x=0;Blas::allocate<Real> ( N+4, x ) ARRAY_ALLOCATE(r); ARRAY_ALLOCATE(p); ARRAY_ALLOCATE(z); ARRAY_ALLOCATE(x); ARRAY_ALLOCATE(b); ARRAY_ALLOCATE(diag_inv); #undef ARRAY_ALLOCATE Blas::initialize_matrix(A); //!!! // building the Jacobi preconditionner std::vector<Real> cpu_diag_inv ( N+4) ; for(unsigned int i=0; i<N; i++) { cpu_diag_inv[i] = (Real)((i >= N || diag_matrix[i] == 0.0) ? 1.0 : 1.0 / diag_matrix[i]) ; } Blas::set(N,&cpu_diag_inv[0],diag_inv); //cublasSetVector ( N, 4, x0.data() , 1, x, 1 ) ; Blas::set(N,x0,x); //cublasSetVector ( N, 4, b0.data() , 1, gpu_b, 1 ) ; Blas::set(N,b0,b); const int one = 1; unsigned int its=0; // r = A*x Blas::spmv(N,A,x,r); // r = b - A*x Blas::axpy(N,-1.0,b,r); Blas::scal(N,-1.0,r); printf("Chebyshev iteration started. initial residue:%f\n ",Blas::nrm2(N,(Real*)r)); clock_t time_start = clock(); const int it_block = 8; while ((int)its < max_iter) { chebyshev_iteration_s(A.get_gpu_storage(),x,b,r,z,p,diag_inv,its,it_block,block_size); its +=it_block; if(its%32==0 || its >= max_iter){ if(Blas::nrm2(N,r)<epsilon){ break; } } } //Blas::extract(N,z,x0); Blas::extract(N,x,x0); clock_t time_finished = clock(); /// r = A*x Blas::spmv(N,A,x,r); // r = b - A*x Blas::axpy ( N,-1.0,b,r) ; Blas::scal ( N, -1.0,r) ; printf("=====Calculation residue:\n"); printf("%f\n",Blas::nrm2(N,(Real*)r)); printf("niterations=%d\n",its); printf("time=%d\n",time_finished-time_start); printf("---------------------------Chebyshev iteration end-----------------------------\n\n"); #define ARRAY_DEALLOCATE(x) Blas::deallocate ( (void*)x ) ARRAY_DEALLOCATE(r); ARRAY_DEALLOCATE(p); ARRAY_DEALLOCATE(x); ARRAY_DEALLOCATE(z); ARRAY_DEALLOCATE(b); ARRAY_DEALLOCATE(diag_inv); #undef ARRAY_DEALLOCATE Blas::deinitialize_matrix(A); return (its<max_iter) ; }<file_sep>/primitives/projective.h #pragma once #include "StepSolverBase.h" template <template<class R> class TBlas,class RealT,class Vector,class Func,class History> struct PFEStep : public StepSolverBase<TBlas<RealT> >{ typename StepSolverBase<TBlas<RealT> >::MyBlasVector inner_results; typename StepSolverBase<TBlas<RealT> >::MyBlasVector tmp; void init(unsigned int N,RealT * init){ inner_results.reset(N+N); tmp.reset(N); } void call(unsigned int N,RealT t,RealT h, Vector &x, const Func &F,const History* history = 0) { const int INNER_STEPS = 4; const RealT inner_h = h/16; RealT inner_t = t; for (unsigned int i=0;i<INNER_STEPS;++i) { F(inner_t,x,tmp); TBlas<RealT>::axpy(N,inner_h,tmp,x); //printf("-!!!- inner val %f %f\n",x[0],x[N/3*2]); if(i==INNER_STEPS-1){ TBlas<RealT>::copy(N,x,&inner_results[N]); } if(i==INNER_STEPS-2){ TBlas<RealT>::copy(N,x,&inner_results[0]); } inner_t += inner_h; } const RealT psi = h/inner_h - INNER_STEPS; TBlas<RealT>::scal(N,psi+1,&inner_results[N]); TBlas<RealT>::axpy(N,-psi,&inner_results[0],&inner_results[N]); TBlas<RealT>::copy(N,&inner_results[N],x); //printf("----!!!- val %f %f\n",x[0],x[N/3*2]); } }; <file_sep>/primitives_test/newton_solver_test.cpp #include <gtest/gtest.h> #include "../primitives/types.h" #include "../primitives/lu.h" #include "../primitives/lin_solve.h" #include "../primitives/RefBlas.h" #include "../primitives/newton.h" #include "../primitives/jacobian.h" void simple_nonlinear_function(double* in, double* out){ out[0] = in[0]*in[0] - 256; } TEST(NewtonSolverTest,SolvesTestEq1){ BlasVector<RefBlas<double> > x(1); x[0] = 2; solve_newton<double,NewtonSolver,RefBlas,LUsolver,JacobyAuto>(1,simple_nonlinear_function,x,10); const double epsilon = 0.00001; for (unsigned int i=0;i<1;++i) { EXPECT_EQ(std::abs(16 - x[0])<epsilon, true); } } /* TEST(NewtonSimplifiedSolverTest,SolvesTestEq1){ BlasVector<RefBlas<double> > x(1); x[0] = 8; solve_newton<double,NewtonSimplifiedSolver,RefBlas,LUsolver,JacobyAuto>(1,simple_nonlinear_function,x,20); const double epsilon = 0.00001; for (unsigned int i=0;i<1;++i) { EXPECT_EQ(std::abs(16 - x[0])<epsilon, true); } } */ <file_sep>/primitives/FullMatrix.h #pragma once template<class RealT> class FullMatrix{ public: typedef std::map<unsigned int,RealT> Row; typedef std::vector<Row> MatrData; private: MatrData data_; //unsigned int nrows_,ncolumns; public: void set_value(unsigned int nrow,unsigned int ncolumn, RealT val){ if(data_.size()<=nrow) data_.resize(nrow+1); /*if(data_[nrow].size()<=ncolumn) data_[nrow].resize(ncolumn+1);*/ data_[nrow][ncolumn] = val; } RealT get_value(unsigned int x, unsigned int y){ return data_[x].find(y)->second; } void reserve(unsigned int sz){ data_.resize(sz); //std::for_each(data_.begin(),data_.end(),boost::bind(&Row::resize,_1,sz)); } const Row& row(unsigned int idx) const { return data_[idx]; } unsigned int rows()const{ return data_.size(); } }; template<class RealT> class CNCLoader{ template<class Fun> static bool parse_a(char* buf, Fun &cb){ char* c = buf; char* cn = buf; cn = strchr(c,' '); if(cn==0) return false; *cn = 0; unsigned int m = atoi(c); c = cn + 1; cn = strchr(c,' '); if(cn==0) return false; *cn = 0; unsigned int n = atoi(c); c = cn + 1; RealT a = static_cast<RealT>(atof(c)); cb(m,n,a); return true; } template<class Fun> static bool parse_b(char* buf, Fun &cb){ char* c = buf; char* cn = buf; cn = strchr(c,' '); if(cn==0) return false; *cn = 0; unsigned int m = atoi(c); c = cn + 1; RealT a = static_cast<RealT>(atof(c)); cb(m,a); return true; } template<class Funa,class Funb> static bool parse(char* buf, Funa &cba,Funb &cbb){ char* c = buf; char* cn = buf; cn = strchr(c,' '); if(cn==0) return false; *cn = 0; if(strcmp(c,"a")==0){ return parse_a(cn+1,cba); } if(strcmp(c,"b")==0){ return parse_b(cn+1,cbb); //return true; } return false; } public: template<class Fun,class Funb,class Fun2> static bool load(const wchar_t* file_name, Fun& cba,Funb& cbb,Fun2& cb2){ FILE* f = _wfopen(file_name,L"r"); if(!f) return false; unsigned int nline = 0; while (!feof(f)) { char buf[128] = {}; fgets(buf,128,f); if (nline>1){ parse(buf,cba,cbb); } else if(nline==0) { cb2(atoi(buf)); } nline++; } return true; } };<file_sep>/primitives/ode_solver.h #pragma once #include <boost/cstdint.hpp> #include "BlasCommon.h" #include "rk.h" #include <omp.h> #include <cassert> //typedef void (double,double,double*,double*) AAA; template<class RealT, template<class Breal> class BlasT, template<template<class RealB> class Blas,class RealT,class Vector,class Func,class History> class TStepSolver, class FuncT, class VectorT > void solve_fixedstep( unsigned int N, RealT dbegin, RealT dend, RealT h, FuncT F, const VectorT& init, VectorT result) { using boost::uint64_t; typedef BlasT<RealT> Blas; const uint64_t factor = 1000000; const uint64_t ih = (uint64_t)(h*factor+0.5); uint64_t ibegin = (uint64_t)(dbegin*factor+0.5); const uint64_t iend = (uint64_t)(dend*factor+0.5); VectorT &x = result; Blas::copy(N,init,x); typedef TStepSolver<BlasT,RealT,VectorT,FuncT,VectorDeque<BlasT<RealT> > > StepSolver; StepSolver solver; solver.init(N,init); //init history const unsigned int history_length = solver.history_length() ; VectorDeque<BlasT<RealT> > history(N,history_length - 1); if(history_length>1){ //requires at least 1 point of history, init with initial value history.push(init); } if(history_length>2){ //requires warmup const uint64_t warmup_end = ibegin+ih*(history_length-1); for(uint64_t ti=ibegin+ih; ti<warmup_end; ti+=ih){ RealT t = ti/(RealT)factor; Rk4Step<BlasT,RealT,VectorT,FuncT,VectorDeque<BlasT<RealT> > > warmup_solver; warmup_solver.call(N,t,h,x,F,&history); history.push(x); } ibegin = warmup_end - ih; } //main solver loop for(uint64_t ti=ibegin+ih;ti<iend;ti+=ih){ RealT t = ti/(RealT)factor; solver.call(N,t,h,x,F,&history); if(history_length>1){ history.push(x); } } } template<class RealT, template<class Breal> class BlasT, template<template<class RealB> class Blas,class RealT,class Vector,class Func,class History> class TStepSolver, class FuncT, class VectorT > int solve_varstep_embedded( unsigned int N, RealT dbegin, RealT dend, RealT h, RealT accuracy, RealT min_step, FuncT F, const VectorT& init, VectorT result) { using boost::uint64_t; typedef BlasT<RealT> Blas; const uint64_t factor = 1000000; const uint64_t ih = (uint64_t)(h*factor+0.5); uint64_t ibegin = (uint64_t)(dbegin*factor+0.5); const uint64_t iend = (uint64_t)(dend*factor+0.5); VectorT &x = result; Blas::copy(N,init,x); typedef TStepSolver<BlasT,RealT,VectorT,FuncT,VectorDeque<BlasT<RealT> > > StepSolver; StepSolver solver; solver.init(N,init); RealT hinit = h; //main solver loop const real_t scale_factor = 1.5f; for(uint64_t ti=ibegin+ih;ti<iend;){ RealT t = ti/(RealT)factor; const RealT err = solver.call(N,t,h,x,F); if(err>accuracy){ h = h/scale_factor; if(h<min_step){ return 1; //cant solve } } else{ const uint64_t ih = (uint64_t)(h*factor+0.5); ti+=ih; if(h<hinit/scale_factor){ h*=scale_factor; } } } return 0; } template<class RealT, template<class Breal> class BlasT, template<template<class RealB> class Blas,class RealT,class Vector,class Func,class History> class TStepSolver, class FuncT, class VectorT > int solve_fixedstep_test( unsigned int N, RealT dbegin, RealT dend, RealT h, FuncT F, const VectorT& init, VectorT result) { using boost::uint64_t; typedef BlasT<RealT> Blas; const uint64_t factor = 1000000; const uint64_t ih = (uint64_t)(h*factor+0.5); uint64_t ibegin = (uint64_t)(dbegin*factor+0.5); const uint64_t iend = (uint64_t)(dend*factor+0.5); VectorT &x = result; Blas::copy(N,init,x); typedef TStepSolver<BlasT,RealT,VectorT,FuncT,VectorDeque<BlasT<RealT> > > StepSolver; StepSolver solver; solver.init(N,init); //init history const unsigned int history_length = solver.history_length() ; VectorDeque<BlasT<RealT> > history(N,history_length - 1); if(history_length>1){ //requires at least 1 point of history, init with initial value history.push(init); } if(history_length>2){ //requires warmup const uint64_t warmup_end = ibegin+ih*(history_length-1); for(uint64_t ti=ibegin+ih; ti<warmup_end; ti+=ih){ RealT t = ti/(RealT)factor; Rk4Step<BlasT,RealT,VectorT,FuncT,VectorDeque<BlasT<RealT> > > warmup_solver; warmup_solver.call(N,t,h,x,F,&history); history.push(x); } ibegin = warmup_end - ih; } int r= 0 ; //main solver loop for(uint64_t ti=ibegin+ih;ti<iend;ti+=ih){ RealT t = ti/(RealT)factor; r+=solver.call(N,t,h,x,F,&history); if(history_length>1){ history.push(x); } } return r; } template<class RealT, template<class Breal> class BlasT, template<template<class RealB> class Blas,class RealT,class Vector,class Func,class History> class TStepSolver, class FuncT, class VectorT > void solve_fixedstep_parallel( unsigned int N, RealT dbegin, RealT dend, RealT h, FuncT F, const VectorT& init, VectorT result, int nthreads = -1 ) { using boost::uint64_t; typedef BlasT<RealT> Blas; const uint64_t factor = 1000000; const uint64_t ih = (uint64_t)(h*factor+0.5); uint64_t ibegin = (uint64_t)(dbegin*factor+0.5); const uint64_t iend = (uint64_t)(dend*factor+0.5); VectorT &x = result; Blas::copy(N,init,x); typedef TStepSolver<BlasT,RealT,VectorT,FuncT,VectorDeque<BlasT<RealT> > > StepSolver; StepSolver solver; solver.init(N,init); //init history //const unsigned int history_length = solver.history_length() ; //VectorDeque<BlasT<RealT> > history(N,history_length - 1); //if(history_length>1){ //requires at least 1 point of history, init with initial value // history.push(init); //} //if(history_length>2){ //requires warmup // const uint64_t warmup_end = ibegin+ih*(history_length-1); // for(uint64_t ti=ibegin+ih; ti<warmup_end; ti+=ih){ // RealT t = ti/(RealT)factor; // Rk4Step<BlasT,RealT,VectorT,FuncT,VectorDeque<BlasT<RealT> > > warmup_solver; // warmup_solver.call(N,t,h,x,F,&history); // history.push(x); // } // ibegin = warmup_end - ih; //} //main solver loop if(nthreads==-1) nthreads = 2; #pragma omp parallel num_threads(nthreads) { const int thread_id = omp_get_thread_num(); const int items_per_thread = N / nthreads; assert(N % nthreads == 0); const int chunk_begin = thread_id*items_per_thread; for(uint64_t ti=ibegin+ih;ti<iend;ti+=ih){ RealT t = ti/(RealT)factor; solver.call(N,t,h,x,F,chunk_begin,items_per_thread,0); /*if(history_length>1){ history.push(x); }*/ //printf("--%f\n",x[0]); #pragma omp barrier int braek = 0; } } }<file_sep>/primitives_test/vector_test.cpp #include <gtest/gtest.h> #include "../primitives/types.h" TEST(VectorTest,AllocatesAndSetsCorrectSize){ Vector<float> v; EXPECT_EQ((const float*)(0), v.data()); v.set_dimension(32); EXPECT_EQ(32, v.size()); EXPECT_NE((const float*)(0), v.data()); } TEST(VectorTest,ConstructorsWorkFine){ Vector<float> v0; EXPECT_EQ(0, v0.data()); EXPECT_EQ(0, v0.size()); Vector<float> v1(32); EXPECT_NE((const float*)0, v1.data()); EXPECT_EQ(32, v1.size()); float aaa[] = {1,2,3,4,5}; Vector<float> v2(&aaa[0],5,false); EXPECT_EQ(&aaa[0], v2.data()); EXPECT_EQ(5, v2.size()); } <file_sep>/primitives/PMKLBlas.h #pragma once #pragma once #include "tbb_helper.h" #include <mkl.h> #include "MKL_blas.h" static const float one = 1.0f; static const float minusOne = -1.0f; static const int intOne = 1; #define NTHREADITEMS N/4 #define BLASFUN(name) ::s##name #define BYTE_SIZE N*sizeof(Real) /************************************************************************/ /* vvblas_custom_cpu main class */ /************************************************************************/ struct PMKLBlas { static const int one = 1; typedef BlasCommon::FloatType Real; /************************************************************************/ /* local classes: TBB workers */ /************************************************************************/ struct Tbb_dot:public Binary_tbb_worker<Real> { mutable Float s; Tbb_dot(const Float* a,const Float* b):Binary_tbb_worker<Real>((float*)a,(float*)b,0),s(0) {} Tbb_dot(Tbb_dot& a, tbb::split):Binary_tbb_worker(a.m_a,a.m_b,0),s(0){} void operator()(TbbRange& r)const { const int N = r.end() - r.begin(); s = BLASFUN(dot)((const int*)&N,m_a,&one,m_b,&one); } void join(Tbb_dot& right){ s+=right.s; } }; struct Tbb_scal:public Unary_tbb_worker<Real> { Float m_c; Tbb_scal(const Float* a,Float c,Float* res):Unary_tbb_worker<Real>((float*)a,res),m_c(c) {} Tbb_scal(Tbb_scal& a, tbb::split):Unary_tbb_worker((float*)a.m_a,a.m_result),m_c(a.m_c) {} void operator()(TbbRange& r)const{ const int nitems = r.end()-r.begin(); BLASFUN(scal)(&nitems,&m_c,&m_a[r.begin()],&intOne); } }; struct Tbb_axpy:public Binary_tbb_worker<Real> { Float m_alpha ; Tbb_axpy(const Float a,const Float* x,Float* y):Binary_tbb_worker<Real>((float*)x,(float*)y,y),m_alpha(a) {} Tbb_axpy(Tbb_axpy& right, tbb::split):Binary_tbb_worker(right.m_a,right.m_b,right.m_result),m_alpha(right.m_alpha) {} void operator()(TbbRange& r)const { const int nitems = r.end()-r.begin(); ::saxpy(&nitems,&m_alpha,&m_a[r.begin()],&intOne,&m_b[r.begin()],&intOne); } }; struct Tbb_nrm2:public Unary_tbb_worker<Real> { mutable Float s; Tbb_nrm2(const Float* a):Unary_tbb_worker<Real>((float*)a,0),s(0) {} Tbb_nrm2(Tbb_nrm2& a, tbb::split):Unary_tbb_worker(a.m_a,0),s(0){} void operator()(TbbRange& r)const{ for (int i = r.begin();i!=r.end();++i){ s+=m_a[i]*m_a[i]; } /*const int N = r.end() - r.begin() s = BLASFUN(nrm2)((const int*)&N,m_a,&one,m_b,&one)*/ } void join(Tbb_nrm2& right){ s+=right.s; } }; struct Tbb_vecvecmult:public Binary_tbb_worker<Real> { Tbb_vecvecmult(const Float* a,const Float* b,Float *y):Binary_tbb_worker<Real>((float*)a,(float*)b,y) {} Tbb_vecvecmult(Tbb_vecvecmult& right, tbb::split):Binary_tbb_worker(right.m_a,right.m_b,right.m_result) {} void operator()(TbbRange& r)const{ for (int i = r.begin();i!=r.end();++i){ m_result[i]=m_a[i]*m_b[i]; } } }; /************************************************************************/ /*main blas functions */ /************************************************************************/ public: static Real dot(const unsigned int N,const Real* x,const Real* y) { /*float sd = ::sdot((const int*)&N,x,&one,y,&one); return sd;*/ Tbb_dot dot_worker(x,y); tbb::parallel_reduce(TbbRange(0,N,NTHREADITEMS),dot_worker); return dot_worker.s; } static void scal(const unsigned int N, const Real alpha, Real* x) { /*::sscal((const int*)&N,&alpha,x,&one); return ;*/ Tbb_scal scal_worker(x,alpha,x); tbb::parallel_for(TbbRange(0,N,NTHREADITEMS),scal_worker); } static void axpy( const unsigned int N, const Real alpha, const Real* x, Real *y ) { //::saxpy((const int*)&N,&alpha,x,&one,y,&one); //return; Tbb_axpy axpy_worker(alpha,x,y); tbb::parallel_for(TbbRange(0,N,NTHREADITEMS),axpy_worker); } static void copy(const unsigned int N,const Real *x, Real* y){ BLASFUN(copy)((const int*)&N,x,&one,y,&one); } template<class T> static void allocate(const unsigned int N, T*& out){ MKLBlas::allocate(N,out); } static void deallocate(void* ptr){ MKLBlas::deallocate((MKLBlas::Real*)ptr); } static Real nrm2(const unsigned int N,const Real *x) { Tbb_nrm2 nrm2_worker(x); tbb::parallel_reduce(TbbRange(0,N,NTHREADITEMS),nrm2_worker); return sqrt(nrm2_worker.s); } static bool init(unsigned int N){ static tbb::task_scheduler_init init; return true; } template<class T> static void extract(const unsigned int N, const T* devPtr, T* hostPtr){ memcpy(hostPtr,devPtr,BYTE_SIZE); } template<class T> static void set(const unsigned int N, const T* hostPtr, T* devPtr){ memcpy(devPtr,hostPtr,BYTE_SIZE); } template<class Matrix> static void initialize_matrix( Matrix& A) { } template<class Matrix> static void deinitialize_matrix(Matrix& A){ } template<class RealT> static void spmv(unsigned int N, SparseMatrixCRS<RealT>& A, RealT* x, RealT* b); template<> static void spmv<float>(unsigned int N, SparseMatrixCRS<float>& A, float* x, float* b){ A.spmv_tbb(x,b); }; template<class RealT> static void spmv(unsigned int N, DenseMatrix<RealT>& A, RealT* x, RealT* b){ A.spmv_tbb(x,b); }; template<class RealT> static void memberwise_mul(unsigned int N, RealT* x, RealT* y,RealT* z); template<> static void memberwise_mul<float>(unsigned int N, float* a, float*b,float* y) { Tbb_vecvecmult vecvec_worker(a,b,y); tbb::parallel_for(TbbRange(0,N,NTHREADITEMS),vecvec_worker); } }; #undef NTHREADITEMS #undef BLASFUN #undef BYTE_SIZE<file_sep>/primitives/CUDABlas.h #pragma once #include <cuda.h> #include <cublas.h> //#include "SparseMatrix.h" #include "BlasCommon.h" #define BLASFUN(name) cublasS##name struct CUDABlas { typedef BlasCommon::FloatType Real; typedef Real FloatType; static const int one = 1; public: static Real dot(const unsigned int N,const Real* x,const Real* y) { return BLASFUN(dot)(N,x,1,y,1); } static void scal(const unsigned int N, const Real alpha, Real* x) { BLASFUN(scal)(N,alpha,x,1); } static void axpy( const unsigned int N, const Real alpha, const Real* x, Real *y ){ BLASFUN(axpy)(N,alpha,x,1,y,1); } static void copy(const unsigned int N,const Real *x, Real* y){ BLASFUN(copy)(N,x,1,y,1); } template<class T> static void allocate(const unsigned int N, T*& out){ cublasAlloc(N,sizeof(T),(void**)&out); } static void deallocate(void* ptr){ cublasFree(ptr); } template<class T> static void extract(const unsigned int N, const T* devPtr, T* hostPtr){ cublasGetVector(N,sizeof(T),devPtr,1,hostPtr,1); } template<class T> static void set(const unsigned int N, const T* hostPtr, T* devPtr){ cublasSetVector(N,sizeof(T),hostPtr,1,devPtr,1); } static Real nrm2(const unsigned int N,const Real *x){ return BLASFUN(nrm2)(N,x,1); } static bool init(unsigned int N){ cublasStatus st = cublasInit () ; return true; } /*template<class Matrix> static void initialize_matrix( Matrix& A) { A.attach_gpu_storage(A.load_to_gpu()); } template<class Matrix> static void deinitialize_matrix(Matrix& A){ A.deallocate_gpu_storage(); } template<class RealT> static void spmv(unsigned int N, SparseMatrixCRS<RealT>& A, RealT* x, RealT* b); template<> static void spmv<float>(unsigned int N, SparseMatrixCRS<float>& A, float* x, float* b){ spmv_csr_float(A.get_gpu_storage(),x,b); }*/ template<class RealT> static void memberwise_mul(unsigned int N, RealT* x, RealT* y,RealT* z); //template<> static void memberwise_mul<float>(unsigned int N, float* x, float* y,float* z) //{ // cuda_memberwise_mul_float(N,x,y,z); //} }; #undef BLASFUN #undef BYTE_SIZE <file_sep>/primitives/RefBlas.h #pragma once template<class Real> struct RefBlas { typedef Real FloatType; #define BYTE_SIZE N*sizeof(Real) static const int one = 1; /************************************************************************/ /* level 1 */ /************************************************************************/ static Real dot(const unsigned int N,const Real* x,const Real* y) { Real s = 0; for (unsigned int i=0;i<N;++i) { s+=x[i]*y[i]; } return s; } static void scal(const unsigned int N, const Real alpha, Real* x) { for (unsigned int i=0;i<N;++i){ x[i]*=alpha; } } static void axpy( const unsigned int N, const Real alpha, const Real* x, Real *y ) { for (unsigned int i=0;i<N;++i){ y[i] += alpha*x[i]; } } static void copy(const unsigned int N,const Real *x, Real* y) { for (unsigned int i=0;i<N;++i){ y[i] = x[i]; } } static Real nrm2(const unsigned int N,const Real *x){ Real s = 0; for (unsigned int i=0;i<N;++i) { s+=x[i]*x[i]; } return sqrt(s); } /************************************************************************/ /* utility */ /************************************************************************/ static void allocate(const unsigned int N, Real*& out){ out = (Real*)malloc(BYTE_SIZE); } static void deallocate(Real* p){ free(p); } static bool init(unsigned int N){ return true; } static void extract(const unsigned int N, const Real* devPtr, Real* hostPtr){ memcpy(hostPtr,devPtr,BYTE_SIZE); } static void set(const unsigned int N, const Real* hostPtr, Real* devPtr){ memcpy(devPtr,hostPtr,BYTE_SIZE); } /************************************************************************/ /* lev2 */ /************************************************************************/ /*static void spmv_crs(BlasCommon::CRS_matrix<Real> A,Real* x,Real* y) { for (unsigned int i=0;i<A.nrows;++i) { Real s = 0; for (unsigned int j = A.rowptr[i], j<A.rowptr[i+1];++j) { s += A.data[j]*x[A.colind[j]]; } y[i] = s; } }*/ /*static void spmv_crs(const SparseMatrixCRS<Real>& A,Real* x,Real* y) { BlasCommon::CRS_matrix a={&A.data_[0],&A.colind_[0],&A.rowptr_[0],A.rows()}; return spmv_crs(a,x,y) }*/ }; #undef BYTE_SIZE <file_sep>/primitives_test/rk4_test.cpp #include <gtest/gtest.h> #include "../primitives/types.h" #include "../primitives/ode_solver.h" #include "../primitives/rk.h" #include "../primitives/RefBlas.h" #include "test_functions.h" TEST(Rk4Test,SolvesTestEq1){ const unsigned int ndim = 1; Vector<float> init(ndim); init[0] = 0.0; Vector<float> result(ndim); const float step = 0.01f; const float dend = 4.0f; solve_fixedstep<float,RefBlas,Rk4Step>(ndim, 0.0f,dend, step, equation, init.data(), result.data() ); const float epsilon = result[0] * step; EXPECT_EQ(epsilon > 0,true); EXPECT_EQ(std::abs(dend*dend - result[0])<epsilon, true); } TEST(Rk4Test,SolvesTestEq2){ const unsigned int ndim = 1; Vector<double> init(ndim); init[0] = sin_eq_analytic(0.0); Vector<double> result(ndim); const double step = 0.001; const double dend = 3.0; solve_fixedstep<double,RefBlas,Rk4Step>(ndim, 0.0f,dend, step, sin_eq, init.data(), result.data() ); const double epsilon = 0.01; EXPECT_EQ(epsilon > 0,true); EXPECT_EQ(std::abs(sin_eq_analytic(dend) - result[0])<epsilon, true); } <file_sep>/primitives_test/VectorDequeTest.cpp #include <gtest/gtest.h> #include "../primitives/types.h" #include "../primitives/RefBlas.h" TEST(VectorDequeTest,AllocatesAndSetsCorrectSize){ VectorDeque<RefBlas<float> > v(5,7); EXPECT_EQ(v.get_N(),5); EXPECT_EQ(v.get_capacity(),7); } template<class T>static bool cmp_array(const T* left, const T* right,unsigned int sz){ return std::equal(left,left+sz,right); } TEST(VectorDequeTest,Push){ VectorDeque<RefBlas<float> > v(3,3); float test_data1[] = {1,1,1}; float test_data2[] = {2,2,2}; float test_data3[] = {3,3,3}; float test_data4[] = {4,4,4}; float test_data5[] = {5,5,5}; v.push(test_data1); EXPECT_EQ(cmp_array(v.get_vector(0),test_data1,3),true); v.push(test_data2); EXPECT_EQ(cmp_array(v.get_vector(0),test_data1,3),true); EXPECT_EQ(cmp_array(v.get_vector(1),test_data2,3),true); v.push(test_data3); EXPECT_EQ(cmp_array(v.get_vector(0),test_data1,3),true); EXPECT_EQ(cmp_array(v.get_vector(1),test_data2,3),true); EXPECT_EQ(cmp_array(v.get_vector(2),test_data3,3),true); v.push(test_data4); EXPECT_EQ(cmp_array(v.get_vector(0),test_data2,3),true); EXPECT_EQ(cmp_array(v.get_vector(1),test_data3,3),true); EXPECT_EQ(cmp_array(v.get_vector(2),test_data4,3),true); v.push(test_data5); EXPECT_EQ(cmp_array(v.get_vector(0),test_data3,3),true); EXPECT_EQ(cmp_array(v.get_vector(1),test_data4,3),true); EXPECT_EQ(cmp_array(v.get_vector(2),test_data5,3),true); }
d30aefdc7038d4f2dd16156f423170d80c7236e6
[ "C", "C++" ]
48
C++
schadov/libwombat
01f7fda74dc97bc20f5b90970687d1e2e04e15a3
17b1d173e37e83142fdfa1426abb7e391b3ed04b
refs/heads/master
<repo_name>hharzer/webscraping<file_sep>/api/profile/controllers/profile.js 'use strict'; /** * Read the documentation (https://strapi.io/documentation/3.0.0-beta.x/concepts/controllers.html#core-controllers) * to customize this controller */ module.exports = { async findOne (ctx) { const {id} = ctx.params; return strapi.query('profile').model .findById(id) .populate({ path: 'user', select: 'username email id' }) }, async update (ctx) { const {id} = ctx.params; const {likes, downloads, picture} = ctx.request.body; const user = await strapi.query('profile').model.findById(id); let objUpdate = {} if(user) { if(likes) { const lkIndex = user.likes.indexOf(likes); console.log('lkIndex',lkIndex); if (lkIndex > -1) user.likes.splice(lkIndex, 1) else user.likes.push(likes); objUpdate.likes = user.likes; } if (downloads) { const dwIndex = user.downloads.indexOf(downloads); if (dwIndex > -1) user.downloads.splice(dwIndex, 1) else user.downloads.push(downloads); objUpdate.downloads = user.downloads; } if (picture) { objUpdate.picture = picture; } } console.log(objUpdate) return strapi.query('profile').update({id},objUpdate) .then(r => ctx.send({"done": true})) .catch(e => ctx.send({"error": true})) } }; <file_sep>/README.md # Web Sraping Use Strapi (nodejs headless CMS) <file_sep>/api/article/services/article.js 'use strict'; const request = require('request-promise'); const cheerio = require('cheerio'); module.exports = { async findNews (id, _start, _limit) { return await strapi.query('article').model .find({ categories: {$in : [id]}, status: 'finish'}) .limit(parseInt(_limit)) .skip(parseInt(_start)); }, async featured (id) { return await strapi.query('article').model .findOne({categories: {$in : [id]}}); }, async search (text, _limit) { console.log(text); return await strapi.query('article').model .find({$or: [ {title: { $regex: text, $options: "i" }}, {content: { $regex: text, $options: "i" }}, {author: { $regex: text, $options: "i" }} ]}) .limit(parseInt(_limit)) }, /** * * @param {mdata.menu_item} get the categories * @param {mdata.pagination_item} get the titles * @param {mdata.pagination_next} get the next link */ async catSpider(nsite) { const site = await strapi.query('site').findOne({url: {$regex : `.*${nsite}.*`}}); const mdata = site.metadatum; const catOptions = {uri: site.url, transform: (body) => cheerio.load(body)}; await request(catOptions).then(async ($) => { $(mdata.menu_item).each(async function( index ) { if (index != 0) { const name = $(this).text(); let link = $(this).attr('href'); if (nsite == 'le360') { link = site.url+link; } // console.log('categories', {name, link}); await strapi.query('category') .create({name, link, site: site.id, pagination: link}) .then(cat => console.log(cat.name+' created !')) .catch(err => console.log('title duplicated !')); } }); }) }, async pgSpider (nsite) { if(nsite) { const site = await strapi.query('site').findOne({url: {$regex : `.*${nsite}.*`}}); if (site) { const mdata = site.metadatum; const categories = site.categories; for (let [i, cat]of categories.entries()) { if (cat && cat.pagination) { const pagOptions = {uri: cat.pagination, transform: (body) => cheerio.load(body)}; await request(pagOptions).then(async ($) => { $(mdata.pagination_item).each(async function (index){ let link = $(this).attr('href'); const title = $(this).text().trim(); if (nsite == 'le360') { link = site.url+link; } // console.log({title, link, status: 'start', category: cat.id}); await strapi.query('article') .create({title, link, status: 'start', category: cat.id}) .then(art => console.log('title created !')) .catch(err => console.log('title duplicated !')); }); const pagination = $(mdata.pagination_next).attr('href'); // console.log('pagination', pagination); await strapi.query('category').update({ id: cat.id },{pagination}); }) } } } } }, async artSpider (nsite, limit) { const site = await strapi.query('site').findOne({url: {$regex : `.*${nsite}.*`}}); const mdata = site.metadatum; const artsToUpdate = await strapi.query('article').find({ _limit: limit, status: 'start', link: {$regex : `.*${nsite}.*`} }); for await (let art of artsToUpdate) { const artOptions = {uri: art.link, transform: (body) => cheerio.load(body)}; await request(artOptions).then(async ($) => { let images = []; let videos = []; let text = []; let artinfo = []; $(mdata.page_images).map(function (elm) { images.push($(this).attr('src'))}); $(mdata.page_videos).map(function (elm) { videos.push($(this).attr('src'))}); $(mdata.page_text).map(function (elm) { text.push($(this).text())}); let featured = (nsite == 'le360' || nsite == 'eljadida24') ? $(mdata.page_featured).attr('src') : $(mdata.page_featured).attr('href'); if (nsite == 'le360' || nsite == 'eljadida24') { $(mdata.page_author).map(function (elm) { artinfo.push($(this).text())}); } let author = (nsite != 'le360') ? (nsite == 'eljadida24') ? artinfo[1] : $(mdata.page_author).text() : $(mdata.page_author).text(); let date = (nsite != 'le360') ? (nsite == 'eljadida24') ? artinfo[2] : $(mdata.page_date).text() : $(mdata.page_date).text().replace(author,'').replace('Par','').trim(); const content = text.join("\n"); // console.log('inforametion ==>', {content , date, videos, author, images, featured, status: 'finish'}) await strapi.query('article').update ( { id: art.id }, {content , date, videos, author, images, featured, status: 'finish'}) .then(r => console.log(r.id+' updated !')) .catch(err => console.log(err)); }) } } };
20842c90950832fac2bf3d58bc7f5ac43a992068
[ "JavaScript", "Markdown" ]
3
JavaScript
hharzer/webscraping
86d2233f32239ed92e2796ea5848eb6bda482b00
57f24b9a10a79beb7c6a3ccfad7c4591920fab2d
refs/heads/master
<file_sep>//Challenge 16:A program to find duplicate characters in a string. package com.tgt.igniteplus; import java.util.Scanner; public class Challenge16 { public static void main(String[] args){ Scanner in=new Scanner(System.in); System.out.println("enter the string"); String s=in.nextLine(); char[] a=s.toCharArray(); int c,j=0; for(int i=0;i<a.length;i++) { c=0; for(j=i+1;j<a.length;j++) { if(a[i]==a[j]&&a[j]!=' ') c++; } if(c>0) System.out.println("Duplicate Character "+a[i]); } in.close(); } } <file_sep>//Challenge 20:A program to replace all 'a' with '$' in the sentence. package com.tgt.igniteplus; import java.util.Scanner; public class Challenge20 { public static void main(String[] args){ Scanner in=new Scanner(System.in); System.out.println("enter the sentence"); String str=in.nextLine(); String result=str.replace('a','$'); System.out.println("String after replacing 'a' with '$' is: "+result); in.close(); } } <file_sep>//Challenge 9:A program to write into a file package com.tgt.igniteplus; import java.io.FileOutputStream; public class Challenge9 { public static void main(String args[]){ try{ FileOutputStream fout=new FileOutputStream("namaste.txt"); String s="Welcome to Java World."; byte b[]=s.getBytes(); fout.write(b); fout.close(); System.out.println("success..."); } catch(Exception e){ System.out.println("error writing to file"); } } } <file_sep>//Challenge 4:A program to print ascii value of a character. package com.tgt.igniteplus; import java.util.Scanner; public class Challenge4 { public static void main(String[] args){ Scanner in=new Scanner(System.in); System.out.println("Enter a character"); String str=in.next(); byte[] ascii=str.getBytes(); System.out.println(ascii[0]); in.close(); } } <file_sep># Challenges-arpitha Java codes for Challenge questions Good job in completing the challenges!!! Hopefully, it helped you to learn and enhance your skills. Please find below my review comments. 1. Please append class names with what the function is actually doing. 2. Good Job on formatting date time before printing. 3. Challenge10 - when exception is thrown, it would be useful to at least print out ex.Message along with the custom error message. This could help debugging the problem without actually running the program 4. Please ensure pascal case for all methods Eg - StringPermutation. Also, any method should be a verb, method name can be either permuteString or performPermutation, etc 5. DuplicateCharacter program - avoid using too many c, I, j as variable names. Every time I need to figure out what each of it stands for. Ex c is counter we can call it so. 6. Challenge3 - Please do not hardcode inputs 7. No acronyms/abbreviations in variable, method or class names. Ex FileOutputStream fout, makes the code unreadable. <file_sep>//Challenge 18:A program to find largest of 3 numbers using terinary operators package com.tgt.igniteplus; import java.util.Scanner; public class Challenge18 { public static void main(String[] args) { Scanner in = new Scanner(System.in); System.out.println("enter 3 numbers"); int a = in.nextInt(); int b = in.nextInt(); int c = in.nextInt(); int largest = a > b ? (a > c ? a : c) : (b > c ? b : c); System.out.println("Largest of three numbers is: " + largest); in.close(); } }
90ca5cae16527dd0a3f9a7b2627037ddc3244521
[ "Markdown", "Java" ]
6
Java
IgnitePlus2020/Challenges-arpitha
4a14666881e5baa5bb6b1187d041c18fae7a1e90
ee35750c97e775663611056ec80310e3a3d58f03
refs/heads/master
<repo_name>hugolprez/platzi-javascript<file_sep>/README.md # platzi-javascript Curso de javascript <file_sep>/Fundamentals/22. Callback/index.js const API_URL = 'https://swapi.co/api/' const PEOPLE_URL = 'people/:id' const lukeUrl = `${API_URL}${PEOPLE_URL.replace(':id', 1)}` const opts = {crossDomain: true} //se le indica que el request es hacia otra página const onLukeResponse = function(luke) { console.log(`HOla yo soy, ${luke.name}`) } $.get(lukeUrl, opts, onLukeResponse) // ESTA ES UNA FROMA DE HACER UN GET, LA OTRA ES A TRAVES DE UNA FUN COMO PARAMETRO /*$.get(lukeUrl, opts, function() { console.log(arguments) })*/<file_sep>/Fundamentals/20. POO/index.js class Person { constructor(name, last_name) { this.name = name this.last_name = last_name } saludar() { console.log(`Hola mi nombre es ${this.name} ${this.last_name}`) } } class Desarrollador extends Person { constructor(name, last_name, language) { super(name, last_name) this.language = language } saludar() { console.log(`Soy ${this.name} ${this.last_name} y programo en ${this.language}`) } } <file_sep>/Fundamentals/21. Parameter Function/index.js class Person { constructor(name, last_name) { this.name = name this.last_name = last_name } saludar(fn) { var {name, last_name} = this console.log(`Hola mi nombre es ${name} ${last_name}`) if(fn) { fn(name, last_name) } } } class Desarrollador extends Person { constructor(name, last_name, language) { super(name, last_name) this.language = language } saludar(fn) { var {name, last_name, language} = this console.log(`Soy ${name} ${last_name} y programo en ${language}`) if (fn) { fn(name, last_name, true) } } } function responderSaludo(name, last_name, is_dev) { console.log(`Hola ${name} ${last_name}`) if (is_dev) { console.log(`ohhh.. santo cielos, eres un desarrollador.`) } } var hugo = new Desarrollador('Hugo', 'Pérez', 'JavaScript') hugo.saludar(responderSaludo) var leo = new Person('Leonel', 'González') leo.saludar(responderSaludo)<file_sep>/Fundamentals/22. Multiple Requests/index.js const API_URL = 'https://swapi.co/api/' const PEOPLE_URL = 'people/:id' const opts = {crossDomain: true} //se le indica que el request es hacia otra página const onLukeResponse = function(luke) { console.log(`HOla, yo soy ${luke.name}`) } function obtenerPersonaje(id) { var lukeUrl = `${API_URL}${PEOPLE_URL.replace(':id', id)}` $.get(lukeUrl, opts, onLukeResponse) } obtenerPersonaje(1) obtenerPersonaje(2) obtenerPersonaje(3)<file_sep>/Fundamentals/15. Array filter/index.js var maria = { name: 'Maria', hight: 1.70 } var carla = { name: 'Carla', hight: 1.72 } var ana_maria = { name: '<NAME>', hight: 1.55 } var fernanda = { name: 'Fernanda', hight: 1.78 } var personas = [maria, carla, ana_maria, fernanda] var personasAltas = [] const ALTURA_MINIMA = 1.7 const esAlta = ({ hight }) => hight > ALTURA_MINIMA const esBaja = persona => !esAlta(persona) personasAltas = personas.filter(esAlta) personasBajas = personas.filter(esBaja) console.log('---- PERSONAS ALTAS') console.log(personasAltas) console.log('---- PERSONAS BAJAS') console.log(personasBajas) //TAMBIEN ES FUNCIONAL DE LA SIGUIENTE MANERA /*var personasAltas = personas.filter(function (persona) { return persona.hight > ALTURA_MINIMA })*/<file_sep>/Fundamentals/16. Array transform (MAP)/index.js var maria = { name: 'Maria', hight: 1.70 } var carla = { name: 'Carla', hight: 1.72 } var ana_maria = { name: '<NAME>', hight: 1.55 } var fernanda = { name: 'Fernanda', hight: 1.78 } var personas = [maria, carla, ana_maria, fernanda] // pasar de metros a centimetros /* al utilizar parentecis en las llaves {} se le indica un return implicito. por lo tanto no es necesario agregar la palabra RETURN. Es neceario copiar el objeto con los tres punto(...), sino se hace, entonces modificariamos los objetos del array PERONAS.*/ var pasarAlturaACentimetros = (persona) => ({ ...persona, hight: persona.hight * 100 }) var personasCms = personas.map(pasarAlturaACentimetros) console.log(personasCms)<file_sep>/Fundamentals/28. Promise Async-await/index.js const API_URL = 'https://swapi.co/api/' const PEOPLE_URL = 'people/:id' const opts = {crossDomain: true} //se le indica que el request es hacia otra página function obtenerPersonaje(id) { return new Promise((resolve, reject) => { var url = `${API_URL}${PEOPLE_URL.replace(':id', id)}` $ .get(url, opts, function(data) { resolve(data) }) .fail(() => reject(id)) }) } function onError(id) { console.log(`Sucedio un error al obtener el personaje ${id}`) } async function obtenerPromesas() { var id = [1, 2, 3, 4, 5, 6, 7, 8, 9] var promesas = id.map(id => obtenerPersonaje(id)) try { var personajes = await Promise.all(promesas) console.log(personajes) } catch (id) { onError(id) } } obtenerPromesas()<file_sep>/Fundamentals/10. Condiciones/index.js var hugo = { nombre: 'Hugo', edad: 21 } const MAYORIA_DE_EDAD = 18 function esMayorDeEdad({edad}) { return edad >= MAYORIA_DE_EDAD } function imprimirSiEsMayorDeedad(persona) { if(esMayorDeEdad(persona)) console.log(`${persona.nombre} es mayor de edad`) else console.log(`${persona.nombre} no es mayor de edad`) } imprimirSiEsMayorDeedad(hugo)<file_sep>/Fundamentals/23. Order and Asynchronism/index.js const API_URL = 'https://swapi.co/api/' const PEOPLE_URL = 'people/:id' const opts = {crossDomain: true} //se le indica que el request es hacia otra página function obtenerPersonaje(id, callback) { var lukeUrl = `${API_URL}${PEOPLE_URL.replace(':id', id)}` $.get(lukeUrl, opts, function(luke) { console.log(`HOla, yo soy ${luke.name}`) if (callback) { callback() } }) } //No funciona el Sincronismo debido a que se está ejecutando obtenerPersonaje(2) primero, //para elloes necesario colocar la función en modo delcaración. //obtenerPersonaje(1, obtenerPersonaje(2)) /*A lo siguiente se le conoce como CallbackHell. Sin embargo es un desorden.*/ obtenerPersonaje(1, function() { obtenerPersonaje(2, function() { obtenerPersonaje(3, function() { obtenerPersonaje(4) }) }) })
24bd3fdaf04c69e93915d6332ab32e7cf97894c6
[ "Markdown", "JavaScript" ]
10
Markdown
hugolprez/platzi-javascript
ede04a529b1fb20821a42cd377405f88263d008d
80c0b34f6c85f7785ff13b82561c868c236a0b80
refs/heads/master
<file_sep>#include <stdlib.h> #include <unistd.h> #include <stdio.h> #include <signal.h> #include <time.h> #define CLOCKID CLOCK_MONOTONIC #define SIG SIGRTMIN #define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \ } while (0) struct os_timer_cb { void (* cb_func)(void *); void * cb_arg; }; static void cb1(int arg) { printf("CALLBACK 1 %d\n", arg); } static void cb2(int arg) { printf("CALLBACK 2 %d\n", arg); } static void print_siginfo(siginfo_t *si) { // SIGNAL Calls siginfo struct os_timer_cb *otcb; otcb = (struct os_timer_cb*) si->si_value.sival_ptr; otcb->cb_func(otcb->cb_arg); } static void handler(int sig, siginfo_t *si, void *uc) { // SIGNAL information contains cb struct we had earlier. struct os_timer_cb *otcb; // Pull the struct back from pointer otcb = (struct os_timer_cb*) si->si_value.sival_ptr; // Call the callback with callback arg otcb->cb_func(otcb->cb_arg); // Cancel/Ignore further signals //signal(sig, SIG_IGN); } int main(int argc, char *argv[]) { timer_t timerid; timer_t timerid2; struct sigevent sev; struct itimerspec its; long long secs; sigset_t mask; struct sigaction sa; struct os_timer_cb ot_cb; struct os_timer_cb ot_cb2; if (argc != 3) { fprintf(stderr, "Usage: %s <sleep-secs> <freq-tenthsecs>\n", argv[0]); exit(EXIT_FAILURE); } /* Establish handler for timer signal */ printf("Establishing handler for signal %d\n", SIG); sa.sa_flags = SA_SIGINFO; sa.sa_sigaction = handler; sigemptyset(&sa.sa_mask); if (sigaction(SIG, &sa, NULL) == -1) errExit("sigaction"); /* Create the timer */ // Use the first callback function with a value ot_cb.cb_func = cb1; ot_cb.cb_arg = 9; sev.sigev_notify = SIGEV_SIGNAL; sev.sigev_signo = SIG; sev.sigev_value.sival_ptr = &ot_cb; if (timer_create(CLOCKID, &sev, &timerid) == -1) errExit("timer_create"); printf("timer ID 1 is 0x%lx\n", (long) timerid); /* Start the timer */ secs = atoll(argv[2]); its.it_value.tv_sec = secs / 10; its.it_value.tv_nsec = 100 % 1000000000; its.it_interval.tv_sec = its.it_value.tv_sec; its.it_interval.tv_nsec = its.it_value.tv_nsec; if (timer_settime(timerid, 0, &its, NULL) == -1) errExit("timer_settime"); // Use the second callback function for the second timer and a different value ot_cb2.cb_func = cb2; ot_cb2.cb_arg = 33; sev.sigev_value.sival_ptr = &ot_cb2; if (timer_create(CLOCKID, &sev, &timerid2) == -1) errExit("timer_create"); printf("timer ID 2 is 0x%lx\n", (long) timerid2); /* Start the timer */ secs = atoll(argv[2]); its.it_value.tv_sec = (secs * 2) / 10; its.it_value.tv_nsec = 100 % 1000000000; its.it_interval.tv_sec = its.it_value.tv_sec; its.it_interval.tv_nsec = its.it_value.tv_nsec; if (timer_settime(timerid2, 0, &its, NULL) == -1) errExit("timer_settime"); /* Sleep for a while; meanwhile, the timer may expire multiple times */ struct itimerspec gits; struct itimerspec gits2; while(1) { printf("Sleeping for %d seconds\n", atoi(argv[1])); timer_gettime(timerid, &gits); timer_gettime(timerid2, &gits2); printf(" T1 Remaining Cur %d -- T2 Remaining %d \n", gits.it_value.tv_sec, gits2.it_value.tv_sec); sleep(atoi(argv[1])); } exit(EXIT_SUCCESS); }<file_sep># callback-via-signal A demo c program to show using callbacks with signals and timers under linux. <file_sep>timertest: timertest.c gcc -o timertest timertest.c -lrt clean: rm timertest
13b998154bbff957d6a476fae9f83d8e54de0ee8
[ "Markdown", "C", "Makefile" ]
3
C
frebbles/callback-via-signal
23813c9beb3786865723304196a318774cd00fae
ab4d596164906cca6f944825f926b89d72c3f10f
refs/heads/master
<file_sep>const synchroReducer = (state = {}, action) => { if (action.type === 'driversBids') { return { id: action.id } } if (action.type === 'delOrder') { return {} } return state } const addDriverOrder = (id) => { const actionAdd = () => ({type: 'driversBids', id}) return (dispatch) => dispatch(actionAdd()) } const delOrder = () => { const del = () => ({type: 'delOrder'}) return (dispatch) => dispatch(del()) } export { synchroReducer, addDriverOrder, delOrder }<file_sep>import { createStore, combineReducers, compose, applyMiddleware } from 'redux'; import thunk from 'redux-thunk' import { promiseReducer } from './reducers/promiseReducer' import { loginReducer} from './reducers/loginReducer' import { actionLogin } from './actions' import { synchroReducer } from './reducers/synchro' import { composeWithDevTools } from 'redux-devtools-extension' const composeEnhancers = composeWithDevTools({trace: true}) const reducers = combineReducers({ token: loginReducer, promise: promiseReducer, synchro: synchroReducer }) const store = createStore( reducers, composeEnhancers( applyMiddleware(thunk) ) ) if (localStorage.authToken) { store.dispatch(actionLogin(localStorage.authToken)) } store.subscribe(() => console.log(store.getState())) export default store <file_sep>import React, { useEffect } from 'react' import { connect } from 'react-redux' import history from '../../routing' import { dive } from '../../functions' import { actionGetProfile, actionLogout } from '../../redux/actions' const Header = (props) => { useEffect(() => { if (props.token) { props.getProfile(props.token) } }, [props.token]) return ( <div className='header'> <div> <span>LOGISTICBROCKER</span> <button onClick={() => history.push('/')}> <i className='fas fa-envelope' /> DISPATCH </button> <button onClick={() => history.push('/bids')}><i className="fas fa-dollar-sign"></i> BIDS </button> <button onClick={() => history.push('/vehicles')}><i className="fas fa-truck" ></i> VEHICLES </button> <button onClick={() => history.push('/settings')}><i className="fas fa-cog"></i> SETTINGS </button> </div> <div> <div> <span>{props.data && props.data.name}</span> <span>{props.data && props.data.user && props.data.user.role}</span> </div> <img alt='avatar' src='../../../../../logo192.png' /> {!props.token ? <button className='login-button'><i className="fas fa-sign-in-alt" /></button> : <button onClick={() => props.logout()} className='login-button'><i className="fas fa-sign-out-alt" /></button>} </div> </div> ) } export default connect(state => ({data: dive`${state}promise.profile.payload.data`, token: dive`${state}token.data.sub.id_user`}), {getProfile: actionGetProfile, logout: actionLogout})(Header)<file_sep>import React from 'react' import Modal from '../modal' import history from '../../routing' const NotFound = (props) => ( <Modal clickOpacity={() => history.push('/')} width='20%' height='10%' show={true} > <div className='access-denied'> Page not found! </div> </Modal> ) export default NotFound <file_sep>import React, { useState, useEffect } from 'react' import { connect } from 'react-redux' import Preloader from '../../../components/preloader' import { dive } from '../../../functions' import { actionGetDrivers, actionGetOneDriver } from '../../../redux/actions' import ConfigOrder from './bidConfig' import Call from './driverCall' import Modal from '../../../components/modal' import getDistance from 'geolib/es/getDistance' const OrderDrivers = (props) => { let [driverCheck, setDriverChecked] = useState({}) let [showCall, setCall] = useState(false) let [driver, setDriver] = useState('') let [checkboxStatus, setCheckboxStatus] = useState(false) const changeDriverCheck = (e) => { const item = e.target.name const isChecked = e.target.checked setCheckboxStatus(isChecked) setDriverChecked(() => { if (isChecked === true) { return {[item]: isChecked} } else { return {...driverCheck, [item]: isChecked} } }) if (isChecked === true) { setDriver(props.data.filter((drive) => drive.id == item)) } } const handleCall = (id) => { setCall(true) props.getOneDriver(id) } useEffect(() => { props.getDrivers() }, []) return ( <div> <h3>Units found: {props.data && props.data.length}</h3> <div className='drivers-list-modal-wrapper'> <Modal clickOpacity={() => setCall(false)} width={'40%'} height={'60%'} show={showCall}> <Call data={props.driver}/> </Modal> <div className='drivers-list'> <div> <span></span> <span>Unit<i className="fas fa-arrow-up"></i></span> <span>Driver</span> <span>Vehicle</span> <span>Available</span> <span>Dimenssions</span> <span>Bid</span> <span>Call</span> </div> {props.data && props.order ? props.data.sort((a, b) => getDistance({latitude: +a.latitude, longitude: +a.longitude}, {latitude: +props.order.deliver_latitude, longitude: +props.order.deliver_longitude}) - getDistance({latitude: +b.latitude, longitude: +b.longitude}, {latitude: +props.order.deliver_latitude, longitude: +props.order.deliver_longitude})).map((item) => ( <div key={item.id} > <span> <input name={item.id} type='checkbox' checked={driverCheck[item.id] || false} onChange={changeDriverCheck} /> </span> <span>{Math.floor(getDistance({latitude: +item.longitude, longitude: +item.latitude}, {latitude: +props.order.deliver_latitude, longitude: +props.order.deliver_longitude})/1600)}</span> <span>{item.name}</span> <span>Van</span> <span>Poltava 10:00AM</span> <span>145x71x76in.</span> <span></span> <span> <button onClick={() => handleCall(item.user_id)}>DRIVER</button> <button onClick={() => handleCall(item.user_id)}>OWNER</button> </span> </div> )) : <Preloader />} </div> </div> <ConfigOrder stake={props.orderStatus} status={checkboxStatus} driver={driver} /> </div> ) } export default connect((state) => ({data: dive`${state}promise.drivers.payload.data`, driver: dive`${state}promise.oneDriver.payload.data`}), {getDrivers: actionGetDrivers, getOneDriver: actionGetOneDriver})(OrderDrivers)<file_sep>const promiseReducer = (state = {}, action) => { const actions = { PROMISE() { const {status, name, payload, error} = action return { ...state, [name]: {status, payload, error} } } } if (action.type in actions) { return actions[action.type]() } return state } function actionPromise(name, promise) { const actionPending = () => ({type: 'PROMISE', status: 'PENDING', name, payload: null, error: null}) const actionResolved = (payload) => ({type: 'PROMISE', status: 'RESOLVED', name, payload, error: null}) const actionError = (error) => ({type: 'PROMISE', status: 'ERROR', name, payload: null, error}) return async (dispatch) => { dispatch(actionPending()) try { let payload = await promise () dispatch(actionResolved(payload)) } catch (error) { dispatch(actionError(error)) } } } function actionDeletePromise (name) { const actionDelete = () => ({type: 'PROMISE', name}) return (dispatch) => dispatch(actionDelete()) } export { promiseReducer, actionPromise, actionDeletePromise }<file_sep>import { actionPromise, actionDeletePromise } from '../reducers/promiseReducer' import { actionPromiseLogin } from '../reducers/loginReducer' import { myAxios, myFetch, allOrders, orderOne, getDrivers, placeBid, sendMail, changeStackStatus, stackStatus, driverOne, profile, getStakes, addUser } from './constants' const actionLogin = (token) => ({type: 'LOGIN', token}) const actionLogout = () =>({type: 'LOGOUT'}) const actionOnLogin = (log, password) => actionPromiseLogin(log, password) const actionGetAllExternal = (data) => actionPromise('externalAll', myAxios(allOrders, data)) const actionGetOneExternal = (data) => actionPromise('externalOne', myAxios(orderOne, {order: data})) const actionGetDrivers = () => actionPromise('drivers', myAxios(getDrivers)) const actionGetProfile = (data) => actionPromise('profile', myAxios(profile, {id: data})) const actionSendMail = (data) => actionPromise('sendMail', myAxios(sendMail, data)) const actionGetOneDriver = (data) => actionPromise('oneDriver', myAxios(driverOne, {id: data})) const actionPlaceBid = (data) => actionPromise('placeBid', myAxios(placeBid, data)) const actionGetStakes = (data) => actionPromise('bids', myAxios(getStakes, data)) const actionChangeStake = (data) => actionPromise('changeStake', myAxios(stackStatus, data)) const actionAddUser = (data) => actionPromise('addUser', myAxios(addUser, data)) export { actionLogin, actionLogout, actionOnLogin, actionGetAllExternal, actionGetOneExternal, actionGetProfile, actionGetDrivers, actionSendMail, actionGetOneDriver, actionPlaceBid, actionGetStakes, actionChangeStake, actionAddUser }<file_sep>import React from 'react' import Modal from '../modal' import history from '../../routing' import { dive } from '../../functions' const Message = (props) => ( <Modal clickOpacity={() => history.push('/')} width='20%' height='10%' show={true} > <div className='access-denied'> {dive`${history}location.state.message`} </div> </Modal> ) export default Message <file_sep>import React,{useState} from 'react' import history from '../../routing' const Modal = (props) => { return ( <div className='modal-window' style={props.show === true ? {display: 'block'} : {display: 'none'}}> <div onClick={props.clickOpacity} className='modal-opacity'> </div> <div className='modal-child' style={{width: props.width, height: props.height}} > {props.children} </div> </div> ) } export default Modal<file_sep>import axios from 'axios' const myAxios = (url, data) => () => axios({ method: url.method, url: '//test.popovmaksim7415.node.a-level.com.ua/'+ url.url, headers: localStorage.authToken ? { 'Content-Type': `application/json`, Authorization: `Bearer ${localStorage.authToken}`, } : {'Content-Type': `application/json`}, data: JSON.stringify(data) }) const allOrders = { url: 'api/manager/getOrders', method: 'post' } const orderOne = { url: 'api/manager/getOrderInfo', method: 'post' } const getDrivers = { url: 'api/manager/getDrivers', method: 'get' } const sendMail = { url: 'api/manager/sendMail', method: 'post' } const changeStackStatus = { url: 'api/manager/changeStakeStatus', method: 'put' } const stackStatus = { url: 'api/manager/changeStakeStatus', method: 'put' } const driverOne = { url: 'api/manager/getDriver', method: 'post' } const profile = { url: 'api/manager/getProfile', method: 'post' } const placeBid = { url: 'api/manager/placeBid', method: 'post' } const getStakes = { url: 'api/manager/getStakes', method: 'post' } const addUser = { url: 'api/admin/register', method: 'post' } export { myAxios, allOrders, orderOne, getDrivers, sendMail, changeStackStatus, stackStatus, driverOne, profile, placeBid, getStakes, addUser }<file_sep>import React, {useState, useEffect } from 'react' import { connect } from 'react-redux' import Modal from '../../components/modal' import history from '../../routing' import { actionGetDrivers } from '../../redux/actions' import { dive } from '../../functions' import Preloader from '../../components/preloader' import { addDriverOrder, delOrder } from '../../redux/reducers/synchro' const Vehicles = (props) => { let [drivers, setDrivers] = useState([]) let [status, setStatus] = useState('') let [flag, setFlag] = useState(false) const handleStatus = (e) => { if (e.target.value === 'All') { setDrivers(props.drivers) setStatus(e.target.value) } if (e.target.value === 'NOT AVAILABLE') { setDrivers(() => props.drivers.filter((item) => item.status === 'Not Available')) setStatus(e.target.value) } if (e.target.value === 'AVAILABLE') { setDrivers(() => props.drivers.filter((item) => item.status === 'Available')) setStatus(e.target.value) } if (e.target.value === 'IN SERVICE') { setDrivers(() => props.drivers.filter((item) => item.status === 'In service')) setStatus(e.target.value) } } const handleRefresh = () => props.getDrivers() const handleClose = () => history.push('/') const handleAddVehicle = () => history.push('/settings') const handleDriverFlag = (id) => { if(flag === false) { props.addDriverOrder(id) setFlag(true) } else { props.delOrder() setFlag(false) } } useEffect(() => { props.getDrivers() }, []) useEffect(() => { if (props.drivers) { setDrivers(props.drivers) } }, [props.drivers]) return ( <Modal clickOpacity={() => history.push('/')} width='90%' height='90%' show={true} > <div className='vehicles-container'> <div className='vehicles-header-links'> <button onClick={() => history.push('/vehicles')} className={props.match.url === '/vehicles' ? 'border' : 'border-none'}>VEHICLES</button> <button onClick={() => history.push('/vehicles/drivers')} className={props.match.url === '/vehicles/drivers' ? 'border' : 'border-none'}>DRIVERS</button> <button onClick={() => history.push('/vehicles/owners')} className={props.match.url === '/vehicles/owners' ? 'border' : 'border-none'} > OWNERS </button> </div> <div> <i onClick={handleClose} className='fas fa-times' /> <i onClick={handleAddVehicle} className='fas fa-plus' /> <i onClick={handleRefresh} className='fas fa-redo' /> </div> <div className='vehicles-grid-container'> <div> <span> ID <i className='fas fa-arrow-up' /> </span> <span>Sylectus ID</span> <span>Drivers</span> <span>Type</span> <span>Size</span> <span>Status</span> <span>Available City</span> <span>Available Date</span> <span>Actions</span> </div> <div> <input placeholder='Filter...' /> <input placeholder='Filter...' /> <input placeholder='Filter...' /> <input placeholder='Filter...' /> <input placeholder='Filter...' /> <select value={status} onChange={handleStatus}> <option>All</option> <option>NOT AVAILABLE</option> <option>AVAILABLE</option> <option>IN SERVICE</option> </select> <input placeholder='Filter...' /> <span></span> <select> <option>All</option> </select> </div> {drivers.length !== 0 ? drivers.map((item) => {return ( <div className='drivers-item' key={item.id}> <span>{item.id}</span> <span></span> <span>{item.name}</span> <span>{item.vehicle.model}</span> <span>{`${item.vehicle.length}x${item.vehicle.width}x${item.vehicle.height}`}</span> <span className={item.status === 'Not Available' ? 'red' : 'green'}>{item.status}</span> <span></span> <span></span> <span> <i onClick={() => handleDriverFlag(item.id)} className='far fa-flag' /> <i className='far fa-star' /> <i className='fas fa-pen' /> </span> </div> )}) : <Preloader />} </div> </div> </Modal> ) } export default connect((state) => ({drivers: dive`${state}promise.drivers.payload.data`, flag: dive`${state}synchro`}), {getDrivers: actionGetDrivers, addDriverOrder, delOrder})(Vehicles)<file_sep>import React, { useState } from 'react' import InfiniteScroll from 'react-infinite-scroll-component' const array = [ 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26, 27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50] const Pagination = () => { let [offset, setOffset] = useState(0) const [items, setItems] = useState(array.slice(offset, 10)) let [hasMore] = useState(true) const fetchMoreData = () => { setTimeout(() => { setOffset(offset += 10) console.log(offset) setItems((prevState) => [...prevState, ...array.slice(offset, offset + 10)]) }, 500) } return ( <div className='main'> {console.log(items)} <div id="scrollableDiv" > <InfiniteScroll dataLength={items.length} next={fetchMoreData} hasMore={hasMore} loader={<h4>Loading...</h4>} initialScrollY={items.length} scrollableTarget="scrollableDiv" > {items.map((i, index) => ( <div className='map' key={index}> {i} </div> ))} </InfiniteScroll> </div> </div> ) } export default Pagination<file_sep>import React from 'react' import { Route, Redirect} from 'react-router-dom' import { connect } from 'react-redux' import { dive } from '../functions' const AdminRoute = (props) => ( <Route {...props} component={(pageComponentProps) => { const PageComponent = props.component if (props.data === 'admin') { //I'm making here double check with 'or' because when I'm subscribed only on redux on re-login localStorage resave ddata with empty fields, but when I'm subscribed only on localStorage - on logout from privatRoute component I'm not redirecting to 'fallback' return ( <PageComponent {...pageComponentProps}/> ) } return ( <Redirect to={props.fallback} /> ) } } /> ) export default connect((state) => ({data: dive`${state}token.data.sub.role`}))(AdminRoute) <file_sep>import React, { useState, useEffect } from 'react' import { actionOnLogin } from '../../redux/actions' import { connect } from 'react-redux' import { Redirect } from 'react-router-dom' import { dive } from '../../functions' import Modal from '../../components/modal' const Authorization = (props) => { let [login, setLogin] = useState('') let [password, setPassword] = useState('') let [loginFalse, setLoginFalse] = useState(true) let [passwordFalse, setPasswordFalse] = useState(true) let loginCheck = new RegExp(/(?=.*[a-z])(?=.*[0-9])(?=.*[A-Z])[a-z0-9A-Z]{6,}/g) let passwordCheck = new RegExp(/^(?=.*[a-z])(?=.*[0-9])(?=.*[A-Z])[a-z0-9A-Z]{6,8}$/g) const handleLogin = (e) => { if (loginFalse) { setLogin(e.target.value) setLoginFalse(true) } else { setLogin(e.target.value) login.match(loginCheck) === null ? setLoginFalse(false) : setLoginFalse(true) } } const handlePassword = (e) => { if (passwordFalse) { setPassword(e.target.value) } else { setPassword(e.target.value) password.match(passwordCheck) !== null ? setPasswordFalse(true) : setPasswordFalse(false) } } const handleClick = () => { if (login.match(loginCheck) !== null && password.match(passwordCheck) !== null) { props.login(login, password) } else { if (login.match(loginCheck) === null) { setLoginFalse(false) } if (password.match(passwordCheck) === null) { setPasswordFalse(false) } } } // const handleClick = () => props.login(login, password) return !props.token ? ( <Modal width='30%' height='30%' show={true}> <div className='login-form'> <input className={loginFalse ? 'black-login' : 'red-login'} placeholder='enter login' value={login} onChange={handleLogin} /> <p style={loginFalse === true ? {display: 'none'} : {display: 'block'}} className={loginFalse ? 'black-login' : 'red-login'}>Inavalid login (A-Z, 0-9, a-z, 6 symbols)</p> <input className={passwordFalse ? 'black-login' : 'red-login'} placeholder='enter password' value={password} onChange={handlePassword} /> <p style={passwordFalse ? {display: 'none'} : {display: 'block'}} className={passwordFalse ? 'black-login' : 'red-login'}>Wrong password (a-z, 0-9, A-Z, from 6 to 8symbols) symbols (A-Z, 0-9, a-z)</p> <p className='invalid-login' style={props.data === 'REJECTED' ? {display: 'block'} : {display: 'none'}}>Invalid login or password</p> <button onClick={handleClick}>Login</button> </div> </Modal> ) : <Redirect to='/' /> } export default connect((state) => ({token: dive`${state}token.token`, data: dive`${state}promise.LOGIN.status`}), {login: actionOnLogin})(Authorization) <file_sep>import React from 'react' const Preloader = () => { return ( <div className= 'preloader'> <img src= {require('./preloader.gif')} alt= {'loading '}/> </div> ) } export default Preloader<file_sep>module.exports = { "env": { "browser": true, "es6": true, "node": true }, "extends": [ "react-app", "airbnb", ], "globals": { "Atomics": "readonly", "SharedArrayBuffer": "readonly", }, "parserOptions": { "ecmaFeatures": { "jsx": true }, "ecmaVersion": 6, "sourceType": "module" }, "plugins": [ "react", "react-hooks", ], "rules": { "linebreak-style": [ "error", "windows" ], "semi": [ "error", "never" ], "no-console": 0, "no-alert": "warn", "comma-dangle": [ "error", "never" ], "arrow-spacing": "error", "react/prop-types": 0, "react-hooks/exhaustive-deps": "off", "react-hooks/rules-of-hooks": "error", "react/jsx-filename-extension": [ 1, { "extensions": [ ".js", ".jsx" ] } ], "no-confusing-arrow": 0, "react/destructuring-assignment": [ "error", "never" ], "jsx-quotes": [ "error", "prefer-single" ], "object-curly-spacing": 0, "sort-imports": "off", "no-return-assign": 0, "prefer-const": 0, "jsx-a11y/label-has-for": 0, "jsx-a11y/label-has-associated-control": 0, "react/button-has-type": 0, "no-tabs": [ "error", { allowIndentationTabs: true } ], "indent": [ "error", "tab" ], "react/jsx-indent": [2, "tab"], "react/jsx-indent-props": [2, "tab"], } }; <file_sep>import React, { useState, useEffect } from 'react' import { connect } from 'react-redux' import { dive } from '../../../functions' import { actionSendMail, actionChangeStake, actionPlaceBid } from '../../../redux/actions' import history from '../../../routing' import { actionDeletePromise } from '../../../redux/reducers/promiseReducer' const ConfigOrder = (props) => { let [driver, setDriver] = useState() let [order] = useState(props.order) let [bidPrice, setBidPrice] = useState(order.price) let [bidPriceKm, setBidPriceKm] = useState(bidPrice / order.earth_miles) let [driverPrice, setDriverPrice] = useState('') let [mail, setMail] = useState('') let [driverPriceKm, setDriverPriceKm] = useState('') let str = (` ${bidPrice} all in 115 miles out Time to pickup: 2h 1min ${driver && driver.vehicle && driver.vehicle.model} We appreciate your buisness `) const mailParams = { from: '<EMAIL>', to: '<EMAIL>', text: str, author: { name: props.manager && props.manager.name, mail: dive`${props.manager}user.email` } } const priceKmValue = (num) => { if (num !== '') { if (!isNaN(+num)) { num = +num return num.toFixed(2) } return '' } return '' } const changeMail = (e) => setMail(e.target.value) const changeDriverPrice = (e) => { setDriverPrice(e.target.value) setDriverPriceKm(e.target.value / order.earth_miles) } const changeBidPrice = (e) => { setBidPrice(e.target.value) setBidPriceKm(e.target.value / order.earth_miles) } const percentValue = () => { if (isNaN(Math.floor((bidPrice - driverPrice) / driverPrice * 100))) { return '-- ' } if (Math.floor((bidPrice - driverPrice)/driverPrice * 100) === Infinity) { return '-- ' } return Math.floor((bidPrice - driverPrice) / driverPrice * 100) } const handlePlaceBid = () => { if (driver) { props.sendMail(mailParams) } } const handleCloseBid = () => history.push('/') const acceptStake = () => props.changeStatus({status: 'Accepted', id: props.stake && props.stake.id}) const rejectStake = () => props.changeStatus({status: 'Denied', id: props.stake && props.stake.id}) useEffect(() => { if (props.mail === 'RESOLVED') { props.placeBid({ driver_price: driverPrice, broker_price: bidPrice, percent: percentValue(), driver_id: driver.id, order_id: order.id, manager_id: props.manager.id, }) props.deletePromise('sendMail') } }, [props.mail]) useEffect(() => { if (props.driver && props.driver[0] && props.driver[0].price) { setDriverPriceKm(props.driver[0].price) setDriverPrice(props.driver[0].price * order.earth_miles) setDriver(props.driver[0]) } }, [props.driver]) useEffect(() => { if (props.bid === 'OK') { props.deletePromise('placeBid') history.push({ pathname: '/message', state: { message: 'Bid added succesfully' } }) } }, [props.bid]) useEffect(() => { if (props.bidError === 'ERROR') { history.push({ pathname: '/message', state: { message: 'This order already exists' } }) } }, [props.bidError]) useEffect(() => { if (props.stakeStatus) { props.deletePromise('changeStake') history.push({ pathname: '/message', state: { message: props.stakeStatus } }) } }, [props.stakeStatus]) return ( <div style={props.display} className='order-configuration'> <h3> Broker email <i>{order.broker.email}</i> </h3> <div> <div> <p> Bid placement ( {order.earth_miles} mi) </p> <div> <div> <span>Price for Brocker</span> <input value={bidPrice} onChange={changeBidPrice} /> <span>Price per mile</span> <input value={priceKmValue(bidPriceKm)} onChange={() => {}} /> </div> <div> <span>Price for Driver</span> <input value={props.status !== false ? driverPrice : ''} onChange={changeDriverPrice} /> <span>Price per mile</span> <input value={priceKmValue(props.status !== false ? driverPriceKm : '')} onChange={() => {}} /> </div> </div> <p>{props.status !== false ? percentValue() + '%' : '-- %'}</p> </div> <div> <textarea type='textarea' value={props.status === false || props.bid === 'OK' ? '' : str} onChange={changeMail} /> {!props.stake ? ( <div className='place-bid-buttons'> <button onClick={handlePlaceBid}>PLACE BID</button> <button onClick={handleCloseBid}>CLOSE</button> </div> ) : ( <div className='change-bid-buttons'> <button onClick={acceptStake}>ACCEPT</button> <button onClick={rejectStake}>REJECT</button> <button onClick={handleCloseBid}>CLOSE</button> </div> )} </div> </div> </div> ) } export default connect((state) => ({ data: dive`${state}promise.sendMail.payload`, manager: dive`${state}promise.profile.payload.data`, order: dive`${state}promise.externalOne.payload.data`, bid: dive`${state}promise.placeBid.payload.data`, bidError: dive`${state}promise.placeBid.status`, mail: dive`${state}promise.sendMail.status`, stakeStatus: dive`${state}promise.changeStake.payload.data` }), {sendMail: actionSendMail, placeBid: actionPlaceBid, deletePromise: actionDeletePromise, changeStatus: actionChangeStake })(ConfigOrder)
de19e60bfc1b1b83ee0e18798814c93c63afb619
[ "JavaScript" ]
17
JavaScript
Maksym7415/brocker
31f255fd73d6eb84422bf0149e9dc4392faa3933
87b1cb594938cf2254e2f5380d54d126ff5b3c71
refs/heads/master
<file_sep>"""torch parameter groups manager""" import torch from collections import OrderedDict,Iterator __all__ = ['ParamGroupsManager',] class ParamGroupsManager(object): """ `ParamGroupsManager` is a class for managing torch parameter groups. self.defaults = dict(options0=v0,options1=v1,...), self.param_groups = [param_group0,param_group1,...], where param_group = dict( params=OrderedDict([(name0,tensor0),...]), # options key0=..., # with default value self.defaults[key0] key1=..., # ... self.defaults[key1] key2=..., # ... self.defaults[key2] ...) `ParamGroupsManager` provides several interfaces to access parameters: self.params,self.named_params,self.self.params_with_info, Please refer to the docstrings of these properties. .. note:: :class:`ParamGroupsManager` is similar to :class:`Optimizer.param_groups`. The main difference between them is how to store parameters: for param_group in ParamGroupsManager.param_groups: param_group['params'] = an OrderedDict of named_parameters for param_group in :class:`torch.Optimizer.param_groups`: param_group['params'] = a list of parameters Arguments: params (iterable): params specifies what tensors should be managed. params will be convert to self.param_groups. Each of the following cases for params is OK, 1). params = [tensor0, tensor1, tensor2, ...] -> self.param_groups = [ {'params':OrderedDict(enumerate(params)), ...options...} ] 2). params = dict(name0=tensor0, name1=tensor1, ...) -> self.param_groups = [ {'params':OrderedDict(params), ...options...} ] 3). params = [ {'params':[tensor00,tensor01,...], key0:v00,...}, {'params':[tensor10,tensor11,...], key0:v01,...}, ... ] -> self.param_groups = [ {'params':OrderedDict(enumerate(params[0]['params'])), key0:v00,...}, {'params':OrderedDict(enumerate(params[1]['params'])), key0:v01,...}, ... ] 4). params = [ {'params':{name00:tensor00,...}, key0:v00,...}, {'params':{name10:tensor10,...}, key0:v01,...}, ... ] -> self.param_groups = [ {'params':OrderedDict(params[0]['params']), key0:v00,...}, {'params':OrderedDict(params[1]['params']), key0:v01,...}, ... ] self.param_groups will be initialized in self.__init__, if you want to add param_groups to self.param_groups after initialization, you can use self.add_param_group(param_group), where param_group should be a list or dict of tensors (see 1),2)) or is already a param_group: {'params':[tensor00,tensor01,...], key0:v00,...} or {'params':{name00:tensor00,...}, key0:v00,...}, defaults (dict): default options for parameter groups. Different from parameters(i.e. params). Options can also be set in augument `params`. Example: import torch import torch.nn as nn from aTEAM.optim import ParamGroupsManager class Penalty(nn.Module): def __init__(self,n,alpha=1e-5): super(Penalty,self).__init__() m = n//2 x1 = torch.arange(1,m+1,dtype=torch.float) x2 = torch.arange(m+1,n+1,dtype=torch.float) self.x1 = nn.Parameter(x1); self.x2 = nn.Parameter(x2) self.n = n; self.alpha = alpha def forward(self): x = torch.cat([self.x1,self.x2],0) return self.alpha*((x-1)**2).sum()+((x**2).sum()-0.25)**2 penalty = Penalty(4,1e-5) # Each of the following case is OK, 'lr'='learning_rate' pgm = ParamGroupsManager(params=penalty.parameters(), defaults={'lr':0.1,'scale':10}) pgm = ParamGroupsManager(params=penalty.named_parameters(), defaults={'lr':0.1,'scale':10}) pgm = ParamGroupsManager(params=[ {'params':[penalty.x1,]},{'params':{'x2':penalty.x2},'lr':0.2} ],defaults={'lr':0.1,'scale':10}) # show what ParamGroupsManager does: print("pgm.param_groups"); print(pgm.param_groups) print("\npgm.params"); print(list(pgm.params)) print("\npgm.named_params"); print(list(pgm.named_params)) print("\npgm.params_with_info 'scale' and 'lr' ") print(list(pgm.params_with_info('scale','lr'))) """ def __init__(self, params, defaults): self.defaults = defaults # set param_groups self.param_groups = [] if isinstance(params, Iterator): params = list(params) _is_params,params_tmp = ParamGroupsManager.is_params(params) if _is_params: param_group = dict(params=params_tmp) self.add_param_group(param_group) else: for param_group in params: if isinstance(param_group, dict) and 'params' in param_group: pg = self._copy_options(param_group) _is_params,params_tmp = \ ParamGroupsManager.is_params(param_group['params']) assert _is_params, \ "param_group['params'] is expected to pass \ ParamGroupsManager.is_params, \ see ParamGroupsManager.is_params?" pg['params'] = params_tmp else: raise ValueError("param_group is expceted to be a dict " "with key 'params'") self.add_param_group(pg) # is_params, is_param_group @staticmethod def _copy_options(param_group): p = {} for k,v in param_group.items(): if k != 'params': p[k] = v return p @staticmethod def _pack_params(p): if isinstance(p,Iterator): p = list(p) if isinstance(next(iter(p)), torch.Tensor): p = enumerate(p) p = OrderedDict(p) return p @staticmethod def is_params(params): """ Verify whether params is an iterable of parmeters. An iterable of (name, :class:`torch.Tensor`) pairs or :class:`torch.Tensor` s will pass this judgement function. So does named Variables dict. Example: >>> model = nn.Linear(3,2) >>> ParamGroupsManager.is_params(model.parameters()) (True,OrderedDict([(0,...),(1,...)])) >>> ParamGroupsManager.is_params(model.named_parameters()) (True,OrderedDict([('weight',...),('bias',...)])) >>> ParamGroupsManager.is_params(dict(model.named_parameters())) (True,OrderedDict([('weight',...),('bias',...)])) >>> ParamGroupsManager.is_params([model.weight,]) (True,OrderedDict([(0,...),])) >>> ParamGroupsManager.is_params([model.weight.data,]) (False,OrderedDict([(0,...),(1,...)])) # split model.weight.data """ try: if isinstance(params, torch.Tensor): # in some case, people unconsciously pass a tensor in, # which is also a iterable of tensor when size>1. params = [params,] if isinstance(params, Iterator): # an Iterator can use only once, # we should at first convert it to a list. params = list(params) assert len(list(params))>0, "got empty params" if not isinstance(params, dict): params = list(params) if isinstance(params[0], torch.Tensor): b = all(map(lambda v:isinstance(v, torch.Tensor), params)) else: # expect to be a list of (name, :class:`torch.Tensor`) pairs params = dict(params) if isinstance(params, dict): b = all(map(lambda v:isinstance(v[1], torch.Tensor), params.items())) assert b return True,ParamGroupsManager._pack_params(params) except: return False,params @staticmethod def is_param_group(param_group): """See the code.""" if isinstance(param_group, dict) and ('params' in param_group): _is_params,params_tmp = \ ParamGroupsManager.is_params(param_group['params']) if _is_params: pg = ParamGroupsManager._copy_options(param_group) pg['params'] = params_tmp return True,pg return False,None # add_param_group def add_param_group(self, param_group): """Add a param group to self.param_groups This can be useful when you want to add optimization parameters during training. Arguments: param_group (dict or params): Specifies what Variables should be added to be managed. assert ParamGroupsManager.is_params(param_group)[0] or ParamGroupsManager.is_param_group(param_group)[0] """ _is_params,params_tmp = ParamGroupsManager.is_params(param_group) _is_param_group,param_group_tmp = \ ParamGroupsManager.is_param_group(param_group) assert _is_params or _is_param_group, \ "invalid param_group, see \ ParamGroupsManager.is_params?,\ ParamGroupsManager.is_param_group?" if _is_params: param_group_tmp = dict(params=params_tmp) for k,v in self.defaults.items(): param_group_tmp.setdefault(k, v) # Verify whether there are duplicate parameters. params_candidate = list(map(lambda x:id(x[1]), \ param_group_tmp['params'].items())) assert len(set(params_candidate)) == len(params_candidate), \ 'parameter in param_group should be unique' assert set(params_candidate).isdisjoint(set(map(id, self.params))), \ 'duplicate parameter in param_group and self.params' self.param_groups.append(param_group_tmp) return None # params iterator of ParamGroupsManager @property def params(self): for param_group in self.param_groups: for _,v in param_group['params'].items(): yield v @property def named_params(self): for param_group in self.param_groups: for name,v in param_group['params'].items(): yield name,v def params_with_info(self, *keys): for param_group in self.param_groups: value = [] for k in keys: value.append(param_group[k]) for _,v in param_group['params'].items(): yield value+[v,] # zero_grad def zero_grad(self): """ Clears the gradients of all managed :class:`torch.Tensor` s. The code is almost simply copied from torch.optim.optimizer. """ for p in self.params: if p.grad is not None: p.grad.detach_() p.grad.zero_() <file_sep>"""ParamGroupsManager example""" #%% import torch import torch.nn as nn from aTEAM.optim import ParamGroupsManager class Penalty(nn.Module): def __init__(self,n,alpha=1e-5): super(Penalty,self).__init__() m = n//2 x1 = torch.arange(1,m+1,dtype=torch.float) x2 = torch.arange(m+1,n+1,dtype=torch.float) self.x1 = nn.Parameter(x1); self.x2 = nn.Parameter(x2) self.n = n; self.alpha = alpha def forward(self): x = torch.cat([self.x1,self.x2],0) return self.alpha*((x-1)**2).sum()+((x**2).sum()-0.25)**2 penalty = Penalty(4,1e-5) # Each of the following case is OK, 'lr'='learning_rate' # pgm = ParamGroupsManager(params=penalty.parameters(), # defaults={'lr':0.1,'scale':10}) # pgm = ParamGroupsManager(params=penalty.named_parameters(), # defaults={'lr':0.1,'scale':10}) pgm = ParamGroupsManager(params=[ {'params':[penalty.x1,]},{'params':{'x2':penalty.x2},'lr':0.2} ],defaults={'lr':0.1,'scale':10}) # show what ParamGroupsManager does: print("pgm.param_groups") print(pgm.param_groups) print("\npgm.params") print(list(pgm.params)) print("\npgm.named_params") print(list(pgm.named_params)) print("\npgm.params_with_info 'scale' and 'lr' ") print(list(pgm.params_with_info('scale','lr'))) #%% <file_sep># aTEAM **A** py**T**orch **E**xtension for **A**pplied **M**athematics This version is compatible with pytorch (1.0.1) and later. You can create a conda environment for pytorch1: ``` conda create -n torch1 python=3 jupyter source activate torch1 conda install pytorch=1 torchvision cudatoolkit=9.2 -c pytorch # or conda install pytorch-cpu=1 -c pytorch ``` ## Some code maybe useful to you (News: add optim QuickStart) - aTEAM.optim.NumpyFuntionInterface: This function enable us to optimize pytorch modules with external optimizer such as scipy.optimize.lbfgsb.fmin_l_bfgs_b, see test/optim_quickstart.py - aTEAM.nn.modules.MK: [Moment matrix](https://arxiv.org/abs/1710.09668) & convolution kernel convertor: aTEAM.nn.modules.MK.M2K, aTEAM.nn.module.MK.K2M - aTEAM.nn.modules.Interpolation: Lagrange interpolation in a n-dimensional box: aTEAM.nn.modules.Interpolation.LagrangeInterp, aTEAM.nn.modules.Interpolation.LagrangeInterpFixInputs - aTEAM.nn.functional.utils.tensordot: It is similar to numpy.tensordot For more usages pls refer to aTEAM/test/*.py # PDE-Net aTEAM is a basic library for PDE-Net & PDE-Net 2.0[(source code)](https://github.com/ZichaoLong/PDE-Net): - [PDE-Net: Learning PDEs from Data](https://arxiv.org/abs/1710.09668)[(ICML 2018)](https://icml.cc/Conferences/2018)<br /> [Long Zichao](https://scholar.google.com/citations?user=0KXcwnkAAAAJ&hl=zh-CN), [<NAME>](https://web.stanford.edu/~yplu/), [<NAME>](https://www.researchgate.net/profile/Xianzhong_Ma), [Dong Bin](http://bicmr.pku.edu.cn/~dongbin) - [PDE-Net 2.0: Learning PDEs from Data with A Numeric-Symbolic Hybrid Deep Network](https://arxiv.org/abs/1812.04426)<br /> [Long Zichao](https://scholar.google.com/citations?user=0KXcwnkAAAAJ&hl=zh-CN), [Lu Yiping](https://web.stanford.edu/~yplu/), [Dong Bin](http://bicmr.pku.edu.cn/~dongbin) If you find this code useful for your research then please cite ``` @inproceedings{long2018pdeI, title={PDE-Net: Learning PDEs from Data}, author={<NAME> and <NAME> and <NAME> and <NAME>}, booktitle={International Conference on Machine Learning}, pages={3214--3222}, year={2018} } @article{long2018pdeII, title={PDE-Net 2.0: Learning PDEs from Data with A Numeric-Symbolic Hybrid Deep Network}, author={<NAME> and <NAME> and <NAME>}, journal={arXiv preprint arXiv:1812.04426}, year={2018} } ``` <file_sep>""" A quick start for aTEAM/optim More test example can be found in aTEAM/test/optim*.py. """ from numpy import * import numpy as np import torch import torch.nn as nn from torch.nn import functional as F from aTEAM.optim import NumpyFunctionInterface,ParamGroupsManager """ Example 1 Let us start with an example. At first, we define a PyTorch tensor function "powell_bs" """ def powell_bs(x): return (1e4*x[0]*x[1]-1)**2+((-x[0]).exp()+(-x[1]).exp()-1.0001)**2 """ And then define the variable "nfix" to be optimized: min_{nfix} powell_bs(nfix) """ nfix = torch.tensor([0,1], dtype=torch.float64, requires_grad=True) """ a interface "forward" for NumpyFunctionInterface is needed """ def forward(): return powell_bs(nfix) """ At last, construct your NumpyFunctionInterface of the PyTorch tensor function """ listofparameters = [nfix,] nfi = NumpyFunctionInterface(listofparameters,forward=forward) """ Now it's ready to use interfaces given by "nfi": "nfi.flat_param,nfi.f,nfi.fprime". What these interfaces do is somethine like ``` class NumpyFunctionInterface: @property def params(self): # notice that nfi = NumpyFunctionInterface(listofparameters,forward) for p in listofparameters: yield p @property def flat_param(self): views = [] for p in self.params: views.append(p.view(-1)) return torch.cat(views,0).numpy() @property.setter def flat_param(self,x): # x is a numpy array for p in self.params: p[:] = x[pidx_start:pidx_end] # For simplicity here we do not show details of # type conversion and subscript matching between p and x. def f(self,x): self.flat_param = x return forward() def fprime(self,x): loss = self.f(x) loss.backward() # Here we utilize autograd feature of PyTorch grad = np.zeros(x.size) for p in self.params: grad[pidx_start:pidx_end] = p.grad return grad ``` Try these commands: x = np.random.randn(nfi.numel()) assert(np.equal(nfi.f(x),powell_bs(x))) x[0] = 1 nfi.flat_param = x # nfi.flat_param[0] = 1 is not permitted since property is not a ndarray assert(np.equal(nfi.f(nfi.flat_param),powell_bs(x))) These interfaces enable us to use lbfgs,slsqp from scipy.optimize. """ from scipy.optimize.lbfgsb import fmin_l_bfgs_b as lbfgsb from scipy.optimize.slsqp import fmin_slsqp as slsqp x0 = array([0,1]) print(" ***************** powell_bs ***************** ") x,f,d = lbfgsb(nfi.f,x0,nfi.fprime,m=100,factr=1,pgtol=1e-14,iprint=10) out,fx,its,imode,smode = slsqp(nfi.f,x0,fprime=nfi.fprime, acc=1e-16,iter=15000,iprint=1,full_output=True) print('\noptimial solution\n',out) """ Further more, if we want to impose constraint "nfix[0] = 1e-5" to the problem, we can define the projection function of "nfix" and its gradient: "x_proj","grad_proj", and then add these hooks by call "nfi.set_options". "nfi.f" and "nfi.fprime" comes to ``` class NumpyFunctionInterface: def _all_x_proj(self): ... def _all_grad_proj(self): ... @property def flat_param(self): self._all_x_proj() ... @property.setter def flat_param(self,x): ... self._all_x_proj() def fprime(self,x): ... self._all_grad_proj() ... return grad ``` """ def x_proj(params): params[0].data[0] = 1e-5 def grad_proj(params): params[0].grad.data[0] = 0 ## one can also simply set since nfix is globally accessible # def x_proj(*args,**kw): # nfix.data[0] = 1e-5 # def grad_proj(*args,**kw): # nfix.grad.data[0] = 0 # nfi.set_oprions(0,x_proj=x_proj,grad_proj=grad_proj) paramidx = 0 nfi.set_options(paramidx,x_proj=x_proj,grad_proj=grad_proj) """ Now we can solve this constraint optimization problem in a unconstraint manner """ print("\n\n\n\n ***************** constraint powell_bs ***************** ") x,f,d = lbfgsb(nfi.f,x0,nfi.fprime,m=100,factr=1,pgtol=1e-14,iprint=10) out,fx,its,imode,smode = slsqp(nfi.f,x0,fprime=nfi.fprime, acc=1e-16,iter=15000,iprint=1,full_output=True) """ The original output ('x' or 'out') of the optimizer may not satisfy the constraint. Recall that the nfi.flat_param will automatically do the projection in reader and setter, ``` class NumpyFunctionInterface: @property def flat_param(self): self._all_x_proj() views = [] for p in self.params: views.append(p.view(-1)) return torch.cat(views,0).numpy() @property.setter def flat_param(self,x): # x is a numpy array for p in self.params: p[:] = x[pidx_start:pidx_end] self._all_x_proj() ``` so we can obtain a constraint gauranteed solution by out = nfi.flat_param """ out = nfi.flat_param print('\noptimial solution\n',out) """ Example 2 To further understand "NumpyFunctionInterface", let us extend "powell_bs" to a PyTorch custom module (see https://pytorch.org/tutorials/beginner/examples_nn/two_layer_net_module.html?highlight=custom) At first, define a pytorch module "penalty=Penalty(100,1e-5)" """ import torch.nn as nn from torch.nn import functional as F class Penalty(nn.Module): def __init__(self,n,alpha=1e-5): super(Penalty,self).__init__() m = n//2 x1 = torch.arange(1,m+1).to(torch.float64) x2 = torch.arange(m+1,n+1).to(torch.float64) self.x1 = nn.Parameter(x1) self.x2 = nn.Parameter(x2) self.n = n self.alpha = alpha def forward(self): x = torch.cat([self.x1.cpu(),self.x2.cpu()],0) return self.alpha*((x-1)**2).sum()+((x**2).sum()-0.25)**2 penalty = Penalty(5,1e-5) """ Consider a constraint optimization problem min_{penalty.x1,penalty.x2, s.t. penalty.x2[0]=1} penalty.forward() Then, construct "NumpyFunctionInterface" for this problem (each of the following way is OK) # method 0 # penalty.x2 is globally accessible def x_proj(*args,**kw): penalty.x2.data[0] = 1e-5 def grad_proj(*args,**kw): penalty.x2.grad.data[0] = 0 nfi = NumpyFunctionInterface(penalty.parameters(),forward=penalty.forward, x_proj=x_proj,grad_proj=grad_proj) # method 1 def x_proj(params_of_param_group): params_of_param_group[0].data[0] = 1e-5 def grad_proj(params_of_param_group): params_of_param_group[0].grad.data[0] = 0 nfi = NumpyFunctionInterface([ dict(params=[penalty.x1,]), dict(params=[penalty.x2,],x_proj=x_proj,grad_proj=grad_proj) ], penalty.forward) # method 2 def x_proj(params_of_param_group): params_of_param_group[1].data[0] = 1e-5 def grad_proj(params_of_param_group): params_of_param_group[1].grad.data[0] = 0 nfi = NumpyFunctionInterface([ dict(params=[penalty.x1,penalty.x2],x_proj=x_proj,grad_proj=grad_proj), ], penalty.forward) # method 3 def x_proj(params_of_param_group): params_of_param_group[1].data[0] = 1e-5 def grad_proj(params_of_param_group): params_of_param_group[1].grad.data[0] = 0 nfi = NumpyFunctionInterface([penalty.x1,penalty.x2], penalty.forward) nfi.set_options(0, x_proj=x_proj, grad_proj=grad_proj) In "NumpyFunctionInterface", parameters are devided into different parameter groups, any parameter groups is a dict of """ def x_proj(*args,**kw): penalty.x2.data[0] = 1e-5 def grad_proj(*args,**kw): penalty.x2.grad.data[0] = 0 nfi = NumpyFunctionInterface(penalty.parameters(),forward=penalty.forward, x_proj=x_proj,grad_proj=grad_proj) # x0 = torch.cat([penalty.x1.cpu(),penalty.x2.cpu()],0).data.clone().numpy() x0 = np.random.randn(nfi.numel()) print("\n\n\n\n ***************** penalty *****************") x,f,d = lbfgsb(nfi.f,x0,nfi.fprime,m=100,factr=1,pgtol=1e-14,iprint=10) out,fx,its,imode,smode = slsqp(nfi.f,x0,fprime=nfi.fprime,acc=1e-16,iter=15000,iprint=1,full_output=True) # the following two assignments will inforce 'out' to satisfy the constraint nfi.flat_param = out out = nfi.flat_param print('\noptimial solution\n',out)
abe9b883d1da9d9c544268577cb8525a090c8c05
[ "Markdown", "Python" ]
4
Python
BoyangZHOU/aTEAM
84601893cc7dddd3a1a2f6b6bc365b4c9dbb14cf
92587d672a60358a0e8ab63d9efad52ed9fad539
refs/heads/main
<repo_name>wusongqian99/wusongqian99.github.io<file_sep>/2018-in-review-master/genassets.php <?php function getDirContents($dir, &$results = array()){ $files = scandir($dir); foreach($files as $key => $value){ $path = $dir.DIRECTORY_SEPARATOR.$value; if(!is_dir($path) && $value !== '.DS_Store') { $results[] = $value; } else if($value != "." && $value != ".." && $value !== '.DS_Store') { getDirContents($path, $results[$value]); } } return $results; } $assets = getDirContents('public/assets'); $monthAssets = $assets; unset( $monthAssets['intro'] ); unset( $monthAssets['end'] ); uksort( $monthAssets, "compare_months" ); function compare_months($a, $b) { $monthA = date_parse($a); $monthB = date_parse($b); return $monthA["month"] - $monthB["month"]; } // $json = 'const assets = ' . json_encode( $assets ) . '; export default assets;'; $json_pretty = json_encode( $monthAssets, JSON_PRETTY_PRINT ); // file_put_contents( 'src/assets.js', $json ); file_put_contents( 'src/assetListGenerated.json', $json_pretty ); foreach( $monthAssets as $key => $month ) { unset( $monthAssets[ $key ] ); foreach( $month as $file => $value ) { $monthAssets[ $key ][ $value ] = [ 'caption' => $value, 'link' => '' ]; } } $json_pretty = json_encode( $monthAssets, JSON_PRETTY_PRINT ); file_put_contents( 'src/assetDataGenerated.json', $json_pretty );<file_sep>/2018-in-review-master/src/js/config/assetOrder.js const assetOrder = { "jan": [ "adicolor_ss2018.mp4", "berlin-3.JPG", "cursor.mp4", "dark.mp4", "houseofplants.mp4.mp4", "iceland-orig.mp4", "iceland_dribbble.jpg", "nike.mp4", "roadless.jpg", "soft-drinks.jpg", "tiles.jpg" ], "feb": [ "camera-culture.jpg", "ezgif.com-gif-to-mp4 (10).mp4", "ezgif.com-gif-to-mp4 (12).mp4", "fila_dribbble.jpg", "fullsize.mp4", "houseofplants_ar.mp4", "nz.jpg", "surf_fullsize.mp4", "surf_mob_fullsize.mp4" ], "mar": [ "When_To_Travel_Event_Loop_1080p.mp4.mp4", "asia-office.jpg", "certificate-when-to-travel-sotd.jpg", "ezgif.com-gif-to-mp4 (13).mp4", "ezgif.com-gif-to-mp4 (15).mp4", "kim.jpg", "office-move.mp4", "phototours.mp4", "skye_fullsize.mp4", "yosemite.mp4" ], "apr": [ "aperture-dribbble.jpg", "beaches_nodistort.mp4", "colour_01.jpg", "ezgif.com-gif-to-mp4 (16).mp4", "ezgif.com-gif-to-mp4 (17).mp4", "ezgif.com-gif-to-mp4 (18).mp4", "its-official-video.mp4", "skincare.jpg" ], "may": [ "botanical.jpg", "DSC05316.jpg", "botanical_dev.jpg", "cabin_fever.mp4", "coffeebag_shot.jpg", "mars-fullsize_1.mp4", "may-off.jpg", "off.jpg" ], "jun": [ "its-official-video.mp4", "GC Port_0046.jpg", "jekka_bottle.png", "GC Port_0666.jpg", "jekka_bottle_front_label.png", "jack.mp4", "plasticdreams_fullsize.mp4" ], "jul": [ "05.jpg", "6oclockgin (2).mp4", "melt].jpg", "luke.jpg", "natural_wonders.mp4.mp4", "IMG_9709 2.jpg", "sandsoftime.mp4.mp4" ], "aug": [ "ezgif.com-gif-to-mp4 (10).mp4", "ezgif.com-gif-to-mp4 (6).mp4", "aug-nala.jpg", "ezgif.com-gif-to-mp4 (7).mp4", "1061670554.mp4.mp4", "boatparty.jpg", "ezgif.com-gif-to-mp4 (8).mp4", "cssda-wotd.jpg", "ezgif.com-gif-to-mp4 (9).mp4", "shapes___lighting.jpg" ], "sep": [ "asaro-web-live-shot_4x (2).jpg", "bunder_fullsize.mp4.mp4", "1.jpg", "butterysmoothversion.mp4.mp4", "carhartt_bigboi.mp4.mp4", "ding_ding.mp4.mp4", "ezgif.com-gif-to-mp4 (11).mp4", "ezgif.com-gif-to-mp4 (12).mp4", "ezgif.com-gif-to-mp4 (13).mp4", "ezgif.com-gif-to-mp4 (14).mp4", "habital_hifi.mp4.mp4.mp4", "mantra_fullres (1).mp4.mp4", "nfl_screens_4x.jpg" ], "oct": [ "comp_1_1.mp4 (1).mp4", "comp_1_1.mp4.mp4", "ezgif.com-gif-to-mp4 (15).mp4", "ezgif.com-gif-to-mp4 (16).mp4", "ezgif.com-gif-to-mp4 (17).mp4", "fwawwward-asaro.jpg", "kingdoms-fullsize (1).mp4.mp4", "sign.jpg" ], "nov": [ "DSC08088.jpg", "adobe_xd_mockup.jpg", "comp_1.mp4.mp4", "comp_1_11.mp4.mp4", "comp_1_3.mp4.mp4", "ezgif.com-gif-to-mp4 (18).mp4", "full_animation.mp4.mp4", "iat-webdesigner.jpg", "kikk.jpg" ], "dec": [ "comp_1.mp4 (1).mp4", "comp_1.mp4.mp4", "comp_1_1.mp4.mp4", "xmas.mp4", "comp_1_2.mp4.mp4", "studio_of_the_year_nom.jpg" ] } ; export default assetOrder;<file_sep>/2018-in-review-master/src/js/components/Section.js import * as THREE from 'three' import SVGLoader from 'three-svg-loader' import { MeshLine, MeshLineMaterial } from 'three.meshline' import greenscreen from '../shaders/greenscreen.frag' import vert from '../shaders/default.vert' import { TweenMax } from 'gsap'; export default class Section extends THREE.Group { constructor( opts = { timeline, section } ) { super() Object.assign( this, opts ) if( this.section === 'intro' ) this.createIntroSection() else if( this.section === 'end' ) this.createEndSection() else if( this.section === 'contact' ) this.createContactSection() else this.create() } create() { let textGeom = new THREE.TextGeometry( this.timeline.months[ this.section ].name, { font: this.timeline.assets.fonts['Schnyder L'], size: 200, height: 0, curveSegments: 10 } ).center() let monthName = new THREE.Mesh( textGeom, this.timeline.textMat ) monthName.position.set( this.timeline.months[ this.section ].offset || 0, 0, 0 ) this.add( monthName ) } createIntroSection() { let sansTextGeom = new THREE.TextGeometry( 'YEAR IN REVIEW', { font: this.timeline.assets.fonts['SuisseIntl-Bold'], size: 60, height: 0, curveSegments: 4 } ).center() let sansText = new THREE.Mesh( sansTextGeom, this.timeline.textMat ) this.add( sansText ) let serifTextGeom = new THREE.TextGeometry( '2018', { font: this.timeline.assets.fonts['Schnyder_Edit Outline'], size: 640, height: 0, curveSegments: 15 } ).center() let serifText = new THREE.Mesh( serifTextGeom, this.timeline.textOutlineMat ) serifText.position.set( 0, 0, -500 ) this.add( serifText ) let material = new THREE.MeshBasicMaterial( { map: this.timeline.assets.textures['intro']['1_ok.png'], transparent: true } ) let geom = new THREE.PlaneGeometry( 1, 1 ) let hand = new THREE.Mesh( geom, material ) hand.scale.set( 800, 800, 1 ) hand.position.set( 0, 0, -250 ) this.add( hand ) this.addIntroBadge() } addIntroBadge() { this.badge = new THREE.Group() let texture = new THREE.TextureLoader().load( 'images/highlights.png' ) texture.magFilter = texture.minFilter = THREE.LinearFilter let material = new THREE.MeshBasicMaterial( { map: texture, transparent: true } ) let geom = new THREE.PlaneGeometry( 1, 1 ) this.circle = new THREE.Mesh( geom, material ) this.circle.scale.set( 200, 200, 1 ) this.badge.add( this.circle ) let serifTextGeom = new THREE.TextGeometry( '2018-19', { font: this.timeline.assets.fonts['Schnyder L'], size: 26, height: 0, curveSegments: 6 } ) serifTextGeom.center() let serifText = new THREE.Mesh( serifTextGeom, this.timeline.textMat ) serifText.position.set( 0, 0, 1 ) this.badge.add( serifText ) this.badge.position.set( 0, 0, 50 ) this.badge.position.y = this.timeline.c.size.w < 600 ? -this.timeline.c.size.h + 90 : -this.timeline.c.size.h / 2 + 90 if( this.timeline.c.size.w < 600 ) this.badge.scale.set( 1.5, 1.5, 1 ) this.add( this.badge ) } createEndSection() { let sansTextGeom = new THREE.TextGeometry( 'SEE YOU NEXT YEAR', { font: this.timeline.assets.fonts['SuisseIntl-Bold'], size: 60, height: 0, curveSegments: 4 } ).center() let sansText = new THREE.Mesh( sansTextGeom, this.timeline.textMat ) this.add( sansText ) let serifTextGeom = new THREE.TextGeometry( 'END', { font: this.timeline.assets.fonts['Schnyder_Edit Outline'], size: 580, height: 0, curveSegments: 15 } ).center() let serifText = new THREE.Mesh( serifTextGeom, this.timeline.textOutlineMat ) serifText.position.set( 0, 0, -300 ) this.add( serifText ) let geometry = new THREE.PlaneGeometry( 1, 1 ) let material = new THREE.ShaderMaterial({ uniforms: { fogColor: { type: "c", value: this.timeline.scene.fog.color }, fogNear: { type: "f", value: this.timeline.scene.fog.near }, fogFar: { type: "f", value: this.timeline.scene.fog.far }, texture: { type: 't', value: this.timeline.assets.textures['end'][ 'wave.mp4' ] } }, fragmentShader: greenscreen, vertexShader: vert, fog: true, transparent: true }) let mesh = new THREE.Mesh( geometry, material ) mesh.scale.set( 700, 700, 1 ) mesh.position.set( 0, 0, -200 ) this.timeline.videoItems.push( mesh ) this.add( mesh ) this.addWhooshButton() } addWhooshButton() { this.whoosh = new THREE.Group() let whooshTexture = new THREE.TextureLoader().load( 'images/whoooosh.png' ) whooshTexture.magFilter = whooshTexture.minFilter = THREE.LinearFilter let whooshMaterial = new THREE.MeshBasicMaterial( { map: whooshTexture, transparent: true, depthWrite: false } ) let whooshGeom = new THREE.PlaneGeometry( 1, 1 ) this.circle = new THREE.Mesh( whooshGeom, whooshMaterial ) this.circle.scale.set( 200, 200, 1 ) this.whoosh.add( this.circle ) let texture = new THREE.TextureLoader().load( 'images/arrowdown.png' ) texture.anisotropy = this.timeline.renderer.capabilities.getMaxAnisotropy() texture.magFilter = texture.minFilter = THREE.LinearFilter let material = new THREE.MeshBasicMaterial( { map: texture, transparent: true, side: THREE.DoubleSide, depthWrite: false } ) let geom = new THREE.PlaneGeometry( 1, 1 ) this.arrow = new THREE.Mesh( geom, material ) this.arrow.scale.set( 90, 90, 1 ) this.arrow.position.z = 20 this.whoosh.add( this.arrow ) this.whoosh.position.set( 0, -450, 50 ) if( this.timeline.c.size.w < 600 ) this.whoosh.scale.set( 1.5, 1.5, 1 ) this.add( this.whoosh ) } createContactSection() { this.position.set( 0, 2000 / this.timeline.scene.scale.y , 0 ) this.visible = false let sansTextGeom = new THREE.TextGeometry( 'SAY HELLO', { font: this.timeline.assets.fonts['SuisseIntl-Bold'], size: 10, height: 0, curveSegments: 4 } ).center() let sansText = new THREE.Mesh( sansTextGeom, this.timeline.textMat ) sansText.position.set( 0, 60, 0 ) this.add( sansText ) let lineOneGeom = new THREE.TextGeometry( "Let’s make 2019 just as memorable with more", { font: this.timeline.assets.fonts['Schnyder L'], size: 30, height: 0, curveSegments: 6 } ).center() let lineOne = new THREE.Mesh( lineOneGeom, this.timeline.contactTextMat ) lineOne.position.set( 0, 0, 0 ) this.add( lineOne ) let lineTwoGeom = new THREE.TextGeometry( "amazing talent and exciting new projects.", { font: this.timeline.assets.fonts['Schnyder L'], size: 30, height: 0, curveSegments: 6 } ).center() let lineTwo = new THREE.Mesh( lineTwoGeom, this.timeline.contactTextMat ) lineTwo.position.set( 0, -45, 0 ) this.add( lineTwo ) let emailGeom = new THREE.TextGeometry( "<EMAIL>", { font: this.timeline.assets.fonts['Schnyder L'], size: 36, height: 0, curveSegments: 6 } ).center() let email = new THREE.Mesh( emailGeom, this.timeline.textMat ) email.position.set( 0, -140, 0 ) this.add( email ) let emailUnderline = new THREE.Mesh( new THREE.PlaneBufferGeometry( 467, 1 ), this.timeline.linkUnderlineMat ) emailUnderline.position.set( 0, -172, 0 ) this.add( emailUnderline ) // for raycasting so it doesn't just pick up on letters this.linkBox = new THREE.Mesh( new THREE.PlaneBufferGeometry( 490, 60 ), new THREE.MeshBasicMaterial( { alphaTest: 0, visible: false } ) ) this.linkBox.position.set( 0, -140, 1 ) this.linkBox.onClick = () => { window.open( 'mailto:<EMAIL>', '_blank' ) } this.add( this.linkBox ) } }<file_sep>/2018-in-review-master/src/js/config/months.js const months = { intro: { textColor: 0x1b42d8, outlineTextColor: 0x1b42d8, bgColor: 0xAEC7C3, tintColor: 0x1b42d8 }, jan: { name: 'JANUARY', textColor: 0xf7cf7e, bgColor: 0x428884, tintColor: 0x428884 }, feb: { name: 'FEBRUARY', textColor: 0xFD6F53, bgColor: 0x012534, tintColor: 0x012534, offset: -80 }, mar: { name: 'MARCH', textColor: 0x1b42d8, bgColor: 0xF2D0C9, tintColor: 0x1b42d8, contactColor: 0x192759 }, apr: { name: 'APRIL', textColor: 0xF7A910, bgColor: 0x5198A8, tintColor: 0x3c7484, offset: 35 }, may: { name: 'MAY', textColor: 0xFB9364, bgColor: 0x2C57A2, tintColor: 0x36579d }, jun: { name: 'JUNE', textColor: 0xF6D2F2, bgColor: 0x286254, tintColor: 0x386155 }, jul: { name: 'JULY', textColor: 0xCA7E70, bgColor: 0x424C65, tintColor: 0x444c63 }, aug: { name: 'AUGUST', textColor: 0x166C21, bgColor: 0xFFCDA1, tintColor: 0x336a2c, contactColor: 0x745d49 }, sep: { name: 'SEPTEMBER', textColor: 0x5B1553, bgColor: 0xFDBF92, tintColor: 0x5B1553 }, oct: { name: 'OCTOBER', textColor: 0x37382E, bgColor: 0xFA9E00, tintColor: 0x373830 }, nov: { name: 'NOVEMBER', textColor: 0x003036, bgColor: 0x288794, tintColor: 0x468692 }, dec: { name: 'DECEMBER', textColor: 0xF81B06, bgColor: 0xF2F2F2, tintColor: 0xa2a2a2, contactColor: 0x1f1f1f }, end: { textColor: 0xED859C, outlineTextColor: 0xB9B4E8, bgColor: 0x416863, tintColor: 0xB9B4E8 }, } export default months<file_sep>/2018-in-review-master/src/js/config/assetData.js const assetData = { "jan": { "adicolor_ss2018.mp4": { "caption": "Adicolor SS2018 Lookbook Carousel", "link": "https://dribbble.com/shots/4062487-Adicolor-SS2018-Lookbook-Carousel" }, "berlin-3.JPG": { "caption": "We got inspired at the Awwwwards conference in Berlin", "link": "" }, "cursor.mp4": { "caption": "", "link": "https://dribbble.com/shots/4134375-Cursor" }, "dark.mp4": { "caption": "An interaction experiment using multiple parallax layers", "link": "https://dribbble.com/shots/4104832-Dark" }, "houseofplants.mp4.mp4": { "caption": "House of Plants concept work", "link": "https://dribbble.com/shots/4147977-House-of-Plants" }, "iceland-orig.mp4": { "caption": "Iceland interaction animation", "link": "https://dribbble.com/shots/4131026-Wandr-Iceland-Interaction-Animation" }, "iceland_dribbble.jpg": { "caption": "", "link": "" }, "nike.mp4": { "caption": "Nike Air Max day spinner ", "link": "https://dribbble.com/shots/4138514-Nike-Air-Max-Day-Spinner" }, "roadless.jpg": { "caption": "", "link": "" }, "soft-drinks.jpg": { "caption": "3D scenes for our lovely client Rawlings", "link": "https://www.rawlingsbristol.co.uk/" }, "tiles.jpg": { "caption": "Some pretty style tiles", "link": "https://dribbble.com/shots/4069928-Mountain-Range-Tiles" } }, "feb": { "camera-culture.jpg": { "caption": "Concept work for the Get The Picture project for IAT", "link": "https://www.getthepicture.tours/" }, "ezgif.com-gif-to-mp4 (10).mp4": { "caption": "Experimenting with some hero image transitions", "link": "https://dribbble.com/shots/4128126-Carousel-Transitions" }, "ezgif.com-gif-to-mp4 (12).mp4": { "caption": "Entries for the Spaced competition", "link": "" }, "fila_dribbble.jpg": { "caption": "Concept for the new Fila clothing range", "link": "https://dribbble.com/shots/4197326-Fila-Spring-Summer" }, "fullsize.mp4": { "caption": "Image hover effect experimentation", "link": "https://dribbble.com/shots/4228572-Photo-Gallery-Hover-Idea" }, "houseofplants_ar.mp4": { "caption": "House of plants AR app development", "link": "" }, "nz.jpg": { "caption": "Surf Guide: New Zealand", "link": "" }, "surf_fullsize.mp4": { "caption": "Distortion scroll effects", "link": "https://dribbble.com/shots/4273785-Surf-Guide-Scroll-Distort-Effect" }, "surf_mob_fullsize.mp4": { "caption": "", "link": "" } }, "mar": { "When_To_Travel_Event_Loop_1080p.mp4.mp4": { "caption": "When To Travel launched", "link": "https://www.insideasiatours.com/when-to-travel" }, "asia-office.jpg": { "caption": "We moved out of our offices on King Street", "link": "" }, "certificate-when-to-travel-sotd.jpg": { "caption": "We won SOTD for our 'When to Travel' project for Inside Asia Tours", "link": "https://www.awwwards.com/sites/when-to-travel" }, "ezgif.com-gif-to-mp4 (13).mp4": { "caption": "", "link": "https://dribbble.com/shots/4305497-Photo-Transitions" }, "ezgif.com-gif-to-mp4 (15).mp4": { "caption": "A little smoke particle simulation", "link": "https://dribbble.com/shots/4381622-3D-Interactions-Series-4-Smoke-Switch" }, "kim.jpg": { "caption": "Kim joined our team as an account manager", "link": "" }, "office-move.mp4": { "caption": "Turning off the lights for the last time", "link": "" }, "phototours.mp4": { "caption": "Photo Tours website launched", "link": "" }, "skye_fullsize.mp4": { "caption": "Playing with the footage captured by our new drone", "link": "https://dribbble.com/shots/4416376-Wandr-Isle-of-Skye" }, "yosemite.mp4": { "caption": "A little header transition experiment", "link": "https://dribbble.com/shots/4315719-Wandr-Yosemite-Header-Transition" } }, "apr": { "aperture-dribbble.jpg": { "caption": "", "link": "" }, "beaches_nodistort.mp4": { "caption": "", "link": "https://dribbble.com/shots/4486525-Wandr-Beaches-Header-Transition" }, "colour_01.jpg": { "caption": "", "link": "https://dribbble.com/shots/4477353-Etina-Web-Concept" }, "ezgif.com-gif-to-mp4 (16).mp4": { "caption": "Testing out some lighting rigs", "link": "https://dribbble.com/shots/4465601-RayBan-Never-Hide-concept" }, "ezgif.com-gif-to-mp4 (17).mp4": { "caption": "WebGL slider", "link": "https://codepen.io/ashthornton/full/KRQbMO/" }, "ezgif.com-gif-to-mp4 (18).mp4": { "caption": "Eureka Moment", "link": "https://dribbble.com/shots/4533476-Eureka-Moment" }, "its-official-video.mp4": { "caption": "Jack celebrates his job offer!", "link": "" }, "skincare.jpg": { "caption": "", "link": "" } }, "may": { "DSC05316.jpg": { "caption": "Enjoying some downtime at Park Güell during OFFF", "link": "" }, "botanical.jpg": { "caption": "Branding concepts for Botanical Coffee", "link": "https://www.behance.net/gallery/68848615/Botanical-Coffee-Co" }, "botanical_dev.jpg": { "caption": "Final brand tile for Botanical Coffee", "link": "https://www.behance.net/gallery/68848615/Botanical-Coffee-Co" }, "cabin_fever.mp4": { "caption": "Wandr: Cabin Fever header transition", "link": "" }, "coffeebag_shot.jpg": { "caption": "Final packaging design for Botanical Coffee", "link": "https://www.behance.net/gallery/68848615/Botanical-Coffee-Co" }, "mars-fullsize_1.mp4": { "caption": "", "link": "" }, "may-off.jpg": { "caption": "We met the talented <NAME> at OFFF", "link": "" }, "off.jpg": { "caption": "Getting excited for OFFF Festival in Barca", "link": "" } }, "jun": { "GC Port_0046.jpg": { "caption": "<NAME> joined our design team", "link": "" }, "GC Port_0666.jpg": { "caption": "Jake came on board as a back-end developer", "link": "" }, "its-official-video.mp4": { "caption": "Jack celebrates his job offer!", "link": "" }, "jekka_bottle.png": { "caption": "We created a limited edition bottle for 6 O'Clock Gin", "link": "" }, "jekka_bottle_front_label.png": { "caption": "Close up of the Jekka bottle for 6 O'Clock Gin", "link": "" }, "jack.mp4": { "caption": "", "link": "" }, "plasticdreams_fullsize.mp4": { "caption": "", "link": "" } }, "jul": { "05.jpg": { "caption": "R&D Water drop simulation", "link": "" }, "6oclockgin (2).mp4": { "caption": "We launched a revamped new site for 6 o'clock Gin", "link": "https://www.6oclockgin.com/" }, "luke.jpg": { "caption": "Luke joined the team as a front-end developer", "link": "" }, "melt].jpg": { "caption": "Melt Candle Co Branding", "link": "https://dribbble.com/shots/4864742-Melt-Candle-Co" }, "natural_wonders.mp4.mp4": { "caption": "Natural Wonders parallax idea", "link": "https://dribbble.com/shots/4873036-Natural-Wonders-Scroll" }, "IMG_9709 2.jpg": { "caption": "Team breakfasts full of tasty treats", "link": "" }, "sandsoftime.mp4.mp4": { "caption": "Sands of time", "link": "https://dribbble.com/shots/4816509-Load-n-Scroll" } }, "aug": { "1061670554.mp4.mp4": { "caption": "Jack dropped a trailer for his 'Disco' animation", "link": "" }, "aug-nala.jpg": { "caption": "Nala joined the team as office pup!", "link": "" }, "boatparty.jpg": { "caption": "We drank plenty of cider at our summer party", "link": "" }, "cssda-wotd.jpg": { "caption": "We won a CSSDA SOTD for Get the Picture!", "link": "https://cssdesignawards.com/sites/get-the-picture/33487/" }, "ezgif.com-gif-to-mp4 (10).mp4": { "caption": "Human Interactions", "link": "https://dribbble.com/shots/5046361-Human-Interactions" }, "ezgif.com-gif-to-mp4 (6).mp4": { "caption": "Interactive icons", "link": "https://dribbble.com/shots/4891767-" }, "ezgif.com-gif-to-mp4 (7).mp4": { "caption": "Portfolio concept by Asia", "link": "https://dribbble.com/shots/4932443-" }, "ezgif.com-gif-to-mp4 (8).mp4": { "caption": "Land Rover concept", "link": "https://dribbble.com/shots/5022977-Land-Rover-Web-Interactions" }, "ezgif.com-gif-to-mp4 (9).mp4": { "caption": "Warped menu interactions", "link": "https://dribbble.com/shots/5044951-" }, "shapes___lighting.jpg": { "caption": "Shape and lighting study by Dan", "link": "" } }, "sep": { "1.jpg": { "caption": "Renders of David", "link": "" }, "asaro-web-live-shot_4x (2).jpg": { "caption": "We launched an immersive new site for Asaro", "link": "https://asaro.co.uk/" }, "bunder_fullsize.mp4.mp4": { "caption": "Horiztonal scrolling parallax", "link": "https://dribbble.com/shots/5106773-Horizontal-Parallax-Scroll" }, "butterysmoothversion.mp4.mp4": { "caption": "Mobile interactions for the NFL preview we worked on with ESPN", "link": "https://dribbble.com/shots/5239960-ESPN-Mobile-Interactions" }, "carhartt_bigboi.mp4.mp4": { "caption": "3D Grid interaction idea", "link": "https://dribbble.com/shots/5122175-Cursor-Interaction-Concept" }, "ding_ding.mp4.mp4": { "caption": "Specular Distortions", "link": "https://dribbble.com/shots/5221731-ultracheese" }, "ezgif.com-gif-to-mp4 (11).mp4": { "caption": "Prelude rotating Beer", "link": "https://dribbble.com/shots/5088455-Rotatin" }, "ezgif.com-gif-to-mp4 (12).mp4": { "caption": "Lucid WebGL interaction concept", "link": "https://dribbble.com/shots/5092605-Displacement-R-D" }, "ezgif.com-gif-to-mp4 (13).mp4": { "caption": "Water simulations for Asaro", "link": "https://dribbble.com/shots/5138162-Water-Simulations-R-D" }, "ezgif.com-gif-to-mp4 (14).mp4": { "caption": "<NAME>", "link": "https://dribbble.com/shots/5263912-Studio-David" }, "habital_hifi.mp4.mp4.mp4": { "caption": "Habital", "link": "https://dribbble.com/shots/5313972-Habital-Interiors-Showcase" }, "mantra_fullres (1).mp4.mp4": { "caption": "BMTH Mantra Track Preview concept", "link": "https://dribbble.com/shots/5095880-Mantra-Track-Preview" }, "nfl_screens_4x.jpg": { "caption": "We worked with ESPN on their NFL Preview", "link": "https://dribbble.com/shots/5213950-ESPN-NFL-Preview-Screens" } }, "oct": { "comp_1_1.mp4 (1).mp4": { "caption": "Kyoto Black Lookbook with coded demo by <NAME>", "link": "https://dribbble.com/shots/5475422-Kyoto-Black-Look-book-Live-Demo" }, "comp_1_1.mp4.mp4": { "caption": "Trying out the new Dribbble Mp4 upload feature", "link": "https://dribbble.com/shots/5452617-NMD-Cursor-and-Scrolling-Interactions" }, "ezgif.com-gif-to-mp4 (15).mp4": { "caption": "Adaptive text", "link": "https://dribbble.com/shots/5361227-" }, "ezgif.com-gif-to-mp4 (16).mp4": { "caption": "Spooky interactions", "link": "https://dribbble.com/shots/5394685-Right-in-the-Spooks" }, "ezgif.com-gif-to-mp4 (17).mp4": { "caption": "Ghosts and Ghouls interaction exploration", "link": "https://dribbble.com/shots/5435034-Ghosts-Ghouls" }, "fwawwward-asaro.jpg": { "caption": "Asaro won Awwwards and FWA SOTD!", "link": "" }, "kingdoms-fullsize (1).mp4.mp4": { "caption": "Floral music player concept", "link": "https://dribbble.com/shots/5380278-Maribou-State-Player-Interface" }, "sign.jpg": { "caption": "<NAME> worked his magic on our studio door", "link": "" } }, "nov": { "DSC08088.jpg": { "caption": "We created the packaging for a unique, limited edition 5 Year aged Sloe Gin with 6 o'clock Gin", "link": "" }, "adobe_xd_mockup.jpg": { "caption": "Dan's entry to the Adobe XD competition on Dribbble", "link": "https://dribbble.com/shots/5556268-BSB-x-AdobeXD" }, "comp_1.mp4.mp4": { "caption": "An unused concept from the new Epicurrence site", "link": "https://dribbble.com/shots/5575499-Epic-Unused" }, "comp_1_11.mp4.mp4": { "caption": "Paper slider concept", "link": "https://dribbble.com/shots/5517376-Paper-Fashion-Slider" }, "comp_1_3.mp4.mp4": { "caption": "Nath's first work using Cinema 4D", "link": "https://dribbble.com/shots/5579163-Egyptian-Dynasties-Transitions" }, "ezgif.com-gif-to-mp4 (18).mp4": { "caption": "Kinetic type explorations", "link": "https://dribbble.com/shots/5497074-" }, "full_animation.mp4.mp4": { "caption": "Pastel Paradise", "link": "https://dribbble.com/shots/5532273-Colour-Selector-Pastel-Paradise" }, "iat-webdesigner.jpg": { "caption": "We had a 6 page feature in Web Designer Magazine for 'When to Travel'", "link": "" }, "kikk.jpg": { "caption": "We headed out to Belgium to experience the KIKK festival", "link": "" } }, "dec": { "comp_1.mp4 (1).mp4": { "caption": "Hover reveal effect concept", "link": "https://dribbble.com/shots/5727121-Mont-Blanc-Text-Reveal" }, "comp_1.mp4.mp4": { "caption": "Battle at the Berrics app idea", "link": "https://dribbble.com/shots/5658836-BATB-11-Mobile-Concept" }, "comp_1_1.mp4.mp4": { "caption": "Nath starting learning X-particles and created this concept for Pantone colour of the year", "link": "https://dribbble.com/shots/5681842-Pantone-Color-of-the-Year-Living-Coral" }, "comp_1_2.mp4.mp4": { "caption": "We visualised a Battle at the Berrics website", "link": "https://dribbble.com/shots/5645974-BATB-11-Concept" }, "studio_of_the_year_nom.jpg": { "caption": "We were honoured to be nominated for Studio of the Year by Awwwards", "link": "" }, "xmas.mp4": { "caption": "Too many shots at our Christmas party", "link": "" } } }; export default assetData;<file_sep>/2018-in-review-master/README.md # 2018: Year In Review https://2018.craftedbygc.com/
0f8008ccd98d8ea19186e89dbf4a949daa92b9af
[ "JavaScript", "Markdown", "PHP" ]
6
PHP
wusongqian99/wusongqian99.github.io
a667a88124b383b8439c7892112c63dea36e1c1c
d25e52640064f2a319be42c6d0d416673e16b9d3
refs/heads/master
<repo_name>nosammai/CS122B-Project3<file_sep>/src/ConnectionManager.java import java.sql.CallableStatement; import java.sql.Connection; import java.sql.DatabaseMetaData; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.sql.Types; // CREATED BY: <NAME> & <NAME> public class ConnectionManager { // Fields private Connection connection; // Constructor public ConnectionManager(String database, String username, String password) throws SQLException { // Used from JDBC1.java file given for example to class // Incorporate mySQL driver try { // Connect to the test database (populated with data.sql contents) Class.forName("com.mysql.jdbc.Driver").newInstance(); connection = DriverManager.getConnection(database, username, password); System.out.println("...Connected to database!"); } catch (ClassNotFoundException cnfe) { System.out.println(cnfe.getMessage()); } catch (IllegalAccessException iae) { System.out.println(iae.getMessage()); } catch (InstantiationException ie) { System.out.println(ie.getMessage()); } } // Methods public void closeConnection() { // Closes SQL Database connection try { connection.close(); } catch (SQLException sqle) { System.out.println("...Error closing connection - " + sqle.getMessage() + " SQL STATE " + sqle.getSQLState()); } } // Execute a query on the DB and return the result set public ResultSet executeSQLQuery(String command) throws SQLException { Statement statement = connection.createStatement(); ResultSet result = statement.executeQuery(command); return result; } // Execute a query on the DB and return the result set that can manipulate data public int executeSQLUpdate(String command) throws SQLException { Statement statement = connection.createStatement(); int result = statement.executeUpdate(command); return result; } // Returns the metadata from the given table in the current database public DatabaseMetaData executeMetadataQuery() throws SQLException { return connection.getMetaData(); } public String executeStoredProcedureAddMovie(String procedure, int id, String title, int year, String director, String firstName, String lastName, String genre) throws SQLException { CallableStatement cs = connection.prepareCall(procedure); cs.setInt(1, id); cs.setString(2, title); cs.setInt(3, year); cs.setString(4, director); cs.setString(5, firstName); cs.setString(6, lastName); cs.setString(7, genre); cs.registerOutParameter(8, Types.VARCHAR); cs.executeUpdate(); return cs.getString(8); // Returns output from stored procedure } } <file_sep>/addMovie.sql DELIMITER // CREATE PROCEDURE add_movie( ident integer, title varchar(100), movie_year integer, director varchar(100), firstName varchar(50), lastName varchar(50), genre varchar(32), OUT results varchar(200) ) start_here:BEGIN DECLARE genre_id integer; DECLARE star_id integer; /* Check if movie already exists in database */ IF (SELECT COUNT(*) FROM movies m WHERE m.title = title) > 0 THEN /* Movie already exists */ SET results = 'Movie already exists in database'; LEAVE start_here; END IF; /* IF given ID, check if the ID is already in use*/ IF (SELECT COUNT(*) FROM movies m WHERE m.id = ident) > 0 THEN SET results = 'Movie ID is already in use'; LEAVE start_here; END IF; /* Add Movie to DB */ INSERT INTO movies VALUES(ident, title, movie_year, director, null, null); SET results = 'Successfully Added Movie'; /* If ID was autogenerated, put it into ident */ IF ident IS NULL THEN SELECT LAST_INSERT_ID() INTO ident; END IF; /* Set Genre */ /* Check if Genre Exists and Load ID */ IF (SELECT COUNT(*) FROM genres g WHERE g.name = genre) > 0 THEN SELECT g.id INTO genre_id FROM genres g WHERE g.name = genre; ELSE /* If it doesn't exist, create it then load ID */ INSERT INTO genres(name) VALUES(genre); SELECT LAST_INSERT_ID() INTO genre_id; END IF; INSERT INTO genres_in_movies VALUES(genre_id, ident); /* Set Star*/ IF lastName IS NULL THEN /* Only First Name */ IF (SELECT COUNT(*) FROM stars s WHERE s.last_name = firstName) > 0 THEN SELECT s.id INTO star_id FROM stars s WHERE s.last_name = firstName; ELSE /*Create Star then Add */ INSERT INTO stars(first_name, last_name) VALUES('', firstName); SELECT LAST_INSERT_ID() INTO star_id; END IF; ELSE IF firstName IS NULL THEN /* Only Last Name */ IF (SELECT COUNT(*) FROM stars s WHERE s.last_name = lastName) > 0 THEN SELECT s.id INTO star_id FROM stars s WHERE s.last_name = lastName; ELSE /*Create Star Then Add */ INSERT INTO stars(first_name, last_name) VALUES('', lastName); SELECT LAST_INSERT_ID() INTO star_id; END IF; ELSE /* Both given */ IF (SELECT COUNT(*) FROM stars s WHERE s.first_name = firstName AND s.last_name = lastName) > 0 THEN SELECT s.id INTO star_id FROM stars s WHERE s.first_name = firstName AND s.last_name = lastName; ELSE /* Create Star then Add */ INSERT INTO stars(first_name, last_name) VALUES(firstName, lastName); SELECT LAST_INSERT_ID() INTO star_id; END IF; END IF; END IF; INSERT INTO stars_in_movies VALUES(star_id, ident); END//
f0a31b048761aa6243d2612fd9d12756844ce486
[ "Java", "SQL" ]
2
Java
nosammai/CS122B-Project3
9f1373c5411e400632c6318a72d197099b801a63
61f83d70a8a73fe2b5625387491d7f0ac2c68639
refs/heads/master
<file_sep>define(["jquery"],function($){ $(".info ul").each(function(){ $(this).slideUp(); }) $(".info ol").each(function(){ $(this).slideUp(); }) $(".info h2").on("click",function(){ change($(this),"span"); }) $(".info h3").on("click",function(){ change($(this),"span"); }) function change(obj1,obj2){ if(obj1.find(obj2).text()=="+"){ obj1.next().slideDown(); obj1.find(obj2).text("-"); }else{ obj1.next().slideUp(); obj1.find(obj2).text("+"); } } })
62aeb4cc74186f69986a500843ac15191ad64d63
[ "JavaScript" ]
1
JavaScript
sweetYZL/weekTest
5d767b7c5042ccd1b3df4b351990e458b9c52d95
13dd6d0de95a860b8564e6351c82633764fc469e
refs/heads/master
<file_sep>declare module namespace { export interface Definitions { } export interface Items { $id: string; type: string; title: string; description: string; default: string; examples: string[]; pattern: string; } export interface RootObject { $schema: string; $id: string; type: string; definitions: Definitions; title: string; description: string; items: Items; } } <file_sep>// To parse this data: // // import { Convert, SushiSwapRelayers } from "./file"; // // const sushiSwapRelayers = Convert.toSushiSwapRelayers(json); export interface SushiSwapRelayers { schema: string; id: string; type: string; definitions: Definitions; title: string; description: string; items: Items; } export interface Definitions { } export interface Items { id: string; type: string; title: string; description: string; default: string; examples: string[]; pattern: string; } // Converts JSON strings to/from your types export class Convert { public static toSushiSwapRelayers(json: string): SushiSwapRelayers { return JSON.parse(json); } public static sushiSwapRelayersToJson(value: SushiSwapRelayers): string { return JSON.stringify(value); } } <file_sep># sushiswap-relayers-list ```json { "$schema": "http://json-schema.org/draft-07/schema#", "$id": "http://finance.sushiswap.relayer/relayer.list.json", "type": "array", "definitions": {}, "title": "sushiswap relayer list", "description": "JSON format used as a registry of all sushiswap relayers", "items": { "$id": "#/address", "type": "string", "title": "Relayer Contract Address", "description": "The smart contract address for the relayer", "default": "", "examples": [ "0x686a01120827cae5230bb81d5c2a74667c8b7552", "0x9510eee077058d82239896899ca080a8b18a6457", "0xd3d5a9fc1c284167ed8306115451c15521c17a23" ], "pattern": "^([0-9a-f]{40})$" } } ```
26f34202ecdd8cdff84b370e42fb5be08cca32b9
[ "Markdown", "TypeScript" ]
3
TypeScript
sambacha/sushiswap-relayers-list
85960d48a42bd4d2661153c2856cedbc04d64d9f
6a652aa193b534d9e7317d8518f07a8a3c17a322
refs/heads/master
<repo_name>kevins1022/tpshop<file_sep>/Runtime/Cache/Home/9b704f822dd650dff93d491c8d637394.php <?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <title><?php echo ($meta_title); ?>_<?php echo C('WEB_SITE_TITLE');?></title> <head> <link href="/Public/Jf/css/style.css" rel="stylesheet" type="text/css" /> <link href="/Public/Jf/css/reset.css" rel="stylesheet" type="text/css" /> <link href="/Public/Jf/css/pager.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="/Public/Jf/js/jquery-1.7.2.min.js"></script> <script type="text/javascript" src="/Public/Jf/js/jquery.flexslider-min.js"></script> <script type="text/javascript" src="/Public/Jf/layer/layer.js"></script> <script type="text/javascript"> $(document).ready(function(){ $('.flexslider').flexslider({ directionNav: true, pauseOnAction: false }); }); </script> </head> <body> <!-- 主体 --> <div class="common_wrapper"> <div class="head"> <div class="top1"> <div class="box"> <?php if(empty(session('userId'))): ?> <a href="<?php echo U('User/login');?>">登录</a>&nbsp;&nbsp;&nbsp;<a href="<?php echo U('User/register');?>">免费注册</a>&nbsp;&nbsp;<a href="/index.php?s=">宝岛官网</a> <?php endif; ?> <?php if(!empty(session('userId'))): ?> <a href="<?php echo U('User/index');?>"><?php echo session('nickname'); ?></a>&nbsp;&nbsp;&nbsp;<a href="<?php echo U('User/logout');?>">退出</a>&nbsp;&nbsp;<a href="/index.php?s=">宝岛官网</a> <?php endif; ?> </div> </div><!--top1 end--> <div class="top2"> <a href="/index.php?s=" class="logo"><img src="/Public/Jf/images/logo.png"></a> <div class="nav"> <ul> <li><a href="/index.php?s=">积分商城首页</a></li> <li><a href="<?php echo U('Article/index', array('category'=>'jfdh'));?>">积分礼品</a></li> <li><a href="<?php echo U('Article/index', array('category'=>'jfhj'));?>">积分换券</a></li> <li><a href="<?php echo U('Article/index', array('category'=>'lphd'));?>">礼品活动</a></li> </ul> </div><!--nav end--> <div class="clear"></div> </div><!--top2 end--> </div> <div class="main"> <div style="height:38px;"></div> <div class="login_pic"><img src="/Public/Jf/images/img_login.jpg" /></div> <div class="login"> <div class="tit"> <span>请注册</span>已注册?&nbsp;<a href="{User/login}">登录</a> </div><!--tit end--> <form action="/index.php?s=/Home/User/register.html" method="post" id="reg_form" > <table border="0"> <tr height="58"> <td colspan="3"><input type="text" class="textbox1" name="username" placeholder="邮箱/手机号" /></td> </tr> <tr> <td colspan="3"> <input type="radio" name="sex" class="radio" checked value="1" /><span>先生</span> <input type="radio" name="sex" class="radio" value="0" style="margin-left:20px;" /><span>女士</span> </td> </tr> <tr height="58"> <td colspan="3"> <input name="password" type="<PASSWORD>" class="textbox1" placeholder="密码" /></td> </tr> <tr height="58"> <td colspan="3"> <input name="repassword" type="<PASSWORD>" class="textbox1" placeholder="确认密码" /> </td> </tr> <tr height="58"> <td width="153"><input type="text" class="textbox2" placeholder="验证码" name="verify" /></td> <td><img src="<?php echo U('User/verify');?>" class="yzm" id="yzm" style="cursor: pointer" /></td> </tr> <tr height="75"> <td colspan="3"><a href="javascript:;"><div class="btn" id="reg_sub">注册</div></a></td> </tr> <tr height="50"> <td colspan="3" class="sure"><input type="checkbox" class="checkbox" />我已阅读并接受<a href="">宝岛服务条款</a></td> </tr> </table> </form> <script> $("input").focus(function(){ $(this).css('border-color','#ff0000'); }); $("input").blur(function(){ $(this).css('border-color','#b3b3b3'); }); $("#yzm").click(function(){ var src = $("#yzm").attr("src"); $("#yzm").attr("src",src+"&random="+Math.random()); }); $("#reg_sub").click(function(){ $("#reg_form").submit(); }); </script> </div><!--login end--> <div class="clear" style="height:90px;"></div> </div><!--main end--> </div> <!-- /主体 --> <!-- 底部 --> <div class="foot"> <ul> <li><a href="/index.php?s=">积分商城首页</a></li> <li><a href="<?php echo U('Article/index', array('category'=>'jfdh'));?>">积分礼品</a></li> <li><a href="<?php echo U('Article/index', array('category'=>'jfhj'));?>">积分换券</a></li> <li><a href="<?php echo U('Article/index', array('category'=>'lphd'));?>">礼品活动</a></li> </ul> <div class="clear"></div> <p>Copyright© 2008-2014 bodo.com,All Rights Reserved 版权所有天津宝岛电动车 津ICP备12345678号-1 使用本网站即表示接受宝岛用户协议。</p> </div><!--foot end--></div> <!-- /底部 --> </body> </html><file_sep>/Runtime/Cache/Home/769e70f2e46f34ceb60619bbda5e4691.php <?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <title><?php echo ($meta_title); ?>_<?php echo C('WEB_SITE_TITLE');?></title> <head> <link href="/Public/Jf/css/style.css" rel="stylesheet" type="text/css" /> <link href="/Public/Jf/css/reset.css" rel="stylesheet" type="text/css" /> <link href="/Public/Jf/css/pager.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="/Public/Jf/js/jquery-1.7.2.min.js"></script> <script type="text/javascript" src="/Public/Jf/js/jquery.flexslider-min.js"></script> <script type="text/javascript" src="/Public/Jf/layer/layer.js"></script> <script type="text/javascript"> $(document).ready(function(){ $('.flexslider').flexslider({ directionNav: true, pauseOnAction: false }); }); </script> </head> <body> <!-- 主体 --> <div class="common_wrapper"> <div class="head"> <div class="top1"> <div class="box"> <?php if(empty(session('userId'))): ?> <a href="<?php echo U('User/login');?>">登录</a>&nbsp;&nbsp;&nbsp;<a href="<?php echo U('User/register');?>">免费注册</a>&nbsp;&nbsp;<a href="/index.php?s=">宝岛官网</a> <?php endif; ?> <?php if(!empty(session('userId'))): ?> <a href="<?php echo U('User/index');?>"><?php echo session('nickname'); ?></a>&nbsp;&nbsp;&nbsp;<a href="<?php echo U('User/logout');?>">退出</a>&nbsp;&nbsp;<a href="/index.php?s=">宝岛官网</a> <?php endif; ?> </div> </div><!--top1 end--> <div class="top2"> <a href="/index.php?s=" class="logo"><img src="/Public/Jf/images/logo.png"></a> <div class="nav"> <ul> <li><a href="/index.php?s=">积分商城首页</a></li> <li><a href="<?php echo U('Article/index', array('category'=>'jfdh'));?>">积分礼品</a></li> <li><a href="<?php echo U('Article/index', array('category'=>'jfhj'));?>">积分换券</a></li> <li><a href="<?php echo U('Article/index', array('category'=>'lphd'));?>">礼品活动</a></li> </ul> </div><!--nav end--> <div class="clear"></div> </div><!--top2 end--> <div class="flexslider"> <ul class="slides"> <li style="background:url(/Public/Jf/images/banner_01.jpg) 50% 0 no-repeat;"></li> <li style="background:url(/Public/Jf/images/banner_01.jpg) 50% 0 no-repeat;"></li> </ul> </div><!--flexslider end--> </div> <div class="main"> <div class="index_btn"> <ul> <li> <div class="ico"><img src="/Public/Jf/images/ico_01.png"></div> <div class="text2"> <p>快来玩转积分商城吧!<a href="login.html">登录</a></p> <a href="register.html"><div class="btn">免费注册</div></a> </div><!--text2 end--> </li> <li> <a href="gift.html"> <div class="ico"><img src="/Public/Jf/images/ico_02.png"></div> <div class="text">兑换礼品</div><!--text end--> </a> </li> <li> <a href="ticket.html"> <div class="ico"><img src="/Public/Jf/images/ico_03.png"></div> <div class="text">兑换礼券</div><!--text end--> </a> </li> <li> <a href="<?php echo U('rule');?>"> <div class="ico"><img src="/Public/Jf/images/ico_04.png"></div> <div class="text">积分规则</div><!--text end--> </a> </li> </ul> <div class="clear"></div> </div><!--index_btn end--> <div class="index_title"><img src="/Public/Jf/images/index_tit_01.png"><a href="gift.html">查看更多礼品&gt;&gt;</a></div><!--index_title end--> <div class="search" align="center"> <a href="">全部</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="">0-4000</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="">4000-8000</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="">8000以上</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;积分: <input type="text">&nbsp;至&nbsp;<input type="text"> <a href="" class="btn">查询</a> </div><!--search end--> <div class="index_list"> <ul> <?php foreach($jflp as $key => $value): ?> <li> <?php $jfdhPro = M('DocumentProduct')->find($value['id']); ?> <?php $pic=M('Picture')->field('path')->find($value['cover_id']); ?> <div class="pic" style="background:url(<?php echo $pic['path']; ?>) no-repeat;"> <img src=""></div> <div class="tit"> <?php echo $value['title']; ?> </div> <a href="<?php echo U('article/detail',array('id'=>$value['id']));?>"><div class="btn">立即购买</div></a> <div class="points"><span><?php echo $jfdhPro['jifen']; ?></span>积分&nbsp;或&nbsp;<span><?php echo $jfdhPro['marketprice']; ?></span>RMB</div> </li> <?php endforeach; ?> </ul> <div class="clear"></div> </div><!--index_list end--> <div class="index_title"><img src="/Public/Jf/images/index_tit_02.png"><a href="activity.html">查看更多礼品&gt;&gt;</a></div><!--index_title end--> <div class="search" align="center"> <a href="">全部</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="">0-4000</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="">4000-8000</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="">8000以上</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;积分: <input type="text">&nbsp;至&nbsp;<input type="text"> <a href="" class="btn">查询</a> </div><!--search end--> <div class="index_list"> <ul> <?php foreach($lphd as $key => $value): ?> <li> <?php $jfdhPro = M('DocumentProduct')->find($value['id']); ?> <?php $pic=M('Picture')->field('path')->find($value['cover_id']); ?> <div class="pic" style="background:url(<?php echo $pic['path']; ?>) no-repeat;"> <img src=""></div> <div class="tit"> <?php echo $value['title']; ?> </div> <a href="<?php echo U('article/detail',array('id'=>$value['id']));?>"><div class="btn">立即购买</div></a> <div class="points"><span><?php echo $jfdhPro['jifen']; ?></span>积分&nbsp;或&nbsp;<span><?php echo $jfdhPro['marketprice']; ?></span>RMB</div> </li> <?php endforeach; ?> </ul> <div class="clear"></div> </div><!--index_list end--> <div class="index_title"><img src="/Public/Jf/images/index_tit_03.png"></div><!--index_title end--> <div class="index_list2"> <ul> <?php foreach($jfhq as $key => $value): ?> <?php $jfdhPro = M('DocumentProduct')->find($value['id']); ?> <?php $pic=M('Picture')->field('path')->find($value['cover_id']); ?> <li><a href="<?php echo U('article/detail',array('id'=>$value['id']));?>"> <img style="width:283px; height: 113px" src="<?php echo $pic['path']; ?>"></a></li> <?php endforeach; ?> </ul> <div class="clear"></div> </div><!--index_list2 end--> </div> </div> <!-- /主体 --> <!-- 底部 --> <div class="foot"> <ul> <li><a href="/index.php?s=">积分商城首页</a></li> <li><a href="<?php echo U('Article/index', array('category'=>'jfdh'));?>">积分礼品</a></li> <li><a href="<?php echo U('Article/index', array('category'=>'jfhj'));?>">积分换券</a></li> <li><a href="<?php echo U('Article/index', array('category'=>'lphd'));?>">礼品活动</a></li> </ul> <div class="clear"></div> <p>Copyright© 2008-2014 bodo.com,All Rights Reserved 版权所有天津宝岛电动车 津ICP备12345678号-1 使用本网站即表示接受宝岛用户协议。</p> </div><!--foot end--></div> <!-- /底部 --> </body> </html><file_sep>/Runtime/Cache/Home/c860508c2ebd9b7e4ea457b499dcef94.php <?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <title><?php echo ($meta_title); ?>_<?php echo C('WEB_SITE_TITLE');?></title> <head> <link href="/Public/Jf/css/style.css" rel="stylesheet" type="text/css" /> <link href="/Public/Jf/css/reset.css" rel="stylesheet" type="text/css" /> <link href="/Public/Jf/css/pager.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="/Public/Jf/js/jquery-1.7.2.min.js"></script> <script type="text/javascript" src="/Public/Jf/js/jquery.flexslider-min.js"></script> <script type="text/javascript" src="/Public/Jf/layer/layer.js"></script> <script type="text/javascript"> $(document).ready(function(){ $('.flexslider').flexslider({ directionNav: true, pauseOnAction: false }); }); </script> </head> <body> <!-- 主体 --> <div class="common_wrapper"> <meta name="description" content="<?php echo C('WEB_SITE_DESCRIPTION');?>"> <meta name="keywords" content="<?php echo C('WEB_SITE_KEYWORD');?>"/> <div class="head"> <div class="top1"> <div class="box"> <?php if(empty(session('userId'))): ?> <a href="<?php echo U('User/login');?>">登录</a>&nbsp;&nbsp;&nbsp;<a href="<?php echo U('User/register');?>">免费注册</a>&nbsp;&nbsp;<a href="/index.php?s=">宝岛官网</a> <?php endif; ?> <?php if(!empty(session('userId'))): ?> <a href="<?php echo U('User/index');?>"><?php echo session('nickname'); ?></a>&nbsp;&nbsp;&nbsp;<a href="<?php echo U('User/logout');?>">退出</a>&nbsp;&nbsp;<a href="/index.php?s=">宝岛官网</a> <?php endif; ?> </div> </div><!--top1 end--> <div class="top2"> <a href="/index.php?s=" class="logo"><img src="/Public/Jf/images/logo.png"></a> <div class="nav"> <ul> <li><a href="/index.php?s=">积分商城首页</a></li> <li><a href="<?php echo U('Article/index', array('category'=>'jfdh'));?>">积分礼品</a></li> <li><a href="<?php echo U('Article/index', array('category'=>'jfhj'));?>">积分换券</a></li> <li><a href="<?php echo U('Article/index', array('category'=>'lphd'));?>">礼品活动</a></li> </ul> </div><!--nav end--> <div class="clear"></div> </div><!--top2 end--> </div> <div class="main"> <div class="position"> 您现在的位置是:&nbsp;<a href="index.html">积分商城首页</a>&nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp;&nbsp;&nbsp;<a href="gift.html">积分礼品</a>&nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp;&nbsp;&nbsp;<a href="product.html">INBIKE骑行头盔</a> </div><!--position end--> <div class="product"> <form id="good_form"> <div class="pic"><img src="<?php echo (get_cover($info["cover_id"],'path')); ?>" width="280" height="313"></div> <div class="right"> <div class="price"> <p class="tit"><?php echo ($info["title"]); ?></p> <p class="old">市场价: <?php echo ($info["marketprice"]); ?> </p> <p class="new">兑换积分:<span><span><?php echo ($info["jifen"]); ?></span>分</span></p> </div><!--price end--> <div class="number"> <font style="float:left;line-height:37px;">兑换数量:</font> <input class="min" name="" type="button" value=""> <input class="text_box" name="good_num" type="text" value="1"> <input type="hidden" value="<?php echo ($info["id"]); ?>" name="good_id"/> <input class="add" type="button" value=""> <div class="clear"></div> </div><!--number end--> <script> $(function(){ $(".add").click(function(){ var t=$(this).parent().find('input[class*=text_box]'); console.log(t.val()); t.val(parseInt(t.val())+1) //setTotal(); }) $(".min").click(function(){ var t=$(this).parent().find('input[class*=text_box]'); t.val(parseInt(t.val())-1) if(parseInt(t.val())<0){ t.val(0); } setTotal(); }) function setTotal(){ var s=0; $("tr").each(function(){ s+=parseInt($(this).find('input[class*=text_box]').val())*parseFloat($(this).find('span[class*=price]').text()); }); $("#total").html(s.toFixed(2)); } setTotal(); }) </script> <a href="javascript:;" id="jf_dh"><img src="/Public/Jf/images/btn1.png"></a> <a href="" style="margin-left:5px;"><img src="/Public/Jf/images/btn2.png"></a> </div><!--right end--> <div class="clear"></div> </div><!--product end--> </form> <div class="productinfo"> <div class="tit">商品信息</div> <div class="textinfo"> <?php echo ($info["content"]); ?> </div><!--textinfo end--> </div><!--productinfo end--> </div> <script> $(function(){ $("#jf_dh").click(function(){ data = $("#good_form").serialize(); $.ajax({ url: "<?php echo U('ajax_order');?>", data: data, type: "POST", success: function (msg) { if(msg == 1){ layer.alert("兑换成功",{icon:6}); }else if(msg == 2){ layer.alert("积分不足",{icon:5}); }else if(msg == 3){ layer.alert("请先登录",{icon:5}); window.location.href="<?php echo U('User/register');?>"; }else if(msg ==6 ){ layer.alert('请填写收获地址', {icon:5}); window.location.href="<?php echo U('User/shopAddress');?>" }else{ layer.alert('非法请求'); } } }); }); }); </script> </div> <!-- /主体 --> <!-- 底部 --> <div class="foot"> <ul> <li><a href="/index.php?s=">积分商城首页</a></li> <li><a href="<?php echo U('Article/index', array('category'=>'jfdh'));?>">积分礼品</a></li> <li><a href="<?php echo U('Article/index', array('category'=>'jfhj'));?>">积分换券</a></li> <li><a href="<?php echo U('Article/index', array('category'=>'lphd'));?>">礼品活动</a></li> </ul> <div class="clear"></div> <p>Copyright© 2008-2014 bodo.com,All Rights Reserved 版权所有天津宝岛电动车 津ICP备12345678号-1 使用本网站即表示接受宝岛用户协议。</p> </div><!--foot end--></div> <!-- /底部 --> </body> </html><file_sep>/Application/Home/Controller/ActivityController.class.php <?php // +---------------------------------------------------------------------- // | yershop [ WE CAN DO IT JUST THINK IT ] // +---------------------------------------------------------------------- // | Copyright (c) 2013 http://www.onethink.cn All rights reserved. // +---------------------------------------------------------------------- // | Author: 烟消云散 <<EMAIL>> // +---------------------------------------------------------------------- namespace Home\Controller; use Think\Controller; class ActivityController extends Controller { /* 商品预约处理操作 */ public function index($cellphone='') { $reserve = M('reserve'); $cellphone=I('post.phone'); $goodid=I('post.goodid'); $map['cellphone'] = $cellphone; $map['goodid'] = $goodid; $info=$reserve->where($map)->find(); if ( empty($info) ) { $data['cellphone'] = $cellphone; $data['create_time'] = NOW_TIME; $data['status'] = 1; $data['goodid'] = $goodid; $data['title'] = get_good_name($goodid); $reserve->add($data); $data['info']='预约成功!'; } else{ $data['status'] = -1; $data['info']='您已经预约过了!'; } $this->ajaxreturn($data); } }<file_sep>/Runtime/Cache/Home/101a520ac446b48d7a87266436dd71e7.php <?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <title><?php echo ($meta_title); ?>_<?php echo C('WEB_SITE_TITLE');?></title> <head> <link href="/Public/Jf/css/style.css" rel="stylesheet" type="text/css" /> <link href="/Public/Jf/css/reset.css" rel="stylesheet" type="text/css" /> <link href="/Public/Jf/css/pager.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="/Public/Jf/js/jquery-1.7.2.min.js"></script> <script type="text/javascript" src="/Public/Jf/js/jquery.flexslider-min.js"></script> <script type="text/javascript" src="/Public/Jf/layer/layer.js"></script> <script type="text/javascript"> $(document).ready(function(){ $('.flexslider').flexslider({ directionNav: true, pauseOnAction: false }); }); </script> </head> <body> <!-- 主体 --> <div class="common_wrapper"> <div class="head"> <div class="top1"> <div class="box"> <?php if(empty(session('userId'))): ?> <a href="<?php echo U('User/login');?>">登录</a>&nbsp;&nbsp;&nbsp;<a href="<?php echo U('User/register');?>">免费注册</a>&nbsp;&nbsp;<a href="/index.php?s=">宝岛官网</a> <?php endif; ?> <?php if(!empty(session('userId'))): ?> <a href="<?php echo U('User/index');?>"><?php echo session('nickname'); ?></a>&nbsp;&nbsp;&nbsp;<a href="<?php echo U('User/logout');?>">退出</a>&nbsp;&nbsp;<a href="/index.php?s=">宝岛官网</a> <?php endif; ?> </div> </div><!--top1 end--> <div class="top2"> <a href="/index.php?s=" class="logo"><img src="/Public/Jf/images/logo.png"></a> <div class="nav"> <ul> <li><a href="/index.php?s=">积分商城首页</a></li> <li><a href="<?php echo U('Article/index', array('category'=>'jfdh'));?>">积分礼品</a></li> <li><a href="<?php echo U('Article/index', array('category'=>'jfhj'));?>">积分换券</a></li> <li><a href="<?php echo U('Article/index', array('category'=>'lphd'));?>">礼品活动</a></li> </ul> </div><!--nav end--> <div class="clear"></div> </div><!--top2 end--> </div> <div class="line2"></div> <div class="main"> <div class="position"> 您现在的位置是:&nbsp;<a href="index.html">积分商城首页</a>&nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp;&nbsp;&nbsp;<a href="personal_01.html">个人中心</a> </div><!--position end--> <div class="personal"> <div class="personal_left"> <div class="title">个人中心</div> <ul> <li><a href="<?php echo U('User/index');?>">我的资料</a></li> <li><a href="<?php echo U('User/shopAddress');?>">收货地址</a></li> <li><a href="<?php echo U('User/jfManage');?>">积分管理</a></li> <li><a href="<?php echo U('User/ordList');?>">我的订单</a></li> </ul> </div><!--personal_left end--> <div class="personal_right"> <div class="right_top"><div class="title">我的资料</div></div> <div class="right_info"> <form method="post" action="/index.php?s=/Home/User/index.html" id="pro_form"> <div class="personal_table"> <table border="0"> <tbody><tr height="50"> <td align="right"><span>*</span>姓名:</td> <td><input type="text" class="textbox1" name="truename" value="<?php echo $data['truename'] ?>"></td> </tr> <tr height="50"> <td align="right"><span>*</span>性别:</td> <td> <input type="radio" class="radio" name="sex" value="1" <?php if($data['sex'] == 1): ?> checked="" <?php endif; ?>><font>男</font> <input type="radio" class="radio" name="sex" value="0" <?php if($data['sex'] == 0): ?> checked="" <?php endif; ?> ><font>女</font> </td> </tr> <tr height="50"> <td align="right"><span>*</span>生日:</td> <td> <select class="select1" name="birthday[year]" id="birthday_year"> <option>请选择</option> <?php for($i=2015;$i>1950;$i--): ?> <option value="<?php echo $i ?>"><?php echo $i; ?></option> <?php endfor; ?> </select> 年 <select class="select2" name="birthday[mon]" id="birthday_mon"> <option>请选择</option> <?php for($i=1;$i<13;$i++): ?> <option value="<?php echo $i ?>"><?php echo $i; ?></option> <?php endfor; ?> </select> 月 <select class="select2" name="birthday[day]" id="birthday_day"> <option>请选择</option> <?php for($i=1;$i<32;$i++): ?> <option value="<?php echo $i ?>"><?php echo $i; ?></option> <?php endfor; ?> </select> 日 </td> </tr> <tr height="50"> <td align="right"><span>*</span>移动电话:</td> <td><input type="text" class="textbox1" name="phone" value="<?php echo $data['phone'] ?>"></td> </tr> <tr height="50"> <td align="right">固定电话:</td> <td><input type="text" class="textbox1" name="gddh" value="<?php echo $data['gddh'] ?>"></td> </tr> <tr height="50"> <td align="right"><span>*</span>所在地地址:</td> <td><input type="text" class="textbox2" name='address' value="<?php echo $data['address']?>"></td> </tr> <tr height="50"> <td align="right"><span>*</span>邮箱:</td> <td><input type="text" class="textbox1" name="email" value="<?php echo $data['email'] ?>"></td> </tr> <tr height="50"> <td>&nbsp;</td> <td valign="top" style="color:#b2b2b2;">请填写有效邮箱地址,以便接收唯品会的通知及订单信息,建议使用常用邮箱</td> </tr> </tbody></table> </div><!--personal_table end--> <div align="center" class="personal_btn"> <input type="submit" value="提交" class="button" style="cursor: pointer"> <input type="reset" class="reset"> </div> </form> </div><!--right_info end--> </div><!--personal_right end--> <div class="clear"></div> </div><!--personal end--> </div> <?php $birthday = $data['birthday']; $birthday = explode('-', $birthday); ?> <script> $(function(){ $("#birthday_year").val('<?php echo $birthday[0] ?>'); $("#birthday_mon").val('<?php echo $birthday[1] ?>'); $("#birthday_day").val('<?php echo $birthday[2] ?>'); }); </script> </div> <!-- /主体 --> <!-- 底部 --> <div class="foot"> <ul> <li><a href="/index.php?s=">积分商城首页</a></li> <li><a href="<?php echo U('Article/index', array('category'=>'jfdh'));?>">积分礼品</a></li> <li><a href="<?php echo U('Article/index', array('category'=>'jfhj'));?>">积分换券</a></li> <li><a href="<?php echo U('Article/index', array('category'=>'lphd'));?>">礼品活动</a></li> </ul> <div class="clear"></div> <p>Copyright© 2008-2014 bodo.com,All Rights Reserved 版权所有天津宝岛电动车 津ICP备12345678号-1 使用本网站即表示接受宝岛用户协议。</p> </div><!--foot end--></div> <!-- /底部 --> </body> </html><file_sep>/Application/Home/Controller/UserController.class.php <?php namespace Home\Controller; use User\Api\UserApi; /** * 用户控制器 * 包括用户中心,用户登录及注册 */ class UserController extends HomeController { /* 用户中心首页 */ public function index() { if(empty(session('nickname')) || empty(session('userId'))){ $this->error("非法请求"); } if(IS_POST){ extract($_POST); //var_dump($_POST); // echo "<br>"; $data = array( 'uid' => session('userId'), 'truename' =>$truename, 'sex' => $sex, 'birthday' => $birthday['year'].'-'.$birthday['mon'].'-'.$birthday['day'], 'email' => $email, 'phone' => $phone, 'gddh' => $gddh, 'address' => $address ); //var_dump($data); //die(); $row = M('member')->save($data); if($row){ $this->success('更新成功', U('User/index')); }else{ $this->error("更新失败", U('User/index')); } } $uid = session('userId'); $data = M('member')->find($uid); $this->data = $data; $this->display(); } /** * 收获地址 */ public function shopAddress(){ if(empty(session('nickname')) || empty(session('userId'))){ $this->error("非法请求"); } $id = session('userId'); if(IS_POST){ extract($_POST); $data = array( //'uid' => $id, 'phone' =>$phone, 'address' =>$address, 'truename' => $truename ); if(M('userShopAdd')->where("uid=$id")->find()){ $row = M('userShopAdd')->where("uid=$id")->save($data); if($row){ $this->success("更新成功",U('user/shopAddress')); die(); }else{ $this->error("更新失败"); } }else{ $data['uid'] = $id; $row = M('userShopAdd')->add($data); if($row){ $this->success("添加成功",U('user/shopAddress')); die(); }else{ $this->error("添加失败"); } } } $data = M('userShopAdd')->where("uid=$id")->find(); $this->data = $data; $this->display(); } /** * 积分管理 */ public function jfManage(){ if(empty(session('nickname')) || empty(session('userId'))){ $this->error("非法请求"); } $id = session('userId'); $row = M('Member')->find($id); if($row){ $this->data = $row; }else{ $this->error("非法请求"); } $this->display(); } public function jfChange(){ if(empty(session('nickname')) || empty(session('userId'))){ $this->error("请登录后兑换",U('login')); } if(IS_POST){ $uid = session('userId'); $map = $_POST; $row = M("jfquan")->where($map)->find(); //var_dump($row); //die(); if($row){ $member = M('member')->field('jifen')->find($uid); $data['jifen'] = $_POST['jifen'] + $member['jifen']; $data['uid'] = $uid; // var_dump($data); // die(); $res1 = M('member')->save($data); $data_jf['status'] = 1; $data_jf['id'] = $row['id']; $res2 = M('jfquan')->save($data_jf); if($res1 && $res2){ $this->success("积分兑换成功!"); die(); }else{ $this->error("积分兑换失败!"); } }else{ $this->error("兑换码不存在"); } } $this->display(); } /** * 订单中心 */ public function ordList(){ $uid = session('userId'); $jforder = M("jforder")->order("id desc")->where("uid=$uid")->select(); $this->data = $jforder; $this->display(); } /* 注册页面 */ public function register($username = "", $password = "", $repassword = "", $email = "", $verify = "") { if (!C("USER_ALLOW_REGISTER")) { $this->error("注册已关闭"); } if (IS_POST) { //注册用户 /* 检测验证码 */ extract($_POST); if (!check_verify($verify)) { $this->error("验证码输入错误!"); } /* 检测密码 */ if ($password != $repassword) { $this->error("密码和重复密码不一致!"); } $data['nickname'] = $username; $data['password'] = md5($<PASSWORD>); $data['sex'] =$sex; $res = M('member')->add($data); //var_dump($res); if ($res) { session('nickname',$data['nickname']); session('userId',$res['uid']); $this->success("注册成功!", U('User/index')); } else { $this->error("注册失败,请重新注册!"); } } else { $this->meta_title = '会员注册'; $this->display(); } } /* 登录页面 */ public function login($username = "", $password = "", $verify = "") { if (IS_POST) { extract($_POST); $data['nickname'] = $nickname; $data['password'] = md5($<PASSWORD>); $memberModel = M("member"); //var_dump($data); $res = $memberModel->where($data)->find(); if($res){ session('nickname', $data['nickname']); //var_dump($res); session('userId', $res['uid']); $this->success("登录成功", U('User/index')); }else{ $this->error("用户名或密码错误"); } } else { $this->meta_title = '会员登录'; $this->display(); } } /* 退出登录 */ public function logout() { if (!empty(session('nickname'))) { session('nickname',null); session('userId',null); $_SESSION = array(); session_destroy(); $this->success("退出成功!", U('User/login')); } else { $this->redirect("User/login"); } } /* 验证码,用于登录和注册 */ public function verify() { $config = array( 'fontSize' => 15, // 验证码字体大小 'length' => 4, // 验证码位数 'useNoise' => false, // 关闭验证码杂点 'imageW' => '120', 'imageH' => '30', 'useCurve' => false, '' ); $verify = new \Think\Verify($config); $verify->entry(1); } /** * 忘记密码第一步 */ public function forget1(){ $this->display(); } public function forget1_ajax(){ if(IS_AJAX){ extract($_POST); if (!check_verify($verify)) { echo 1; //1表示验证码错误 die(); } $map['nickname'] = $email; $row = M('member')->where($map)->find(); if(!$row){ echo 2;//用户不存在 die(); } $rand = array_merge(range('a','z'),range(0,9)); $chars = join('',$rand); $chars = str_shuffle($chars); //var_dump($chars); $chars = substr($chars,0,6); session('mail_yzm', $chars); session('user_email',$email); $res = sendMail($email,"验证码",$chars); if($res){ echo 3; }else{ echo 4; } } } /** * 忘记密码第二步 */ public function forget2(){ $this->display(); } public function forget2_ajax(){ if(IS_AJAX){ $mail_yzm = session('mail_yzm'); // var_dump($mail_yzm); // var_dump($_POST['email_yzm']); if($mail_yzm == $_POST['email_yzm']){ session('pass_2','true'); echo 1;//验证码验证成功 }else{ echo 2;//验证码验证失败 } }else{ $this->error("非法请求"); } } /** * 忘记密码第三步 */ public function forget3(){ if(session('pass_2')=='true'){ $this->display(); }else{ $this->error("非法请求"); } } public function forget3_ajax(){ if(IS_AJAX){ $data['password'] = md5($_POST['password']); $map['nickname'] = session('user_email'); $row = M('member')->where($map)->save($data); if($row){ session('pass_3', 'true'); echo 1; }else{ echo 2; } }else{ $this->error("非法请求"); } } /** * 忘记密码第四步 */ public function forget4(){ if(session('pass_3')=='true'){ $_SESSION=array(); session_destroy(); $this->display(); }else{ $this->error("非法请求"); } } public function cart() { $cart = $_SESSION["cart"]; if ($cart) { foreach ($cart as $k => $val) { $id = $val["id"]; $table->goodid = $id; $member = D("member"); $uid = $member->uid(); $table->uid = $uid; $table->partnerid = get_partnerid($uid); $num = M("shopcart")->where("goodid='$id'")->getField("num"); if ($num) { $table->num = $val["num"] + $num; $table->save(); } else { $table->num = $val["num"]; $table->add(); } } return $uid; } } /** * 修改密码提交 * @author huajie <<EMAIL>> */ public function profile() { if (!is_login()) { $this->error("您还没有登陆", U("User/login")); } if (IS_POST) { //获取参数 $uid = is_login(); $password = I("<PASSWORD>"); $repassword = I("post.re<PASSWORD>"); $data["password"] = I("<PASSWORD>"); empty($password) && $this->error("请输入原密码"); empty($data["password"]) && $this->error("请输入新密码"); empty($repassword) && $this->error("请输入确认密码"); if ($data["password"] !== $repassword) { $this->error("您输入的新密码与确认密码不一致"); } $Api = new UserApi(); $res = $Api->updateInfo($uid, $password, $data); if ($res['status']) { $this->success("修改密码成功!"); } else { $this->error($res["info"]); } } else { $this->meta_title = '修改密码'; $this->display(); } } public function checkcode() { /***接受代码统计 */ $code = $_POST["couponid"]; $fcoupon = M("fcoupon"); $id = $fcoupon->where("code='$code' ")->getfield("id"); /***获取优惠券id,优惠券存在 */ if (isset($id)) { $member = D("member"); $uid = $member->uid(); $coupon = M("usercoupon"); /***用户优惠券存在 */ if ($coupon->where("uid='$uid'and couponid='$id' and status='1'")->select()) { $data["info"] = "该优惠券可以使用"; $data["msg"] = "yes"; $data["status"] = "1"; $this->ajaxreturn($data); } else { $data["info"] = "该优惠券已使用或未领取"; $data["msg"] = "no"; $data["status"] = "1"; $this->ajaxreturn($data); } } /***获取优惠券id,优惠券不存在 */ else { $data["info"] = "查询不到该优惠券"; $data["msg"] = "out of date"; $data["status"] = "1"; $this->ajaxreturn($data); } } /*****领优惠券 ***************/ public function getcoupon() { $id = $_POST["couponid"]; $member = D("member"); $uid = $member->uid(); $coupon = M("usercoupon"); if ($coupon->where("uid='$uid'and couponid='$id'")->select()) { $data["msg"] = "已领取过"; $data["status"] = "0"; $this->ajaxreturn($data); } else { $data["uid"] = $uid; $data["couponid"] = $id; $data["time"] = NOW_TIME; $data["status"] = "1"; $data["info"] = "未使用"; $coupon->add($data); $data["msg"] = "已成功领取,请刷新查看"; $this->ajaxreturn($data); } } public function cut() { if (!is_login()) { $this->error("您还没有登陆", U("User/login")); } $member = D("member"); $uid = $member->uid(); $info = M("ucenter_member")->where("id='$uid'")->find(); $this->assign('info', $info); $this->meta_title = '修改图像'; $this->display(); } public function saveface() { if (IS_POST) { $member = D("member"); $uid = $member->uid(); $data["face"] = I("post.face"); $res = M("UcenterMember")->where("id='$uid'")->setField('face', $data["face"]); if ($res) { $this->success("修改成功!" . $res); } else { $this->error('修改失败' . $face); } } } } <file_sep>/Runtime/Cache/Home/5231e2bbdb7b9edc1f0f29f2bbab2a6e.php <?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <title><?php echo ($meta_title); ?>_<?php echo C('WEB_SITE_TITLE');?></title> <head> <link href="/Public/Jf/css/style.css" rel="stylesheet" type="text/css" /> <link href="/Public/Jf/css/reset.css" rel="stylesheet" type="text/css" /> <link href="/Public/Jf/css/pager.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="/Public/Jf/js/jquery-1.7.2.min.js"></script> <script type="text/javascript" src="/Public/Jf/js/jquery.flexslider-min.js"></script> <script type="text/javascript" src="/Public/Jf/layer/layer.js"></script> <script type="text/javascript"> $(document).ready(function(){ $('.flexslider').flexslider({ directionNav: true, pauseOnAction: false }); }); </script> </head> <body> <!-- 主体 --> <div class="common_wrapper"> <div class="head"> <div class="top1"> <div class="box"> <?php if(empty(session('userId'))): ?> <a href="<?php echo U('User/login');?>">登录</a>&nbsp;&nbsp;&nbsp;<a href="<?php echo U('User/register');?>">免费注册</a>&nbsp;&nbsp;<a href="/index.php?s=">宝岛官网</a> <?php endif; ?> <?php if(!empty(session('userId'))): ?> <a href="<?php echo U('User/index');?>"><?php echo session('nickname'); ?></a>&nbsp;&nbsp;&nbsp;<a href="<?php echo U('User/logout');?>">退出</a>&nbsp;&nbsp;<a href="/index.php?s=">宝岛官网</a> <?php endif; ?> </div> </div><!--top1 end--> <div class="top2"> <a href="/index.php?s=" class="logo"><img src="/Public/Jf/images/logo.png"></a> <div class="nav"> <ul> <li><a href="/index.php?s=">积分商城首页</a></li> <li><a href="<?php echo U('Article/index', array('category'=>'jfdh'));?>">积分礼品</a></li> <li><a href="<?php echo U('Article/index', array('category'=>'jfhj'));?>">积分换券</a></li> <li><a href="<?php echo U('Article/index', array('category'=>'lphd'));?>">礼品活动</a></li> </ul> </div><!--nav end--> <div class="clear"></div> </div><!--top2 end--> <div class="flexslider"> <ul class="slides"> <li style="background:url(/Public/Jf/images/banner_01.jpg) 50% 0 no-repeat;"></li> <li style="background:url(/Public/Jf/images/banner_01.jpg) 50% 0 no-repeat;"></li> </ul> </div><!--flexslider end--> </div> <div class="main"> <a href="" class="btn_me"><img src="/Public/Jf/images/btn_me.png"></a> <div class="position"> 您现在的位置是:&nbsp;<a href="index.html">积分商城首页</a>&nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp;&nbsp;&nbsp;<a href="gift.html">积分礼品</a> </div><!--position end--> <div class="search2"> <span>礼品积分分段:</span>&nbsp;&nbsp; <a href="">全部</a>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp; <a href="">0-4000</a>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp; <a href="">4000-8000</a>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp; <a href="">8000以上</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 积分:<input type="text">&nbsp;至&nbsp;<input type="text"> <a href="" class="btn">查询</a> </div><!--search2 end--> <div class="sort"> <span>排序:</span> <a href=""><div class="btn">默认</div></a> <a href=""><div class="btn">最新</div></a> <a href=""><div class="btn">最热</div></a> <a href=""><div class="btn" style="width:90px; background:url(/Public/Jf/images/arrow.jpg) no-repeat center right;">积分</div></a> <div class="clear"></div> </div><!--sort end--> <div class="line"></div> <div class="index_list"> <ul> <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "暂时没有数据" ;else: foreach($__LIST__ as $key=>$list): $mod = ($i % 2 );++$i;?><li> <div class="pic" style="background:url(<?php echo (get_cover($list["cover_id"],'path')); ?>) no-repeat;"></div><!--pic end--> <div class="tit"><?php echo ($list["title"]); ?></div> <a href="<?php echo U('Article/detail?id='.$list['id']);?>"><div class="btn">立即购买</div></a> <div class="points"><span><?php echo ($list["jifen"]); ?></span>积分&nbsp;或&nbsp;<span><?php echo ($list["price"]); ?></span>RMB</div> </li><?php endforeach; endif; else: echo "暂时没有数据" ;endif; ?> </ul> <div class="clear"></div> </div><!--index_list end--> <div id="pager"> <ul class="pages"> <?php echo ($page); ?> </div> <div class="clear"></div> <script type="text/javascript" language="javascript"> $(document).ready(function() { $("#pager").pager({ pagenumber: 1, pagecount: 15, buttonClickCallback: PageClick }); }); PageClick = function(pageclickednumber) { $("#pager").pager({ pagenumber: pageclickednumber, pagecount: 15, buttonClickCallback: PageClick }); $(".index_list").html(); } </script> </div> </div> <!-- /主体 --> <!-- 底部 --> <div class="foot"> <ul> <li><a href="/index.php?s=">积分商城首页</a></li> <li><a href="<?php echo U('Article/index', array('category'=>'jfdh'));?>">积分礼品</a></li> <li><a href="<?php echo U('Article/index', array('category'=>'jfhj'));?>">积分换券</a></li> <li><a href="<?php echo U('Article/index', array('category'=>'lphd'));?>">礼品活动</a></li> </ul> <div class="clear"></div> <p>Copyright© 2008-2014 bodo.com,All Rights Reserved 版权所有天津宝岛电动车 津ICP备12345678号-1 使用本网站即表示接受宝岛用户协议。</p> </div><!--foot end--></div> <!-- /底部 --> </body> </html>
0624c7b039691e83f1169c918c7607f1d1b36288
[ "PHP" ]
7
PHP
kevins1022/tpshop
700eb098d28e8da70ba3be17b9a204f9e3605938
f5453b98394e398fdea6bf8b842e2bfa46262d9c
refs/heads/master
<file_sep>import re def clean(text): text = re.sub("\d:\d+:\d+\.\d S(\d+|\?): ", "", text) text = re.sub("\[.+?\]", "", text) text = re.sub("\-", " ", text) text = re.sub("\s{2,}", " ", text) return text.strip() with open(transcript) as fh: lines = fh.readlines() lines = [clean(line) for line in lines] lines = [line for line in lines if len(line.strip()) > 0] raw_text = ' '.join(lines) <file_sep># Posdcast-Data Clean podcast data
7c69c6690c46ffbe7ec62db57a4a780bc9b6393e
[ "Markdown", "Python" ]
2
Python
braindead/Podcast-Data
996b607dc3acadad9f60ab32c2b4322b2d4917a8
6ebf1e84172f4c32f39d49a48e3bd22a7858c249
refs/heads/master
<file_sep>package com.spideriot.kkt.utils; import android.content.Context; import android.util.DisplayMetrics; import android.view.WindowManager; import com.spideriot.kkt.KktApplication; public class ScreenUtil { public static int[] getScreenSize() { WindowManager wm = (WindowManager) KktApplication.getInstance() .getSystemService(Context.WINDOW_SERVICE); DisplayMetrics out = new DisplayMetrics(); assert wm != null; wm.getDefaultDisplay().getRealMetrics(out); return new int[]{out.widthPixels, out.heightPixels}; } } <file_sep>package com.spideriot.kkt; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentTransaction; import android.support.v7.app.AppCompatActivity; import android.widget.RadioButton; import android.widget.RadioGroup; import com.spideriot.kkt.fragment.HomeExchangeFragment; import com.spideriot.kkt.fragment.HomeMineFragment; import com.spideriot.kkt.fragment.HomeProfitFragment; import com.spideriot.kkt.fragment.HomePromoteFragment; public class MainActivity extends AppCompatActivity { private final Fragment[] fragments = { HomeProfitFragment.newInstance(), HomePromoteFragment.newInstance(), HomeExchangeFragment.newInstance(), HomeMineFragment.newInstance() }; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); ((RadioButton) findViewById(R.id.profit)).setChecked(true); // final ViewPager viewPager = findViewById(R.id.viewPager); // viewPager.setAdapter(new FragmentPagerAdapter(getSupportFragmentManager()) { // @Override // public int getCount() { // return titles.length; // } // // @Override // public CharSequence getPageTitle(int position) { // return titles[position]; // } // // @Override // public Fragment getItem(int position) { // return fragments[position]; // } // }); // // ((TabLayout) findViewById(R.id.title_tab)).setupWithViewPager(viewPager); FragmentTransaction fm = getSupportFragmentManager().beginTransaction(); // boolean hide = false; for (Fragment fragment : fragments) { fm.add(R.id.fragment, fragment); fm.hide(fragment); } fm.show(fragments[0]).commit(); ((RadioGroup) findViewById(R.id.home_bottom)).setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() { @Override public void onCheckedChanged(RadioGroup group, int checkedId) { FragmentTransaction fm = getSupportFragmentManager().beginTransaction(); // for (Fragment fragment : fragments) { // fm.hide(fragment); // } // fm.show(fragments[group.indexOfChild(group.findViewById(checkedId))]).commit(); fm.replace(R.id.fragment, fragments[group.indexOfChild(group.findViewById(checkedId))]).commit(); // Toast.makeText(MainActivity.this, "" + group.indexOfChild(group.findViewById(checkedId)), Toast.LENGTH_SHORT).show(); } }); } } <file_sep>package com.spideriot.kkt; import android.content.Intent; import android.graphics.BitmapFactory; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import com.spideriot.kkt.common.Constants; public class PointsExchangeDetailActivity extends AppCompatActivity { private ImageView stepImg; private ImageView detail_list_img; @Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.points_exchange_detail_layout); ((TextView) findViewById(R.id.title)).setText("详情"); findViewById(R.id.back_btn).setOnClickListener(clickListener); findViewById(R.id.fill_declaration_btn).setOnClickListener(clickListener); detail_list_img = findViewById(R.id.detail_list_image); stepImg = findViewById(R.id.exchange_step_detail); handleView(); } private void handleView() { BitmapFactory.Options options = new BitmapFactory.Options(); options.inJustDecodeBounds = true; BitmapFactory.decodeResource(getResources(), R.mipmap.detail_list_image, options); int imgWidth = options.outWidth; int imgHeight = options.outHeight; int rImgHeight = (int) (Constants.SCREEN_WIDTH * 1.0 / imgWidth * imgHeight); ViewGroup.LayoutParams lp = detail_list_img.getLayoutParams(); lp.width = Constants.SCREEN_WIDTH; lp.height = rImgHeight; detail_list_img.setLayoutParams(lp); options = new BitmapFactory.Options(); options.inJustDecodeBounds = true; BitmapFactory.decodeResource(getResources(), R.mipmap.detail_image_1, options); imgWidth = options.outWidth; imgHeight = options.outHeight; rImgHeight = (int) (Constants.SCREEN_WIDTH * 1.0 / imgWidth * imgHeight); lp = stepImg.getLayoutParams(); lp.width = Constants.SCREEN_WIDTH; lp.height = rImgHeight; stepImg.setLayoutParams(lp); } private View.OnClickListener clickListener = new View.OnClickListener() { @Override public void onClick(View view) { switch (view.getId()) { case R.id.back_btn: finish(); break; case R.id.fill_declaration_btn: Intent intent = new Intent(PointsExchangeDetailActivity.this, FillDeclarationFormActivity.class); startActivity(intent); break; } } }; } <file_sep>package com.spideriot.kkt.common; public class Constants { public static int SCREEN_WIDTH; public static int SCREEN_HEIGHT; } <file_sep>package com.spideriot.kkt; import android.os.Bundle; import android.os.PersistableBundle; import android.support.annotation.Nullable; import android.support.v7.app.AppCompatActivity; /** * An example full-screen activity that shows and hides the system UI (i.e. * status bar and navigation/system bar) with user interaction. */ public class RegisterActivity extends AppCompatActivity { @Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_register); } } <file_sep>package com.spideriot.kkt; import android.app.Application; import com.spideriot.kkt.common.Constants; import com.spideriot.kkt.utils.ScreenUtil; public class KktApplication extends Application { private static KktApplication instance; @Override public void onCreate() { super.onCreate(); instance = this; init(); } private void init() { int[] size = ScreenUtil.getScreenSize(); Constants.SCREEN_WIDTH = size[0]; Constants.SCREEN_HEIGHT = size[1]; } public static KktApplication getInstance() { return instance; } } <file_sep>package com.spideriot.kkt; import android.content.Intent; import android.graphics.BitmapFactory; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import com.spideriot.kkt.common.Constants; import com.spideriot.kkt.utils.DensityUtil; public class PointsExchangeActivity extends AppCompatActivity { private ImageView adImg; @Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.point_exchange_layout); adImg = findViewById(R.id.icbc_ad_btn); findViewById(R.id.back_btn).setOnClickListener(clickListener); findViewById(R.id.icbc_ad_btn).setOnClickListener(clickListener); handleView(); } private void handleView() { BitmapFactory.Options options = new BitmapFactory.Options(); options.inJustDecodeBounds = true; BitmapFactory.decodeResource(getResources(), R.mipmap.point_exchange_ad_icbc, options); int imgWidth = options.outWidth; int imgHeight = options.outHeight; int rImgHeight = (int) ((Constants.SCREEN_WIDTH- DensityUtil.dp2px(20)) * 1.0 / imgWidth * imgHeight); ViewGroup.LayoutParams lp = adImg.getLayoutParams(); lp.width = Constants.SCREEN_WIDTH; lp.height = rImgHeight; adImg.setLayoutParams(lp); } private View.OnClickListener clickListener = new View.OnClickListener() { @Override public void onClick(View view) { switch (view.getId()) { case R.id.back_btn: finish(); break; case R.id.icbc_ad_btn: Intent intent = new Intent(PointsExchangeActivity.this, PointsExchangeDetailActivity.class); startActivity(intent); break; } } }; }
1c69882e2d0b6adb9e0a820221de056560f48370
[ "Java" ]
7
Java
liudong1991/kkt
788951bf5a6ae0907b3b3ab0453bbe6d1c4bd5b1
3aa804957eef3458570b06fc341c72c46f28e8f7
refs/heads/master
<repo_name>hugrave/thesis<file_sep>/sample_generation_net.py import torch import torch.nn as nn import torch.nn.functional as F import torch.distributions as tdist import lpips from model import Generator, PixelNorm, EqualLinear import argparse from tqdm import tqdm import numpy as np from torchviz import make_dot device = torch.device("cuda") dimension = 512 log_norm_constant = -0.5 * np.log(2 * np.pi) class GaussianMixture: def __init__(self, data, n_components, n_iter=100): m = data.size(0) idxs = torch.from_numpy(np.random.choice(m, n_components, replace=False)) self.mu = data[idxs] self.logvar = torch.Tensor(n_components, data.shape[1]).fill_(0.1).log().to(device) self.pi = torch.empty(n_components).fill_(1. / n_components).to(device) self.data = data self.n_iter = n_iter self.taken_distributions = [] def log_gaussian(self, x, mean=0, logvar=0.): """ Returns the density of x under the supplied gaussian. Defaults to standard gaussian N(0, I) :param x: (*) torch.Tensor :param mean: float or torch.FloatTensor with dimensions (*) :param logvar: float or torch.FloatTensor with dimensions (*) :return: (*) elementwise log density """ if type(logvar) == 'float': logvar = x.new(1).fill_(logvar) a = (x - mean) ** 2 log_p = -0.5 * (logvar + a / logvar.exp()) log_p = log_p + log_norm_constant return log_p def get_likelihoods(self, log=True): """ :param X: design matrix (examples, features) :param mu: the component means (K, features) :param logvar: the component log-variances (K, features) :param log: return value in log domain? Note: exponentiating can be unstable in high dimensions. :return likelihoods: (K, examples) """ # get feature-wise log-likelihoods (K, examples, features) log_likelihoods = self.log_gaussian( self.data[None, :, :], # (1, examples, features) self.mu[:, None, :], # (K, 1, features) self.logvar[:, None, :] # (K, 1, features) ) # sum over the feature dimension log_likelihoods = log_likelihoods.sum(-1) if not log: log_likelihoods.exp_() return log_likelihoods def get_posteriors(self, log_likelihoods): """ Calculate the the posterior probabilities log p(z|x), assuming a uniform prior over components. :param likelihoods: the relative likelihood p(x|z), of each data point under each mode (K, examples) :return: the log posterior p(z|x) (K, examples) """ posteriors = log_likelihoods - torch.logsumexp(log_likelihoods, dim=0, keepdim=True) return posteriors def update_params(self, log_posteriors, eps=1e-6, min_var=1e-6): """ :param X: design matrix (examples, features) :param log_posteriors: the log posterior probabilities p(z|x) (K, examples) :returns mu, var, pi: (K, features) , (K, features) , (K) """ posteriors = log_posteriors.exp() # compute `N_k` the proxy "number of points" assigned to each distribution. K = posteriors.size(0) N_k = torch.sum(posteriors, dim=1) # (K) N_k = N_k.view(K, 1, 1) # get the means by taking the weighted combination of points # (K, 1, examples) @ (1, examples, features) -> (K, 1, features) mu = posteriors[:, None] @ self.data[None,] mu = mu / (N_k + eps) # compute the diagonal covar. matrix, by taking a weighted combination of # the each point's square distance from the mean A = self.data - mu var = posteriors[:, None] @ (A ** 2) # (K, 1, features) var = var / (N_k + eps) logvar = torch.clamp(var, min=min_var).log() # recompute the mixing probabilities m = self.data.size(1) # nb. of training examples pi = N_k / N_k.sum() self.mu = mu.squeeze(1) self.logvar = logvar.squeeze(1) self.pi = pi.squeeze(1) def fit(self, n_iter=100): for i in range(n_iter): log_likelihoods = self.get_likelihoods() posteriors = self.get_posteriors(log_likelihoods) self.update_params(posteriors) # Utility methods def get_closest(self, mean_vector): if len(self.taken_distributions) == self.mu.shape[0]: self.taken_distributions = [] dist = torch.norm(self.mu - mean_vector.reshape((1,-1)), 2, dim=1) dist_idx = dist.argsort() # Sorting it in ascending order and get the indexes idx = dist_idx[0].item() for i in dist_idx: if i not in self.taken_distributions: idx = i break self.taken_distributions.append(idx) return ( self.mu[idx], self.logvar[idx].exp() ) def lerp(a, b, t): return a + (b - a) * t class Net(nn.Module): def __init__(self, n_mlp=8): super().__init__() layers = [PixelNorm()] for _i in range(n_mlp): layers.append( EqualLinear( dimension, dimension, lr_mul=0.01, activation='fused_lrelu' ) ) self.net = nn.Sequential(*layers) def forward(self, x): return self.net(x) class PPL(): def __init__(self, g, num_samples=5, eps=1e-4): # Initializing the perceptual distance self.percept = lpips.PerceptualLoss( model='net-lin', net='vgg', use_gpu=True ) self.num_samples = num_samples self.eps = eps self.g = g # Compute the loss def __call__(self, latent): dist = tdist.Normal(latent, torch.ones_like(latent) * 0.1) samples = dist.sample((self.num_samples,)).to(device) noise = self.g.make_noise() base_image, _ = self.g([latent], input_is_latent=True, noise=noise) distances = torch.empty(0).to(device) for sample in samples: comparison = lerp(latent, sample, self.eps) del sample noise = self.g.make_noise() image, _ = self.g([comparison], input_is_latent=True, noise=noise) # Compute the distance perceptual_dist = self.percept(base_image, image).reshape(latent.shape[0]) euclidean_dist = self.eps ** 2 distance = perceptual_dist / euclidean_dist distances = torch.cat((distances, distance)) loss = distances.mean() return loss class KL(): def __init__(self): pass def __call__(self, source_mean, source_cov, target_mean, target_cov): # Compute the KL divergence term_1 = source_cov / target_cov term_2 = ((target_mean - source_mean) ** 2) / target_cov term_3 = torch.log(target_cov / source_cov) return (term_1 + term_2 + term_3).sum() if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument('--g_ckpt', type=str, required=True) parser.add_argument('--ckpt', type=str) parser.add_argument('--it', type=int, default=1000) parser.add_argument('--batch_size', type=int, default=1) parser.add_argument('--virtual_batch_size', type=int, default=16) parser.add_argument('--fitting_samples', type=int, default=2000) parser.add_argument('--checkpoint_it', type=int, default=1000) parser.add_argument('--kl_it', type=int, default=5000) # Number of iterations for the KL divergence minimization parser.add_argument('--ppl_it', type=int, default=1000) # Number of iterations for the PPL minimization parser.add_argument('projected_files', metavar='FILES', nargs='+') args = parser.parse_args() kl_loss_value = 0 ppl_loss_value = 0 # Loading the generator model g_ema = Generator(256, 512, 8) g_ema.load_state_dict(torch.load(args.g_ckpt)['g_ema'], strict=False) g_ema.eval() g_ema = g_ema.to(device) g = g_ema # Init the network net = Net().to(device) net.net.load_state_dict(g.style.state_dict()) # Init the optimizer optim = torch.optim.Adam(net.parameters()) optim.zero_grad() # Load the checkpoint if args.ckpt: net.load_state_dict(torch.load(args.ckpt)['net']) optim.load_state_dict(torch.load(args.ckpt)['optim']) # Extract the referent latent latents = [] for projected_file in args.projected_files: projected = torch.load(projected_file) for key in projected: if key != "noises": latents.append(projected[key]["latent"]) latent = latents[0].to(device) latents = [l.to(device) for l in latents] # Define the target distribution target_dist_mean = latents target_dist_cov = torch.ones((len(latents), latents[0].shape[0])).to(device) * 0.1 # Init Loss function ppl_loss = PPL(g) kl_loss = KL() # Train loop counter = 0 kl_train = True pbar = tqdm(range(args.it)) for i in pbar: # Alternate training if kl_train and counter == args.kl_it: counter = 0 kl_train = False elif not kl_train and counter == args.ppl_it: counter = 0 kl_train = True elif kl_train and counter < args.kl_it: # Prepare for the KL divergence inputs = torch.randn(args.fitting_samples, dimension).to(device) samples = net(inputs) # Fit a mixture of gaussian n_components = len(latents) model = GaussianMixture(samples, n_components=n_components) model.fit() # # Compute KL Loss for each pair of distributions loss = torch.zeros(1,).to(device) for index, target_mean_vector in enumerate(target_dist_mean): fitted_dist_mean, fitted_dist_cov = model.get_closest(target_mean_vector) loss += kl_loss( fitted_dist_mean, fitted_dist_cov, target_dist_mean[index], target_dist_cov[index] ) loss = loss / len(target_dist_mean) kl_loss_value = loss.item() # Update step loss.backward() optim.step() optim.zero_grad() counter += 1 else: # Compute the PPL loss inputs = torch.randn((args.batch_size, dimension)).to(device) latent_out = net(inputs) loss = ppl_loss(latent_out) (loss / args.virtual_batch_size).backward() ppl_loss_value = loss.item() if i != 0 and i % args.virtual_batch_size == 0: optim.step() optim.zero_grad() counter += 1 # Debug train status pbar.set_description( f"KL loss: {kl_loss_value:.2f} " f"PPL loss: {ppl_loss_value:.2f}" ) # Checkpointing if i % args.checkpoint_it == 0: torch.save( { 'net': net.state_dict(), 'optim': optim.state_dict(), }, f'mapping_net_checkpoint/{str(i).zfill(6)}.pt', ) <file_sep>/compute_ppl.py import torch import numpy as np import argparse from tqdm import tqdm from sample_generation_net import PPL from model import Generator if __name__ == '__main__': device = 'cuda' parser = argparse.ArgumentParser() parser.add_argument('--batch', type=int, default=16) parser.add_argument('--n_sample', type=int, default=2000) parser.add_argument('--size', type=int, default=256) parser.add_argument('ckpt', metavar='CHECKPOINT', nargs="+") args = parser.parse_args() for ckpt_file in args.ckpt: # Load the generator ckpt = torch.load(ckpt_file) g = Generator(args.size, 512, 8).to(device) g.load_state_dict(ckpt['g_ema']) g.eval() # Load the ppl loss class ppl_loss = PPL(g, num_samples=5) # Divide the computation in batches n_batch = args.n_sample // args.batch resid = args.n_sample - (n_batch * args.batch) batch_sizes = [args.batch] * n_batch + [resid] ppl_values = [] for batch in tqdm(batch_sizes): # Compute the average PPL for each batch with torch.no_grad(): input_latents = torch.randn((batch, 512)).to(device) latents = g.get_latent(input_latents) ppl = ppl_loss(latents) ppl_values.append(ppl.to("cpu")) ppl_values = np.array(ppl_values) final_ppl = ppl_values.mean() print("Checkpoint:", ckpt_file, "PPL:", final_ppl) <file_sep>/README.md # Conditional Image Generation for the Fashion Industry This document is intended to give an overview of the code that has been developed during the thesis. I highlight that some of the files are extrated or based on the repository https://github.com/rosinality/stylegan2-pytorch. In order to reproduce the results of the thesis, the dataset and the pre-trained weights are made available in the folder https://drive.google.com/drive/folders/1JfJ53vAmeU5KA6CI2iD8zD8lBnlFiU-G?usp=sharing. ## Training In order to train the model, the dataset needs to be prepared through the script *prepare_data.py* and then, the main script *train.py* starts the training routine. ## Conditional generation After the model reaches a satisfactory result, the *space_exploring* files are used to create conditional content. They mainly receive in input the latent code representations of the input images (obtained through the *projector.py* script) and the cehckpoint of the generator network (obtained from the previous step). In order to run the second methodology, the intermediate mapping network needs to be trained first. In this case, teh script *sample_mapping_network.py* is used. <file_sep>/space_exploring_v2.py import argparse import numpy as np import torch from torchvision import utils from model import Generator from sample_generation_net import Net import lpips import torch.distributions as tdist device = torch.device("cuda") if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument('--net_ckpt', type=str, required=True) parser.add_argument('--g_ckpt', type=str, required=True) parser.add_argument('--size', type=int, default=256) parser.add_argument('--pics', type=int, default=20) args = parser.parse_args() # Init generation and net g = Generator(256, 512, 8) g.load_state_dict(torch.load(args.g_ckpt)['g_ema'], strict=False) g.eval() g = g.to(device) net = Net() net.load_state_dict(torch.load(args.net_ckpt)['net']) net.eval() net = net.to(device) for i in range(args.pics): inputs = torch.randn(1, 512).to(device) latent = net(inputs) image, _ = g([latent], input_is_latent=True) utils.save_image( image, f'generated_images/test_{str(i)}.png', nrow=1, normalize=True, range=(-1, 1), )<file_sep>/space_exploring.py import argparse import numpy as np import torch from torchvision import utils from model import Generator import lpips import torch.distributions as tdist def sample_mixture(means, variances, weights, size, step): latent = [] models = len(means) choices = np.random.choice(models, size, p=weights) for i in range(0, size, step): distr = choices[i] for k in range(step): if i+k >= size: break latent.append(np.random.normal(means[distr][i+k], variances[distr][i+k])) return np.array(latent) if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument('--ckpt', type=str, required=True) parser.add_argument('--size', type=int, default=256) parser.add_argument('--pics', type=int, default=100) parser.add_argument('projected_files', metavar='FILES', nargs='+') args = parser.parse_args() device = "cuda" # Loading the projected latent space representation latents = [] noises = [] for projected_file in args.projected_files: projected = torch.load(projected_file) for key in projected: if key != "noises": latents.append(projected[key]["latent"]) noises.append(projected["noises"]) # Loading the generator model g_ema = Generator(args.size, 512, 8) g_ema.load_state_dict(torch.load(args.ckpt)['g_ema'], strict=False) g_ema.eval() g_ema = g_ema.to(device) ############### # Mixture of multivariate Gaussians # Uncomment this section to use GMM with multivariate distributions ############### # variance_hp = 1 # choices = np.random.choice(list(range(len(latents))), args.pics) # variance = np.diag(np.ones(latents[0].shape[0]) * variance_hp) # for i in range(args.pics): # latent = latents[choices[i]] # mean = latent.detach().reshape(-1).cpu().numpy() # new_latent = np.random.multivariate_normal(mean, variance, args.pics) # latent = torch.from_numpy(new_latent).float().to(device) # # Generate the image associated to the vector # with torch.no_grad(): # img_gen, _ = g_ema([latent[i].reshape(1, -1)], input_is_latent=True, noise=noises[0]) # utils.save_image( # img_gen, # f'generated_images/gmm_mv_{i}.png', # nrow=1, # normalize=True, # range=(-1, 1), # ) ############### # Mixture of independent Gaussians # Uncomment this section to use GMM with independent distributions # Modify the value of k ############### variance_hp = 0.8 k_hp = 100 size = latents[0].shape[0] means = [] variances = [] weights = [] # Adding all the distributions around the input images for latent in latents: means.append(latent.detach().reshape(-1).cpu().numpy()) variances.append(np.random.rand(latent.shape[0]) * variance_hp) weights.append(1.0 / len(latents)) for i in range(args.pics): latent = sample_mixture(means, variances, weights, size, k_hp) latent = torch.from_numpy(latent).float().to(device) # Generate the image associated to the vector with torch.no_grad(): img_gen, _ = g_ema([latent.reshape(1, -1)], input_is_latent=True, truncation=1) utils.save_image( img_gen, f'generated_images/gmm_ind_{i}.png', nrow=1, normalize=True, range=(-1, 1), ) ############### # Linear points interpolation # Uncomment this section to traverse the linear space between two given images ############### # start_point = {"latent": latents[0], "noises": np.array(noises[0])} # end_point = {"latent": latents[1], "noises": np.array(noises[1])} # moving_vector = { # "latent": end_point["latent"] - start_point["latent"], # "noises": end_point["noises"] - start_point["noises"] # } # increment = 1 / args.pics # point = start_point # for i in range(args.pics): # point = { # "latent": point["latent"] + increment * moving_vector["latent"], # "noises": point["noises"] + increment * moving_vector["noises"], # } # # Generate the image associated to the vector # with torch.no_grad(): # img_gen, _ = g_ema([point["latent"].reshape(1, -1)], input_is_latent=True, noise=point["noises"]) # utils.save_image( # img_gen, # f'generated_images/test_{i}.png', # nrow=1, # normalize=True, # range=(-1, 1), # ) <file_sep>/space_exploring_v3.py import argparse import numpy as np import torch from torchvision import utils from model import Generator from sample_generation_net import Net import lpips import torch.distributions as tdist device = torch.device("cuda") probabilities = { "input": 0.6, "random": 0.4 } max_n = 3 def generate(g, latents): layers = [] input_latents = [] random_latents = [] choices = np.random.choice(list(probabilities.keys()), 14, p=list(probabilities.values())) for layer in range(14): if choices[layer] == "input": if len(input_latents) + len(random_latents) >= max_n and len(input_latents) != 0: # Select an already chosen latent vector idx = np.random.choice(range(len(input_latents)), 1)[0] latent = input_latents[idx] else: # Select a new latent vector from the input pool idx = np.random.choice(range(len(latents)), 1)[0] latent = latents[idx] found = False for l in input_latents: if torch.all(l.eq(latent)): found = True if not found: input_latents.append(latent) else: if len(input_latents) + len(random_latents) >= max_n and len(random_latents) != 0: idx = np.random.choice(range(len(random_latents)), 1)[0] latent = random_latents[idx] else: latent = g.get_latent(torch.randn(1, 512).to(device)) random_latents.append(latent) layers.append(latent) layers = torch.cat(layers) img, _ = g(layers, input_is_latent=True, style_mixing=True) return img if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument('--g_ckpt', type=str, required=True) parser.add_argument('--size', type=int, default=256) parser.add_argument('--pics', type=int, default=20) parser.add_argument('projected_files', metavar='FILES', nargs='+') args = parser.parse_args() # Init generation and net g = Generator(256, 512, 8) g.load_state_dict(torch.load(args.g_ckpt)['g_ema'], strict=False) g.eval() g = g.to(device) # Extract the referent latent latents = [] for projected_file in args.projected_files: projected = torch.load(projected_file) for key in projected: if key != "noises": latents.append(projected[key]["latent"]) latents = [l.reshape(1, -1).to(device) for l in latents] for i in range(args.pics): image = generate(g, latents) utils.save_image( image, f'generated_images/test_{i}.png', nrow=1, normalize=True, range=(-1, 1), )
d2314debc799f84bf6c6e6a0c64f17e162494e47
[ "Markdown", "Python" ]
6
Python
hugrave/thesis
3a1fbaf59d80153865fc21cccf30d09cf6423cea
0ca11ffc3b3dfbaba4d86cff50ed8d485ea3782a
refs/heads/master
<file_sep>from spire.schema import SchemaDependency from docket.controllers.entity import BaseEntityController class BaseDocumentController(BaseEntityController): schema = SchemaDependency('docket') <file_sep>from mesh.standard import * from scheme import * from docket.resources.entity import BaseEntity from docket.resources.instance import BaseInstance class BaseDocument(Resource): """An entity document.""" abstract = True version = 1 class schema: id = UUID(oncreate=True, operators='equal') <file_sep>from spire.schema import * from docket import resources from docket.models.archetype import Archetype from docket.models.constituent import Constituent from docket.resources.constituent import BaseConstituent from docket.resources.entity import BaseEntity from docket.resources.instance import BaseInstance __all__ = ('Concept',) schema = Schema('docket') class Concept(Archetype): """A concept.""" class meta: polymorphic_identity = 'docket:concept' schema = schema tablename = 'concept' class config: bundle = 'docket.CONCEPT_API' model = Constituent prefix = 'constituent' resources = [ ((1, 0), (BaseConstituent[1], BaseInstance[1], BaseEntity[1]), 'docket.controllers.constituent.BaseConstituentController'), ] archetype_id = ForeignKey(Archetype.entity_id, nullable=False, primary_key=True) <file_sep>from mesh.standard import * from scheme import * from docket.resources.entity import BaseEntity class Package(Resource, BaseEntity[1]): """An entity package.""" name = 'package' version = 1 class schema: id = Token(nonempty=True, oncreate=True, operators='equal') status = Enumeration('deployed undeployed deploying invalid', nullable=False, default='undeployed') package = Text() class task: endpoint = ('TASK', 'package') schema = Structure( structure={ 'deploy-package': { 'id': Token(nonempty=True), }, 'update-package': { 'id': Token(nonempty=True), }, }, nonempty=True, polymorphic_on=Enumeration([ 'deploy-package', 'update-package'], name='task', nonempty=True)) responses = { OK: Response(), INVALID: Response(Errors), } <file_sep>from mesh.standard import * from scheme import * from docket.resources.entity import BaseEntity class BaseArchetype(Resource): """Base aspects of an entity archetype.""" abstract = True version = 1 class schema: resource = Token(segments=1, nonempty=True) properties = Definition() class Archetype(Resource, BaseEntity[1], BaseArchetype[1]): """An entity archetype.""" name = 'archetype' version = 1 requests = 'create delete get put query update' class schema: id = Token(nonempty=True, oncreate=True, operators='equal') <file_sep>from spire.core import Dependency from spire.mesh import ModelController from spire.schema import NoResultFound, SchemaDependency from sqlalchemy.orm import undefer from docket.engine.registry import EntityRegistry from docket.models import * from docket.resources.registration import Registration as RegistrationResource class RegistrationController(ModelController): resource = RegistrationResource version = (1, 0) model = Registration registry = Dependency(EntityRegistry) schema = SchemaDependency('docket') mapping = 'id name title url is_container specification canonical_version change_event' def acquire(self, subject): try: query = self.schema.session.query(self.model).options(undefer('specification')) return query.get(subject) except NoResultFound: return None def create(self, request, response, subject, data): session = self.schema.session subject = self.model.create(session, **data) session.commit() response({'id': subject.id}) def delete(self, request, response, subject, data): session = self.schema.session session.delete(subject) session.commit() response({'id': subject.id}) self.registry.unregister(subject) def update(self, request, response, subject, data): if not data: return response({'id': subject.id}) session = self.schema.session subject.update(session, **data) session.commit() response({'id': subject.id}) def _annotate_resource(self, request, model, resource, data): resource['cached_attributes'] = {} for name, attribute in model.cached_attributes.iteritems(): resource['cached_attributes'][name] = attribute.extract_dict( exclude='id registration_id name') <file_sep>from mesh.standard import * from scheme import * class BaseEntity(Resource): """Base aspects of an entity.""" abstract = True version = 1 class schema: name = Text(operators='equal contains icontains', nonempty=True, annotational=True) designation = Text(operators='equal', annotational=True) description = Text(annotational=True) created = DateTime(utc=True, readonly=True, annotational=True) modified = DateTime(utc=True, readonly=True, annotational=True) defunct = Boolean(operators='equal', readonly=True, annotational=True) associations = Sequence(Structure({ 'intent': Token(readonly=True), 'target': Text(readonly=True), 'entity': Token(readonly=True), 'name': Text(readonly=True), }, readonly=True), readonly=True, deferred=True, annotational=True, operators=[ Structure(name='associations__has', structure={ 'intent': Token(ignore_null=True), 'target': Text(ignore_null=True), 'entity': Token(ignore_null=True), }, nonnull=True), ]) associates = Sequence(Structure({ 'subject': Text(readonly=True), 'intent': Token(readonly=True), 'entity': Token(readonly=True), 'name': Text(readonly=True), }, readonly=True), readonly=True, deferred=True, annotational=True, operators=[ Structure(name='associates__has', structure={ 'subject': Text(ignore_null=True), 'intent': Token(ignore_null=True), 'entity': Token(ignore_null=True), }, nonnull=True), ]) class Entity(Resource, BaseEntity[1]): """An entity.""" name = 'entity' version = 1 requests = 'get query' class schema: id = Text(nonempty=True, operators='equal') entity = Token(segments=2) class task: endpoint = ('TASK', 'entity') title = 'Initiating an entity task' schema = Structure( structure={ 'synchronize-all-entities': {}, 'synchronize-entities': { 'ids': Sequence(UUID(nonempty=True), nonempty=True), }, 'synchronize-changed-entity': { 'event': Structure({ 'topic': Text(nonempty=True), 'id': UUID(nonempty=True), }, nonnull=True, strict=False), }, }, nonempty=True, polymorphic_on='task') responses = { OK: Response(), INVALID: Response(Errors), } <file_sep>"""add_pkg_status Revision: <KEY> Revises: None Created: 2013-02-21 08:59:44.930802 """ revision = '<KEY>' down_revision = '<KEY>' from alembic import op from spire.schema.fields import * from sqlalchemy import (Column, ForeignKey, ForeignKeyConstraint, PrimaryKeyConstraint, CheckConstraint, Table, MetaData) from sqlalchemy.dialects import postgresql def upgrade(): connection = op.get_bind() metadata = MetaData() table = Table('package', metadata, autoload=True, autoload_with=connection) if 'package.status' not in table.c: op.add_column('package', Column('status', EnumerationType(), nullable=True)) def downgrade(): op.drop_column('package', 'status') <file_sep>from copy import deepcopy from functools import partial import re from spire.mesh.units import construct_mesh_client from spire.schema import * from spire.support.logs import LogHelper from sqlalchemy.orm import deferred from sqlalchemy.orm.collections import attribute_mapped_collection __all__ = ('CachedAttribute', 'Registration') ATTRIBUTE_FIELDS = { 'boolean': Boolean, 'date': Date, 'datetime': partial(DateTime, timezone=True), 'decimal': Decimal, 'float': Float, 'integer': Integer, 'text': Text, 'time': Time, } log = LogHelper('docket') schema = Schema('docket') class Registration(Model): """An entity registration.""" class meta: schema = schema tablename = 'registration' id = Token(segments=2, nullable=False, primary_key=True) name = Token(segments=1, nullable=False) title = Text(nullable=False) url = Text(nullable=False) is_container = Boolean(nullable=False, default=False) specification = deferred(Serialized(nullable=False)) canonical_version = Text() change_event = Text() standard_entities = Json() cached_attributes = relationship('CachedAttribute', backref='registration', collection_class=attribute_mapped_collection('name'), cascade='all,delete-orphan', passive_deletes=True) _cached_clients = {} @property def client(self): try: return self._cached_clients[self.id] except KeyError: client = construct_mesh_client(self.url, deepcopy(self.specification)) self._cached_clients[self.id] = client return client def annotate(self, model): model.is_container = self.is_container def as_resource(self): cached_attributes = {} for name, attribute in self.cached_attributes.iteritems(): cached_attributes[name] = attribute.extract_dict( exclude='id registration_id name') return self.extract_dict(cached_attributes=cached_attributes) @classmethod def create(cls, session, cached_attributes=None, **params): registration = cls(**params) if cached_attributes: for name, attribute in cached_attributes.iteritems(): registration.cached_attributes[name] = CachedAttribute(name=name, **attribute) session.add(registration) return registration def create_standard_entities(self, session, model): entities = self.standard_entities if not entities: return [] identifiers = [] for entity in entities: identifiers.append(entity['id']) try: subject = model.load(session, id=entity['id']) except NoResultFound: subject = model.create(session, **entity) else: subject.update_with_mapping(entity, ignore='id') else: return identifiers def get_canonical_proxy(self, registry): return registry.get_proxy(self.id, self.get_canonical_version()) def get_canonical_version(self): if self.canonical_version: return self.canonical_version try: return self._cached_canonical_version except AttributeError: self._cached_canonical_version = self._identify_latest_api_version() return self._cached_canonical_version def lock(self, session, exclusive=False): session.refresh(self, lockmode=('update' if exclusive else 'read')) return self def update(self, session, cached_attributes=None, **params): changed = False for attr, value in params.iteritems(): if getattr(self, attr) != value: setattr(self, attr, value) changed = True if cached_attributes is not None: collection = self.cached_attributes for name, attribute in cached_attributes.iteritems(): if name in collection: collection[name].update_with_mapping(attribute) else: collection[name] = CachedAttribute(name=name, **attribute) for name in collection.keys(): if name not in cached_attributes: del collection[name] return changed def _identify_latest_api_version(self): versions = sorted(map(int, v.split('.')) for v in self.specification['versions'].keys()) return '%d.%d' % (tuple(versions[-1])) class CachedAttribute(Model): """An entity attribute.""" class meta: constraints = [UniqueConstraint('registration_id', 'name')] schema = schema tablename = 'cached_attribute' id = Identifier() registration_id = ForeignKey('registration.id', nullable=False, ondelete='CASCADE') name = Text(nullable=False) type = Token(nullable=False) def contribute_field(self): field = ATTRIBUTE_FIELDS[self.type] return field(name=self.name) <file_sep>from mesh.standard import * from scheme import * __all__ = ('BaseConstituent',) class BaseConstituent(Resource): """An entity constituent.""" abstract = True version = 1 class schema: id = UUID(oncreate=True, operators='equal') <file_sep>from mesh.binding.python import install_binding_loader install_binding_loader() from docket.bundles import * <file_sep>"""add_standard_entities Revision: <KEY> Revises: <PASSWORD> Created: 2013-02-17 22:59:57.828582 """ revision = '<KEY>' down_revision = '2<PASSWORD>' from alembic import op from spire.schema.fields import * from sqlalchemy import (Column, ForeignKey, ForeignKeyConstraint, PrimaryKeyConstraint, CheckConstraint, Table, MetaData) from sqlalchemy.dialects import postgresql def upgrade(): connection = op.get_bind() metadata = MetaData() table = Table('registration', metadata, autoload=True, autoload_with=connection) if 'registration.standard_entities' not in table.c: op.add_column('registration', Column('standard_entities', JsonType(), nullable=True)) def downgrade(): op.drop_column('registration', 'standard_entities') <file_sep>"""add_intents Revision: <KEY> Revises: <PASSWORD> Created: 2013-02-28 10:07:52.456022 """ revision = '<KEY>' down_revision = '1cfe8fc19e87' from alembic import op from spire.schema.fields import * from sqlalchemy import Column, ForeignKey, ForeignKeyConstraint, PrimaryKeyConstraint, CheckConstraint from sqlalchemy.dialects import postgresql def upgrade(): op.create_table('intent', Column('id', TextType(), nullable=False), Column('exclusive', BooleanType(), nullable=False), ForeignKeyConstraint(['id'], ['entity.id']), PrimaryKeyConstraint('id') ) op.create_foreign_key('association_intent_fkey', 'association', 'intent', ['intent'], ['id'], ondelete='CASCADE') def downgrade(): op.drop_constraint('association_intent_fkey', 'association') op.drop_table('intent') <file_sep>from .archetype import * from .association import * from .concept import * from .constituent import * from .document import * from .documenttype import * from .entity import * from .instance import * from .intent import * from .package import * from .registration import * <file_sep>from datetime import datetime from mesh.standard import bind from scheme import current_timestamp from spire.core import Component, Dependency from spire.exceptions import TemporaryStartupError from spire.mesh import MeshDependency, MeshServer from spire.runtime import current_runtime, onstartup from spire.schema import Schema, SchemaDependency from docket import models from docket.bindings import platoon from docket.bundles import BUNDLES from docket.engine.archetype_registry import ArchetypeRegistry from docket.engine.registry import EntityRegistry from docket.resources import * schema = Schema('docket') RecurringTask = bind(platoon, 'platoon/1.0/recurringtask') Schedule = bind(platoon, 'platoon/1.0/schedule') EVERY_SIX_HOURS = Schedule( id='c53628ff-7b48-4f60-ba56-bea431fc7da2', name='every six hours', schedule='fixed', anchor=datetime(2000, 1, 1, 0, 0, 0), interval=21600) SYNC_ALL_ENTITIES = RecurringTask( id='7d715e10-0f00-476d-ace1-dc896d7da3e5', tag='synchronize-all-entities', schedule_id=EVERY_SIX_HOURS.id, retry_limit=0) class Docket(Component): api = MeshServer.deploy(bundles=BUNDLES) schema = SchemaDependency('docket') archetype_registry = Dependency(ArchetypeRegistry) entity_registry = Dependency(EntityRegistry) docket = MeshDependency('docket') platoon = MeshDependency('platoon') @onstartup() def bootstrap(self): self.entity_registry.bootstrap() self.archetype_registry.bootstrap() self.api.server.configure_endpoints() self.schema.purge() @onstartup(service='docket') def startup_docket(self): EVERY_SIX_HOURS.put() SYNC_ALL_ENTITIES.set_http_task( self.docket.prepare('docket/1.0/entity', 'task', None, {'task': 'synchronize-all-entities'})) SYNC_ALL_ENTITIES.put() self.entity_registry.subscribe_to_changes() return {'status': 'yielding', 'stage': 'dependents-ready'} @onstartup(service='docket', stage='dependents-ready') def restart_when_dependents_ready(self): current_runtime().reload() return {'status': 'restarting', 'stage': 'docket-ready'} @onstartup(service='docket', stage='docket-ready') def finish_docket_startup(self): self.entity_registry.synchronize_entities() return {'status': 'ready'} @schema.constructor() def bootstrap_documents(session): now = current_timestamp() matter = models.DocumentType( id='siq:matter', name='Matter', created=now, modified=now, resource='siq.matter') fileplan = models.DocumentType( id='siq:fileplan', name='File Plan', created=now, modified=now, resource='siq.fileplan') project = models.DocumentType( id='siq:project', name='Project', created=now, modified=now, resource='siq.project') available_to = models.Intent( id='available-to', name='Available to', created=now, modified=now, exclusive=False) contained_by = models.Intent( id='contained-by', name='Contained by', created=now, modified=now, exclusive=False) session.merge(matter) session.merge(fileplan) session.merge(project) session.merge(available_to) session.merge(contained_by) session.commit() <file_sep>"""make_name_nullable Revision: 1<PASSWORD> Revises: <PASSWORD> Created: 2013-03-09 18:11:41.559446 """ revision = '1<PASSWORD>' down_revision = '<PASSWORD>' from alembic import op from spire.schema.fields import * from sqlalchemy import Column, ForeignKey, ForeignKeyConstraint, PrimaryKeyConstraint, CheckConstraint from sqlalchemy.dialects import postgresql def upgrade(): op.alter_column('entity', 'name', nullable=True) def downgrade(): op.alter_column('entity', 'name', nullable=False) <file_sep>import re import uuid from mesh.standard import Resource, bind from spire.core import Unit from spire.mesh import MeshDependency from spire.runtime import current_runtime from spire.schema import * from spire.support.logs import LogHelper from spire.util import nsuniqid from sqlalchemy import MetaData from sqlalchemy.orm import undefer from docket.bindings import platoon from docket.engine.annotation import Annotator from docket.models import Entity, Registration TASK_UUID_NAMESPACE = uuid.UUID('49be9141-1865-4d33-872b-b5a0b34b3017') log = LogHelper('docket') ScheduledTask = bind(platoon, 'platoon/1.0/scheduledtask') SubscribedTask = bind(platoon, 'platoon/1.0/subscribedtask') class EntityRegistry(Unit): """The entity registry.""" docket = MeshDependency('docket') platoon = MeshDependency('platoon') schema = SchemaDependency('docket') def __init__(self): self.proxies = {} self.annotator = Annotator(self.proxies) self.models = {} def bootstrap(self): from docket.bundles import ENTITY_API session = self.schema.session for registration in session.query(Registration).options(undefer('specification')): model = self.models[registration.id] = self._construct_model(registration) self.annotator.process(registration, model) session.commit() ENTITY_API.attach(self.annotator.generate_mounts()) def get_proxy(self, id, version): return self.proxies['%s:%s' % (id, version)] def subscribe_to_changes(self): session = self.schema.session for registration in session.query(Registration): if registration.change_event: self._subscribe_to_changes(registration) def synchronize_entities(self): session = self.schema.session Entity.synchronize_entities(self, session) def unregister(self, registration): table = self._construct_table(registration) if self.schema.table_exists(table): self.schema.drop_table(table) def _construct_model(self, registration): attrs = {'entity_id': ForeignKey('entity.id', nullable=False, primary_key=True)} for name, attr in sorted(registration.cached_attributes.iteritems()): attrs[name] = attr.contribute_field() tablename = self._prepare_tablename(registration.id) model = self.schema.construct_model(Entity, tablename, attrs, polymorphic_identity=registration.id) registration.annotate(model) self.schema.create_or_update_table(model.__table__) return model def _construct_table(self, registration): metadata = MetaData() entities = Table('entity', metadata, Text(name='id', nullable=False, primary_key=True)) tablename = self._prepare_tablename(registration.id) table = Table(tablename, metadata, ForeignKey(name='entity_id', column=entities.c.id, type_=TextType(), nullable=False, primary_key=True)) for name, attr in sorted(registration.cached_attributes.iteritems()): table.append_column(attr.contribute_field()) return table def _prepare_tablename(self, id): tablename = id.lower().replace(':', '_') return 'entity_' + re.sub(r'[^a-z_]', '', tablename).strip('_') def _subscribe_to_changes(self, registration): task = self.docket.prepare('docket/1.0/entity', 'task', None, {'task': 'synchronize-changed-entity'}) task['injections'] = ['event'] SubscribedTask( id=nsuniqid(TASK_UUID_NAMESPACE, registration.id), tag='%s changes' % registration.id, topic=registration.change_event, task=SubscribedTask.prepare_http_task(task)).put() <file_sep>from mesh.standard import * from scheme import * from docket.resources.archetype import BaseArchetype from docket.resources.entity import BaseEntity __all__ = ('Concept',) class Concept(Resource, BaseEntity[1], BaseArchetype[1]): """An entity archetype for concepts.""" name = 'concept' version = 1 requests = 'create delete get put query update' class schema: id = Token(nonempty=True, oncreate=True, operators='equal') <file_sep>from spire.mesh import ModelController, field_included from spire.schema import NoResultFound, SchemaDependency from docket.models import * from docket.resources import Association as AssociationResource class AssociationController(ModelController): resource = AssociationResource version = (1, 0) model = Association schema = SchemaDependency('docket') mapping = ('id', ('subject', 'subject_id'), 'intent', ('target', 'target_id')) def create(self, request, response, subject, data): session = self.schema.session subject = self.model.create(session, data['subject'], data['intent'], data['target']) session.commit() response({'id': self._get_id_value(subject)}) <file_sep>from spire.mesh import Definition from spire.schema import * from spire.support.logs import LogHelper from docket.models.entity import Entity from docket.models.instance import Instance from docket.resources.entity import BaseEntity from docket.resources.instance import BaseInstance __all__ = ('Archetype',) log = LogHelper('docket') schema = Schema('docket') class Archetype(Entity): """An entity archetype.""" class meta: polymorphic_identity = 'docket:archetype' schema = schema tablename = 'archetype' class config: bundle = 'docket.INSTANCE_API' model = Instance prefix = 'archetype' resources = [ ((1, 0), (BaseInstance[1], BaseEntity[1]), 'docket.controllers.instance.BaseInstanceController'), ] entity_id = ForeignKey(Entity.id, nullable=False, primary_key=True) resource = Token(segments=1, nullable=False, unique=True) properties = Definition() <file_sep>from mesh.standard import * from scheme import * class Association(Resource): """An entity association.""" name = 'association' version = 1 composite_key = 'subject intent target' requests = 'delete put query' class schema: id = Text(oncreate=True, operators='equal') subject = Token(nonempty=True, operators='equal') intent = Token(nonempty=True, operators='equal') target = Token(nonempty=True, operators='equal') <file_sep>import scheme from mesh.bundle import mount from mesh.standard import Controller, Resource, bind from mesh.standard.requests import add_schema_field from spire.core import Unit from spire.mesh import MeshDependency from spire.runtime import current_runtime from spire.schema import * from spire.schema.construction import FieldConstructor from spire.support.logs import LogHelper from spire.util import import_object, safe_table_name from sqlalchemy import MetaData from docket import resources from docket.bindings import platoon from docket.models import * log = LogHelper('docket') PROTOTYPES = (Concept, DocumentType) class ArchetypeRegistry(Unit): """The archetype registry.""" schema = SchemaDependency('docket') def __init__(self): self.models = {} def bootstrap(self): session = self.schema.session for prototype in PROTOTYPES: self._bootstrap_prototype(session, prototype) session.commit() def register(self, archetype, changed=False): table = self._construct_table(archetype) if changed or not self.schema.is_table_correct(table): current_runtime().reload() def unregister(self, archetype): table = self._construct_table(archetype) if self.schema.table_exists(table): self.schema.drop_table(table) current_runtime().reload() def _bootstrap_prototype(self, session, prototype): bundle = import_object(prototype.config.bundle) for archetype in session.query(prototype): model = self.models[archetype.id] = self._construct_model(archetype) bundle.attach([self._construct_mount(archetype, model)]) def _construct_controller(self, model, resource, version, controller, mixin_controller): bases = (mixin_controller, controller) if controller else (mixin_controller,) return type('%sController' % resource.title, bases, { 'model': model, 'resource': resource, 'version': version, }) def _construct_model(self, archetype): parent = archetype.config.model attrs = {'id': ForeignKey(parent.id, nullable=False, primary_key=True)} constructor = FieldConstructor() if archetype.properties: for name, field in sorted(archetype.properties.structure.iteritems()): attrs[name] = constructor.construct(field) tablename = safe_table_name(archetype.id.replace(':', '_'), archetype.config.prefix) model = self.schema.construct_model(parent, tablename, attrs, tablename, polymorphic_identity=archetype.id) self.schema.create_or_update_table(model.__table__) return model def _construct_mount(self, archetype, model): resource = Resource controller = None for version, mixins, mixin_controller in archetype.config.resources: if resource.version != version[0]: resource = self._construct_resource(archetype, resource, version[0], mixins) controller = self._construct_controller(model, resource, version, controller, import_object(mixin_controller)) return mount(resource, controller) def _construct_resource(self, archetype, resource, version, mixins): bases = tuple([resource] + list(mixins)) resource = type(str(archetype.resource).capitalize(), bases, { 'name': archetype.resource, 'version': version, 'requests': 'create delete get put query update', 'schema': { 'id': scheme.UUID(oncreate=True, operators='equal') }, }) if archetype.properties: for name, field in archetype.properties.structure.iteritems(): add_schema_field(resource, field) return resource def _construct_table(self, archetype): metadata = MetaData() parent = Table(archetype.config.model.__tablename__, metadata, Text(name='id', nullable=False, primary_key=True)) tablename = safe_table_name(archetype.id.replace(':', '_'), archetype.config.prefix) table = Table(tablename, metadata, ForeignKey(name='id', column=parent.c.id, type_=TextType(), nullable=False, primary_key=True)) return table class StaticConstructor(object): def __init__(self, config, archetypes): self.archetypes = archetypes self.config = config def construct(self): bundle = import_object(self.config.bundle) for archetype in self.archetypes: bundle.attach([self._construct_mount(archetype)]) return bundle def _construct_mount(self, archetype): resource = Resource controller = Controller for version, mixins, mixin_controller in self.config.resources: if resource.version != version[0]: resource = self._construct_resource(archetype, resource, version[0], mixins) controller = type('%sController' % resource.title, (controller,), { 'resource': resource, 'version': tuple(version), }) return mount(resource, controller) def _construct_resource(self, archetype, resource, version, mixins): bases = tuple([resource] + list(mixins)) resource = type(str(archetype['resource']).capitalize(), bases, { 'name': archetype['resource'], 'version': version, 'requests': 'create delete get put query update', 'schema': { 'id': scheme.UUID(oncreate=True, operators='equal'), }, }) properties = archetype.get('properties') if properties: for name, field in scheme.Structure.reconstruct(properties).structure.iteritems(): add_schema_field(resource, field) return resource <file_sep>from mesh.standard import * from scheme import * from docket.resources.entity import BaseEntity class Intent(Resource, BaseEntity[1]): """An association intent.""" name = 'intent' version = 1 requests = 'create delete get put query update' class schema: id = Token(segments=1, oncreate=True, operators='equal') exclusive = Boolean(default=False, operators='equal') <file_sep>from bake import * from scheme import Format, Text from spire.util import import_object from docket.bundles import ENTITY_API from docket.engine.annotation import StaticAnnotator from docket.engine.archetype_registry import StaticConstructor class GenerateJavascriptBindings(Task): name = 'docket.javascript' parameters = { 'config': Text(description='path to registration config', required=True), 'path': Path(description='path to target directory', required=True), 'specifications': Path(description='path to specifications directory', required=True), } def run(self, runtime): annotator = StaticAnnotator() for registration in Format.read(self['config']): candidate = self['specifications'] / registration['id'].replace(':', '_') if candidate.exists(): registration['specification'] = eval(candidate.bytes()) annotator.process(registration) ENTITY_API.attach(annotator.generate_mounts()) runtime.execute('mesh.javascript', path=self['path'], bundle=ENTITY_API) class GenerateArchetypeBindings(Task): name = 'docket.javascript.archetypes' parameters = { 'config': Text(description='path to archetypes config', required=True), 'path': Path(description='path to target directory', required=True), } def run(self, runtime): path = self['path'] for registration in Format.read(self['config']): implementation = import_object(registration['implementation']) constructor = StaticConstructor(implementation.config, registration['archetypes']) runtime.execute('mesh.javascript', path=path, bundle=constructor.construct()) <file_sep>"""fix_constituents Revision: 349fc8a24b61 Revises: <KEY> Created: 2013-04-25 14:40:20.550672 """ revision = '349fc8a24b61' down_revision = '<KEY>' from alembic import op from spire.schema.fields import * from sqlalchemy import Column, ForeignKey, ForeignKeyConstraint, PrimaryKeyConstraint, CheckConstraint from sqlalchemy.dialects import postgresql def upgrade(): op.drop_constraint('constituent_id_fkey', 'constituent') op.create_foreign_key('constituent_id_fkey', 'constituent', 'entity', ['id'], ['id']) def downgrade(): op.drop_constraint('constituent_id_fkey', 'constituent') op.create_foreign_key('constituent_id_fkey', 'constituent', 'instance', ['id'], ['id']) <file_sep>from copy import deepcopy from mesh.bundle import Bundle, mount, recursive_mount from mesh.resource import Controller from mesh.standard import * from mesh.standard.requests import add_schema_field from scheme import * from docket.engine.controller import Proxy, ProxyController from docket.resources import Entity __all__ = ('Annotation', 'Annotator') class Annotation(object): resource = Entity[1] version = (1, 0) @classmethod def construct(cls, registration, model): resource = Resource controller = ProxyController proxies = {} for version, description in cls._enumerate_versions(registration): resource_version = description['version'][0] if resource.version != resource_version: resource = cls._construct_resource(registration.as_resource(), resource, description) proxy = cls._construct_proxy(registration, resource, description, model) proxies[proxy.id] = proxy controller = cls._construct_controller(resource, description, controller, proxy) return proxies, mount(resource, controller) @classmethod def static_construct(cls, registration): resource = Resource controller = Controller for version, resources in sorted(registration['specification']['versions'].iteritems()): description = resources[registration['name']] if resource.version != description['version'][0]: resource = cls._construct_resource(registration, resource, description) controller = type('%sController' % resource.title, (controller,), { 'resource': resource, 'version': tuple(description['version']), }) return mount(resource, controller) @classmethod def _annotate_resource(cls, registration, resource): for name, field in cls.resource.schema.iteritems(): if name not in resource.schema and field.annotational: add_schema_field(resource, field) @classmethod def _construct_controller(cls, resource, description, controller, proxy): return type('%sController' % resource.title, (controller,), { 'proxy': proxy, 'resource': resource, 'version': tuple(description['version']), }) @classmethod def _construct_proxy(cls, registration, resource, description, model): cached_attributes = [] for name, attribute in registration.cached_attributes.iteritems(): if name in resource.schema: cached_attributes.append(name) fields = {} for name, field in cls.resource.schema.iteritems(): if field.annotational: fields[name] = resource.schema[name] created_is_proxied = (not fields['created'].annotational) modified_is_proxied = (not fields['modified'].annotational) id = '%s:%d.%d' % (registration.id, description['version'][0], description['version'][1]) return Proxy(id, description['id'], cached_attributes, registration.client, fields, model, registration, created_is_proxied, modified_is_proxied) @classmethod def _construct_resource(cls, registration, resource, description): resource = resource.reconstruct(deepcopy(description)) cls._annotate_resource(registration, resource) return resource @classmethod def _enumerate_versions(cls, registration): name = registration.name for version, resources in sorted(registration.specification['versions'].iteritems()): yield version, resources[name] class Annotator(object): """The resource annotator.""" annotations = [Annotation] def __init__(self, proxies=None): self.bundles = {} self.proxies = proxies def generate_mounts(self): return [recursive_mount(bundle) for bundle in self.bundles.itervalues()] def process(self, registration, model): bundle_name = registration.specification['name'] if bundle_name not in self.bundles: self.bundles[bundle_name] = {} for annotation in self.annotations: self.bundles[bundle_name][annotation.version] = Bundle(bundle_name) bundle = self.bundles[bundle_name] for annotation in self.annotations: proxies, mount = annotation.construct(registration, model) if self.proxies is not None: self.proxies.update(proxies) bundle[annotation.version].attach([mount]) class StaticAnnotator(object): """A static resource annotator.""" annotations = [Annotation] def __init__(self): self.bundles = {} def generate_mounts(self): return [recursive_mount(bundle) for bundle in self.bundles.itervalues()] def process(self, registration): bundle_name = registration['specification']['name'] if bundle_name not in self.bundles: self.bundles[bundle_name] = {} for annotation in self.annotations: self.bundles[bundle_name][annotation.version] = Bundle(bundle_name) bundle = self.bundles[bundle_name] for annotation in self.annotations: mount = annotation.static_construct(registration) bundle[annotation.version].attach([mount]) <file_sep>from spire.schema import * from docket import resources from docket.models.archetype import Archetype from docket.models.document import Document from docket.resources.entity import BaseEntity from docket.resources.instance import BaseInstance from docket.resources.document import BaseDocument __all__ = ('DocumentType',) schema = Schema('docket') class DocumentType(Archetype): """A document type.""" class meta: polymorphic_identity = 'docket:documenttype' schema = schema tablename = 'documenttype' class config: bundle = 'docket.DOCUMENT_API' model = Document prefix = 'document' resources = [ ((1, 0), (BaseDocument[1], BaseInstance[1], BaseEntity[1]), 'docket.controllers.document.BaseDocumentController'), ] archetype_id = ForeignKey(Archetype.entity_id, nullable=False, primary_key=True) <file_sep>from mesh.standard import * from scheme import * from docket.resources.archetype import BaseArchetype from docket.resources.entity import BaseEntity class DocumentType(Resource, BaseEntity[1], BaseArchetype[1]): """An entity archetype for documents.""" name = 'documenttype' version = 1 class schema: id = Token(nonempty=True, oncreate=True, operators='equal') <file_sep>#!/bin/sh logreopen=${VARPATH}/docket.logreopen if [ ! -e "$logreopen" ]; then touch $logreopen fi /siq/env/python/bin/python /siq/env/python/bin/bake -m spire.tasks \ spire.schema.deploy schema=docket config=/siq/svc/docket/docket.yaml ln -sf ${SVCPATH}/docket/docket.yaml ${CONFPATH}/uwsgi/docket.yaml <file_sep>from mesh.standard import * from scheme import * from docket.resources.entity import BaseEntity class BaseInstance(Resource): """Bases aspects of an entity instance.""" abstract = True version = 1 requests = 'create delete get put query update' class schema: id = UUID(oncreate=True, operators='equal') <file_sep>from mesh.standard import Bundle, mount from docket.resources import * API = Bundle('docket', mount(Archetype, 'docket.controllers.archetype.ArchetypeController'), mount(Association, 'docket.controllers.association.AssociationController'), mount(Concept, 'docket.controllers.concept.ConceptController'), mount(DocumentType, 'docket.controllers.documenttype.DocumentTypeController'), mount(Entity, 'docket.controllers.entity.EntityController'), mount(Intent, 'docket.controllers.intent.IntentController'), mount(Package, 'docket.controllers.package.PackageController'), mount(Registration, 'docket.controllers.registration.RegistrationController'), ) ENTITY_API = Bundle('docket.entity') INSTANCE_API = Bundle('docket.instance') CONCEPT_API = Bundle('docket.concept') DOCUMENT_API = Bundle('docket.document') BUNDLES = [API, CONCEPT_API, DOCUMENT_API, ENTITY_API, INSTANCE_API] <file_sep>"""add_associations Revision: 1<PASSWORD> Revises: <PASSWORD> Created: 2013-02-24 16:33:37.077231 """ revision = '1<PASSWORD>' down_revision = '<PASSWORD>' from alembic import op from spire.schema.fields import * from sqlalchemy import Column, ForeignKey, ForeignKeyConstraint, PrimaryKeyConstraint, CheckConstraint from sqlalchemy.dialects import postgresql def upgrade(): op.create_table('association', Column('subject_id', TextType(), nullable=False), Column('intent', TokenType(), nullable=False), Column('target_id', TextType(), nullable=False), ForeignKeyConstraint(['subject_id'], ['entity.id'], ), ForeignKeyConstraint(['target_id'], ['entity.id'], ), PrimaryKeyConstraint('subject_id', 'intent', 'target_id') ) op.drop_table(u'container_membership') def downgrade(): op.create_table(u'container_membership', Column(u'container_id', TextType(), nullable=False), Column(u'member_id', TextType(), nullable=False), ForeignKeyConstraint(['container_id'], [u'entity.id'], name=u'container_membership_container_id_fkey'), ForeignKeyConstraint(['member_id'], [u'entity.id'], name=u'container_membership_member_id_fkey'), PrimaryKeyConstraint(u'container_id', u'member_id', name=u'container_membership_pkey') ) op.drop_table('association') <file_sep>from spire.schema import * from docket.models.instance import Instance __all__ = ('Document',) schema = Schema('docket') class Document(Instance): """A document.""" class meta: polymorphic_identity = 'docket:document' schema = schema tablename = 'document' id = ForeignKey(Instance.id, nullable=False, primary_key=True) <file_sep>"""add_concepts Revision: <KEY> Revises: 17aa77c5eb0 Created: 2013-04-22 14:15:39.071110 """ revision = '<KEY>53c' down_revision = '17aa77c5eb0' from alembic import op from spire.schema.fields import * from sqlalchemy import Column, ForeignKey, ForeignKeyConstraint, PrimaryKeyConstraint, CheckConstraint from sqlalchemy.dialects import postgresql def upgrade(): op.create_table('constituent', Column('id', TextType(), nullable=False), ForeignKeyConstraint(['id'], ['instance.id'], ), PrimaryKeyConstraint('id') ) op.create_table('concept', Column('archetype_id', TextType(), nullable=False), ForeignKeyConstraint(['archetype_id'], ['archetype.entity_id'], ), PrimaryKeyConstraint('archetype_id') ) def downgrade(): op.drop_table('concept') op.drop_table('constituent') <file_sep>#!/bin/bash interpolate() { perl -p -e 's/\$\{([^}]+)\}/defined $ENV{$1} ? $ENV{$1} : $&/eg; s/\$\{([^}]+)\}//eg' $1 > $2 } $(find -L $BUILDPATH -type f -executable -name python) setup.py install interpolate pkg/docket.yaml docket.yaml.install install -D -m 0644 docket.yaml.install $BUILDPATH$SVCPATH/docket/docket.yaml interpolate pkg/logrotate.conf logrotate.conf.install install -D -m 0644 logrotate.conf.install $BUILDPATH/etc/logrotate.d/siq-docket <file_sep>from spire.schema import * from docket.models.entity import Entity __all__ = ('Constituent',) schema = Schema('docket') class Constituent(Entity): """A constituent.""" class meta: polymorphic_identity = 'docket:constituent' schema = schema tablename = 'constituent' id = ForeignKey(Entity.id, nullable=False, primary_key=True) <file_sep>from spire.schema import * from docket.models.entity import Entity __all__ = ('Intent',) schema = Schema('docket') class Intent(Entity): """An associational intent.""" class meta: polymorphic_identity = 'docket:intent' schema = schema tablename = 'intent' id = ForeignKey(Entity.id, nullable=False, primary_key=True) exclusive = Boolean(default=False) uses = relationship('Association', backref='definition', lazy='dynamic', cascade='all', passive_deletes=True) <file_sep>from mesh.standard import OperationError from spire.schema import * from docket.models.intent import Intent __all__ = ('Association',) schema = Schema('docket') class Association(Model): """An entity association.""" class meta: schema = schema tablename = 'association' subject_id = ForeignKey('entity.id', nullable=False, primary_key=True, ondelete='CASCADE') intent = ForeignKey('intent.id', nullable=False, primary_key=True, ondelete='CASCADE') target_id = ForeignKey('entity.id', nullable=False, primary_key=True) target = relationship('Entity', backref=backref('associates', lazy='dynamic'), primaryjoin=('Association.target_id==Entity.id')) @classmethod def create(cls, session, subject_id, intent, target_id): try: intent = Intent.load(session, id=intent) except NoResultFound: raise OperationError(token='invalid-intent') subject = cls(subject_id=subject_id, intent=intent.id, target_id=target_id) session.add(subject) return subject @classmethod def query_associates(cls, query, model, subject=None, intent=None, entity=None): query = query.join(model.associates) if subject: query = query.filter(cls.subject_id==subject) if intent: query = query.filter(cls.intent==intent) if entity: query = query.join(model, cls.subject_id==model.id, aliased=True).filter(model.entity==entity).reset_joinpoint() return query @classmethod def query_associations(cls, query, model, intent=None, target=None, entity=None): query = query.join(model.associations) if intent: query = query.filter(cls.intent==intent) if target: query = query.filter(cls.target_id==target) if entity: query = query.join(model, cls.target_id==model.id, aliased=True).filter(model.entity==entity).reset_joinpoint() return query <file_sep>from mesh.constants import RETURNING from mesh.exceptions import * from mesh.standard import Controller from scheme import current_timestamp from spire.core import Unit from spire.mesh import field_included from spire.mesh.controllers import FilterOperators from spire.schema import NoResultFound, SchemaDependency from sqlalchemy.sql import asc, desc from docket.models import * class Proxy(Unit): """An entity proxy. :param string id: The API id for this proxy, in the form `'resource:version'`. :param string identity: The resource identity for this proxy. :param list cached_attributes: A ``list`` containing the ``string`` names of the cached attributes for this proxy. :param client: The :class:`Client` for this proxy. :param dict fields: A ``dict`` mapping. """ operators = FilterOperators() schema = SchemaDependency('docket') def __init__(self, id, identity, cached_attributes, client, fields, model, registration, created_is_proxied=False, modified_is_proxied=False): self.cached_attributes = cached_attributes self.client = client self.created_is_proxied = created_is_proxied self.fields = fields self.id = id self.identity = identity self.model = model self.modified_is_proxied = modified_is_proxied self.registration = registration self.title = registration.title def __repr__(self): return 'Proxy(%r)' % self.id def acquire(self, id): try: return self.schema.session.query(self.model).get(id) except NoResultFound: return None def annotate_payload(self, payload): # this function is a hack if not payload: return if 'include' in payload: for key in ('associates', 'associations'): if key in payload['include']: payload['include'].remove(key) def construct_resource(self, subject, resource, data): if field_included(data, 'associates'): resource['associates'] = subject.describe_associates() if field_included(data, 'associations'): resource['associations'] = subject.describe_associations() for attr, field in self.fields.iteritems(): if attr not in resource and not field.deferred: resource[attr] = getattr(subject, attr) def create(self, data): session = self.schema.session self._acquire_registration_lock(session) attrs = dict((attr, value) for attr, value in data.iteritems() if attr in self.fields or attr == 'id') subject = self.model.create(session, **attrs) session.flush() returning = list(self.cached_attributes) if not subject.name: returning.append('name') if self.created_is_proxied: returning.append('created') if self.modified_is_proxied: returning.append('modified') payload = self.extract_data('create', data) if returning: payload[RETURNING] = returning payload['id'] = subject.id result = self.execute_request('create', data=payload) attrs = result.content if self.created_is_proxied and not self.modified_is_proxied: attrs['modified'] = attrs['created'] try: subject.update_with_mapping(attrs, ignore='id') except Exception: self._attempt_request('delete', subject.id) raise return subject def count(self): response = self.execute_request('query', data={'total': True}) return response.content['total'] def delete(self, subject, data=None): session = self.schema.session self._acquire_registration_lock(session) session.delete(subject) session.flush() try: self.execute_request('delete', subject.id, data) except GoneError: pass def extract_data(self, request, data): return self.client.extract(self.identity, request, data) def execute_request(self, request, subject=None, data=None, ignore_error=False): try: return self.client.execute(self.identity, request, subject, data) except ConnectionError: raise BadGatewayError() except RequestError: if not ignore_error: raise def get(self, subject, data=None): payload = self.extract_data('get', data) self.annotate_payload(payload) try: result = self.execute_request('get', subject.id, payload) except GoneError: resource = {'id': subject.id, 'defunct': True} else: resource = result.content self.construct_resource(subject, resource, data) return resource def iterate(self, limit, fields=None): total = self.count() offset = 0 while offset < total: payload = {'offset': offset, 'limit': limit} if fields: payload['fields'] = fields response = self.execute_request('query', data=payload) for resource in response.content['resources']: yield resource else: offset += limit def load(self, identifiers, fields=None): single = False if isinstance(identifiers, basestring): identifiers = [identifiers] single = True payload = {'identifiers': identifiers} if fields: payload['fields'] = fields response = self.execute_request('load', data=payload) if single: return response.content[0] else: return response.content def query(self, data=None): # todo: needs to use data to request deferred fields via load attrs = self.fields.keys() data = data or {} query = self.schema.session.query(self.model) filters = data.get('query') if filters: query = self._construct_filters(query, filters) total = query.count() if data.get('total'): return {'total': total} if 'sort' in data: query = self._construct_sorting(query, data['sort']) if 'limit' in data: query = query.limit(data['limit']) if 'offset' in data: query = query.offset(data['offset']) subjects = list(query.all()) if not subjects: return {'total': total, 'resources': []} payload = {'identifiers': [subject.id for subject in subjects]} if 'include' in data: payload['include'] = list(data['include']) self.annotate_payload(payload) result = self.execute_request('load', data=payload) resources = [] for resource, subject in zip(result.content, subjects): if not resource: resource = {'id': subject.id, 'defunct': True} self.construct_resource(subject, resource, data) resources.append(resource) return {'total': total, 'resources': resources} def update(self, subject, data): if not data: return session = self.schema.session self._acquire_registration_lock(session) attrs = dict((attr, value) for attr, value in data.iteritems() if attr in self.fields) subject.update(session, **attrs) session.flush() returning = self.cached_attributes if self.modified_is_proxied: returning = ['modified'] + returning payload = self.extract_data('update', data) if not payload: return if returning: payload[RETURNING] = returning try: result = self.execute_request('update', subject.id, payload) except GoneError: subject.defunct = True return attrs = result.content try: subject.update_with_mapping(attrs, ignore='id') except Exception: # schedule sync here pass def _acquire_registration_lock(self, session): registration = session.merge(self.registration, load=False) return registration.lock(session) def _attempt_request(self, request, subject=None, data=None): try: self.client.execute(self.identity, request, subject, data) except Exception: pass def _construct_filters(self, query, filters): model = self.model operators = self.operators for filter, value in filters.iteritems(): if filter == 'associates__has': if value: query = Association.query_associates(query, model, **value) continue elif filter == 'associations__has': if value: query = Association.query_associations(query, model, **value) continue attr, operator = filter, 'equal' if '__' in filter: attr, operator = filter.rsplit('__', 1) column = getattr(model, attr) if not column: continue constructor = getattr(operators, operator + '_op') query = constructor(query, column, value) return query def _construct_sorting(self, query, sorting): model = self.model columns = [] for attr in sorting: direction = asc if attr[-1] == '+': attr = attr[:-1] elif attr[-1] == '-': attr = attr[:-1] direction = desc column = getattr(model, attr) columns.append(direction(column)) return query.order_by(*columns) class ProxyController(Unit, Controller): """A mesh controller for resources proxied by docket.""" proxy = None schema = SchemaDependency('docket') def acquire(self, subject): return self.proxy.acquire(subject) def create(self, request, response, subject, data): try: subject = self.proxy.create(data) except RequestError, exception: return response(exception.status, exception.content) self.schema.session.commit() response({'id': subject.id}) def delete(self, request, response, subject, data): try: self.proxy.delete(subject, data) except RequestError, exception: return response(exception.status, exception.content) self.schema.session.commit() response({'id': subject.id}) def get(self, request, response, subject, data): try: response(self.proxy.get(subject, data)) except RequestError, exception: response(exception.status, exception.content) def put(self, request, response, subject, data): if subject: self.update(request, response, subject, data) else: data['id'] = request.subject self.create(request, response, subject, data) def query(self, request, response, subject, data): try: response(self.proxy.query(data)) except RequestError, exception: response(exception.status, exception.content) def update(self, request, response, subject, data): if not data: return response({'id': subject.id}) try: self.proxy.update(subject, data) except RequestError, exception: return response(exception.status, exception.content) self.schema.session.commit() response({'id': subject.id}) def _dispatch_request(self, definition, request, response, subject, data): try: result = self.proxy.execute_request(definition.name, subject, data) except RequestError, exception: return response(exception.status, exception.content) else: return response(result.content) <file_sep>from spire.schema import SchemaDependency from docket.controllers.entity import BaseEntityController class BaseConstituentController(BaseEntityController): schema = SchemaDependency('docket') <file_sep>"""add_archetypes Revision: <PASSWORD> Revises: <PASSWORD> Created: 2013-03-04 10:43:31.257915 """ revision = '<PASSWORD>' down_revision = '<PASSWORD>' from alembic import op from spire.schema.fields import * from spire.mesh import DefinitionType from sqlalchemy import Column, ForeignKey, ForeignKeyConstraint, PrimaryKeyConstraint, CheckConstraint from sqlalchemy.dialects import postgresql def upgrade(): op.create_table('archetype', Column('entity_id', TextType(), nullable=False), Column('resource', TokenType(), nullable=False), Column('properties', DefinitionType(), nullable=True), ForeignKeyConstraint(['entity_id'], ['entity.id']), PrimaryKeyConstraint('entity_id') ) op.create_table('instance', Column('id', TextType(), nullable=False), ForeignKeyConstraint(['id'], ['entity.id']), PrimaryKeyConstraint('id') ) op.create_table('document', Column('id', TextType(), nullable=False), ForeignKeyConstraint(['id'], ['instance.id']), PrimaryKeyConstraint('id') ) op.create_table('documenttype', Column('archetype_id', TextType(), nullable=False), ForeignKeyConstraint(['archetype_id'], ['archetype.entity_id']), PrimaryKeyConstraint('archetype_id') ) def downgrade(): op.drop_table('documenttype') op.drop_table('document') op.drop_table('instance') op.drop_table('archetype') <file_sep>from mesh.standard import OperationError from spire.core import Dependency from spire.mesh import ModelController, field_included from spire.schema import NoResultFound, SchemaDependency from docket.engine.registry import EntityRegistry from docket.models import * from docket.resources import Entity as EntityResource class BaseEntityController(ModelController): def create(self, request, response, subject, data): session = self.schema.session subject = self.model.create(session, **data) session.commit() response({'id': subject.id}) def update(self, request, response, subject, data): session = self.schema.session if data: subject.update(session, **data) session.commit() response({'id': subject.id}) def _annotate_filter(self, query, filter, value): if filter == 'associations__has': if value: query = Association.query_associations(query, self.model, **value) return query elif filter == 'associates__has': if value: query = Association.query_associates(query, self.model, **value) return query def _annotate_resource(self, request, model, resource, data): if field_included(data, 'associations'): resource['associations'] = model.describe_associations() if field_included(data, 'associates'): resource['associates'] = model.describe_associates() class EntityController(BaseEntityController): resource = EntityResource version = (1, 0) model = Entity registry = Dependency(EntityRegistry) schema = SchemaDependency('docket') mapping = 'id entity name designation description created modified' def task(self, request, response, subject, data): registry = self.registry session = self.schema.session task = data['task'] if task == 'synchronize-all-entities': self.model.synchronize_entities(registry, session) elif task == 'synchronize-entities': for identifier in data['ids']: try: subject = self.model.load(session, id=data['id'], lockmode='update') except NoResultFound: continue else: subject.synchronize(registry, session) session.commit() elif task == 'synchronize-changed-entity': event = data.get('event') if not event: return try: subject = self.model.load(session, id=event['id'], lockmode='update') except NoResultFound: return else: subject.synchronize(registry, session) session.commit() <file_sep>from spire.schema import * from docket.models.entity import Entity __all__ = ('Instance',) schema = Schema('docket') class Instance(Entity): """An archetype instance.""" class meta: polymorphic_identity = 'docket:instance' schema = schema tablename = 'instance' id = ForeignKey(Entity.id, nullable=False, primary_key=True) <file_sep>from spire.core import Dependency from spire.mesh import MeshDependency from spire.schema import SchemaDependency from docket import resources from docket.controllers.archetype import BaseArchetypeController from docket.engine.archetype_registry import ArchetypeRegistry from docket.models import * class DocumentTypeController(BaseArchetypeController): resource = resources.DocumentType version = (1, 0) model = DocumentType mapping = 'id name designation description created modified resource properties' registry = Dependency(ArchetypeRegistry) schema = SchemaDependency('docket') <file_sep>from mesh.standard import bind from spire.core import Dependency from spire.mesh import MeshDependency from spire.schema import SchemaDependency from docket import resources from docket.controllers.entity import BaseEntityController from docket.engine.archetype_registry import ArchetypeRegistry from docket.models import * class BaseArchetypeController(BaseEntityController): def create(self, request, response, subject, data): session = self.schema.session subject = self.model.create(session, **data) session.commit() response({'id': subject.id}) def delete(self, request, response, subject, data): session = self.schema.session session.delete(subject) session.commit() response({'id': subject.id}) self.registry.unregister(subject) def update(self, request, response, subject, data): if not data: return response({'id': subject.id}) session = self.schema.session changed = subject.update(session, **data) session.commit() response({'id': subject.id}) class ArchetypeController(BaseArchetypeController): resource = resources.Archetype version = (1, 0) model = Archetype registry = Dependency(ArchetypeRegistry) schema = SchemaDependency('docket') mapping = 'id name designation description created modified resource properties' <file_sep>from spire.schema import SchemaDependency from docket import resources from docket.controllers.entity import BaseEntityController from docket.models import * class IntentController(BaseEntityController): resource = resources.Intent version = (1, 0) model = Intent schema = SchemaDependency('docket') mapping = 'id name designation description created modified exclusive' <file_sep>from mesh.standard import bind from spire.core import Dependency from spire.mesh import MeshDependency from spire.schema import * from spire.support.logs import LogHelper from docket.bindings import platoon from docket.controllers.entity import BaseEntityController from docket.engine.registry import EntityRegistry from docket.models import * from docket.resources.package import Package as PackageResource log = LogHelper('docket') ScheduledTask = bind(platoon, 'platoon/1.0/scheduledtask') class PackageController(BaseEntityController): resource = PackageResource version = (1, 0) model = Package registry = Dependency(EntityRegistry) schema = SchemaDependency('docket') docket = MeshDependency('docket') mapping = 'id name designation description created modified package status' def create(self, request, response, subject, data): session = self.schema.session subject = self.model.create(session, **data) log('info', 'create request for package %s', subject.id) try: session.commit() except IntegrityError: raise OperationError(token='duplicate-package') if subject.status == 'deploying': task_params = { 'task': 'deploy-package', 'id': subject.id, } ScheduledTask.queue_http_task( 'deploy-package', self.docket.prepare('docket/1.0/package', 'task', None, task_params) ) response({'id': subject.id}) return def task(self, request, response, subject, data): log('info', 'task request to %s', data['task']) registry = self.registry session = self.schema.session if 'id' in data: try: subject = self.model.load(session, id=data['id'], lockmode='update') except NoResultFound: return task = data['task'] if task == 'deploy-package': subject.deploy(registry, session, method='create') elif task == 'update-package': subject.deploy(registry, session, method='update') if subject.status == 'invalid': session.rollback() subject.status = 'invalid' session.commit() return def update(self, request, response, subject, data): log('info', 'update request for package %s', subject.id) session = self.schema.session if not data: return response({'id': subject.id}) subject.update(data) session.commit() if subject.status == 'deploying': task_params = { 'task': 'update-package', 'id': subject.id, } ScheduledTask.queue_http_task( 'update-package', self.docket.prepare('docket/1.0/package', 'task', None, task_params) ) response({'id': subject.id}) <file_sep>from distutils.core import setup from bake.packaging import * setup( name='docket', version='0.0.1', packages=enumerate_packages('docket'), package_data={ 'docket': ['migrations/env.py', 'migrations/script.py.mako', 'migrations/versions/*.py'], 'docket.bindings': ['*.mesh'], } ) <file_sep>"""remove_entity_test Revision: 2dfd6f<PASSWORD> Revises: None Created: 2013-02-17 20:30:38.329327 """ revision = '2dfd6f687af' down_revision = None from alembic import op from spire.schema.fields import * from sqlalchemy import Column, ForeignKey, ForeignKeyConstraint, PrimaryKeyConstraint, CheckConstraint from sqlalchemy.dialects import postgresql def upgrade(): op.execute('drop table if exists entity_test') def downgrade(): pass <file_sep>from mesh.standard import InvalidError, BadRequestError from scheme import current_timestamp, Yaml from spire.schema import * from spire.support.logs import LogHelper from docket.models.entity import Entity from docket.models.registration import Registration __all__ = ('Package',) log = LogHelper('docket') schema = Schema('docket') class Package(Entity): """A package of entities.""" class meta: polymorphic_identity = 'docket:package' schema = schema tablename = 'package' is_container = True entity_id = ForeignKey(Entity.id, nullable=False, primary_key=True) status = Enumeration('deployed undeployed deploying invalid', default='undeployed') package = Text() @classmethod def create(cls, session, **attrs): subject = super(Package, cls).create(session, **attrs) if subject.status == 'deployed': subject.status = 'deploying' return subject def update(self, data): current_entities = self._unserialize_entities(self.package) ce_dict = dict([(ce.get('id'), ce) for ce in current_entities]) updated_entities = self._unserialize_entities(data.get('package', {})) for ue in updated_entities: ue_id = ue.get('id') if not ue_id: raise BadRequestError ce = ce_dict.get(ue_id) if ce: ce.update(ue) else: ce_dict[ue_id] = ue self.update_with_mapping(data) self.package = self._serialize_entities(ce_dict.values()) self.modified = current_timestamp() if self.status == 'deployed': self.status = 'deploying' return def deploy(self, registry, session, method='create'): try: entities = self._unserialize_entities(self.package) for entity in entities: # remove type before passing entity down to proxy entity_type = entity.pop('entity', 'unknown') entity_id = entity.get('id', None) registration = session.query(Registration).get(entity_type) proxy = registration.get_canonical_proxy(registry) try: if method == 'create' or not entity_id: e = proxy.create(entity) entity['id'] = e.id elif method == 'update': if entity_id: e = proxy.acquire(entity_id) e.update(entity) else: log('critical', '%s: no id for deployed entity %s:%s in package %s', method, entity_type, str(entity), self.entity_id) else: raise NotImplementedError # restore attributes before updating docket entity['entity'] = entity_type except Exception, e: log('critical', '%s: entity %s in package %s failed :', method, entity_type, str(entity)) log('critical', '%s', str(e)) self.status = 'invalid' break if not self.status == 'invalid': self.package = self._serialize_entities(entities) self.status = 'deployed' except Exception, e: log('exception', 'extraction of package %s failed : %s', self.entity_id, str(e)) self.status = 'invalid' return def _serialize_entities(self, entities): return Yaml().serialize(entities) def _unserialize_entities(self, entities): return Yaml().unserialize(entities) <file_sep>from mesh.standard import OperationError from scheme import current_timestamp from spire.schema import * from spire.support.logs import LogHelper from spire.util import uniqid from sqlalchemy import func from docket.models.registration import Registration __all__ = ('Entity',) log = LogHelper('docket') schema = Schema('docket') class Entity(Model): """An entity.""" class meta: polymorphic_on = 'entity' polymorphic_identity = 'docket:entity' schema = schema tablename = 'entity' id = Text(nullable=False, primary_key=True) entity = Token(nullable=False, index=True) name = Text(index=True) designation = Text(index=True) description = Text() created = DateTime(timezone=True, nullable=False) modified = DateTime(timezone=True, nullable=False) defunct = Boolean(nullable=False, default=False) associations = relationship('Association', backref='subject', lazy='dynamic', primaryjoin='Entity.id==Association.subject_id', cascade='all', passive_deletes=True) is_container = False def __repr__(self): return '%s(id=%r, name=%r)' % (type(self).__name__, self.id, self.name) @classmethod def create(cls, session, **attrs): subject = cls(**attrs) if not subject.id: subject.id = uniqid() if subject.created: subject.modified = subject.created else: subject.created = subject.modified = current_timestamp() cls._check_duplicate_name(session, subject) session.add(subject) return subject def describe_associates(self): associates = [] for associate in self.associates.options(joinedload('subject')): subject = associate.subject associates.append({ 'subject': subject.id, 'intent': associate.intent, 'entity': subject.entity, 'name': subject.name, }) return associates def describe_associations(self): associations = [] for association in self.associations.options(joinedload('target')): target = association.target associations.append({ 'intent': association.intent, 'target': target.id, 'entity': target.entity, 'name': target.name, }) return associations def get_registration(self, session): return session.query(Registration).get(self.entity) def synchronize(self, registry, session): """Synchronize this entity with its contributing component.""" registration = self.get_registration(session) proxy = registration.get_canonical_proxy(registry) resource = proxy.load(self.id, proxy.cached_attributes) if resource: self._synchronize_entity(proxy, resource) else: self.defunct = True @classmethod def synchronize_entities(cls, registry, session): """Synchronizes all docket entities with their respective components.""" registrations = list(session.query(Registration)) for registration in registrations: registration.lock(session, True) try: cls._synchronize_entities(registry, session, registration) except Exception: log('exception', 'synchronization of %s entities failed', registration.id) session.rollback() else: session.commit() def update(self, session, **attrs): self.update_with_mapping(attrs, ignore='id') self.modified = current_timestamp() self._check_duplicate_name(session, self) @classmethod def _check_duplicate_name(cls, session, instance): # temporary solution for name uniqueness from docket.models import Archetype statement = session.query(func.count(Entity.id)).filter( Entity.entity.in_(session.query(Archetype.entity_id)), Entity.name==instance.name, Entity.entity==instance.entity, Entity.id!=instance.id) if statement.scalar(): raise OperationError(structure={ 'name': OperationError(token='duplicate-entity-name-for-type')}) @classmethod def _synchronize_entities(cls, registry, session, registration): implementation = registry.models[registration.id] query = session.query(implementation) proxy = registration.get_canonical_proxy(registry) fields = ['id'] + proxy.cached_attributes identifiers = set() for resource in proxy.iterate(2000): entity = query.get(resource['id']) if entity: entity._synchronize_entity(proxy, resource) identifiers.add(entity.id) else: entity = implementation.create(session, **resource) identifiers.add(entity.id) for entity in query.all(): if entity.id not in identifiers: entity.defunct = True def _synchronize_entity(self, proxy, data): self.defunct = False for attr in proxy.cached_attributes: if attr in data: setattr(self, attr, data[attr]) # todo: handle entity attrs <file_sep>from mesh.standard import * from scheme import * from docket.resources.entity import Entity __all__ = ('Registration',) StandardEntity = Structure(Entity[1].mirror_schema('entity defunct')) class Registration(Resource): """An entity registration.""" name = 'registration' version = 1 requests = 'create delete get put query update' class schema: id = Token(segments=2, nonempty=True, oncreate=True, operators='equal') name = Token(segments=1, nonempty=True, operators='equal') title = Text(nonempty=True, operators='equal') url = Text(nonempty=True) specification = Field(nonempty=True) is_container = Boolean(nonnull=True, default=False) canonical_version = Text() change_event = Token() cached_attributes = Map(Structure({ 'type': Token(segments=1, nonempty=True), }, nonnull=True), nonnull=True) standard_entities = Sequence(StandardEntity) class task: endpoint = ('TASK', 'registration') title = 'Initiating a registration task' schema = Structure( structure={ 'synchronize-entities': {}, }, nonempty=True, polymorphic_on=Enumeration(['synchronize-entities'], name='task', nonempty=True)) responses = { OK: Response(), INVALID: Response(Errors), } <file_sep>class RegistrationSupport(object): mixin = 'Registration' @staticmethod def prepare_specifications(description, name): specifications = {} for version, resources in description['versions'].iteritems(): if name in resources: specifications['%d.%d' % version] = resources[name] return specifications
63c02e307e5b2a1c6f9c74c16365c0482c976b50
[ "Python", "Shell" ]
53
Python
siq-legacy/docket
dbc1c9cd5297c9efe84780aadc0d8204a7b9af9b
f127c164e0d13960f0af2f7e27961b669db5ce1f
refs/heads/master
<file_sep><?php /* * This file is part of the BaseApi package. * * (c) <NAME> <<EMAIL>> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Onema\BaseApiBundle\Tests\Controller; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; /** * @author <NAME> <<EMAIL>> */ class ProductControllerTest extends BaseCases { public function setUp() { $this->controllerPlural = 'products'; $this->controllerSingular = 'product'; $this->prefix = 'api/'; $this->postParameters = array( array( 'product' => array( 'name' => 'Test 1', 'price' => 100, 'description' => 'description 1', ) ), array( 'product' => array( 'name' => 'Test 2', 'images' => array( array('path'=>'image1.png'), array('path' => 'image2.png') ), 'category' => 'category 1', ) ), array( 'product' => array( 'name' => 'Test 3', 'images' => array( array('path'=>'image1.png'), array('path' => 'image2.png') ), 'category' => 'category 1', ) ) ); $this->putParameters = array( 'product' => array( 'name' => 'Test 1 updated ' . time() , 'images' => array( array('path'=>'image3.png') ), 'yelp' => 'someyelpsite.com', 'category' => 'category 2', ) ); parent::setUp(); } }<file_sep><?php /* * This file is part of the BaseApi package. * * (c) <NAME> <<EMAIL>> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Onema\BaseApiBundle\EventListener; use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException; use Symfony\Component\Routing\Exception\ResourceNotFoundException; use Symfony\Component\HttpKernel\Event\FilterControllerEvent; use Doctrine\DBAL\DBALException; use \PDOException; use \RuntimeException; use Onema\BaseApiBundle\Event\ApiProcessEvent; /** * @author <NAME> <<EMAIL>> */ class RepositoryActionListener { private $arguments; private $method; public function __construct($method = null, $arguments = array()) { $this->method = $method; $this->arguments = $arguments; } /** * This method should be called when more than one object is expected. The * collection of data will be moved/converted over to an array. * Doctrine ORM doesn't require this conversion, but Doctrine MongoDB ODM * does. * * @param \Onema\BaseApiBundle\Event\ApiProcessEvent $event */ public function onFindCollection(ApiProcessEvent $event) { $documents = $this->execute($event); $collection = $this->convertDocumentCollection($documents); $event->setReturnData($collection); } /** * This method should be called when a single result is expected. * * @param \Onema\BaseApiBundle\Event\ApiProcessEvent $event * @deprecated since version 0.2.0 */ public function onFindOne(ApiProcessEvent $event) { $document = $this->execute($event); // No data should return a 404 if(empty($document)) { throw new ResourceNotFoundException('Could not find resource', 404); } else { $event->setReturnData($document); } } public function onCall(ApiProcessEvent $event) { $this->method = $event->getMethod(); $this->arguments = $event->getArguments(); $document = $this->execute($event); $event->setReturnData($document); } /** * JMS Serializer doesn't play well with doctrine ODM Cursor objects. this is a * utility method that will put this collection into a siple array. * @param type $documents * @return array */ private function convertDocumentCollection($documents) { if($documents instanceof \Doctrine\ODM\MongoDB\Cursor) { $documents = $documents->toArray(); } // No data should return a 404 if(empty($documents)) { throw new ResourceNotFoundException('Could not find resource', 404); } return $documents; } /** * Uses the repository to execute a query. * * @param \Onema\BaseApiBundle\Event\ApiProcessEvent $event * @return Entity|Document * @throws RuntimeException * @throws ResourceNotFoundException */ private function execute(ApiProcessEvent $event) { $repository = $event->getRepository(); try { $documents = call_user_func_array( array( $repository, $this->method ), $this->arguments); } catch(DBALException $e) { throw new RuntimeException('A DBAL error occurred while processing your request'); } catch (PDOException $e) { throw new RuntimeException('A DB configuration error occurred while processing your request'); } return $documents; } }<file_sep><?php /* * This file is part of the BaseApi package. * * (c) <NAME> <<EMAIL>> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Onema\BaseApiBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\EventDispatcher\EventDispatcher; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Kernel; use JMS\Serializer\SerializerBuilder; use FOS\RestBundle\View\View; use FOS\RestBundle\Util\Codes; use Onema\BaseApiBundle\Exception\MissingRepositoryMethodException; use Onema\BaseApiBundle\Event\ApiProcessEvent; use Onema\BaseApiBundle\EventListener\RepositoryActionListener; /** * @author <NAME> <<EMAIL>> */ class BaseApiController extends Controller { const VENDOR = 0; const BUNDLE = 1; const API_GET = 'api.get'; const API_PROCESS = 'api.process'; const API_REPOSITORY = 'api.use_repository'; protected $dispatcher; protected $defaultRepository; protected $defaultDataStore; public function __construct() { $this->dispatcher = new EventDispatcher(); $repositoryActionListener = new RepositoryActionListener(); $this->dispatcher->addListener(self::API_REPOSITORY, array($repositoryActionListener, 'onCall')); } /** * Adds the Default Repository methods to the controller. This method leverages * the event dispatcher to call any method of the repository defined in * BaseApiController::defaultRepository. * * How to extend a Class without Using Inheritance {@link http://symfony.com/doc/current/cookbook/event_dispatcher/class_extension.html} * Related classes {@link Onema\BaseApiBundle\EventListener\RepositoryActionListener} * and {@link Onema\BaseApiBundle\Event\ApiProcessEvent} * * @param string $method * @param array $arguments * @return mixed * @throws \Exception * @throws MissingRepositoryMethodException */ public function __call($method, $arguments) { $repository = $this->getRepository($this->defaultRepository, $this->defaultDataStore); // The registered event listener from the child class will be called. $event = new ApiProcessEvent($repository, $method, $arguments); $this->dispatcher->dispatch(self::API_REPOSITORY, $event); // no listener was able to process the event? The method does not exist if (!$event->isProcessed()) { throw new MissingRepositoryMethodException(sprintf('Call to undefined method %s::%s.', get_class($this), $method)); } // return the listener returned value return $event->getReturnData(); } /** * Creates a form using a request object and validates it. Upon success the * correct response will be returned. On falure an error message will be * returned. * * @param mixed $document * @param string $documentType form type for the entity or document being processed, if none it will be guessed * @param string $location string to construct the Location URL * @param boolean $isNew * @return View FOS\RestBundle\View\View */ protected function processForm($document, $documentType = null, $location = false, $isNew = false) { $statusCode = $isNew ? Codes::HTTP_CREATED : Codes::HTTP_NO_CONTENT; $request = $this->getRequest(); if(!isset($documentType)) { // try to guess the document type from the document class name $documentTypeClass = $this->getTypeClassName(get_class($document)); $documentType = new $documentTypeClass(); } $form = $this->createForm($documentType, $document, array('method' => $request->getMethod())); // Support for versions greater than 2.3 which shouldn't pass the request // to the submit method and previous version that support it. if (version_compare(Kernel::VERSION, '2.3', '>=')) { $form->handleRequest($request); } else if(version_compare(Kernel::VERSION, '2.1', '>=')){ $form->submit($this->getRequest()); } if($form->isValid()) { $manager = $this->getManager(); $manager->persist($document); $manager->flush(); $view = View::create(null, $statusCode); if($statusCode === Codes::HTTP_CREATED) { $view->setHeader('Location', $this->generateUrl( $location, array('id' => $document->getId()), true // absolute ) ); } } else { $errors = $this->getErrorMessages($form); $view = View::create($errors, Codes::HTTP_BAD_REQUEST); } return $view; } /** * * @param mixed $document document|entity * @param mixed $documentType form type for the entity or document. * @param string $location string to construct the Location URL * @return View FOS\RestBundle\View\View */ protected function create($document, $documentType, $location) { return $this->processForm($document, $documentType, $location, true); } /** * * @param mixed $id * @param mixed $documentType * @param string $repositoryName * @param string $dataStore * @return View FOS\RestBundle\View\View */ protected function edit($id, $documentType = null, $repositoryName = null, $dataStore = null) { $document = $this->getOne('findOneById', array('id' => $id), $repositoryName, $dataStore); if($document === null) { /** * @todo Add support for PUT (idempotent) operations */ $view = View::create(sprintf('The requested resource with id "%s" doesn\'t exist.', $id), 400); } else { $view = $this->processForm($document, $documentType); } return $view; } /** * Delete a document or entity using it's id. * * @param mixed $id * @param string $repositoryName * @param string $dataStore * @return View FOS\RestBundle\View\View */ protected function delete($id, $repositoryName = null, $dataStore = null) { $document = $this->getOne('findOneById', array('id' => $id), $repositoryName, $dataStore); $manager = $this->getManager(); $manager->remove($document); $manager->flush(); return View::create(null, Codes::HTTP_NO_CONTENT); } /** * Returns the data requested by the child controller. * * @param string $repositoryName Name of the Entity/Document repository * @param string $dataStore either doctrine or doctrine_mongodb * @return mixed data requested by the child controller */ protected function processData($repositoryName = null, $dataStore = null) { $repository = $this->getRepository($repositoryName, $dataStore); // The registered event listener from the child class will be called. if($this->dispatcher->hasListeners(self::API_GET)) { $event = new ApiProcessEvent($repository); $this->dispatcher->dispatch(self::API_GET, $event); $data = $event->getReturnData(); } else if($this->dispatcher->hasListeners(self::API_PROCESS)) { /** * Not implemented yet... * @TODO add listener to perform actions other than search. consider using * the form listeners to avoid this block all together. */ $data = array(); } return $data; } /** * Uses the default API_GET listener to call one of three repository methods: * - findById * - findAll (It is preferred to use findPaginated) * - findPaginated (must be implemented in each repository) * * @param string $method * @param array $parameters * @param string $repositoryName * @param string $dataStore either doctrine OR doctrine_mongodb * @return type */ protected function getOne($method, $parameters = array(), $repositoryName = null, $dataStore = null) { $listener = new RepositoryActionListener($method, $parameters); $this->dispatcher->addListener(self::API_GET, array($listener, 'onFindOne')); $data = $this->processData($repositoryName, $dataStore); $this->dispatcher->removeListener(self::API_GET, $listener); return $data; } /** * Calls the given repository method through the ActionListener method onFindCollection. * Use this when multiple results are expected. if a single result is found, it * will be contained in an array. * * @param string $method repository method to be called * @param array $parameters list of parameters to pass to the repository method. * @param string $repo repository name * @param string $dataStore either doctrine or doctrine_mongodb * @return mixed Document */ protected function getCollection($method, $parameters = array(), $repositoryName = null, $dataStore = null) { $listener = new RepositoryActionListener($method, $parameters); $this->dispatcher->addListener(self::API_GET, array($listener, 'onFindCollection')); $data = $this->processData($repositoryName, $dataStore); $this->dispatcher->removeListener(self::API_GET, array($listener, 'onFindCollection')); return $data; } /** * * @param string $method * @param array $parameters * @param string $repositoryName * @param string $dataStore * @return type */ protected function postUpdate($method, $parameters = array(), $repositoryName = null, $dataStore = null) { $listener = new RepositoryActionListener($method, $parameters); $this->dispatcher->addListener(self::API_PROCESS, array($listener, $method)); return $this->processData($repositoryName, $dataStore); } /** * Get the pagination parameters form the query: * - skip: integer, where it should start getting parameters (skip for mongo queries) * - limit: maximum nubmer of results it should return. * * @return array */ protected function getPagination() { $query = $this->getRequest()->query; return array( 'skip' => $query->get('skip'), 'limit' => $query->get('limit') ); } /** * Get a doctrine repository bassed on the repo name and the type of data * store ie MongoDB or ORM * @param string $repositoryName Name of the Entity/Document repository * @param string $dataStore either doctrine or doctrine_mongdb * @return type */ protected function getRepository($repositoryName = null, $dataStore = null) { if(!isset($repositoryName)) { $repositoryName = $this->defaultRepository; } $manager = $this->getManager($dataStore); return $manager->getRepository($repositoryName); } /** * Returns the appropriate doctrine manager given a data store. * Current options include: * - 'doctrine' * - 'doctrine_mongodb' * * @param string|null $dataStore name of the data manager that will be used * @return type Doctrine object or document manager */ protected function getManager($dataStore = null) { if(!isset($dataStore)) { $dataStore = $this->defaultDataStore; } return $this->container->get($dataStore)->getManager(); } /** * Try to guess the form type class namespace and name based on the class name. * @param string $documentClass * @return type */ private function getTypeClassName($documentClass) { $parts = explode('\\', $documentClass); $size = sizeof($parts); return $parts[self::VENDOR].'\\'.$parts[self::BUNDLE].'\\Form\\Type\\'.$parts[$size-1] . 'Type'; } /** * Generate a simpler validation error structure. * * @param \Symfony\Component\Form\Form $form * @return type */ private function getErrorMessages(\Symfony\Component\Form\Form $form) { $errors = array(); foreach ($form->getErrors() as $key => $error) { $errors[$key] = $error->getMessage(); } if ($form->count()) { foreach ($form->all() as $child) { if (!$child->isValid()) { $errors[$child->getName()] = $this->getErrorMessages($child); } } } return $errors; } } <file_sep><?php namespace Onema\BaseApiBundle\Exception; use Symfony\Component\HttpKernel\Exception\HttpException; class MissingRepositoryMethodException extends HttpException{} <file_sep><?php /* * This file is part of the Onema\BaseApiBundle. * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Onema\BaseApiBundle\Tests\Form\Type; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\Test\TypeTestCase; /** * Description of BaseTypeTest * * @author <NAME> <<EMAIL>> */ abstract class BaseTypeTest extends TypeTestCase { public function submitValidData(array $formData, AbstractType $type) { $form = $this->factory->create($type); $document = $this->fromArray($formData); // submit the data to the form directly $form->submit($formData); $this->assertTrue($form->isSynchronized()); $this->assertEquals($document, $form->getData()); $view = $form->createView(); $children = $view->children; foreach (array_keys($formData) as $key) { $this->assertArrayHasKey($key, $children); } } public function submitInvalidData(array $formData, AbstractType $type) { $form = $this->factory->create($type); // $document = $this->fromArray($formData); // // // submit the data to the form directly // $form->submit($formData); // // $this->assertTrue(!$form->isSynchronized()); // $this->assertNotEquals($document, $form->getData()); } /** * Return an array of data containing valid data. * @return array return an array of data with the format specified in the link below * @link http://symfony.com/doc/current/cookbook/form/unit_testing.html#testing-against-different-sets-of-data docs to test multiple sets of data */ public abstract function getValidTestData(); /** * Return an array of invalid data. * @return array array with invalid data, it must use the format specified in the link below * @link http://symfony.com/doc/current/cookbook/form/unit_testing.html#testing-against-different-sets-of-data docs to test multiple sets of data */ public abstract function getInvalidTestData(); /** * Construct an object (model) from the submitted data * @return object model object */ public abstract function fromArray(array $formData); } <file_sep><?php namespace Onema\BaseApiBundle\EventSubscriber; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\Form\FormEvents; use Symfony\Component\Form\FormEvent; /** * Changes Form->submit() behavior so that it treats not set values as if they * were sent unchanged. * * Use when you don't want fields to be set to NULL when they are not displayed * on the page (or to implement PUT/PATCH requests). * @link https://gist.github.com/makasim/3720535 for more information */ class PatchSubscriber implements EventSubscriberInterface { public function onPreSubmit(FormEvent $event) { $form = $event->getForm(); $clientData = $event->getData(); $clientData = array_replace($this->prepareData($form), $clientData ?: array()); $event->setData($clientData); } /** * Returns the form's data like $form->submit() expects it */ protected function prepareData($form) { if ($form->count()) { $data = array(); foreach ($form->all() as $name => $child) { $data[$name] = $this->prepareData($child); } return $data; } else { return $form->getViewData(); } } static public function getSubscribedEvents() { return array( FormEvents::PRE_SUBMIT => 'onPreSubmit', ); } }<file_sep>BaseApiBundle ============= <file_sep><?php namespace Onema\BaseApiBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; class BaseApiBundle extends Bundle { } <file_sep><?php /* * This file is part of the BaseApi package. * * (c) <NAME> <<EMAIL>> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Onema\BaseApiBundle\Tests\Controller; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; use FOS\Rest\Util\Codes; /** * BaseCases test the most basic functionality a controller should implement: * PUT * @author <NAME> <<EMAIL>> */ class BaseCases extends WebTestCase { protected $uri; protected $uriSingular; protected $controllerPlural; protected $controllerSingular; protected $prefix; protected $putParameters; protected $postParameters; static $createdResources; public static function setUpBeforeClass() { self::$createdResources = array(); } public function setUp() { $this->uri = '/' . $this->prefix . $this->controllerPlural; $this->uriSingular = '/' . $this->prefix . $this->controllerSingular; } public function testPostOne() { foreach($this->postParameters as $parameters) { $client = static::createClient(); $client->request('POST', $this->uriSingular, $parameters); $response = json_decode($client->getResponse()->getContent()); // will print out the cause of the error, otherwise the content will be empty print_r($response); // Ensure that call returns a 201 Created status code. $code = $client->getResponse()->getStatusCode(); $this->assertEquals(Codes::HTTP_CREATED, $code); $headers = $client->getResponse()->headers; $location = $headers->get('Location'); $parts = explode('/', $location); $size = sizeof($parts); $id = $parts[$size-1]; // assert an ID with alpha numeric format: mongodb ids. $this->assertRegExp( '/^[a-zA-Z\d]+$/', $id ); self::$createdResources[$location] = $id; } return self::$createdResources; } /** * @depends testPostOne */ public function testGetCreatedContent($values) { foreach ($values as $location => $id) { $client = static::createClient(); $client->request('GET', $location); $response = json_decode($client->getResponse()->getContent()); $code = $client->getResponse()->getStatusCode(); $this->assertEquals(Codes::HTTP_OK, $code); } // return the last id so the next test can update it. return $values; } /** * @depends testGetCreatedContent * @todo check values agains the old ones to ensure they where update correctly. */ public function testPutOne($values) { $id = array_pop($values); $client = static::createClient(); $client->request('PUT', $this->uri . '/' . $id, $this->putParameters); $code = $client->getResponse()->getStatusCode(); $this->assertEquals(Codes::HTTP_NO_CONTENT, $code); } public function testGetCollection() { $minimunSize = sizeof($this->putParameters)-1; $client = static::createClient(); $client->request('GET', $this->uri); $this->assertRegExp('/'.$this->controllerPlural.'/', $client->getResponse()->getContent()); $response = json_decode($client->getResponse()->getContent()); $this->assertGreaterThan( $minimunSize, sizeof($response) ); } public function testGetCollectionPaginated() { $paginationSize = sizeof($this->postParameters); $client = static::createClient(); $client->request('GET', $this->uri, array('skip'=>0, 'limit' => $paginationSize)); $response = json_decode($client->getResponse()->getContent()); $objectName = $this->controllerPlural; $resultCount = count($response->$objectName); $this->assertEquals($paginationSize, $resultCount); $code = $client->getResponse()->getStatusCode(); $this->assertEquals(Codes::HTTP_OK, $code); return $response; } /** * @depends testGetCollectionPaginated */ public function testGetCollectionPaginatedSkip($response) { $paginationSize = sizeof($this->postParameters) - 1; $client = static::createClient(); $client->request('GET', $this->uri, array('skip' => 1, 'limit' => $paginationSize)); $responseSkipped = json_decode($client->getResponse()->getContent()); $objectName = $this->controllerPlural; $resultCount = count($responseSkipped->$objectName); $this->assertEquals($paginationSize, $resultCount); // check if the objects from response 1 subindex 1 match response 2 subindex 0. // if(isset($response->$objectName[0]['id'])) { // $id1 = $response->$objectName[1]['id']; // $id2 = $responseSkipped->$objectName[0]['id']; // $this->assertEquals($id1, $id2); // } $code = $client->getResponse()->getStatusCode(); $this->assertEquals(Codes::HTTP_OK, $code); } public function testGetAll() { $client = static::createClient(); $client->request('GET', $this->uri); $response = json_decode($client->getResponse()->getContent()); $objectName = $this->controllerPlural; $resultCount = count($response->$objectName); $this->assertGreaterThan(1, $resultCount); $code = $client->getResponse()->getStatusCode(); $this->assertEquals(Codes::HTTP_OK, $code); } public function testZeroPagination() { $client = static::createClient(); $client->request('GET', $this->uri, array('skip'=>0, 'limit' => 0)); $response = json_decode($client->getResponse()->getContent()); $objectName = $this->controllerPlural; $resultCount = count($response->$objectName); $this->assertGreaterThan(0, $resultCount); $code = $client->getResponse()->getStatusCode(); $this->assertEquals(Codes::HTTP_OK, $code); } public function testGetInvalidPagination() { $client = static::createClient(); $client->request('GET', $this->uri, array('skip'=>-1, 'limit' => -1)); $code = $client->getResponse()->getStatusCode(); $this->assertEquals(500, $code); } public function testGetDocumentWithBadId() { $client = static::createClient(); $client->request('GET', $this->uri . '/0'); $code = $client->getResponse()->getStatusCode(); $this->assertEquals(404, $code); } public function testDeleteCreatedResources() { $values = self::$createdResources; foreach ($values as $location => $id) { $client = static::createClient(); $client->request('DELETE', $location); $code = $client->getResponse()->getStatusCode(); $this->assertEquals(Codes::HTTP_NO_CONTENT, $code); } return $values; } /** * @depends testDeleteCreatedResources */ public function testGetDeleteContent($values) { foreach ($values as $location => $id) { $client = static::createClient(); $client->request('GET', $location); $response = json_decode($client->getResponse()->getContent()); $code = $client->getResponse()->getStatusCode(); $this->assertEquals(Codes::HTTP_NOT_FOUND, $code); } } }<file_sep><?php /* * This file is part of the BaseApi package. * * (c) <NAME> <<EMAIL>> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Onema\BaseApiBundle\Event; use Symfony\Component\EventDispatcher\Event; /** * @author <NAME> <<EMAIL>> */ class ApiProcessEvent extends Event { protected $repository; protected $data; protected $isProcessed = false; protected $method; protected $arguments; public function __construct($repository, $method = null, $arguments = null) { $this->repository = $repository; $this->method = $method; $this->arguments = $arguments; } public function getRepository() { return $this->repository; } public function getMethod() { return $this->method; } public function getArguments() { return $this->arguments; } /** * Sets the value to return and stops other listeners from being notified */ public function setReturnData($data) { $this->data = $data; $this->isProcessed = true; $this->stopPropagation(); } public function getReturnData() { return $this->data; } public function isProcessed() { return $this->isProcessed; } }
631afc7d4cfb1a78a2f6c05021cab8f0d1fa9133
[ "Markdown", "PHP" ]
10
PHP
onema/base-api-bundle
90f3f354674a991eed2b608b77d3c5e041ee1057
643668c4d02228c9c6ead197cb0eb2015a79cd78
refs/heads/master
<file_sep>package com.webcom.api.model; import lombok.Data; @Data public class Message { private int status; private String type; private String message; } <file_sep>package com.webcom.api.model; public enum Actions { SHOW,EDIT,DELETE } <file_sep>package com.webcom.api.model; import lombok.Data; import javax.persistence.*; import java.util.List; @Entity @Table(name = "groups") @Data public class Group extends BaseEntity { @Column(name = "name") private String name; @Column(name = "description") private String description; @Column(name = "main") private Boolean main; @ManyToMany(mappedBy = "groups", fetch = FetchType.LAZY) private List<User> users; } <file_sep>package com.webcom.api; import com.webcom.api.property.FileProperties; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.context.properties.EnableConfigurationProperties; @SpringBootApplication @EnableConfigurationProperties({ FileProperties.class }) public class WebcomApplication { public static void main(String[] args) { SpringApplication.run(WebcomApplication.class, args); } } <file_sep>package com.webcom.api.rest; import com.webcom.api.dto.FileDto; import com.webcom.api.dto.MessageDto; import com.webcom.api.exception.FileStorageException; import com.webcom.api.model.*; import com.webcom.api.repository.FileRepository; import com.webcom.api.security.Permissions; import com.webcom.api.service.FileService; import com.webcom.api.service.FileStorageService; import com.webcom.api.service.UserService; import org.springframework.core.io.Resource; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartResolver; import org.springframework.web.bind.annotation.GetMapping; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.util.Date; @RestController @RequestMapping(value = "/api/v1/files/") public class FileRestControllerV1 { private final FileService fileService; private final FileRepository fileRepository; private final UserService userService; private final MultipartResolver multipartResolver; private final FileStorageService fileStorageService; private final Logger logger = LoggerFactory.getLogger(FileRestControllerV1.class); @Autowired public FileRestControllerV1(FileService fileService, UserService userService, MultipartResolver multipartResolver, FileStorageService fileStorageService,FileRepository fileRepository) { this.fileService = fileService; this.userService = userService; this.multipartResolver = multipartResolver; this.fileStorageService = fileStorageService; this.fileRepository = fileRepository; } @GetMapping(value = "{id}") public ResponseEntity<FileDto> getFileById(@PathVariable(name = "id") Long id) { File file = fileService.findById(id); if (file == null) { return new ResponseEntity<>(HttpStatus.NO_CONTENT); } FileDto result = FileDto.fromFile(file); return new ResponseEntity<>(result, HttpStatus.OK); } @PostMapping("/rename") public ResponseEntity<FileDto> renameFile(@RequestBody FileDto fileRename, HttpServletRequest request, HttpServletResponse response) { User user = userService.findByUsername(userService.getCurrentUsername()); File file = fileService.findById(fileRename.getId()); Permissions permission = new Permissions(user, file); if(!permission.isEdit()) { throw new FileStorageException("Извените у вас не достаточно прав"); } if(fileRepository.findByNameAndParentId(fileRename.getName(),file.getParentId()) != null) { throw new FileStorageException("Sorry! This file already exists. " + fileRename.getName()); } file.setName(fileRename.getName()); File fileResult = fileService.save(file); FileDto result = FileDto.fromFile(fileResult); return new ResponseEntity<>(result, HttpStatus.OK); } @PostMapping("/upload") public ResponseEntity<FileDto> uploadFile(@RequestParam("file") MultipartFile bunaryFile, HttpServletRequest request, HttpServletResponse response) throws IOException { // получаем пользователя User user = userService.findByUsername(userService.getCurrentUsername()); if(request.getParameter("parent_id") == null) { throw new FileStorageException("missing parameter parent_id"); } // получаем фалйл родитель Long parentId = Long.valueOf(request.getParameter("parent_id")); File fileParent = fileService.findById(parentId); String fileName = fileStorageService.getOriginalFilename(bunaryFile); if (fileName.contains("..")) { throw new FileStorageException("Sorry! Filename contains invalid path sequence " + fileName); } if(fileRepository.findByNameAndParentId(fileName,fileParent.getId()) != null) { throw new FileStorageException("Sorry! This file already exists. " + fileName); } File modelFile = new File(); modelFile.setName(fileName); modelFile.setUserId(user.getId()); modelFile.setParentId(fileParent.getId()); modelFile.setType(Type.FILE); modelFile.setUpdated(new Date()); modelFile.setCreated(new Date()); modelFile.setStatus(Status.ACTIVE); modelFile.setPathId(fileStorageService.getCurentPathId()); modelFile.setGroupId(fileParent.getGroupId()); modelFile.setPermissions(fileParent.getPermissions()); File file = fileService.save(modelFile); fileStorageService.storeFile(bunaryFile, file); FileDto result = FileDto.fromFile(file); return new ResponseEntity<>(result, HttpStatus.OK); } @GetMapping("/download/{id}") @ResponseBody public ResponseEntity<Resource> downloadFile(@PathVariable(name = "id") Long id, HttpServletRequest request) { // Load file as Resource File file = fileService.findById(id); Resource resource = fileStorageService.loadFileAsResource(file); // Try to determine file's content type String contentType = null; try { contentType = request.getServletContext().getMimeType(resource.getFile().getAbsolutePath()); } catch (IOException ex) { logger.info("Could not determine file type."); } // Fallback to the default content type if type could not be determined if(contentType == null) { contentType = "application/octet-stream"; } return ResponseEntity.ok() .contentType(MediaType.parseMediaType(contentType)) .header(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=\"" + file.getName() + "\"") .body(resource); } @DeleteMapping(value = "{id}") public ResponseEntity<FileDto> deleteFileById(@PathVariable(name = "id") Long id) { System.out.println("deleteFileById: "+ id); File file = fileService.findById(id); file.setStatus(Status.DELETED); File fileDelete = fileService.save(file); FileDto result = FileDto.fromFile(fileDelete); return new ResponseEntity<>(result, HttpStatus.OK); } @DeleteMapping(value = "remove/{id}") public ResponseEntity<MessageDto> removeFileById(@PathVariable(name = "id") Long id) { File file = fileService.findById(id); if(fileStorageService.deleteFile(file)) { fileService.delete(file.getId()); Message message = new Message(); message.setStatus(200); message.setType("SUCCESS"); message.setMessage("DELETE_FILE_SUCCESS"); MessageDto messageDto = MessageDto.fromMessage(message); return new ResponseEntity<>(messageDto, HttpStatus.OK); } else { return new ResponseEntity<>(HttpStatus.NO_CONTENT); } } /* @PostMapping("/uploadMultipleFiles") public List<UploadFileResponse> uploadMultipleFiles(@RequestParam("files") MultipartFile[] files) { return Arrays.asList(files) .stream() .map(file -> uploadFile(file)) .collect(Collectors.toList()); }*/ @PostMapping("/permissions") public ResponseEntity<FileDto> permissionsFile(@RequestBody FileDto filePermissions, HttpServletRequest request, HttpServletResponse response) { User user = userService.findByUsername(userService.getCurrentUsername()); File file = fileService.findById(filePermissions.getId()); Permissions permission = new Permissions(user, file); if(!permission.isEdit()) { throw new FileStorageException("Извените у вас не достаточно прав"); } file.setPermissions(filePermissions.getPermissions()); File fileResult = fileService.save(file); FileDto result = FileDto.fromFile(fileResult); return new ResponseEntity<>(result, HttpStatus.OK); } } <file_sep>package com.webcom.api.repository; import com.webcom.api.model.File; import org.springframework.data.jpa.repository.JpaRepository; import java.util.List; public interface FileRepository extends JpaRepository<File, Long> { File findByName(String name); File findByNameAndParentId(String name, Long parentId); List<File> findAllByParentId(Long parentId); } <file_sep>package com.webcom.api.security; import com.webcom.api.model.Actions; import com.webcom.api.model.File; import com.webcom.api.model.Group; import com.webcom.api.model.User; import com.webcom.api.repository.FileRepository; import com.webcom.api.service.UserService; import lombok.Data; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.stream.IntStream; @Slf4j @Data public class Permissions { private int[] show = {4,5,6,7}; private int[] edit = {2,3,6,7}; private int[] delete = {1,3,5,7}; private int permisions; private User user; private File file; public Permissions(User user, File file) { this.user = user; this.file = file; this.permisions = getPermissionsUser(); } private Integer getPermissionsUser() { String string = String.valueOf(file.getPermissions()); char[] permissionsChar = string.toCharArray(); List<Integer> permissionsArray = new ArrayList<>(); if(isOwner()) { permissionsArray.add(Integer.valueOf(String.valueOf(permissionsChar[0]))); } if(isGroup()) { permissionsArray.add(Integer.valueOf(String.valueOf(permissionsChar[1]))); } permissionsArray.add(Integer.valueOf(String.valueOf(permissionsChar[2]))); return Collections.max(permissionsArray); } public boolean isShow() { if(IntStream.of(show).anyMatch(x -> x == permisions)) { return true; } return false; } public boolean isEdit() { if(IntStream.of(edit).anyMatch(x -> x == permisions)) { return true; } return false; } public boolean isDelete() { if(IntStream.of(delete).anyMatch(x -> x == permisions)) { return true; } return false; } public List<Actions> getActions() { List<Actions> actions = new ArrayList<>(); if(isShow()) { actions.add(Actions.SHOW); } if(isEdit()) { actions.add(Actions.EDIT); } if(isDelete()) { actions.add(Actions.DELETE); } return actions; } public boolean isOwner() { return ((file.getUserId() == user.getId()) ? true : false); } public boolean isGroup() { for (final Group group : user.getGroups()) { if(group.getId() == file.getGroupId()) { return false; } } return false; } } <file_sep>package com.webcom.api.repository; import com.webcom.api.model.Group; import com.webcom.api.model.User; import org.springframework.data.jpa.repository.JpaRepository; public interface GroupRepository extends JpaRepository<Group, Long> { Group findByUsersAndMain(User user, boolean main); } <file_sep>package com.webcom.api.service; import com.webcom.api.model.Group; import com.webcom.api.model.User; import java.util.List; public interface UserService { User register(User user); List<User> getAll(); User findByUsername(String username); User findById(Long id); void delete(Long id); String getCurrentUsername(); List<Group> getGroups(User user); Group getMainGroup(User user); } <file_sep>package com.webcom.api.service; import com.webcom.api.model.File; import com.webcom.api.model.User; import java.util.List; public interface FileService { List<File> findAllByParentId(Long parentId); File findById(Long id); void delete(Long id); File save(File file); } <file_sep>package com.webcom.api.rest; import com.webcom.api.dto.FileDto; import com.webcom.api.exception.FileStorageException; import com.webcom.api.model.*; import com.webcom.api.property.FileProperties; import com.webcom.api.repository.FileRepository; import com.webcom.api.security.Permissions; import com.webcom.api.service.FileService; import com.webcom.api.service.FileStorageService; import com.webcom.api.service.UserService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartResolver; import java.util.ArrayList; import java.util.Date; import java.util.List; @RestController @RequestMapping(value = "/api/v1/folders/") public class FolderRestControllerV1 { private final FileService fileService; private final FileRepository fileRepository; private final UserService userService; private final MultipartResolver multipartResolver; private final FileStorageService fileStorageService; private final FileProperties fileProperties; private final Logger logger = LoggerFactory.getLogger(FileRestControllerV1.class); @Autowired public FolderRestControllerV1(FileService fileService, UserService userService, MultipartResolver multipartResolver, FileStorageService fileStorageService, FileRepository fileRepository, FileProperties fileProperties) { this.fileService = fileService; this.userService = userService; this.multipartResolver = multipartResolver; this.fileStorageService = fileStorageService; this.fileRepository = fileRepository; this.fileProperties = fileProperties; } @GetMapping(value = "{id}") public ResponseEntity<?> getFilesByIdFolder(@PathVariable(name = "id") Long id) { List<File> files = fileService.findAllByParentId(id); if (files == null) { return new ResponseEntity<>(HttpStatus.NO_CONTENT); } List<FileDto> result = new ArrayList<>(); File currentFolder = fileService.findById(id); File parentFolder = fileService.findById(currentFolder.getParentId()); parentFolder.setName(".."); FileDto fileDtoParent = FileDto.fromFile(parentFolder); result.add(fileDtoParent); files.forEach(file -> { if(!file.getName().isEmpty() && file.getId() != 0 && file.getStatus() != Status.DELETED) { FileDto fileDto = FileDto.fromFile(file); result.add(fileDto); } }); return new ResponseEntity<>(result, HttpStatus.OK); } @PostMapping(value = "/set") @ResponseBody public FileDto setFolder(@RequestBody File file) { if(fileRepository.findByNameAndParentId(file.getName(),file.getParentId()) != null) { throw new FileStorageException("Sorry! This folder already exists. " + file.getName()); } File fileParent = fileService.findById(file.getParentId()); User user = userService.findByUsername(userService.getCurrentUsername()); System.out.println(user.getUsername()); Permissions permission = new Permissions(user, fileParent); logger.info("permissions : {}",permission.getPermisions()); if(!permission.isEdit()) { throw new FileStorageException("Sorry! proofreading this folder is forbidden"); } Group userGroup = userService.getMainGroup(user); file.setType(Type.FOLDER); file.setStatus(Status.ACTIVE); file.setUserId(user.getId()); file.setGroupId(userGroup.getId()); file.setPermissions(Integer.valueOf(fileProperties.getPermissions())); file.setUpdated(new Date()); file.setCreated(new Date()); File folder = fileService.save(file); System.out.println(folder.getUpdated()); FileDto fileDto = FileDto.fromFile(folder); return fileDto; } }
57feb8d5cd620d01e3c17f5bf54fa3ffdb2595b9
[ "Java" ]
11
Java
alsemyannikow/apiClient
ff39817f75c69f11754c6d3adf831a0e9ed56c5e
5fe48f06619f075c44014d0d546a7a292b933e9a
refs/heads/master
<file_sep>from .local_cuda_cluster import LocalCUDACluster from .dgx import DGX <file_sep>0.8 --- - Add device memory spill support (LRU-based only) (#51) `<NAME>`_ - Update CI dependency to CuPy 6.0.0 (#53) `<NAME>`_ - Add a hard-coded DGX configuration (#46) (#70) `<NAME>`_ - Fix LocalCUDACluster data spilling and its test (#67) `<NAME>`_ - Add test skipping functionality to build.sh (#71) `<NAME>`_ - Replace use of ncores= keywords with nthreads= (#75) `<NAME>`_ - Fix device memory spilling with cuDF (#65) `<NAME>`_ - LocalCUDACluster calls _correct_state() to ensure workers started (#78) `<NAME>`_ .. _`<NAME>`: https://github.com/pentschev .. _`<NAME>`: https://github.com/mrocklin .. _`<NAME>`: https://github.com/dillon-cullinan <file_sep>import numpy as np import cupy from dask_cuda.device_host_file import DeviceHostFile from random import randint import pytest from cupy.testing import assert_array_equal @pytest.mark.parametrize("num_host_arrays", [1, 10, 100]) @pytest.mark.parametrize("num_device_arrays", [1, 10, 100]) @pytest.mark.parametrize("array_size_range", [(1, 1000), (100, 100), (1000, 1000)]) def test_device_host_file_short( tmp_path, num_device_arrays, num_host_arrays, array_size_range ): tmpdir = tmp_path / "storage" tmpdir.mkdir() dhf = DeviceHostFile( device_memory_limit=1024 * 16, memory_limit=1024 * 16, local_dir=tmpdir ) host = [ ("x-%d" % i, np.random.random(randint(*array_size_range))) for i in range(num_host_arrays) ] device = [ ("dx-%d" % i, cupy.random.random(randint(*array_size_range))) for i in range(num_device_arrays) ] import random full = host + device random.shuffle(full) for i in full: dhf[i[0]] = i[1] random.shuffle(full) for i in full: assert_array_equal(i[1], dhf[i[0]]) del dhf[i[0]] assert set(dhf.device.keys()) == set() assert set(dhf.host.keys()) == set() assert set(dhf.disk.keys()) == set() def test_device_host_file_step_by_step(tmp_path): tmpdir = tmp_path / "storage" tmpdir.mkdir() dhf = DeviceHostFile( device_memory_limit=1024 * 16, memory_limit=1024 * 16, local_dir=tmpdir ) a = np.random.random(1000) b = cupy.random.random(1000) dhf["a1"] = a assert set(dhf.device.keys()) == set() assert set(dhf.host.keys()) == set(["a1"]) assert set(dhf.disk.keys()) == set() dhf["b1"] = b assert set(dhf.device.keys()) == set(["b1"]) assert set(dhf.host.keys()) == set(["a1"]) assert set(dhf.disk.keys()) == set() dhf["b2"] = b assert set(dhf.device.keys()) == set(["b1", "b2"]) assert set(dhf.host.keys()) == set(["a1"]) assert set(dhf.disk.keys()) == set() dhf["b3"] = b assert set(dhf.device.keys()) == set(["b2", "b3"]) assert set(dhf.host.keys()) == set(["a1", "b1"]) assert set(dhf.disk.keys()) == set() dhf["a2"] = a assert set(dhf.device.keys()) == set(["b2", "b3"]) assert set(dhf.host.keys()) == set(["a2", "b1"]) assert set(dhf.disk.keys()) == set(["a1"]) dhf["b4"] = b assert set(dhf.device.keys()) == set(["b3", "b4"]) assert set(dhf.host.keys()) == set(["a2", "b2"]) assert set(dhf.disk.keys()) == set(["a1", "b1"]) dhf["b4"] = b assert set(dhf.device.keys()) == set(["b3", "b4"]) assert set(dhf.host.keys()) == set(["a2", "b2"]) assert set(dhf.disk.keys()) == set(["a1", "b1"]) assert_array_equal(dhf["a1"], a) del dhf["a1"] assert_array_equal(dhf["a2"], a) del dhf["a2"] assert_array_equal(dhf["b1"], b) del dhf["b1"] assert_array_equal(dhf["b2"], b) del dhf["b2"] assert_array_equal(dhf["b3"], b) del dhf["b3"] assert_array_equal(dhf["b4"], b) del dhf["b4"] assert set(dhf.device.keys()) == set() assert set(dhf.host.keys()) == set() assert set(dhf.disk.keys()) == set() <file_sep>from zict import Buffer, File, Func from zict.common import ZictBase from distributed.protocol import deserialize_bytes, serialize_bytes from distributed.worker import weight from functools import partial import os from .is_device_object import is_device_object def _serialize_if_device(obj): """ Serialize an object if it's a device object """ if is_device_object(obj): return serialize_bytes(obj, on_error="raise") else: return obj def _deserialize_if_device(obj): """ Deserialize an object if it's an instance of bytes """ if isinstance(obj, bytes): return deserialize_bytes(obj) else: return obj class DeviceHostFile(ZictBase): """ Manages serialization/deserialization of objects. Three LRU cache levels are controlled, for device, host and disk. Each level takes care of serializing objects once its limit has been reached and pass it to the subsequent level. Similarly, each cache may deserialize the object, but storing it back in the appropriate cache, depending on the type of object being deserialized. Parameters ---------- device_memory_limit: int Number of bytes of CUDA device memory for device LRU cache, spills to host cache once filled. memory_limit: int Number of bytes of host memory for host LRU cache, spills to disk once filled. local_dir: path Path where to store serialized objects on disk """ def __init__( self, device_memory_limit=None, memory_limit=None, local_dir="dask-worker-space" ): path = os.path.join(local_dir, "storage") self.host_func = dict() self.disk_func = Func( partial(serialize_bytes, on_error="raise"), deserialize_bytes, File(path) ) self.host_buffer = Buffer( self.host_func, self.disk_func, memory_limit, weight=weight ) self.device_func = dict() self.device_host_func = Func( _serialize_if_device, _deserialize_if_device, self.host_buffer ) self.device_buffer = Buffer( self.device_func, self.device_host_func, device_memory_limit, weight=weight ) self.device = self.device_buffer.fast.d self.host = self.host_buffer.fast.d self.disk = self.host_buffer.slow.d # For Worker compatibility only, where `fast` is host memory buffer self.fast = self.host_buffer.fast def __setitem__(self, key, value): if is_device_object(value): self.device_buffer[key] = value else: self.host_buffer[key] = value def __getitem__(self, key): if key in self.host_buffer: obj = self.host_buffer[key] del self.host_buffer[key] self.device_buffer[key] = _deserialize_if_device(obj) if key in self.device_buffer: return self.device_buffer[key] else: raise KeyError def __len__(self): return len(self.device_buffer) def __iter__(self): return iter(self.device_buffer) def __delitem__(self, i): del self.device_buffer[i] <file_sep>dask>=1.2.1 distributed>=1.28.0 numpy>=1.16.0 numba>=0.40.1 <file_sep>#!/usr/bin/env bash pip install git+https://github.com/dask/distributed.git@master python setup.py install --single-version-externally-managed --record=record.txt <file_sep>#!/usr/bin/env bash set -e NUMARGS=$# ARGS=$* # Logger function for build status output function logger() { echo -e "\n>>>> $@\n" } # Arg parsing function function hasArg { (( ${NUMARGS} != 0 )) && (echo " ${ARGS} " | grep -q " $1 ") } # Set path and build parallel level export PATH=/conda/bin:/usr/local/cuda/bin:$PATH export CUDA_REL=${CUDA//./} # Set home to the job's workspace export HOME=$WORKSPACE # Switch to project root; also root of repo checkout cd $WORKSPACE # Get latest tag and number of commits since tag export GIT_DESCRIBE_TAG=`git describe --abbrev=0 --tags` export GIT_DESCRIBE_NUMBER=`git rev-list ${GIT_DESCRIBE_TAG}..HEAD --count` # Enable NumPy's __array_function__ protocol (needed for NumPy 1.16.x, # will possibly be enabled by default starting on 1.17) export NUMPY_EXPERIMENTAL_ARRAY_FUNCTION=1 ################################################################################ # SETUP - Check environment ################################################################################ logger "Get env..." env logger "Activate conda env..." source activate gdf logger "Check versions..." python --version gcc --version g++ --version # FIX Added to deal with Anancoda SSL verification issues during conda builds conda config --set ssl_verify False conda install \ 'cudf=0.8' \ 'dask-cudf=0.8' pip install git+https://github.com/dask/distributed.git@master ################################################################################ # SETUP - Install additional packages ################################################################################ if hasArg --skip-tests; then logger "Skipping Tests..." exit 0 fi # Install CuPy for tests pip install cupy-cuda${CUDA_REL}==6.0.0 ################################################################################ # TEST - Run tests ################################################################################ pip install -e . pip install pytest pytest-asyncio conda list pytest --cache-clear --junitxml=${WORKSPACE}/junit-libgdf.xml -v
326154ad4b3dea17f15537011583362dcbff35e9
[ "Python", "Text", "reStructuredText", "Shell" ]
7
Python
galipremsagar/dask-cuda
a448a9c707706e20b3162cf1982969a40c604d63
b1ba3cbaa981528f3b3130835b663c1a59ffb2ca
refs/heads/master
<repo_name>SeverinM/WereWolf<file_sep>/LG/LG/GameOver.xaml.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Input; using Xamarin.Forms; using Xamarin.Forms.Xaml; using LG.VM; namespace LG { [XamlCompilation(XamlCompilationOptions.Compile)] public partial class GameOver : ContentPage { public ICommand Return => new Command(() => { (LG.App.Current as App).MainPage = new MainPage(); }); public string End {get ; set;} public GameOver (string end) { End = end; BindingContext = this; InitializeComponent (); } } }<file_sep>/ModelLG/Joueur.cs using System; using System.Collections.Generic; using System.Text; namespace ModelLG { public class Joueur { delegate void powerUse(object parameter); delegate void death(Joueur source); delegate void wakeUpOnNight(Joueur source); event powerUse onPowerUseEvent; event death onDeath; event wakeUpOnNight onWakeUpNight; private string nom; private string prenom; List<Role> allRoles = new List<Role>(); public List<Role> Roles => allRoles; public string Nom => nom; public string Prenom => prenom; public void Die() { onDeath(this); } public bool HasThisRole(string roleName) { foreach(Role rl in allRoles) { if (roleName == rl.Label) { return true; } } return false; } } } <file_sep>/LG/LG/VM/StartGameCommand.cs using System; using System.Collections.Generic; using System.Text; using System.Windows.Input; using LG.VM; namespace LG { class StartGameCommand : ICommand { public event EventHandler CanExecuteChanged; public bool CanExecute(object parameter) { return Constant.CheckPossibleGame(Constant.CurrentGame); } public void Execute(object parameter) { if (Constant.CurrentGame.CurrentManche == null) Constant.CurrentGame.NewManche(); else Constant.CurrentGame.CurrentManche.NextStep(); } } } <file_sep>/LG/LG/VM/PartieVM.cs using System; using System.Collections.Generic; using System.Text; using LG.Model; using System.Linq; using System.Collections.ObjectModel; using System.Collections.Specialized; using System.ComponentModel; using System.Diagnostics; namespace LG.VM { /// <summary> /// Une partie correspond à un enchainement de manche , cette classe ne contient donc que les données se transmettant entre les parties /// comme les personnes mortes ou le role de chaque joueur /// </summary> public class PartieVM { Partie model; public Partie Model => model; ObservableDictionary<PlayerVM, RoleCollection<Role>> allRoles = new ObservableDictionary<PlayerVM, RoleCollection<Role>>(); public ObservableDictionary<PlayerVM, RoleCollection<Role>> AllRoles => allRoles; List<PlayerVM> deadPlayers = new List<PlayerVM>(); List<MancheVM> previousManches = new List<MancheVM>(); public List<MancheVM> Previous => previousManches; public Constant.EndGame situation { get; set; } = Constant.EndGame.StillPlaying; public MancheVM CurrentManche = null; public IEnumerable<PlayerVM> Deaths => deadPlayers; public IEnumerable<PlayerVM> Alives => Players.Where(x => !Deaths.Contains(x)); public IEnumerable<PlayerVM> Players => allRoles.Keys; public Partie.State CurrentState => model.currentState; public PartieVM(Partie model) { this.model = model; foreach (Joueur jr in model.Players) { PlayerVM player = new PlayerVM(jr); allRoles[player] = new RoleCollection<Role>( model.RolesPerPlayer[jr]); //Par defaut quand un joueur meurt il rajoute sur la queue une page de mort de type inconnue player.Model.OnDeath += Constant.StandardDeath; } model.OnNewPlayer += (jr) => { PlayerVM player = new PlayerVM(jr); allRoles[player] = new RoleCollection<Role>(model.RolesPerPlayer[jr]); player.Model.OnDeath += Constant.StandardDeath; }; model.OnNewRole += (jr, rl) => { List<Role> lstRl = model.RolesPerPlayer[jr]; allRoles[getVMfromModel(jr)] = new RoleCollection<Role>(lstRl); }; } public PlayerVM getVMfromModel(Joueur jr) { List<PlayerVM> output = Players.Where(x => x.Model == jr).ToList(); if (output.Count == 0) return null; return output[0]; } public void Delete(PlayerVM target) { allRoles.Remove(target); } public void AddPlayerFromName(string name, string firstName) { Model.AddPlayerFromName(firstName, name); } public void Die(PlayerVM target) { if (!Players.Contains(target) || Deaths.Contains(target)) { throw new Exception("Le joueur est deja mort ou n'existe pas dans la partie"); } deadPlayers.Add(target); target.Die(); model.Die(target.Model); } public Role GetPrimaryRole(PlayerVM jr) { if (!Players.Contains(jr)) { return null; } return AllRoles[jr].Where(x => x.PrimaryRole).ToList()[0]; } public void CheckContains(PlayerVM target) { if (Players.Where(x => x == target).Count() == 0) { throw new Exception("Le joueur n'existe pas"); } } public bool HasThisRole(PlayerVM target,string roleID) { CheckContains(target); return (allRoles[target].Where(x => x.Label == roleID).Count() > 0); } public int RoleCount(string roleID,bool reverted = false) { int count = 0; foreach (PlayerVM jr in Alives) { if (!reverted && HasThisRole(jr, roleID)) { count++; } if (reverted && !HasThisRole(jr, roleID)) { count++; } } return count; } public void AddRole(PlayerVM target, Role role) { CheckContains(target); //Il est impossible d'avoir plus d'un role primaire pour chaque joueur if (role.PrimaryRole) { DeleteAllPrimaryRole(target); target.Model.OnDeath += Constant.StandardDeath; } allRoles[target].Add(role); model.AddRole(role, target.Model); } public void DeleteAllPrimaryRole(PlayerVM target) { List<Role> rolesToDel = new List<Role>(); foreach(Role rl in allRoles[target]) { if (rl.PrimaryRole) { rolesToDel.Add(rl); } } foreach(Role rl in rolesToDel) { target.Model.OnDeath -= Constant.StandardDeath; allRoles[target].Remove(rl); } } public List<PlayerVM> GetPlayerWithRole(string roleID, bool reverted = false) { List<PlayerVM> output = new List<PlayerVM>(); foreach(PlayerVM jr in Alives) { if (HasThisRole(jr, roleID) && !reverted) { output.Add(jr); } if (!HasThisRole(jr, roleID) && reverted) { output.Add(jr); } } return output; } public void NewManche() { //On ne créer une nouvelle manche que si ce n'est pas la fin , si une manche existe déjà on la rajoute dans l'historique if (CheckEnd()) { return; } if (CurrentManche != null) { previousManches.Add(CurrentManche); CurrentManche = null; } CurrentManche = new MancheVM(new Manche(), previousManches.Count); } public bool CheckEnd() { //Indique si la partie est finit et si oui de quelle façon if (RoleCount(Manager.WEREWOLF_ID) > RoleCount(Manager.WEREWOLF_ID, true)) { (LG.App.Current as App).MainPage = new GameOver("Plus de villageois ou les villageois sont en inferiorités : les loups-garous ont gagnés"); situation = Constant.EndGame.WereWolfWon; return true; } if (RoleCount(Manager.WEREWOLF_ID) == 0) { (LG.App.Current as App).MainPage = new GameOver("Le dernier loup-garou est mort : les villageois ont gagnés"); situation = Constant.EndGame.VillagersWon; return true; } if(Alives.Count() == 0) { (LG.App.Current as App).MainPage = new GameOver("Tout le monde est mort : pas de gagnant"); situation = Constant.EndGame.EveryoneDied; return true; } if (RoleCount(Manager.LOVERS_ID) == 2 && Alives.Count() == 2) { (LG.App.Current as App).MainPage = new GameOver("Les amoureux sont les seuls survivants : le couple a gagné"); situation = Constant.EndGame.LoversWon; return true; } return false; } } } <file_sep>/LG/LG/VM/ListPlayerVM.cs using System; using System.Collections.Generic; using System.Text; using LG.Model; namespace LG { public class ListPlayerVM { public ListPlayerVM() { } } } <file_sep>/LG/LG/Model/Sorciere.cs using System; using System.Collections.Generic; using System.Text; namespace LG.Model { public class Sorciere : Role { public bool UsedRez { get; set; } = false; public bool UsedKill { get; set; } = false; public Sorciere() { label = Manager.WITCH_ID; imagePath = "Witch.png"; primaryRole = true; description = "Vous disposez de deux potions pour toute la partie : l'une pour ressusciter la victime des loups garous et l'autre pour tuer quelqu'un"; } public bool isUseless() { return UsedRez && UsedKill; } } } <file_sep>/LG/LG/VM/ObservableBool.cs using System; using System.Collections.Generic; using System.ComponentModel; using System.Text; namespace LG.VM { public class ObservableBool : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; private bool result = false; public bool Result { get => result; set { result = value; OnPropertyChanged(result); } } protected void OnPropertyChanged(bool newValue) { PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("Result")); } } } <file_sep>/LG/LG/Model/PartieFactory.cs using System; using System.Collections.Generic; using System.Text; namespace LG { class PartieFactory { public static Partie Build(List<Joueur> allPlayers) { if (allPlayers.Count <= Manager.MinimumPlayers) { throw new Exception("Nombre de joueur insuffisant"); } return new Partie(); } } } <file_sep>/LG/LG/EditRole.xaml.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Collections.ObjectModel; using Xamarin.Forms; using Xamarin.Forms.Xaml; using LG.VM; namespace LG { [XamlCompilation(XamlCompilationOptions.Compile)] public partial class EditRole : ContentPage { public PlayerVM Player { get; private set; } public ObservableCollection<Role> AllRoles => Constant.AllRoles; public PartieVM Game => Constant.CurrentGame; public EditRole (PlayerVM player) { BindingContext = this; Player = player; InitializeComponent (); validate.Clicked += (sender, e) => { if (roleChoice.SelectedItem != null) { Role newChoice = (Role)roleChoice.SelectedItem; Constant.CurrentGame.Model.AddRole(newChoice, Player.Model); (LG.App.Current as App).MainPage = new CreatingGame(); } }; } } }<file_sep>/LG/LG/VM/Constant.cs using System; using System.Collections.Generic; using System.Text; using Xamarin.Forms; using LG.Model; using System.Collections.ObjectModel; using System.Linq; namespace LG.VM { public class Constant { public const string CREATE_PLAYER = "create_player"; public const string MAIN_MENU = "main_menu"; public const string EDIT_ROLE = "edit_role"; //Utilisé par l'écran de mort pour changer de texte selon la valeur passé en parametre public enum DeathsCause { HunterRevenge, Love, Unknown, Vote }; public enum EndGame { StillPlaying, WereWolfWon, EveryoneDied, LoversWon, VillagersWon } //Utilisé lors du changement de role pour montrer tous les roles possibles public static ObservableCollection<Role> AllRoles = new ObservableCollection<Role> { new Villageois(), new Werewolf(), new Voyante(), new Cupidon(), new Sorciere() }; /// <summary> /// Cette liste est parcouru ligne par ligne en commencant par le debut, on execute le test contenue dans la clé avec comme parametre la partie actuelle /// si le test est concluant l'expression lambda contenue dans la valeur est executé /// </summary> public static List<KeyValuePair<Func<PartieVM, bool>, Action<App>>> Steps = new List<KeyValuePair<Func<PartieVM, bool>, Action<App>>> { new KeyValuePair<Func<PartieVM, bool>, Action<App>>(x => x.CurrentManche == null,y => y.MainPage = new Sleep()), new KeyValuePair<Func<PartieVM, bool>, Action<App>>(x => x.RoleCount(Manager.SOOTHSAYER_ID) == 1 ,y => y.MainPage = new SoothsayerTime()), new KeyValuePair<Func<PartieVM, bool>, Action<App>>(x => x.RoleCount(Manager.WEREWOLF_ID) > 0,y => y.MainPage = new WereWolfTime()), new KeyValuePair<Func<PartieVM, bool>, Action<App>>(x => x.RoleCount(Manager.WITCH_ID) == 1 && !(x.AllRoles[x.GetPlayerWithRole(Manager.WITCH_ID)[0]].PrimaryRole as Sorciere).isUseless() ,y => y.MainPage = new WitchTime()), //Cet écran apparaitra toujours , sert a montrer ce qui s'est passé durant la nuit new KeyValuePair<Func<PartieVM, bool>, Action<App>>(x => true,y => y.MainPage = new WakeUp()), new KeyValuePair<Func<PartieVM, bool>, Action<App>>(x => true,y => y.MainPage = new Vote()) }; //Ces étapes ne sont utilisés que pour la premiere manche public static List<KeyValuePair<Func<PartieVM, bool>, Action<App>>> PrepareSteps = new List<KeyValuePair<Func<PartieVM, bool>, Action<App>>> { new KeyValuePair<Func<PartieVM, bool>, Action<App>>(x => true ,y => y.MainPage = new Sleep()), new KeyValuePair<Func<PartieVM, bool>, Action<App>>(x => x.RoleCount(Manager.CUPIDON_ID) == 1,x => x.MainPage = new CupidonTime()), new KeyValuePair<Func<PartieVM, bool>, Action<App>>(x => x.RoleCount(Manager.LOVERS_ID) == 2,x => x.MainPage = new LoversTime()), }; public static void StandardDeath(object o) { PlayerVM choice = Constant.CurrentGame.getVMfromModel(o as Joueur); CurrentGame.CurrentManche.AddStack(() => (LG.App.Current as App).MainPage = new Death(choice, Constant.DeathsCause.Unknown)); } //Si renvoit false la partie ne peut pas commencer public static bool CheckPossibleGame(PartieVM partie) { if (partie.Alives.Count() <= 5) { return false; } if (partie.RoleCount(Manager.WEREWOLF_ID) == 0) { return false; } if (partie.RoleCount(Manager.WEREWOLF_ID,true) <= partie.RoleCount(Manager.WEREWOLF_ID)) { return false; } if (partie.RoleCount(Manager.CUPIDON_ID) >= 2) { return false; } if (partie.RoleCount(Manager.WITCH_ID) >= 2) { return false; } if (partie.RoleCount(Manager.SOOTHSAYER_ID) >= 2) { return false; } return true; } public static PartieVM CurrentGame; } } <file_sep>/LG/LG/Sleep.xaml.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Input; using Xamarin.Forms; using Xamarin.Forms.Xaml; using LG.VM; namespace LG { [XamlCompilation(XamlCompilationOptions.Compile)] public partial class Sleep : ContentPage { public ICommand Next=> new Command(() => { Constant.CurrentGame.CurrentManche.NextStep(); }); public Sleep () { BindingContext = this; InitializeComponent (); } } }<file_sep>/LG/LG/MainPage.xaml.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; using System.Windows.Input; namespace LG { public partial class MainPage : ContentPage { public ICommand Switch => new SwitchPageCommand(); public MainPage() { InitializeComponent(); BindingContext = this; } } } <file_sep>/LG/LG/LoversTime.xaml.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; using Xamarin.Forms.Xaml; using LG.VM; using System.Windows.Input; namespace LG { [XamlCompilation(XamlCompilationOptions.Compile)] public partial class LoversTime : ContentPage { public PlayerVM Lover1 => Constant.CurrentGame.GetPlayerWithRole(Manager.LOVERS_ID)[0]; public PlayerVM Lover2 => Constant.CurrentGame.GetPlayerWithRole(Manager.LOVERS_ID)[1]; public ICommand Next => new Command(() => Constant.CurrentGame.CurrentManche.NextStep()); public LoversTime () { BindingContext = this; InitializeComponent (); } } }<file_sep>/LG/LG/VM/SwitchPageCommand.cs using System; using System.Collections.Generic; using System.Text; using LG.VM; namespace LG { class SwitchPageCommand : System.Windows.Input.ICommand { public event EventHandler CanExecuteChanged; public bool CanExecute(object parameter) { return true; } public void Execute(object parameter) { string name = (string)parameter; App application = (LG.App.Current as App); switch (name) { case Constant.MAIN_MENU: application.MainPage = new MainPage(); break; case Constant.CREATE_PLAYER: application.MainPage = new CreatingGame(); break; default: application.MainPage = new MainPage(); break; } } public SwitchPageCommand() { } } } <file_sep>/LG/LG/CreatingGame.xaml.cs using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; using Xamarin.Forms.Xaml; using System.Collections.ObjectModel; using LG.VM; using System.Windows.Input; using LG.Model; using System.Diagnostics; namespace LG { [XamlCompilation(XamlCompilationOptions.Compile)] public partial class CreatingGame : ContentPage { public ICommand SwitchEdit => new EditRoleCommand(); public ICommand Delete => new Command((x) => Del(x as PlayerVM)); public ObservableBool CanLaunch { get; set; } = new ObservableBool(); public string newPlayerName { get; set; } Partie part; public ObservableDictionary<PlayerVM, RoleCollection<Role>> AllRoles => Constant.CurrentGame?.AllRoles ; public CreatingGame () { if (Constant.CurrentGame == null || Constant.CurrentGame.situation != Constant.EndGame.StillPlaying) { Joueur player1 = new Joueur("Joueur", "1"); Joueur player2 = new Joueur("Joueur", "2"); Joueur player3 = new Joueur("Joueur", "3"); Joueur player4 = new Joueur("Joueur", "4"); Joueur player5 = new Joueur("Joueur", "5"); Joueur player6 = new Joueur("Joueur", "6"); part = new Partie(); Constant.CurrentGame = new PartieVM(part); part.AddPlayer(player1); part.AddPlayer(player2); part.AddPlayer(player3); part.AddPlayer(player4); part.AddPlayer(player5); part.AddPlayer(player6); part.AddRole(new Werewolf(), player1); part.AddRole(new Villageois(), player2); part.AddRole(new Voyante(), player3); part.AddRole(new Sorciere(), player4); part.AddRole(new Villageois(), player5); part.AddRole(new Cupidon(), player6); } BindingContext = this; InitializeComponent (); CanLaunch.Result = Constant.CheckPossibleGame(Constant.CurrentGame); } public void Add(object o , EventArgs args) { if (input.Text == null) { return; } List<string> cutStrings = input.Text.Split(' ').ToList(); Constant.CurrentGame?.AddPlayerFromName(cutStrings[0], (cutStrings.Count > 1 ? cutStrings[1] : cutStrings[0])); CanLaunch.Result = Constant.CheckPossibleGame(Constant.CurrentGame); input.Text = ""; } public void Start(object o , EventArgs args) { Constant.CurrentGame.NewManche(); } public void Del(PlayerVM player) { Constant.CurrentGame?.Delete(player); CanLaunch.Result = Constant.CheckPossibleGame(Constant.CurrentGame); } } }<file_sep>/ModelLG/Manche.cs using System; using System.Collections.Generic; using System.Text; namespace ModelLG { class Manche { private Joueur deathByVote; private Joueur deathByWereWolf; private List<Joueur> otherDeaths; } } <file_sep>/LG/LG.Android/CustomRenderer.cs using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using Android.App; using Android.Content; using Android.OS; using Android.Runtime; using Android.Views; using Android.Widget; using LG.Droid; using LG.VM; using Xamarin.Forms; using Xamarin.Forms.Platform.Android; [assembly: ExportRenderer(typeof(CustomEntry), typeof(CustomRenderer))] namespace LG.Droid { class CustomRenderer : EntryRenderer { public CustomRenderer(Context cont) : base(cont) { } protected override void OnElementPropertyChanged(object sender, PropertyChangedEventArgs e) { base.OnElementPropertyChanged(sender, e); if (e.PropertyName == "Text") { Control.SetBackgroundColor((sender as Entry).Text.Contains(' ') ? global::Android.Graphics.Color.Green : global::Android.Graphics.Color.Yellow); if ((sender as Entry).Text == "") { Control.SetBackgroundColor(global::Android.Graphics.Color.OrangeRed); } } } protected override void OnElementChanged(ElementChangedEventArgs<Entry> e) { base.OnElementChanged(e); Control.SetBackgroundColor(global::Android.Graphics.Color.OrangeRed); } } }<file_sep>/VM/ListPlayerVM.cs using System; using System.Collections.Generic; using System.Text; using Model; namespace VM { public class ListPlayerVM { List<PlayerVM> list = new List<PlayerVM>(); List<PlayerVM> List => list; public ListPlayerVM() { list.Add(new PlayerVM(new Joueur("Severin" , "Michaut"))); list.Add(new PlayerVM(new Joueur("Clarisse", "Michaut"))); } } } <file_sep>/LG/LG.UWP/CustomRenderer.cs using LG.UWP; using LG.VM; using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.UI; using Windows.UI.Xaml.Media; using Xamarin.Forms; using Xamarin.Forms.Platform.UWP; [assembly: ExportRenderer(typeof(CustomEntry), typeof(CustomRenderer))] namespace LG.UWP { class CustomRenderer : EntryRenderer { protected override void OnElementChanged(ElementChangedEventArgs<Entry> e) { Control.Background = new SolidColorBrush(Colors.OrangeRed); } protected override void OnElementPropertyChanged(object sender, PropertyChangedEventArgs e) { base.OnElementPropertyChanged(sender, e); if (e.PropertyName == "Text") { Entry ent = sender as Entry; if (ent.Text == "") { Control.Background = new SolidColorBrush(Colors.OrangeRed); } else { if (ent.Text.Contains(" ")) { Control.Background = new SolidColorBrush(Colors.ForestGreen); } else { Control.Background = new SolidColorBrush(Colors.Yellow); } } } } } } <file_sep>/LG/LG/Model/Villageois.cs using System; using System.Collections.Generic; using System.Text; namespace LG.Model { class Villageois : Role { public Villageois() { label = Manager.VILLAGERS_ID; imagePath = "Villageois.png"; primaryRole = true; description = "Un simple villageois sans pouvoir particulier mis à part celui de voter"; } } } <file_sep>/Model/Manager.cs using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace Model { class Manager { public const string CUPIDON_ID = "Cupidon"; public const string LOVERS_ID = "Amoureux"; public const string WEREWOLF_ID = "Loup-Garou"; public const string VILLAGERS_ID = "Villageois"; public const string HUNTER_ID = "Chasseur"; public const string SOOTHSAYER_ID = "Voyante"; static Partie currentGame; public static Partie CurrentGame => currentGame; public static int MinimumPlayers => 9; public static bool CheckAttribution(Role newRole,Joueur player,Partie game) { switch (newRole.Label) { case LOVERS_ID: //Pas plus de deux amoureux if (game.getPlayerWithRole(LOVERS_ID).Count >= 2) { return false; } break; case CUPIDON_ID: //Un seul cupidon if (game.getPlayerWithRole(CUPIDON_ID).Count >= 1) { return false; } break; } return true; } public static void CheckStateGame(Partie game) { int werewolfCount = game.getPlayerWithRole(WEREWOLF_ID).Count; //Plus de loup-garou , les villageois ont gagné if (werewolfCount == 0) { game.currentState = Partie.State.VillagersWon; } //La partie est gagné quand il y a plus de loup garou que de villageois if (werewolfCount >= game.Alives.Where(x => !x.HasThisRole(WEREWOLF_ID)).Count()) { game.currentState = Partie.State.WereWolfWon; } //Les deux amoureux sont seuls survivants , victoire special if (game.Alives.Count() == 2 && game.getPlayerWithRole(LOVERS_ID).Count() == 2) { game.currentState = Partie.State.LoversWon; } } } } <file_sep>/VM/PageManager.cs using System; using System.Collections.Generic; using System.Text; using System.Windows.Input; namespace LG { class PageManager { public ICommand SwitchPage => new SwitchPageCommand(); } } <file_sep>/LG/LG/Model/Role.cs using System; using System.Collections.Generic; using System.Text; namespace LG { public abstract class Role { protected string label; public string Label => label; protected string imagePath; public string ImagePath => imagePath; protected bool primaryRole; public bool PrimaryRole => primaryRole; protected string description; public string Description => description; } } <file_sep>/ModelLG/Role.cs using System; using System.Collections.Generic; using System.Text; namespace ModelLG { abstract class Role { protected string label; public string Label => label; protected bool primaryRole; public bool PrimaryRole => primaryRole; } } <file_sep>/LG/LG/WitchTime.xaml.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; using Xamarin.Forms.Xaml; using LG.VM; using LG.Model; using System.Windows.Input; namespace LG { [XamlCompilation(XamlCompilationOptions.Compile)] public partial class WitchTime : ContentPage { public PlayerVM Witch => Constant.CurrentGame.GetPlayerWithRole(Manager.WITCH_ID)[0]; public PlayerVM Victim => Constant.CurrentGame.CurrentManche.DeathByWereWolf; public List<PlayerVM> Possibles => Constant.CurrentGame.Alives.Where(x => x != Victim).ToList(); public Sorciere rl => Constant.CurrentGame.AllRoles[Witch].Where(x => x.Label == Manager.WITCH_ID).ToList()[0] as Sorciere; public bool CanRez => !rl.UsedRez; public bool CanKill => !rl.UsedKill; public ICommand Valider => new Command(() => UpdateWitch()); public WitchTime () { BindingContext = this; InitializeComponent (); if (rl.UsedRez) { rez1.Text = "Vous avez déjà utilisé votre potion de resurrection"; rez2.Text = ""; sw.IsToggled = false; sw.IsEnabled = false; } if (rl.UsedKill) { kill1.Text = "Vous avez déjà utilisé votre potiond de mort"; picker.IsEnabled = false; } } void UpdateWitch() { //Resurrection if (sw.IsToggled) { Constant.CurrentGame.CurrentManche.DeathByWereWolf = null; rl.UsedRez = true; } //Mort if (picker.SelectedItem != null) { Constant.CurrentGame.CurrentManche.othersDeaths.Add(picker.SelectedItem as PlayerVM); rl.UsedKill = true; } Constant.CurrentGame.CurrentManche.NextStep(); } } }<file_sep>/LG/LG/WakeUp.xaml.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; using Xamarin.Forms.Xaml; using LG.VM; using System.Windows.Input; namespace LG { [XamlCompilation(XamlCompilationOptions.Compile)] public partial class WakeUp : ContentPage { public List<PlayerVM> Deaths => Constant.CurrentGame.CurrentManche.DefinitiveDeaths; public ICommand NextOrNew => new Command(() => { if (!Constant.CurrentGame.CurrentManche.CanContinue()) { Constant.CurrentGame.NewManche(); } else { Constant.CurrentGame.CurrentManche.NextStep(); } }); public WakeUp () { Constant.CurrentGame.CurrentManche.CommitDeath(); BindingContext = this; InitializeComponent (); } } }<file_sep>/LG/LG/VM/EditRoleCommand.cs using System; using System.Collections.Generic; using System.Text; using System.Windows.Input; namespace LG { public class EditRoleCommand : ICommand { public event EventHandler CanExecuteChanged; public bool CanExecute(object parameter) { return true; } public void Execute(object parameter) { PlayerVM player = (PlayerVM)parameter; (LG.App.Current as App).MainPage = new EditRole(player); } } } <file_sep>/LG/LG/WereWolfTime.xaml.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; using Xamarin.Forms.Xaml; using LG.VM; using System.Windows.Input; namespace LG { [XamlCompilation(XamlCompilationOptions.Compile)] public partial class WereWolfTime : ContentPage { public List<PlayerVM> AllWereWolf => Constant.CurrentGame.GetPlayerWithRole(Manager.WEREWOLF_ID); public List<PlayerVM> Victims => Constant.CurrentGame.GetPlayerWithRole(Manager.WEREWOLF_ID, true); public string LabText => Convert(AllWereWolf); public ICommand Next => new Command(() => { Constant.CurrentGame.CurrentManche.DeathByWereWolf = (choice.SelectedItem as PlayerVM); Constant.CurrentGame.CurrentManche.NextStep();}); public WereWolfTime () { BindingContext = this; InitializeComponent (); } public string Convert(List<PlayerVM> value) { bool alone = (value.Count == 1); StringBuilder builder = new StringBuilder(); builder.Append(alone ? "Le loup-garou " : "Les loups-garous "); foreach (PlayerVM player in value) { builder.Append(player.CompleteName + (player == value[value.Count -1] ? " " : " , ")); } builder.Append(alone ? " se reveille et choisit sa victime" : " se reveillent et choisissent leur victime"); return builder.ToString(); } } }<file_sep>/LG/LG/Model/Joueur.cs using System; using System.Collections.Generic; using System.Text; using System.Linq; using LG.Model; namespace LG { public class Joueur { delegate void powerUse(object parameter); public delegate void death(Joueur source); public event death OnDeath; private string nom; private string prenom; public string Nom => nom; public string Prenom => prenom; public Joueur(string nom , string prenom) { this.prenom = prenom; this.nom = nom; } public void Die() { OnDeath(this); } } } <file_sep>/LG/LG.iOS/EntryCustomRenderer.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using Foundation; using UIKit; using Xamarin.Forms; using Xamarin.Forms.Platform.iOS; using LG.VM; using LG.iOS; [assembly: ExportRenderer(typeof(CustomEntry), typeof(EntryCustomRenderer))] namespace LG.iOS { class EntryCustomRenderer { } }<file_sep>/Model/Partie.cs using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace Model { class Partie { public Partie(List<Joueur> players) { deadPlayers = players; currentState = State.NotStarted; } public enum State { NotStarted, InProgress, WereWolfWon, VillagersWon, LoversWon, EveryoneGaveUp } public State currentState{ get; set; } private List<Joueur> allPlayers = new List<Joueur>(); public IEnumerable<Joueur> Players => allPlayers; private List<Joueur> deadPlayers = new List<Joueur>(); public IEnumerable<Joueur> Deaths => deadPlayers; public IEnumerable<Joueur> Alives => allPlayers.Where(x => !Deaths.Contains(x)); public Joueur Mayor => Alives.Where(x => x.HasThisRole("Maire")).ToList()[0]; private List<Partie> previousRounds = new List<Partie>(); public IEnumerable<Partie> PreviousRounds => previousRounds; private Manche currentRound = new Manche(); public Manche CurrentRound = new Manche(); public void Die(Joueur target) { if (!allPlayers.Contains(target) || deadPlayers.Contains(target)) { throw new Exception("Le joueur est déjà mort ou n'existe pas dans la partie"); } deadPlayers.Add(target); } public void Revive(Joueur target) { if (!Deaths.Contains(target) || !allPlayers.Contains(target)) { deadPlayers.Remove(target); } } public List<Joueur> getPlayerWithRole(string roleName) { List<Joueur> output = new List<Joueur>(); foreach(Joueur jr in Alives) { if (jr.HasThisRole(roleName)) { output.Add(jr); } } return output; } public void AttributeRole(Role newRole,Joueur target) { Manager.CheckAttribution(newRole, target, this); } } } <file_sep>/LG/LG/VM/PlayerVM.cs using System; using System.Collections.Generic; using System.Text; namespace LG { /// <summary> /// Répresente un joueur et ne sert qu'a recueillir son nom / prenom et d'avertir aux autre objets sa mort /// </summary> public class PlayerVM { Joueur model; public Joueur Model => model; public string Nom => model.Nom; public string CompleteName => model.Nom + " " + model.Prenom; public PlayerVM (Joueur jr) { model = jr; } public void Die() { Model.Die(); } public override string ToString() { return CompleteName; } } } <file_sep>/VM/PlayerVM.cs using System; using System.Collections.Generic; using System.Text; using Model; namespace VM { class PlayerVM { Joueur model; public Joueur Model => model; public PlayerVM (Joueur jr) { model = jr; } } } <file_sep>/LG/LG/Death.xaml.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; using Xamarin.Forms.Xaml; using LG.VM; using System.Windows.Input; namespace LG { [XamlCompilation(XamlCompilationOptions.Compile)] public partial class Death : ContentPage { public PlayerVM target { get; set; } public string RoleName => Constant.CurrentGame.GetPrimaryRole(target).Label; Constant.DeathsCause cause; public Role rl => Constant.CurrentGame.GetPrimaryRole(target); public ICommand NextOrNew => new Command(() => { if (!Constant.CurrentGame.CurrentManche.CanContinue()) { Constant.CurrentGame.NewManche(); } else { Constant.CurrentGame.CurrentManche.NextStep(); } }); public Death (PlayerVM target , Constant.DeathsCause cause) { this.target = target; this.cause = cause; BindingContext = this; InitializeComponent (); textDeath.Text = DisplayDeath() + " , cette personne etait en realité"; } string DisplayDeath() { switch (cause) { case Constant.DeathsCause.HunterRevenge: return target.CompleteName + " a été retrouvé mort , une balle dans la tête"; case Constant.DeathsCause.Love: return target.CompleteName + " n'a pas pu supporté la mort de sa bien aimé et s'est suicidé "; case Constant.DeathsCause.Unknown: return target.CompleteName + " est mort dans des circonstances inconnues"; case Constant.DeathsCause.Vote: return "A l'avis géneral " + target.CompleteName + " est executé"; } return "<Erreur>"; } } }<file_sep>/LG/LG/VM/Amoureux.cs using System; using System.Collections.Generic; using System.Text; using System.Linq; using static System.Net.Mime.MediaTypeNames; namespace LG.VM { class Amoureux : Role { static PlayerVM player1; static PlayerVM player2; public Amoureux(PlayerVM who) { label = Manager.LOVERS_ID; description = "Vous etes amoureux ! Si votre bien-aimé meurt vous mourrez également"; primaryRole = false; if (player1 != null) { if (player2 != null) { throw new Exception("Les amoureux ont déjà été designés"); } else { player2 = who; SetupEvent(); } } else { player1 = who; } } public void SetupEvent() { //Lorsqu'un joueur meurt il rajoute dans la stack de page une mort speciale player1.Model.OnDeath += (x) => { if (Constant.CurrentGame.Alives.ToList().Contains(player2)) { //Lorsque le joueur meurt par amour il ne rajoute plus dans la stack une page de mort "inconnue" player2.Model.OnDeath -= Constant.StandardDeath; Constant.CurrentGame.Die(player2); Constant.CurrentGame.CurrentManche.AddStack(() => (LG.App.Current as App).MainPage = new Death(player2, Constant.DeathsCause.Love)); } }; player2.Model.OnDeath += (x) => { if (Constant.CurrentGame.Alives.ToList().Contains(player1)) { player1.Model.OnDeath -= Constant.StandardDeath; Constant.CurrentGame.Die(player1); Constant.CurrentGame.CurrentManche.AddStack(() => (LG.App.Current as App).MainPage = new Death(player1, Constant.DeathsCause.Love)); } }; } } } <file_sep>/LG/LG/Model/Werewolf.cs using System; using System.Collections.Generic; using System.Text; namespace LG.Model { class Werewolf : Role { public Werewolf() { primaryRole = true; label = Manager.WEREWOLF_ID; imagePath = "LG.png"; description = "Vous etes le mechant de l'histoire ! Chaque nuit decidez avec vos compères de votre prochaine victime"; } } } <file_sep>/LG/LG/Model/Voyante.cs using System; using System.Collections.Generic; using System.Text; namespace LG.Model { class Voyante : Role { public Voyante() { primaryRole = true; label = Manager.SOOTHSAYER_ID; imagePath = "voyante.png"; description = "Grâce à vos pouvoirs decouvrez chaque nuit la vrai personnalité d'un joueur au choix"; } } } <file_sep>/LG/LG/Model/Cupidon.cs using System; using System.Collections.Generic; using System.Text; namespace LG.Model { class Cupidon : Role { public Cupidon() { label = Manager.CUPIDON_ID; imagePath = "Cupidon.png"; primaryRole = true; description = "Au début de la partie selectionnez deux joueurs qui deviendront amoureux : si l'un d'eux meurt l'autre aussi, une victoire speciale a lieu lorsque les amoureux sont les seuls rescapés "; } } } <file_sep>/LG/LG/Model/Partie.cs using System; using System.Collections.Generic; using System.Text; using System.Linq; using System.Collections.ObjectModel; namespace LG { public class Partie { public enum State { NotStarted, InProgress, WereWolfWon, VillagersWon, LoversWon, EveryoneGaveUp } public State currentState{ get; set; } public IEnumerable<Joueur> Players => allRoles.Keys; private Dictionary<Joueur, List<Role>> allRoles = new Dictionary<Joueur, List<Role>>(); public Dictionary<Joueur , List<Role>> RolesPerPlayer => allRoles; private List<Joueur> deadPlayers = new List<Joueur>(); public IEnumerable<Joueur> Deaths => deadPlayers; public IEnumerable<Joueur> Alives => Players.Where(x => !Deaths.Contains(x)); private List<Partie> previousRounds = new List<Partie>(); public IEnumerable<Partie> PreviousRounds => previousRounds; private Manche currentRound = new Manche(); public Manche CurrentRound = new Manche(); public delegate void newPlayer(Joueur jr); public event newPlayer OnNewPlayer; public delegate void newRole(Joueur jr, Role rl); public event newRole OnNewRole; public void Die(Joueur target) { checkContains(target); if (deadPlayers.Contains(target)) { throw new Exception("Le joueur est déjà mort ou n'existe pas dans la partie"); } deadPlayers.Add(target); } public void AddPlayer(Joueur target) { allRoles[target] = new List<Role>(); OnNewPlayer(target); } public void AddPlayerFromName(string prenom , string nom) { Joueur jr = new Joueur(prenom, nom); AddPlayer(jr); } public void Revive(Joueur target) { if (!Deaths.Contains(target) || !Players.Contains(target)) { deadPlayers.Remove(target); } } public List<Joueur> getPlayerWithRole(string roleName) { List<Joueur> output = new List<Joueur>(); foreach(Joueur jr in Alives) { if (HasThisRole(jr,roleName)) { output.Add(jr); } } return output; } public void AddRole(Role newRole,Joueur target) { checkContains(target); if (newRole.PrimaryRole) { deleteAllPrimaryRole(target); } allRoles[target].Add(newRole); OnNewRole(target, newRole); } public void deleteAllPrimaryRole(Joueur target) { checkContains(target); List<Role> toDelete = new List<Role>(); foreach(Role rl in allRoles[target]) { if (rl.PrimaryRole) { toDelete.Add(rl); } } foreach (Role rl in toDelete) { deleteRole(rl, target); } } public void deleteRole(Role rlTarget , Joueur target) { checkContains(target); List<Role> temp = new List<Role>(allRoles[target]); foreach (Role rl in temp) { if (rl.Label == rlTarget.Label) { allRoles[target].Remove(rl); } } } public bool HasThisRole(Joueur target, string roleID) { checkContains(target); return (allRoles[target].Where(x => x.Label == roleID).Count() > 0); } public int RoleCount(string roleID) { int count = 0; foreach (Joueur jr in Alives) { if (HasThisRole(jr, roleID)) { count++; } } return count; } public void checkContains(Joueur target) { if (!allRoles.Keys.Contains(target)) { throw new Exception("Le joueur n'existe pas"); } } } } <file_sep>/VM/SwitchPageCommand.cs using System; using System.Collections.Generic; using System.Text; namespace LG { class SwitchPageCommand : System.Windows.Input.ICommand { public event EventHandler CanExecuteChanged; public bool CanExecute(object parameter) { throw new NotImplementedException(); } public void Execute(object parameter) { (App.Current as App).MainPage = new CreatingGame(); } } } <file_sep>/LG/LG/Model/Manche.cs using System; using System.Collections.Generic; using System.Text; namespace LG { public class Manche { private Joueur deathByWereWolf = null; private List<Joueur> otherDeaths = null; } } <file_sep>/LG/LG/VM/MancheVM.cs using System; using System.Collections.Generic; using System.Diagnostics; using System.Text; using Xamarin.Forms; namespace LG.VM { public class MancheVM { Manche model; public Manche Model => model; public bool IsPreparation { get; private set; } = false; int currentIndexStep = 0; public int CurrentIndexStep => currentIndexStep; //Victime choisit par les loup garous mais n'est pas encore mort (la sorciere peut la ressusciter) public PlayerVM DeathByWereWolf { get; set; } public List<PlayerVM> othersDeaths { get; set; } = new List<PlayerVM>(); public List<PlayerVM> DefinitiveDeaths { get; set; } = new List<PlayerVM>(); //Combien-ième de manche ? int rank; List<KeyValuePair<Func<PartieVM, bool>, Action<App>>> steps; Queue<Action> PendingPages = new Queue<Action>(); public MancheVM(Manche model, int rank) { this.rank = rank; this.model = model; steps = new List<KeyValuePair<Func<PartieVM, bool>, Action<App>>>(Constant.Steps); //Lors du premier tour des pages supplementaires peuvent être presentés if (rank == 0) { steps.InsertRange(0, Constant.PrepareSteps); IsPreparation = true; } currentIndexStep = -1; NextStep(); } //Le joueur tué par le loup garou durant la nuit meurt "reelement" public void CommitDeath() { if (DeathByWereWolf != null) { DefinitiveDeaths.Add(DeathByWereWolf); } foreach(PlayerVM player in othersDeaths) { DefinitiveDeaths.Add(player); } foreach(PlayerVM player in DefinitiveDeaths) { Constant.CurrentGame.Die(player); } DefinitiveDeaths = null; othersDeaths.Clear(); } public void AddStack(Action act) { PendingPages.Enqueue(act); } public void NextStep() { //La queue est prioritaire par rapport à l'ordre normal des pages , tant que la queue n'est pas vide on la depile if (PendingPages.Count == 0) { currentIndexStep++; while (!steps[currentIndexStep].Key(Constant.CurrentGame)) { currentIndexStep++; } steps[currentIndexStep].Value(Application.Current as App); } else { Action act = PendingPages.Dequeue(); act(); } } public bool CanContinue() { bool ok = (PendingPages.Count > 0 || currentIndexStep + 1 < steps.Count); return ok; } } } <file_sep>/LG/LG/App.xaml.cs using System; using Xamarin.Forms; using Xamarin.Forms.Xaml; using System.Collections.Generic; [assembly: XamlCompilation (XamlCompilationOptions.Compile)] namespace LG { public partial class App : Application { public Dictionary<string, string> ImagePerName = new Dictionary<string, string>(); public App () { InitializeComponent(); MainPage = new MainPage(); } protected override void OnStart () { // Handle when your app starts } protected override void OnSleep () { // Handle when your app sleeps } protected override void OnResume () { // Handle when your app resumes } } } <file_sep>/Model/Role.cs using System; using System.Collections.Generic; using System.Text; namespace Model { public abstract class Role { protected string label; public string Label => label; protected bool primaryRole; public bool PrimaryRole => primaryRole; public abstract bool usePower(object flag); } } <file_sep>/LG/LG/CupidonTime.xaml.cs using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; using Xamarin.Forms.Xaml; using LG.VM; using System.Windows.Input; namespace LG { [XamlCompilation(XamlCompilationOptions.Compile)] public partial class CupidonTime : ContentPage { private PartieVM Game => Constant.CurrentGame; public PlayerVM Cupidon => Constant.CurrentGame.GetPlayerWithRole(Manager.CUPIDON_ID)[0]; public ICommand Next => new Command(() => { Game.AddRole(ListPlayer1[firstChoice.SelectedIndex], new Amoureux(ListPlayer1[firstChoice.SelectedIndex])); int b = Game.RoleCount(Manager.LOVERS_ID); Game.AddRole(ListPlayer2[secondChoice.SelectedIndex], new Amoureux(ListPlayer2[secondChoice.SelectedIndex])); int a = Game.RoleCount(Manager.LOVERS_ID); Constant.CurrentGame.CurrentManche.NextStep(); }); public ObservableCollection<PlayerVM> ListPlayer1 => new ObservableCollection<PlayerVM>(Game.Alives); public ObservableCollection<PlayerVM> ListPlayer2 => new ObservableCollection<PlayerVM>(Game.Alives); ObservableBool observable = new ObservableBool(); public ObservableBool Observable => observable; public CupidonTime () { InitializeComponent (); BindingContext = this; Observable.Result = (firstChoice.SelectedIndex >= 0 && secondChoice.SelectedIndex >= 0 && firstChoice.SelectedIndex != secondChoice.SelectedIndex); firstChoice.SelectedIndexChanged += (sender, e) => { Observable.Result = (firstChoice.SelectedIndex >= 0 && secondChoice.SelectedIndex >= 0 && firstChoice.SelectedIndex != secondChoice.SelectedIndex); }; secondChoice.SelectedIndexChanged += (sender, e) => { Observable.Result = (firstChoice.SelectedIndex >= 0 && secondChoice.SelectedIndex >= 0 && firstChoice.SelectedIndex != secondChoice.SelectedIndex); }; } } }<file_sep>/LG/LG/Vote.xaml.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; using Xamarin.Forms.Xaml; using LG.VM; using System.Windows.Input; namespace LG { [XamlCompilation(XamlCompilationOptions.Compile)] public partial class Vote : ContentPage { public List<PlayerVM> Players => Constant.CurrentGame.Alives.ToList(); public ICommand NextOrNew => new Command(() => { (choice.SelectedItem as PlayerVM).Model.OnDeath -= Constant.StandardDeath; (choice.SelectedItem as PlayerVM).Model.OnDeath += (x) => Constant.CurrentGame.CurrentManche.AddStack(() => (LG.App.Current as App).MainPage = new Death((choice.SelectedItem as PlayerVM), Constant.DeathsCause.Vote)); Constant.CurrentGame.Die(choice.SelectedItem as PlayerVM); if (!Constant.CurrentGame.CurrentManche.CanContinue()) { Constant.CurrentGame.NewManche(); } Constant.CurrentGame.CurrentManche.NextStep(); }); public Vote () { BindingContext = this; InitializeComponent (); } } }<file_sep>/LG/LG/VM/RoleCollection.cs using System; using System.Collections.Generic; using System.Text; using System.Collections.ObjectModel; using System.Linq; namespace LG.VM { /// <summary> /// Une classe qui n'a comme seule utilité de pouvoir donner le role principale quand il est demandé où d'en créer un à la volée le cas écheant /// </summary> /// <typeparam name="T"></typeparam> public class RoleCollection<T> : ObservableCollection<T> where T : Role { public RoleCollection(List<T> originalList){ foreach(T elt in originalList) { this.Add(elt); } } public Role PrimaryRole { get { IEnumerable<Role> primaryRoles = this.Where(x => x.PrimaryRole); if (primaryRoles.Count() > 0) { return primaryRoles.ToList()[0]; } else { Role newRole = new LG.Model.Villageois(); this.Add((T)newRole); return newRole; } } } } } <file_sep>/LG/LG/SoothsayerTime.xaml.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; using Xamarin.Forms.Xaml; using LG.VM; using System.Collections.ObjectModel; using System.Windows.Input; namespace LG { [XamlCompilation(XamlCompilationOptions.Compile)] public partial class SoothsayerTime : ContentPage { public PlayerVM Player => Constant.CurrentGame.GetPlayerWithRole(Manager.SOOTHSAYER_ID)[0]; public ObservableCollection<PlayerVM> AllPlayers => new ObservableCollection<PlayerVM>(Constant.CurrentGame.Alives.Where(x => x != Player)); public ObservableBool Chosen { get; set; } = new ObservableBool(); public ICommand Next => new Command(() => Constant.CurrentGame.CurrentManche.NextStep()); public ObservableBool NotChosen { get; set; } = new ObservableBool(); public SoothsayerTime () { BindingContext = this; InitializeComponent (); NotChosen.Result = true; Chosen.Result = false; buttonSooth.Clicked += (sender, e) => { PlayerVM chosed = choice.SelectedItem as PlayerVM; Role rl = Constant.CurrentGame.GetPrimaryRole(chosed); labelChoice.Text = "Derriere les apparences " + chosed.CompleteName + " est en realité : "; ImageChoice.Source = rl.ImagePath; labelChoice2.Text = rl.Label; Chosen.Result = true; NotChosen.Result = false; }; } } }
87b4706f0e9435849d994460c12cbed120fd621c
[ "C#" ]
48
C#
SeverinM/WereWolf
8760b4a042072a326a41075e4a01e0117dcbe62c
5b2c477136c6b63b64ab460a7c1e001fc0427c46
refs/heads/master
<repo_name>tsragravorogh/taskForExcellentMark<file_sep>/src/com/company/Triangle.java package com.company; import java.awt.*; public class Triangle { public Line a, b, c, a2, b2, c2, x, y, z; public Triangle() { this.a = new Line(400, 400, 500, 400, 0, 0); this.b = new Line(500, 400, 313, 500, 0, 0); this.c = new Line(313, 500, 400, 400, 0, 0); this.a2 = new Line(400, 400, 400, 400, 100, 0); this.b2 = new Line(400, 400, 313, 500, 100, 0); this.c2 = new Line(400, 400, 500, 400, 100, 0); this.x = new Line(400, 400, 600, 400, 0, 0); this.y = new Line(400, 400, 226, 600, 0, 0); this.z = new Line(400, 400, 400, 400, 0, 200); } public void drawTriangle(Graphics g) { this.a.draw(g); this.b.draw(g); this.c.draw(g); this.a2.draw(g); this.b2.draw(g); this.c2.draw(g); this.x.draw(g); this.y.draw(g); this.z.draw(g); } public void change(double a, double u, double j) { Point movePoint = new Point(this.a.first.x, this.a.first.y, this.a.first.z); moveAll(-movePoint.x, -movePoint.y, -movePoint.z); this.a.change(a, u, j); this.b.change(a, u, j); this.c.change(a, u, j); this.a2.change(a, u, j); this.b2.change(a, u, j); this.c2.change(a, u, j); this.x.change(a, u, j); this.y.change(a, u, j); this.z.change(a, u, j); moveAll(movePoint.x, movePoint.y, movePoint.z); } public void changeEvenly(double coefficient) { change(coefficient, coefficient, coefficient); } public void rotateX(int degrees){ Point movePoint = new Point(this.a.first.x, this.a.first.y, this.a.first.z); moveAll(-movePoint.x, -movePoint.y, -movePoint.z); this.a.rotateX(degrees); this.b.rotateX(degrees); this.c.rotateX(degrees); this.a2.rotateX(degrees); this.b2.rotateX(degrees); this.c2.rotateX(degrees); this.x.rotateX(degrees); this.y.rotateX(degrees); this.z.rotateX(degrees); moveAll(movePoint.x, movePoint.y, movePoint.z); } public void rotateY(int degrees) { Point movePoint = new Point(this.a.first.x, this.a.first.y, this.a.first.z); moveAll(-movePoint.x, -movePoint.y, -movePoint.z); this.a.rotateY(degrees); this.b.rotateY(degrees); this.c.rotateY(degrees); this.a2.rotateY(degrees); this.b2.rotateY(degrees); this.c2.rotateY(degrees); this.x.rotateY(degrees); this.y.rotateY(degrees); this.z.rotateY(degrees); moveAll(movePoint.x, movePoint.y, movePoint.z); } public void rotateZ(int degrees) { Point movePoint = new Point(this.a.first.x, this.a.first.y, this.a.first.z); moveAll(-movePoint.x, -movePoint.y, -movePoint.z); this.a.rotateZ(degrees); this.b.rotateZ(degrees); this.c.rotateZ(degrees); this.a2.rotateZ(degrees); this.b2.rotateZ(degrees); this.c2.rotateZ(degrees); this.x.rotateZ(degrees); this.y.rotateZ(degrees); this.z.rotateZ(degrees); moveAll(movePoint.x, movePoint.y, movePoint.z); } public void transfer(int l, int m, int n) { Point movePoint = new Point(this.a.first.x, this.a.first.y, this.a.first.z); moveAll(-movePoint.x, -movePoint.y, -movePoint.z); this.a.transfer(l, m, n); this.b.transfer(l, m, n); this.c.transfer(l, m, n); this.a2.transfer(l, m, n); this.b2.transfer(l, m, n); this.c2.transfer(l, m, n); this.x.transfer(l, m, n); this.y.transfer(l, m, n); this.z.transfer(l, m, n); moveAll(movePoint.x, movePoint.y, movePoint.z); } public void moveAll(double x, double y, double z) { this.a.move(x, y, z); this.b.move(x, y, z); this.c.move(x, y, z); this.a2.move(x, y, z); this.b2.move(x, y, z); this.c2.move(x, y, z); this.x.move(x, y, z); this.y.move(x, y, z); this.z.move(x, y, z); } } <file_sep>/src/com/company/Point.java package com.company; import java.util.Arrays; public class Point { public double x, y, z; public double [] vector; public Point(double x, double y, double z) { vector = new double[4]; this.x = x; this.vector[0] = x; this.y = y; this.vector[1] = y; this.z = z; this.vector[2] = z; //{x, y, z, 1} this.vector[3] = 1; } public void setX(double newX) { this.x = newX; this.vector[0] = newX; } public void setY(double newY) { this.y = newY; this.vector[1] = newY; } public void setZ(double newZ) { this.z = newZ; this.vector[2] = newZ; } //[a b c p] //[d e f q] //[h i j r] //[l m n s] public double[][] createChangingMatrix(double a, double b, double c, double d, double e, double f, double h, double i, double j, double l, double m, double n) { double[][] result = { {a, b, c, 0}, {d, e, f, 0}, {h, i, j, 0}, {l, m, n, 1} }; return result; } public void rotateX(int degrees) { double[][] changeMatrix = createChangingMatrix(1, 0, 0, 0, Math.cos(Math.toRadians(degrees)), Math.sin(Math.toRadians(degrees)), 0, -Math.sin(Math.toRadians(degrees)), Math.cos(Math.toRadians(degrees)), 0, 0, 0); try { this.vector = Utils.multiplyMatrix(this.vector, changeMatrix); this.x = vector[0]; this.y = vector[1]; this.z = vector[2]; vector[3] = 1; } catch (Exception e) { e.printStackTrace(); } } public void rotateY(int degrees) { double[][] changeMatrix = createChangingMatrix(Math.cos(Math.toRadians(degrees)), 0, -Math.sin(Math.toRadians(degrees)), 0, 1, 0, Math.sin(Math.toRadians(degrees)), 0, Math.cos(Math.toRadians(degrees)), 0, 0, 0); try { this.vector = Utils.multiplyMatrix(this.vector, changeMatrix); this.x = vector[0]; this.y = vector[1]; this.z = vector[2]; vector[3] = 1; } catch (Exception e) { e.printStackTrace(); } } public void rotateZ(int degrees) { double[][] changeMatrix = createChangingMatrix(Math.cos(Math.toRadians(degrees)), Math.sin(Math.toRadians(degrees)), 0, -Math.sin(Math.toRadians(degrees)), Math.cos(Math.toRadians(degrees)), 0, 0, 0, 1, 0, 0, 0); try { this.vector = Utils.multiplyMatrix(this.vector, changeMatrix); this.x = vector[0]; this.y = vector[1]; this.z = vector[2]; vector[3] = 1; } catch (Exception e) { e.printStackTrace(); } } public void transfer(double l, double m, double n) { double[][] changeMatrix = createChangingMatrix(1, 0, 0, 0, 1, 0, 0, 0, 1, l, m , n); try { this.vector = Utils.multiplyMatrix(this.vector, changeMatrix); this.x = vector[0] / vector[3]; this.y = vector[1] / vector[3]; this.z = vector[2] / vector[3]; vector[3] = 1; } catch (Exception e) { e.printStackTrace(); } } //[a b c p] //[d u f q] //[h i j r] //[l m n s] public void change(double a, double u, double j) { double[][] changeMatrix = createChangingMatrix(a, 0, 0, 0, u, 0, 0, 0, j, 0, 0, 0); try { this.vector = Utils.multiplyMatrix(this.vector, changeMatrix); this.x = vector[0]; this.y = vector[1]; this.z = vector[2]; vector[3] = 1; } catch (Exception e) { e.printStackTrace(); } } } <file_sep>/src/com/company/MainFrame.java package com.company; import javax.swing.*; import java.awt.*; import java.awt.event.MouseWheelEvent; import java.awt.event.MouseWheelListener; public class MainFrame extends JFrame implements MouseWheelListener { private JButton rotateX = new JButton("rotateX"); private JButton rotateY = new JButton("rotateY"); private JButton rotateZ = new JButton("rotateZ"); private JButton transferX = new JButton("transferX"); private JButton transferY = new JButton("transferY"); DrawPanel dp = new DrawPanel(); public MainFrame() throws HeadlessException { dp.setSize(600, 800); dp.setLocation(0, 0); this.add(dp); this.addMouseWheelListener(this); // plus.setBounds(20, 30, 50, 30); // minus.setBounds(80, 30, 50, 30); dp.add(rotateX); dp.add(rotateY); dp.add(rotateZ); dp.add(transferX); dp.add(transferY); rotateX.addActionListener(ae -> dp.rotateX()); rotateY.addActionListener(ae -> dp.rotateY()); rotateZ.addActionListener(ae -> dp.rotateZ()); transferX.addActionListener(ae -> dp.transferX()); transferY.addActionListener(ae -> dp.transferY()); } @Override public void mouseWheelMoved(MouseWheelEvent e) { if(e.getWheelRotation() > 0) { dp.transformMinus(); }else { dp.transformPlus(); } } }
291eef452d83e489ddd8aed95bd9e64122a7b58d
[ "Java" ]
3
Java
tsragravorogh/taskForExcellentMark
da802ed8413afdbc07cb8df9aa6ec8a316aa8397
9f1a742584472496d638292a24eecca19bca6f87
refs/heads/master
<file_sep>source 'https://rubygems.org' git_source(:github) do |repo_name| repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") "https://github.com/#{repo_name}.git" end # Bundle edge Rails instead: gem 'rails', github: 'rails/rails' gem 'rails', '~> 5.0.1' # Use postgresql as the database for Active Record gem 'pg', '~> 0.18' # Use Puma as the app server gem 'puma', '~> 3.0' # Use SCSS for stylesheets gem 'sass-rails', '~> 5.0' # Use Uglifier as compressor for JavaScript assets gem 'uglifier', '>= 1.3.0' # Use CoffeeScript for .coffee assets and views gem 'coffee-rails', '~> 4.2' gem 'jquery-rails' gem 'jbuilder', '~> 2.5' gem 'bootstrap-sass', '~> 3.3.6' gem 'omniauth-twitter' #authentication gem 'twitter' gem 'figaro' #yml file to save keys and token gem 'faraday' #MAKING HTTP request calling out to api group :development, :test do gem 'rspec-rails', '~> 3.5' gem 'capybara' gem 'factory_girl_rails' gem 'launchy' gem 'database_cleaner' gem 'pry' gem 'vcr' gem 'webmock' gem 'byebug', platform: :mri end group :development do # Access an IRB console on exception pages or by using <%= console %> anywhere in the code. gem 'web-console', '>= 3.3.0' gem 'listen', '~> 3.0.5' end # Windows does not include zoneinfo files, so bundle the tzinfo-data gem gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] <file_sep>Rails.application.routes.draw do root 'home#index' get '/auth/twitter', as: :login get '/auth/twitter/callback', to: 'sessions#create' delete '/logout', to: 'sessions#destroy', as: :logout end <file_sep>class AddFriendsCountToUsers < ActiveRecord::Migration[5.0] def change add_column :users, :friends_count, :string end end <file_sep>class UserPresenter attr_reader :current_user def initialize(current_user) @current_user = current_user end def user_followers_count TwitterService.new(current_user).user_followers_count end def user_following_count TwitterService.new(current_user).user_following_count end def user_avatar TwitterService.new(current_user).user_avatar end end <file_sep>class ChangeDataTypeForFriendsCountOnUsers < ActiveRecord::Migration[5.0] def change change_column :users, :friends_count, 'integer USING CAST(friends_count AS integer)' end end <file_sep># Consuming Twitter API ## Setup 1. `git clone <EMAIL>:cews7/api-curious-round-two.git` 2. Once inside the project, run `rspec` 3. run `rails server` 4. go to `localhost:3000` 4. click link `sign in with Twitter` <file_sep>class ChangeDataTypeForFollowersCountOnUsers < ActiveRecord::Migration[5.0] def change change_column :users, :followers_count, 'integer USING CAST(followers_count AS integer)' end end <file_sep>require 'rails_helper' describe 'Twitter Service' do context '#user_followers_count' do it 'retrieves user followers_count' do VCR.use_cassette("followers_count") do user = OpenStruct.new( screen_name: "cews7", token: ENV['TWITTER_ACCESS_TOKEN'] ) user_followers_count = TwitterService.new(user).user_followers_count expect(user_followers_count.class).to eq Fixnum end end end context '#user_following_count' do it 'retrieves user following_count' do VCR.use_cassette("following_count") do user = OpenStruct.new( screen_name: "cews7", token: ENV['TWITTER_ACCESS_TOKEN'] ) user_following_count = TwitterService.new(user).user_following_count expect(user_following_count.class).to eq Fixnum end end end context '#user_avatar' do it 'retrieves user avatar' do VCR.use_cassette("avatar") do user = OpenStruct.new( screen_name: "cews7", token: ENV['TWITTER_ACCESS_TOKEN'], image: 'sample.jpg' ) user_avatar = TwitterService.new(user).user_avatar expect(user_avatar.class).to eq String expect(user_avatar).to include ".jpg" end end end end <file_sep>require 'twitter' class TwitterService attr_reader :client, :nickname def initialize(user) @nickname = user.nickname @avatar = user.image @client = Twitter::REST::Client.new do |config| config.consumer_key = "#{ENV['TWITTER_KEY']}" config.consumer_secret = "#{ENV['TWITTER_SECRET']}" config.access_token = "#{ENV['TWITTER_ACCESS_TOKEN']}" config.access_token_secret = "#{ENV['TWITTER_ACCESS_TOKEN_SECRET']}" end end def user_followers_count client.followers("#{nickname}").count end def user_following_count client.friends("#{nickname}").count end def user_avatar @avatar end def json_parse(user_info) JSON.parse(user_info.body, symbolize_names: true) end end
a5d955df876939b7cf7fc9aa0c4088103b45d632
[ "Markdown", "Ruby" ]
9
Ruby
cews7/api-curious-round-two
65d78d20025024a13668179838f08dee8c60f17f
f1be7d5c6e87f324e16345c26c1c5be31377c88e
refs/heads/master
<file_sep>#pragma once #include <winsock2.h> #include <MSWSock.h> #include"Poolx.h" typedef enum net_operation_s { NULL_POSTED, // 用于初始化,无意义 ACCEPT_POSTED, // 标志投递的Accept操作 SEND_POSTED, // 标志投递的是发送操作 RECV_POSTED, // 标志投递的是接收操作 WRITE_POSTED, // 标志投递的是写入操作 READ_POSTED, // 标志投递的是读取操作 }net_operation_t; typedef struct net_completionkeyex_s net_completionkeyex_t; typedef struct net_overlappedex_s net_overlappedex_t; struct net_completionkeyex_s { OVERLAPPED overlapped; // 重叠结构 net_operation_t optype; // 操作标识 SOCKET s; char buffer[(sizeof(SOCKADDR_IN) + 16) * 2]; DWORD dwbytes; DWORD dwflags; net_completionkeyex_t* next; // 0,1 }; typedef struct net_overlappedex_s { OVERLAPPED overlapped; // 重叠结构 net_operation_t optype; // 操作标识 WSABUF wsabuf[1]; }; class CWorker { public: CWorker(); ~CWorker(); //等待停止线程 static void WaitThreadClose(HANDLE handle) { MSG msg; DWORD result; while (handle != NULL) { result = MsgWaitForMultipleObjects(1, &handle, false, INFINITE, QS_ALLINPUT);//INFINITE switch (result) { case WAIT_OBJECT_0: //线程的结束 CloseHandle(handle); handle = NULL; break; //break the loop case WAIT_OBJECT_0 + 1: ////主线程里使用GetSafeHwnd(),辅佐线程用GetForegroundWindow()获得窗口句柄 PeekMessage(&msg, GetForegroundWindow(), 0, 0, PM_REMOVE); DispatchMessage(&msg); continue; default: return;/// unexpected failure } } } bool PostRecv(net_completionkeyex_t* lpCompletionKey, int size) { DWORD dwbytes = 0; DWORD dwflags = 0; net_overlappedex_t* lpOverlapped = (net_overlappedex_t*)plx_palloc(pool,size + sizeof(net_overlappedex_t)); lpOverlapped->optype = RECV_POSTED; // 初始化 lpOverlapped->wsabuf[0].buf = (char*)((char*)lpOverlapped + sizeof(net_overlappedex_t)); lpOverlapped->wsabuf[0].len = size; // 投递WSARecv请求 ZeroMemory(&lpOverlapped->overlapped, sizeof(OVERLAPPED)); int nRes = WSARecv(lpCompletionKey->s, &lpOverlapped->wsabuf[0], 1, &dwbytes, &dwflags, &lpOverlapped->overlapped, NULL); if (SOCKET_ERROR == nRes) { nRes = WSAGetLastError(); if (WSA_IO_PENDING != nRes) { TRACE("---服务端接收错误SOCKET:%d,释放资源,错误代码:%d---\n", lpCompletionKey->s, nRes); return false; } return true; } return true; } private: // 工作线程句柄 HANDLE m_handle; HANDLE m_hIocp; // 工作线程 static DWORD WorkerThread(CWorker* lpVoid); plx_pool_t* pool; public: int Run(); HANDLE GetHocp(); int Stop(); int m_active; }; <file_sep>================================================================================ MICROSOFT 基础类库 : NetSvr 项目概述 =============================================================================== 应用程序向导已为您创建了此 NetSvr 应用程序。此应用程序不仅演示 Microsoft 基础类的基本使用方法,还可作为您编写应用程序的起点。 本文件概要介绍组成 NetSvr 应用程序的每个文件的内容。 NetSvr.vcxproj 这是使用应用程序向导生成的 VC++ 项目的主项目文件,其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。 NetSvr.vcxproj.filters 这是使用“应用程序向导”生成的 VC++ 项目筛选器文件。它包含有关项目文件与筛选器之间的关联信息。在 IDE 中,通过这种关联,在特定节点下以分组形式显示具有相似扩展名的文件。例如,“.cpp”文件与“源文件”筛选器关联。 NetSvr.h 这是应用程序的主头文件。 其中包括其他项目特定的标头(包括 Resource.h),并声明 CNetSvrApp 应用程序类。 NetSvr.cpp 这是包含应用程序类 CNetSvrApp 的主应用程序源文件。 NetSvr.rc 这是程序使用的所有 Microsoft Windows 资源的列表。它包括 RES 子目录中存储的图标、位图和光标。此文件可以直接在 Microsoft Visual C++ 中进行编辑。项目资源包含在 2052 中。 res\NetSvr.ico 这是用作应用程序图标的图标文件。此图标包括在主资源文件 NetSvr.rc 中。 res\NetSvr.rc2 此文件包含不在 Microsoft Visual C++ 中进行编辑的资源。您应该将不可由资源编辑器编辑的所有资源放在此文件中。 ///////////////////////////////////////////////////////////////////////////// 应用程序向导创建一个对话框类: NetSvrDlg.h、NetSvrDlg.cpp - 对话框 这些文件包含 CNetSvrDlg 类。此类定义应用程序的主对话框的行为。对话框模板包含在 NetSvr.rc 中,该文件可以在 Microsoft Visual C++ 中编辑。 ///////////////////////////////////////////////////////////////////////////// 其他功能: ActiveX 控件 该应用程序包含对使用 ActiveX 控件的支持。 打印和打印预览支持 应用程序向导通过从 MFC 库调用 CView 类中的成员函数生成代码,来处理打印、打印设置和打印预览命令。 ///////////////////////////////////////////////////////////////////////////// 其他标准文件: StdAfx.h, StdAfx.cpp 这些文件用于生成名为 NetSvr.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。 Resource.h 这是标准头文件,可用于定义新的资源 ID。Microsoft Visual C++ 将读取并更新此文件。 NetSvr.manifest Windows XP 使用应用程序清单文件来描述特定版本的并行程序集的应用程序依赖项。加载程序使用这些信息来从程序集缓存中加载相应的程序集,并保护其不被应用程序访问。应用程序清单可能会包含在内,以作为与应用程序可执行文件安装在同一文件夹中的外部 .manifest 文件进行重新分发,它还可能以资源的形式包含在可执行文件中。 ///////////////////////////////////////////////////////////////////////////// 其他注释: 应用程序向导使用“TODO:”来指示应添加或自定义的源代码部分。 如果应用程序使用共享 DLL 中的 MFC,您将需要重新分发 MFC DLL。如果应用程序所使用的语言与操作系统的区域设置不同,则还需要重新分发相应的本地化资源 mfc110XXX.DLL。 有关上述话题的更多信息,请参见 MSDN 文档中有关重新分发 Visual C++ 应用程序的部分。 ///////////////////////////////////////////////////////////////////////////// <file_sep>#include "stdafx.h" #include "Poolx.h" #define PLX_MAX_ALLOC_FROM_POOL 4095 // x86 页-> 4K #define plx_align_ptr(p, a) \ (u_char *) (((uintptr_t) (p) + ((uintptr_t) a - 1)) & ~((uintptr_t) a - 1)) static void *plx_palloc_block(plx_pool_t *pool, size_t size); static void *plx_palloc_large(plx_pool_t *pool, size_t size); plx_pool_t * plx_create_pool(size_t size) { plx_pool_t *p; p = (plx_pool_t*)malloc( size); if (p == NULL) { return NULL; } p->d.last = (u_char *)p + sizeof(plx_pool_t); p->d.end = (u_char *)p + size; p->d.next = p; p->d.failed = 0; p->d.user = 0; size = size - sizeof(plx_pool_t); p->max = (size < PLX_MAX_ALLOC_FROM_POOL) ? size : PLX_MAX_ALLOC_FROM_POOL; p->current = p; p->large = NULL; p->largecurrent = NULL; return p; } void plx_destroy_pool(plx_pool_t *pool) { plx_pool_t *p, *n; for (p=pool->largecurrent; p; p = n) { n = p->d.next; free(p); if (n == pool->largecurrent) { break; } } for (p = pool; p; p = n) { n = p->d.next; free(p); if (n==pool) { break; } } } // 释放 void plx_ralloc(plx_pool_t *pool, void *lpdata) { if (!lpdata) { return; } u_char* m = (u_char*)lpdata; m -= sizeof(u_char*); plx_pool_t* p = (plx_pool_t*)m; p->d.user -= 1; if (p->d.user == 0) { if (p->d.end - p->d.last <= pool->max) { p->d.last = (u_char *)p + sizeof(plx_pool_data_t); p->d.failed = 0; pool->current = p; } else { pool->largecurrent = p; } } } // 从内存池中获取一块内存(内存对齐) void * plx_palloc(plx_pool_t *pool, size_t size) { u_char *m; plx_pool_t *p,*n; size += sizeof(plx_pool_t*); if (size <= pool->max) { for (p = pool->current; p&&p->d.failed < 4;) { m = plx_align_ptr(p->d.last, sizeof(unsigned long)); if ((size_t)(p->d.end - m) >= size) { p->d.last = m + size; p->d.user += 1; *m = *(u_char*)p; //*((int*)m) = (int)p; m += sizeof(u_char*); return m; } p->d.failed++; p = p->d.next; if (p == pool->current) { break; } } return plx_palloc_block(pool, size); } return plx_palloc_large(pool, size); } // 加入新的data块 static void * plx_palloc_block(plx_pool_t *pool, size_t size) { u_char *m; size_t psize; plx_pool_t *newp; psize = (size_t)(pool->d.end - (u_char *)pool); m = (u_char*)malloc( psize); if (m == NULL) { return NULL; } newp = (plx_pool_t *)m; newp->d.end = m + psize; newp->d.next = NULL; newp->d.failed = 0; m += sizeof(plx_pool_data_t); newp->d.last = m + size; newp->d.user = 1; newp->d.next = pool->current->d.next; pool->current->d.next = newp; pool->current = newp; // m = plx_align_ptr(m, sizeof(unsigned long)); *m = *(u_char*)newp; // *((int*)m) = (int)newp; m += sizeof(u_char*); return m; } // 进行大内存分配 static void * plx_palloc_large(plx_pool_t *pool, size_t size) { TRACE(_T("----plx_palloc_large----\n!")); u_char *p; plx_pool_t *large; for (large = pool->largecurrent; large;) { if (0 == large->d.user) { if (size <= (size_t)(large->d.end - (u_char *)large)-sizeof(plx_pool_data_t)) { large->d.user = 1; p = large->d.last; p = (u_char*)large; // *((int*)p) = (int)large; p += sizeof(plx_pool_t*); return p; } } large = large->d.next; if (large==pool->largecurrent) { break; } } size += sizeof(plx_pool_data_t); p = (u_char*)malloc(size); if (p == NULL) { return NULL; } large = (plx_pool_t*)p; large->d.end = p + size; p += sizeof(plx_pool_data_t); large->d.last = p ; large->d.next = NULL; large->d.failed = 0; large->d.user = 1; // 挂接 if (pool->largecurrent) { large->d.next = pool->largecurrent->d.next; pool->largecurrent->d.next = large; pool->largecurrent= large->d.next; } else { pool->large = large; pool->largecurrent = large; large->d.next = large; } // *((int*)large->d.last) = (int)p; *p = *(u_char*)large; p += sizeof(u_char*); return p; } // 从内存池中获取一块内存(内存对齐),并设置为0 void * plx_pcalloc(plx_pool_t *pool, size_t size) { void *p; p = plx_palloc(pool, size); if (p) { // zeromemory memset(p, 0, size); } return p; }<file_sep>#pragma once #include <winsock2.h> #pragma comment(lib, "WS2_32") #define OutErr(a) class CTcpServer { public: CTcpServer(void) :m_nSocket(INVALID_SOCKET) { } ~CTcpServer(void) { if (INVALID_SOCKET!=m_nSocket) { closesocket(m_nSocket); m_nSocket=INVALID_SOCKET; } } private: // 监视SOCKET SOCKET m_nSocket; FD_SET m_fdRead; // 延时设置 timeval m_tv; public: // 初始化WinSocket static bool InitWinSocket() { // 初始化WINSOCK WSADATA wsd; if(WSAStartup(MAKEWORD(2, 2), &wsd) != 0) { OutErr("WSAStartup()"); return false; } return true; } // 关闭WinSocket static void CloseWinSocket() { WSACleanup(); } public: // 发送 static long Sendn(SOCKET nSocket,char* Pkg,int nSize) { fd_set fdwrite; timeval tv; tv.tv_usec=0; tv.tv_sec=5;//5秒; while(true) { //检查网络是否可写 FD_ZERO(&fdwrite); FD_SET(nSocket,&fdwrite); switch (select(0,NULL,&fdwrite,NULL,&tv)) { case -1:// error handled by u; { return -1; } case 0: // timeout hanled by u; { // Sleep(1); continue; } default: if (!FD_ISSET(nSocket,&fdwrite)) { // Sleep(1); continue; } break; } break; } // 发送数据 int nPos=0,nLen=0; while(nPos<nSize) { nLen = send(nSocket,Pkg+nPos , nSize-nPos, 0); if(SOCKET_ERROR==nLen||0==nLen) { if(WSAEWOULDBLOCK == WSAGetLastError()) { // Sleep(1); continue; } else { return -1;//网路断开 } } nPos +=nLen; } return nPos;//返回发送长度 } // 接收 static long Recvn(SOCKET nSocket,char* Pkg,int nSize) { timeval tv; tv.tv_usec=0; tv.tv_sec=5;//5秒; fd_set fdread; while(true) { //检查网络可否读写 FD_ZERO(&fdread); FD_SET(nSocket,&fdread); switch (select(0,&fdread,NULL,NULL,&tv)) { case -1: { return -1; //error handled by u; } case 0: { // Sleep(1); continue; } default: if (!FD_ISSET(nSocket,&fdread)) { continue; } break; } break; } int nPos=0,nLen=0; while(nPos<nSize) { // 接收数据 nLen=recv(nSocket,(char*)Pkg+nPos,nSize-nPos,0); if(SOCKET_ERROR==nLen||0==nLen) { if(WSAEWOULDBLOCK == WSAGetLastError()) { // Sleep(1); continue; } else { return -1;//网路断开 } } nPos+=nLen; } return nPos;//返回实际接收的数据的长度 } // 建立服务器,生成监听SOCKET bool CreateServer(unsigned short SerPort) { m_tv.tv_usec=0; m_tv.tv_sec=10;//10秒; // 创建监听socket m_nSocket = socket(AF_INET, SOCK_STREAM, 0); // 绑定端口 struct sockaddr_in servAddr; servAddr.sin_family = AF_INET; servAddr.sin_port = htons(SerPort); servAddr.sin_addr.s_addr = htonl(INADDR_ANY); if(bind(m_nSocket, (struct sockaddr *)&servAddr, sizeof(servAddr)) < 0) { OutErr("bind Failed!"); closesocket(m_nSocket); m_nSocket=INVALID_SOCKET; WSACleanup(); return false; } // 设置监听队列为200 if(listen(m_nSocket, 200) != 0) { closesocket(m_nSocket); m_nSocket=INVALID_SOCKET; WSACleanup(); OutErr("listen Failed!"); return false; } // 设置监听为非阻塞模式 ULONG NonBlock = 1; ioctlsocket(m_nSocket, FIONBIO, &NonBlock); return true; } // 监听客户端连接 SOCKET ListenConnect(char* szClientIp, unsigned short* uClientPort) { FD_ZERO(&m_fdRead); // 设置好读集 FD_SET(m_nSocket,&m_fdRead); switch (select(0,&m_fdRead,NULL,NULL,&m_tv)) { case -1:// error handled by u; { OutErr("select() Failed!"); return INVALID_SOCKET; } case 0: // timeout hanled by u; return 0; default: // 说明可以接受连接了 if (!FD_ISSET(m_nSocket,&m_fdRead)) { return 0; } } SOCKADDR_IN addrClient; int len=sizeof(SOCKADDR); SOCKET nSocket=accept(m_nSocket,(SOCKADDR*)&addrClient,&len); if (nSocket== INVALID_SOCKET) //SOCKET_ERROR { return 0; } strcpy(szClientIp,inet_ntoa(addrClient.sin_addr)); *uClientPort=addrClient.sin_port; unsigned long iMode = 1; //0阻塞 ;1 非阻塞 ioctlsocket(nSocket,FIONBIO,&iMode);//将监听到的socket设为异步模式 return nSocket; } bool StopServer() { if (INVALID_SOCKET!=m_nSocket) { closesocket(m_nSocket); m_nSocket=INVALID_SOCKET; } return true; } }; <file_sep>/*/ 文件:SelectServer.cpp 说明: 此文件演示了如何使用select模型来建立服务器,难点是select的writefds在什么时候使用。 好好看看代码就能很明白的了,可以说我写这些代码就是为了探索这个问题的!找了很多资料都找不到!! 在这里我怀疑是否可以同时读写同一个SOCKET,结果发现是可以的,但是最好别这样做。因为会导致包的顺序不一致。 这里说一下SELECT模型的逻辑: 我们如果不使用select模型,在调用recv或者send时候会导致程序阻塞。如果使用了select 就给我们增加了一层保护,就是说在调用了select函数之后,对处于读集合的socket进行recv操作 是一定会成功的(这是操作系统给我们保证的)。对于判断SOCKET是否可写时也一样。 而且就算不可读或不可写,使用了select也不会锁 死!因为 select 函数提供了超时!利用这个特性还可以 做异步connect,也就是可以扫描主机,看哪个主机开了服务(远程控制软件经常这样干哦!) 我们如何利用这种逻辑来设计我们的server呢? 这里用的方法是建立一个SocketInfo,这个SocketInfo包括了对Socket当前进行的操作,我把它分为: {RecvCmd, RecvData, ExecCmd} 一开始socket是处于一个RecvCmd的状态, 然后取到了CMD(也就是取到了指令,可想象一下CPU得到了指令后干什么),然后就要取数据了,取得指令 知道要干什么,取得了数据就可以实际开始干了。实际开始干就是ExecCmd,在这个状态之后都是需要 发送数据的了,所以把他们都放在判断SOCKET可写下面<就是 if(FD_ISSET(vecSocketInfo[i].sock, &fdWrite)) >, 即当Socket可写就可以发送信息给客户端了。 发送的根本协议是这样的:先发一个SCommand的结构体过去,这个结构体说明了指令和数据的长度。 然后就根据这个长度接收数据。最后再给客户端做出相应的响应! 根据这种代码结构,可以很方便的添加新的功能。 错误处理做得不太好,以后再补充了。 其他的如注释,结构,命名等的编码规范都用了个人比较喜欢的方式。 输出: ../Bin/SelectServer.exe 用法: 直接启动就可以了 Todo: 下一步首先完成各个SOCKET的模型,然后公开自己的研究代码。 功能方面就是: 1、服务器可以指定共享文件夹 2、客户端可以列出服务器共享了哪些文件 3、客户端可以列出哪些用户在线,并可以发命令和其他用户聊天 4、加上界面 /*/ #include "StdAfx.h" #include <winsock2.h> #pragma comment(lib, "WS2_32") #include <windows.h> #pragma warning(disable: 4786) #include <iostream> #include <vector> #include <map> #include <string> #include <algorithm> using namespace std; #include "../Include/CommonSocket.h" #include "../Include/CommonCmd.h" typedef struct tagSocketInfo { SOCKET sock; ECurOp eCurOp; SCommand cmd; char *data; }SSocketInfo; // 登录用户的列表 map<string, SOCKET> g_LoginUsers; // 注册用户的列表(用户名,密码) map<string, string> g_RegUSers; // 用于退出服务器 bool g_bExit = false; void DoRecvCmd(vector<SSocketInfo> &vecSockInfo, int idx); void DoRecvData(vector<SSocketInfo> &vecSockInfo, int idx); void DoExecCmd(vector<SSocketInfo> &vecSockInfo, int idx); bool DoAuthen(SOCKET sock, char *data, DWORD len); bool DoGetFile(SOCKET sock, char *data, DWORD len); bool DoRegister(SOCKET sock, char *data, DWORD len); void GetRegUsers(); /////////////////////////////////////////////////////////////////////// // // 函数名 : RemoveByIndex // 功能描述 : 根据 index 来删除 VECTOR 里的元素 // 参数 : vector<T> &vec [in] // 参数 : int nIdx [in] // 返回值 : void // /////////////////////////////////////////////////////////////////////// template<class T> void EraseByIndex(vector<T> &vec, int nIdx) { vector<T>::iterator it; it = vec.begin() + nIdx; vec.erase(it); } void main() { InitWinsock(); vector<SSocketInfo> vecSocketInfo; SOCKET sockListen = BindServer(PORT); ULONG NonBlock = 1; ioctlsocket(sockListen, FIONBIO, &NonBlock); SOCKET sockClient; GetRegUsers(); FD_SET fdRead; FD_SET fdWrite; while(!g_bExit) { // 每次调用select之前都要把读集和写集清空 FD_ZERO(&fdRead); FD_ZERO(&fdWrite); // 设置好读集和写集 FD_SET(sockListen, &fdRead); for(int i = 0; i < vecSocketInfo.size(); i++) { FD_SET(vecSocketInfo[i].sock, &fdRead); FD_SET(vecSocketInfo[i].sock, &fdWrite); } // 调用select函数 if(select(0, &fdRead, &fdWrite, NULL, NULL) == SOCKET_ERROR) { OutErr("select() Failed!"); break; } // 说明可以接受连接了 if(FD_ISSET(sockListen, &fdRead)) { char szClientIP[50]; sockClient = AcceptClient(sockListen, szClientIP); cout << szClientIP << " 连接上来" << endl; ioctlsocket(sockClient, FIONBIO, &NonBlock); SSocketInfo sockInfo; sockInfo.sock = sockClient; sockInfo.eCurOp = RecvCmd; // 把接收到的这个socket加入自己的队列中 vecSocketInfo.push_back(sockInfo); } for(int i = 0; i < vecSocketInfo.size(); i++) { // 如果可读 if(FD_ISSET(vecSocketInfo[i].sock, &fdRead)) { switch(vecSocketInfo[i].eCurOp) { case RecvCmd: DoRecvCmd(vecSocketInfo, i); break; case RecvData: DoRecvData(vecSocketInfo, i); break; default: break; } } // 如果可写 if(FD_ISSET(vecSocketInfo[i].sock, &fdWrite)) { switch(vecSocketInfo[i].eCurOp) { case ExecCmd: DoExecCmd(vecSocketInfo, i); break; default: break; } } } } } /////////////////////////////////////////////////////////////////////// // // 函数名 : DoRecvCmd // 功能描述 : 获取客户端传过来的cmd // 参数 : vector<SSocketInfo> &vecSockInfo // 参数 : int idx // 返回值 : void // /////////////////////////////////////////////////////////////////////// void DoRecvCmd(vector<SSocketInfo> &vecSockInfo, int idx) { SSocketInfo *sockInfo = &vecSockInfo[idx]; int nRet = RecvFix(sockInfo->sock, (char *)&(sockInfo->cmd), sizeof(sockInfo->cmd)); // 如果用户正常登录上来再用 closesocket 关闭 socket 会返回0 // 如果用户直接关闭程序会返回 SOCKET_ERROR,强行关闭 if(nRet == SOCKET_ERROR || nRet == 0) { OutMsg("客户端已退出。"); closesocket(sockInfo->sock); sockInfo->sock = INVALID_SOCKET; EraseByIndex(vecSockInfo, idx); return; } sockInfo->eCurOp = RecvData; } /////////////////////////////////////////////////////////////////////// // // 函数名 : DoRecvData // 功能描述 : DoRecvCmd 已经获得了指令,接下来就要获得执行指令所需要的数据 // 参数 : vector<SSocketInfo> &vecSockInfo // 参数 : int idx // 返回值 : void // /////////////////////////////////////////////////////////////////////// void DoRecvData(vector<SSocketInfo> &vecSockInfo, int idx) { SSocketInfo *sockInfo = &vecSockInfo[idx]; // 为数据分配空间,分配多一位用来放最后的0 sockInfo->data = new char[sockInfo->cmd.DataSize + 1]; memset(sockInfo->data, 0, sockInfo->cmd.DataSize + 1); // 接收数据 int nRet = RecvFix(sockInfo->sock, sockInfo->data, sockInfo->cmd.DataSize); if(nRet == SOCKET_ERROR || nRet == 0) { OutMsg("客户端已退出。"); closesocket(sockInfo->sock); sockInfo->sock = INVALID_SOCKET; EraseByIndex(vecSockInfo, idx); return; } sockInfo->eCurOp = ExecCmd; } /////////////////////////////////////////////////////////////////////// // // 函数名 : DoExecCmd // 功能描述 : 指令和执行指令所需数据都已经准备好了,接下来就可以执行命令 // 参数 : vector<SSocketInfo> &vecSockInfo // 参数 : int idx // 返回值 : void // /////////////////////////////////////////////////////////////////////// void DoExecCmd(vector<SSocketInfo> &vecSockInfo, int idx) { SSocketInfo *sockInfo = &vecSockInfo[idx]; switch(sockInfo->cmd.CommandID) { case CMD_AUTHEN: DoAuthen(sockInfo->sock, sockInfo->data, sockInfo->cmd.DataSize); break; case CMD_GETFILE: DoGetFile(sockInfo->sock, sockInfo->data, sockInfo->cmd.DataSize); break; case CMD_REGISTER: DoRegister(sockInfo->sock, sockInfo->data, sockInfo->cmd.DataSize); break; default: break; } // 执行完命令后就设置回接收指令状态 sockInfo->eCurOp = RecvCmd; } /////////////////////////////////////////////////////////////////////// // // 函数名 : DoAuthen // 功能描述 : 对用户名和密码做验证 // 参数 : SOCKET sock // 参数 : char *data // 参数 : DWORD len // 返回值 : bool // /////////////////////////////////////////////////////////////////////// bool DoAuthen(SOCKET sock, char *data, DWORD len) { // 取得用户名和密码的字符串 // 格式为 "dyl 123" char *pBuf = data; int nIdx = 0; char szName[10]; memset(szName, 0, 10); char szPass[10]; memset(szPass, 0, 10); while (*pBuf != ' ') { szName[nIdx++] = *pBuf++; } szName[nIdx] = '/0'; *pBuf++; nIdx = 0; while (*pBuf != '/0') { szPass[nIdx++] = *pBuf++; } szPass[nIdx] = '/0'; char szSend[30]; memset(szSend, 0, 30); bool bUserExist = false; if( g_RegUSers.find(string(szName)) != g_RegUSers.end() ) { if(strcmp(g_RegUSers[szName].c_str(), szPass) == 0) { strcpy(szSend, "UP OK!"); g_LoginUsers[szName] = sock; } else { strcpy(szSend, "P Err!"); } } else { // 不存在这个用户 strcpy(szSend, "U Err!"); } int nRet = SendFix(sock, szSend, strlen(szSend)); if(nRet == SOCKET_ERROR) return false; // 执行完了就释放data delete []data; return true; } /////////////////////////////////////////////////////////////////////// // // 函数名 : DoGetFile // 功能描述 : 为用户提供文件 // 参数 : SOCKET sock // 参数 : char *data // 参数 : DWORD len // 返回值 : bool // /////////////////////////////////////////////////////////////////////// bool DoGetFile(SOCKET sock, char *data, DWORD len) { // 打开文件,判断文件是否存在 HANDLE hFile = CreateFile(data, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); if(hFile == INVALID_HANDLE_VALUE) { OutMsg("文件不存在!"); DWORD dwSize = 0; SendFix(sock, (char *)&dwSize, sizeof(dwSize)); return false; } else {// 发送文件信息 // 发送文件大小,发送过去 DWORD dwFileSize = GetFileSize(hFile, NULL); int nRet = SendFix(sock, (char *)&dwFileSize, sizeof(dwFileSize)); if(nRet == SOCKET_ERROR) return false; // 读文件记录并发送 DWORD nLeft = dwFileSize; char szBuf[1024]; DWORD nCurrRead = 0; while(nLeft > 0) { if(!ReadFile(hFile, szBuf, 1024, &nCurrRead, NULL)) { OutErr("ReadFile failed!"); return false; } SendFix(sock, szBuf, nCurrRead); nLeft -= nCurrRead; } CloseHandle(hFile); } delete []data; return true; } bool DoRegister(SOCKET sock, char *data, DWORD len) { // 取得用户名和密码的字符串 // 格式为 "dyl 123" bool bReturn = true; char *pBuf = data; int nIdx = 0; char szName[10]; memset(szName, 0, 10); char szPass[20]; memset(szPass, 0, 20); while (*pBuf != ' ') { szName[nIdx++] = *pBuf++; } szName[nIdx] = '/0'; *pBuf++; nIdx = 0; while (*pBuf != '/0') { szPass[nIdx++] = *pBuf++; } szPass[nIdx] = '/0'; char szSend[30]; memset(szSend, 0, 30); HANDLE hFile = CreateFile("Users.lst", GENERIC_WRITE, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); if(hFile == INVALID_HANDLE_VALUE) { hFile = CreateFile("Users.lst", GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_NEW, FILE_ATTRIBUTE_NORMAL, NULL); if(hFile == INVALID_HANDLE_VALUE) { OutMsg("创建文件Users.lst失败!"); strcpy(szSend, "REG ERR!"); bReturn = false; } else { // 在开始加 SetFilePointer(hFile, 0, 0, FILE_BEGIN); DWORD dwWritten = 0; if(!WriteFile(hFile, szName, 10, &dwWritten, NULL)) { OutMsg("WriteFile failed!"); strcpy(szSend, "REG ERR!"); bReturn = false; } if(!WriteFile(hFile, szPass, 20, &dwWritten, NULL)) { OutMsg("WriteFile failed!"); strcpy(szSend, "REG ERR!"); bReturn = false; } CloseHandle(hFile); // 读回到已注册用户列表中 GetRegUsers(); strcpy(szSend, "REG OK!"); } } else { // 移动到最后追加 SetEndOfFile(hFile); DWORD dwWritten = 0; if(!WriteFile(hFile, szName, 10, &dwWritten, NULL)) { OutMsg("WriteFile failed!"); strcpy(szSend, "REG ERR!"); bReturn = false; } if(!WriteFile(hFile, szPass, 20, &dwWritten, NULL)) { OutMsg("WriteFile failed!"); strcpy(szSend, "REG ERR!"); bReturn = false; } CloseHandle(hFile); // 读回到已注册用户列表中 GetRegUsers(); strcpy(szSend, "REG OK!"); } int nRet = SendFix(sock, szSend, strlen(szSend)); if(nRet == SOCKET_ERROR) bReturn = false; // 执行完了就释放data delete []data; return bReturn; } void GetRegUsers() { g_RegUSers.clear(); char szName[10]; char szPwd[20]; HANDLE hFile = CreateFile("Users.lst", GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); if(hFile == INVALID_HANDLE_VALUE) { OutMsg("用户列表不存在!"); } else { DWORD dwFileSize = 0; dwFileSize = GetFileSize(hFile, NULL); SetFilePointer(hFile, 0, 0, FILE_BEGIN); DWORD dwRead = 0; DWORD dwLeft = dwFileSize; while(dwLeft > 0) { memset(szName, 0, 10); memset(szPwd, 0, 20); if(!ReadFile(hFile, szName, 10, &dwRead, NULL)) { DWORD dwErr = GetLastError(); OutMsg("ReadFile failed!"); } dwLeft -= dwRead; if(!ReadFile(hFile, szPwd, 20, &dwRead, NULL)) { DWORD dwErr = GetLastError(); OutMsg("ReadFile failed!"); } dwLeft -= dwRead; g_RegUSers[szName] = szPwd; } } CloseHandle(hFile); }<file_sep>/************************************* Funtion:Create Server **************************************/ #include "stdafx.h" #include "Server.h" #define EXIT_CODE NULL LPFN_ACCEPTEX gAcceptEx; LPFN_GETACCEPTEXSOCKADDRS gGetAcceptExSockAddrs; LPFN_DISCONNECTEX gDisconnectEx; // 扩展函数DisconnectEx的指针 CServer::CServer() :m_hIocp(NULL) , m_nWorker(0) ,m_handle(NULL) , m_actsocket(NULL) , m_lpWorkerArray(NULL) ,keypool(NULL) { // 初始化临界区 InitializeCriticalSection(&m_cs); } CServer::~CServer() { WSACleanup(); // 删除临界区 DeleteCriticalSection(&m_cs); if (keypool) { plx_destroy_pool(keypool); } if (m_lpWorkerArray) { delete[] m_lpWorkerArray; } } // 获得函数地址 int CServer::GetFunAdr(SOCKET socket) { // AcceptEx 和 GetAcceptExSockaddrs 的GUID,用于导出函数指针 GUID GuidAcceptEx = WSAID_ACCEPTEX; // 获取AcceptEx函数指针 DWORD dwBytes = 0; if (SOCKET_ERROR == WSAIoctl(socket, SIO_GET_EXTENSION_FUNCTION_POINTER, &GuidAcceptEx, sizeof(GuidAcceptEx), &gAcceptEx, sizeof(LPFN_ACCEPTEX), &dwBytes, NULL, NULL)) { TRACE("WSAIoctl 未能获取AcceptEx函数指针。错误代码: %d!!", WSAGetLastError()); return -1; } GUID GuidGetAcceptExSockAddrs = WSAID_GETACCEPTEXSOCKADDRS; // 获取GetAcceptExSockAddrs函数指针,也是同理 if (SOCKET_ERROR == WSAIoctl(socket, SIO_GET_EXTENSION_FUNCTION_POINTER, &GuidGetAcceptExSockAddrs, sizeof(GuidGetAcceptExSockAddrs), &gGetAcceptExSockAddrs, sizeof(LPFN_GETACCEPTEXSOCKADDRS), &dwBytes, NULL, NULL)) { TRACE("WSAIoctl 未能获取GuidGetAcceptExSockAddrs函数指针。错误代码: %d!!", WSAGetLastError()); return -1; } GUID GuidDisconnectEx = WSAID_DISCONNECTEX; if (SOCKET_ERROR == WSAIoctl(socket, SIO_GET_EXTENSION_FUNCTION_POINTER, &GuidDisconnectEx, sizeof(GuidDisconnectEx), &gDisconnectEx, sizeof(LPFN_DISCONNECTEX), &dwBytes, NULL, NULL)) { TRACE("WSAIoctl 未能获取GuidDisconnectEx函数指针。错误代码: %d!!", WSAGetLastError()); return -1; } return 0; } // 停止 int CServer::Stop() { if (m_handle) { PostQueuedCompletionStatus(m_hIocp, 0, (DWORD)EXIT_CODE, NULL); CWorker::WaitThreadClose(m_handle); } return 0; } int CServer::CreateServer(unsigned short nPort, char* szIP) { WSADATA wsaData; // 错误(一般都不可能出现) if (NO_ERROR != WSAStartup(MAKEWORD(2, 2), &wsaData)) { TRACE("---初始化WinSock 2.2失败!---\n"); return -1; } // 建立第一个完成端口 m_hIocp = CreateIoCompletionPort(INVALID_HANDLE_VALUE, NULL, 0, 0); if (NULL == m_hIocp) { TRACE(_T("建立完成端口失败!错误代码: %d!"), WSAGetLastError()); return -1; } // 建立监视Socket m_Socket = WSASocket(AF_INET, SOCK_STREAM, 0, NULL, 0, WSA_FLAG_OVERLAPPED); if (INVALID_SOCKET == m_Socket) { TRACE(_T("初始化监视Socket失败,错误代码: %d."), WSAGetLastError()); return -1; } if (0 != GetFunAdr(m_Socket)) { closesocket(m_Socket); return -1; } // 服务器地址信息,用于绑定Socket struct sockaddr_in ServerAddress; // 填充地址信息 ZeroMemory((char *)&ServerAddress, sizeof(ServerAddress)); ServerAddress.sin_family = AF_INET; // 这里可以绑定任何可用的IP地址,或者绑定一个指定的IP地址 if (szIP) { ServerAddress.sin_addr.s_addr = inet_addr(szIP); } else { ServerAddress.sin_addr.s_addr = htonl(INADDR_ANY); } ServerAddress.sin_port = htons(nPort); // 绑定地址和端口 if (SOCKET_ERROR == bind(m_Socket, (struct sockaddr *) &ServerAddress, sizeof(ServerAddress))) { TRACE("bind()函数执行错误!"); return false; } // 开始进行监听 if (SOCKET_ERROR == listen(m_Socket, SOMAXCONN)) { TRACE("监听失败!错误代码: %d.", WSAGetLastError()); return false; } // 绑定完成端口 if (NULL == CreateIoCompletionPort((HANDLE)m_Socket, m_hIocp, (DWORD)(this), 0)) { TRACE(_T("绑定 Listen Socket至完成端口失败!错误代码: %d!"), WSAGetLastError()); return -1; } // 监视线程 DWORD nThreadID = 0; m_handle = CreateThread(0, 0, (LPTHREAD_START_ROUTINE)ListenThread, (void *)this, 0, &nThreadID); if (!m_handle) { return -1; } keypool = plx_create_pool(1024); // 建立工作 SYSTEM_INFO si; GetSystemInfo(&si); int nWorker = si.dwNumberOfProcessors * 2; m_lpWorkerArray = new CWorker[nWorker]; for (int i = 0; i < nWorker; i++) { if (0==m_lpWorkerArray[i].Run()) { m_nWorker++; } } // 投送监听 for (int i = 0; i < m_nWorker; i++) { PostAccept(); } return 0; } DWORD CServer::ListenThread(CServer* lpVoid) { net_completionkeyex_t* lpOverlapped = NULL; CServer* lpCompletionKey = NULL; DWORD dwBytesTransfered = 0; BOOL bReturn = FALSE; while (true) { bReturn = GetQueuedCompletionStatus(lpVoid->m_hIocp, &dwBytesTransfered, (PULONG_PTR)&lpCompletionKey, (LPOVERLAPPED*)&lpOverlapped, INFINITE); // 如果收到的是退出标志,则直接退出 if (EXIT_CODE == (DWORD)lpCompletionKey) { break; } else { HANDLE handle = lpVoid->GetAcceptIocp(); if (handle) { // 客户SOCKET绑定IOCP if (NULL == CreateIoCompletionPort((HANDLE)lpOverlapped->s, handle, (DWORD)lpOverlapped, 0)) { TRACE("-----客户SOCKET绑定IOCP出现错误.错误代码:%d-----", GetLastError()); lpVoid->PostAccept(); continue; } // 传递lpKey PostQueuedCompletionStatus(handle, 1, (DWORD)lpOverlapped, (LPOVERLAPPED)lpOverlapped); } lpVoid->PostAccept(); } } return 0; } bool CServer::PostAccept() { net_completionkeyex_t* key=NULL; /*EnterCriticalSection(&m_cs); if (m_actsocket) { key = m_actsocket; m_actsocket = m_actsocket->next; ZeroMemory(&key->overlapped, sizeof(OVERLAPPED)); gDisconnectEx(key->s, &key->overlapped, TF_REUSE_SOCKET, NULL); } LeaveCriticalSection(&m_cs);*/ if (!key) { key = (net_completionkeyex_t*)plx_pcalloc(keypool, sizeof(net_completionkeyex_t)); if (!key) { return false; } key->optype = ACCEPT_POSTED; key->s = WSASocket(AF_INET, SOCK_STREAM, IPPROTO_TCP, NULL, 0, WSA_FLAG_OVERLAPPED); } if (!gAcceptEx(m_Socket, key->s, &key->buffer, 0, sizeof(SOCKADDR_IN) + 16, sizeof(SOCKADDR_IN) + 16, &key->dwbytes, &key->overlapped)) { if (WSA_IO_PENDING != WSAGetLastError()) { TRACE("-----投递 AcceptEx 请求失败,错误代码: %d-----", WSAGetLastError()); return false; } } return true; } void CServer::AddNoActSocket(net_completionkeyex_t* act) { EnterCriticalSection(&m_cs); /*act->next = m_actsocket; m_actsocket = act;*/ LeaveCriticalSection(&m_cs); } HANDLE CServer::GetAcceptIocp() { HANDLE hIocp=NULL; static int n = 0; for (int i = n;;) { if (hIocp = m_lpWorkerArray[i].GetHocp()) { break; } if (++i==m_nWorker) { i = 0; } if (i == n) { break; } } return hIocp; } <file_sep> // NetSvrDlg.cpp : 实现文件 // #include "stdafx.h" #include "NetSvr.h" #include "NetSvrDlg.h" #include "afxdialogex.h" #pragma comment(lib,"ws2_32.lib") #ifdef _DEBUG #define new DEBUG_NEW #endif // 用于应用程序“关于”菜单项的 CAboutDlg 对话框 class CAboutDlg : public CDialogEx { public: CAboutDlg(); // 对话框数据 #ifdef AFX_DESIGN_TIME enum { IDD = IDD_ABOUTBOX }; #endif protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持 // 实现 protected: DECLARE_MESSAGE_MAP() }; CAboutDlg::CAboutDlg() : CDialogEx(IDD_ABOUTBOX) { } void CAboutDlg::DoDataExchange(CDataExchange* pDX) { CDialogEx::DoDataExchange(pDX); } BEGIN_MESSAGE_MAP(CAboutDlg, CDialogEx) END_MESSAGE_MAP() // CNetSvrDlg 对话框 CNetSvrDlg::CNetSvrDlg(CWnd* pParent /*=NULL*/) : CDialogEx(IDD_NETSVR_DIALOG, pParent) { m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); } void CNetSvrDlg::DoDataExchange(CDataExchange* pDX) { CDialogEx::DoDataExchange(pDX); } BEGIN_MESSAGE_MAP(CNetSvrDlg, CDialogEx) ON_WM_SYSCOMMAND() ON_WM_PAINT() ON_WM_QUERYDRAGICON() ON_BN_CLICKED(IDC_BT_START, &CNetSvrDlg::OnBnClickedBtStart) END_MESSAGE_MAP() // CNetSvrDlg 消息处理程序 BOOL CNetSvrDlg::OnInitDialog() { CDialogEx::OnInitDialog(); // 将“关于...”菜单项添加到系统菜单中。 // IDM_ABOUTBOX 必须在系统命令范围内。 ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX); ASSERT(IDM_ABOUTBOX < 0xF000); CMenu* pSysMenu = GetSystemMenu(FALSE); if (pSysMenu != NULL) { BOOL bNameValid; CString strAboutMenu; bNameValid = strAboutMenu.LoadString(IDS_ABOUTBOX); ASSERT(bNameValid); if (!strAboutMenu.IsEmpty()) { pSysMenu->AppendMenu(MF_SEPARATOR); pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu); } } // 设置此对话框的图标。 当应用程序主窗口不是对话框时,框架将自动 // 执行此操作 SetIcon(m_hIcon, TRUE); // 设置大图标 SetIcon(m_hIcon, FALSE); // 设置小图标 // TODO: 在此添加额外的初始化代码 return TRUE; // 除非将焦点设置到控件,否则返回 TRUE } void CNetSvrDlg::OnSysCommand(UINT nID, LPARAM lParam) { if ((nID & 0xFFF0) == IDM_ABOUTBOX) { CAboutDlg dlgAbout; dlgAbout.DoModal(); } else { CDialogEx::OnSysCommand(nID, lParam); } } // 如果向对话框添加最小化按钮,则需要下面的代码 // 来绘制该图标。 对于使用文档/视图模型的 MFC 应用程序, // 这将由框架自动完成。 void CNetSvrDlg::OnPaint() { if (IsIconic()) { CPaintDC dc(this); // 用于绘制的设备上下文 SendMessage(WM_ICONERASEBKGND, reinterpret_cast<WPARAM>(dc.GetSafeHdc()), 0); // 使图标在工作区矩形中居中 int cxIcon = GetSystemMetrics(SM_CXICON); int cyIcon = GetSystemMetrics(SM_CYICON); CRect rect; GetClientRect(&rect); int x = (rect.Width() - cxIcon + 1) / 2; int y = (rect.Height() - cyIcon + 1) / 2; // 绘制图标 dc.DrawIcon(x, y, m_hIcon); } else { CDialogEx::OnPaint(); } } //当用户拖动最小化窗口时系统调用此函数取得光标 //显示。 HCURSOR CNetSvrDlg::OnQueryDragIcon() { return static_cast<HCURSOR>(m_hIcon); } HANDLE hCompletionPort; typedef struct _PER_HANDLE_DATA { SOCKET sock; }PER_HANDLE_DATA, *LPPER_HANDLE_DATA; LPPER_HANDLE_DATA perHandleData; LPFN_ACCEPTEX m_lpfnAcceptEx; LPFN_GETACCEPTEXSOCKADDRS m_lpfnGetAcceptExSockAddrs; OVERLAPPED m_Overlapped; char m_Buff[(sizeof(SOCKADDR_IN) + 16) * 2]; // 开始 void CNetSvrDlg::OnBnClickedBtStart() { net_CreateServer(12345, NULL); /*m_Svr.Init(12345);*/ return; WSADATA wsaData; // 错误(一般都不可能出现) if (NO_ERROR != WSAStartup(MAKEWORD(2, 2), &wsaData)) { TRACE("---初始化WinSock 2.2失败!---\n"); } // 建立监视Socket m_Socket = WSASocket(AF_INET, SOCK_STREAM, 0, NULL, 0, WSA_FLAG_OVERLAPPED); if (INVALID_SOCKET == m_Socket) { TRACE(_T("初始化监视Socket失败,错误代码: %d."), WSAGetLastError()); return; } int nReuseAddr = 1; /*if (setsockopt(m_Socket, SOL_SOCKET, SO_REUSEADDR, (const char *)&nReuseAddr, sizeof(int)) != 0) { return; }*/ // 服务器地址信息,用于绑定Socket struct sockaddr_in ServerAddress; // 填充地址信息 ZeroMemory((char *)&ServerAddress, sizeof(ServerAddress)); ServerAddress.sin_family = AF_INET; // 这里可以绑定任何可用的IP地址,或者绑定一个指定的IP地址 /*if (szSerIp) { ServerAddress.sin_addr.s_addr = inet_addr(szSerIp); } else {*/ ServerAddress.sin_addr.s_addr = htonl(INADDR_ANY); //} ServerAddress.sin_port = htons(12345); // 绑定地址和端口 if (SOCKET_ERROR == bind(m_Socket, (struct sockaddr *) &ServerAddress, sizeof(ServerAddress))) { TRACE("bind()函数执行错误!"); return; } // 开始进行监听 if (SOCKET_ERROR == listen(m_Socket, SOMAXCONN)) { TRACE("监听失败!错误代码: %d.", WSAGetLastError()); return; } hCompletionPort = CreateIoCompletionPort(INVALID_HANDLE_VALUE, NULL, 0, 0); if (hCompletionPort == INVALID_HANDLE_VALUE) { return; } if (NULL == CreateIoCompletionPort((HANDLE)m_Socket, hCompletionPort, (DWORD)(this), 0)) { TRACE(_T("绑定 Listen Socket至完成端口失败!错误代码: %d!"), WSAGetLastError()); return; } GUID GuidAcceptEx = WSAID_ACCEPTEX; GUID GuidGetAcceptExSockAddrs = WSAID_GETACCEPTEXSOCKADDRS; // 获取AcceptEx函数指针 DWORD dwBytes = 0; if (SOCKET_ERROR == WSAIoctl(m_Socket, SIO_GET_EXTENSION_FUNCTION_POINTER, &GuidAcceptEx, sizeof(GuidAcceptEx), &m_lpfnAcceptEx, sizeof(LPFN_ACCEPTEX), &dwBytes, NULL, NULL)) { TRACE("WSAIoctl 未能获取AcceptEx函数指针。错误代码: %d!!", WSAGetLastError()); //Log_WriteLog(1, "CTcpServer::Init WSAIoctl 未能获取AcceptEx函数指针!错误代码: %d.", WSAGetLastError()); return; } //#ifdef _DEBUG // 获取GetAcceptExSockAddrs函数指针,也是同理 if (SOCKET_ERROR == WSAIoctl(m_Socket, SIO_GET_EXTENSION_FUNCTION_POINTER, &GuidGetAcceptExSockAddrs, sizeof(GuidGetAcceptExSockAddrs), &m_lpfnGetAcceptExSockAddrs, sizeof(m_lpfnGetAcceptExSockAddrs), &dwBytes, NULL, NULL)) { TRACE("WSAIoctl 未能获取GuidGetAcceptExSockAddrs函数指针。错误代码: %d!!", WSAGetLastError()); //Log_WriteLog(1, "CTcpServer::Init WSAIoctl 未能获取uidGetAcceptExSockAddrs函数指针!错误代码: %d.", WSAGetLastError()); return; } // Accept SOCKET sockAccept = WSASocket(AF_INET, SOCK_STREAM, IPPROTO_TCP, NULL, 0, WSA_FLAG_OVERLAPPED); ZeroMemory(&m_Overlapped, sizeof(OVERLAPPED)); if (!m_lpfnAcceptEx(m_Socket, sockAccept, &m_Buff, 0/*p_wbuf->len - ((sizeof(SOCKADDR_IN)+16)*2*/, sizeof(SOCKADDR_IN) + 16, sizeof(SOCKADDR_IN) + 16, &dwBytes, &m_Overlapped)) { if (WSA_IO_PENDING != WSAGetLastError()) { TRACE("-----投递 AcceptEx 请求失败,错误代码: %d-----", WSAGetLastError()); return; } } } <file_sep>#pragma once #include <winsock2.h> #include <MSWSock.h> #pragma comment(lib,"Mswsock.lib") #include"Worker.h" class CServer { public: CServer(); ~CServer(); private: // 获得函数地址 int GetFunAdr(SOCKET socket); static DWORD /*WINAPI*/ ListenThread(CServer* lpVoid); bool PostAccept(); private: // 监视SOCKET SOCKET m_Socket; // 监听IOCP HANDLE m_hIocp; // Worker CWorker* m_lpWorkerArray; int m_nWorker; HANDLE m_handle; plx_pool_t* keypool; net_completionkeyex_t* m_actsocket; // 临界区 CRITICAL_SECTION m_cs; public: int CreateServer(unsigned short nPort, char* szIP=NULL); // 停止 int Stop(); void AddNoActSocket(net_completionkeyex_t* act); HANDLE GetAcceptIocp(); }; <file_sep> // NetSvrDlg.h : 头文件 // #pragma once #include"TcpService.h" #include <winsock2.h> #include <MSWSock.h> #include "NetServiceExp.h" // CNetSvrDlg 对话框 class CNetSvrDlg : public CDialogEx { // 构造 public: CNetSvrDlg(CWnd* pParent = NULL); // 标准构造函数 // 对话框数据 #ifdef AFX_DESIGN_TIME enum { IDD = IDD_NETSVR_DIALOG }; #endif protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持 // 实现 protected: HICON m_hIcon; // 生成的消息映射函数 virtual BOOL OnInitDialog(); afx_msg void OnSysCommand(UINT nID, LPARAM lParam); afx_msg void OnPaint(); afx_msg HCURSOR OnQueryDragIcon(); DECLARE_MESSAGE_MAP() public: afx_msg void OnBnClickedBtStart(); CTcpService m_Svr; SOCKET m_Socket; LPFN_ACCEPTEX m_lpfnAcceptEx; LPFN_GETACCEPTEXSOCKADDRS m_lpfnGetAcceptExSockAddrs; OVERLAPPED m_Overlapped; }; <file_sep>#ifndef _POOLX_H_INCLUDED_ #define _POOLX_H_INCLUDED_ typedef struct plx_pool_s plx_pool_t; typedef struct { unsigned char *last; // 当前 pool 中用完的数据的结尾指针,即可用数据的开始指针 unsigned char *end; // 当前 pool 数据库的结尾指针 plx_pool_t *next; // 指向下一个 pool 的指针 size_t user; // 已分配块数 unsigned int failed; // 当前 pool 内存不足以分配的次数 } plx_pool_data_t; struct plx_pool_s { plx_pool_data_t d; // 包含 pool 的数据区指针的结构体 size_t max; // 当前 pool 最大可分配的内存大小(Bytes) plx_pool_t *current; // pool 当前正在使用的pool的指针 plx_pool_t *large; // pool 中指向大数据快的指针(大数据快是指 size > max 的数据块) plx_pool_t *largecurrent; // pool 当前正在使用的pool的指针 }; // 创建一个pool plx_pool_t *plx_create_pool(size_t size); // 销毁内存池 void plx_destroy_pool(plx_pool_t *pool); // 从内存池中获取一块内存(内存对齐) void *plx_palloc(plx_pool_t *pool, size_t size); // 从内存池中获取一块内存(内存对齐),并设置为0 void * plx_pcalloc(plx_pool_t *pool, size_t size); // 释放 void plx_ralloc(plx_pool_t *pool, void *lpdata); #endif /* _POOLX_H_INCLUDED_ */<file_sep>///////////////////////////////////////////////////////////////////////////// // Name: TcpServiceExp.cpp // Purpose: // Author: // Modified by: // Created: // RCS-ID: // Copyright: // Licence: ///////////////////////////////////////////////////////////////////////////// #include "stdafx.h" #define TCPCLIENT_OP_API extern "C" _declspec(dllexport) #include "TcpClientExp.h" #include "Manager.h" CManager man; TCPCLIENT_OP_API int cli_init() { return man.Init(); } TCPCLIENT_OP_API int cli_ConnectToServer(unsigned short nSvrPort, char* szSvrIP, BackFunc backfun, void* pObj) { return man.ConnectToServer(nSvrPort, szSvrIP,backfun,pObj); }<file_sep>/*/ 文件: CommonSocket.h 说明: 实现了服务端和客户端一些公用的函数! /*/ #ifndef __COMMONSOCKET_H__ #define __COMMONSOCKET_H__ #include <iostream> using namespace std; #define OutErr(a) cout << (a) << endl / << "出错代码:" << WSAGetLastError() << endl / << "出错文件:" << __FILE__ << endl / << "出错行数:" << __LINE__ << endl / #define OutMsg(a) cout << (a) << endl; /////////////////////////////////////////////////////////////////////// // // 函数名 : InitWinsock // 功能描述 : 初始化WINSOCK // 返回值 : void // /////////////////////////////////////////////////////////////////////// void InitWinsock() { // 初始化WINSOCK WSADATA wsd; if( WSAStartup(MAKEWORD(2, 2), &wsd) != 0) { OutErr("WSAStartup()"); } } /////////////////////////////////////////////////////////////////////// // // 函数名 : ConnectServer // 功能描述 : 连接SERVER // 参数 : char *lpszServerIP IP地址 // 参数 : int nPort 端口 // 返回值 : SOCKET SERVER 的 Socket // /////////////////////////////////////////////////////////////////////// SOCKET ConnectServer(char *lpszServerIP, int nPort, ULONG NonBlock) { SOCKET sServer = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); //ioctlsocket(sServer, FIONBIO, &NonBlock); struct hostent *pHost = NULL; struct sockaddr_in servAddr; servAddr.sin_family = AF_INET; servAddr.sin_port = htons(nPort); servAddr.sin_addr.s_addr = inet_addr(lpszServerIP); // 如果给的是主机的名字而不是IP地址 if(servAddr.sin_addr.s_addr == INADDR_NONE) { pHost = gethostbyname( lpszServerIP ); if(pHost == NULL) { OutErr("gethostbyname Failed!"); return NULL; } memcpy(&servAddr.sin_addr, pHost->h_addr_list[0], pHost->h_length); } int nRet = 0; nRet = connect(sServer, (struct sockaddr *)&servAddr, sizeof(servAddr)); if( nRet == SOCKET_ERROR ) { OutErr("connect failed!"); return NULL; } return sServer; } /////////////////////////////////////////////////////////////////////// // // 函数名 : BindServer // 功能描述 : 绑定端口 // 参数 : int nPort // 返回值 : SOCKET // /////////////////////////////////////////////////////////////////////// SOCKET BindServer(int nPort) { // 创建socket SOCKET sServer = socket(AF_INET, SOCK_STREAM, 0); // 绑定端口 struct sockaddr_in servAddr; servAddr.sin_family = AF_INET; servAddr.sin_port = htons(nPort); servAddr.sin_addr.s_addr = htonl(INADDR_ANY); if(bind(sServer, (struct sockaddr *)&servAddr, sizeof(servAddr)) < 0) { OutErr("bind Failed!"); return NULL; } // 设置监听队列为200 if(listen(sServer, 200) != 0) { OutErr("listen Failed!"); return NULL; } return sServer; } /////////////////////////////////////////////////////////////////////// // // 函数名 : AcceptClient // 功能描述 : // 参数 : SOCKET sServer [in] // 参数 : LPSTR lpszIP [out] 返回客户端的IP地址 // 返回值 : SOCKET [out] 返回客户端的socket // /////////////////////////////////////////////////////////////////////// SOCKET AcceptClient(SOCKET sListen, LPSTR lpszIP) { struct sockaddr_in cliAddrTmp; int cliAddrSize = sizeof(struct sockaddr_in); SOCKET sClient = accept(sListen, (struct sockaddr *)&cliAddrTmp, &cliAddrSize); if(sClient == INVALID_SOCKET) { OutErr("accept failed!"); return NULL; } sprintf(lpszIP, "%s", inet_ntoa(cliAddrTmp.sin_addr));//cliAddrTmp.sin_port return sClient; } /////////////////////////////////////////////////////////////////////// // // 函数名 : RecvFix // 功能描述 : 接收指定长度的数据,考虑非阻塞socket的情况 // 参数 : SOCKET socket [in] // 参数 : char *data [in] // 参数 : DWORD len [in] // 参数 : DWORD *retlen [out] // 返回值 : bool // /////////////////////////////////////////////////////////////////////// int RecvFix(SOCKET socket, char *data, DWORD len) { int retlen = 0; int nLeft = len; int nRead = 0; char *pBuf = data; while(nLeft > 0) { nRead = recv(socket, pBuf, nLeft, 0); if(nRead == SOCKET_ERROR || nRead == 0) { if(WSAEWOULDBLOCK == WSAGetLastError()) continue; else return nRead; } nLeft -= nRead; retlen += nRead; pBuf += nRead; } return nRead; } /////////////////////////////////////////////////////////////////////// // // 函数名 : SendFix // 功能描述 : 发送指定长度的数据,考虑非阻塞socket的情况 // 参数 : SOCKET socket // 参数 : char *data // 参数 : DWORD len // 参数 : DWORD *retlen // 返回值 : bool // /////////////////////////////////////////////////////////////////////// int SendFix(SOCKET socket, char *data, DWORD len) { int retlen = 0; int nLeft = len; int nWritten = 0; const char *pBuf = data; while(nLeft > 0) { nWritten = send(socket, data, nLeft, 0); if(nWritten == SOCKET_ERROR || nWritten == 0) { if(WSAEWOULDBLOCK == WSAGetLastError()) continue; else return nWritten; } nLeft -= nWritten; retlen += nWritten; pBuf += nWritten; } return nWritten; } /* /////////////////////////////////////////////////////////////////////// // // 函数名 : SelectSend // 功能描述 : 使用select模型来发送数据,没完成,所以注释掉了 // 参数 : SOCKET sock // 参数 : FD_SET *wfds // 参数 : char *data // 参数 : DWORD len // 返回值 : bool // /////////////////////////////////////////////////////////////////////// bool SelectSend(SOCKET sock, FD_SET *wfds, char *data, DWORD len) { FD_ZERO(wfds); FD_SET(sock, wfds); if(select(0, NULL, wfds, NULL, NULL) == SOCKET_ERROR) { OutErr("select() Failed!"); return false; } // 如果是可以写的SOCKET,就一直写,直到返回WSAEWOULDBLOCK if( FD_ISSET(sock, wfds) ) { int nLeft = len; while(nLeft > 0) { int nRet = send(sock, data, len, 0); if(nRet == SOCKET_ERROR) return false; nLeft -= nRet; } } return true; } /////////////////////////////////////////////////////////////////////// // // 函数名 : SelectRecv // 功能描述 : 使用select模型来接收数据,没完成,所以注释掉了 // 参数 : SOCKET sock // 参数 : FD_SET *rfds // 参数 : char *data // 参数 : DWORD len // 返回值 : bool // /////////////////////////////////////////////////////////////////////// bool SelectRecv(SOCKET sock, FD_SET *rfds, char *data, DWORD len) { FD_ZERO(rfds); FD_SET(sock, rfds); if(select(0, rfds, NULL, NULL, NULL) == SOCKET_ERROR) { OutErr("select() Failed!"); return false; } if( FD_ISSET(sock, rfds) ) { int nLeft = len; while(nLeft > 0) { int nRet = recv(sock, data, len, 0); if(nRet == SOCKET_ERROR) return false; nLeft -= nRet; } } return true; } */ #endif //__COMMONSOCKET_H__<file_sep>#pragma once #include"Worker.h" #include <map> class CManager { public: CManager(); ~CManager(); private: int GetFunAdr(SOCKET s); static DWORD ManThread(CManager* lpVoid); private: // ¹ÜÀíÏ߳̾ä±ú HANDLE m_handle; HANDLE m_hIocp; std::map<CWorker* , worker_data_t> workermap; std::map<CWorker*, worker_data_t>::iterator iter; connect_key_t* m_actqueue; plx_pool_t* pool; public: int Init(); int ConnectToServer(unsigned short nSvrPort, char* szSvrIP,BackFun backfun,void* pObj); int Stop(); int PostRecv(connect_key_t* lpCompletionKey,int size); int PostSend(connect_key_t* lpCompletionKey, int size); int CloseConnection(); }; <file_sep>///////////////////////////////////////////////////////////////////////////// // Name: TcpServiceExp.h // Purpose: // Author: // Modified by: // Created: // RCS-ID: // Copyright: // Licence: ///////////////////////////////////////////////////////////////////////////// #pragma once #ifdef TCPCLIENT_OP_API #else #ifdef _DEBUG #pragma comment(lib,"TcpClientd.lib") #else #pragma comment(lib,"TcpClient.lib") #endif #define TCPCLIENT_OP_API extern "C" _declspec(dllimport) #endif typedef void(*BackFunc)(void* lpKey, void* lpdata, int optype, int len, void* lpobj); TCPCLIENT_OP_API int cli_init(); TCPCLIENT_OP_API int cli_ConnectToServer(unsigned short nSvrPort, char* szSvrIP, BackFunc backfun, void* pObj);<file_sep>///////////////////////////////////////////////////////////////////////////// // Name: TcpServiceExp.cpp // Purpose: // Author: // Modified by: // Created: // RCS-ID: // Copyright: // Licence: ///////////////////////////////////////////////////////////////////////////// #include "stdafx.h" #define NETSERVICE_OP_API extern "C" _declspec(dllexport) #include "NetServiceExp.h" #include "Server.h" CServer svr; NETSERVICE_OP_API int net_CreateServer(unsigned short nPort, char* szIP) { return svr.CreateServer(nPort, szIP); } NETSERVICE_OP_API int net_StopServer() { return svr.Stop(); }<file_sep>#include "stdafx.h" #include "Worker.h" #define EXIT_CODE NULL #define MAX_ACTIVE_CONNECT 1024 extern LPFN_DISCONNECTEX gDisconnectEx; CWorker::CWorker() :m_hIocp(NULL) , m_active(0) ,pool(NULL) { } CWorker::~CWorker() { if (pool) { plx_destroy_pool(pool); } } int CWorker::Run() { m_hIocp = CreateIoCompletionPort(INVALID_HANDLE_VALUE, NULL, 0, 0); if (NULL == m_hIocp) { TRACE(_T("建立完成端口失败!错误代码: %d!"), WSAGetLastError()); return -1; } DWORD nThreadID = 0; m_handle = ::CreateThread(0, 0, (LPTHREAD_START_ROUTINE)WorkerThread, (void *)this, 0, &nThreadID); if (!m_handle) { return -1; } pool=plx_create_pool(1024); return 0; } HANDLE CWorker::GetHocp() { if (m_active > MAX_ACTIVE_CONNECT) { return NULL; } return m_hIocp; } int CWorker::Stop() { return 0; } // 工作线程 DWORD CWorker::WorkerThread(CWorker* lpVoid) { net_overlappedex_t* lpOverlapped = NULL; net_completionkeyex_t* lpCompletionKey = NULL; DWORD dwBytesTransfered = 0; BOOL bReturn = FALSE; while (true) { bReturn = GetQueuedCompletionStatus(lpVoid->m_hIocp, &dwBytesTransfered, (PULONG_PTR)&lpCompletionKey, (LPOVERLAPPED *)&lpOverlapped, INFINITE); // 如果收到的是退出标志,则直接退出 if (EXIT_CODE == (DWORD)lpCompletionKey) { break; } else { if (!bReturn || dwBytesTransfered == 0) { switch (lpOverlapped->optype) { case ACCEPT_POSTED: { /*ZeroMemory(&lpCompletionKey->overlapped, sizeof(lpCompletionKey->overlapped)); gDisconnectEx(lpCompletionKey->s, &lpCompletionKey->overlapped, TF_REUSE_SOCKET, NULL);*/ Sleep(1); } break; case SEND_POSTED: { } break; case RECV_POSTED: { } default: break; } } else // 接收或发送数据完成 { switch (lpOverlapped->optype) { case ACCEPT_POSTED: { Sleep(1); lpVoid->PostRecv(lpCompletionKey, 1200); //ZeroMemory(&lpCompletionKey->overlapped, sizeof(lpCompletionKey->overlapped)); //gDisconnectEx(lpCompletionKey->s, &lpCompletionKey->overlapped, TF_REUSE_SOCKET, NULL); } break; case SEND_POSTED: { } break; case RECV_POSTED: { plx_ralloc(lpVoid->pool, lpOverlapped); lpVoid->PostRecv(lpCompletionKey, 1200); } default: break; } } } } return 0; } <file_sep>#include "stdafx.h" #include "Manager.h" LPFN_CONNECTEX gConnectEx = NULL; LPFN_DISCONNECTEX gDisconnectEx=NULL; CManager::CManager() :m_handle(NULL) , m_hIocp(NULL) , m_actqueue(NULL) { } CManager::~CManager() { for (iter = workermap.begin(); iter != workermap.end(); iter++) { delete iter->first; } WSACleanup(); } int CManager::Stop() { if(m_hIocp) { PostQueuedCompletionStatus(m_hIocp, 0, (DWORD)EXIT_CODE, NULL); if (m_handle) { CWorker::WaitThreadClose(m_handle); } } CloseHandle(m_hIocp); for (iter = workermap.begin(); iter != workermap.end(); iter++) { iter->first->Stop(); } return 0; } int CManager::GetFunAdr(SOCKET s) { if (gConnectEx) { return 0; } DWORD dwBytes = 0; GUID GuidConnectEx = WSAID_CONNECTEX; // 重点,获得ConnectEx 函数的指针 if (SOCKET_ERROR == WSAIoctl(s, SIO_GET_EXTENSION_FUNCTION_POINTER, &GuidConnectEx, sizeof(GuidConnectEx), &gConnectEx, sizeof(LPFN_CONNECTEX), &dwBytes, 0, 0)) { TRACE(_T("GuidConnectEx:WSAIoctl is failed. Error code = %d"), WSAGetLastError()); return -1; } GUID GuidDisconnectEx = WSAID_DISCONNECTEX; if (SOCKET_ERROR == WSAIoctl(s, SIO_GET_EXTENSION_FUNCTION_POINTER, &GuidDisconnectEx, sizeof(GuidDisconnectEx), &gDisconnectEx, sizeof(LPFN_DISCONNECTEX), &dwBytes, NULL, NULL)) { TRACE("GuidDisconnectEx:WSAIoctl is failed. Error code = %d !", WSAGetLastError()); return -1; } return 0; } int CManager::Init() { WSADATA wsaData; // 错误(一般都不可能出现) if (NO_ERROR != WSAStartup(MAKEWORD(2, 2), &wsaData)) { TRACE("---初始化WinSock 2.2失败!---\n"); return -1; } SOCKET s = ::WSASocket(AF_INET,SOCK_STREAM, IPPROTO_TCP, NULL, NULL, WSA_FLAG_OVERLAPPED); GetFunAdr(s); closesocket(s); m_hIocp = CreateIoCompletionPort(INVALID_HANDLE_VALUE, NULL, (ULONG_PTR)0, 0); DWORD nThreadID = 0; m_handle = ::CreateThread(0, 0, (LPTHREAD_START_ROUTINE)ManThread, (void *)this, 0, &nThreadID); if (!m_handle) { return -1; } pool = plx_create_pool(POOL_SIZE); // create work thread SYSTEM_INFO si; GetSystemInfo(&si); int nWorker = si.dwNumberOfProcessors * 2; for (int i = 0; i < nWorker; i++) { CWorker* w = new CWorker(m_hIocp); if (w) { worker_data_t d; d.hIocp = w->Init(); if (d.hIocp) { d.connect = 0; workermap[w] = d; } else { delete w; } } } return 0; } DWORD CManager::ManThread(CManager* lpVoid) { void* lpOverlapped = NULL; void* lpCompletionKey = NULL; DWORD dwBytesTransfered = 0; BOOL bReturn = FALSE; while (true) { bReturn = GetQueuedCompletionStatus(lpVoid->m_hIocp, &dwBytesTransfered, (PULONG_PTR)&lpCompletionKey, (LPOVERLAPPED *)&lpOverlapped, INFINITE); // 如果收到的是退出标志,则直接退出 if (EXIT_CODE == (DWORD)lpCompletionKey) { break; } else { } } return 0; } int CManager::ConnectToServer(unsigned short nSvrPort, char* szSvrIP , BackFun backfun, void* pObj) { // connect_key_t* cn = NULL; if (m_actqueue) { } else { cn = (connect_key_t*)plx_palloc(pool, sizeof(connect_key_t)); cn->s= ::WSASocket(AF_INET,SOCK_STREAM, IPPROTO_TCP, NULL, NULL, WSA_FLAG_OVERLAPPED); sockaddr_in local_addr; ZeroMemory(&local_addr, sizeof(sockaddr_in)); local_addr.sin_family = AF_INET; int irt = ::bind(cn->s, (sockaddr *)(&local_addr), sizeof(sockaddr_in)); } cn->hIocp = NULL; static std::map<CWorker*, worker_data_t>::iterator siter = workermap.begin(); for (iter = siter; iter != workermap.end(); ) { if (iter->second.connect < MAX_ACTIVE_CONNECT) { cn->hIocp = iter->second.hIocp; CreateIoCompletionPort((HANDLE)cn->s, cn->hIocp, (ULONG_PTR)cn, 0); return; } iter++; if (iter==siter) { break; } } // 设置连接目标地址 if (!cn->hIocp) { return -1; } sockaddr_in addrPeer; ZeroMemory(&addrPeer, sizeof(sockaddr_in)); addrPeer.sin_family = AF_INET; addrPeer.sin_addr.s_addr = inet_addr(szSvrIP); addrPeer.sin_port = htons(nSvrPort); int nLen = sizeof(addrPeer); PVOID lpSendBuffer = NULL; DWORD dwSendDataLength = 0; DWORD dwBytes = 0; // 重点 ZeroMemory(&cn->overlapped, sizeof(OVERLAPPED)); cn->optype = CONNECT_POSTED; BOOL bResult = gConnectEx(cn->s, (sockaddr *)&addrPeer, // [in] 对方地址 nLen, // [in] 对方地址长度 lpSendBuffer, // [in] 连接后要发送的内容,这里不用 dwSendDataLength, // [in] 发送内容的字节数 ,这里不用 &dwBytes, // [out]发送了多少个字节,这里不用 (OVERLAPPED *)&cn->overlapped); // [in] 重叠IO结构 if (!bResult) // 返回值处理 { if (WSAGetLastError() != ERROR_IO_PENDING) // 调用失败 { TRACE(TEXT("ConnextEx error: %d/n"), WSAGetLastError()); return -1; } else;// 操作未决(正在进行中 … ) { TRACE0("WSAGetLastError() == ERROR_IO_PENDING/n");// 操作正在进行中 } } return 0; } int CManager::PostRecv(connect_key_t* lpCompletionKey, int size) { overlapped_t* ov = (overlapped_t*)plx_palloc(pool, sizeof(overlapped_t)); ZeroMemory(&ov->overlapped, sizeof(OVERLAPPED)); ov->wsabuf.len = size; return 0; } int CManager::PostSend(connect_key_t* lpCompletionKey, int size) { return 0; } int CManager::CloseConnection() { return 0; } <file_sep>#pragma once #include <winsock2.h> #include <MSWSock.h> #include"NetWorker.h" typedef struct _OVERLAPPEDE_ACCEPT { OVERLAPPED m_Overlapped; // 重叠结构 OPERATION_TYPE m_OpType; // 操作标识 SOCKET socket; char* lpData; DWORD m_dwFlags; DWORD m_dwBytes; WSABUF m_wsaBuf[1]; }OVERLAPPEDE_ACCEPT; class CTcpService { public: CTcpService(); ~CTcpService(); private: //等待停止线程 void WaitThreadClose(HANDLE handle) { MSG msg; DWORD result; while (handle != NULL) { result = MsgWaitForMultipleObjects(1, &handle, false, INFINITE, QS_ALLINPUT);//INFINITE switch (result) { case WAIT_OBJECT_0: //线程的结束 CloseHandle(handle); handle = NULL; break; //break the loop case WAIT_OBJECT_0 + 1: ////主线程里使用GetSafeHwnd(),辅佐线程用GetForegroundWindow()获得窗口句柄 PeekMessage(&msg, GetForegroundWindow(), 0, 0, PM_REMOVE); DispatchMessage(&msg); continue; default: return;/// unexpected failure } } } private: // 获得连接句柄 HANDLE GetConnectHandle(); // 工作线程 static DWORD /*WINAPI*/ WorkerThread(CTcpService* lpVoid); // 完成端口,监听Accept HANDLE m_hIocp; // 监视SOCKET SOCKET m_Socket; LPFN_ACCEPTEX m_lpfnAcceptEx; LPFN_GETACCEPTEXSOCKADDRS m_lpfnGetAcceptExSockAddrs; // 监视线程 HANDLE m_handle; OVERLAPPEDE_ACCEPT m_Overlapped; OVERLAPPEDE_ACCEPT m_Recv; CWorker* m_lpWork; // Worker数目 int m_nWorker; bool PostRecv(OVERLAPPEDE_ACCEPT* lpOverlapped) { lpOverlapped->m_OpType = RECV_POSTED; lpOverlapped->m_dwBytes = 0; lpOverlapped->m_dwFlags = 0; // 初始化 lpOverlapped->m_Overlapped.hEvent = NULL; lpOverlapped->m_wsaBuf[0].buf = lpOverlapped->lpData; lpOverlapped->m_wsaBuf[0].len = 10; // 投递WSARecv请求 //ASSERT(INVALID_SOCKET!=m_Handle.m_Socket); ZeroMemory(&lpOverlapped->m_Overlapped, sizeof(lpOverlapped->m_Overlapped)); int nRes = WSARecv(lpOverlapped->socket, &lpOverlapped->m_wsaBuf[0], 1, &lpOverlapped->m_dwBytes, &lpOverlapped->m_dwFlags, &lpOverlapped->m_Overlapped, NULL); if (SOCKET_ERROR == nRes) { nRes = WSAGetLastError(); if (WSA_IO_PENDING != nRes) { TRACE("---服务端接收错误SOCKET:%d,释放资源,错误代码:%d---\n", lpOverlapped->socket, nRes); return false; } return true; } return true; } private: bool PostAccept(); public: // 初始化服务器 int Init(unsigned short nPort, char* szIP=NULL); bool Stop(); }; <file_sep>// TcpClient.h : TcpClient DLL 的主头文件 // #pragma once #ifndef __AFXWIN_H__ #error "在包含此文件之前包含“stdafx.h”以生成 PCH 文件" #endif #include "resource.h" // 主符号 // CTcpClientApp // 有关此类实现的信息,请参阅 TcpClient.cpp // class CTcpClientApp : public CWinApp { public: CTcpClientApp(); // 重写 public: virtual BOOL InitInstance(); DECLARE_MESSAGE_MAP() }; <file_sep>#include "stdafx.h" #include "TcpService.h" #pragma comment(lib,"ws2_32.lib") #define EXIT_CODE NULL char Buff[(sizeof(SOCKADDR_IN) + 16) * 2]; CTcpService::CTcpService() :m_handle(NULL) , m_lpWork(NULL) , m_nWorker(0) { WSADATA wsaData; // 错误(一般都不可能出现) if (NO_ERROR != WSAStartup(MAKEWORD(2, 2), &wsaData)) { TRACE("---初始化WinSock 2.2失败!---\n"); } } // 释放 CTcpService::~CTcpService() { if (m_lpWork) { delete[] m_lpWork; } WSACleanup(); } // 停止 bool CTcpService::Stop() { if (!m_hIocp) { return true; } if (m_handle) { PostQueuedCompletionStatus(m_hIocp, 0, (DWORD)EXIT_CODE, NULL); WaitThreadClose(m_handle); } return true; } bool CTcpService::PostAccept() { // 准备参数 DWORD dwBytes = 0; m_Overlapped.socket = WSASocket(AF_INET, SOCK_STREAM, IPPROTO_TCP, NULL, 0, WSA_FLAG_OVERLAPPED); ZeroMemory(&m_Overlapped.m_Overlapped, sizeof(OVERLAPPED)); if (!m_lpfnAcceptEx(m_Socket, m_Overlapped.socket, &Buff, 0/*p_wbuf->len - ((sizeof(SOCKADDR_IN)+16)*2*/, sizeof(SOCKADDR_IN) + 16, sizeof(SOCKADDR_IN) + 16, &dwBytes, &m_Overlapped.m_Overlapped)) { if (WSA_IO_PENDING != WSAGetLastError()) { TRACE("-----投递 AcceptEx 请求失败,错误代码: %d-----", WSAGetLastError()); return false; } } return true; } // 初始化服务器 int CTcpService::Init(unsigned short nPort, char* szIP) { m_Recv.lpData = new char[1024]; // 建立第一个完成端口 m_hIocp = CreateIoCompletionPort(INVALID_HANDLE_VALUE, NULL, 0, 0); if (NULL == m_hIocp) { TRACE(_T("建立完成端口失败!错误代码: %d!"), WSAGetLastError()); return -1; } // 建立监视Socket m_Socket = WSASocket(AF_INET, SOCK_STREAM, 0, NULL, 0, WSA_FLAG_OVERLAPPED); if (INVALID_SOCKET == m_Socket) { TRACE(_T("初始化监视Socket失败,错误代码: %d."), WSAGetLastError()); return false; } // 服务器地址信息,用于绑定Socket struct sockaddr_in ServerAddress; // 填充地址信息 ZeroMemory((char *)&ServerAddress, sizeof(ServerAddress)); ServerAddress.sin_family = AF_INET; // 这里可以绑定任何可用的IP地址,或者绑定一个指定的IP地址 if (szIP) { ServerAddress.sin_addr.s_addr = inet_addr(szIP); } else { ServerAddress.sin_addr.s_addr = htonl(INADDR_ANY); } ServerAddress.sin_port = htons(nPort); // 绑定地址和端口 if (SOCKET_ERROR == bind(m_Socket, (struct sockaddr *) &ServerAddress, sizeof(ServerAddress))) { TRACE("bind()函数执行错误!"); return false; } // 开始进行监听 if (SOCKET_ERROR == listen(m_Socket, SOMAXCONN)) { TRACE("监听失败!错误代码: %d.", WSAGetLastError()); return false; } // AcceptEx 和 GetAcceptExSockaddrs 的GUID,用于导出函数指针 GUID GuidAcceptEx = WSAID_ACCEPTEX; GUID GuidGetAcceptExSockAddrs = WSAID_GETACCEPTEXSOCKADDRS; // 获取AcceptEx函数指针 DWORD dwBytes = 0; if (SOCKET_ERROR == WSAIoctl(m_Socket, SIO_GET_EXTENSION_FUNCTION_POINTER, &GuidAcceptEx, sizeof(GuidAcceptEx), &m_lpfnAcceptEx, sizeof(LPFN_ACCEPTEX), &dwBytes, NULL, NULL)) { TRACE("WSAIoctl 未能获取AcceptEx函数指针。错误代码: %d!!", WSAGetLastError()); return -1; } //#ifdef _DEBUG // 获取GetAcceptExSockAddrs函数指针,也是同理 if (SOCKET_ERROR == WSAIoctl(m_Socket, SIO_GET_EXTENSION_FUNCTION_POINTER, &GuidGetAcceptExSockAddrs, sizeof(GuidGetAcceptExSockAddrs), &m_lpfnGetAcceptExSockAddrs, sizeof(LPFN_GETACCEPTEXSOCKADDRS), &dwBytes, NULL, NULL)) { TRACE("WSAIoctl 未能获取GuidGetAcceptExSockAddrs函数指针。错误代码: %d!!", WSAGetLastError()); return -1; } // 绑定完成端口 if (NULL == CreateIoCompletionPort((HANDLE)m_Socket, m_hIocp,(DWORD)(this), 0)) { TRACE(_T("绑定 Listen Socket至完成端口失败!错误代码: %d!"), WSAGetLastError()); return -1; } DWORD nThreadID = 0; m_handle = CreateThread(0, 0, (LPTHREAD_START_ROUTINE)WorkerThread, (void *)this, 0, &nThreadID); if (!m_handle) { return -1; } // 建立工作线程 SYSTEM_INFO si; GetSystemInfo(&si); m_nWorker = si.dwNumberOfProcessors * 2; m_lpWork = new CWorker[m_nWorker]; for (int i = 0; i < m_nWorker; i++) { m_lpWork[i].Init(); } PostAccept(); return 0; } // Accept 建立链接 DWORD CTcpService::WorkerThread(CTcpService* lpVoid) { OVERLAPPEDE_ACCEPT* lpOverlapped = NULL; CTcpService* lpCompletionKey = NULL; DWORD dwBytesTransfered = 0; BOOL bReturn = FALSE; while (true) { bReturn = GetQueuedCompletionStatus(lpVoid->m_hIocp, &dwBytesTransfered, (PULONG_PTR)&lpCompletionKey,(LPOVERLAPPED*) &lpOverlapped, INFINITE); // 如果收到的是退出标志,则直接退出 if (EXIT_CODE == (DWORD)lpCompletionKey) { break; } else { COMPLETIONKEYEX* lpKey = new COMPLETIONKEYEX; lpKey->socket = lpOverlapped->socket; HANDLE handle = lpVoid->GetConnectHandle(); if (handle) { // 客户SOCKET绑定IOCP if (NULL == CreateIoCompletionPort((HANDLE)lpKey->socket, handle, (DWORD)lpKey, 0)) { TRACE("-----客户SOCKET绑定IOCP出现错误.错误代码:%d-----", GetLastError()); lpVoid-> PostAccept(); continue; } // 传递lpKey PostQueuedCompletionStatus(handle, 0, (DWORD)lpKey, (LPOVERLAPPED)NULL); } lpVoid->PostAccept(); } } return 0; } // 获得连接句柄 HANDLE CTcpService::GetConnectHandle() { HANDLE handle = NULL; for (int i = 0; i < m_nWorker; i++) { if (handle = m_lpWork[i].GetIocp()) { return handle; } } return NULL; } <file_sep>#include "stdafx.h" #include "NetWorker.h" #define EXIT_CODE NULL #define MAX_CONNECT 1024 CWorker::CWorker() :m_hIocp(NULL) ,m_handle(NULL) , m_nConnect(0) { } CWorker::~CWorker() { } // 停止 bool CWorker::Stop() { if (!m_hIocp) { return true; } if (m_handle) { PostQueuedCompletionStatus(m_hIocp, 0, (DWORD)EXIT_CODE, NULL); WaitThreadClose(m_handle); } return true; } int CWorker::Init() { m_hIocp = CreateIoCompletionPort(INVALID_HANDLE_VALUE, NULL, 0, 0); if (NULL == m_hIocp) { TRACE(_T("建立完成端口失败!错误代码: %d!"), WSAGetLastError()); return -1; } DWORD nThreadID = 0; m_handle = CreateThread(0, 0, (LPTHREAD_START_ROUTINE)WorkerThread, (void *)this, 0, &nThreadID); if (!m_handle) { return -1; } m_Overlapped.lpData = new char[BUF_LEN]; return 0; } // 工作线程 DWORD CWorker::WorkerThread(CWorker* lpVoid) { OVERLAPPEDEX* lpOverlapped = NULL; COMPLETIONKEYEX* lpCompletionKey = NULL; DWORD dwBytesTransfered = 0; BOOL bReturn = FALSE; while (true) { bReturn = GetQueuedCompletionStatus(lpVoid->m_hIocp, &dwBytesTransfered, (PULONG_PTR)&lpCompletionKey, (LPOVERLAPPED *)&lpOverlapped, INFINITE); // 如果收到的是退出标志,则直接退出 if (EXIT_CODE == (DWORD)lpCompletionKey) { break; } else { if (!lpOverlapped) { lpVoid->PostRecv(lpCompletionKey, &lpVoid->m_Overlapped); continue; } if (!bReturn || dwBytesTransfered == 0) { switch (lpOverlapped->m_OpType) { case SEND_POSTED: { } break; case RECV_POSTED: { } default: break; } } else // 接收或发送数据完成 { switch (lpOverlapped->m_OpType) { case SEND_POSTED: { } break; case RECV_POSTED: { lpVoid->PostRecv(lpCompletionKey, &lpVoid->m_Overlapped); } default: break; } } } } return 0; } // 获得IOCP句柄 HANDLE CWorker::GetIocp() { if (MAX_CONNECT>m_nConnect) { m_nConnect++; return m_hIocp; } } <file_sep>#ifndef _COMMON_STRUCT_IO_ #define _COMMON_STRUCT_IO_ typedef enum net_operation_s { NULL_POSTED, // 用于初始化,无意义 ACCEPT_POSTED, // 标志投递的Accept操作 SEND_POSTED, // 标志投递的是发送操作 RECV_POSTED, // 标志投递的是接收操作 WRITE_POSTED, // 标志投递的是写入操作 READ_POSTED, // 标志投递的是读取操作 }net_operation_t; typedef struct net_completionkeyex_s { SOCKET s; int active; // 0,1 }net_completionkeyex_t; typedef struct _overlappedex_ { OVERLAPPED m_Overlapped; // 重叠结构 OPERATION_TYPE m_OpType; // 操作标识 DWORD m_dwFlags; DWORD m_dwBytes; WSABUF m_wsaBuf[1]; } #endif<file_sep>/*/ 文件: CommonCmd.h 说明: 实现了服务端和客户端一些公用的数据结构,所以服务端和客户端都要包含。 其中有命令、SOCKET的当前状态等的定义。 /*/ #ifndef __COMMONCMD_H__ #define __COMMONCMD_H__ #define PORT 5050 // 命令定义 #define CMD_AUTHEN 1 // 登录认证 #define CMD_GETFILE 2 // 获取文件 #define CMD_REGISTER 3 // 注册用户 typedef struct tagCommand { int CommandID; // 命令ID DWORD DataSize; // 后接数据的大小 }SCommand; // 标志目前的SOCKET该做什么 enum ECurOp {RecvCmd, RecvData, ExecCmd}; #endif //__COMMONCMD_H__<file_sep>#ifndef _COMMON_STRUCT_IO_ #define _COMMON_STRUCT_IO_ typedef struct worker_data_s worker_data_t; typedef struct connect_key_s connect_key_t; typedef struct overlapped_s overlapped_t; typedef void(*BackFun)(void* lpKey, void* lpdata, int optype, int len, void* lpobj); typedef enum net_optype_s { NULL_POSTED, // 用于初始化,无意义 ACCEPT_POSTED, // 标志投递的Accept操作 CONNECT_POSTED, SEND_POSTED, // 标志投递的是发送操作 RECV_POSTED, // 标志投递的是接收操作 WRITE_POSTED, // 标志投递的是写入操作 READ_POSTED, // 标志投递的是读取操作 }net_optype_t; struct worker_data_s { HANDLE hIocp; int connect; }; struct connect_key_s { OVERLAPPED overlapped; // 重叠结构 net_optype_t optype; char ip[20]; unsigned port; SOCKET s; HANDLE hIocp; // 处理连接的IOCP队列(线程) BackFun func; void* obj; connect_key_t* next; }; struct overlapped_s { OVERLAPPED overlapped; // 重叠结构 net_optype_t optype; WSABUF wsabuf; }; #endif<file_sep> // ClientTestDlg.cpp : 实现文件 // #include "stdafx.h" #include "ClientTest.h" #include "ClientTestDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #endif // CClientTestDlg 对话框 CClientTestDlg::CClientTestDlg(CWnd* pParent /*=NULL*/) : CDialog(CClientTestDlg::IDD, pParent) { m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); } void CClientTestDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); } BEGIN_MESSAGE_MAP(CClientTestDlg, CDialog) ON_WM_PAINT() ON_WM_QUERYDRAGICON() //}}AFX_MSG_MAP ON_BN_CLICKED(IDC_BT_CONN, &CClientTestDlg::OnBnClickedBtConn) ON_BN_CLICKED(IDC_BT_SEND, &CClientTestDlg::OnBnClickedBtSend) ON_BN_CLICKED(IDC_BT_RECV, &CClientTestDlg::OnBnClickedBtRecv) ON_BN_CLICKED(IDC_BT_STOP, &CClientTestDlg::OnBnClickedBtStop) ON_WM_CLOSE() END_MESSAGE_MAP() // CClientTestDlg 消息处理程序 BOOL CClientTestDlg::OnInitDialog() { CDialog::OnInitDialog(); // 设置此对话框的图标。当应用程序主窗口不是对话框时,框架将自动 // 执行此操作 SetIcon(m_hIcon, TRUE); // 设置大图标 SetIcon(m_hIcon, FALSE); // 设置小图标 // 初始化代码 SetDlgItemInt(IDC_EDIT_NUM,10000); SetDlgItemInt(IDC_EDIT_NET,100); m_pClient=NULL; CTcpClient::InitWinSocket(); return TRUE; // 除非将焦点设置到控件,否则返回 TRUE } // 如果向对话框添加最小化按钮,则需要下面的代码 // 来绘制该图标。对于使用文档/视图模型的 MFC 应用程序, // 这将由框架自动完成。 void CClientTestDlg::OnPaint() { if (IsIconic()) { CPaintDC dc(this); // 用于绘制的设备上下文 SendMessage(WM_ICONERASEBKGND, reinterpret_cast<WPARAM>(dc.GetSafeHdc()), 0); // 使图标在工作区矩形中居中 int cxIcon = GetSystemMetrics(SM_CXICON); int cyIcon = GetSystemMetrics(SM_CYICON); CRect rect; GetClientRect(&rect); int x = (rect.Width() - cxIcon + 1) / 2; int y = (rect.Height() - cyIcon + 1) / 2; // 绘制图标 dc.DrawIcon(x, y, m_hIcon); } else { CDialog::OnPaint(); } } //当用户拖动最小化窗口时系统调用此函数取得光标 //显示。 HCURSOR CClientTestDlg::OnQueryDragIcon() { return static_cast<HCURSOR>(m_hIcon); } // 连接 void CClientTestDlg::OnBnClickedBtConn() { if (m_pClient) { return; } GetDlgItem(IDC_BT_CONN)->EnableWindow(FALSE); GetDlgItem(IDC_BT_SEND)->EnableWindow(TRUE); GetDlgItem(IDC_BT_RECV)->EnableWindow(TRUE); GetDlgItem(IDC_BT_STOP)->EnableWindow(TRUE); GetDlgItem(IDC_EDIT_NET)->EnableWindow(FALSE); int nNet=GetDlgItemInt(IDC_EDIT_NET); m_pClient=new CTcpClient[nNet]; TRACE("-----连接开始时间:%d-----\n",clock()); for(int i=0;i<nNet;i++) { bool bRes=m_pClient[i].ConnectServer("127.0.0.1",6688); // Sleep(1); } TRACE("-----连接结束时间:%d-----\n",clock()); } // 发送 void CClientTestDlg::OnBnClickedBtSend() { char Pkg[81924]; strcpy(Pkg+4,"123456"); *((int*)Pkg)=81920; TRACE("-----发送开始时间:%d-----\n",clock()); int Num=GetDlgItemInt(IDC_EDIT_NUM); int nNet=GetDlgItemInt(IDC_EDIT_NET); for (int i=0;i<Num;) { for (int j=0;j<nNet;j++) { if(0==m_pClient[j].Sendn(Pkg,81924)) { continue; } i++; TRACE("-----发送第%d笔 时间:%d-----\n",i,clock()); Sleep(10); } } TRACE("-----发送结束时间:%d-----\n",clock()); } // 接收 void CClientTestDlg::OnBnClickedBtRecv() { char Pkg[81924]; int nLen=0; int nRes=m_pClient[0].Recvn((char*)&nLen,4); if (nRes==-1) { return; } nRes=m_pClient[0].Recvn(Pkg,nLen); } void CClientTestDlg::OnBnClickedBtStop() { GetDlgItem(IDC_EDIT_NET)->EnableWindow(TRUE); if (!m_pClient) { return; } int nNet=GetDlgItemInt(IDC_EDIT_NET); for (int i=0;i< nNet;i++) { m_pClient[i].StopClient(); } delete[] m_pClient; m_pClient=NULL; GetDlgItem(IDC_BT_CONN)->EnableWindow(TRUE); GetDlgItem(IDC_BT_SEND)->EnableWindow(FALSE); GetDlgItem(IDC_BT_RECV)->EnableWindow(FALSE); GetDlgItem(IDC_BT_STOP)->EnableWindow(FALSE); } void CClientTestDlg::OnClose() { if (m_pClient) { int nNet=GetDlgItemInt(IDC_EDIT_NET); for (int i=0;i<nNet;i++) { m_pClient[i].StopClient(); } delete[] m_pClient; m_pClient=NULL; } CTcpClient::CloseWinSocket(); CDialog::OnClose(); } <file_sep>///////////////////////////////////////////////////////////////////////////// // Name: TcpServiceExp.h // Purpose: // Author: // Modified by: // Created: // RCS-ID: // Copyright: // Licence: ///////////////////////////////////////////////////////////////////////////// #pragma once #ifdef NETSERVICE_OP_API #else #ifdef _DEBUG #pragma comment(lib,"TcpServiced.lib") #else #pragma comment(lib,"TcpService.lib") #endif #define NETSERVICE_OP_API extern "C" _declspec(dllimport) #endif NETSERVICE_OP_API int net_CreateServer(unsigned short nPort, char* szIP); NETSERVICE_OP_API int net_StopServer();<file_sep># TcpIpServic a tcp/Ip service VC++ <file_sep>#pragma once #include <winsock2.h> #pragma comment(lib, "WS2_32") #define OutErr(a) class CTcpClient { public: CTcpClient(void) :m_nSocket(INVALID_SOCKET) { } ~CTcpClient(void) { if (INVALID_SOCKET!=m_nSocket) { closesocket(m_nSocket); WSACleanup(); } } private: SOCKET m_nSocket; fd_set m_fdwrite; timeval m_tv; fd_set m_fdread; public: // 初始化WinSocket static bool InitWinSocket() { // 初始化WINSOCK WSADATA wsd; if(WSAStartup(MAKEWORD(2, 2), &wsd) != 0) { OutErr("WSAStartup()"); return false; } return true; } // 关闭WinSocket static void CloseWinSocket() { WSACleanup(); } public: // 发送 返回值-1网络错误(断开),其他发送的数量 long Sendn(char* Pkg,const int nSize) { while(true) { //检查网络是否可写 FD_ZERO(&m_fdwrite); FD_SET(m_nSocket,&m_fdwrite); switch (select(0,NULL,&m_fdwrite,NULL,&m_tv)) { case -1:// error handled by u; { return -1; } case 0: // timeout hanled by u; { // Sleep(1); continue; } default: if (!FD_ISSET(m_nSocket,&m_fdwrite)) { // Sleep(1); continue; } break; } break; } // 发送数据 int nPos=0; int nLen=0; while(nPos<nSize) { nLen = send(m_nSocket,Pkg+nPos , nSize-nPos, 0); if(SOCKET_ERROR==nLen||0==nLen) { if(WSAEWOULDBLOCK == WSAGetLastError()) { // Sleep(1); continue; } else { return -1;//网路断开 } } nPos +=nLen; } return nPos;//返回发送长度 } // 接收,返回值-1,网络错误(断开),其他接收的数据量 long Recvn(char* Pkg,const int nSize) { while(true) { //检查网络可否读写 FD_ZERO(&m_fdread); FD_SET(m_nSocket,&m_fdread); switch (select(0,&m_fdread,NULL,NULL,&m_tv)) { case -1: //网路断开 { return -1; //error handled by u; } case 0: //timeout hanled by u; { // Sleep(1); continue; } default: if (!FD_ISSET(m_nSocket,&m_fdread)) { // Sleep(1); continue; } break; } break; } int nPos=0,nLen=0; while(nPos<nSize) { // 接收数据 nLen=recv(m_nSocket,(char*)Pkg+nPos,nSize-nPos,0); if(SOCKET_ERROR==nLen||0==nLen) { if(WSAEWOULDBLOCK == WSAGetLastError()) { // Sleep(1); continue; } else { return -1;//网路断开 } } nPos+=nLen; } return nPos;//返回实际接收的数据的长度 } // 连接服务器 bool ConnectServer(char* szSerIP, unsigned short nSerPort) { m_nSocket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); if (INVALID_SOCKET==m_nSocket) { return false; } struct hostent *pHost = NULL; struct sockaddr_in servAddr; servAddr.sin_family = AF_INET; servAddr.sin_port = htons(nSerPort); servAddr.sin_addr.s_addr = inet_addr(szSerIP); // 如果给的是主机的名字而不是IP地址 if(servAddr.sin_addr.s_addr == INADDR_NONE) { pHost = gethostbyname(szSerIP); if(pHost == NULL) { closesocket(m_nSocket); WSACleanup(); m_nSocket=INVALID_SOCKET; OutErr("gethostbyname Failed!"); return false; } memcpy(&servAddr.sin_addr, pHost->h_addr_list[0], pHost->h_length); } int nRet = 0; nRet=connect(m_nSocket, (struct sockaddr*)&servAddr, sizeof(servAddr)); if(SOCKET_ERROR==nRet) { closesocket(m_nSocket); WSACleanup(); m_nSocket=INVALID_SOCKET; OutErr("connect failed!"); return false; } // 设置为非阻塞模式 ULONG NonBlock = 1; ioctlsocket(m_nSocket, FIONBIO, &NonBlock); m_tv.tv_usec=0; m_tv.tv_sec=5;//10秒; return true; } bool StopClient() { if (INVALID_SOCKET!=m_nSocket) { closesocket(m_nSocket); m_nSocket=INVALID_SOCKET; } return true; } }; <file_sep>/*/ 文件:SocketClient.cpp 说明: 此文件是作为测试的客户端,实现了登录和取文件的功能。 和服务端的交互就是采用了发送命令、数据长度,然后发送具体的数据这样的顺序。 详细可看服务端的说明。 基本逻辑是这样的,客户端要先登录服务端,然后登录成功之后,才能进行相应的操作。 错误处理做得不太好,以后再补充了。 其他的如注释,结构,命名等的编码规范都用了个人比较喜欢的方式。 输出: ../Bin/SocketClient.exe 用法: 可以 SocketClient Server_IP 或者直接启动SocketClient,会提示你输入服务端的IP Todo: 下一步首先完成各个SOCKET的模型,然后公开自己的研究代码。 功能方面就是: 1、服务器可以指定共享文件夹 2、客户端可以列出服务器共享了哪些文件 3、客户端可以列出哪些用户在线,并可以发命令和其他用户聊天 /*/ #include "StdAfx.h" #include <winsock2.h> #pragma comment(lib, "WS2_32") #include <iostream> using namespace std; #include <stdlib.h> #include "../Include/CommonSocket.h" #include "../Include/CommonCmd.h" bool g_bAuth = false; void GetFile(SOCKET sock); bool Auth(SOCKET sock, char *szName, char *szPwd); bool RegisterUser(SOCKET sock, char *szName, char *szPwd); /////////////////////////////////////////////////////////////////////// // // 函数名 : Usage // 功能描述 : 提示程序用法 // 返回值 : void // /////////////////////////////////////////////////////////////////////// void Usage() { printf("*******************************************/n"); printf("Socket Client /n"); printf("Written by DYL /n"); printf("Email: <EMAIL> /n"); printf("Usage: SocketClient.exe Server_IP /n"); printf("*******************************************/n"); } /////////////////////////////////////////////////////////////////////// // // 函数名 : Menu // 功能描述 : 选择服务的界面 // 返回值 : void // /////////////////////////////////////////////////////////////////////// void Menu() { system("cls"); printf("********************************************/n"); printf("请选择操作: /n/n"); printf("1、取得文件 /n"); printf("2、退出 /n"); printf("********************************************/n"); } /////////////////////////////////////////////////////////////////////// // // 函数名 : LoginMenu // 功能描述 : 用户登录的界面 // 返回值 : void // /////////////////////////////////////////////////////////////////////// void LoginMenu() { cout << "请按任意键继续操作." <<endl; getchar(); system("cls"); printf("********************************************/n"); printf("请选择操作: /n/n"); printf("1、登录 /n"); printf("2、注册 /n"); printf("3、退出 /n"); printf("********************************************/n"); } /////////////////////////////////////////////////////////////////////// // // 函数名 : Login // 功能描述 : 用户登录的界面逻辑 // 参数 : SOCKET sock // 返回值 : bool // /////////////////////////////////////////////////////////////////////// bool Login(SOCKET sock) { bool bGoOn = true; while(bGoOn) { LoginMenu(); int nChoose = 0; cin >> nChoose; char szName[10]; char szPwd[20]; char szConfirmPwd[20]; memset(szName, 0, 10); memset(szPwd, 0, 20); memset(szConfirmPwd, 0, 20); bool bGoOnLogin = true; switch(nChoose) { case 1: while(bGoOnLogin) { cout << "请输入你的用户名:"; cin >> szName; cout << "请输入你的密码:"; cin >> szPwd; if(Auth(sock, szName, szPwd)) { return true; } else { char c; cout << "继续登录?y/n" << endl; cin >> c; switch(c) { case 'y': bGoOnLogin = true; break; case 'n': bGoOnLogin = false; break; default: break; } } } break; case 2: cout << "请输入你的用户名:"; cin >> szName; cout << "请输入你的密码:"; cin >> szPwd; cout << "请再次输入你的密码:"; cin >> szConfirmPwd; if(strcmp(szPwd, szConfirmPwd) != 0) { cout << "前后密码不一致" << endl; } else { if(!RegisterUser(sock, szName, szPwd)) { cout << "注册用户失败!" << endl; } } break; case 3: bGoOn = false; return false; default: break; } } return false; } void main(int argc, char *argv[]) { system("cls"); char szServerIP[20]; memset(szServerIP, 0, 20); if(argc != 2) { cout << "请输入服务器IP:"; cin >> szServerIP; } else { strcpy(szServerIP, argv[1]); } InitWinsock(); SOCKET sockServer; sockServer = ConnectServer(szServerIP, PORT, 1); if(sockServer == NULL) { OutErr("连接服务器失败!"); return; } else { OutMsg("已和服务器建立连接!"); } // 要求用户登录 if(!Login(sockServer)) return; // 登录成功,让用户选择服务 int nChoose = 0; bool bExit = false; while(!bExit) { Menu(); cin >> nChoose; switch(nChoose) { case 1: // 获取文件 GetFile(sockServer); break; case 2: bExit = true; break; default: break; } } shutdown(sockServer, SD_BOTH); closesocket(sockServer); } /////////////////////////////////////////////////////////////////////// // // 函数名 : Auth // 功能描述 : 用户登录认证 // 参数 : SOCKET sock // 参数 : char *szName // 参数 : char *szPwd // 返回值 : bool // /////////////////////////////////////////////////////////////////////// bool Auth(SOCKET sock, char *szName, char *szPwd) { char szCmd[50]; memset(szCmd, 0, 50); strcpy(szCmd, szName); strcat(szCmd, " "); strcat(szCmd, szPwd); SCommand cmd; cmd.CommandID = CMD_AUTHEN; cmd.DataSize = strlen(szCmd); int nRet; nRet = SendFix(sock, (char *)&cmd, sizeof(cmd)); if(nRet == SOCKET_ERROR) { OutErr("SendFix() failed!"); return false; } else { SendFix(sock, szCmd, strlen(szCmd)); char szBuf[10]; memset(szBuf, 0, 10); recv(sock, szBuf, 10, 0); if(strcmp(szBuf, "UP OK!") == 0) { cout << "登录成功。" << endl; g_bAuth = true; } else if(strcmp(szBuf, "U Err!") == 0) { cout << "此用户不存在。" << endl; g_bAuth = false; } else if(strcmp(szBuf, "P Err!") == 0) { cout << "密码错误。" << endl; g_bAuth = false; } } return g_bAuth; } /////////////////////////////////////////////////////////////////////// // // 函数名 : GetFile // 功能描述 : 取得服务器的文件 // 参数 : SOCKET sock // 返回值 : void // /////////////////////////////////////////////////////////////////////// void GetFile(SOCKET sock) { if(!g_bAuth) { OutMsg("用户还没登录!请先登录"); return; } char szSrcFile[MAX_PATH]; char szDstFile[MAX_PATH]; memset(szSrcFile, 0, MAX_PATH); memset(szDstFile, 0, MAX_PATH); cout << "你要取得Server上的文件:"; cin >> szSrcFile; cout << "你要把文件存在哪里:"; cin >> szDstFile; SCommand cmd; cmd.CommandID = CMD_GETFILE; cmd.DataSize = strlen(szSrcFile); // 发送命令 SendFix(sock, (char *)&cmd, sizeof(cmd)); // 发送文件名 SendFix(sock, szSrcFile, strlen(szSrcFile)); // 接收文件长度 DWORD dwFileSize = 0; RecvFix(sock, (char*)&dwFileSize, sizeof(dwFileSize)); if(dwFileSize == 0) { OutMsg("文件不存在"); return; } // 接收文件内容 DWORD dwLeft = dwFileSize; char szBuf[1024]; HANDLE hFile = CreateFile(szDstFile, GENERIC_WRITE, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); if(hFile == INVALID_HANDLE_VALUE) { hFile = CreateFile(szDstFile, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_NEW, FILE_ATTRIBUTE_NORMAL, NULL); if(hFile == INVALID_HANDLE_VALUE) { OutErr("CreateFile failed!"); return; } } while(dwLeft > 0) { memset(szBuf, 0, 1024); // 这里是不确定接收长度的,所以要用recv,不能用RecvFix int nRead = recv(sock, szBuf, 1024, 0); if(nRead == SOCKET_ERROR) OutErr("RecvFix Error!"); DWORD dwWritten = 0; if(!WriteFile(hFile, szBuf, nRead, &dwWritten, NULL)) { OutErr("WriteFile error!"); return; } dwLeft -= dwWritten; } CloseHandle(hFile); OutMsg("接收文件成功!"); } /////////////////////////////////////////////////////////////////////// // // 函数名 : RegisterUser // 功能描述 : 注册新用户 // 参数 : SOCKET sock // 参数 : char *szName // 参数 : char *szPwd // 返回值 : bool // /////////////////////////////////////////////////////////////////////// bool RegisterUser(SOCKET sock, char *szName, char *szPwd) { char szCmd[50]; memset(szCmd, 0, 50); strcpy(szCmd, szName); strcat(szCmd, " "); strcat(szCmd, szPwd); SCommand cmd; cmd.CommandID = CMD_REGISTER; cmd.DataSize = strlen(szCmd); // 发送命令 int nRet = SendFix(sock, (char *)&cmd, sizeof(cmd)); if(nRet == SOCKET_ERROR) { OutErr("SendFix() failed!"); return false; } else { // 发送用户名和密码串 SendFix(sock, szCmd, strlen(szCmd)); char szBuf[10]; memset(szBuf, 0, 10); recv(sock, szBuf, 10, 0); if(strcmp(szBuf, "REG OK!") == 0) { cout << "注册成功。" << endl; return true; } else if(strcmp(szBuf, "REG ERR!") == 0) { cout << "注册失败." << endl; return false; } } return false; }<file_sep>#include "stdafx.h" #include "Worker.h" CWorker::CWorker(HANDLE hIocp) :m_hIocp(NULL) , m_phIocp(hIocp) , pool(NULL) { } CWorker::~CWorker() { } int CWorker::Stop() { if (m_hIocp) { PostQueuedCompletionStatus(m_hIocp, 0, (DWORD)EXIT_CODE, NULL); if (m_handle) { WaitThreadClose(m_handle); } CloseHandle(m_hIocp); } return 0; } int CWorker::PostRecv(connect_key_t* lpCompletionKey, int size) { DWORD dwbytes = 0; DWORD dwflags = 0; overlapped_t* lpOverlapped = (overlapped_t*)plx_palloc(pool, size + sizeof(overlapped_t)); lpOverlapped->optype = RECV_POSTED; // 初始化 lpOverlapped->wsabuf.buf = (char*)((char*)lpOverlapped + sizeof(overlapped_t)); lpOverlapped->wsabuf.len = size; // 投递WSARecv请求 ZeroMemory(&lpOverlapped->overlapped, sizeof(OVERLAPPED)); int nRes = WSARecv(lpCompletionKey->s, &lpOverlapped->wsabuf, 1, &dwbytes, &dwflags, &lpOverlapped->overlapped, NULL); if (SOCKET_ERROR == nRes) { nRes = WSAGetLastError(); if (WSA_IO_PENDING != nRes) { TRACE("---服务端接收错误SOCKET:%d,释放资源,错误代码:%d---\n", lpCompletionKey->s, nRes); return -1; } } return 0; } int CWorker::PostSend(connect_key_t* lpCompletionKey, overlapped_t* lpOverlapped) { lpOverlapped->optype = SEND_POSTED; DWORD dwbytes = 0; DWORD dwflags = 0; ZeroMemory(&lpOverlapped->overlapped, sizeof(OVERLAPPED)); int nRes = WSASend(lpCompletionKey->s, &lpOverlapped->wsabuf, 1, &dwbytes, dwflags, &lpOverlapped->overlapped, NULL); if (SOCKET_ERROR == nRes) { nRes = WSAGetLastError(); if (WSA_IO_PENDING != nRes) { TRACE("---_COMPLETION_KEY_NET::PostSend 服务端发送失败SOCKET:%d,释放资源,错误代码:%d!---\n", m_Handle.m_Socket, nRes); return -1; } } return 0; } HANDLE CWorker::Init() { m_hIocp = CreateIoCompletionPort(INVALID_HANDLE_VALUE, NULL, (ULONG_PTR)0, 0); DWORD nThreadID = 0; m_handle = ::CreateThread(0, 0, (LPTHREAD_START_ROUTINE)WorkerThread, (void *)this, 0, &nThreadID); if (!m_handle) { return NULL; } pool = plx_create_pool(POOL_SIZE); return m_hIocp; } // 工作线程 DWORD CWorker::WorkerThread(CWorker* lpVoid) { void* lpOverlapped = NULL; void* lpCompletionKey = NULL; DWORD dwBytesTransfered = 0; BOOL bReturn = FALSE; while (true) { bReturn = GetQueuedCompletionStatus(lpVoid->m_hIocp, &dwBytesTransfered, (PULONG_PTR)&lpCompletionKey, (LPOVERLAPPED *)&lpOverlapped, INFINITE); // 如果收到的是退出标志,则直接退出 if (EXIT_CODE == (DWORD)lpCompletionKey) { break; } else { } } return 0; } <file_sep> // ServerTestDlg.h : 头文件 // #pragma once #include "TcpServer.h" #include <fstream> #include <locale> // CServerTestDlg 对话框 class CServerTestDlg : public CDialog { // 构造 public: CServerTestDlg(CWnd* pParent = NULL); // 标准构造函数 // 对话框数据 enum { IDD = IDD_SERVERTEST_DIALOG }; protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持 // 实现 protected: HICON m_hIcon; // 生成的消息映射函数 virtual BOOL OnInitDialog(); afx_msg void OnPaint(); afx_msg HCURSOR OnQueryDragIcon(); DECLARE_MESSAGE_MAP() private: static void WriteLog(CString LogText) { //写文件操作 static CString FilePath=_T(""); if (FilePath==_T("")) { char szFilePath[_MAX_PATH]; ::GetModuleFileName(NULL, szFilePath, _MAX_PATH); FilePath=szFilePath; FilePath=FilePath.Left(FilePath.ReverseFind('\\')); FilePath+=_T("\\Log"); } if (GetFileAttributes(FilePath) != FILE_ATTRIBUTE_DIRECTORY)//目录不存在创建 { CreateDirectory(FilePath, NULL); } std::ofstream logFile; CString Log; CTime currentTime = CTime::GetCurrentTime();//COleDateTime Log.Format("%s\\%s.log",FilePath,currentTime.Format(_T("%Y%m%d%H")));//按每小时生成Log std::locale::global(std::locale(""));//将全局区域设为操作系统默认区域--用于中文文件夹 logFile.open(Log, std::ios::app); std::locale::global(std::locale("C"));//还原全局区域设定 Log.Format(_T("%s [Log]:%s"),currentTime.Format(_T("%Y-%m-%d %H:%M:%S")),LogText); logFile << Log; logFile <<"\n"; logFile.close(); } public: afx_msg void OnBnClickedBtStart(); // 监视函数 static DWORD MonitorTh(CServerTestDlg* lpVoid); CTcpServer m_Ser; HANDLE m_handle; afx_msg void OnBnClickedBtStop(); afx_msg void OnClose(); // 接收线程 static DWORD RecvTh(void* lpVoid); afx_msg void OnBnClickedBtReset(); }; <file_sep>#pragma once #include <Winsock2.h> #define OutErr(a) class CTcpBase { public: CTcpBase(void) { m_tv.tv_usec=0; m_tv.tv_sec=5;//延迟5秒; } ~CTcpBase(void) { } private: fd_set m_fdwrite; timeval m_tv; fd_set m_fdread; public: // 发送 long Sendn(SOCKET mSocket,char* Pkg,int nSize) { //检查网络是否可写 FD_ZERO(&fdwrite); FD_SET(mSocket,&fdwrite); switch (select(0,NULL,&m_fdwrite,NULL,&m_tv)) { case -1:// error handled by u; OutErr("Sendn select fail!"); return -1; case 0: // timeout hanled by u; OutErr("Sendn select timeout!"); return 0; default: if (!FD_ISSET(mSocket,&m_fdwrite)) { return 0; } } int Pos=0; int nLen=0; while(Pos<nSize) { nLen = send(mSocket,Pkg+Pos , nSize-Pos, 0); if(nLen <= 0) { if(errno == EINTR || errno == WSAEWOULDBLOCK || errno == EAGAIN) { Sleep(1); continue; } else { return -1;//网路断开 } } Pos +=nLen; } return Pos;//返回发送长度 } // 接收 long Recvn(SOCKET mSocket,char* Pkg,int nMaxSize) { //接收信息长度头(INT)型 int msgRealLen=0; int Pos=0; int nSize=0; //检查网络可否读写 FD_ZERO(&m_fdread); FD_SET(mSocket,&m_fdread); switch (select(0,&m_fdread,NULL,NULL,&m_tv)) { case -1: return -1; //error handled by u; case 0: return 0; //timeout hanled by u; default: if (!FD_ISSET(mSocket,&fdread)) { return -1; } } while(Pos < sizeof(int)) { nSize=recv(mSocket,Pkg + Pos,sizeof(int)-Pos,0); if (nSize<0)//接收数据出现错误 { Sleep(10); continue; } if (nSize==0) { return -1; } Pos +=nSize; } //接收的信息包长度 msgRealLen=*(int*)Pkg; msgRealLen=ntohl(msgRealLen);//网络字节转换 if (msgRealLen<=0||msgRealLen>nMaxSize-4) { //(_T("接收信息长度错误.")); return -1; } Pos=0; while(Pos < msgRealLen) { nSize=recv(mSocket,(char*)Pkg+ Pos,msgRealLen-Pos,0); if (nSize<=0)//接收数据出现错误 { if (nSize<0)//接收数据出现错误 { Sleep(10); continue; } if (nSize==0) { return -1; } } Pos+=nSize; } return msgRealLen;//返回实际接收的数据的长度 } }; <file_sep> // NetSvr.h : PROJECT_NAME 应用程序的主头文件 // #pragma once #ifndef __AFXWIN_H__ #error "在包含此文件之前包含“stdafx.h”以生成 PCH 文件" #endif #include "resource.h" // 主符号 // CNetSvrApp: // 有关此类的实现,请参阅 NetSvr.cpp // class CNetSvrApp : public CWinApp { public: CNetSvrApp(); // 重写 public: virtual BOOL InitInstance(); // 实现 DECLARE_MESSAGE_MAP() }; extern CNetSvrApp theApp;<file_sep>//{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. // Used by ClientTest.rc // #define IDD_CLIENTTEST_DIALOG 102 #define IDR_MAINFRAME 128 #define IDC_BT_CONN 1000 #define IDC_BT_SEND 1001 #define IDC_BT_RECV 1002 #define IDC_BT_STOP 1003 #define IDC_EDIT_NUM 1004 #define IDC_EDIT_NUM2 1005 #define IDC_EDIT_NET 1005 // Next default values for new objects // #ifdef APSTUDIO_INVOKED #ifndef APSTUDIO_READONLY_SYMBOLS #define _APS_NEXT_RESOURCE_VALUE 129 #define _APS_NEXT_COMMAND_VALUE 32771 #define _APS_NEXT_CONTROL_VALUE 1005 #define _APS_NEXT_SYMED_VALUE 101 #endif #endif <file_sep>#pragma once #include "Poolx.h" #include "Common.h" #include <winsock2.h> #include <MSWSock.h> #pragma comment(lib,"Mswsock.lib") #define EXIT_CODE NULL #define MAX_ACTIVE_CONNECT 1024 #define POOL_SIZE 4095 class CWorker { public: CWorker(HANDLE hIocp); ~CWorker(); //等待停止线程 static void WaitThreadClose(HANDLE handle) { MSG msg; DWORD result; while (handle != NULL) { result = MsgWaitForMultipleObjects(1, &handle, false, INFINITE, QS_ALLINPUT);//INFINITE switch (result) { case WAIT_OBJECT_0: //线程的结束 CloseHandle(handle); handle = NULL; break; //break the loop case WAIT_OBJECT_0 + 1: ////主线程里使用GetSafeHwnd(),辅佐线程用GetForegroundWindow()获得窗口句柄 PeekMessage(&msg, GetForegroundWindow(), 0, 0, PM_REMOVE); DispatchMessage(&msg); continue; default: return;/// unexpected failure } } } private: // worker thread fun static DWORD WorkerThread(CWorker* lpVoid); int PostRecv(connect_key_t* lpCompletionKey, int size); int PostSend(connect_key_t* lpCompletionKey, overlapped_t* lpOverlapped); private: HANDLE m_hIocp; // worker thread handle HANDLE m_handle; HANDLE m_phIocp; plx_pool_t* pool; public: HANDLE Init(); int Stop(); }; <file_sep> // ServerTestDlg.cpp : 实现文件 // #include "stdafx.h" #include "ServerTest.h" #include "ServerTestDlg.h" bool gRuning=true; #ifdef _DEBUG #define new DEBUG_NEW #endif // CServerTestDlg 对话框 CServerTestDlg::CServerTestDlg(CWnd* pParent /*=NULL*/) : CDialog(CServerTestDlg::IDD, pParent) { m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); } void CServerTestDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); } BEGIN_MESSAGE_MAP(CServerTestDlg, CDialog) ON_WM_PAINT() ON_WM_QUERYDRAGICON() //}}AFX_MSG_MAP ON_BN_CLICKED(IDC_BT_START, &CServerTestDlg::OnBnClickedBtStart) ON_BN_CLICKED(IDC_BT_STOP, &CServerTestDlg::OnBnClickedBtStop) ON_WM_CLOSE() ON_BN_CLICKED(IDC_BT_RESET, &CServerTestDlg::OnBnClickedBtReset) END_MESSAGE_MAP() // CServerTestDlg 消息处理程序 BOOL CServerTestDlg::OnInitDialog() { CDialog::OnInitDialog(); // 设置此对话框的图标。当应用程序主窗口不是对话框时,框架将自动 // 执行此操作 SetIcon(m_hIcon, TRUE); // 设置大图标 SetIcon(m_hIcon, FALSE); // 设置小图标 // 初始化代码 m_handle=NULL; CTcpServer::InitWinSocket(); return TRUE; // 除非将焦点设置到控件,否则返回 TRUE } // 如果向对话框添加最小化按钮,则需要下面的代码 // 来绘制该图标。对于使用文档/视图模型的 MFC 应用程序, // 这将由框架自动完成。 void CServerTestDlg::OnPaint() { if (IsIconic()) { CPaintDC dc(this); // 用于绘制的设备上下文 SendMessage(WM_ICONERASEBKGND, reinterpret_cast<WPARAM>(dc.GetSafeHdc()), 0); // 使图标在工作区矩形中居中 int cxIcon = GetSystemMetrics(SM_CXICON); int cyIcon = GetSystemMetrics(SM_CYICON); CRect rect; GetClientRect(&rect); int x = (rect.Width() - cxIcon + 1) / 2; int y = (rect.Height() - cyIcon + 1) / 2; // 绘制图标 dc.DrawIcon(x, y, m_hIcon); } else { CDialog::OnPaint(); } } //当用户拖动最小化窗口时系统调用此函数取得光标 //显示。 HCURSOR CServerTestDlg::OnQueryDragIcon() { return static_cast<HCURSOR>(m_hIcon); } void CServerTestDlg::OnBnClickedBtStart() { gRuning=true; if(m_Ser.CreateServer(6688)) { GetDlgItem(IDC_BT_START)->EnableWindow(FALSE); DWORD dw; m_handle=CreateThread(NULL,0,LPTHREAD_START_ROUTINE(MonitorTh),this,0,&dw); if (NULL==m_handle) { MessageBox("启动监视线程失败!"); } } else { MessageBox("开启服务失败!"); } } // 监视函数 DWORD CServerTestDlg::MonitorTh(CServerTestDlg* lpVoid) { SOCKET mSocket; char szIp[20]; unsigned short nPort; while (gRuning) { mSocket=lpVoid->m_Ser.ListenConnect(szIp,&nPort); if (mSocket>0) { /*CString str; str.Format("连接的客户端IP:%s,端口:%d",szIp,nPort); WriteLog(str);*/ // closesocket(mSocket); DWORD dw; HANDLE handle=CreateThread(NULL,0,LPTHREAD_START_ROUTINE(RecvTh),&mSocket,0,&dw); if (NULL!=handle) { CloseHandle(handle); } TRACE("-----客户端连接IP:%s,端口:%d,时间:%u-----\n",szIp,nPort,clock()); } } return 0; } void CServerTestDlg::OnBnClickedBtStop() { if (gRuning) { gRuning=false; m_Ser.StopServer(); WaitForMultipleObjects(1,&m_handle, TRUE, INFINITE); GetDlgItem(IDC_BT_START)->EnableWindow(TRUE); } } void CServerTestDlg::OnClose() { if (gRuning) { gRuning=false; m_Ser.StopServer(); WaitForMultipleObjects(1,&m_handle, TRUE, INFINITE); } CTcpServer::CloseWinSocket(); CDialog::OnClose(); } int nIndex=1; // 接收线程 DWORD CServerTestDlg::RecvTh(void* lpVoid) { SOCKET nSocket=*(SOCKET*)lpVoid; char Pkg[81960]; //80K int nRecv=0,nLen=0; while(gRuning) { nRecv=CTcpServer::Recvn(nSocket,(char*)&nLen,4); switch (nRecv) { case 0: continue; break; case -1: closesocket(nSocket); nSocket=INVALID_SOCKET; TRACE("-----断开连接,时间:%u.-----\n",clock()); return 0; break; default: //Sleep(1); //TRACE("-----收到数据长度:%d,时间:%d-----\n",nRecv,clock()); break; } nRecv=CTcpServer::Recvn(nSocket,Pkg,nLen); switch (nRecv) { case 0: continue; break; case -1: closesocket(nSocket); nSocket=INVALID_SOCKET; TRACE("-----断开连接,时间:%u.-----\n",clock()); return 0; break; default: //Sleep(1); TRACE("-----收到第%d笔:数据长度:%d,时间:%d-----\n",nIndex++,nRecv,clock()); /*CTcpServer::Sendn(nSocket,(char*)&nLen,4); CTcpServer::Sendn(nSocket,Pkg,nLen);*/ break; } } if (INVALID_SOCKET!=nSocket) { closesocket(nSocket); } return 0; } void CServerTestDlg::OnBnClickedBtReset() { nIndex=1; } <file_sep>#pragma once #include <winsock2.h> #define BUF_LEN 1024*2 typedef enum _OPERATION_TYPE { NULL_POSTED, // 用于初始化,无意义 ACCEPT_POSTED, // 标志投递的Accept操作 SEND_POSTED, // 标志投递的是发送操作 RECV_POSTED, // 标志投递的是接收操作 WRITE_POSTED, // 标志投递的是写入操作 READ_POSTED, // 标志投递的是读取操作 }OPERATION_TYPE; typedef struct _COMPLETIONKEYEX { SOCKET socket; bool bBusy; _COMPLETIONKEYEX* next; }COMPLETIONKEYEX; typedef struct _COMPLETIONKEYEX_POOL { SOCKET socket; bool bBusy; _COMPLETIONKEYEX* next; }COMPLETIONKEYEX_POOL; typedef struct _OVERLAPPEDEX { OVERLAPPED m_Overlapped; // 重叠结构 OPERATION_TYPE m_OpType; // 操作标识 SOCKET socket; char* lpData; DWORD m_dwFlags; DWORD m_dwBytes; WSABUF m_wsaBuf[1]; }OVERLAPPEDEX; class CWorker { public: CWorker(); ~CWorker(); private: //等待停止线程 void WaitThreadClose(HANDLE handle) { MSG msg; DWORD result; while (handle != NULL) { result = MsgWaitForMultipleObjects(1, &handle, false, INFINITE, QS_ALLINPUT);//INFINITE switch (result) { case WAIT_OBJECT_0: //线程的结束 CloseHandle(handle); handle = NULL; break; //break the loop case WAIT_OBJECT_0 + 1: ////主线程里使用GetSafeHwnd(),辅佐线程用GetForegroundWindow()获得窗口句柄 PeekMessage(&msg, GetForegroundWindow(), 0, 0, PM_REMOVE); DispatchMessage(&msg); continue; default: return;/// unexpected failure } } } bool PostRecv(COMPLETIONKEYEX* lpCompletionKey, OVERLAPPEDEX* lpOverlapped) { lpOverlapped->m_OpType = RECV_POSTED; lpOverlapped->m_dwBytes = 0; lpOverlapped->m_dwFlags = 0; // 初始化 lpOverlapped->m_Overlapped.hEvent = NULL; lpOverlapped->m_wsaBuf[0].buf = lpOverlapped->lpData; lpOverlapped->m_wsaBuf[0].len = 10; // 投递WSARecv请求 //ASSERT(INVALID_SOCKET!=m_Handle.m_Socket); ZeroMemory(&lpOverlapped->m_Overlapped, sizeof(lpOverlapped->m_Overlapped)); int nRes = WSARecv(lpCompletionKey->socket, &lpOverlapped->m_wsaBuf[0], 1, &lpOverlapped->m_dwBytes, &lpOverlapped->m_dwFlags, &lpOverlapped->m_Overlapped, NULL); if (SOCKET_ERROR == nRes) { nRes = WSAGetLastError(); if (WSA_IO_PENDING != nRes) { TRACE("---服务端接收错误SOCKET:%d,释放资源,错误代码:%d---\n", lpOverlapped->socket, nRes); return false; } return true; } return true; } private: // 工作线程 static DWORD /*WINAPI*/ WorkerThread(CWorker* lpVoid); // 完成端口,监听Recv Send HANDLE m_hIocp; // 监视线程 HANDLE m_handle; OVERLAPPEDEX m_Overlapped; public: // 停止 bool Stop(); int Init(); // 获得IOCP句柄 HANDLE GetIocp(); // 连接数 int m_nConnect; };
b618e4cf7e3739e0033a0b52e4aec80cecea5a8b
[ "Markdown", "C", "Text", "C++" ]
37
C++
xiaocaovc/TcpIpServic
bee9750d69b72fdb32d41315f35e2abd5a64c007
54a50a8a3f1ce5b5fc1c8d8d138ad0cb70870933
refs/heads/master
<repo_name>CrisCuevas84/Practica_Python<file_sep>/conditional_statements.py x = 5 if x < 10: print("más chico") if x > 20: print("más grande") print("Finish")
f8f0f64e39f85a3ba6c9b8f096f3fdd72ccab259
[ "Python" ]
1
Python
CrisCuevas84/Practica_Python
4bc1c3dcb604ef06da27f7a79e7c9ccce646a701
cf0dae18d8136e299eb42c2467541cf204b3a2f4
refs/heads/master
<file_sep>from SorgBot import SorgBot # noinspection SpellCheckingInspection main_bot = SorgBot('525519947:AAG2k1H8wZb_G01YEv-cIh0Tq0DCnQQYBKY') greetings = ('hello', 'hi') def mainrun() -> None: new_offset = None while True: main_bot.get_updates(new_offset) last_update = main_bot.get_last_update() last_update_id = last_update['update_id'] last_chat_id = last_update['message']['chat']['id'] last_chat_text = last_update['message']['text'] if last_chat_text.lower() in greetings: main_bot.send_message(last_chat_id, 'hey, bitch') new_offset = last_update_id + 1 if __name__ == "__main__": try: mainrun() except KeyboardInterrupt: exit() <file_sep>import requests from SorgBot import SorgBot resp_json = requests.get('https://api.telegram.org/bot525519947:AAG2k1H8wZb_G01YEv-cIh0Tq0DCnQQYBKY/getUpdates', {'offset':None, 'timeout':30}) resp_py = resp_json.json() results = resp_py['result'] print(results) def get_updates_test(): resp1 = requests.get('https://api.telegram.org/bot525519947:AAG2k1H8wZb_G01YEv-cIh0Tq0DCnQQYBKY/getUpdates', {'offset' :None, 'timeout': 30}) resp2 = resp1.json()['result'] return resp2 print(get_updates_test()) test_bot = SorgBot('525519947:AAG2k1H8wZb_G01YEv-cIh0Tq0DCnQQYBKY') print(test_bot.get_updates()) <file_sep>import _random class SorgBot: from SorgBot import SorgBot # noinspection SpellCheckingInspection main_bot = SorgBot('525519947:AAG2k1H8wZb_G01YEv-cIh0Tq0DCnQQYBKY') jokeKeyWord = '<PASSWORD>' jokeList.add('What do you get if you divide the circumference of a jack-o-lantern by its diameter? Pumpkin Pi') jokeList.add('What did Al Gore play on his guitar? An algorithm') jokeList.add('What do you call dudes who love math? Algebros!') jokeList.add('With the Ark settled safely after the flood, Noah opens the doors and commands the animals, “Go forth and multiply!” All the animals depart the Ark, except for two snakes in the back. Noah proclaims again, “Go forth and multiply,” yet the snakes stay put. Perturbed, Noah finally asks them, “Why have you not followed my command?” The snakes flicker their tongues and answer, “We can’t multiply, Noah—we’re Adders.') jokeList.add('Old mathematicians never die, they just lose some of their functions') jokeList.add('Why did the mathematician divide sin by tan? Just cos') jokeList.add('60 out of 50 people have trouble with fractions') jokeList.add('Why is the obtuse triangle depressed? It is never right') jokeList.add('Your grade') jokeList.add('Your love life') def mainrun() -> None: new_offset = None while True: main_bot.get_updates(new_offset) last_update = main_bot.get_last_update() last_update_id = last_update['update_id'] last_chat_id = last_update['message']['chat']['id'] last_chat_text = last_update['message']['text'] if last_chat_text.lower() in jokeKeyWord: main_bot.send_message(last_chat_id, random.choice(jokeList)) new_offset = last_update_id + 1 if __name__ == "__main__": try: mainrun() except KeyboardInterrupt: exit() <file_sep>Three .py files are in repository now; Sorgbot.py is the file with the functions in it, while SorgbotMain.py holds the main code that should be executed in order to actually get the bot to run. You can ignore the Test.py file; I was using it to solve a bug and now don't really have a use for it. <file_sep>import _random class SorgBot: from SorgBot import SorgBot # noinspection SpellCheckingInspection main_bot = SorgBot('525519947:AAG2k1H8wZb_G01YEv-cIh0Tq0DCnQQYBKY') jokeKeyWord = '<PASSWORD>' jokeList.add('Hi, I hear you\'re good at algebra.....Will you replace my eX without asking Y?') jokeList.add('I wish I was your derivative so I could lie tangent to your curves') jokeList.add('Are you a 90 degree angle? Cause you\'re looking right!') jokeList.add('Our love is like dividing by zero; its undefinable') jokeList.add('If I were a function, you\'d be my asymptote. I\'d always tend towards you') jokeList.add('Hunny, you\'re sweeter than pi') jokeList.add('You\'ve got more curves than a triple integral') jokeList.add('I\'ll be the student to you\'re math book. I\'ll solve all your problems') jokeList.add('You up?') def mainrun() -> None: new_offset = None while True: main_bot.get_updates(new_offset) last_update = main_bot.get_last_update() last_update_id = last_update['update_id'] last_chat_id = last_update['message']['chat']['id'] last_chat_text = last_update['message']['text'] if last_chat_text.lower() in jokeKeyWord: main_bot.send_message(last_chat_id, random.choice(jokeList)) new_offset = last_update_id + 1 if __name__ == "__main__": try: mainrun() except KeyboardInterrupt: exit()
78bec6ddd30686c03b7c4379abb4597134fc7783
[ "Markdown", "Python" ]
5
Python
twestra37/SorgBot
08d2a4024e7f11eafe3c0ca0cd38166762c0244d
f5e2d51ff2dad7b725e5d458891866b280eb4938
refs/heads/main
<repo_name>heehehe/pruning-decorrelation<file_sep>/README.md ## 상관계수 정규화와 동적 필터 가지치기를 이용한 심층 신경망 압축 Dynamic Filter Pruning with Decorrelation Regularization for Compression of Deep Neural Network > [2020 한국소프트웨어종합학술대회 (KSC2020)](http://kiise.or.kr/conference/main/index.do?CC=KSC&CS=2020) 학부생논문 경진대회 장려상 수상작 ([Link](http://www.kiise.or.kr/academy/board/academyNewsView.fa?MENU_ID=080100&sch_add_bd=%ED%95%99%ED%9A%8C%EC%86%8C%EC%8B%9D&NUM=2127)) ## Prerequisites * Ubuntu 18.04 * Python 3.7.4 * Pytorch 1.6.0 * numpy 1.18.1 * GPU (cuda) ## Build ``` $ python modeling.py --prune_type structured --prune_rate 0.6 --reg reg_cov --odecay 0.7 > result.txt ``` * `run.sh`에서 parameter 조절 후 `./run.sh`로 진행 ## Process ### 0. Data, Model & Parameters - Data : CIFAR-10 - Model : ResNet-50 - Optimizer : Stochastic Gradient Descent - Learning Rate : 0.2 - Epoch : 300 - Batch size : 128 - Loss Function : Cross Entropy - Metric : Accuracy, Sparsity ### 1. 동적 필터 가지치기 (Dynamic Filter Pruning) L1 norm 크기를 기반으로 필터 마스크를 생성하여 가중치 학습 시 반영 - 필터 마스크 : ![image](https://user-images.githubusercontent.com/41580746/102396051-41616d80-401f-11eb-9738-7b5df9aee0d4.png) - i : 층 위치 - j : 필터 위치 - t : epoch 값 - W : 필터 가중치 행렬 - η : 임계값 (전체 필터 개수 중 가지치기 필터 개수 비율 통해 계산) - 가중치 학습 : ![image](https://user-images.githubusercontent.com/41580746/102396101-51794d00-401f-11eb-9303-99dd712798ee.png) - g : 기울기 - γ : learning rate ### 2. 상관계수 정규화 (Decorrleation Regularization) 기존 loss function에 상관계수 정규화 식을 더하여 최종 손실 함수 계산 - loss function : ![image](https://user-images.githubusercontent.com/41580746/102396482-d82e2a00-401f-11eb-93b3-7db5fea8f8af.png) - α : 정규화 상수 - ![image](https://user-images.githubusercontent.com/41580746/102396603-01e75100-4020-11eb-933e-f85305dd874d.png) ## Result 가지치기 비율 60%, 정규화 상수 0.7일 때의 모델별 Accuracy 및 Sparsity 비교 결과 - ![image](https://user-images.githubusercontent.com/41580746/102395542-a072b280-401e-11eb-9e47-c3b52d859479.png) - ![image](https://user-images.githubusercontent.com/41580746/102396706-28a58780-4020-11eb-9ebb-6cc723b4fcbf.png) - 기존 동적 필터 가지치기 대비 Accuracy 1.47%, Sparsity 1.08% 증가 --- _References_ - [1] <NAME>, <NAME>, <NAME>. Deep learning. Nature 521, 436-444, 2015. - [2] <NAME>, <NAME>, <NAME>, <NAME>. Deep Residual Learning for Image Recognition. 2015. - [3] 조인천, 배성호. 동적 필터 프루닝 기법을 이용한 심층 신경망 압축. 한국방송미디어공학회 하계학술대회, 2020. - [4] <NAME>. Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inference. 2017. - [5] <NAME>, <NAME>, <NAME>, <NAME>, <NAME>. Dynamic Model Pruning with Feedback. ICLR, 2020. - [6] <NAME>, <NAME>, <NAME>, SNIP: Single-shot network pruningbased on connection sensitivity. ICLR, 2019. - [7] <NAME>, <NAME>, <NAME>, <NAME>, <NAME>. Pruning Filters For Effiecient ConvNets. ICLR, 2017. - [8] <NAME>, <NAME>, <NAME>. ThiNet: A Filter Level Pruning Method for Deep Neural Network Compression. ICCV, 2017. - [9] <NAME>, <NAME>, <NAME>. Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Coding. ICLR, 2016. - [10] <NAME>, <NAME>, <NAME>. Improving Deep Neural Network Sparsity through Decorrelation Regularization. IJCAI, 2018. <file_sep>/utils.py import numpy as np # linear algebra import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv) import masknn import resnet_mask import torch import torch.nn as nn import torchvision import torchvision.transforms as transforms import numpy as np import sys def get_weight_threshold(model, rate, prune_imp='L1'): importance_all = None for name, item in model.named_parameters(): #module.named_parameters(): if len(item.size())==4 and 'mask' not in name: weights = item.data.view(-1).cpu() grads = item.grad.data.view(-1).cpu() if prune_imp == 'L1': importance = weights.abs().numpy() elif prune_imp == 'L2': importance = weights.pow(2).numpy() elif prune_imp == 'grad': importance = grads.abs().numpy() elif prune_imp == 'syn': importance = (weights * grads).abs().numpy() if importance_all is None: importance_all = importance else: importance_all = np.append(importance_all, importance) threshold = np.sort(importance_all)[int(len(importance_all) * rate)] return threshold def weight_prune(model, threshold, prune_imp='L1'): state = model.state_dict() for name, item in model.named_parameters(): if 'weight' in name: key = name.replace('weight', 'mask') if key in state.keys(): if prune_imp == 'L1': mat = item.data.abs() elif prune_imp == 'L2': mat = item.data.pow(2) elif prune_imp == 'grad': mat = item.grad.data.abs() elif prune_imp == 'syn': mat = (item.data * item.grad.data).abs() state[key].data.copy_(torch.gt(mat, threshold).float()) def get_filter_mask(model, rate, prune_imp='L1'): importance_all = None for name, item in model.named_parameters(): #.module.named_parameters(): if len(item.size())==4 and 'weight' in name: filters = item.data.view(item.size(0), -1).cpu() weight_len = filters.size(1) if prune_imp =='L1': importance = filters.abs().sum(dim=1).numpy() / weight_len elif prune_imp == 'L2': importance = filters.pow(2).sum(dim=1).numpy() / weight_len if importance_all is None: importance_all = importance else: importance_all = np.append(importance_all, importance) threshold = np.sort(importance_all)[int(len(importance_all) * rate)] #threshold = np.percentile(importance_all, rate) filter_mask = np.greater(importance_all, threshold) return filter_mask def filter_prune(model, filter_mask): idx = 0 for name, item in model.named_parameters(): #.module.named_parameters(): if len(item.size())==4 and 'mask' in name: for i in range(item.size(0)): item.data[i,:,:,:] = 1 if filter_mask[idx] else 0 idx += 1 def reg_ortho(mdl): l2_reg = None for W in mdl.parameters(): if W.ndimension() < 2: continue else: cols = W[0].numel() rows = W.shape[0] w1 = W.view(-1,cols) wt = torch.transpose(w1,0,1) m = torch.matmul(wt,w1) ident = Variable(torch.eye(cols,cols)) ident = ident.cuda() w_tmp = (m - ident) height = w_tmp.size(0) u = normalize(w_tmp.new_empty(height).normal_(0,1), dim=0, eps=1e-12) v = normalize(torch.matmul(w_tmp.t(), u), dim=0, eps=1e-12) u = normalize(torch.matmul(w_tmp, v), dim=0, eps=1e-12) sigma = torch.dot(u, torch.matmul(w_tmp, v)) if l2_reg is None: l2_reg = (sigma)**2 else: l2_reg = l2_reg + (sigma)**2 return l2_reg def reg_cov(mdl): cov_reg = 0 for W in mdl.parameters(): if W.ndimension() < 2: continue else: for w in W: for w_ in w: if w_.dim() > 0 and len(w_) == 2: cov_ = np.cov(w_.detach().numpy()) cov_upper = np.triu(cov_) cov_upper_abs = np.absolute(cov_upper) cov_upper_abs_sum = np.sum(cov_upper_abs) cov_reg += cov_upper_abs_sum return cov_reg class AverageMeter(object): r"""Computes and stores the average and current value """ def __init__(self, name, fmt=':f'): self.name = name self.fmt = fmt self.reset() def reset(self): self.val = 0 self.avg = 0 self.sum = 0 self.count = 0 def update(self, val, n=1): self.val = val self.sum += val * n self.count += n self.avg = self.sum / self.count def __str__(self): fmtstr = '{name} {val' + self.fmt + '} ({avg' + self.fmt + '})' return fmtstr.format(**self.__dict__) def accuracy(output, target, topk=(1,)): r"""Computes the accuracy over the $k$ top predictions for the specified values of k """ with torch.no_grad(): maxk = max(topk) batch_size = target.size(0) _, pred = output.topk(maxk, 1, True, True) pred = pred.t() correct = pred.eq(target.view(1, -1).expand_as(pred)) res = [] for k in topk: correct_k = correct[:k].view(-1).float().sum(0, keepdim=True) res.append(correct_k.mul_(100.0 / batch_size)) return res def cal_sparsity(model): mask_nonzeros = 0 mask_length = 0 total_weights = 0 for name, item in model.named_parameters(): #.module.named_parameters(): if 'mask' in name: flatten = item.data.view(-1) np_flatten = flatten.cpu().numpy() mask_nonzeros += np.count_nonzero(np_flatten) mask_length += item.numel() if 'weight' in name or 'bias' in name: total_weights += item.numel() num_zero = mask_length - mask_nonzeros sparsity = (num_zero / total_weights) * 100 return total_weights, num_zero, sparsity def train(train_loader, epoch, model, criterion, optimizer, reg=None, prune=None, prune_freq=4, odecay=0, device='cuda'): losses = AverageMeter('Loss', ':.4e') top1 = AverageMeter('Acc@1', ':6.2f') top5 = AverageMeter('Acc@5', ':6.2f') model.train() for i, (inputs, targets) in enumerate(train_loader): inputs = inputs.to(device) targets = targets.to(device) if prune: if (i+1) % prune_freq == 0 and epoch <= 225: if prune['type'] == 'structured': filter_mask = get_filter_mask(model, prune['rate']) filter_prune(model, filter_mask) elif prune['type'] == 'unstructured': thres = get_weight_threshold(model, prune['target_sparsity']) weight_prune(model, thres) outputs = model(inputs) if reg: oloss = reg(model) oloss = odecay * oloss loss = criterion(outputs, targets) + oloss else: loss = criterion(outputs, targets) acc1, acc5 = accuracy(outputs, targets, topk=(1,5)) losses.update(loss.item(), inputs.size(0)) top1.update(acc1[0], inputs.size(0)) top5.update(acc5[0], inputs.size(0)) optimizer.zero_grad() loss.backward() optimizer.step() print('train {i} ====> Acc@1 {top1.avg:.3f} Acc@5 {top5.avg:.3f}'.format(i=epoch, top1=top1, top5=top5)) if prune: num_total, num_zero, sparsity = cal_sparsity(model) print('sparsity {} ====> {:.2f}% || num_zero/num_total: {}/{}'.format(epoch, sparsity, num_zero, num_total)) return top1.avg, top5.avg def validate(val_loader, epoch, model, criterion, device='cuda'): losses = AverageMeter('Loss', ':.4e') top1 = AverageMeter('Acc@1', ':6.2f') top5 = AverageMeter('Acc@5', ':6.2f') model.eval() with torch.no_grad(): for i, (inputs, targets) in enumerate(val_loader): inputs = inputs.to(device) targets = targets.to(device) outputs = model(inputs) loss = criterion(outputs, targets) acc1, acc5 = accuracy(outputs, targets, topk=(1,5)) losses.update(loss.item(), inputs.size(0)) top1.update(acc1[0], inputs.size(0)) top5.update(acc5[0], inputs.size(0)) print('valid {i} ====> Acc@1 {top1.avg:.3f} Acc@5 {top5.avg:.3f}'.format(i=epoch, top1=top1, top5=top5)) return top1.avg, top5.avg <file_sep>/run.sh #!/bin/bash RESULT_DIR=result if [ ! -d $RESULT_DIR ]; then mkdir $RESULT_DIR fi #python modeling.py --prune_type structured --prune_rate 0.5 > $RESULT_DIR/prune_50.txt #python modeling.py --prune_type structured --prune_rate 0.6 > $RESULT_DIR/prune_60.txt #python modeling.py --prune_type structured --prune_rate 0.7 > $RESULT_DIR/prune_70.txt #python modeling.py --prune_type structured --prune_rate 0.8 > $RESULT_DIR/prune_80.txt #python modeling.py --reg reg_cov --odecay 0.5 > $RESULT_DIR/reg_05.txt #python modeling.py --reg reg_cov --odecay 0.6 > $RESULT_DIR/reg_06.txt #python modeling.py --reg reg_cov --odecay 0.7 > $RESULT_DIR/reg_07.txt #python modeling.py --reg reg_cov --odecay 0.8 > $RESULT_DIR/reg_08.txt #python modeling.py --reg reg_cov --odecay 0.9 > $RESULT_DIR/reg_09.txt #python modeling.py --prune_type structured --prune_rate 0.5 --reg reg_cov --odecay 0.7 > $RESULT_DIR/prune_50_reg_07.txt #python modeling.py --prune_type structured --prune_rate 0.5 --reg reg_cov --odecay 0.8 > $RESULT_DIR/prune_50_reg_08.txt #python modeling.py --prune_type structured --prune_rate 0.5 --reg reg_cov --odecay 0.9 > $RESULT_DIR/prune_50_reg_09.txt python modeling.py --prune_type structured --prune_rate 0.6 --reg reg_cov --odecay 0.7 > $RESULT_DIR/prune_60_reg_07.txt #python modeling.py --prune_type structured --prune_rate 0.6 --reg reg_cov --odecay 0.8 > $RESULT_DIR/prune_60_reg_08.txt #python modeling.py --prune_type structured --prune_rate 0.6 --reg reg_cov --odecay 0.9 > $RESULT_DIR/prune_60_reg_09.txt <file_sep>/modeling.py import time import random import pathlib from os.path import isfile import copy import sys import numpy as np import cv2 import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import torch.backends.cudnn as cudnn from torch.autograd import Variable import torchvision import torchvision.transforms as transforms from resnet_mask import * from utils import * def main(args): device = 'cuda' if torch.cuda.is_available() else 'cpu' torch.manual_seed(777) if device =='cuda': torch.cuda.manual_seed_all(777) ## args layers = int(args.layers) prune_type = args.prune_type prune_rate = float(args.prune_rate) prune_imp = args.prune_imp reg = args.reg epochs = int(args.epochs) batch_size = int(args.batch_size) lr = float(args.lr) momentum = float(args.momentum) wd = float(args.wd) odecay = float(args.odecay) if prune_type: prune = {'type':prune_type, 'rate':prune_rate} else: prune = None if reg == 'reg_cov': reg = reg_cov cfgs = { '18': (BasicBlock, [2, 2, 2, 2]), '34': (BasicBlock, [3, 4, 6, 3]), '50': (Bottleneck, [3, 4, 6, 3]), '101': (Bottleneck, [3, 4, 23, 3]), '152': (Bottleneck, [3, 8, 36, 3]), } cfgs_cifar = { '20': [3, 3, 3], '32': [5, 5, 5], '44': [7, 7, 7], '56': [9, 9, 9], '110': [18, 18, 18], } train_data_mean = (0.5, 0.5, 0.5) train_data_std = (0.5, 0.5, 0.5) transform_train = transforms.Compose([ transforms.RandomCrop(32, padding=4), transforms.ToTensor(), transforms.Normalize(train_data_mean, train_data_std) ]) transform_test = transforms.Compose([ transforms.ToTensor(), transforms.Normalize(train_data_mean, train_data_std) ]) trainset = torchvision.datasets.CIFAR10(root='./data', train=True, download=True, transform=transform_train) trainloader = torch.utils.data.DataLoader(trainset, batch_size=256, shuffle=True, num_workers=4) testset = torchvision.datasets.CIFAR10(root='./data', train=False, download=True, transform=transform_test) testloader = torch.utils.data.DataLoader(testset, batch_size=256, shuffle=False, num_workers=4) classes = ('plane','car','bird','cat','deer','dog','frog','horse','ship','truck') model = ResNet_CIFAR(BasicBlock, cfgs_cifar['56'], 10).to(device) image_size = 32 criterion = nn.CrossEntropyLoss().to(device) optimizer = optim.SGD(model.parameters(), lr=lr, momentum=momentum, weight_decay=wd) #nesterov=args.nesterov) lr_sche = optim.lr_scheduler.StepLR(optimizer, step_size=10, gamma=0.5) ##### main 함수 보고 train 짜기 best_acc1 = 0.0 print('prune rate', prune_rate, 'regularization odecay', odecay) for epoch in range(epochs): acc1_train_cor, acc5_train_cor = train(trainloader, epoch=epoch, model=model, criterion=criterion, optimizer=optimizer, prune=prune, reg=reg, odecay=odecay) acc1_valid_cor, acc5_valid_cor = validate(testloader, epoch=epoch, model=model, criterion=criterion) acc1_train = round(acc1_train_cor.item(), 4) acc5_train = round(acc5_train_cor.item(), 4) acc1_valid = round(acc1_valid_cor.item(), 4) acc5_valid = round(acc5_valid_cor.item(), 4) # remember best Acc@1 and save checkpoint and summary csv file # summary = [epoch, acc1_train, acc5_train, acc1_valid, acc5_valid] is_best = acc1_valid > best_acc1 best_acc1 = max(acc1_valid, best_acc1) if is_best: summary = [epoch, acc1_train, acc5_train, acc1_valid, acc5_valid] print(summary) # save_model(arch_name, args.dataset, state, args.save) # save_summary(arch_name, args.dataset, args.save.split('.pth')[0], summary) if __name__ == '__main__': import argparse parser = argparse.ArgumentParser(description="") parser.add_argument('--layers', default=56) parser.add_argument('--prune_type', default=None, help='None / structured / unstructured') parser.add_argument('--prune_rate', default=0.9) parser.add_argument('--prune_imp', default='L2') parser.add_argument('--reg', default=None, help='None / reg_cov') parser.add_argument('--epochs', default=300) parser.add_argument('--batch_size', default=128) parser.add_argument('--lr', default=0.2) parser.add_argument('--momentum', default=0.9) parser.add_argument('--wd', default=1e-4) parser.add_argument('--odecay', default=1) args = parser.parse_args() main(args)
aed75b7d635649e58d90bb4337a3c517b92276e7
[ "Markdown", "Python", "Shell" ]
4
Markdown
heehehe/pruning-decorrelation
02ad785e27148e10510838612ae0d6f2efa91bce
cc9fa0c23a1a34b48cfb57d106491e38a53140db
refs/heads/master
<repo_name>ChristianPeters/active_component<file_sep>/lib/active_component/template_handler.rb # encoding: utf-8 module ActiveComponent class TemplateHandler include ActionView::TemplateHandlers::Compilable def compile(template) # For Rails < 2.1.0, template is a string # For Rails >= 2.1.0, template is a Template object if template.respond_to? :source # # For Rails >=3.0.0, there is a generic identifier # options[:filename] = template.respond_to?(:identifier) ? template.identifier : template.filename template.source else template end end end end <file_sep>/spec/components/heading_spec.rb # encoding: utf-8 describe Heading do include ActiveComponent include Haml::Helpers before :all do @content = "Wall Street Retreats in the Face of a Slowdown" @title = "Business News" @level = 3 @attributes = {:class => 'news business'} end describe "siblings_level" do it "should adopt correct siblings level" do h1 = Heading.new('header 1', :level => 3) h2 = Heading.new h3 = Heading.new [h1, h2] h2.siblings_level.should == 3 end it "should return nil if no heading sibling exists" do h1 = Heading.new h2 = Heading.new h1 h1.siblings_level.should be_nil end it "should return nil if existing heading sibling has no rank" do h1 = Heading.new('header 1') h2 = Heading.new h3 = Heading.new [h1, h2] h2.siblings_level.should be_nil end end describe "determine_level" do it "should return the rank of a given sibling Heading" do h1 = Heading.new(:level => 3) h2 = Heading.new h3 = Heading.new([h1, h2]) h2.determine_level.should == 3 end it "should determine heading rank correctly based on the hierarchy" do h1 = Heading.new('header 1') h2 = Heading.new('header 2') h3 = Heading.new('header 3') div2 = Div.new(:content => [h2, h3]) div = Div.new(:content => [ h1, div2 ]) h2.determine_level.should == 2 end end describe "to_html" do it "should compute heading levels automatically based on the node hierarchy" do section = Section.new(:heading => @title, :content => [ Heading.new("It's better to be honest!"), Section.new(:heading => "<NAME>", :content => [ Div.new(:title => "Some div inbetween", :content => [ Heading.new("Yet Another Heading"), Section.new("Details", :heading => "Leaf Heading") ]) ]) ]) section.to_html.should == "<section>\n <h1 class='heading'>\n Business News\n </h1>\n \n <h1 class='heading'>\n It's better to be honest!\n </h1>\n \n <section>\n <h2 class='heading'>\n <NAME>\n </h2>\n \n <div class='some-div-inbetween'>\n <h3 class='heading'>\n Yet Another Heading\n </h3>\n \n <section>\n <h4 class='heading'>\n Leaf Heading\n </h4>\n \n Details\n </section>\n \n </div>\n \n </section>\n \n</section>\n" end it "should compute heading levels automatically also when block syntax used" do section = Section.new(:heading => @title, :content => [ Heading.new("It's better to be honest!"), Section.new(:heading => "<NAME>", :content => [ Div.new(:title => "Some div inbetween") do [ Heading.new("Yet Another Heading"), Section.new("Details", :heading => "Leaf Heading") ] end ]) ]) section.to_html.should == "<section>\n <h1 class='heading'>\n Business News\n </h1>\n \n <h1 class='heading'>\n It's better to be honest!\n </h1>\n \n <section>\n <h2 class='heading'>\n <NAME>\n </h2>\n \n <div class='some-div-inbetween'>\n <h3 class='heading'>\n Yet Another Heading\n </h3>\n \n <section>\n <h4 class='heading'>\n Leaf Heading\n </h4>\n \n Details\n </section>\n \n </div>\n \n </section>\n \n</section>\n" end end end <file_sep>/lib/active_component/components/section.rb # encoding: utf-8 class Section < ActiveComponent::Base attr_accessor :tag_type, :heading, :heading_level, :heading_attrs def initialize(*args, &content_block) init_component(args, [:content, :title, :tag_type, :heading, :heading_level, :heading_attrs, :attributes], &content_block) # Defaults @tag_type ||= :section # Validations raise ArgumentError, "attributes must be a hash (given #{@attributes.inspect} in section #{@title})" unless @attributes.is_a? Hash # TODO: Heading rank end def to_html if @heading.present? && !@heading.is_a?(ActiveComponent) @heading = Heading.new @heading, @heading_level, @heading_attrs children.nil? ? (self << @heading) : self.prepend(@heading) end # TODO: Is this clean? Is there a better way that hides buffer operations? # wrap_contents(@tag_type, :attributes => @attributes, :content => [@heading, content] print_buffer do tag_to_buffer @tag_type, @attributes do write_to_buffer print_object(@heading) content.transmogrify do |content| write_to_buffer print_object(content) end end end end def_html_sub_components ActiveComponent::SECTION_ELEMENTS, self end <file_sep>/lib/active_component/components/empty_tag.rb # encoding: utf-8 class EmptyTag < ActiveComponent::Base attr_accessor :tag_type # Content can be passed as a block def initialize(*args) init_component(args, [:title, :tag_type, :attributes]) # Defaults @tag_type ||= :br end def to_html if ActiveComponent::Config.component_options[:validate_html] raise InvalidHtmlError, "Empty HTML elements must not have content." if content.present? end name, attrs = merge_name_and_attributes(@tag_type.to_s, @attributes) attrs = Haml::Precompiler.build_attributes(@haml_buffer.html?, @haml_buffer.options[:attr_wrapper], attrs) "<#{name}#{attrs} />" end def_html_sub_components ActiveComponent::EMPTY_ELEMENTS, self end <file_sep>/spec/active_component_spec_helper.rb # encoding: utf-8 #require 'spec_helper' #require 'haml' require 'active_component' require 'factory_girl' require 'factories' <file_sep>/init.rb require File.join(File.dirname(__FILE__), 'lib', 'active_component') <file_sep>/spec/active_component_spec.rb # encoding: utf-8 require 'active_component_spec_helper' describe ActiveComponent do before(:each) { @comp = Block.new } after(:each) { @comp = nil } describe "print_contents" do it "should print content and wrap it with a tag" do content = "content" @comp.print_contents(:span, content).should == "<span>content</span>\n" end it "should print multiple contents and wrap each item with a tag" do content = [:a, "b", 3] Factory.sequence(:content) {|n| content[n]} @comp.print_contents(:span, content).should == "<span>a</span>\n<span>b</span>\n<span>3</span>\n" end it "should print content using a method and wrap the output with a tag" do deep_thought = mock :content deep_thought.should_receive(:question).once.and_return(42) @comp.print_contents("div.the-answer", deep_thought, :question).should == "<div class='the-answer'>42</div>\n" end it "should print multiple contents using a method and wrap each one with a tag" do names = %w(<NAME>) transformation = Proc.new {|x| x.downcase.reverse.humanize} @comp.print_contents(:li, names, transformation).should == "<li>Nora</li>\n<li>Leon</li>\n<li>Robert</li>\n" end it "should print multiple contents using a set of methods and wrap each of the method outputs with a tag" do things = [] things << Factory.build(:thing, :name => "thingamabob", :color => :yellow) things << Factory.build(:thing, :name => "whatchamacallit", :color => :red) things << Factory.build(:thing, :name => "gizmo", :color => :blue) @comp.print_contents(:p, things, things.first.attributes.keys).should == "<p>thingamabob</p>\n<p>yellow</p>\n<p>whatchamacallit</p>\n<p>red</p>\n<p>gizmo</p>\n<p>blue</p>\n" end it "should print multiple contents, each item being paired with its own method and wrap each of the method outputs with a tag" do accomodations = [] accomodations << mock(:hostel) accomodations << mock(:campground) accomodations[0].should_receive(:rooms).and_return(15) accomodations[1].should_receive(:campsites).and_return(25) capacity_information = [ Proc.new {|h| "There are #{h.rooms} hostel rooms available."}, Proc.new {|c| "The campground can take #{c.campsites} tents."} ] @comp.print_contents(:p, accomodations, capacity_information, :couple_methods_with_contents).should == "<p>There are 15 hostel rooms available.</p>\n<p>The campground can take 25 tents.</p>\n" end it "should merge attributes" end describe "wrap_contents" do it "should wrap text content with a tag" do content = "content" @comp.print_contents(:span, content, nil, :wrap_whole_content).should == "<span>\n content\n</span>\n" end it "should wrap HTML content with a tag" do content = "<span>\n content\n</span>\n" @comp.wrap_contents(:p, content).should == "<p>\n <span>\n content\n </span>\n</p>\n" end it "should wrap multiple contents with a tag" do names_list = ["<li>Nora</li>", "<li>Leon</li>", "<li>Robert</li>"] @comp.wrap_contents(:ul, names_list).should == "<ul>\n <li>Nora</li>\n <li>Leon</li>\n <li>Robert</li>\n</ul>\n" end it "should print content using a method and wrap the output with a tag" do deep_thought = mock :content deep_thought.should_receive(:question).once.and_return(42) @comp.wrap_contents("div.the-answer", deep_thought, :question).should == "<div class='the-answer'>\n 42\n</div>\n" end it "should print multiple contents using a method and wrap the whole output into a tag" do names = %w(<NAME>) transformation = Proc.new {|x| x.downcase.reverse.humanize} @comp.wrap_contents(:p, names, transformation).should == "<p>\n Nora\n Leon\n Robert\n</p>\n" end it "should wrap multiple contents with a tag, each item being printed using its own method" do accomodations = [] accomodations << mock(:hostel) accomodations << mock(:campground) accomodations[0].should_receive(:rooms).and_return(15) accomodations[1].should_receive(:campsites).and_return(25) capacity_information = [ Proc.new {|h| "There are #{h.rooms} hostel rooms available."}, Proc.new {|c| "The campground can take #{c.campsites} tents."} ] @comp.wrap_contents(:p, accomodations, capacity_information, :couple_methods_with_contents).should == "<p>\n There are 15 hostel rooms available.\n The campground can take 25 tents.\n</p>\n" end end describe "print_object" do it "should print primitive data" do for primitive in ["test", 1.0, 7, true, ''] @comp.print_object(primitive).should == primitive.to_s end end it "should call callable objects" do callable = mock :method callable.should_receive(:call).at_least(:once).and_return(42) @comp.print_object(callable).should == callable.call.to_s end it "should render components" do renderable = mock :component html = "<div>\n Component content\n</div" renderable.should_receive(:to_html).any_number_of_times.and_return(html) renderable.should_receive(:to_s).any_number_of_times.and_return(html) @comp.print_object(renderable).should == html end it "should capture Haml buffers" do p = lambda { @comp.haml_tag(:span, "haml") } @comp.print_object(p).should == "<span>haml</span>\n" p = lambda { @comp.haml_concat("written-to-buffer-and-captured") } @comp.print_object(p).should == "written-to-buffer-and-captured\n" end it "should utilize receiver capabilities of object if applicable" do receiver = mock :object receiver.should_receive(:message).at_least(:once).and_return(42) @comp.print_object(receiver, :message).should == receiver.message.to_s end it "should yield non-receiver objects if a suitable method is given" do callable = mock :method object = 42 callable.should_receive(:arity).at_least(:once).and_return(1, -1, -2) callable.should_receive(:call).with(object).at_least(:once).and_return(42) 3.times do @comp.print_object(object, callable).should == callable.call(object).to_s end end it "should not try to print non-receiver objects if an unsuitable method is given" do callable = mock :method object = 42 callable.should_receive(:arity).at_least(:once).and_return(0, 2, -3) callable.should_not_receive(:call) 3.times do lambda {@comp.print_object(object, callable)}.should raise_error(ArgumentError) end end end end <file_sep>/spec/components/section_spec.rb # encoding: utf-8 describe Section do before :each do @content = "It is better to be quotable than to be honest." @title = "<NAME> on Quotations" @tag_type = :blockquote @attributes = {:class => 'quotes', :cites => "http://www.quotationspage.com/quote/368.html"} end describe "initialize" do it "should assume :section as default section type" do section = Section.new @content section.tag_type.should == :section end it "should not be possible to overwrite tag_type for subclasses of section" do for elem in ActiveComponent::SECTION_ELEMENTS elem_class = elem.to_s.camelize.constantize section = elem_class.new(:tag_type => :section) { @content } section.tag_type.should == elem end end end describe "to_html" do it "should be able to render nested sections" it "should be able to render section subclasses" do b = Blockquote.new(@content, @title, @attributes) b.to_html.should == "<blockquote cites='http://www.quotationspage.com/quote/368.html' class='tom-stoppard-on-quotations quotes'>\n It is better to be quotable than to be honest.\n</blockquote>" end end end <file_sep>/lib/active_component/base.rb # encoding: utf-8 module ActiveComponent class Base include ActiveComponent include Haml::Helpers include Enumerable # Rails XSS protection support include Haml::Helpers::XssMods #require 'forwardable' #extend ::Forwardable attr_accessor :attributes, :title # Initializes component by fetching arguments of a flexible method call as well as initializing the node and buffer # *Example* # def initialize(*args, &content_block) # fetch_args(args, [:content, :title, :special_param, :attributes], &content_block) # # # Set defaults afterwards # @attributes ||= {:class => @title} # end # # Arguments may be non-hash objects with certain order. # Then, the arguments will be set to instance variables with the var_names entry at the same index. # Though, it is always possible use a hash for assigning parameters to keywords (e.g. :title => "Blumenkübel"); # As always, parenthesis can be omitted for this last hash. # # The list of variable names will be iterated in order. # The first element becomes an instance variable that gets the block assigned (if passed along). # If the list of variable names iteration is complete, remaining key-value pairs of the Hash part of the arguments list are merged into @attributes. # # Thus, all of the following signatures are legal for the **sender of fetch_args**: # *Example 1* # new("content", "title", :class => "api") # # *Example 2* # new(:class => "api", :title => "title") { content } # # *Example 3* # new("content", {:attributes => {:class => "api"}, :title => "title"}) # # @param args [Array<Object>] Argument list where to fetch from # @param var_names [Array<Symbol>] Ordered list of instance variables to fetch. First one gets assigned to block (if given). # @param &content_block [#to_proc] The given block; will be assigned to variable named first in +var_names+. def init_component(args, var_names = [:content, :title, :attributes], &content_block) init_node init_buffer # Fetch arguments non_hash_args = [] args_hash = {} # Collect all non-hash args and merge all hashs together for arg in args arg.is_a?(Hash) ? args_hash.merge!(arg) : non_hash_args << arg end # var_names.first is set to block if block given send(var_names.shift.to_s + "=", content_block.call) if content_block for var_name in var_names # Each value is extracted from args_hash, if resp. var_name present, otherwise the next non-hash argument is taken send var_name.to_s + "=", (args_hash.delete(var_name) or non_hash_args.shift) end @attributes ||= {} # All args in args_hash that have not been used for setting an instance variable become attributes. @attributes.set_defaults!(args_hash) # The class attribute will contain the component title and class_name (unless component is a html tag wrapper) @attributes[:class] = (html_class + [@attributes[:class]].flatten).compact.uniq end def content=(cont) @content = cont # Add content as a child if it is also a component cont.transmogrify do |c| self << c if c.is_a? ActiveComponent end end def content # If content is not given yet, return node children @content || children end def html_class class_arr = [] class_arr << @title.hyphenize unless @title.blank? class_arr << class_name unless is_html_tag_wrapper? class_arr.uniq end def class_name self.class.to_s.hyphenize end def to_html raise NotImplementedError, "to_html has to be implemented for every component that inherits from ActiveComponent::Base" end def to_s to_html end def is_html_tag_wrapper? ActiveComponent::HTML5_ELEMENTS.each_value {|category| break true if category.include?(class_name.to_sym)} == true end def self.inherited(component_class) def_component_helper(component_class) unless component_class.to_s =~ /#/ end def self.def_component_helper(component_class) raise ArgumentError, "Anonymous classes are not allowed because a name is needed." if component_class.to_s =~ /#/ ActiveComponent.class_eval do # New way of defining methods with a block parameter (1.9 only) # Attention: evaluation context seems to differ! #define_method(component_class.to_s.underscore) do |*args, &block| #component_class.new(*args, &block) #end # Old way of defining methods with a block parameter (supported by 1.8) eval %( def #{component_class.to_s.underscore}(*args, &block) #{component_class}.new(*args, &block) end ) end end # This helper creates HTML wrapper components that become sub classes of the given super_class (e.g. Section) def self.def_html_sub_components(names, super_class) for name in names # Creating an anonymous subclass and set according constant new_component = Object.const_set(name.to_s.camelize, Class.new(super_class)) # Register component instantiation helper manually with the class constant def_component_helper(new_component) new_component.class_eval do # FIXME: Remove eval wrap as soon as Ruby 1.9.2 support can be dropped # Problem: "super from singleton method that is defined to multiple classes is not supported; this will be fixed in 1.9.3 or later" # See https://gist.github.com/455547 eval %( def initialize(*args, &block) args << {:tag_type => self.class.to_s.underscore.to_sym} super *args, &block end ) end end end #---------------------------------------- # NODE METHODS COPIED FROM Tree::TreeNode # An own, delegatable Tree Library has to # be written. Until then, the methods are # contained here as they make heavy use # of self. #---------------------------------------- # Overridden / own methods #-------------------- # Adds the specified child node to the receiver node. # # This method can also be used for *grafting* a subtree into the receiver node's tree, if the specified child node # is the root of a subtree (i.e., has child nodes under it). # # The receiver node becomes parent of the node passed in as the argument, and # the child is added as the last child ("right most") in the current set of # children of the receiver node. # # @param [Tree::TreeNode] child The child node to add. # # @return [Tree::TreeNode] The added child node. # # @raise [RuntimeError] This exception is raised if another child node with the same # node_name exists. # @raise [ArgumentError] This exception is raised if a +nil+ node is passed as the argument. # # @see #<< def add(child, prepend = false) raise ArgumentError, "Attempting to add a nil node" unless child raise "Child #{child.node_name} already added!" if @childrenHash.has_key?(child.node_name) @childrenHash[child.node_name] = child prepend ? @children.unshift(child) : (@children << child) raise "Great Scott! I just added a ghost child!" if !(@children.include?(child)) || @children.empty? child.parent = self child end def prepend(child) add(child, true) end # Original Methods #-------------------- # node_name of this node. Expected to be unique within the tree. attr_accessor :node_name # node_content of this node. Can be +nil+. attr_accessor :node_content # TODO: was not necessary to provide in Tree::TreeNode. Why here? attr_accessor :childrenHash # Parent of this node. Will be +nil+ for a root node. attr_accessor :parent # Creates a new node with a node_name and optional node_content. # The node node_name is expected to be unique within the tree. # # The node_content can be of any type, and defaults to +nil+. # # @param [Object] node_name node_name of the node. Usual usage is to pass a String. # @param [Object] node_content node_content of the node. # # @raise [ArgumentError] Raised if the node node_name is empty. def init_node(node_name = object_id, node_content = nil) raise ArgumentError, "Node node_name HAS to be provided!" if node_name == nil @node_name, @node_content = node_name, node_content self.setAsRoot! @childrenHash = Hash.new @children = [] end # Returns a copy of the receiver node, with its parent and children links removed. # The original node remains attached to its tree. # # @return [Tree::TreeNode] A copy of the receiver node. def detached_copy Tree::TreeNode.new(@node_name, @node_content ? @node_content.clone : nil) end # Returns an array of ancestors of the receiver node in reversed order # (the first element is the immediate parent of the receiver). # # Returns +nil+ if the receiver is a root node. # # @return [Array, nil] An array of ancestors of the receiver node, or +nil+ if this is a root node. def parentage return nil if isRoot? parentageArray = [] prevParent = self.parent while (prevParent) parentageArray << prevParent prevParent = prevParent.parent end parentageArray end # Protected method to set the parent node for the receiver node. # This method should *NOT* be invoked by client code. # # @param [Tree::TreeNode] parent The parent node. # # @return [Tree::TreeNode] The parent node. def parent=(parent) # :nodoc: @parent = parent end # Convenience synonym for {Tree::TreeNode#add} method. # # This method allows an easy mechanism to add node hierarchies to the tree # on a given path via chaining the method calls to successive child nodes. # # @example Add a child and grand-child to the root # root << child << grand_child # # @param [Tree::TreeNode] child the child node to add. # # @return [Tree::TreeNode] The added child node. # # @see Tree::TreeNode#add def <<(child) add(child) end # Adds the specified child node to the receiver node. # # This method can also be used for *grafting* a subtree into the receiver node's tree, if the specified child node # is the root of a subtree (i.e., has child nodes under it). # # The receiver node becomes parent of the node passed in as the argument, and # the child is added as the last child ("right most") in the current set of # children of the receiver node. # # @param [Tree::TreeNode] child The child node to add. # # @return [Tree::TreeNode] The added child node. # # @raise [RuntimeError] This exception is raised if another child node with the same # node_name exists. # @raise [ArgumentError] This exception is raised if a +nil+ node is passed as the argument. # # @see #<< # def add(child) # raise ArgumentError, "Attempting to add a nil node" unless child # raise "Child #{child.node_name} already added!" if @childrenHash.has_key?(child.node_name) # # @childrenHash[child.node_name] = child # @children << child # child.parent = self # return child # end # Removes the specified child node from the receiver node. # # This method can also be used for *pruning* a sub-tree, in cases where the removed child node is # the root of the sub-tree to be pruned. # # The removed child node is orphaned but accessible if an alternate reference exists. If accessible via # an alternate reference, the removed child will report itself as a root node for its sub-tree. # # @param [Tree::TreeNode] child The child node to remove. # # @return [Tree::TreeNode] The removed child node, or +nil+ if a +nil+ was passed in as argument. # # @see #removeFromParent! # @see #removeAll! def remove!(child) return nil unless child @childrenHash.delete(child.node_name) @children.delete(child) child.setAsRoot! child end # Removes the receiver node from its parent. The reciever node becomes the new root for its subtree. # # If this is the root node, then does nothing. # # @return [Tree:TreeNode] +self+ (the removed receiver node) if the operation is successful, +nil+ otherwise. # # @see #removeAll! def removeFromParent! @parent.remove!(self) unless isRoot? end # Removes all children from the receiver node. If an indepedent reference exists to the child # nodes, then these child nodes report themselves as roots after this operation. # # @return [Tree::TreeNode] The receiver node (+self+) # # @see #remove! # @see #removeFromParent! def removeAll! for child in @children child.setAsRoot! end @childrenHash.clear @children.clear self end # Returns +true+ if the receiver node has node_content. # # @return [Boolean] +true+ if the node has node_content. def hasnode_content? @node_content != nil end # Protected method which sets the receiver node as a root node. # # @return +nil+. def setAsRoot! # :nodoc: @parent = nil end # Returns +true+ if the receiver is a root node. Note that # orphaned children will also be reported as root nodes. # # @return [Boolean] +true+ if this is a root node. def is_root? @parent.nil? end alias :isRoot? :is_root? # Returns +true+ if the receiver node has any child node. # # @return [Boolean] +true+ if child nodes exist. # # @see #isLeaf? def hasChildren? @children.length != 0 end # Returns +true+ if the receiver node is a 'leaf' - i.e., one without # any children. # # @return [Boolean] +true+ if this is a leaf node. # # @see #hasChildren? def isLeaf? !hasChildren? end # Returns an array of all the immediate children of the receiver node. The child nodes are ordered # "left-to-right" in the returned array. # # If a block is given, yields each child node to the block traversing from left to right. # # @yield [child] Each child is passed to the block, if given # @yieldparam [Tree::TreeNode] child Each child node. # # @return [Array<Tree::TreeNode>] An array of the child nodes, if no block is given. def children if block_given? @children.each {|child| yield child} else @children end end # Returns the first child of the receiver node. # # Will return +nil+ if no children are present. # # @return [Tree::TreeNode] The first child, or +nil+ if none is present. def firstChild children.first end # Returns the last child of the receiver node. # # Will return +nil+ if no children are present. # # @return [Tree::TreeNode] The last child, or +nil+ if none is present. def lastChild children.last end # Traverses each node (including the receiver node) of the (sub)tree rooted at this node # by yielding the nodes to the specified block. # # The traversal is *depth-first* and from *left-to-right* in pre-ordered sequence. # # @yield [child] Each node is passed to the block. # @yieldparam [Tree::TreeNode] child Each node. # # @see #preordered_each # @see #breadth_each def each(&block) # :yields: node yield self children { |child| child.each(&block) } end # Traverses the (sub)tree rooted at the receiver node in pre-ordered sequence. # This is a synonym of {Tree::TreeNode#each}. # # @yield [child] Each child is passed to the block. # @yieldparam [Tree::TreeNode] node Each node. # # @see #each # @see #breadth_each def preordered_each(&block) # :yields: node each(&block) end # Performs breadth-first traversal of the (sub)tree rooted at the receiver node. The # traversal at a given level is from *left-to-right*. The receiver node itself is the first # node to be traversed. # # @yield [child] Each node is passed to the block. # @yieldparam [Tree::TreeNode] node Each node. # # @see #preordered_each # @see #breadth_each def breadth_each(&block) node_queue = [self] # Create a queue with self as the initial entry # Use a queue to do breadth traversal until node_queue.empty? node_to_traverse = node_queue.shift yield node_to_traverse # Enqueue the children from left to right. node_to_traverse.children { |child| node_queue.push child } end end # Yields every leaf node of the (sub)tree rooted at the receiver node to the specified block. # # May yield this node as well if this is a leaf node. # Leaf traversal is *depth-first* and *left-to-right*. # # @yield [node] Each leaf node is passed to the block. # @yieldparam [Tree::TreeNode] node Each leaf node. # # @see #each # @see #breadth_each def each_leaf &block self.each { |node| yield(node) if node.isLeaf? } end # Returns the requested node from the set of immediate children. # # If the argument is _numeric_, then the in-sequence array of children is accessed using # the argument as the *index* (zero-based). # # If the argument is *NOT* _numeric_, then it is taken to be the *node_name* of the child node to be returned. # # An ArgumentError exception is raised if neither node_name nor an index is provided. # # @param [String|Number] node_name_or_index node_name of the child, or its positional index in the array of child nodes. # # @return [Tree::TreeNode] the requested child node. If the index in not in range, or the node_name is not # present, then a +nil+ is returned. # # @raise [ArgumentError] Raised if neither node_name nor index is provided. # # @see #add def [](node_name_or_index) raise ArgumentError, "node_name_or_index needs to be provided!" if node_name_or_index == nil if node_name_or_index.kind_of?(Integer) @children[node_name_or_index] || @childrenHash[node_name_or_index] else @childrenHash[node_name_or_index] end end # Returns the total number of nodes in this (sub)tree, including the receiver node. # # Size of the tree is defined as: # # Size:: Total number nodes in the subtree including the receiver node. # # @return [Number] Total number of nodes in this (sub)tree. def size @children.inject(1) {|sum, node| sum + node.size} end # Convenience synonym for {Tree::TreeNode#size}. # # @todo The semantic of length is probably unclear. Should return the node depth instead # to reflect the path length. # # @deprecated This method node_name is ambiguous and may be removed. Use TreeNode#size instead. # # @return [Number] The total number of nodes in this (sub)tree. # @see #size def length size() end # Pretty prints the (sub)tree rooted at the receiver node. # # @param [Number] level The indentation level (4 spaces) to start with. def printTree(level = 0) if isRoot? print "*" else print "|" unless parent.isLastSibling? print(' ' * (level - 1) * 4) print(isLastSibling? ? "+" : "|") print "---" print(hasChildren? ? "+" : ">") end puts " #{node_name}" children { |child| child.printTree(level + 1)} end # Returns root node for the (sub)tree to which the receiver node belongs. # # Note that a root node's root is itself (*beware* of any loop construct that may become infinite!) # # @todo We should perhaps return nil as root's root. # # @return [Tree::TreeNode] Root of the (sub)tree. def root root = self root = root.parent while !root.isRoot? root end # Returns the first sibling of the receiver node. If this is the root node, then returns # itself. # # 'First' sibling is defined as follows: # First sibling:: The left-most child of the receiver's parent, which may be the receiver itself # # @todo Fix the inconsistency of returning root as its first sibling, and returning # a +nil+ array for siblings of the node. # # @return [Tree::TreeNode] The first sibling node. # # @see #isFirstSibling? # @see #lastSibling def firstSibling isRoot? ? self : parent.children.first end # Returns +true+ if the receiver node is the first sibling at its level. # # @return [Boolean] +true+ if this is the first sibling. # # @see #isLastSibling? # @see #firstSibling def isFirstSibling? firstSibling == self end # Returns the last sibling of the receiver node. If this is the root node, then returns # itself. # # 'Last' sibling is defined as follows: # Last sibling:: The right-most child of the receiver's parent, which may be the receiver itself # # @todo Fix the inconsistency of returning root as its last sibling, and returning # a +nil+ array for siblings of the node. # # @return [Tree::TreeNode] The last sibling node. # # @see #isLastSibling? # @see #firstSibling def lastSibling isRoot? ? self : parent.children.last end # Returns +true+ if the receiver node is the last sibling at its level. # # @return [Boolean] +true+ if this is the last sibling. # # @see #isFirstSibling? # @see #lastSibling def isLastSibling? lastSibling == self end # Returns an array of siblings for the receiver node. The receiver node is excluded. # # If a block is provided, yields each of the sibling nodes to the block. # The root always has +nil+ siblings. # # @todo Fix the inconsistency of returning root as its own first/last sibling, and returning # a +nil+ array for siblings of the same root node. # @todo Also fix the inconsistency of returning +nil+ for a root node, and an empty array for nodes # which have no siblings. # # @yield [sibling] Each sibling is passed to the block. # @yieldparam [Tree::TreeNode] sibling Each sibling node. # # @return [Array<Tree::TreeNode>] Array of siblings of this node. # # @see #firstSibling # @see #lastSibling def siblings return nil if is_root? if block_given? for sibling in parent.children yield sibling if sibling != self end else siblings = [] parent.children {|my_sibling| siblings << my_sibling if my_sibling != self} siblings end end # Returns +true+ if the receiver node is the only child of its parent. # # As a special case, a root node will always return +true+. # # @return [Boolean] +true+ if this is the only child of its parent. # # @see #siblings def isOnlyChild? isRoot? ? true : parent.children.size == 1 end # Returns the next sibling for the receiver node. # The 'next' node is defined as the node to right of the receiver node. # # Will return +nil+ if no subsequent node is present, or if the receiver is a root node. # # @return [Tree::treeNode] the next sibling node, if present. # # @see #previousSibling # @see #siblings def nextSibling return nil if isRoot? if myidx = parent.children.index(self) parent.children.at(myidx + 1) end end # Returns the previous sibling of the receiver node. # 'Previous' node is defined to be the node to left of the receiver node. # # Will return +nil+ if no predecessor node is present, or if the receiver is a root node. # # @return [Tree::treeNode] the previous sibling node, if present. # # @see #nextSibling # @see #siblings def previousSibling return nil if isRoot? if myidx = parent.children.index(self) parent.children.at(myidx - 1) if myidx > 0 end end # Provides a comparision operation for the nodes. # # Comparision is based on the natural character-set ordering of the node node_name. # # @param [Tree::TreeNode] other The other node to compare against. # # @return [Number] +1 if this node is a 'successor', 0 if equal and -1 if this node is a 'predecessor'. def <=>(other) return +1 if other == nil self.node_name <=> other.node_name end # Freezes all nodes in the (sub)tree rooted at the receiver node. # # The nodes become immutable after this operation. In effect, the entire tree's # structure and node_contents become _read-only_ and cannot be changed. def freezeTree! each {|node| node.freeze} end # Returns a marshal-dump represention of the (sub)tree rooted at the receiver node. def marshal_dump self.collect { |node| node.createDumpRep } end # Creates a dump representation of the reciever node and returns the same as a hash. def createDumpRep # :nodoc: { :node_name => @node_name, :parent => (isRoot? ? nil : @parent.node_name), :node_content => Marshal.dump(@node_content)} end # Loads a marshalled dump of a tree and returns the root node of the # reconstructed tree. See the Marshal class for additional details. # # # @todo This method probably should be a class method. It currently clobbers self # and makes itself the root. # def marshal_load(dumped_tree_array) nodes = { } for node_hash in dumped_tree_array do node_name = node_hash[:node_name] parent_node_name = node_hash[:parent] node_content = Marshal.load(node_hash[:node_content]) if parent_node_name then nodes[node_name] = current_node = Tree::TreeNode.new(node_name, node_content) nodes[parent_node_name].add current_node else # This is the root node, hence initialize self. initialize(node_name, node_content) nodes[node_name] = self # Add self to the list of nodes end end end # Creates a JSON representation of this node including all it's children. This requires the JSON gem to be # available, or else the operation fails with a warning message. # # @author <NAME> (http://github.com/railsbros-dirk) # @since 0.7.0 # # @return The JSON representation of this subtree. # # @see Tree::TreeNode.json_create # @see http://flori.github.com/json def to_json(*a) begin require 'json' json_hash = { "node_name" => node_name, "node_content" => node_content, JSON.create_id => self.class.node_name } if hasChildren? json_hash["children"] = children end return json_hash.to_json rescue LoadError => e warn "The JSON gem couldn't be loaded. Due to this we cannot serialize the tree to a JSON representation" end end # Creates a Tree::TreeNode object instance from a given JSON Hash representation. This requires the JSON gem to be # available, or else the operation fails with a warning message. # # @author <NAME> (http://github.com/railsbros-dirk) # @since 0.7.0 # # @param [Hash] json_hash The JSON hash to convert from. # # @return [Tree::TreeNode] The created tree. # # @see #to_json # @see http://flori.github.com/json def self.json_create(json_hash) begin require 'json' node = new(json_hash["node_name"], json_hash["node_content"]) json_hash["children"].each do |child| node << child end if json_hash["children"] return node rescue LoadError => e warn "The JSON gem couldn't be loaded. Due to this we cannot serialize the tree to a JSON representation." end end # Returns height of the (sub)tree from the receiver node. Height of a node is defined as: # # Height:: Length of the longest downward path to a leaf from the node. # # - Height from a root node is height of the entire tree. # - The height of a leaf node is zero. # # @return [Number] Height of the node. def nodeHeight return 0 if isLeaf? 1 + @children.collect { |child| child.nodeHeight }.max end # Returns depth of the receiver node in its tree. Depth of a node is defined as: # # Depth:: Length of the node's path to its root. Depth of a root node is zero. # # 'level' is an alias for this method. # # @return [Number] Depth of this node. def nodeDepth return 0 if isRoot? 1 + parent.nodeDepth end alias level nodeDepth # Aliased level() method to the nodeDepth(). # Returns depth of the tree from the receiver node. A single leaf node has a depth of 1. # # This method is *DEPRECATED* and may be removed in the subsequent releases. # Note that the value returned by this method is actually the: # # _height_ + 1 of the node, *NOT* the _depth_. # # For correct and conventional behavior, please use {Tree::TreeNode#nodeDepth} and # {Tree::TreeNode#nodeHeight} methods instead. # # @return [Number] depth of the node. # @deprecated This method returns an incorrect value. Use the 'nodeDepth' method instead. # # @see #nodeDepth def depth begin require 'structured_warnings' # To enable a nice way of deprecating of the depth method. warn DeprecatedMethodWarning, 'This method is deprecated. Please use nodeDepth() or nodeHeight() instead (bug # 22535)' rescue LoadError # Oh well. Will use the standard Kernel#warn. Behavior will be identical. warn 'Tree::TreeNode#depth() method is deprecated. Please use nodeDepth() or nodeHeight() instead (bug # 22535)' end return 1 if isLeaf? 1 + @children.collect { |child| child.depth }.max end # Returns breadth of the tree at the receiver node's level. # A single node without siblings has a breadth of 1. # # Breadth is defined to be: # Breadth:: Number of sibling nodes to this node + 1 (this node itself), # i.e., the number of children the parent of this node has. # # @return [Number] breadth of the node's level. def breadth isRoot? ? 1 : parent.children.size end # Returns the incoming edge-count of the receiver node. # # In-degree is defined as: # In-degree:: The number of edges arriving at the node (0 for root, 1 for all other nodes) # # - In-degree = 0 for a root or orphaned node # - In-degree = 1 for a node which has a parent # # @return [Number] The in-degree of this node. def in_degree isRoot? ? 0 : 1 end # Returns the outgoing edge-count of the receiver node. # # Out-degree is defined as: # Out-degree:: The number of edges leaving the node (zero for leafs) # # @return [Number] The out-degree of this node. def out_degree isLeaf? ? 0 : children.size end protected :parent=, :setAsRoot!, :createDumpRep protected def buffer @haml_buffer.buffer end end end <file_sep>/spec/components/table_spec.rb # encoding: utf-8 describe Table do def things things = [] things << Factory.build(:thing, :name => "thingamabob", :color => :yellow) things << Factory.build(:thing, :name => "whatchamacallit", :color => :red) things << Factory.build(:thing, :name => "gizmo", :color => :blue) things end context "rendering a matrix of primitive data" do it "should render without further input" do content = [["a", 1, "first entry"], ["b", 2, "second entry"]] table = Table.new content table.to_html.should == "<table cellspacing='0' class='arrays'>\n <tr>\n <td>a</td>\n <td>1</td>\n <td>first entry</td>\n </tr>\n <tr>\n <td>b</td>\n <td>2</td>\n <td>second entry</td>\n </tr>\n</table>\n" end it "should render correctly with all inputs set" do content = [["a", 1, "first entry"], ["b", 2, "second entry"]] table = Table.new content, 'examples', :cols => :to_s, :headers => ["char", "number", "entry"] table.to_html.should == "<table cellspacing='0' class='examples'>\n <tr>\n <th>char</th>\n <th>number</th>\n <th>entry</th>\n </tr>\n <tr>\n <td>a</td>\n <td>1</td>\n <td>first entry</td>\n </tr>\n <tr>\n <td>b</td>\n <td>2</td>\n <td>second entry</td>\n </tr>\n</table>\n" end end context "rendering a collection of complex objects (e.g. instances of an Active Record model)" do it "should render without further input" do things = [Factory.build(:thing), Factory.build(:thing, :name => "Whatchamacallit", :color => :red)] table = Table.new things table.to_html.should == "<table cellspacing='0' class='things'>\n <tr>\n <th>Name</th>\n <th>Color</th>\n </tr>\n <tr>\n <td>Thingamabob</td>\n <td>yellow</td>\n </tr>\n <tr>\n <td>Whatchamacallit</td>\n <td>red</td>\n </tr>\n</table>\n" end it "should render complex ojects correctly with all inputs set" do color_temperature = proc {|thing| [:yellow, :orange, :red].include?(thing.color) ? "warm" : "cold"} table = Table.new things, 'things-table', :cols => [:name, color_temperature], :headers => ["Name", "Color Temperature"] table.to_html.should == "<table cellspacing='0' class='things-table'>\n <tr>\n <th>Name</th>\n <th>Color Temperature</th>\n </tr>\n <tr>\n <td>thingamabob</td>\n <td>warm</td>\n </tr>\n <tr>\n <td>whatchamacallit</td>\n <td>warm</td>\n </tr>\n <tr>\n <td>gizmo</td>\n <td>cold</td>\n </tr>\n</table>\n" end # According Haml template code #----------------------------- # %table # %tr # %th Name # %th Reverse Name # %th Color Temperature # - @things.each |thing| do # %tr # %td= thing.name # %td= thing.name.reverse # %td.color-temp # - temp = [:yellow, :orange, :red].include?(thing.color) ? "warm" : "cold" # %span{:class => temp} # = temp + "!" it "should render complex ojects using other components" do table = Table.new(things, 'things-table', :headers => ["Name", "Color Temperature"], :cols => [ :name, proc {|thing| thing.name.reverse}, proc do |thing| temp = [:yellow, :orange, :red].include?(thing.color) ? "warm" : "cold" Span.new(temp + "!", :class => temp) end ]) table.to_html.should == "<table cellspacing='0' class='things-table'>\n <tr>\n <th>Name</th>\n <th>Color Temperature</th>\n </tr>\n <tr>\n <td>thingamabob</td>\n <td>bobamagniht</td>\n <td>\n <span class='warm'>\n warm!\n </span>\n \n </td>\n </tr>\n <tr>\n <td>whatchamacallit</td>\n <td>tillacamahctahw</td>\n <td>\n <span class='warm'>\n warm!\n </span>\n \n </td>\n </tr>\n <tr>\n <td>gizmo</td>\n <td>omzig</td>\n <td>\n <span class='cold'>\n cold!\n </span>\n \n </td>\n </tr>\n</table>\n" end # # it "should render using short hand helper functions" # pending {} # #tab = table(things, 'color-table', :cols => [ col(:name, 'Name'), col(nil, 'Reverse Name') {|thing| thing.name.reverse} ]) # #col(:title => 'Color Temperature', :class => 'color-temp') { |thing| # # temp = [:yellow, :orange, :red].include?(thing.color) ? "warm" : "cold" # # span(temp + "!", :class => temp) # #} # #tab.to_html.should == "not specified yet" # end end context "passing HTML attributes" do it "should forward attributes for headers" do table = Table.new things, :title => "my-things", :style => "padding: 10px", :class => "custom-class", :cellpadding => 0, :header_attrs => [{:class => 'name-header', :width => '200px'}, {:id => 'temp-col-header', :style => 'color: red'}] table.row_attrs = [{:class => 'head-row'}] + table.content.map {|thing| {:class => thing.name}} table.to_html.should == "<table cellpadding='0' cellspacing='0' class='my-things custom-class' style='padding: 10px'>\n <tr class='head-row'>\n <th class='name-header' width='200px'>Name</th>\n <th id='temp-col-header' style='color: red'>Color</th>\n </tr>\n <tr class='thingamabob'>\n <td>thingamabob</td>\n <td>yellow</td>\n </tr>\n <tr class='whatchamacallit'>\n <td>whatchamacallit</td>\n <td>red</td>\n </tr>\n <tr class='gizmo'>\n <td>gizmo</td>\n <td>blue</td>\n </tr>\n</table>\n" end end end <file_sep>/lib/active_component/config.rb # encoding: utf-8 module ActiveComponent # The module for all global ActiveComponent configurations module Config extend self @component_options = {} # The options hash for Haml when used within Rails. # See {file:HAML_REFERENCE.md#haml_options the Haml options documentation}. # # @return [{Symbol => Object}] attr_accessor :component_options def template_engine_options Haml::Template.options end def template_engine_options=(options) Haml::Template.options = options end template_engine_options[:format] ||= :html5 if Haml::Util.rails_env == "development" component_options[:validate_html] ||= true template_engine_options[:ugly] ||= false else component_options[:validate_html] ||= false end end end <file_sep>/lib/active_component.rb # encoding: utf-8 require 'active_support' require 'action_view' require 'haml' require 'haml/helpers/xss_mods' module ActiveComponent if defined? Rails::Railtie class Railtie < Rails::Railtie initializer "active_component.load_config" do require 'active_component/config' end initializer "active_component.template_handler_registration" do ActionView::Template.register_template_handler :act, TemplateHandler end end else require 'active_component/config' end HTML5_ELEMENTS = { :meta => [:base, :command, :link, :meta, :noscript, :script, :style, :title], :flow => [:a, :abbr, :address, :article, :aside, :audio, :b, :bdo, :blockquote, :br, :button, :canvas, :cite, :code, :command, :datalist, :del, :details, :dfn, :div, :dl, :em, :embed, :fieldset, :figure, :footer, :form, :h1, :h2, :h3, :h4, :h5, :h6, :header, :hgroup, :hr, :i, :iframe, :img, :input, :ins, :kbd, :keygen, :label, :map, :mark, :math, :menu, :meter, :nav, :noscript, :object, :ol, :output, :p, :pre, :progress, :q, :ruby, :samp, :script, :section, :select, :small, :span, :strong, :sub, :sup, :svg, :table, :textarea, :time, :ul, :var, :video, :wbr], :sectioning => [:article, :aside, :nav, :section], :heading => [:h1, :h2, :h3, :h4, :h5, :h6, :hgroup], :phrasing => [:abbr, :audio, :b, :bdo, :br, :button, :canvas, :cite, :code, :command, :datalist, :dfn, :em, :embed, :i, :iframe, :img, :input, :kbd, :keygen, :label, :mark, :math, :meter, :noscript, :object, :output, :progress, :q, :ruby, :samp, :script, :select, :small, :span, :strong, :sub, :sup, :svg, :textarea, :time, :var, :video, :wbr], :embedded => [:audio, :canvas, :embed, :iframe, :img, :math, :object, :svg, :video], :interactive => [:a, :button, :details, :embed, :iframe, :keygen, :label, :select, :textarea], :sectioning_roots => [:blockquote, :body, :details, :fieldset, :figure, :td], :form_associated => [:button, :fieldset, :input, :keygen, :label, :meter, :object, :output, :progress, :select, :textarea], :block_candidates => [:section, :nav, :article, :aside, :h1, :h2, :h3, :h4, :h5, :h6, :hgroup, :header, :footer, :address, :p, :pre, :blockquote, :div], :uncategorized => [:col, :colgroup, :dd, :dt, :figcaption, :head, :html, :legend, :li, :optgroup, :option, :param, :rp, :rt, :source, :summary, :tbody, :tfoot, :th, :thead, :tr] } EMPTY_ELEMENTS = [:area, :base, :br, :col, :command, :embed, :hr, :img, :input, :keygen, :link, :meta, :param, :source, :wbr] PHRASING_ELEMENTS = HTML5_ELEMENTS[:phrasing] - HTML5_ELEMENTS[:interactive] - HTML5_ELEMENTS[:embedded] - EMPTY_ELEMENTS - [:noscript, :time] + [:ins, :del] BLOCK_ELEMENTS = HTML5_ELEMENTS[:block_candidates] - HTML5_ELEMENTS[:sectioning] - HTML5_ELEMENTS[:sectioning_roots] - HTML5_ELEMENTS[:heading] - [:p, :pre] + [:head, :html, :hgroup] SECTION_ELEMENTS = HTML5_ELEMENTS[:sectioning] + HTML5_ELEMENTS[:sectioning_roots] - HTML5_ELEMENTS[:form_associated] HEADING_ELEMENTS = HTML5_ELEMENTS[:heading] - [:hgroup] # Embed # Table # List # p, pre # figure # title class ActiveComponentError < StandardError; end class InvalidHtmlError < ActiveComponentError; end # Generates a collection of tags wrapping content that is optionally printed using method(s) def print_contents(tag, content_or_contents, method_or_methods = nil, *flags_and_attributes) flags = [] attributes = {} # Collect all flags (non-Hash) and attributes (by merging all Hashs) for arg in flags_and_attributes arg.is_a?(Hash) ? attributes.merge!(arg) : flags << arg end # Create a callable printing procedure for the case # that its whole output should be wrapped with a tag printing_procedure = Proc.new do unless method_or_methods.present? # Print content(s) without using methods content_or_contents.transmogrify do |content| if flags.include? :wrap_whole_content # Write printed object to buffer (without tag) write_to_buffer print_object(content) else # Wrap printed object with a tag and write result to buffer tag_to_buffer(tag, print_object(content), attributes) end end else unless flags.include? :couple_methods_with_contents # Print content(s) using (fixed set of) method(s) content_or_contents.transmogrify do |content| method_or_methods.transmogrify do |method| if flags.include? :wrap_whole_content # Write printed object to buffer (without tag) write_to_buffer print_object(content, method) else # Wrap printed object with a tag and write result to buffer tag_to_buffer(tag, print_object(content, method), attributes) end end end else # Print contents using individually paired methods content_or_contents.transmogrify_with_index do |content, index| method = method_or_methods[index] if flags.include? :wrap_whole_content # Write printed object to buffer (without tag) write_to_buffer print_object(content, method) else # Wrap printed objects with a tag and write result to buffer tag_to_buffer(tag, print_object(content, method), attributes) end end end end end if flags.include? :wrap_whole_content # Wrap output of printing procedure with tag and write result to buffer tag_to_buffer(tag, attributes, &printing_procedure) else # Call printing procedure and write result to buffer printing_procedure.call end # Return buffer content buffer end # Wraps content(s) into a single tag, optionally using a method def wrap_contents(tag, content_or_contents, method_or_methods = nil, *flags_and_attributes) print_contents(tag, content_or_contents, method_or_methods, :wrap_whole_content, *flags_and_attributes) end # Wraps haml_tag and directly captures the output buffer product. # This should only be used if a single +haml_tag+ should be captured. # Note that capturing buffer content should be done as rare as possible for performance reasons. # For non-trivial content you might want to use `print_buffer { tag_to_buffer(:ul) { tag_to_buffer(:li, content) } }` instead. # # @param name [#to_s] The name of the tag # @param flags [Array<Symbol>] Haml end-of-tag flags # @param attributes [Hash] Hash of Haml (HTML) attributes # # @overload print_tag(name, *flags, attributes = {}) # @overload print_tag(name, text, *flags, attributes = {}) # @param text [#to_s] The text within the tag def print_tag(name, *rest) puts "warning: print_tag does not except blocks. Use print_buffer { tag_to_buffer(:ul) { tag_to_buffer(:li, content) } } instead" if block_given? print_buffer { tag(name, *rest) } end # Prints a single object, optionally using a method def print_object(object, method = nil) #logger = RAILS_DEFAULT_LOGGER #logger.info "\"print_object speaking. I am about to print Object: " + object.inspect + " Method: " + method.inspect + ". Over.\"" unless method.present? if object.respond_to? :call begin object.call.to_s # Haml buffers may be provided in callable form, but have to be captured rescue Haml::Error # Rescue is only successful if buffer available in current scope print_buffer { object.call } end else object.to_s # Each object responds to :to_s end else # If the given method can be invoked on the object, the result is returned if method.respond_to?(:to_sym) && object.respond_to?(method) object.send(method.to_sym).to_s # If the given method can be alled with the object, the result is returned elsif method.respond_to? :call # Call method with object if it takes at most 1 required parameter # Arity returns -n-1 if n > 0 optional parameters exist if method.arity == 1 || method.arity == -1 || method.arity == -2 method.call(object).to_s else raise ArgumentError, "Content is not printable. Too many (or no) parameters expected in the following method: " + method.inspect end else raise ArgumentError, "Content is not printable. Provide a Proc/Method that can be called with object or a method name that can be invoked on the object. Alternatively, do not provide a method argument so that the object's :to_html, :call, or :to_s method is called. Parameters given: Object: " + object.inspect + " Method: " + method.inspect end end end end $LOAD_PATH << File.expand_path(File.dirname(__FILE__)) require 'active_component/core_extensions' require 'active_component/base' # Load components require 'active_component/components/block' require 'active_component/components/empty_tag' require 'active_component/components/heading' require 'active_component/components/inline_tag' require 'active_component/components/section' require 'active_component/components/table' # Register Active Component template handler in Rails 2 app if defined? ActionView::TemplateHandlers extend ActionView::TemplateHandlers require 'active_component/template_handler' register_template_handler :act, ActiveComponent::TemplateHandler end <file_sep>/lib/active_component/components/inline_tag.rb # encoding: utf-8 class InlineTag < ActiveComponent::Base attr_accessor :tag_type # Content can be passed as a block def initialize(*args, &content_block) init_component(args, [:content, :title, :tag_type, :attributes], &content_block) # Defaults @tag_type ||= :span end def to_html if ActiveComponent::Config.component_options[:validate_html] raise InvalidHtmlError, "Inline tags must not have blocks as inner content." if content.includes_a? Block end wrap_contents(@tag_type, content, nil, @attributes) end def_html_sub_components ActiveComponent::PHRASING_ELEMENTS, self end <file_sep>/README.rdoc Active Component ================ Active Component introduces components into your Rails presentation layer. The use of components improves consistency and development speed through reuse and a new way of view code organization. Components are plain Ruby classes that are able to render themselves using a to_html method. Active Component provides several means that make it easy to write and use components. Example ======= **Active Component Template:** div 'kpi-report', :content => [ heading_with_label("in #{ Time.now.year }", "Group", 'group'), report_table(@coreprocesses, :headers => ["Core Processes"] + @companies.collect {|company| company.name}, :cols => [:name] + @companies.collect {|company| proc {|cp| progress_chart(cp, :reporting_company_id => company.id, :chart_type => :boxes)} } ) ] Each method represents a component. **Comparision: Same Template in ERB:** <div class="kpi_report"> <h1 class="content_header"> <span class="content_header_text"> <span class="label group_label">Group</span> <%= title("Umsetzungsstand der Ziele") %> in <%= Time.now.year %> <%= help_text %></span> </h1> <div class="content"> <div class="sub_content"> <table cellspacing="0"> <thead> <tr> <td width="80%">Core Processes</td> <% @companies.each do |t| %> <td><%= t.name %></td> <% end %> </tr> </thead> <% @coreprocesses.each do |cp| %> <tr class="line"> <td class="small_name_column"><%= cp.name %></td> <% @companies.each do |t| %> <td class="small_indicator_column"><%= scale_helper(cp, true, t.id, Time.now.year, groupwide) %></td> <% end %> </tr> <% end %> </table> </div> </div> </div> Copyright (c) 2010 <NAME>, released under the MIT license <file_sep>/spec/base_spec.rb # encoding: utf-8 describe ActiveComponent::Base do context "component initialization" do describe "html_class" do it "should include the hyphenized component title" do g = GreetingBox.new g.title = "Happy greeting box" g.instance_eval {[html_class].flatten}.should be_include 'happy-greeting-box' d = Div.new d.title = "Happy div" d.instance_eval {[html_class].flatten}.should be_include 'happy-div' end it "should include the class_name unless it is an html tag wrapper" do g = GreetingBox.new g.instance_eval {[html_class].flatten}.should be_include 'greeting-box' d = Div.new d.instance_eval {[html_class].flatten}.should_not be_include 'div' end end class NewsWidget < ActiveComponent::Base attr_accessor :author def initialize(*args, &content_block) init_component(args, [:content, :title, :author, :attributes], &content_block) end end describe "init_component" do context "custom component" do before :all do @news_content = "The pope claims that condoms are not necessarily evil. Where is this heading to?" # TODO support for special character removal pending #@news_title = "Scandal in the Vatican!" @news_title = "Scandal in the Vatican" @news_author = "<NAME>" @news_attributes = {:class => 'gossip', :title => 'click to read whole article'} end it "should set all parameters correctly when given in order" do n = NewsWidget.new @news_content, @news_title, @news_author, {:class => 'gossip'} n.content.should == @news_content n.title.should == @news_title n.author.should == @news_author n.attributes.should == {:class => ['scandal-in-the-vatican', 'news-widget', 'gossip']} end it "should set all parameters correctly when given as key value pairs" do n = NewsWidget.new :attributes => @news_attributes, :title => @news_title, :content => @news_content, :author => @news_author n.content.should == @news_content n.title.should == @news_title n.author.should == @news_author n.attributes.should == {:title => @news_attributes[:title], :class => ['scandal-in-the-vatican', 'news-widget', 'gossip']} end it "should set all parameters correctly when given in a mixed way" do n = NewsWidget.new @news_title, @news_author, :content => @news_content, :attributes => @news_attributes n.content.should == @news_content n.title.should == @news_title n.author.should == @news_author n.attributes.should == {:title => @news_attributes[:title], :class => ['scandal-in-the-vatican', 'news-widget', 'gossip']} end it "should prioritize content blocks over content arguments" do n = NewsWidget.new(:content => "ignorable") { @news_content } n.content.should == @news_content end it "should fill @attributes with remaining arguments of the last hash" do n = NewsWidget.new @news_title, :id => 'news', :content => @news_content, :class => @news_attributes[:class] n.content.should == @news_content n.title.should == @news_title n.attributes.should == {:id => 'news', :class => ['scandal-in-the-vatican', 'news-widget', 'gossip']} end end context "html wrapper component (grand-child of base)" do before :all do @bq_content = "It is better to be quotable than to be honest." @bq_title = "<NAME> on Quotations" @bq_attributes = {:class => 'quotes', :cites => "http://www.quotationspage.com/quote/368.html"} end it "should set all parameters correctly when given in order" do bq = Blockquote.new @bq_content, @bq_title, @bq_author, @bq_attributes bq.content.should == @bq_content bq.title.should == @bq_title bq.attributes.should == {:cites => @bq_attributes[:cites], :class => [@bq_title.hyphenize, 'quotes']} end it "should set all parameters correctly when given as key value pairs" do bq = Blockquote.new :attributes => @bq_attributes, :title => @bq_title, :content => @bq_content bq.content.should == @bq_content bq.title.should == @bq_title bq.attributes.should == {:cites => @bq_attributes[:cites], :class => [@bq_title.hyphenize, 'quotes']} end it "should set all parameters correctly when given in a mixed way" do bq = Blockquote.new @bq_title, :content => @bq_content, :attributes => @bq_attributes bq.content.should == @bq_content bq.title.should == @bq_title bq.attributes.should == {:cites => @bq_attributes[:cites], :class => [@bq_title.hyphenize, 'quotes']} end it "should prioritize content blocks over content arguments" do bq = Blockquote.new(:content => "ignorable") { @bq_content } bq.content.should == @bq_content end it "should fill attributes with remaining arguments of the last hash" do bq = Blockquote.new @bq_title, :cites => "http://www.quotationspage.com/quote/368.html", :content => @bq_content, :class => 'quotes' bq.content.should == @bq_content bq.title.should == @bq_title bq.attributes.should == {:cites => @bq_attributes[:cites], :class => [@bq_title.hyphenize, 'quotes']} end end end end context "tree node management" do it "should enable to add nodes as children" do a = Block.new b = Block.new("foo") c = Block.new("bar") a << b a << c a[b.object_id].should == b children = [] a.children {|child| children << child.node_name} children.should == [b.object_id, c.object_id] end end context "instantiation helpers" do it "should be available after creating a component" do class NewGreetingBox < ActiveComponent::Base; end ActiveComponent.instance_methods.map(&:to_sym).should be_include(:new_greeting_box) end # TODO: How to test this? it "should be available to ActionView and render output" # class GreetingBox < ActiveComponent::Base # def initialize(*args, &content_block); init_component(args, [:content], &content_block); end # def to_html; Span.new("Hello " + print_object(content), :class => 'greeting').to_html; end # end # ActiveComponent::TemplateHandler.new.instance_eval { compile(greeting_box("world")) }.should == "not specified yet" # end end end <file_sep>/spec/factories.rb # encoding: utf-8 class Thing attr_accessor :name, :color def attributes attr = ActiveSupport::OrderedHash.new attr[:name] = name attr[:color] = color attr end end Factory.define :thing do |t| t.name "Thingamabob" t.color :yellow end Factory.define :component_base, :class => ActiveComponent::Base do; end class GreetingBox < ActiveComponent::Base attr_accessor :content, :title, :attributes end <file_sep>/lib/active_component/components/heading.rb # encoding: utf-8 class Heading < ActiveComponent::Base attr_reader :level def level=(level) unless level.nil? raise ArgumentError, "heading_level must be numeric (given #{level.inspect} in heading #{@content})" unless level.is_a? Numeric puts "warning: heading_level should be an integer and between 1 and 6 (given #{level} in heading #{@content})" unless level.between?(1,6) @level = [[level.to_i, 6].min, 1].max end end def initialize(*args, &content_block) init_component(args, [:content, :title, :level, :attributes], &content_block) end def to_html @level ||= determine_level wrap_contents("h" + @level.to_s, content, nil, @attributes) end # Determines the heading level by adopting the siblings' one # or by determining the parent's one recursively def determine_level return 1 if is_root? return level if level.present? siblings_level or ( if Heading.has_parent_heading?(self) Heading.parent_heading(self).determine_level + 1 else 1 end ) end # Collects the level of sibling headings def siblings_level siblings.collect {|sib| sib.level if sib.is_a?(Heading)}.compact.min end # Retrieves the next Heading of the node hierarchy above a given node def Heading.parent_heading(node) raise ArgumentException, "Node has no heading parent." unless Heading.has_parent_heading?(node) node.parent.siblings.find_a(Heading) or Heading.parent_heading(node.parent) end # Checks whether a Heading exists in the node hierarchy above a given node def Heading.has_parent_heading?(node) !node.is_root? && ( node.parent.siblings.includes_a?(Heading) || Heading.has_parent_heading?(node.parent) ) end def_html_sub_components ActiveComponent::HEADING_ELEMENTS, self end <file_sep>/active_component.gemspec # Generated by jeweler # DO NOT EDIT THIS FILE DIRECTLY # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec' # -*- encoding: utf-8 -*- Gem::Specification.new do |s| s.name = %q{active_component} s.version = "0.1.2" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["<NAME>"] s.date = %q{2011-01-03} s.description = %q{Active Component introduces components into your Rails presentation layer. The use of components improves consistency and development speed through reuse and a new way of view code organization. Components are plain Ruby classes that are able to render themselves using a to_html method. Active Component provides several means that make it easy to write and use components.} s.email = %q{<EMAIL>} s.extra_rdoc_files = [ "LICENSE.txt", "README.rdoc" ] s.files = [ ".document", ".rspec", "Gemfile", "Gemfile.lock", "LICENSE.txt", "README.rdoc", "Rakefile", "VERSION", "active_component.gemspec", "init.rb", "lib/active_component.rb", "lib/active_component/base.rb", "lib/active_component/components/block.rb", "lib/active_component/components/empty_tag.rb", "lib/active_component/components/heading.rb", "lib/active_component/components/inline_tag.rb", "lib/active_component/components/section.rb", "lib/active_component/components/table.rb", "lib/active_component/config.rb", "lib/active_component/core_extensions.rb", "lib/active_component/template_handler.rb", "pkg/active_component-0.1.2.gem", "spec/active_component_spec.rb", "spec/active_component_spec_helper.rb", "spec/base_spec.rb", "spec/components/block_spec.rb", "spec/components/heading_spec.rb", "spec/components/section_spec.rb", "spec/components/table_spec.rb", "spec/core_extensions_spec.rb", "spec/factories.rb", "spec/rcov.opts", "spec/spec.opts", "spec/spec_helper.rb" ] s.homepage = %q{http://github.com/ChristianPeters/activecomponent} s.licenses = ["MIT"] s.require_paths = ["lib"] s.rubygems_version = %q{1.3.7} s.summary = %q{Build your views by assembling self-rendering components} s.test_files = [ "spec/active_component_spec.rb", "spec/active_component_spec_helper.rb", "spec/base_spec.rb", "spec/components/block_spec.rb", "spec/components/heading_spec.rb", "spec/components/section_spec.rb", "spec/components/table_spec.rb", "spec/core_extensions_spec.rb", "spec/factories.rb", "spec/spec_helper.rb" ] if s.respond_to? :specification_version then current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION s.specification_version = 3 if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then s.add_runtime_dependency(%q<activesupport>, [">= 0"]) s.add_runtime_dependency(%q<haml>, [">= 0"]) s.add_development_dependency(%q<rspec>, ["~> 2.3.0"]) s.add_development_dependency(%q<bundler>, ["~> 1.0.0"]) s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"]) s.add_runtime_dependency(%q<haml>, [">= 0"]) else s.add_dependency(%q<activesupport>, [">= 0"]) s.add_dependency(%q<haml>, [">= 0"]) s.add_dependency(%q<rspec>, ["~> 2.3.0"]) s.add_dependency(%q<bundler>, ["~> 1.0.0"]) s.add_dependency(%q<jeweler>, ["~> 1.5.2"]) s.add_dependency(%q<haml>, [">= 0"]) end else s.add_dependency(%q<activesupport>, [">= 0"]) s.add_dependency(%q<haml>, [">= 0"]) s.add_dependency(%q<rspec>, ["~> 2.3.0"]) s.add_dependency(%q<bundler>, ["~> 1.0.0"]) s.add_dependency(%q<jeweler>, ["~> 1.5.2"]) s.add_dependency(%q<haml>, [">= 0"]) end end <file_sep>/lib/active_component/components/block.rb # encoding: utf-8 class Block < ActiveComponent::Base attr_accessor :tag_type def initialize(*args, &content_block) init_component(args, [:content, :title, :tag_type, :attributes], &content_block) # Defaults @tag_type ||= :div end def to_html wrap_contents(@tag_type, content, nil, @attributes) end def_html_sub_components ActiveComponent::BLOCK_ELEMENTS, self end <file_sep>/lib/active_component/core_extensions.rb # encoding: utf-8 class Object # Transmogrify yields self to the given block by default def transmogrify(*ignored_args) yield self end # Wrapper for enumerable transmogrify def transmogrify_with_index(&block) transmogrify(:yield_index, &block) end alias :includes_a? :is_a? end class String # Performs same transformation as underscore, but with hyphens def hyphenize gsub(/::/, '/'). gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2'). gsub(/([a-z\d])([A-Z])/,'\1_\2'). tr("_", "-"). tr(" ", "-"). downcase end end class Symbol def to_class_constant to_s.camelize.constantize end end module Enumerable # Transmogrify yields each element to the given block def transmogrify(*options) if options.include? :yield_index each_with_index do |element, index| yield element, index end else each do |element| yield element end end end # Determines if enumerable contains an object of the specified class def includes_a?(klass) each do |e| return true if e.is_a? klass end false end # Returns the first object of the specified class contained in enumerable def find_a(klass) each do |e| return e if e.is_a? klass end nil end end # FIXME: There should be a better way to provide the module to ActionView. class ActionView::Base include ActiveComponent end if defined? ActiveSupport::CoreExtensions::Hash::ReverseMerge # Rails 2 module ActiveSupport::CoreExtensions::Hash::ReverseMerge alias :set_defaults :reverse_merge alias :set_defaults! :reverse_merge! end else # Rails 3 class Hash alias :set_defaults :reverse_merge alias :set_defaults! :reverse_merge! end end module Haml::Helpers alias :init_buffer :init_haml_helpers alias :print_buffer :capture_haml alias :tag_to_buffer :haml_tag alias :write_to_buffer :haml_concat alias :string_to_buffer :haml_concat end <file_sep>/lib/active_component/components/table.rb # encoding: utf-8 class Table < ActiveComponent::Base attr_accessor :cols, :headers, :row_attrs, :header_attrs, :field_attrs def initialize(*args) init_component(args, [:content, :title, :cols, :headers, :attributes, :row_attrs, :header_attrs, :field_attrs]) # Defaults if @title.nil? @title = content.first.class.to_s.hyphenize.pluralize @attributes[:class].to_a.unshift @title end if @cols.nil? && content.first.respond_to?(:attributes) @cols = content.first.attributes.keys @headers ||= @cols.collect {|col| col.to_s.humanize} end @attributes[:cellspacing] ||= 0 @row_attrs ||= {} @header_attrs ||= {} @field_attrs ||= {} end def to_html print_buffer do tag_to_buffer :table, @attributes do row_count = 0 unless @headers.blank? tag_to_buffer :tr, get_row_attrs(row_count) do @headers.each_with_index do |header, i| tag_to_buffer :th, header, get_header_attrs(i) end row_count = 1 end end content.each_with_index do |row, i| unless row.blank? tag_to_buffer :tr, get_row_attrs(row_count + i) do print_contents(:td, row, @cols, @field_attrs) end end end end end end private def get_attrs(attrs_collection, index = nil) attrs = attrs_collection[index] || attrs_collection attrs.is_a?(Hash) ? attrs : {} end def get_row_attrs(index = nil) get_attrs(@row_attrs, index) end def get_header_attrs(index = nil) get_attrs(@header_attrs, index) end end <file_sep>/spec/components/block_spec.rb # encoding: utf-8 describe Block do include ActiveComponent include Haml::Helpers before :each do @content = "It is better to be quotable than to be honest." @title = "<NAME> on Quotations" @tag_type = :blockquote @attributes = {:class => 'quotes', :cites => "http://www.quotationspage.com/quote/368.html"} end describe "initialize" do it "should assume :div as default block type" do block = Block.new { @content } block.tag_type.should == :div end it "should not be possible to overwrite tag_type for subclasses of Block" do for elem in ActiveComponent::BLOCK_ELEMENTS elem_class = elem.to_s.camelize.constantize block = elem_class.new(:tag_type => :block) { @content } block.tag_type.should == elem end end end describe "to_html" do it "should render nested blocks" do init_buffer block = Block.new @title, @tag_type, @attributes do [ Block.new(@title, :tag_type => :h1), Block.new(@content, :tag_type => :p), Block.new("Details", :tag_type => :aside) do print_buffer do tag_to_buffer :dl do tag_to_buffer :dt, "Author" tag_to_buffer :dd, "<NAME>" end end end ] end block.to_html.should == "<#{@tag_type} cites='#{@attributes[:cites]}' class='#{@title.hyphenize} block #{@attributes[:class]}'>\n <h1 class='block'>\n #{@title}\n </h1>\n <p class='block'>\n #{@content}\n </p>\n <aside class='details block'>\n <dl>\n <dt>Author</dt>\n <dd><NAME></dd>\n </dl>\n \n </aside>\n \n</#{@tag_type}>\n" end end end <file_sep>/spec/core_extensions_spec.rb # encoding: utf-8 #TODO transmogrify on more than 2 levels describe Object do context "transmogrify" do it "should yield self if its not enumerable" do block = Proc.new {|x| x.to_s.to_sym} obj = Object.new obj.transmogrify(&block).should eql(block.call(obj)) end end context "transmogrify_with_index" do it "should not differ from transmogrify" do block = Proc.new {|x| x.to_s.to_sym} obj = Object.new obj.transmogrify_with_index(&block).should eql(obj.transmogrify(&block)) end end end describe Enumerable do context "transmogrify" do before(:each) do @has_yielded = false @results = [] @block = Proc.new do |x| @results << x.to_s.to_sym @has_yielded = true end end it "should yield each element" do %w(a b c).transmogrify(&@block) @has_yielded.should be_true @results.should eql([:a, :b, :c]) end after(:each) do @has_yielded, @results, @block = nil end end context "transmogrify_with_index" do before(:each) do @has_yielded = false @results = {} @block = Proc.new do |elem, index| @results[index] = elem.to_s.to_sym end end it "should yield each element with index" do %w(a b c).transmogrify_with_index(&@block) @results.should == { 0 => :a, 1 => :b, 2 => :c } end after(:each) do @result, @results, @block = nil end end end
d81307ae552bbc9d601a755b2d5e79a16d761c10
[ "RDoc", "Ruby" ]
23
Ruby
ChristianPeters/active_component
7e9cf7042b7e8201f3907e0ed44dcaf1f9a7d8c3
d3ab39f2095a58464b5448384ce3820daf0c26b7
refs/heads/master
<repo_name>ChristopherOxley/CO2006MiniProject<file_sep>/readme.txt Version 1.0 // To Compile and Execute ///////////////////////// Add the src files to an eclipse project and run as "CORootController" Alternatively, to use the JUnit tests run as "JUnitTest" // Please Note ////////////// The App saves the state ONLY when you press EXIT on the main menu. This is intentional behavior primarily for testing, although, I acknowledge, if present in a shipping product this would not be acceptable behavior. We load template data on first launch (when there is no serialized objects), this is to make manual testing faster and easy to revert to a specific state. If the App detects appropriate files to load, the objects (state) are loaded from file instead. To reset the state, quit the App and delete the Trunk.dat and Developers.dat files that are created in the same folder as the src folder. The GUI kicks the user to the main menu if there are no more change requests to process in a given section. The GUI prevents users accessing areas where there are no change requests to process for a given section. // Assessment Criteria Compliance ///////////////////////////////// Client Acceptance Tests ** Scenario 1: "Create Change Request" ** Click create, Select an SCI, Select a Version, Add a problem and solution to the text boxes. Click save to complete change request. A message box summary will be displayed. The list of versions shown are ONLY baselines and NOT "versions". This can be verified by looking at the dummy data that is created when starting the App. Perceived compliance 100% ** scenario 2: ‘assess change request’ ** Select Assess, choose a change request, Decide if you want to approve or reject. Fill in Priority, Assign a developer and fill in a date, please observe the correct format. Click save. The form resets to allow you to repeat the process or until there are no more requests. At which point it kicks the user to the main menu. Alternatively, click back to go to the main menu. Perceived compliance 100% ** scenario 3: ‘complete change request’ ** Select a developer from the list, if they have change requests you will be allowed to proceed to the next view. Select a change request from the list, when you select complete, it automatically inserts todays date (makes logical sense). If there is another request, it gets displayed, alternatively you could choose another from the list. If there are no more remaining, you will be sent back to the main menu. Perceived compliance 95-100% as the date allocation is automatic.<file_sep>/src/GUIAssessChange.java import java.awt.Color; import java.awt.Component; import java.awt.Container; import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.Label; import java.awt.TextField; import java.awt.event.*; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import javax.sound.midi.ControllerEventListener; import javax.swing.*; import javax.swing.event.ListDataEvent; import javax.swing.event.ListDataListener; import javax.swing.text.html.MinimalHTMLWriter; public class GUIAssessChange extends JFrame implements ActionListener, ListDataListener { private CORootController controller; private JComboBox pendingRequests, developers; private JTextArea lblProblem, lblSolution; private ButtonGroup priorityButtonGroup, approvalButtonGroup; private JRadioButton btnPriorityHigh, btnPriorityMedium, btnPriorityLow, btnAccepted, btnRejected; private JButton btnBack, btnSave; private JTextField txtDate; public GUIAssessChange() { } public GUIAssessChange(CORootController controller) { this.setBounds(400, 0, 600, 800); // default size upon creation this.setController(controller); //allows the GUI interface with the controller this.createUI(); // sets up the UI for the JFrame, buttons etc. } private void createUI(){ Container cp = getContentPane(); cp.setLayout(new FlowLayout()); // The combo box uses an array of Strings to display the pending change // requests, we create this array by using the first 50 chars of each // requests problem attribute. String[] reqStub = new String[controller.getPendingChangeRequests().size()]; int index = 0; for (ChangeRequest request : controller.getPendingChangeRequests()) { reqStub[index] = request.getProblem().substring(0, Math.min(50, (request.getProblem().length()))); index++; } cp.add(createHeader("Select a Change Request:")); pendingRequests = new JComboBox(reqStub); pendingRequests.setSelectedIndex(-1); pendingRequests.addActionListener(this); cp.add(pendingRequests); cp.add(createHeader("Problem Details:")); lblProblem = new JTextArea(); lblProblem.setPreferredSize(new Dimension(580, 150)); cp.add(lblProblem); cp.add(createHeader("Suggested Solution:")); lblSolution = new JTextArea(); lblSolution.setPreferredSize(new Dimension(580, 150)); cp.add(lblSolution); cp.add(createHeader("Set Approval:")); // Setup the approval radio buttons btnAccepted = new JRadioButton("Accept"); btnRejected = new JRadioButton("Reject"); approvalButtonGroup = new ButtonGroup(); approvalButtonGroup.add(btnAccepted); approvalButtonGroup.add(btnRejected); btnAccepted.addActionListener(this); btnRejected.addActionListener(this); cp.add(btnAccepted); cp.add(btnRejected); cp.add(createHeader("Priority:")); // Setup the priority radio buttons btnPriorityHigh = new JRadioButton("High"); btnPriorityMedium = new JRadioButton("Med"); btnPriorityLow = new JRadioButton("Low"); priorityButtonGroup = new ButtonGroup(); priorityButtonGroup.add(btnPriorityHigh); priorityButtonGroup.add(btnPriorityMedium); priorityButtonGroup.add(btnPriorityLow); //btnPriorityMedium.setSelected(true); cp.add(btnPriorityHigh); cp.add(btnPriorityMedium); cp.add(btnPriorityLow); // Setup the developers combo box cp.add(createHeader("Assign Developer:")); developers = new JComboBox(); String[] devNames = new String[controller.getDevelopers().size()]; int devIndex = 0; for (Developer developer : controller.getDevelopers()) { devNames[devIndex] = developer.getName(); devIndex++; } developers = new JComboBox(devNames); developers.setSelectedIndex(-1); developers.addActionListener(this); cp.add(developers); // Completion Date cp.add(createHeader("Completion Date: dd/mm/yyyy")); txtDate = new JTextField(); txtDate.setPreferredSize(new Dimension(100, txtDate.getPreferredSize().height)); cp.add(txtDate); cp.add(createHeader(" ")); // Create back button btnBack = new JButton("Back"); btnBack.addActionListener(this); cp.add(btnBack); // Create save button btnSave = new JButton("Save"); btnSave.addActionListener(this); cp.add(btnSave); // Hide optional components this.btnPriorityHigh.setEnabled(false); this.btnPriorityMedium.setEnabled(false); this.btnPriorityLow.setEnabled(false); this.developers.setEnabled(false); this.txtDate.setEnabled(false); } public JLabel createHeader(String title){ JLabel lbl = new JLabel(title); lbl.setPreferredSize(new Dimension(this.getWidth() - 60, 30)); return lbl; } @Override public void actionPerformed(ActionEvent e) { // TODO Auto-generated method stub if (e.getSource() == this.pendingRequests) { String problemText = controller.getPendingChangeRequests().get(this.pendingRequests.getSelectedIndex()).getProblem(); String solutionText = controller.getPendingChangeRequests().get(this.pendingRequests.getSelectedIndex()).getSolution(); lblProblem.setText(problemText); lblSolution.setText(solutionText); controller.print(controller.getPendingChangeRequests()); } if (e.getSource() == this.btnAccepted) { this.btnPriorityHigh.setEnabled(true); this.btnPriorityMedium.setEnabled(true); this.btnPriorityLow.setEnabled(true); this.developers.setEnabled(true); this.txtDate.setEnabled(true); } if (e.getSource() == this.btnRejected) { this.btnPriorityHigh.setEnabled(false); this.btnPriorityMedium.setEnabled(false); this.btnPriorityLow.setEnabled(false); this.developers.setEnabled(false); this.txtDate.setEnabled(false); } if (e.getSource() == this.btnBack) { controller.popView(); } if (e.getSource() == this.btnSave) { // Check that change request is selected StringBuffer errorString = new StringBuffer("Error: \n"); boolean errorOcurred = false; if (this.pendingRequests.getSelectedIndex() < 0) { errorOcurred = true; errorString.append("Please select a change request.\n"); } // check if a priority is selected if (this.btnPriorityHigh.isSelected() == false && this.btnPriorityMedium.isSelected() == false && this.btnPriorityLow.isSelected() == false && this.btnAccepted.isSelected()) { errorOcurred = true; errorString.append("Please select a priority.\n"); } // check if approved or rejected if (this.btnAccepted.isSelected() == false && this.btnRejected.isSelected() == false) { errorOcurred = true; errorString.append("Please approve or reject the change request.\n"); } // check if a developer is selected if (this.developers.getSelectedIndex() < 0 && this.btnAccepted.isSelected()) { errorOcurred = true; errorString.append("Please assign a developer.\n"); } if (errorOcurred) { JOptionPane.showMessageDialog(this, errorString.toString()); }else{ ChangeRequest request = controller.getPendingChangeRequests().get(pendingRequests.getSelectedIndex()); String priority=null; String approval; Developer developer=null; Date deadlineDate = null; request.print(); if (btnAccepted.isSelected()) { developer = controller.getDevelopers().get(developers.getSelectedIndex()); request.setDev(developer); developer.addChangeRequest(request); if (btnPriorityHigh.isSelected()) { priority = ChangeRequest.PRIORITY_HIGH; } if (btnPriorityMedium.isSelected()) { priority = ChangeRequest.PRIORITY_MEDIUM; } if (btnPriorityLow.isSelected()) { priority = ChangeRequest.PRIORITY_LOW; } SimpleDateFormat dformat = new SimpleDateFormat("dd/MM/yyyy"); try { deadlineDate = dformat.parse(txtDate.getText()); } catch (ParseException e1) { e1.printStackTrace(); } approval = ChangeRequest.ASSESSMENT_APPROVED; }else { approval = ChangeRequest.ASSESSMENT_REJECTED; } controller.approveChangeRequest(request, developer, approval, priority, deadlineDate); //testing request.print(); Container cp = this.getContentPane(); for (Component c : cp.getComponents()) { cp.remove(c); c=null; } this.repaint(); this.createUI(); this.setVisible(true); request.print(); } if (controller.getPendingChangeRequests().size() == 0) { JOptionPane.showMessageDialog(this, "There are no pending change requests"); controller.popView(); } // present error if not filled correctly } } public void save(){ } public CORootController getController() { return controller; } public void setController(CORootController controller) { this.controller = controller; } @Override public void contentsChanged(ListDataEvent e) { // TODO Auto-generated method stub } @Override public void intervalAdded(ListDataEvent e) { // TODO Auto-generated method stub } @Override public void intervalRemoved(ListDataEvent e) { // TODO Auto-generated method stub } } <file_sep>/src/CORootController.java import static org.junit.Assert.*; import java.util.*; import javax.swing.*; import org.junit.Test; public class CORootController { // Main method, checks if files exist that represent serialized objects. If they do, // we load them, otherwise we create some test data which will be saved on exit. public static void main(String[] args) { String developersFileNameString = "developers"; String trunkFileNameString = "trunk"; CORootController controller; // Check if files exist, if so load otherwise load dummy data if (COFileManager.fileExists(developersFileNameString) && COFileManager.fileExists(trunkFileNameString)) { controller = new CORootController((Trunk)COFileManager.load(trunkFileNameString)) ; controller.setDevelopers((Vector<Developer>)COFileManager.load(developersFileNameString)); }else{ controller = CORootController.setupDummyData(); } controller.print(controller.getApprovedRequests(controller.getDevelopers().get(0))); GUIMenu menu = new GUIMenu(controller); controller.getViewStack().add(menu); } // The view stack stores JFrames as they are created, this allows us to // programmatically manage each "View" hiding previous views, showing next // and even jumping to the first view in the stack and automatically dispose // of unneeded views. private Vector<JFrame> viewStack; private Trunk trunk; private Vector<Developer> developers; public CORootController(){ } public CORootController(Trunk trunk){ setTrunk(trunk); setViewStack(new Vector<JFrame>()); setDevelopers(new Vector<Developer>()); } // Class method used purely to setup a dummy controller public static CORootController setupDummyData() { Trunk trunk = new Trunk(); // Create a new SCI and add dummy versions SCI sci1 = new SCI(); sci1.setName("My SCI"); trunk.addSCI(sci1); Version v11 = new Version(1.1, sci1); sci1.addVersion(v11); Version v12 = new Version(1.2, sci1); sci1.addVersion(v12); Baseline v13 = new Baseline(1.3, sci1); sci1.addVersion(v13); Version v14 = new Version(1.4, sci1); sci1.addVersion(v14); Baseline v15 = new Baseline(1.5, sci1); sci1.addVersion(v15); // Create a new SCI and add dummy versions SCI sci2 = new SCI(); sci2.setName("My Other SCI"); trunk.addSCI(sci2); Baseline v101 = new Baseline(1.01, sci2); sci2.addVersion(v101); Version v131 = new Version(1.31, sci2); sci2.addVersion(v131); Baseline v156 = new Baseline(1.56, sci2); sci2.addVersion(v156); Version v213 = new Version(2.13, sci2); sci2.addVersion(v213); // Create dummy change requests for given versions ChangeRequest cRequest = new ChangeRequest(); cRequest.setVersion(v101); cRequest.setProblem("Some stupid problem"); cRequest.setSolution("Fix the damn thing"); ChangeRequest anotherRequest = new ChangeRequest(); anotherRequest.setVersion(v13); anotherRequest.setProblem("How did that get in there?"); anotherRequest.setSolution("Sack the newbie"); ChangeRequest problemCentral = new ChangeRequest(); problemCentral.setVersion(v15); problemCentral.setProblem("Shit hit the fan..."); problemCentral.setSolution("Call superman"); // create a new controller for the dummy trunk readyt to return CORootController controller = new CORootController(trunk); // Add developers to the controller for assigning change requests to. Developer dev1 = new Developer("Chris"); Developer dev2 = new Developer("Steve"); Developer dev3 = new Developer("John"); controller.addDeveloper(dev1); controller.addDeveloper(dev2); controller.addDeveloper(dev3); return controller; } public Vector<SCI> getListOfSCIs(Trunk trunk){ return trunk.getSCIs(); } // Returns ALL baselines for a given SCI public Vector<Baseline> getBaselinesFromVSCI(SCI sci){ Vector<Baseline> baselines = new Vector<Baseline>(); for(Version v: sci.getVersions()){ // Only add a version if the version's class matches "Baseline" if(v.getClass() == Baseline.class){ baselines.add((Baseline)v); } } return baselines; } public Trunk getTrunk() { return trunk; } public void setTrunk(Trunk trunk) { this.trunk = trunk; } // Adding a JFrame to the viewStack public void pushView(JFrame frame){ // Hide the last frame, add the new one and show it. this.getViewStack().get(getViewStack().size()-1).setVisible(false); this.getViewStack().add(frame); frame.setVisible(true); } // Remove the topmost JFrame form the viewStack and show the previous one. public void popView(){ JFrame lastView = this.getViewStack().get(this.getViewStack().size()-1); this.getViewStack().remove(lastView); lastView.dispose(); JFrame newLastView = this.getViewStack().get(this.getViewStack().size()-1); newLastView.setVisible(true); } // Remove all but the first JFrame in the viewStack and make it visible public void popToRootView(){ while(this.getViewStack().size() > 1){ JFrame lastView = this.getViewStack().get(this.getViewStack().size()-1); this.getViewStack().remove(lastView); lastView.dispose(); } this.getViewStack().get(0).setVisible(true); } public Vector<JFrame> getViewStack() { return viewStack; } public void setViewStack(Vector<JFrame> viewStack) { this.viewStack = viewStack; } // Return all the change requests for every SCI in the trunk public Vector<ChangeRequest> getChangeRequests(){ Trunk trunk = this.getTrunk(); Vector<SCI> scis = this.getListOfSCIs(trunk); Vector<ChangeRequest> to_return = new Vector<ChangeRequest>(); for(SCI sci : scis){ Vector<Version> versions = sci.getVersions(); for(Version v: versions){ if(v.getClass() == Baseline.class){ Baseline b = (Baseline)v; Vector<ChangeRequest> requests = b.getChanges(); for(ChangeRequest r: requests){ to_return.add(r); } } } } return to_return; } // Return only the change requests that are "pending" public Vector<ChangeRequest> getPendingChangeRequests() { // Get ALL requests first, then iterate over each one and return a vector // for each change request that has a "null" assessment, that is it has // not been accepted or rejected. Vector<ChangeRequest> allRequests = getChangeRequests(); Vector<ChangeRequest> to_return = new Vector<ChangeRequest>(); for (ChangeRequest changeRequest : allRequests) { if (changeRequest.getAssessment() == null) { to_return.add(changeRequest); } } return to_return; } public Vector<ChangeRequest> getApprovedRequests(Developer dev){ Vector <ChangeRequest> allRequests = getChangeRequests(); Vector<ChangeRequest> to_return = new Vector<ChangeRequest>(); for (ChangeRequest changeRequest : allRequests) { if (changeRequest.getAssessment()!=null && changeRequest.isApproved() && changeRequest.getCompletionDate() == null && changeRequest.getDev().getName().equals(dev.getName())) { to_return.add(changeRequest); } } return to_return; } void print(Vector<ChangeRequest> requests){ for(ChangeRequest c: requests){ c.print(); } } public Vector<Developer> getDevelopers() { return developers; } public ChangeRequest createChangeRequest(String problem, String solution, Baseline bl){ ChangeRequest request = new ChangeRequest(); request.setProblem(problem); request.setSolution(solution); request.setVersion(bl); return request; } public ChangeRequest approveChangeRequest(ChangeRequest req, Developer dev, String assess, String priority, Date deadlineDate ){ req.setAssessment(assess); if (dev!=null) req.setDev(dev); if (priority!=null) req.setPriority(priority); if (deadlineDate!=null)req.setDeadlineDate(deadlineDate); return req; } public ChangeRequest completeChangeRequest(ChangeRequest request){ request.setCompletionDate(new Date()); return request; } public void setDevelopers(Vector<Developer> developers) { this.developers = developers; } public void addDeveloper(Developer developer) { this.developers.add(developer); } // Convenience method to save the state of the trunk, we also save the developers // as conceptually they do not belong as part of the trunk. public void saveState(){ COFileManager.save(this.getDevelopers(), "developers"); COFileManager.save(this.getTrunk(), "trunk"); } } <file_sep>/src/Baseline.java import java.io.Serializable; import java.util.*; public class Baseline extends Version implements Serializable{ private Vector<ChangeRequest> changes; public Baseline(){ } public Baseline(double versionNumber, SCI sci){ super(versionNumber, sci); changes = new Vector<ChangeRequest> (); } public Vector<ChangeRequest> getChanges(){ return this.changes; } public void addChange(ChangeRequest c){ this.changes.add(c); } public void removeChange(ChangeRequest c){ this.changes.remove(c); } } <file_sep>/src/ChangeRequest.java import java.io.Serializable; import java.util.Date; public class ChangeRequest implements Serializable { private Version version; private String problem, solution; private String assessment = null; private String priority = null; private Developer dev; private Date deadlineDate; private Date completionDate; public static final String PRIORITY_HIGH = "High"; public static final String PRIORITY_MEDIUM = "Medium"; public static final String PRIORITY_LOW = "Low"; public static final String ASSESSMENT_APPROVED = "Approved"; public static final String ASSESSMENT_REJECTED = "Rejected"; public ChangeRequest(){ } public Version getVersion() { return version; } // When we set the version to a change request, we also set the change // request on the given version. public void setVersion(Version version) { this.version = version; ((Baseline)(this.version)).addChange(this); } public String getSolution() { return solution; } public void setSolution(String solution) { this.solution = solution; } public String getProblem() { return problem; } public void setProblem(String problem) { this.problem = problem; } public void setAssessmentRejected(){ this.assessment = ASSESSMENT_REJECTED; } public void setAssessmentApproved(){ this.assessment = ASSESSMENT_APPROVED; } public void setAssessment(String ass){ this.assessment = ass; } public String getAssessment(){ return this.assessment; } public boolean isApproved(){ return this.getAssessment().equals(ASSESSMENT_APPROVED); } public Developer getDev() { return dev; } public void setDev(Developer dev) { this.dev = dev; dev.addChangeRequest(this); } public void print(){ System.out.println("Version Number: "+ this.version.getVersionNumber()); System.out.println("Problem: " +this.problem); System.out.println("Solution: " +this.solution); System.out.println("Priority: "+this.priority); System.out.println("Status: " +this.getAssessment()); if(this.dev != null){ System.out.println("Assigned to Developer: " + this.dev.getName()); }else{ System.out.println("Assigned to Developer: Not Assigned"); } if (this.deadlineDate == null){ System.out.println("No Deadline Set"); }else{ System.out.println("Deadline: "+ this.deadlineDate.toString()); } if (this.completionDate == null) { System.out.println("Not Completed"); }else { System.out.println("Completed On: "+ this.completionDate.toString()); } System.out.println(""); } public String getPriority() { return priority; } // We only allow the setting of priority indirectly to help ensure that // there are only 3 strings that can be set. public void setPriorityHigh(){ this.priority = PRIORITY_HIGH; } public void setPriorityMedium(){ this.priority = PRIORITY_MEDIUM; } public void setPriorityLow(){ this.priority = PRIORITY_LOW; } public void setPriority(String pri) { this.priority = pri; } public Date getCompletionDate() { return completionDate; } public void setCompletionDate(Date completionDate) { this.completionDate = completionDate; } public Date getDeadlineDate() { return deadlineDate; } public void setDeadlineDate(Date deadlineDate) { this.deadlineDate = deadlineDate; } } <file_sep>/src/COFileManager.java import java.io.*; public class COFileManager { public COFileManager() { // TODO Auto-generated constructor stub } // Takes any type of object and saves it to the specified filename and // adds the .dat file extension by default public static void save(Object o, String filename){ File file = new File(filename+".dat"); try { FileOutputStream outputStream = new FileOutputStream(file); ObjectOutputStream oos = new ObjectOutputStream(outputStream); oos.writeObject(o); } catch (Exception e) { e.printStackTrace(); } } // Takes the required filename (excluding extension) and loads the file // and returns the object serialized there. public static Object load(String filename) { File file = new File(filename+".dat"); try { FileInputStream iStream = new FileInputStream(file); ObjectInputStream ois = new ObjectInputStream(iStream); Object o = ois.readObject(); return o; } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } return null; } // Simple check to see if the file exists for any given filename (excluding // extension) public static boolean fileExists(String filename){ File file = new File(filename+".dat"); return file.exists(); } } <file_sep>/src/GUICompleteCR.java import java.awt.Component; import java.awt.Container; import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.Date; import javax.swing.JButton; import javax.swing.JComboBox; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JOptionPane; public class GUICompleteCR extends JFrame implements ActionListener { private CORootController controller; private Developer developer; private JButton btnBack, btnComplete; private JComboBox approvedRequestsBox; public GUICompleteCR() { } public GUICompleteCR(CORootController controller, Developer developer) { this.setBounds(400, 0, 600, 800); setController(controller); setDeveloper(developer); createUI(); } private void createUI(){ Container cp = getContentPane(); cp.setLayout(new FlowLayout()); String[] reqStub = new String[controller.getApprovedRequests(this.developer).size()]; int index = 0; for (ChangeRequest request : controller.getApprovedRequests(this.developer)) { reqStub[index] = request.getProblem().substring(0, Math.min(50, (request.getProblem().length()))); index++; } cp.add(createHeader("Select a Change Request:")); approvedRequestsBox = new JComboBox(reqStub); approvedRequestsBox.setSelectedIndex(0); approvedRequestsBox.addActionListener(this); cp.add(approvedRequestsBox); cp.add(createHeader("\"complete\" assigns the selected CR complete with current date and time")); // Create back button btnBack = new JButton("Back"); btnBack.addActionListener(this); cp.add(btnBack); // Create back button btnComplete = new JButton("Complete"); btnComplete.addActionListener(this); cp.add(btnComplete); } public JLabel createHeader(String title){ JLabel lbl = new JLabel(title); lbl.setPreferredSize(new Dimension(this.getWidth() - 60, 30)); return lbl; } @Override public void actionPerformed(ActionEvent e) { // TODO Auto-generated method stub if (e.getSource() == btnBack) { controller.popView(); } if (e.getSource() == btnComplete) { if (approvedRequestsBox.getSelectedIndex() >= 0) { ChangeRequest selectedRequest = controller.getApprovedRequests(developer).get(approvedRequestsBox.getSelectedIndex()); selectedRequest.print(); controller.completeChangeRequest(selectedRequest); selectedRequest.print(); } if (controller.getApprovedRequests(developer).size() == 0) { JOptionPane.showMessageDialog(this, "No more requests to complete"); controller.popToRootView(); }else { Container cp = this.getContentPane(); for (Component c : cp.getComponents()) { cp.remove(c); c=null; } this.repaint(); this.createUI(); this.setVisible(true); } } } public CORootController getController() { return controller; } public void setController(CORootController controller) { this.controller = controller; } public Developer getDeveloper() { return developer; } public void setDeveloper(Developer developer) { this.developer = developer; } } <file_sep>/src/Developer.java import java.io.Serializable; import java.util.*; public class Developer implements Serializable{ private String name; private Vector<ChangeRequest> changeRequests; public Developer() { } public Developer(String name){ changeRequests = new Vector<ChangeRequest>(); this.setName(name); } public String getName() { return name; } public void setName(String name) { this.name = name; } public Vector<ChangeRequest> getChangeRequests() { return changeRequests; } public void addChangeRequest(ChangeRequest req){ this.changeRequests.add(req); } public void removeChangeRequest(ChangeRequest req){ this.changeRequests.remove(req); } public void print(){ System.out.println(this.name); System.out.println("Number of Change Reguests: " + this.changeRequests.size()); } }
470b848e32ee1dbc9a0d7df5abe71c017bee31e9
[ "Java", "Text" ]
8
Text
ChristopherOxley/CO2006MiniProject
1cbbeb4827dac11314a03e3e405df4e17fbe942d
e49b5b2b3a9ee04952fd279656b1c239dfd7e274
refs/heads/main
<file_sep>// Day7.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include <exception> #include <fstream> #include <iostream> #include <map> #include <regex> #include <set> #include <string> #include <vector> class Bag { public: Bag (const std::string& colour) : colour_(colour) {} std::string colour_; std::map<std::string, int> contains_; }; class Solution { public: void loadRules(const std::string& filename = "puzzle_input.txt") { std::ifstream f(filename); if (!f.is_open()) { throw std::runtime_error("Failed to open file: " + filename); } std::string line; while (getline(f, line)) { std::smatch m; std::regex_search(line, m, std::regex("([a-z]+ [a-z]+)")); if (m.size() < 1) { throw std::runtime_error("Failed to parse rule: " + line); } Bag rule(m[1].str()); std::map<std::string, int> contains; while (std::regex_search(line, m, std::regex("([0-9]) ([a-z]+ [a-z]+)"))) { contains.insert(std::pair<std::string, int>(m[2].str(), stoi(m[1].str()))); line = m.suffix().str(); } rule.contains_ = contains; rules_.push_back(rule); } } void printRules() { for (auto b : rules_) { std::cout << b.colour_ << std::endl; for (auto r : b.contains_) { std::cout << "\t" << r.first << " " << r.second << std::endl; } } } std::set<std::string> getCarryOptions(const std::string& bag_colour) { std::set<std::string> set; for (const auto& r : rules_) { for (const auto& c : r.contains_) { if (0 == bag_colour.compare(c.first)) { auto rec_set = getCarryOptions(r.colour_); set.insert(rec_set.begin(), rec_set.end()); set.insert(r.colour_); } } } return set; } int countBagContents(const std::string& bag_colour) { int count = 1; for (const auto& r : rules_) { if (0 == bag_colour.compare(r.colour_)) { for (const auto& c : r.contains_) { count += c.second * countBagContents(c.first); } } } return count; } private: std::vector<Bag> rules_; }; int main() { try { Solution s; s.loadRules(); //s.printRules(); auto outer_bag_options = s.getCarryOptions("shiny gold"); std::cout << "Number of outmost bag options: " << outer_bag_options.size() << std::endl; std::cout << "Total number of bags (inclusive of outer bag - which is not required for answer): " << s.countBagContents("shiny gold") << std::endl; } catch (std::exception e) { std::cerr << e.what() << std::endl; } } <file_sep>// Day5.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include <algorithm> #include <exception> #include <fstream> #include <iostream> #include <string> #include <vector> class Solution { public: int getMaxSeatId(const std::string& filename = "puzzle_input.txt") { int max = -1; std::ifstream f(filename); if (f.is_open()) { std::string line; while (getline(f, line)) { max = std::max(max, seatId(line)); } } else { throw std::runtime_error("Failed to open file: " + filename); } return max; } int getEmtpySeat(const std::string& filename = "puzzle_input.txt") { std::vector<std::string> seats; std::ifstream f(filename); if (f.is_open()) { std::string line; while (getline(f, line)) { seats.push_back(line); } } std::sort(seats.begin(), seats.end(), [](const std::string& a, const std::string& b) { return seatId(a) < seatId(b); }); for (int i = 0; i < seats.size() - 1; ++i) { if (seatId(seats[i]) + 1 != seatId(seats[i + 1])) { return seatId(seats[i]) + 1; } } return -1; } private: static int seatId(const std::string& seat_code) { if (seat_code.size() != 10) { throw std::runtime_error("Seat code invalid length: " + seat_code); } int index = 0; int factor = 64; int row = 0; for (; index < 7; ++index) { if (seat_code[index] == 'B') { row += factor; } else if (seat_code[index] != 'F') { throw std::runtime_error("Unexpected character in seat code: " + seat_code[index]); } factor /= 2; } factor = 4; int seat = 0; for (; index < 10; ++index) { if (seat_code[index] == 'R') { seat += factor; } else if (seat_code[index] != 'L') { throw std::runtime_error("Unexpected character in seat code: " + seat_code[index]); } factor /= 2; } return row * 8 + seat; } }; int main() { try { Solution s; std::cout << "Max seat id: " << s.getMaxSeatId() << std::endl; std::cout << "Empty seat id: " << s.getEmtpySeat() << std::endl; } catch (std::exception e) { std::cerr << e.what() << std::endl; } } <file_sep>// Day1.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include <algorithm> #include <fstream> #include <iostream> #include <string> #include <vector> class Solution { public: Solution(const std::string& filename = "puzzle_input.txt") { loadData(filename); if (expense_report_.size() < 2) { throw std::runtime_error("Not enough expense data"); } sort(); } void printData() { for (const auto& d : expense_report_) { std::cout << d << " "; } std::cout << std::endl; } int answerPart1() { for (int i = 0; i < expense_report_.size() - 1; ++i) { for (int j = i + 1; j < expense_report_.size(); ++j) { if (expense_report_[i] + expense_report_[j] > 2020) { break; } if (expense_report_[i] + expense_report_[j] == 2020) { return expense_report_[i] * expense_report_[j]; } } } return -1; } int answerPart2() { for (int i = 0; i < expense_report_.size() - 2; ++i) { for (int j = i + 1; j < expense_report_.size(); ++j) { for (int k = j + 1; k < expense_report_.size(); ++k) { if (expense_report_[i] + expense_report_[j] + expense_report_[k] > 2020) { break; } if (expense_report_[i] + expense_report_[j] + expense_report_[k] == 2020) { return expense_report_[i] * expense_report_[j] * expense_report_[k]; } } } } return -1; } private: void loadData(const std::string& filename = "puzzle_input.txt") { std::ifstream f(filename); if (f.is_open()) { int num; while (f >> num) { expense_report_.push_back(num); } } f.close(); } void sort() { if (!sorted_) { std::sort(expense_report_.begin(), expense_report_.end()); } } private: std::vector<int> expense_report_; bool sorted_ = false; }; int main() { try { Solution s; s.printData(); std::cout << "Answer part 1: " << s.answerPart1() << std::endl; std::cout << "Answer part 2: " << s.answerPart2() << std::endl; } catch (std::exception e) { std::cout << e.what() << std::endl; } } <file_sep>// Day11.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include <fstream> #include <iostream> #include <string> #include <vector> class Solution { public: void load(const std::string& filename = "puzzle_input.txt") { layout_.clear(); // example input: // // L.LL.L // ..LL.. // .L.LL. // // target data structure: (add border) // // BBBBBBBB // BL.LL.LB // B..LL..B // B.L.LL.B // BBBBBBBB // std::ifstream f(filename); if (!f.is_open()) { throw std::runtime_error("Failed to open file: " + filename); } std::string line; // read in first line std::vector<char> row; if (getline(f, line)) { // dd top border for (int i = 0; i < line.size() + 2; ++i) { row.push_back('B'); } layout_.push_back(row); // add first row row.clear(); row.push_back('B'); for (auto c : line) { row.push_back(c); } row.push_back('B'); layout_.push_back(row); } // add middle rows while (getline(f, line)) { row.clear(); row.push_back('B'); for (auto c : line) { row.push_back(c); } row.push_back('B'); layout_.push_back(row); } // add bottom boarder row.clear(); int row_length = layout_.size() > 0 ? layout_[0].size() : 0; for (int i = 0; i < row_length; ++i) { row.push_back('B'); } layout_.push_back(row); } void print() { for (const auto& row : layout_) { for (auto c : row) { std::cout << c; } std::cout << std::endl; } } int part1() { int row_c = layout_.size(); int col_c = layout_[0].size(); auto tmp = layout_; bool changed = true; while (changed) { changed = false; for (int r = 1; r < row_c - 1; ++r) { for (int c = 1; c < col_c - 1; ++c) { char ch = getNext(r, c); tmp[r][c] = ch; if (ch != layout_[r][c]) { changed = true; } } } layout_ = tmp; } return countOccupied(); } int part2() { int row_c = layout_.size(); int col_c = layout_[0].size(); auto tmp = layout_; bool changed = true; while (changed) { changed = false; for (int r = 1; r < row_c - 1; ++r) { for (int c = 1; c < col_c - 1; ++c) { char ch = getNextPart2(r, c); tmp[r][c] = ch; if (ch != layout_[r][c]) { changed = true; } } } layout_ = tmp; } return countOccupied(); } private: char getNext(int row, int col) { if (layout_[row][col] == '.') { return '.'; } int occupied_c = 0; for (int r = row - 1; r < row + 2; ++r) { for (int c = col - 1; c < col + 2; ++c) { if (r == row && c == col) { continue; } if (layout_[r][c] == '#') { ++occupied_c; } } } if (layout_[row][col] == '#' && occupied_c > 3) { return 'L'; } if (layout_[row][col] == 'L' && occupied_c == 0) { return '#'; } return layout_[row][col]; } char getNextPart2(int row, int col) { if (layout_[row][col] == '.') { return '.'; } int occupied_c = 0; for (auto d : directions) { if (lineOfSiteIsOccupied(row, col, d)) { ++occupied_c; } } if (layout_[row][col] == '#' && occupied_c > 4) { return 'L'; } if (layout_[row][col] == 'L' && occupied_c == 0) { return '#'; } return layout_[row][col]; } enum class Direction { N, NE, E, SE, S, SW, W, NW }; bool lineOfSiteIsOccupied(int row, int col, Direction d) { int r_delta = 0; int c_delta = 0; switch (d) { case Direction::N: r_delta = -1; break; case Direction::NE: r_delta = -1; c_delta = 1; break; case Direction::E: c_delta = 1; break; case Direction::SE: r_delta = 1; c_delta = 1; break; case Direction::S: r_delta = 1; break; case Direction::SW: r_delta = 1; c_delta = -1; break; case Direction::W: c_delta = -1; break; case Direction::NW: c_delta = -1; r_delta = -1; break; default: throw std::runtime_error("Unknown direction"); } row += r_delta; col += c_delta; while (layout_[row][col] != 'B') { if (layout_[row][col] == 'L') { return false; } if (layout_[row][col] == '#') { return true; } row += r_delta; col += c_delta; } return false; } int countOccupied() { int count = 0; for (auto row : layout_) { for (auto c : row) { if (c == '#') { ++count; } } } return count; } private: std::vector<Direction> directions{ Direction::N, Direction::NE, Direction::E, Direction::SE, Direction::S, Direction::SW, Direction::W, Direction::NW }; std::vector<std::vector<char>> layout_; }; int main() { Solution s; s.load(); std::cout << "Answer to part 1: " << s.part1() << std::endl; s.load(); std::cout << "Answer to part 2: " << s.part2() << std::endl; } <file_sep>// Day16.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include <fstream> #include <iostream> #include <sstream> #include <string> #include <regex> struct Field { std::string name_; int low_min_; int low_max_; int high_min_; int high_max_; Field(const std::string& extract_from_string) { auto pos = extract_from_string.find(":"); name_ = extract_from_string.substr(0, pos); std::smatch sm; auto ranges = extract_from_string.substr(pos, extract_from_string.size()); std::regex_search(ranges, sm, std::regex{ "([0-9]+)-([0-9]+) or ([0-9]+)-([0-9]+)" }); if (sm.size() != 5) { throw std::runtime_error("Failed to pass field ranges: " + extract_from_string); } low_min_ = stoi(sm[1].str()); low_max_ = stoi(sm[2].str()); high_min_ = stoi(sm[3].str()); high_max_ = stoi(sm[4].str()); } bool valid(int i) const { if (i < low_min_) { return false; } if (i <= low_max_) { return true; } if (i < high_min_) { return false; } if (i <= high_max_) { return true; } return false; } }; std::ostream& operator<<(std::ostream& os, const Field& f) { return os << f.name_ << ": " << f.low_min_ << "-" << f.low_max_ << " or " << f.high_min_ << "-" << f.high_max_; } struct Ticket { std::vector<int> data_; Ticket() {} Ticket(const std::string& extract_from_string) { std::stringstream ss(extract_from_string); int i; char ch; while (true) { if (ss >> i) { data_.push_back(i); if (ss >> ch) { if (ch == ',') continue; else break; } else break; } else { throw std::runtime_error("Invalid ticket: " + extract_from_string); } } } }; std::ostream& operator<<(std::ostream& os, const Ticket& f) { for (auto v : f.data_) { os << v << " "; } return os; } class Solution { public: int part1() { load(); int sum = 0; for (const auto& t : tickets_) { bool t_condition = true; for (auto d : t.data_) { bool condition = false; for (auto r : rules_) { if (r.valid(d)) { condition = true; break; } } if (!condition) { t_condition = false; sum += d; } } if (t_condition) { valid_tickets_.push_back(t); } } return sum; } int part2() { int col_count = my_ticket_.data_.size(); for (int i = 0; i < col_count; ++i) { std::cout << "Column " << i << ":" << std::endl; for (const auto& r : rules_) { bool condition = true; for (const auto& vt : valid_tickets_) { if (!r.valid(vt.data_[i])) { condition = false; break; } } if (condition) { std::cout << "\t" << r << std::endl; } } } return -1; } private: void load(const std::string& filename = "puzzle_input.txt") { std::ifstream f(filename); if (!f.is_open()) { throw std::runtime_error("Failed to open file: " + filename); } std::string line; // load rules while (getline(f, line)) { if (0 == line.size()) break; rules_.push_back(line); } // load my ticket getline(f, line); if (0 != line.compare("your ticket:")) { throw std::runtime_error("Invalid input data. Last line processed: " + line); } getline(f, line); my_ticket_ = Ticket(line); // load nearby tickets getline(f, line); getline(f, line); if (0 != line.compare("nearby tickets:")) { throw std::runtime_error("Invalid input data. Last line processed: " + line); } while (getline(f, line)) { if (0 == line.size()) break; tickets_.push_back( Ticket(line)); } } void printData() { for (auto& r : rules_) { std::cout << r << std::endl; } std::cout << "My ticket: " << std::endl; std::cout << my_ticket_ << std::endl; std::cout << "Nearby tickets: " << std::endl; for (auto& t : tickets_) { std::cout << t << std::endl; } std::cout << "Valid tickets: " << std::endl; for (auto& t : valid_tickets_) { std::cout << t << std::endl; } } private: std::vector<Field> rules_; Ticket my_ticket_; std::vector<Ticket> tickets_; std::vector<Ticket> valid_tickets_; }; int main() { try { Solution s; std::cout << "Part 1: " << s.part1() << std::endl; std::cout << "Part 2: " << s.part2() << std::endl; } catch (std::exception& e) { std::cerr << e.what() << std::endl; } } <file_sep>// Day6.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include <cstdio> #include <exception> #include <fstream> #include <iostream> #include <map> #include <set> #include <string> class Solution { public: static int processFormsPart1(const std::string& filename = "puzzle_input.txt") { std::ifstream f(filename); if (!f.is_open()) { throw std::runtime_error("Unable to open file: " + filename); } std::string line; std::set<char> group_answers; int sum = 0; while (getline(f, line)) { if (line.empty()) { sum += group_answers.size(); group_answers.clear(); } else { for (char c : line) { group_answers.insert(c); } } } sum += group_answers.size(); return sum; } static int processFormsPart2(const std::string& filename = "puzzle_input.txt") { std::ifstream f(filename); if (!f.is_open()) { throw std::runtime_error("Unable to open file: " + filename); } std::string line; std::map<char, int> group_answers; int group_size = 0; int sum = 0; while (getline(f, line)) { if (line.empty()) { for (auto it = group_answers.begin(); it != group_answers.end(); ++it) { if (it->second == group_size) { ++sum; } } group_answers.clear(); group_size = 0; } else { ++group_size; for (char c : line) { auto it = group_answers.find(c); if (it != group_answers.end()) { it->second++; } else { group_answers.insert(std::pair<char, int>(c, 1)); } } } } for (auto it = group_answers.begin(); it != group_answers.end(); ++it) { if (it->second == group_size) { ++sum; } } return sum; } }; int main() { try { std::cout << "Part 1: " << Solution::processFormsPart1() << std::endl; std::cout << "Part 2: " << Solution::processFormsPart2() << std::endl; } catch (std::exception e) { std::cerr << e.what() << std::endl; } } <file_sep>// Day3.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include <fstream> #include <iostream> #include <string> #include <sstream> #include <vector> class Solution { struct Slope { int horizontal; int vertical; }; public: Solution(const std::string& filename = "puzzle_input.txt") { load(filename); print(); } int answerPart1(int right = 3, int down = 1) { int v = 0; int h = 0; int v_endstate = geology_.size(); int count = 0; while (v < v_endstate) { count += geology_[v][h]; v += down; h += right; if (h >= geology_[0].size()) { h -= geology_[0].size(); } } return count; } int answerPart2(std::vector<Slope> slopes = { {1, 1}, {3, 1}, {5, 1}, {7, 1}, {1, 2} }) { int product = 1; for (auto s : slopes) { product *= answerPart1(s.horizontal, s.vertical); } return product; } private: void load(const std::string& filename) { if (!geology_.empty()) { geology_.clear(); } std::ifstream f(filename); if (f.is_open()) { std::string line; while (getline(f, line)) { std::vector<int> row; for (auto c : line) { switch (c) { case '.': row.push_back(0); break; case '#': row.push_back(1); break; default: throw std::runtime_error("Invalid input character: " + c); } } geology_.push_back(row); } } } void print() { for (auto row : geology_) { for (auto square : row) { std::cout << square << " "; } std::cout << std::endl; } std::cout << std::endl; } private: std::vector<std::vector<int>> geology_; }; int main() { try { Solution s; std::cout << "Answer to part 1: " << s.answerPart1() << std::endl; std::cout << "Answer to part 2: " << s.answerPart2() << std::endl; } catch (std::exception e) { std::cout << e.what() << std::endl; } } <file_sep>// Day2.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include <algorithm> #include <fstream> #include <iostream> #include <string> #include <sstream> #include <vector> class Solution { struct Policy { int min; int max; char letter; std::string password; }; public: int answerPart1(const std::string& filename = "puzzle_input.txt") { int count = 0; std::ifstream f(filename); if (f.is_open()) { std::string line; while(getline(f, line)) { auto p = parse(line); // std::cout << p.min << " " << p.max << " " << p.letter << " " << p.password << std::endl; if (check1(p)) { ++count; } } } f.close(); return count; } int answerPart2(const std::string& filename = "puzzle_input.txt") { int count = 0; std::ifstream f(filename); if (f.is_open()) { std::string line; while (getline(f, line)) { auto p = parse(line); if (check2(p)) { ++count; } } } f.close(); return count; } private: Policy parse(std::string& line) { std::stringstream ss(line); int min, max; char dash, letter, colon; std::string password; ss >> min >> dash >> max >> letter >> colon >> password; if (dash != '-') { throw std::runtime_error("Unexpected policy format: " + std::to_string(min) + dash + std::to_string(max)); } if (colon != ':') { throw std::runtime_error("Unexpected policy format: " + letter + colon + password); } return { min, max, letter, password }; } bool check1(Policy& policy) { int count = 0; for (auto c : policy.password) { if (c == policy.letter) { ++count; } } return (count >= policy.min) && (count <= policy.max); } bool check2(Policy& policy) { return (policy.password[policy.min - 1] == policy.letter) ^ (policy.password[policy.max - 1] == policy.letter); } }; int main() { try { Solution s; std::cout << "Answer part 1: " << s.answerPart1() << std::endl; std::cout << "Answer part 2: " << s.answerPart2() << std::endl; } catch (std::exception e) { std::cout << e.what() << std::endl; } } <file_sep>// Day8.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include <fstream> #include <iostream> #include <string> #include <vector> #include <set> struct Instruction { std::string operation; int argument; }; class Solution { public: void loadProgram(const std::string& filename = "puzzle_input.txt") { std::ifstream f(filename); if (!f.is_open()) { throw std::runtime_error("Failed to open file: " + filename); } std::string instruction; int argument; while (f >> instruction) { f >> argument; program_.push_back({ instruction, argument }); } } void printProgram() { for (const auto& i : program_) { std::cout << i.operation << " " << i.argument << std::endl; } } int run() { success_ = false; int sum = 0; std::set<int> set; int i = 0; // index while (true) { if (i == program_.size()) { success_ = true; return sum; } auto it = set.find(i); if (it != set.end()) { return sum; } else { set.insert(i); } if (0 == program_[i].operation.compare("acc")) { sum += program_[i].argument; ++i; } else if (0 == program_[i].operation.compare("jmp")) { i += program_[i].argument; } else { ++i; } } } int fixProgram() { for (int i = 0; i < program_.size(); ++i) { flipOperation(i); auto accumulator = run(); if (success_) { return accumulator; } flipOperation(i); // change operation back } } private: void flipOperation(int i) { if (0 == program_[i].operation.compare("jmp")) { program_[i].operation = "nop"; } else if (0 == program_[i].operation.compare("nop")) { program_[i].operation = "jmp"; } } private: std::vector<Instruction> program_; bool success_ = false; }; int main() { try { Solution s; s.loadProgram(); //s.printProgram(); std::cout << "Accumulator value at start of infinite loop: " << s.run() << std::endl; std::cout << "Accumulator value at of corrected program: " << s.fixProgram() << std::endl; } catch (std::exception e) { std::cerr << e.what() << std::endl; } } <file_sep>// Day10.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include <algorithm> #include <fstream> #include <iostream> #include <map> #include <string> #include <vector> class Solution { public: void load(const std::string& filename = "puzzle_input.txt") { std::ifstream f(filename); if (!f.is_open()) { throw std::runtime_error("Failed to open file: " + filename); } int a; while (f >> a) { adapters_.push_back(a); } adapters_.push_back(*std::max_element(adapters_.begin(), adapters_.end()) + 3); // my device is modelled as the final adapter } int part1() { std::sort(adapters_.begin(), adapters_.end()); int previous = 0; int count_3 = 0; int count_1 = 0; for (auto& a : adapters_) { if (a - previous == 3) { ++count_3; } else if (a - previous == 1) { ++count_1; } else { throw std::runtime_error("Unexpected gap between adapter values. Current: " + std::to_string(a) + " Previous: " + std::to_string(previous)); } previous = a; } return count_1 * count_3; } int part2() { std::sort(adapters_.begin(), adapters_.end()); result_ = 0; // avoid repeat runs chaning result rec(0, 0); return result_; } void rec(int previous, int index) { if (index == adapters_.size()) { ++result_; } for (int i = index; i < adapters_.size(); ++i) { for (int j = i; j < adapters_.size(); ++j) { if (adapters_[j] - previous < 4) { rec(adapters_[j], j + 1); } break; } } } unsigned long long part2Optimized() { std::sort(adapters_.begin(), adapters_.end()); std::map<int, unsigned long long> routes_to; routes_to.insert(std::pair<int, int>(0, 1)); for (auto a : adapters_) { routes_to.insert(std::pair<int, int>(a, 0)); } int previous = 0; unsigned long long path_to_previous = 1; for (int i = 0; i < adapters_.size(); ++i) { auto it = routes_to.find(previous); path_to_previous = it->second; for (int j = i; j < adapters_.size(); ++j) { if (adapters_[j] - previous < 4) { auto jt = routes_to.find(adapters_[j]); jt->second += path_to_previous; } else { break; } } previous = adapters_[i]; } return routes_to.find(adapters_.back())->second; } private: std::vector<int> adapters_; size_t result_; }; int main() { Solution s; s.load(); std::cout << "Answer to part 1: " << s.part1() << std::endl; //std::cout << "Answer to part 2: " << s.part2() << std::endl; std::cout << "Answer to part 2: " << s.part2Optimized() << std::endl; } <file_sep>// Day9.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include <deque> #include <fstream> #include <iostream> #include <string> #include <vector> class Solution { public: int part1(int preamble_length, const std::string& filename = "puzzle_input.txt") { std::ifstream f(filename); if (!f.is_open()) { throw std::runtime_error("Failed to open file: " + filename); } int num; // load initial preamble for (int i = 0; i < preamble_length; ++i) { f >> num; previous_nums_.push_back(num); } // find first invalid num while (f >> num) { if (!validate(num)) { return num; } previous_nums_.pop_front(); previous_nums_.push_back(num); } } int part2(int target, const std::string& filename = "puzzle_input.txt") { std::ifstream f(filename); if (!f.is_open()) { throw std::runtime_error("Failed to open file: " + filename); } // load data int num; while (f >> num) { nums_.push_back(num); } // find contiguous sum for (int i = 0; i < nums_.size(); ++i) { int sum = 0; for (int j = i; j < nums_.size(); ++j) { sum += nums_[j]; if (sum > target) { break; } if (sum == target) { int min = INT_MAX; int max = INT_MIN; while (target != 0) { min = std::min(min, nums_[j]); max = std::max(max, nums_[j]); target -= nums_[j]; --j; } return min + max; } } } } private: bool validate(int num) { for (int i = 0; i < previous_nums_.size(); ++i) { for (int j = i+1; j < previous_nums_.size(); ++j) { int sum = previous_nums_[i] + previous_nums_[j]; if (num == sum) { return true; } if (j == 0 && sum > num) { break; } } } return false; } private: std::deque<int> previous_nums_; std::vector<int> nums_; }; int main() { Solution s; std::cout << "Part 1: " << s.part1(25) << std::endl; std::cout << "Part 2: " << s.part2(756008079) << std::endl; } <file_sep>// Day4.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include <exception> #include <fstream> #include <iostream> #include <set> #include <string> #include <regex> class Solution { public: Solution(const std::string& filename = "puzzle_input.txt") { validate(filename); } private: void validate(const std::string& filename) { std::ifstream f(filename); if (f.is_open()) { int basic = 0; int extensive = 0; std::string line; std::string passport; while (getline(f, line, '\n')) { if (line.empty()) { if (isValidBasic(passport)) { ++basic; if (isValidExtensive(passport)) { ++extensive; } } passport.clear(); } else { passport += line + " "; } } if (line.empty()) { if (isValidBasic(passport)) { ++basic; if (isValidExtensive(passport)) { ++extensive; } } passport.clear(); } std::cout << "Basic check: " << basic << std::endl; std::cout << "Extensive check: " << extensive << std::endl; } else { throw std::runtime_error("Failed to open file: " + filename); } } bool isValidBasic(const std::string& passport) { std::smatch m; std::regex_search(passport, m, std::regex("byr:")); if (m.size() < 1) return false; std::regex_search(passport, m, std::regex("iyr:")); if (m.size() < 1) return false; std::regex_search(passport, m, std::regex("eyr:")); if (m.size() < 1) return false; std::regex_search(passport, m, std::regex("hgt:")); if (m.size() < 1) return false; std::regex_search(passport, m, std::regex("hcl:")); if (m.size() < 1) return false; std::regex_search(passport, m, std::regex("ecl:")); if (m.size() < 1) return false; std::regex_search(passport, m, std::regex("pid:")); if (m.size() < 1) return false; return true; } bool isValidExtensive(const std::string& passport) { std::smatch m; std::regex_search(passport, m, std::regex("byr:([0-9]+)")); if (m.size() < 1) return false; if (std::stoi(m[1]) < 1920 || std::stoi(m[1]) > 2002) { return false; } std::regex_search(passport, m, std::regex("iyr:([0-9]+)")); if (m.size() < 1) return false; if (std::stoi(m[1]) < 2010 || std::stoi(m[1]) > 2020) { return false; } std::regex_search(passport, m, std::regex("eyr:([0-9]+)")); if (m.size() < 1) return false; if (std::stoi(m[1]) < 2020 || std::stoi(m[1]) > 2030) { return false; } std::regex_search(passport, m, std::regex("hgt:([0-9]+)cm")); if (m.size() < 1) { std::regex_search(passport, m, std::regex("hgt:([0-9]+)in")); if (m.size() < 1) return false; if (std::stoi(m[1]) < 59 || std::stoi(m[1]) > 76) { return false; } } else { if (std::stoi(m[1]) < 150 || std::stoi(m[1]) > 193) { return false; } } std::regex_search(passport, m, std::regex("hcl:(#[0-9|a-f]*)")); if (m.size() < 1) { return false; } if (m[1].str().size() != 7) { return false; } std::set<std::string> valid_colours{ "amb", "blu", "brn", "gry", "grn", "hzl", "oth" }; int count = 0; for (auto c : valid_colours) { int index; int pos = 0; while ((index = passport.find("ecl:" + c, pos)) != std::string::npos) { count++; pos = index + 1; } } if (count != 1) { return false; } std::regex_search(passport, m, std::regex("pid:([0-9]*)")); if (m.size() < 1) { return false; } if (m[1].str().size() != 9) { return false; } return true; } }; int main() { try { Solution s; } catch (std::exception e) { std::cerr << e.what() << std::endl; } } <file_sep>// Day12.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include <fstream> #include <iostream> #include <string> #include <vector> class SolutionPart1 { enum class Direction { N, W, S, E }; std::vector<Direction> directions_{ Direction::N, Direction::W, Direction::S, Direction::E }; // anti-clockwise ordering std::string to_string(Direction d) { switch (d) { case Direction::N: return "North"; break; case Direction::W: return "West"; break; case Direction::S: return "South"; break; case Direction::E: return "East"; break; default: throw std::runtime_error("to_string: Unknown direction."); } } public: int run(const std::string& filename = "puzzle_input.txt") { std::ifstream f(filename); if (!f.is_open()) { throw std::runtime_error("Failed to open file: " + filename); } Direction d = Direction::E; int pos_N = 0; int pos_E = 0; char action; int value; while (f >> action >> value) { if (action == 'L' || action == 'R') { d = changeDirection(d, action, value); continue; } switch (action) { case 'N': pos_N += value; break; case 'S': pos_N -= value; break; case 'E': pos_E += value; break; case 'W': pos_E -= value; break; case 'F': switch (d) { case Direction::N: pos_N += value; break; case Direction::S: pos_N -= value; break; case Direction::E: pos_E += value; break; case Direction::W: pos_E -= value; break; default: throw std::runtime_error("part1: Unknown direction."); } break; default: throw std::runtime_error("Unknown action: " + action); } } return abs(pos_N) + abs(pos_E); } private: Direction changeDirection(Direction current, char action, int value) { int i = value / 90; int c = 0; switch (current) { case Direction::N: c = 0; break; case Direction::W: c = 1; break; case Direction::S: c = 2; break; case Direction::E: c = 3; break; default: throw std::runtime_error("changeDirection: Unknown direction."); } if (action == 'L') { return directions_[(c + i) % directions_.size()]; // rotate anti-clockwise } return directions_[(4 + c - i) % directions_.size()]; // rotate clockwise } }; class SolutionPart2 { enum class Direction { N, W, S, E }; std::vector<Direction> directions_{ Direction::N, Direction::W, Direction::S, Direction::E }; // anti-clockwise ordering std::string to_string(Direction d) { switch (d) { case Direction::N: return "North"; break; case Direction::W: return "West"; break; case Direction::S: return "South"; break; case Direction::E: return "East"; break; default: throw std::runtime_error("to_string: Unknown direction."); } } public: int run(const std::string& filename = "puzzle_input.txt") { std::ifstream f(filename); if (!f.is_open()) { throw std::runtime_error("Failed to open file: " + filename); } int pos_N = 0; int pos_E = 0; int wp_N = 1; int wp_E = 10; char action; int value; while (f >> action >> value) { if (action == 'L' || action == 'R') { rotateWaypoint(wp_N, wp_E, action, value); continue; } switch (action) { case 'N': wp_N += value; break; case 'S': wp_N -= value; break; case 'E': wp_E += value; break; case 'W': wp_E -= value; break; case 'F': pos_N += wp_N * value; pos_E += wp_E * value; break; default: throw std::runtime_error("Unknown action: " + action); } } return abs(pos_N) + abs(pos_E); } private: void rotateWaypoint(int& wp_N, int& wp_E, char action, int value) { int c = 0; if (value == 180) { wp_N *= -1; wp_E *= -1; return; } if ((value == 90 && action == 'L') || (value == 270 && action == 'R')) { auto tmp = wp_N; wp_N = wp_E ; wp_E = -1 * tmp; return; } if ((value == 90 && action == 'R') || (value == 270 && action == 'L')) { auto tmp = wp_N; wp_N = -1 * wp_E; wp_E = tmp; return; } throw std::runtime_error("rotateWaypoint: Unknown action/value: " + action + std::string("/") + std::to_string(value) ); } }; int main() { try { SolutionPart1 s1; std::cout << "Answer to part 1: " << s1.run() << std::endl; SolutionPart2 s2; std::cout << "Answer to part 2: " << s2.run() << std::endl; } catch (std::exception e) { std::cerr << e.what() << std::endl; } }
d19f471019eb49b7d8b6533a5e4ac3ca1354d1f6
[ "C++" ]
13
C++
Hephaestuz/AdventOfCode2020
b8b73ceafd6a294b87e730ab2002edc674c7a94c
e73c688c88fc113cbdd4bb8a1b2e758d0cbb216f
refs/heads/master
<repo_name>SinisaGrujic/MMS-CapstoneProject<file_sep>/return.php <?php session_start(); if (array_key_exists("id", $_COOKIE) && $_COOKIE ['id']) { $_SESSION['id'] = $_COOKIE['id']; } if (array_key_exists("id", $_SESSION)) { include("connection.php"); $query_booking = "SELECT * FROM `booking` WHERE user_id = ".mysqli_real_escape_string($link, $_SESSION['id']).""; $query_name = "SELECT * FROM `users` WHERE id = ".mysqli_real_escape_string($link, $_SESSION['id'])." LIMIT 1"; $result_booking = mysqli_query($link, $query_booking); $result_name = mysqli_query($link, $query_name); $query_table = "SELECT * FROM `vehicle_at_markers` WHERE Registration is NULL "; $result_table = mysqli_query($link, $query_table); }else { header("Location: login.php"); } include("header.php"); ?> <style> html { background: url(mybooking.jpg) no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; } table, td, th { border: 1px solid #66af6f; } table { border-collapse: collapse; margin: 0px auto; width: 75%; } td { text-align: center; padding: 5px; width: 75px; color: #444444; } th { background-color: #66af6f; text-align: center; padding: 5px; color: #444444; } h4 { color: #444444; } </style> <div class="container" id="homePageContainer"> <title> Return vehicle</title> <nav class="navbar navbar-light bg-faded navbar-fixed-top"> <a class="navbar-brand" href="#">Return vehicle</a> <div class="pull-xs-right"> <a href ='login.php?logout=1'> <button class="btn btn-success-outline" type="submit">Logout</button></a> </div> <div class="pull-xs-right"> <a href ='index_test.php'> <button class="btn btn-success-outline" type="submit">Map</button></a> </div> <div class="pull-xs-right"> <a href ='myBooking.php'> <button class="btn btn-success-outline" type="submit">Back</button></a> </div> </nav> <?php $row = mysqli_fetch_assoc($result_name)?> <h4>Hello, <?php echo $row['first_name']; ?>!</h4> <p style="color:#444444;"><strong>click an address to return:</strong></p> </div> <div class="container-fluid" id="containerLoggedInPage"> <div class="row"> <div class="medium-12 large-12 columns"> <form method="GET" action="return_success.php"> <table class="stack"> <thead> <tr> <th width="200">Parking address</th> </tr> </thead> <tbody> <?php while($row_table = mysqli_fetch_assoc($result_table)) : ?> <tr> <td> <input class="btn btn-success" type="submit" name="submit" value="<?php echo $row_table['address']; ?>"> </td> </tr> <?php endwhile ?> </tbody> </table> </form> </div> </div> </div> <?php include("footer.php"); ?> <file_sep>/book_vehicle.php <?php session_start(); $error = ""; $success= ""; if (array_key_exists("id", $_COOKIE) && $_COOKIE ['id']) { $_SESSION['id'] = $_COOKIE['id']; } if (array_key_exists("Registration", $_COOKIE) && $_COOKIE ['Registration']) { $_SESSION['Registration'] = $_COOKIE['Registration']; } echo"<br><br><br>"; if (array_key_exists("id", $_SESSION)) { include("connection.php"); //query for user name $query_name = "SELECT * FROM `users` WHERE id = ".mysqli_real_escape_string($link, $_SESSION['id'])." LIMIT 1"; $result_name = mysqli_query($link, $query_name); if (array_key_exists("submit", $_POST)){ if (!$_POST['dateFrom']) { $error .= "You have to select a start date<br>"; } if (!$_POST['dateTo']) { $error .= "You have to select a end date<br>"; } if (!$_POST['time']) { $error .= "You have to select a time<br>"; } if ($error != "") { $error = "<p>There were error(s) in your form:</p>".$error; } else{ if($_POST['search'] == '1'){ echo '<br>'; echo 'Booking info has stored to booking database: <br>'; echo 'User ID: '; echo $_SESSION['id']; echo '<br>From: '; echo $_POST['dateFrom']; echo '<br>To: '; echo $_POST['dateTo']; echo '<br>Time: '; echo $_POST['time']; $id = $_SESSION['id']; $df = $_POST['dateFrom']; $dt = $_POST['dateTo']; $t = $_POST['time']; $query = "INSERT INTO `booking` (`user_id`,`start_date`, `end_date`,`time`) VALUES ('$id', '$df', '$dt', '$t')"; $result = mysqli_query($link, $query); } } } }else { header("Location: login.php"); } include("header.php"); ?> <div id="error"><?php if ($error!="") { echo '<div class="alert alert-danger" role="alert">'.$error.'</div>'; } ?></div> <div id="error"><?php if ($success!="") { echo '<div class="alert alert-success" role="alert">'.$success.'</div>'; } ?></div> <link rel="stylesheet" href="css/foundation.css"> <link rel="stylesheet" href="css/default.css"> <link rel="stylesheet" href="css/default.date.css"> <title>confirm booking</title> <nav class="navbar navbar-light bg-faded navbar-fixed-top"> <a class="navbar-brand" >Confirm booking</a> <div class="pull-xs-right"> <a href ='login.php?logout=1'> <button class="btn btn-success-outline" type="submit">Logout</button></a> </div> <div class="pull-xs-right"> <a href ='booking.php'> <button class="btn btn-success-outline" type="submit">Back</button></a> </div> </nav> <br> <br> <div class="row"> <div class="medium-12 large-12 columns"> <?php $row = mysqli_fetch_assoc($result_name)?> <h4>Hello, <?php echo $row['first_name']; ?>!</h4> <?php echo $row['email'];?> <div class="medium-2 columns">BOOKING FOR:</div> <br> <br> <?php $row_car_info = mysqli_fetch_assoc($result_table)?> <div class="medium-2 columns">Make:</div> <?php echo $row_car_info['markers_id'];?> <div class="medium-1 columns"><b><?php echo $row_car_info['Make']; ?></b></div> <br> <br> <div class="medium-2 columns">Model:</div> <div class="medium-1 columns"><b><?php echo $row_car_info['Model']; ?></b></div> <br> <br><div class="medium-2 columns">Booking Start date:</div> <div class="medium-1 columns"><b><?php echo $dateFrom; ?></b></div> <br> <br><div class="medium-2 columns">Booking Start time:</div> <div class="medium-1 columns"><b><?php echo $time; ?></b></div> <br> <br><div class="medium-2 columns">Booking End date:</div> <div class="medium-1 columns"><b><?php echo $dateTo; ?></b></div> <br> <br><div class="medium-2 columns">Damage Cover:</div> </div> </div> <br> <br> <br> <br> <?php include("footer.php"); ?> <file_sep>/public/index_test.php <?php session_start(); if (array_key_exists("logout", $_GET)) { unset($_SESSION); setcookie("id", "", time() - 60*60); $_COOKIE["id"] = ""; session_destroy(); } if (array_key_exists("id", $_COOKIE) && $_COOKIE ['id']) { $_SESSION['id'] = $_COOKIE['id']; } if (array_key_exists("id", $_SESSION)) { include("connection.php"); $query_name = "SELECT * FROM `users` WHERE id = ".mysqli_real_escape_string($link, $_SESSION['id'])." LIMIT 1"; $result_name = mysqli_query($link, $query_name); $query_booking = "SELECT * FROM `booking` WHERE status = 'Active'"; $result_booking = mysqli_query($link, $query_booking); $booking_active_check = mysqli_num_rows($result_booking); // echo 'active exists: '; // echo $booking_active_check; $i = 0; if($booking_active_check > 0){ while($i < $booking_active_check){ # set region date_default_timezone_set('Australia/Melbourne'); $get_date = mysqli_fetch_assoc($result_booking); # get real current time $ct $ct = date('Y-m-d H:i:s', time()); # get db start time $dbs $dbs = $get_date['start']; # get db end time $dbe $dbe= $get_date['end']; // echo '<br><br>'; // echo $i.'=========='.$get_date['booking_id'].'=========='.$i; // echo '<br>'; // echo "current time : "; // echo $ct ; // echo '<br>'; // echo "db start time : "; // echo $dbs ; // echo '<br>'; // echo "db end time : "; // echo $dbe ; // echo '<br>'; if($ct >= $dbs and $ct < $dbe){ // echo '$ct > $dbs and $ct < $ dbe'; // echo '<br>'; $rego = $get_date['vehicle_rego']; $query_update = "UPDATE `vehicle_at_markers` SET `Available` = '0' WHERE Registration = '$rego'"; $result_update = mysqli_query($link, $query_update); } // echo $i.'=========='.$rego.'=========='.$i; # if($ct < $dbs){ good } # if($ct > $dbs and $ct < $ dbe){update available to 0} # if($ct > $dbe and available == 0) { message: user over due/cancel=> update available==>1 and status=>cancelled} $i++; } } } //$ids = "'<script>$jump</script>'"; // //if (array_key_exists('submit', $_POST)) { // // $query_name = "SELECT `id` FROM `vehicle_at_markers`"; // $result_name = mysqli_query($link, $query_name); // // // // // // // if($_POST['booking']){ // // // header("Location: booking_confirmation.php"); //// $query_name = "SELECT * FROM `users` WHERE id = ".mysqli_real_escape_string($link, $_SESSION['id'])." LIMIT 1"; //// $result_name = mysqli_query($link, $query_name); //// //// $row = mysqli_fetch_assoc($result_name); // $vamID = $_GET['vehicle_id']; // //// //// //// $_SESSION['lastname'] = $row['last_name']; // // }else{ // // // } //} ?> <!-- Helios by HTML5 UP html5up.net | @ajlkn Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) --> <head> <title>Click 'N' Go</title> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <link rel="stylesheet" href="assets/css/main.css" /> <style> #map { width:100%; height:100%; } body,html { width: 100%; height: 100%; } #test { display: none; } #header { background: #DDDDDD; } </style> </head> <body> <div id="header" style = "height = 0px; padding-top: 20px;height: 0px;";> <!-- Nav --> <nav id="nav"> <ul> <li><a href="index.php">Home</a></li> <li><a href="myBooking.php">My Booking</a></li> <li><a href="contactUs.php">Contact Us</a></li> <?php $row = mysqli_fetch_assoc($result_name); $name = $row['first_name']; if(!isset($_SESSION['id'])) { echo '<li><a href="login.php">Login/Register</a></li>'; } else { echo '<li><a>hello, '.$name.'! </a></li>'; echo '<li><a href="index_test.php?logout=1">Logout</a></li>'; } ?> </ul> </nav> </div> <div id="map"></div> <p id="demo"></p> <script type="text/javascript"> var customLabel = { red: { label: 'Red' }, grey: { label: 'Grey' }, green:{ label:'Green' } }; function initMap() { var map = new google.maps.Map(document.getElementById('map'), { center: new google.maps.LatLng(-37.8133954, 144.9651374), zoom: 14.7, styles:[ {featureType: 'poi', elementType: 'all', stylers: [{visibility: 'off'}] }, {featureType: 'transit', elementType: 'all', stylers: [{visibility: 'off'}] }, ], streetViewControl: false, mapTypeControl: false, fullscreenControl: false }); var myLocation = new google.maps.Marker({ clickable: false, icon: new google.maps.MarkerImage('//maps.gstatic.com/mapfiles/mobile/mobileimgs2.png', new google.maps.Size(22,22), new google.maps.Point(0,18), new google.maps.Point(11,11)), shadow: null, zIndex: 999, map: map, }); if (navigator.geolocation) navigator.geolocation.getCurrentPosition(function(position) { pos = { lat:position.coords.latitude, lng: position.coords.longitude }; console.log(pos); myLocation.setPosition(pos); myLocationCircle.setCenter(pos); }, function(error){ 'Error: The Geolocation service failed.'; }); /* function success(pos) { crd = pos.coords; console.log('Your current position is:'); console.log(`Latitude : ${crd.latitude}`); console.log(`Longitude: ${crd.longitude}`); console.log(`More or less ${crd.accuracy} meters.`); return pos; } var myPosition = new navigator.geolocation.getCurrentPosition(success); console.log(myposition.coords.latlng);*/ //var me = new google.maps.LatLng(pos.coords.latitude, pos.coords.longitude); //myLocation.setPosition(me); //}, function(error) { // 'Error: The Geolocation service failed.'; //}); //var myLocationLat = myLocation.getPosition().lat(); //var myLocationLng = myLocation.getPosition().lng(); //var locationTest = new CurrentLocation(); //console.log(locationTest); var myLocationCircle = new google.maps.Circle({ strokeColor:'#4683ea', strokeOpacity: 0.6, strokeWeight: 2, fillColor: '#4683ea', fillOpacity: 0.35, map: map, radius: 300, clickable: false }); // Change this depending on the name of your PHP or XML file downloadUrl('https://capstonecarshare.tk/vehicle_testing.php', function(data) { var xml = data.responseXML; var markers = xml.documentElement.getElementsByTagName('vehicle_marker'); Array.prototype.forEach.call(markers, function(markerElem, i) { var rego = markerElem.getAttribute('registration'); var make = markerElem.getAttribute('make'); var model = markerElem.getAttribute('model'); var seats = markerElem.getAttribute('seats'); var description = markerElem.getAttribute('description'); var type = markerElem.getAttribute('type'); var available = markerElem.getAttribute('available'); var rating = parseFloat(markerElem.getAttribute('rating')); var point = new google.maps.LatLng( parseFloat(markerElem.getAttribute('lat')), parseFloat(markerElem.getAttribute('lng'))); var icon = customLabel[type] || {}; var marker = new google.maps.Marker({ map: map, position: point, title: make + ' ' +model }); //var markerCluster = new MarkerCluster(map,marker{imagePath: 'https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m'}); /*if(google.maps.geometry.spherical.computeDistanceBetween(marker.getPosition(),myLocationCircle.getCenter())<= myLocationCircle.radius()){ console.log('=> is in radius'); }*/ var contentString = '<form method="GET" action = "booking.php">'+ '<div id="content">'+ '<div id="siteNotice">'+ '</div>'+ '<h1 id="firstHeading" class="firstHeading">'+ make+ ' '+ model+ '</h1>'+ '<div id="bodyContent">'+ '<br>'+ '<p>'+ description+ '</p>'+ '<br>'+ '<p>'+ "Seats:" + seats+ '</p>'+ '<p>'+ "Rating:"+ rating+ "/5"+ '</p>'+ `<input type="hidden" name="vamId" value="${i+1}" >`+ '<input type="submit" name="submit_type" value = "book">'+ '</div>'+ '</div>'+ '</form>'; var greyContent = '<form method="GET" action = "return_success.php">'+ '<div>'+ '<div id="siteNotice">'+ '</div>'+ '<br>'+ '<h1 id="firstHeading" class="firstHeading">'+ 'This spot is empty, you can park here'+ '</h1>'+ '<br>'+ `<input type="hidden" name="vamID" value="${i+2}" >`+ '<input type="submit" name="submit" value = "park here">'+ '</button>'+ '</div>'+ '</form>'; if (rego == ''){ marker.setIcon('https://capstonecarshare.tk/car-grey.png'); var parkWindow = new google.maps.InfoWindow({ content:greyContent, maxWidth: 150 }); marker.addListener('click', function(){ parkWindow.open(map, marker); }); }else{ marker.setIcon('https://capstonecarshare.tk/car-green.png'); var infoWindow = new google.maps.InfoWindow({ content:contentString, maxWidth: 150 }); marker.addListener('click', function(){ infoWindow.open(map, marker); }); } if(available != 1 && available != ''){ marker.setIcon('https://capstonecarshare.tk/car-red.png'); var infoWindow = new google.maps.InfoWindow({ content:contentString, maxWidth: 150 }); marker.addListener('click', function(){ infoWindow.open(map, marker); }); } }); }); } function downloadUrl(url, callback) { var request = window.ActiveXObject ? new ActiveXObject('Microsoft.XMLHTTP') : new XMLHttpRequest; request.onreadystatechange = function() { if (request.readyState == 4) { request.onreadystatechange = doNothing; callback(request, request.status); } }; request.open('GET', url, true); request.send(null); } function doNothing() {} </script> <script async defer src="https://maps.googleapis.com/maps/api/js?key=<KEY>&callback=initMap"> </script> <!--Scripts --> <script src="https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/markerclusterer.js"></script> <script src="assets/js/jquery.min.js"></script> <script src="assets/js/jquery.dropotron.min.js"></script> <script src="assets/js/jquery.scrolly.min.js"></script> <script src="assets/js/jquery.onvisible.min.js"></script> <script src="assets/js/skel.min.js"></script> <script src="assets/js/util.js"></script> <script src="assets/js/main.js"></script> <script src="https://maps.googleapis.com/maps/api/js?libraries=geometry"></script> </body><file_sep>/public/login.php <?php session_start(); $error = ""; $success= ""; if (array_key_exists("logout", $_GET)) { unset($_SESSION); setcookie("id", "", time() - 60*60); $_COOKIE["id"] = ""; session_destroy(); } else if ((array_key_exists("id", $_SESSION) AND $_SESSION['id']) OR (array_key_exists("id", $_COOKIE) AND $_COOKIE['id'])) { header("Location: index_test.php"); } if (array_key_exists("submit", $_POST)) { include("connection.php"); if (!$_POST['email']) { $error .= "An email address is required<br>"; } if (!$_POST['password']) { $error .= "A password is required<br>"; } if ($error != "") { $error = "<p>There were error(s) in your form:</p>".$error; } else { if ($_POST['signUp'] == '1') { $query = "SELECT id FROM `users` WHERE email = '".mysqli_real_escape_string($link, $_POST['email'])."' LIMIT 1"; $result = mysqli_query($link, $query); if (mysqli_num_rows($result) > 0) { $error = "That email address is taken."; } else { $query = "INSERT INTO `users` (`first_name`, `last_name`,`email`, `password`, `phoneNo`) VALUES ('".mysqli_real_escape_string($link, $_POST['first_name'])."', '".mysqli_real_escape_string($link, $_POST['last_name'])."', '".mysqli_real_escape_string($link, $_POST['email'])."', '".mysqli_real_escape_string($link, $_POST['password'])."', '".mysqli_real_escape_string($link, $_POST['phone_no'])."')"; if (!mysqli_query($link, $query)) { $error = "<p>Could not sign you up - please try again later.</p>"; echo '<br>'; echo $_POST['first_name']; echo '<br>'; echo $_POST['last_name']; echo '<br>'; echo $_POST['email']; echo '<br>'; echo $_POST['password']; echo '<br>'; echo $_POST['phone_no']; } else { $query = "UPDATE `users` SET password = '".md5(md5(mysqli_insert_id($link)).$_POST['password'])."' WHERE id = ".mysqli_insert_id($link)." LIMIT 1"; #$id = mysqli_insert_id($link); mysqli_query($link, $query); $success .= "Sign up Successful! <br>"; } } } else { $query = "SELECT * FROM `users` WHERE email = '".mysqli_real_escape_string($link, $_POST['email'])."'"; $result = mysqli_query($link, $query); $row = mysqli_fetch_array($result); $query_admin = "SELECT * FROM `admin` WHERE admin_email = '".mysqli_real_escape_string($link, $_POST['email'])."'"; $result_admin = mysqli_query($link, $query_admin); $row_admin = mysqli_fetch_array($result_admin); if($_POST['email'] == "<EMAIL>" || $_POST['email'] == "<EMAIL>"){ // admin_check if(isset($row_admin)){ if ($_POST['password'] == $row_admin['<PASSWORD>password']) { $_SESSION['id'] = $row['id']; #if (isset($_POST['stayLoggedIn']) AND $_POST['stayLoggedIn'] == '1') { setcookie("id", $row['id'], time() + 60*60*24*365); #} header("Location: admin.php"); }else { $error = "That email/password combination could not be found."; } } else { $error = "That email/password combination could not be found."; } }else{ //$error = "testing false"; // user_check if (isset($row)) { $hashedPassword = md5(md5($row['id']).$_POST['password']); if ($hashedPassword == $row['password']) { $_SESSION['id'] = $row['id']; #if (isset($_POST['stayLoggedIn']) AND $_POST['stayLoggedIn'] == '1') { setcookie("id", $row['id'], time() + 60*60*24*365); #} header("Location: index_test.php"); } else { $error = "That email/password combination could not be found."; } } else { $error = "That email/password combination could not be found."; } } } } } ?> <?php include("header.php"); ?> <div class="container" id="homePageContainer"> <h1>Car Sharing</h1> <p><strong>Wanna book for your own car?</strong></p> <div id="error"><?php if ($error!="") { echo '<div class="alert alert-danger" role="alert">'.$error.'</div>'; } ?></div> <div id="error"><?php if ($success!="") { echo '<div class="alert alert-success" role="alert">'.$success.'</div>'; } ?></div> <style> /* The message box is shown when the user clicks on the password field */ h1, p { color: grey; } #message { display:none; background: #000000; color: #ffffff; position: relative; /*padding: 20px;*/ /*margin-top: 10px;*/ } #message p { /*padding: 10px 35px;*/ font-size: 12px; } /* Add a green text color and a checkmark when the requirements are right */ .valid { color: green; } .valid:before { position: relative; left: -35px; content: "✔"; } /* Add a red text color and an "x" when the requirements are wrong */ .invalid { color: red; } .invalid:before { position: relative; left: -35px; content: "✖"; } .btn-success { color: #fff; background-color: #df7366; border-color: #df7366; transition: background-color 0.35s ease-in-out, color 0.35s ease-in-out, border-bottom-color 0.35s ease-in-out; } .btn-success:hover, .btn-success:focus{ background-color: #ef8376; border-color: #ef8376; } </style> <title> login/register</title> <form method="post" id = "signUpForm"> <p>Interested? Sign up now.</p> <!-- first name --> <fieldset class="form-group"> <input class="form-control" type="first_name" name="first_name" placeholder="First Name" pattern="^[A-Za-z]{0,10}" oninvalid="this.setCustomValidity('Please Enter valid first name')" oninput="setCustomValidity('')" required> </fieldset> <!-- last name --> <fieldset class="form-group"> <input class="form-control" type="last_name" name="last_name" placeholder="Last Name" pattern="^[A-Za-z]{0,10}" oninvalid="this.setCustomValidity('Please Enter valid last name')" oninput="setCustomValidity('')" required> </fieldset> <!-- email --> <fieldset class="form-group"> <input class="form-control" type="email" name="email" placeholder="Your Email" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{0,3}$" oninvalid="this.setCustomValidity('Please Enter valid e-mail')" oninput="setCustomValidity('')" required> </fieldset> <!-- contact number --> <fieldset class="form-group"> <input class="form-control" type="phone_no" name="phone_no" placeholder="Contact Number(ie. 0123456789)" pattern="^\d{10}$" oninvalid="this.setCustomValidity('Please Enter valid phone number')" oninput="setCustomValidity('')" required> </fieldset> <!-- password --> <fieldset class="form-group"> <input class="form-control" type="password" id="password" name="password" placeholder="<PASSWORD>" pattern="(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{6,}" required> </fieldset> <div id="message"> <h5>Password must contain:</h5> <p id="letter" class="invalid">A <b>lowercase</b> letter</p> <p id="capital" class="invalid">A <b>capital (uppercase)</b> letter</p> <p id="number" class="invalid">A <b>number</b></p> <p id="length" class="invalid">Minimum <b>6 characters</b></p> </div> <script> var myInput = document.getElementById("password"); var letter = document.getElementById("letter"); var capital = document.getElementById("capital"); var number = document.getElementById("number"); var length = document.getElementById("length"); // When the user clicks on the password field, show the message box myInput.onfocus = function() { document.getElementById("message").style.display = "block"; } // When the user clicks outside of the password field, hide the message box myInput.onblur = function() { document.getElementById("message").style.display = "none"; } // When the user starts to type something inside the password field myInput.onkeyup = function() { // Validate lowercase letters var lowerCaseLetters = /[a-z]/g; if(myInput.value.match(lowerCaseLetters)) { letter.classList.remove("invalid"); letter.classList.add("valid"); } else { letter.classList.remove("valid"); letter.classList.add("invalid"); } // Validate capital letters var upperCaseLetters = /[A-Z]/g; if(myInput.value.match(upperCaseLetters)) { capital.classList.remove("invalid"); capital.classList.add("valid"); } else { capital.classList.remove("valid"); capital.classList.add("invalid"); } // Validate numbers var numbers = /[0-9]/g; if(myInput.value.match(numbers)) { number.classList.remove("invalid"); number.classList.add("valid"); } else { number.classList.remove("valid"); number.classList.add("invalid"); } // Validate length if(myInput.value.length >= 6) { length.classList.remove("invalid"); length.classList.add("valid"); } else { length.classList.remove("valid"); length.classList.add("invalid"); } } </script> <!-- <div class="checkbox">--> <!----> <!-- <label>--> <!----> <!-- <input type="checkbox" name="stayLoggedIn" value=1> Stay logged in--> <!----> <!-- </label>--> <!----> <!-- </div>--> <fieldset class="form-group"> <input type="hidden" name="signUp" value="1"> <input class="btn btn-success" type="submit" name="submit" value="Sign Up!"> </fieldset> <p><a class="toggleForms">Log in</a></p> </form> <form method="post" id = "logInForm"> <p>Log in using your email and password.</p> <fieldset class="form-group"> <input class="form-control" type="email" name="email" placeholder="Your Email"> </fieldset> <fieldset class="form-group"> <input class="form-control"type="<PASSWORD>" name="password" placeholder="<PASSWORD>"> </fieldset> <!----> <!-- <div class="checkbox">--> <!----> <!-- <label>--> <!----> <!-- <input type="checkbox" name="stayLoggedIn" value=1> Stay logged in--> <!----> <!-- </label>--> <!----> <!-- </div>--> <input type="hidden" name="signUp" value="0"> <fieldset class="form-group"> <input class="btn btn-success" type="submit" name="submit" value="Log In!"> </fieldset> <p><a class="toggleForms">Sign up</a></p> </form> </div> <?php include("footer.php"); ?> <file_sep>/public/map_phpsqlajax_dbinfo.php <?php $username="pma"; $password="<PASSWORD>"; $database="username-databaseName"; ?> <file_sep>/public/booking.php <?php session_start(); $stripe = [ 'publishable' => 'pk_test_rF5akTBZXbeeCejFj0ny58hm', 'private' => '<KEY>' ]; $error = ""; $success= ""; if (array_key_exists("id", $_COOKIE) && $_COOKIE ['id']) { $_SESSION['id'] = $_COOKIE['id']; } $vamId = $_GET['vamId']; //check user info session //echo"<br><br>"; //echo '================================================'; if (!isset($vamId)){ // echo"<br>"; echo "vehicle booking info is not recorded" ; }else { include("connection.php"); $query_vam = "SELECT * FROM `vehicle_at_markers` WHERE id = $vamId"; $result_vam = mysqli_query($link, $query_vam); $result_rego_check = mysqli_query($link, $query_vam); $result_rego = mysqli_query($link, $query_vam); // echo"<br>"; // echo "vehicle booking info recorded, vehicle_at_markers id is: " ; // echo $vamId; } if (!isset($_SESSION['id'])){ // echo"<br>"; echo "session for user info is not saved" ; }else{ // echo"<br>"; // echo "session for user info is saved, user ID is: "; // echo $_SESSION['id']; } //echo '<br>================================================'; if (array_key_exists("id", $_SESSION)) { include("connection.php"); //query for user name $query_name = "SELECT * FROM `users` WHERE id = ".mysqli_real_escape_string($link, $_SESSION['id'])." LIMIT 1"; $result_name = mysqli_query($link, $query_name); if (array_key_exists("submit", $_POST)) { // if($_POST['from']){ // $selected = $_POST['from']; // } if ($_POST['book'] == '1') { //check if user has exist booking $query_check = "SELECT * FROM `booking` WHERE user_id = " . mysqli_real_escape_string($link, $_SESSION['id']) . " AND status = 'Active'"; $result_check = mysqli_query($link, $query_check); $check = mysqli_num_rows($result_check); if ($check > 0) { //error message for existing booking $error .= "You have an exist booking! <br> View your booking:<br><br> <form action='myBooking.php' > <input style='font-size: 15px;' class='btn btn-success' type='submit' name='mb' value='My Booking'> </form>"; } else { if (!$_POST['from']) { $error .= "You have to select a start date<br>"; } if (!$_POST['to']) { $error .= "You have to select a end date<br>"; } if ($error != "") { $error = "<p>There were error(s) in your form:</p>" . $error; } else { //check if selected vehicle exist in booking db //get for rego $check_rego = mysqli_fetch_assoc($result_rego_check); $get_rego = $check_rego['Registration']; // echo '<br><br><br><br>Registration: '; // echo $get_rego; //check rows $query_check_vehicle = "SELECT * FROM `booking` WHERE vehicle_rego = '$get_rego' AND status = 'Active'"; $result_check_vehicle = mysqli_query($link, $query_check_vehicle); $check_vehicle = mysqli_num_rows($result_check_vehicle); // echo '<br>rows exist: '; // echo $check_vehicle; // echo '<br>'; // $query_check_vam = "SELECT * FROM `vehicle_at_markers` WHERE Registration = '$get_rego'"; // $result_check_vam = mysqli_query($link, $query_check_vam); // $check_vam = mysqli_fetch_assoc($result_check_vam); // // $available = $check_vam['Available']; if($check_vehicle == 0){ //booking success $rego = mysqli_fetch_assoc($result_rego); $id = $_SESSION['id']; $df = $_POST['from']; $dt = $_POST['to']; $user_s = date_parse ("$df"); $user_e = date_parse ("$dt"); $r = $rego['Registration']; $status = 'pending'; if($user_s == $user_e or $user_s > $user_e){ $error .= "ending date have to be greater than starting date!"; }else{ // ============ $query = "INSERT INTO `booking` (`user_id`,`vehicle_rego`,`start`, `end`, `status`) VALUES ('$id','$r', '$df', '$dt', '$status')"; $result = mysqli_query($link, $query); // ============ $success .= "Vehicle available! <br>Pay now to complete booking.<br>Use card number<br><b>4242 4242 4242 4242</b><br> for test payment."; } }else{ $i=0; $count_failed = 0; $count_success = 0; while ($i < $check_vehicle){ // echo $i; // echo '<br>'; //get datetime from db by rego $get_date = mysqli_fetch_assoc($result_check_vehicle); $dbs = $get_date['start']; $dbe= $get_date['end']; $db_start = date_parse ("$dbs"); $db_end = date_parse ("$dbe"); $us = $_POST['from']; $ue = $_POST['to']; $user_start = date_parse ("$us"); $user_end = date_parse ("$ue"); //=================== //print info -- testing // echo '<br><br><br><br>db-start: '; // echo $dbs; // echo '<br>'; // echo 'db-end: '; // echo $dbe; // echo '<br>'; // echo 'user-start: '; // echo $us; // echo '<br>'; // echo 'user-end: '; // echo $ue; // echo '<br>'; //=================== if($user_start == $user_end){ $count_success -= 100; // echo $count_success; // echo '<br>'; }elseif($user_start >= $db_end or $user_end <= $db_start){ $count_success++; // echo 'success'; // echo $count_success; // echo '<br>'; }else{ $count_failed ++; // echo 'failed'; // echo '<br>'; } $i++; } // echo '<br>failed count: '; // echo $count_failed; // echo '<br>'; // // echo '<br>success count: '; // echo $count_success; // echo '<br>'; if($count_success < 0){ $error .= "ending date can't be same as starting date!"; }elseif($count_failed > 0){ $error .= "Vehicle has been booked,<br>Please search for another time period"; }else{ $rego = mysqli_fetch_assoc($result_rego); $id = $_SESSION['id']; $df = $_POST['from']; $dt = $_POST['to']; $r = $rego['Registration']; $status = 'pending'; $query = "INSERT INTO `booking` (`user_id`,`vehicle_rego`,`start`, `end`, `status`) VALUES ('$id','$r', '$df', '$dt', '$status')"; $result = mysqli_query($link, $query); $success .= "Vehicle available! <br>Pay now to complete booking.<br>Use card number<br><b>4242 4242 4242 4242</b><br> for test payment."; // echo '<br><br>'; // echo $count_success; } } } } }else{ echo '<br><br><br><br>'; echo 'pressed'; } } }else { header("Location: login.php"); } include("header.php"); ?> <!--<link rel="stylesheet" href="datetimepicker/bootstrap.min.css"> <link rel="stylesheet" href="datetimepicker/bootstrap-datetimepicker.min.css"> --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.37/css/bootstrap-datetimepicker.min.css"> <script src="https://code.jquery.com/jquery-2.2.3.min.js" integrity="<KEY> crossorigin="anonymous"></script> <script src="https://npmcdn.com/tether@1.2.4/dist/js/tether.min.js"></script> <script type="text/javascript" src="datetimepicker/bootstrap.min.js"></script> <script type="text/javascript" src="datetimepicker/moment.js"></script> <script type="text/javascript" src="datetimepicker/bootstrap-datetimepicker.min.js"></script> <style> html { background: url(mybooking.jpg) no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; } h4 { color: #444444; } .container { text-align: -webkit-center; width: 400px; } .input-group-addon, .input-group-btn { width: 0%; white-space: nowrap; vertical-align: middle; } body { font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; font-size: 14px; line-height: 1.42857143; color: #333; background-color: rgba(0,0,0,.0001); } .btn { padding: 8px 15px; font-size: 16px; border: 1px solid #5cb85c; } .navbar-brand { font-size: 21px; } .stripe-button-el{ visibility: hidden; } </style> <title>booking</title> <div class="container" id="homePageContainer"> <nav class="navbar navbar-light bg-faded navbar-fixed-top"> <a class="navbar-brand" >Booking vehicle</a> <div class="pull-xs-right"> <a href ="index_test.php?logout=1"> <button class="btn btn-success-outline" type="submit">Logout</button></a> </div> <div class="pull-xs-right"> <a href ="myBooking.php"> <button class="btn btn-success-outline" type="submit">My Booking</button></a> </div> <div class="pull-xs-right"> <a href ="index_test.php"> <button class="btn btn-success-outline" type="submit">Map</button></a> </div> </nav> <div class="row" > <div class="medium-12 large-12 columns"> <?php $row = mysqli_fetch_assoc($result_name)?> <h4>Hello, <?php echo $row['first_name']; ?>!</h4> <div id="error"><?php if ($error!="") { echo '<div class="alert alert-danger" role="alert">'.$error.'</div>'; } ?> </div> <div id="error"><?php if ($success!="") { echo '<div class="alert alert-success" role="alert">'.$success.'</div>'; } ?> </div> <div class="medium-2 columns">BOOKING FOR:</div> <div class="medium-1 columns"><b><?php echo $row['email']; ?></b></div> <br> <?php $row_vam = mysqli_fetch_assoc($result_vam)?> <div class="medium-2 columns">Make:</div> <div class="medium-1 columns"><b><?php echo $row_vam['Make']; ?></b></div> <br> <div class="medium-2 columns">Model:</div> <div class="medium-1 columns"><b><?php echo $row_vam['Model']; ?></b></div> <br> <?php if($success == "Vehicle available! <br>Pay now to complete booking.<br>Use card number<br><b>4242 4242 4242 4242</b><br> for test payment."){ echo '<div class="medium-2 columns"> <form action="booking_success.php" method="POST"> <script src="https://checkout.stripe.com/checkout.js" class="stripe-button" data-key="<KEY>" data-amount="4990" data-name="Booking vehicle" data-description="payment" data-image="notes.png" data-email="<EMAIL>" data-locale="auto" data-currency="aud"> </script> </form> </div>'; }else{ echo ' <form method="post"> <div class="row"> <div class="form-group"> <div class="medium-2 columns">From:</div> <b> <div class=\'input-group date\' id=\'datetimepicker6\'> <input type=\'text\' name="from" class="form-control" /> <span class="input-group-addon"> <span class="glyphicon glyphicon-calendar"></span> </span> </div> </b> <br> <div class="medium-2 columns">To:</div> <b> <div class=\'input-group date\' id=\'datetimepicker7\'> <input type=\'text\' name= "to" class="form-control" /> <span class="input-group-addon"> <span class="glyphicon glyphicon-calendar"></span> </span> </div> </b> </div> </div> <div class="medium-2 columns"> <input type="hidden" name="book" value="1"> <input class="btn btn-success" type="submit" name="submit" value="Search"> </div> <br> </form>'; } ?> <?php ?> </div> </div> </div> <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> <script type="text/javascript"> $(function () { $('#datetimepicker6').datetimepicker({ stepping:60, format: "YYYY-MM-DD HH:mm:ss", minDate: new Date() }); $('#datetimepicker7').datetimepicker({ stepping: 30, format: "YYYY-MM-DD HH:mm:ss", useCurrent: false //Important! See issue #1075 }); $("#datetimepicker6").on("dp.change", function (e) { $('#datetimepicker7').data("DateTimePicker").minDate(e.date); }); $("#datetimepicker7").on("dp.change", function (e) { $('#datetimepicker6').data("DateTimePicker").maxDate(e.date); }); }); </script> <file_sep>/public/contactUs.php <?php session_start(); $error = ""; $success= ""; if (array_key_exists("submit", $_POST)) { include("connection.php"); if ($error != "") { $error = "<p>There were error(s) in your form:</p>".$error; }else{ if ($_POST['submit'] == '1'){ $query = "INSERT INTO `messages` (`name`, `email`,`phone`, `message`) VALUES ('".mysqli_real_escape_string($link, $_POST['name'])."', '".mysqli_real_escape_string($link, $_POST['email'])."', '".mysqli_real_escape_string($link, $_POST['phone_no'])."', '".mysqli_real_escape_string($link, $_POST['message'])."')"; mysqli_query($link, $query); $success .= "Submitted <br>"; } } } ?> <?php include("header.php"); ?> <style> html { background: url(contactus.jpg) no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; } .btn-success { border-color: #a7a7a7; } a { color: white; } </style> <title> Contact US</title> <div class="container" id="homePageContainer"> <h1 style="color:#838383;"> Contact Us</h1> <p style="color:#838383;"><strong>Feel free to contact us</strong></p> <div id="error"><?php if ($error!="") { echo '<div class="alert alert-danger" role="alert">'.$error.'</div>'; } ?></div> <div id="error"><?php if ($success!="") { echo '<div class="alert alert-success" role="alert">'.$success.'</div>'; } ?> </div> <form method="post" id = "signUpForm"> <!-- first name --> <fieldset class="form-group"> <input class="form-control" type="name" name="name" placeholder="Your name" pattern="^[A-Za-z]{0,10}" oninvalid="this.setCustomValidity('Please Enter valid first name')" oninput="setCustomValidity('')" required> </fieldset> <!-- email --> <fieldset class="form-group"> <input class="form-control" type="email" name="email" placeholder="Your Email" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{0,3}$" oninvalid="this.setCustomValidity('Please Enter valid e-mail')" oninput="setCustomValidity('')" required> </fieldset> <!-- contact number --> <fieldset class="form-group"> <input class="form-control" type="phone_no" name="phone_no" placeholder="Contact Number(ie. 0123456789)" pattern="^\d{10}$" oninvalid="this.setCustomValidity('Please Enter valid phone number')" oninput="setCustomValidity('')" required> </fieldset> <!-- password --> <fieldset class="form-group"> <!-- <input class="form-control" type="message" id="message" name="message" placeholder="message" required>--> <textarea class="form-control" type="message" id="message" name="message" rows="5" cols="50" placeholder="Leave us a message"></textarea> </fieldset> <fieldset class="form-group"> <input type="hidden" name="submit" value="1"> <input style="background-color:#a7a7a7;" class="btn btn-success" type="submit" name="submit_contact" value="Submit!"> </fieldset> <fieldset class="form-group"> <button class="btn btn-success" type="button" style="background-color:#a7a7a7;""><a href="index_test.php">back</a></button> </fieldset> </form> </div> <?php include("footer.php"); ?> <file_sep>/public/history.php <?php session_start(); // $error = ""; // $success=""; if (array_key_exists("id", $_COOKIE) && $_COOKIE ['id']) { $_SESSION['id'] = $_COOKIE['id']; } if (array_key_exists("id", $_SESSION)) { include("connection.php"); $query_booking = "SELECT * FROM `booking` WHERE user_id = ".mysqli_real_escape_string($link, $_SESSION['id'])." AND status != 'Active' AND status != 'pending'"; $query_name = "SELECT * FROM `users` WHERE id = ".mysqli_real_escape_string($link, $_SESSION['id'])." LIMIT 1"; $result_booking = mysqli_query($link, $query_booking); $result_name = mysqli_query($link, $query_name); $check = mysqli_num_rows($result_booking); if($check < 1){ $error .= "You don't have any booking history"; } }else { header("Location: login.php"); } include("header.php"); ?> <style> html { background: url(mybooking.jpg) no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; } table, td, th { border: 1px solid #66af6f; background-color: #ddd; } table { border-collapse: collapse; margin: 0px auto; width: 75%; margin-bottom: 50px; } td { text-align: center; padding: 5px; width: 75px; color: #444444; } th { background-color: #66af6f; text-align: center; padding: 5px; color: #444444; } h4 { color: #444444; } </style> <div class="container" id="homePageContainer"> <title> My Booking History</title> <nav class="navbar navbar-light bg-faded navbar-fixed-top"> <a class="navbar-brand" href="#">My Booking History</a> <div class="pull-xs-right"> <a href ='login.php?logout=1'> <button class="btn btn-success-outline" type="submit">Logout</button></a> </div> <div class="pull-xs-right"> <a href ='index_test.php'> <button class="btn btn-success-outline" type="submit">Map</button></a> </div> <div class="pull-xs-right"> <a href ='myBooking.php'> <button class="btn btn-success-outline" type="submit">Back</button></a> </div> <!-- <div class="pull-xs-right">--> <!-- <a href ='index_test.php'>--> <!-- <button class="btn btn-success-outline" type="submit">Return in map</button></a>--> <!-- </div>--> </nav> <?php $row = mysqli_fetch_assoc($result_name)?> <h4>Hello, <?php echo $row['first_name']; ?>!</h4> <br> <div id="error"><?php if ($error!="") { echo '<div class="alert alert-danger" role="alert">'.$error.'</div>'; } ?></div> <div id="error"><?php if ($success!="") { echo '<div class="alert alert-success" role="alert">'.$success.'</div>'; } ?></div> </div> <table class="stack"> <thead> <tr> <th>Make</th> <th>Model</th> <th>Registration number</th> <th>Pick up address</th> <th>pick up date</th> <th>Return date</th> <th>Rating</th> <th>Cost</th> <th>Status</th> </tr> </thead> <tbody> <!--Use a while loop to make a table row for every DB row--> <?php while($row = mysqli_fetch_assoc($result_booking)) : ?> <?php $rego = $row['vehicle_rego']; $query_vehicle = "SELECT * FROM `Vehicle` WHERE Registration = '".$rego."' "; $result_vehicle = mysqli_query($link, $query_vehicle); $row_vehicle = mysqli_fetch_assoc($result_vehicle)?> <tr> <!--Each table column is echoed in to a td cell--> <td><?php echo $row_vehicle['Make']; ?></td> <td><?php echo $row_vehicle['Model']; ?></td> <td><?php echo $row['vehicle_rego']; ?></td> <td><?php echo $row_vehicle['address']; ?></td> <td><?php echo $row['start']; ?></td> <td><?php echo $row['end']; ?></td> <td><?php echo $row_vehicle['average_rating']; ?>/5</td> <td>$<?php echo $row['price']; ?></td> <td><?php echo $row['status']; ?></td> </tr> <?php endwhile ?> </tbody> </table> <?php include("footer.php"); ?> <file_sep>/js/booking.js $($(function() { $('#datetimepickerfrom').datetimepicker({ stepping:30, format: "YYYY-MM-DD - hh:mm", minDate: new Date() }); $('#datetimepickerto').datetimepicker({ stepping: 30, format: "YYYY-MM-DD - hh:mm", useCurrent: false //Important! See issue #1075 }); $("#datetimepickerfrom").on("dp.change", function(e) { $('#datetimepickerto').data("DateTimePicker").minDate(e.date); }); $("#datetimepicker10").on("dp.change", function(e) { $('#datetimepickerfrom').data("DateTimePicker").maxDate(e.date); }); }); ); <file_sep>/public/restructure.php <?php session_start(); if (array_key_exists("id", $_COOKIE) && $_COOKIE ['id']) { $_SESSION['id'] = $_COOKIE['id']; } if (!isset($_SESSION['id'])){ echo"<br>"; echo"<br>"; echo"<br>"; echo "session for user info is not saved" ; }else { echo "<br>"; echo "<br>"; echo "<br>"; echo "session for user info is saved: user ID is "; echo $_SESSION['id']; } include("connection.php"); $query_name = "SELECT * FROM `users` WHERE id = ".mysqli_real_escape_string($link, $_SESSION['id'])." LIMIT 1"; $result_name = mysqli_query($link, $query_name); //query for table content $query_table = "SELECT * FROM `vehicle_at_markers`"; $result_table = mysqli_query($link, $query_table); // //if (array_key_exists('submit', $_POST)) { //// //// echo 'you pressed'; //// echo $_POST['submit']; // //// echo $i; // $_SESSION_['Registration'] = $row_table['Registration']; // // header("Location: book_vehicle.php"); // // //} include("header.php"); ?> <title>Restructure</title> <nav class="navbar navbar-light bg-faded navbar-fixed-top"> <a class="navbar-brand" >Restructure--Testing</a> <div class="pull-xs-right"> <a href ='login.php?logout=1'> <button class="btn btn-success-outline" type="submit">Logout</button></a> </div> <div class="pull-xs-right"> <a href ='loggedinpage.php'> <button class="btn btn-success-outline" type="submit">back to logged in page</button></a> </div> </nav> <br> <br> <link rel="stylesheet" href="css/foundation.css"> <div class="container-fluid" id="containerLoggedInPage"> <div class="row"> <div class="medium-12 large-12 columns"> <?php $row_name = mysqli_fetch_assoc($result_name)?> <h4>Hello, <?php echo $row_name['first_name']; ?>!</h4> <!-- <div class="medium-2 columns"><a class="button hollow success" href="./clients_new.html">ADD NEW CLIENT</a></div>--> <form method="post"> <table class="stack"> <thead> <tr> <th width="200">Parking location</th> <th width="200">Car make</th> <th width="200">Car model</th> <th width="200">Action</th> </tr> </thead> <tbody> <?php $array = []; ?> <?php $i = 0; while($row_table = mysqli_fetch_assoc($result_table)) : ?> <?php $query_book = "SELECT * FROM `vehicle_at_markers` WHERE Registration = '".$row_table['Registration']."'"; ?> <tr> <td><?php echo $row_table['address']; ?></td> <td><?php echo $row_table['Make']; ?></td> <td><?php echo $row_table['Model']; ?></td> <td> <!--<a class="hollow button" href="./clients_new.html">EDIT</a>--> <!--<a class="hollow button warning" name="submit" href="./book_vehicle.php?ids=$row[address]">BOOK</a>--> <input type="hidden" name="book" value="<?php echo $row_table['Registration']?>"> <input class="btn btn-success" type="submit" name="submit" value="<?php echo $row_table['Registration']?>"> <?php echo $i; echo $row_table['Registration']; $array[] = $row_table['Registration']; // $new_array[ $row_table['Registration']] = $row_table; ?> </td> </tr> <!-- --><?php //$i++; ?> <?php endwhile ?> </tbody> </table> </form> </div> </div> </div> <?php if (array_key_exists('submit', $_POST)) { // echo 'you pressed '; echo $_POST['submit']; // //// echo $i; // $_SESSION_['Registration'] = $row_table['Registration']; // setcookie("Registration", $row_table['Registration'], time() + 60*60*24*365); header("Location: book_vehicle.php"); }else{ echo "WTF"; } // // if ($array != ''){ // echo ' TRUE: '; //// echo $array[$i[0]]; //// echo $i[1]; // // }else{ // echo ' FALSE: '; // echo 'empty'; // } //header("Location: book_vehicle.php"); //}else{ // echo "false "; //} //?> <?php echo $array[2]; ?> <?php include("footer.php"); ?> <file_sep>/public/init.php <?php session_start(); $stripe = [ 'publishable' => 'pk_test_rF5akTBZXbeeCejFj0ny58hm', 'private' => '<KEY>' ]; include("connection.php"); $row = mysqli_fetch_assoc($result_name) ?><file_sep>/public/messageupdate.php <?php echo "$your_name" + "$your_email" + "$your_phone" + "$messagetextarea"; $name=$_POST['your_name']; $email=$_POST['your_email']; $phone=$_POST['your_phone']; $message=$_POST['messagetextarea']; echo "$name" + "$email" + "$phone" + "$message"; include("connection.php"); $sql = "INSERT INTO `messages`(`name`, `email`, `phone`, `message`) VALUES ([name],[email],[phone],[message])"; echo "Message successfully sent" ?> <file_sep>/public/index.php <?php session_start(); if (array_key_exists("logout", $_GET)) { unset($_SESSION); setcookie("id", "", time() - 60*60); $_COOKIE["id"] = ""; session_destroy(); } if (array_key_exists("id", $_COOKIE) && $_COOKIE ['id']) { $_SESSION['id'] = $_COOKIE['id']; } if (array_key_exists("id", $_SESSION)) { include("connection.php"); $query_name = "SELECT * FROM `users` WHERE id = ".mysqli_real_escape_string($link, $_SESSION['id'])." LIMIT 1"; $result_name = mysqli_query($link, $query_name); } ?> <head> <title>Click 'N' Go</title> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <!--[if lte IE 8]><script src="assets/js/ie/html5shiv.js"></script><![endif]--> <link rel="stylesheet" href="assets/css/main.css" /> <!--[if lte IE 8]><link rel="stylesheet" href="assets/css/ie8.css" /><![endif]--> </head> <body class="header"> <div > <!-- Header --> <div id="header"> <!-- Inner --> <div class="inner"> <header> <h1><a id="logo" >Click 'N' Go</a></h1> <hr /> <p>Get ready to start your trip</p> </header> <footer> <a href="index_test.php" class="button circled scrolly">Start</a> </footer> </div> <!-- Nav --> <nav id="nav"> <ul> <?php $row = mysqli_fetch_assoc($result_name); $name = $row['first_name']; if(!isset($_SESSION['id'])) { echo '<li><a href="login.php">Login/Register</a></li>'; } else { echo '<li><a>hello, '.$name.'! </a></li>'; echo '<li><a href="index.php?logout=1">Logout</a></li>'; } ?> </ul> </nav> </div> </div> <!-- Scripts --> <script src="assets/js/jquery.min.js"></script> <script src="assets/js/jquery.dropotron.min.js"></script> <script src="assets/js/jquery.scrolly.min.js"></script> <script src="assets/js/jquery.onvisible.min.js"></script> <script src="assets/js/skel.min.js"></script> <script src="assets/js/util.js"></script> <!--[if lte IE 8]><script src="assets/js/ie/respond.min.js"></script><![endif]--> <script src="assets/js/main.js"></script> </body> <file_sep>/connection.php <?php $link = mysqli_connect("localhost", "pma", "pass","<PASSWORD>"); if (mysqli_connect_error()) { die ("Database Connection Error"); } ?> <file_sep>/payment.php <?php session_start(); require_once 'init.php'; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Payment</title> </head> <body> <form action="myBooking.php" method="POST"> <script src="https://checkout.stripe.com/checkout.js" class="stripe-button" data-key="<?php echo $stripe['publishable']; ?>" data-amount="999" data-name="Carshare" data-description="Payment" data-image="" data-email="<?php echo $row['first_name']; ?>" data-locale="auto" data-currency="aud"> </script> </form> </body> </html><file_sep>/public/css/return_success.php <?php session_start(); $error = ""; $success= ""; if (array_key_exists("id", $_COOKIE) && $_COOKIE ['id']) { $_SESSION['id'] = $_COOKIE['id']; } if (array_key_exists("Registration", $_COOKIE) && $_COOKIE ['Registration']) { $_SESSION['Registration'] = $_COOKIE['Registration']; } //get vehicle_at_markers id $vamId = $_GET['vamId']; //check user info session echo"<br><br>"; echo '================================================'; if (!isset($vamId)){ echo"<br>"; echo "vehicle booking info is not recorded" ; }else { include("connection.php"); $query_vam = "SELECT * FROM `vehicle_at_markers` WHERE id = $vamId"; $result_vam = mysqli_query($link, $query_vam); $result_rego = mysqli_query($link, $query_vam); echo"<br>"; echo "vehicle booking info recorded, vehicle_at_markers id is: " ; echo $vamId; } if (!isset($_SESSION['id'])){ echo"<br>"; echo "session for user info is not saved" ; }else{ echo"<br>"; echo "session for user info is saved, user ID is: "; echo $_SESSION['id']; } echo '<br>================================================'; if (array_key_exists("id", $_SESSION)) { include("connection.php"); //query for user name $query_name = "SELECT * FROM `users` WHERE id = ".mysqli_real_escape_string($link, $_SESSION['id'])." LIMIT 1"; $result_name = mysqli_query($link, $query_name); if (array_key_exists("submit", $_POST)){ if (!$_POST['dateFrom']) { $error .= "You have to select a start date<br>"; } if (!$_POST['dateTo']) { $error .= "You have to select a end date<br>"; } if (!$_POST['time']) { $error .= "You have to select a time<br>"; } if ($error != "") { $error = "<p>There were error(s) in your form:</p>".$error; } else{ if($_POST['search'] == '1'){ $rego = mysqli_fetch_assoc($result_rego); echo '<br>'; echo 'Booking info has stored to booking database: <br>'; echo 'User ID: '; echo $_SESSION['id']; echo '<br>From: '; echo $_POST['dateFrom']; echo '<br>To: '; echo $_POST['dateTo']; echo '<br>Time: '; echo $_POST['time']; echo '<br>Rego: '; echo $rego['Registration']; echo '<br>'; $id = $_SESSION['id']; $df = $_POST['dateFrom']; $dt = $_POST['dateTo']; $t = $_POST['time']; $r = $rego['Registration']; $query = "INSERT INTO `booking` (`user_id`,`vehicle_rego`,`start_date`, `end_date`,`time`) VALUES ('$id','$r', '$df', '$dt', '$t')"; $result = mysqli_query($link, $query); $success .= "Booking Success! <br>"; } } } }else { header("Location: login.php"); } include("header.php"); ?> <?php include("footer.php"); ?> <file_sep>/admin_messages.php <?php session_start(); $error = ""; $success=""; if (array_key_exists("id", $_COOKIE) && $_COOKIE ['id']) { $_SESSION['id'] = $_COOKIE['id']; } if (array_key_exists("id", $_SESSION)) { include("connection.php"); // $query = "SELECT * FROM `users`"; // $result = mysqli_query($link, $query); if(array_key_exists("submit", $_POST)){ //$query_delete = "DELETE * FROM `users` WHERE `users`.`email` = '".mysqli_real_escape_string($link, $_POST['email'])."' LIMIT 1"; //mysqli_query($link, $query_delete); if ($_POST['display'] == '1') { $query = "SELECT * FROM `messages`"; $result = mysqli_query($link, $query); } if ($_POST['search'] == '1'){ $query = "SELECT * FROM `messages` WHERE `messages`.`email` = '".mysqli_real_escape_string($link, $_POST['email'])."' LIMIT 1"; #$query = "DELETE FROM `users` WHERE `users`.`email` = '".mysqli_real_escape_string($link, $_POST['email'])."' LIMIT 1"; $result_check = mysqli_query($link, $query); if (!$_POST['email']) { $error .= "Please enter an email address to search<br> "; }else if (mysqli_num_rows($result_check) == 0) { $error .= "User doesn't exist <br>"; }else{ $result = mysqli_query($link, $query); } } if ($_POST['delete'] == '1'){ $query_check = "SELECT * FROM `messages` WHERE `messages`.`email` = '".mysqli_real_escape_string($link, $_POST['email'])."' LIMIT 1"; $result_check = mysqli_query($link, $query_check); if (!$_POST['email']) { $error .= "Please enter an email address to delete<br> "; }else if (mysqli_num_rows($result_check) == 0) { $error .= "E-mail doesn't exist <br>"; }else{ $query = "DELETE FROM `messages` WHERE `messages`.`email` = '".mysqli_real_escape_string($link, $_POST['email'])."' LIMIT 1"; $result = mysqli_query($link, $query); $success .= "Delete Successful <br>"; } } // $query = "SELECT * FROM `users` WHERE `users`.`email` = '".mysqli_real_escape_string($link, $_POST['email'])."' LIMIT 1"; // $result = mysqli_query($link, $query); } }else { header("Location: login.php"); } include("header.php"); ?> <style> table { border-collapse: collapse; margin: 10px auto; border:1px solid #df7366 } td { text-align: center; padding: 5px; background-color: #DDDDDD; color:black; border:1px solid #df7366 } th { background-color: #df7366; text-align: center; padding: 5px; border:1px solid #df7366 } .btn-success { color: #fff; background-color: #df7366; border-color: #df7366; transition: background-color 0.35s ease-in-out, color 0.35s ease-in-out, border-bottom-color 0.35s ease-in-out; } .btn-success:hover, .btn-success-outline:hover, .btn-success:focus, .btn-success-outline:focus { background-color: #ef8376; border-color: #ef8376; } .btn-success-outline { border-color: #df7366; color: #df7366; } .data { width: 70%; } </style> <div class="container" id="homePageContainer"> <div id="error"><?php if ($error!="") { echo '<div class="alert alert-danger" role="alert">'.$error.'</div>'; } ?></div> <div id="error"><?php if ($success!="") { echo '<div class="alert alert-success" role="alert">'.$success.'</div>'; } ?></div> <title> Admin Manager - Messages</title> <nav class="navbar navbar-light bg-faded navbar-fixed-top"> <a class="navbar-brand" href="#">Admin manage system - Messages</a> <div class="pull-xs-right"> <a href ='login.php?logout=1'> <button class="btn btn-success-outline" type="submit">Logout</button></a> </div> <div class="pull-xs-right"> <a href ='admin.php'> <button class="btn btn-success-outline" type="submit">Back</button></a> </div> </nav> <form method="post" id = "messagesForm"> <div class="container-fluid" id="containerLoggedInPage"> <table> <thead> <tr> <th>Name</th> <th>Email</th> <th>Phone Number</th> <th>Message</th> </tr> </thead> <tbody> <!--Use a while loop to make a table row for every DB row--> <?php while($row = mysqli_fetch_assoc($result)) : ?> <tr> <!--Each table column is echoed in to a td cell--> <td><?php echo $row['name']; ?></td> <td><?php echo $row['email']; ?></td> <td><?php echo $row['phone']; ?></td> <td class="data"><?php echo $row['message']; ?></td> </tr> <?php endwhile ?> </tbody> </table> </div> <fieldset class="form-group"> <input type="hidden" name="display" value="1"> <input class="btn btn-success" type="submit" name="submit" value="Display All"> </fieldset> <p><a class="toggleForms">search</a></p> </form> <form method="post" id = "logInForm"> <div class="container-fluid" id="containerLoggedInPage"> </div> <fieldset class="form-group"> <input class="form-control" type="email" name="email" placeholder="search by user email"> </fieldset> <fieldset class="form-group"> <input type="hidden" name="search" value="1"> <input class="btn btn-success" type="submit" name="submit" value="search"> </fieldset> <p><a class="toggleForms">back</a></p> </form> <form method="post" id = "Delete"> <div class="container-fluid" id="containerLoggedInPage"> </div> <fieldset class="form-group"> <input class="form-control" type="email" name="email" placeholder="delete by user email"> </fieldset> <fieldset class="form-group"> <input type="hidden" name="delete" value="1"> <input class="btn btn-success" type="submit" name="submit" value="Delete"> </fieldset> </form> </div> <?php include("footer.php"); ?><file_sep>/return_success.php <?php session_start(); $error = ""; $success=""; //the return address that user clicked //$address = $_GET['submit']; $vamid = $_GET['vamID']; //if (!isset($address)){ // echo"<br><br><br>"; // echo "return address is not recorded" ; //}else { // include("connection.php"); // // echo"<br><br><br>"; // echo "vehicle booking info recorded : " ; // echo $address; // echo "<br>"; // //} if (array_key_exists("id", $_COOKIE) && $_COOKIE ['id']) { $_SESSION['id'] = $_COOKIE['id']; } if (array_key_exists("id", $_SESSION)) { include("connection.php"); //query for using vamID to get address picked $query_address = "SELECT * FROM `vehicle_at_markers` WHERE id = '$vamid'"; $result_address = mysqli_query($link, $query_address); $row_address= mysqli_fetch_assoc($result_address); $address = $row_address['address']; //query for user name $query_name = "SELECT * FROM `users` WHERE id = ".mysqli_real_escape_string($link, $_SESSION['id'])." LIMIT 1"; $result_name = mysqli_query($link, $query_name); //get vehicle registration $query_rego = "SELECT * FROM `booking` WHERE user_id = ".mysqli_real_escape_string($link, $_SESSION['id'])." AND status = 'Active' LIMIT 1"; $result_rego = mysqli_query($link, $query_rego); $row_rego = mysqli_fetch_assoc($result_rego); $check = mysqli_num_rows($result_rego); if($check > 0){ //success box $success .= "Vehicle return success!<br>Current address: $address "; }else{ if ($_POST['rate'] == '1') { $query_rate_user = "SELECT * FROM `booking` WHERE user_id = " . mysqli_real_escape_string($link, $_SESSION['id']) . " order BY booking_id DESC LIMIT 1"; $result_rate_user = mysqli_query($link, $query_rate_user); $row_rate = mysqli_fetch_assoc($result_rate_user); $rt = $_POST['rate_selection']; $bid = $row_rate['booking_id']; $registration = $row_rate['vehicle_rego']; $query_rate = "UPDATE `booking` SET `rating` = $rt WHERE booking_id = $bid AND rating is NULL"; $result_rate = mysqli_query($link, $query_rate); $success .= 'Rating success!<br>You rated: ' . $_POST['rate_selection'] . '<br>Refresh page in 3 seconds'; // echo '<br><br><br>'; // echo $registration; $query_average = "SELECT AVG(rating) FROM booking WHERE status='returned' AND vehicle_rego= '$registration'"; $result_average = mysqli_query($link, $query_average); $row_new = mysqli_fetch_assoc($result_average); $average = $row_new['AVG(rating)']; $query_update_average = "UPDATE `Vehicle` SET `average_rating` = $average WHERE Registration ='$registration'"; $result_update_average = mysqli_query($link, $query_update_average); header("Refresh:3"); // echo '<br><br><br><br>'; // echo 'pressed: '; // echo $_POST['rate_selection']; // echo '<br>'; // echo 'user_id: '; // echo $_SESSION['id']; // echo '<br>'; // echo 'current bid: '; // echo $bid; }else{ //error box $error .= "You don't have any active booking!"; } } $rego = $row_rego['vehicle_rego']; // echo $rego; //update vehicle address $query_update_address = "UPDATE `Vehicle` SET `address` = '$address' WHERE Vehicle.Registration = '$rego'"; $result_update_address = mysqli_query($link, $query_update_address); $row_update_address = mysqli_fetch_assoc($result_update_address); //remove user from booking (will do change status later -->users are able to see booking history) $query_update_status = "UPDATE `booking` SET `status` = 'returned' WHERE vehicle_rego = '$rego'"; $result_update_status = mysqli_query($link, $query_update_status); //update vehicle_at_markers table $query_del = "TRUNCATE vehicle_at_markers"; //$query_del = "Delete from vehicle_at_markers"; $query_same = "INSERT INTO vehicle_at_markers (markers_id, markers_name, address, lat, lng, type,Registration,Make,Model,Available,Seats,Description,vehicle_rating) SELECT markers.markers_id, markers.markers_name, markers.address , markers.lat, markers.lng, markers.type,Vehicle.Registration, Vehicle.Make, Vehicle.Model, Vehicle.Available, Vehicle.Seats, Vehicle.Description, Vehicle.average_rating FROM markers JOIN Vehicle ON Vehicle.address = markers.address;"; $query_different = "INSERT INTO vehicle_at_markers (markers_id, markers_name, address, lat, lng, type) SELECT markers.markers_id, markers.markers_name, markers.address, markers.lat, markers.lng, markers.type FROM markers WHERE NOT EXISTS(SELECT markers_id FROM vehicle_at_markers WHERE vehicle_at_markers.markers_id = markers.markers_id) "; $query_index = "alter table vehicle_at_markers AUTO_INCREMENT=1;"; $result_del = mysqli_query($link, $query_del); $result_same = mysqli_query($link, $query_same); $result_different = mysqli_query($link, $query_different); $result_index = mysqli_query($link, $query_index); //update available to 1 $query_update_ava = "UPDATE `vehicle_at_markers` SET `Available` = '1' WHERE Registration = '$rego'"; $result_update_ava = mysqli_query($link, $query_update_ava); }else { header("Location: login.php"); } include("header.php"); ?> <style> html { background: url(mybooking.jpg) no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; } table, td, th { border: 1px solid #66af6f; } table { border-collapse: collapse; margin: 0px auto; width: 75%; } td { text-align: center; padding: 5px; width: 75px; color: #444444; } th { background-color: #66af6f; text-align: center; padding: 5px; color: #444444; } h4 { color: #444444; } </style> <div class="container" id="homePageContainer"> <title> Return success</title> <nav class="navbar navbar-light bg-faded navbar-fixed-top"> <a class="navbar-brand">Return success</a> <div class="pull-xs-right"> <a href ='login.php?logout=1'> <button class="btn btn-success-outline" type="submit">Logout</button> </a> </div> <div class="pull-xs-right"> <a href ='index_test.php'> <button class="btn btn-success-outline" type="submit">Map</button> </a> </div> </nav> <?php $row = mysqli_fetch_assoc($result_name)?> <h4>Thank you, <?php echo $row['first_name']; ?>!</h4> <?php echo '<br>'?> <div id="error"><?php if ($error!="") { echo '<div class="alert alert-danger" role="alert">'.$error.'</div>'; } ?> </div> <div id="error"><?php if ($success!="") { echo '<div class="alert alert-success" role="alert">'.$success.'</div>'; } ?> </div> <?php if($error != "You don't have any active booking!"){ echo ' <p style="color:#444444;"><strong>please rate for the vehicle</strong></p> <form method="post"> <select style="color: black" name="rate_selection"> <option name="11" value="5" selected="selected">rate out of 5</option> <option name="0" value="0">0</option> <option name="1" value="1">1</option> <option name="2" value="2">2</option> <option name="3" value="3">3</option> <option name="4" value="4">4</option> <option name="5" value="5">5</option> </select> <div class="medium-2 columns"> <br> <input type="hidden" name="rate" value="1"> <input class="btn btn-success" type="submit" name="submit_rating" value="submit rating"> </div> </form> '; }else{ echo ' <p style="color:#444444;"><strong>Start a new booking</strong></p> <form action="index_test.php"> <input class="btn btn-success" type="submit" name="submit" value="Book"> </form>'; } ?> </div> <?php include("footer.php"); ?> <file_sep>/public/loggedinpage.php <?php session_start(); if (array_key_exists("id", $_COOKIE) && $_COOKIE ['id']) { $_SESSION['id'] = $_COOKIE['id']; } if (array_key_exists("id", $_SESSION)) { include("connection.php"); //query for user name $query_name = "SELECT * FROM `users` WHERE id = ".mysqli_real_escape_string($link, $_SESSION['id'])." LIMIT 1"; $result_name = mysqli_query($link, $query_name); //query for table content $query_table = "SELECT * FROM `vehicle_at_markers`"; $result_table = mysqli_query($link, $query_table); $row_name = mysqli_fetch_assoc($result_name); if (array_key_exists('submit', $_POST)) { // if ($_POST['signUp'] == $row_table['Registration']) { // $row_1 = mysqli_fetch_array($result_table); // // $_SESSION['Registration'] = $row_1['Registration']; // setcookie("id", $row_1['id'], time() + 60*60*24*365); // header("Location: book_vehicle.php"); //query for booking content // $row_t = mysqli_fetch_assoc($result_table); $query_book = "SELECT * FROM `vehicle_at_markers` WHERE Registration = '".$row_table['Registration']."'"; $result_book = mysqli_query($link, $query_book); //echo $result_book; $row_1 = mysqli_fetch_array($result_book); $_SESSION_['Registration'] = $row_table['Registration']; setcookie("id", $row_table['id'], time() + 60*60*24*365); echo "<br><br><br> "; echo $row_1['Registration']; header("Location: booking_confirmation.php"); } } } else { header("Location: login.php"); } include("header.php"); ?> <title>select vehicle</title> <nav class="navbar navbar-light bg-faded navbar-fixed-top"> <a class="navbar-brand" >Booking Sample</a> <div class="pull-xs-right"> <a href ='login.php?logout=1'> <button class="btn btn-success-outline" type="submit">Logout</button></a> </div> <div class="pull-xs-right"> <a href ='restructure.php'> <button class="btn btn-success-outline" type="submit">test</button></a> </div> <div class="pull-xs-right"> <a href ='index_test.php'> <button class="btn btn-success-outline" type="submit">Map</button></a> </div> </nav> <br> <br> <link rel="stylesheet" href="css/foundation.css"> <div class="container-fluid" id="containerLoggedInPage"> <div class="row"> <div class="medium-12 large-12 columns"> <!-- --><?php //$row = mysqli_fetch_assoc($result_name)?> <h4>Hello, <?php echo $row_name['first_name']; ?>!</h4> <!-- <div class="medium-2 columns"><a class="button hollow success" href="./clients_new.html">ADD NEW CLIENT</a></div>--> <form method="post"> <table class="stack"> <thead> <tr> <th width="200">Parking location</th> <th width="200">Car make</th> <th width="200">Car model</th> <th width="200">Action</th> </tr> </thead> <tbody> <?php while($row_table = mysqli_fetch_assoc($result_table)) : ?> <?php $query_book = "SELECT * FROM `vehicle_at_markers` WHERE Registration = '".$row_table['Registration']."'"; ?> <tr> <td><?php echo $row_table['address']; ?></td> <td><?php echo $row_table['Make']; ?></td> <td><?php echo $row_table['Model']; ?></td> <td> <!--<a class="hollow button" href="./clients_new.html">EDIT</a>--> <!--<a class="hollow button warning" name="submit" href="./book_vehicle.php?ids=$row[address]">BOOK</a>--> <input type="hidden" name="signUp" value="<?php $row_table['Registration']?>"> <input class="btn btn-success" type="submit" name="submit" value="Book"> </td> </tr> <?php endwhile ?> </tbody> </table> </form> </div> </div> </div> <br> <br> <br> <br> <?php include("footer.php"); ?> <file_sep>/public/final_testing.php <?php date_default_timezone_set('Australia/Melbourne'); $ct = date('Y-m-d H:i:s', time()); $ct_strtotime = strtotime("$ct"); echo '<br><br><br>'; echo "current time : "; echo $ct ; echo '<br><br>'; $test_time = '2018-05-18 18:16:00'; $tt_strtotime = strtotime("$test_time"); $difference = round(abs($ct_strtotime - $tt_strtotime) / 60,2). " minute"; echo 'test time : '; echo $test_time; echo '<br><br>'; if($ct > $test_time){ echo 'current time is larger'; echo '<br><br>'; echo 'difference: '.$difference; }else{ echo 'current time is smaller'; echo '<br><br>'; echo 'difference: '.$difference; } //$to_time = strtotime("2008-12-13 10:42:00"); //$from_time = strtotime("2008-12-13 10:21:00"); //echo round(abs($to_time - $from_time) / 60,2). " minute"; ?> <?php // //include("connection.php"); // //$query_booking = "SELECT * FROM `booking` WHERE status = 'Active'"; //$result_booking = mysqli_query($link, $query_booking); //$booking_active_check = mysqli_num_rows($result_booking); //echo 'active exists: '; //echo $booking_active_check; //$i = 0; //if($booking_active_check > 0){ // // while($i < $booking_active_check){ // # set region // date_default_timezone_set('Australia/Melbourne'); // $get_date = mysqli_fetch_assoc($result_booking); // # get real current time $ct // $ct = date('Y-m-d H:i:s', time()); // # get db start time $dbs // $dbs = $get_date['start']; // # get db end time $dbe // $dbe= $get_date['end']; // echo '<br><br>'; // echo $i.'=========='.$get_date['booking_id'].'=========='.$i; // echo '<br>'; // echo "current time : "; // echo $ct ; // echo '<br>'; // echo "db start time : "; // echo $dbs ; // echo '<br>'; // echo "db end time : "; // echo $dbe ; // echo '<br>'; // $rego = $get_date['vehicle_rego']; // // if($ct > $dbs and $ct < $dbe){ // echo '$ct > $dbs and $ct < $ dbe'; // echo '<br>'; // // $query_update = "UPDATE `vehicle_at_markers` SET `Available` = '0' WHERE Registration = '$rego'"; // $result_update = mysqli_query($link, $query_update); // // } // echo $i.'=========='.$rego.'=========='.$i; // // # if($ct < $dbs){ good } // # if($ct > $dbs and $ct < $ dbe){update available to 0} // // # if($ct > $dbe and available == 0) { message: user over due/cancel=> update available==>1 and status=>cancelled} // $i++; // } // //} //?> <file_sep>/php.ini error_reporting =E_ALL display_errors = On<file_sep>/public/booking_success.php <?php session_start(); $error = ""; $success= ""; if (array_key_exists("id", $_COOKIE) && $_COOKIE ['id']) { $_SESSION['id'] = $_COOKIE['id']; } if (array_key_exists("id", $_SESSION)) { include("connection.php"); //query for user name $query_name = "SELECT * FROM `users` WHERE id = ".mysqli_real_escape_string($link, $_SESSION['id'])." LIMIT 1"; $result_name = mysqli_query($link, $query_name); $query_check = $query_name = "SELECT * FROM `booking` WHERE user_id = ".mysqli_real_escape_string($link, $_SESSION['id'])." AND status = 'pending' ORDER BY booking_id DESC"; $result_check = mysqli_query($link, $query_check); //check if pending > 1 $check = mysqli_num_rows($result_check); $row_booking_id = mysqli_fetch_assoc($result_check); $bid = $row_booking_id['booking_id']; if($check > 1){ $query_delete = "DELETE FROM `booking` WHERE booking_id != '$bid' AND status = 'pending'"; $result_delete = mysqli_query($link, $query_delete); } //update status $query_active = "UPDATE `booking` SET `status` = 'Active' WHERE user_id = ".mysqli_real_escape_string($link, $_SESSION['id'])." AND status = 'pending'"; $result_active = mysqli_query($link, $query_active); $row_active = mysqli_fetch_assoc($result_active); //update payment $query_price = "UPDATE `booking` SET `price` = '49.90' WHERE user_id = ".mysqli_real_escape_string($link, $_SESSION['id'])." AND status = 'Active'"; $result_price = mysqli_query($link, $query_price); //get rego and booking times $query_rego = "SELECT * FROM `booking` WHERE user_id = ".mysqli_real_escape_string($link, $_SESSION['id'])." AND status = 'Active' LIMIT 1"; $result_rego = mysqli_query($link, $query_rego); $row_booking = mysqli_fetch_assoc($result_rego); $rego = $row_booking['vehicle_rego']; $from = $row_booking['start']; $to = $row_booking['end']; $query_vinfo = "SELECT * FROM `Vehicle` WHERE Registration = '$rego' LIMIT 1"; $result_vinfo = mysqli_query($link, $query_vinfo); $success = 'booking success!<br> You paid $49.90<br> Go to my booking:<br><br> <form action="myBooking.php"> <input class="btn btn-success" type="submit" name="submit" value="My booking"> </form>'; }else { header("Location: login.php"); } include("header.php"); ?> <style> html { background: url(mybooking.jpg) no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; } table, td, th { border: 1px solid #66af6f; background-color: #ddd; } table { border-collapse: collapse; margin: 0px auto; width: 75%; } td { text-align: center; padding: 5px; width: 75px; color: #444444; } th { background-color: #66af6f; text-align: center; padding: 5px; color: #444444; } h4 { color: #444444; } </style> <title>booking</title> <div class="container" id="homePageContainer"> <nav class="navbar navbar-light bg-faded navbar-fixed-top"> <a class="navbar-brand" >Booking vehicle</a> <div class="pull-xs-right"> <a href ="index_test.php?logout=1"> <button class="btn btn-success-outline" type="submit">Logout</button></a> </div> <div class="pull-xs-right"> <a href ="myBooking.php"> <button class="btn btn-success-outline" type="submit">My Booking</button></a> </div> <div class="pull-xs-right"> <a href ="index_test.php"> <button class="btn btn-success-outline" type="submit">Map</button></a> </div> </nav> <?php $row = mysqli_fetch_assoc($result_name)?> <h4>Thank you, <?php echo $row['first_name']; ?>!</h4> <div id="error"><?php if ($error!="") { echo '<div class="alert alert-danger" role="alert">'.$error.'</div>'; } ?> </div> <div id="error"><?php if ($success!="") { echo '<div class="alert alert-success" role="alert">'.$success.'</div>'; } ?> </div> </div> <form method="post"> <table class="stack"> <thead> <tr> <th>Make</th> <th>Model</th> <th>Pick up address</th> <th>pick up date</th> <th>Return date</th> </tr> </thead> <tbody> <?php $row_vi = mysqli_fetch_assoc($result_vinfo)?> <tr> <td><?php echo $row_vi['Make']; ?></td> <td><?php echo $row_vi['Model']; ?></td> <td><?php echo $row_vi['address']; ?></td> <td><?php echo $from; ?></td> <td><?php echo $to; ?></td> </tr> </tbody> </table> </form> <?php include("footer.php"); ?> <file_sep>/public/update_testing.php <?php $link = mysqli_connect("localhost", "pma", "pass","<PASSWORD>"); if (mysqli_connect_error()) { die ("Database Connection Error"); } $query_del = "TRUNCATE vehicle_at_markers"; // $query_del = "Delete from vehicle_at_markers"; $query_same = "INSERT INTO vehicle_at_markers (markers_id, markers_name, address, lat, lng, type,Registration,Make,Model,Available,Seats,Description,) SELECT markers.markers_id, markers.markers_name, markers.address , markers.lat, markers.lng, markers.type,Vehicle.Registration, Vehicle.Make, Vehicle.Model, Vehicle.Available, Vehicle.Seats, Vehicle.Description FROM markers JOIN Vehicle ON Vehicle.address = markers.address;"; $query_different = "INSERT INTO vehicle_at_markers (markers_id, markers_name, address, lat, lng, type) SELECT markers.markers_id, markers.markers_name, markers.address, markers.lat, markers.lng, markers.type FROM markers WHERE NOT EXISTS(SELECT markers_id FROM vehicle_at_markers WHERE vehicle_at_markers.markers_id = markers.markers_id) "; $query_index = "alter table vehicle_at_markers AUTO_INCREMENT=1;"; $result_del = mysqli_query($link, $query_del); $result_same = mysqli_query($link, $query_same); $result_different = mysqli_query($link, $query_different); $result_index = mysqli_query($link, $query_index); ?>
2d170ae49148783dfa71d24a0e9cf21dce17214b
[ "JavaScript", "PHP", "INI" ]
23
PHP
SinisaGrujic/MMS-CapstoneProject
dfd34e02cdb42e53a5d2b9304748e08339021bfb
efd5ac634240158b53448e0697a0fb06dfb6ba53
refs/heads/master
<repo_name>ksuquix-forks/o365getmail<file_sep>/o365getmail/config.py """ Configuration settings for running the o365getmail script. In productive system, ensure file can't be accessed by unpriviledged. """ import os CWD = os.path.dirname(os.path.abspath(__file__)) CLIENT_ID = '' CLIENT_SECRET = '' MAIL_PATH = os.path.join(CWD, 'mails') TOKEN_PATH = os.path.join(CWD, 'tokens') LOG_PATH = os.path.join(CWD, 'o365_email_getter.log') # AUTHORITY_URL ending determines type of account that can be authenticated: # /organizations = organizational accounts only # /consumers = MSAs only (Microsoft Accounts - Live.com, Hotmail.com, etc.) # /common = allow both types of accounts AUTHORITY_URL = 'https://login.microsoftonline.com/common' AUTH_ENDPOINT = '/oauth2/v2.0/authorize' TOKEN_ENDPOINT = '/oauth2/v2.0/token' RESOURCE = 'https://graph.microsoft.com/' API_VERSION = 'beta' #['basic', 'message_all'] SCOPES = ['User.Read', 'offline_access', 'Mail.ReadWrite', 'Mail.Send'] # Add other scopes/permissions as needed. # Getter definitions for message pull USERS = [] USERS.append({"user_id":"<EMAIL>", "queue":"Microsurgery", "action":"correspond"}) #USERS.append({"user_id":"<EMAIL>", "queue":"Ophthalmic", "action":"correspond"}) # MDA settings RT_URL = '' CA_FILE = '/usr/local/share/ca-certificates/yourCertificate.cer' # "MDA": "/opt/rt4/bin/rt-mailgate --queue 'Microsurgery' --action correspond --url https://dev-med-rt.zeiss.com/ --ca-file /usr/local/share/ca-certificates/dev-med-rt.zeiss.com/dev_med_rt.zeiss.com.cer" # This code can be removed after configuring CLIENT_ID and CLIENT_SECRET above. if 'ENTER_YOUR' in CLIENT_ID or 'ENTER_YOUR' in CLIENT_SECRET or 'ENTER_YOUR' in MAIL_PATH or 'ENTER_YOUR' in TOKEN_PATH or 'ENTER_YOUR' in LOG_PATH: print('ERROR: config.py does not contain valid CLIENT_ID and CLIENT_SECRET') import sys sys.exit(1) <file_sep>/o365getmail/o365getmail.py #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ This script uses the O365 library to connect to Office 365 with the MSGraphProtocol and the modern authentification standard OAuth2.0-Bearer """ """ ToDo's - Change Logging to more conviniet version - implement single file push - improve mail sending """ import os, sys, typing, argparse import logging, logging.handlers import smtplib # to send emails over smtp.relayhost (no authentification, no OAuthBearer required) from O365 import Account, MSGraphProtocol, FileSystemTokenBackend import config # Here comes your (few) global variables PROG = os.path.basename(sys.argv[0]) # setup logging logger = logging.getLogger(PROG) logger.setLevel(logging.DEBUG) # global logger, no restrictions # create file handler which logs even debug messages fh = logging.FileHandler(config.LOG_PATH, mode='a') fh.setLevel(logging.DEBUG) fh.set_name('File') # create formatter and add it to the handlers formatter = logging.Formatter("%(asctime)s %(name)-20s - %(funcName)-20s - %(levelname)-8s - %(message)s", datefmt='%y-%m-%d %H:%M:%S') fh.setFormatter(formatter) # add the handlers to the logger logger.addHandler(fh) def ensure_absolute_path(my_path: str): """Make absolut path based on executing directory""" if not os.path.isabs(my_path): cwd = os.path.dirname(os.path.abspath(__file__)) return os.path.join(cwd, my_path) else: return my_path def make_folder (folder, mod = 0o600): """Create Folder if it does not exist""" absFolder = ensure_absolute_path(folder) if not os.path.exists(absFolder): os.mkdir(absFolder, mod) logger.debug("Folder %s created", absFolder) return absFolder def safe_file_name(filename, replace=' '): """Make safe filename""" import unicodedata, string valid_filename_chars = "-_.() %s%s" % (string.ascii_letters, string.digits) char_limit = 150 # 255 replaced by 150 to be onsafe side # replace spaces for r in replace: filename = filename.replace(r,'_') # keep only valid ascii chars cleaned_filename = unicodedata.normalize('NFKD', filename).encode('ASCII', 'ignore').decode() # keep only whitelisted chars cleaned_filename = ''.join(c for c in cleaned_filename if c in valid_filename_chars) if len(cleaned_filename)>char_limit: logger.warning("Warning, filename truncated because it was over {}. Filenames may no longer be unique".format(char_limit)) return cleaned_filename[:char_limit] def parse_arguments(args): """Parse/define command line arguments.""" parser = argparse.ArgumentParser(description=f'{__doc__}', formatter_class=argparse.RawTextHelpFormatter) parser.add_argument('--version', action='version', version='0.1.0', help='Print script version.') parser.add_argument('-a', '--auth', action='store_true', default=False, help='Get initial or refresh token if authentification expired.') parser.add_argument('-k', '--keep', action='store_true', default=False, help='Keep messages after pushing to MDA.') parser.add_argument('-v', '--verbose', action='store_true', default=False, help='Output logger infromation to Screen.') parser.add_argument('-m', '--message', default=None, help='Email message as ''*.eml'' to push to RT.') return parser.parse_args(args) def check_for_folders(): """Create folder if ist does not exist.""" make_folder(config.MAIL_PATH, 0o644) make_folder(config.TOKEN_PATH, 0o600) make_folder(os.path.dirname(os.path.abspath(config.LOG_PATH)), 0o644) def getAccount(user_id): """Get account by user""" # prepare token backend for user token_backend = FileSystemTokenBackend(token_path=config.TOKEN_PATH, token_filename=user_id + '.token') # prepare MSGraphProtocol for user my_protocol = MSGraphProtocol(config.API_VERSION, user_id); # setup account definition for user return Account(credentials=(config.CLIENT_ID, config.CLIENT_SECRET), protocol=my_protocol, scopes=config.SCOPES, token_backend=token_backend) def reauth_token(opt): """Initial or refresh token""" for n in range(0, len(config.USERS)): user = config.USERS[n] logger.debug("Requesting token for %s", user['user_id']) try: # create account account = getAccount(user['user_id']) if not account.is_authenticated: account.authenticate() logger.debug("Token for %s (%s) has been created.", user['user_id'], account.con.token_backend.token_path ) if opt.verbose: logger.info("Token for %s has been created.", user['user_id']) else: account.connection.refresh_token() logger.debug("Token for %s (%s) has been refreshed.", user['user_id'], account.con.token_backend.token_path ) if opt.verbose: logger.info("Token for %s has been refreshed.", user['user_id']) except Exception as ex: logger.exception('Prozedure reauth_token throw an error.\n{}'.format(ex)) def notify_admin(template, param): """Notify admin""" if template == 'TEMPL_NEEDS_REAUTH': template = ''' !!! Token no longer valid !!! o365getmail failed due to authentification error. User "{user}" requiers valid token. Login to server and run: o365getmail --auth to fix the problem. Regards, RT Admin '''.format(user=param) subj = "o365getmail user '{}' requires authentification".format(param) elif template == 'TEMPL_MESSAGE_SAVE_ERROR': template = """ !!! Storing message failed !!! Could not store: {msg} """.format(msg=param) subj = "o365getmail could not pull message" elif template == 'TEMPL_MESSAGE_PUSH_ERROR': template = """ !!! Pushing message failed !!! Could not push: {msg} """.format(msg=param) subj = "o365getmail could not push message to RT" logger.debug("Notify Admin template: %s", template) to_addr = [RT_ADMIN_MAIL] #cc_addr = ['<EMAIL>'] from_addr = '<EMAIL>', send_mail(subj, to_addr, cc_addr, from_addr, template) # method to send email over smtp relayhost def send_mail(subject: str, to_addr: [str], cc_addr: [str], from_addr: str, body_text: str): """Send an email""" BODY = "\r\n".join(( "From: %s" % from_addr, "To: %s" % ",".join(to_addr), "Cc: %s" % ",".join(cc_addr), "Subject: %s" % subject , "", body_text )) toaddrs = to_addr + cc_addr print(toaddrs) server = smtplib.SMTP(SMTPRELAY_HOST) logger.debug("logger.getChild('Console').level = %s", logger.getChild('Console').level) if logger.getChild('Console').level == logging.DEBUG: server.set_debuglevel(1) server.sendmail(from_addr, toaddrs, BODY) server.quit() def get_messages_cnt(inbox, user_id, verbose): """Get messages count.""" total_items = inbox.get_messages(limit=9999) total_items_count = sum(1 for m in total_items) unread_items = inbox.get_messages(limit=9999, query='isRead eq false') unread_items_count = sum(1 for m in unread_items) if verbose: logger.info('{}: Seen {} messages. {} messages are unread.'.format(user_id, total_items_count, unread_items_count)) logger.debug('{}: Seen {} messages. {} messages are unread.'.format(user_id, total_items_count, unread_items_count)) return total_items_count, unread_items_count def get_messages(opt): """Pull messages from o365""" for n in range(0, len(config.USERS)): user = config.USERS[n] mail_folder= os.path.join(config.MAIL_PATH, user['user_id']) make_folder(mail_folder, 0o644) logger.debug("Message pull initialized for user_id: %s", user['user_id']) try: account = getAccount(user['user_id']) if not account.is_authenticated: notify_admin('TEMPL_NEEDS_REAUTH', user['user_id']) else: mailbox = account.mailbox() inbox = mailbox.inbox_folder() total, unread = get_messages_cnt(inbox, user['user_id'], opt.verbose) msg_cnt = 0 # for each unread message do (25 at a time by default) for message in inbox.get_messages(query='isRead eq false', download_attachments=True): msg_cnt += 1 if opt.verbose: logger.info('{}: Working on message from:<{}> subject:{}.'.format(msg_cnt, message.sender, message.subject)) # email creation date created = message.created.strftime("%Y%m%d_%H%M%S") # create unic file absolut path and name safe_filename = safe_file_name('{}_{}_{}'.format(created, message.sender.address, message.subject)) msg_abs_path = os.path.join(mail_folder, '{}.eml'.format(safe_filename)) # store file try: ret = message.save_as_eml(to_path=msg_abs_path) if not ret: notify_admin('TEMPL_MESSAGE_SAVE_ERROR', 'From:<{}>\nSubject:{}\nCreated Date:{}'.format(message.sender, message.subject, created)) except FileNotFoundError: try: # try rename msg_abs_path = os.path.join(mail_folder, '{}_{}.eml'.format(created, message.conversation_id)) ret = message.save_as_eml(to_path=msg_abs_path) except FileNotFoundError: notify_admin('TEMPL_MESSAGE_SAVE_ERROR', 'From:<{}>\nSubject:{}\nCreated Date:{}'.format(message.sender, message.subject, created)) except Exception as ex: notify_admin('TEMPL_MESSAGE_SAVE_ERROR', 'From:<{}>\nSubject:{}\nCreated Date:{}'.format(message.sender, message.subject, created)) message.mark_as_read() except Exception as ex: logger.exception('Prozedure get_messages throw an error.\n{}'.format(ex)) def get_files_in_folder(folder): """Return files from folder""" return [fn for fn in os.listdir(folder) if fn.lower().endswith('.eml')] def push_message_as_forward(abs_filename, user, verbose = False, keep = False): """If push faild, try to forward""" import email, re import email.mime from email.mime.multipart import MIMEMultipart from email.mime.base import MIMEBase from email.mime.text import MIMEText f = open(abs_filename, "rb") message_to_forward = email.message_from_binary_file(f) f.close() headers = message_to_forward._headers from_addr = '' subject = '' for h in headers: if h[0] == 'From': from_addr = (re.search(r'[\w\.-]+@[\w\.-]+', h[1])).group(0) # single address #if h[0] == 'To': to_addr = (re.findall(r'[\w\.-]+@[\w\.-]+', h[1])) # multiple addresses possible if h[0] == 'Subject': subject = h[1] message = MIMEBase("multipart", "mixed") message["Subject"] = subject message["From"] = from_addr message["To"] = user['user_id'] message.attach(MIMEText(""" This email was automatically generated and forwarded. Original Email is attached. """)) rfcmessage = MIMEBase("message", "rfc822") rfcmessage.attach(message_to_forward) message.attach(rfcmessage) out_file = open('{}.frwd'.format(abs_filename), "w") generator = email.generator.Generator(out_file) generator.flatten(message) push_message('{}.frwd'.format(abs_filename),user, verbose, keep) def push_specific_message(abs_filename, verbose = False, keep = False): """Push from command line""" import email, re f = open(abs_filename, "rb") message = email.message_from_binary_file(f) f.close() headers = message._headers to_addr = '' for h in headers: if h[0] == 'To': to_addr = (re.findall(r'[\w\.-]+@[\w\.-]+', h[1])) # multiple addresses possible for u in config.USERS: if u['user_id'] in to_addr: push_message(abs_filename, u, verbose, keep) def push_message(abs_filename, user, verbose = False, keep = False): """Push messages""" import subprocess logger.debug("Pushing: %s", abs_filename) if verbose: logger.info("Pushing: %s", abs_filename) try: p1 = subprocess.Popen(['cat', abs_filename], stdout=subprocess.PIPE) p2 = subprocess.Popen(['/opt/rt4/bin/rt-mailgate --queue ''{}'' --action {} --url ''{}'' --ca-file ''{}'''.format( user['queue'], user['action'], config.RT_URL, config.CA_FILE)], stdin=p1.stdout, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True) p1.stdout.close() output = p2.communicate() if output[1] != b'': logger.error("Error pushing '{}' to RT.".format(abs_filename)) if not abs_filename.endswith('.frwd'): push_message_as_forward(abs_filename, user, verbose, keep) if verbose: logger.info("Failed") os.rename(abs_filename, '{}.error'.format(abs_filename)) notify_admin('TEMPL_MESSAGE_PUSH_ERROR', 'Failed to push: {}'.format('{}.error'.format(abs_filename))) else: logger.debug("Pushed '{}' to RT.".format(abs_filename)) if verbose: logger.info("Success") if keep: os.rename(abs_filename, '{}.keep'.format(abs_filename)) else: os.remove(abs_filename) except Exception as ex: logger.exception('Prozedure push_message throw an error.\n%s', ex) def push_messages(opt): """Push messages to MDA of RT""" for n in range(0, len(config.USERS)): user = config.USERS[n] mail_folder= os.path.join(config.MAIL_PATH, user['user_id']) logger.debug("Message push for user_id: %s and folder: %s", user['user_id'], mail_folder) if opt.verbose: logger.info("Message push for user_id: %s", user['user_id']) if not os.path.exists(mail_folder): logger.debug("Folder '{}' does not exist. No Mails in Inbox? New Account?".format(mail_folder)) continue files = get_files_in_folder(mail_folder) logger.debug("%s Message found to push.", len(files)) for f in files: abs_filename = os.path.join(mail_folder, f) push_message(abs_filename, user, opt.verbose, opt.keep) def main(args)->None: """Main prozedure.""" logger.debug("Entered main procedure.") logger.debug("Try parsing arguments.") opt = parse_arguments(args) logger.debug('\t\toptions: %s', opt) if opt.verbose: # create console handler with a higher log level ch = logging.StreamHandler() ch.setLevel(logging.INFO) ch.set_name('Console') # create formatter and add it to the handlers formatter = logging.Formatter("%(name)-20s: %(levelname)-8s %(message)s") ch.setFormatter(formatter) # add the handlers to the logger #logging.getLogger('').addHandler(ch) logger.addHandler(ch) if opt.message: push_specific_message(opt.message, opt.verbose, opt.keep) sys.exit(0) # Check if required folders exist check_for_folders() # forced token request and refresh if opt.auth: reauth_token(opt) # get messages from o365 get_messages(opt) # push messages to RT push_messages(opt) if __name__ == '__main__': """Entrypoint.""" try: logger.debug('Executing script: %s', PROG) main(sys.argv[1:]) except Exception as ex: logger.exception('{} exception during startup: {}', PROG, ex) sys.stderr.write(f'{PROG}: {ex}') sys.exit(1) sys.exit(0)
faede17967eb8cca3b9fff9b965a1765fca5fcf9
[ "Python" ]
2
Python
ksuquix-forks/o365getmail
72dd426f04d6b6f7e4fa3886690a0fea0501b6f3
8d3571b8c72170ddab32aa0ba53722608f5b67a3
refs/heads/master
<repo_name>TrungViet19/BaiThiCSW<file_sep>/t1708e-service/src/main/java/service/ProductService.java package service; import com.google.gson.Gson; import entity.Product; import org.hibernate.Session; import util.HibernateUtil; import javax.jws.WebMethod; import javax.jws.WebService; import java.util.List; @WebService public class ProductService { public static void main(String[] args) { Product product = new Product(); product.setName("One"); product.setPrice(1000); product.setQuantity(1); // new ProductService().addProduct(product); // new ProductService().sellProduct(1,3); System.out.println(new Gson().toJson(new ProductService().getAllProduct())); } @WebMethod public boolean addProduct(Product p) { Session session = HibernateUtil.getSession(); session.beginTransaction(); session.save(p); session.getTransaction().commit(); session.close(); return true; } @WebMethod public String getAllProduct() { Session session = HibernateUtil.getSession(); session.beginTransaction(); List<Product> products = session.createCriteria(Product.class).list(); session.getTransaction().commit(); session.close(); return new Gson().toJson(products); } @WebMethod public boolean sellProduct(int productId, int quantity) { Session session = HibernateUtil.getSession(); session.beginTransaction(); Product product = session.get(Product.class, productId); if (product.getQuantity() < quantity){ session.close(); return false; } product.setQuantity(product.getQuantity() - quantity); session.saveOrUpdate(product); session.getTransaction().commit(); session.close(); return true; } } <file_sep>/t1708e-service-client01/src/main/java/t1708e/serviceclient/controller/ProductController.java package t1708e.serviceclient.controller; import com.google.gson.Gson; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.validation.BindingResult; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; import t1708e.serviceclient.service.Product; import t1708e.serviceclient.service.ProductService; import javax.validation.Valid; import java.rmi.RemoteException; import java.util.List; @Controller @RequestMapping(value = "/product") public class ProductController { @Autowired ProductService productService; @RequestMapping(value = "/create", method = RequestMethod.GET) public String create(Model model) { return "product/form"; } @RequestMapping(value = "/store", method = RequestMethod.POST) public String store(@Valid Product product, BindingResult bindingResult, @RequestParam("name") String name, @RequestParam("price") double price, @RequestParam("quantity") int quantity) throws RemoteException { product.setName(name); product.setPrice(price); product.setQuantity(quantity); productService.addProduct(product); return "redirect:/product/list"; } @RequestMapping(value = "/list", method = RequestMethod.GET) public String getList(Model model) throws RemoteException { Product[] products = new Gson().fromJson(productService.getAllProduct(), Product[].class); model.addAttribute("products",products); return "product/list"; } @RequestMapping(value = "/sell", method = RequestMethod.GET) public String updateForm(Model model) throws RemoteException { Product[] products = new Gson().fromJson(productService.getAllProduct(), Product[].class); model.addAttribute("products",products); model.addAttribute("isSellFalse",false); return "product/sellForm"; } @RequestMapping(value = "/update", method = RequestMethod.POST) public String update(Model model,@Valid Product product, BindingResult bindingResult, @RequestParam("quantity") int quantity, @RequestParam("id")int id) throws RemoteException { boolean isSell = productService.sellProduct(id,quantity); if (isSell){ return "redirect:/product/list"; } else { Product[] products = new Gson().fromJson(productService.getAllProduct(), Product[].class); model.addAttribute("products",products); model.addAttribute("isSellFalse",true); return "product/sellForm"; } } }
12edee68124cc183d37f6ccfbaa2eefc35f7dfda
[ "Java" ]
2
Java
TrungViet19/BaiThiCSW
b49eb69dea909532c87b32e7074bf537ea0119df
fef864799e18e6bce0b8c0e1afe6c6bfe3ab376f
refs/heads/master
<file_sep>#!/bin/bash ### BEGIN INIT INFO # Provides: tomcat7 # Required-Start: $network # Required-Stop: $network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start/Stop Tomcat server ### END INIT INFO PATH=/sbin:/bin:/usr/sbin:/usr/bin start() { sh /etc/apache-tomcat-9.0.10/bin/startup.sh } stop() { sh /etc/apache-tomcat-9.0.10/bin/shutdown.sh } a case $1 in start|stop) $1;; restart) stop; start;; *) echo "Run as $0 "; exit 1;; esac
f6b0d95491861f4b3c0fda9bf127525e979bc633
[ "Shell" ]
1
Shell
JAC2150/tomcat
8850725c70e881856a4bfc5cc4e6ba567d2498ea
e2376287b566952b273cd3d56a25353ef1ea49a6
refs/heads/master
<file_sep>// Copyright 2017 Google Inc. // // Licensed under the Apache License, Version 2.0 (the “License”); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // <https://apache.org/licenses/LICENSE-2.0>. // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an “AS IS” BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. 'use strict'; const get = require('../../shared/get.js'); const getChecksums = (version) => { const prefix = `https://archive.mozilla.org/pub/firefox/releases/${version}`; const regex = /^([a-f0-9]{64})\s{2}(jsshell\/jsshell-[^.]+\.zip)$/gm; return new Promise(async (resolve, reject) => { try { const response = await get(`${prefix}/SHA256SUMS`); const body = response.body; const urlsToChecksums = new Map(); // TODO: Use `RegExp#matchAll` once it’s natively available. let match; while (match = regex.exec(body)) { const [, checksum, fileName] = match; const fileUrl = `${prefix}/${fileName}`; urlsToChecksums.set(fileUrl, checksum); } resolve(urlsToChecksums); } catch (error) { reject(error); } }); }; const getChecksum = async ({ version, url }) => { const checksums = await getChecksums(version); const checksum = checksums.get(url); if (checksum) { return checksum; } throw new Error('Checksum not found.'); }; module.exports = getChecksum; <file_sep>// Copyright 2017 Google Inc. // // Licensed under the Apache License, Version 2.0 (the “License”); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // <https://apache.org/licenses/LICENSE-2.0>. // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an “AS IS” BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. 'use strict'; const fs = require('fs'); const mkdirp = require('mkdirp'); const config = require('../shared/config.js'); const jsvuPath = config.path; const statusFilePath = `${jsvuPath}/status.json`; const getStatus = () => { const status = {}; const args = process.argv.slice(2); for (const arg of args) { if (arg.startsWith('--os=')) { const os = arg.split('=')[1]; status.os = os; } else if (arg.startsWith('--engines=')) { const enginesArg = arg.split('=')[1]; const engines = enginesArg === 'all' ? ['chakra', 'javascriptcore', 'spidermonkey', 'v8'] : enginesArg.split(','); status.engines = engines; } } if (status.os && status.engines) { return status; } try { return require(statusFilePath); } catch (error) { return {}; } }; const setStatus = (status) => { mkdirp.sync(jsvuPath); fs.writeFileSync(statusFilePath, JSON.stringify(status, null, '\t')); }; module.exports = { getStatus, setStatus, }; <file_sep>// Copyright 2017 Google Inc. // // Licensed under the Apache License, Version 2.0 (the “License”); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // <https://apache.org/licenses/LICENSE-2.0>. // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an “AS IS” BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. 'use strict'; const get = require('../../shared/get.js'); const getChecksums = (version) => { const url = `https://github.com/Microsoft/ChakraCore/releases/tag/v${version}`; // https://stackoverflow.com/a/1732454/96656 const regex = /href="(https:\/\/aka\.ms\/chakracore\/cc_[^"]+)"[^>]*>[^<]+<\/a><\/td>\n<td align="left"><code>([a-f0-9]{64})<\/code><\/td>/g; return new Promise(async (resolve, reject) => { try { const response = await get(url); const body = response.body; const urlsToChecksums = new Map(); // TODO: Use `RegExp#matchAll` once it’s natively available. let match; while (match = regex.exec(body)) { const [, fileUrl, checksum] = match; urlsToChecksums.set(fileUrl, checksum); } resolve(urlsToChecksums); } catch (error) { reject(error); } }); }; const getChecksum = async ({ version, url }) => { const checksums = await getChecksums(version); const checksum = checksums.get(url); if (checksum) { return checksum; } throw new Error('Checksum not found.'); }; module.exports = getChecksum;
a8bbe1c5287b7581e9b8e7bde30a342da2b9f9ed
[ "JavaScript" ]
3
JavaScript
Opportunitylivetv/jsvu
6dc5a88e01ab8c7b9883876b11da1cb96ff14f84
a6ff70a9dcc168af10ee434cb865d14fe8c1a2fe
refs/heads/master
<repo_name>djok92/ng-search-renderer<file_sep>/projects/ng-search-renderer/src/public-api.ts /* * Public API Surface of ng-search-renderer */ export * from "./lib/interfaces/Category"; export * from "./lib/interfaces/Product"; export * from "./lib/interfaces/Result-item"; export * from "./lib/classes/Handler"; // export * from "./lib/components/card/card.component"; export * from "./lib/pages/results/results.component"; export * from "./lib/services/result.service"; export * from "./lib/ng-search-renderer.module"; <file_sep>/projects/ng-search-renderer/src/lib/classes/Handler.ts import { ResultItem } from "../interfaces/Result-item"; import { Product } from "../interfaces/Product"; export class Handler { constructor() {} public handleProduct(products: Product[]): ResultItem[] { return products.map((product: Product) => { return { title: product.title, imageUrl: product.imageUrl, tags: product.title.split(" ") }; }); } } <file_sep>/projects/ng-search-renderer/src/lib/services/result.service.ts import { Injectable } from '@angular/core'; import { Category } from '../interfaces/Category'; import { BehaviorSubject, Observable } from 'rxjs'; import { ResultItem } from '../interfaces/Result-item'; import { Product } from '../interfaces/Product'; import { Handler } from '../classes/Handler'; @Injectable({ providedIn: 'root', }) export class ResultService { constructor() {} private _categories$: BehaviorSubject<Category[]> = new BehaviorSubject<Category[]>([]); private _searchResults$: BehaviorSubject<ResultItem[]> = new BehaviorSubject<ResultItem[]>([]); private _error$: BehaviorSubject<boolean> = new BehaviorSubject<boolean>(false); public setCategories(categories: Category[]): void { this._categories$.next(categories); } public getError(): Observable<boolean> { return this._error$.asObservable(); } public handleProducts(categoryName: string, products: Product[], searchMode: 'new' | 'refresh'): void { let mappedResults; let activeCategory: Category = this._categories$.value.find((category: Category) => { return category.name.toLowerCase() == categoryName.toLowerCase(); }); if (activeCategory) { this.setError(false); if (searchMode === 'new') { this.clearHandlers(); activeCategory.active = true; activeCategory.handler = new Handler(); mappedResults = activeCategory.handler.handleProduct(products); } else { mappedResults = activeCategory.handler.handleProduct(products); } this.setResultItems(mappedResults); } else { this.setError(true); } } public getResultItems(): Observable<ResultItem[]> { return this._searchResults$.asObservable(); } private clearHandlers(): void { this._categories$.value.forEach((category: Category) => { category.active = false; if (category.handler) { category.handler = null; } }); } private setResultItems(mappedItems: ResultItem[]): void { this._searchResults$.next(mappedItems); } private setError(value: boolean): void { this._error$.next(value); } } <file_sep>/projects/ng-search-renderer/src/lib/pages/results/results.component.ts import { Component, OnInit, Input, OnChanges, OnDestroy, SimpleChange } from '@angular/core'; import { ReplaySubject } from 'rxjs'; import { takeUntil } from 'rxjs/operators'; import { ResultService } from '../../services/result.service'; import { ResultItem } from '../../interfaces/Result-item'; import { Product } from '../../interfaces/Product'; import { Category } from '../../interfaces/Category'; import { faCloudDownloadAlt, IconDefinition } from '@fortawesome/free-solid-svg-icons'; @Component({ selector: 'ng-results', templateUrl: './results.component.html', styleUrls: ['./results.component.scss'], }) export class ResultsComponent implements OnInit, OnChanges, OnDestroy { constructor(private resultSevice: ResultService) {} public downloadIcon: IconDefinition = faCloudDownloadAlt; public searchResults: ResultItem[]; public hasError: boolean; private _destroy$: ReplaySubject<boolean> = new ReplaySubject<boolean>(1); @Input() products: Product[]; @Input() categories: Category[]; @Input() activeCategoryName: string; @Input() searchMode: 'new' | 'refresh'; ngOnChanges(changes: { [propName: string]: SimpleChange }) { if ( // Coulda used changes["categories"].firstChange, but opted for this because this would run if list of categories did really change sometime. changes['categories'] && changes['categories'].previousValue !== changes['categories'].currentValue ) { this.resultSevice.setCategories(this.categories); } if (changes['products'] && changes['products'].previousValue !== changes['products'].currentValue) { this.resultSevice.handleProducts(this.activeCategoryName, this.products, this.searchMode); } } ngOnInit() { this.resultSevice .getResultItems() .pipe(takeUntil(this._destroy$)) .subscribe((searchResultItems: ResultItem[]) => { this.searchResults = searchResultItems; }); this.resultSevice .getError() .pipe(takeUntil(this._destroy$)) .subscribe((hasError: boolean) => { this.hasError = hasError; }); } ngOnDestroy() { this._destroy$.next(true); this._destroy$.complete(); } } <file_sep>/projects/ng-search-renderer/src/lib/ng-search-renderer.module.ts import { NgModule } from "@angular/core"; import { BrowserModule } from "@angular/platform-browser"; import { CardComponent } from "./components/card/card.component"; import { ResultsComponent } from "./pages/results/results.component"; import { FontAwesomeModule } from "@fortawesome/angular-fontawesome"; @NgModule({ declarations: [ResultsComponent, CardComponent], imports: [BrowserModule, FontAwesomeModule], exports: [ResultsComponent] }) export class NgSearchRendererModule {} <file_sep>/README.md # NgSearchRenderer Documentation comming soon. Djok92 <file_sep>/projects/ng-search-renderer/src/lib/components/card/card.component.ts import { Component, OnInit, Input } from '@angular/core'; import { IconDefinition } from '@fortawesome/free-solid-svg-icons'; @Component({ selector: 'ng-card', templateUrl: './card.component.html', styleUrls: ['./card.component.scss'], }) export class CardComponent implements OnInit { constructor() {} @Input() title: string; @Input() imageUrl: string; @Input() tags: string[]; @Input() downloadIcon: IconDefinition; ngOnInit(): void {} } <file_sep>/projects/ng-search-renderer/src/lib/interfaces/Category.ts import { Handler } from "../classes/Handler"; export interface Category { id?: number; products?: number; name: string; active?: boolean; handler?: Handler; }
41cffae933de3d4625f03f983fa5e47e4b5618d8
[ "Markdown", "TypeScript" ]
8
TypeScript
djok92/ng-search-renderer
0ad77d347f2d4a3a466eae864fde877f81fb0baf
c36beada2e22f0c69396afb2a47824ca9670cec7
refs/heads/master
<repo_name>StefanBurscher/hashMgmt<file_sep>/screens/AuthSelectionScreen.js import React, { Component } from 'react'; import { AppRegistry, ImageBackground, StyleSheet, Text, View, Image } from 'react-native'; import { Button } from 'react-native-elements'; import Colors from '../constants/Colors'; import StyledText from '../components/StyledText'; export default class AuthSelectionsScreen extends Component { static navigationOptions = { header: null }; login = () => { this.props.navigation.navigate('SignIn'); }; register = () => { this.props.navigation.navigate('SignUp'); }; render() { return ( <View style={styles.container}> <View style={styles.innerContainer}> <View style={styles.topView}> <Image source={require('../assets/images/icon.png')} style={styles.logo} /> </View> <View style={styles.bottomView}> <Button title="SIGN IN" large backgroundColor={Colors.tintColor} style={{ marginBottom: 10 }} borderRadius={30} onPress={this.login} /> <Button title="SIGN UP" large backgroundColor={Colors.tintColor} style={{ marginBottom: 10 }} borderRadius={30} onPress={this.register} /> </View> </View> </View> ); } } const styles = StyleSheet.create({ container: { flex: 1, paddingTop: 15, backgroundColor: '#fff', }, innerContainer: { width: 300, flex: 1, alignSelf: 'center' }, topView: { flex: 1, }, bottomView: { flex: 1, }, logo: { paddingTop: 10, paddingBottom: 20, alignSelf: 'center' } }); <file_sep>/screens/SignInScreen.js import React from 'react'; import { AppRegistry, ImageBackground, StyleSheet, Text, View, Image, TextInput, AsyncStorage } from 'react-native'; import { Button } from 'react-native-elements'; import axios from 'axios'; import Colors from '../constants/Colors'; export default class SignUpScreen extends React.Component { constructor(props) { super(props); this.state = { email: '', password: '' }; } static navigationOptions = { header: null }; login = async () => { const { email, password } = this.state; const data = { email, password }; axios.post('https://painpoint.herokuapp.com/api/login', data) .then(async (resp) => { await AsyncStorage.setItem('user', JSON.stringify(resp.data.user)); this.props.navigation.navigate('Main'); }) .catch((err) => { console.log(err); }) }; setName = (name) => { this.setState({ name }) } setEmail = (email) => { this.setState({ email }) } setPassword = (password) => { this.setState({ password }) } render() { return ( <View style={styles.container}> <View style={styles.innerContainer}> <Image source={require('../assets/images/icon.png')} style={styles.logo} /> <TextInput style={{ height: 40, borderColor: 'gray', borderBottomWidth: 1, marginBottom: 10 }} onChangeText={this.setEmail} value={this.state.email} placeholder={"Email"} /> <TextInput style={{ height: 40, borderColor: 'gray', borderBottomWidth: 1, marginBottom: 10 }} onChangeText={this.setPassword} value={this.state.password} placeholder={"<PASSWORD>"} secureTextEntry={true} /> <Button title="SIGN IN" large backgroundColor={Colors.tintColor} style={{ marginBottom: 10 }} borderRadius={30} onPress={this.login} /> </View> </View> ); } } const styles = StyleSheet.create({ container: { flex: 1, paddingTop: 15, backgroundColor: '#fff', }, innerContainer: { width: 300, flex: 1, alignSelf: 'center' }, logo: { paddingTop: 10, alignSelf: 'center' } }); <file_sep>/navigation/MainTabNavigator.js import React from 'react'; import { Platform } from 'react-native'; import { createStackNavigator, createBottomTabNavigator } from 'react-navigation'; import TabBarIcon from '../components/TabBarIcon'; import HomeScreen from '../screens/HomeScreen'; import LinksScreen from '../screens/LinksScreen'; import SettingsScreen from '../screens/SettingsScreen'; import SettingsScreen1 from '../screens/SettingsScreen1'; import SettingsScreen2 from '../screens/SettingsScreen2'; import CameraScreen from '../screens/CameraScreen'; import TherapyScreen from '../screens/TherapyScreen'; import AddPatientScreen from '../screens/AddPatientScreen'; import ChartScreen from '../screens/ChartScreen'; const HomeStack = createStackNavigator({ Home: HomeScreen, AddPatient: AddPatientScreen }); HomeStack.navigationOptions = { tabBarLabel: 'Patients', tabBarIcon: ({ focused }) => ( <TabBarIcon focused={focused} name={ Platform.OS === 'ios' ? 'ios-medkit' : 'md-medkit' } /> ), }; const LinksStack = createStackNavigator({ Links: LinksScreen, Camera: CameraScreen, Therapy: TherapyScreen, Chart: ChartScreen }); LinksStack.navigationOptions = { tabBarLabel: 'Actions', tabBarIcon: ({ focused }) => ( <TabBarIcon focused={focused} name={Platform.OS === 'ios' ? 'ios-link' : 'md-link'} /> ), }; const SettingsStack = createStackNavigator({ Settings: SettingsScreen, Settings1: SettingsScreen1, Settings2: SettingsScreen2, }); SettingsStack.navigationOptions = { tabBarLabel: 'Profile', tabBarIcon: ({ focused }) => ( <TabBarIcon focused={focused} name={Platform.OS === 'ios' ? 'ios-contact' : 'md-contact'} /> ), }; export default createBottomTabNavigator({ HomeStack, LinksStack, SettingsStack, }); <file_sep>/screens/AddPatientScreen.js import React from 'react'; import { List, ListItem } from 'react-native-elements' import { AppRegistry, ImageBackground, StyleSheet, Text, View, Image, TextInput, AsyncStorage, TouchableOpacity, ScrollView } from 'react-native'; import { Button } from 'react-native-elements'; import axios from 'axios'; import Colors from '../constants/Colors'; export default class AddPatientScreen extends React.Component { constructor(props) { super(props); this.state = { full_name: '', patients: [] }; } static navigationOptions = { header: null }; componentDidMount = () => { axios.get('https://painpoint.herokuapp.com/api/patients') .then((resp) => { let patients = []; for (let i = 0; i < resp.data.patients.length; i++) { const element = resp.data.patients[i]; patients.push({ ...element, title: element.id + ' ' + element.full_name, icon: 'face' }) } this.setState({ patients }); }) .catch((err) => { console.log(err); }) } addPatient = async () => { const { full_name } = this.state; axios.post('https://painpoint.herokuapp.com/api/add-patient', { full_name }) .then(async (resp) => { const userData = await AsyncStorage.getItem('user'); const user = JSON.parse(userData); axios.post('https://painpoint.herokuapp.com/api/assign-patient', { patient_id: resp.data.patient.id, user_id: user.id }) .then(async (resp) => { console.log(resp) await AsyncStorage.setItem('patient', JSON.stringify( resp.data.patient)); this.props.navigation.navigate('Home'); }) .catch((err) => { console.log(err); }) }) }; addSelectedPat = async (patient) => { const userData = await AsyncStorage.getItem('user'); const user = JSON.parse(userData); axios.post('https://painpoint.herokuapp.com/api/assign-patient', { patient_id: patient.id, user_id: user.id }) .then(async (resp) => { console.log(resp) await AsyncStorage.setItem('patient', JSON.stringify(patient)); this.props.navigation.navigate('Home'); }) .catch((err) => { console.log(err); }) } setName = (full_name) => { this.setState({ full_name }) } render() { const list = this.state.patients; return ( <ScrollView style={styles.container} contentContainerStyle={styles.contentContainer}> <View style={styles.container}> <Image source={require('../assets/images/icon.png')} style={styles.logo} /> <View style={{ marginLeft: 20, marginRight: 20 }}> <TextInput style={{ height: 40, borderColor: 'gray', borderBottomWidth: 1, marginBottom: 10 }} onChangeText={this.setName} value={this.state.name} placeholder={"<NAME>"} /> </View> <Button title="Add patient" large backgroundColor={Colors.tintColor} style={{ marginTop: 15 }} borderRadius={30} onPress={this.addPatient} /> </View> <List style={{ flex: 1, width: '100%' }}> { list.map((item) => ( <TouchableOpacity key={item.title} onPress={() => this.addSelectedPat(item)}> <ListItem style={{ flex: 1, width: '100%' }} title={item.title} subtitle={item.subtitle} leftIcon={{ name: item.icon }} /> </TouchableOpacity> )) } </List> </ScrollView> ); } } const styles = StyleSheet.create({ container: { flex: 1, paddingTop: 15, backgroundColor: '#fff', }, logo: { paddingTop: 10, alignSelf: 'center' } }); <file_sep>/screens/SettingsScreen.js import React from 'react'; import { List, ListItem, Card, Text } from 'react-native-elements' import { ActivityIndicator, AsyncStorage, View, StyleSheet, TouchableOpacity, ScrollView, Image, Button } from 'react-native'; import axios from 'axios'; import { Icon } from 'expo'; import StyledText from '../components/StyledText'; import Colors from '../constants/Colors'; export default class SettingsScreen extends React.Component { constructor(props) { super(props); this.state = { patient: { full_name: '', icon: 'face' }, pains: [] } } static navigationOptions = { title: 'Profile', }; componentDidMount = async () => { const patientData = await AsyncStorage.getItem('patient'); const patient = JSON.parse(patientData); this.setState({ patient }); axios.get('https://painpoint.herokuapp.com/api/pain-history?patient_id=' + patient.id) .then((resp) => { let pains = []; for (let i = 0; i < resp.data["pain-history"].length; i++) { const element = resp.data["pain-history"][i]; pains.push({ ...element, title: element.created_at + ' Pain level: ' + element.scale, icon: 'face' }) } this.setState({ patient, pains }); }) .catch((err) => { console.log(err); }) } render() { const { patient, pains } = this.state; console.log(pains) return ( <ScrollView style={styles.container} contentContainerStyle={styles.contentContainer}> <Card style={{ flexDirection: 'column' }}> <View style={{ flex: 1, flexDirection: 'row' }}> <View style={{ flex: 3, borderWidth: 1, borderRadius: 10, marginRight: 10, paddingTop: 10, backgroundColor: Colors.tintColor }}> <Icon.Ionicons size={50} name={ Platform.OS === 'ios' ? 'ios-contact' : 'md-contact' } color={"#fff"} style={{ textAlign: 'center' }} /> <Text style={{ marginBottom: 10, textAlign: 'center', color: '#fff' }}> {patient.full_name} </Text> </View> <View style={{ flex: 1, flexDirection: 'column', alignSelf: 'flex-end' }}> <TouchableOpacity onPress={this._signOutAsync} style={{ borderWidth: 1, flex: 1, borderRadius: 10, padding: 10, width: 80, backgroundColor: '#dc3939' }}> <Icon.Ionicons size={50} name={ Platform.OS === 'ios' ? 'ios-power' : 'md-power' } color={"#000"} style={{ textAlign: 'center' }} /> <Text style={{ textAlign: 'center' }}>Logout</Text> </TouchableOpacity> </View> </View> </Card> <ScrollView style={styles.container}> <View style={{ flex: 1, flexDirection: 'row' }}> <TouchableOpacity onPress={() => this.props.navigation.navigate('Settings')}> <View style={{ flex: 1, width: 100, height: 100, flexGrow: 1, alignSelf: 'center', justifyContent: 'center', alignContent: 'center', alignItems: 'center', borderWidth: 1, borderRadius: 10, margin: 10, borderColor: Colors.tintColor, backgroundColor: Colors.tintColor }}> <Icon.Ionicons size={32} name={ Platform.OS === 'ios' ? 'ios-list' : 'md-list' } color={'#fff'} style={{ alignSelf: 'center' }} /> <StyledText style={{ color: '#fff' }}>Pain Activity</StyledText> </View> </TouchableOpacity> <TouchableOpacity onPress={() => this.props.navigation.navigate('Settings1')}> <View style={{ flex: 1, width: 100, height: 100, flexGrow: 1, alignSelf: 'center', justifyContent: 'center', alignContent: 'center', alignItems: 'center', borderWidth: 1, borderRadius: 10, margin: 10, borderColor: Colors.tintColor }}> <Icon.Ionicons size={32} name={ Platform.OS === 'ios' ? 'ios-analytics' : 'md-analytics' } color={Colors.tintColor} style={{ alignSelf: 'center' }} /> <StyledText>Chart</StyledText> </View> </TouchableOpacity> <TouchableOpacity onPress={() => this.props.navigation.navigate('Settings2')}> <View style={{ flex: 1, width: 100, height: 100, flexGrow: 1, alignSelf: 'center', justifyContent: 'center', alignContent: 'center', alignItems: 'center', borderWidth: 1, borderRadius: 10, margin: 10, borderColor: Colors.tintColor }}> <Icon.Ionicons size={32} name={ Platform.OS === 'ios' ? 'ios-list' : 'md-list' } color={Colors.tintColor} style={{ alignSelf: 'center' }} /> <StyledText>Medic Activity</StyledText> </View> </TouchableOpacity> </View> </ScrollView > <List style={{ flex: 1, width: '100%' }}> { pains.map((item) => ( <ListItem key={item.title} style={{ flex: 1, width: '100%' }} title={item.title} subtitle={item.subtitle} leftIcon={{ name: item.icon }} /> )) } </List> </ScrollView > ); } _signOutAsync = async () => { await AsyncStorage.clear(); this.props.navigation.navigate('Auth'); }; } const styles = StyleSheet.create({ container: { backgroundColor: '#fff', paddingTop: 30 } })<file_sep>/screens/TherapyScreen.js import React from 'react'; import { List, ListItem, SearchBar } from 'react-native-elements' import { AppRegistry, ImageBackground, StyleSheet, Text, View, Image, TextInput, AsyncStorage, TouchableOpacity, ScrollView, Alert } from 'react-native'; import { Button } from 'react-native-elements'; import axios from 'axios'; export default class TherapyScreen extends React.Component { constructor(props) { super(props); this.state = { search: '', drugList: [], timer: null }; this.timeout = null; } static navigationOptions = { title: 'Add therapy', }; componentDidMount = () => { axios.get('https://painpoint.herokuapp.com/api/medicines') .then((resp) => { let drugList = []; for (let i = 0; i < resp.data.medicines.length; i++) { const element = resp.data.medicines[i]; drugList.push({ ...element, title: element.id + ' ' + element.full_name, icon: 'face' }) } this.setState({ drugList }); }) .catch((err) => { console.log(err); }) } componentWillUnmount() { clearTimeout(this.timeout); } search = (query) => { clearTimeout(this.state.timer); this.setState({ timer: setTimeout(() => { console.log(query) axios.get('https://painpoint.herokuapp.com/api/medicines?search=' + query) .then((resp) => { let drugList = []; for (let i = 0; i < resp.data.medicines.length; i++) { const element = resp.data.medicines[i]; drugList.push({ ...element, icon: 'face' }) } this.setState({ drugList }); }) .catch((err) => { console.log(err); }) }, 500) }); } addPatient = async () => { const { full_name } = this.state; axios.post('https://painpoint.herokuapp.com/api/add-patient', { full_name }) .then(async (resp) => { const userData = await AsyncStorage.getItem('user'); const user = JSON.parse(userData); axios.post('https://painpoint.herokuapp.com/api/assign-patient', { patient_id: resp.data.patient.id, user_id: user.id }) .then((resp) => { this.props.navigation.navigate('Home'); }) .catch((err) => { console.log(err); }) }) }; selectDrug = async (drug) => { const userData = await AsyncStorage.getItem('user'); const user = JSON.parse(userData); const patientData = await AsyncStorage.getItem('patient'); const patient = JSON.parse(patientData); console.log({ patient_id: patient.id, medicine_id: drug.id }) axios.post('https://painpoint.herokuapp.com/api/add-therapy', { patient_id: patient.id, medicine_id: drug.id }) .then((resp) => { Alert.alert('Therapy', `Successfully taken`, [ { text: 'OK' } ], { cancelable: false } ); this.props.navigation.navigate('Home'); }) .catch((err) => { }) } render() { const list = this.state.drugList; return ( <ScrollView style={styles.container} contentContainerStyle={styles.contentContainer}> <View style={styles.container}> </View> <SearchBar round lightTheme containerStyle={{ backgroundColor: '#fff', borderWidth: 0 }} inputStyle={{ backgroundColor: '#fff' }} onChangeText={this.search} value={this.state.name} placeholder={"Medicine search"} /> <List style={{ flex: 1, width: '100%' }}> { list.map((item) => ( <TouchableOpacity key={item.title} onPress={() => this.selectDrug(item)}> <ListItem style={{ flex: 1, width: '100%' }} title={item.registered_name} subtitle={item.license_holder} leftIcon={{ name: item.icon }} /> </TouchableOpacity> )) } </List> </ScrollView> ); } } const styles = StyleSheet.create({ container: { flex: 1, paddingTop: 15, backgroundColor: '#fff', }, logo: { paddingTop: 10, alignSelf: 'center' } }); <file_sep>/screens/ChartScreen.js import React from 'react'; import PureChart from 'react-native-pure-chart'; import { AppRegistry, ImageBackground, StyleSheet, Text, View, Image, TextInput, AsyncStorage, TouchableOpacity, ScrollView } from 'react-native'; import { Button } from 'react-native-elements'; import axios from 'axios'; import StyledText from '../components/StyledText'; export default class ChartScreen extends React.Component { constructor(props) { super(props); this.state = { selectedPatient: '', painHistory: [], therapyHistory: [] }; } static navigationOptions = { title: 'Chart', }; loading = async () => { const patientData = await AsyncStorage.getItem('patient'); const patient = JSON.parse(patientData); axios.get('https://painpoint.herokuapp.com/api/pain-history?patient_id=' + patient.id) .then((resp) => { axios.get('https://painpoint.herokuapp.com/api/therapy-history?patient_id=' + patient.id) .then((resp1) => { this.setState({ painHistory: resp.data["pain-history"], therapyHistory: resp1.data["therapy-history"], selectedPatient: patient }) }) }) } componentDidMount = async () => { this.loading(); } render() { let data = []; const { painHistory } = this.state; for (let i = 0; i < painHistory.length; i++) { const element = painHistory[i]; data.push({ x: element.created_at.split(' ')[0], y: Number(element.scale) }) } return ( <ScrollView style={styles.container} contentContainerStyle={styles.contentContainer}> <StyledText style={{ marginLeft: 20, marginRight: 20, fontSize: 18, marginBottom: 10 }}>Pain scale chart</StyledText> <PureChart data={data} type='line' /> </ScrollView> ); } } const styles = StyleSheet.create({ container: { flex: 1, paddingTop: 15, backgroundColor: '#fff', }, logo: { paddingTop: 10, alignSelf: 'center' } });
b492e6855383e2ba233f3b08cdf1231bdc647ecf
[ "JavaScript" ]
7
JavaScript
StefanBurscher/hashMgmt
51db4acac56191d89377eb9a56dde180323988a7
15daf85193c3172a844d3f20d91140b63328c649
refs/heads/master
<repo_name>aryalrabin/sendgrid-actix<file_sep>/README.md # sendgrid-actix 1. copy .env.template to .env 2. add SendGrid API Key and Email to .env 3. run `cargo build` 4. run `cargo run` <file_sep>/src/main.rs use actix_web::{App, HttpServer, web, Responder, HttpResponse}; use std::env; use sendgrid::v3::{Personalization, Email, Message, Content, Sender}; #[actix_rt::main] async fn main() -> std::io::Result<()> { HttpServer::new(|| { App::new() .route("/", web::get().to(index)) .route("/mail", web::get().to(mail)) }) .bind("127.0.0.1:8088")? .run() .await } async fn index() -> impl Responder { HttpResponse::Ok().body("Hello world") } async fn mail() -> impl Responder { dotenv::dotenv().expect("Failed to read .env file"); let api_key = env::var("SG_API_KEY").expect("SG_API_KEY not found."); let email = env::var("EMAIL").expect("EMAIL not found."); let p = Personalization::new() .add_to(Email::new().set_email(email.as_str())); let m = Message::new() .set_from(Email::new().set_email(email.as_str())) .set_subject("Subject") .add_content( Content::new() .set_content_type("text/html") .set_value("Test"), ) .add_personalization(p); let sender = Sender::new(api_key); let response = sender.send(&m); match response { Ok(_ok) => HttpResponse::Ok().body("ok"), Err(_) => HttpResponse::BadRequest().body("error") } }
ebdb640540759f945b8119b25466916c3675b8de
[ "Markdown", "Rust" ]
2
Markdown
aryalrabin/sendgrid-actix
15f8ff9262b061e06474b3783d293f6289288a55
70ea45fd74153b8f3aa2f53f8d2cef0512162eb7
refs/heads/master
<repo_name>raghavi07/codingRound<file_sep>/testdata.properties url=https://www.cleartrip.com/ localitySearchText=Indiranagar, Bangalore travellers=1 room, 2 adults fromText=Bangalore toText=Delhi<file_sep>/src/main/java/page/HotelBookingPage.java package page; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.support.FindBy; import org.openqa.selenium.support.PageFactory; import org.openqa.selenium.support.ui.Select; public class HotelBookingPage extends base { WebDriver driver = new ChromeDriver(); @FindBy(linkText = "Hotels") private WebElement hotelLink; @FindBy(id = "Tags") private WebElement localityTextBox; @FindBy(id = "SearchHotelsButton") private WebElement searchButton; @FindBy(id = "travellersOnhome") private WebElement travellerSelection; @FindBy(xpath = "//ul[@class='autoComplete']/li[2]") private WebElement autoCompleteText; @FindBy(xpath = "//div[@class='monthBlock first']//tr[3]/td[3]") private WebElement checkInDate; @FindBy(xpath = "//div[@class='monthBlock last']//tr[3]/td[3]") private WebElement checkOutDate; public HotelBookingPage(WebDriver driver) { this.driver = driver; PageFactory.initElements(driver, this); } public void clickHotelLink() { waitForVisible(hotelLink); hotelLink.click(); } public void enterLocalitySearchText(String text) { localityTextBox.sendKeys(text); waitForVisible(autoCompleteText); autoCompleteText.click(); } public void clickCheckInDate() { waitForVisible(checkInDate); checkInDate.click(); } public void clickCheckOutDate() { waitForVisible(checkOutDate); checkOutDate.click(); } public void selectTravellers(String numbers) { new Select(travellerSelection).selectByVisibleText(numbers); } public void clickSearchButton() { waitForVisible(searchButton); searchButton.click(); } } <file_sep>/src/main/java/page/FlightBookingPage.java package page; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; import org.openqa.selenium.support.PageFactory; import java.util.List; public class FlightBookingPage extends base { @FindBy(id = "OneWay") private WebElement oneWayButton; @FindBy(id = "FromTag") private WebElement fromTextBox; @FindBy(id = "ToTag") private WebElement toTextBox; @FindBy(xpath = "//*[@id='ui-id-1']/li") private List<WebElement> originOptions; @FindBy(xpath = "//*[@id='ui-id-2']/li") private List<WebElement> destinationOptions; @FindBy(xpath = "//*[@id='ui-datepicker-div']/div[1]/table/tbody/tr[3]/td[7]/a") private WebElement date; @FindBy(id = "SearchBtn") private WebElement searchButton; @FindBy(className = "searchSummary") private WebElement searchSummary; public FlightBookingPage(WebDriver driver) { this.driver = driver; PageFactory.initElements(driver, this); } public void clickOneWayOption() { waitForVisible(oneWayButton); oneWayButton.click(); } public void enterFromText(String text) { waitForVisible(fromTextBox); fromTextBox.clear(); fromTextBox.sendKeys(text); selectOption(originOptions); } public void enterToText(String text) { waitForVisible(toTextBox); toTextBox.clear(); toTextBox.sendKeys(text); selectOption(destinationOptions); } public void selectOption(List<WebElement> options) { waitForVisible(options.get(0)); options.get(0).click(); } public void selectDate() { waitForVisible(date); date.click(); } public void clickSearchButton() { waitForVisible(searchButton); searchButton.click(); } public Boolean isSearchSummaryPresent() { return searchSummary.isDisplayed(); } } <file_sep>/src/main/java/page/SignInPage.java package page; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.PageFactory; import org.openqa.selenium.support.FindBy; public class SignInPage extends base { @FindBy(linkText = "Your trips") private WebElement yourTripLink; @FindBy(id = "SignIn") private WebElement signIn; @FindBy(id = "signInButton") private WebElement signInButton; @FindBy(id = "errors1") private WebElement errorText; String frameModal = "modal_window"; WebDriver driver; public SignInPage(WebDriver driver) { this.driver = driver; PageFactory.initElements(driver, this); } public void clickYourTripLink() { yourTripLink.click(); } public boolean isYourTripLinkLoaded() { waitForVisible(signIn); if (signIn.isDisplayed()) { return true; } return false; } public void clickSignIn() { signIn.click(); } public Boolean isSignInPageLoaded() { switchToFrame(); waitForVisible(signInButton); if (signInButton.isDisplayed()) { return true; } return false; } public void clickSignInButton() { waitForVisible(signInButton); signInButton.click(); } public String getErrorText() { waitForVisible(errorText); return errorText.getText(); } public void switchToFrame() { driver.switchTo().frame(frameModal); } }
b8d73420aacaff4f6951944e698519f2ac0572d6
[ "Java", "INI" ]
4
INI
raghavi07/codingRound
0e272d1f7aba2e3030e73d26c7576a0e577f8e11
69dfacca823e5be38d4b8fc6c1a88b7850b36fa3
refs/heads/master
<repo_name>furkanyldrmm/Rainbow-Wheel<file_sep>/app/src/main/java/com/furkanyldrm/renkbul/Besgen.java package com.furkanyldrm.renkbul; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.view.View; import android.view.animation.Animation; import android.view.animation.LinearInterpolator; import android.view.animation.RotateAnimation; import android.widget.ImageView; import android.widget.ProgressBar; import android.widget.TextView; import java.util.Random; public class Besgen extends AppCompatActivity { ImageView iv_buttonb,iv_arrowb; ProgressBar progressBarb; Handler handlerb; Runnable runnableb; Random r1; TextView tv_pointsb; private final static int STATE_BLUEB=1; private final static int STATE_REDB =3; private final static int STATE_YELLOWB =4; private final static int STATE_GREENB=5; private final static int STATE_PURPLEB=2; int buttonStateb=STATE_BLUEB; int arrowStateb=STATE_BLUEB; int currentTimeb=4000; int startTimeb=4000; int currentPointsb=25; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_besgen); iv_arrowb = findViewById(R.id.iv_arrowb); iv_buttonb = findViewById(R.id.iv_buttonb); tv_pointsb = findViewById(R.id.tv_pointsb); progressBarb = findViewById(R.id.progressBarb); progressBarb.setMax(startTimeb); progressBarb.setProgress(startTimeb); tv_pointsb.setText("Score: " + currentPointsb); r1 = new Random(); arrowStateb = r1.nextInt(5) + 1; setArrowImageb(arrowStateb); iv_buttonb.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { setButtonImageb(setButtonPositionb(buttonStateb)); } }); handlerb = new Handler(); runnableb = new Runnable() { @Override public void run() { currentTimeb = currentTimeb - 100; progressBarb.setProgress(currentTimeb); if (currentTimeb > 0) { handlerb.postDelayed(runnableb, 100); } else { if (buttonStateb == arrowStateb) { if (currentPointsb <= 40) { currentPointsb = currentPointsb + 1; } if (currentPointsb == 40) { Intent i8 = new Intent(getApplicationContext(), Altigen.class); startActivity(i8); } tv_pointsb.setText("Score: " + currentPointsb); startTimeb = startTimeb - 100; if (startTimeb < 1000) { startTimeb = 2000; } progressBarb.setMax(startTimeb); currentTimeb = startTimeb; progressBarb.setProgress(currentTimeb); arrowStateb = r1.nextInt(4) + 1; setArrowImageb(arrowStateb); handlerb.postDelayed(runnableb, 100); } else { if (currentPointsb < 40) { Intent i10 = new Intent(getApplicationContext(), Main3Activity.class); i10.putExtra("SCORE",currentPointsb); startActivity(i10); } } } } } ; handlerb.postDelayed(runnableb,100); } private void setArrowImageb(int state){ switch(state){ case STATE_PURPLEB: iv_arrowb.setImageResource(R.drawable.mor); arrowStateb=STATE_PURPLEB; break; case STATE_BLUEB: iv_arrowb.setImageResource(R.drawable.lacio); arrowStateb=STATE_BLUEB; break; case STATE_REDB: iv_arrowb.setImageResource(R.drawable.red); arrowStateb=STATE_REDB; break; case STATE_YELLOWB: iv_arrowb.setImageResource(R.drawable.yellow); arrowStateb=STATE_YELLOWB; break; case STATE_GREENB: iv_arrowb.setImageResource(R.drawable.green); arrowStateb=STATE_GREENB; break; } } private void setRotationb(final ImageView image,final int drawable){ RotateAnimation rotateAnimation=new RotateAnimation(0,72, Animation.RELATIVE_TO_SELF,0.5f,Animation.RELATIVE_TO_SELF,0.5f); rotateAnimation.setDuration(100); rotateAnimation.setInterpolator(new LinearInterpolator()); rotateAnimation.setAnimationListener(new Animation.AnimationListener() { @Override public void onAnimationStart(Animation animation) { } @Override public void onAnimationEnd(Animation animation) { image.setImageResource(drawable); } @Override public void onAnimationRepeat(Animation animation) { } }); image.startAnimation(rotateAnimation); } private int setButtonPositionb(int position){ position=position+1; if(position==6){ position=1; } return position; } private void setButtonImageb(int state) { switch (state) { case STATE_PURPLEB: setRotationb(iv_buttonb,R.drawable.morb); buttonStateb=STATE_PURPLEB; break; case STATE_BLUEB: setRotationb(iv_buttonb, R.drawable.mavib); buttonStateb = STATE_BLUEB; break; case STATE_REDB: setRotationb(iv_buttonb, R.drawable.kirmizib); buttonStateb = STATE_REDB; break; case STATE_YELLOWB: setRotationb(iv_buttonb, R.drawable.sarib); buttonStateb = STATE_YELLOWB; break; case STATE_GREENB: setRotationb(iv_buttonb, R.drawable.yesilb); buttonStateb = STATE_GREENB; break; } } } <file_sep>/settings.gradle include ':app' rootProject.name='RenkBul' <file_sep>/app/src/main/java/com/furkanyldrm/renkbul/Altigen.java package com.furkanyldrm.renkbul; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.view.View; import android.view.animation.Animation; import android.view.animation.LinearInterpolator; import android.view.animation.RotateAnimation; import android.widget.ImageView; import android.widget.ProgressBar; import android.widget.TextView; import java.util.Random; public class Altigen extends AppCompatActivity { ImageView iv_buttona,iv_arrowa; ProgressBar progressBara; Handler handlera; Runnable runnablea; Random r1; TextView tv_pointsb; private final static int STATE_BLUEA=1; private final static int STATE_REDA =2; private final static int STATE_YELLOWA =3; private final static int STATE_GREENA=6; private final static int STATE_ORANGEA=4; private final static int STATE_PURPLEA=5; int buttonStatea=STATE_BLUEA; int arrowStatea=STATE_BLUEA; int currentTimea=4000; int startTimea=4000; int currentPointsa=40; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_altigen); iv_arrowa=findViewById(R.id.iv_arrowa); iv_buttona=findViewById(R.id.iv_buttona); tv_pointsb=findViewById(R.id.tv_pointsa); progressBara=findViewById(R.id.progressBara); progressBara.setMax(startTimea); progressBara.setProgress(startTimea); tv_pointsb.setText("Score: "+currentPointsa); r1=new Random(); arrowStatea= r1.nextInt(6)+1; setArrowImageb(arrowStatea); iv_buttona.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { setButtonImagea(setButtonPositiona(buttonStatea)); } }); handlera=new Handler(); runnablea=new Runnable() { @Override public void run() { currentTimea=currentTimea-100; progressBara.setProgress(currentTimea); if(currentTimea>0){ handlera.postDelayed(runnablea,100); } else{ if(buttonStatea==arrowStatea) { currentPointsa = currentPointsa + 1; tv_pointsb.setText("Score: " + currentPointsa); startTimea = startTimea - 100; if (startTimea < 1000) { startTimea = 2000; } progressBara.setMax(startTimea); currentTimea = startTimea; progressBara.setProgress(currentTimea); arrowStatea = r1.nextInt(5) + 1; setArrowImageb(arrowStatea); handlera.postDelayed(runnablea, 100); } else{ Intent i2=new Intent(getApplicationContext(),Main3Activity.class); i2.putExtra("SCORE",currentPointsa); startActivity(i2); } } } }; handlera.postDelayed(runnablea,100); } private void setArrowImageb(int state){ switch(state){ case STATE_PURPLEA: iv_arrowa.setImageResource(R.drawable.mor); arrowStatea=STATE_PURPLEA; break; case STATE_BLUEA: iv_arrowa.setImageResource(R.drawable.lacio); arrowStatea=STATE_BLUEA; break; case STATE_REDA: iv_arrowa.setImageResource(R.drawable.red); arrowStatea=STATE_REDA; break; case STATE_YELLOWA: iv_arrowa.setImageResource(R.drawable.yellow); arrowStatea=STATE_YELLOWA; break; case STATE_GREENA: iv_arrowa.setImageResource(R.drawable.green); arrowStatea=STATE_GREENA; break; case STATE_ORANGEA: iv_arrowa.setImageResource(R.drawable.turuncuo); arrowStatea=STATE_ORANGEA; break; } } private void setRotationa(final ImageView image,final int drawable){ RotateAnimation rotateAnimation=new RotateAnimation(0,60, Animation.RELATIVE_TO_SELF,0.5f,Animation.RELATIVE_TO_SELF,0.5f); rotateAnimation.setDuration(100); rotateAnimation.setInterpolator(new LinearInterpolator()); rotateAnimation.setAnimationListener(new Animation.AnimationListener() { @Override public void onAnimationStart(Animation animation) { } @Override public void onAnimationEnd(Animation animation) { image.setImageResource(drawable); } @Override public void onAnimationRepeat(Animation animation) { } }); image.startAnimation(rotateAnimation); } private int setButtonPositiona(int position){ position=position+1; if(position==7){ position=1; } return position; } private void setButtonImagea(int state) { switch (state) { case STATE_PURPLEA: setRotationa(iv_buttona,R.drawable.mora); buttonStatea=STATE_PURPLEA; break; case STATE_BLUEA: setRotationa(iv_buttona, R.drawable.lacia); buttonStatea = STATE_BLUEA; break; case STATE_REDA: setRotationa(iv_buttona, R.drawable.kirmizia); buttonStatea = STATE_REDA; break; case STATE_YELLOWA: setRotationa(iv_buttona, R.drawable.saria); buttonStatea = STATE_YELLOWA; break; case STATE_GREENA: setRotationa(iv_buttona, R.drawable.yesila); buttonStatea = STATE_GREENA; break; case STATE_ORANGEA: setRotationa(iv_buttona,R.drawable.turuncua); buttonStatea=STATE_ORANGEA; break; } } } <file_sep>/README.md # Rainbow-Wheel ![alt text](https://i.ibb.co/d50LBHt/rainbow2.png) ![alt text](https://i.ibb.co/hL9Kk87/rainbow.png) ![alt text](https://i.ibb.co/XknBk32/rainbow3.png)
59d36709d8e00dbcb6fa9e28c8653e13b60ea635
[ "Markdown", "Java", "Gradle" ]
4
Java
furkanyldrmm/Rainbow-Wheel
0216cd81363c0e20deb6cabd993673c8334ab640
6169a7e5b578f174bc3e6ef7a77c67129ed1c3a4
refs/heads/feature/v2.cornu
<file_sep>#pragma once # include <map> # include <string> # include <type_traits> # include <boost/variant.hpp> namespace corniflex { class Component; typedef boost::variant<char, int, long, long long, float, double, std::string, bool, Component*> t_variantTypes; class Component { private: std::string _type; std::map<std::string, t_variantTypes> _fields; public: Component(const std::string &type); void set(const std::string &key, t_variantTypes value); template<typename T> T get(const std::string &key) const; }; } template<typename T> T corniflex::Component::get(const std::string &key) const { try { return (boost::get<T>(this->_fields.at(key))); } catch(boost::bad_get& ex) { return (0); } } <file_sep>#include "Entity.hh" long long int corniflex::Entity::_nextID = 1; corniflex::Entity::Entity() { this->_id = Entity::_nextID++; } long long int corniflex::Entity::getID() const { return (this->_id); } <file_sep>#pragma once #include <functional> #include <map> #include <mutex> #include <typeindex> #include <vector> #include "Event.hh" #include <iostream> namespace corniflex { typedef std::function<void(Event *)> t_fptr; class EventManager { private: std::map<std::type_index, std::vector<t_fptr > > _eventHandlers; std::vector<std::pair<Event*, t_fptr > > _events; mutable std::mutex _mutexHandlers; mutable std::mutex _mutexEvents; bool _synchronous = false; unsigned long long _nbProcessedEvent = 0; public: // ----- ----- Getters ----- ----- // unsigned long long getNbProcessedEvent() const; // ----- ----- Public Members ----- ----- // bool hasHandler(const Event &event) const; void addHandler(const Event &event, t_fptr handler); void removeHandlers(const Event &event); void sendEvent(Event *event, t_fptr func = nullptr); void processLastEvent(); void processFirstEvent(); void setSynchronous(bool synchronous); private: // ----- ----- Private Members ----- ----- // void processEvent(Event *event, t_fptr func); }; } <file_sep>#pragma once #include "EventManager.hh" #include "SceneManager.hh" #include "SystemManager.hh" namespace corniflex { class Engine { private: EventManager _eventManager; SceneManager _sceneManager; SystemManager _systemManager; public: Engine(); }; } <file_sep>#pragma once #include "ComponentManager.hh" namespace corniflex { class Entity { private: static long long int _nextID; int _id; ComponentManager componentManager; public: Entity(); long long int getID() const; }; } <file_sep>NAME = libcorniflex.a SRC = ./src/ BIN = ./bin/ TEST = ./test/ INSTALLLIB = /usr/lib/ INSTALLINCLUDE = /usr/include/corniflex/ all: make -C $(SRC) NAME=$(NAME) cp $(SRC)$(NAME) $(BIN)$(NAME) false: install: all sudo cp -r $(BIN)$(NAME) $(INSTALLLIB) sudo mkdir -p $(INSTALLINCLUDE) sudo cp -r ./include/* $(INSTALLINCLUDE) sudo updatedb uninstall: sudo rm -rf $(INSTALLLIB)$(NAME) sudo rm -rf $(INSTALLINCLUDE) sudo updatedb clean: make clean -C $(SRC) NAME=$(NAME) make clean -C $(TEST) NAME=$(NAME) fclean: make fclean -C $(SRC) NAME=$(NAME) make fclean -C $(TEST) NAME=$(NAME) $(RM) $(BIN)$(NAME) re: fclean all test: install make re run -C $(TEST) LIB=$(NAME) debug: install make debug -C $(TEST) LIB=$(NAME) doc: doxygen doxygen.cfg .PHONY: all install uninstall clean fclean re test debug doc <file_sep>This folder is for output files (the library)<file_sep>#!/bin/sh PROGNAME=${0##*/} parameters() { if [ "$#" -le 0 ]; then usage exit fi while [ "$1" != "" ]; do case $1 in -h | --help ) help exit ;; -i | --init ) shift if [ "$#" -le 0 ]; then echo "$PROGNAME: Missing parameter: name" usage exit fi init $1 exit ;; * ) echo "$PROGNAME: Unknown option: $1" usage exit ;; esac shift done } init() { mkdir $1 cd $1 mkdir component mkdir system mkdir event mkdir include mkdir src mkdir bin touch Makefile touch corniflex.json echo "Project $1 initialized." } usage() { echo "Usage: ${PROGNAME} [-h|--help ]" } help() { cat <<- _EOF_ ${PROGNAME} CorniflexEngine script utility. $(usage) Options: -h, --help Display this help message and exit. -i, --init name Init a project folder _EOF_ } parameters $@ clean <file_sep>#include <boost/test/unit_test.hpp> #include "corniflex/EventManager.hh" #include "corniflex/Event.hh" #include <iostream> class FakeEvent1 : public corniflex::Event { public: int _id = 42; int getID() { return (_id); } }; class FakeEvent2 : public corniflex::Event { public: int _id = 10; int getID() { return (_id); } }; class FakeSystem { public: void function(corniflex::Event *) {} }; BOOST_AUTO_TEST_SUITE(EventManagerTesting) BOOST_AUTO_TEST_CASE(EventManagerTestHandlers) { corniflex::EventManager manager; FakeSystem system; manager.setSynchronous(true); manager.addHandler(FakeEvent1(), std::bind(&FakeSystem::function, &system, std::placeholders::_1)); BOOST_CHECK(manager.hasHandler(FakeEvent1())); manager.sendEvent(new FakeEvent1()); BOOST_CHECK(manager.getNbProcessedEvent() == 1); manager.addHandler(FakeEvent1(), [] (corniflex::Event *) {}); manager.sendEvent(new FakeEvent1()); BOOST_CHECK(manager.getNbProcessedEvent() == 3); manager.addHandler(FakeEvent2(), nullptr); BOOST_CHECK(manager.hasHandler(FakeEvent2())); } BOOST_AUTO_TEST_CASE(EventManagerTestAsynchronous) { corniflex::EventManager manager; manager.setSynchronous(false); manager.sendEvent(new FakeEvent1()); BOOST_CHECK(manager.getNbProcessedEvent() == 0); manager.addHandler(FakeEvent1(), [] (corniflex::Event *) {}); manager.sendEvent(new FakeEvent1()); BOOST_CHECK(manager.getNbProcessedEvent() == 0); manager.processLastEvent(); BOOST_CHECK(manager.getNbProcessedEvent() == 1); manager.processLastEvent(); BOOST_CHECK(manager.getNbProcessedEvent() == 2); } BOOST_AUTO_TEST_CASE(EventManagerTestCallback) { corniflex::EventManager manager; bool b = false; manager.setSynchronous(true); manager.sendEvent(new FakeEvent1(), [] (corniflex::Event *) { BOOST_FAIL("Should not call calback"); }); manager.addHandler(FakeEvent1(), [] (corniflex::Event *) { }); manager.sendEvent(new FakeEvent1(), [&b] (corniflex::Event *) { b = true; }); BOOST_CHECK(b); } BOOST_AUTO_TEST_CASE(EventManagerTestEventsType) { corniflex::EventManager manager; manager.setSynchronous(true); manager.addHandler(FakeEvent1(), [] (corniflex::Event *e) { BOOST_CHECK(dynamic_cast<FakeEvent1 *>(e) != NULL); }); manager.addHandler(FakeEvent2(), [] (corniflex::Event *e) { BOOST_CHECK(dynamic_cast<FakeEvent1 *>(e) == NULL); }); manager.sendEvent(new FakeEvent1()); manager.sendEvent(new FakeEvent2()); } BOOST_AUTO_TEST_SUITE_END() BOOST_AUTO_TEST_CASE(EventManagerTestHandlersRemoval) { corniflex::EventManager manager; FakeSystem system; manager.setSynchronous(true); manager.addHandler(FakeEvent1(), std::bind(&FakeSystem::function, &system, std::placeholders::_1)); manager.removeHandlers(FakeEvent1()); manager.sendEvent(new FakeEvent1()); manager.addHandler(FakeEvent1(), [] (corniflex::Event *) {}); manager.sendEvent(new FakeEvent1()); BOOST_CHECK(manager.getNbProcessedEvent() == 1); manager.removeHandlers(FakeEvent1()); manager.sendEvent(new FakeEvent1()); BOOST_CHECK(manager.getNbProcessedEvent() == 1); } <file_sep>#pragma once #include <string> namespace corniflex { class System { private: std::string _type; }; } <file_sep>#include <boost/test/unit_test.hpp> #include "corniflex/Component.hpp" BOOST_AUTO_TEST_SUITE(ComponentTesting) BOOST_AUTO_TEST_CASE(ComponentCreationTest) { corniflex::Component a("test"); BOOST_CHECK(true); } BOOST_AUTO_TEST_CASE(ComponentFieldsTest) { corniflex::Component a("test"); a.set("a", 200); a.set("b", 3.14f); a.set("c", std::string("foo")); a.set("d", new corniflex::Component("bar")); a.set("f", true); BOOST_CHECK(a.get<int>("a") == 200); BOOST_CHECK(a.get<float>("b") == 3.14f); BOOST_CHECK(a.get<std::string>("c") == "foo"); BOOST_CHECK(a.get<corniflex::Component*>("d") != nullptr); BOOST_CHECK(a.get<bool>("f") == true); BOOST_CHECK(a.get<int>("f") == 0); delete a.get<corniflex::Component*>("d"); a.set("d", nullptr); BOOST_CHECK(a.get< corniflex::Component*>("d") == nullptr); } BOOST_AUTO_TEST_SUITE_END() <file_sep>#pragma once namespace corniflex { class Event { public: virtual ~Event() = 0; }; inline Event::~Event() = default; } <file_sep>#pragma once #include <vector> #include "System.hh" namespace corniflex { class SystemManager { private: std::vector<System *> _systems; public: void add(System *); void remove(); }; } <file_sep>CXX = g++ AR = ar -rvs RM = rm -f CPPFLAGS += -Wextra -Wall -Werror CPPFLAGS += -std=c++11 CPPFLAGS += -I../include/ LDFLAGS += LDLIBS += SRCS = $(patsubst %.c,%.o,$(wildcard *.cpp)) OBJS = $(SRCS:.cpp=.o) NAME = libcorniflex.a all: $(NAME) $(NAME): $(OBJS) $(AR) $(NAME) $(LDFLAGS) $(OBJS) $(LDLIBS) depend: .depend .depend: $(SRCS) $(RM) ./.depend $(CXX) $(CPPFLAGS) -MM $^>>./.depend; clean: $(RM) $(OBJS) fclean: clean $(RM) $(NAME) $(RM) ./.depend re: fclean all include .depend .PHONY: all clean fclean re <file_sep>#pragma once namespace corniflex { class ComponentManager { }; } <file_sep>#include <boost/test/unit_test.hpp> #include "corniflex/Entity.hh" BOOST_AUTO_TEST_SUITE(EntityTesting) BOOST_AUTO_TEST_CASE(EntityIDIncrementationTest) { corniflex::Entity a; corniflex::Entity b; corniflex::Entity c; BOOST_CHECK(a.getID() == 1); BOOST_CHECK(b.getID() == 2); BOOST_CHECK(c.getID() == 3); } BOOST_AUTO_TEST_SUITE_END() <file_sep>#include "Engine.hh" corniflex::Engine::Engine() { } <file_sep>#include "Component.hpp" corniflex::Component::Component(const std::string &type) { this->_type = type; } void corniflex::Component::set(const std::string &key, t_variantTypes value) { this->_fields[key] = value; } <file_sep>#pragma once namespace corniflex { class SceneManager { }; } <file_sep>#pragma once namespace corniflex { class EntityManager { }; } <file_sep>Folder to hold future doc created by doxygen.<file_sep>CXX = g++ RM = rm -f CPPFLAGS += -Wextra -Wall -Werror CPPFLAGS += -std=c++11 CPPFLAGS += -I. LDFLAGS += -static -L/usr/local/lib/ -lboost_unit_test_framework SRCS = $(patsubst %.c,%.o,$(wildcard *.cpp)) OBJS = $(SRCS:.cpp=.o) BIN = ../bin/ LIB = libcorniflex.a NAME = a.out all: $(NAME) $(NAME): $(OBJS) $(CXX) $(OBJS) $(LDFLAGS) -o $(NAME) -l$(subst lib,,$(subst .a,,$(LIB))) depend: .depend .depend: $(SRCS) $(RM) ./.depend $(CXX) $(CPPFLAGS) -MM $^>>./.depend; clean: $(RM) $(OBJS) fclean: clean $(RM) $(NAME) $(RM) ./.depend re: fclean all run: $(NAME) ./$(NAME) --build_info=1 --log_level=message --report_level=detailed debug: $(NAME) valgrind --track-origins=yes ./$(NAME) include .depend .PHONY: all clean fclean re run debug <file_sep>#include <boost/any.hpp> #define BOOST_TEST_MAIN #define BOOST_TEST_MODULE CorniflexEngine #include <boost/test/unit_test.hpp> /* int main() { corniflex::Component c("test"); c._fields["x"] = 42; c._fields["y"] = 123; c._fields["name"] = std::string("Foo"); std::cout << boost::any_cast<std::string>(c._fields["name"]) << " : (" << boost::any_cast<int>(c._fields["x"]) << ";" << boost::any_cast<int>(c._fields["y"]) << ")" << std::endl; corniflex::Entity a; corniflex::Entity b; std::cout << a.getID() << ";" << b.getID() << std::endl; return (0); } */ <file_sep>CorniflexEngine =============== C++ Entity Component System Library [![Class UML](http://www.plantuml.com/plantuml/img/RLGxQyCm4DxrAuINGC21xg6ab0mPGg61xefzJWMoLEHpQKf_V1rBIdHdJU6-X--fx0PK7iVU284Q3SXNvwtk3FpixKLR42i37KfqqklB9yfMUsXGEoj4OzGmBFG1tN-3nQEowW8-GNPASBsx-Yzd9urGvm6zQb06udGT47fYeP-vEoaSV0nhm481uZa_d6vZNiQ40ihSuOtK-Ww36tt3yXtwAQ3GozXgbo2UxpQsg4iIRH5yfngG9_1Q6VshpWQ4M4M1tFxLDUsLKMGqb2DxeXHlY1d9QYYtM978AvyqcqrSn1AFLr8mX64BTczopPlFWmSRu3ccfGiItWInXF0pEnODHQvwgcQ-MbUfS2wb_dBvP0bv8BU9BHlvYbWSja5EiAWW5raUC3aX4cKy6sLTFoU2EcPYNWffDjFpCXUV2eLd3pU7oQjzQE8uqhCLEx3jzCVt3m00)](http://www.planttext.com/planttext?text=RLGxQyCm4DxrAuINGC21xg6ab0mPGg61xefzJWMoLEHpQKf_V1rBIdHdJU6-X--fx0PK7iVU284Q3SXNvwtk3FpixKLR42i37KfqqklB9yfMUsXGEoj4OzGmBFG1tN-3nQEowW8-GNPASBsx-Yzd9urGvm6zQb06udGT47fYeP-vEoaSV0nhm481uZa_d6vZNiQ40ihSuOtK-Ww36<KEY>) <file_sep>#include <mutex> #include "EventManager.hh" // ----- ----- Getters ----- ----- // unsigned long long corniflex::EventManager::getNbProcessedEvent() const { std::lock_guard<std::mutex> lock(this->_mutexEvents); return (this->_nbProcessedEvent); } // ----- ----- Public Members ----- ----- // bool corniflex::EventManager::hasHandler(const Event &event) const { std::lock_guard<std::mutex> lock(this->_mutexHandlers); auto it = this->_eventHandlers.find(std::type_index(typeid(event))); return (it != this->_eventHandlers.end()); } void corniflex::EventManager::addHandler(const Event &event, t_fptr handler) { std::lock_guard<std::mutex> lock(this->_mutexHandlers); auto it = this->_eventHandlers.find(std::type_index(typeid(event))); if (it != this->_eventHandlers.end()) it->second.push_back(handler); else { this->_eventHandlers[typeid(event)].push_back(handler); } } void corniflex::EventManager::removeHandlers(const Event &event) { std::lock_guard<std::mutex> lock(this->_mutexHandlers); if (!this->hasHandler(event)) return ; auto it = this->_eventHandlers.find(std::type_index(typeid(event))); if (it != this->_eventHandlers.end()) { it->second.clear(); } } void corniflex::EventManager::sendEvent(Event *event, t_fptr func) { std::lock_guard<std::mutex> lock(this->_mutexEvents); this->_events.push_back(std::make_pair(event, func)); if (this->_synchronous) this->processLastEvent(); } void corniflex::EventManager::processLastEvent() { std::lock_guard<std::mutex> lock(this->_mutexEvents); if (this->_events.size() == 0) return ; Event *event = this->_events.back().first; t_fptr func = this->_events.back().second; this->_events.erase(this->_events.end()); processEvent(event, func); } void corniflex::EventManager::processFirstEvent() { std::lock_guard<std::mutex> lock(this->_mutexEvents); if (this->_events.size() == 0) return ; Event *event = this->_events.front().first; t_fptr func = this->_events.front().second; this->_events.erase(this->_events.begin()); processEvent(event, func); } void corniflex::EventManager::setSynchronous(bool synchronous) { this->_synchronous = synchronous; } // ----- ----- Private Members ----- ----- // void corniflex::EventManager::processEvent(Event *event, t_fptr func) { unsigned long long oldnb = this->_nbProcessedEvent; auto it = this->_eventHandlers.find(std::type_index(typeid(*event))); if (it != this->_eventHandlers.end()) { for (auto itSecond = it->second.begin(); itSecond != it->second.end(); ++itSecond) { ++_nbProcessedEvent; (*itSecond)(event); } } if (this->_nbProcessedEvent > oldnb && func) func(event); delete event; }
122b676d4c8e31e88b0de86f7abaf3376662b0a0
[ "Markdown", "Makefile", "C++", "Shell" ]
25
C++
magoo-magoo/CorniflexEngine
da378a8397442f6e2281a85e256b322241623337
910166b00276378df9484fec7e357accb29c46bd
refs/heads/master
<repo_name>michielpauw/ycbootcamp<file_sep>/Voorbeeld.java class Voorbeeld { public static void main(String[] args) { System.out.println("Hallo"); System.out.println("Wereld!"); int getal1; // Declaratie van een variabele van het type int getal1 = 9; // Initialisatie int getal2 = 14; int getal3, getal4; int getal5 = 7, getal6; // System.out.println(getal3); --> compiler error omdat getal3 niet geïnitialiseerd is // in een array krijgen alle entries een default waarde (0 bij int) // primitive types vs reference/object types // String (en Wrapper) zitten hier een beetje tussenin maar vallen onder reference types // Primitives: // Gehele getallen: byte, short, int, long // Kommagetallen: float, double // char // boolean: true, false Auto car = null; Auto auto = new Auto(); // De signature van een method is: aantal, type en volgorde van de parameters // Parameter vs argument: geen synoniem. // Parameter is altijd de declaratie van een variabele bij de definitie van de method, argument is reeds gedeclareerd. Voorbeeld jojo = new Voorbeeld(); jojo.uitproberen(4); System.out.println(optellen() * optellen()); } // Als je aantal, type of volgorde van een method verschilt, kun je overloaden: static void uitproberen() { System.out.println("Hoppakee"); } void uitproberen(int a) { System.out.println("Hoppakee"); } void uitproberen(String a) { System.out.println("Hoppakee"); } // Wanneer het return type van een method anders is dan void, // dan kun je de aanroep van de methode vervangen door datgene wat deze teruggeeft. static int optellen() { return 6; } } class Auto { // Access modifiers: private, protected, public, DEFAULT (impliciet) // Non-access modifiers: static, abstract, final protected static int carsAmount; String brand; static int getAmountOfCars() { return carsAmount; } String getBrand() { return this.brand; } }
ef56a080aebfa9915c4803652d8364edbe1ad73a
[ "Java" ]
1
Java
michielpauw/ycbootcamp
7fe611660bf09735a6469e51542505732913bbc8
91ed43581c708f082c38812deb022230938d1e6a
refs/heads/master
<file_sep> import { OrdComparator } from '../ordering' export { SkewHeap, SkewTree, mkHeap, singleton, isEmpty, peek, pop, push, heapify } /* Types */ // Skew heaps are the same as leftist heaps in implementation sense, appart // form the merge method and the lack of `rank` bookkeeping. // // NOTE: Please keep in-sync interface SkewTree<T> { item: T, left: SkewTree<T> | undefined, right: SkewTree<T> | undefined } interface SkewHeap<T> { comparator: OrdComparator<T>, tree: SkewTree<T> | undefined } /* API Functions */ function isEmpty<T>(heap: SkewHeap<T>): boolean { return !heap.tree; } function peek<T>(heap: SkewHeap<T>): T | undefined { return heap.tree && heap.tree.item; } function pop<T>(heap: SkewHeap<T>): [T, SkewHeap<T>] | undefined { return heap.tree && [ heap.tree.item, mkHeap2(merge(heap.tree.left, heap.tree.right, heap.comparator), heap.comparator) ]; } function push<T>(item: T, heap: SkewHeap<T>) { return mkHeap2( merge(mkTree(item, undefined, undefined), heap.tree, heap.comparator), heap.comparator ); } function heapify<T>(items: T[], comparator: OrdComparator<T>): SkewHeap<T> { // Pairwise merging should be O(n) according to Wikipedia. // The naive `push` based approach is O(n * log(n)). // Basic idea: we do parwise merges until there is only one tree left. // Instead of mapping the initial values into singleton trees, we are doing // a one-off optimized merge and then we proceed with normal tree merges. const primTrees = combinePairs( items, (x, y) => comparator(x, y) === 'LT' ? mkTree(x, mkTree(y, undefined, undefined), undefined) : mkTree(y, mkTree(x, undefined, undefined), undefined), x => mkTree(x, undefined, undefined) ); let unmerged = primTrees; while (unmerged.length > 1) { unmerged = combinePairs( unmerged, (x, y) => merge(x, y, comparator), x => x ); } return unmerged[0] ? mkHeap2(unmerged[0], comparator) : mkHeap(comparator); } /* Private Implementation Functions */ function merge<T>(tree1: SkewTree<T>, tree2: SkewTree<T>, cmp: OrdComparator<T>): SkewTree<T>; function merge<T>(tree1: SkewTree<T> | undefined, tree2: SkewTree<T> | undefined, cmp: OrdComparator<T>): SkewTree<T> | undefined; function merge<T>( tree1: SkewTree<T> | undefined, tree2: SkewTree<T> | undefined, cmp: OrdComparator<T> ): SkewTree<T> | undefined { if (!tree1) { return tree2; } if (!tree2) { return tree1; } // NB: Flip sides! return cmp(tree1.item, tree2.item) !== 'GT' ? mkTree(tree1.item, merge(tree2, tree1.right, cmp), tree1.left) : mkTree(tree2.item, merge(tree1, tree2.right, cmp), tree2.left); } // I think I've seen it called treeFold, but I couldn't find a reference. function combinePairs<A, B>(xs: A[], combine: (x: A, y: A) => B, map: (x: A) => B) { const retval = []; let i; for (i = 0; i + 1 < xs.length; i += 2) { const x = xs[i]; const y = xs[i + 1]; retval.push(combine(x, y)); } if (i < xs.length) { retval.push(map(xs[i])); } return retval; } /* Constructors */ function mkHeap<T>(comparator: OrdComparator<T>): SkewHeap<T> { return { comparator, tree: undefined }; } function singleton<T>(item: T, comparator: OrdComparator<T>): SkewHeap<T> { return mkHeap2(mkTree(item, undefined, undefined), comparator); } function mkHeap2<T>(tree: SkewTree<T> | undefined, comparator: OrdComparator<T>): SkewHeap<T> { return { comparator, tree }; } function mkTree<T>(item: T, left: SkewTree<T> | undefined, right: SkewTree<T> | undefined): SkewTree<T> { return { item, left, right }; } <file_sep> import { testHeap } from '../heap_suite' import { LeftistHeap } from '../../src/persistent/leftist_heap' import * as LeftistHeapDict from '../../src/persistent/leftist_heap' testHeap<LeftistHeap<number>>('LeftistHeap', true, LeftistHeapDict); <file_sep> export { Eq, strictEq, coercingEq, invert } type Eq<T> = (x: T, y: T) => boolean; function strictEq<T>(x: T, y: T): boolean { return x === y; } function coercingEq<T>(x: T, y: T): boolean { return x == y; } function invert<T>(eq: Eq<T>): Eq<T> { return (x, y) => !eq(x, y); } <file_sep> import { testHeap } from '../heap_suite' import { BinHeap } from '../../src/mutable/bin_heap' import * as BinHeapDict from '../../src/mutable/bin_heap' testHeap<BinHeap<number>>('BinHeap', false, { mkHeap: BinHeapDict.mkHeap, singleton: BinHeapDict.singleton, isEmpty: BinHeapDict.isEmpty, push: (x, h) => { BinHeapDict.push(x, h); return h; }, pop: h => { const item = BinHeapDict.pop(h); return item !== undefined ? [item, h] : undefined; }, peek: BinHeapDict.peek, heapify: BinHeapDict.heapify }); <file_sep> import { OrdComparator } from '../ordering' export { PairingHeap, PairingTree, mkHeap, singleton, isEmpty, peek, pop, push, heapify } /* Types */ interface PairingHeap<T> { comparator: OrdComparator<T>, tree: PairingTree<T> | undefined } interface List<T> { value: T, rest: List<T> | undefined } interface PairingTree<T> { item: T, subtrees: List<PairingTree<T>> | undefined } /* API Functions */ function isEmpty<T>(heap: PairingHeap<T>): boolean { return !heap.tree; } function peek<T>(heap: PairingHeap<T>): T | undefined { return heap.tree && heap.tree.item; } function pop<T>(heap: PairingHeap<T>): [T, PairingHeap<T>] | undefined { return heap.tree && [ heap.tree.item, mkHeap2(mergePairs(heap.tree.subtrees, heap.comparator), heap.comparator) ]; } function push<T>(item: T, heap: PairingHeap<T>) { if (!heap.tree) { return singleton(item, heap.comparator); } // We've inlined `merge` here. This saves the allocation of a singleton tree for // item that would otherwise be immediately destructured. We also save one more // node if `item` and `heap.tree.item` are equal as we favour `item`. const newTree = heap.comparator(item, heap.tree.item) !== 'GT' ? mkTree(item, cons(heap.tree, undefined)) : mkTree(heap.tree.item, cons(mkTree(item, undefined), heap.tree.subtrees)); return mkHeap2(newTree, heap.comparator); } function heapify<T>(items: T[], comparator: OrdComparator<T>): PairingHeap<T> { return items.reduce( (heap, x) => push(x, heap), mkHeap(comparator) ); } /* Private Implementation Functions */ function merge<T>( tree1: PairingTree<T> | undefined, tree2: PairingTree<T> | undefined, cmp: OrdComparator<T> ): PairingTree<T> | undefined { if (!tree1) { return tree2; } if (!tree2) { return tree1; } return cmp(tree1.item, tree2.item) === 'LT' ? mkTree(tree1.item, cons(tree2, tree1.subtrees)) : mkTree(tree2.item, cons(tree1, tree2.subtrees)); } function mergePairs<T>(list: List<PairingTree<T>> | undefined, cmp: OrdComparator<T>): PairingTree<T> | undefined { if (!list) { return undefined; } if (!list.rest) { return list.value; } return merge( merge(list.value, list.rest.value, cmp), mergePairs(list.rest.rest, cmp), cmp ); } /* Constructors */ function mkHeap<T>(comparator: OrdComparator<T>): PairingHeap<T> { return { comparator, tree: undefined }; } function singleton<T>(item: T, comparator: OrdComparator<T>): PairingHeap<T> { return mkHeap2(mkTree(item, undefined), comparator); } function mkHeap2<T>(tree: PairingTree<T> | undefined, comparator: OrdComparator<T>): PairingHeap<T> { return { comparator, tree }; } function mkTree<T>(item: T, subtrees: List<PairingTree<T>> | undefined): PairingTree<T> { return { item, subtrees }; } function cons<T>(x: T, xs: List<T> | undefined): List<T> { return { value: x, rest: xs }; } <file_sep> import { HashEqDict } from '../hashing' export { /* (private) Implementation types */ Trie, Value, Chain, Bitmap, /* Public API */ HAMT, newTrie as mkTrie, singleton, isEmpty, size, member, lookup, insert, remove, unassoc, map, foldr, foldl, } type HAMT<K, V> = { dict: HashEqDict<K>, trie: Trie<K, V> | undefined } type Trie<K, V> = Bitmap<K, V> | Chain<K, V> interface Value<K, V> { kind: 'value', hash: number, key: K, value: V } interface Chain<K, V> { kind: 'chain', hash: number, data: Value<K, V>[] } interface Bitmap<K, V> { kind: 'bitmap', bitmap: number, data: (Trie<K, V> | Value<K, V>)[] } // bitcount in the hash // update `popCount` if `HASH_SZ` > 32 const HASH_SZ = 32; const SHIFT = 5; const MASK = (1 << SHIFT) - 1; /* API */ function newTrie<K, V>(dict: HashEqDict<K>): HAMT<K, V> { return mkTrie(undefined, dict); } function singleton<K, V>(key: K, value: V, dict: HashEqDict<K>): HAMT<K, V> { return mkTrie(asBitmap(mkValue(key, value, dict.hash(key))), dict); } function isEmpty<K, V>(hamt: HAMT<K, V>): boolean { return !hamt.trie; } function size<K, V>(hamt: HAMT<K, V>): number { return foldl(hamt, 0, x => x + 1); } function member<K, V>(key: K, hamt: HAMT<K, V>): boolean { return !!hamt.trie && memberWorker(key, hamt.dict.hash(key), 0, hamt.trie, hamt.dict); } function lookup<K, V>(key: K, hamt: HAMT<K, V>): V | undefined { return hamt.trie && lookupWorker(key, hamt.dict.hash(key), 0, hamt.trie, hamt.dict); } function insert<K, V>(key: K, value: V, hamt: HAMT<K, V>): HAMT<K, V> { if (!hamt.trie) { return singleton(key, value, hamt.dict); } return mkTrie( insertWorker(key, value, hamt.dict.hash(key), 0, hamt.trie, hamt.dict), hamt.dict ); } function remove<K, V>(key: K, hamt: HAMT<K, V>): HAMT<K, V> { if (!hamt.trie) { return hamt; } const newTrie = removeWorker(key, hamt.dict.hash(key), 0, hamt.trie, hamt.dict); return newTrie !== hamt.trie ? mkTrie(newTrie && asBitmap(newTrie), hamt.dict) : hamt; } function unassoc<K, V>(key: K, hamt: HAMT<K, V>): [V|undefined, HAMT<K, V>] { if (!hamt.trie) { return [undefined, hamt]; } const [value, newTrie] = unassocWorker(key, hamt.dict.hash(key), 0, hamt.trie, hamt.dict); return newTrie !== hamt.trie ? [ value, mkTrie(newTrie && asBitmap(newTrie), hamt.dict) ] : [ value, hamt ]; } function map<K, A, B>(hamt: HAMT<K, A>, f: (value: A) => B): HAMT<K, B> { if (!hamt.trie) { return hamt as HAMT<K, B>; // TYH } return mkTrie(mapWorker(f, hamt.trie) as Trie<K, B>, hamt.dict); // TYH } function foldr<K, V, A>(hamt: HAMT<K, V>, initial: A, f: (key: K, value: V, acc: A) => A): A { if (!hamt.trie) { return initial; } return foldrWorker(f, initial, hamt.trie); } function foldl<K, V, A>(hamt: HAMT<K, V>, initial: A, f: (acc: A, key: K, value: V) => A): A { if (!hamt.trie) { return initial; } return foldlWorker(f, initial, hamt.trie); } /* Workers */ function memberWorker<K, V>(key: K, hash: number, shift: number, trie: Trie<K, V>, dict: HashEqDict<K>): boolean { if (trie.kind === 'chain') { if (trie.hash === hash) { for (let i = 0; i < trie.data.length; ++i) { const kvh = trie.data[i]; if (dict.eq(kvh.key, key)) { return true; } } } return false; } const hashIdx = (hash >>> shift) & MASK; const bitIndex = popCount(trie.bitmap & ((1 << hashIdx) - 1)); if (!(trie.bitmap & (1 << hashIdx))) { return false; } const bd = trie.data[bitIndex]; return bd.kind === 'value' ? bd.hash === hash && dict.eq(bd.key, key) : memberWorker(key, hash, shift + SHIFT, bd, dict); } function lookupWorker<K, V>(key: K, hash: number, shift: number, trie: Trie<K, V>, dict: HashEqDict<K>): V | undefined { if (trie.kind === 'chain') { if (trie.hash === hash) { for (let i = 0; i < trie.data.length; ++i) { const kvh = trie.data[i]; if (dict.eq(kvh.key, key)) { return kvh.value; } } } return undefined; } const hashIdx = (hash >>> shift) & MASK; const bitIndex = popCount(trie.bitmap & ((1 << hashIdx) - 1)); if (!(trie.bitmap & (1 << hashIdx))) { return undefined; } const bd = trie.data[bitIndex]; return bd.kind === 'value' ? bd.hash === hash && dict.eq(bd.key, key) ? bd.value : undefined : lookupWorker(key, hash, shift + SHIFT, bd, dict); } function insertWorker<K, V>(key: K, value: V, hash: number, shift: number, trie: Trie<K, V>, dict: HashEqDict<K>): Trie<K, V> { if (trie.kind === 'chain') { if (trie.hash === hash) { const insertValue = mkValue(key, value, hash); for (let i = 0; i < trie.data.length; ++i) { const kvh = trie.data[i]; if (dict.eq(kvh.key, key)) { return mkChain(hash, update(insertValue, i, trie.data)); } } } return merge(key, value, hash, shift, trie); } const hashIdx = (hash >>> shift) & MASK; const bitIndex = popCount(trie.bitmap & ((1 << hashIdx) - 1)); let newData; if (trie.bitmap & (1 << hashIdx)) { const bd = trie.data[bitIndex]; const newbd = bd.kind === 'value' ? (bd.hash === hash && dict.eq(bd.key, key)) ? mkValue(key, value, hash) : merge(key, value, hash, shift + SHIFT, bd) : insertWorker(key, value, hash, shift + SHIFT, bd, dict); newData = update(newbd, bitIndex, trie.data); } else { newData = arrInsert(mkValue(key, value, hash), bitIndex, trie.data); } return mkBitmap(trie.bitmap | (1 << hashIdx), newData); } function merge<K, V>(key: K, value: V, hash: number, shift: number, kvh: Value<K, V> | Chain<K, V>): Trie<K, V> { if (shift >= HASH_SZ || hash === kvh.hash) { const insertValue = mkValue(key, value, hash); return kvh.kind === 'chain' ? mkChain(hash, prepend(insertValue, kvh.data)) : mkChain(hash, [insertValue, kvh]); } const h1 = (hash >>> shift) & MASK; const h2 = (kvh.hash >>> shift) & MASK; if (h1 === h2) { return mkBitmap(1 << h1, [ merge(key, value, hash, shift + SHIFT, kvh) ]); } const insertValue = mkValue(key, value, hash); return mkBitmap( (1 << h1) | (1 << h2), h1 > h2 ? [kvh, insertValue] : [insertValue, kvh] ); } function removeWorker<K, V>( key: K, hash: number, shift: number, trie: Trie<K, V>, dict: HashEqDict<K> ): Trie<K, V> | Value<K, V> | undefined { if (trie.kind === 'chain') { if (trie.hash === hash) { for (let i = 0; i < trie.data.length; ++i) { const kvh = trie.data[i]; if (dict.eq(kvh.key, key)) { // a valid Chain always has >= 2 children if (trie.data.length === 2) { return trie.data[i ^ 1]; } return mkChain(hash, arrRemove(i, trie.data)); } } } return trie; } const hashIdx = (hash >>> shift) & MASK; const bitIndex = popCount(trie.bitmap & ((1 << hashIdx) - 1)); if (!(trie.bitmap & (1 << hashIdx))) { return trie; } const bd = trie.data[bitIndex]; if (bd.kind === 'value') { if (bd.hash !== hash || !dict.eq(bd.key, key)) { return trie; } } else { const res = removeWorker(key, hash, shift + SHIFT, bd, dict); if (res === bd) { return trie; } if (res) { return mkBitmap(trie.bitmap, update(res, bitIndex, trie.data)); } } if (trie.data.length === 1) { return undefined; } if (trie.data.length === 2 && trie.data[bitIndex ^ 1].kind !== 'bitmap') { return trie.data[bitIndex ^ 1]; } const newData = arrRemove(bitIndex, trie.data); return mkBitmap(trie.bitmap ^ (1 << hashIdx), newData); } function unassocWorker<K, V>( key: K, hash: number, shift: number, trie: Trie<K, V>, dict: HashEqDict<K> ): [V | undefined, Trie<K, V> | Value<K, V> | undefined] { if (trie.kind === 'chain') { if (trie.hash === hash) { for (let i = 0; i < trie.data.length; ++i) { const kvh = trie.data[i]; if (dict.eq(kvh.key, key)) { // a valid Chain always has >= 2 children if (trie.data.length === 2) { return [kvh.value, trie.data[i ^ 1]]; } return [kvh.value, mkChain(hash, arrRemove(i, trie.data))]; } } } return [undefined, trie]; } const hashIdx = (hash >>> shift) & MASK; const bitIndex = popCount(trie.bitmap & ((1 << hashIdx) - 1)); if (!(trie.bitmap & (1 << hashIdx))) { return [undefined, trie]; } let returnValue; const bd = trie.data[bitIndex]; if (bd.kind === 'value') { if (bd.hash !== hash || !dict.eq(bd.key, key)) { return [undefined, trie]; } returnValue = bd.value; } else { const res = unassocWorker(key, hash, shift + SHIFT, bd, dict); if (res[1] === bd) { return [undefined, trie]; } if (res[1]) { return [res[0], mkBitmap(trie.bitmap, update(res[1]!, bitIndex, trie.data)) ]; // TYH } returnValue = res[0]; } if (trie.data.length === 1) { return [returnValue, undefined]; } if (trie.data.length === 2 && trie.data[bitIndex ^ 1].kind !== 'bitmap') { return [returnValue, trie.data[bitIndex ^ 1]]; } const newData = arrRemove(bitIndex, trie.data); return [returnValue, mkBitmap(trie.bitmap ^ (1 << hashIdx), newData)]; } function mapWorker<K, A, B>(f: (value: A) => B, x: Trie<K, A> | Value<K, A>): Trie<K, B> | Value<K, B> { if (x.kind === 'value') { return mkValue(x.key, f(x.value), x.hash); } const data = x.data; const newData = new Array(data.length); for (let i = 0; i < data.length; ++i) { newData[i] = mapWorker(f, data[i]); } return x.kind === 'bitmap' ? mkBitmap(x.bitmap, newData) : mkChain(x.hash, newData); } function foldrWorker<K, V, A>(f: (key: K, value: V, acc: A) => A, acc: A, x: Trie<K, V> | Value<K, V>) { if (x.kind === 'value') { return f(x.key, x.value, acc); } const data = x.data; for (let i = 0; i < data.length; ++i) { acc = foldrWorker(f, acc, data[i]); } return acc; } function foldlWorker<K, V, A>(f: (acc: A, key: K, value: V) => A, acc: A, x: Trie<K, V> | Value<K, V>) { if (x.kind === 'value') { return f(acc, x.key, x.value); } const data = x.data; for (let i = 0; i < data.length; ++i) { acc = foldlWorker(f, acc, data[i]); } return acc; } /* Helpers */ function prepend<T>(x: T, xs: T[]): T[] { const retval = new Array(xs.length); retval[0] = x; for (let i = 0; i < xs.length; ++i) { retval[i + 1] = xs[i]; } return retval; } function update<T>(x: T, idx: number, xs: T[]): T[] { const retval = new Array(xs.length); for (let i = 0; i < xs.length; ++i) { retval[i] = xs[i]; } retval[idx] = x; return retval; } function arrInsert<T>(x: T, idx: number, xs: T[]): T[] { const retval = new Array(xs.length + 1); for (let i = 0; i < idx; ++i) { retval[i] = xs[i]; } retval[idx] = x; for (let i = idx; i < xs.length; ++i) { retval[i + 1] = xs[i]; } return retval; } function arrRemove<T>(idx: number, xs: T[]): T[] { const retval = new Array(xs.length - 1); for (let i = 0; i < idx; ++i) { retval[i] = xs[i]; } for (let i = idx; i < retval.length; ++i) { retval[i] = xs[i + 1]; } return retval; } function asBitmap<K, V>(mixed: Trie<K, V> | Value<K, V>): Bitmap<K, V> { if (mixed.kind === 'bitmap') { return mixed; } const hashIdx = mixed.hash & MASK; return mkBitmap(1 << hashIdx, [mixed]); } // Copied from Java's Integer.bitCount function popCount(i: number) { i = i - ((i >>> 1) & 0x55555555); i = (i & 0x33333333) + ((i >>> 2) & 0x33333333); i = (i + (i >>> 4)) & 0x0f0f0f0f; i = i + (i >>> 8); i = i + (i >>> 16); return i & 0x3f; } /* Constructors */ function mkBitmap<K, V>(bitmap: number, data: (Trie<K, V> | Value<K, V>)[]): Bitmap<K, V> { return { kind: 'bitmap', bitmap, data }; } function mkChain<K, V>(hash: number, data: Value<K, V>[]): Chain<K, V> { return { kind: 'chain', hash, data }; } function mkValue<K, V>(key: K, value: V, hash: number): Value<K, V> { return { kind: 'value', hash, key, value }; } function mkTrie<K, V>(trie: Trie<K, V> | undefined, dict: HashEqDict<K>): HAMT<K, V> { return { dict, trie }; } <file_sep> import { testHeap } from '../heap_suite' import { SkewHeap } from '../../src/persistent/skew_heap' import * as SkewHeapDict from '../../src/persistent/skew_heap' testHeap<SkewHeap<number>>('SkewHeap', true, SkewHeapDict); <file_sep> import { toComparator } from '../src/ordering' export { numComp, numOrdCmp, mkRandomArray, replicate, inplaceShuffle, assertFail } const numComp = toComparator(numOrdCmp); function numOrdCmp(x: number, y: number) { return x < y ? 'LT' : x > y ? 'GT' : 'EQ'; } function mkRandomArray(length: number, randRange = 1000) { const retval = []; for (let i = length; i > 0; --i) { retval.push((Math.random() * randRange) | 0); } return retval; } function replicate<T>(x: T, n: number) { const retval = []; for (; n > 0; --n) { retval.push(x); } return retval; } // see https://stackoverflow.com/a/12646864 function inplaceShuffle<T>(arr: T[]): T[] { for (let i = arr.length - 1; i > 0; i--) { const j = Math.random() * (i + 1) | 0; [arr[i], arr[j]] = [arr[j], arr[i]]; } return arr; } function assertFail(): never { throw new Error('assert: fail'); } <file_sep> import { test } from 'pietr' import { assert } from 'chai' import { mkRandomArray } from '../utils' import { FingerVector, mkVector, singleton, length, isEmpty, cons, snoc, head, last, popLeft, popRight, splitAt, take, drop, elementAt, append, foldl, foldr, map } from '../../src/persistent/finger_vector' const arr1 = [1]; const arr10 = mkRandomArray(10); const arr100 = mkRandomArray(100); const arr1000 = mkRandomArray(1000); const vec1c = singleton(arr1[0]); const vec10c = arr10.reduce((acc, x) => cons(x, acc), mkVector<number>()); const vec100c = arr100.reduce((acc, x) => cons(x, acc), mkVector<number>()); const vec1000c = arr1000.reduce((acc, x) => cons(x, acc), mkVector<number>()); const vec1s = singleton(arr1[0]); const vec10s = arr10.reduce((acc, x) => snoc(x, acc), mkVector<number>()); const vec100s = arr100.reduce((acc, x) => snoc(x, acc), mkVector<number>()); const vec1000s = arr1000.reduce((acc, x) => snoc(x, acc), mkVector<number>()); const vec1sc = singleton(arr1[0]); const vec10sc = arr10.reduce((acc, x, i) => (i & 1 ? snoc : cons)(x, acc), mkVector<number>()); const vec100sc = arr100.reduce((acc, x, i) => (i & 1 ? snoc : cons)(x, acc), mkVector<number>()); const vec1000sc = arr1000.reduce((acc, x, i) => (i & 1 ? snoc : cons)(x, acc), mkVector<number>()); const testArr = arr100; const testVec = vec100s; function assertSameElements<T>(vec: FingerVector<T>, arr: T[], start: number, end: number) { let item, curr = vec; for (let i = start; i < end; ++i) { [item, curr] = popLeft(curr)!; assert.equal(item, arr[i]); } assert.isTrue(isEmpty(curr)); } test('FingerTree :: length', () => { assert.equal(length(mkVector()), 0); assert.equal(length(vec1c), arr1.length); assert.equal(length(vec10c), arr10.length); assert.equal(length(vec100c), arr100.length); assert.equal(length(vec1000c), arr1000.length); assert.equal(length(vec1s), arr1.length); assert.equal(length(vec10s), arr10.length); assert.equal(length(vec100s), arr100.length); assert.equal(length(vec1000s), arr1000.length); assert.equal(length(vec1sc), arr1.length); assert.equal(length(vec10sc), arr10.length); assert.equal(length(vec100sc), arr100.length); assert.equal(length(vec1000sc), arr1000.length); }); test('FingerTree :: head / popLeft', () => { assert.isUndefined(head(mkVector())); let item, vec = vec1000s; for (let i = 0; i < arr1000.length; ++i) { assert.equal(head(vec), arr1000[i]); [item, vec] = popLeft(vec)!; assert.equal(item, arr1000[i]); } assert.isTrue(isEmpty(vec)); }); test('FingerTree :: last / popRight', () => { assert.isUndefined(head(mkVector())); let item, vec = vec1000c; for (let i = 0; i < arr1000.length; ++i) { assert.equal(last(vec), arr1000[i]); [item, vec] = popRight(vec)!; assert.equal(item, arr1000[i]); } assert.isTrue(isEmpty(vec)); }); test('FingerTree :: split / concat', () => { const empty = mkVector<number>(); const split1 = splitAt(-10, empty); assert.isTrue(isEmpty(split1[0]) && isEmpty(split1[1])); const split2 = splitAt(10, empty); assert.isTrue(isEmpty(split2[0]) && isEmpty(split2[1])); const split3 = splitAt(0, empty); assert.isTrue(isEmpty(split3[0]) && isEmpty(split3[1])); for (let i = 0; i < testArr.length; ++i) { const split = splitAt(i, testVec); assertSameElements(split[0], testArr, 0, i); assertSameElements(split[1], testArr, i, testArr.length); assertSameElements(append(split[0], split[1]), testArr, 0, testArr.length); } }); test('FingerTree :: search', () => { for (let i = 0; i < testArr.length; ++i) { const e = elementAt(i, testVec); assert.equal(e, testArr[i]); } }); test('FingerTree :: splitLeft', () => { for (let i = 0; i < testArr.length; ++i) { const split = take(i, testVec); assertSameElements(split, testArr, 0, i); } }); test('FingerTree :: splitRight', () => { for (let i = 0; i < testArr.length; ++i) { const split = drop(i, testVec); assertSameElements(split, testArr, i, testArr.length); } }); test('FingerTree :: foldr', () => { foldr(vec1c, 0, (x, idx) => (assert.equal(x, arr1[idx]), idx + 1)); foldr(vec10c, 0, (x, idx) => (assert.equal(x, arr10[idx]), idx + 1)); foldr(vec100c, 0, (x, idx) => (assert.equal(x, arr100[idx]), idx + 1)); foldr(vec1000c, 0, (x, idx) => (assert.equal(x, arr1000[idx]), idx + 1)); foldr(vec1s, arr1.length - 1, (x, idx) => (assert.equal(x, arr1[idx]), idx - 1)); foldr(vec10s, arr10.length - 1, (x, idx) => (assert.equal(x, arr10[idx]), idx - 1)); foldr(vec100s, arr100.length - 1, (x, idx) => (assert.equal(x, arr100[idx]), idx - 1)); foldr(vec1000s, arr1000.length - 1, (x, idx) => (assert.equal(x, arr1000[idx]), idx - 1)); }); test('FingerTree :: foldl', () => { foldl(vec1s, 0, (idx, x) => (assert.equal(x, arr1[idx]), idx + 1)); foldl(vec10s, 0, (idx, x) => (assert.equal(x, arr10[idx]), idx + 1)); foldl(vec100s, 0, (idx, x) => (assert.equal(x, arr100[idx]), idx + 1)); foldl(vec1000s, 0, (idx, x) => (assert.equal(x, arr1000[idx]), idx + 1)); foldl(vec1c, arr1.length - 1, (idx, x) => (assert.equal(x, arr1[idx]), idx - 1)); foldl(vec10c, arr10.length - 1, (idx, x) => (assert.equal(x, arr10[idx]), idx - 1)); foldl(vec100c, arr100.length - 1, (idx, x) => (assert.equal(x, arr100[idx]), idx - 1)); foldl(vec1000c, arr1000.length - 1, (idx, x) => (assert.equal(x, arr1000[idx]), idx - 1)); }); test('FingerTree :: map', () => { const times5 = (x: number) => x * 5; foldl(map(vec1s, times5), 0, (idx, x) => (assert.equal(x, times5(arr1[idx])), idx + 1)); foldl(map(vec10s, times5), 0, (idx, x) => (assert.equal(x, times5(arr10[idx])), idx + 1)); foldl(map(vec100s, times5), 0, (idx, x) => (assert.equal(x, times5(arr100[idx])), idx + 1)); foldl(map(vec1000s, times5), 0, (idx, x) => (assert.equal(x, times5(arr1000[idx])), idx + 1)); foldl(map(vec1c, times5), arr1.length - 1, (idx, x) => (assert.equal(x, times5(arr1[idx])), idx - 1)); foldl(map(vec10c, times5), arr10.length - 1, (idx, x) => (assert.equal(x, times5(arr10[idx])), idx - 1)); foldl(map(vec100c, times5), arr100.length - 1, (idx, x) => (assert.equal(x, times5(arr100[idx])), idx - 1)); foldl(map(vec1000c, times5), arr1000.length - 1, (idx, x) => (assert.equal(x, times5(arr1000[idx])), idx - 1)); }); <file_sep> ## TypeScript implementation of several heap data structures ### Implemented data structures - [Binary heap](src/mutable/bin_heap.ts)<sup>[[1]](#references)</sup> - mutable, array backed - [Pairing heap](src/persistent/pairing_heap.ts)<sup>[[2]](#references)</sup> - persistent, has very good real-world performance - [Leftist heap](src/persistent/leftist_heap.ts)<sup>[[3]](#references)</sup> - persistent, left biased tree - [Skew heap](src/persistent/skew_heap.ts)<sup>[[4]](#references)</sup> - persistent, reminiscent of Leftist Tree, but doesn't use ranks and has better merge performance - [Binomial heap](src/persistent/binomial_heap.ts)<sup>[[5]](#references)</sup> - persistent, uses array as subtree storage - [Finger Heap](src/persistent/finger_heap.ts) - persistent, uses Finger Tree as storage - [Finger Vector](src/persistent/finger_vector.ts) - persistent, uses Finger Tree as storage - [Finger Tree](src/persistent/finger_tree.ts) <sup>[[6]](#references)[[7]](#references)</sup> - persistent, amortised O(1) dequeue operations, efficient split/concatenation Note: This implementation uses a strict spine. This means that the cost of the amortised operations is payed upfront and when that happens, the triggering operation pays the full O(log n) cost. However, the amortised complexities still hold, unless a bad data structure is purposefully reused multiple times. - [Weight-Balanced Tree](src/persistent/weight_balanced_tree.ts)<sup>[[8]](#references)[[9]](#references)[[10]](#references)</sup> - persistent, ordered, Map interface - [Hash Array Mapped Trie (HAMT)](src/persistent/hamt.ts)<sup>[[11]](#references)[[12]](#references)[[13]](#references)</sup> - persistent, hash based, Map interface ### A note on implementation All implementations assume a min heap. This is not a problem, however, because all heap constructors require a comparator to be provided. To derive a max heap, simply invert the comparator. ### References 1. https://en.wikipedia.org/wiki/Binary_heap 2. https://en.wikipedia.org/wiki/Pairing_heap 3. https://en.wikipedia.org/wiki/Leftist_tree 4. https://en.wikipedia.org/wiki/Skew_heap 5. https://en.wikipedia.org/wiki/Binomial_heap 6. https://en.wikipedia.org/wiki/Finger_tree 7. http://www.staff.city.ac.uk/~ross/papers/FingerTree.html 8. http://www.mew.org/~kazu/proj/weight-balanced-tree/ 9. https://hackage.haskell.org/package/containers-0.5.10.2/docs/Data-Map-Lazy.html 10. https://en.wikipedia.org/wiki/Weight-balanced_tree 11. http://blog.higher-order.net/2009/09/08/understanding-clojures-persistenthashmap-deftwice 12. https://infoscience.epfl.ch/record/64398/files/idealhashtrees.pdf 13. https://en.wikipedia.org/wiki/Hash_array_mapped_trie <file_sep> import { test } from 'pietr' import { assert } from 'chai' import { strictEq } from '../src/eq' import { assertFail, inplaceShuffle } from './utils' import { HashEqDict, mkHashEqDict, stringHash } from '../src/hashing' import { OrdComparator, invert, naturalComparator, naturalOrdComparator } from '../src/ordering' export { Map, MapDict, testMap } interface Map<K, V> { __key: K, __value: V } interface MapLike<V> { [key: string]: V } interface MapDict { mkMap: <K, V>(cmp: OrdComparator<K>, dict: HashEqDict<K>) => Map<K, V>, singleton: <K, V>(key: K, value: V, cmp: OrdComparator<K>, dict: HashEqDict<K>) => Map<K, V>, isEmpty: <K, V>(map: Map<K, V>) => boolean, size: <K, V>(map: Map<K, V>) => number, member: <K, V>(key: K, map: Map<K, V>) => boolean, lookup: <K, V>(key: K, map: Map<K, V>) => V | undefined, insert: <K, V>(key: K, value: V, map: Map<K, V>) => Map<K, V>, remove: <K, V>(key: K, map: Map<K, V>) => Map<K, V>, unassoc: <K, V>(key: K, map: Map<K, V>) => [V | undefined, Map<K, V>], removeMin: (<K, V>(map: Map<K, V>) => [K | undefined, V | undefined, Map<K, V>]) | undefined, removeMax: (<K, V>(map: Map<K, V>) => [K | undefined, V | undefined, Map<K, V>]) | undefined, map: <K, V, V2>(map: Map<K, V>, f: (value: V) => V2) => Map<K, V2>, foldr: <K, V, A>(map: Map<K, V>, initial: A, f: (key: K, value: V, acc: A) => A) => A, foldl: <K, V, A>(map: Map<K, V>, initial: A, f: (acc: A, key: K, value: V) => A) => A } interface Options { hashed: boolean, ordered: boolean, idRemove: boolean, } const BadHashDict = mkHashEqDict(_ => 19, strictEq); const StringDict = mkHashEqDict(stringHash, strictEq); const NumberDict = mkHashEqDict((x: number) => x, strictEq); const adjectives = [ 'good', 'evil', 'strong', 'weak', 'smart', 'heroic', 'big', 'small', 'red', 'swelte', 'green', 'blue', 'sweet', 'salty', 'little', 'old', 'new', 'important', 'famous', 'rich', 'shy', 'lazy', 'massive', 'bitter', 'juicy', 'heavy', 'light', 'moldy', 'misty', 'affable' ]; const nouns = [ 'cat', 'dog', 'computer', 'wombat', 'desk', 'stone', 'phone', 'pine-cone', 'bag', 'chair', 'car', 'pencil', 'spreadsheet', 'parser', 'lexer', 'token', 'function', 'dinosaur', 'song', 'album', 'processor', 'piece', 'app', 'store', 'goods' ]; function pick<T>(xs: T[]): T { const idx = (xs.length * Math.random()) | 0; return xs[idx]; } function generateKey() { const adj = pick(adjectives); const noun = pick(nouns); const idx = (Math.random() * 1000 + 1) | 0; return adj + '-' + noun + '-' + idx; } function generateUniqueKey<T>(obj: MapLike<T>) { let key; do { key = generateKey(); } while (obj[key] !== undefined); return key; } function mkRandomObject(n: number) { const retval: { [key: string]: number } = {}; for (let i = 0; i < n; ++i) { let key = generateUniqueKey(retval); retval[key] = Math.random() * 1000 | 0; } return retval; } function testMap(prefix: string, options: Options, mapDict: MapDict) { testMap0(prefix, options, mapDict, StringDict); options.hashed && testMap0(prefix, options, mapDict, BadHashDict); } function testMap0( prefix: string, { ordered, idRemove }: Options, { mkMap, singleton, isEmpty, size, member, lookup, insert, remove, unassoc, removeMin, removeMax, map, foldr, foldl }: MapDict, hashDict: HashEqDict<string> ) { function fromObject<V>(obj: { [key: string]: V }): Map<string, V> { return Object.keys(obj).reduce( (m, k) => insert(k, obj[k], m), mkMap<string, V>(naturalOrdComparator, hashDict) ); } function checkSameProps<V>(obj: MapLike<V>, map: Map<string, V>) { const keys = Object.keys(obj); for (const k of keys) { assert.equal(lookup(k, map), obj[k]); } assert.equal(size(map), keys.length); } function dataClone<T>(x: T): T { return JSON.parse(JSON.stringify(x)); } const __emptyStringMap = mkMap<string, any>(naturalOrdComparator, hashDict); function emptyStringMap<T>(): Map<string, T> { return __emptyStringMap; } const obj1 = { test: 'value' }; const obj10 = mkRandomObject(10); const obj100 = mkRandomObject(100); const obj1000 = mkRandomObject(1000); const map1 = singleton('test', 'value', naturalOrdComparator, hashDict); const map10 = fromObject(obj10); const map100 = fromObject(obj100); const map1000 = fromObject(obj1000); const testObj = obj100; const testMap = map100; test(`${ prefix } :: empty / size`, () => { const m0 = mkMap<string, number>(naturalOrdComparator, hashDict); const m1 = insert("hello", 1, m0); const m2 = insert("world", 2, m1); assert.equal(isEmpty(m0), true, 'XOXO'); assert.equal(isEmpty(m1), false); assert.equal(isEmpty(m2), false); assert.equal(size(m0), 0); assert.equal(size(m1), 1); assert.equal(size(m2), 2); assert.equal(isEmpty(map1), false); assert.equal(isEmpty(map10), false); assert.equal(isEmpty(map100), false); assert.equal(isEmpty(map1000), false); assert.equal(size(map1), 1); assert.equal(size(map10), 10); assert.equal(size(map100), 100); assert.equal(size(map1000), 1000); }); test(`${ prefix } :: member`, () => { assert.equal(member('zest', map1), false); assert.equal(member('zest', map10), false); assert.equal(member('test', map1), true); for (const k of Object.keys(testObj)) { assert.equal(member(k, testMap), true); } }); test(`${ prefix } :: lookup`, () => { assert.equal(lookup('zest', map1), undefined); assert.equal(lookup('zest', map10), undefined); assert.equal(lookup('test', map1), 'value'); for (const k of Object.keys(testObj)) { assert.equal(lookup(k, testMap), testObj[k]); } }); test(`${ prefix } :: insert ascending`, () => { const keys = Object.keys(testObj).sort(naturalComparator); const map = keys.reduce( (m, k) => insert(k, testObj[k], m), mkMap<string, number>(naturalOrdComparator, hashDict) ); checkSameProps(testObj, map); }); test(`${ prefix } :: insert descending`, () => { const keys = Object.keys(testObj).sort(invert(naturalComparator)); const map = keys.reduce( (m, k) => insert(k, testObj[k], m), mkMap<string, number>(naturalOrdComparator, hashDict) ); checkSameProps(testObj, map); }); test(`${ prefix } :: update`, () => { const keys = inplaceShuffle(Object.keys(testObj)); const obj: MapLike<number> = {}; const map = keys.reduce( (m, k) => (obj[k] = 19, insert(k, 19, m)), testMap ); checkSameProps(obj, map); }); test(`${ prefix } :: remove`, () => { let map = testMap; let obj = dataClone(testObj); for (const k of Object.keys(obj)) { map = remove(k, map); delete obj[k]; checkSameProps(obj, map); } assert.equal(size(map), 0); }); test(`${ prefix } :: unassoc`, () => { let value; let map = testMap; for (const k of Object.keys(testObj)) { [value, map] = unassoc(k, map); assert.equal(value, testObj[k]); } assert.equal(isEmpty(map), true); }); removeMin && test(`${ prefix } :: removeMin`, () => { let key, value; let map = testMap; const keys = Object.keys(testObj).sort(naturalComparator); for (const k of keys) { [key, value, map] = removeMin(map); assert.equal(key, k); assert.equal(value, testObj[k]); } assert.equal(isEmpty(map), true); let map2; [key, value, map2] = removeMin(map); assert.equal(key, undefined); assert.equal(value, undefined); assert.equal(isEmpty(map2), true); idRemove && assert.strictEqual(map2, map); }); removeMax && test(`${ prefix } :: removeMax`, () => { let key, value; let map = testMap; const keys = Object.keys(testObj).sort(invert(naturalComparator)); for (const k of keys) { [key, value, map] = removeMax(map); assert.equal(key, k); assert.equal(value, testObj[k]); } assert.equal(isEmpty(map), true); let map2; [key, value, map2] = removeMax(map); assert.equal(key, undefined); assert.equal(value, undefined); assert.equal(isEmpty(map2), true); idRemove && assert.strictEqual(map2, map); }); test(`${ prefix } :: map`, () => { const f = (x: number) => String(x * 5); assert.equal(map(emptyStringMap(), assertFail), emptyStringMap()); const m = map(testMap, x => f(x)); const o = Object.keys(testObj).reduce( (acc, k) => (acc[k] = f(testObj[k]), acc), {} as MapLike<string> ); checkSameProps(o, m); }); test(`${ prefix } :: update`, () => { const m0 = mkMap<string, string>(naturalOrdComparator, hashDict); const m1 = insert('token', 'string', m0); const m2 = insert('token', 'number', m1); const m3 = insert('token', 'object', m2); assert.equal(size(m0), 0); assert.equal(lookup('token', m0), undefined); assert.equal(size(m1), 1); assert.equal(lookup('token', m1), 'string'); assert.equal(size(m2), 1); assert.equal(lookup('token', m2), 'number'); assert.equal(size(m3), 1); assert.equal(lookup('token', m3), 'object'); }); test(`${ prefix } :: foldr`, () => { assert.equal(foldr(emptyStringMap(), 10, assertFail), 10); const found: MapLike<boolean> = {}; const keys = Object.keys(testObj).sort(naturalComparator); const res = foldr(testMap, keys.length, (k, v, idx) => { assert.equal(v, testObj[k]); if (ordered) { assert.equal(k, keys[idx - 1]); } else { assert.equal(found[k], undefined); found[k] = true; } return idx - 1; }); assert.equal(res, 0); }); test(`${ prefix } :: foldl`, () => { assert.equal(foldl(emptyStringMap(), 10, assertFail), 10); const found: MapLike<boolean> = {}; const keys = Object.keys(testObj).sort(naturalComparator); const res = foldl(testMap, 0, (idx, k, v) => { assert.equal(v, testObj[k]); if (ordered) { assert.equal(k, keys[idx]); } else { assert.equal(found[k], undefined); found[k] = true; } return idx + 1; }); assert.equal(res, keys.length); }); test(`${ prefix } :: GHC_4242 - simple remove`, () => { const values = [0,2,5,1,6,4,8,9,7,11,10,3]; const m0 = values.reduce( (acc, i) => insert(i, i, acc), mkMap<number, number>(naturalOrdComparator, NumberDict) ); const m1 = remove(0, m0); const m2 = remove(1, m1); assert.equal(size(m2), values.length - 2); }); removeMin && test(`${ prefix } :: GHC_4242`, () => { const values = [0,2,5,1,6,4,8,9,7,11,10,3]; const m0 = values.reduce( (acc, i) => insert(i, i, acc), mkMap<number, number>(naturalOrdComparator, NumberDict) ); const [k1, v1, m1] = removeMin(m0); const [k2, v2, m2] = removeMin(m1); assert.equal(v1, 0); assert.equal(k1, 0); assert.equal(v2, 1); assert.equal(k2, 1); assert.equal(size(m2), values.length - 2); }); idRemove && test(`${ prefix } :: same reference when removing nonexistent elements`, () => { const emptyMap = emptyStringMap(); assert.equal(remove('<NAME>', emptyMap), emptyMap); const [value, map] = unassoc('<NAME>', emptyMap); assert.equal(map, emptyMap); assert.equal(value, undefined); const count = Object.keys(testObj).length; for (let i = 0; i < count; ++i) { const key = generateUniqueKey(testObj); assert.equal(remove(key, testMap), testMap); const [value, map] = unassoc(key, testMap); assert.equal(map, testMap); assert.equal(value, undefined); } }); } <file_sep> import { testMap, MapDict } from '../map_suite' import * as WBT from '../../src/persistent/weight_balanced_tree' function assertBalanced<F extends Function>( f: F, extractor: (x: any) => WBT.WeightBalancedTree<any, any> = (x => x) ): F { return <any> function() { const res = f.apply(null, arguments); const wbt = extractor(res); if (!WBT.checkBalanced(wbt)) { throw new Error('Imbalance detected'); } return res; }; } const Dict: Record<keyof MapDict, any> = { mkMap: assertBalanced(WBT.mkTree), singleton: assertBalanced(WBT.singleton), isEmpty: WBT.isEmpty, size: WBT.size, member: WBT.member, lookup: WBT.lookup, insert: assertBalanced(WBT.insert), remove: assertBalanced(WBT.remove), unassoc: assertBalanced(WBT.unassoc, x => x[1]), removeMin: assertBalanced(WBT.removeMin, x => x[2]), removeMax: assertBalanced(WBT.removeMax, x => x[2]), map: assertBalanced(WBT.map), foldr: WBT.foldr, foldl: WBT.foldl }; testMap( 'WeightBalancedTree', { hashed: false, ordered: true, idRemove: true }, Dict ); <file_sep> import { OrdComparator } from '../ordering' export { LeftistHeap, LeftistTree, mkHeap, singleton, isEmpty, peek, pop, push, heapify } /* Types */ // Height biased leftist tree. The rank is the minimum distance to an empty subtree. // // e.g. rank(undefined) == 0 // rank(singleton(x)) == 1 // rank(left rank = 5, right rank = 0) == 0 interface LeftistTree<T> { item: T, rank: number, left: LeftistTree<T> | undefined, right: LeftistTree<T> | undefined } interface LeftistHeap<T> { comparator: OrdComparator<T>, tree: LeftistTree<T> | undefined } /* API Functions */ function isEmpty<T>(heap: LeftistHeap<T>): boolean { return !heap.tree; } function peek<T>(heap: LeftistHeap<T>): T | undefined { return heap.tree && heap.tree.item; } function pop<T>(heap: LeftistHeap<T>): [T, LeftistHeap<T>] | undefined { return heap.tree && [ heap.tree.item, mkHeap2(merge(heap.tree.left, heap.tree.right, heap.comparator), heap.comparator) ]; } function push<T>(item: T, heap: LeftistHeap<T>) { return mkHeap2( merge(mkTree(item, 1, undefined, undefined), heap.tree, heap.comparator), heap.comparator ); } function heapify<T>(items: T[], comparator: OrdComparator<T>): LeftistHeap<T> { // Pairwise merging should be O(n) according to Wikipedia. // The naive `push` based approach is O(n * log(n)). // Basic idea: we do parwise merges until there is only one tree left. // Instead of mapping the initial values into singleton trees, we are doing // a one-off optimized merge and then we proceed with normal tree merges. const primTrees = combinePairs( items, (x, y) => comparator(x, y) === 'LT' ? mkTree(x, 1, mkTree(y, 1, undefined, undefined), undefined) : mkTree(y, 1, mkTree(x, 1, undefined, undefined), undefined), x => mkTree(x, 1, undefined, undefined) ); let unmerged = primTrees; while (unmerged.length > 1) { unmerged = combinePairs( unmerged, (x, y) => merge(x, y, comparator), x => x ); } return unmerged[0] ? mkHeap2(unmerged[0], comparator) : mkHeap(comparator); } /* Private Implementation Functions */ function merge<T>(tree1: LeftistTree<T>, tree2: LeftistTree<T>, cmp: OrdComparator<T>): LeftistTree<T>; function merge<T>(tree1: LeftistTree<T> | undefined, tree2: LeftistTree<T> | undefined, cmp: OrdComparator<T>): LeftistTree<T> | undefined; function merge<T>( tree1: LeftistTree<T> | undefined, tree2: LeftistTree<T> | undefined, cmp: OrdComparator<T> ): LeftistTree<T> | undefined { if (!tree1) { return tree2; } if (!tree2) { return tree1; } // favour left side return cmp(tree1.item, tree2.item) !== 'GT' ? join(tree1.item, tree1.left, merge(tree1.right, tree2, cmp)) : join(tree2.item, tree2.left, merge(tree1, tree2.right, cmp)); } function join<T>(item: T, tree1: LeftistTree<T> | undefined, tree2: LeftistTree<T> | undefined) { const rank1 = tree1 ? tree1.rank : 0; const rank2 = tree2 ? tree2.rank : 0; return (rank1 >= rank2) ? mkTree(item, rank2 + 1, tree1, tree2) : mkTree(item, rank1 + 1, tree2, tree1); } // I think I've seen it called treeFold, but I couldn't find a reference. function combinePairs<A, B>(xs: A[], combine: (x: A, y: A) => B, map: (x: A) => B) { const retval = []; let i; for (i = 0; i + 1 < xs.length; i += 2) { const x = xs[i]; const y = xs[i + 1]; retval.push(combine(x, y)); } if (i < xs.length) { retval.push(map(xs[i])); } return retval; } /* Constructors */ function mkHeap<T>(comparator: OrdComparator<T>): LeftistHeap<T> { return { comparator, tree: undefined }; } function singleton<T>(item: T, comparator: OrdComparator<T>): LeftistHeap<T> { return mkHeap2(mkTree(item, 1, undefined, undefined), comparator); } function mkHeap2<T>(tree: LeftistTree<T> | undefined, comparator: OrdComparator<T>): LeftistHeap<T> { return { comparator, tree }; } function mkTree<T>(item: T, rank: number, left: LeftistTree<T> | undefined, right: LeftistTree<T> | undefined): LeftistTree<T> { return { item, rank, left, right }; } <file_sep> import { OrdComparator } from '../ordering' export { /* (private) Implementation types */ WBT, Bin, isBalanced, /* Public API */ WeightBalancedTree, newTree as mkTree, singleton, isEmpty, size, member, lookup, insert, remove, unassoc, removeMin, removeMax, map, foldr, foldl, /* Utility functions */ checkBalanced } // Implementation based on: // `Balancing weight-balanced trees`, Hirai & Yamamoto // https://yoichihirai.com/bst.pdf // // Haskell's Data.Map // https://hackage.haskell.org/package/containers-0.5.10.2/docs/Data-Map-Lazy.html /* Types & Constants */ interface Bin<K, V> { key: K, value: V, left: Bin<K, V> | undefined, right: Bin<K, V> | undefined, size: number } type WBT<K, V> = Bin<K, V> | undefined // NOTE: // According to `Balancing weight-balanced trees`, Hirai & Yamamoto // only (4,2) and (3,2) work for (delta, gamma). // However, Haskell's Data.Map source notes that (3,2) is faster for inserts // and (4,2) for deletes, so I chose (as they did as well) (3,2). const DELTA = 3; const GAMMA = 2; interface WeightBalancedTree<K, V> { comparator: OrdComparator<K>, tree: WBT<K, V> } /* API */ function newTree<K, V>(comparator: OrdComparator<K>): WeightBalancedTree<K, V> { return mkTree(undefined, comparator); } function singleton<K, V>(key: K, value: V, comparator: OrdComparator<K>): WeightBalancedTree<K, V> { return mkTree(mkBin(key, value, undefined, undefined), comparator); } function checkBalanced<K, V>(wbt: WeightBalancedTree<K, V>): boolean { return checkBalancedWorker(wbt.tree); } function isEmpty<K, V>(wbt: WeightBalancedTree<K, V>): boolean { return !wbt.tree; } function size<K, V>(wbt: WeightBalancedTree<K, V>): number { return sizeWorker(wbt.tree); } function member<K, V>(key: K, wbt: WeightBalancedTree<K, V>): boolean { return memberWorker(key, wbt.tree, wbt.comparator); } function lookup<K, V>(key: K, wbt: WeightBalancedTree<K, V>): V | undefined { return lookupWorker(key, wbt.tree, wbt.comparator); } function insert<K, V>(key: K, value: V, wbt: WeightBalancedTree<K, V>): WeightBalancedTree<K, V> { return mkTree( insertWorker(key, value, wbt.tree, wbt.comparator), wbt.comparator ); } function remove<K, V>(key: K, wbt: WeightBalancedTree<K, V>): WeightBalancedTree<K, V> { const newTree = removeWorker(key, wbt.tree, wbt.comparator); return newTree !== wbt.tree ? mkTree(newTree, wbt.comparator) : wbt; } function unassoc<K, V>(key: K, wbt: WeightBalancedTree<K, V>): [V|undefined, WeightBalancedTree<K, V>] { const [value, newTree] = unassocWorker(key, wbt.tree, wbt.comparator); return newTree !== wbt.tree ? [ value, mkTree(newTree, wbt.comparator) ] : [ value, wbt ]; } function removeMin<K, V>(wbt: WeightBalancedTree<K, V>): [K|undefined, V|undefined, WeightBalancedTree<K, V>] { if (!wbt.tree) { return [undefined, undefined, wbt]; } const [key, value, tree] = removeMinWorker(wbt.tree); return [ key, value, mkTree(tree, wbt.comparator) ]; } function removeMax<K, V>(wbt: WeightBalancedTree<K, V>): [K|undefined, V|undefined, WeightBalancedTree<K, V>] { if (!wbt.tree) { return [undefined, undefined, wbt]; } const [key, value, tree] = removeMaxWorker(wbt.tree); return [ key, value, mkTree(tree, wbt.comparator) ]; } function map<K, A, B>(wbt: WeightBalancedTree<K, A>, f: (value: A) => B): WeightBalancedTree<K, B> { if (!wbt.tree) { return wbt as any as WeightBalancedTree<K, B>; // TYH } return mkTree(mapWorker(wbt.tree, f), wbt.comparator); } function foldr<K, V, A>(wbt: WeightBalancedTree<K, V>, initial: A, f: (key: K, value: V, acc: A) => A): A { return foldrWorker(wbt.tree, initial, f); } function foldl<K, V, A>(wbt: WeightBalancedTree<K, V>, initial: A, f: (acc: A, key: K, value: V) => A): A { return foldlWorker(wbt.tree, initial, f); } /* Worksers */ function sizeWorker<K, V>(tree: WBT<K, V>): number { return tree ? tree.size : 0; } function memberWorker<K, V>(key: K, tree: WBT<K, V>, cmp: OrdComparator<K>): boolean { if (!tree) { return false; } switch (cmp(key, tree.key)) { case 'EQ': return true; case 'LT': return memberWorker(key, tree.left, cmp); case 'GT': return memberWorker(key, tree.right, cmp); } } function lookupWorker<K, V>(key: K, tree: WBT<K, V>, cmp: OrdComparator<K>): V | undefined { if (!tree) { return undefined; } switch (cmp(key, tree.key)) { case 'EQ': return tree.value; case 'LT': return lookupWorker(key, tree.left, cmp); case 'GT': return lookupWorker(key, tree.right, cmp); } } function insertWorker<K, V>(key: K, value: V, tree: WBT<K, V>, cmp: OrdComparator<K>): Bin<K, V> { if (!tree) { return mkBin(key, value, undefined, undefined); } switch (cmp(key, tree.key)) { case 'EQ': return mkBin(key, value, tree.left, tree.right); case 'LT': return balanceR(tree.key, tree.value, insertWorker(key, value, tree.left, cmp), tree.right); case 'GT': return balanceL(tree.key, tree.value, tree.left, insertWorker(key, value, tree.right, cmp)); } } function removeWorker<K, V>(key: K, tree: WBT<K, V>, cmp: OrdComparator<K>): WBT<K, V> { if (!tree) { return undefined } switch (cmp(key, tree.key)) { case 'EQ': return glue(tree.left, tree.right); case 'LT': { const left = removeWorker(key, tree.left, cmp); if (left === tree.left) { return tree; } return tree.right ? balanceL(tree.key, tree.value, left, tree.right) : mkBin(tree.key, tree.value, left, undefined); } case 'GT': { const right = removeWorker(key, tree.right, cmp); if (right === tree.right) { return tree; } return tree.left ? balanceR(tree.key, tree.value, tree.left, right) : mkBin(tree.key, tree.value, undefined, right); } } } function unassocWorker<K, V>(key: K, tree: WBT<K, V>, cmp: OrdComparator<K>): [V | undefined, WBT<K, V>] { if (!tree) { return [undefined, undefined]; } let newTree; switch (cmp(key, tree.key)) { case 'EQ': return [tree.value, glue(tree.left, tree.right)]; case 'LT': { const [value, left] = unassocWorker(key, tree.left, cmp); if (left === tree.left) { newTree = tree; } else { newTree = tree.right ? balanceL(tree.key, tree.value, left, tree.right) : mkBin(tree.key, tree.value, left, undefined); } return [value, newTree]; } case 'GT': { const [value, right] = unassocWorker(key, tree.right, cmp); if (right === tree.right) { newTree = tree; } else { newTree = tree.left ? balanceR(tree.key, tree.value, tree.left, right) : mkBin(tree.key, tree.value, undefined, right) } return [value, newTree]; } } } function removeMaxWorker<K, V>(tree: Bin<K, V>): [K, V, WBT<K, V>] { if (!tree.right) { return [tree.key, tree.value, tree.left]; } const [key, val, right] = removeMaxWorker(tree.right); const newTree = balance(tree.key, tree.value, tree.left, right); return [ key, val, newTree ]; } function removeMinWorker<K, V>(tree: Bin<K, V>): [K, V, WBT<K, V>] { if (!tree.left) { return [tree.key, tree.value, tree.right]; } const [key, val, left] = removeMinWorker(tree.left); const newTree = balance(tree.key, tree.value, left, tree.right); return [ key, val, newTree ]; } function mapWorker<K, A, B>(wbt: WBT<K, A>, f: (value: A) => B): WBT<K, B> { if (!wbt) { return wbt; } return mkBin( wbt.key, f(wbt.value), mapWorker(wbt.left, f), mapWorker(wbt.right, f) ); } function foldrWorker<K, V, A>(wbt: WBT<K, V>, initial: A, f: (key: K, value: V, acc: A) => A): A { if (!wbt) { return initial; } const r = foldrWorker(wbt.right, initial, f); return foldrWorker(wbt.left, f(wbt.key, wbt.value, r), f); } function foldlWorker<K, V, A>(wbt: WBT<K, V>, initial: A, f: (acc: A, key: K, value: V) => A): A { if (!wbt) { return initial; } const l = foldlWorker(wbt.left, initial, f); return foldlWorker(wbt.right, f(l, wbt.key, wbt.value), f); } function glue<K, V>(left: WBT<K, V>, right: WBT<K, V>): WBT<K, V> { if (!left) { return right; } if (!right) { return left; } if (sizeWorker(left) > sizeWorker(right)) { const [key, val, l] = removeMaxWorker(left); return balanceL(key, val, l, right); } else { const [key, val, r] = removeMinWorker(right); return balanceR(key, val, left, r); } } function isBalanced<K, V>(left: WBT<K, V>, right: WBT<K, V>): boolean { const ls = sizeWorker(left); const rs = sizeWorker(right); return ls + rs <= 1 || DELTA * ls >= rs; } function checkBalancedWorker<K, V>(tree: WBT<K, V>): boolean { if (!tree) { return true; } return isBalanced(tree.left, tree.right) && isBalanced(tree.right, tree.left) && checkBalancedWorker(tree.left) && checkBalancedWorker(tree.right); } function isSingle<K, V>(left: WBT<K, V>, right: WBT<K, V>): boolean { const ls = sizeWorker(left); const rs = sizeWorker(right); return ls < GAMMA * rs; } function balance<K, V>(key: K, value: V, left: WBT<K, V>, right: WBT<K, V>): Bin<K, V> { if (isBalanced(left, right) && isBalanced(right, left)) { return mkBin(key, value, left, right); } if (sizeWorker(left) > sizeWorker(right)) { if (!left) { throw new Error('balance: broken left tree'); } return rotateR(key, value, left, right); } if (!right) { throw new Error('balance: broken right tree'); } return rotateL(key, value, left, right); } function balanceL<K, V>(key: K, value: V, left: WBT<K, V>, right: Bin<K, V>): Bin<K, V> { return isBalanced(left, right) ? mkBin(key, value, left, right) : rotateL(key, value, left, right); } function balanceR<K, V>(key: K, value: V, left: Bin<K, V>, right: WBT<K, V>): Bin<K, V> { return isBalanced(right, left) ? mkBin(key, value, left, right) : rotateR(key, value, left, right); } function rotateL<K, V>(key: K, value: V, left: WBT<K, V>, right: Bin<K, V>) { return isSingle(right.left, right.right) ? rotSingleL(key, value, left, right) : rotDoubleL(key, value, left, right); } function rotateR<K, V>(key: K, value: V, left: Bin<K, V>, right: WBT<K, V>) { return isSingle(left.right, left.left) ? rotSingleR(key, value, left, right) : rotDoubleR(key, value, left, right); } /* A C / \ / \ x C -> A z / \ / \ y z x y */ function rotSingleL<K, V>(key: K, value: V, left: WBT<K, V>, right: Bin<K, V>): Bin<K, V> { return mkBin(right.key, right.value, mkBin(key, value, left, right.left), right.right); } /* C A / \ / \ A z -> x C / \ / \ x y y z */ function rotSingleR<K, V>(key: K, value: V, left: Bin<K, V>, right: WBT<K, V>): Bin<K, V> { return mkBin(left.key, left.value, left.left, mkBin(key, value, left.right, right)); } /* A B / \ / \ x C -> A C / \ / \ / \ B z x y0 y1 z / \ y0 y1 */ function rotDoubleL<K, V>(key: K, value: V, left: WBT<K, V>, right: Bin<K, V>): Bin<K, V> { if (!right.left) { throw new Error('rotDoubleL: broken tree'); } return mkBin( right.left.key, right.left.value, mkBin(key, value, left, right.left.left), mkBin(right.key, right.value, right.left.right, right.right) ); } /* A B / \ / \ C x -> C A / \ / \ / \ z B z y0 y1 x / \ y0 y1 */ function rotDoubleR<K, V>(key: K, value: V, left: Bin<K, V>, right: WBT<K, V>): Bin<K, V> { if (!left.right) { throw new Error('rotDoubleR: broken tree'); } return mkBin( left.right.key, left.right.value, mkBin(left.key, left.value, left.left, left.right.left), mkBin(key, value, left.right.right, right) ); } /* Constructors */ function mkBin<K, V>(key: K, value: V, left: WBT<K, V>, right: WBT<K, V>): Bin<K, V> { const size = sizeWorker(left) + sizeWorker(right) + 1; return { key, value, left, right, size }; } function mkTree<K, V>(tree: WBT<K, V>, comparator: OrdComparator<K>): WeightBalancedTree<K, V> { return { comparator, tree }; } <file_sep> import { FingerTree } from './finger_tree' import * as FT from './finger_tree' export { FingerVector, mkVector, singleton, cons, snoc, append, isEmpty, length, head, tail, last, init, popLeft, popRight, elementAt, take, drop, splitAt, map, foldl, foldr } type Size = number type FingerVector<T> = FingerTree<T, Size> const SizeDict = FT.mkMeasureMonoidDict<{}, Size>( _ => 1, 0, (x, y) => x + y ); const empty = FT.mkTree<any, number>(SizeDict); function mkVector<T>(): FingerVector<T> { return empty; } function isEmpty<T>(vec: FingerVector<T>) { return FT.isEmpty(vec); } function singleton<T>(x: T): FingerVector<T> { return FT.singleton(x, SizeDict); } function cons<T>(x: T, vec: FingerVector<T>) { return FT.cons(x, vec); } function snoc<T>(x: T, vec: FingerVector<T>) { return FT.snoc(x, vec); } function append<T>(vec1: FingerVector<T>, vec2: FingerVector<T>): FingerVector<T> { return FT.concat(vec1, vec2); } function length<T>(vec: FingerVector<T>) { return FT.measure(vec); } function head<T>(vec: FingerVector<T>): T | undefined { return FT.peekLeft(vec); } function tail<T>(vec: FingerVector<T>): FingerVector<T> | undefined { const res = FT.popLeft(vec); return res && res[1]; } function last<T>(vec: FingerVector<T>): T | undefined { return FT.peekRight(vec); } function init<T>(vec: FingerVector<T>): FingerVector<T> | undefined { const res = FT.popRight(vec); return res && res[1]; } function popLeft<T>(vec: FingerVector<T>): [T, FingerVector<T>] | undefined { return FT.popLeft(vec); } function popRight<T>(vec: FingerVector<T>): [T, FingerVector<T>] | undefined { return FT.popRight(vec); } function elementAt<T>(index: number, vec: FingerVector<T>): T | undefined { return FT.search(vec, x => index < x); } function splitAt<T>(index: number, vec: FingerVector<T>): [FingerVector<T>, FingerVector<T>] { return FT.split(vec, x => index < x); } function take<T>(n: number, vec: FingerVector<T>): FingerVector<T> { return FT.splitLeft(vec, x => n < x); } function drop<T>(n: number, vec: FingerVector<T>): FingerVector<T> { return FT.splitRight(vec, x => n < x); } function map<A, B>(vec: FingerVector<A>, f: (x: A) => B): FingerVector<B> { return FT.map(vec, f, SizeDict); } function foldr<A, B>(vec: FingerVector<A>, initial: B, f: (x: A, acc: B) => B): B { return FT.foldr(vec, initial, f); } function foldl<A, B>(vec: FingerVector<A>, initial: B, f: (acc: B, x: A) => B): B { return FT.foldl(vec, initial, f); } <file_sep> import { OrdComparator } from '../ordering' export { BinHeap, mkHeap, singleton, isEmpty, peek, pop, push, heapify } /* Types */ interface BinHeap<T> { comparator: OrdComparator<T>, data: T[] } /* API Functions */ function isEmpty<T>(heap: BinHeap<T>): boolean { return heap.data.length === 0; } function peek<T>(heap: BinHeap<T>): T | undefined { return heap.data[0]; } function pop<T>(heap: BinHeap<T>): T | undefined { if (heap.data.length <= 1) { return heap.data.pop(); } const retval = heap.data[0]; heap.data[0] = heap.data.pop()!; siftDown(heap); return retval; } function push<T>(item: T, heap: BinHeap<T>) { heap.data.push(item); siftUp(heap); } function heapify<T>(items: T[], comparator: OrdComparator<T>): BinHeap<T> { const heap = { comparator, data: items.slice() }; // Sift all non-leaf nodes. // // Note 1: we start from the bottom, otherwise a min leaf node // would never float to the top. // // Note 2: we could have used `siftUp`, but then `heapify` has a worse // O(n log(2, n)) performance. With `siftDown` it's just O(n). // // See: https://stackoverflow.com/questions/9755721/how-can-building-a-heap-be-on-time-complexity for (let idx = parentIdx(items.length - 1); idx >= 0; --idx) { siftDown(heap, idx); } return heap; } /* Private Implementation Functions */ function siftDown<T>(heap: BinHeap<T>, idx = 0) { const { comparator, data } = heap; while (true) { const lidx = leftIdx(idx); if (lidx >= data.length) { break; } const ridx = rightIdx(idx); const childIdx = ridx < data.length ? comparator(data[lidx], data[ridx]) === 'LT' ? lidx : ridx : lidx; if (comparator(data[childIdx], data[idx]) !== 'LT') { break; } swap(childIdx, idx, data); idx = childIdx; } } function siftUp<T>(heap: BinHeap<T>) { const { comparator, data } = heap; let idx = heap.data.length - 1; while (idx > 0) { const pidx = parentIdx(idx); if (comparator(data[idx], data[pidx]) !== 'LT') { break; } swap(idx, pidx, data); idx = pidx; } } /* Helpers */ function parentIdx(x: number) { return (x - 1) >> 1; } function leftIdx(x: number) { return (x << 1) + 1; } function rightIdx(x: number) { return (x << 1) + 2; } function swap<T>(idx1: number, idx2: number, arr: T[]) { const tmp = arr[idx1]; arr[idx1] = arr[idx2]; arr[idx2] = tmp; } /* Constructors */ function mkHeap<T>(comparator: OrdComparator<T>): BinHeap<T> { return { comparator, data: [] }; } function singleton<T>(item: T, comparator: OrdComparator<T>): BinHeap<T> { return { comparator, data: [ item ] }; } <file_sep> import { test } from 'pietr' import { assert } from 'chai' import { OrdComparator, invert } from '../src/ordering' import { numComp, numOrdCmp, mkRandomArray, replicate } from './utils' export { testHeap } function testHeap<H>( prefix: string, isPersistent: boolean, { mkHeap, singleton, isEmpty, push, pop, peek, heapify }: { mkHeap: (cmp: OrdComparator<number>) => H, singleton: (x: number, cmp: OrdComparator<number>) => H, isEmpty: (heap: H) => boolean, push: (x: number, heap: H) => H, pop: (heap: H) => [number, H] | undefined, peek: (heap: H) => number | undefined, heapify: (items: number[], cmp: OrdComparator<number>) => H } ) { function heapSort(heap: H) { let item; const retval = []; while (!isEmpty(heap)) { [ item, heap ] = pop(heap)!; retval.push(item); } return retval; } test(`${ prefix } :: Heapify`, () => { assert.deepEqual(heapSort(heapify([], numOrdCmp)), []); for (let i = 0; i < 4; ++i) { const arr = mkRandomArray(10 ** i); const sorted = arr.slice().sort(numComp); const heap = heapify(arr, numOrdCmp); assert.deepEqual(heapSort(heap), sorted); } }); test(`${ prefix } :: Push / Pop / Peek`, () => { for (let i = 0; i < 4; ++i) { const arr = mkRandomArray(10 ** i); const sorted = arr.slice().sort(numComp); let heap = singleton(arr[0], numOrdCmp); for (let k = 1; k < arr.length; ++k) { heap = push(arr[k], heap); } let item, peeked; while (sorted.length) { peeked = peek(heap); [ item, heap ] = pop(heap)!; assert.equal(item, sorted.shift()); assert.equal(peeked, item); } assert.isTrue(isEmpty(heap)); assert.equal(pop(heap), undefined); assert.equal(peek(heap), undefined); } }); test(`${ prefix } :: Push / Pop / Peek - max heap`, () => { const ordCmp = invert(numOrdCmp); const numCmp = (x: number, y: number) => numComp(x, y) * -1; for (let i = 0; i < 4; ++i) { const arr = mkRandomArray(10 ** i); const sorted = arr.slice().sort(numCmp); let heap = mkHeap(ordCmp); for (let k = 0; k < arr.length; ++k) { heap = push(arr[k], heap); } let item, peeked; while (sorted.length) { peeked = peek(heap); [ item, heap ] = pop(heap)!; assert.equal(item, sorted.shift()); assert.equal(peeked, item); } assert.isTrue(isEmpty(heap)); assert.equal(peek(heap), undefined); } }); test(`${ prefix } :: Many same`, () => { const arr = mkRandomArray(100, 10); const sorted = arr.slice().sort(); // using heapify assert.deepEqual(heapSort(heapify(arr, numOrdCmp)), sorted); // using push const heap = arr.reduce( (h, x) => push(x, h), mkHeap(numOrdCmp) ); assert.deepEqual(heapSort(heap), sorted); }); test(`${ prefix } :: All same`, () => { const expected = replicate(7, 29); // using heapify assert.deepEqual(heapSort(heapify(expected, numOrdCmp)), expected); // using push const heap = expected.reduce( (h, x) => push(x, h), mkHeap(numOrdCmp) ); assert.deepEqual(heapSort(heap), expected); }); if (!isPersistent) { return; } test(`${ prefix } :: Persistence - push ascending`, () => { const heaps = [ mkHeap(numOrdCmp) ]; const expected = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; for (let i = 0; i < expected.length; ++i) { const last = heaps[heaps.length - 1]; heaps.push(push(expected[i], last)); } for (let i = 0; i < heaps.length; ++i) { const arr = heapSort(heaps[i]); assert.deepEqual(arr, expected.slice(0, i)); } }); test(`${ prefix } :: Persistence - push descending`, () => { const heaps = [ mkHeap(numOrdCmp) ]; const descending = [9, 8, 7, 6, 5, 4, 3, 2, 1, 0]; for (let i = 0; i < descending.length; ++i) { const last = heaps[heaps.length - 1]; heaps.push(push(descending[i], last)); } for (let i = 0; i < heaps.length; ++i) { const arr = heapSort(heaps[i]); assert.deepEqual(arr, descending.slice(0, i).reverse()); } }); test(`${ prefix } :: Persistence - pop`, () => { const expected = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; const heaps = [ heapify(expected, numOrdCmp) ]; for (let i = 0; i < expected.length; ++i) { const last = heaps[heaps.length - 1]; heaps.push(pop(last)![1]); } for (let i = 0; i < heaps.length; ++i) { const arr = heapSort(heaps[i]); assert.deepEqual(arr, expected.slice(i)); } }); } <file_sep> import { OrdComparator } from '../ordering' export { BinomialHeap, BinomialTree, mkHeap, singleton, isEmpty, peek, pop, push, heapify, heapify2 } /* Types */ interface BinomialHeap<T> { comparator: OrdComparator<T>, forest: Forest<T> } interface BinomialTree<T> { item: T, subtrees: BinomialTree<T>[] } type Forest<T> = (BinomialTree<T> | undefined)[] const emptyArray: never[] = []; /* API Functions */ function isEmpty<T>(heap: BinomialHeap<T>): boolean { return !heap.forest.length; } function peek<T>(heap: BinomialHeap<T>): T | undefined { if (!heap.forest.length) { return undefined; } const tree = heap.forest[findMinElementIdx(heap.forest, heap.comparator)]; return tree!.item; } function pop<T>(heap: BinomialHeap<T>): [T, BinomialHeap<T>] | undefined { if (!heap.forest.length) { return undefined; } const minIdx = findMinElementIdx(heap.forest, heap.comparator); const tree = heap.forest[minIdx]!; return [ tree.item, mkHeap2( merge(removeTree(minIdx, heap.forest), tree.subtrees, heap.comparator), heap.comparator ) ]; } function push<T>(item: T, heap: BinomialHeap<T>) { return mkHeap2( merge(heap.forest, [ mkTree(item, emptyArray) ], heap.comparator), heap.comparator ); } function heapify<T>(items: T[], comparator: OrdComparator<T>): BinomialHeap<T> { return items.reduce( (heap, x) => push(x, heap), mkHeap(comparator) ); } function heapify2<T>(items: T[], comparator: OrdComparator<T>): BinomialHeap<T> { const forest = []; for (let i = 1, start = 0; i <= items.length; i <<= 1) { let tree; if (items.length & i) { tree = heapifyBinary(items, start, start + i, comparator); start += i; } else { tree = undefined; } forest.push(tree); } return mkHeap2(forest, comparator); } /* Private Implementation Functions */ function removeTree<T>(idx: number, forest: Forest<T>) { const prev = prevTreeIndex(idx, forest); const isLastTree = forest.length === idx + 1; if (isLastTree) { return prev === -1 ? emptyArray : forest.slice(0, prev + 1); } const retval = forest.slice(); retval[idx] = undefined; return retval; } function prevTreeIndex<T>(stop: number, forest: Forest<T>) { let i = 0; let prev = -1; for (i = 0; i < forest.length && i < stop; ++i) { if (forest[i]) { prev = i; } } return prev; } function merge<T>(tree1: BinomialTree<T>[], tree2: BinomialTree<T>[], cmp: OrdComparator<T>): BinomialTree<T>[]; function merge<T>(tree1: Forest<T>, tree2: Forest<T>, cmp: OrdComparator<T>): Forest<T>; function merge<T>(tree1: Forest<T>, tree2: Forest<T>, cmp: OrdComparator<T>): Forest<T> { if (!tree1.length) { return tree2; } if (!tree2.length) { return tree1; } const result = []; let carry: BinomialTree<T> | undefined; for (let i = 0, len = Math.max(tree1.length, tree2.length); i < len; ++i) { const merged = mergeTree(tree1[i], tree2[i], cmp); if (willCarry(tree1[i], tree2[i])) { result.push(carry); carry = merged; continue; } const merged2 = mergeTree(merged, carry, cmp); if (willCarry(merged, carry)) { result.push(undefined); carry = merged2; continue; } carry = undefined; result.push(merged2); } if (carry) { result.push(carry); } return result; } function willCarry<T>(tree1: BinomialTree<T> | undefined, tree2: BinomialTree<T> | undefined) { return !!(tree1 && tree2); } function mergeTree<T>( tree1: BinomialTree<T> | undefined, tree2: BinomialTree<T> | undefined, cmp: OrdComparator<T> ): BinomialTree<T> | undefined { if (!tree1) { return tree2; } if (!tree2) { return tree1; } return cmp(tree1.item, tree2.item) !== 'GT' ? appendSubtree(tree1, tree2) : appendSubtree(tree2, tree1); } function appendSubtree<T>(parent: BinomialTree<T>, toAppend: BinomialTree<T>) { return mkTree( parent.item, parent.subtrees.concat([ toAppend ]) ); } function findMinElementIdx<T>(forest: Forest<T>, comparator: OrdComparator<T>) { if (!forest.length) throw new Error('Broken heap'); return forest.reduce( (currIdx, x, newIdx, forest) => { const tree = forest[currIdx]; return !tree || tree && x && comparator(x.item, tree.item) === 'LT' ? newIdx : currIdx; }, 0 ); } function heapifyBinary<T>(items: T[], start: number, end: number, comparator: OrdComparator<T>): BinomialTree<T> { const subtrees = []; const len = end - start; for (let i = 1, offset = start; i < len; i <<= 1) { subtrees.push(heapifyBinary(items, offset, offset + i, comparator)); offset += i; } return siftDown(items[end - 1], subtrees, comparator); } function siftDown<T>(item: T, subtrees: BinomialTree<T>[], comparator: OrdComparator<T>) { if (!subtrees.length) { return mkTree(item, emptyArray); } const minIdx = findMinElementIdx(subtrees, comparator); if (comparator(item, subtrees[minIdx].item) !== 'GT') { return mkTree(item, subtrees); } // we can mutate them as they are not used anywhere else, but.. const newSubtrees = subtrees.slice(); newSubtrees[minIdx] = siftDown(item, subtrees[minIdx].subtrees, comparator); return mkTree(subtrees[minIdx].item, newSubtrees); } /* Constructors */ function mkHeap<T>(comparator: OrdComparator<T>): BinomialHeap<T> { return { comparator, forest: emptyArray }; } function singleton<T>(item: T, comparator: OrdComparator<T>): BinomialHeap<T> { return mkHeap2([ mkTree(item, emptyArray) ], comparator); } function mkHeap2<T>(forest: Forest<T>, comparator: OrdComparator<T>): BinomialHeap<T> { return { comparator, forest }; } function mkTree<T>(item: T, subtrees: BinomialTree<T>[]): BinomialTree<T> { return { item, subtrees }; } <file_sep> export { /* (private) Implementation types */ FT, FT_Empty, FT_Single, FT_Deep, One, Two, Three, Four, Digit, SpineNode, Split, /* Public API */ FingerTree, MeasureMonoid, newTree as mkTree, singleton, mkMeasureMonoidDict, isEmpty, cons, snoc, peekLeft, peekRight, popLeft, popRight, concat, split, splitWithItem, search, splitLeft, splitRight, measure, map, foldr, foldl } /* Types */ interface FT_Empty { kind: 'ft_empty' } interface FT_Single<T> { kind: 'ft_single', value: T } interface FT_Deep<T, V> { kind: 'ft_deep', v: V, left: Digit<T, V>, spine: FT<SpineNode<T, V>, V>, right: Digit<T, V> } type FT<T, V> = FT_Empty | FT_Single<T> | FT_Deep<T, V> interface One<T> { kind: 'one', value: T } interface Two<T, V> { kind: 'two', v: V | undefined, value: T, value2: T } interface Three<T, V> { kind: 'three', v: V | undefined, value: T, value2: T, value3: T } interface Four<T, V> { kind: 'four', v: V | undefined, value: T, value2: T, value3: T, value4: T } type Digit<T, V> = One<T> | Two<T, V> | Three<T, V> | Four<T, V> type SpineNode<T, V> = Two<T, V> | Three<T, V> interface MeasureMonoid<T, V> { measure: (x: T) => V, empty: V, append: (x: V, y: V) => V, nodeMM: MeasureMonoid<SpineNode<T, V>, V> | undefined } interface FingerTree<T, V> { mmDict: MeasureMonoid<T, V>, tree: FT<T, V> } interface Split<T, F> { left: F, item: T, right: F } const FT_Empty: FT_Empty = { kind: 'ft_empty' } /* API */ function mkMeasureMonoidDict<T, V>(measure: (x: T) => V, empty: V, append: (x: V, y: V) => V): MeasureMonoid<T, V> { return { measure, empty, append, nodeMM: undefined }; } function newTree<T, V>(mm: MeasureMonoid<T, V>) { return mkTree(FT_Empty, mm); } function singleton<T, V>(item: T, mm: MeasureMonoid<T, V>) { return mkTree(mkSingle(item), mm); } function isEmpty<T, V>(ft: FingerTree<T, V>) { return ft.tree.kind === 'ft_empty'; } function cons<T, V>(value: T, ft: FingerTree<T, V>) { return mkTree(consWorker(value, ft.tree, ft.mmDict), ft.mmDict); } function snoc<T, V>(value: T, ft: FingerTree<T, V>) { return mkTree(snocWorker(value, ft.tree, ft.mmDict), ft.mmDict); } function peekLeft<T, V>(ft: FingerTree<T, V>): T | undefined { switch (ft.tree.kind) { case 'ft_empty': return undefined; case 'ft_single': return ft.tree.value; case 'ft_deep': return peekLeftDigit(ft.tree.left); } } function peekRight<T, V>(ft: FingerTree<T, V>): T | undefined { switch (ft.tree.kind) { case 'ft_empty': return undefined; case 'ft_single': return ft.tree.value; case 'ft_deep': return peekRightDigit(ft.tree.right); } } function popLeft<T, V>(ft: FingerTree<T, V>): [T, FingerTree<T, V>] | undefined { return genericPop(ft, popLeftWorker); } function popRight<T, V>(ft: FingerTree<T, V>): [T, FingerTree<T, V>] | undefined { return genericPop(ft, popRightWorker); } function concat<T, V>(ft1: FingerTree<T, V>, ft2: FingerTree<T, V>) { return mkTree(concatWorker(ft1.tree, ft2.tree, ft1.mmDict), ft1.mmDict); } function split<T, V>(ft: FingerTree<T, V>, pred: (v: V) => boolean): [FingerTree<T, V>, FingerTree<T, V>] { if (ft.tree.kind === 'ft_empty') { return [ ft, ft ]; } if (!pred(measureTree(ft.tree, ft.mmDict))) { return [ ft, mkTree(FT_Empty, ft.mmDict) ]; } const split = splitWorker(ft.tree, ft.mmDict.empty, pred, ft.mmDict); return [ mkTree(split.left, ft.mmDict), mkTree(consWorker(split.item, split.right, ft.mmDict), ft.mmDict) ]; } function splitWithItem<T, V>(ft: FingerTree<T, V>, pred: (v: V) => boolean): [FingerTree<T, V>, T, FingerTree<T, V>] | undefined { if (ft.tree.kind === 'ft_empty') { return undefined; } if (!pred(measureTree(ft.tree, ft.mmDict))) { return undefined; } const split = splitWorker(ft.tree, ft.mmDict.empty, pred, ft.mmDict); return [ mkTree(split.left, ft.mmDict), split.item, mkTree(split.right, ft.mmDict) ]; } /* Split specialisations */ // `search`, `splitLeft` and `splitRight` are all derivates of `split`, however, // they have their own specialised implementations for performance reasons. function search<T, V>(ft: FingerTree<T, V>, pred: (v: V) => boolean): T | undefined { if (ft.tree.kind === 'ft_empty') { return undefined; } if (!pred(measureTree(ft.tree, ft.mmDict))) { return undefined; } return searchWorker(ft.tree, ft.mmDict.empty, pred, ft.mmDict)[1]; } function splitLeft<T, V>(ft: FingerTree<T, V>, pred: (v: V) => boolean): FingerTree<T, V> { if (ft.tree.kind === 'ft_empty') { return ft; } if (!pred(measureTree(ft.tree, ft.mmDict))) { return ft; } const split = splitLeftWorker(ft.tree, ft.mmDict.empty, pred, ft.mmDict); return mkTree(split[2], ft.mmDict); } function splitRight<T, V>(ft: FingerTree<T, V>, pred: (v: V) => boolean): FingerTree<T, V> { if (ft.tree.kind === 'ft_empty') { return ft; } if (!pred(measureTree(ft.tree, ft.mmDict))) { return mkTree(FT_Empty, ft.mmDict); } const split = splitRightWorker(ft.tree, ft.mmDict.empty, pred, ft.mmDict); return mkTree(consWorker(split[1], split[2], ft.mmDict), ft.mmDict); } function measure<T, V>(ft: FingerTree<T, V>) { return measureTree(ft.tree, ft.mmDict); } function map<A, B, V1, V2>(ft: FingerTree<A, V1>, f: (x: A) => B, mm: MeasureMonoid<B, V2>): FingerTree<B, V2> { return mkTree(mapWorker(ft.tree, f, mm), mm); } function foldr<A, B, V>(ft: FingerTree<A, V>, initial: B, f: (x: A, acc: B) => B): B { return foldrWorker(ft.tree, initial, f); } function foldl<A, B, V>(ft: FingerTree<A, V>, initial: B, f: (acc: B, x: A) => B): B { return foldlWorker(ft.tree, initial, f); } /* Workers */ function consWorker<T, V>(value: T, tree: FT<T, V>, mm: MeasureMonoid<T, V>): FT<T, V> { switch (tree.kind) { case 'ft_empty': return mkSingle(value); case 'ft_single': return mkDeep(mkOne(value), FT_Empty, mkOne(tree.value), mm); case 'ft_deep': { if (tree.left.kind !== 'four') { return mkDeep(unshiftLeft(value, tree.left), tree.spine, tree.right, mm); } return mkDeep( mkTwo(value, peekLeftDigit(tree.left)), consWorker(slice3Right(tree.left), tree.spine, getNodeMM(mm)), tree.right, mm ); } } } function snocWorker<T, V>(value: T, tree: FT<T, V>, mm: MeasureMonoid<T, V>): FT<T, V> { switch (tree.kind) { case 'ft_empty': return mkSingle(value); case 'ft_single': return mkDeep(mkOne(tree.value), FT_Empty, mkOne(value), mm); case 'ft_deep': { if (tree.right.kind !== 'four') { return mkDeep(tree.left, tree.spine, unshiftRight(value, tree.right), mm); } return mkDeep( tree.left, snocWorker(slice3Left(tree.right), tree.spine, getNodeMM(mm)), mkTwo(peekRightDigit(tree.right), value), mm ); } } } function genericPop<T, V>( ft: FingerTree<T, V>, helper: (tree: FT_Single<T> | FT_Deep<T, V>, mm: MeasureMonoid<T, V>) => [T, FT<T, V>] ): [T, FingerTree<T, V>] | undefined { if (ft.tree.kind === 'ft_empty') { return undefined; } const [item, tree] = helper(ft.tree, ft.mmDict); return [ item, mkTree(tree, ft.mmDict) ]; } function popLeftWorker<T, V>(tree: FT_Single<T> | FT_Deep<T, V>, mm: MeasureMonoid<T, V>): [T, FT<T, V>] { switch (tree.kind) { case 'ft_single': return [ tree.value, FT_Empty ]; case 'ft_deep': { const item = peekLeftDigit(tree.left); if (tree.left.kind !== 'one') { const newTree = mkDeep(shiftLeft(tree.left), tree.spine, tree.right, mm); return [ item, newTree ]; } if (tree.spine.kind === 'ft_empty') { const newTree = digitToTree(tree.right, mm); return [ item, newTree ]; } const [left, spine] = popLeftWorker(tree.spine, getNodeMM(mm)); return [ item, mkDeep(left, spine, tree.right, mm) ]; } } } function popRightWorker<T, V>(tree: FT_Single<T> | FT_Deep<T, V>, mm: MeasureMonoid<T, V>): [T, FT<T, V>] { switch (tree.kind) { case 'ft_single': return [ tree.value, FT_Empty ]; case 'ft_deep': { const item = peekRightDigit(tree.right); if (tree.right.kind !== 'one') { const newTree = mkDeep(tree.left, tree.spine, shiftRight(tree.right), mm); return [ item, newTree ]; } if (tree.spine.kind === 'ft_empty') { const newTree = digitToTree(tree.left, mm); return [ item, newTree ]; } const [right, spine] = popRightWorker(tree.spine, getNodeMM(mm)); return [ item, mkDeep(tree.left, spine, right, mm) ]; } } } function concatWorker<T, V>(t1: FT<T, V>, t2: FT<T, V>, mm: MeasureMonoid<T, V>) { if (t1.kind === 'ft_empty') return t2; if (t2.kind === 'ft_empty') return t1; if (t1.kind === 'ft_single') return consWorker(t1.value, t2, mm); if (t2.kind === 'ft_single') return snocWorker(t2.value, t1, mm); const newSpine = concatGo(t1.spine, concatDigits(t1.right, t2.left), t2.spine, getNodeMM(mm)); return mkDeep(t1.left, newSpine, t2.right, mm); } function concatGo<T, V>(t1: FT<T, V>, extra: T[], t2: FT<T, V>, mm: MeasureMonoid<T, V>): FT<T, V> { if (t1.kind === 'ft_empty') { return extra.reduceRight((acc, x) => consWorker(x, acc, mm), t2); } if (t2.kind === 'ft_empty') { return extra.reduce((acc, x) => snocWorker(x, acc, mm), t1 as FT<T, V>); // TYH } if (t1.kind === 'ft_single') { return consWorker(t1.value, extra.reduceRight((acc, x) => consWorker(x, acc, mm), t2 as FT<T, V>), mm); // TYH } if (t2.kind === 'ft_single') { return snocWorker(t2.value, extra.reduce((acc, x) => snocWorker(x, acc, mm), t1 as FT<T, V>), mm); // TYH } // INFO: this can be unrolled, but it's quite long, unreadble and ugly const left = digitToList(t1.right); const right = digitToList(t2.left); const newSpine = concatGo(t1.spine, mkNodes(left.concat(extra, right)), t2.spine, getNodeMM(mm)); return mkDeep(t1.left, newSpine, t2.right, mm); } function mkNodes<T, V>(xs: T[]): SpineNode<T, V>[] { let offset = 0; const retval: SpineNode<T, V>[] = []; while (true) { if (xs.length > offset + 4) { retval.push(mkThree(xs[offset], xs[offset + 1], xs[offset + 2])); offset += 3; continue; } if (xs.length === offset + 2) { retval.push(mkTwo(xs[offset], xs[offset + 1])); } else if (xs.length === offset + 3) { retval.push(mkThree(xs[offset], xs[offset + 1], xs[offset + 2])); } else if (xs.length === offset + 4) { retval.push(mkTwo(xs[offset], xs[offset + 1])); retval.push(mkTwo(xs[offset + 2], xs[offset + 3])); } return retval; } } function concatDigits<T, V>(d1: Digit<T, V>, d2: Digit<T, V>): SpineNode<T, V>[] { switch (d1.kind) { case 'one': { switch (d2.kind) { case 'one': return [ mkTwo(d1.value, d2.value) ]; case 'two': return [ mkThree(d1.value, d2.value, d2.value2) ]; case 'three': return [ mkTwo(d1.value, d2.value), mkTwo(d2.value2, d2.value3) ]; case 'four': return [ mkThree(d1.value, d2.value, d2.value2), mkTwo(d2.value3, d2.value4) ]; } return assertNever(d2); } case 'two': { // TODO: can share more: 2-3, 2-4 switch (d2.kind) { case 'one': return [ mkThree(d1.value, d1.value2, d2.value) ]; case 'two': return [ d1, d2 ]; case 'three': return [ mkThree(d1.value, d1.value2, d2.value), mkTwo(d2.value2, d2.value3) ]; case 'four': return [ mkThree(d1.value, d1.value2, d2.value), mkThree(d2.value2, d2.value3, d2.value4) ]; } return assertNever(d2); } case 'three': { switch (d2.kind) { case 'one': return [ mkTwo(d1.value, d1.value2), mkTwo(d1.value3, d2.value) ]; case 'two': return [ d1, d2 ]; case 'three': return [ d1, d2 ]; case 'four': return [ d1, mkTwo(d2.value, d2.value2), mkTwo(d2.value3, d2.value4) ]; } return assertNever(d2); } case 'four': { // TODO: can share more: 4-2, 4-3 switch (d2.kind) { case 'one': return [ mkThree(d1.value, d1.value2, d1.value3), mkTwo(d1.value4, d2.value) ]; case 'two': return [ mkThree(d1.value, d1.value2, d1.value3), mkThree(d1.value4, d2.value, d2.value2) ]; case 'three': return [ mkThree(d1.value, d1.value2, d1.value3), mkTwo(d1.value4, d2.value), mkTwo(d2.value2, d2.value3) ]; case 'four': return [ mkThree(d1.value, d1.value2, d1.value3), mkThree(d1.value4, d2.value, d2.value2), mkTwo(d2.value3, d2.value4) ]; } return assertNever(d2); } } } function splitWorker<T, V>(tree: FT_Single<T> | FT_Deep<T, V>, v: V, p: (v: V) => boolean, mm: MeasureMonoid<T, V>): Split<T, FT<T, V>> { if (tree.kind === 'ft_single') { return mkSplit(FT_Empty, tree.value, FT_Empty); } const vl = mm.append(v, measureDigit(tree.left, mm)); if (p(vl)) { const split = splitDigit(tree.left, v, p, mm); const left = split.left ? digitToTree(split.left, mm) : FT_Empty return mkSplit(left, split.item, mkDeepL(split.right, tree.spine, tree.right, mm)); } const vlm = mm.append(vl, measureTree(tree.spine, getNodeMM(mm))); if (p(vlm)) { if (tree.spine.kind === 'ft_empty') { throw new Error('Bad Measure/Monoid'); } const spineSplit = splitWorker(tree.spine, vl, p, getNodeMM(mm)); const vli = mm.append(vl, measureTree(spineSplit.left, getNodeMM(mm))); const itemSplit = splitDigit(spineSplit.item, vli, p, mm); return mkSplit<T, FT<T, V>>( mkDeepR(tree.left, spineSplit.left, itemSplit.left, mm), itemSplit.item, mkDeepL(itemSplit.right, spineSplit.right, tree.right, mm) ); } const split = splitDigit(tree.right, vlm, p, mm); const right = split.right ? digitToTree(split.right, mm) : FT_Empty; return mkSplit(mkDeepR(tree.left, tree.spine, split.left, mm), split.item, right); } function splitDigit<T, V>( d: Digit<T, V>, v: V, p: (v: V) => boolean, mm: MeasureMonoid<T, V> ): Split<T, One<T> | Two<T, V> | Three<T, V> | undefined> { switch (d.kind) { case 'one': return mkSplit(undefined, d.value, undefined); case 'two': { const v1 = mm.append(v, mm.measure(d.value)); if (p(v1)) { return mkSplit(undefined, d.value, mkOne(d.value2)); } return mkSplit(mkOne(d.value), d.value2, undefined); } case 'three': { const v1 = mm.append(v, mm.measure(d.value)); if (p(v1)) { return mkSplit(undefined, d.value, mkTwo<T, V>(d.value2, d.value3)); //TYH } const v12 = mm.append(v1, mm.measure(d.value2)); if (p(v12)) { return mkSplit(mkOne(d.value), d.value2, mkOne(d.value3)); } return mkSplit(mkTwo(d.value, d.value2), d.value3, undefined); } case 'four': { const v1 = mm.append(v, mm.measure(d.value)); if (p(v1)) { return mkSplit(undefined, d.value, mkThree<T, V>(d.value2, d.value3, d.value4)); //TYH } const v12 = mm.append(v1, mm.measure(d.value2)); if (p(v12)) { return mkSplit<T, One<T>|Two<T, V>>(mkOne(d.value), d.value2, mkTwo(d.value3, d.value4)); //TYH } const v123 = mm.append(v12, mm.measure(d.value3)); if (p(v123)) { return mkSplit<T, One<T>|Two<T, V>>(mkTwo(d.value, d.value2), d.value3, mkOne(d.value4)); //TYH } return mkSplit(mkThree(d.value, d.value2, d.value3), d.value4, undefined); } } } /* Split specialisations */ function searchWorker<T, V>(tree: FT_Single<T> | FT_Deep<T, V>, v: V, p: (v: V) => boolean, mm: MeasureMonoid<T, V>): [V, T] { if (tree.kind === 'ft_single') { return [ v, tree.value ]; } const vl = mm.append(v, measureDigit(tree.left, mm)); if (p(vl)) { return searchDigit(tree.left, v, p, mm); } const vlm = mm.append(vl, measureTree(tree.spine, getNodeMM(mm))); if (p(vlm)) { if (tree.spine.kind === 'ft_empty') { throw new Error('Bad Measure/Monoid'); } const [vlTree, spineDigit] = searchWorker(tree.spine, vl, p, getNodeMM(mm)); return searchDigit(spineDigit, vlTree, p, mm); } return searchDigit(tree.right, vlm, p, mm); } function searchDigit<T, V>(d: Digit<T, V>, v: V, p: (v: V) => boolean, mm: MeasureMonoid<T, V>): [V, T] { switch (d.kind) { case 'one': return [v, d.value]; case 'two': { const v1 = mm.append(v, mm.measure(d.value)); if (p(v1)) { return [v, d.value]; } return [v1, d.value2]; } case 'three': { const v1 = mm.append(v, mm.measure(d.value)); if (p(v1)) { return [v, d.value]; } const v12 = mm.append(v1, mm.measure(d.value2)); if (p(v12)) { return [v1, d.value2]; } return [v12, d.value3]; } case 'four': { const v1 = mm.append(v, mm.measure(d.value)); if (p(v1)) { return [v, d.value]; } const v12 = mm.append(v1, mm.measure(d.value2)); if (p(v12)) { return [v1, d.value2]; } const v123 = mm.append(v12, mm.measure(d.value3)); if (p(v123)) { return [v12, d.value3]; } return [v123, d.value4]; } } } function splitLeftWorker<T, V>( tree: FT_Single<T> | FT_Deep<T, V>, v: V, p: (v: V) => boolean, mm: MeasureMonoid<T, V> ): [V, T, FT<T, V>] { if (tree.kind === 'ft_single') { return [v, tree.value, FT_Empty]; } const vl = mm.append(v, measureDigit(tree.left, mm)); if (p(vl)) { const split = splitDigitLeft(tree.left, v, p, mm); const left = split[2] ? digitToTree(split[2]!, mm) : FT_Empty; // TYH return [ split[0], split[1], left ]; } const vlm = mm.append(vl, measureTree(tree.spine, getNodeMM(mm))); if (p(vlm)) { if (tree.spine.kind === 'ft_empty') { throw new Error('Bad Measure/Monoid'); } const spineSplit = splitLeftWorker(tree.spine, vl, p, getNodeMM(mm)); const itemSplit = splitDigitLeft(spineSplit[1], spineSplit[0], p, mm); return [itemSplit[0], itemSplit[1], mkDeepR(tree.left, spineSplit[2], itemSplit[2], mm)]; } const split = splitDigitLeft(tree.right, vlm, p, mm); return [ split[0], split[1], mkDeepR(tree.left, tree.spine, split[2], mm) ]; } function splitDigitLeft<T, V>( d: Digit<T, V>, v: V, p: (v: V) => boolean, mm: MeasureMonoid<T, V> ): [V, T, One<T> | Two<T, V> | Three<T, V> | undefined] { switch (d.kind) { case 'one': return [v, d.value, undefined]; case 'two': { const v1 = mm.append(v, mm.measure(d.value)); if (p(v1)) { return [v, d.value, undefined]; } return [v1, d.value2, mkOne(d.value)]; } case 'three': { const v1 = mm.append(v, mm.measure(d.value)); if (p(v1)) { return [v, d.value, undefined]; } const v12 = mm.append(v1, mm.measure(d.value2)); if (p(v12)) { return [v1, d.value2, mkOne(d.value)] } return [v12, d.value3, mkTwo(d.value, d.value2)]; } case 'four': { const v1 = mm.append(v, mm.measure(d.value)); if (p(v1)) { return [v, d.value, undefined]; } const v12 = mm.append(v1, mm.measure(d.value2)); if (p(v12)) { return [v1, d.value2, mkOne(d.value)]; } const v123 = mm.append(v12, mm.measure(d.value3)); if (p(v123)) { return [v12, d.value3, mkTwo(d.value, d.value2)]; } return [v123, d.value4, mkThree(d.value, d.value2, d.value3)]; } } } function splitRightWorker<T, V>( tree: FT_Single<T> | FT_Deep<T, V>, v: V, p: (v: V) => boolean, mm: MeasureMonoid<T, V> ): [V, T, FT<T, V>] { if (tree.kind === 'ft_single') { return [v, tree.value, FT_Empty]; } const vl = mm.append(v, measureDigit(tree.left, mm)); if (p(vl)) { const split = splitDigitRight(tree.left, v, p, mm); return [ split[0], split[1], mkDeepL(split[2], tree.spine, tree.right, mm) ]; } const vlm = mm.append(vl, measureTree(tree.spine, getNodeMM(mm))); if (p(vlm)) { if (tree.spine.kind === 'ft_empty') { throw new Error('Bad Measure/Monoid'); } const spineSplit = splitRightWorker(tree.spine, vl, p, getNodeMM(mm)); const itemSplit = splitDigitRight(spineSplit[1], spineSplit[0], p, mm); return [itemSplit[0], itemSplit[1], mkDeepL(itemSplit[2], spineSplit[2], tree.right, mm)]; } const split = splitDigitRight(tree.right, vlm, p, mm); const right = split[2] ? digitToTree(split[2]!, mm) : FT_Empty; // TYH return [split[0], split[1], right]; } function splitDigitRight<T, V>( d: Digit<T, V>, v: V, p: (v: V) => boolean, mm: MeasureMonoid<T, V> ): [V, T, One<T> | Two<T, V> | Three<T, V> | undefined] { switch (d.kind) { case 'one': return [v, d.value, undefined]; case 'two': { const v1 = mm.append(v, mm.measure(d.value)); if (p(v1)) { return [v, d.value, mkOne(d.value2)]; } return [v1, d.value2, undefined]; } case 'three': { const v1 = mm.append(v, mm.measure(d.value)); if (p(v1)) { return [v, d.value, mkTwo(d.value2, d.value3)]; } const v12 = mm.append(v1, mm.measure(d.value2)); if (p(v12)) { return [v1, d.value2, mkOne(d.value3)] } return [v12, d.value3, undefined]; } case 'four': { const v1 = mm.append(v, mm.measure(d.value)); if (p(v1)) { return [v, d.value, mkThree(d.value2, d.value3, d.value4)]; } const v12 = mm.append(v1, mm.measure(d.value2)); if (p(v12)) { return [v1, d.value2, mkTwo(d.value3, d.value4)]; } const v123 = mm.append(v12, mm.measure(d.value3)); if (p(v123)) { return [v12, d.value3, mkOne(d.value4)]; } return [v123, d.value4, undefined]; } } } /* Mapping & Folding */ function mapWorker<A, B, V1, V2>(tree: FT<A, V1>, f: (x: A) => B, mm: MeasureMonoid<B, V2>): FT<B, V2> { switch (tree.kind) { case 'ft_empty': return FT_Empty; case 'ft_single': return mkSingle(f(tree.value)); case 'ft_deep': { return mkDeep( mapDigit(tree.left, f), mapWorker(tree.spine, d => mapDigit(d, f) as SpineNode<B, V2>, getNodeMM(mm)), mapDigit(tree.right, f), mm ); } } } function mapDigit<A, B, V1, V2>(d: Digit<A, V1>, f: (x: A) => B): Digit<B, V2> { switch (d.kind) { case 'one': return mkOne(f(d.value)); case 'two': return mkTwo(f(d.value), f(d.value2)); case 'three': return mkThree(f(d.value), f(d.value2), f(d.value3)); case 'four': return mkFour(f(d.value), f(d.value2), f(d.value3), f(d.value4)); } } function foldrWorker<A, B, V>(tree: FT<A, V>, init: B, f: (x: A, acc: B) => B): B { switch (tree.kind) { case 'ft_empty': return init; case 'ft_single': return f(tree.value, init); case 'ft_deep': { const r = foldrDigit(tree.right, init, f); const m = foldrWorker(tree.spine, r, (d, acc) => foldrDigit(d, acc, f)); return foldrDigit(tree.left, m, f); } } } function foldrDigit<A, B, V>(d: Digit<A, V>, init: B, f: (x: A, acc: B) => B): B { switch (d.kind) { case 'one': return f(d.value, init); case 'two': return f(d.value, f(d.value2, init)); case 'three': return f(d.value, f(d.value2, f(d.value3, init))); case 'four': return f(d.value, f(d.value2, f(d.value3, f(d.value4, init)))); } } function foldlWorker<A, B, V>(tree: FT<A, V>, init: B, f: (acc: B, x: A) => B): B { switch (tree.kind) { case 'ft_empty': return init; case 'ft_single': return f(init, tree.value); case 'ft_deep': { const l = foldlDigit(tree.left, init, f); const m = foldlWorker(tree.spine, l, (acc, d) => foldlDigit(d, acc, f)); return foldlDigit(tree.right, m, f); } } } function foldlDigit<A, B, V>(d: Digit<A, V>, init: B, f: (acc: B, x: A) => B): B { switch (d.kind) { case 'one': return f(init, d.value); case 'two': return f(f(init, d.value), d.value2); case 'three': return f(f(f(init, d.value), d.value2), d.value3); case 'four': return f(f(f(f(init, d.value), d.value2), d.value3), d.value4); } } /* Helpers */ function peekLeftDigit<T, V>(d: Digit<T, V>) { return d.value; } function shiftLeft<T, V>(d: Two<T, V> | Three<T, V> | Four<T, V>) { switch (d.kind) { case 'two': return mkOne(d.value2); case 'three': return mkTwo<T, V>(d.value2, d.value3); case 'four': return mkThree<T, V>(d.value2, d.value3, d.value4); } } function unshiftLeft<T, V>(value: T, d: One<T> | Two<T, V> | Three<T, V>) { switch (d.kind) { case 'one': return mkTwo<T, V>(value, d.value); case 'two': return mkThree<T, V>(value, d.value, d.value2); case 'three': return mkFour<T, V>(value, d.value, d.value2, d.value3); } } function slice3Left<T, V>(d: Four<T, V>) { return mkThree<T, V>(d.value, d.value2, d.value3); } function peekRightDigit<T, V>(d: Digit<T, V>) { switch (d.kind) { case 'one': return d.value; case 'two': return d.value2; case 'three': return d.value3; case 'four': return d.value4; } } function shiftRight<T, V>(d: Two<T, V> | Three<T, V> | Four<T, V>) { switch (d.kind) { case 'two': return mkOne(d.value); case 'three': return mkTwo<T, V>(d.value, d.value2); case 'four': return mkThree<T, V>(d.value, d.value2, d.value3); } } function unshiftRight<T, V>(value: T, d: One<T> | Two<T, V> | Three<T, V>) { switch (d.kind) { case 'one': return mkTwo<T, V>(d.value, value); case 'two': return mkThree<T, V>(d.value, d.value2, value); case 'three': return mkFour<T, V>(d.value, d.value2, d.value3, value); } } function slice3Right<T, V>(d: Four<T, V>) { return mkThree<T, V>(d.value2, d.value3, d.value4); } function digitToTree<T, V>(d: Digit<T, V>, mm: MeasureMonoid<T, V>): FT_Single<T> | FT_Deep<T, V> { switch (d.kind) { case 'one': return mkSingle(d.value); case 'two': return mkDeep(mkOne(d.value), FT_Empty, mkOne(d.value2), mm); case 'three': return mkDeep(mkTwo(d.value, d.value2), FT_Empty, mkOne(d.value3), mm); case 'four': return mkDeep(mkTwo(d.value, d.value2), FT_Empty, mkTwo(d.value3, d.value4), mm); } } function digitToList<T, V>(d: Digit<T, V>) { switch (d.kind) { case 'one': return [ d.value ]; case 'two': return [ d.value, d.value2 ]; case 'three': return [ d.value, d.value2, d.value3 ]; case 'four': return [ d.value, d.value2, d.value3, d.value4 ]; } } /* Measurement */ function measureDigit<T, V>(d: Digit<T, V>, mmDict: MeasureMonoid<T, V>): V { if (d.kind === 'one') { return mmDict.measure(d.value); } if (d.v === undefined) { d.v = measureDigitWorker(d, mmDict); } return d.v; } function measureDigitWorker<T, V>(d: Two<T, V> | Three<T, V> | Four<T, V>, mm: MeasureMonoid<T, V>): V { switch (d.kind) { case 'two': return mm.append(mm.measure(d.value), mm.measure(d.value2)); case 'three': return mm.append(mm.append(mm.measure(d.value), mm.measure(d.value2)), mm.measure(d.value3)); case 'four': return mm.append(mm.append(mm.append(mm.measure(d.value), mm.measure(d.value2)), mm.measure(d.value3)), mm.measure(d.value4)); } } function measureTree<T, V>(tree: FT<T, V>, mm: MeasureMonoid<T, V>) { switch (tree.kind) { case 'ft_empty': return mm.empty; case 'ft_single': return mm.measure(tree.value); case 'ft_deep': return tree.v; } } function getNodeMM<T, V>(mm: MeasureMonoid<T, V>) { return mm.nodeMM || (mm.nodeMM = mkMeasureMonoidDict(value => measureDigit(value, mm), mm.empty, mm.append)); } /* Constructors */ function mkOne<T>(value: T): One<T> { return { kind: 'one', value }; } function mkTwo<T, V>(value: T, value2: T): Two<T, V> { return { kind: 'two', v: undefined, value, value2 }; } function mkThree<T, V>(value: T, value2: T, value3: T): Three<T, V> { return { kind: 'three', v: undefined, value, value2, value3 }; } function mkFour<T, V>(value: T, value2: T, value3: T, value4: T): Four<T, V> { return { kind: 'four', v: undefined, value, value2, value3, value4 }; } function mkTree<T, V>(tree: FT<T, V>, mm: MeasureMonoid<T, V>): FingerTree<T, V> { return { tree, mmDict: mm }; } function mkSplit<T, F>(left: F, item: T, right: F): Split<T, F> { return { left, item, right }; } function mkSingle<T>(value: T): FT_Single<T> { return { kind: 'ft_single', value }; } function mkDeep<T, V>(left: Digit<T, V>, spine: FT<SpineNode<T, V>, V>, right: Digit<T, V>, mm: MeasureMonoid<T, V>): FT_Deep<T, V> { const v = mm.append( mm.append(measureDigit(left, mm), measureTree(spine, getNodeMM(mm))), measureDigit(right, mm) ); return { kind: 'ft_deep', v, left, spine, right }; } function mkDeepL<T, V>( left: Digit<T, V> | undefined, spine: FT<SpineNode<T, V>, V>, right: Digit<T, V>, mm: MeasureMonoid<T, V> ): FT_Single<T> | FT_Deep<T, V> { if (!left) { if (spine.kind === 'ft_empty') { return digitToTree(right, mm); } const [newLeft, newSpine] = popLeftWorker(spine, getNodeMM(mm)); return mkDeep(newLeft, newSpine, right, mm); } return mkDeep(left, spine, right, mm); } function mkDeepR<T, V>( left: Digit<T, V>, spine: FT<SpineNode<T, V>, V>, right: Digit<T, V> | undefined, mm: MeasureMonoid<T, V> ): FT_Single<T> | FT_Deep<T, V> { if (!right) { if (spine.kind === 'ft_empty') { return digitToTree(left, mm); } const [newRight, newSpine] = popRightWorker(spine, getNodeMM(mm)); return mkDeep(left, newSpine, newRight, mm); } return mkDeep(left, spine, right, mm); } /* Utilities */ function assertNever(x: never): never { throw new Error(`Not a never: ${ x }`); } <file_sep> import { testHeap } from '../heap_suite' import { PairingHeap } from '../../src/persistent/pairing_heap' import * as PairingHeapDict from '../../src/persistent/pairing_heap' testHeap<PairingHeap<number>>('PairingHeap', true, PairingHeapDict); <file_sep> import { testHeap } from '../heap_suite' import { FingerHeap } from '../../src/persistent/finger_heap' import * as FingerHeapDict from '../../src/persistent/finger_heap' testHeap<FingerHeap<number>>('FingerHeap', true, FingerHeapDict); <file_sep> import { testMap, MapDict } from '../map_suite' import * as HAMT from '../../src/persistent/hamt' const Dict: Record<keyof MapDict, any> = { mkMap: (_: any, dict: any) => HAMT.mkTrie(dict), singleton: (key: any, value: any, _: any, dict: any) => HAMT.singleton(key, value, dict), isEmpty: HAMT.isEmpty, size: HAMT.size, member: HAMT.member, lookup: HAMT.lookup, insert: HAMT.insert, remove: HAMT.remove, unassoc: HAMT.unassoc, removeMin: undefined, removeMax: undefined, map: HAMT.map, foldr: HAMT.foldr, foldl: HAMT.foldl }; testMap( 'HAMT', { hashed: true, ordered: false, idRemove: true }, Dict ); <file_sep> import { FingerTree } from './finger_tree' import * as FT from './finger_tree' import { OrdComparator } from '../ordering' export { FingerHeap, OrdBox, mkHeap, singleton, isEmpty, peek, pop, push, heapify } type FingerHeap<T> = FingerTree<T, OrdBox<T>> type OrdBox<T> = { kind: 'empty' } | { kind: 'boxed', item: T } const EmptyBox = { kind: 'empty' as 'empty' }; function mkHeap<T>(comparator: OrdComparator<T>): FingerHeap<T> { return FT.mkTree(mkMM(comparator)); } function singleton<T>(item: T, comparator: OrdComparator<T>): FingerHeap<T> { return FT.singleton(item, mkMM(comparator)); } function isEmpty<T>(heap: FingerHeap<T>): boolean { return FT.isEmpty(heap); } function peek<T>(heap: FingerHeap<T>): T | undefined { const measurement = FT.measure(heap); return measurement.kind === 'empty' ? undefined : measurement.item; } function pop<T>(heap: FingerHeap<T>): [T, FingerHeap<T>] | undefined { const measurement = FT.measure(heap); if (measurement.kind === 'empty') { return undefined; } const split = FT.splitWithItem( heap, x => x.kind === 'boxed' && x.item === measurement.item ); return split && [ split[1], FT.concat(split[0], split[2]) ]; } function push<T>(item: T, heap: FingerHeap<T>) { return FT.cons(item, heap); } function heapify<T>(items: T[], comparator: OrdComparator<T>): FingerHeap<T> { return items.reduce( (acc, x) => FT.snoc(x, acc), mkHeap(comparator) ); } function mkMM<T>(cmp: OrdComparator<T>) { return FT.mkMeasureMonoidDict<T, OrdBox<T>>( mkBoxed, EmptyBox, (x, y) => { if (x.kind === 'empty') { return y; } if (y.kind === 'empty') { return x; } return cmp(x.item, y.item) !== 'GT' ? x : y; } ); } function mkBoxed<T>(item: T): OrdBox<T> { return { kind: 'boxed', item }; } <file_sep> import { Eq } from './eq' export { Ordering, Comparator, OrdComparator, Relator, fromComparator, toComparator, toRelator, toEq, invert, naturalComparator, naturalOrdComparator } type Ordering = 'LT' | 'EQ' | 'GT' type Comparator<T> = (x: T, y: T) => number; type OrdComparator<T> = (x: T, y: T) => Ordering; type Relator<T> = (x: T, rel: Ordering | 'LTE' | 'GTE', y: T) => boolean; function fromComparator<T>(cmp: Comparator<T>): OrdComparator<T> { return (x, y) => { const res = cmp(x, y); return res === 0 ? 'EQ' : res < 0 ? 'LT' : 'GT'; } } function toComparator<T>(cmp: OrdComparator<T>): Comparator<T> { return (x, y) => { switch (cmp(x, y)) { case 'LT': return -1; case 'GT': return 1; case 'EQ': return 0; } }; } function toRelator<T>(cmp: OrdComparator<T>): Relator<T> { return (x, rel, y) => { const res = cmp(x, y); switch (rel) { case 'LT': return res === 'LT'; case 'GT': return res === 'GT'; case 'EQ': return res === 'EQ'; case 'LTE': return res !== 'GT'; case 'GTE': return res !== 'LT'; } }; } function toEq<T>(cmp: OrdComparator<T>): Eq<T> { return (x, y) => cmp(x, y) === 'EQ'; } // Same as flip function invert<X, R>(cmp: (a: X, b: X) => R): (b: X, a: X) => R { return (x, y) => cmp(y, x); } // Not the "best" signature, but as good as one may go without overloads function naturalComparator<T extends number|string|Date>(x: T, y: T) { return x === y ? 0 : x < y ? -1 : 1; } function naturalOrdComparator<T extends number|string|Date>(x: T, y: T) { return x === y ? 'EQ' : x < y ? 'LT' : 'GT'; } <file_sep> import { testHeap } from '../heap_suite' import { BinomialHeap } from '../../src/persistent/binomial_heap' import * as BinomialHeapDict from '../../src/persistent/binomial_heap' testHeap<BinomialHeap<number>>('BinomialHeap', true, BinomialHeapDict); <file_sep> import { Eq } from './eq' export { HashFunc, HashEqDict, stringHash, mkHashEqDict } type HashFunc<T> = (x: T) => number; type HashEqDict<T> = { hash: HashFunc<T>, eq: Eq<T> } function stringHash(str: string): number { let hash = 0 | 0; for (let i = 0; i < str.length; ++i) { hash = Math.imul(hash, 5) + str.charCodeAt(i) | 0; } return hash; } function mkHashEqDict<T>(hash: HashFunc<T>, eq: Eq<T>): HashEqDict<T> { return { hash, eq }; }
15c816509d6c19b1ea26d40601571e5d93dd0181
[ "Markdown", "TypeScript" ]
26
TypeScript
gcnew/heaps
8488a466949f1fad90a0cc1fb804c4496a3c424d
d5e44653db411b256b01528af505190883f2f43e
refs/heads/master
<file_sep>require 'active_support/json' module Locomotive module LiquidExtensions module Filters module Json def json(object) object.to_json end end ::Liquid::Template.register_filter(Json) end end end
8d7910a9a81ffb7d8f839069e0c631b31411b2af
[ "Ruby" ]
1
Ruby
Antiblanks/liquid_extensions
f0f4323d0598a33be7485cb78e278dbb2a8bef48
3ade2eeb1ac1d2f399abd78452d253bc9afffabb
refs/heads/master
<repo_name>SwordOfKings/Flask_WebDev<file_sep>/APP/main/forms.py from flask_wtf import Form from wtforms import StringField, SubmitField, BooleanField , SelectField , TextAreaField from flask_pagedown.fields import PageDownField from wtforms.validators import Required, Length, Email, ValidationError from ..models import Role, User class NameForm(Form): name = StringField('What is your name?', validators=[Required()]) submit = SubmitField('Submit') class EditProfileForm(Form): name = StringField('What is your real name', validators=[Length(0, 64)]) location = StringField('Where are you from', validators=[Length(0, 64)]) about_me = TextAreaField('About me') submit = SubmitField('Submit') class AdminEditProfileForm(Form): email = StringField('Email', validators=[Required(), Length(1, 64), Email()]) username = StringField('Username', validators=[Required(), Length(1, 64)]) confirmed = BooleanField('Confirmed') # Selected Field 是一个向下多选框, coerec会将值转化成指定类型 role = SelectField('Role', coerce=int) name = StringField('What is your real name', validators=[Length(0, 64)]) location = StringField('Where are you from', validators=[Length(0, 64)]) about_me = TextAreaField('About me') submit = SubmitField('Submit') def __init__(self, user, *args, **kwargs): super(AdminEditProfileForm, self).__init__(*args, **kwargs) self.role.choices = [(role.id, role.name) for role in Role.query.order_by(Role.name).all()] self.user = user def validate_email(self, field): if field.data != self.user.email and User.query.filter_by(email = field.data).first(): raise ValidationError('Email have been registered') def validate_username(self, field): if field.data != self.user.username and User.query.filter_by(username = field.data).first(): raise ValidationError('User Name have been registered') class PostForm(Form): body = PageDownField("What's your mind right now?", validators=[Required()]) submit = SubmitField('Submit') <file_sep>/requirements.txt alembic==0.8.9 beautifulsoup4==4.5.1 bleach==1.5.0 blinker==1.4 click==6.6 Django==1.10.2 dominate==2.3.1 Flask==0.11.1 Flask-Bootstrap==3.3.7.0 Flask-Login==0.4.0 Flask-Mail==0.9.1 Flask-Migrate==2.0.2 Flask-Moment==0.5.1 Flask-PageDown==0.2.2 Flask-Script==2.0.5 Flask-SQLAlchemy==2.1 Flask-WTF==0.13.1 ForgeryPy==0.1 html5lib==0.9999999 itsdangerous==0.24 Jinja2==2.8 lxml==3.7.0 Mako==1.0.6 Markdown==2.6.7 MarkupSafe==0.23 Pillow==3.4.2 py==1.4.32 pyserial==3.2.1 pytest==3.0.5 python-editor==1.0.3 requests==2.12.3 six==1.10.0 SQLAlchemy==1.1.4 visitor==0.1.3 Werkzeug==0.11.11 WTForms==2.1 xlrd==1.0.0 xlwt==1.1.2 <file_sep>/Note/Flask 学习笔记.md # Flask 学习笔记 > Flask是一个小型的web框架,主要有两个依赖:一个是路由,调试,web服务器的网关接口,另一个是模板系统主要由Jinjia提供。 > > Flask 不支持原生的数据库访问,web表单验证,以及用户认证等功能,这些功能都需要以扩展的形式构成,然后再与核心包集成。 ------ ## 虚拟环境 > 对于PYTHON中的虚拟环境很有用,为每一个项目创建不同的虚拟环境可以避免全局的包跟依赖混乱,版本冲突等问题。 > > 方法如下: ```shell sudo easy_install virtualenv virtualenv --version #用来查看虚拟环境的版本 virtualenv venv source venv/bin/activate #用来激活虚拟环境 pip3 install flask #安装flask ``` ​ 对于IDE, pycharm 有更方便的方法创建虚拟环境 ![Screen Shot 2016-12-13 at 16.33.03](/Users/allen/Desktop/Screen Shot 2016-12-13 at 16.33.03.png) ------ ## 程序基本结构 ### 基本程序 ```python from flask import Flask app = Flask(__name__) @app.route('/') #定义路由: (路由指的是程序需要知道每一个URL 对应的代码) def index(): return '<h1>Hello world</h1>' #定义带参数的路由 @app.route('/user/<name>') def User(name): return '<h1>Hellow %s</h1>' % name if __name__ == '__main__': app.run(debug = True) ``` ### 上下文 | 变量名 | 分类 | 用法 | | :---------- | ----- | ---------------------- | | current_app | 程序上下文 | 用来说明当前的程序实例 | | g | 程序上下文 | 处理请求时候的用于临时存储的对象 | | request | 请求上下文 | 请求对象,封装了客户端发出的HTTP请求内容 | | session | 请求上下文 | 用户会话,用于存储请求之间需要记住的值的字典 | [深入理解flask的上下文](https://segmentfault.com/a/1190000004859568) > 在flask 分发请求之前 程序上下文 跟请求上下文会被激活,请求处理完成之后会再将其删除。程序上下文被推送之后,就可以使用current_app跟g两个变量,请求上厦门被推送之后就可以使用request跟session两个变量。 ### 响应 大多数情况下响应就是一个简单的字符串,作为HTML页面返回给客户端 Flask 的响应码是200, 表示成功处理了一个响应 make_response: 返回一个Response 对象 redirect : 表示重定向 ```python from flask import Flask from flask import make_response,redirect app = Flask(__name__) @app.route('/') def index(): response = make_response('<h1>the page carry a cookie</h1>') response.set_cookie('answer','42') return redirect('http://www.baidu.com') @app.route('/user/<name>') def UserPage(name): return '<h1>Hello %s</h1>' % name if __name__ == '__main__': app.run(debug= True) ``` ### Flask 扩展 ```python from flask import Flask from flask import make_response,redirect from flask_script import Manager app = Flask(__name__) manager = Manager(app) if __name__ == '__main__': manager.run() >>> usage: index.py [-?] {runserver,shell} ... positional arguments: {runserver,shell} runserver Runs the Flask development server i.e. app.run() shell Runs a Python shell inside Flask application context. optional arguments: -?, --help show this help message and exit ``` ### Jinja2 模板引擎 > 模板是一个包含响应文本的文件,其中包含用占位变量表示的动态部分,其中具体值只有在请求的上下文中才能知道,然后用真实值替换掉变量,再返回相应的字符串,也就是HTML,这个过程就是渲染。 对于Flask 而言,采用的是一个叫做**Jinja2**的 模板引擎 #### 渲染模板 code: ```python #我们需要引用render_template这个库去实现模板引擎。 from flask import Flask, make_response, redirect,render_template app = Flask(__name__) @app.route('/') def index(): return render_template('index.html') @app.route('/user/<name>') def user(name): return render_template('user.html', name = name) if __name__ == '__main__': app.run(debug= True) ``` 需要注意的是: - 默认情况下,程序会在文件夹下寻找**<u>templates</u>** 这个子文件件,所以我们要把所有的模板都放置在这个文件夹下面 - Flask 提供了render_template 函数来吧Jinja2模板引擎集成在程序中,所以我们必须引入这个库 - render_template 这个函数的第一个位置参数是所需要使用的html的名字,**<u>随后的参数都是键值对</u>** > Jinja2 提供了多重控制结构可以来改变模板的渲染流程。 - 选择 ```jinja2 {% if user %} hello {{ user }} {% else %} Hello strange! {% endif %} ``` - 循环 ```jinja2 <ul> {% for comment in comments %} <li>{{ comment }}<\li> {% endfor %} </ul> ``` - 宏 <==> 相当于函数 ```jinja2 {% macro render_comment{comment} %} <li>{{ comment }}</li> {% endmacro %} <ul> {% for comment in comments %} {{ render_comment(comment) }} {% endfor %} </ul> ``` ```jinja2 {% import 'macros.html' as macros %} <ul> {% for comment in comments %} {{ macros.render_comment(comment) }} {% endfor %} </ul> ``` > 需要在多处重复使用的模板代码片段可以写入单独的文件,再包含在所有模板中,以避免重复: ``` {% include 'common.html' %} ``` - **<u>模板继承</u>** ```jinja2 #base.html <html> <head> {% block head%} <title>{%block title%}{%endblock%} - My Application</title> {% endblock %} </head> {%block body%} {%endblock%} </html> ``` **如何继承base.html 呢, 关键语法: extends** ```jinja2 {% extends "base.html" %} {% block title %}Index{% endtitle %} {% block head %} [{supper()}] <style> </style> {% endblock%} {% block body %} <h1>Hello world</h1> {% endblock%} ``` [Jinja2 的中文文档](http://docs.jinkan.org/docs/jinja2/) ### 使用Bootstrap > Bootstrap 是一个Twitter开发的一个开源框架,目标是客户端,不会操作到服务器部分。Server端只要做的事情就是提供应用了Bootstrap的 CSS 样式层跟JS文件的HTML 响应,并在HTML, CSS,js 代码中实例化所需要的组件。 - 安装 ```shell pip install flask-bootstrap ``` ​ 安装之后,我们需要实例化bootstrap 对象。 ```python from flask_bootstrap import Bootstrap bootstrap = Bootstrap(app) ``` > 当我们实例化了bootstrap之后,我们基于可以在程序中使用一个包含了Bootstrap样式的文件的基模板。 ```html {% extends "bootstrap/base.html" %} {% block title%}Flasky{% endblock %} {% block navbar %} <dir class = "navbar navbar-inverse" role="navigation"> <div class = "container"> <div class = 'navbar-header'> <button type = 'collapse' data-target='.navbar-collapse'> <span class = "sr-only">Toggle navigation</span> <span class = "icon-bar"></span> <span class = "icon-bar"></span> <span class = "icon-bar"></span> </button> <a class = "navbar-brand" href="/">Flasky</a> </div> <div class = "navbar collapse collapse"> <ur class = "nav navbar-nav"> <li><a href="/">Home</a></li> </ur> </div> </div> </dir> {% endblock %} {% block content %} <div class = "container"> <div class = "page-header"> <h1>Hell0, {{ name }}!</h1> </div> </div> {% endblock %} ``` - 使用Flask-Moment 本地化时间渲染 [Flask moment 介绍](http://www.tuicool.com/articles/ZZ3aiau) > moment.js 是一个用js 开发的一个优秀的客户端代码库,用来在浏览器中渲染日期和时间。Flask-Moment 是一个Flask的程序扩展,能把moment.js集成到Jinja2 模板框架中。 ==NOTE:== - **Flask-Moment主要依赖有两个: 一个是moment.js 一个是jquery.js** > After that you have to include ==jquery.js== and ==moment.js== in your template(s). The template now has helper functions to make this easy: > > ```html > <html> > <head> > <title>Flask-Moment example app</title> > {{ moment.include_jquery() }} > {{ moment.include_moment() }} > </head> > <body> > ... > </body> > </html> > ``` > > Note that you can include the scripts at the bottom of the page as well. - **Bootstrap 已经引入了jquery.js,为了使用moment.js 我们还需要引入 moment.js 引入代码如下:** > If you already have jquery included in your page then you can omit the ==include_jquery()==  line, ==but note that the `include_moment()` line must be present.== ```jinja2 {% block scripts %} {{ super() }} {{ moment.include_moment() }} {% endblock %} ``` [moment.js 的详细文档](http://momentjs.com/) [Flask-Moment 的开源代码](https://github.com/miguelgrinberg/Flask-Moment) [Python datetime 包的文档](https://docs.python.org/2/library/datetime.html) ------ ## 表单 ### 介绍 - Flask-WTF 这是一个扩展,用来处理web 表单的。这个扩展对于WTForms包进行了包装,并将其集成到了flask框架 - 安装 ```shell pip install flask-wtf ``` - 跨站请求伪造保护 [wiki:csrf](https://en.wikipedia.org/wiki/Cross-site_request_forgery) [中文介绍以及防护措施](http://www.ibm.com/developerworks/cn/web/1102_niugang_csrf/index.html) > CSRF(Cross Site Request Forgery, 跨站域请求伪造)是一种网络的攻击方式,该攻击可以在受害者毫不知情的情况下以受害者名义伪造请求发送给受攻击站点,从而在并未授权的情况下执行在权限保护之下的操作,有很大的危害性。 在flask中防御csrf 可以设置一个密钥。flask-wtf会使用这个密钥生成加密令牌,在根据加密令牌验证请求中的表单数据是否是真的 当我们post数据时候,会生成一个csrf token,如下 ```shell csrf_token:1481775999##d274f971590511924c0eeea5c28e7f80394b8135 name:allen submit:Submit ``` ### WTF 使用 **相关代码如下:** 1. step 1, 编写表格的类 **这个类是继承自FlaskForm这个父类,在这个类中可以定义所需要的的表单格式,在wtf中定义了HTML 支持的标准字段** | 字段类型 | 说明 | | ------------------- | ------------------------- | | StringField | 文本字串 | | TextAreaField | 多行文本字段 | | PasswordField | 密码文本字段 | | HiddenField | 隐藏文本字段 | | DateField | 文本,值是datetime.date的格式 | | DateTimeFiled | 文本,值是datetime.datetime的格式 | | IntegerField | 文本,值是整型 | | DecimalField | 文本,值是decimal.Decimal | | FloatFiled | 文本,值是浮点 | | BoolenFiled | 复选框,值是True Flase | | RadioFiled | 一组单选框 | | SelectField | 下拉列表 | | SelectMultipleField | 下拉多选列表 | | FileFiled | 文件上传字段 | | SubmitField | 表单提交字段 | | FormField | 把表单当做字段潜入到另一个表单 | | FieldList | 一组指定类型的字段 | | **WTForms 验证函数** | | | 验证函数 | 说明 | | ----------- | -------------- | | Email | 验证是否是email 地址 | | EqualTo | 比较两个字段是否一致 | | IPAddress | 验证IPV4网络地址 | | NumberRange | 验证输入的值在某个数字范围中 | | Optional | 无输入值是跳过其他验证函数 | | Required | 确保字段中一定有值 | | Regexp | 使用正则表达式去验证输入的值 | | URL | 验证 | | AnyOf | 确保输入的值在可选值列表中 | | NoneOf | 确保输入的值不在可选列表中 | | | | ```python class PasswordForm(FlaskForm): name = StringField('What is your name', validators= [Required()]) password = PasswordField('<PASSWORD>',validators= [DataRequired()]) inputAgain = PasswordField('Input again', validators=[Required(),EqualTo('password', message='Input not ok')]) submit = SubmitField('Submit') ``` 2. 编写模板,调用wtf表单去渲染 wtf.quick_form ```html {% extends "base.html" %} {% import "bootstrap/wtf.html" as wtf %} {% block title %}SumbitForm{% endblock%} {% block page_content %} <div class="page-header"> <h1>This is a sumbit form page,Hi {%if name%}{{ name }}{% else %} Strange{%endif%}</h1> <p>{% if message %}{{ message }}{%else%}please set the password{% endif %}</p> </div> {{ wtf.quick_form(form1)}} {% endblock%} ``` 3. 在视图函数中处理表单,需要在路由中添加post方法 > 把 POST 加入方法列表很有必要,因为将提交表单作为 POST 请求进行处理更加便利。表单也可作为 GET 请求提交,不过 GET 请求没有主体,提交的数据以查询字符串的形式附加到URL 中,可在浏览器的地址栏中看到。基于这个以及其他多个原因,提交表单大都作为POST 请求进行处理。 ```python from flask_wtf import FlaskForm from datetime import datetime from wtforms import StringField,SubmitField,PasswordField from wtforms.validators import Required, EqualTo, DataRequired class PasswordForm(FlaskForm): name = StringField('What is your name', validators= [Required()]) password = PasswordField('Please input your password',validators= [DataRequired()]) inputAgain = PasswordField('Input again', validators=[Required(),EqualTo('password', message='Input not ok')]) submit = SubmitField('Submit') @app.route('/Submit', methods = ['GET','POST']) def sumbitForm(): PW_Form = PasswordForm() name_submit = None submitResult = PW_Form.validate_on_submit() password = PW_Form.password.data print(password) PasswordRes = PW_Form.validate_on_submit() message_PW = None print(PasswordRes) print(submitResult) if PasswordRes : name_submit = PW_Form.name.data print(name_submit) PW_Form.name.data = '' if submitResult: message_PW = '<PASSWORD>' return render_template('Form.html' , form1 = PW_Form, name = name_submit, message = message_PW) ``` [Flask-wtf 介绍](http://www.ttlsa.com/python/python-flask-wtf-and-wtforms/) [别人的笔记 有关WTF](https://zhuanlan.zhihu.com/p/22495558#!) ### 重定向与用户会话 > 使用重定向作为 POST 请求的响应,而不是使用常规响应。重定向是一种特殊的响应,响应内容是 URL,而不是包含 HTML 代码的字符串。浏览器收到这种响应时,会向重定向的 URL 发起 GET 请求,显示页面的内容。这个页面的加载可能要多花几微秒,因为要先把第二个请求发给服务器。除此之外,用户不会察觉到有什么不同。现在,最后一个请求是 GET 请求,所以刷新命令能像预期的那样正常使用了。这个技巧称为 Post/ 重定向 /Get 模式。 > 但这种方法会带来另一个问题。程序处理 POST 请求时,使用 form.name.data 获取用户输入的名字,可是一旦这个请求结束,数据也就丢失了。因为这个 POST 请求使用重定向处理,所以程序需要保存输入的名字,这样重定向后的请求才能获得并使用这个名字,从而构建真正的响应 简而言之的就是,用这个重定向的方法,主要要调用的是一个叫做`url_for()`的方法, 因为redirection是传入一个url。 ### Flask 消息 在flask中定义了一个flash函数用来发送一个消息,比如alert等 为了让用户知道状态发生了变化。这里包括确认消息,警告消息等。 code 如下: ```python @app.route('/Submit', methods = ['GET','POST']) def sumbitForm(): PW_Form = PasswordForm() name_submit = None submitResult = PW_Form.validate_on_submit() password = PW_Form.password.data print(password) PasswordRes = PW_Form.validate_on_submit() message_PW = None print(PasswordRes) print(submitResult) if PasswordRes and submitResult : session['name'] = PW_Form.name.data print(name_submit) PW_Form.name.data = '' message_PW = '<PASSWORD>' return redirect(url_for('sumbitForm')) if not PasswordRes and password is not None: #这里直接调用flash的方法,生成一个message flash('the password is not match , please check') return render_template('Form.html' , form1 = PW_Form, name = session.get('name'), message = message_PW) ``` 仅仅这么做是没有办法在网页中显示的,还需要在模板中加入对应的样式来渲染这个结果。 > Flask 把 get_flash_messages()函数开放给了模板,用来渲染flash函数。 code: ```jinja2 {% block content%} <div class = "container"> {% for message in get_flashed_messages() %} <div class = "alert alert-warning"> <button type = "button" class = "close" data-dismiss ="alert">&times;</button> {{ message }} </div> {% endfor %} {% block page_content %}{% endblock %} </div> {% endblock%} ``` > 在模板中使用的循环,是因为请求循环中每次调用 flash() 函数时都会生成一个消息, > 所以可能有多个消息在排队等待显示。get_flashed_messages() 函数获取的消息在下次调 > 用时不会再次返回,因此 Flash 消息只显示一次,然后就消失了。 ------ ## 数据库 数据库是按照一定的规则保存数据的, 程序在发起查询取回所需的数据。 常用的是关系数据库,也叫作SQL数据库,近几年来用到的是文档数据库跟键值对数据库。 ### Sql 数据库 [Sql 教程](http://www.w3school.com.cn/sql/sql_intro.asp) > 关系型数据库把数据存储在表中,表模拟程序中不同的实体表中有个特殊的列,称为主键,其值为表中各行的唯一标识符。表中还可以有称为外键的列,引用同一个表或不同表中某行的主键。行之间的这种联系称为关系,这是关系型数据库模型的基础。 ### NoSql 数据库 [Mango DB 介绍与教程](http://www.runoob.com/mongodb/mongodb-tutorial.html) [Redis 教程](http://www.runoob.com/redis/redis-tutorial.html) > Nosql 数据库是不遵守上述介绍的所有数据库的总和,对于NoSql而言,一般用集合来代替表,用文档代替记录。NOSql 这种方式使得联结变得异常困难,因此大部分NoSql数据库都不再支持联结这种方式。这种方式减少了表的数量,但增加了数据的重复性。 > > 好处: 这种NoSql的方式使得查询速度变得很快 > > 坏处:维护成本很高,也很耗时去更新文档 ### Python中的数据库框架 - SqlAlchemy - 使用的扩展 : **<u>Flask-SqlAlchemy</u>** - [SqlAlchemy 快速教程 官方](http://www.mapfish.org/doc/tutorials/sqlalchemy.html#engine-api) | 数据库引擎 | URL | | ------------ | ---------------------------------------- | | MySQL | <u>*mysql://username:password@hostname/database*</u> | | Postgres | <u>*postgresql://username:password@hostname/database*</u> | | SQLite(Unix) | <u>*sqlite:///absolute/path/to/database*</u> | ==Note: Sqllite 是在主机上的,不需要用户名 密码== ==Note:Mac 要将存放数据库的文件夹权限开放== - 安装: ```shell pip3 install flask-sqlalchemy ``` ### 配置数据库 对于数据库的配置,我们需要指定数据库的URL 到Flask 对象中。另外在flask-sqlalchemy 中,有一个key是要求置为true的。 ```python app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True ``` 配置完成之后,我们要实例数据库对象。 相关的code: ```python from flask import Flask from flask_sqlalchemy import SQLAlchemy import os app = Flask(__name__) basedir = os.path.abspath(os.path.dirname(__file__)) app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:\\\'+ os.path.join(basedir, 'test.db') app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True db = SQLAlchemy(app) ``` ### 创建模型 **==模型:==** 指的是在程序过程中使用的持久化实体。对于python而言。一个模型对应的是一个类,类中的属性就是这个数据表中的列 code: ```python class User(db.Modle): __tablename__ = 'users' id = db.Column(db.Integer, primary_key = True) username = db.Column(db.String(64), unqiue = True, index = True) def __repr__(self): return '<the Username is %s>' % self.username ``` 解释: > - `__tablename__ `定义了模型所在的表名,习惯要求要用复数。 > > > - db.Column 是SqlAlchemy的一个实例方法,第一个参数是数据库列和模型属性的类型。常用的列类型如下: > > | 类型名 | python 类型 | 说明 | | > | ------------ | ------------------ | -------------------- | ---- | > | Integer | int | 整型 | | > | SmallInteger | int | 取值很小范围的整数,一般是16位 | | > | BigInteger | int/long | 不限精度的整数 | | > | Float | float | 浮点 | | > | Numeric | decimal.Decimal | 定点数 | | > | String | str | 定长字符 | | > | Text | str | 不定长 | | > | Unicode | unicode | 变长Unicode | | > | UnicodeText | unicode | 变长Unicode ,对较长的字符有优化 | | > | Boolean | bool | 布尔 | | > | Date | datetime.date | 日期 | | > | Time | datetime.time | 时间 | | > | DateTime | datetime.datetime | 日期时间 | | > | Interval | datetime.timedelta | 时间间隔 | | > | Enum | str | 一组字符串 | | > | largeBinary | str | 二进制文件 | | > | | | | | > > - db.Column 中的其余参数设置 > > ==Flask-SQLAlchemy 要求每个模型都要定义主键,这一列经常命名为 id== > > ​ > > | 选项名 | 说明 | > | ----------- | -------------------------- | > | primary_key | bool: 主键 | > | unique | bool: 不允许出现重复的值 | > | index | bool: 为这一列创建索引 | > | nullable | bool:True,允许空值,False 不允许空值 | > | default | 为这列定义默认值 | ### 建立关系 > 关系数据库使用关系来链接不同的表的不同行。 方法是 > > `db.relationship('表名', **kwg)` 实际上就是外键的关系: [主键与外键](http://www.cnblogs.com/longyi1234/archive/2010/03/24/1693738.html) | 选项名 | 说明 | | ------------- | ----------------------------------- | | backref | 在关系中的另一个模型中添加反向应用 | | primaryjoin | 明确两个模型之间使用的联结条件。只在模棱两可的关系中需要指定 | | lazy | 指定应该如何加载相关记录 | | uselist | False 不使用列表,而是用标量值 | | order_by | 指定关系中的记录的排序方式 | | secondary | 指定多对多关系中关系表的名字 | | secondaryjoin | SQLAlchemy 无法自行决定时候,指定多对多关系中的二级联结条件 | ### 数据库操作 `db.create_all()` > 创建数据库文件, 文件的名字就是在配置中指定的。 `db.drop_all()` > 删除旧表 `db.session.add()` `db.session.commit()` > 添加行到数据库, add 方法也可以更新模型 `db.session.rollback()` > 回滚数据库状态 `db.session.delete(xx)` `db.commit()` > 删除行 ```python Role.query_all() Role.filter_by(role='xx').all() Role.filter_by(role='xx').first() ``` > 查询操作是对模型类的。要查询具体的sql 语句可以直接转换类型即可str() ### 在视图函数中操作 直接上code ```python @app('/submit') def SumbitForm(): form = NameForm() if form.validate_on_submit(): if User.query_filter_by(username = form.name.data).first() is None: db.session.add(User(username = form.name.data)) db.session.commit() session['Known'] = False else: session['Known'] = True session['name'] = form.name.data form.name.data = '' return redirect(url_for('index')) return render_template('index.html', name = session.get('name'), known = session.get('Known')) ``` ### 集成python shell <!--need read again--> ### 使用Flask-Migrate 实现数据库迁移 <!--need read again--> ## 电子邮件 - 库: flask-mail 或者 smtplib - 安装: `pip3 install flask-mail` - Flask smtp 服务器的配置 | 配置 | default value | explaination | | ------------- | ------------- | ---------------------------------------- | | MAIL_SERVER | localhost | 电子邮件服务器的主机 ip | | MAIL_PORT | 25 | 端口号 | | MAIL_USE_TLS | False | 启用传输层安全协议 | | MAIL_USE_SSL | False | 启用[安全套接层协议](http://www.webstart.com/jed/papers/HRM/references/ssl.html) | | MAIL_USERNAME | None | 用户名 | | MAIL_PASSWORD | None | 密码 | 直接上code ```python from flask_mail import Mail, Message app.config['MAIL_SERVER'] = 'smtp.126.com' app.config['MAIL_PORT'] = 25 app.config['MAIL_USE_TLS'] = True # app.config['MAIL_USERNAME'] = os.environ.get('MAIL_USERNAME') # app.config['MAIL_PASSWORD'] = os.environ.get('MAIL_PASSWORD') app.config['MAIL_SUBJECT_PREFIX'] = 'HELLO ' app.config['MAIL_SENDER'] = 'Allen <<EMAIL>>' # app.config['APP_ADMIN'] = os.environ.get('APP_ADMIN') app.config['MAIL_USERNAME'] = '<EMAIL>' app.config['MAIL_PASSWORD'] = '<PASSWORD>' app.config['APP_ADMIN'] = '<EMAIL>' mail = Mail(app) def send_mail(to, subject, template, **kwargs): msg = Message(app.config['MAIL_SUBJECT_PREFIX'] + subject, sender=app.config['MAIL_SENDER'], recipients = [to]) msg.body = render_template(template + '.txt', **kwargs) # msg.html = render_template(template + '.html' , **kwargs) mail.send(msg) @app.route('/Submit', methods = ['GET','POST']) def sumbitForm(): PW_Form = PasswordForm() name_submit = None password = PW_Form.password.data PasswordRes = PW_Form.validate_on_submit() message_PW = None if PasswordRes : user = User.query.filter_by(userName = PW_Form.name.data).first() print(User.query.all()) print(user) if user is None: user = User(username= PW_Form.name.data) db.session.add(user) session['Known'] = False db.session.commit() print('APP ADMIN IS' + app.config['APP_ADMIN']) #这里需要注意的是 Mail 内容的模板是要定义在项目所在文件夹下 mail #子文件夹下面 if app.config['APP_ADMIN']: send_mail(app.config['APP_ADMIN'], 'new user', 'mail/new_user', user = user) else: session['Known'] = True session['name'] = PW_Form.name.data print(name_submit) PW_Form.name.data = '' message_PW = 'Set password OK' return redirect(url_for('sumbitForm')) if not PasswordRes and password is not None: flash('the password is not match , please check') ``` - 异步发送Mail ```python def async_sendmail(app, msg): with app.app_context(): mail.send(msg) def send_mail(to, subject, template, **kwargs): msg = Message(app.config['MAIL_SUBJECT_PREFIX'] + subject, sender=app.config['MAIL_SENDER'], recipients = [to]) msg.body = render_template(template + '.txt', **kwargs) # msg.html = render_template(template + '.html' , **kwargs) thr = Thread(target= async_sendmail, args=[app, msg]) return thr ``` **<u>*Note:*</u>** > 不过要记住,程序要发送大量电子邮件时,使用专门发送电子邮件的作业要比给每封邮件都新建一个线程更合适。例如,我们可以把执行 send_async_email() 函数的操作发给 [Celery](http://www.celeryproject.org/)任务队列。 ## 程序结构 - [ ] 待总结 ------ # 实战记录 - 个人博客 ## 用户认证 大多数程序都会进行用户追踪,用户连接程序时候会进行身份认证,通过这一过程,让程序知道对方身份。 - Flask 的认证扩展 - [Flask-Login](https://flask-login.readthedocs.io/en/latest/): 管理已经登录用户的用户回话 > Flask-Login provides user session management for Flask. It handles the common tasks of logging in, logging out, and remembering your users’ sessions over extended periods of time. > > Flask-Login 为flask 提供了一个用户session管理模块,他用来处理这种通用的的任务:登入,注销,记住一段时间的用户的session > > ```python > @app.route('/login', methods=['GET', 'POST']) > def login(): > # Here we use a class of some kind to represent and validate our > # client-side form data. For example, WTForms is a library that will > # handle this for us, and we use a custom LoginForm to validate. > form = LoginForm() > if form.validate_on_submit(): > # Login and validate the user. > # user should be an instance of your `User` class > login_user(user) > > flask.flash('Logged in successfully.') > > next = flask.request.args.get('next') > # is_safe_url should check if the url is safe for redirects. > # See http://flask.pocoo.org/snippets/62/ for an example. > if not is_safe_url(next): > return flask.abort(400) > > return flask.redirect(next or flask.url_for('index')) > return flask.render_template('login.html', form=form) > > ``` - [Werkzeug](http://werkzeug.pocoo.org/): 计算密码散列值并进行核对 > Werkzeug is a WSGI utility library for Python. It's widely used and BSD licensed. > > Werkzeug 是对python的一个工具集[WSGI](https://zh.wikipedia.org/wiki/Web%E6%9C%8D%E5%8A%A1%E5%99%A8%E7%BD%91%E5%85%B3%E6%8E%A5%E5%8F%A3)库,它广泛的被使用并且[BSD](https://zh.wikipedia.org/wiki/BSD)认证 - [itsdangerous](http://itsdangerous.readthedocs.io/en/latest/): 生成并核对加密安全令牌 > 有时候你想向不可信的环境发送一些数据,但如何安全完成这个任务呢?解决的方法就是签名。使用只有你自己知道的密钥,来加密签名你的数据,并把加密后的数据发给别人。当你取回数据时,你就可以确保没人篡改过这份数据。 ### 密码安全性 > 要保证数据库中的用户密码安全,关键不在于存储密码本身,而在要存储密码的散列值。计算密码散列值的函数接收密码来作为输入,使用一种或者多种加密的方式来转换密码,最终得到一种跟原密码没有关系的密码。 > 计算密码散列值是个复杂的任务,很难正确处理。因此强烈建议你不要自己 > 实现,而是使用经过社区成员审查且声誉良好的库。如果你对生成安全密码 > 散列值的过程感兴趣,“Salted Password Hashing - Doing it Right”(计算加盐 > 密码散列值的正确方法,https://crackstation.net/hashing-security.htm)这篇文章值得一读。 ### 使用Werkzeug 实现密码散列 - 实现密码散列值的计算,只需要实现两个函数:一个是在用户注册阶段,一个是在用户验证阶段 ```python #input string:password ; output string,hash value generate_password_hash(password, method=pbkdf2:sha1, salt_length = 8): #verfiy the password hash value check_password(hash, password) ``` 跟新User模块 ```python from werkzeug import generate_password_hash, check_password ... def __init__(self, userName, password): self.userName = userName self.password = <PASSWORD> .... password_hash = db.Cloumn(db.String(128)) @property def password(self): rasie AttributeError('password can not be read') @password.setter def password(password): self.password_hash = genertate_password_hash(password) def ver_password(password): return check_password(self.password_hash, password) ``` ### 创建认证蓝本 > 蓝本的作用是在全局作用域中定义路由 > > auth蓝本保存在同名python包下。蓝本的包构造文件创建蓝本对象,再从view.py模块中引入路由 **step1**: 创建蓝本的构造函数 ```python # __init__.py from flask import Blueprint auth = Blueprint('auth', __name__) from . import views ``` **step2:** 建立视图函数 ```python #view.py from flask import render_template from . import auth @auth.route('/login') def login(): return render_template('auth/login.html') ``` **step 3:** 在全局的create_app函数中注册蓝本 ```python def create_app(config_name): ... from auth import auth as auth_blueprint app.register_blueprint(auth_blueprint, url_prefix='\auth') return app ``` ### 使用Flask-Login认证用户 - 安装 ``` pip install flask-login ``` - 准备用户登录的模型 > 要使用Flask-Login 的扩展, 就必须实现下列四种方法 > > - is_authenticated() > - is_active() > - is_anonymous() > - get_id() 还有一种简单的方式: 使用flask-login封装的类 UserMixin, 这个类包含了这些方法的默认值 **Step 1: 更新User 模型** code: ```python from flask-login import UserMixin class User(UserMixin, db.Modle): __tablename__ = 'users' id = db.Column(db.Integer, primary_key = True) email = db.Column(db.String(64), unqiue = True, index = True) userName = db.Colunmn(db.String(64), unique = True, index = True) password_hash = db.Column(db.String(128)) ``` **Strep2 : 在__init__ 工厂函数中初始化Flask_login** ```python from flask_login import LoginManger login_manger = LoginManger() login_manger.session_protection = 'strong' login_manger.login_view = 'auth.login' def create_app(config_name): #... login_manager.init_app(app) #.. ``` > session_protection 指的是用户会话保护机制,有不同的等级。 strong, basic,None.==**设为 'strong' 时,Flask-Login 会记录客户端 IP地址和浏览器的用户代理信息,如果发现异动就登出用户**== > > Login_view 设定的是登录页面的端点。 **Step 3 : 在modle 模块加载用户的回调函数* ```python form . import login_manager @login_manager.user_loader def load_user(user_id): return User.query.get(int(user_id)) ``` **Step 4: 添加登录表单** ```python #auth/form.py from flask_wtf import FlaskForm from wtfFroms import PasswordFiled, StringField, BooleanField, SubmitField from wtfFroms.validators import Required, Length, Email Class LoginForm(FlaskForm): email = StringField(XXXX) password = <PASSWORD>Field(<PASSWORD>) remember_me = BooleanField(xxxx) submit= SubmiteField(xxxx) ``` **Step 5: 更新Base html** ```html <div class = 'navbar'> <ul class = 'nav navbar-nav navbar-right'> {% if current_user.is_authenticated %} <li><a href='{{ url_for('auth.logout')}}'>Sign Out</a></li> {% else%} <li><a href='{{ url_for('auth.login')}}'>Sign In</a></li> {% endif%} </ul> </div> ``` **Step6: 更新的登录视图函数** ```python from flask import render_template, redirect, request, url_for, flash from flask_login import login_user form . import auth from ..modle import User from .forms import LoginForm form = LoginForm() if form.validate_on_submit(): user = User.query.filter_by(email = form.email.data).first() if user is not None and user.ver_password(form.password.data): login_user(user, form.remember_me.data) return redirect(request.args.get('next') or url_for('main.index')) return render_template('auth/login.html', form = form) ``` **Step7 : 更新视图函数, 登出用户** ```python form flask.login import logout_user, login_requerd @auth.route('/signout'): @login_required def logout(): logout_user() flash('User have been removed') return redirect(url_for('main.index')) ``` ### 注册新用户 **Step1 更新forms.py** ```python class registerForm(FlaskForm): email = StringField('Email', validators=[DataRequired(), Email(), Length(1,65)]) UserName = StringField('Username', validators=[DataRequired(), Length(1,65), Regexp('^[A-Za-z0-9_.]*$',0, 'User name must be letter, number')]) password = PasswordField('Password', validators=[DataRequired(), EqualTo('password_ver', message='password must match')]) password_ver = PasswordField('Input again', validators=[DataRequired()]) submit = SubmitField('Submit') def validate_email(self, field): if User.query.filter_by(email = field.data).first(): raise ValidationError('EMAIL aleray register') def validate_username(self, field): if User.query.filter_by(userName = field.data).first(): raise ValidationError('User name have been register') ``` > WTForms 提供的 Regexp 验证函数,确保 username 字段只包含字母、数字、下划线和点号。这个验证函数中正则表达式后面的两个参数分别是正则表达式的旗标和验证失败时显示的错误消息。 **Step3 更新views 模块:** ```python @auth.route('/register', methods =['GET','POST']) def register(): form = RegisterForm() if form.validate_on_submit(): user = User(email = form.email.data, XXXXX) db.session.add(user) db.session.commit() flash('the user have been registered, can be login') return redirect(url_for('auth.login')) return render_template('auth/register.html', form = form) ``` ### 确认账户 > 为什么要确认账户 因为为了避免用户用假的帐号来注册。所以需要确认账户是否是正确的 > 怎么确认账户 为了确认账户是否正确,我们常用的方式是在用户注册之后发送一封确认邮件,新账户被标记成待确认状态,用户按照邮件中的说明操作后,才会被记录在数据库。 现在常用的是[手机短信确认信息](http://www.aspku.com/tech/jiaoben/python/90394.html) - 使用itsdangerous 生成确认令牌<file_sep>/Note/README.md # Flask_WebDev 基于FlaskWeb开发:FlaskWeb开发:基于Python的Web应用开发实战
0af626fcdc13014b263121d410e46e97a9427944
[ "Markdown", "Python", "Text" ]
4
Python
SwordOfKings/Flask_WebDev
9727355ae5f2cf08b65c26c32b74b321adb1f80c
e284ee7ae6366af3309d4b3a891e02d9e47b82fa
refs/heads/master
<repo_name>sandeep-1295/hisab-kitab<file_sep>/src/main.py #headers = ["ID","NAME","AMT","DATE","TIMESTAMP","Shared By"] import util,sys people = util.list_of_people() headers,table = util.read_table_from_disk() hisab_grid = {} def insert_entry(): print("ID: NAME") for id_ in [1,2,3,4]: print("%d : %s"%(id_,people[id_]['name'])) print("Enter ID of the person who paid the bill") payer_id = int(input()) payer_name = people[payer_id]['name'] print("Enter bill details") amt = float(input("Amount: ")) participants = input("Shared By: ") date = util.parsedate(input("Date(dd-mm-yyyy skip if today): ")) time = util.parsetime(input("Approx Time(24 HR format hhmm skip if now): ")) notes = input("Comments: ") timestamp = str(util.timestamp_foo(date,time)) row = [str(payer_id),payer_name,str(amt),str(date.ctime()),str(timestamp),notes] row.append(participants) table.append(row) util.write_row_to_disk(row) def crunch_data(): """ In the OUTPUT each row will represents how much money each person of the column ows to the person of the row """ for person_id in [1,2,3,4]: hisab_grid[person_id]={} for other_person_id in [1,2,3,4]: hisab_grid[person_id][other_person_id] = 0.0 for row in table: person_id = int(row[0]) shared_amt = float(row[2])/(len(row[-1].split(','))+1) for participant in row[-1].split(','): hisab_grid[person_id][int(participant)]+=shared_amt print("{0:12}".format(''),end="") for person_id in [1,2,3,4]: print(people[person_id]['name'].rjust(10),end=" ") print('') for person_id in [1,2,3,4]: print("{0:10}".format(people[person_id]['name']),end=" |") for other_person_id in [1,2,3,4]: print("{0:10.2f}".format(hisab_grid[person_id][other_person_id]),end="") print('\n') def main(): insert_entry() util.cleanBeforeMean() if __name__ == '__main__': print("run with arg crunch to see who owes whom how much") if len(sys.argv) > 1: if sys.argv[1] == 'crunch' or sys.argv[1] == 'get': crunch_data() else: insert_entry() else: insert_entry() util.cleanBeforeMean()<file_sep>/src/util.py import json,os,datetime line_delimiter = '\n' delimiter = '\t' headers = ["ID","NAME","AMT","DATE","TIMESTAMP","SHARED BY","NOTES"] def __initBalancesheet(): if not os.path.isfile('../data/balancesheet.txt'): b = open('../data/balancesheet.txt','x') b.writelines(delimiter.join(headers)+line_delimiter) b.close() global balancesheet balancesheet = open('../data/balancesheet.txt','a') def cleanBeforeMean(): balancesheet.close() def list_of_people(): people = open('../data/people.json') people = json.load(people) return people def weekday(date): return ["Monday","Tuesday","Wednesday",\ "Thursday","Friday","Saturday","Sunday"]\ [date.weekday()] def parsedate(datestr): if datestr == '': return datetime.datetime.today() d,m,y = tuple([int(x) for x in datestr.split('-')]) return datetime.datetime(y,m,d) def parsetime(time): if time == '': return datetime.datetime.today().time() else: h,m = int(time[:2]),int(time[-2:]) return datetime.time(h,m) def timestamp_foo(date,time): return date.timestamp() + time.hour*60*60 + time.minute*60 def read_table_from_disk(): __initBalancesheet() b = open('../data/balancesheet.txt') headers = b.readline() table = [line.split() for line in b.readlines()] return headers,table def write_row_to_disk(row): balancesheet.write(delimiter.join(row)+line_delimiter)
f069e5aae387da186d44decc12f9db415aad64f8
[ "Python" ]
2
Python
sandeep-1295/hisab-kitab
3c8b84a64d512c521a577cfdd1b4cb650bdb80ab
598357f9de724073be0d091c5cf40a4f30a4b2e3
refs/heads/master
<repo_name>abhinav2000kiit/hackathon<file_sep>/src/redux/reducers/DeleteReducer.js function DeleteReducer (state={ dlt: "" }, action) { switch (action.type) { case "ROW_DELETE_REQUEST": return { sending: true }; case "ROW_DELETE_SUCCESS": return { sending: false, dlt: action.payload }; case "ROW_DELETE_FAIL": return { sending: false, error: action.payload } default: return state; } } export { DeleteReducer };<file_sep>/src/redux/actions/DeleteAction.js import axios from 'axios'; export const DeleteAction = ( Meetingid ) => { const arr= [{"id": Meetingid}]; console.log(arr) return async dispatch => { try { const { del } = await axios.post(`http://localhost:8080/Summer_Internship_Backend/delEntry`, arr); dispatch({ type: "ROW_DELETE_SUCCESS", payload: del }); } catch (error) { dispatch({ type: "ROW_DELETE_FAIL", payload: error.message }); } } }<file_sep>/src/App.js import './App.css'; import { BrowserRouter as Router, Route } from 'react-router-dom'; import Landing from '../src/components/landing'; import '../src/assests/style.css'; function App() { return ( <Landing /> ); } export default App; <file_sep>/src/redux/reducers/TableReducer.js function TableReducer (state={ tableData: [{ Meetingid: "1", MeetingName: "asdf", Attendees: "123", onDate: "2021-04-07", StartTime: "09:56", EndTime: "08:56", },{ Meetingid: "2", MeetingName: "ghjk", Attendees: "456", onDate: "2021-04-07", StartTime: "10:10", EndTime: "04:20", },{ Meetingid: "3", MeetingName: "qwer", Attendees: "789", onDate: "2021-04-07", StartTime: "05:55", EndTime: "02:57", },{ Meetingid: "4", MeetingName: "tyui", Attendees: "3849", onDate: "2021-04-07", StartTime: "12:56", EndTime: "04:25", },] }, action) { switch (action.type) { case "TABLE_DATA_REQUEST": return { loading: true }; case "TABLE_DATA_SUCCESS": return { loading: false, tableData: [...action.payload] }; case "TABLE_DATA_FAIL": return { loading: false, error: action.payload } default: return state; } } export { TableReducer };<file_sep>/POJO.java package com.mayadata; import java.util.Date; import java.sql.Time; public class POJO { private int Meetingid; private String MeetingName; private int Attendees; private Date onDate; private Time StartTime; private Time EndTime; public POJO() { super(); // TODO Auto-generated constructor stub } public POJO(int meetingid, String meetingName, int attendees, Date onDate, Time startTime, Time endTime) { super(); Meetingid = meetingid; MeetingName = meetingName; Attendees = attendees; this.onDate = onDate; StartTime = startTime; EndTime = endTime; } public int getMeetingid() { return Meetingid; } public void setMeetingid(int meetingid) { Meetingid = meetingid; } public String getMeetingName() { return MeetingName; } public void setMeetingName(String meetingName) { MeetingName = meetingName; } public int getAttendees() { return Attendees; } public void setAttendees(int attendees) { Attendees = attendees; } public Date getOnDate() { return onDate; } public void setOnDate(Date onDate) { this.onDate = onDate; } public Time getStartTime() { return StartTime; } public void setStartTime(Time startTime) { StartTime = startTime; } public Time getEndTime() { return EndTime; } public void setEndTime(Time endTime) { EndTime = endTime; } } <file_sep>/src/redux/reducers/AddReducer.js function AddReducer (state={ res: "" }, action) { switch (action.type) { case "ROW_CREATE_REQUEST": return { sending: true }; case "ROW_CREATE_SUCCESS": return { sending: false, res: action.payload }; case "ROW_CREATE_FAIL": return { sending: false, error: action.payload } default: return state; } } export { AddReducer };<file_sep>/DeleteInvoice.java package com.mayadata; import java.io.IOException; import java.io.PrintWriter; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; /** * Servlet implementation class DeleteServlet */ @WebServlet("/delEntry") public class DeleteInvoice extends HttpServlet { private static final long serialVersionUID = 1L; /** * @see HttpServlet#HttpServlet() */ public DeleteInvoice() { super(); // TODO Auto-generated constructor stub } /** * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) */ protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // TODO Auto-generated method stub PrintWriter out = response.getWriter(); response.setContentType("application/json"); response.setCharacterEncoding("UTF-8"); try{ String dbDriver = "com.mysql.cj.jdbc.Driver"; String dbURL = "jdbc:mysql://localhost:3306/"; String dbName = "mayadata"; String dbUsername = "root"; String dbPassword = "<PASSWORD>"; Class.forName(dbDriver); Connection con = DriverManager.getConnection(dbURL + dbName, dbUsername, dbPassword); HttpSession session = request.getSession(true); String sid = (String) session.getAttribute("id"); PreparedStatement ps=con.prepareStatement("DELETE FROM Meetings WHERE Meetingid = ?"); ps.setLong(1,Long.parseLong(sid)); ps.executeUpdate(); response.setStatus(200); con.close(); } catch (Exception e) { e.printStackTrace(); response.setStatus(400); } finally { out.flush(); } } /** * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) */ }<file_sep>/src/redux/actions/TableAction.js import axios from 'axios'; export const TableAction = () => { return async dispatch => { try { const { data } = await axios.get(`http://localhost:8080/Summer_Internship_Backend/View`); console.log(data) dispatch({ type: "TABLE_DATA_SUCCESS", payload: data }); } catch (error) { dispatch({ type: "TABLE_DATA_FAIL", payload: error.message }); } } }<file_sep>/AddData.java package com.mayadata; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.sql.*; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; @WebServlet(name = "AddData", urlPatterns = {"/Add"}) public class AddData extends HttpServlet { private static final long serialVersionUID = 1L; private static PreparedStatement stmt; private static Connection conn; public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String query="INSERT INTO Meetings (MeetingName, Attendees, onDate, StartTime, EndTime) VALUES(?,?,?,?,?)"; try{ SimpleDateFormat dfmt= new SimpleDateFormat("yyyy-MM-dd"); SimpleDateFormat strTime= new SimpleDateFormat("hh:mm:ss"); java.sql.Time xTime= new java.sql.Time(new java.util.Date().getTime()); String MeetingName=request.getParameter("MeetingName"); int Attendees=Integer.parseInt(request.getParameter("Attendees")); Date onDate=dfmt.parse(request.getParameter("onDate")); Time StartTime=xTime.parse(request.getParameter("StartTime")); Time EndTime=request.getParameter("EndTime"); Connection dbCon=null; PreparedStatement pstmt=null; ResultSet rs = null; String url = "jdbc:mysql://localhost:3306/"; String schema = "mayadata"; String user = "root"; String pass = "<PASSWORD>"; String query = "SELECT * FROM Meetings"; Class.forName("com.mysql.cj.jdbc.Driver"); dbCon = DriverManager.getConnection(url+schema, user, pass); if(dbCon!=null) System.out.println("Connection successful"); else System.out.println("Connection unsuccessful"); stmt = dbCon.prepareStatement(query); POJO pojo=new POJO(); pojo.setMeetingName(MeetingName); stmt.setString(1,pojo.getMeetingName()); pojo.setAttendees(Attendees); stmt.setString(2, pojo.getAttendees()); pojo.setOnDate(onDate); Date onDate1=pojo.getOnDate(); java.sql.Date onDate11=new java.sql.Date(onDate1.getTime()); stmt.setDate(3, onDate11); java.sql.Time xStartTime = new java.sql.Time(Calendar.getInstance().getTime().getTime()); stmt.setTime(4, xStartTime); java.sql.Time xEndTime = new java.sql.Time(Calendar.getInstance().getTime().getTime()); stmt.setTime(5, xEndTime); stmt.executeUpdate(); conn.close(); response.setContentType("application/json"); response.setCharacterEncoding("UTF-8"); }catch (Exception e){ e.printStackTrace(); } } public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doGet(request, response); } }<file_sep>/src/components/Body/home.js import React from 'react'; import {useSelector, useDispatch} from 'react-redux'; import {TableAction} from '../../redux/actions/TableAction'; import {DeleteAction} from '../../redux/actions/DeleteAction'; export default function Home() { const dispatch = useDispatch(); const [value, setValue] = React.useState(0); // React.useEffect(() => { // dispatch(TableAction()); // }, []); const tableData = useSelector(state => { // console.log(state); // console.log(state.tableData); // console.log(state.tableData.tableData); return state.tableData.tableData; }); // const tableData=[] // const tempData = [{ // Meetingid: "1", // MeetingName: "asdf", // Attendees: "123", // onDate: "2021-04-07", // StartTime: "09:56", // EndTime: "08:56", // },{ // Meetingid: "2", // MeetingName: "asdf", // Attendees: "123", // onDate: "2021-04-07", // StartTime: "09:56", // EndTime: "08:56", // },{ // Meetingid: "3", // MeetingName: "asdf", // Attendees: "123", // onDate: "2021-04-07", // StartTime: "09:56", // EndTime: "08:56", // },{ // Meetingid: "4", // MeetingName: "asdf", // Attendees: "123", // onDate: "2021-04-07", // StartTime: "09:56", // EndTime: "08:56", // },] // tableData.push([...tempData]); const [data, setData] = React.useState({ Meetingid: "", MeetingName: "", Attendees: "", onDate: new Date(""), StartTime: new Date().toLocaleTimeString(), EndTime: new Date().toLocaleTimeString(), }); function reset () { setData({ Meetingid: "", MeetingName: "", Attendees: "", onDate: new Date(""), StartTime: new Date().toLocaleTimeString(), EndTime: new Date().toLocaleTimeString(), }) } console.log(data) const addingToTable = () => { tableData.push(data); setValue(value+1); console.log(tableData); reset(); } var changeHandle = (e) => { console.log(data); setData( (prevState) => ({ ...prevState, [e.target.name]: e.target.value })); } const handleDateChange = (date) => { var d = new Date(date).toLocaleDateString('en-CA'); console.log(d) setData((prevState) => ({ ...prevState, due_in_date: d })); }; const doit = (MeetingID, indx) => { dispatch(DeleteAction( MeetingID )); tableData.splice(indx, 1); setValue(value+1); }; const [searchTerm, setSearchTerm] = React.useState(""); const [searchResults, setSearchResults] = React.useState([]); React.useEffect(() => { console.log(searchTerm); console.log(tableData); const results = tableData.filter(person => { console.log(person.MeetingName.toLowerCase().includes(searchTerm)) return person.MeetingName.toLowerCase().includes(searchTerm) }); setSearchResults([...results]); console.log(results); console.log(searchResults); }, [searchTerm]); return ( <div> <div className="bodyHeading"> My Meetings </div> <div className="card" style={{marginBottom: '9vh'}}> <div className="bodyMenu"> <div className="searchBox"> <i class="fas fa-search"></i> <input className="search" value={searchTerm} onChange={(e)=>setSearchTerm(e.target.value)}></input> </div> <div className="paddingRight"> From: &nbsp;&nbsp;&nbsp; <input className="date" type="date"></input> </div> <div className="paddingRight"> To: &nbsp;&nbsp;&nbsp; <input className="date" type="date"></input> </div> </div> </div> <div className="card" style={{marginTop: '9vh'}}> <table style={{width: "100%"}}> <tr> <td className="col theading">Sl. no.</td> <td className="col theading">Meeting name</td> <td className="col theading">No of People attending</td> <td className="col theading">Date</td> <td className="col theading">Start time</td> <td className="col theading">End time</td> <td className="col theading">Actions</td> </tr> {searchTerm===""? <> {tableData.map((row, index) => { return ( <tr> <td className="col">{index}</td> <td className="col">{row.MeetingName}</td> <td className="col">{row.Attendees}</td> <td className="col">{row.onDate}</td> <td className="col">{row.StartTime}</td> <td className="col">{row.EndTime}</td> <td className="col"><i className="fas fa-trash trash" onClick={()=>doit(row.Meetingid, index)}></i></td> </tr> ) })} <tr> <td className="col"></td> <td className="col"> <input className="input" name="MeetingName" value={data.MeetingName} onChange={changeHandle} ></input> </td> <td className="col"> <input className="input" type="number" name="Attendees" value={data.Attendees} onChange={changeHandle} ></input> </td> <td className="col"> <input className="date" type="date" name="onDate" value={data.onDate} onChange={changeHandle} ></input> </td> <td className="col"> <input className="date" type="time" name="StartTime" value={data.StartTime} onChange={changeHandle} ></input> </td> <td className="col"> <input className="date" type="time" name="EndTime" value={data.EndTime} onChange={changeHandle} ></input> </td> <td className="col"> <button className="addButton" onClick={addingToTable}>Add</button> </td> </tr> </> : <> { searchResults.length>0? searchResults.map((row, index) => { return ( <tr> <td className="col">{index}</td> <td className="col">{row.MeetingName}</td> <td className="col">{row.Attendees}</td> <td className="col">{row.onDate}</td> <td className="col">{row.StartTime}</td> <td className="col">{row.EndTime}</td> <td className="col"><i className="fas fa-trash trash" onClick={()=>doit(row.Meetingid, index)}></i></td> </tr> ) }):null } </> } </table> </div> </div> ) } <file_sep>/src/components/Navbar/navbar.js import React from 'react' export default function navbar(props) { return ( <div className={props.isOpen? "navbarOpen" : "navbarClosed"}> <div className="navHead"> <i className="fas fa-bars navIcon" onClick={() => props.setIsOpen(!props.isOpen)}></i> <div className={props.isOpen? "navHeading" : "navHeadingNone"}>1828042</div> </div> <div className="navBody"> <div className={props.body==0? "navMenusActive" : "navMenus"} onClick={() => props.setBody(0)}> <i class="fas fa-home navIcon"></i> <div className={props.isOpen? "navHeading" : "navHeadingNone"}>Home</div> </div> <div className={props.body==1? "navMenusActive" : "navMenus"} onClick={() => props.setBody(1)}> <i class="fas fa-user navIcon"></i> <div className={props.isOpen? "navHeading" : "navHeadingNone"}>About Me</div> </div> </div> </div> ) }
8c584b1bcca74d8127fd9fe04549e85fb86c1921
[ "JavaScript", "Java" ]
11
JavaScript
abhinav2000kiit/hackathon
7d68c16b867c65a9906ca4bcde29ad7ab9c1885c
a5662e3ca4f51b543b92b7e5e7848e34763b16ac
refs/heads/master
<file_sep> /** * Write a description of class GVDate here. * * @author (your name) * @version (a version number or a date) */ import java.util.Scanner; import java.text.DecimalFormat; public class GVdate { private int month; private int day; private int year; private final int MONTH = 1; private final int DAY = 9; /** * Constructor for objects of class GVDate */ public GVdate() { month = 10; day = 12; year = 2020; } public GVdate( int month, int day, int year ) { this.month = month; this.day = day; this.year = year; if(!(this.isValidDate(month, day, year))){ this.month = 10; this.day = 12; this.year = 2020; } } public GVdate(String date) { int firstSlash = date.indexOf("/"); int secondSlash = date.indexOf("/", firstSlash + 1); int m = Integer.parseInt(date.substring(0, firstSlash)); int d = Integer.parseInt(date.substring(firstSlash + 1, secondSlash)); int y = Integer.parseInt(date.substring(secondSlash + 1)); if(this.isValidDate(m, d, y)){ this.month = m; this.day = d; this.year = y; } else { this.month = 10; this.day = 12; this.year = 2020; } } public int getMonth() { return month; } public int getDay() { return day; } public int getYear() { return year; } public String toString() { return this.getMonth() + "/" + this.getDay() + "/" + this.getYear(); } public String toString(int format) { DecimalFormat twoDigs = new DecimalFormat("00"); DecimalFormat fourDigs = new DecimalFormat("0000"); switch(format) { case 1: return this.toString(); case 2: String month = twoDigs.format(this.month); String day = twoDigs.format(this.day); String year = fourDigs.format(this.year); return month + "/" + day + "/" + year; case 3: String monthsAsShortText = "JanFebMarAprMayJunJulAugSepOctNovDec"; String monthOfDate = monthsAsShortText.substring(((this.month - 1) * 3), ((this.month - 1) * 3 + 3)); return monthOfDate + " " + twoDigs.format(this.day) + ", " + fourDigs.format(this.year); case 4: String monthFullText = ""; switch(this.month){ case 1: monthFullText = "January"; break; case 2: monthFullText = "February"; break; case 3: monthFullText = "March"; break; case 4: monthFullText = "April"; break; case 5: monthFullText = "May"; break; case 6: monthFullText = "June"; break; case 7: monthFullText = "July"; break; case 8: monthFullText = "August"; break; case 9: monthFullText = "September"; break; case 10: monthFullText = "October"; break; case 11: monthFullText = "November"; break; case 12: monthFullText = "December"; break; } return monthFullText + " " + this.day + ", " + this.year; } return "ERROR: programmer screwed up here"; } public boolean isMyBirthday() { if(this.toString().equals("5/16/2002")){ return true; } else { return false; } } public boolean isLeapYear(int y){ if(y % 400 == 0){ return true; } else if ((y % 4 == 0) && (y % 100 != 0)){ return true; } else { return false; } } public void setMonth( int m ) { if(this.isValidDate(m, this.day, this.year)){ this.month = m; } else { System.out.println("InvalidDate: " + m + "/" + this.day + "/" + this.year); } } public void setDay( int d ) { if(this.isValidDate(this.month, d, this.year)){ this.day = d; } else { System.out.println("InvalidDate: " + this.month + "/" + d + "/" + this.year); } } public void setYear( int y) { if(this.isValidDate(this.month, this.day, y)){ this.year = y; } else { System.out.println("InvalidDate: " + this.month + "/" + this.day + "/" + y); } } public void setDate (int m, int d, int y) { if(this.isValidDate(m, d, y)){ this.month = m; this.day = d; this.year = y; } else { System.out.println("InvalidDate: " + m + "/" + d + "/" + y); } } private int getLastDayOfMonth(int m, int y){ switch(m){ case 1: return 31; case 2: if(this.isLeapYear(y)){ return 29; } else { return 28; } case 3: return 31; case 4: return 30; case 5: return 31; case 6: return 30; case 7: return 31; case 8: return 31; case 9: return 30; case 10: return 31; case 11: return 30; case 12: return 31; } return -1; // should never happen } private boolean isValidDate(int m, int d, int y) { if(y > 0){ if(m > 0 && m < 13){ if(d > 0 && d <= this.getLastDayOfMonth(m, y)){ return true; } } } return false; } public boolean equals(GVdate otherDate){ if(this.month == otherDate.getMonth()){ if(this.day == otherDate.getDay()){ if(this.year == otherDate.getYear()){ return true; } } } return false; } public void nextDay(){ this.day = (this.day % this.getLastDayOfMonth(this.month, this.year)) + 1; if(this.day == 1){ this.nextMonth(); } } public void nextMonth(){ this.month = (this.month % 12) + 1; if(this.month == 1){ this.nextYear(); } } public void nextYear(){ this.year++; } public void skipAhead(int numDays){ if(numDays > 0){ for(int i = 0; i < numDays; i++){ this.nextDay(); } } } } <file_sep><!DOCTYPE HTML> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (11.0.2) on Mon Oct 12 17:04:48 EDT 2020 --> <title>GVdateTestPhase2</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="dc.created" content="2020-10-12"> <link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style"> <script type="text/javascript" src="script.js"></script> </head> <body> <script type="text/javascript"><!-- try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="GVdateTestPhase2"; } } catch(err) { } //--> var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; var tableTab = "tableTab"; var activeTableTab = "activeTableTab"; </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ======== START OF CLASS DATA ======== --> <main role="main"> <div class="header"> <h2 title="Class GVdateTestPhase2" class="title">Class GVdateTestPhase2</h2> </div> <div class="contentContainer"> <ul class="inheritance"> <li>java.lang.Object</li> <li> <ul class="inheritance"> <li>GVdateTestPhase2</li> </ul> </li> </ul> <div class="description"> <ul class="blockList"> <li class="blockList"> <hr> <pre>public class <span class="typeNameLabel">GVdateTestPhase2</span> extends java.lang.Object</pre> <div class="block">The test class GVdate.</div> <dl> <dt><span class="simpleTagLabel">Version:</span></dt> <dd>(1.0.0), (1.0.1) - Ana Posada To include: 1. contructor GVdate (String date) testing 2. invalid date testing for constructors and setDate 3. invalid date testing for setMonth, setDay and setYear</dd> <dt><span class="simpleTagLabel">Author:</span></dt> <dd><NAME></dd> </dl> </li> </ul> </div> <div class="summary"> <ul class="blockList"> <li class="blockList"> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <section role="region"> <ul class="blockList"> <li class="blockList"><a id="constructor.summary"> <!-- --> </a> <h3>Constructor Summary</h3> <table class="memberSummary"> <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Constructor</th> <th class="colLast" scope="col">Description</th> </tr> <tr class="altColor"> <th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E()">GVdateTestPhase2</a></span>()</code></th> <td class="colLast">&nbsp;</td> </tr> </table> </li> </ul> </section> <!-- ========== METHOD SUMMARY =========== --> <section role="region"> <ul class="blockList"> <li class="blockList"><a id="method.summary"> <!-- --> </a> <h3>Method Summary</h3> <table class="memberSummary"> <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colSecond" scope="col">Method</th> <th class="colLast" scope="col">Description</th> </tr> <tr id="i0" class="altColor"> <td class="colFirst"><code>void</code></td> <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testConstructor2()">testConstructor2</a></span>()</code></th> <td class="colLast"> <div class="block">Test Date Constructor2(int m, int d, int y)</div> </td> </tr> <tr id="i1" class="rowColor"> <td class="colFirst"><code>void</code></td> <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testConstructor3()">testConstructor3</a></span>()</code></th> <td class="colLast"> <div class="block">Test Date Constructor3 GVdate (String date)</div> </td> </tr> <tr id="i2" class="altColor"> <td class="colFirst"><code>void</code></td> <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testDefaultConstructor()">testDefaultConstructor</a></span>()</code></th> <td class="colLast"> <div class="block">Test Date Constructor- no input parameters</div> </td> </tr> <tr id="i3" class="rowColor"> <td class="colFirst"><code>void</code></td> <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testInvalidDateConstructor2()">testInvalidDateConstructor2</a></span>()</code></th> <td class="colLast"> <div class="block">Test Invalid date constructor2(int m, int d, int y)</div> </td> </tr> <tr id="i4" class="altColor"> <td class="colFirst"><code>void</code></td> <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testInvalidDateConstructor3()">testInvalidDateConstructor3</a></span>()</code></th> <td class="colLast"> <div class="block">Test Invalid date constructor2(int m, int d, int y)</div> </td> </tr> <tr id="i5" class="rowColor"> <td class="colFirst"><code>void</code></td> <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testInvalidDateSetDate()">testInvalidDateSetDate</a></span>()</code></th> <td class="colLast"> <div class="block">Test invalid date setDate</div> </td> </tr> <tr id="i6" class="altColor"> <td class="colFirst"><code>void</code></td> <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testInvalidDaySetDay()">testInvalidDaySetDay</a></span>()</code></th> <td class="colLast"> <div class="block">Test InvalidDaysetDay</div> </td> </tr> <tr id="i7" class="rowColor"> <td class="colFirst"><code>void</code></td> <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testInvalidMonthSetMonth()">testInvalidMonthSetMonth</a></span>()</code></th> <td class="colLast"> <div class="block">Test invalid month setMonth</div> </td> </tr> <tr id="i8" class="altColor"> <td class="colFirst"><code>void</code></td> <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testInvalidYearSetYear()">testInvalidYearSetYear</a></span>()</code></th> <td class="colLast"> <div class="block">Test setYear</div> </td> </tr> <tr id="i9" class="rowColor"> <td class="colFirst"><code>void</code></td> <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testLeapYear()">testLeapYear</a></span>()</code></th> <td class="colLast"> <div class="block">Test Leap Year</div> </td> </tr> <tr id="i10" class="altColor"> <td class="colFirst"><code>void</code></td> <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testSetDate()">testSetDate</a></span>()</code></th> <td class="colLast"> <div class="block">Test setDate</div> </td> </tr> <tr id="i11" class="rowColor"> <td class="colFirst"><code>void</code></td> <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testSetDay()">testSetDay</a></span>()</code></th> <td class="colLast"> <div class="block">Test setDay</div> </td> </tr> <tr id="i12" class="altColor"> <td class="colFirst"><code>void</code></td> <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testSetMonth()">testSetMonth</a></span>()</code></th> <td class="colLast"> <div class="block">Test setMonth</div> </td> </tr> <tr id="i13" class="rowColor"> <td class="colFirst"><code>void</code></td> <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testSetYear()">testSetYear</a></span>()</code></th> <td class="colLast"> <div class="block">Test setYear</div> </td> </tr> </table> <ul class="blockList"> <li class="blockList"><a id="methods.inherited.from.class.java.lang.Object"> <!-- --> </a> <h3>Methods inherited from class&nbsp;java.lang.Object</h3> <code>clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li> </ul> </li> </ul> </section> </li> </ul> </div> <div class="details"> <ul class="blockList"> <li class="blockList"> <!-- ========= CONSTRUCTOR DETAIL ======== --> <section role="region"> <ul class="blockList"> <li class="blockList"><a id="constructor.detail"> <!-- --> </a> <h3>Constructor Detail</h3> <a id="&lt;init&gt;()"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>GVdateTestPhase2</h4> <pre>public&nbsp;GVdateTestPhase2()</pre> </li> </ul> </li> </ul> </section> <!-- ============ METHOD DETAIL ========== --> <section role="region"> <ul class="blockList"> <li class="blockList"><a id="method.detail"> <!-- --> </a> <h3>Method Detail</h3> <a id="testDefaultConstructor()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>testDefaultConstructor</h4> <pre class="methodSignature">public&nbsp;void&nbsp;testDefaultConstructor()</pre> <div class="block">Test Date Constructor- no input parameters</div> </li> </ul> <a id="testConstructor2()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>testConstructor2</h4> <pre class="methodSignature">public&nbsp;void&nbsp;testConstructor2()</pre> <div class="block">Test Date Constructor2(int m, int d, int y)</div> </li> </ul> <a id="testConstructor3()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>testConstructor3</h4> <pre class="methodSignature">public&nbsp;void&nbsp;testConstructor3()</pre> <div class="block">Test Date Constructor3 GVdate (String date)</div> </li> </ul> <a id="testInvalidDateConstructor2()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>testInvalidDateConstructor2</h4> <pre class="methodSignature">public&nbsp;void&nbsp;testInvalidDateConstructor2()</pre> <div class="block">Test Invalid date constructor2(int m, int d, int y)</div> </li> </ul> <a id="testInvalidDateConstructor3()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>testInvalidDateConstructor3</h4> <pre class="methodSignature">public&nbsp;void&nbsp;testInvalidDateConstructor3()</pre> <div class="block">Test Invalid date constructor2(int m, int d, int y)</div> </li> </ul> <a id="testSetDate()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>testSetDate</h4> <pre class="methodSignature">public&nbsp;void&nbsp;testSetDate()</pre> <div class="block">Test setDate</div> </li> </ul> <a id="testInvalidDateSetDate()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>testInvalidDateSetDate</h4> <pre class="methodSignature">public&nbsp;void&nbsp;testInvalidDateSetDate()</pre> <div class="block">Test invalid date setDate</div> </li> </ul> <a id="testSetMonth()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>testSetMonth</h4> <pre class="methodSignature">public&nbsp;void&nbsp;testSetMonth()</pre> <div class="block">Test setMonth</div> </li> </ul> <a id="testSetYear()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>testSetYear</h4> <pre class="methodSignature">public&nbsp;void&nbsp;testSetYear()</pre> <div class="block">Test setYear</div> </li> </ul> <a id="testSetDay()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>testSetDay</h4> <pre class="methodSignature">public&nbsp;void&nbsp;testSetDay()</pre> <div class="block">Test setDay</div> </li> </ul> <a id="testInvalidDaySetDay()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>testInvalidDaySetDay</h4> <pre class="methodSignature">public&nbsp;void&nbsp;testInvalidDaySetDay()</pre> <div class="block">Test InvalidDaysetDay</div> </li> </ul> <a id="testInvalidMonthSetMonth()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>testInvalidMonthSetMonth</h4> <pre class="methodSignature">public&nbsp;void&nbsp;testInvalidMonthSetMonth()</pre> <div class="block">Test invalid month setMonth</div> </li> </ul> <a id="testInvalidYearSetYear()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>testInvalidYearSetYear</h4> <pre class="methodSignature">public&nbsp;void&nbsp;testInvalidYearSetYear()</pre> <div class="block">Test setYear</div> </li> </ul> <a id="testLeapYear()"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>testLeapYear</h4> <pre class="methodSignature">public&nbsp;void&nbsp;testLeapYear()</pre> <div class="block">Test Leap Year</div> </li> </ul> </li> </ul> </section> </li> </ul> </div> </div> </main> <!-- ========= END OF CLASS DATA ========= --> </body> </html>
ccb3c75c42a603076a7f2f8a5eef255c39bb1dc1
[ "Java", "HTML" ]
2
Java
3215987/CIS-163-Date
4daef4240975662181ae363abdaf9a4e73d1f4af
291e46974bb4d56547969de2808f0a57f9175efe
refs/heads/master
<repo_name>lizametcalfe/Price-indices<file_sep>/Price_index_code/LCPI.py # -*- coding: utf-8 -*- """ Created on Wed May 4 13:07:39 2016 @author: <NAME> Date: 07/04/2016 Verion: 0.2 Inputs: WS price data outputs: DataFrame with chained index for all time periods changes - added updated aggregation code """ import os import pandas as pd import numpy as np import math from scipy.stats import gmean from fuzzywuzzy import fuzz pd.options.display.max_seq_items = 2000 pd.options.display.max_colwidth = 1000 x = pd.read_csv('/home/mint/my-data/Web_scraped_CPI/Code_upgrade/data/august_offer.csv',encoding="utf-8") x=x[x['item_price_num']>0] def _removeNonAscii(s): return "".join(i for i in s if ord(i)<128) x["product_name"]=x["product_name"].apply(lambda s: _removeNonAscii(s)) x["idvar"]=x["product_name"]+" "+x["store"] x = x[["ons_item_no","product_name","store","monthday","item_price_num","idvar"]] unwanted_words =["tesco","sainsbury","sainsbury's","tesco's","sainsburies","waitrose","waitrose's"] x["product_name"] = x["product_name"].apply(lambda s: ' '.join(filter(lambda x: x.lower() not in unwanted_words, s.split()))) fulldata = x dates14 = pd.DataFrame() dates14["date"] = [20140610,20140715, 20140812, 20140919, 20141014, 20141111, 20141209, 20150113] dates15 = pd.DataFrame() dates15["date"] = [20150113, 20150217, 20150317, 20150414, 20150512, 20150609, 20150714, 20150811, 20150908, 20151013, 20151110,20151215, 20160112] dates16 = pd.DataFrame() dates16["date"] = [20160112, 20160216, 20160315, 20160412, 20160510, 20160614, 20160712, 20160816] fx14=fulldata[fulldata.monthday.isin(dates14["date"])] fx15=fulldata[fulldata.monthday.isin(dates15["date"])] fx16=fulldata[fulldata.monthday.isin(dates16["date"])] def compreplace(data,sda,i): row=data[data["Missing"]=="Yes"][i-1:i] if row.empty: data =data[["product_name","ons_item_no","idvar","store","monthday","item_price_num","Missing"]] return data.sort_values("monthday") else: sda = sda[sda["ons_item_no"]==int(row["ons_item_no"])] k1 = sda[sda["monthday"] .isin(row["monthday"])] k1 = k1[k1["store"] .isin(row["store"])] d = k1.apply(lambda x: fuzz.ratio(x['product_name'], row['product_name']), axis=1) d = d[d >= 60] if len(d) != 0: v = k1.ix[d.idxmax(), ['store','monthday','item_price_num','product_name','idvar','ons_item_no']].values v= pd.Series(v, index=['store', 'monthday','item_price_num','product_name','idvar','ons_item_no']) v= pd.DataFrame([{"product_name":v["product_name"],"store":v["store"],"ons_item_no":v["ons_item_no"],"idvar":v["idvar"],"monthday":v["monthday"],"item_price_num":v["item_price_num"],"Missing":"Replaced"}]) data = data[data["monthday"] != int(v["monthday"])] data =data[["product_name","store","monthday","item_price_num","Missing","ons_item_no","idvar"]] data = data.append(v).sort_values("monthday") else: data =data[["product_name","store","monthday","item_price_num","Missing","ons_item_no","idvar"]] data = data.sort_values("monthday") row2 = data[data["monthday"]==int(row["monthday"])]["idvar"].item() sdb = sda[sda["idvar"]==str(row2)] sdb["Missing"]= "Replaced" data2 = pd.concat([data.loc[data['item_price_num'].isnull()],sdb]) data3 = pd.concat([data.loc[data['item_price_num'].notnull()],data2.drop_duplicates(subset='monthday',keep='last')]) data3 = data3.drop_duplicates(subset='monthday',keep='first') return data3.sort_values("monthday") def runfuzz(data,fx2): for i in range(1,6): the1 = compreplace(data,fx2,i) the2 = compreplace(the1,fx2,i) the3 = compreplace(the2,fx2,i) the4= compreplace(the3,fx2,i) the5 = compreplace(the4,fx2,i) the6 = compreplace(the5,fx2,i) return the6 def LCPI(x1,fx2, dates): dates["dateplus"]= dates["date"].apply(lambda s: int(s)+1) dates["datemin"]= dates["date"].apply(lambda s: int(s)-1) x2=x1[x1.monthday.isin(dates["date"])] if x2.empty: print("empty") return None xplus=x1[x1.monthday.isin(dates["dateplus"])] xmin=x1[x1.monthday.isin(dates["datemin"])] #add missing column saying no x2["Missing"] = "No" #mydata2["std_price_origin"] = mydata2["std_price"] xplus["Missing"] = "Plus replace" xmin["Missing"] = "Min replace" xplus["monthday"]=xplus["monthday"]-1 xmin["monthday"]=xmin["monthday"]+1 bplus=x2.append(xplus,ignore_index = True) bplus2= bplus.drop_duplicates(subset='monthday', take_last=False) bmin=bplus2.append(xmin,ignore_index = True) x3 = bmin.drop_duplicates(subset='monthday', take_last=False).sort_values("monthday") del dates["dateplus"] del dates["datemin"] table = pd.merge(x3, dates, how='outer', left_on='monthday', right_on='date') del table["monthday"] table["monthday"] = table["date"] del table["date"] table["ons_item_no"] = table["ons_item_no"][table["ons_item_no"].notnull()].iloc[0] table["idvar"] = table["idvar"][table["idvar"].notnull()].iloc[0] table["product_name"] = table["product_name"][table["product_name"].notnull()].iloc[0] table["idvar"] = table["idvar"][table["idvar"].notnull()].iloc[0] table["store"] = table["store"][table["store"].notnull()].iloc[0] table["Missing"] = table["Missing"].apply(lambda x: "Yes" if pd.isnull(x) else x) data =table.sort_values("monthday") take =runfuzz(data,fx2) take2 =runfuzz(take,fx2) take3 =runfuzz(take2,fx2) take4 =runfuzz(take3,fx2) take4=take4.fillna(method="pad",limit=1) print(table["idvar"].ix[0]) take4 =take4[["product_name","store","monthday","item_price_num","Missing","ons_item_no","idvar"]] return take4 print "done" def runthrough(data, dates): a = [] data = data.sort_values("idvar", ascending=False) for i in np.unique(data["idvar"]): a.append(LCPI(data[data["idvar"] == i], data, dates)) aa = np.concatenate(a, axis=0) aa=pd.DataFrame(aa) aa.columns=["product_name","store","monthday","item_price_num","Missing","ons_item_no","idvar"] return aa x14 = runthrough(fx14, dates14) x14.to_csv("\home\mint\my-data\Web_scraped_CPI\Code_upgrade\data\LCPI14.csv") x15 = runthrough(fx15, dates15) x15.to_csv("osu\home\mint\my-data\Web_scraped_CPI\Code_upgrade\data\LCPI15.csv") x16 = runthrough(fx16, dates16) x16.to_csv("\home\mint\my-data\Web_scraped_CPI\Code_upgrade\data\LCPI16.csv") <file_sep>/Price_index_code/LCPI_Price_relatices.py # -*- coding: utf-8 -*- """ Created on Wed May 4 13:07:39 2016 @author: <NAME> Date: 07/04/2016 Verion: 0.2 Inputs: WS price data outputs: DataFrame with chained index for all time periods changes - added updated aggregation code """ x14 = pd.read_csv("\home\mint\my-data\Web scraped CPI\Code upgrade\data\LCPI14.csv",encoding="utf-8") x15 = pd.read_csv("\home\mint\my-data\Web scraped CPI\Code upgrade\data\LCPI15.csv",encoding="utf-8") x16 = pd.read_csv("\home\mint\my-data\Web scraped CPI\Code upgrade\data\LCPI16.csv",encoding="utf-8") x14["months"] = x14["monthday"].apply(lambda x: float(str(x)[0:6])) x15["months"] = x15["monthday"].apply(lambda x: float(str(x)[0:6])) x16["months"] = x16["monthday"].apply(lambda x: float(str(x)[0:6])) def LCPIdate(data, date, datevar, pricevar): data_prices = data.loc[data[datevar].astype(int) == int(date)] data_prices = data_prices[["product_name",pricevar]] data_prices = data_prices.groupby(["product_name"]) data_prices = data_prices[pricevar].agg({"gmean":gmean}) data_prices.reset_index(inplace=True) return data_prices def LCPIprice(data,idvar,classvar,datevar,pricevar,basedate, year): classvalue = pd.unique(data[classvar])[0] data["years"] = data[datevar].apply(lambda x: str(x)[0:4]) dataa = data[data["years"] == streh(year)] datab = data[data[datevar].astype(int) == int(str(year+1)+"01")] data = pd.concat([dataa,datab],axis=0) date = pd.unique(data[datevar]) df1 = pd.DataFrame({"i" : range(0,len(date)),"period":date,"ons_item_no":classvalue}) df1["LCPI"]="empty" base = LCPIdate(data, basedate, datevar, pricevar) base["base_price"] = base["gmean"] del base["gmean"] for i in date: try: datamerged=pd.merge(base,LCPIdate(data,int(i), datevar, pricevar), how='inner', on='product_name') datamerged.loc[:,'price_relative'] = datamerged.loc[:,'gmean']/datamerged.loc[:,'base_price'] datamerged['pr_log'] = datamerged['price_relative'].apply(math.log) datamerged["groups"] = 1 test1 = datamerged.groupby('groups') lopp = test1['pr_log'].apply(np.mean).apply(np.exp)*100 if lopp.empty: lopp = 100 else: lopp = float(lopp) df1["LCPI"][df1["period"]==i] = lopp except: df1["LCPI"][df1["period"]==i] = 100 # print(df1["ons_item_number"]) return df1.sort_values("period") #%time #Index1 = chaineddaily(x1,"idvar","ons_item_no","month","item_price_num") def runthrough(data,basedate,date): a = [] for i in np.unique(data["ons_item_no"]): a.append(LCPIprice(data[data["ons_item_no"] == i], 'idvar', 'ons_item_no','months','item_price_num', basedate,date)) aa = np.concatenate(a, axis=0) # axis = 1 would append things as new columns aa=pd.DataFrame(aa) aa.columns=["i", "ons_item_number", "period", "LCPI"] return aa aa=pd.DataFrame() a = runthrough(x14, 201406, 2014) a.to_csv("/home/mint/my-data/Web_scraped_CPI/Code_upgrade/data/LCPI2014.csv") b = runthrough(x15, 201501, 2015) b.to_csv("/home/mint/my-data/Web_scraped_CPI/Code_upgrade/data/LCPI2015.csv") c = runthrough(x16, 201601, 2016) c.to_csv("/home/mint/my-data/Web_scraped_CPI/Code_upgrade/data/LCPI2016.csv")<file_sep>/Price_index_code/unitprice.py # -*- coding: utf-8 -*- """ Created on Wed May 4 13:07:39 2016 @author: <NAME> Date: 07/04/2016 Verion: 0.2 Inputs: WS price data outputs: DataFrame with chained index for all time periods changes - added updated aggregation code """ import os import pandas as pd import numpy as np import math from scipy.stats import gmean #%% #Import Dataset # #os.chdir('D:/webscraped/New_Data') ####monthly (updated) ######## x = pd.read_csv('/home/mint/my-data/Web_scraped_CPI/Code_upgrade/data/august_offer.csv',encoding="utf-8") x=x[x['item_price_num']>0] #####daily (updated) ###### #x = pd.read_csv('L:/Branch folders/Index Numbers/Research - web scraping/Data April 16/data_imputed_20160504.csv',encoding="latin_1") #x=x[x['item_price_num']>0] #########weekly######### ####fortnightly########## x["idvar"]=x["product_name"]+"_"+x["store"] ##for single item run this part#### #x1=x[x["ons_item_no"]==212720] #%% #x1=x[x["ons_item_no"]==212720] #%% x["months"] = x["monthday"].apply(lambda x: float(str(x)[0:6])) x14= x[x["months"]<201502] x15= x[x["months"]>=201501] x15= x15[x15["months"]<201602] x16= x[x["months"]>=201601] def unitdate(data, date, datevar, pricevar): data_prices = data.loc[data[datevar].astype(int) == int(date)] data_prices = data_prices[["product_name",pricevar]] data_prices = data_prices.groupby(["product_name"]) data_prices = data_prices[pricevar].agg({"gmean":gmean}) data_prices.reset_index(inplace=True) return data_prices def unitprice(data,idvar,classvar,datevar,pricevar,basedate, year): classvalue = pd.unique(data[classvar])[0] data["years"] = data[datevar].apply(lambda x: str(x)[0:4]) dataa = data[data["years"] == str(year)] datab = data[data[datevar].astype(int) == int(str(year+1)+"01")] data = pd.concat([dataa,datab],axis=0) date = pd.unique(data[datevar]) df1 = pd.DataFrame({"i" : range(0,len(date)),"period":date,"ons_item_no":classvalue}) df1["unit"]="empty" base = unitdate(data, basedate, datevar, pricevar) base["base_price"] = base["gmean"] del base["gmean"] for i in date: try: datamerged=pd.merge(base,unitdate(data,int(i), datevar, pricevar), how='inner', on='product_name') datamerged.loc[:,'price_relative'] = datamerged.loc[:,'gmean']/datamerged.loc[:,'base_price'] datamerged['pr_log'] = datamerged['price_relative'].apply(math.log) datamerged["groups"] = 1 test1 = datamerged.groupby('groups') lopp = test1['pr_log'].apply(np.mean).apply(np.exp)*100 if lopp.empty: lopp = 100 else: lopp = float(lopp) df1["unit"][df1["period"]==i] = lopp except: df1["unit"][df1["period"]==i] = 100 # print(df1["ons_item_number"]) return df1.sort_values("period") #%time #Index1 = chaineddaily(x1,"idvar","ons_item_no","month","item_price_num") def runthrough(data,basedate,date): a = [] for i in np.unique(data["ons_item_no"]): a.append(unitprice(data[data["ons_item_no"] == i], 'idvar', 'ons_item_no','months','item_price_num', basedate,date)) aa = np.concatenate(a, axis=0) # axis = 1 would append things as new columns aa=pd.DataFrame(aa) aa.columns=["i", "ons_item_number", "period", "unit"] return aa aa=pd.DataFrame() a = runthrough(x14, 201406, 2014) a.to_csv("/home/mint/my-data/Web_scraped_CPI/Code_upgrade/data/unit2014.csv") b = runthrough(x15, 201501, 2015) b.to_csv("/home/mint/my-data/Web_scraped_CPI/Code_upgrade/data/unit2015.csv") c = runthrough(x16, 201601, 2016) c.to_csv("/home/mint/my-data/Web_scraped_CPI/Code_upgrade/data/unit2016.csv")
49f0c5b736227103f1b8541b6ce260c256721a55
[ "Python" ]
3
Python
lizametcalfe/Price-indices
6f1bcd8744e6336ebbcbda6bc71637d585b29594
d97ee40826edeae1610f3a7c6a97fbeaf03e3b30
refs/heads/master
<repo_name>ModestoFiguereo/negator<file_sep>/README.MD # lambdax `lambdax` is an small module that allows you to implement partial application and build lambda expressions. ## Install - npm ```sh npm install --save lambdax ``` - bower ```sh bower install --save lambdax ``` ## Usage `lambdax` exposes two functions: `partial()` and `negate()`; ```js var partial = require('../lambdax').partial; var negate = require('../lambdax').negate; ``` ### partial() - partial() simple use: ```js function sum(a, b, c) { return a + b + c; } var sumPlus15 = partial(sum, 15); sumPlus15(25, 20); // => 60 ``` - partial() simple use passing context and arguments: ```js function getColeguesNamesFromPeople(people) { var _self = this; return people.reduce(function (colegues, person) { if (person.occupation === _self.occupation) { colegues.push(person.firstName); } return colegues; }, []); } var getJohnColeguesNamesFromPeople = partial( john, // context getJohnColeguesNamesFromPeople, ); getJohnColeguesNamesFromPeople(people); ``` - partial() use as a builder: ```js var findBackendDeveloper = partial() .expression(function () { return this.reduce(function (backendDevelopers, person) { if (person.occupation === 'Backend Developer') { backendDevelopers.push(person); } return backendDevelopers; }, []); }) .context(people) .build(); findBackendDeveloper(); ``` ### negate() - negate() simple use ```js var f = negate(function () { return true }); f() // => false. ``` - negate() simple use passing context and arguments: ```js var minAge = 18; var maxAge = 30; var isAgeNotInRange = negate( john, // context function (minAge, maxAge) { return this.age >= minAge && this.age <= maxAge; }, minAge // we could've passed maxAge too, // but we didn't just to demonstrate that can pass it latter ); isAgeNotInRange(maxAge); ``` - negate() use as a builder: ```js var isNotAgeInRange = negate() .expression(function (minAge, maxAge) { return this.age >= minAge && this.age <= maxAge; }) .context(john) .argument(18) .argument(30) .build(); isNotAgeInRange(); ``` **Note:** see test folder for more examples. <file_sep>/gulpfile.js var gulp = require('gulp'); var shell = require('gulp-shell'); var eslint = require('gulp-eslint'); var minify = require('gulp-minify'); var sequence = require('run-sequence'); var del = require('del'); gulp.task('default', function (done) { sequence( 'clean', 'test', 'build', done); }); gulp.task('clean', function () { del('dist/'); }); gulp.task('lint', function () { return gulp.src(['lambdax.js', 'test/*.test.js', '!dist/**/*']) .pipe(eslint()) .pipe(eslint.format()) .pipe(eslint.failOnError()); }); gulp.task('test', ['lint'], shell.task([ 'tape test/**/*.test.js | faucet' ])); gulp.task('build', function () { return gulp .src('lambdax.js') .pipe(minify({ ext: '.min.js' })) .pipe(gulp.dest('dist/')); }); <file_sep>/test/negate.test.js var tape = require('tape'), before = tape, after = tape, test = beforeEach(tape, function (assert) { assert.end(); }), test = afterEach(test, function (assert) { assert.end(); }) negate = require('../lambdax').negate; test('negate() simple use', function (assert) { var f = negate(function () { return true }); var t = negate(function () { return false }); assert.false(f(), 'f() should return false'); assert.true(t(), 'v() should return true'); assert.end(); }); test('negate() simple use passing arguments', function (assert) { function isUnderAge(age) { return age < 18 } var isNotUnderAge = negate(isUnderAge, 25); assert.true(isNotUnderAge(), 'isNotUnderAge() should return true'); assert.end(); }); test('negate() simple use passing context', function (assert) { var isNotUnderAge = negate(john, function () { return this.isUnderAge(); }); assert.false(isNotUnderAge(), 'isNotUnderAge() should return false'); assert.end(); }); test('negate() simple use passing context and arguments', function (assert) { var minAge = 18; var maxAge = 30; var isAgeNotInRange = negate( john, function (minAge, maxAge) { return this.age >= minAge && this.age <= maxAge; }, minAge // we could've passed maxAge too, // but we didn't just to demonstrate that can pass it latter ); assert.true(isAgeNotInRange(maxAge), 'isAgeInRange() should return true'); assert.end(); }); test('negate() use as a builder', function (assert) { var isNotAgeInRange = negate() .expression(function (minAge, maxAge) { return this.age >= minAge && this.age <= maxAge; }) .context(john) .argument(18) .argument(30) .build(); assert.true(isNotAgeInRange(), 'isAgeInRange() should return true'); assert.end(); }); test('negate() use as a builder with a collection of people', function (assert) { var minAge = 18; var maxAge = 30; var isNotAgeInRangeBuilder = negate() .expression(function (minAge, maxAge) { return this.age >= minAge && this.age <= maxAge; }) .argument(minAge) .argument(maxAge); for (var person in people) { var isNotAgeInRange = isNotAgeInRangeBuilder .context(people[person]) .build(); if (people[person].age >= minAge && people[person].age <= maxAge) { assert.false(isNotAgeInRange(), 'isAgeInRange() should return false for ' + people[person].firtName); } else { assert.true(isNotAgeInRange(), 'isAgeInRange() should return true for ' + people[person].firtName); } } assert.end(); }); function beforeEach(t, handler) { return function tapish(name, listener) { t(name, function (assert) { var _end = assert.end; assert.end = function () { assert.end = _end; listener(assert); }; handler(assert); }); }; } function afterEach(t, handler) { return function tapish(name, listener) { t(name, function (assert) { var _end = assert.end; assert.end = function () { assert.end = _end; handler(assert); }; listener(assert); }); }; } var john = { firtName: 'John', lastName: 'Connor', age: 17, isUnderAge: function isUnderAge() { return this.age < 18 } }; var people = [ { firtName: 'Francis', lastName: 'Brito', age: 21, }, { firtName: 'Michael', lastName: 'Castro', age: 22, }, { firtName: 'Modesto', lastName: 'Figuereo', age: 22, }, { firtName: 'Onil', lastName: 'Pereyra', age: 36, }, ]
df6597167ac954e1ea00512630fdbbdd4a2fd788
[ "Markdown", "JavaScript" ]
3
Markdown
ModestoFiguereo/negator
57eaaed4114806adf1d5ef94060987e02cc05ab7
280ad6ef6a0d26cdee62b9a97d1e075591b802d0
refs/heads/master
<repo_name>LiWeiQiangAndroid/showPopWindow<file_sep>/app/src/main/java/com/shinelon/showpopwindow/adapter/CategoryListAdapter.java package com.shinelon.showpopwindow.adapter; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.TextView; import com.shinelon.showpopwindow.R; import java.util.ArrayList; import java.util.HashMap; /** * Created by LiWeiQiang on 2016/6/27. * Email:<EMAIL> * Description : */ public class CategoryListAdapter extends BaseAdapter { private Context context; private ArrayList<HashMap<String,Object>> itemList; public CategoryListAdapter(Context context, ArrayList<HashMap<String,Object>> item){ this.context=context; this.itemList=item; } @Override public int getCount() { return itemList.size(); } @Override public Object getItem(int position) { return itemList.get(position); } @Override public long getItemId(int position) { return position; } @Override public View getView(int position, View convertView, ViewGroup parent) { final Datalist data = new Datalist(); convertView = LayoutInflater.from(context).inflate( R.layout.category_item, null); data.mNameTextView = (TextView) convertView.findViewById(R.id.name); data.mImage = (ImageView) convertView.findViewById(R.id.haschild); data.iv_my = (ImageView) convertView.findViewById(R.id.iv_my); final String name = itemList.get(position).get("name").toString(); data.mNameTextView.setText(name); data.mImage.setVisibility(View.VISIBLE); if (name.equals("全部分类")) { data.iv_my.setImageResource(R.mipmap.ic_category_all); }else if (name.equals("电影")) { data.iv_my.setImageResource(R.mipmap.ic_category_movie); } else if (name.equals("美食")) { data.iv_my.setImageResource(R.mipmap.ic_category_food); } else if (name.equals("酒店")) { data.iv_my.setImageResource(R.mipmap.ic_category_hot); } else if (name.equals("丽人")) { data.iv_my.setImageResource(R.mipmap.ic_category_health); } else if (name.equals("生活服务")) { data.iv_my.setImageResource(R.mipmap.ic_category_live); } else if (name.equals("娱乐")) { data.iv_my.setImageResource(R.mipmap.ic_category_shop); }else if (name.equals("旅游")) { data.iv_my.setImageResource(R.mipmap.ic_category_travel); } return convertView; } private class Datalist { public TextView mNameTextView; public ImageView mImage; public ImageView iv_my; } }
4152b6296ec75856048b3d83b7189eb63b3fc82f
[ "Java" ]
1
Java
LiWeiQiangAndroid/showPopWindow
2d8b2dbc0984eeeb4a9acea0e94f2251c153a8fa
4dc14ee2f18689a8afaef3b0946bc26d30c40ff4