text
stringlengths
1
1.05M
module load anaconda/2.1.0 module load bedtools/2.23.0 module load blasr/dev module load freebayes/0.9.14 module load samtools/1.1 module load hdf5/1.8.13 module load netcdf/4.3.2 module load R/3.1.0 module load perl/5.14.2 module load RepeatMasker/3.3.0 module load mpc/0.8.2 gmp/5.0.2 gcc/4.9.1
javapath=`tail -n+1 phasing_settings | head -n1`; gatk=`tail -n+2 phasing_settings | head -n1`; picard=`tail -n+3 phasing_settings | head -n1`; sequencing=`tail -n+4 phasing_settings | head -n1`; numberofcores=`tail -n+7 phasing_settings | head -n1`; sed -i 's/\?/N/g' reference.fa; sed -i 's/-//g' reference.fa; bwa index -a is reference.fa; samtools faidx reference.fa; $javapath -jar $picard CreateSequenceDictionary R=reference.fa O=reference.dict; nosamples=`wc -l samples.txt | awk '{print $1}'`; echo "samplename" "locus" "ref_length(bp)" "bp_covered_by_seq" "min_cov" "max_cov" "mean_inc_0" "mean_exc_0" > coverage_summary.txt; for i in `seq 1 $nosamples`; do name=`tail -n+$i samples.txt | head -n1`; forward_proto=`tail -n+5 phasing_settings | head -n1`; forward=`eval "echo $forward_proto"`; if [ $sequencing == paired ] then reverse_proto=`tail -n+6 phasing_settings | head -n1`; reverse=`eval "echo $reverse_proto"`; bwa mem -t $numberofcores reference.fa $forward $reverse > temp.sam; fi if [ $sequencing == single ] then bwa mem -t $numberofcores reference.fa $forward > temp.sam; fi $javapath -jar $picard AddOrReplaceReadGroups I=temp.sam O=tempsort.sam SORT_ORDER=coordinate LB=rglib PL=illumina PU=phase SM=everyone; $javapath -jar $picard MarkDuplicates MAX_FILE_HANDLES=1000 I=tempsort.sam O=tempsortmarked.sam M=temp.metrics AS=TRUE; $javapath -jar $picard SamFormatConverter I=tempsortmarked.sam O=tempsortmarked.bam; samtools index tempsortmarked.bam; $javapath -jar $gatk -T RealignerTargetCreator -R reference.fa -I tempsortmarked.bam -o tempintervals.list; $javapath -jar $gatk -T IndelRealigner -R reference.fa -I tempsortmarked.bam -targetIntervals tempintervals.list -o temp_realigned_reads.bam; $javapath -jar $gatk -T DepthOfCoverage -R reference.fa -I temp_realigned_reads.bam -o temp.coverage; rm -rf temp.coverage.sample_*; echo $name > name; Rscript coverage.R; # The -stand_emit_conf 30 option is deprecated in GATK v 3.7 and was removed from this code on the 5-June-2017 $javapath -jar $gatk -T HaplotypeCaller -R reference.fa -I temp_realigned_reads.bam --genotyping_mode DISCOVERY -stand_call_conf 30 -o temp_raw_variants.vcf; $javapath -jar $gatk -T ReadBackedPhasing -R reference.fa -I temp_realigned_reads.bam --variant temp_raw_variants.vcf -o temp_phased_SNPs.vcf; $javapath -jar $gatk -T FindCoveredIntervals -R reference.fa -I temp_realigned_reads.bam -cov 1 -o temp_covered.list; $javapath -jar $gatk -T FastaAlternateReferenceMaker -V temp_phased_SNPs.vcf -R reference.fa -L temp_covered.list -o temp_alt.fa; Rscript modref.R; mv temp_alt2.fa $name.fa; rm -rf temp*; sed -i 's/\?/N/g' $name.fa; sed -i 's/-//g' $name.fa; bwa index -a is $name.fa; samtools faidx $name.fa; $javapath -jar $picard CreateSequenceDictionary R=$name.fa O=$name.dict; if [ $sequencing == paired ] then bwa mem -t $numberofcores $name.fa $forward $reverse > temp.sam; fi if [ $sequencing == single ] then bwa mem -t $numberofcores $name.fa $forward > temp.sam; fi $javapath -jar $picard AddOrReplaceReadGroups I=temp.sam O=tempsort.sam SORT_ORDER=coordinate LB=rglib PL=illumina PU=phase SM=everyone; $javapath -jar $picard MarkDuplicates MAX_FILE_HANDLES=1000 I=tempsort.sam O=tempsortmarked.sam M=temp.metrics AS=TRUE; $javapath -jar $picard SamFormatConverter I=tempsortmarked.sam O=tempsortmarked.bam; samtools index tempsortmarked.bam; $javapath -jar $gatk -T RealignerTargetCreator -R $name.fa -I tempsortmarked.bam -o tempintervals.list; $javapath -jar $gatk -T IndelRealigner -R $name.fa -I tempsortmarked.bam -targetIntervals tempintervals.list -o temp_realigned_reads.bam; # The -stand_emit_conf 30 option is deprecated in GATK v 3.7 and was removed from this code on the 5-June-2017 $javapath -jar $gatk -T HaplotypeCaller -R $name.fa -I temp_realigned_reads.bam --genotyping_mode DISCOVERY -stand_call_conf 30 -o temp_raw_variants.vcf; $javapath -jar $gatk -T ReadBackedPhasing -R $name.fa -I temp_realigned_reads.bam --variant temp_raw_variants.vcf -o temp_phased_SNPs.vcf; $javapath -jar $gatk -T FindCoveredIntervals -R $name.fa -I temp_realigned_reads.bam -cov 1 -o temp_covered.list; $javapath -jar $gatk -T FastaAlternateReferenceMaker -V temp_phased_SNPs.vcf -R $name.fa -o temp_alt.fa; Rscript modref.R; mv $name.fa safe.$name.fa.ref.fa; rm -rf $name.*; mv temp_alt2.fa $name.1.fa; mv safe.$name.fa.ref.fa $name.2.fa; rm -rf temp*; done for i in `ls *1.fa`; do sed -i 's/-//g' $i; done
'use strict'; function Location(city, geoData) { // eslint-disable-next-line camelcase this.search_query = city; // eslint-disable-next-line camelcase this.formatted_query = geoData.results[0].formatted_address; this.latitude = geoData.results[0].geometry.location.lat; this.longitude = geoData.results[0].geometry.location.lng; } module.exports = Location;
<reponame>kenmoini/certificate-sentinel-operator /* Copyright 2021 Polyglot Systems. 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 v1 import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" //"time" ) // TimeSlices is just a simple TimeSlice slice type TimeSlices []TimeSlice // TimeSlice provides the k:v pairing for expiration dates and what daysOut gate triggered it type TimeSlice struct { Time metav1.Time DaysOut int } // LabelSelector is a struct to target specific assets with matching labels type LabelSelector struct { Key string `json:"key"` Filter string `json:"filter,omitempty"` Values []string `json:"value"` } // Alert provides the structure of the type of Alert type Alert struct { // AlertType - valid values are: 'email' and 'logger' AlertType string `json:"type"` // AlertName is a simple DNS/k8s compliant name for identification purposes AlertName string `json:"name"` // AlertConfiguration is optional when only using `logger` as the AlertType, but with SMTP it must be defined AlertConfiguration AlertConfiguration `json:"config,omitempty"` } // AlertConfiguration provides the structure of the AlertConfigurations for different Alert Endpoints type AlertConfiguration struct { // ReportInterval is the frequency in which Reports would be sent out - can be `daily`, `weekly`, `monthly`, or `debug` which is every 5 minutes. Defaults to daily. ReportInterval string `json:"reportInterval,omitempty"` // SMTPDestinationEmailAddresses is where the alert messages will be sent TO SMTPDestinationEmailAddresses []string `json:"smtp_destination_addresses,omitempty"` // SMTPSenderEmailAddress is the address that will be used to send the alert messages SMTPSenderEmailAddress string `json:"smtp_sender_address,omitempty"` // SMTPSenderHostname is the hostname used during SMTP handshake SMTPSenderHostname string `json:"smtp_sender_hostname,omitempty"` // SMTPEndpoint is the SMTP server with affixed port ie, smtp.example.com:25 SMTPEndpoint string `json:"smtp_endpoint,omitempty"` // SMTPAuthSecretName is the name of the K8s Secret that holds the authentication information SMTPAuthSecretName string `json:"smtp_auth_secret,omitempty"` // SMTPAuthType can be either `none`, `plain`, `login`, or `cram-md5` SMTPAuthType string `json:"smtp_auth_type,omitempty"` // SMTPAuthUseSSL can be used to set the use of TLS, default is true SMTPAuthUseSSL *bool `json:"smtp_use_ssl,omitempty"` // SMTPAuthUseSTARTTLS can be used to set the use of STARTTLS, default is true SMTPAuthUseSTARTTLS *bool `json:"smtp_use_starttls,omitempty"` }
int mapKeys(int customKeyCode, int[][] keyMappings) { for (int[] mapping : keyMappings) { if (mapping[0] == customKeyCode) { return mapping[1]; } } return -1; }
using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Framework; using UnityEngine; public class MonsterFactory : MonoBehaviour { private ITable monsterDatas; public void InitializeMonsterFactory() { // Perform any necessary initialization, such as retrieving the monster data table monsterDatas = LocalData.Instance.GetTable<monsterData>(); } public UnityEngine.GameObject CreateMonster(int id, Transform transform) { if (monsterDatas == null) { Debug.LogError("Monster data table is not initialized. Call InitializeMonsterFactory first."); return null; } // Find the monster data with the given ID monsterData data = monsterDatas.FindEntry<monsterData>(id); if (data == null) { Debug.LogError("Monster data not found for ID: " + id); return null; } // Instantiate the monster prefab and set its transform GameObject monsterPrefab = data.Prefab; // Assuming monsterData class has a property named Prefab of type GameObject GameObject monster = Instantiate(monsterPrefab, transform.position, transform.rotation); return monster; } }
MININIX_PKG_HOMEPAGE=https://github.com/cswl/tsu MININIX_PKG_DESCRIPTION="A su wrapper for Mininix" MININIX_PKG_VERSION=2.0 MININIX_PKG_PLATFORM_INDEPENDENT=yes MININIX_PKG_SRCURL=https://github.com/cswl/tsu/archive/ce32547e7ca441ed449b12447539da959b889e95.zip MININIX_PKG_SHA256=11c0b0c0b1c9acb64d354ce9b0348d3d950e06e274d567498b1b46e8fd51fb9e MININIX_PKG_BUILD_IN_SRC=yes mininix_step_make() { : } mininix_step_make_install () { cp tsu $MININIX_PREFIX/bin/tsu chmod +x $MININIX_PREFIX/bin/tsu cp tsudo $MININIX_PREFIX/bin/tsudo chmod +x $MININIX_PREFIX/bin/tsudo }
#!/bin/sh # User-controllable options grub_modinfo_target_cpu=i386 grub_modinfo_platform=pc grub_disk_cache_stats=0 grub_boot_time_stats=0 grub_have_font_source=1 # Autodetected config grub_have_asm_uscore=0 grub_bss_start_symbol="__bss_start" grub_end_symbol="end" # Build environment grub_target_cc='gcc-6' grub_target_cc_version='gcc-6 (Ubuntu 6.4.0-8ubuntu1) 6.4.0 20171010' grub_target_cflags=' -Os -Wall -W -Wshadow -Wpointer-arith -Wundef -Wchar-subscripts -Wcomment -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero -Wfloat-equal -Wformat-extra-args -Wformat-security -Wformat-y2k -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Wmain -Wmissing-braces -Wmissing-format-attribute -Wmultichar -Wparentheses -Wreturn-type -Wsequence-point -Wshadow -Wsign-compare -Wswitch -Wtrigraphs -Wunknown-pragmas -Wunused -Wunused-function -Wunused-label -Wunused-parameter -Wunused-value -Wunused-variable -Wwrite-strings -Wnested-externs -Wstrict-prototypes -g -Wredundant-decls -Wmissing-prototypes -Wmissing-declarations -Wextra -Wattributes -Wendif-labels -Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wmissing-field-initializers -Wnonnull -Woverflow -Wvla -Wpointer-to-int-cast -Wstrict-aliasing -Wvariadic-macros -Wvolatile-register-var -Wpointer-sign -Wmissing-include-dirs -Wmissing-prototypes -Wmissing-declarations -Wformat=2 -march=i386 -m32 -mrtd -mregparm=3 -falign-jumps=1 -falign-loops=1 -falign-functions=1 -freg-struct-return -mno-mmx -mno-sse -mno-sse2 -mno-sse3 -mno-3dnow -msoft-float -fno-dwarf2-cfi-asm -mno-stack-arg-probe -fno-asynchronous-unwind-tables -fno-unwind-tables -Qn -fno-PIE -fno-stack-protector -Wtrampolines -Werror' grub_target_cppflags='-Wno-unused-but-set-variable -Wall -W -DGRUB_MACHINE_PCBIOS=1 -DGRUB_MACHINE=I386_PC -m32 -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/6/include -I$(top_srcdir)/include -I$(top_builddir)/include' grub_target_ccasflags=' -g -m32 -msoft-float' grub_target_ldflags='-no-pie -m32 -Wl,-melf_i386 -Wl,--build-id=none' grub_cflags='' grub_cppflags=' -D_FILE_OFFSET_BITS=64' grub_ccasflags='' grub_ldflags='' grub_target_strip='strip' grub_target_nm='nm' grub_target_ranlib='ranlib' grub_target_objconf='' grub_target_obj2elf='' grub_target_img_base_ldopt='-Wl,-Ttext' grub_target_img_ldflags='@TARGET_IMG_BASE_LDFLAGS@' # Version grub_version="2.02~beta3" grub_package="grub" grub_package_string="GRUB 2.02~beta3-4ubuntu7" grub_package_version="2.02~beta3-4ubuntu7" grub_package_name="GRUB" grub_package_bugreport="bug-grub@gnu.org"
var ctx = new AudioContext(); // サウンドファイルの取得 function getwav(name, callback) { fetch(name).then(function(res) { return res.arrayBuffer(); }).then(function(arr) { ctx.decodeAudioData(arr, function(buf) { callback(buf); }); }); } var kick, hat, snare, clap; getwav("kick.wav", function(buf){kick = buf;}); getwav("hat.wav", function(buf){hat = buf;}); getwav("snare.wav", function(buf){snare = buf;}); getwav("clap.wav", function(buf){clap = buf;}); // PLAYボタンを押すとインターバルタイマーをON/OFF var timer; var beat; function play() { if (timer== null) { beat = 0; timer = setInterval(playsound, 200); } else { clearInterval(timer); timer = null; } } // 200ミリ秒ごとに呼ばれる発音処理 function playsound() { if (beat % 2 == 0) { var wav = ctx.createBufferSource(); wav.buffer = kick; wav.connect(ctx.destination); wav.start(); } if (beat % 2 == 1) { var wav = ctx.createBufferSource(); wav.buffer = hat; wav.connect(ctx.destination); wav.start(); } if (beat == 2) { var wav = ctx.createBufferSource(); wav.buffer = snare; wav.connect(ctx.destination); wav.start(); } if (beat >= 6) { var wav = ctx.createBufferSource(); wav.buffer = clap; wav.connect(ctx.destination); wav.start(); } beat = (beat + 1) % 8; }
#!/bin/bash function timed_echo () { echo -e "$(date -u +'%F %T.%3N %Z'):\t${@}" } timed_echo "Entrypoint Script Started" cd $PATH_TO_VOLUME cargo install cargo-watch && cargo build & if [ "$DATABASE" = "postgres" ] then timed_echo "Waiting for postgres..." while ! nc -z $SQL_HOST $SQL_PORT; do sleep 0.1 done timed_echo "PostgreSQL started" fi wait timed_echo "Background commands finished" exec "$@"
#!/bin/sh [ "$#" -ne 2 ] && echo 'usage: generate-at.sh <username> <password>' && exit 1 readonly username=$1 readonly password=$2 curl https://api.particle.io/oauth/token\ -u particle:particle\ -d grant_type=password\ -d username="$username"\ -d password="$password"
package com.digirati.taxman.rest.server.taxonomy.mapper; import com.digirati.taxman.common.rdf.RdfModelException; import com.digirati.taxman.common.rdf.RdfModelFactory; import com.digirati.taxman.common.taxonomy.CollectionModel; import com.digirati.taxman.common.taxonomy.ConceptModel; import com.digirati.taxman.common.taxonomy.ProjectModel; import com.digirati.taxman.rest.server.taxonomy.identity.CollectionUriResolver; import com.digirati.taxman.rest.server.taxonomy.identity.ProjectIdResolver; import org.apache.jena.vocabulary.DCTerms; import org.apache.jena.vocabulary.SKOS; import javax.ws.rs.WebApplicationException; import java.util.Collection; public class ProjectListingMapper { private final ProjectIdResolver projectIdResolver; private final CollectionUriResolver collectionUriResolver; private final RdfModelFactory factory; public ProjectListingMapper(ProjectIdResolver projectIdResolver, CollectionUriResolver collectionUriResolver, RdfModelFactory factory) { this.projectIdResolver = projectIdResolver; this.collectionUriResolver = collectionUriResolver; this.factory = factory; } public CollectionModel map(Collection<ProjectModel> projects) { try { var uri = collectionUriResolver.resolve(); var builder = factory.createBuilder(CollectionModel.class) .setUri(uri); for (ProjectModel project : projects) { builder.addEmbeddedModel( SKOS.member, factory.createBuilder(ConceptModel.class) .addPlainLiteral(DCTerms.title, project.getTitle()) .setUri(projectIdResolver.resolve(project.getSlug()))); } return builder.build(); } catch (RdfModelException e) { throw new WebApplicationException("Internal error occurred creating Collection Model of projects", e); } } }
/* * Copyright 2018 JBoss by Red Hat. * * 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 org.optaplanner.examples.nurserostering.swingui; import javax.swing.DefaultListModel; import javax.swing.JCheckBox; import javax.swing.JTextField; import javax.swing.ListModel; import javax.swing.ListSelectionModel; /** * * @author Martien */ public class TabMinMaxContractLinesPanel extends javax.swing.JPanel { /** * Creates new form TabMinMaxContractLinePanel */ public TabMinMaxContractLinesPanel() { initComponents(); } public void handleOKButtonClicked(){ //Override in customMinMaxContractLinePanel } public void handleCancelButtonClicked(){ //Override in customMinMaxContractLinePanel } public void handleNewButtonClicked(){ //Override in customMinMaxContractLinePanel } public void handleDeleteButtonClicked(){ //Override in customMinMaxContractLinePanel }; public void handleContractLinesListValueChanged(javax.swing.event.ListSelectionEvent evt){ //Override in customMinMaxContractLinePanel }; public void handleNextButtonClicked(){ //Override in customMinMaxContractLinePanel }; public void handlePrevButtonClicked(){ //Override in customMinMaxContractLinePanel }; public JCheckBox getjMaxEnabledCheckBox() { return jMaxEnabledCheckBox; } public Boolean getMaxEnabledCheckBox() { return jMaxEnabledCheckBox.isEnabled(); } public void emptyContractLineListBox(){ String[] listData = null; jContractLinesList.setListData(listData); } public void setContractLineLabel(String label) { jContractLinesLabel.setText(label); } public void setContractLineListModel(){ jContractLinesList.setModel(new DefaultListModel()); } public void setContractLinesListBox(String[] listData){ jContractLinesList.setListData(listData); } public void setContractLinesListBoxSelection(int selection){ jContractLinesList.setSelectedIndex(selection); } public void setContractLinesListBox(DefaultListModel listData){ jContractLinesList.setModel(listData); } public void setContractLinesListBoxMode() { jContractLinesList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); } public ListSelectionModel getContractLinesListSelectionModel(){ return jContractLinesList.getSelectionModel(); } public ListModel getContractLinesListModel(){ return jContractLinesList.getModel(); } public void setjMaxEnabledCheckBox(JCheckBox jMaxEnabledCheckBox) { this.jMaxEnabledCheckBox = jMaxEnabledCheckBox; } public void setMaxEnabledCheckBox(Boolean enabled) { this.jMaxEnabledCheckBox.setEnabled(enabled); } public JTextField getjMaxValueTextField() { return jMaxValueTextField; } public String getMaxValue() { return jMaxValueTextField.getText(); } public void setjMaxValueTextField(JTextField jMaxValueTextField) { this.jMaxValueTextField = jMaxValueTextField; } public void setMaxValue(String text) { this.jMaxValueTextField.setText(text); } public JTextField getjMaxWeightTextField() { return jMaxWeightTextField; } public String getMaxWeight() { return jMaxWeightTextField.getText(); } public void setjMaxWeightTextField(JTextField jMaxWeightTextField) { this.jMaxWeightTextField = jMaxWeightTextField; } public void setMaxWeight(String text) { this.jMaxWeightTextField.setText(text); } public JCheckBox getjMinEnabledCheckBox() { return jMinEnabledCheckBox; } public Boolean getMinEnabledCheckBox() { return jMinEnabledCheckBox.isEnabled(); } public void setjMinEnabledCheckBox(JCheckBox jMinEnabledCheckBox) { this.jMinEnabledCheckBox = jMinEnabledCheckBox; } public void setMinEnabledCheckBox(Boolean enabled) { this.jMinEnabledCheckBox.setEnabled(enabled); } public JTextField getjMinValueTextField() { return jMinValueTextField; } public String getMinValue() { return jMinValueTextField.getText(); } public void setjMinValueTextField(JTextField jMinValueTextField) { this.jMinValueTextField = jMinValueTextField; } public void setMinValue(String text) { this.jMinValueTextField.setText(text); } public JTextField getjMinWeightTextField() { return jMinWeightTextField; } public String getMinWeight() { return jMinWeightTextField.getText(); } public void setjMinWeightTextField(JTextField jMinWeightTextField) { this.jMinWeightTextField = jMinWeightTextField; } public void setMinWeight(String text) { this.jMinWeightTextField.setText(text); } /** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jMinValueLabel = new javax.swing.JLabel(); jMinWeightLabel = new javax.swing.JLabel(); jMaxValueLabel = new javax.swing.JLabel(); jMaxWeightLabel = new javax.swing.JLabel(); jMinValueTextField = new javax.swing.JTextField(); jMinWeightTextField = new javax.swing.JTextField(); jMaxValueTextField = new javax.swing.JTextField(); jMaxWeightTextField = new javax.swing.JTextField(); jMinMaxContractLinesLabel = new javax.swing.JLabel(); jMinEnabledCheckBox = new javax.swing.JCheckBox(); jMaxEnabledCheckBox = new javax.swing.JCheckBox(); jNewButton = new javax.swing.JButton(); jDeleteButton = new javax.swing.JButton(); jOKButton = new javax.swing.JButton(); jCancelButton = new javax.swing.JButton(); jNextButton = new javax.swing.JButton(); jPrevButton = new javax.swing.JButton(); jScrollPane1 = new javax.swing.JScrollPane(); jContractLinesList = new javax.swing.JList<>(); jContractLinesLabel = new javax.swing.JLabel(); jMinValueLabel.setText("MinValue"); jMinWeightLabel.setText("MinWeight"); jMaxValueLabel.setText("MaxValue"); jMaxWeightLabel.setText("MaxWeight"); jMinValueTextField.setText("minValue"); jMinValueTextField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMinValueTextFieldActionPerformed(evt); } }); jMinWeightTextField.setText("minWeight"); jMinWeightTextField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMinWeightTextFieldActionPerformed(evt); } }); jMaxValueTextField.setText("maxValue"); jMaxWeightTextField.setText("maxWeight"); jMaxWeightTextField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMaxWeightTextFieldActionPerformed(evt); } }); jMinMaxContractLinesLabel.setText("MinMaxContractLines"); jMinEnabledCheckBox.setText("MinEnabled"); jMaxEnabledCheckBox.setText("MaxEnabled"); jNewButton.setText("New"); jNewButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jNewButtonActionPerformed(evt); } }); jDeleteButton.setText("Delete"); jDeleteButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jDeleteButtonActionPerformed(evt); } }); jOKButton.setText("OK"); jOKButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jOKButtonActionPerformed(evt); } }); jCancelButton.setText("Cancel"); jCancelButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jCancelButtonActionPerformed(evt); } }); jNextButton.setText("Next"); jPrevButton.setText("Prev"); jContractLinesList.setModel(new javax.swing.AbstractListModel<String>() { String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" }; public int getSize() { return strings.length; } public String getElementAt(int i) { return strings[i]; } }); jContractLinesList.addListSelectionListener(new javax.swing.event.ListSelectionListener() { public void valueChanged(javax.swing.event.ListSelectionEvent evt) { jContractLinesListValueChanged(evt); } }); jScrollPane1.setViewportView(jContractLinesList); jContractLinesLabel.setText("ContractLines"); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(29, 29, 29) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 159, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jContractLinesLabel)) .addGap(38, 38, 38) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jMinWeightLabel) .addComponent(jMinMaxContractLinesLabel) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(jMinValueTextField, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jMinWeightTextField, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jMinValueLabel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addComponent(jMinEnabledCheckBox) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addGroup(layout.createSequentialGroup() .addComponent(jOKButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCancelButton)) .addGroup(layout.createSequentialGroup() .addComponent(jNewButton) .addGap(28, 28, 28) .addComponent(jDeleteButton)))) .addGap(91, 91, 91) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jNextButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPrevButton)) .addComponent(jMaxWeightLabel) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(jMaxWeightTextField, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jMaxValueTextField, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jMaxValueLabel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addComponent(jMaxEnabledCheckBox)) .addContainerGap(201, Short.MAX_VALUE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(34, 34, 34) .addComponent(jMinMaxContractLinesLabel) .addGap(48, 48, 48) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jMinValueLabel) .addComponent(jMaxValueLabel) .addComponent(jContractLinesLabel)) .addGap(33, 33, 33) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jMinValueTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jMaxValueTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(29, 29, 29) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jMinWeightLabel) .addComponent(jMaxWeightLabel)) .addGap(28, 28, 28) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jMinWeightTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jMaxWeightTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(26, 26, 26) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jMinEnabledCheckBox) .addComponent(jMaxEnabledCheckBox))) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jNewButton) .addComponent(jDeleteButton) .addComponent(jNextButton) .addComponent(jPrevButton)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jOKButton) .addComponent(jCancelButton)) .addContainerGap(34, Short.MAX_VALUE)) ); }// </editor-fold>//GEN-END:initComponents private void jMinValueTextFieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMinValueTextFieldActionPerformed // TODO add your handling code here: }//GEN-LAST:event_jMinValueTextFieldActionPerformed private void jMinWeightTextFieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMinWeightTextFieldActionPerformed // TODO add your handling code here: }//GEN-LAST:event_jMinWeightTextFieldActionPerformed private void jMaxWeightTextFieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMaxWeightTextFieldActionPerformed // TODO add your handling code here: }//GEN-LAST:event_jMaxWeightTextFieldActionPerformed private void jDeleteButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jDeleteButtonActionPerformed // TODO add your handling code here: handleDeleteButtonClicked(); }//GEN-LAST:event_jDeleteButtonActionPerformed private void jCancelButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCancelButtonActionPerformed // TODO add your handling code here: handleCancelButtonClicked(); }//GEN-LAST:event_jCancelButtonActionPerformed private void jNewButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jNewButtonActionPerformed // TODO add your handling code here: handleNewButtonClicked(); }//GEN-LAST:event_jNewButtonActionPerformed private void jOKButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jOKButtonActionPerformed // TODO add your handling code here: handleOKButtonClicked(); }//GEN-LAST:event_jOKButtonActionPerformed private void jContractLinesListValueChanged(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_jContractLinesListValueChanged // TODO add your handling code here: handleContractLinesListValueChanged(evt); }//GEN-LAST:event_jContractLinesListValueChanged // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JButton jCancelButton; private javax.swing.JLabel jContractLinesLabel; private javax.swing.JList<String> jContractLinesList; private javax.swing.JButton jDeleteButton; private javax.swing.JCheckBox jMaxEnabledCheckBox; private javax.swing.JLabel jMaxValueLabel; private javax.swing.JTextField jMaxValueTextField; private javax.swing.JLabel jMaxWeightLabel; private javax.swing.JTextField jMaxWeightTextField; private javax.swing.JCheckBox jMinEnabledCheckBox; private javax.swing.JLabel jMinMaxContractLinesLabel; private javax.swing.JLabel jMinValueLabel; private javax.swing.JTextField jMinValueTextField; private javax.swing.JLabel jMinWeightLabel; private javax.swing.JTextField jMinWeightTextField; private javax.swing.JButton jNewButton; private javax.swing.JButton jNextButton; private javax.swing.JButton jOKButton; private javax.swing.JButton jPrevButton; private javax.swing.JScrollPane jScrollPane1; // End of variables declaration//GEN-END:variables }
var fs = require('fs'); var _ = require('underscore'); var entityApis = {}; var apiManagers = {}; var entityApiFiles = fs.readdirSync('./server/EntityApi'); _.each(entityApiFiles,function(entityApiFileName){ var apiName = entityApiFileName.substring(0,entityApiFileName.indexOf('Api')); entityApis[apiName] = require('../server/EntityApi/'+entityApiFileName); }); var apiManagerFiles = fs.readdirSync('./server/ApiManager'); _.each(apiManagerFiles,function(apiManagerFileName){ var apiName = apiManagerFileName.substring(0,apiManagerFileName.indexOf('Api')); apiManagers[apiName] = require('../server/ApiManager/'+apiManagerFileName); }); module.exports = function(app){ var commonHandler = function(req,res){ var params = req.query; var operation = req.query.operation; var queryObject = entityApis[req.query.entity][operation]; apiManagers[req.query.entity].handler(queryObject,params,req,res); //each handler must be a promise and it must be returned here with the data from db and in the then we write the logic to communicate with the client }; _.each(entityApis,function(entityApiAll){ _.each(entityApiAll,function(entityApi){ if(entityApi.operation == 'POST'){ //console.log("API Path "+entityApi.apiPath); app.post.apply(app,[entityApi.apiPath,commonHandler]); } else if(entityApi.operation == 'GET'){ app.get.apply(app,[entityApi.apiPath,commonHandler]); } }); }); };
package demo._41.cache; import javax.cache.annotation.CacheRemove; import javax.cache.annotation.CacheResult; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Service; /** * Created by nlabrot on 01/09/15. */ @Service public class CacheableService { private static final Logger LOG = LoggerFactory.getLogger(CacheableService.class); @CacheResult(cacheName = "heavyComputation") public String heavyComputation(){ LOG.info("heavyComputation"); return "ok"; } @CacheRemove(cacheName = "heavyComputation") public void updateDataset(){ LOG.info("updateDataset"); } }
# COPYRIGHT_MAY_GO_HERE # This script expects the following variables to be defined: # IS_TRANSCRIPT = whether alignments were done against a cDNA reference. # GROUPS_DEFINITION = description of the groups, in the format group-1=sample_i,sample_j/group-2=sample_k,.. # COMPARE_DEFINITION # ANNOTATION_FILE = file describing annotations in the Goby annotation format. # ANNOTATION_TYPES = gene|exon|other, specifies the kind of annotations to calculate counts for. # USE_WEIGHTS_DIRECTIVE = optional, command line flags to have Goby annotation-to-counts adjust counts with weigths. function eval { EVAL=raw-counts } function setupWeights { if [ "${PLUGINS_ALIGNMENT_ANALYSIS_DIFF_EXP_EDGE_R_WEIGHT_ADJUSTMENT}" == "NONE" ]; then USE_WEIGHTS_DIRECTIVE=" " elif [ "${PLUGINS_ALIGNMENT_ANALYSIS_DIFF_EXP_EDGE_R_WEIGHT_ADJUSTMENT}" == "GC_CONTENT" ]; then USE_WEIGHTS_DIRECTIVE="--use-weights gc --adjust-gc-bias ${PLUGINS_ALIGNMENT_ANALYSIS_DIFF_EXP_EDGE_R_BIAS_ADJUSTMENT_FORMULA} " elif [ "${PLUGINS_ALIGNMENT_ANALYSIS_DIFF_EXP_EDGE_R_WEIGHT_ADJUSTMENT}" == "HEPTAMERS" ]; then USE_WEIGHTS_DIRECTIVE="--use-weights heptamers " else dieUponError "weight adjustment not supported: ${PLUGINS_ALIGNMENT_ANALYSIS_DIFF_EXP_EDGE_R_WEIGHT_ADJUSTMENT}" fi } function setupAnnotationTypes { ANNOTATION_TYPES="" if [ "${PLUGINS_ALIGNMENT_ANALYSIS_DIFF_EXP_EDGE_R_ESTIMATE_COUNTS_GENE}" == "true" ]; then ANNOTATION_TYPES="${ANNOTATION_TYPES}gene" fi if [ "${PLUGINS_ALIGNMENT_ANALYSIS_DIFF_EXP_EDGE_R_ESTIMATE_COUNTS_EXON}" == "true" ]; then if [ "${ANNOTATION_TYPES}" != "" ]; then ANNOTATION_TYPES="${ANNOTATION_TYPES}," fi ANNOTATION_TYPES="${ANNOTATION_TYPES}exon" fi if [ "${PLUGINS_ALIGNMENT_ANALYSIS_DIFF_EXP_EDGE_R_ESTIMATE_COUNTS_OTHER}" == "true" ]; then if [ "${ANNOTATION_TYPES}" != "" ]; then ANNOTATION_TYPES="${ANNOTATION_TYPES}," fi ANNOTATION_TYPES="${ANNOTATION_TYPES}other" fi if [ "${ANNOTATION_TYPES}" == "" ]; then dieUponError "At least one annotation type must be selected to run a differential analysis." fi } function setupAnnotationSource { ANNOTATION_SOURCE="" if [ "${PLUGINS_ALIGNMENT_ANALYSIS_DIFF_EXP_EDGE_R_ANNOTATION_SOURCE}" == "GENE_EXON_OTHER" ]; then # gene exon annotation file. ANNOTATION_SOURCE="${REFERENCE_DIRECTORY}/exon-annotations.tsv" else # CNV annotation file. ANNOTATION_SOURCE="${REFERENCE_DIRECTORY}/cnv-annotations.tsv" fi } . ${PLUGINS_ALIGNMENT_ANALYSIS_DIFF_EXP_EDGE_R_FILES_PARALLEL_SCRIPT} . ${RESOURCES_R_SHELL_SCRIPT} function plugin_alignment_analysis_combine { set -x set -T RESULT_FILE=$1 shift PART_RESULT_FILES=$* NUM_TOP_HITS=${PLUGINS_ALIGNMENT_ANALYSIS_DIFF_EXP_EDGE_R_NUM_TOP_HITS} Q_VALUE_THRESHOLD=${PLUGINS_ALIGNMENT_ANALYSIS_DIFF_EXP_EDGE_R_Q_VALUE_THRESHOLD} NORMALIZATION_FACTORS_METHOD=${PLUGINS_ALIGNMENT_ANALYSIS_DIFF_EXP_EDGE_R_NORMALIZATION_FACTORS_METHOD} DISPERSION_METHOD=${PLUGINS_ALIGNMENT_ANALYSIS_DIFF_EXP_EDGE_R_DISPERSION_METHOD} FILTERING=${PLUGINS_ALIGNMENT_ANALYSIS_DIFF_EXP_EDGE_R_FILTERING} # following function from DIFF_EXP_GOBY/parallel.sh run_fdr if [ $? -eq 0 ]; then GENE_OUT_FILENAME=gene-counts.stats.tsv EXON_OUT_FILENAME=exon-counts-stats.tsv # Extract gene part of file: head -1 ${OUT_FILENAME} >${GENE_OUT_FILENAME} grep GENE ${OUT_FILENAME} |cat >>${GENE_OUT_FILENAME} wc -l ${GENE_OUT_FILENAME} HAS_GENES=`cat ${GENE_OUT_FILENAME} | wc -l` # Extract exon part of file: head -1 ${OUT_FILENAME} >${EXON_OUT_FILENAME} grep EXON ${OUT_FILENAME} 1>>${EXON_OUT_FILENAME} ls -lat HAS_EXONS=`cat ${EXON_OUT_FILENAME} | wc -l ` cp ${SGE_O_WORKDIR}/sampleToGroups.tsv . SAMPLE_GROUP_MAPPING="sampleGroupMapping=sampleToGroups.tsv" # Run EdgeR on gene and exon input: if [ "$HAS_GENES" != "1" ]; then EDGE_R_OUTPUT="output=gene-stats.tsv mdsPlotOutput=mds.png smearPlotOutput=smear.png" run_R -f ${RESOURCES_EDGE_R_SCRIPT_R_SCRIPT} --slave --quiet --no-restore --no-save --no-readline --args input=${GENE_OUT_FILENAME} ${EDGE_R_OUTPUT} ${SAMPLE_GROUP_MAPPING} elementType=GENE normalizationMethod=${NORMALIZATION_FACTORS_METHOD} dispersionMethod=${DISPERSION_METHOD} filterFlag=${FILTERING} fi if [ "$HAS_EXONS" != "1" ]; then EDGE_R_OUTPUT="output=exon-stats.tsv mdsPlotOutput=mds.png smearPlotOutput=smear.png" run_R -f ${RESOURCES_EDGE_R_SCRIPT_R_SCRIPT} --slave --quiet --no-restore --no-save --no-readline --args input=${EXON_OUT_FILENAME} ${EDGE_R_OUTPUT} ${SAMPLE_GROUP_MAPPING} elementType=EXON normalizationMethod=${NORMALIZATION_FACTORS_METHOD} dispersionMethod=${DISPERSION_METHOD} filterFlag=${FILTERING} fi if [ "${HAS_GENES}" != "1" ] && [ "${HAS_EXONS}" != "1" ]; then run_goby ${PLUGIN_NEED_COMBINE_JVM} fdr \ --q-threshold 1.0 \ gene-stats.tsv exon-stats.tsv \ ${COLUMNS} \ --output stats.tsv elif [ "${HAS_GENES}" != "1" ]; then mv gene-stats.tsv stats.tsv elif [ "${HAS_EXONS}" != "1" ]; then mv exon-stats.tsv stats.tsv fi fi }
#!/bin/bash if ! command -v curl &> /dev/null then echo "curl could not be found but is a pre-requisite for this script" exit fi curl localhost:8080/list
<filename>qht-pay/src/main/java/com/julu/qht/mapper/StudentDao.java package com.julu.qht.mapper; import com.julu.qht.entity.Student; import com.baomidou.mybatisplus.mapper.BaseMapper; /** * <p> * 学生,1 Mapper 接口 * </p> * * @author qht * @since 2018-11-29 */ public interface StudentDao extends BaseMapper<Student> { }
<reponame>JarredStanford/JarredStanford.github.io<filename>node_modules/grommet-controls/components/Card/StyledCard.js var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; }; import styled from 'styled-components'; import { Box } from 'grommet'; // eslint-disable-next-line import/prefer-default-export export var StyledCard = styled(Box)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n @media (max-width: ", "px) {\n flex-basis: 100%;\n }\n"], ["\n @media (max-width: ", "px) {\n flex-basis: 100%;\n }\n"])), function (props) { return props.theme.global.breakpoints.small; }); var templateObject_1;
#!/usr/bin/env bash xp_dir=log/$1 seed=$2 nu=$3 pca=$4 mobiFall_normal=$5 mobiFall_outlier=$6 info_file=$7 mkdir $xp_dir; # mobiFall training python baseline_ocsvm.py --xp_dir $xp_dir --dataset mobiFall --loss OneClassSVM --seed $seed --kernel rbf --nu $nu \ --GridSearchCV 1 --out_frac 0 --unit_norm_used l1 --pca $pca --mobiFall_val_frac 0 --mobiFall_normal $mobiFall_normal \ --mobiFall_outlier $mobiFall_outlier --plot_examples 1 --info_file $info_file;
class CustomEventLoop: def __init__(self): self._root = GUIFramework() # Replace GUIFramework with the actual GUI framework class self.alive = True def custom_update(self): # Implement the custom_update method to update the GUI # Example: Update the GUI components, handle user input, etc. pass # Placeholder for the actual implementation def run_event_loop(self): while self.alive: self._root.mainloop() # Run the GUI framework's main loop self._update() def _update(self): if not self.alive: self._root.destroy() # Destroy the GUI window if the application is terminated self.custom_update() # Call the custom_update method to update the GUI
<reponame>jneterer/gatsby-tailwind-typescript-userbase export interface IForm { changed: boolean; valid: boolean; submitted: boolean; }
<filename>build/esm/primitives/types/transform/transform.js<gh_stars>1-10 // TODO: This file was created by bulk-decaffeinate. // Sanity-check the conversion and remove this comment. /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns * DS103: Rewrite code to no longer use __guard__, or convert again using --optional-chaining * DS104: Avoid inline assignments * DS206: Consider reworking classes to avoid initClass * DS207: Consider shorter variations of null checks * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md */ import { Parent } from "../base/parent.js"; export class Transform extends Parent { static initClass() { this.traits = ["node", "vertex", "fragment"]; } vertex(shader, pass) { let left; return (left = __guard__(this._inherit("vertex"), (x) => x.vertex(shader, pass))) != null ? left : shader; } fragment(shader, pass) { let left; return (left = __guard__(this._inherit("fragment"), (x) => x.fragment(shader, pass))) != null ? left : shader; } } Transform.initClass(); function __guard__(value, xform) { return typeof value !== "undefined" && value !== null ? xform(value) : undefined; }
<reponame>millord/sanity-gatsby-back-front<gh_stars>1-10 import { merge } from "theme-ui" import { BaseTheme } from "gatsby-theme-catalyst-core" import { tailwind, baseColors } from "@theme-ui/preset-tailwind" export default merge(BaseTheme, { // Modifications to the base theme go here. This is an example changing colors and using variants to change your navigation links. Uncomment the code below to see what happens. colors: { ...tailwind.colors, background: baseColors.gray[1], //Try "#954264", text: baseColors.gray[8], textGray: "#6e6e6e", primary: baseColors.blue[7], secondary: baseColors.orange[7], accent: baseColors.orange[2], highlight: baseColors.orange[5], muted: baseColors.gray[2], header: { background: baseColors.gray[2], backgroundOpen: baseColors.blue[2], text: baseColors.gray[8], textOpen: baseColors.gray[8], icons: baseColors.gray[6], iconsOpen: baseColors.gray[8], }, footer: { background: baseColors.gray[2], text: baseColors.gray[8], links: baseColors.gray[8], icons: baseColors.gray[8], }, // You can delete dark mode by removing the "modes" object and setting useColorMode to false in gatsby-theme-catalyst-core modes: { dark: { background: baseColors.gray[9], text: baseColors.gray[1], textGray: "#9f9f9f", primary: "#458ad2", secondary: baseColors.orange[7], accent: baseColors.gray[8], highlight: baseColors.orange[5], muted: baseColors.gray[8], header: { text: baseColors.gray[1], textOpen: baseColors.gray[1], background: "#232946", backgroundOpen: baseColors.gray[8], icons: baseColors.gray[1], iconsOpen: baseColors.gray[1], }, footer: { background: "#232946", text: baseColors.gray[1], links: baseColors.gray[1], icons: baseColors.gray[1], }, }, }, }, variants: { siteTitle: { fontSize: [3, 4, null, 5, null], }, }, })
"""Input formats """
<filename>dev/_full/utils/control-handlers/live-validator-show-error-handler.ts import debounce from 'debounce-wrapper'; import {defaultLiveErrorHandler} from '@error-handlers/live-validator-error-handler' import {ValidatorErrorProps, HookProps, SetFormProps, FormProps} from "@common-types" import {LiveValidatorShowErrorHandler} from "./types" /** * @description * Функция которая выбирает обработчик ошибки, и обрабатывает его вместе с дебаунсом * * @param {ValidatorErrorProps} errorDataForControl - Результат работы живого валидатора(текст ошибки, данные когда и как показыавть ошибку) * @param {HookProps} hooksData - Данные хука * @param {FormProps} form - Глобальный объект формы * @param {SetFormProps} setForm - Функция изменяющая глобальный объект формы * @param {NodeJS.Timeout | null} prevShowErrorTimeoutId - id предыдущего дебаунса для очистки * @param {number} ms - через сколько должен сработать обработчик * * @returns {void} * */ export const liveValidatorShowErrorHandler:LiveValidatorShowErrorHandler = (errorDataForControl, hooksData, form, setForm, prevShowErrorTimeoutId, ms = 0) => { //@todo: Добавить кастомные обработчики живых ошибок form.customLiveErrorHandler || control.customLiveErrorHandler //@todo: Добавить additionalLiveErrorHandler const shouldUseDebounce = Boolean(ms), errorHandler = shouldUseDebounce ? () => setForm((prevForm) => { form = {...prevForm} defaultLiveErrorHandler(errorDataForControl, hooksData, form, setForm) return form }) : () => defaultLiveErrorHandler(errorDataForControl, hooksData, form, setForm), callShowError = debounce(errorHandler, ms), {hasError} = errorDataForControl let currentShowErrorTimeoutId = null /** * Обработать ошибку с дебаунсом или нет */ if (shouldUseDebounce) { /** * Если ошибки нет, просто закрыть таймер отображения всех ошибок * Если есть ошибка, отобразить в дебаунсе, если нет, закрыть предыдущий таймер */ if (hasError) { clearTimeout(prevShowErrorTimeoutId) currentShowErrorTimeoutId = callShowError() } else if(prevShowErrorTimeoutId) { clearTimeout(prevShowErrorTimeoutId) } } else { if (hasError) { errorHandler() } } return currentShowErrorTimeoutId }
/** * Copyright (C) 2013 <EMAIL> (<EMAIL>) * * 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 io.motown.ocpp.viewmodel.domain; import com.google.common.collect.ImmutableMap; import io.motown.domain.api.chargingstation.*; import io.motown.ocpp.viewmodel.persistence.entities.ChargingStation; import org.axonframework.domain.EventMessage; import javax.persistence.EntityManager; import java.util.ArrayList; import java.util.List; import java.util.Map; import static io.motown.domain.api.chargingstation.test.ChargingStationTestUtils.*; public final class OccpViewModelTestUtils { public static final String CHARGING_STATION_ADDRESS = "127.0.0.1"; private OccpViewModelTestUtils() { // Private no-arg constructor to prevent instantiation of utility class. } public static void deleteFromDatabase(EntityManager entityManager, Class jpaEntityClass) { entityManager.getTransaction().begin(); entityManager.createQuery("DELETE FROM " + jpaEntityClass.getName()).executeUpdate(); entityManager.getTransaction().commit(); } public static ChargingStation getRegisteredAndConfiguredChargingStation() { ChargingStation cs = new ChargingStation(CHARGING_STATION_ID.getId(), CHARGING_STATION_ADDRESS); cs.setRegistered(true); cs.setNumberOfEvses(EVSES.size()); cs.setConfigured(true); return cs; } public static String getVendor() { return "Mowotn"; } public static EvseId getChargingStationComponentId() { return new EvseId(DomainService.CHARGING_STATION_EVSE_ID); } public static Integer getAuthorizationListVersion() { return 1; } public static String getFirmwareVersion() { return "firmwareVersion"; } public static String getIccid() { return "iccid"; } public static String getImsi() { return "imsi"; } public static String getMeterType() { return "meterType"; } public static String getMeterSerialNumber() { return "meterSerialNumber"; } public static Map<String, String> getEmptyAttributesMap() { return ImmutableMap.<String, String>of(); } public static Map<String, String> getStartTransactionAttributesMap(int reservationId) { return ImmutableMap.<String, String>builder() .put("reservationId", new NumberedReservationId(CHARGING_STATION_ID, PROTOCOL, reservationId).getId()) .build(); } public static List<MeterValue> getEmptyMeterValuesList() { return new ArrayList<MeterValue>(); } public static String getDiagnosticsFileName() { return "file.txt"; } public static String getStatusNotifactionErrorCode() { return "ConnectorLockFailure"; } public static String getStatusNotificationInfo() { return "Lock failed"; } public static String getVendorErrorCode() { return "001"; } public static FutureEventCallback getFutureEventCallback() { return new FutureEventCallback() { @Override public boolean onEvent(EventMessage<?> event) { return false; } }; } }
<reponame>PinoEire/archi /** * This program and the accompanying materials * are made available under the terms of the License * which accompanies this distribution in the file LICENSE.txt */ package com.archimatetool.help.hints; import org.eclipse.core.commands.AbstractHandler; import org.eclipse.core.commands.ExecutionEvent; import org.eclipse.core.commands.ExecutionException; import org.eclipse.ui.internal.cheatsheets.actions.CheatSheetCategoryBasedSelectionAction; /** * Command Action Handler to show Cheat Sheet * * @author <NAME> */ @SuppressWarnings("restriction") public class ShowCheatSheetsHandler extends AbstractHandler { @Override public Object execute(ExecutionEvent event) throws ExecutionException { new CheatSheetCategoryBasedSelectionAction().run(); return null; } }
import React, { Component } from 'react'; import { Navbar, NavbarBrand, Nav, NavbarToggler, Collapse, NavItem } from 'reactstrap'; import { BrowserRouter, NavLink } from 'react-router-dom'; import '../App.css' import { Container, Row, Col,Card,CardImg} from 'reactstrap'; class Home extends Component{ constructor(props){ super(props); } render(){ return( <React.Fragment > <div className="bg"> <Container> <div className="inner header"> <h6 style={{ color: 'white'}}>SignIn to grab exciting offers and in-time deliveries</h6> </div> <Card style={{marginTop: 30, marginBottom:40}}> <CardImg top width="80%" src="https://www.cined.com/content/uploads/2020/05/Dell-XPS-15-17-featured.jpg"/> </Card> <Card style={{marginTop: 30}}> <CardImg top width="80%" src="https://cdn.pocket-lint.com/r/s/970x/assets/images/124434-phones-buyer-s-guide-best-android-phones-2017-these-are-the-androids-you-re-looking-for-image1-kiqmufsv8x.jpg" /> </Card> <Card style={{marginTop: 30 }}> <CardImg top width="80%" src="https://www.cgcomputers.co.uk/data/files/lenovo.jpg" /> </Card> <Card style={{marginTop: 30 }}> <CardImg top width="80%" src="https://i2.wp.com/www.smartprix.com/bytes/wp-content/uploads/2020/06/Mi-laptop.jpg?fit=1200%2C675&ssl=1"/> </Card> <Card style={{marginTop: 30}}> <CardImg top width="80%" src="https://images.anandtech.com/doci/11455/dell_inspiron_7000_1.jpg"/> </Card> <Card style={{marginTop: 30}}> <CardImg top width="80%" src="http://static4.businessinsider.com/image/598a08ec76084a2b198b513a-1190-625/this-eye-catching-new-phone-out-of-china-is-a-great-example-of-where-the-future-of-smartphones-is-headed.jpg"/> </Card> </Container> </div> </React.Fragment> ); } } export default Home;
import React from "react" import Modal from "../state/Modal" import SearchBar from "../state/SearchBar" import ZQModal from "./ZQModal" import logInto from "../test/helpers/loginTo" import provide from "../test/helpers/provide" test("renders with zq get command", async () => { const {store} = await logInto("workspace1", "space1") store.dispatchAll([SearchBar.changeSearchBarInput("hi"), Modal.show("zq")]) const wrapper = provide( store, <ZQModal onClose={() => store.dispatch(Modal.hide())} /> ) wrapper .find("button") .at(0) .simulate("click") wrapper .find("button") .at(1) .simulate("click") expect(Modal.getName(store.getState())).toBe("") })
const equals = (entries = []) => { if (entries.length === 0) { return true; } return entries.every(e1 => entries.every(e2 => e2 === e1)); }; /** * * @type {{<K>(key: K) => <T>(entry:T, index: number) => T[K] }} */ const lens = key => (entry, index) => { if (typeof key === 'function') { return key(entry, index); } return entry[key]; }; /** * * @type {{<K>(key: K) => <T>(array: T[]) => T[K][] }} */ const len = key => array => { return array.map(lens(key)); }; const filter = predicate => array => array.filter(predicate); const map = callbackFn => array => array.map(callbackFn); /** * @type {{<T extends string|number>(array: T[]) => T[] }} */ const unique = array => { return Array.from(new Set(array)); }; module.exports = { lens, len, unique, equals, filter, map, };
#pragma once #include <vector> #include <glow-extras/colors/color.hh> #include "CameraController.hh" #include "detail/MeshAttribute.hh" #include "detail/config_structs_impl.hh" #include "fwd.hh" #include "renderables/GeometricRenderable.hh" #include "traits.hh" // view configuration // is called from the variadic view(obj, ...) function namespace glow::viewer { // Config settings struct background_color { tg::color3 inner; tg::color3 outer; constexpr explicit background_color(tg::color3 in, tg::color3 out) : inner(std::move(in)), outer(std::move(out)) {} constexpr explicit background_color(tg::color3 c) : inner(c), outer(std::move(c)) {} }; struct ssao_power { float power; constexpr explicit ssao_power(float s) : power(s) {} }; struct ssao_radius { float radius; constexpr explicit ssao_radius(float r) : radius(r) {} }; struct grid_size { float size; constexpr explicit grid_size(float s) : size(s) {} }; struct grid_center { tg::pos3 center; constexpr explicit grid_center(tg::pos3 c) : center(c) {} }; struct camera_orientation { tg::angle azimuth; tg::angle altitude; float distance; constexpr explicit camera_orientation(tg::angle azimuth, tg::angle altitude, float distance = -1.f) : azimuth(azimuth), altitude(altitude), distance(distance) { } }; struct orthogonal_projection { tg::aabb3 bounds; constexpr explicit orthogonal_projection(float left, float right, float bottom, float top, float near, float far) : bounds{{left, bottom, near}, {right, top, far}} { } constexpr explicit orthogonal_projection(tg::aabb3 const& bounds) : bounds(bounds) {} }; struct camera_transform { tg::pos3 pos; tg::pos3 target; constexpr explicit camera_transform(tg::pos3 pos, tg::pos3 target) : pos(pos), target(target) {} }; struct clip_plane { tg::pos3 pos; tg::vec3 normal; clip_plane(tg::pos3 p, tg::vec3 n) : pos(p), normal(n) {} }; /// additional keys for closing the viewer /// works with any GLFW_KEY_xyz /// Some ascii chars work as well, e.g. capital letter 'A', ... struct close_keys { std::vector<int> keys; template <class... Args> explicit close_keys(Args... args) { (keys.push_back(args), ...); } explicit close_keys(tg::span<int> keys) { for (auto k : keys) this->keys.push_back(k); } }; struct headless_screenshot { std::string filename; tg::ivec2 resolution; int accumulationCount; GLenum format; explicit headless_screenshot(tg::ivec2 resolution = tg::ivec2(3840, 2160), int accumulationCount = 64, std::string_view filename = "viewer_screen.png", GLenum format = GL_RGB8) : filename(filename), resolution(resolution), accumulationCount(accumulationCount), format(format) { } }; // Config tags inline auto constexpr no_grid = no_grid_t{}; inline auto constexpr no_left_mouse_control = no_left_mouse_control_t{}; inline auto constexpr no_right_mouse_control = no_right_mouse_control_t{}; inline auto constexpr no_shadow = no_shadow_t{}; inline auto constexpr no_shading = no_shading_t{}; inline auto constexpr maybe_empty = maybe_empty_t{}; inline auto constexpr print_mode = print_mode_t{}; inline auto constexpr no_outline = no_outline_t{}; inline auto constexpr no_ssao = ssao_power(0.f); inline auto constexpr controls_2d = controls_2d_t{}; inline auto constexpr transparent = transparent_t{}; inline auto constexpr opaque = opaque_t{}; inline auto constexpr no_fresnel = no_fresnel_t{}; inline auto constexpr clear_accumulation = clear_accumulation_t{}; inline auto constexpr dark_ui = dark_ui_t{}; inline auto constexpr subview_margin = subview_margin_t{}; inline auto constexpr infinite_accumulation = infinite_accumulation_t{}; inline auto constexpr tonemap_exposure = tonemap_exposure_t{}; inline auto constexpr backface_culling = backface_culling_t{}; inline auto constexpr preserve_camera = preserve_camera_t{}; inline auto constexpr reuse_camera = reuse_camera_t{}; // passthrough configures for scene modification commands void configure(Renderable&, no_grid_t b); void configure(Renderable&, no_shadow_t); void configure(Renderable&, no_left_mouse_control_t b); void configure(Renderable&, no_right_mouse_control_t b); void configure(Renderable&, print_mode_t b); void configure(Renderable&, maybe_empty_t); void configure(Renderable&, no_outline_t b); void configure(Renderable&, infinite_accumulation_t b); void configure(Renderable&, controls_2d_t b); void configure(Renderable&, dark_ui_t b); void configure(Renderable&, subview_margin_t b); void configure(Renderable&, clear_accumulation_t b); void configure(Renderable&, tonemap_exposure_t const& b); void configure(Renderable&, background_color const& b); void configure(Renderable&, ssao_power const& b); void configure(Renderable&, ssao_radius const& b); void configure(Renderable&, grid_size const& v); void configure(Renderable&, grid_center const& v); void configure(Renderable&, camera_orientation const& b); void configure(Renderable&, orthogonal_projection const& p); void configure(Renderable&, camera_transform const& b); void configure(Renderable&, headless_screenshot const& b); void configure(Renderable&, close_keys const& k); void configure(Renderable&, preserve_camera_t b); void configure(Renderable&, reuse_camera_t b); /// custom scene configuration void configure(Renderable&, std::function<void(SceneConfig&)> f); /// give the view its own camera void configure(Renderable&, SharedCameraController c); /// overrides the transform of the given renderable void configure(Renderable& r, tg::mat4 const& transform); template <class ScalarT> void configure(Renderable& r, tg::mat<4, 4, ScalarT> const& transform) { configure(r, tg::mat4(transform)); } #if GLOW_HAS_GLM void configure(Renderable& r, glm::mat4 const& transform); #endif /// custom bounding box void configure(Renderable&, tg::aabb3 const& bounds); /// names the renderable void configure(Renderable& r, char const* name); void configure(Renderable& r, std::string_view name); void configure(Renderable& r, std::string const& name); /// add renderjob void configure(Renderable&, SharedRenderable const& rj); /// global color of the renderable void configure(GeometricRenderable& r, glow::colors::color const& c); template <class Color, class = std::enable_if_t<detail::is_color3_like<Color> || detail::is_color4_like<Color>>> void configure(GeometricRenderable& r, Color const& c); /// per-primitive color of the renderable template <class Color, class = std::enable_if_t<detail::is_color3_like<Color> || detail::is_color4_like<Color>>> void configure(GeometricRenderable& r, polymesh::vertex_attribute<Color> const& c); template <class Color, class = std::enable_if_t<detail::is_color3_like<Color> || detail::is_color4_like<Color>>> void configure(GeometricRenderable& r, polymesh::face_attribute<Color> const& c); template <class Color, class = std::enable_if_t<detail::is_color3_like<Color> || detail::is_color4_like<Color>>> void configure(GeometricRenderable& r, polymesh::edge_attribute<Color> const& c); template <class Color, class = std::enable_if_t<detail::is_color3_like<Color> || detail::is_color4_like<Color>>> void configure(GeometricRenderable& r, polymesh::halfedge_attribute<Color> const& c); template <class Color, class = std::enable_if_t<detail::is_color3_like<Color> || detail::is_color4_like<Color>>> void configure(GeometricRenderable& r, std::vector<Color> const& c); /// mapping from data to color void configure(GeometricRenderable& r, ColorMapping const& cm); /// textured mesh void configure(GeometricRenderable& r, Texturing const& t); /// visibility mask void configure(GeometricRenderable& r, Masking const& m); /// render modes void configure(GeometricRenderable& r, transparent_t); void configure(GeometricRenderable& r, opaque_t); void configure(GeometricRenderable& r, no_fresnel_t); /// culling void configure(GeometricRenderable& r, backface_culling_t b); /// clipping void configure(GeometricRenderable& r, clip_plane const& p); /// shading void configure(GeometricRenderable& r, no_shading_t s); void configure(GeometricRenderable& r, EnvMap const& em); // ================== Implementation ================== template <class Color, class> void configure(GeometricRenderable& r, Color const& c) { if constexpr (detail::is_color4_like<Color>) { configure(r, glow::colors::color(c.r, c.g, c.b, c.a)); if (c.a < 1) r.setRenderMode(GeometricRenderable::RenderMode::Transparent); } else configure(r, glow::colors::color(c.r, c.g, c.b)); } template <class Color, class> void configure(GeometricRenderable& r, polymesh::vertex_attribute<Color> const& c) { r.addAttribute(detail::make_mesh_attribute("aColor", c)); if constexpr (detail::is_color4_like<Color>) if (!c.empty() && c.min([](auto&& v) { return v.a; }) < 1) r.setRenderMode(GeometricRenderable::RenderMode::Transparent); r.clearHash(); } template <class Color, class> void configure(GeometricRenderable& r, polymesh::face_attribute<Color> const& c) { r.addAttribute(detail::make_mesh_attribute("aColor", c)); if constexpr (detail::is_color4_like<Color>) if (!c.empty() && c.min([](auto&& v) { return v.a; }) < 1) r.setRenderMode(GeometricRenderable::RenderMode::Transparent); r.clearHash(); } template <class Color, class> void configure(GeometricRenderable& r, polymesh::halfedge_attribute<Color> const& c) { r.addAttribute(detail::make_mesh_attribute("aColor", c)); if constexpr (detail::is_color4_like<Color>) if (!c.empty() && c.min([](auto&& v) { return v.a; }) < 1) r.setRenderMode(GeometricRenderable::RenderMode::Transparent); r.clearHash(); } template <class Color, class> void configure(GeometricRenderable& r, polymesh::edge_attribute<Color> const& c) { r.addAttribute(detail::make_mesh_attribute("aColor", c)); if constexpr (detail::is_color4_like<Color>) if (!c.empty() && c.min([](auto&& v) { return v.a; }) < 1) r.setRenderMode(GeometricRenderable::RenderMode::Transparent); r.clearHash(); } template <class Color, class> void configure(GeometricRenderable& r, std::vector<Color> const& c) { r.addAttribute(detail::make_mesh_attribute("aColor", c)); if constexpr (detail::is_color4_like<Color>) if (!c.empty() && tg::min_element(c, [](auto&& v) { return v.a; }) < 1) r.setRenderMode(GeometricRenderable::RenderMode::Transparent); r.clearHash(); } // feature test template <class RenderableT, class ConfigT> auto detail_can_be_configured(RenderableT& r, ConfigT&& cfg) -> decltype(configure(r, cfg), std::true_type{}); template <class RenderableT, class ConfigT> auto detail_can_be_configured(...) -> std::false_type; template <class RenderableT, class ConfigT> static constexpr bool can_be_configured = decltype(glow::viewer::detail_can_be_configured<RenderableT, ConfigT>(std::declval<RenderableT&>(), std::declval<ConfigT>()))::value; // perform configure template <class RenderableT, class ConfigT> void execute_configure(RenderableT& r, ConfigT&& cfg) { static_assert(can_be_configured<RenderableT, ConfigT>, "no configure(...) found for this Renderable + Config. see \"configure.hh\" for available " "options"); configure(r, cfg); } }
SELECT post_title, MAX(date_created) FROM Posts GROUP BY post_title ORDER BY date_created DESC
#!/usr/bin/env bash set -ex # Make sure git is installed if [ -z "$(which git)" ] ; then echo "Git is not installed. Quitting." exit 1 fi # Make sure hub is installed if [ -z "$(which hub)" ] ; then echo "Hub is not installed. Quitting." exit 1 fi # Fetch remote tags git fetch --prune-tags --prune --tags # Get the current branch branch=$(git rev-parse --abbrev-ref HEAD) if [ "$branch" != "master" ] ; then echo "You must release the master branch only. Current branch is: $branch" exit 1 fi # Make sure we only have untracked files in the branch if [ ! -z "$(git status --untracked-files=no --porcelain)" ]; then echo "There are uncommitted changes in tracked files. Quitting." exit 1 fi # Get the current version curr_version=$(git tag -l --points-at HEAD 'v*') if [ "$curr_version" == "" ] ; then echo "No version set" exit 1 fi if [ $(hub release | grep "^$curr_version$") ] ; then echo "This release already exists." exit 1 fi hub release create\ -a build/cog_${curr_version}_linux_386.tgz\ -a build/cog_${curr_version}_darwin_amd64.zip\ -a build/cog_${curr_version}_linux_amd64.tgz\ -m $curr_version -t master $curr_version
<filename>VersionInfoMaintain/src/com/versionmaintain/model/IgnoreFileTableModel.java /* * Copyright 2015 lixiaobo * * VersionUpgrade project licenses this file to you 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 com.versionmaintain.model; import java.util.ArrayList; import java.util.List; import javax.swing.table.AbstractTableModel; import com.versionmaintain.utils.VersionServiceUtils; /** * @author xiaobolx 2016年1月25日 */ public class IgnoreFileTableModel extends AbstractTableModel { private static final long serialVersionUID = 6878684868766020372L; private List<String> ignoreFileList = new ArrayList<String>(); public IgnoreFileTableModel(List<String> ignoreFileList) { if (null != ignoreFileList) { this.ignoreFileList = ignoreFileList; } } @Override public int getRowCount() { return ignoreFileList.size(); } @Override public int getColumnCount() { return 2; } @Override public Object getValueAt(int rowIndex, int columnIndex) { switch (columnIndex) { case 0: return rowIndex + 1; case 1: return ignoreFileList.get(rowIndex); } return null; } @Override public String getColumnName(int column) { switch (column) { case 0: return "Seq"; case 1: return "IgnoreFile"; default: return "N/A"; } } @Override public boolean isCellEditable(int rowIndex, int columnIndex) { return columnIndex == 1; } @Override public void setValueAt(Object aValue, int rowIndex, int columnIndex) { if(null == aValue || aValue.toString().isEmpty()) { return; } ignoreFileList.remove(rowIndex); ignoreFileList.add(rowIndex, aValue.toString()); } public void addItem() { this.ignoreFileList.add(VersionServiceUtils.getDiffInfo(ignoreFileList)); } public void deleteItem(int selectedRow) { if(-1 == selectedRow || selectedRow >= ignoreFileList.size()) { return; } ignoreFileList.remove(selectedRow); } }
<reponame>lucianbc/lucianbc.github.io import React from 'react'; import { useStaticQuery, graphql } from "gatsby" import "./experience.scss" import imgUb from "../../assets/unibuc.png" import imgGtl from "../../assets/gtl.jpeg" import imgAmz from "../../assets/logo-amazon-square.jpg" import Item from "./experienceItem" export default () => { const images = useStaticQuery(graphql` query { amzImg: file(relativePath: { eq: "logo-amazon-square.jpg" }) { childImageSharp { fluid(maxWidth: 130) { ...GatsbyImageSharpFluid } } }, gtlImg: file(relativePath: { eq: "gtl.jpeg" }) { childImageSharp { fluid(maxWidth: 130) { ...GatsbyImageSharpFluid } } }, unibucImg: file(relativePath: { eq: "unibuc.png" }) { childImageSharp { fluid(maxWidth: 130) { ...GatsbyImageSharpFluid } } } } `) const data = _data(images) return ( <section id="experience" className='accent-background'> <div className='container columns'> <article className='column'> <div> <h2 className='text-2'> Education </h2> <div> { data.education.map((value, index) => <Item model={value} key={index}/>) } </div> </div> </article> <article className='column'> <div> <h2 className='text-2'> Work </h2> <div> { data.work.map((value, index) => <Item model={value} key={index}/>) } </div> </div> </article> </div> </section> ) } const _data = (images) => ({ education: [ { image: imgUb, alt: 'Logo Unibuc', optImg: images['unibucImg'], title: 'BSc. Computer Science', vendor: 'University of Bucharest', period: 'October 2016 - September 2019', bullets: [ "Took a wide spectrum of courses, ranging from Math and abstract Computer Science to more applied Software Engineering", "Applied the theoretical knowledge on <a href='https://github.com/lucianbc?utf8=%E2%9C%93&tab=repositories&q=%23university&type=&language=' target='_blank' rel='noopener noreferrer'><b>projects</b></a> on different subjects and involving different technologies" ] } ], work: [ { image: imgAmz, alt: 'Logo Amazon', optImg: images['amzImg'], title: 'Software Developer Intern', vendor: 'Amazon EU', period: 'July 2018 - December 2018', location: 'Luxembourg', bullets: [ "Used Python to automate some parts of a data migration, which sped it up by more than a month.", "Developed a serverless application to watch a stream of millions of messages a day, helping the ops team with dashboards on traffic and errors.", "Worked on migrating and maintaining a data pipeline comprised of Redshift ETL jobs.", "Used various AWS services, including Lambda, SQS, SNS, Kinesis Firehose and further developed my Java and Python skills." ] }, { image: imgGtl, alt: 'Logo Gtl', optImg: images['gtlImg'], title: 'Junior Backend Developer', vendor: 'Gentlab', period: 'March 2017 - March 2018', location: 'Bucharest', bullets: [ "Worked on an e-learning platform as a part time backend developer for 20 to 25 hours a week", "Implemented a quiz feature with support for random quizzes for each user and import from external sources.", "Implemented a service to manage conferences and live streaming sessions", "Worked mainly with Java and Spring, but I also used Elastic Search and React. Here I also got familiar with Docker." ] } ] })
<filename>lib/beaker/version.rb module Beaker module Version STRING = '2.27.0' end end
#! /bin/sh . ${TOPDIR}/util/functions.sh # Should be no answers. n=$(jq_count eve.json 'select(.event_type == "dns") | select(.dns.type != "query")') assert_eq 0 $n "only queries expected" exit 0
package com.deskbill.view; import java.awt.Font; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.util.List; import javax.swing.JButton; import javax.swing.JDialog; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JScrollPane; import javax.swing.JTable; import javax.swing.ListSelectionModel; import javax.swing.table.DefaultTableModel; import com.deskbill.domain.Sort; import com.deskbill.tools.GUITools; import com.deskbill.tools.ListTableModel; /** * * 弹出分类管理对话框 */ public abstract class AbstractSortMngDialog extends JDialog { private static final long serialVersionUID = 2669500834026588519L; // 在对话框,显示数据的表格,权限设置是为子类使用 protected JTable sortDataTable = new JTable();// 账户数据列表 private JButton closeBtn = new JButton("关闭"); private JButton addBtn = new JButton("添加"); private JButton editBtn = new JButton("编辑"); private JButton delBtn = new JButton("删除"); public AbstractSortMngDialog(JFrame frame) { super(frame, true); this.initDialog(); } protected void initDialog() { this.init(); this.addComponent(); this.addListener(); } private void init() { this.setResizable(false);// 设置窗体大小不可变 this.setTitle("分类管理:");// 设置标题 this.setSize(680, 400);// 设置大小 GUITools.center(this);// 设置居中 this.setLayout(null); this.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);// 设置关闭按钮 } private void addComponent() { // 设置标签标题 JLabel titleLable = new JLabel(); titleLable.setFont(new Font("宋体", Font.ITALIC, 18)); titleLable.setText("分类管理"); titleLable.setBounds(280, 20, 165, 20); this.add(titleLable); // 滚动面板,带有滚动条的容器 JScrollPane scrollPane = new JScrollPane(); scrollPane.setBounds(30, 100, 620, 160); sortDataTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);// 单选 sortDataTable.getTableHeader().setReorderingAllowed(false);// 列不能移动 // 在带有滚动条的容器上,设置显示表格 scrollPane.setViewportView(sortDataTable); this.add(scrollPane); // 按钮 addBtn.setBounds(30, 290, 140, 28); this.add(addBtn); editBtn.setBounds(270, 290, 140, 28); this.add(editBtn); delBtn.setBounds(510, 290, 140, 28); this.add(delBtn); // 关闭按钮 closeBtn.setBounds(570, 330, 80, 28); this.add(closeBtn); } /** * 显示分类表格 */ protected void setTableModel(List<Sort> sortList) { String[] colNames = new String[] { "ID", "分类名称", "所属类型", "说明" }; String[] propNames = new String[] { "sid", "sname", "type", "sdesc" }; if (sortList == null || sortList.size() == 0) { sortDataTable.setModel(new DefaultTableModel( new Object[][] { { null, null, null, null }, { null, null, null, null }, { null, null, null, null }, { null, null, null, null }, { null, null, null, null }, { null, null, null, null }, { null, null, null, null }, { null, null, null, null } }, colNames)); sortDataTable.setEnabled(false); editBtn.setEnabled(false); delBtn.setEnabled(false); return; } try { sortDataTable.setModel(new ListTableModel<Sort>(sortList, colNames, propNames)); sortDataTable.setEnabled(true); } catch (Exception e) { e.printStackTrace(); } } @SuppressWarnings("all") /* * 编辑,删除分类 传递选择的第几行 将选择的那一行,所有数据封装成一个Sort对象 */ protected Sort getSortByTableRow(int row) { return ((ListTableModel<Sort>) sortDataTable.getModel()).getInstance(row); } /** * * 给组件添加监听器 */ private void addListener() { closeBtn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { AbstractSortMngDialog.this.dispose(); } }); /* * 添加分类按钮的事件监听器 */ addBtn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { addSort(); } }); /* * 编辑分类按钮的事件监听器 */ editBtn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { int selectedRow = sortDataTable.getSelectedRow(); if(selectedRow == -1) { editBtn.setEnabled(false); delBtn.setEnabled(false); return; } String columnName = (String)sortDataTable.getModel().getValueAt(selectedRow, 0); if (columnName == null || "".equals(columnName)) { editBtn.setEnabled(false); delBtn.setEnabled(false); return; } editSort(Integer.parseInt(columnName)); } }); /* * 删除分类按钮的事件监听器 */ delBtn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { int selectedRow = sortDataTable.getSelectedRow(); if( selectedRow == -1) { editBtn.setEnabled(false); delBtn.setEnabled(false); return; } String columnName = (String)sortDataTable.getModel().getValueAt(selectedRow, 0); if (columnName == null || "".equals(columnName)) { editBtn.setEnabled(false); delBtn.setEnabled(false); return; } deleteSort(Integer.parseInt(columnName)); sortDataTable.clearSelection(); delBtn.setEnabled(false); } }); /* * 显示数据的表格,鼠标的双击事件 调用编辑分类方法 */ sortDataTable.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent e) { if (e.getButton() == 1) { if (e.getClickCount() >= 2) { int selectedRow = sortDataTable.getSelectedRow(); if(selectedRow == -1) { editBtn.setEnabled(false); delBtn.setEnabled(false); return; } String columnName = (String)sortDataTable.getModel().getValueAt(selectedRow, 0); if (columnName == null) { editBtn.setEnabled(false); delBtn.setEnabled(false); return; } editSort(Integer.parseInt(columnName)); } } if (sortDataTable.getSelectedRow() != -1) { editBtn.setEnabled(true); delBtn.setEnabled(true); }else { editBtn.setEnabled(false); delBtn.setEnabled(false); } } @Override public void mouseReleased(MouseEvent e) { // TODO Auto-generated method stub super.mouseReleased(e); int selectedRow = sortDataTable.getSelectedRow(); if(selectedRow == -1) { editBtn.setEnabled(false); delBtn.setEnabled(false); return; } String columnName = (String)sortDataTable.getModel().getValueAt(selectedRow, 0); if (columnName == null) { editBtn.setEnabled(false); delBtn.setEnabled(false); return; } } }); } /* * 点击添加分类后调用 子类重写,运行的是子类重写 */ public abstract void addSort(); /* * 点击编辑分类后调用 */ public abstract void editSort(Integer sid); /* * 点击删除分类后调用 */ public abstract void deleteSort(Integer sid); }
<reponame>Skalwalker/NumberRecognition import matplotlib.pyplot as plt import numpy as np import itertools class Plot(object): @staticmethod def plot_confusion_matrix(cm, classes, normalize=False, title='Matriz de confusão', cmap=plt.cm.Blues): plt.figure() if normalize: cm = cm.astype('float') / cm.sum(axis=1)[:, np.newaxis] plt.imshow(cm, interpolation='nearest', cmap=cmap) plt.title(title) plt.colorbar() tick_marks = np.arange(len(classes)) plt.xticks(tick_marks, classes) plt.yticks(tick_marks, classes) thresh = cm.max() / 2. for i, j in itertools.product(range(cm.shape[0]), range(cm.shape[1])): if normalize: string = "{0:.0f}%".format(cm[i, j]*100) else: string = "{}".format(cm[i, j]) plt.text(j, i, string, horizontalalignment="center", color="white" if cm[i, j] > thresh else "black") plt.tight_layout() plt.ylabel('classes reais') plt.xlabel('classes preditas') plt.show()
module X12 # Implements a segment containing fields or composites class Segment < Base attr_accessor :fields # Parses this segment out of a string, puts the match into value, # returns the rest of the string - nil if cannot parse. # # @param str [String] # @return [nil] def parse(str) s = str # puts "Parsing segment #{name} from #{s} with regexp [#{regexp.source}]" m = regexp.match(s) # puts "Matched #{m ? m[0] : 'nothing'}" return nil unless m s = m.post_match self.parsed_str = m[0] s = do_repeats(s) # puts "Parsed segment "+self.inspect return s end # Render all components of this segment as string suitable for EDI. def render self.to_a.inject('') { |repeat_str, i| if i.repeats.begin < 1 and !i.has_content? # Skip optional empty segments repeat_str else # Have to render no matter how empty repeat_str += i.name + i.nodes.reverse.inject('') { |nodes_str, j| field = j.render (j.required or nodes_str != '' or field != '') ? field_separator + field + nodes_str : nodes_str } + segment_separator end } end # Returns a regexp that matches this particular segment. def regexp unless defined? @regexp if self.nodes.find { |i| i.type =~ /^".+"$/ } # It's a very special regexp if there are constant fields re_str = self.nodes.inject("^#{name}#{Regexp.escape(field_separator)}") { |s, i| field_re = i.simple_regexp(field_separator, segment_separator) + Regexp.escape(field_separator) + '?' field_re = "(#{field_re})?" unless i.required s + field_re } + Regexp.escape(segment_separator) @regexp = Regexp.new(re_str) else # Simple match @regexp = Regexp.new("^#{name}#{Regexp.escape(field_separator)}[^#{Regexp.escape(segment_separator)}]*#{Regexp.escape(segment_separator)}") end # puts sprintf("%s %p", name, @regexp) end @regexp end # Finds a field in the segment. Returns EMPTY if not found. def find_field(str) # puts "Finding field [#{str}] in #{self.class} #{name}" # If there is such a field to begin with field_num = nil self.nodes.each_index{ |i| field_num = i if str == self.nodes[i].name } return EMPTY if field_num.nil? # puts field_num # Parse the segment if not parsed already unless defined? @fields @fields = self.to_s.chop.split(Regexp.new(Regexp.escape(field_separator))) self.nodes.each_index { |i| self.nodes[i].content = @fields[i + 1] } end # puts self.nodes[field_num].inspect return self.nodes[field_num] end # provides loopong through multiple segments within the loop def each res = self.to_a 0.upto(res.length - 1) do |x| yield res[x] end end end end
#!/bin/bash export SCRIPT_LOCT=$( cd $( dirname $0 ); pwd ) cd $SCRIPT_LOCT/../.. mvn clean docker build -t zenhub-api-mirror --file=resources/docker/Dockerfile .
#!/bin/bash # 以Get请求为例 reqUrl="yourapi" echo "request url is : $reqUrl" resData=$(curl $reqUrl) echo "get data : <$resData>" parseJson(){ echo $1 | sed 's/.*'$2':\([^,}]*\).*/\1/' } # 假设返回的json数据有两个字段,分别为total和fail total=$(parseJson $resData '"total"') fail=$(parseJson $resData '"fail"') # 对数据进行入mysql库 insertSql="INSERT INTO your_mysql_table(total,fail) values($total, $fail)" echo "general sql: <$insertSql>" cnt=$(mysql -hxxxxxx -P3306 -uxxxxxx -pxxxxx your_db_name -e "$insertSql") if($cnt>0);then echo 'insert record successfully!' else echo 'no insert!' fi
The software will contain two components: a task database and a reminder system. The task database will be used to store information about tasks such as title, description, due date and any other relevant information. The databse will be designed to make it easy to query the tasks and filter them based on certain criteria. The reminder system will take input from the task database and send emails to the relevant users when a task reaches its due date. The system will be able to send emails to multiple users and can be configured to send emails on different intervals (such as a day before the due date, 2 days before the due date, etc).
import flask from collections import Counter app = flask.Flask(__name__) @app.route("/") def index(): return """ <form action="/analyze" method="GET"> <textarea name="text">$text</textarea> <input type="submit" value="Analyze"> </form> """ @app.route("/analyze/") def analyze(): text = flask.request.args.get("text", "") words = [word.strip().lower() for word in text.split()] count = Counter(words) return """ <h1>Most common words</h1> <ul> """ + "\n".join(f"<li>{word}: {count}</li>" for word, count in count.most_common()) + """ </ul> """ if __name__ == '__main__': app.run(host="0.0.0.0")
<gh_stars>0 # Copyright (c) 2012 Bingo Entreprenøren AS # Copyright (c) 2012 Teknobingo Scandinavia AS # Copyright (c) 2012 <NAME> # Copyright (c) 2012 <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. module Trust class NoBlockError < StandardError; end class UnsupportedCondition < StandardError; end class RoleAssigmnentMissing < StandardError; end class AccessDenied < StandardError attr_reader :action, :subject attr_writer :default_message def initialize(message = nil, action = nil, subject = nil) @message = message @action = action @subject = subject @default_message = I18n.t(:"unauthorized.default", :default => "You are not authorized to access this page.") end def to_s @message || @default_message end end end
#!/bin/bash -e IMAGE="vcaca-ubuntu1604-analytics-ffmpeg" VERSION="19.11" DIR=$(dirname $(readlink -f "$0")) . "${DIR}/../../../../script/build.sh"
<gh_stars>0 package test import org.scalacheck._ import org.scalacheck.Prop.{forAll} import org.scalacheck.Gen.{ choose, listOf, nonEmptyListOf, listOfN, oneOf } import model._ object ExecutableSpec extends Properties("Executable") { implicit lazy val arbOperation: Arbitrary[Operation] = Arbitrary(Generators.operationGen) property("contents replace using Operation") = forAll { (oper: Operation) => !(oper.contents.view.map(s => s contains "&").takeWhile(r => !r) reduceLeft(_ || _)) } }
var xyData = [ {"x": 0, "y": 1}, {"x": 0.11865740740740742, "y": 2}, {"x": 0.11887731481481482, "y": 3}, {"x": 1.1845949074074074, "y": 4}, {"x": 1.2361342592592592, "y": 5}, {"x": 1.2718402777777778, "y": 6}, {"x": 4.949074074074074, "y": 7}, {"x": 4.975763888888889, "y": 8}, {"x": 4.981296296296296, "y": 9}, {"x": 4.984826388888888, "y": 10}, {"x": 4.989039351851852, "y": 11}, {"x": 4.989537037037037, "y": 12}, {"x": 4.990486111111111, "y": 13}, {"x": 5.005173611111111, "y": 14}, {"x": 5.03363425925926, "y": 15}, {"x": 5.03386574074074, "y": 16}, {"x": 5.062141203703704, "y": 17}, {"x": 5.070092592592593, "y": 18}, {"x": 5.097372685185185, "y": 19}, {"x": 5.099965277777778, "y": 20}, {"x": 5.101469907407408, "y": 21}, {"x": 5.114988425925926, "y": 22}, {"x": 5.121203703703704, "y": 23}, {"x": 5.1215625000000005, "y": 24}, {"x": 5.12181712962963, "y": 25}, {"x": 5.123483796296296, "y": 26}, {"x": 5.148819444444444, "y": 27}, {"x": 5.149039351851852, "y": 28}, {"x": 5.224375, "y": 29}, {"x": 5.235590277777778, "y": 30}, {"x": 5.236493055555555, "y": 31}, {"x": 5.241030092592593, "y": 32}, {"x": 5.27037037037037, "y": 33}, {"x": 5.288391203703704, "y": 34}, {"x": 5.384409722222222, "y": 35}, {"x": 5.98425925925926, "y": 36}, {"x": 5.998784722222222, "y": 37}, {"x": 6.013437500000001, "y": 39}, {"x": 6.081898148148148, "y": 38}, {"x": 6.083807870370371, "y": 40}, {"x": 6.088784722222222, "y": 41}, {"x": 6.0986574074074085, "y": 42}, {"x": 6.099074074074074, "y": 43}, {"x": 6.101342592592592, "y": 44}, {"x": 6.116979166666667, "y": 45}, {"x": 6.122303240740741, "y": 46}, {"x": 6.12244212962963, "y": 47}, {"x": 6.151770833333333, "y": 48}, {"x": 6.216157407407407, "y": 49}, {"x": 6.218472222222222, "y": 50}, {"x": 6.224849537037037, "y": 51}, {"x": 6.228564814814814, "y": 52}, {"x": 6.231967592592593, "y": 53}, {"x": 7.170775462962962, "y": 54}, {"x": 7.26568287037037, "y": 55}, {"x": 7.268298611111111, "y": 56}, {"x": 7.310254629629629, "y": 57}, {"x": 7.313622685185185, "y": 58}, {"x": 7.323611111111112, "y": 59}, {"x": 7.33269675925926, "y": 60}, {"x": 7.333402777777778, "y": 61}, {"x": 7.339247685185185, "y": 62}, {"x": 7.339745370370371, "y": 63}, {"x": 7.34443287037037, "y": 64}, {"x": 7.348206018518518, "y": 65}, {"x": 7.3503240740740745, "y": 66}, {"x": 8.067395833333332, "y": 67}, {"x": 8.123564814814815, "y": 68}, {"x": 8.123935185185186, "y": 69}, {"x": 8.158877314814815, "y": 70}, {"x": 8.159236111111111, "y": 71}, {"x": 8.159409722222222, "y": 72}, {"x": 8.161238425925925, "y": 73}, {"x": 8.161388888888888, "y": 74}, {"x": 8.199756944444443, "y": 82}, {"x": 8.220625, "y": 75}, {"x": 8.247048611111111, "y": 76}, {"x": 8.275636574074074, "y": 77}, {"x": 8.283414351851851, "y": 78}, {"x": 8.287881944444445, "y": 79}, {"x": 9.013819444444444, "y": 80}, {"x": 9.167962962962962, "y": 81}, {"x": 9.171724537037036, "y": 83}, {"x": 9.1940625, "y": 84}, {"x": 9.208171296296296, "y": 85}, {"x": 9.211828703703704, "y": 90}, {"x": 9.211828703703704, "y": 86}, {"x": 9.212685185185185, "y": 87}, {"x": 9.241145833333333, "y": 88}, {"x": 9.363379629629629, "y": 89}, {"x": 9.53142361111111, "y": 91}, {"x": 9.556863425925926, "y": 92}, {"x": 9.562766203703704, "y": 93}, {"x": 9.576076388888888, "y": 94}, {"x": 10.15550925925926, "y": 95}, {"x": 10.156967592592592, "y": 96}, {"x": 10.15857638888889, "y": 97}, {"x": 10.539467592592592, "y": 98}, {"x": 10.540173611111111, "y": 99}, {"x": 10.541944444444445, "y": 100}, {"x": 11.989641203703703, "y": 101}, {"x": 12.02289351851852, "y": 102}, {"x": 12.024189814814813, "y": 103}, {"x": 12.024837962962962, "y": 104}, {"x": 12.047650462962961, "y": 105}, {"x": 12.093622685185183, "y": 106}, {"x": 12.14425925925926, "y": 107}, {"x": 12.244027777777779, "y": 108}, {"x": 12.244027777777779, "y": 110}, {"x": 12.249537037037037, "y": 109}, {"x": 12.2834375, "y": 111}, {"x": 12.286782407407408, "y": 112}, {"x": 12.983842592592593, "y": 113}, {"x": 12.986550925925927, "y": 114}, {"x": 12.993877314814815, "y": 115}, {"x": 13.001666666666667, "y": 116}, {"x": 13.002638888888889, "y": 117}, {"x": 13.004247685185184, "y": 119}, {"x": 13.015972222222222, "y": 118}, {"x": 13.016238425925927, "y": 120}, {"x": 13.017303240740743, "y": 121}, {"x": 13.02925925925926, "y": 122}, {"x": 13.033368055555556, "y": 123}, {"x": 13.036863425925924, "y": 124}, {"x": 13.043611111111112, "y": 125}, {"x": 13.045578703703704, "y": 126}, {"x": 13.04806712962963, "y": 127}, {"x": 13.052974537037038, "y": 128}, {"x": 13.062418981481484, "y": 129}, {"x": 13.06273148148148, "y": 130}, {"x": 13.063680555555557, "y": 131}, {"x": 13.166782407407409, "y": 133}, {"x": 13.222245370370372, "y": 132}, {"x": 14.027303240740741, "y": 134}, {"x": 14.05474537037037, "y": 135}, {"x": 14.077106481481481, "y": 136}, {"x": 14.078078703703705, "y": 137}, {"x": 14.080995370370372, "y": 138}, {"x": 14.082141203703705, "y": 139}, {"x": 14.091828703703705, "y": 140}, {"x": 14.107013888888888, "y": 141}, {"x": 14.116782407407408, "y": 142}, {"x": 14.117199074074074, "y": 143}, {"x": 14.229872685185185, "y": 144}, {"x": 14.248414351851851, "y": 145}, {"x": 14.260740740740742, "y": 146}, {"x": 14.274363425925925, "y": 147}, {"x": 14.331550925925926, "y": 148}, {"x": 14.34224537037037, "y": 149}, {"x": 14.35462962962963, "y": 150}, {"x": 14.354756944444444, "y": 151}, {"x": 14.357268518518518, "y": 152}, {"x": 14.364097222222222, "y": 153}, {"x": 14.368414351851852, "y": 154}, {"x": 14.371678240740742, "y": 155}, {"x": 14.434571759259258, "y": 156}, {"x": 14.566458333333335, "y": 157}, {"x": 14.978518518518518, "y": 158}, {"x": 15.020347222222222, "y": 159}, {"x": 15.094652777777776, "y": 161}, {"x": 15.112372685185186, "y": 162}, {"x": 15.152337962962962, "y": 160}, {"x": 15.188298611111113, "y": 163}, {"x": 15.189224537037036, "y": 164}, {"x": 15.250810185185186, "y": 166}, {"x": 15.252060185185186, "y": 165}, {"x": 16.021689814814817, "y": 168}, {"x": 16.0491087962963, "y": 169}, {"x": 16.08934027777778, "y": 170}, {"x": 16.094849537037035, "y": 171}, {"x": 16.096770833333334, "y": 172}, {"x": 16.11363425925926, "y": 173}, {"x": 16.11383101851852, "y": 174}, {"x": 16.115127314814814, "y": 175}, {"x": 16.1203125, "y": 167}, {"x": 16.12855324074074, "y": 176}, {"x": 16.155266203703704, "y": 177}, {"x": 16.266261574074075, "y": 178}, {"x": 16.278958333333332, "y": 179}, {"x": 16.285868055555557, "y": 180}, {"x": 16.287349537037038, "y": 181}, {"x": 18.976122685185185, "y": 182}, {"x": 18.976122685185185, "y": 183}, {"x": 18.986203703703705, "y": 184}, {"x": 19.021157407407408, "y": 185}, {"x": 19.1305787037037, "y": 186}, {"x": 19.15502314814815, "y": 187}, {"x": 19.156319444444446, "y": 188}, {"x": 19.163935185185185, "y": 189}, {"x": 19.167719907407406, "y": 190}, {"x": 19.178483796296295, "y": 191}, {"x": 19.182372685185182, "y": 192}, {"x": 19.190439814814816, "y": 193}, {"x": 19.193877314814817, "y": 194}, {"x": 19.198229166666668, "y": 195}, {"x": 19.237175925925925, "y": 196}, {"x": 19.240624999999998, "y": 197}, {"x": 19.25116898148148, "y": 198}, {"x": 19.976423611111112, "y": 199}, {"x": 19.97696759259259, "y": 200}, {"x": 19.986018518518517, "y": 201}, {"x": 19.990497685185186, "y": 202}, {"x": 20.01568287037037, "y": 203}, {"x": 20.070613425925927, "y": 204}, {"x": 20.071527777777778, "y": 205}, {"x": 20.100983796296298, "y": 206}, {"x": 20.10775462962963, "y": 207}, {"x": 20.107939814814817, "y": 208}, {"x": 20.112685185185185, "y": 209}, {"x": 20.11796296296296, "y": 217}, {"x": 20.161979166666665, "y": 210}, {"x": 20.17480324074074, "y": 211}, {"x": 20.174918981481483, "y": 212}, {"x": 20.20747685185185, "y": 213}, {"x": 20.259189814814814, "y": 214}, {"x": 20.259618055555553, "y": 215}, {"x": 20.262349537037036, "y": 216}, {"x": 20.383831018518517, "y": 218}, {"x": 20.968101851851852, "y": 219}, {"x": 20.98203703703704, "y": 220}, {"x": 20.99011574074074, "y": 221}, {"x": 21.077453703703704, "y": 222}, {"x": 21.091481481481484, "y": 223}, {"x": 21.10333333333333, "y": 224}, {"x": 21.130405092592593, "y": 225}, {"x": 21.19959490740741, "y": 226}, {"x": 21.20447916666667, "y": 227}, {"x": 21.212511574074075, "y": 228}, {"x": 21.265162037037037, "y": 229}, {"x": 21.267268518518517, "y": 230}, {"x": 21.29888888888889, "y": 231}, {"x": 21.29917824074074, "y": 232}, {"x": 21.300555555555555, "y": 233}, {"x": 21.304907407407406, "y": 234}, {"x": 21.30604166666667, "y": 240}, {"x": 22.014560185185186, "y": 235}, {"x": 22.015833333333333, "y": 236}, {"x": 22.022048611111114, "y": 237}, {"x": 22.037939814814816, "y": 241}, {"x": 22.051215277777775, "y": 238}, {"x": 22.055011574074072, "y": 239}, {"x": 23.105902777777775, "y": 242}, {"x": 25.9809375, "y": 243}, {"x": 27.03896990740741, "y": 244}, {"x": 27.222557870370366, "y": 245}, {"x": 27.2331712962963, "y": 246}, {"x": 27.251435185185183, "y": 247}, {"x": 28.036041666666666, "y": 248}, {"x": 28.041006944444447, "y": 249}, {"x": 28.049872685185182, "y": 250}, {"x": 28.167523148148145, "y": 251}, {"x": 29.24621527777778, "y": 252}, {"x": 29.247476851851854, "y": 253}, {"x": 29.264270833333338, "y": 254}, {"x": 29.26914351851852, "y": 255}, {"x": 30.071562500000002, "y": 256}, {"x": 30.090046296296293, "y": 257}, {"x": 30.167858796296297, "y": 258}, {"x": 30.170312499999998, "y": 259}, {"x": 30.18841435185185, "y": 260}, {"x": 30.207465277777775, "y": 261}, {"x": 30.21366898148148, "y": 262}, {"x": 30.228333333333335, "y": 263}, {"x": 30.235150462962963, "y": 264}, {"x": 30.242222222222225, "y": 265}, {"x": 30.273599537037033, "y": 266}, {"x": 30.27371527777778, "y": 267}, {"x": 33.02337962962962, "y": 268}, {"x": 33.028310185185184, "y": 269}, {"x": 33.02965277777778, "y": 270}, {"x": 33.031655092592594, "y": 271}, {"x": 33.0474537037037, "y": 272}, {"x": 33.05450231481481, "y": 273}, {"x": 33.05675925925926, "y": 274}, {"x": 33.06655092592593, "y": 275}, {"x": 33.07001157407407, "y": 276}, {"x": 33.07560185185185, "y": 277}, {"x": 33.21767361111111, "y": 278}, {"x": 33.225081018518516, "y": 279}, {"x": 33.2310300925926, "y": 280}, {"x": 33.23287037037037, "y": 281}, {"x": 33.23829861111111, "y": 282}, {"x": 33.240266203703705, "y": 283}, {"x": 33.2412962962963, "y": 284}, {"x": 33.261493055555555, "y": 285}, {"x": 33.518668981481476, "y": 286}, {"x": 34.01717592592592, "y": 290}, {"x": 34.01717592592592, "y": 287}, {"x": 34.02030092592592, "y": 288}, {"x": 34.02030092592592, "y": 291}, {"x": 34.14474537037037, "y": 289}, {"x": 34.96983796296296, "y": 292}, {"x": 34.972488425925924, "y": 293}, {"x": 34.984409722222225, "y": 294}, {"x": 35.118553240740745, "y": 295}, {"x": 35.213287037037034, "y": 296}, {"x": 35.21407407407408, "y": 297}, {"x": 35.218159722222225, "y": 298}, {"x": 35.243668981481484, "y": 299}, {"x": 35.24715277777778, "y": 300}, {"x": 36.02373842592593, "y": 301}, {"x": 36.09935185185185, "y": 302}, {"x": 36.09946759259259, "y": 303}, {"x": 36.11346064814815, "y": 304}, {"x": 37.19096064814814, "y": 305}, {"x": 37.19597222222222, "y": 306}, {"x": 37.20306712962962, "y": 307}, {"x": 37.20490740740741, "y": 308}, {"x": 37.208564814814814, "y": 309}, {"x": 37.21886574074074, "y": 310}, {"x": 37.21975694444444, "y": 311}, {"x": 37.270439814814814, "y": 312}, {"x": 37.272071759259255, "y": 313}, {"x": 37.27533564814815, "y": 314}, {"x": 40.12321759259259, "y": 315}, {"x": 40.13621527777778, "y": 316}, {"x": 40.188541666666666, "y": 317}, {"x": 40.19028935185185, "y": 318}, {"x": 40.19543981481481, "y": 320}, {"x": 40.20871527777778, "y": 322}, {"x": 40.21480324074074, "y": 323}, {"x": 40.21894675925926, "y": 324}, {"x": 40.21894675925926, "y": 325}, {"x": 40.2240625, "y": 327}, {"x": 40.2240625, "y": 326}, {"x": 40.227604166666666, "y": 328}, {"x": 40.227604166666666, "y": 329}, {"x": 40.23909722222222, "y": 331}, {"x": 40.23909722222222, "y": 332}, {"x": 40.24525462962963, "y": 343}, {"x": 40.24570601851852, "y": 333}, {"x": 40.24855324074074, "y": 334}, {"x": 40.24961805555555, "y": 335}, {"x": 40.25143518518518, "y": 337}, {"x": 40.25157407407408, "y": 338}, {"x": 40.25409722222222, "y": 339}, {"x": 40.25686342592592, "y": 341}, {"x": 40.26166666666667, "y": 342}, {"x": 40.32011574074074, "y": 319}, {"x": 40.322939814814816, "y": 321}, {"x": 40.35635416666667, "y": 330}, {"x": 40.3749537037037, "y": 336}, {"x": 40.37943287037037, "y": 340}, {"x": 41.22336805555556, "y": 344}, {"x": 41.22625, "y": 345}, {"x": 41.23767361111111, "y": 346}, {"x": 42.13510416666667, "y": 351}, {"x": 42.182939814814816, "y": 347}, {"x": 42.197175925925926, "y": 352}, {"x": 42.239143518518524, "y": 348}, {"x": 42.26459490740741, "y": 349}, {"x": 42.27060185185185, "y": 350}, {"x": 42.37271990740741, "y": 353}, {"x": 43.00752314814815, "y": 356}, {"x": 43.01260416666667, "y": 357}, {"x": 43.02207175925926, "y": 358}, {"x": 43.024791666666665, "y": 354}, {"x": 43.050497685185185, "y": 355}, {"x": 43.11667824074075, "y": 360}, {"x": 43.18917824074074, "y": 359}, {"x": 43.238252314814815, "y": 361}, {"x": 44.00144675925926, "y": 362}, {"x": 44.02211805555555, "y": 363}, {"x": 44.02373842592593, "y": 364}, {"x": 44.02640046296296, "y": 365}, {"x": 44.02998842592593, "y": 366}, {"x": 44.03875, "y": 367}, {"x": 44.11216435185185, "y": 368}, {"x": 44.1180787037037, "y": 369}, {"x": 44.12475694444444, "y": 370}, {"x": 44.12777777777777, "y": 371}, {"x": 44.154386574074074, "y": 373}, {"x": 44.156412037037036, "y": 374}, {"x": 44.17255787037036, "y": 375}, {"x": 44.18305555555555, "y": 376}, {"x": 44.18512731481482, "y": 377}, {"x": 44.192708333333336, "y": 378}, {"x": 44.19475694444444, "y": 379}, {"x": 44.21083333333333, "y": 380}, {"x": 44.22140046296297, "y": 381}, {"x": 44.23320601851852, "y": 382}, {"x": 44.236793981481476, "y": 383}, {"x": 44.25287037037037, "y": 372}, {"x": 44.27430555555555, "y": 384}, {"x": 47.26002314814815, "y": 386}, {"x": 47.27430555555555, "y": 385}, {"x": 47.976851851851855, "y": 390}, {"x": 48.02554398148149, "y": 388}, {"x": 48.0666087962963, "y": 391}, {"x": 48.073379629629635, "y": 389}, {"x": 48.09791666666666, "y": 392}, {"x": 48.10035879629629, "y": 387}, {"x": 48.10378472222222, "y": 393}, {"x": 48.105069444444446, "y": 395}, {"x": 48.1059837962963, "y": 396}, {"x": 48.136377314814816, "y": 397}, {"x": 48.15631944444445, "y": 398}, {"x": 48.19546296296296, "y": 399}, {"x": 48.19748842592592, "y": 400}, {"x": 48.22359953703704, "y": 401}, {"x": 48.229456018518526, "y": 394}, {"x": 48.23023148148149, "y": 402}, {"x": 48.253182870370374, "y": 403}, {"x": 48.26292824074074, "y": 404}, {"x": 48.26418981481481, "y": 405}, {"x": 48.26475694444445, "y": 406}, {"x": 48.96293981481481, "y": 407}, {"x": 48.99736111111111, "y": 408}, {"x": 49.019652777777786, "y": 409}, {"x": 49.02620370370371, "y": 410}, {"x": 49.13222222222222, "y": 411}, {"x": 49.219768518518514, "y": 412}, {"x": 49.22177083333333, "y": 413}, {"x": 49.23712962962963, "y": 414}, {"x": 49.313182870370376, "y": 415}, {"x": 49.35679398148148, "y": 416}, {"x": 49.35771990740741, "y": 417}, {"x": 50.124664351851855, "y": 418}, {"x": 50.13916666666666, "y": 419}, {"x": 50.14174768518519, "y": 420}, {"x": 50.14953703703703, "y": 421}, {"x": 50.164479166666666, "y": 422}, {"x": 50.198263888888896, "y": 423}, {"x": 50.28319444444444, "y": 424}, {"x": 50.2908912037037, "y": 425}, {"x": 51.077708333333334, "y": 426}, {"x": 51.082152777777786, "y": 427}, {"x": 51.08707175925926, "y": 428}, {"x": 51.13728009259259, "y": 429}, {"x": 51.15009259259259, "y": 430}, {"x": 51.15459490740741, "y": 431}, {"x": 51.16606481481481, "y": 432}, {"x": 51.16731481481481, "y": 434}, {"x": 51.16865740740741, "y": 433}, {"x": 51.17233796296296, "y": 435}, {"x": 51.172731481481485, "y": 436}, {"x": 51.23976851851851, "y": 437}, {"x": 54.012453703703706, "y": 438}, {"x": 54.17393518518518, "y": 439}, {"x": 54.179803240740746, "y": 441}, {"x": 54.18097222222223, "y": 440}, {"x": 54.18165509259259, "y": 442}, {"x": 54.203668981481485, "y": 443}, {"x": 54.211435185185174, "y": 444}, {"x": 54.212777777777774, "y": 445}, {"x": 54.26846064814814, "y": 446}, {"x": 54.271932870370364, "y": 447}, {"x": 54.27431712962962, "y": 448}, {"x": 54.279259259259256, "y": 449}, {"x": 54.28219907407407, "y": 450}, {"x": 54.284317129629635, "y": 451}, {"x": 54.28547453703703, "y": 452}, {"x": 55.10513888888889, "y": 453}, {"x": 55.1100462962963, "y": 454}, {"x": 55.14313657407408, "y": 455}, {"x": 55.14377314814815, "y": 456}, {"x": 55.15925925925925, "y": 457}, {"x": 55.16072916666666, "y": 458}, {"x": 55.171527777777776, "y": 459}, {"x": 55.179155092592595, "y": 460}, {"x": 55.19203703703704, "y": 461}, {"x": 55.192245370370365, "y": 462}, {"x": 55.23136574074075, "y": 465}, {"x": 55.24445601851852, "y": 463}, {"x": 55.24474537037037, "y": 466}, {"x": 55.2507986111111, "y": 464}, {"x": 55.27368055555556, "y": 467}, {"x": 55.288402777777776, "y": 468}, {"x": 55.29034722222223, "y": 469}, {"x": 55.992534722222224, "y": 470}, {"x": 56.01023148148149, "y": 471}, {"x": 56.01670138888889, "y": 472}, {"x": 56.0169675925926, "y": 473}, {"x": 56.16721064814815, "y": 474}, {"x": 56.16734953703704, "y": 475}, {"x": 56.17737268518519, "y": 476}, {"x": 56.18854166666667, "y": 477}, {"x": 56.20337962962963, "y": 478}, {"x": 56.257696759259254, "y": 479}, {"x": 56.26146990740741, "y": 480}, {"x": 56.268541666666664, "y": 481}, {"x": 56.26922453703704, "y": 482}, {"x": 56.29325231481482, "y": 483}, {"x": 56.29556712962963, "y": 484}, {"x": 57.03556712962962, "y": 485}, {"x": 57.04908564814815, "y": 486}, {"x": 57.14697916666666, "y": 487}, {"x": 57.188738425925926, "y": 489}, {"x": 57.192766203703705, "y": 488}, {"x": 57.194340277777776, "y": 490}, {"x": 57.21177083333333, "y": 491}, {"x": 57.24444444444444, "y": 492}, {"x": 57.24495370370371, "y": 493}, {"x": 57.25449074074074, "y": 494}, {"x": 57.259212962962955, "y": 495}, {"x": 57.27570601851852, "y": 496}, {"x": 57.29340277777778, "y": 497}, {"x": 57.30298611111112, "y": 498}, {"x": 57.30700231481481, "y": 499}, {"x": 57.3444212962963, "y": 500}, {"x": 57.34554398148148, "y": 501}, {"x": 57.34583333333333, "y": 502}, {"x": 57.36053240740741, "y": 503}, {"x": 57.363391203703706, "y": 504}, {"x": 57.38009259259258, "y": 505}, {"x": 57.60109953703704, "y": 506}, {"x": 57.601446759259254, "y": 507}, {"x": 57.60363425925926, "y": 508}, {"x": 57.632025462962964, "y": 509}, {"x": 57.66608796296296, "y": 510}, {"x": 57.668692129629626, "y": 511}, {"x": 57.67320601851852, "y": 512}, {"x": 57.673541666666665, "y": 513}, {"x": 57.67429398148149, "y": 514}, {"x": 57.678020833333335, "y": 515}, {"x": 57.68199074074074, "y": 516}, {"x": 57.68590277777778, "y": 517}, {"x": 58.02234953703704, "y": 518}, {"x": 58.028252314814814, "y": 519}, {"x": 58.03413194444445, "y": 520}, {"x": 58.04130787037037, "y": 521}, {"x": 58.04155092592592, "y": 522}, {"x": 58.041805555555555, "y": 523}, {"x": 58.04373842592593, "y": 524}, {"x": 58.05251157407408, "y": 525}, {"x": 58.05256944444444, "y": 526}, {"x": 58.05267361111112, "y": 527}, {"x": 58.05356481481481, "y": 528}, {"x": 58.05380787037038, "y": 529}, {"x": 58.06038194444444, "y": 530}, {"x": 58.0693287037037, "y": 531}, {"x": 58.189050925925926, "y": 532}, {"x": 58.18930555555556, "y": 533}, {"x": 61.17611111111111, "y": 534}, {"x": 61.241585648148146, "y": 535}, {"x": 62.183946759259264, "y": 536}, {"x": 62.185405092592596, "y": 537}, {"x": 62.209270833333335, "y": 538}, {"x": 62.20989583333333, "y": 539}, {"x": 62.233530092592595, "y": 540}, {"x": 62.236365740740744, "y": 541}, {"x": 63.29304398148148, "y": 542}, {"x": 63.29359953703704, "y": 543}, {"x": 63.298402777777774, "y": 544}, {"x": 63.332997685185184, "y": 545}, {"x": 63.34577546296296, "y": 546}, {"x": 64.00445601851852, "y": 547}, {"x": 64.16237268518519, "y": 548}, {"x": 64.18708333333333, "y": 554}, {"x": 65.1253587962963, "y": 549}, {"x": 65.14224537037036, "y": 550}, {"x": 65.25122685185185, "y": 551}, {"x": 65.25295138888889, "y": 552}, {"x": 65.25324074074074, "y": 553}, {"x": 68.01609953703704, "y": 555}, {"x": 68.09793981481482, "y": 556}, {"x": 68.13961805555556, "y": 559}, {"x": 68.13975694444444, "y": 560}, {"x": 68.15559027777778, "y": 557}, {"x": 68.16447916666667, "y": 561}, {"x": 68.18199074074074, "y": 558}, {"x": 68.2383912037037, "y": 562}, {"x": 68.28217592592593, "y": 563}, {"x": 68.28284722222223, "y": 564}, {"x": 69.02196759259259, "y": 565}, {"x": 69.02864583333333, "y": 566}, {"x": 69.02986111111112, "y": 567}, {"x": 69.23931712962964, "y": 568}, {"x": 69.27535879629629, "y": 569}, {"x": 69.37412037037038, "y": 570}, {"x": 69.38678240740741, "y": 571}, {"x": 69.41064814814814, "y": 572}, {"x": 70.03819444444444, "y": 573}, {"x": 70.04175925925925, "y": 574}, {"x": 70.05416666666666, "y": 575}, {"x": 70.06733796296295, "y": 576}, {"x": 70.09094907407406, "y": 577}, {"x": 70.15497685185186, "y": 579}, {"x": 70.16422453703704, "y": 578}, {"x": 70.18064814814815, "y": 580}, {"x": 70.22144675925925, "y": 581}, {"x": 70.22166666666666, "y": 582}, {"x": 70.22738425925927, "y": 583}, {"x": 70.23267361111111, "y": 584}, {"x": 70.24391203703705, "y": 585}, {"x": 70.25283564814815, "y": 586}, {"x": 70.25510416666667, "y": 587}, {"x": 70.28466435185186, "y": 588}, {"x": 70.28953703703704, "y": 589}, {"x": 70.31696759259259, "y": 590}, {"x": 70.31849537037037, "y": 591}, {"x": 70.33501157407407, "y": 592}, {"x": 70.33902777777777, "y": 593}, {"x": 70.34006944444444, "y": 594}, {"x": 70.42503472222222, "y": 595}, {"x": 70.42680555555556, "y": 596}, {"x": 70.44644675925926, "y": 597}, {"x": 70.45475694444444, "y": 598}, {"x": 70.45616898148148, "y": 599}, {"x": 71.0357986111111, "y": 600}, {"x": 75.3571875, "y": 601}, {"x": 75.35828703703704, "y": 602}, {"x": 76.51193287037037, "y": 603}, {"x": 76.51206018518518, "y": 604}, {"x": 77.12263888888889, "y": 605}, {"x": 77.13378472222222, "y": 606}, {"x": 77.13755787037037, "y": 607}, {"x": 77.1396412037037, "y": 608}, {"x": 77.14496527777779, "y": 609}, {"x": 77.14599537037037, "y": 610}, {"x": 77.1570949074074, "y": 611}, {"x": 77.16494212962962, "y": 612}, {"x": 77.18026620370371, "y": 613}, {"x": 77.3159837962963, "y": 614}, {"x": 77.37674768518518, "y": 615}, {"x": 77.55534722222222, "y": 616}, {"x": 78.99820601851853, "y": 619}, {"x": 79.11762731481481, "y": 620}, {"x": 79.12521990740741, "y": 617}, {"x": 79.1413888888889, "y": 621}, {"x": 79.14237268518518, "y": 618}, {"x": 79.17225694444444, "y": 622}, {"x": 79.17305555555555, "y": 623}, {"x": 79.17936342592593, "y": 624}, {"x": 79.22321759259259, "y": 625}, {"x": 79.22354166666666, "y": 626}, {"x": 79.23240740740741, "y": 627}, {"x": 79.23945601851851, "y": 628}, {"x": 79.25369212962963, "y": 629}, {"x": 79.25386574074074, "y": 630}, {"x": 79.93778935185186, "y": 631}, {"x": 79.97611111111111, "y": 632}, {"x": 79.99424768518519, "y": 633}, {"x": 81.99048611111111, "y": 634}, {"x": 81.99410879629629, "y": 635}, {"x": 81.99410879629629, "y": 642}, {"x": 82.04340277777779, "y": 636}, {"x": 82.05616898148148, "y": 637}, {"x": 82.06153935185185, "y": 638}, {"x": 82.06153935185185, "y": 643}, {"x": 82.13497685185185, "y": 639}, {"x": 82.13942129629629, "y": 670}, {"x": 82.18469907407406, "y": 640}, {"x": 82.1977199074074, "y": 641}, {"x": 82.24810185185184, "y": 645}, {"x": 82.2661574074074, "y": 644}, {"x": 82.3237037037037, "y": 646}, {"x": 82.33268518518518, "y": 647}, {"x": 82.53008101851852, "y": 648}, {"x": 82.53047453703704, "y": 649}, {"x": 82.53075231481482, "y": 650}, {"x": 82.54238425925926, "y": 651}, {"x": 82.54476851851851, "y": 652}, {"x": 82.55049768518518, "y": 653}, {"x": 83.02902777777778, "y": 654}, {"x": 83.03571759259259, "y": 655}, {"x": 83.04855324074074, "y": 656}, {"x": 83.04891203703704, "y": 657}, {"x": 83.05005787037037, "y": 658}, {"x": 83.05269675925926, "y": 659}, {"x": 83.05664351851853, "y": 660}, {"x": 83.10878472222221, "y": 661}, {"x": 83.11568287037036, "y": 662}, {"x": 83.12524305555556, "y": 663}, {"x": 83.13849537037036, "y": 664}, {"x": 83.14521990740741, "y": 665}, {"x": 83.1987962962963, "y": 666}, {"x": 83.22462962962963, "y": 667}, {"x": 83.23881944444445, "y": 668}, {"x": 83.25212962962964, "y": 669}, {"x": 83.26116898148148, "y": 686}, {"x": 83.26412037037036, "y": 671}, {"x": 83.26777777777778, "y": 672}, {"x": 83.28392361111112, "y": 673}, {"x": 83.28497685185185, "y": 674}, {"x": 83.28509259259259, "y": 675}, {"x": 83.2856712962963, "y": 676}, {"x": 83.30789351851853, "y": 677}, {"x": 83.31175925925926, "y": 678}, {"x": 83.31184027777778, "y": 679}, {"x": 83.31230324074073, "y": 680}, {"x": 83.31854166666666, "y": 681}, {"x": 84.00105324074075, "y": 682}, {"x": 84.04512731481482, "y": 683}, {"x": 84.04746527777779, "y": 684}, {"x": 84.06408564814815, "y": 685}, {"x": 84.09783564814815, "y": 687}, {"x": 84.09950231481481, "y": 688}, {"x": 84.09987268518519, "y": 689}, {"x": 84.10638888888889, "y": 690}, {"x": 84.11269675925926, "y": 691}, {"x": 84.13108796296295, "y": 692}, {"x": 84.13152777777778, "y": 693}, {"x": 84.13189814814815, "y": 694}, {"x": 84.13362268518519, "y": 695}, {"x": 84.1371875, "y": 696}, {"x": 84.15493055555557, "y": 697}, {"x": 84.15887731481482, "y": 698}, {"x": 84.16054398148148, "y": 699}, {"x": 84.1663425925926, "y": 700}, {"x": 84.17012731481482, "y": 701}, {"x": 84.18499999999999, "y": 702}, {"x": 84.98777777777777, "y": 703}, {"x": 85.01167824074074, "y": 704}, {"x": 85.0584375, "y": 705}, {"x": 85.07670138888888, "y": 706}, {"x": 85.08421296296295, "y": 707}, {"x": 85.0842824074074, "y": 708}, {"x": 85.12005787037036, "y": 709}, {"x": 85.15402777777778, "y": 710}, {"x": 85.21219907407406, "y": 711}, {"x": 85.21737268518518, "y": 712}, {"x": 85.23116898148147, "y": 713}, {"x": 85.24401620370371, "y": 714}, {"x": 85.26747685185185, "y": 715}, {"x": 85.26870370370371, "y": 716}, {"x": 85.43259259259258, "y": 717}, {"x": 85.43829861111111, "y": 718}, {"x": 85.9661111111111, "y": 719}, {"x": 85.99626157407408, "y": 720}, {"x": 86.11556712962964, "y": 721}, {"x": 86.11601851851852, "y": 722}, {"x": 86.11814814814814, "y": 723}, {"x": 86.11865740740741, "y": 724}, {"x": 89.20109953703702, "y": 725}, {"x": 89.26359953703702, "y": 726}, {"x": 90.01363425925926, "y": 727}, {"x": 90.01685185185185, "y": 728}, {"x": 90.1408912037037, "y": 729}, {"x": 90.14288194444445, "y": 730}, {"x": 90.15513888888889, "y": 731}, {"x": 90.15708333333333, "y": 732}, {"x": 91.11555555555555, "y": 733}, {"x": 91.12600694444446, "y": 734}, {"x": 91.94760416666666, "y": 735}, {"x": 91.95476851851852, "y": 736}, {"x": 91.99403935185184, "y": 737}, {"x": 91.99560185185184, "y": 738}, {"x": 92.01460648148147, "y": 739}, {"x": 93.12917824074073, "y": 740}, {"x": 96.14953703703704, "y": 741} ]
<gh_stars>0 /** * @license * Copyright 2017 The FOAM Authors. All Rights Reserved. * http://www.apache.org/licenses/LICENSE-2.0 */ foam.CLASS({ package: 'foam.nanos.export', name: 'CSVDriver', implements: [ 'foam.nanos.export.ExportDriver' ], documentation: 'Class for exporting data from a DAO to CSV', properties: [ { class: 'FObjectProperty', of: 'foam.lib.csv.Outputter', name: 'outputter', factory: function() { return foam.lib.csv.Standard; } } ], methods: [ function exportFObject(X, obj) { return this.outputter.toCSV(obj); }, function exportDAO(X, dao) { var self = this; return dao.select().then(function (sink) { return self.outputter.toCSV(sink.array); }); } ] });
<reponame>matheusmunizsouza/quarkus-aws-poc<filename>src/main/java/com/matheus/aws/s3/resource/S3AsyncClientResource.java package com.matheus.aws.s3.resource; import com.matheus.aws.s3.model.FileObject; import com.matheus.aws.s3.model.FormData; import io.smallrye.mutiny.Multi; import io.smallrye.mutiny.Uni; import java.io.ByteArrayOutputStream; import java.util.Comparator; import java.util.concurrent.CompletableFuture; import java.util.stream.Collectors; import javax.inject.Inject; import javax.ws.rs.Consumes; import javax.ws.rs.GET; import javax.ws.rs.POST; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; import org.eclipse.microprofile.config.inject.ConfigProperty; import org.jboss.resteasy.reactive.MultipartForm; import software.amazon.awssdk.core.sync.RequestBody; import software.amazon.awssdk.core.sync.ResponseTransformer; import software.amazon.awssdk.services.s3.S3Client; import software.amazon.awssdk.services.s3.model.GetObjectRequest; import software.amazon.awssdk.services.s3.model.ListObjectsRequest; import software.amazon.awssdk.services.s3.model.PutObjectRequest; import software.amazon.awssdk.services.s3.model.S3Object; @Path("/s3-async") public class S3AsyncClientResource { @ConfigProperty(name = "app.aws.s3.bucket.name") String bucketName; @Inject S3Client s3; @POST @Path("/upload") @Consumes(MediaType.MULTIPART_FORM_DATA) @Produces(MediaType.APPLICATION_JSON) public Uni<Response> uploadFile(@MultipartForm FormData formData) { PutObjectRequest putObjectRequest = PutObjectRequest.builder() .bucket(bucketName) .key(formData.getData().fileName()) .contentType(formData.getData().contentType()) .build(); return Uni.createFrom() .completionStage(CompletableFuture.supplyAsync(() -> s3.putObject(putObjectRequest, RequestBody.fromFile(formData.getData().uploadedFile().toFile())))) .onItem() .ignore() .andSwitchTo(Uni.createFrom().item(Response.created(null).build())) .onFailure() .recoverWithItem(th -> { th.printStackTrace(); return Response.serverError().build(); }); } @GET @Path("download/{objectKey}") @Produces(MediaType.APPLICATION_OCTET_STREAM) public Uni<Response> downloadFile(@PathParam("objectKey") String objectKey) { ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); GetObjectRequest getObjectRequest = GetObjectRequest.builder() .bucket(bucketName) .key(objectKey) .build(); return Uni.createFrom() .completionStage(CompletableFuture.supplyAsync(() -> s3.getObject(getObjectRequest, ResponseTransformer.toOutputStream(byteArrayOutputStream)))) .onItem() .transform(getObjectResponse -> Response.ok(byteArrayOutputStream) .header("Content-Disposition", "attachment;filename=" + objectKey) .header("Content-Type", getObjectResponse.contentType()).build()); } @GET @Produces(MediaType.APPLICATION_JSON) public Multi<FileObject> listFiles() { ListObjectsRequest listRequest = ListObjectsRequest.builder().bucket(bucketName).build(); return Multi.createFrom() .completionStage(CompletableFuture.supplyAsync( () -> s3.listObjects(listRequest).contents().stream().sorted( Comparator.comparing(S3Object::lastModified).reversed()).map(FileObject::from) .collect(Collectors.toList()) )).flatMap(fileObjects -> Multi.createFrom().iterable(fileObjects)); } }
<gh_stars>1-10 package de.lmu.cis.ocrd.ml.features; import de.lmu.cis.ocrd.ml.OCRToken; import java.util.Random; // Classifies OCR tokens into one of two different classes: // * true if the best ranked correction candidate equals the ground truth // token (the correction will improve or at least not harm the text accuracy) // * false if the best ranked correction candidate is wrong and the original // token was correct (the correction would disimprove the text accuracy) // * do-not care if the best ranked candidate is false and the ocr token is also false // the correction will not improve nor disimprove the accuracy of the text. public class RandomDMGTFeature extends DMGTFeature { private Random random; public RandomDMGTFeature(String name, long seed) { super(name); random = new Random(seed); } private boolean flip() { return random.nextBoolean(); } // Returns true if the given token should be used for the DM-training. // In the do-not-care case, a true is returned in (approximately) 50% of the cases. @Override public boolean isValidForTraining(OCRToken token) { assert(!token.getRankings().isEmpty()); final String gt = token.getGT().orElse(""); if (!gt.toLowerCase().equals(token.getMasterOCR().getWordNormalized().toLowerCase())) { return flip(); } return true; } }
package com.github.hinsteny.commons.warp.io.xml; import javax.xml.namespace.NamespaceContext; import javax.xml.stream.XMLStreamException; import javax.xml.stream.XMLStreamWriter; /** * @author Hinsteny * @version DelegatingXMLStreamWriter: DelegatingXMLStreamWriter 2019-05-10 09:39 All rights reserved.$ */ public class DelegatingXMLStreamWriter implements XMLStreamWriter { private final XMLStreamWriter writer; public DelegatingXMLStreamWriter(XMLStreamWriter writer) { this.writer = writer; } /** * Writes a start tag to the output. All writeStartElement methods open a new scope in the internal namespace context. Writing the corresponding EndElement causes the scope to be closed. * * @param localName local name of the tag, may not be null */ @Override public void writeStartElement(String localName) throws XMLStreamException { writer.writeStartElement(localName); } /** * Writes a start tag to the output * * @param namespaceURI the namespaceURI of the prefix to use, may not be null * @param localName local name of the tag, may not be null * @throws XMLStreamException if the namespace URI has not been bound to a prefix and javax.xml.stream.isRepairingNamespaces has not been set to true */ @Override public void writeStartElement(String namespaceURI, String localName) throws XMLStreamException { writer.writeStartElement(namespaceURI, localName); } /** * Writes a start tag to the output * * @param prefix the prefix of the tag, may not be null * @param localName local name of the tag, may not be null * @param namespaceURI the uri to bind the prefix to, may not be null */ @Override public void writeStartElement(String prefix, String localName, String namespaceURI) throws XMLStreamException { writer.writeStartElement(prefix, localName, namespaceURI); } /** * Writes an empty element tag to the output * * @param namespaceURI the uri to bind the tag to, may not be null * @param localName local name of the tag, may not be null * @throws XMLStreamException if the namespace URI has not been bound to a prefix and javax.xml.stream.isRepairingNamespaces has not been set to true */ @Override public void writeEmptyElement(String namespaceURI, String localName) throws XMLStreamException { writer.writeEmptyElement(namespaceURI, localName); } /** * Writes an empty element tag to the output * * @param prefix the prefix of the tag, may not be null * @param localName local name of the tag, may not be null * @param namespaceURI the uri to bind the tag to, may not be null */ @Override public void writeEmptyElement(String prefix, String localName, String namespaceURI) throws XMLStreamException { writer.writeEmptyElement(prefix, localName, namespaceURI); } /** * Writes an empty element tag to the output * * @param localName local name of the tag, may not be null */ @Override public void writeEmptyElement(String localName) throws XMLStreamException { writer.writeEmptyElement(localName); } /** * Writes an end tag to the output relying on the internal state of the writer to determine the prefix and local name of the event. */ @Override public void writeEndElement() throws XMLStreamException { writer.writeEndElement(); } /** * Closes any start tags and writes corresponding end tags. */ @Override public void writeEndDocument() throws XMLStreamException { writer.writeEndDocument(); } /** * Close this writer and free any resources associated with the writer. This must not close the underlying output stream. */ @Override public void close() throws XMLStreamException { writer.close(); } /** * Write any cached data to the underlying output mechanism. */ @Override public void flush() throws XMLStreamException { writer.flush(); } /** * Writes an attribute to the output stream without a prefix. * * @param localName the local name of the attribute * @param value the value of the attribute * @throws IllegalStateException if the current state does not allow Attribute writing */ @Override public void writeAttribute(String localName, String value) throws XMLStreamException { writer.writeAttribute(localName, value); } /** * Writes an attribute to the output stream * * @param prefix the prefix for this attribute * @param namespaceURI the uri of the prefix for this attribute * @param localName the local name of the attribute * @param value the value of the attribute * @throws IllegalStateException if the current state does not allow Attribute writing * @throws XMLStreamException if the namespace URI has not been bound to a prefix and javax.xml.stream.isRepairingNamespaces has not been set to true */ @Override public void writeAttribute(String prefix, String namespaceURI, String localName, String value) throws XMLStreamException { writer.writeAttribute(prefix, namespaceURI, localName, value); } /** * Writes an attribute to the output stream * * @param namespaceURI the uri of the prefix for this attribute * @param localName the local name of the attribute * @param value the value of the attribute * @throws IllegalStateException if the current state does not allow Attribute writing * @throws XMLStreamException if the namespace URI has not been bound to a prefix and javax.xml.stream.isRepairingNamespaces has not been set to true */ @Override public void writeAttribute(String namespaceURI, String localName, String value) throws XMLStreamException { writer.writeAttribute(namespaceURI, localName, value); } /** * Writes a namespace to the output stream If the prefix argument to this method is the empty string, "xmlns", or null this method will delegate to writeDefaultNamespace * * @param prefix the prefix to bind this namespace to * @param namespaceURI the uri to bind the prefix to * @throws IllegalStateException if the current state does not allow Namespace writing */ @Override public void writeNamespace(String prefix, String namespaceURI) throws XMLStreamException { writer.writeNamespace(prefix, namespaceURI); } /** * Writes the default namespace to the stream * * @param namespaceURI the uri to bind the default namespace to * @throws IllegalStateException if the current state does not allow Namespace writing */ @Override public void writeDefaultNamespace(String namespaceURI) throws XMLStreamException { writer.writeDefaultNamespace(namespaceURI); } /** * Writes an xml comment with the data enclosed * * @param data the data contained in the comment, may be null */ @Override public void writeComment(String data) throws XMLStreamException { writer.writeComment(data); } /** * Writes a processing instruction * * @param target the target of the processing instruction, may not be null */ @Override public void writeProcessingInstruction(String target) throws XMLStreamException { writer.writeProcessingInstruction(target); } /** * Writes a processing instruction * * @param target the target of the processing instruction, may not be null * @param data the data contained in the processing instruction, may not be null */ @Override public void writeProcessingInstruction(String target, String data) throws XMLStreamException { writer.writeProcessingInstruction(target, data); } /** * Writes a CData section * * @param data the data contained in the CData Section, may not be null */ @Override public void writeCData(String data) throws XMLStreamException { writer.writeCData(data); } /** * Write a DTD section. This string represents the entire doctypedecl production from the XML 1.0 specification. * * @param dtd the DTD to be written */ @Override public void writeDTD(String dtd) throws XMLStreamException { writer.writeDTD(dtd); } /** * Writes an entity reference * * @param name the name of the entity */ @Override public void writeEntityRef(String name) throws XMLStreamException { writer.writeEntityRef(name); } /** * Write the XML Declaration. Defaults the XML version to 1.0, and the encoding to utf-8 */ @Override public void writeStartDocument() throws XMLStreamException { writer.writeStartDocument(); } /** * Write the XML Declaration. Defaults the XML version to 1.0 * * @param version version of the xml document */ @Override public void writeStartDocument(String version) throws XMLStreamException { writer.writeStartDocument(version); } /** * Write the XML Declaration. Note that the encoding parameter does not set the actual encoding of the underlying output. That must be set when the instance of the XMLStreamWriter is created * using the XMLOutputFactory * * @param encoding encoding of the xml declaration * @param version version of the xml document * @throws XMLStreamException If given encoding does not match encoding of the underlying stream */ @Override public void writeStartDocument(String encoding, String version) throws XMLStreamException { writer.writeStartDocument(encoding, version); } /** * Write text to the output * * @param text the value to write */ @Override public void writeCharacters(String text) throws XMLStreamException { writer.writeCharacters(text); } /** * Write text to the output * * @param text the value to write * @param start the starting position in the array * @param len the number of characters to write */ @Override public void writeCharacters(char[] text, int start, int len) throws XMLStreamException { writer.writeCharacters(text, start, len); } /** * Gets the prefix the uri is bound to * * @return the prefix or null */ @Override public String getPrefix(String uri) throws XMLStreamException { return writer.getPrefix(uri); } /** * Sets the prefix the uri is bound to. This prefix is bound in the scope of the current START_ELEMENT / END_ELEMENT pair. If this method is called before a START_ELEMENT has been written the * prefix is bound in the root scope. * * @param prefix the prefix to bind to the uri, may not be null * @param uri the uri to bind to the prefix, may be null */ @Override public void setPrefix(String prefix, String uri) throws XMLStreamException { writer.setPrefix(prefix, uri); } /** * Binds a URI to the default namespace This URI is bound in the scope of the current START_ELEMENT / END_ELEMENT pair. If this method is called before a START_ELEMENT has been written the uri is * bound in the root scope. * * @param uri the uri to bind to the default namespace, may be null */ @Override public void setDefaultNamespace(String uri) throws XMLStreamException { writer.setDefaultNamespace(uri); } /** * Sets the current namespace context for prefix and uri bindings. This context becomes the root namespace context for writing and will replace the current root namespace context. Subsequent * calls to setPrefix and setDefaultNamespace will bind namespaces using the context passed to the method as the root context for resolving namespaces. This method may only be called once at the * start of the document. It does not cause the namespaces to be declared. If a namespace URI to prefix mapping is found in the namespace context it is treated as declared and the prefix may be * used by the StreamWriter. * * @param context the namespace context to use for this writer, may not be null */ @Override public void setNamespaceContext(NamespaceContext context) throws XMLStreamException { writer.setNamespaceContext(context); } /** * Returns the current namespace context. * * @return the current NamespaceContext */ @Override public NamespaceContext getNamespaceContext() { return writer.getNamespaceContext(); } /** * Get the value of a feature/property from the underlying implementation * * @param name The name of the property, may not be null * @return The value of the property * @throws IllegalArgumentException if the property is not supported * @throws NullPointerException if the name is null */ @Override public Object getProperty(String name) throws IllegalArgumentException { return writer.getProperty(name); } }
/* * Copyright 2017 Wultra s.r.o. * * 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 io.getlime.security.powerauth.app.nextstep.repository.model.entity; import io.getlime.security.powerauth.lib.nextstep.model.enumeration.AuthMethod; import lombok.Data; import lombok.EqualsAndHashCode; import javax.persistence.*; import java.io.Serializable; /** * Entity which stores configuration of authentication methods. * * @author <NAME>, <EMAIL> */ @Entity @Table(name = "ns_auth_method") @Data @EqualsAndHashCode(of = "authMethod") public class AuthMethodEntity implements Serializable { private static final long serialVersionUID = -2015768978885351433L; @Id @Column(name = "auth_method", nullable = false) @Enumerated(EnumType.STRING) private AuthMethod authMethod; @Column(name = "order_number", nullable = false) private Long orderNumber; @Column(name = "check_user_prefs", nullable = false) private Boolean checkUserPrefs; @Column(name = "user_prefs_column") private Integer userPrefsColumn; @Column(name = "user_prefs_default") private Boolean userPrefsDefault; @Column(name = "check_auth_fails", nullable = false) private Boolean checkAuthFails; @Column(name = "max_auth_fails") private Integer maxAuthFails; @Column(name = "has_user_interface", nullable = false) private Boolean hasUserInterface; @Column(name = "display_name_key") private String displayNameKey; @Column(name = "has_mobile_token", nullable = false) private Boolean hasMobileToken; }
class CustomTuple(tuple): def __new__(cls, *args): return tuple.__new__(cls, args) def __repr__(self): contents = [repr(elem) for elem in self] return f"{self.__class__.__name__}<{', '.join(contents)}>" def _create_getter(index): def getter(self): return self[index] return getter for index, attribute in enumerate(['_0', '_1', '_2']): setattr(CustomTuple, attribute, property(_create_getter(index))) # Test the CustomTuple class t = CustomTuple(1, 2, 3) print(t) # Output: CustomTuple<1, 2, 3> print(t._0) # Output: 1 print(t._1) # Output: 2 print(t._2) # Output: 3
/** * The action configuration object * @typedef {Object} ActionConfig * @property {Function} service - Service used to obtain data * @property {String} attr - The attribute of the state which will contain the data (if any) * @property {String} [mutation] - Mutation to used to set data when it is not the default for the attr * @property {boolean} [spreadServiceArgs] - Whether action argument should be spreaded into the service * @property {boolean} [append] - Whether data should be appended to existing data in a list format if requestBody.append === true * @property {boolean} [appendAlways] - Whether data should be appended to existing data in a list format even though is not requested * @property {boolean} [editing] - Whether it is an editing action. CANNOT be used along with append or appendAlways * @property {Function} [editingRefreshService] - Service used to refresh an edited document. MUST be defined if requestBody.refresh * @property {boolean} [hasMetadata] - Whether response will included a metadata field. If metadata is true, then mutation MUST NOT be defined * @property {String} [cacheAPIRequestIn] - Name of an action, automatically created, to cache API resquest made through service * @property {boolean} [cacheActionToDelete] - Name of an action to delete from cache after the request to API. If it is not in cache, it does nothing */ /** * The VuexModuleMaker config * @typedef {Object} Config * @property {Object} state * @property {Object.<string,function|string>} getters * @property {Object.<string,function|string>} mutations * @property {Object.<string,Function| ActionConfig>} actions * @property {Object} options */ import { getFieldFrom, camelToUpSnake } from "./utils/jsHelpers" import { cacheAction } from "vuex-cache" import actionConfigs from "./actionConfigs" import { getChannel } from "./channel" export default class VuexModuleMaker { /** * @param {Config} config */ constructor({ state = {}, getters = {}, mutations = {}, actions = {} }, options = { namespaced: true, moduleName: "" }) { this._state = state this._getters = [...Object.keys(state), getters] this._actions = actions this.options = options this._mutations = [...this._getDefaultMutations(state, actions), mutations] this._cachedActions = {} } getModule() { return { state: this._state, getters: this.buildGetters(), mutations: this.buildMutations(), actions: this.buildActions(), ...this.options } } _getDefaultMutations(state, actions) { const defaultMutations = new Set(Object.keys(state)) //Add mutations as needed in actions let mutationsNeeded = new Set( Object.values(actions) .filter(action => typeof action === "object" && !action.mutation) .map(action => action.attr) ) for (const mutationFromAction of mutationsNeeded) { defaultMutations.add(mutationFromAction) } return defaultMutations } /** * Adds a getter. If getter names collide, the last added * will be the one used * * Note for developer: for now that precedence behaviour * is a result of overwritting a key's value on the getter * object been built, but this can be improve by using a Set * for the _getters property(Comming soon) * * @param {Object.<string,function|string>} getter */ addGetter(getter) { this._getters.push(getter) return this } /** * Adds a mutation. If mutation names collide, the last added * will be the one used * * Note for developer: for now that precedence behaviour * is a result of overwritting a key's value on the getter * object been built, but this can be improve by using a Set * for the _getters property(Comming soon) * @param {Object.<string,function|string>} mutation */ addMutation(mutation) { this._mutations.push(mutation) return this } addAction({ actionName, action }) { if (typeof action === "object" && !action.mutation) { const defaultMutations = this._mutations.filter(mutation => typeof mutation === "string") if (!defaultMutations.some(dM => dM === action.attr)) { // if there is no mutations for this action's attr, set one this._mutations.push(action.attr) } } this._actions[actionName] = action return this } buildGetters() { const getters = {} let fieldChain for (const getter of this._getters) { if (typeof getter === "string") { // if getter is string then it is a dotted path to value to be returned from module state // Ex: state => state.user.name then getter === "user.name" fieldChain = getter.split(".") const binded = getFieldFrom.bind(null, fieldChain) getters[fieldChain[fieldChain.length - 1]] = binded } else if (typeof getter === "object") { // if getter is object then each key (i.e. entry[0]) is the name of a getter for (const entry of Object.entries(getter)) { if (typeof entry[1] === "string") { // if value (i.e. entry[1]) is string then it is a dotted path to value to be returned from module state fieldChain = getter.split(".") const binded = getFieldFrom.bind(null, fieldChain) getters[entry[0]] = binded } else if (typeof entry[1] === "function") { // if value (i.e. entry[1]) is function then is a whole getter definition getters[entry[0]] = entry[1] } } } } return getters } buildMutations() { const mutations = {} for (const mutation of this._mutations) { if (typeof mutation === "string") { // if mutation is string then it is the field to be set. A vuex mutation is created // using this string. // Ex: if mutation === "user" then a vuex mutation is created, name SET_USER // mutations["SET_" + mutation.toUpperCase()] = (state, payload) => (state[mutation] = payload) mutations["SET_" + camelToUpSnake(mutation)] = (state, payload) => (state[mutation] = payload) } else if (typeof mutation === "object") { // if mutation is object then each key (i.e. entry[0]) is the name of a mutation for (const entry of Object.entries(mutation)) { if (typeof entry[1] === "string") { // if value (i.e. entry[1]) is string then it is the state's field to be set mutations[entry[0]] = (state, payload) => (state[entry[1]] = payload) } else if (typeof entry[1] === "function") { // if value (i.e. entry[1]) is function then it is a whole mutation definition mutations[entry[0]] = entry[1] } } } } return mutations } buildActions() { const actions = {} // Every key of actions's object is going to be used as the name of the action for (const action in this._actions) { if (typeof this._actions[action] === "function") { // if the value is a function then it is a whole action definition actions[action] = this._actions[action] } else if (typeof this._actions[action] === "object") { // if the value is a object then it contains: a reference to the api service // that must be used, stored in field "service", a string with the name of the // field of state where the response will be saved stored in "attr". // As an optional field it could contain a "mutation" field, which should be the // name of a vuex mutation available in this module const actionConfig = this._actions[action] let clearAction if (actionConfig.cacheAPIRequestIn) { actions[actionConfig.cacheAPIRequestIn] = this._createFetchAction(actionConfig) // const [, action] = actionConfig.cacheAPIRequestIn.split("/") clearAction = this._getClearActionName(actionConfig.cacheAPIRequestIn) actions[clearAction] = this._createClearCacheAction(actionConfig.cacheAPIRequestIn) } actions[action] = this.buildAction(actionConfig) } } return actions } buildAction(actionConfig) { // TODO: allow to define cache timeout through dispatch const action = ({ commit, state, cache }, requestBody) => { let append = actionConfig.appendAlways || (actionConfig.append && requestBody?.append) let refresh = requestBody?.refresh && actionConfig.editingRefreshService if (requestBody) { delete requestBody["append"] } return new Promise(async (resolve, reject) => { try { if (cache && actionConfig.cacheActionToDelete) { this._deleteCacheAction(cache, actionConfig.cacheActionToDelete) const channel = getChannel() if (channel) { channel.postMessage({ type: "dispatch", payload: `${this.options.moduleName}/${this._getClearActionName(actionConfig.cacheActionToDelete)}` }) } } let data = cache && actionConfig.cacheAPIRequestIn ? await this._cacheAction(cache, actionConfig.cacheAPIRequestIn, requestBody) : await this._sendRequest(requestBody, actionConfig) if (actionConfig.hasMetadata) { commit("SET_TOTAL_" + camelToUpSnake(actionConfig.attr), data.metadata.total) } if (actionConfig.attr || actionConfig.mutation) { commit( actionConfig.mutation ? actionConfig.mutation : "SET_" + camelToUpSnake(actionConfig.attr), await this._prepareDataToCommit(data, { ...actionConfig, append, state, refresh }) ) } resolve(data) } catch (e) { reject(e) } }) } return actionConfig.cacheAPIRequestIn || actionConfig.cacheActionToDelete ? cacheAction(action) : action } async _prepareDataToCommit(data, config) { let preparedData = data if (config.hasMetadata) { preparedData = data.data } if (config.append) { return Array.prototype.concat(config.state[config.attr], preparedData) } else if (config.editing) { const documents = [...config.state[config.attr]] //destructure array to ensure reactivity const updatedDocumentIndex = documents.findIndex(document => document.id === preparedData.id) if (config.refresh) { const response = await config.editingRefreshService(preparedData.id) preparedData = response.data } documents[updatedDocumentIndex] = preparedData return documents } return preparedData } async _sendRequest(requestBody, config) { if (config.spreadServiceArgs) { // if need to pass more than one parameter to service return (await config.service(...requestBody)).data } else if (config.editing) { return (await config.service(requestBody.id, requestBody.body)).data } else { return (await config.service(requestBody)).data } } _createFetchAction(actionConfig) { return (context, requestBody) => { return new Promise(async (resolve, reject) => { try { const data = await this._sendRequest(requestBody, actionConfig) resolve(data) } catch (error) { reject(error) } }) } } _createClearCacheAction(actionToDelete) { return cacheAction(context => { this._deleteCacheAction(context.cache, actionToDelete) }) } _cacheAction(cache, actionToCache, requestBody) { const requestBodyString = requestBody ? JSON.stringify(requestBody) : "" if (this._cachedActions[actionToCache]) { this._cachedActions[actionToCache].add(requestBodyString) } else { this._cachedActions[actionToCache] = new Set([requestBodyString]) } return cache.dispatch(actionToCache, requestBody) } _deleteCacheAction(cache, actionToDelete) { if (this._cachedActions[actionToDelete]) { for (const requestBodyString of this._cachedActions[actionToDelete]) { const requestBody = requestBodyString !== "" ? JSON.parse(requestBodyString) : undefined if (cache.has(actionToDelete, requestBody)) { cache.delete(actionToDelete, requestBody) } } this._cachedActions[actionToDelete] = new Set() } } _getClearActionName(actionToClear) { const [, action] = actionToClear.split("/") return `clear${action[0].toUpperCase() + action.slice(1)}` } } export { actionConfigs }
package com.comandulli.engine.panoramic.playback.media; import android.content.Context; import android.media.MediaPlayer; import android.net.Uri; import com.comandulli.engine.panoramic.playback.engine.exception.AssetNotFoundException; import com.comandulli.engine.panoramic.playback.entity.playback.ChapterData; import com.comandulli.engine.panoramic.playback.entity.playback.Subtitle; import java.io.IOException; /** * Created by Caio on 06-Jul-16. */ public class StreamingMediaDescriptor implements MediaPlayerDescriptor { private final int videoMode; private final Context context; private final String url; public StreamingMediaDescriptor(Context context, int videoMode, String url) { this.context = context; this.videoMode = videoMode; this.url = url; } @Override public MediaPlayer createMediaPlayer() { MediaPlayer player = new MediaPlayer(); try { player.setDataSource(context, Uri.parse(url)); } catch (IOException e) { throw new AssetNotFoundException(e); } return player; } @Override public Subtitle createSubtitle() { return null; } @Override public ChapterData createChapterData() { return null; } @Override public int getVideoMode() { return videoMode; } }
""" Develop a Python code to generate the nth number in the Fibonacci series. """ def generate_fibonacci(n): if n == 1 or n == 2: return 1 else: a = 1 b = 1 for i in range(2, n): a, b = b, a + b return b if __name__ == '__main__': n = 8 print(generate_fibonacci(n))
<reponame>SethVandebrooke/HashBrown<filename>hashbrown.go package main import ( "bytes" "encoding/binary" "math" "math/bits" ) type MD5Operation = func(X, Y, Z uint32) uint32 // MD5Sum computes the MD5 hash of the input func MD5Sum(message []byte) []byte { var A uint32 = 0x76543210 var B uint32 = 0xfecdab98 var C uint32 = 0x89abcdef var D uint32 = 0x01234567 F := func(X, Y, Z uint32) uint32 { return (X & Y) | (^X)&Z } Op := func(a, b, c, d uint32, k, s, i int, X, T []uint32, op MD5Operation) uint32 { // a, b, c, and d are the output buffers // k is which word is being used from the message block // s is the amount to rotate by // i is the value from the T table // X is the message block // T is a table with MAGIC values // op is the function to call on the buffers (one of F, G, H, or I) return b + bits.RotateLeft32((a+op(b, c, d)+X[k]+T[i]), s) } G := func(X, Y, Z uint32) uint32 { return (X & Z) | Y&(^Z) } H := func(X, Y, Z uint32) uint32 { return X ^ Y ^ Z } I := func(X, Y, Z uint32) uint32 { return Y ^ (X | (^Z)) } wordByteSize := 4 // number of bytes in 32-bit word blockWordSize := 16 // number of 32-bit words in a block // It's convenient to have padding length in bytes lengthInBits := uint64(len(message) * 8) // Here's how padding works: // the message is padded (extended) so that the length of the message in bits // modulo 512 is 448. In other words len_bits(message) % 512 == 448 after padding // 512 bits is 64 bytes, 448 bits is 56 bytes message = append(message, 0x80) for len(message)%64 != 56 { message = append(message, 0) } b := make([]byte, 8) binary.LittleEndian.PutUint64(b, uint64(lengthInBits)) message = append(message, b...) // N is the number of 32-bit words in the message, N := ((len(message) * 8) / 32) T := make([]uint32, 64) for i := 0; i < len(T); i++ { // Type conversion. Type conversion to the max! T[i] = uint32(math.Floor(math.Pow(2, 32) * math.Abs(math.Sin(float64(i+1))))) } rotateAmounts := [64]int{ 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21, } // for each 16 word block in the message for i := 0; i < N/blockWordSize; i++ { // Get a slice of the block. Go slices are just views into the underlying // array storage, and thus this saves us a copy. blockAddress := i * blockWordSize * wordByteSize block := message[blockAddress : blockAddress+blockWordSize*wordByteSize] // Turn the block from a slice of bytes into a slice of words X := make([]uint32, blockWordSize) binary.Read(bytes.NewReader(block), binary.LittleEndian, &X) AA := A BB := B CC := C DD := D // ready to begin implementing rounds // how should I for loop this for k := 0; k < 64; k++ { var g int var op MD5Operation if 0 <= k && k <= 15 { g = k op = F } else if 16 <= k && k <= 31 { g = (5*k + 1) % 16 op = G } else if 32 <= k && k <= 47 { g = (3*k + 5) % 16 op = H } else if 48 <= k && k <= 63 { g = (7 * k) % 16 op = I } res := Op(AA, BB, CC, DD, g, rotateAmounts[k], k, X, T, op) AA = DD DD = CC CC = BB BB = res } A += AA B += BB C += CC D += DD } digest := make([]byte, 16) binary.LittleEndian.PutUint32(digest, A) binary.LittleEndian.PutUint32(digest, B) binary.LittleEndian.PutUint32(digest, C) binary.LittleEndian.PutUint32(digest, D) return digest } func main() { return }
if [ "${INCLIBASS}" == "Y" ]; then INCFRIBIDI="Y" fi
#!/bin/bash SUCCESS=0 E_NOARGS=65 if [[ -z "$1" ]]; then echo "Usage: `basename $0` rpm-file" exit $E_NOARGS fi { echo echo "Archive Description:" rpm -qpl $1 echo rpm -i --test $1 if [[ "$?" -eq "SUCCESS" ]]; then echo "$1 can be installed." else echo "$1 cannot be installed." fi echo } > "$1.test" echo "Results of rpm test in file $1.test" exit 0
# grc overides for ls # Made possible through contributions from generous benefactors like # `brew install coreutils` if $(gls &>/dev/null) then alias ls="gls -F --color" alias l="gls -lAh --color" alias ll="gls -l --color" alias la='gls -A --color' fi alias atom="atom-beta"
package cim4j; import java.util.List; import java.util.Map; import java.util.HashMap; import cim4j.PFVArControllerType2Dynamics; import java.lang.ArrayIndexOutOfBoundsException; import java.lang.IllegalArgumentException; import cim4j.PU; import cim4j.Simple_Float; import cim4j.Boolean; /* The class represents IEEE PF Controller Type 2 which is a summing point type controller and makes up the outside loop of a two-loop system. This controller is implemented as a slow PI type controller. The voltage regulator forms the inner loop and is implemented as a fast controller. Reference: IEEE Standard 421.5-2005 Section 11.4. */ public class PFVArType2IEEEPFController extends PFVArControllerType2Dynamics { private BaseClass[] PFVArType2IEEEPFController_class_attributes; private BaseClass[] PFVArType2IEEEPFController_primitive_attributes; private java.lang.String rdfid; public void setRdfid(java.lang.String id) { rdfid = id; } private abstract interface PrimitiveBuilder { public abstract BaseClass construct(java.lang.String value); }; private enum PFVArType2IEEEPFController_primitive_builder implements PrimitiveBuilder { pfref(){ public BaseClass construct (java.lang.String value) { return new PU(value); } }, vref(){ public BaseClass construct (java.lang.String value) { return new PU(value); } }, vclmt(){ public BaseClass construct (java.lang.String value) { return new PU(value); } }, kp(){ public BaseClass construct (java.lang.String value) { return new PU(value); } }, ki(){ public BaseClass construct (java.lang.String value) { return new PU(value); } }, vs(){ public BaseClass construct (java.lang.String value) { return new Simple_Float(value); } }, exlon(){ public BaseClass construct (java.lang.String value) { return new Boolean(value); } }, LAST_ENUM() { public BaseClass construct (java.lang.String value) { return new cim4j.Integer("0"); } }; } private enum PFVArType2IEEEPFController_class_attributes_enum { pfref, vref, vclmt, kp, ki, vs, exlon, LAST_ENUM; } public PFVArType2IEEEPFController() { PFVArType2IEEEPFController_primitive_attributes = new BaseClass[PFVArType2IEEEPFController_primitive_builder.values().length]; PFVArType2IEEEPFController_class_attributes = new BaseClass[PFVArType2IEEEPFController_class_attributes_enum.values().length]; } public void updateAttributeInArray(PFVArType2IEEEPFController_class_attributes_enum attrEnum, BaseClass value) { try { PFVArType2IEEEPFController_class_attributes[attrEnum.ordinal()] = value; } catch (ArrayIndexOutOfBoundsException aoobe) { System.out.println("No such attribute: " + attrEnum.name() + ": " + aoobe.getMessage()); } } public void updateAttributeInArray(PFVArType2IEEEPFController_primitive_builder attrEnum, BaseClass value) { try { PFVArType2IEEEPFController_primitive_attributes[attrEnum.ordinal()] = value; } catch (ArrayIndexOutOfBoundsException aoobe) { System.out.println("No such attribute: " + attrEnum.name() + ": " + aoobe.getMessage()); } } public void setAttribute(java.lang.String attrName, BaseClass value) { try { PFVArType2IEEEPFController_class_attributes_enum attrEnum = PFVArType2IEEEPFController_class_attributes_enum.valueOf(attrName); updateAttributeInArray(attrEnum, value); System.out.println("Updated PFVArType2IEEEPFController, setting " + attrName); } catch (IllegalArgumentException iae) { super.setAttribute(attrName, value); } } /* If the attribute is a String, it is a primitive and we will make it into a BaseClass */ public void setAttribute(java.lang.String attrName, java.lang.String value) { try { PFVArType2IEEEPFController_primitive_builder attrEnum = PFVArType2IEEEPFController_primitive_builder.valueOf(attrName); updateAttributeInArray(attrEnum, attrEnum.construct(value)); System.out.println("Updated PFVArType2IEEEPFController, setting " + attrName + " to: " + value); } catch (IllegalArgumentException iae) { super.setAttribute(attrName, value); } } public java.lang.String toString(boolean topClass) { java.lang.String result = ""; java.lang.String indent = ""; if (topClass) { for (PFVArType2IEEEPFController_primitive_builder attrEnum: PFVArType2IEEEPFController_primitive_builder.values()) { BaseClass bc = PFVArType2IEEEPFController_primitive_attributes[attrEnum.ordinal()]; if (bc != null) { result += " PFVArType2IEEEPFController." + attrEnum.name() + "(" + bc.debugString() + ")" + " " + bc.toString(false) + System.lineSeparator(); } } for (PFVArType2IEEEPFController_class_attributes_enum attrEnum: PFVArType2IEEEPFController_class_attributes_enum.values()) { BaseClass bc = PFVArType2IEEEPFController_class_attributes[attrEnum.ordinal()]; if (bc != null) { result += " PFVArType2IEEEPFController." + attrEnum.name() + "(" + bc.debugString() + ")" + " " + bc.toString(false) + System.lineSeparator(); } } result += super.toString(true); } else { result += "(PFVArType2IEEEPFController) RDFID: " + rdfid; } return result; } public final java.lang.String debugName = "PFVArType2IEEEPFController"; public java.lang.String debugString() { return debugName; } public void setValue(java.lang.String s) { System.out.println(debugString() + " is not sure what to do with " + s); } public BaseClass construct() { return new PFVArType2IEEEPFController(); } };
import { Routes } from '@angular/router'; import { LoginComponent } from './login/login.component'; import { LayoutComponent } from './layout/layout.component'; import { onBoardingComponent } from './layout/on-boarding/on-boarding.component'; import { AlertsComponent } from './alert/alerts.component'; import { IconsComponent } from './icons/icons.component'; import { NotificationsComponent } from './layout/notifications/notifications.component'; import { ConfigurationComponent } from './layout/configuration/configuration.component'; import { AggregatorComponent } from './layout/configuration/aggregator/aggregator.component'; import { ComputeEngineComponent } from './layout/configuration/compute-engine/compute-engine.component'; //import { CamerasComponent } from './layout/cameras/cameras.component'; import { FloorMapComponent } from './layout/floor-map/floor-map.component'; import { PlotCameraComponent } from './layout/configuration/plot-camera/plot-camera.component'; import { DisplayResultsComponent } from './layout/display-results/display-results.component'; import { ReportsComponent } from './layout/reports/reports.component'; // import { ConnectCameraComponent } from './layout/on-boarding/connect-camera/connect-camera.component'; // import { CameraMappingComponent } from './layout/on-boarding/camera-mapping/camera-mapping.component'; // import { AreaMarkingComponent } from './layout/on-boarding/area-marking/area-marking.component'; // import { NavbarComponent } from './layout/on-boarding/navbar/navbar.component'; import { HomepageComponent } from './layout/homepage/homepage.component'; import { DeviceManagementComponent } from './layout/device-management/device-management.component'; import { CameraManagementComponent } from './layout/device-management/camera-management/camera-management.component'; import { AggregatorManagementComponent } from './layout/device-management/aggregator-management/aggregator-management.component'; import { ComputeManagementComponent } from './layout/device-management/compute-management/compute-management.component'; import { UserManagementComponent } from './layout/user-management/user-management.component'; import { DashboardComponent } from './layout/dashboard/dashboard.component'; import { Slide1Component } from './slider/slide1/slide1.component'; import { Slide2Component } from './slider/slide2/slide2.component'; import { Slide3Component } from './slider/slide3/slide3.component'; import { HomeComponent } from './slider/home/home.component'; import { ConnectCameraSliderComponent } from './slider/connect-camera-slider/connect-camera-slider.component'; import { CameraMappingSliderComponent } from './slider/camera-mapping-slider/camera-mapping-slider.component'; import { AreaMarkingSliderComponent } from './slider/area-marking-slider/area-marking-slider.component'; import { CameraAddedComponent } from './slider/camera-added/camera-added.component' import {NavbarComponent } from './components/navbar/navbar.component'; import { ConnectCameraComponent } from './components/connect-camera/connect-camera.component'; import { CameraMappingComponent } from './components/camera-mapping/camera-mapping.component'; import { AreaMarkingComponent } from './components/area-marking/area-marking.component'; import { MultiscreenComponent } from './layout/multiscreen/multiscreen.component'; import { ConnectCameraOnboardingComponent } from './layout/on-boarding/connect-camera-onboarding/connect-camera-onboarding.component'; import { CameraMappingOnboardingComponent } from './layout/on-boarding/camera-mapping-onboarding/camera-mapping-onboarding.component'; import { AreaMarkingOnboardingComponent } from './layout/on-boarding/area-marking-onboarding/area-marking-onboarding.component'; import { NavbarsliderComponent } from './slider/navbarslider/navbarslider.component'; import { FacedetectionComponent } from './layout/facedetection/facedetection.component'; import { VideoIndexingComponent } from './layout/video-indexing/video-indexing.component'; import { VideoRetentionComponent } from './layout/video-retention/video-retention.component'; export const AppRoutes: Routes = [ { path: '', redirectTo: 'login', pathMatch: 'full', }, { path: 'login', component: LoginComponent }, { path: 'navbarslider', component: NavbarsliderComponent }, { path: 'connectcameras', component: Slide1Component }, { path: 'cameramapping', component: Slide2Component }, { path: 'areamarking', component: Slide3Component }, { path: 'home', component: HomeComponent }, { path: 'connectCameraSlider', component: ConnectCameraSliderComponent }, { path: 'cameraMappingSlider', component: CameraMappingSliderComponent }, { path: 'areaMarkingSlider', component: AreaMarkingSliderComponent }, { path: 'cameraAdded', component: CameraAddedComponent }, { path: 'navbar', component: NavbarComponent }, { path: 'connectCamera', component: ConnectCameraComponent }, { path: 'cameraMapping', component: CameraMappingComponent }, { path: 'areaMarking', component: AreaMarkingComponent }, { path: 'layout', component: LayoutComponent, children: [ { path: '', component: HomepageComponent }, { path: 'homepage', component: HomepageComponent }, { path: 'dashboard', component: DashboardComponent }, { path: 'facerecognition', component: FacedetectionComponent }, { path: 'deviceManagement', component: onBoardingComponent, children: [ { path: '', component: ConnectCameraOnboardingComponent }, { path: 'connectCameraDashboard', component: ConnectCameraOnboardingComponent }, { path: 'cameraMappingDashboard', component: CameraMappingOnboardingComponent }, { path: 'areaMarkingDashboard', component: AreaMarkingOnboardingComponent } ] }, { path: 'displayResults', component: DisplayResultsComponent }, { path: 'userManagement', component: UserManagementComponent }, { path: 'floorMap', component: FloorMapComponent }, // { // path: 'cameras', // component: CamerasComponent // }, { path: 'reports', component: ReportsComponent }, { path: 'videoIndexing', component: VideoIndexingComponent }, { path: 'videoRetention', component: VideoRetentionComponent }, { path: 'multiscreenView', component: MultiscreenComponent }, { path: 'notifications', component: NotificationsComponent }, { path: 'devices', component: DeviceManagementComponent, children: [ { path: 'Cameras', component: CameraManagementComponent }, { path: 'aggregators', component: AggregatorManagementComponent }, { path: 'computeEngines', component: ComputeManagementComponent } ] } ] }, ]
#!/usr/bin/env bash # Copyright 2017 The Kubernetes 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. set -o errexit set -o nounset set -o pipefail SCRIPT_ROOT=$(dirname "${BASH_SOURCE[0]}")/.. DIFFROOT="${SCRIPT_ROOT}/pkg" TMP_DIFFROOT="${SCRIPT_ROOT}/_tmp/pkg" _tmp="${SCRIPT_ROOT}/_tmp" cleanup() { rm -rf "${_tmp}" } trap "cleanup" EXIT SIGINT cleanup mkdir -p "${TMP_DIFFROOT}" cp -a "${DIFFROOT}"/* "${TMP_DIFFROOT}" ./"${SCRIPT_ROOT}/hack/update-codegen.sh" echo "diffing ${DIFFROOT} against freshly generated codegen" ret=0 diff -Naupr "${DIFFROOT}" "${TMP_DIFFROOT}" || ret=$? cp -a "${TMP_DIFFROOT}"/* "${DIFFROOT}" if [[ $ret -eq 0 ]] then echo "${DIFFROOT} up to date." else echo "${DIFFROOT} is out of date. Please run hack/update-codegen.sh" exit 1 fi
/* * Copyright (c) Open Source Strategies, Inc. * * Opentaps is free software: you can redistribute it and/or modify it * under the terms of the GNU Affero General Public License as published * by the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Opentaps is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with Opentaps. If not, see <http://www.gnu.org/licenses/>. */ package org.opentaps.common.content; import java.io.File; import java.util.List; import java.util.Map; import javolution.util.FastMap; import org.ofbiz.base.util.Debug; import org.ofbiz.base.util.UtilDateTime; import org.ofbiz.base.util.UtilMisc; import org.ofbiz.base.util.UtilProperties; import org.ofbiz.content.data.DataResourceWorker; import org.ofbiz.entity.Delegator; import org.ofbiz.entity.GenericEntityException; import org.ofbiz.entity.GenericValue; import org.ofbiz.entity.condition.EntityCondition; import org.ofbiz.entity.condition.EntityOperator; import org.ofbiz.service.DispatchContext; import org.ofbiz.service.GenericServiceException; import org.ofbiz.service.LocalDispatcher; import org.ofbiz.service.ServiceUtil; /** * ContentServices - A simplified, pragmatic set of services for uploading files and URLs. */ public final class ContentServices { private ContentServices() { } //the order folder's prev string public static final String ORDERCONTENT_PREV = "Order_"; private static final String MODULE = ContentServices.class.getName(); public static Map uploadFile(DispatchContext dctx, Map context) { Delegator delegator = dctx.getDelegator(); LocalDispatcher dispatcher = dctx.getDispatcher(); GenericValue userLogin = (GenericValue) context.get("userLogin"); String mimeTypeId = (String) context.get("_uploadedFile_contentType"); if (mimeTypeId != null && mimeTypeId.length() > 60) { // XXX This is a fix to avoid problems where an OS gives us a mime type that is too long to fit in 60 chars // (ex. MS .xlsx as application/vnd.openxmlformats-officedocument.spreadsheetml.sheet) Debug.logWarning("Truncating mime type [" + mimeTypeId + "] to 60 characters.", MODULE); mimeTypeId = mimeTypeId.substring(0, 60); } String fileName = (String) context.get("_uploadedFile_fileName"); String contentName = (String) context.get("contentName"); String uploadFolder = (String) context.get("uploadFolder"); if (contentName == null || contentName.trim().length() == 0) { contentName = fileName; } try { if (uploadFolder != null) { // if specific upload path, then use real file name as upload file name String uploadPath = getDataResourceContentUploadPath(uploadFolder); String fileAndPath = uploadPath + "/" + contentName; //if exist same file already, just updating the Content.description and the DataResource entity the original Content is pointing to EntityCondition conditions = EntityCondition.makeCondition(EntityOperator.AND, EntityCondition.makeCondition("objectInfo", fileAndPath)); List<GenericValue> dataResources = delegator.findByAnd("DataResource", conditions); if (dataResources.size() > 0) { // exit same file already then using updateFile method to update DataResource and Content entities. GenericValue dataResource = dataResources.get(0); return updateFile(dataResource, dctx, context); } } // if not exist same file in DataResource entities, then create the base data resource GenericValue dataResource = initializeDataResource(delegator, userLogin); String dataResourceId = dataResource.getString("dataResourceId"); // identify this resource as a local server file with the given mime type and filename (note that the filename here can be arbitrary) dataResource.set("dataResourceTypeId", "LOCAL_FILE"); dataResource.set("mimeTypeId", mimeTypeId); dataResource.set("dataResourceName", contentName); // Get the upload path, which is configured as content.upload.path.prefix in content.properties String uploadPath = getDataResourceContentUploadPath(uploadFolder); // Our local filename will be named after the ID, but without any extensions because we're relying on the download service to take care of the mimeTypeId and filename String fileAndPath = uploadPath + "/" + dataResourceId; if (uploadFolder != null) { // if specific upload path, then use real file name as upload file name fileAndPath = uploadPath + "/" + contentName; } dataResource.set("objectInfo", fileAndPath); dataResource.create(); // save the file to the system using the ofbiz service Map<String, Object> input = UtilMisc.toMap("dataResourceId", dataResourceId, "binData", context.get("uploadedFile"), "dataResourceTypeId", "LOCAL_FILE", "objectInfo", fileAndPath); Map<String, Object> results = dispatcher.runSync("createAnonFile", input); if (ServiceUtil.isError(results)) { return results; } // wrap up by creating the Content object context.put("contentName", contentName); return createContentFromDataResource(delegator, dataResource, context); } catch (GenericServiceException e) { Debug.logError(e, MODULE); return ServiceUtil.returnError(e.getMessage()); } catch (GenericEntityException e) { Debug.logError(e, MODULE); return ServiceUtil.returnError(e.getMessage()); } } /** * upload file and contech which relate the dataResource. * @param dataResource a <code>GenericValue</code> value * @param dctx a <code>DispatchContext</code> value * @param context a <code>Map</code> value * @return the <code>Map</code> value. */ private static Map updateFile(GenericValue dataResource, DispatchContext dctx, Map context) { Delegator delegator = dctx.getDelegator(); LocalDispatcher dispatcher = dctx.getDispatcher(); String contentName = (String) context.get("contentName"); String fileName = (String) context.get("_uploadedFile_fileName"); GenericValue userLogin = (GenericValue) context.get("userLogin"); if (contentName == null || contentName.trim().length() == 0) { contentName = fileName; } // update the file to the system using the ofbiz service Map input = UtilMisc.toMap("binData", context.get("uploadedFile"), "dataResourceTypeId", "LOCAL_FILE", "objectInfo", dataResource.getString("objectInfo"),"userLogin", userLogin); try { String dataResourceId = dataResource.getString("dataResourceId"); Debug.logInfo("Find same file at server path, using updateFile to update DataResource and Content entities by DataResource [" + dataResourceId + "].", MODULE); Map<String, Object> results = dispatcher.runSync("updateFile", input); if (ServiceUtil.isError(results)) { return results; } // wrap up by creating the Content object context.put("contentName", contentName); return updateContentFromDataResource(delegator, dataResource, context); } catch (GenericServiceException e) { Debug.logError(e, MODULE); return ServiceUtil.returnError(e.getMessage()); } catch (GenericEntityException e) { Debug.logError(e, MODULE); return ServiceUtil.returnError(e.getMessage()); } } /** * get DataResourceContent upload path.if specific uploadFolder then use it, else use ofbiz DataResourceWorker.getDataResourceContentUploadPath to get upload path. * @param uploadFolder a <code>String</code> value * @return the <code>String</code> upload path value. */ public static String getDataResourceContentUploadPath(String uploadFolder) { if (uploadFolder == null) { return DataResourceWorker.getDataResourceContentUploadPath(); } String initialPath = UtilProperties.getPropertyValue("content.properties", "content.upload.path.prefix"); String ofbizHome = System.getProperty("ofbiz.home"); if (!initialPath.startsWith("/")) { initialPath = "/" + initialPath; } File root = new File(ofbizHome + initialPath); if (!root.exists()) { boolean created = root.mkdir(); if (!created) { Debug.logWarning("Unable to create upload folder [" + ofbizHome + initialPath + "].", MODULE); } } String parentFolder = ofbizHome + initialPath + "/" + uploadFolder; File parent = new File(parentFolder); if (!parent.exists()) { boolean created = parent.mkdir(); if (!created) { Debug.logWarning("Unable to create upload folder [" + parentFolder + "].", MODULE); } } Debug.log("Directory Name : " + parentFolder, MODULE); return parentFolder.replace('\\', '/'); } public static Map uploadUrl(DispatchContext dctx, Map context) { Delegator delegator = dctx.getDelegator(); GenericValue userLogin = (GenericValue) context.get("userLogin"); String url = (String) context.get("url"); String contentName = (String) context.get("contentName"); if (contentName == null || contentName.trim().length() == 0) { contentName = url; } try { // first create the base data resource GenericValue dataResource = initializeDataResource(delegator, userLogin); // identify this resource as a plain text URL dataResource.set("dataResourceTypeId", "URL_RESOURCE"); dataResource.set("mimeTypeId", "text/plain"); // store the actual URL and name dataResource.set("objectInfo", url); dataResource.set("dataResourceName", contentName); dataResource.create(); // wrap up by creating the Content object return createContentFromDataResource(delegator, dataResource, context); } catch (GenericEntityException e) { Debug.logError(e, MODULE); return ServiceUtil.returnError(e.getMessage()); } } // Creates a basic data resource to fill out by the respective consumer services private static GenericValue initializeDataResource(Delegator delegator, GenericValue userLogin) throws GenericEntityException { Map<String, Object> input = FastMap.newInstance(); input.put("dataResourceId", delegator.getNextSeqId("DataResource")); input.put("statusId", "CTNT_PUBLISHED"); input.put("createdDate", UtilDateTime.nowTimestamp()); input.put("createdByUserLogin", userLogin.get("userLoginId")); return delegator.makeValue("DataResource", input); } private static Map createContentFromDataResource(Delegator delegator, GenericValue dataResource, Map context) throws GenericEntityException { String contentTypeId = null; if ("LOCAL_FILE".equals(dataResource.get("dataResourceTypeId"))) { contentTypeId = "FILE"; } else if ("URL_RESOURCE".equals(dataResource.get("dataResourceTypeId"))) { contentTypeId = "HYPERLINK"; } else { return ServiceUtil.returnError("Data resource type [" + dataResource.get("dataResourceTypeId") + "] not supported."); } String contentName = (String) context.get("contentName"); if (contentName == null || contentName.trim().length() == 0) { contentName = (String) dataResource.get("dataResourceName"); } GenericValue content = delegator.makeValue("Content"); String contentId = delegator.getNextSeqId("Content"); content.set("contentId", contentId); content.set("createdDate", dataResource.get("createdDate")); content.set("dataResourceId", dataResource.get("dataResourceId")); content.set("statusId", dataResource.get("statusId")); content.set("contentName", dataResource.get("dataResourceName")); content.set("mimeTypeId", dataResource.get("mimeTypeId")); content.set("contentTypeId", contentTypeId); content.set("contentName", contentName); content.set("description", context.get("description")); content.set("createdByUserLogin", context.get("createdByUserLoginId")); content.set("classificationEnumId", context.get("classificationEnumId")); content.create(); Map<String, Object> results = ServiceUtil.returnSuccess(); results.put("contentId", contentId); return results; } /** * update content which relate the dataResource. * @param delegator a <code>Delegator</code> value * @param dataResource a <code>GenericValue</code> value * @param context a <code>Map</code> value * @return the <code>Map</code> value. */ private static Map updateContentFromDataResource(Delegator delegator, GenericValue dataResource, Map context) throws GenericEntityException { List<GenericValue> contents = delegator.findByAnd("Content", EntityCondition.makeCondition("dataResourceId", dataResource.get("dataResourceId"))); if (contents.size() > 0) { // exit same file already. GenericValue content = contents.get(0); content.set("description", context.get("description")); content.set("classificationEnumId", context.get("classificationEnumId")); content.store(); Map<String, Object> results = ServiceUtil.returnSuccess(); results.put("contentId", content.getString("contentId")); Debug.logInfo("Find same file at server path, updateContentFromDataResource return contentId [" + content.getString("contentId") + "]", MODULE); results.put("isOverwrite", "Y"); return results; } else { //using createContentFromDataResource to create new Content return createContentFromDataResource(delegator, dataResource, context); } } }
import sqlite3 conn = sqlite3.connect('database.db') cursor = conn.cursor() cursor.execute("SELECT CustomerID, FirstName, LastName FROM Customers WHERE Country = 'Germany'") rows = cursor.fetchall() conn.close() # Output rows for row in rows: print(row[0], row[1], row[2])
function countPropertyOccurrences(evidences: Evidence[], propertyName: string): Record<string, number> { const propertyCounts: Record<string, number> = {}; for (const evidence of evidences) { const propertyValue = evidence[propertyName]; if (propertyCounts[propertyValue]) { propertyCounts[propertyValue]++; } else { propertyCounts[propertyValue] = 1; } } return propertyCounts; }
#!/usr/bin/env bash __scriptpath=$(cd "$(dirname "$0")"; pwd -P) __init_tools_log=$__scriptpath/init-tools.log __PACKAGES_DIR=$__scriptpath/packages __TOOLRUNTIME_DIR=$__scriptpath/Tools __DOTNET_PATH=$__TOOLRUNTIME_DIR/dotnetcli __DOTNET_CMD=$__DOTNET_PATH/dotnet if [ -z "$__BUILDTOOLS_SOURCE" ]; then __BUILDTOOLS_SOURCE=https://dotnet.myget.org/F/dotnet-buildtools/api/v3/index.json; fi export __BUILDTOOLS_USE_CSPROJ=true __BUILD_TOOLS_PACKAGE_VERSION=$(cat $__scriptpath/BuildToolsVersion.txt) __DOTNET_TOOLS_VERSION=$(cat $__scriptpath/DotnetCLIVersion.txt) __ILASM_VERSION=$(cat $__scriptpath/ILAsmVersion.txt) __BUILD_TOOLS_PATH=$__PACKAGES_DIR/microsoft.dotnet.buildtools/$__BUILD_TOOLS_PACKAGE_VERSION/lib __INIT_TOOLS_RESTORE_PROJECT=$__scriptpath/init-tools.msbuild __BUILD_TOOLS_SEMAPHORE=$__TOOLRUNTIME_DIR/$__BUILD_TOOLS_PACKAGE_VERSION/init-tools.complete if [ -e $__BUILD_TOOLS_SEMAPHORE ]; then echo "Tools are already initialized" return #return instead of exit because this script is inlined in other scripts which we don't want to exit fi if [ -e $__TOOLRUNTIME_DIR ]; then rm -rf -- $__TOOLRUNTIME_DIR; fi if [ -d "$DotNetBuildToolsDir" ]; then echo "Using tools from '$DotNetBuildToolsDir'." ln -s "$DotNetBuildToolsDir" "$__TOOLRUNTIME_DIR" if [ ! -e "$__DOTNET_CMD" ]; then echo "ERROR: Ensure that $DotNetBuildToolsDir contains the .NET Core SDK at $__DOTNET_PATH" exit 1 fi echo "Done initializing tools." mkdir -p "$(dirname "$__BUILD_TOOLS_SEMAPHORE")" && touch $__BUILD_TOOLS_SEMAPHORE return #return instead of exit because this script is inlined in other scripts which we don't want to exit fi echo "Running: $__scriptpath/init-tools.sh" > $__init_tools_log display_error_message() { echo "Please check the detailed log that follows." 1>&2 cat "$__init_tools_log" 1>&2 } # Executes a command and retries if it fails. execute_with_retry() { local count=0 local retries=${retries:-5} local waitFactor=${waitFactor:-6} until "$@"; do local exit=$? count=$(( $count + 1 )) if [ $count -lt $retries ]; then local wait=$(( waitFactor ** (( count - 1 )) )) echo "Retry $count/$retries exited $exit, retrying in $wait seconds..." sleep $wait else say_err "Retry $count/$retries exited $exit, no more retries left." return $exit fi done return 0 } if [ ! -e $__DOTNET_PATH ]; then if [ -z "$__DOTNET_PKG" ]; then if [ "$(uname -m | grep "i[3456]86")" = "i686" ]; then echo "Warning: build not supported on 32 bit Unix" fi __PKG_ARCH=x64 OSName=$(uname -s) case $OSName in Darwin) OS=OSX __PKG_RID=osx ulimit -n 2048 # Format x.y.z as single integer with three digits for each part VERSION=`sw_vers -productVersion| sed -e 's/\./ /g' | xargs printf "%03d%03d%03d"` if [ "$VERSION" -lt 010012000 ]; then echo error: macOS version `sw_vers -productVersion` is too old. 10.12 is needed as minimum. exit 1 fi ;; Linux) __PKG_RID=linux OS=Linux if [ -e /etc/os-release ]; then source /etc/os-release if [[ $ID == "alpine" ]]; then # remove the last version digit VERSION_ID=${VERSION_ID%.*} __PKG_RID=alpine.$VERSION_ID fi elif [ -e /etc/redhat-release ]; then redhatRelease=$(</etc/redhat-release) if [[ $redhatRelease == "CentOS release 6."* || $redhatRelease == "Red Hat Enterprise Linux Server release 6."* ]]; then __PKG_RID=rhel.6 fi fi ;; *) echo "Unsupported OS '$OSName' detected. Downloading linux-$__PKG_ARCH tools." OS=Linux __PKG_RID=linux ;; esac __DOTNET_PKG=dotnet-sdk-${__DOTNET_TOOLS_VERSION}-$__PKG_RID-$__PKG_ARCH fi mkdir -p "$__DOTNET_PATH" echo "Installing dotnet cli..." __DOTNET_LOCATION="https://dotnetcli.azureedge.net/dotnet/Sdk/${__DOTNET_TOOLS_VERSION}/${__DOTNET_PKG}.tar.gz" install_dotnet_cli() { echo "Installing '${__DOTNET_LOCATION}' to '$__DOTNET_PATH/dotnet.tar'" >> "$__init_tools_log" rm -rf -- "$__DOTNET_PATH/*" # curl has HTTPS CA trust-issues less often than wget, so lets try that first. if command -v curl > /dev/null; then curl --retry 10 -sSL --create-dirs -o $__DOTNET_PATH/dotnet.tar ${__DOTNET_LOCATION} else wget -q -O $__DOTNET_PATH/dotnet.tar ${__DOTNET_LOCATION} fi cd $__DOTNET_PATH tar -xf $__DOTNET_PATH/dotnet.tar } execute_with_retry install_dotnet_cli >> "$__init_tools_log" 2>&1 cd $__scriptpath fi if [ ! -e $__BUILD_TOOLS_PATH ]; then echo "Restoring BuildTools version $__BUILD_TOOLS_PACKAGE_VERSION..." echo "Running: $__DOTNET_CMD restore \"$__INIT_TOOLS_RESTORE_PROJECT\" --no-cache --packages $__PACKAGES_DIR --source $__BUILDTOOLS_SOURCE /p:BuildToolsPackageVersion=$__BUILD_TOOLS_PACKAGE_VERSION /p:ToolsDir=$__TOOLRUNTIME_DIR" >> $__init_tools_log $__DOTNET_CMD restore "$__INIT_TOOLS_RESTORE_PROJECT" --no-cache --packages $__PACKAGES_DIR --source $__BUILDTOOLS_SOURCE /p:BuildToolsPackageVersion=$__BUILD_TOOLS_PACKAGE_VERSION /p:ToolsDir=$__TOOLRUNTIME_DIR >> $__init_tools_log if [ ! -e "$__BUILD_TOOLS_PATH/init-tools.sh" ]; then echo "ERROR: Could not restore build tools correctly." 1>&2 display_error_message fi fi if [ -z "$__ILASM_RID" ]; then __ILASM_RID=$__PKG_RID-$__PKG_ARCH fi echo "Using RID $__ILASM_RID for BuildTools native tools" export ILASMCOMPILER_VERSION=$__ILASM_VERSION export NATIVE_TOOLS_RID=$__ILASM_RID echo "Initializing BuildTools..." echo "Running: $__BUILD_TOOLS_PATH/init-tools.sh $__scriptpath $__DOTNET_CMD $__TOOLRUNTIME_DIR $__PACKAGES_DIR" >> $__init_tools_log # Executables restored with .NET Core 2.0 do not have executable permission flags. https://github.com/NuGet/Home/issues/4424 chmod +x $__BUILD_TOOLS_PATH/init-tools.sh $__BUILD_TOOLS_PATH/init-tools.sh $__scriptpath $__DOTNET_CMD $__TOOLRUNTIME_DIR $__PACKAGES_DIR >> $__init_tools_log if [ "$?" != "0" ]; then echo "ERROR: An error occurred when trying to initialize the tools." 1>&2 display_error_message exit 1 fi echo "Making all .sh files executable under Tools." # Executables restored with .NET Core 2.0 do not have executable permission flags. https://github.com/NuGet/Home/issues/4424 ls $__scriptpath/Tools/*.sh | xargs chmod +x ls $__scriptpath/Tools/scripts/docker/*.sh | xargs chmod +x Tools/crossgen.sh $__scriptpath/Tools mkdir -p "$(dirname "$__BUILD_TOOLS_SEMAPHORE")" && touch $__BUILD_TOOLS_SEMAPHORE echo "Done initializing tools."
#!/usr/bin/env sh # abort on errors set -e # build npm run build # navigate into the build output directory cd dist git init git add -A git commit -m 'deploy' git push -f git@github.com:henriquepgomide/personality-big-five-ipip100.git master:gh-pages cd -
<reponame>daniel-baf/magazine-app package DB.DAOs.Magazine; import DB.Domain.Magazine.Magazine; import BackendUtilities.Parser; import java.sql.PreparedStatement; import java.sql.SQLException; /** * * @author jefemayoneso */ public class MagazineInsert { private String SQL_INSERT_MAG = "INSERT INTO Magazine (name, subscription_fee, company_fee, cost_per_day, creation_date, description, allow_comment, allow_likes, category, editor, approved) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"; public int insert(Magazine magazine) { int result = 0; try { try { // AUTOCOMIT FALSE DB.DBConnection.getConnection().setAutoCommit(false); PreparedStatement ps = DB.DBConnection.getConnection().prepareStatement(SQL_INSERT_MAG); configurePSMagInsert(magazine, ps); if (ps.executeUpdate() != 0) { // magazine insertee // insert tags new TagsInsert().insert(magazine.getTags()); if (new MagazineTagDAO().insert(magazine.getName(), magazine.getTags()) != 0) { result = 1; } } } catch (SQLException e) { System.out.println("Error trying to insert magazine at [DB.DAOs.Magazine].[MagazineInsert] " + e.getMessage()); } finally { if (result == 0) { DB.DBConnection.getConnection().rollback(); } DB.DBConnection.getConnection().setAutoCommit(true); } } catch (SQLException e) { System.out.println("Error trying to insert magazine at [DB.DAOs.Magazine].[MagazineInsert] " + e.getMessage()); } return result; } private void configurePSMagInsert(Magazine magazine, PreparedStatement ps) throws SQLException { // vars to transform boolean to int, 1 = true, 0 = false int allowComm = magazine.isAllowComment() ? 1 : 0; int allowLieks = magazine.isAllowLikes() ? 1 : 0; int approved = magazine.isApproved() ? 1 : 0; // configure preparedstatement ps.setString(1, magazine.getName()); ps.setDouble(2, magazine.getMensuality()); ps.setDouble(3, magazine.getCompanyFee()); ps.setDouble(4, magazine.getCostPerDay()); ps.setDate(5, new Parser().toDate(magazine.getDate())); ps.setString(6, magazine.getDescription()); ps.setInt(7, allowComm); ps.setInt(8, allowLieks); ps.setString(9, magazine.getCategory()); ps.setString(10, magazine.getEditor()); ps.setInt(11, approved); } }
<reponame>Aissaoui-Ahmed/accents<gh_stars>1-10 import check from './check.js'; import remove from './remove.js'; import hasAccent from './hasAccent.js'; export { check, remove, hasAccent, };
package com.example.demo; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RestController; import org.springframework.web.client.RestTemplate; //import additional libraries @RestController @SpringBootApplication public class CompanyController { @GetMapping("/company/{name}") public Company getCompany(@PathVariable("name") String name) { //query database for company and retrieve data } @PostMapping("/company") public Company createCompany(@RequestBody Company company) { //add company data to database } public static void main(String[] args) { SpringApplication.run(CompanyController.class, args); } } class Company { String name; String address; String type; //Add additional fields //get/set methods }
#!/bin/bash # Copyright 2017 The Kubernetes 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. set -o errexit set -o nounset set -o pipefail SCRIPT_PACKAGE=github.com/maleck13/kubeop-bot SCRIPT_ROOT=$(dirname "${BASH_SOURCE}")/.. SCRIPT_BASE=${SCRIPT_ROOT}/../.. OUTPUT_BASE=${HOME}/projects/src CODEGEN_PKG=${CODEGEN_PKG:-$(cd ${SCRIPT_ROOT}; ls -d -1 ./vendor/k8s.io/code-generator 2>/dev/null || echo k8s.io/code-generator)} clientgen="${PWD}/client-gen-binary" listergen="${PWD}/lister-gen" informergen="${PWD}/informer-gen" conversiongen="${PWD}/conversion-gen" deepcopygen="${PWD}/deepcopy-gen" # Register function to be called on EXIT to remove generated binary. function cleanup { rm -f "${clientgen:-}" rm -f "${listergen:-}" rm -f "${informergen:-}" rm -f "${conversiongen:-}" rm -f "${deepcopygen:-}" } trap cleanup EXIT function generate_group() { local GROUP_NAME=$1 local VERSION=$2 local CLIENT_PKG=${SCRIPT_PACKAGE}/pkg/client local LISTERS_PKG=${CLIENT_PKG}/listers_generated local INFORMERS_PKG=${CLIENT_PKG}/informers_generated local APIS_PKG=${SCRIPT_PACKAGE}/pkg/apis local INPUT_APIS=( ${GROUP_NAME}/ ${GROUP_NAME}/${VERSION} ) echo "Building conversion-gen" go build -o "${conversiongen}" ${CODEGEN_PKG}/cmd/conversion-gen echo "Building deepcopy-gen" go build -o "${deepcopygen}" ${CODEGEN_PKG}/cmd/deepcopy-gen echo "Building client-gen" go build -o "${clientgen}" ${CODEGEN_PKG}/cmd/client-gen echo "generating clientset for group ${GROUP_NAME} and version ${VERSION} at ${OUTPUT_BASE}/${CLIENT_PKG}" ${clientgen} --go-header-file ./artifacts/boilerplate/boilerplate.go.txt --input-base ${APIS_PKG} --input ${INPUT_APIS[@]} --clientset-path ${CLIENT_PKG}/clientset_generated --output-base=${OUTPUT_BASE} ${clientgen} --go-header-file ./artifacts/boilerplate/boilerplate.go.txt --clientset-name="clientset" --input-base ${APIS_PKG} --input ${GROUP_NAME}/${VERSION} --clientset-path ${CLIENT_PKG}/clientset_generated --output-base=${OUTPUT_BASE} echo "Building lister-gen" go build -o "${listergen}" ${CODEGEN_PKG}/cmd/lister-gen echo "generating listers for group ${GROUP_NAME} and version ${VERSION} at ${OUTPUT_BASE}/${LISTERS_PKG}" ${listergen} --input-dirs ${APIS_PKG}/${GROUP_NAME} --input-dirs ${APIS_PKG}/${GROUP_NAME}/${VERSION} --output-package ${LISTERS_PKG} --output-base ${OUTPUT_BASE} echo "Building informer-gen" go build -o "${informergen}" ${CODEGEN_PKG}/cmd/informer-gen echo "generating informers for group ${GROUP_NAME} and version ${VERSION} at ${OUTPUT_BASE}/${INFORMERS_PKG}" ${informergen} \ --input-dirs ${APIS_PKG}/${GROUP_NAME} --input-dirs ${APIS_PKG}/${GROUP_NAME}/${VERSION} \ --versioned-clientset-package ${CLIENT_PKG}/clientset_generated/clientset \ --internal-clientset-package ${CLIENT_PKG}/clientset_generated/internalclientset \ --listers-package ${LISTERS_PKG} \ --output-package ${INFORMERS_PKG} \ --output-base ${OUTPUT_BASE} echo "generating conversions" ${conversiongen} -v5 --input-dirs github.com/maleck13/kubeop-bot/pkg/apis/kubeopbot/v1alpha1 --input-dirs github.com/maleck13/kubeop-bot/pkg/apis/kubeopbot -o ${HOME}/projects/src --go-header-file ./artifacts/boilerplate/boilerplate.go.txt -O zz_generated.conversion ${deepcopygen} --input-dirs github.com/maleck13/kubeop-bot/pkg/apis/kubeopbot/v1alpha1 --input-dirs github.com/maleck13/kubeop-bot/pkg/apis/kubeopbot --go-header-file="$GOPATH/src/k8s.io/kubernetes/hack/boilerplate/boilerplate.go.txt" -v=4 --logtostderr --bounding-dirs "github.com/maleck13/kubeop-bot/pkg/apis" --output-file-base zz_generated.deepcopy } generate_group kubeopbot v1alpha1
#!/bin/bash GITLAB_HOST="185.185.70.227" docker run \ --detach \ --hostname $GITLAB_HOST \ --env GITLAB_OMNIBUS_CONFIG="external_url 'http://$GITLAB_HOST/'; gitlab_rails['gitlab_shell_ssh_port'] = 2222;" \ --publish 443:443 --publish 80:80 --publish 2222:22 --publish 5005:5005 \ --name gitlab \ --restart always \ --volume /srv/gitlab/config:/etc/gitlab \ --volume /srv/gitlab/logs:/var/log/gitlab \ --volume /srv/gitlab/data:/var/opt/gitlab \ gitlab/gitlab-ce:latest
<reponame>PetukhovVictor/compiler2 from copy import copy from .function import function as compile_function def object_method_def(compiler, node): new_node = copy(node) new_node.name = "o%s!%s" % (compiler.environment.object_list[-1][0], node.name) return compile_function(compiler, new_node)
<reponame>754340156/NQ_quanfu<gh_stars>1-10 // // Mine_OrderCell.h // allrichstore // // Created by zhaozhe on 16/11/7. // Copyright © 2016年 allrich88. All rights reserved. // #import "BaseTableViewCell.h" @interface Mine_OrderCell : BaseTableViewCell /** titleName */ @property(nonatomic,copy) NSString * titleName; /** attestationName */ @property(nonatomic,copy) NSString * attestationName; @end
<gh_stars>0 /* * Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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 org.ballerinalang.scenario.test.database.mssql; import org.ballerinalang.config.ConfigRegistry; import org.ballerinalang.model.values.BBoolean; import org.ballerinalang.model.values.BDecimal; import org.ballerinalang.model.values.BFloat; import org.ballerinalang.model.values.BInteger; import org.ballerinalang.model.values.BMap; import org.ballerinalang.model.values.BValue; import org.ballerinalang.model.values.BValueArray; import org.ballerinalang.scenario.test.common.ScenarioTestBase; import org.ballerinalang.scenario.test.common.database.DatabaseUtil; import org.ballerinalang.scenario.test.database.util.AssertionUtil; import org.ballerinalang.test.util.BCompileUtil; import org.ballerinalang.test.util.BRunUtil; import org.ballerinalang.test.util.CompileResult; import org.testng.Assert; import org.testng.annotations.AfterClass; import org.testng.annotations.BeforeClass; import org.testng.annotations.BeforeSuite; import org.testng.annotations.Test; import java.math.BigDecimal; import java.nio.file.Path; import java.nio.file.Paths; import java.util.HashMap; import java.util.Properties; /** * Contains `select` remote function tests. */ @Test(groups = Constants.MSSQL_TESTNG_GROUP) public class SelectTest extends ScenarioTestBase { private CompileResult selectCompileResult; private String testdbJdbcUrl; private String userName; private String password; private Path resourcePath; private static final String DISABLED = "disabled"; @BeforeSuite public void createDatabase() throws Exception { Properties deploymentProperties = getDeploymentProperties(); String jdbcUrl = deploymentProperties.getProperty(Constants.MSSQL_JDBC_URL_KEY); String userName = deploymentProperties.getProperty(Constants.MSSQL_JDBC_USERNAME_KEY); String password = deploymentProperties.getProperty(Constants.MSSQL_JDBC_PASSWORD_KEY); resourcePath = Paths.get("src", "test", "resources").toAbsolutePath(); DatabaseUtil.executeSqlFile(jdbcUrl, userName, password, Paths.get(resourcePath.toString(), "sql-src", "db-init.sql")); } @BeforeClass public void setup() throws Exception { Properties deploymentProperties = getDeploymentProperties(); testdbJdbcUrl = deploymentProperties.getProperty(Constants.MSSQL_JDBC_URL_KEY) + ";databaseName=testdb"; userName = deploymentProperties.getProperty(Constants.MSSQL_JDBC_USERNAME_KEY); password = deploymentProperties.getProperty(Constants.MSSQL_JDBC_PASSWORD_KEY); ConfigRegistry registry = ConfigRegistry.getInstance(); HashMap<String, String> configMap = new HashMap<>(3); configMap.put(Constants.MSSQL_JDBC_URL_KEY, testdbJdbcUrl); configMap.put(Constants.MSSQL_JDBC_USERNAME_KEY, userName); configMap.put(Constants.MSSQL_JDBC_PASSWORD_KEY, password); registry.initRegistry(configMap, null, null); resourcePath = Paths.get("src", "test", "resources").toAbsolutePath(); DatabaseUtil.executeSqlFile(testdbJdbcUrl, userName, password, Paths.get(resourcePath.toString(), "sql-src", "ddl-select-update-test.sql")); DatabaseUtil.executeSqlFile(testdbJdbcUrl, userName, password, Paths.get(resourcePath.toString(), "sql-src", "dml-select-test.sql")); selectCompileResult = BCompileUtil .compile(Paths.get(resourcePath.toString(), "bal-src", "select-test.bal").toString()); } @Test(description = "Test integer type selection query.") public void testSelectIntegerTypes() { BValue[] returns = BRunUtil.invoke(selectCompileResult, "testSelectIntegerTypes"); Assert.assertTrue(returns[0] instanceof BMap); BMap integerTypeRecord = (BMap) returns[0]; Assert.assertEquals(getIntValFromBMap(integerTypeRecord, Constants.SMALLINT_VAL_FIELD), 32767, AssertionUtil.getIncorrectColumnValueMessage(Constants.SMALLINT_VAL_FIELD)); Assert.assertEquals(getIntValFromBMap(integerTypeRecord, Constants.BIGINT_VAL_FIELD), 9223372036854775807L, AssertionUtil.getIncorrectColumnValueMessage(Constants.BIGINT_VAL_FIELD)); Assert.assertEquals(getIntValFromBMap(integerTypeRecord, Constants.TINYINT_VAL_FIELD), 255, AssertionUtil.getIncorrectColumnValueMessage(Constants.TINYINT_VAL_FIELD)); Assert.assertTrue(((BBoolean) integerTypeRecord.get(Constants.BIT_VAL_FIELD)).booleanValue(), AssertionUtil.getIncorrectColumnValueMessage(Constants.BIT_VAL_FIELD)); Assert.assertEquals(getIntValFromBMap(integerTypeRecord, Constants.INT_VAL_FIELD), 2147483647, AssertionUtil.getIncorrectColumnValueMessage(Constants.INT_VAL_FIELD)); } @Test(description = "Test nil integer type selection query.") public void testSelectIntegerTypesNil() { BValue[] returns = BRunUtil.invoke(selectCompileResult, "testSelectIntegerTypesNil"); Assert.assertTrue(returns[0] instanceof BMap); BMap integerTypeRecord = (BMap) returns[0]; AssertionUtil.assertNullValues(integerTypeRecord, 6, "id"); } @Test(description = "Test fixed point type selection query.") public void testSelectFixedPointTypes() { BValue[] returns = BRunUtil.invoke(selectCompileResult, "testSelectFixedPointTypes"); Assert.assertTrue(returns[0] instanceof BMap); BMap fixedPointTypeRecord = (BMap) returns[0]; Assert.assertEquals(getDecimalValFromBMap(fixedPointTypeRecord, Constants.DECIMAL_VAL_FIELD).floatValue(), 10.05f, AssertionUtil.getIncorrectColumnValueMessage(Constants.DECIMAL_VAL_FIELD)); Assert.assertEquals(getDecimalValFromBMap(fixedPointTypeRecord, Constants.NUMERIC_VAL_FIELD).floatValue(), 1.051f, AssertionUtil.getIncorrectColumnValueMessage(Constants.NUMERIC_VAL_FIELD)); Assert.assertEquals(getDecimalValFromBMap(fixedPointTypeRecord, Constants.MONEY_VAL_FIELD).floatValue(), 922337203685477.5807f, AssertionUtil.getIncorrectColumnValueMessage(Constants.MONEY_VAL_FIELD)); Assert.assertEquals(getDecimalValFromBMap(fixedPointTypeRecord, Constants.SMALLMONEY_VAL_FIELD).floatValue(), 214748.3647f, AssertionUtil.getIncorrectColumnValueMessage(Constants.SMALLMONEY_VAL_FIELD)); } @Test(description = "Test nil fixed point type selection query.") public void testSelectFixedPointTypesNil() { BValue[] returns = BRunUtil.invoke(selectCompileResult, "testSelectFixedPointTypesNil"); Assert.assertTrue(returns[0] instanceof BMap); BMap fixedPointTypeRecord = (BMap) returns[0]; AssertionUtil.assertNullValues(fixedPointTypeRecord, 5, "id"); } @Test(description = "Test float type selection query.") public void testSelectFloatTypes() { BValue[] returns = BRunUtil.invoke(selectCompileResult, "testSelectFloatTypes"); Assert.assertTrue(returns[0] instanceof BMap); BMap floatTypeRecord = (BMap) returns[0]; Assert.assertEquals(getFloatValFromBMap(floatTypeRecord, Constants.FLOAT_VAL_FIELD), 123.45678f, AssertionUtil.getIncorrectColumnValueMessage(Constants.FLOAT_VAL_FIELD)); Assert.assertEquals(getFloatValFromBMap(floatTypeRecord, Constants.REAL_VAL_FIELD), 123456789012345678901234567890f, AssertionUtil.getIncorrectColumnValueMessage(Constants.REAL_VAL_FIELD)); } @Test(description = "Test nil float type selection query.") public void testSelectFloatTypesNil() { BValue[] returns = BRunUtil.invoke(selectCompileResult, "testSelectFloatTypesNil"); Assert.assertTrue(returns[0] instanceof BMap); BMap floatTypeRecord = (BMap) returns[0]; AssertionUtil.assertNullValues(floatTypeRecord, 3, "id"); } @Test(description = "Test string type selection query.") public void testSelectStringTypes() { BValue[] returns = BRunUtil.invoke(selectCompileResult, "testSelectStringTypes"); Assert.assertTrue(returns[0] instanceof BMap); BMap stringTypeRecord = (BMap) returns[0]; String[] fieldValues = { "ABCD", "SQL Server VARCHAR", "This is test message", "MS", "0E984725Ac", "Text" }; AssertionUtil.assertNonNullStringValues(stringTypeRecord, 7, fieldValues, "id"); } @Test(description = "Test nil string type selection query.") public void testSelectStringTypesNil() { BValue[] returns = BRunUtil.invoke(selectCompileResult, "testSelectStringTypesNil"); Assert.assertTrue(returns[0] instanceof BMap); BMap stringTypeRecord = (BMap) returns[0]; AssertionUtil.assertNullValues(stringTypeRecord, 7, "id"); } @Test(description = "Test complex type selection query") public void testComplexTypes() { BValue[] returns = BRunUtil.invoke(selectCompileResult, "testComplexTypes"); Assert.assertTrue(returns[0] instanceof BMap); BMap complexTypeRecord = (BMap) returns[0]; String[] expectedValues = { "Binary Column", "varbinary Column", "Blob Column" }; String[] fields = { Constants.BINARY_FIELD, Constants.VARBINARY_FIELD, Constants.IMAGE_FIELD }; int i = 0; for (String field : fields) { String actualValue = (new String(((BValueArray) (complexTypeRecord.get(field))).getBytes()).trim()); if (field.equals(Constants.BINARY_FIELD)) { actualValue = actualValue.trim(); } Assert.assertEquals(actualValue, expectedValues[i], AssertionUtil.getIncorrectColumnValueMessage(field)); i++; } } @Test(description = "Test nil complex type selection query") public void testComplexTypesNil() { BValue[] returns = BRunUtil.invoke(selectCompileResult, "testComplexTypesNil"); Assert.assertTrue(returns[0] instanceof BMap); AssertionUtil.assertNullValues((BMap) returns[0], 4, "id"); } @Test(description = "Test date time type selection query", groups = { DISABLED }) public void testDateTimeTypes() { BValue[] returns = BRunUtil.invoke(selectCompileResult, "testDateTimeTypes"); Assert.assertTrue(returns[0] instanceof BMap); BMap dateTimeTypeRecord = (BMap) returns[0]; String[] fieldValues = { "2007-05-08", "2007-05-08 12:35:29.1234567 +12:15", "2007-05-08 12:35:29.123", "2007-05-08 12:35:29.1234567", "2007-05-08 12:35:00", "12:35:29.1234567" }; AssertionUtil.assertNonNullStringValues(dateTimeTypeRecord, 7, fieldValues, "id"); } @Test(description = "Test nil date time type selection query", groups = { DISABLED }) public void testDateTimeTypesNil() { BValue[] returns = BRunUtil.invoke(selectCompileResult, "testDateTimeTypesNil"); Assert.assertTrue(returns[0] instanceof BMap); AssertionUtil.assertNullValues((BMap) returns[0], 7, "id"); } private long getIntValFromBMap(BMap bMap, String key) { return ((BInteger) bMap.get(key)).intValue(); } private float getFloatValFromBMap(BMap bMap, String key) { return (float) ((BFloat) bMap.get(key)).floatValue(); } private BigDecimal getDecimalValFromBMap(BMap bMap, String key) { return ((BDecimal) bMap.get(key)).decimalValue(); } @AfterClass(alwaysRun = true) public void cleanup() throws Exception { BRunUtil.invoke(selectCompileResult, "stopDatabaseClient"); DatabaseUtil.executeSqlFile(testdbJdbcUrl, userName, password, Paths.get(resourcePath.toString(), "sql-src", "cleanup-select-update-test.sql")); } }
<reponame>code-troopers/wicket-daterangepicker package codetroopers.wicket.web.daterangepicker; import org.apache.wicket.util.convert.IConverter; import org.apache.wicket.util.convert.converter.DateConverter; import java.util.Date; import java.util.Locale; /** * @author cgatay */ public class DatePairConverter implements IConverter<DateRangePair> { private DateConverter dateConverter; public DatePairConverter() { dateConverter = new DateConverter(); } @Override public String convertToString(final DateRangePair value, final Locale locale) { if (value.getStartDate() != null && value.getEndDate() != null) { return dateConverter.convertToString(value.getStartDate(), locale) + " - " + dateConverter.convertToString(value.getEndDate(), locale); } return ""; } @Override public DateRangePair convertToObject(final String value, final Locale locale) { if (value != null) { final String[] chunks = value.split(" - "); if (chunks != null && chunks.length == 2) { final Date startDate = dateConverter.convertToObject(chunks[0], locale); final Date endDate = dateConverter.convertToObject(chunks[1], locale); return new DateRangePair(startDate, endDate); } } return null; } }
import matplotlib.pyplot as plt # Data to plot fruits = ["Bananas", "Oranges", "Apples"] amount = [5, 10, 2] # Create a bar chart plt.bar(fruits, amount) plt.xlabel("Fruits", fontsize=10) plt.ylabel("Amount", fontsize=10) plt.title("Fruits Amount Bar Chart") plt.show()
#pragma once #include "absl/time/clock.h" #include "id.h" #include "measurement.h" #include <atomic> #include <chrono> #include <vector> namespace spectator { struct Meter { public: explicit Meter(Id id) : id_{std::move(id)}, last_updated_{absl::GetCurrentTimeNanos()} {} [[nodiscard]] const Id& MeterId() const { return id_; } [[nodiscard]] int64_t Updated() const noexcept { return last_updated_; } private: Id id_; std::atomic_int64_t last_updated_; protected: void Update() { last_updated_ = absl::GetCurrentTimeNanos(); } }; } // namespace spectator
import { Component } from '@angular/core'; import { HttpClient } from '@angular/common/http'; @Component({ selector: 'app-root', template: '<h1>Response{{response}}</h1>' }) export class AppComponent { response: string; http: HttpClient; constructor(http: HttpClient) { this.http = http; this.makeRequest(); } makeRequest(): void { this.http.get('http://example.com/data') .subscribe(data => { this.response = data.text; }); } }
const math = require('mathjs'); module.exports = { add: function (x, y) { return math.add(x,y); }, subtract: function (x, y) { return math.subtract(x,y); }, multiply: function (x, y) { return math.multiply(x,y); }, divide: function (x, y) { return math.divide(x,y); }, abs: function (x) { return math.abs(x); } }
<reponame>kmhasan-class/spring2016ai /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package bd.ac.seu.model; import java.util.ArrayList; import java.util.logging.Level; import java.util.logging.Logger; import org.primefaces.json.JSONException; import org.primefaces.json.JSONObject; /** * * @author kmhasan */ public class Course { private String courseCode; private Course alternateCourse; private String courseTitle; private int sectionNumber; private Faculty courseTeacher; private ArrayList<Student> registeredStudents; private ExamSlot examSlot; public Course(String courseCode, String courseTitle, int sectionNumber) { this.courseCode = courseCode; this.courseTitle = courseTitle; this.sectionNumber = sectionNumber; courseTeacher = null; registeredStudents = new ArrayList<>(); examSlot = null; alternateCourse = null; } public String getCourseCode() { return courseCode; } public String getCourseTitle() { return courseTitle; } public int getSectionNumber() { return sectionNumber; } public Faculty getCourseTeacher() { return courseTeacher; } public ArrayList<Student> getRegisteredStudents() { return registeredStudents; } public ExamSlot getExamSlot() { return examSlot; } @Override public String toString() { return courseCode + "." + sectionNumber; } public JSONObject toJSONObject() { JSONObject jsonObject = new JSONObject(); try { jsonObject.put("Course Code", courseCode); jsonObject.put("Alternate Course Code", alternateCourse); jsonObject.put("Title", courseTitle); jsonObject.put("Section", sectionNumber); jsonObject.put("Faculty", courseTeacher); jsonObject.put("Exam Slot", examSlot); jsonObject.put("Registered Students", registeredStudents); } catch (JSONException ex) { Logger.getLogger(Course.class.getName()).log(Level.SEVERE, null, ex); } return jsonObject; } public void addStudent(Student student) { registeredStudents.add(student); } public void setCourseTeacher(Faculty courseTeacher) { this.courseTeacher = courseTeacher; } public void setAlternateCourse(Course alternateCourse) { this.alternateCourse = alternateCourse; } }
#!/bin/bash # SPDX-License-Identifier: Apache-2.0 # Copyright 2020 Kirill 'kkm' Katsnelson # TODO(kkm): This is not as user-customizable as it should have been. # Versions that we install, may be overridden in etc/imaging/user_vars.inc.sh nvidia_ver=418.87.01 # From the NVIDIA public bucket. nvidia_bucket=gs://nvidia-drivers-us-public/tesla # This script is setting up the default image for compute cluster. The idea is # that the image should mostly just work for compute nodes with a minimal # additional setup provided on the common software drive mounted at /opt (with # trivial startup scripts). Other nodes, such as filer, controller and login # nodes should be bootstrapped from this image easily, too. # # TODO(kkm): We are not forwarding logs from these hosts, but we should. # Current kernel version. readonly kernel=$(uname -r) # dpkg flushes files and syncs the FS very often. 'force-unsafe-io' speeds up # the setup significantly. Also, a few config files in layouts (in /etc/default, # mainly) replace files that come in Debian packages; in order for them to take # precedence over same files installed by packages, 'force-confold' is needed. # NB that ucf spells 'conffold', dpkg 'confold'. ucf is a monster, anyway. Apt() { apt-get -qqy -oDPkg::Options::=--force-unsafe-io,confold "$@"; } declare -fr Apt declare -xr DEBIAN_FRONTEND=noninteractive UCF_FORCE_CONFFOLD=YES # Additional configuration files that may have been left by phase 1. readonly cache=/.bootstrap # Count errors, but not bail out immediately. This helps debug the script. err_count=0 E() { let ++err_count; } declare -fr E # Let the system settle for a moment. This script is started quite early. sleep 10 echo "BUILD_STARTED: $(date -Isec) Starting target build" set -x # Source user variables script if present. We declare $kernel and $nvidia_ver # variables readonly, since tweaking them leads to a disaster much more often # than a viable configuration. NVIDIA drivers currently do not build with DKMS # under the kernel 5.x, for one. To prevent other catastrophes, variables and # functions are declared readonly whenever possible. uservars="$cache/user_vars.inc.sh" if [[ -f $uservars ]]; then : "Sourcing user-provided variable setup script '$uservars'" . "$uservars" ||E rm "$uservars" fi # Make debconf as silent as only possible, or it would get angry at us when we # remove the currently running kernel, or uninstall the bootloader completely, # or do other pretty normal stuff. We'll reverse these after install. debconf-set-selections <<EOF debconf debconf/frontend select Noninteractive debconf debconf/priority select critical EOF # Mount a tempfs and download NVIDIA installer into it in backgroud (≈100MB). # The /run tempfs filesystem mounted by default is too small for it. temp=/run/discard_me nvidia_installer=NVIDIA-Linux-x86_64-${nvidia_ver}.run mkdir $temp && mount -t tmpfs tmpfs $temp ||E gsutil -qq cp $nvidia_bucket/$nvidia_ver/$nvidia_installer $temp & # Install packages meanwhile. Apt update ||E # libpython2.7 and libyajl2 are dependencies of the Stackdriver metric agent. # libpath-tiny-perl is a dependency of our training scripts. The rest is mostly # for Kaldi, Slurm, SRILM and some supporting scripts. It's also important to # replace mawk with gawk for Kaldi; mawk is not up to task for some scripts. # # Not installing flac: Kaldi scripts must be updated to use sox, which has no # trouble reading flac files. Apt install --no-upgrade \ bash-completion bind9-host colordiff dbus-user-session dkms \ ethtool gawk gettext-base gdb htop jq \ libaio1 libc6 libcurl3-nss libgcc1 libgcc-8-dev libgomp1 libhwloc5 \ libjson-c3 liblbfgs0 liblz4-1 libmariadb3 libmunge2 \ libncurses5 libnss-systemd libnuma1 \ libpath-tiny-perl libpython2.7 libreadline7 \ libsgmls-perl libstdc++6 libtinfo5 libyajl2 \ linux-headers-${kernel} \ nfs-common nfs-kernel-server \ parted perl policykit-1 python3 python3-requests python3-yaml pigz \ sox time tzdata vim zlib1g ${USER_APT_PACKAGES[@]-} ||E # Install git and less from buster-backports: # * git: fixes an issue with Cloud SDK helper script showing in tab completion # and the 'completion.commands' setting not working correctly. # * less: v551 fixes the long-standing issue with -X showing nothing if output # is less than a screenful. # --no-upgrade wouldn't work if less was already installed (it was, AFAIK). BP=buster-backports Apt install git/$BP less/$BP unset BP Apt purge --auto-remove --allow-remove-essential \ cron logrotate mawk rsyslog unattended-upgrades vim-tiny ||E # Recent Debian images come with this new package, which is not needed, as # resizing is handled by systemd-growfs@-. We do not ||E if it's missing. Apt purge --auto-remove gce-disk-expand # We do not want to upgrade kernel, since GCP images come with the latest one, # but if one gets released during the build, we'll end up without NVIDIA # drivers for it. apt-mark hold linux-image-${kernel} ||E Apt upgrade ||E apt-mark unhold linux-image-${kernel} ||E # Make sure initramfs and grub are up-to-date. update-initramfs -ukall ||E update-grub2 ||E # Wait for driver download to finish before mucking with network. # '-n' gets the exit code of the completed background job, so we can E it. wait -n ||E # Remove old, start new networking stuff. # Can remove network packages only after APT upgrade competes: ifupdown turns # interfaces down when removed, and DHCP drops the leases. Apt purge --auto-remove \ isc-dhcp-client isc-dhcp-common ifupdown ||E rm -f /lib/systemd/system/systemd-resolved.service.d/resolvconf.conf # Switch to systemd networking, but still use crony for timekeeping, it's # significantly smoother. systemd-timesyncd is extremely simple and basic, # and does introduce clock jitter. systemctl mask systemd-timesyncd.service systemctl mask dbus-org.freedesktop.timesync1.service systemctl enable --now systemd-networkd.socket ||E systemctl enable --now systemd-networkd.service ||E systemctl enable --now systemd-resolved.service ||E rm /etc/resolv.conf ln -s /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf # Install NVIDIA drivers while the new networking is starting up. # CPU-intensive compile, so be nice. Discard some unneeded parts, such as X # drivers, right away by directing the install to in-memory tempfs directories. nice -n2 bash $temp/$nvidia_installer \ --no-questions --no-backup --ui=none --disable-nouveau --no-drm --dkms \ --kernel-name=$kernel \ --no-install-libglvnd --no-glvnd-glx-client --no-glvnd-egl-client \ --no-opengl-files --x-prefix=$temp/x --x-sysconfig-path=$temp/s \ --application-profile-path=$temp/a \ --log-file-name=$temp/nvidia-install.log ||E cat $temp/nvidia-install.log : make.log would exist only if DKMS failed, ignore error on a successful build. cat /var/lib/dkms/nvidia/*/build/make.log umount $temp # Free up ramdisk memory. # Install any packages supplied by the user in the addons tarball. shopt -s nullglob debs=("$cache/debs"/*.deb) if [[ $debs ]]; then dpkg -iR "$cache/debs" ||E fi unset debs shopt -u nullglob rm -frv "$cache/debs" # Clean up APT caches. Apt autoremove --purge && Apt clean ||E # Set debconf config back to approximate defaults. debconf-set-selections <<EOF debconf debconf/frontend select Readline debconf debconf/priority select high EOF # Divert Cloud SDK default properties to a file with another extension, so that # it won't be overwritten by package updates (updates will send the file to the # diverted location), and replace it with our own defaults. We must suppress # logging, as the tools try to log to non-existent home directories of service- # only users, and suppress survey prompts, not so much because the service # accounts will hardly agree to take a survey, but rather because writing a # survey prompt to a closed stderr may force a non-zero exit code of otherwise # successfull command. A warning about inability to log leads to the same # problem. Note that the same defaults are set for the login node, where you run # experiments, but you can always change them in your local config. dpkg-divert --rename --add /usr/lib/google-cloud-sdk/properties ||E cat > /usr/lib/google-cloud-sdk/properties <<EOF [core] disable_file_logging = true disable_usage_reporting = false [survey] disable_prompts = true EOF echo /usr/lib/google-cloud-sdk/properties: cat /usr/lib/google-cloud-sdk/properties # Massage fstab. x_growfs=x-systemd.growfs x_timeout=x-systemd.device-timeout=3,x-systemd.mount-timeout=3 # Add ',x-systemd.growfs' to root fs options to be grown on boot. # E.g., 'LABEL=ROOT / ext4 discard,errors=remount-ro 0 1' # $1 $2 $3 $4 ... mv /etc/fstab /etc/fstab~ awk </etc/fstab~ >/etc/fstab '!/^#/ && $2=="/" {$4=$4 ",'$x_growfs'"} 1'||E rm /etc/fstab~ # Add an optional (nofail) /opt mount for the CNS disk, and a noauto mount for # the filer disk. The latter is mounted as the NFS server dependency only. mkdir -p /srv/mill /opt rm -rf /srv/mill/* /opt/* cat >>/etc/fstab <<EOF LABEL=BURRMILL_CNS /opt ext4 nofail,ro,$x_timeout 0 0 # This mount is noauto, and is pulled by NFS server if/when needed. LABEL=BURRMILL_FILER /srv/mill ext4 \ noauto,$x_timeout,$x_growfs,noatime,lazytime,data=writeback,nobarrier,discard,noacl,grpid 0 0 EOF unset x_timeout x_growfs # Display the final resulting fstab in the log. cat /etc/fstab # No point. tty1 does not exist; upgrades never happen anyway. If you maintain # e.g. a working (login) node, just apt update && apt upgrade it; the timers # that prefetch updates are useless at GCE network speeds, and man-db update # does really nothing useful; it's a vestige of the great past when computers # were real 80286 computers boasting real 50MB disks with the ST-412 interface. systemctl disable apt-daily-upgrade.timer apt-daily.timer man-db.timer \ getty@tty1 # This is a new boy in town that comes with latest images, and it's not clear # whether we could use it or not. But we're certainly not using it now... No # "||E" because it may or may not even be there. No documentation exists yet. systemctl disable google-osconfig-agent.service pam-auth-update --enable mkhomedir --package ||E if [[ ${USER_TIMEZONE-} ]]; then timedatectl set-timezone "$USER_TIMEZONE" ||E fi # Hack alert. If you forget to sudo when invoking systemctl and other policy # elevation-aware programs, you'll be prompted for root password, which does not # really exist. This is just an annoyance, but still an annoyance. I could never # find a way to properly use or properly disable this mechanism. Polkit seems # not to respect session-only groups added via /etc/security/groups.com. chmod -x /usr/bin/pkttyagent # TODO(kkm): Probably unhelpful. Polkit seems to ignore it. groupadd -r interactive ||E # See compute/etc/security/groups.conf. # These may be blindly referred to by GCE OS Login, and then yelled at by PAM. groupadd -r docker groupadd -r lxd # Create common identites. Not all are currently used. # TODO(kkm): Probably too many. Figure out which are used. groupadd -g60000 burrmill ||E ClusterUserAdd() { useradd -Ml -gburrmill -Gsystemd-journal -s/bin/false -p\* -u$1 $2 ||E } ClusterUserAdd 60000 burrmill ClusterUserAdd 60001 cluster ClusterUserAdd 60002 slurm ClusterUserAdd 60003 operator ClusterUserAdd 60004 user unset -f ClusterUserAdd # Force regenerating g_i_s config, or else it will install host keys early on # next boot, before noticing changes to and auto-regenerating its own config! /usr/bin/google_instance_setup mv /etc/hosts.burrmill-dist /etc/hosts # g_i_s may have it overwritten. # Another logging record: make sure systemd took over network control. networkctl systemd-resolve --status cat /etc/resolv.conf # Directory and file cleanup. Also remove two temporary holding files deployed # with the layout, for sshd and journald. rm -rf /var/google*.d/* /var/log/journal/* /var/log/unattended-upgrades \ /home/* /root/* /var/tmp/* "$cache" rm -f /var/lib/apt/lists/*.*.* /var/lib/apt/periodic/* \ /var/cache/apt/*.bin /var/cache/debconf/*-old \ /var/log/{auth.,daemon.,kern.,fail,tally,sys}log \ /var/log/{debug,messages} \ /etc/ssh/ssh_host_*_key* /etc/oslogin_passwd.cache* /etc/boto.conf \ /etc/udev/rules.d/75-cloud-ifupdown.rules /etc/network/cloud* \ /etc/systemd/system/rsyslog.service /etc/ssh/sshd_not_to_be_run \ /etc/systemd/journald.conf.d/99-temporary-hold.conf # Reset a few files to zero length. : > /etc/machine-id : > /etc/motd : > /var/log/btmp : > /var/log/lastlog : > /var/log/wtmp echo 'localhost' > /etc/hostname fstrim / ||E set +x # Prevent Daisy from matching output of echoed script lines. t_end=$(date -Isec) echo "Sleeping a bit because race condition in Daisy" sleep 12 (( $err_count == 0 )) \ && echo "BUILD_SUCCESS: $t_end Completed successfully" \ || echo "BUILD_FAILURE: $t_end There were $err_count error(s)" echo "Sleeping a bit more because race condition in Daisy" # This suicidally deletes this script file too, but the subshell is loaded # and run whole, so this being the last line is ok. # # The script is sometimes killed before poweroff is reached, by Daisy-initiated # shutdown. This is normal; this sleep/poweroff sequence exists only to ensure # that the instance does not get stuck running in case Daisy misses the build # success/failure indication. This happens when debugging these scripts. (rm -rfv /startup-*; sleep 10; poweroff)
# Invoice A items = [ {'name': 'Item 1', 'price': 150}, {'name': 'Item 2', 'price': 175}, {'name': 'Item 3', 'price': 200} ] # Calculate total total = 0 for item in items: total += item['price'] # Create invoice print('Invoice A') print('=========') for item in items: print(f'{item["name"]:<10}: ${item["price"]:>4}') print(f'{"Total":<10}: ${total:>4}')
import os import shutil def copy_file(source_path, destination_path): if not os.path.exists(source_path): raise FileNotFoundError(f"The source file '{source_path}' does not exist.") destination_dir = os.path.dirname(destination_path) if not os.path.exists(destination_dir): os.makedirs(destination_dir) shutil.copyfile(source_path, destination_path) print(f"File '{source_path}' copied to '{destination_path}' successfully.")
response = "Hi there, I'm doing great! How about you?"
<filename>src/utils/zencrepes/fetchConfig.ts import { Config } from '../../global'; import esQueryData from '../es/esQueryData'; const fetchConfig = async (eClient: any, userConfig: Config) => { const configData = await esQueryData( eClient, userConfig.elasticsearch.sysIndices.config, { from: 0, size: 10000, query: { match_all: {}, // eslint-disable-line }, }, ); return configData; }; export default fetchConfig;
<gh_stars>0 ------------------------------------------------------------------------------------------------------ --Stored procedures were auto-generated by LatticeSoft Stored Procedures Generator SPGen.NET v1.0 --Generated time: Sonntag, 28. März 2004, 13:35:43 --Web: http://www.latticesoft.com --Email: mailto:<EMAIL> ------------------------------------------------------------------------------------------------------ GO USE [traveldb] GO --=============================================================== --[Stored Procedure generated for table: akt_detail] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_akt_detail]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_akt_detail] GO CREATE PROCEDURE [dbo].[tdb_Insert_akt_detail] @BID int, @PERS_ID int, @DLG_ID int, @DL_ID int, @TEIL int, @AKT_ID int, @ORD int, @A_TYP_ID int, @Z_FLAG int, @AKT_NR int, @SAI_ID int, @PARENTAKT int, @EXEC_DAT int, @FILE_ID int AS SET NOCOUNT ON INSERT INTO akt_detail ( [BID], [PERS_ID], [DLG_ID], [DL_ID], [TEIL], [AKT_ID], [ORD], [A_TYP_ID], [Z_FLAG], [AKT_NR], [SAI_ID], [PARENTAKT], [EXEC_DAT], [FILE_ID] ) VALUES ( @BID, @PERS_ID, @DLG_ID, @DL_ID, @TEIL, @AKT_ID, @ORD, @A_TYP_ID, @Z_FLAG, @AKT_NR, @SAI_ID, @PARENTAKT, @EXEC_DAT, @FILE_ID ) GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_akt_detail]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_akt_detail] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_akt_detail] AS SET NOCOUNT ON SELECT [BID], [PERS_ID], [DLG_ID], [DL_ID], [TEIL], [AKT_ID], [ORD], [A_TYP_ID], [Z_FLAG], [AKT_NR], [SAI_ID], [PARENTAKT], [EXEC_DAT], [FILE_ID] FROM [akt_detail] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_akt_detail_ByFK_BID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_akt_detail_ByFK_BID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_akt_detail_ByFK_BID] @BID int AS SET NOCOUNT ON SELECT [BID], [PERS_ID], [DLG_ID], [DL_ID], [TEIL], [AKT_ID], [ORD], [A_TYP_ID], [Z_FLAG], [AKT_NR], [SAI_ID], [PARENTAKT], [EXEC_DAT], [FILE_ID] FROM [akt_detail] WHERE [BID] = @BID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_akt_detail_ByFK_PERS_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_akt_detail_ByFK_PERS_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_akt_detail_ByFK_PERS_ID] @PERS_ID int AS SET NOCOUNT ON SELECT [BID], [PERS_ID], [DLG_ID], [DL_ID], [TEIL], [AKT_ID], [ORD], [A_TYP_ID], [Z_FLAG], [AKT_NR], [SAI_ID], [PARENTAKT], [EXEC_DAT], [FILE_ID] FROM [akt_detail] WHERE [PERS_ID] = @PERS_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_akt_detail_ByFK_DLG_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_akt_detail_ByFK_DLG_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_akt_detail_ByFK_DLG_ID] @DLG_ID int AS SET NOCOUNT ON SELECT [BID], [PERS_ID], [DLG_ID], [DL_ID], [TEIL], [AKT_ID], [ORD], [A_TYP_ID], [Z_FLAG], [AKT_NR], [SAI_ID], [PARENTAKT], [EXEC_DAT], [FILE_ID] FROM [akt_detail] WHERE [DLG_ID] = @DLG_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_akt_detail_ByFK_DL_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_akt_detail_ByFK_DL_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_akt_detail_ByFK_DL_ID] @DL_ID int AS SET NOCOUNT ON SELECT [BID], [PERS_ID], [DLG_ID], [DL_ID], [TEIL], [AKT_ID], [ORD], [A_TYP_ID], [Z_FLAG], [AKT_NR], [SAI_ID], [PARENTAKT], [EXEC_DAT], [FILE_ID] FROM [akt_detail] WHERE [DL_ID] = @DL_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_akt_detail_ByFK_AKT_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_akt_detail_ByFK_AKT_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_akt_detail_ByFK_AKT_ID] @AKT_ID int AS SET NOCOUNT ON SELECT [BID], [PERS_ID], [DLG_ID], [DL_ID], [TEIL], [AKT_ID], [ORD], [A_TYP_ID], [Z_FLAG], [AKT_NR], [SAI_ID], [PARENTAKT], [EXEC_DAT], [FILE_ID] FROM [akt_detail] WHERE [AKT_ID] = @AKT_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_akt_detail_ByFK_A_TYP_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_akt_detail_ByFK_A_TYP_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_akt_detail_ByFK_A_TYP_ID] @A_TYP_ID int AS SET NOCOUNT ON SELECT [BID], [PERS_ID], [DLG_ID], [DL_ID], [TEIL], [AKT_ID], [ORD], [A_TYP_ID], [Z_FLAG], [AKT_NR], [SAI_ID], [PARENTAKT], [EXEC_DAT], [FILE_ID] FROM [akt_detail] WHERE [A_TYP_ID] = @A_TYP_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_akt_detail_ByFK_SAI_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_akt_detail_ByFK_SAI_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_akt_detail_ByFK_SAI_ID] @SAI_ID int AS SET NOCOUNT ON SELECT [BID], [PERS_ID], [DLG_ID], [DL_ID], [TEIL], [AKT_ID], [ORD], [A_TYP_ID], [Z_FLAG], [AKT_NR], [SAI_ID], [PARENTAKT], [EXEC_DAT], [FILE_ID] FROM [akt_detail] WHERE [SAI_ID] = @SAI_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_akt_detail_ByFK_PARENTAKT]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_akt_detail_ByFK_PARENTAKT] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_akt_detail_ByFK_PARENTAKT] @PARENTAKT int AS SET NOCOUNT ON SELECT [BID], [PERS_ID], [DLG_ID], [DL_ID], [TEIL], [AKT_ID], [ORD], [A_TYP_ID], [Z_FLAG], [AKT_NR], [SAI_ID], [PARENTAKT], [EXEC_DAT], [FILE_ID] FROM [akt_detail] WHERE [PARENTAKT] = @PARENTAKT GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_akt_detail_ByFK_FILE_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_akt_detail_ByFK_FILE_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_akt_detail_ByFK_FILE_ID] @FILE_ID int AS SET NOCOUNT ON SELECT [BID], [PERS_ID], [DLG_ID], [DL_ID], [TEIL], [AKT_ID], [ORD], [A_TYP_ID], [Z_FLAG], [AKT_NR], [SAI_ID], [PARENTAKT], [EXEC_DAT], [FILE_ID] FROM [akt_detail] WHERE [FILE_ID] = @FILE_ID GO --[End of Stored Procedure for table: akt_detail] --=============================================================== --=============================================================== --[Stored Procedure generated for table: aktionen] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_aktionen]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_aktionen] GO CREATE PROCEDURE [dbo].[tdb_Insert_aktionen] @AKT_ID int, @BEZ_ID int, @TEXTID int, @A_FLAG int, @B_FLAG int, @M_FLAG int, @A_TYP_ID int, @B2_FLAG int, @FILE_ID int AS SET NOCOUNT ON INSERT INTO aktionen ( [AKT_ID], [BEZ_ID], [TEXTID], [A_FLAG], [B_FLAG], [M_FLAG], [A_TYP_ID], [B2_FLAG], [FILE_ID] ) VALUES ( @AKT_ID, @BEZ_ID, @TEXTID, @A_FLAG, @B_FLAG, @M_FLAG, @A_TYP_ID, @B2_FLAG, @FILE_ID ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_aktionen]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_aktionen] GO CREATE PROCEDURE [dbo].[tdb_Update_aktionen] @AKT_ID int, @BEZ_ID int, @TEXTID int, @A_FLAG int, @B_FLAG int, @M_FLAG int, @A_TYP_ID int, @B2_FLAG int, @FILE_ID int AS SET NOCOUNT ON UPDATE [aktionen] SET [BEZ_ID] = @BEZ_ID, [TEXTID] = @TEXTID, [A_FLAG] = @A_FLAG, [B_FLAG] = @B_FLAG, [M_FLAG] = @M_FLAG, [A_TYP_ID] = @A_TYP_ID, [B2_FLAG] = @B2_FLAG, [FILE_ID] = @FILE_ID WHERE [AKT_ID] = @AKT_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_aktionen]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_aktionen] GO CREATE PROCEDURE [dbo].[tdb_Read_aktionen] @AKT_ID int AS SET NOCOUNT ON SELECT [AKT_ID], [BEZ_ID], [TEXTID], [A_FLAG], [B_FLAG], [M_FLAG], [A_TYP_ID], [B2_FLAG], [FILE_ID] FROM [aktionen] WHERE [AKT_ID] = @AKT_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_aktionen]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_aktionen] GO CREATE PROCEDURE [dbo].[tdb_Delete_aktionen] @AKT_ID int AS SET NOCOUNT ON DELETE FROM [aktionen] WHERE [AKT_ID] = @AKT_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_aktionen]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_aktionen] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_aktionen] AS SET NOCOUNT ON SELECT [AKT_ID], [BEZ_ID], [TEXTID], [A_FLAG], [B_FLAG], [M_FLAG], [A_TYP_ID], [B2_FLAG], [FILE_ID] FROM [aktionen] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_aktionen_ByFK_A_TYP_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_aktionen_ByFK_A_TYP_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_aktionen_ByFK_A_TYP_ID] @A_TYP_ID int AS SET NOCOUNT ON SELECT [AKT_ID], [BEZ_ID], [TEXTID], [A_FLAG], [B_FLAG], [M_FLAG], [A_TYP_ID], [B2_FLAG], [FILE_ID] FROM [aktionen] WHERE [A_TYP_ID] = @A_TYP_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_aktionen_ByFK_FILE_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_aktionen_ByFK_FILE_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_aktionen_ByFK_FILE_ID] @FILE_ID int AS SET NOCOUNT ON SELECT [AKT_ID], [BEZ_ID], [TEXTID], [A_FLAG], [B_FLAG], [M_FLAG], [A_TYP_ID], [B2_FLAG], [FILE_ID] FROM [aktionen] WHERE [FILE_ID] = @FILE_ID GO --[End of Stored Procedure for table: aktionen] --=============================================================== --=============================================================== --[Stored Procedure generated for table: aktions_typ] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_aktions_typ]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_aktions_typ] GO CREATE PROCEDURE [dbo].[tdb_Insert_aktions_typ] @A_TYP_ID int, @BEZ_ID int, @PROZ varchar(1024), @TEXTID int AS SET NOCOUNT ON INSERT INTO aktions_typ ( [A_TYP_ID], [BEZ_ID], [PROZ], [TEXTID] ) VALUES ( @A_TYP_ID, @BEZ_ID, @PROZ, @TEXTID ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_aktions_typ]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_aktions_typ] GO CREATE PROCEDURE [dbo].[tdb_Update_aktions_typ] @A_TYP_ID int, @BEZ_ID int, @PROZ varchar(1024), @TEXTID int AS SET NOCOUNT ON UPDATE [aktions_typ] SET [BEZ_ID] = @BEZ_ID, [PROZ] = @PROZ, [TEXTID] = @TEXTID WHERE [A_TYP_ID] = @A_TYP_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_aktions_typ]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_aktions_typ] GO CREATE PROCEDURE [dbo].[tdb_Read_aktions_typ] @A_TYP_ID int AS SET NOCOUNT ON SELECT [A_TYP_ID], [BEZ_ID], [PROZ], [TEXTID] FROM [aktions_typ] WHERE [A_TYP_ID] = @A_TYP_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_aktions_typ]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_aktions_typ] GO CREATE PROCEDURE [dbo].[tdb_Delete_aktions_typ] @A_TYP_ID int AS SET NOCOUNT ON DELETE FROM [aktions_typ] WHERE [A_TYP_ID] = @A_TYP_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_aktions_typ]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_aktions_typ] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_aktions_typ] AS SET NOCOUNT ON SELECT [A_TYP_ID], [BEZ_ID], [PROZ], [TEXTID] FROM [aktions_typ] GO --[End of Stored Procedure for table: aktions_typ] --=============================================================== --=============================================================== --[Stored Procedure generated for table: aktionsgrp] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_aktionsgrp]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_aktionsgrp] GO CREATE PROCEDURE [dbo].[tdb_Insert_aktionsgrp] @PARENTAKT int, @CHILDAKT int, @ORD int, @H_AKT_ID int AS SET NOCOUNT ON INSERT INTO aktionsgrp ( [PARENTAKT], [CHILDAKT], [ORD], [H_AKT_ID] ) VALUES ( @PARENTAKT, @CHILDAKT, @ORD, @H_AKT_ID ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_aktionsgrp]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_aktionsgrp] GO CREATE PROCEDURE [dbo].[tdb_Update_aktionsgrp] @PARENTAKT int, @CHILDAKT int, @ORD int, @H_AKT_ID int AS SET NOCOUNT ON UPDATE [aktionsgrp] SET [H_AKT_ID] = @H_AKT_ID WHERE [PARENTAKT] = @PARENTAKT AND [CHILDAKT] = @CHILDAKT AND [ORD] = @ORD GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_aktionsgrp]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_aktionsgrp] GO CREATE PROCEDURE [dbo].[tdb_Read_aktionsgrp] @PARENTAKT int, @CHILDAKT int, @ORD int AS SET NOCOUNT ON SELECT [PARENTAKT], [CHILDAKT], [ORD], [H_AKT_ID] FROM [aktionsgrp] WHERE [PARENTAKT] = @PARENTAKT AND [CHILDAKT] = @CHILDAKT AND [ORD] = @ORD GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_aktionsgrp]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_aktionsgrp] GO CREATE PROCEDURE [dbo].[tdb_Delete_aktionsgrp] @PARENTAKT int, @CHILDAKT int, @ORD int AS SET NOCOUNT ON DELETE FROM [aktionsgrp] WHERE [PARENTAKT] = @PARENTAKT AND [CHILDAKT] = @CHILDAKT AND [ORD] = @ORD GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_aktionsgrp]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_aktionsgrp] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_aktionsgrp] AS SET NOCOUNT ON SELECT [PARENTAKT], [CHILDAKT], [ORD], [H_AKT_ID] FROM [aktionsgrp] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_aktionsgrp_ByFK_PARENTAKT]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_aktionsgrp_ByFK_PARENTAKT] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_aktionsgrp_ByFK_PARENTAKT] @PARENTAKT int AS SET NOCOUNT ON SELECT [PARENTAKT], [CHILDAKT], [ORD], [H_AKT_ID] FROM [aktionsgrp] WHERE [PARENTAKT] = @PARENTAKT GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_aktionsgrp_ByFK_CHILDAKT]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_aktionsgrp_ByFK_CHILDAKT] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_aktionsgrp_ByFK_CHILDAKT] @CHILDAKT int AS SET NOCOUNT ON SELECT [PARENTAKT], [CHILDAKT], [ORD], [H_AKT_ID] FROM [aktionsgrp] WHERE [CHILDAKT] = @CHILDAKT GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_aktionsgrp_ByFK_H_AKT_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_aktionsgrp_ByFK_H_AKT_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_aktionsgrp_ByFK_H_AKT_ID] @H_AKT_ID int AS SET NOCOUNT ON SELECT [PARENTAKT], [CHILDAKT], [ORD], [H_AKT_ID] FROM [aktionsgrp] WHERE [H_AKT_ID] = @H_AKT_ID GO --[End of Stored Procedure for table: aktionsgrp] --=============================================================== --=============================================================== --[Stored Procedure generated for table: aktionspara] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_aktionspara]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_aktionspara] GO CREATE PROCEDURE [dbo].[tdb_Insert_aktionspara] @A_TYP_ID int, @NR int, @TYP int, @BEZ varchar(1024), @MUSS int, @FLAG int, @TEXTID int AS SET NOCOUNT ON INSERT INTO aktionspara ( [A_TYP_ID], [NR], [TYP], [BEZ], [MUSS], [FLAG], [TEXTID] ) VALUES ( @A_TYP_ID, @NR, @TYP, @BEZ, @MUSS, @FLAG, @TEXTID ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_aktionspara]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_aktionspara] GO CREATE PROCEDURE [dbo].[tdb_Update_aktionspara] @A_TYP_ID int, @NR int, @TYP int, @BEZ varchar(1024), @MUSS int, @FLAG int, @TEXTID int AS SET NOCOUNT ON UPDATE [aktionspara] SET [TYP] = @TYP, [BEZ] = @BEZ, [MUSS] = @MUSS, [FLAG] = @FLAG, [TEXTID] = @TEXTID WHERE [A_TYP_ID] = @A_TYP_ID AND [NR] = @NR GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_aktionspara]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_aktionspara] GO CREATE PROCEDURE [dbo].[tdb_Read_aktionspara] @A_TYP_ID int, @NR int AS SET NOCOUNT ON SELECT [A_TYP_ID], [NR], [TYP], [BEZ], [MUSS], [FLAG], [TEXTID] FROM [aktionspara] WHERE [A_TYP_ID] = @A_TYP_ID AND [NR] = @NR GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_aktionspara]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_aktionspara] GO CREATE PROCEDURE [dbo].[tdb_Delete_aktionspara] @A_TYP_ID int, @NR int AS SET NOCOUNT ON DELETE FROM [aktionspara] WHERE [A_TYP_ID] = @A_TYP_ID AND [NR] = @NR GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_aktionspara]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_aktionspara] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_aktionspara] AS SET NOCOUNT ON SELECT [A_TYP_ID], [NR], [TYP], [BEZ], [MUSS], [FLAG], [TEXTID] FROM [aktionspara] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_aktionspara_ByFK_A_TYP_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_aktionspara_ByFK_A_TYP_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_aktionspara_ByFK_A_TYP_ID] @A_TYP_ID int AS SET NOCOUNT ON SELECT [A_TYP_ID], [NR], [TYP], [BEZ], [MUSS], [FLAG], [TEXTID] FROM [aktionspara] WHERE [A_TYP_ID] = @A_TYP_ID GO --[End of Stored Procedure for table: aktionspara] --=============================================================== --=============================================================== --[Stored Procedure generated for table: aktionstexte] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_aktionstexte]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_aktionstexte] GO CREATE PROCEDURE [dbo].[tdb_Insert_aktionstexte] @TEXTID int, @S_ID int, @TEXTNR int, @TEXT varchar(1024), @TYP int AS SET NOCOUNT ON INSERT INTO aktionstexte ( [TEXTID], [S_ID], [TEXTNR], [TEXT], [TYP] ) VALUES ( @TEXTID, @S_ID, @TEXTNR, @TEXT, @TYP ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_aktionstexte]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_aktionstexte] GO CREATE PROCEDURE [dbo].[tdb_Update_aktionstexte] @TEXTID int, @S_ID int, @TEXTNR int, @TEXT varchar(1024), @TYP int AS SET NOCOUNT ON UPDATE [aktionstexte] SET [TEXT] = @TEXT WHERE [TEXTID] = @TEXTID AND [S_ID] = @S_ID AND [TEXTNR] = @TEXTNR AND [TYP] = @TYP GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_aktionstexte]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_aktionstexte] GO CREATE PROCEDURE [dbo].[tdb_Read_aktionstexte] @TEXTID int, @S_ID int, @TEXTNR int, @TYP int AS SET NOCOUNT ON SELECT [TEXTID], [S_ID], [TEXTNR], [TEXT], [TYP] FROM [aktionstexte] WHERE [TEXTID] = @TEXTID AND [S_ID] = @S_ID AND [TEXTNR] = @TEXTNR AND [TYP] = @TYP GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_aktionstexte]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_aktionstexte] GO CREATE PROCEDURE [dbo].[tdb_Delete_aktionstexte] @TEXTID int, @S_ID int, @TEXTNR int, @TYP int AS SET NOCOUNT ON DELETE FROM [aktionstexte] WHERE [TEXTID] = @TEXTID AND [S_ID] = @S_ID AND [TEXTNR] = @TEXTNR AND [TYP] = @TYP GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_aktionstexte]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_aktionstexte] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_aktionstexte] AS SET NOCOUNT ON SELECT [TEXTID], [S_ID], [TEXTNR], [TEXT], [TYP] FROM [aktionstexte] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_aktionstexte_ByFK_S_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_aktionstexte_ByFK_S_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_aktionstexte_ByFK_S_ID] @S_ID int AS SET NOCOUNT ON SELECT [TEXTID], [S_ID], [TEXTNR], [TEXT], [TYP] FROM [aktionstexte] WHERE [S_ID] = @S_ID GO --[End of Stored Procedure for table: aktionstexte] --=============================================================== --=============================================================== --[Stored Procedure generated for table: angebots_typ] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_angebots_typ]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_angebots_typ] GO CREATE PROCEDURE [dbo].[tdb_Insert_angebots_typ] @ART_ID int, @BEZ_ID int, @TEXTID int AS SET NOCOUNT ON INSERT INTO angebots_typ ( [ART_ID], [BEZ_ID], [TEXTID] ) VALUES ( @ART_ID, @BEZ_ID, @TEXTID ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_angebots_typ]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_angebots_typ] GO CREATE PROCEDURE [dbo].[tdb_Update_angebots_typ] @ART_ID int, @BEZ_ID int, @TEXTID int AS SET NOCOUNT ON UPDATE [angebots_typ] SET [BEZ_ID] = @BEZ_ID, [TEXTID] = @TEXTID WHERE [ART_ID] = @ART_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_angebots_typ]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_angebots_typ] GO CREATE PROCEDURE [dbo].[tdb_Read_angebots_typ] @ART_ID int AS SET NOCOUNT ON SELECT [ART_ID], [BEZ_ID], [TEXTID] FROM [angebots_typ] WHERE [ART_ID] = @ART_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_angebots_typ]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_angebots_typ] GO CREATE PROCEDURE [dbo].[tdb_Delete_angebots_typ] @ART_ID int AS SET NOCOUNT ON DELETE FROM [angebots_typ] WHERE [ART_ID] = @ART_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_angebots_typ]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_angebots_typ] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_angebots_typ] AS SET NOCOUNT ON SELECT [ART_ID], [BEZ_ID], [TEXTID] FROM [angebots_typ] GO --[End of Stored Procedure for table: angebots_typ] --=============================================================== --=============================================================== --[Stored Procedure generated for table: arr_dlg] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_arr_dlg]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_arr_dlg] GO CREATE PROCEDURE [dbo].[tdb_Insert_arr_dlg] @ARR_ID int, @TEIL int, @PRIO int, @DLG_ID int AS SET NOCOUNT ON INSERT INTO arr_dlg ( [ARR_ID], [TEIL], [PRIO], [DLG_ID] ) VALUES ( @ARR_ID, @TEIL, @PRIO, @DLG_ID ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_arr_dlg]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_arr_dlg] GO CREATE PROCEDURE [dbo].[tdb_Update_arr_dlg] @ARR_ID int, @TEIL int, @PRIO int, @DLG_ID int AS SET NOCOUNT ON UPDATE [arr_dlg] SET [PRIO] = @PRIO WHERE [ARR_ID] = @ARR_ID AND [TEIL] = @TEIL AND [DLG_ID] = @DLG_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_arr_dlg]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_arr_dlg] GO CREATE PROCEDURE [dbo].[tdb_Read_arr_dlg] @ARR_ID int, @TEIL int, @DLG_ID int AS SET NOCOUNT ON SELECT [ARR_ID], [TEIL], [PRIO], [DLG_ID] FROM [arr_dlg] WHERE [ARR_ID] = @ARR_ID AND [TEIL] = @TEIL AND [DLG_ID] = @DLG_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_arr_dlg]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_arr_dlg] GO CREATE PROCEDURE [dbo].[tdb_Delete_arr_dlg] @ARR_ID int, @TEIL int, @DLG_ID int AS SET NOCOUNT ON DELETE FROM [arr_dlg] WHERE [ARR_ID] = @ARR_ID AND [TEIL] = @TEIL AND [DLG_ID] = @DLG_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_arr_dlg]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_arr_dlg] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_arr_dlg] AS SET NOCOUNT ON SELECT [ARR_ID], [TEIL], [PRIO], [DLG_ID] FROM [arr_dlg] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_arr_dlg_ByFK_ARR_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_arr_dlg_ByFK_ARR_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_arr_dlg_ByFK_ARR_ID] @ARR_ID int AS SET NOCOUNT ON SELECT [ARR_ID], [TEIL], [PRIO], [DLG_ID] FROM [arr_dlg] WHERE [ARR_ID] = @ARR_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_arr_dlg_ByFK_DLG_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_arr_dlg_ByFK_DLG_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_arr_dlg_ByFK_DLG_ID] @DLG_ID int AS SET NOCOUNT ON SELECT [ARR_ID], [TEIL], [PRIO], [DLG_ID] FROM [arr_dlg] WHERE [DLG_ID] = @DLG_ID GO --[End of Stored Procedure for table: arr_dlg] --=============================================================== --=============================================================== --[Stored Procedure generated for table: arrangement] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_arrangement]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_arrangement] GO CREATE PROCEDURE [dbo].[tdb_Insert_arrangement] @ARR_ID int, @CODE varchar(256), @BEZ_ID int, @A_DAT int, @PRG_ID int, @TEXTID int, @SAI_ID int AS SET NOCOUNT ON INSERT INTO arrangement ( [ARR_ID], [CODE], [BEZ_ID], [A_DAT], [PRG_ID], [TEXTID], [SAI_ID] ) VALUES ( @ARR_ID, @CODE, @BEZ_ID, @A_DAT, @PRG_ID, @TEXTID, @SAI_ID ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_arrangement]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_arrangement] GO CREATE PROCEDURE [dbo].[tdb_Update_arrangement] @ARR_ID int, @CODE varchar(256), @BEZ_ID int, @A_DAT int, @PRG_ID int, @TEXTID int, @SAI_ID int AS SET NOCOUNT ON UPDATE [arrangement] SET [CODE] = @CODE, [BEZ_ID] = @BEZ_ID, [A_DAT] = @A_DAT, [PRG_ID] = @PRG_ID, [TEXTID] = @TEXTID, [SAI_ID] = @SAI_ID WHERE [ARR_ID] = @ARR_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_arrangement]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_arrangement] GO CREATE PROCEDURE [dbo].[tdb_Read_arrangement] @ARR_ID int AS SET NOCOUNT ON SELECT [ARR_ID], [CODE], [BEZ_ID], [A_DAT], [PRG_ID], [TEXTID], [SAI_ID] FROM [arrangement] WHERE [ARR_ID] = @ARR_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_arrangement]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_arrangement] GO CREATE PROCEDURE [dbo].[tdb_Delete_arrangement] @ARR_ID int AS SET NOCOUNT ON DELETE FROM [arrangement] WHERE [ARR_ID] = @ARR_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_arrangement]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_arrangement] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_arrangement] AS SET NOCOUNT ON SELECT [ARR_ID], [CODE], [BEZ_ID], [A_DAT], [PRG_ID], [TEXTID], [SAI_ID] FROM [arrangement] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_arrangement_ByFK_PRG_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_arrangement_ByFK_PRG_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_arrangement_ByFK_PRG_ID] @PRG_ID int AS SET NOCOUNT ON SELECT [ARR_ID], [CODE], [BEZ_ID], [A_DAT], [PRG_ID], [TEXTID], [SAI_ID] FROM [arrangement] WHERE [PRG_ID] = @PRG_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_arrangement_ByFK_SAI_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_arrangement_ByFK_SAI_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_arrangement_ByFK_SAI_ID] @SAI_ID int AS SET NOCOUNT ON SELECT [ARR_ID], [CODE], [BEZ_ID], [A_DAT], [PRG_ID], [TEXTID], [SAI_ID] FROM [arrangement] WHERE [SAI_ID] = @SAI_ID GO --[End of Stored Procedure for table: arrangement] --=============================================================== --=============================================================== --[Stored Procedure generated for table: bch_dln] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_bch_dln]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_bch_dln] GO CREATE PROCEDURE [dbo].[tdb_Insert_bch_dln] @BID int, @DLN_ID int AS SET NOCOUNT ON INSERT INTO bch_dln ( [BID], [DLN_ID] ) VALUES ( @BID, @DLN_ID ) GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_bch_dln]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_bch_dln] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_bch_dln] AS SET NOCOUNT ON SELECT [BID], [DLN_ID] FROM [bch_dln] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_bch_dln_ByFK_BID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_bch_dln_ByFK_BID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_bch_dln_ByFK_BID] @BID int AS SET NOCOUNT ON SELECT [BID], [DLN_ID] FROM [bch_dln] WHERE [BID] = @BID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_bch_dln_ByFK_DLN_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_bch_dln_ByFK_DLN_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_bch_dln_ByFK_DLN_ID] @DLN_ID int AS SET NOCOUNT ON SELECT [BID], [DLN_ID] FROM [bch_dln] WHERE [DLN_ID] = @DLN_ID GO --[End of Stored Procedure for table: bch_dln] --=============================================================== --=============================================================== --[Stored Procedure generated for table: bezeichnung] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_bezeichnung]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_bezeichnung] GO CREATE PROCEDURE [dbo].[tdb_Insert_bezeichnung] @BEZ_ID int, @S_ID int, @BEZ varchar(1024), @TYP int AS SET NOCOUNT ON INSERT INTO bezeichnung ( [BEZ_ID], [S_ID], [BEZ], [TYP] ) VALUES ( @BEZ_ID, @S_ID, @BEZ, @TYP ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_bezeichnung]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_bezeichnung] GO CREATE PROCEDURE [dbo].[tdb_Update_bezeichnung] @BEZ_ID int, @S_ID int, @BEZ varchar(1024), @TYP int AS SET NOCOUNT ON UPDATE [bezeichnung] SET [BEZ] = @BEZ WHERE [BEZ_ID] = @BEZ_ID AND [S_ID] = @S_ID AND [TYP] = @TYP GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_bezeichnung]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_bezeichnung] GO CREATE PROCEDURE [dbo].[tdb_Read_bezeichnung] @BEZ_ID int, @S_ID int, @TYP int AS SET NOCOUNT ON SELECT [BEZ_ID], [S_ID], [BEZ], [TYP] FROM [bezeichnung] WHERE [BEZ_ID] = @BEZ_ID AND [S_ID] = @S_ID AND [TYP] = @TYP GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_bezeichnung]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_bezeichnung] GO CREATE PROCEDURE [dbo].[tdb_Delete_bezeichnung] @BEZ_ID int, @S_ID int, @TYP int AS SET NOCOUNT ON DELETE FROM [bezeichnung] WHERE [BEZ_ID] = @BEZ_ID AND [S_ID] = @S_ID AND [TYP] = @TYP GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_bezeichnung]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_bezeichnung] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_bezeichnung] AS SET NOCOUNT ON SELECT [BEZ_ID], [S_ID], [BEZ], [TYP] FROM [bezeichnung] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_bezeichnung_ByFK_S_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_bezeichnung_ByFK_S_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_bezeichnung_ByFK_S_ID] @S_ID int AS SET NOCOUNT ON SELECT [BEZ_ID], [S_ID], [BEZ], [TYP] FROM [bezeichnung] WHERE [S_ID] = @S_ID GO --[End of Stored Procedure for table: bezeichnung] --=============================================================== --=============================================================== --[Stored Procedure generated for table: buchung] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_buchung]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_buchung] GO CREATE PROCEDURE [dbo].[tdb_Insert_buchung] @D_BID int, @BID int, @REF varchar(256), @ARR_ID int, @KID int, @SACH int, @ANW int, @B_DAT int, @M_DAT int, @OPT_BST int, @OPT_KID int, @STA int, @AST int, @SAI_ID int, @K_ID int, @MPID int, @HISTORY int, @TEXTID int AS SET NOCOUNT ON INSERT INTO buchung ( [D_BID], [BID], [REF], [ARR_ID], [KID], [SACH], [ANW], [B_DAT], [M_DAT], [OPT_BST], [OPT_KID], [STA], [AST], [SAI_ID], [K_ID], [MPID], [HISTORY], [TEXTID] ) VALUES ( @D_BID, @BID, @REF, @ARR_ID, @KID, @SACH, @ANW, @B_DAT, @M_DAT, @OPT_BST, @OPT_KID, @STA, @AST, @SAI_ID, @K_ID, @MPID, @HISTORY, @TEXTID ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_buchung]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_buchung] GO CREATE PROCEDURE [dbo].[tdb_Update_buchung] @D_BID int, @BID int, @REF varchar(256), @ARR_ID int, @KID int, @SACH int, @ANW int, @B_DAT int, @M_DAT int, @OPT_BST int, @OPT_KID int, @STA int, @AST int, @SAI_ID int, @K_ID int, @MPID int, @HISTORY int, @TEXTID int AS SET NOCOUNT ON UPDATE [buchung] SET [D_BID] = @D_BID, [REF] = @REF, [ARR_ID] = @ARR_ID, [KID] = @KID, [SACH] = @SACH, [ANW] = @ANW, [B_DAT] = @B_DAT, [M_DAT] = @M_DAT, [OPT_BST] = @OPT_BST, [OPT_KID] = @OPT_KID, [STA] = @STA, [AST] = @AST, [SAI_ID] = @SAI_ID, [K_ID] = @K_ID, [MPID] = @MPID, [HISTORY] = @HISTORY, [TEXTID] = @TEXTID WHERE [BID] = @BID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_buchung]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_buchung] GO CREATE PROCEDURE [dbo].[tdb_Read_buchung] @BID int AS SET NOCOUNT ON SELECT [D_BID], [BID], [REF], [ARR_ID], [KID], [SACH], [ANW], [B_DAT], [M_DAT], [OPT_BST], [OPT_KID], [STA], [AST], [SAI_ID], [K_ID], [MPID], [HISTORY], [TEXTID] FROM [buchung] WHERE [BID] = @BID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_buchung]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_buchung] GO CREATE PROCEDURE [dbo].[tdb_Delete_buchung] @BID int AS SET NOCOUNT ON DELETE FROM [buchung] WHERE [BID] = @BID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_buchung]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_buchung] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_buchung] AS SET NOCOUNT ON SELECT [D_BID], [BID], [REF], [ARR_ID], [KID], [SACH], [ANW], [B_DAT], [M_DAT], [OPT_BST], [OPT_KID], [STA], [AST], [SAI_ID], [K_ID], [MPID], [HISTORY], [TEXTID] FROM [buchung] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_buchung_ByFK_ARR_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_buchung_ByFK_ARR_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_buchung_ByFK_ARR_ID] @ARR_ID int AS SET NOCOUNT ON SELECT [D_BID], [BID], [REF], [ARR_ID], [KID], [SACH], [ANW], [B_DAT], [M_DAT], [OPT_BST], [OPT_KID], [STA], [AST], [SAI_ID], [K_ID], [MPID], [HISTORY], [TEXTID] FROM [buchung] WHERE [ARR_ID] = @ARR_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_buchung_ByFK_KID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_buchung_ByFK_KID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_buchung_ByFK_KID] @KID int AS SET NOCOUNT ON SELECT [D_BID], [BID], [REF], [ARR_ID], [KID], [SACH], [ANW], [B_DAT], [M_DAT], [OPT_BST], [OPT_KID], [STA], [AST], [SAI_ID], [K_ID], [MPID], [HISTORY], [TEXTID] FROM [buchung] WHERE [KID] = @KID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_buchung_ByFK_SAI_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_buchung_ByFK_SAI_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_buchung_ByFK_SAI_ID] @SAI_ID int AS SET NOCOUNT ON SELECT [D_BID], [BID], [REF], [ARR_ID], [KID], [SACH], [ANW], [B_DAT], [M_DAT], [OPT_BST], [OPT_KID], [STA], [AST], [SAI_ID], [K_ID], [MPID], [HISTORY], [TEXTID] FROM [buchung] WHERE [SAI_ID] = @SAI_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_buchung_ByFK_K_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_buchung_ByFK_K_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_buchung_ByFK_K_ID] @K_ID int AS SET NOCOUNT ON SELECT [D_BID], [BID], [REF], [ARR_ID], [KID], [SACH], [ANW], [B_DAT], [M_DAT], [OPT_BST], [OPT_KID], [STA], [AST], [SAI_ID], [K_ID], [MPID], [HISTORY], [TEXTID] FROM [buchung] WHERE [K_ID] = @K_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_buchung_ByFK_MPID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_buchung_ByFK_MPID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_buchung_ByFK_MPID] @MPID int AS SET NOCOUNT ON SELECT [D_BID], [BID], [REF], [ARR_ID], [KID], [SACH], [ANW], [B_DAT], [M_DAT], [OPT_BST], [OPT_KID], [STA], [AST], [SAI_ID], [K_ID], [MPID], [HISTORY], [TEXTID] FROM [buchung] WHERE [MPID] = @MPID GO --[End of Stored Procedure for table: buchung] --=============================================================== --=============================================================== --[Stored Procedure generated for table: dienst_angebot] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_dienst_angebot]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_dienst_angebot] GO CREATE PROCEDURE [dbo].[tdb_Insert_dienst_angebot] @DLA_ID int, @CODE varchar(256), @H_DLA_ID int, @ORD int, @DLT_ID int, @BEZ_ID int, @AKT_ID int, @ORT varchar(256), @ART_ID int, @DAU int, @TEXTID int, @VON int, @NACH int AS SET NOCOUNT ON INSERT INTO dienst_angebot ( [DLA_ID], [CODE], [H_DLA_ID], [ORD], [DLT_ID], [BEZ_ID], [AKT_ID], [ORT], [ART_ID], [DAU], [TEXTID], [VON], [NACH] ) VALUES ( @DLA_ID, @CODE, @H_DLA_ID, @ORD, @DLT_ID, @BEZ_ID, @AKT_ID, @ORT, @ART_ID, @DAU, @TEXTID, @VON, @NACH ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_dienst_angebot]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_dienst_angebot] GO CREATE PROCEDURE [dbo].[tdb_Update_dienst_angebot] @DLA_ID int, @CODE varchar(256), @H_DLA_ID int, @ORD int, @DLT_ID int, @BEZ_ID int, @AKT_ID int, @ORT varchar(256), @ART_ID int, @DAU int, @TEXTID int, @VON int, @NACH int AS SET NOCOUNT ON UPDATE [dienst_angebot] SET [CODE] = @CODE, [H_DLA_ID] = @H_DLA_ID, [ORD] = @ORD, [DLT_ID] = @DLT_ID, [BEZ_ID] = @BEZ_ID, [AKT_ID] = @AKT_ID, [ORT] = @ORT, [ART_ID] = @ART_ID, [DAU] = @DAU, [TEXTID] = @TEXTID, [VON] = @VON, [NACH] = @NACH WHERE [DLA_ID] = @DLA_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_dienst_angebot]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_dienst_angebot] GO CREATE PROCEDURE [dbo].[tdb_Read_dienst_angebot] @DLA_ID int AS SET NOCOUNT ON SELECT [DLA_ID], [CODE], [H_DLA_ID], [ORD], [DLT_ID], [BEZ_ID], [AKT_ID], [ORT], [ART_ID], [DAU], [TEXTID], [VON], [NACH] FROM [dienst_angebot] WHERE [DLA_ID] = @DLA_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_dienst_angebot]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_dienst_angebot] GO CREATE PROCEDURE [dbo].[tdb_Delete_dienst_angebot] @DLA_ID int AS SET NOCOUNT ON DELETE FROM [dienst_angebot] WHERE [DLA_ID] = @DLA_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_dienst_angebot]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_dienst_angebot] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_dienst_angebot] AS SET NOCOUNT ON SELECT [DLA_ID], [CODE], [H_DLA_ID], [ORD], [DLT_ID], [BEZ_ID], [AKT_ID], [ORT], [ART_ID], [DAU], [TEXTID], [VON], [NACH] FROM [dienst_angebot] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_dienst_angebot_ByFK_DLT_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_dienst_angebot_ByFK_DLT_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_dienst_angebot_ByFK_DLT_ID] @DLT_ID int AS SET NOCOUNT ON SELECT [DLA_ID], [CODE], [H_DLA_ID], [ORD], [DLT_ID], [BEZ_ID], [AKT_ID], [ORT], [ART_ID], [DAU], [TEXTID], [VON], [NACH] FROM [dienst_angebot] WHERE [DLT_ID] = @DLT_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_dienst_angebot_ByFK_AKT_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_dienst_angebot_ByFK_AKT_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_dienst_angebot_ByFK_AKT_ID] @AKT_ID int AS SET NOCOUNT ON SELECT [DLA_ID], [CODE], [H_DLA_ID], [ORD], [DLT_ID], [BEZ_ID], [AKT_ID], [ORT], [ART_ID], [DAU], [TEXTID], [VON], [NACH] FROM [dienst_angebot] WHERE [AKT_ID] = @AKT_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_dienst_angebot_ByFK_ART_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_dienst_angebot_ByFK_ART_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_dienst_angebot_ByFK_ART_ID] @ART_ID int AS SET NOCOUNT ON SELECT [DLA_ID], [CODE], [H_DLA_ID], [ORD], [DLT_ID], [BEZ_ID], [AKT_ID], [ORT], [ART_ID], [DAU], [TEXTID], [VON], [NACH] FROM [dienst_angebot] WHERE [ART_ID] = @ART_ID GO --[End of Stored Procedure for table: dienst_angebot] --=============================================================== --=============================================================== --[Stored Procedure generated for table: dienst_traeger] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_dienst_traeger]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_dienst_traeger] GO CREATE PROCEDURE [dbo].[tdb_Insert_dienst_traeger] @DLT_ID int, @CODE varchar(256), @BEZ_ID int, @KAT_ID int, @H_DLT_ID int, @DLT_GRP_ID int, @HOST_ID int, @TYP_ID int, @TEXTID int, @STUFE int, @STA_ID int, @ANZ int AS SET NOCOUNT ON INSERT INTO dienst_traeger ( [DLT_ID], [CODE], [BEZ_ID], [KAT_ID], [H_DLT_ID], [DLT_GRP_ID], [HOST_ID], [TYP_ID], [TEXTID], [STUFE], [STA_ID], [ANZ] ) VALUES ( @DLT_ID, @CODE, @BEZ_ID, @KAT_ID, @H_DLT_ID, @DLT_GRP_ID, @HOST_ID, @TYP_ID, @TEXTID, @STUFE, @STA_ID, @ANZ ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_dienst_traeger]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_dienst_traeger] GO CREATE PROCEDURE [dbo].[tdb_Update_dienst_traeger] @DLT_ID int, @CODE varchar(256), @BEZ_ID int, @KAT_ID int, @H_DLT_ID int, @DLT_GRP_ID int, @HOST_ID int, @TYP_ID int, @TEXTID int, @STUFE int, @STA_ID int, @ANZ int AS SET NOCOUNT ON UPDATE [dienst_traeger] SET [CODE] = @CODE, [BEZ_ID] = @BEZ_ID, [KAT_ID] = @KAT_ID, [H_DLT_ID] = @H_DLT_ID, [DLT_GRP_ID] = @DLT_GRP_ID, [HOST_ID] = @HOST_ID, [TYP_ID] = @TYP_ID, [TEXTID] = @TEXTID, [STUFE] = @STUFE, [STA_ID] = @STA_ID, [ANZ] = @ANZ WHERE [DLT_ID] = @DLT_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_dienst_traeger]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_dienst_traeger] GO CREATE PROCEDURE [dbo].[tdb_Read_dienst_traeger] @DLT_ID int AS SET NOCOUNT ON SELECT [DLT_ID], [CODE], [BEZ_ID], [KAT_ID], [H_DLT_ID], [DLT_GRP_ID], [HOST_ID], [TYP_ID], [TEXTID], [STUFE], [STA_ID], [ANZ] FROM [dienst_traeger] WHERE [DLT_ID] = @DLT_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_dienst_traeger]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_dienst_traeger] GO CREATE PROCEDURE [dbo].[tdb_Delete_dienst_traeger] @DLT_ID int AS SET NOCOUNT ON DELETE FROM [dienst_traeger] WHERE [DLT_ID] = @DLT_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_dienst_traeger]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_dienst_traeger] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_dienst_traeger] AS SET NOCOUNT ON SELECT [DLT_ID], [CODE], [BEZ_ID], [KAT_ID], [H_DLT_ID], [DLT_GRP_ID], [HOST_ID], [TYP_ID], [TEXTID], [STUFE], [STA_ID], [ANZ] FROM [dienst_traeger] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_dienst_traeger_ByFK_KAT_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_dienst_traeger_ByFK_KAT_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_dienst_traeger_ByFK_KAT_ID] @KAT_ID int AS SET NOCOUNT ON SELECT [DLT_ID], [CODE], [BEZ_ID], [KAT_ID], [H_DLT_ID], [DLT_GRP_ID], [HOST_ID], [TYP_ID], [TEXTID], [STUFE], [STA_ID], [ANZ] FROM [dienst_traeger] WHERE [KAT_ID] = @KAT_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_dienst_traeger_ByFK_TYP_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_dienst_traeger_ByFK_TYP_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_dienst_traeger_ByFK_TYP_ID] @TYP_ID int AS SET NOCOUNT ON SELECT [DLT_ID], [CODE], [BEZ_ID], [KAT_ID], [H_DLT_ID], [DLT_GRP_ID], [HOST_ID], [TYP_ID], [TEXTID], [STUFE], [STA_ID], [ANZ] FROM [dienst_traeger] WHERE [TYP_ID] = @TYP_ID GO --[End of Stored Procedure for table: dienst_traeger] --=============================================================== --=============================================================== --[Stored Procedure generated for table: dienstleistung] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_dienstleistung]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_dienstleistung] GO CREATE PROCEDURE [dbo].[tdb_Insert_dienstleistung] @DLG_ID int, @CODE varchar(256), @BEZ_ID int, @TEXTID int, @SAI_ID int, @A_ZEIT int, @AKT_ID int AS SET NOCOUNT ON INSERT INTO dienstleistung ( [DLG_ID], [CODE], [BEZ_ID], [TEXTID], [SAI_ID], [A_ZEIT], [AKT_ID] ) VALUES ( @DLG_ID, @CODE, @BEZ_ID, @TEXTID, @SAI_ID, @A_ZEIT, @AKT_ID ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_dienstleistung]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_dienstleistung] GO CREATE PROCEDURE [dbo].[tdb_Update_dienstleistung] @DLG_ID int, @CODE varchar(256), @BEZ_ID int, @TEXTID int, @SAI_ID int, @A_ZEIT int, @AKT_ID int AS SET NOCOUNT ON UPDATE [dienstleistung] SET [CODE] = @CODE, [BEZ_ID] = @BEZ_ID, [TEXTID] = @TEXTID, [SAI_ID] = @SAI_ID, [A_ZEIT] = @A_ZEIT, [AKT_ID] = @AKT_ID WHERE [DLG_ID] = @DLG_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_dienstleistung]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_dienstleistung] GO CREATE PROCEDURE [dbo].[tdb_Read_dienstleistung] @DLG_ID int AS SET NOCOUNT ON SELECT [DLG_ID], [CODE], [BEZ_ID], [TEXTID], [SAI_ID], [A_ZEIT], [AKT_ID] FROM [dienstleistung] WHERE [DLG_ID] = @DLG_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_dienstleistung]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_dienstleistung] GO CREATE PROCEDURE [dbo].[tdb_Delete_dienstleistung] @DLG_ID int AS SET NOCOUNT ON DELETE FROM [dienstleistung] WHERE [DLG_ID] = @DLG_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_dienstleistung]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_dienstleistung] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_dienstleistung] AS SET NOCOUNT ON SELECT [DLG_ID], [CODE], [BEZ_ID], [TEXTID], [SAI_ID], [A_ZEIT], [AKT_ID] FROM [dienstleistung] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_dienstleistung_ByFK_SAI_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_dienstleistung_ByFK_SAI_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_dienstleistung_ByFK_SAI_ID] @SAI_ID int AS SET NOCOUNT ON SELECT [DLG_ID], [CODE], [BEZ_ID], [TEXTID], [SAI_ID], [A_ZEIT], [AKT_ID] FROM [dienstleistung] WHERE [SAI_ID] = @SAI_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_dienstleistung_ByFK_AKT_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_dienstleistung_ByFK_AKT_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_dienstleistung_ByFK_AKT_ID] @AKT_ID int AS SET NOCOUNT ON SELECT [DLG_ID], [CODE], [BEZ_ID], [TEXTID], [SAI_ID], [A_ZEIT], [AKT_ID] FROM [dienstleistung] WHERE [AKT_ID] = @AKT_ID GO --[End of Stored Procedure for table: dienstleistung] --=============================================================== --=============================================================== --[Stored Procedure generated for table: dlg_dlg] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_dlg_dlg]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_dlg_dlg] GO CREATE PROCEDURE [dbo].[tdb_Insert_dlg_dlg] @DLG_ID int, @DL_ID int, @ORD int AS SET NOCOUNT ON INSERT INTO dlg_dlg ( [DLG_ID], [DL_ID], [ORD] ) VALUES ( @DLG_ID, @DL_ID, @ORD ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_dlg_dlg]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_dlg_dlg] GO CREATE PROCEDURE [dbo].[tdb_Update_dlg_dlg] @DLG_ID int, @DL_ID int, @ORD int AS SET NOCOUNT ON UPDATE [dlg_dlg] SET [ORD] = @ORD WHERE [DLG_ID] = @DLG_ID AND [DL_ID] = @DL_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_dlg_dlg]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_dlg_dlg] GO CREATE PROCEDURE [dbo].[tdb_Read_dlg_dlg] @DLG_ID int, @DL_ID int AS SET NOCOUNT ON SELECT [DLG_ID], [DL_ID], [ORD] FROM [dlg_dlg] WHERE [DLG_ID] = @DLG_ID AND [DL_ID] = @DL_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_dlg_dlg]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_dlg_dlg] GO CREATE PROCEDURE [dbo].[tdb_Delete_dlg_dlg] @DLG_ID int, @DL_ID int AS SET NOCOUNT ON DELETE FROM [dlg_dlg] WHERE [DLG_ID] = @DLG_ID AND [DL_ID] = @DL_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_dlg_dlg]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_dlg_dlg] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_dlg_dlg] AS SET NOCOUNT ON SELECT [DLG_ID], [DL_ID], [ORD] FROM [dlg_dlg] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_dlg_dlg_ByFK_DLG_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_dlg_dlg_ByFK_DLG_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_dlg_dlg_ByFK_DLG_ID] @DLG_ID int AS SET NOCOUNT ON SELECT [DLG_ID], [DL_ID], [ORD] FROM [dlg_dlg] WHERE [DLG_ID] = @DLG_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_dlg_dlg_ByFK_DL_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_dlg_dlg_ByFK_DL_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_dlg_dlg_ByFK_DL_ID] @DL_ID int AS SET NOCOUNT ON SELECT [DLG_ID], [DL_ID], [ORD] FROM [dlg_dlg] WHERE [DL_ID] = @DL_ID GO --[End of Stored Procedure for table: dlg_dlg] --=============================================================== --=============================================================== --[Stored Procedure generated for table: dlg_parts] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_dlg_parts]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_dlg_parts] GO CREATE PROCEDURE [dbo].[tdb_Insert_dlg_parts] @DL_ID int, @CODE varchar(256), @BEZ_ID int, @H_DL_ID int, @DLA_ID int, @ORD int, @A_ZEIT int, @E_ZEIT int, @RES_F int, @KID int, @KONTO varchar(256), @TEXTID int, @SAI_ID int, @RECHST int AS SET NOCOUNT ON INSERT INTO dlg_parts ( [DL_ID], [CODE], [BEZ_ID], [H_DL_ID], [DLA_ID], [ORD], [A_ZEIT], [E_ZEIT], [RES_F], [KID], [KONTO], [TEXTID], [SAI_ID], [RECHST] ) VALUES ( @DL_ID, @CODE, @BEZ_ID, @H_DL_ID, @DLA_ID, @ORD, @A_ZEIT, @E_ZEIT, @RES_F, @KID, @KONTO, @TEXTID, @SAI_ID, @RECHST ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_dlg_parts]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_dlg_parts] GO CREATE PROCEDURE [dbo].[tdb_Update_dlg_parts] @DL_ID int, @CODE varchar(256), @BEZ_ID int, @H_DL_ID int, @DLA_ID int, @ORD int, @A_ZEIT int, @E_ZEIT int, @RES_F int, @KID int, @KONTO varchar(256), @TEXTID int, @SAI_ID int, @RECHST int AS SET NOCOUNT ON UPDATE [dlg_parts] SET [CODE] = @CODE, [BEZ_ID] = @BEZ_ID, [H_DL_ID] = @H_DL_ID, [DLA_ID] = @DLA_ID, [ORD] = @ORD, [A_ZEIT] = @A_ZEIT, [E_ZEIT] = @E_ZEIT, [RES_F] = @RES_F, [KID] = @KID, [KONTO] = @KONTO, [TEXTID] = @TEXTID, [SAI_ID] = @SAI_ID, [RECHST] = @RECHST WHERE [DL_ID] = @DL_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_dlg_parts]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_dlg_parts] GO CREATE PROCEDURE [dbo].[tdb_Read_dlg_parts] @DL_ID int AS SET NOCOUNT ON SELECT [DL_ID], [CODE], [BEZ_ID], [H_DL_ID], [DLA_ID], [ORD], [A_ZEIT], [E_ZEIT], [RES_F], [KID], [KONTO], [TEXTID], [SAI_ID], [RECHST] FROM [dlg_parts] WHERE [DL_ID] = @DL_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_dlg_parts]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_dlg_parts] GO CREATE PROCEDURE [dbo].[tdb_Delete_dlg_parts] @DL_ID int AS SET NOCOUNT ON DELETE FROM [dlg_parts] WHERE [DL_ID] = @DL_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_dlg_parts]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_dlg_parts] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_dlg_parts] AS SET NOCOUNT ON SELECT [DL_ID], [CODE], [BEZ_ID], [H_DL_ID], [DLA_ID], [ORD], [A_ZEIT], [E_ZEIT], [RES_F], [KID], [KONTO], [TEXTID], [SAI_ID], [RECHST] FROM [dlg_parts] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_dlg_parts_ByFK_DLA_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_dlg_parts_ByFK_DLA_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_dlg_parts_ByFK_DLA_ID] @DLA_ID int AS SET NOCOUNT ON SELECT [DL_ID], [CODE], [BEZ_ID], [H_DL_ID], [DLA_ID], [ORD], [A_ZEIT], [E_ZEIT], [RES_F], [KID], [KONTO], [TEXTID], [SAI_ID], [RECHST] FROM [dlg_parts] WHERE [DLA_ID] = @DLA_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_dlg_parts_ByFK_KID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_dlg_parts_ByFK_KID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_dlg_parts_ByFK_KID] @KID int AS SET NOCOUNT ON SELECT [DL_ID], [CODE], [BEZ_ID], [H_DL_ID], [DLA_ID], [ORD], [A_ZEIT], [E_ZEIT], [RES_F], [KID], [KONTO], [TEXTID], [SAI_ID], [RECHST] FROM [dlg_parts] WHERE [KID] = @KID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_dlg_parts_ByFK_SAI_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_dlg_parts_ByFK_SAI_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_dlg_parts_ByFK_SAI_ID] @SAI_ID int AS SET NOCOUNT ON SELECT [DL_ID], [CODE], [BEZ_ID], [H_DL_ID], [DLA_ID], [ORD], [A_ZEIT], [E_ZEIT], [RES_F], [KID], [KONTO], [TEXTID], [SAI_ID], [RECHST] FROM [dlg_parts] WHERE [SAI_ID] = @SAI_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_dlg_parts_ByFK_RECHST]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_dlg_parts_ByFK_RECHST] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_dlg_parts_ByFK_RECHST] @RECHST int AS SET NOCOUNT ON SELECT [DL_ID], [CODE], [BEZ_ID], [H_DL_ID], [DLA_ID], [ORD], [A_ZEIT], [E_ZEIT], [RES_F], [KID], [KONTO], [TEXTID], [SAI_ID], [RECHST] FROM [dlg_parts] WHERE [RECHST] = @RECHST GO --[End of Stored Procedure for table: dlg_parts] --=============================================================== --=============================================================== --[Stored Procedure generated for table: graform] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_graform]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_graform] GO CREATE PROCEDURE [dbo].[tdb_Insert_graform] @GRA_ID int, @FORMNR int, @FORM varchar(256) AS SET NOCOUNT ON INSERT INTO graform ( [GRA_ID], [FORMNR], [FORM] ) VALUES ( @GRA_ID, @FORMNR, @FORM ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_graform]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_graform] GO CREATE PROCEDURE [dbo].[tdb_Update_graform] @GRA_ID int, @FORMNR int, @FORM varchar(256) AS SET NOCOUNT ON UPDATE [graform] SET [FORM] = @FORM WHERE [GRA_ID] = @GRA_ID AND [FORMNR] = @FORMNR GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_graform]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_graform] GO CREATE PROCEDURE [dbo].[tdb_Read_graform] @GRA_ID int, @FORMNR int AS SET NOCOUNT ON SELECT [GRA_ID], [FORMNR], [FORM] FROM [graform] WHERE [GRA_ID] = @GRA_ID AND [FORMNR] = @FORMNR GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_graform]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_graform] GO CREATE PROCEDURE [dbo].[tdb_Delete_graform] @GRA_ID int, @FORMNR int AS SET NOCOUNT ON DELETE FROM [graform] WHERE [GRA_ID] = @GRA_ID AND [FORMNR] = @FORMNR GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_graform]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_graform] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_graform] AS SET NOCOUNT ON SELECT [GRA_ID], [FORMNR], [FORM] FROM [graform] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_graform_ByFK_GRA_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_graform_ByFK_GRA_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_graform_ByFK_GRA_ID] @GRA_ID int AS SET NOCOUNT ON SELECT [GRA_ID], [FORMNR], [FORM] FROM [graform] WHERE [GRA_ID] = @GRA_ID GO --[End of Stored Procedure for table: graform] --=============================================================== --=============================================================== --[Stored Procedure generated for table: graphik] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_graphik]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_graphik] GO CREATE PROCEDURE [dbo].[tdb_Insert_graphik] @GRA_ID int, @BEZ_ID int, @DLT_ID int, @TEXTID int AS SET NOCOUNT ON INSERT INTO graphik ( [GRA_ID], [BEZ_ID], [DLT_ID], [TEXTID] ) VALUES ( @GRA_ID, @BEZ_ID, @DLT_ID, @TEXTID ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_graphik]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_graphik] GO CREATE PROCEDURE [dbo].[tdb_Update_graphik] @GRA_ID int, @BEZ_ID int, @DLT_ID int, @TEXTID int AS SET NOCOUNT ON UPDATE [graphik] SET [BEZ_ID] = @BEZ_ID, [DLT_ID] = @DLT_ID, [TEXTID] = @TEXTID WHERE [GRA_ID] = @GRA_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_graphik]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_graphik] GO CREATE PROCEDURE [dbo].[tdb_Read_graphik] @GRA_ID int AS SET NOCOUNT ON SELECT [GRA_ID], [BEZ_ID], [DLT_ID], [TEXTID] FROM [graphik] WHERE [GRA_ID] = @GRA_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_graphik]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_graphik] GO CREATE PROCEDURE [dbo].[tdb_Delete_graphik] @GRA_ID int AS SET NOCOUNT ON DELETE FROM [graphik] WHERE [GRA_ID] = @GRA_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_graphik]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_graphik] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_graphik] AS SET NOCOUNT ON SELECT [GRA_ID], [BEZ_ID], [DLT_ID], [TEXTID] FROM [graphik] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_graphik_ByFK_DLT_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_graphik_ByFK_DLT_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_graphik_ByFK_DLT_ID] @DLT_ID int AS SET NOCOUNT ON SELECT [GRA_ID], [BEZ_ID], [DLT_ID], [TEXTID] FROM [graphik] WHERE [DLT_ID] = @DLT_ID GO --[End of Stored Procedure for table: graphik] --=============================================================== --=============================================================== --[Stored Procedure generated for table: help] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_help]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_help] GO CREATE PROCEDURE [dbo].[tdb_Insert_help] @HELP_TYP int, @HELP_ID int, @S_ID int, @TEXTNR int, @TEXT varchar(1024) AS SET NOCOUNT ON INSERT INTO help ( [HELP_TYP], [HELP_ID], [S_ID], [TEXTNR], [TEXT] ) VALUES ( @HELP_TYP, @HELP_ID, @S_ID, @TEXTNR, @TEXT ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_help]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_help] GO CREATE PROCEDURE [dbo].[tdb_Update_help] @HELP_TYP int, @HELP_ID int, @S_ID int, @TEXTNR int, @TEXT varchar(1024) AS SET NOCOUNT ON UPDATE [help] SET [TEXT] = @TEXT WHERE [HELP_TYP] = @HELP_TYP AND [HELP_ID] = @HELP_ID AND [S_ID] = @S_ID AND [TEXTNR] = @TEXTNR GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_help]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_help] GO CREATE PROCEDURE [dbo].[tdb_Read_help] @HELP_TYP int, @HELP_ID int, @S_ID int, @TEXTNR int AS SET NOCOUNT ON SELECT [HELP_TYP], [HELP_ID], [S_ID], [TEXTNR], [TEXT] FROM [help] WHERE [HELP_TYP] = @HELP_TYP AND [HELP_ID] = @HELP_ID AND [S_ID] = @S_ID AND [TEXTNR] = @TEXTNR GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_help]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_help] GO CREATE PROCEDURE [dbo].[tdb_Delete_help] @HELP_TYP int, @HELP_ID int, @S_ID int, @TEXTNR int AS SET NOCOUNT ON DELETE FROM [help] WHERE [HELP_TYP] = @HELP_TYP AND [HELP_ID] = @HELP_ID AND [S_ID] = @S_ID AND [TEXTNR] = @TEXTNR GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_help]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_help] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_help] AS SET NOCOUNT ON SELECT [HELP_TYP], [HELP_ID], [S_ID], [TEXTNR], [TEXT] FROM [help] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_help_ByFK_S_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_help_ByFK_S_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_help_ByFK_S_ID] @S_ID int AS SET NOCOUNT ON SELECT [HELP_TYP], [HELP_ID], [S_ID], [TEXTNR], [TEXT] FROM [help] WHERE [S_ID] = @S_ID GO --[End of Stored Procedure for table: help] --=============================================================== --=============================================================== --[Stored Procedure generated for table: history] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_history]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_history] GO CREATE PROCEDURE [dbo].[tdb_Insert_history] @HIS_ID int, @S_ID int, @TEXTNR int, @TEXT varchar(1024), @DAT int, @TYP int AS SET NOCOUNT ON INSERT INTO history ( [HIS_ID], [S_ID], [TEXTNR], [TEXT], [DAT], [TYP] ) VALUES ( @HIS_ID, @S_ID, @TEXTNR, @TEXT, @DAT, @TYP ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_history]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_history] GO CREATE PROCEDURE [dbo].[tdb_Update_history] @HIS_ID int, @S_ID int, @TEXTNR int, @TEXT varchar(1024), @DAT int, @TYP int AS SET NOCOUNT ON UPDATE [history] SET [TEXT] = @TEXT, [DAT] = @DAT, [TYP] = @TYP WHERE [HIS_ID] = @HIS_ID AND [S_ID] = @S_ID AND [TEXTNR] = @TEXTNR GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_history]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_history] GO CREATE PROCEDURE [dbo].[tdb_Read_history] @HIS_ID int, @S_ID int, @TEXTNR int AS SET NOCOUNT ON SELECT [HIS_ID], [S_ID], [TEXTNR], [TEXT], [DAT], [TYP] FROM [history] WHERE [HIS_ID] = @HIS_ID AND [S_ID] = @S_ID AND [TEXTNR] = @TEXTNR GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_history]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_history] GO CREATE PROCEDURE [dbo].[tdb_Delete_history] @HIS_ID int, @S_ID int, @TEXTNR int AS SET NOCOUNT ON DELETE FROM [history] WHERE [HIS_ID] = @HIS_ID AND [S_ID] = @S_ID AND [TEXTNR] = @TEXTNR GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_history]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_history] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_history] AS SET NOCOUNT ON SELECT [HIS_ID], [S_ID], [TEXTNR], [TEXT], [DAT], [TYP] FROM [history] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_history_ByFK_S_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_history_ByFK_S_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_history_ByFK_S_ID] @S_ID int AS SET NOCOUNT ON SELECT [HIS_ID], [S_ID], [TEXTNR], [TEXT], [DAT], [TYP] FROM [history] WHERE [S_ID] = @S_ID GO --[End of Stored Procedure for table: history] --=============================================================== --=============================================================== --[Stored Procedure generated for table: host_kont] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_host_kont]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_host_kont] GO CREATE PROCEDURE [dbo].[tdb_Insert_host_kont] @HOSTKONT_ID int, @BEZ_ID int, @FROM_PERS int, @KBST int, @DLA_ID int, @DL_ID int, @DL_VONDAT int, @DL_BISDAT int, @TEXTID int, @OPT_DAT int, @SAI_ID int, @REF varchar(256), @HISTORY int AS SET NOCOUNT ON INSERT INTO host_kont ( [HOSTKONT_ID], [BEZ_ID], [FROM_PERS], [KBST], [DLA_ID], [DL_ID], [DL_VONDAT], [DL_BISDAT], [TEXTID], [OPT_DAT], [SAI_ID], [REF], [HISTORY] ) VALUES ( @HOSTKONT_ID, @BEZ_ID, @FROM_PERS, @KBST, @DLA_ID, @DL_ID, @DL_VONDAT, @DL_BISDAT, @TEXTID, @OPT_DAT, @SAI_ID, @REF, @HISTORY ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_host_kont]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_host_kont] GO CREATE PROCEDURE [dbo].[tdb_Update_host_kont] @HOSTKONT_ID int, @BEZ_ID int, @FROM_PERS int, @KBST int, @DLA_ID int, @DL_ID int, @DL_VONDAT int, @DL_BISDAT int, @TEXTID int, @OPT_DAT int, @SAI_ID int, @REF varchar(256), @HISTORY int AS SET NOCOUNT ON UPDATE [host_kont] SET [BEZ_ID] = @BEZ_ID, [FROM_PERS] = @FROM_PERS, [KBST] = @KBST, [DLA_ID] = @DLA_ID, [DL_ID] = @DL_ID, [DL_VONDAT] = @DL_VONDAT, [DL_BISDAT] = @DL_BISDAT, [TEXTID] = @TEXTID, [OPT_DAT] = @OPT_DAT, [SAI_ID] = @SAI_ID, [REF] = @REF, [HISTORY] = @HISTORY WHERE [HOSTKONT_ID] = @HOSTKONT_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_host_kont]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_host_kont] GO CREATE PROCEDURE [dbo].[tdb_Read_host_kont] @HOSTKONT_ID int AS SET NOCOUNT ON SELECT [HOSTKONT_ID], [BEZ_ID], [FROM_PERS], [KBST], [DLA_ID], [DL_ID], [DL_VONDAT], [DL_BISDAT], [TEXTID], [OPT_DAT], [SAI_ID], [REF], [HISTORY] FROM [host_kont] WHERE [HOSTKONT_ID] = @HOSTKONT_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_host_kont]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_host_kont] GO CREATE PROCEDURE [dbo].[tdb_Delete_host_kont] @HOSTKONT_ID int AS SET NOCOUNT ON DELETE FROM [host_kont] WHERE [HOSTKONT_ID] = @HOSTKONT_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_host_kont]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_host_kont] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_host_kont] AS SET NOCOUNT ON SELECT [HOSTKONT_ID], [BEZ_ID], [FROM_PERS], [KBST], [DLA_ID], [DL_ID], [DL_VONDAT], [DL_BISDAT], [TEXTID], [OPT_DAT], [SAI_ID], [REF], [HISTORY] FROM [host_kont] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_host_kont_ByFK_FROM_PERS]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_host_kont_ByFK_FROM_PERS] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_host_kont_ByFK_FROM_PERS] @FROM_PERS int AS SET NOCOUNT ON SELECT [HOSTKONT_ID], [BEZ_ID], [FROM_PERS], [KBST], [DLA_ID], [DL_ID], [DL_VONDAT], [DL_BISDAT], [TEXTID], [OPT_DAT], [SAI_ID], [REF], [HISTORY] FROM [host_kont] WHERE [FROM_PERS] = @FROM_PERS GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_host_kont_ByFK_KBST]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_host_kont_ByFK_KBST] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_host_kont_ByFK_KBST] @KBST int AS SET NOCOUNT ON SELECT [HOSTKONT_ID], [BEZ_ID], [FROM_PERS], [KBST], [DLA_ID], [DL_ID], [DL_VONDAT], [DL_BISDAT], [TEXTID], [OPT_DAT], [SAI_ID], [REF], [HISTORY] FROM [host_kont] WHERE [KBST] = @KBST GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_host_kont_ByFK_DLA_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_host_kont_ByFK_DLA_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_host_kont_ByFK_DLA_ID] @DLA_ID int AS SET NOCOUNT ON SELECT [HOSTKONT_ID], [BEZ_ID], [FROM_PERS], [KBST], [DLA_ID], [DL_ID], [DL_VONDAT], [DL_BISDAT], [TEXTID], [OPT_DAT], [SAI_ID], [REF], [HISTORY] FROM [host_kont] WHERE [DLA_ID] = @DLA_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_host_kont_ByFK_DL_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_host_kont_ByFK_DL_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_host_kont_ByFK_DL_ID] @DL_ID int AS SET NOCOUNT ON SELECT [HOSTKONT_ID], [BEZ_ID], [FROM_PERS], [KBST], [DLA_ID], [DL_ID], [DL_VONDAT], [DL_BISDAT], [TEXTID], [OPT_DAT], [SAI_ID], [REF], [HISTORY] FROM [host_kont] WHERE [DL_ID] = @DL_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_host_kont_ByFK_SAI_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_host_kont_ByFK_SAI_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_host_kont_ByFK_SAI_ID] @SAI_ID int AS SET NOCOUNT ON SELECT [HOSTKONT_ID], [BEZ_ID], [FROM_PERS], [KBST], [DLA_ID], [DL_ID], [DL_VONDAT], [DL_BISDAT], [TEXTID], [OPT_DAT], [SAI_ID], [REF], [HISTORY] FROM [host_kont] WHERE [SAI_ID] = @SAI_ID GO --[End of Stored Procedure for table: host_kont] --=============================================================== --=============================================================== --[Stored Procedure generated for table: kapa] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_kapa]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_kapa] GO CREATE PROCEDURE [dbo].[tdb_Insert_kapa] @KAT_ID int, @KATBEZ_ID int, @TDL_ID int, @TDLBEZ_ID int, @PRE_ID int, @ANZ int, @BUSY int, @VPR float(53), @VON_DAT int, @BIS_DAT int AS SET NOCOUNT ON INSERT INTO kapa ( [KAT_ID], [KATBEZ_ID], [TDL_ID], [TDLBEZ_ID], [PRE_ID], [ANZ], [BUSY], [VPR], [VON_DAT], [BIS_DAT] ) VALUES ( @KAT_ID, @KATBEZ_ID, @TDL_ID, @TDLBEZ_ID, @PRE_ID, @ANZ, @BUSY, @VPR, @VON_DAT, @BIS_DAT ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_kapa]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_kapa] GO CREATE PROCEDURE [dbo].[tdb_Update_kapa] @KAT_ID int, @KATBEZ_ID int, @TDL_ID int, @TDLBEZ_ID int, @PRE_ID int, @ANZ int, @BUSY int, @VPR float(53), @VON_DAT int, @BIS_DAT int AS SET NOCOUNT ON UPDATE [kapa] SET [KATBEZ_ID] = @KATBEZ_ID, [TDLBEZ_ID] = @TDLBEZ_ID, [PRE_ID] = @PRE_ID, [ANZ] = @ANZ, [BUSY] = @BUSY, [VPR] = @VPR WHERE [KAT_ID] = @KAT_ID AND [TDL_ID] = @TDL_ID AND [VON_DAT] = @VON_DAT AND [BIS_DAT] = @BIS_DAT GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_kapa]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_kapa] GO CREATE PROCEDURE [dbo].[tdb_Read_kapa] @KAT_ID int, @TDL_ID int, @VON_DAT int, @BIS_DAT int AS SET NOCOUNT ON SELECT [KAT_ID], [KATBEZ_ID], [TDL_ID], [TDLBEZ_ID], [PRE_ID], [ANZ], [BUSY], [VPR], [VON_DAT], [BIS_DAT] FROM [kapa] WHERE [KAT_ID] = @KAT_ID AND [TDL_ID] = @TDL_ID AND [VON_DAT] = @VON_DAT AND [BIS_DAT] = @BIS_DAT GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_kapa]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_kapa] GO CREATE PROCEDURE [dbo].[tdb_Delete_kapa] @KAT_ID int, @TDL_ID int, @VON_DAT int, @BIS_DAT int AS SET NOCOUNT ON DELETE FROM [kapa] WHERE [KAT_ID] = @KAT_ID AND [TDL_ID] = @TDL_ID AND [VON_DAT] = @VON_DAT AND [BIS_DAT] = @BIS_DAT GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_kapa]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_kapa] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_kapa] AS SET NOCOUNT ON SELECT [KAT_ID], [KATBEZ_ID], [TDL_ID], [TDLBEZ_ID], [PRE_ID], [ANZ], [BUSY], [VPR], [VON_DAT], [BIS_DAT] FROM [kapa] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_kapa_ByFK_KAT_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_kapa_ByFK_KAT_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_kapa_ByFK_KAT_ID] @KAT_ID int AS SET NOCOUNT ON SELECT [KAT_ID], [KATBEZ_ID], [TDL_ID], [TDLBEZ_ID], [PRE_ID], [ANZ], [BUSY], [VPR], [VON_DAT], [BIS_DAT] FROM [kapa] WHERE [KAT_ID] = @KAT_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_kapa_ByFK_TDL_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_kapa_ByFK_TDL_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_kapa_ByFK_TDL_ID] @TDL_ID int AS SET NOCOUNT ON SELECT [KAT_ID], [KATBEZ_ID], [TDL_ID], [TDLBEZ_ID], [PRE_ID], [ANZ], [BUSY], [VPR], [VON_DAT], [BIS_DAT] FROM [kapa] WHERE [TDL_ID] = @TDL_ID GO --[End of Stored Procedure for table: kapa] --=============================================================== --=============================================================== --[Stored Procedure generated for table: kategorie] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_kategorie]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_kategorie] GO CREATE PROCEDURE [dbo].[tdb_Insert_kategorie] @KAT_ID int, @BEZ_ID int, @H_KAT_ID int, @TYP_ID int, @GA int, @TEXTID int AS SET NOCOUNT ON INSERT INTO kategorie ( [KAT_ID], [BEZ_ID], [H_KAT_ID], [TYP_ID], [GA], [TEXTID] ) VALUES ( @KAT_ID, @BEZ_ID, @H_KAT_ID, @TYP_ID, @GA, @TEXTID ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_kategorie]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_kategorie] GO CREATE PROCEDURE [dbo].[tdb_Update_kategorie] @KAT_ID int, @BEZ_ID int, @H_KAT_ID int, @TYP_ID int, @GA int, @TEXTID int AS SET NOCOUNT ON UPDATE [kategorie] SET [BEZ_ID] = @BEZ_ID, [H_KAT_ID] = @H_KAT_ID, [TYP_ID] = @TYP_ID, [GA] = @GA, [TEXTID] = @TEXTID WHERE [KAT_ID] = @KAT_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_kategorie]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_kategorie] GO CREATE PROCEDURE [dbo].[tdb_Read_kategorie] @KAT_ID int AS SET NOCOUNT ON SELECT [KAT_ID], [BEZ_ID], [H_KAT_ID], [TYP_ID], [GA], [TEXTID] FROM [kategorie] WHERE [KAT_ID] = @KAT_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_kategorie]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_kategorie] GO CREATE PROCEDURE [dbo].[tdb_Delete_kategorie] @KAT_ID int AS SET NOCOUNT ON DELETE FROM [kategorie] WHERE [KAT_ID] = @KAT_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_kategorie]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_kategorie] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_kategorie] AS SET NOCOUNT ON SELECT [KAT_ID], [BEZ_ID], [H_KAT_ID], [TYP_ID], [GA], [TEXTID] FROM [kategorie] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_kategorie_ByFK_TYP_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_kategorie_ByFK_TYP_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_kategorie_ByFK_TYP_ID] @TYP_ID int AS SET NOCOUNT ON SELECT [KAT_ID], [BEZ_ID], [H_KAT_ID], [TYP_ID], [GA], [TEXTID] FROM [kategorie] WHERE [TYP_ID] = @TYP_ID GO --[End of Stored Procedure for table: kategorie] --=============================================================== --=============================================================== --[Stored Procedure generated for table: kollektiv] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_kollektiv]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_kollektiv] GO CREATE PROCEDURE [dbo].[tdb_Insert_kollektiv] @K_ID int, @REF varchar(256), @NAME varchar(512), @K_TYP_ID int, @KBST int, @K_STA int, @HAUPTPERS int, @KID int, @TEXTID int AS SET NOCOUNT ON INSERT INTO kollektiv ( [K_ID], [REF], [NAME], [K_TYP_ID], [KBST], [K_STA], [HAUPTPERS], [KID], [TEXTID] ) VALUES ( @K_ID, @REF, @NAME, @K_TYP_ID, @KBST, @K_STA, @HAUPTPERS, @KID, @TEXTID ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_kollektiv]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_kollektiv] GO CREATE PROCEDURE [dbo].[tdb_Update_kollektiv] @K_ID int, @REF varchar(256), @NAME varchar(512), @K_TYP_ID int, @KBST int, @K_STA int, @HAUPTPERS int, @KID int, @TEXTID int AS SET NOCOUNT ON UPDATE [kollektiv] SET [REF] = @REF, [NAME] = @NAME, [K_TYP_ID] = @K_TYP_ID, [KBST] = @KBST, [K_STA] = @K_STA, [HAUPTPERS] = @HAUPTPERS, [KID] = @KID, [TEXTID] = @TEXTID WHERE [K_ID] = @K_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_kollektiv]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_kollektiv] GO CREATE PROCEDURE [dbo].[tdb_Read_kollektiv] @K_ID int AS SET NOCOUNT ON SELECT [K_ID], [REF], [NAME], [K_TYP_ID], [KBST], [K_STA], [HAUPTPERS], [KID], [TEXTID] FROM [kollektiv] WHERE [K_ID] = @K_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_kollektiv]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_kollektiv] GO CREATE PROCEDURE [dbo].[tdb_Delete_kollektiv] @K_ID int AS SET NOCOUNT ON DELETE FROM [kollektiv] WHERE [K_ID] = @K_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_kollektiv]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_kollektiv] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_kollektiv] AS SET NOCOUNT ON SELECT [K_ID], [REF], [NAME], [K_TYP_ID], [KBST], [K_STA], [HAUPTPERS], [KID], [TEXTID] FROM [kollektiv] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_kollektiv_ByFK_K_TYP_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_kollektiv_ByFK_K_TYP_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_kollektiv_ByFK_K_TYP_ID] @K_TYP_ID int AS SET NOCOUNT ON SELECT [K_ID], [REF], [NAME], [K_TYP_ID], [KBST], [K_STA], [HAUPTPERS], [KID], [TEXTID] FROM [kollektiv] WHERE [K_TYP_ID] = @K_TYP_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_kollektiv_ByFK_KBST]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_kollektiv_ByFK_KBST] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_kollektiv_ByFK_KBST] @KBST int AS SET NOCOUNT ON SELECT [K_ID], [REF], [NAME], [K_TYP_ID], [KBST], [K_STA], [HAUPTPERS], [KID], [TEXTID] FROM [kollektiv] WHERE [KBST] = @KBST GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_kollektiv_ByFK_HAUPTPERS]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_kollektiv_ByFK_HAUPTPERS] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_kollektiv_ByFK_HAUPTPERS] @HAUPTPERS int AS SET NOCOUNT ON SELECT [K_ID], [REF], [NAME], [K_TYP_ID], [KBST], [K_STA], [HAUPTPERS], [KID], [TEXTID] FROM [kollektiv] WHERE [HAUPTPERS] = @HAUPTPERS GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_kollektiv_ByFK_KID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_kollektiv_ByFK_KID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_kollektiv_ByFK_KID] @KID int AS SET NOCOUNT ON SELECT [K_ID], [REF], [NAME], [K_TYP_ID], [KBST], [K_STA], [HAUPTPERS], [KID], [TEXTID] FROM [kollektiv] WHERE [KID] = @KID GO --[End of Stored Procedure for table: kollektiv] --=============================================================== --=============================================================== --[Stored Procedure generated for table: kollektiv_typ] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_kollektiv_typ]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_kollektiv_typ] GO CREATE PROCEDURE [dbo].[tdb_Insert_kollektiv_typ] @K_TYP_ID int, @KOLCODE varchar(256), @BEZ_ID int, @TEXTID int AS SET NOCOUNT ON INSERT INTO kollektiv_typ ( [K_TYP_ID], [KOLCODE], [BEZ_ID], [TEXTID] ) VALUES ( @K_TYP_ID, @KOLCODE, @BEZ_ID, @TEXTID ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_kollektiv_typ]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_kollektiv_typ] GO CREATE PROCEDURE [dbo].[tdb_Update_kollektiv_typ] @K_TYP_ID int, @KOLCODE varchar(256), @BEZ_ID int, @TEXTID int AS SET NOCOUNT ON UPDATE [kollektiv_typ] SET [KOLCODE] = @KOLCODE, [BEZ_ID] = @BEZ_ID, [TEXTID] = @TEXTID WHERE [K_TYP_ID] = @K_TYP_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_kollektiv_typ]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_kollektiv_typ] GO CREATE PROCEDURE [dbo].[tdb_Read_kollektiv_typ] @K_TYP_ID int AS SET NOCOUNT ON SELECT [K_TYP_ID], [KOLCODE], [BEZ_ID], [TEXTID] FROM [kollektiv_typ] WHERE [K_TYP_ID] = @K_TYP_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_kollektiv_typ]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_kollektiv_typ] GO CREATE PROCEDURE [dbo].[tdb_Delete_kollektiv_typ] @K_TYP_ID int AS SET NOCOUNT ON DELETE FROM [kollektiv_typ] WHERE [K_TYP_ID] = @K_TYP_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_kollektiv_typ]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_kollektiv_typ] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_kollektiv_typ] AS SET NOCOUNT ON SELECT [K_TYP_ID], [KOLCODE], [BEZ_ID], [TEXTID] FROM [kollektiv_typ] GO --[End of Stored Procedure for table: kollektiv_typ] --=============================================================== --=============================================================== --[Stored Procedure generated for table: komm_detail] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_komm_detail]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_komm_detail] GO CREATE PROCEDURE [dbo].[tdb_Insert_komm_detail] @KOMM_ID int, @BID int, @DLN_ID int, @KUN_ID int, @KOL_ID int, @PRIO int AS SET NOCOUNT ON INSERT INTO komm_detail ( [KOMM_ID], [BID], [DLN_ID], [KUN_ID], [KOL_ID], [PRIO] ) VALUES ( @KOMM_ID, @BID, @DLN_ID, @KUN_ID, @KOL_ID, @PRIO ) GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_komm_detail]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_komm_detail] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_komm_detail] AS SET NOCOUNT ON SELECT [KOMM_ID], [BID], [DLN_ID], [KUN_ID], [KOL_ID], [PRIO] FROM [komm_detail] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_komm_detail_ByFK_KOMM_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_komm_detail_ByFK_KOMM_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_komm_detail_ByFK_KOMM_ID] @KOMM_ID int AS SET NOCOUNT ON SELECT [KOMM_ID], [BID], [DLN_ID], [KUN_ID], [KOL_ID], [PRIO] FROM [komm_detail] WHERE [KOMM_ID] = @KOMM_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_komm_detail_ByFK_BID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_komm_detail_ByFK_BID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_komm_detail_ByFK_BID] @BID int AS SET NOCOUNT ON SELECT [KOMM_ID], [BID], [DLN_ID], [KUN_ID], [KOL_ID], [PRIO] FROM [komm_detail] WHERE [BID] = @BID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_komm_detail_ByFK_DLN_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_komm_detail_ByFK_DLN_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_komm_detail_ByFK_DLN_ID] @DLN_ID int AS SET NOCOUNT ON SELECT [KOMM_ID], [BID], [DLN_ID], [KUN_ID], [KOL_ID], [PRIO] FROM [komm_detail] WHERE [DLN_ID] = @DLN_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_komm_detail_ByFK_KUN_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_komm_detail_ByFK_KUN_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_komm_detail_ByFK_KUN_ID] @KUN_ID int AS SET NOCOUNT ON SELECT [KOMM_ID], [BID], [DLN_ID], [KUN_ID], [KOL_ID], [PRIO] FROM [komm_detail] WHERE [KUN_ID] = @KUN_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_komm_detail_ByFK_KOL_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_komm_detail_ByFK_KOL_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_komm_detail_ByFK_KOL_ID] @KOL_ID int AS SET NOCOUNT ON SELECT [KOMM_ID], [BID], [DLN_ID], [KUN_ID], [KOL_ID], [PRIO] FROM [komm_detail] WHERE [KOL_ID] = @KOL_ID GO --[End of Stored Procedure for table: komm_detail] --=============================================================== --=============================================================== --[Stored Procedure generated for table: kommission] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_kommission]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_kommission] GO CREATE PROCEDURE [dbo].[tdb_Insert_kommission] @KOMM_ID int, @BEZ_ID int, @SATZ_ART int, @SATZ float(53), @KOMM_TYP int, @KBST int, @KAR_ID int, @DLTT_ID int, @KAT_ID int, @RKR_ID int, @DLA_ID int, @DL_ID int, @DL_VONDAT int, @DL_BISDAT int, @KONT_ID int, @BID int, @HISTORY int, @SAI_ID int, @TEXTID int AS SET NOCOUNT ON INSERT INTO kommission ( [KOMM_ID], [BEZ_ID], [SATZ_ART], [SATZ], [KOMM_TYP], [KBST], [KAR_ID], [DLTT_ID], [KAT_ID], [RKR_ID], [DLA_ID], [DL_ID], [DL_VONDAT], [DL_BISDAT], [KONT_ID], [BID], [HISTORY], [SAI_ID], [TEXTID] ) VALUES ( @KOMM_ID, @BEZ_ID, @SATZ_ART, @SATZ, @KOMM_TYP, @KBST, @KAR_ID, @DLTT_ID, @KAT_ID, @RKR_ID, @DLA_ID, @DL_ID, @DL_VONDAT, @DL_BISDAT, @KONT_ID, @BID, @HISTORY, @SAI_ID, @TEXTID ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_kommission]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_kommission] GO CREATE PROCEDURE [dbo].[tdb_Update_kommission] @KOMM_ID int, @BEZ_ID int, @SATZ_ART int, @SATZ float(53), @KOMM_TYP int, @KBST int, @KAR_ID int, @DLTT_ID int, @KAT_ID int, @RKR_ID int, @DLA_ID int, @DL_ID int, @DL_VONDAT int, @DL_BISDAT int, @KONT_ID int, @BID int, @HISTORY int, @SAI_ID int, @TEXTID int AS SET NOCOUNT ON UPDATE [kommission] SET [BEZ_ID] = @BEZ_ID, [SATZ_ART] = @SATZ_ART, [SATZ] = @SATZ, [KOMM_TYP] = @KOMM_TYP, [KBST] = @KBST, [KAR_ID] = @KAR_ID, [DLTT_ID] = @DLTT_ID, [KAT_ID] = @KAT_ID, [RKR_ID] = @RKR_ID, [DLA_ID] = @DLA_ID, [DL_ID] = @DL_ID, [DL_VONDAT] = @DL_VONDAT, [DL_BISDAT] = @DL_BISDAT, [KONT_ID] = @KONT_ID, [BID] = @BID, [HISTORY] = @HISTORY, [SAI_ID] = @SAI_ID, [TEXTID] = @TEXTID WHERE [KOMM_ID] = @KOMM_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_kommission]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_kommission] GO CREATE PROCEDURE [dbo].[tdb_Read_kommission] @KOMM_ID int AS SET NOCOUNT ON SELECT [KOMM_ID], [BEZ_ID], [SATZ_ART], [SATZ], [KOMM_TYP], [KBST], [KAR_ID], [DLTT_ID], [KAT_ID], [RKR_ID], [DLA_ID], [DL_ID], [DL_VONDAT], [DL_BISDAT], [KONT_ID], [BID], [HISTORY], [SAI_ID], [TEXTID] FROM [kommission] WHERE [KOMM_ID] = @KOMM_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_kommission]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_kommission] GO CREATE PROCEDURE [dbo].[tdb_Delete_kommission] @KOMM_ID int AS SET NOCOUNT ON DELETE FROM [kommission] WHERE [KOMM_ID] = @KOMM_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_kommission]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_kommission] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_kommission] AS SET NOCOUNT ON SELECT [KOMM_ID], [BEZ_ID], [SATZ_ART], [SATZ], [KOMM_TYP], [KBST], [KAR_ID], [DLTT_ID], [KAT_ID], [RKR_ID], [DLA_ID], [DL_ID], [DL_VONDAT], [DL_BISDAT], [KONT_ID], [BID], [HISTORY], [SAI_ID], [TEXTID] FROM [kommission] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_kommission_ByFK_KBST]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_kommission_ByFK_KBST] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_kommission_ByFK_KBST] @KBST int AS SET NOCOUNT ON SELECT [KOMM_ID], [BEZ_ID], [SATZ_ART], [SATZ], [KOMM_TYP], [KBST], [KAR_ID], [DLTT_ID], [KAT_ID], [RKR_ID], [DLA_ID], [DL_ID], [DL_VONDAT], [DL_BISDAT], [KONT_ID], [BID], [HISTORY], [SAI_ID], [TEXTID] FROM [kommission] WHERE [KBST] = @KBST GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_kommission_ByFK_KAR_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_kommission_ByFK_KAR_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_kommission_ByFK_KAR_ID] @KAR_ID int AS SET NOCOUNT ON SELECT [KOMM_ID], [BEZ_ID], [SATZ_ART], [SATZ], [KOMM_TYP], [KBST], [KAR_ID], [DLTT_ID], [KAT_ID], [RKR_ID], [DLA_ID], [DL_ID], [DL_VONDAT], [DL_BISDAT], [KONT_ID], [BID], [HISTORY], [SAI_ID], [TEXTID] FROM [kommission] WHERE [KAR_ID] = @KAR_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_kommission_ByFK_DLTT_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_kommission_ByFK_DLTT_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_kommission_ByFK_DLTT_ID] @DLTT_ID int AS SET NOCOUNT ON SELECT [KOMM_ID], [BEZ_ID], [SATZ_ART], [SATZ], [KOMM_TYP], [KBST], [KAR_ID], [DLTT_ID], [KAT_ID], [RKR_ID], [DLA_ID], [DL_ID], [DL_VONDAT], [DL_BISDAT], [KONT_ID], [BID], [HISTORY], [SAI_ID], [TEXTID] FROM [kommission] WHERE [DLTT_ID] = @DLTT_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_kommission_ByFK_KAT_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_kommission_ByFK_KAT_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_kommission_ByFK_KAT_ID] @KAT_ID int AS SET NOCOUNT ON SELECT [KOMM_ID], [BEZ_ID], [SATZ_ART], [SATZ], [KOMM_TYP], [KBST], [KAR_ID], [DLTT_ID], [KAT_ID], [RKR_ID], [DLA_ID], [DL_ID], [DL_VONDAT], [DL_BISDAT], [KONT_ID], [BID], [HISTORY], [SAI_ID], [TEXTID] FROM [kommission] WHERE [KAT_ID] = @KAT_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_kommission_ByFK_RKR_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_kommission_ByFK_RKR_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_kommission_ByFK_RKR_ID] @RKR_ID int AS SET NOCOUNT ON SELECT [KOMM_ID], [BEZ_ID], [SATZ_ART], [SATZ], [KOMM_TYP], [KBST], [KAR_ID], [DLTT_ID], [KAT_ID], [RKR_ID], [DLA_ID], [DL_ID], [DL_VONDAT], [DL_BISDAT], [KONT_ID], [BID], [HISTORY], [SAI_ID], [TEXTID] FROM [kommission] WHERE [RKR_ID] = @RKR_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_kommission_ByFK_DLA_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_kommission_ByFK_DLA_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_kommission_ByFK_DLA_ID] @DLA_ID int AS SET NOCOUNT ON SELECT [KOMM_ID], [BEZ_ID], [SATZ_ART], [SATZ], [KOMM_TYP], [KBST], [KAR_ID], [DLTT_ID], [KAT_ID], [RKR_ID], [DLA_ID], [DL_ID], [DL_VONDAT], [DL_BISDAT], [KONT_ID], [BID], [HISTORY], [SAI_ID], [TEXTID] FROM [kommission] WHERE [DLA_ID] = @DLA_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_kommission_ByFK_DL_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_kommission_ByFK_DL_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_kommission_ByFK_DL_ID] @DL_ID int AS SET NOCOUNT ON SELECT [KOMM_ID], [BEZ_ID], [SATZ_ART], [SATZ], [KOMM_TYP], [KBST], [KAR_ID], [DLTT_ID], [KAT_ID], [RKR_ID], [DLA_ID], [DL_ID], [DL_VONDAT], [DL_BISDAT], [KONT_ID], [BID], [HISTORY], [SAI_ID], [TEXTID] FROM [kommission] WHERE [DL_ID] = @DL_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_kommission_ByFK_KONT_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_kommission_ByFK_KONT_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_kommission_ByFK_KONT_ID] @KONT_ID int AS SET NOCOUNT ON SELECT [KOMM_ID], [BEZ_ID], [SATZ_ART], [SATZ], [KOMM_TYP], [KBST], [KAR_ID], [DLTT_ID], [KAT_ID], [RKR_ID], [DLA_ID], [DL_ID], [DL_VONDAT], [DL_BISDAT], [KONT_ID], [BID], [HISTORY], [SAI_ID], [TEXTID] FROM [kommission] WHERE [KONT_ID] = @KONT_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_kommission_ByFK_BID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_kommission_ByFK_BID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_kommission_ByFK_BID] @BID int AS SET NOCOUNT ON SELECT [KOMM_ID], [BEZ_ID], [SATZ_ART], [SATZ], [KOMM_TYP], [KBST], [KAR_ID], [DLTT_ID], [KAT_ID], [RKR_ID], [DLA_ID], [DL_ID], [DL_VONDAT], [DL_BISDAT], [KONT_ID], [BID], [HISTORY], [SAI_ID], [TEXTID] FROM [kommission] WHERE [BID] = @BID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_kommission_ByFK_SAI_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_kommission_ByFK_SAI_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_kommission_ByFK_SAI_ID] @SAI_ID int AS SET NOCOUNT ON SELECT [KOMM_ID], [BEZ_ID], [SATZ_ART], [SATZ], [KOMM_TYP], [KBST], [KAR_ID], [DLTT_ID], [KAT_ID], [RKR_ID], [DLA_ID], [DL_ID], [DL_VONDAT], [DL_BISDAT], [KONT_ID], [BID], [HISTORY], [SAI_ID], [TEXTID] FROM [kommission] WHERE [SAI_ID] = @SAI_ID GO --[End of Stored Procedure for table: kommission] --=============================================================== --=============================================================== --[Stored Procedure generated for table: kont_detail] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_kont_detail]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_kont_detail] GO CREATE PROCEDURE [dbo].[tdb_Insert_kont_detail] @HOSTKONT_ID int, @KONT_ID int, @KAT_ID int, @DLT_ID int, @STA_ID int, @ANZ int, @BUSY int, @MINANZ int, @VON_DAT int, @BIS_DAT int AS SET NOCOUNT ON INSERT INTO kont_detail ( [HOSTKONT_ID], [KONT_ID], [KAT_ID], [DLT_ID], [STA_ID], [ANZ], [BUSY], [MINANZ], [VON_DAT], [BIS_DAT] ) VALUES ( @HOSTKONT_ID, @KONT_ID, @KAT_ID, @DLT_ID, @STA_ID, @ANZ, @BUSY, @MINANZ, @VON_DAT, @BIS_DAT ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_kont_detail]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_kont_detail] GO CREATE PROCEDURE [dbo].[tdb_Update_kont_detail] @HOSTKONT_ID int, @KONT_ID int, @KAT_ID int, @DLT_ID int, @STA_ID int, @ANZ int, @BUSY int, @MINANZ int, @VON_DAT int, @BIS_DAT int AS SET NOCOUNT ON UPDATE [kont_detail] SET [STA_ID] = @STA_ID, [ANZ] = @ANZ, [BUSY] = @BUSY, [MINANZ] = @MINANZ WHERE [HOSTKONT_ID] = @HOSTKONT_ID AND [KONT_ID] = @KONT_ID AND [KAT_ID] = @KAT_ID AND [DLT_ID] = @DLT_ID AND [VON_DAT] = @VON_DAT AND [BIS_DAT] = @BIS_DAT GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_kont_detail]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_kont_detail] GO CREATE PROCEDURE [dbo].[tdb_Read_kont_detail] @HOSTKONT_ID int, @KONT_ID int, @KAT_ID int, @DLT_ID int, @VON_DAT int, @BIS_DAT int AS SET NOCOUNT ON SELECT [HOSTKONT_ID], [KONT_ID], [KAT_ID], [DLT_ID], [STA_ID], [ANZ], [BUSY], [MINANZ], [VON_DAT], [BIS_DAT] FROM [kont_detail] WHERE [HOSTKONT_ID] = @HOSTKONT_ID AND [KONT_ID] = @KONT_ID AND [KAT_ID] = @KAT_ID AND [DLT_ID] = @DLT_ID AND [VON_DAT] = @VON_DAT AND [BIS_DAT] = @BIS_DAT GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_kont_detail]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_kont_detail] GO CREATE PROCEDURE [dbo].[tdb_Delete_kont_detail] @HOSTKONT_ID int, @KONT_ID int, @KAT_ID int, @DLT_ID int, @VON_DAT int, @BIS_DAT int AS SET NOCOUNT ON DELETE FROM [kont_detail] WHERE [HOSTKONT_ID] = @HOSTKONT_ID AND [KONT_ID] = @KONT_ID AND [KAT_ID] = @KAT_ID AND [DLT_ID] = @DLT_ID AND [VON_DAT] = @VON_DAT AND [BIS_DAT] = @BIS_DAT GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_kont_detail]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_kont_detail] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_kont_detail] AS SET NOCOUNT ON SELECT [HOSTKONT_ID], [KONT_ID], [KAT_ID], [DLT_ID], [STA_ID], [ANZ], [BUSY], [MINANZ], [VON_DAT], [BIS_DAT] FROM [kont_detail] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_kont_detail_ByFK_HOSTKONT_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_kont_detail_ByFK_HOSTKONT_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_kont_detail_ByFK_HOSTKONT_ID] @HOSTKONT_ID int AS SET NOCOUNT ON SELECT [HOSTKONT_ID], [KONT_ID], [KAT_ID], [DLT_ID], [STA_ID], [ANZ], [BUSY], [MINANZ], [VON_DAT], [BIS_DAT] FROM [kont_detail] WHERE [HOSTKONT_ID] = @HOSTKONT_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_kont_detail_ByFK_KONT_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_kont_detail_ByFK_KONT_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_kont_detail_ByFK_KONT_ID] @KONT_ID int AS SET NOCOUNT ON SELECT [HOSTKONT_ID], [KONT_ID], [KAT_ID], [DLT_ID], [STA_ID], [ANZ], [BUSY], [MINANZ], [VON_DAT], [BIS_DAT] FROM [kont_detail] WHERE [KONT_ID] = @KONT_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_kont_detail_ByFK_KAT_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_kont_detail_ByFK_KAT_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_kont_detail_ByFK_KAT_ID] @KAT_ID int AS SET NOCOUNT ON SELECT [HOSTKONT_ID], [KONT_ID], [KAT_ID], [DLT_ID], [STA_ID], [ANZ], [BUSY], [MINANZ], [VON_DAT], [BIS_DAT] FROM [kont_detail] WHERE [KAT_ID] = @KAT_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_kont_detail_ByFK_DLT_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_kont_detail_ByFK_DLT_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_kont_detail_ByFK_DLT_ID] @DLT_ID int AS SET NOCOUNT ON SELECT [HOSTKONT_ID], [KONT_ID], [KAT_ID], [DLT_ID], [STA_ID], [ANZ], [BUSY], [MINANZ], [VON_DAT], [BIS_DAT] FROM [kont_detail] WHERE [DLT_ID] = @DLT_ID GO --[End of Stored Procedure for table: kont_detail] --=============================================================== --=============================================================== --[Stored Procedure generated for table: kontingent] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_kontingent]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_kontingent] GO CREATE PROCEDURE [dbo].[tdb_Insert_kontingent] @KONT_ID int, @BEZ_ID int, @HOSTKONT_ID int, @KUNDEN_ID int, @OPT_DAT int, @REF varchar(256), @SAI_ID int, @TEXTID int AS SET NOCOUNT ON INSERT INTO kontingent ( [KONT_ID], [BEZ_ID], [HOSTKONT_ID], [KUNDEN_ID], [OPT_DAT], [REF], [SAI_ID], [TEXTID] ) VALUES ( @KONT_ID, @BEZ_ID, @HOSTKONT_ID, @KUNDEN_ID, @OPT_DAT, @REF, @SAI_ID, @TEXTID ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_kontingent]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_kontingent] GO CREATE PROCEDURE [dbo].[tdb_Update_kontingent] @KONT_ID int, @BEZ_ID int, @HOSTKONT_ID int, @KUNDEN_ID int, @OPT_DAT int, @REF varchar(256), @SAI_ID int, @TEXTID int AS SET NOCOUNT ON UPDATE [kontingent] SET [BEZ_ID] = @BEZ_ID, [HOSTKONT_ID] = @HOSTKONT_ID, [KUNDEN_ID] = @KUNDEN_ID, [OPT_DAT] = @OPT_DAT, [REF] = @REF, [SAI_ID] = @SAI_ID, [TEXTID] = @TEXTID WHERE [KONT_ID] = @KONT_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_kontingent]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_kontingent] GO CREATE PROCEDURE [dbo].[tdb_Read_kontingent] @KONT_ID int AS SET NOCOUNT ON SELECT [KONT_ID], [BEZ_ID], [HOSTKONT_ID], [KUNDEN_ID], [OPT_DAT], [REF], [SAI_ID], [TEXTID] FROM [kontingent] WHERE [KONT_ID] = @KONT_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_kontingent]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_kontingent] GO CREATE PROCEDURE [dbo].[tdb_Delete_kontingent] @KONT_ID int AS SET NOCOUNT ON DELETE FROM [kontingent] WHERE [KONT_ID] = @KONT_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_kontingent]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_kontingent] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_kontingent] AS SET NOCOUNT ON SELECT [KONT_ID], [BEZ_ID], [HOSTKONT_ID], [KUNDEN_ID], [OPT_DAT], [REF], [SAI_ID], [TEXTID] FROM [kontingent] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_kontingent_ByFK_HOSTKONT_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_kontingent_ByFK_HOSTKONT_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_kontingent_ByFK_HOSTKONT_ID] @HOSTKONT_ID int AS SET NOCOUNT ON SELECT [KONT_ID], [BEZ_ID], [HOSTKONT_ID], [KUNDEN_ID], [OPT_DAT], [REF], [SAI_ID], [TEXTID] FROM [kontingent] WHERE [HOSTKONT_ID] = @HOSTKONT_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_kontingent_ByFK_KUNDEN_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_kontingent_ByFK_KUNDEN_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_kontingent_ByFK_KUNDEN_ID] @KUNDEN_ID int AS SET NOCOUNT ON SELECT [KONT_ID], [BEZ_ID], [HOSTKONT_ID], [KUNDEN_ID], [OPT_DAT], [REF], [SAI_ID], [TEXTID] FROM [kontingent] WHERE [KUNDEN_ID] = @KUNDEN_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_kontingent_ByFK_SAI_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_kontingent_ByFK_SAI_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_kontingent_ByFK_SAI_ID] @SAI_ID int AS SET NOCOUNT ON SELECT [KONT_ID], [BEZ_ID], [HOSTKONT_ID], [KUNDEN_ID], [OPT_DAT], [REF], [SAI_ID], [TEXTID] FROM [kontingent] WHERE [SAI_ID] = @SAI_ID GO --[End of Stored Procedure for table: kontingent] --=============================================================== --=============================================================== --[Stored Procedure generated for table: kosten_art] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_kosten_art]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_kosten_art] GO CREATE PROCEDURE [dbo].[tdb_Insert_kosten_art] @KAR_ID int, @BEZ_ID int, @TEXTID int AS SET NOCOUNT ON INSERT INTO kosten_art ( [KAR_ID], [BEZ_ID], [TEXTID] ) VALUES ( @KAR_ID, @BEZ_ID, @TEXTID ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_kosten_art]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_kosten_art] GO CREATE PROCEDURE [dbo].[tdb_Update_kosten_art] @KAR_ID int, @BEZ_ID int, @TEXTID int AS SET NOCOUNT ON UPDATE [kosten_art] SET [BEZ_ID] = @BEZ_ID, [TEXTID] = @TEXTID WHERE [KAR_ID] = @KAR_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_kosten_art]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_kosten_art] GO CREATE PROCEDURE [dbo].[tdb_Read_kosten_art] @KAR_ID int AS SET NOCOUNT ON SELECT [KAR_ID], [BEZ_ID], [TEXTID] FROM [kosten_art] WHERE [KAR_ID] = @KAR_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_kosten_art]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_kosten_art] GO CREATE PROCEDURE [dbo].[tdb_Delete_kosten_art] @KAR_ID int AS SET NOCOUNT ON DELETE FROM [kosten_art] WHERE [KAR_ID] = @KAR_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_kosten_art]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_kosten_art] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_kosten_art] AS SET NOCOUNT ON SELECT [KAR_ID], [BEZ_ID], [TEXTID] FROM [kosten_art] GO --[End of Stored Procedure for table: kosten_art] --=============================================================== --=============================================================== --[Stored Procedure generated for table: kunden] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_kunden]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_kunden] GO CREATE PROCEDURE [dbo].[tdb_Insert_kunden] @PERS_ID int, @TEL varchar(256), @HANDY varchar(256), @FAX varchar(256), @TLX varchar(256), @EMAIL varchar(1024), @WEB varchar(1024), @KONTO varchar(256), @LEITER int, @ATTR1 varchar(1024), @ATTR2 varchar(1024), @K_TYP_ID int, @WHR_ID int AS SET NOCOUNT ON INSERT INTO kunden ( [PERS_ID], [TEL], [HANDY], [FAX], [TLX], [EMAIL], [WEB], [KONTO], [LEITER], [ATTR1], [ATTR2], [K_TYP_ID], [WHR_ID] ) VALUES ( @PERS_ID, @TEL, @HANDY, @FAX, @TLX, @EMAIL, @WEB, @KONTO, @LEITER, @ATTR1, @ATTR2, @K_TYP_ID, @WHR_ID ) GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_kunden]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_kunden] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_kunden] AS SET NOCOUNT ON SELECT [PERS_ID], [TEL], [HANDY], [FAX], [TLX], [EMAIL], [WEB], [KONTO], [LEITER], [ATTR1], [ATTR2], [K_TYP_ID], [WHR_ID] FROM [kunden] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_kunden_ByFK_PERS_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_kunden_ByFK_PERS_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_kunden_ByFK_PERS_ID] @PERS_ID int AS SET NOCOUNT ON SELECT [PERS_ID], [TEL], [HANDY], [FAX], [TLX], [EMAIL], [WEB], [KONTO], [LEITER], [ATTR1], [ATTR2], [K_TYP_ID], [WHR_ID] FROM [kunden] WHERE [PERS_ID] = @PERS_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_kunden_ByFK_K_TYP_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_kunden_ByFK_K_TYP_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_kunden_ByFK_K_TYP_ID] @K_TYP_ID int AS SET NOCOUNT ON SELECT [PERS_ID], [TEL], [HANDY], [FAX], [TLX], [EMAIL], [WEB], [KONTO], [LEITER], [ATTR1], [ATTR2], [K_TYP_ID], [WHR_ID] FROM [kunden] WHERE [K_TYP_ID] = @K_TYP_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_kunden_ByFK_WHR_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_kunden_ByFK_WHR_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_kunden_ByFK_WHR_ID] @WHR_ID int AS SET NOCOUNT ON SELECT [PERS_ID], [TEL], [HANDY], [FAX], [TLX], [EMAIL], [WEB], [KONTO], [LEITER], [ATTR1], [ATTR2], [K_TYP_ID], [WHR_ID] FROM [kunden] WHERE [WHR_ID] = @WHR_ID GO --[End of Stored Procedure for table: kunden] --=============================================================== --=============================================================== --[Stored Procedure generated for table: kunden_typ] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_kunden_typ]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_kunden_typ] GO CREATE PROCEDURE [dbo].[tdb_Insert_kunden_typ] @K_TYP_ID int, @KUNCODE varchar(256), @BEZ_ID int, @TEXTID int AS SET NOCOUNT ON INSERT INTO kunden_typ ( [K_TYP_ID], [KUNCODE], [BEZ_ID], [TEXTID] ) VALUES ( @K_TYP_ID, @KUNCODE, @BEZ_ID, @TEXTID ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_kunden_typ]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_kunden_typ] GO CREATE PROCEDURE [dbo].[tdb_Update_kunden_typ] @K_TYP_ID int, @KUNCODE varchar(256), @BEZ_ID int, @TEXTID int AS SET NOCOUNT ON UPDATE [kunden_typ] SET [KUNCODE] = @KUNCODE, [BEZ_ID] = @BEZ_ID, [TEXTID] = @TEXTID WHERE [K_TYP_ID] = @K_TYP_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_kunden_typ]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_kunden_typ] GO CREATE PROCEDURE [dbo].[tdb_Read_kunden_typ] @K_TYP_ID int AS SET NOCOUNT ON SELECT [K_TYP_ID], [KUNCODE], [BEZ_ID], [TEXTID] FROM [kunden_typ] WHERE [K_TYP_ID] = @K_TYP_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_kunden_typ]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_kunden_typ] GO CREATE PROCEDURE [dbo].[tdb_Delete_kunden_typ] @K_TYP_ID int AS SET NOCOUNT ON DELETE FROM [kunden_typ] WHERE [K_TYP_ID] = @K_TYP_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_kunden_typ]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_kunden_typ] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_kunden_typ] AS SET NOCOUNT ON SELECT [K_TYP_ID], [KUNCODE], [BEZ_ID], [TEXTID] FROM [kunden_typ] GO --[End of Stored Procedure for table: kunden_typ] --=============================================================== --=============================================================== --[Stored Procedure generated for table: label] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_label]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_label] GO CREATE PROCEDURE [dbo].[tdb_Insert_label] @LABEL_PRG int, @LABEL_TYP int, @STUFE1 int, @STUFE2 int, @S_ID int, @LABEL varchar(1024) AS SET NOCOUNT ON INSERT INTO label ( [LABEL_PRG], [LABEL_TYP], [STUFE1], [STUFE2], [S_ID], [LABEL] ) VALUES ( @LABEL_PRG, @LABEL_TYP, @STUFE1, @STUFE2, @S_ID, @LABEL ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_label]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_label] GO CREATE PROCEDURE [dbo].[tdb_Update_label] @LABEL_PRG int, @LABEL_TYP int, @STUFE1 int, @STUFE2 int, @S_ID int, @LABEL varchar(1024) AS SET NOCOUNT ON UPDATE [label] SET [LABEL] = @LABEL WHERE [LABEL_PRG] = @LABEL_PRG AND [LABEL_TYP] = @LABEL_TYP AND [STUFE1] = @STUFE1 AND [STUFE2] = @STUFE2 AND [S_ID] = @S_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_label]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_label] GO CREATE PROCEDURE [dbo].[tdb_Read_label] @LABEL_PRG int, @LABEL_TYP int, @STUFE1 int, @STUFE2 int, @S_ID int AS SET NOCOUNT ON SELECT [LABEL_PRG], [LABEL_TYP], [STUFE1], [STUFE2], [S_ID], [LABEL] FROM [label] WHERE [LABEL_PRG] = @LABEL_PRG AND [LABEL_TYP] = @LABEL_TYP AND [STUFE1] = @STUFE1 AND [STUFE2] = @STUFE2 AND [S_ID] = @S_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_label]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_label] GO CREATE PROCEDURE [dbo].[tdb_Delete_label] @LABEL_PRG int, @LABEL_TYP int, @STUFE1 int, @STUFE2 int, @S_ID int AS SET NOCOUNT ON DELETE FROM [label] WHERE [LABEL_PRG] = @LABEL_PRG AND [LABEL_TYP] = @LABEL_TYP AND [STUFE1] = @STUFE1 AND [STUFE2] = @STUFE2 AND [S_ID] = @S_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_label]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_label] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_label] AS SET NOCOUNT ON SELECT [LABEL_PRG], [LABEL_TYP], [STUFE1], [STUFE2], [S_ID], [LABEL] FROM [label] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_label_ByFK_S_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_label_ByFK_S_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_label_ByFK_S_ID] @S_ID int AS SET NOCOUNT ON SELECT [LABEL_PRG], [LABEL_TYP], [STUFE1], [STUFE2], [S_ID], [LABEL] FROM [label] WHERE [S_ID] = @S_ID GO --[End of Stored Procedure for table: label] --=============================================================== --=============================================================== --[Stored Procedure generated for table: land] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_land]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_land] GO CREATE PROCEDURE [dbo].[tdb_Insert_land] @LAND_ID int, @BEZ_ID int, @TEXTID int, @KRZL varchar(256), @HAUPT_ORT int, @HAUPT_WHR int, @HAUPT_SPR int, @VAT float(53), @DATEFORMAT varchar(256) AS SET NOCOUNT ON INSERT INTO land ( [LAND_ID], [BEZ_ID], [TEXTID], [KRZL], [HAUPT_ORT], [HAUPT_WHR], [HAUPT_SPR], [VAT], [DATEFORMAT] ) VALUES ( @LAND_ID, @BEZ_ID, @TEXTID, @KRZL, @HAUPT_ORT, @HAUPT_WHR, @HAUPT_SPR, @VAT, @DATEFORMAT ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_land]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_land] GO CREATE PROCEDURE [dbo].[tdb_Update_land] @LAND_ID int, @BEZ_ID int, @TEXTID int, @KRZL varchar(256), @HAUPT_ORT int, @HAUPT_WHR int, @HAUPT_SPR int, @VAT float(53), @DATEFORMAT varchar(256) AS SET NOCOUNT ON UPDATE [land] SET [BEZ_ID] = @BEZ_ID, [TEXTID] = @TEXTID, [KRZL] = @KRZL, [HAUPT_ORT] = @HAUPT_ORT, [HAUPT_WHR] = @HAUPT_WHR, [HAUPT_SPR] = @HAUPT_SPR, [VAT] = @VAT, [DATEFORMAT] = @DATEFORMAT WHERE [LAND_ID] = @LAND_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_land]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_land] GO CREATE PROCEDURE [dbo].[tdb_Read_land] @LAND_ID int AS SET NOCOUNT ON SELECT [LAND_ID], [BEZ_ID], [TEXTID], [KRZL], [HAUPT_ORT], [HAUPT_WHR], [HAUPT_SPR], [VAT], [DATEFORMAT] FROM [land] WHERE [LAND_ID] = @LAND_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_land]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_land] GO CREATE PROCEDURE [dbo].[tdb_Delete_land] @LAND_ID int AS SET NOCOUNT ON DELETE FROM [land] WHERE [LAND_ID] = @LAND_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_land]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_land] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_land] AS SET NOCOUNT ON SELECT [LAND_ID], [BEZ_ID], [TEXTID], [KRZL], [HAUPT_ORT], [HAUPT_WHR], [HAUPT_SPR], [VAT], [DATEFORMAT] FROM [land] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_land_ByFK_HAUPT_WHR]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_land_ByFK_HAUPT_WHR] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_land_ByFK_HAUPT_WHR] @HAUPT_WHR int AS SET NOCOUNT ON SELECT [LAND_ID], [BEZ_ID], [TEXTID], [KRZL], [HAUPT_ORT], [HAUPT_WHR], [HAUPT_SPR], [VAT], [DATEFORMAT] FROM [land] WHERE [HAUPT_WHR] = @HAUPT_WHR GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_land_ByFK_HAUPT_SPR]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_land_ByFK_HAUPT_SPR] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_land_ByFK_HAUPT_SPR] @HAUPT_SPR int AS SET NOCOUNT ON SELECT [LAND_ID], [BEZ_ID], [TEXTID], [KRZL], [HAUPT_ORT], [HAUPT_WHR], [HAUPT_SPR], [VAT], [DATEFORMAT] FROM [land] WHERE [HAUPT_SPR] = @HAUPT_SPR GO --[End of Stored Procedure for table: land] --=============================================================== --=============================================================== --[Stored Procedure generated for table: land_spr] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_land_spr]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_land_spr] GO CREATE PROCEDURE [dbo].[tdb_Insert_land_spr] @LAND_ID int, @S_ID int AS SET NOCOUNT ON INSERT INTO land_spr ( [LAND_ID], [S_ID] ) VALUES ( @LAND_ID, @S_ID ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_land_spr]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_land_spr] GO CREATE PROCEDURE [dbo].[tdb_Update_land_spr] @LAND_ID int, @S_ID int AS SET NOCOUNT ON UPDATE [land_spr] SET WHERE [LAND_ID] = @LAND_ID AND [S_ID] = @S_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_land_spr]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_land_spr] GO CREATE PROCEDURE [dbo].[tdb_Read_land_spr] @LAND_ID int, @S_ID int AS SET NOCOUNT ON SELECT [LAND_ID], [S_ID] FROM [land_spr] WHERE [LAND_ID] = @LAND_ID AND [S_ID] = @S_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_land_spr]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_land_spr] GO CREATE PROCEDURE [dbo].[tdb_Delete_land_spr] @LAND_ID int, @S_ID int AS SET NOCOUNT ON DELETE FROM [land_spr] WHERE [LAND_ID] = @LAND_ID AND [S_ID] = @S_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_land_spr]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_land_spr] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_land_spr] AS SET NOCOUNT ON SELECT [LAND_ID], [S_ID] FROM [land_spr] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_land_spr_ByFK_LAND_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_land_spr_ByFK_LAND_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_land_spr_ByFK_LAND_ID] @LAND_ID int AS SET NOCOUNT ON SELECT [LAND_ID], [S_ID] FROM [land_spr] WHERE [LAND_ID] = @LAND_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_land_spr_ByFK_S_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_land_spr_ByFK_S_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_land_spr_ByFK_S_ID] @S_ID int AS SET NOCOUNT ON SELECT [LAND_ID], [S_ID] FROM [land_spr] WHERE [S_ID] = @S_ID GO --[End of Stored Procedure for table: land_spr] --=============================================================== --=============================================================== --[Stored Procedure generated for table: land_whr] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_land_whr]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_land_whr] GO CREATE PROCEDURE [dbo].[tdb_Insert_land_whr] @LAND_ID int, @WHR_ID int, @KURS_TYP int, @A_KURS float(53), @V_KURS float(53), @VON_DAT int AS SET NOCOUNT ON INSERT INTO land_whr ( [LAND_ID], [WHR_ID], [KURS_TYP], [A_KURS], [V_KURS], [VON_DAT] ) VALUES ( @LAND_ID, @WHR_ID, @KURS_TYP, @A_KURS, @V_KURS, @VON_DAT ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_land_whr]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_land_whr] GO CREATE PROCEDURE [dbo].[tdb_Update_land_whr] @LAND_ID int, @WHR_ID int, @KURS_TYP int, @A_KURS float(53), @V_KURS float(53), @VON_DAT int AS SET NOCOUNT ON UPDATE [land_whr] SET [A_KURS] = @A_KURS, [V_KURS] = @V_KURS, [VON_DAT] = @VON_DAT WHERE [LAND_ID] = @LAND_ID AND [WHR_ID] = @WHR_ID AND [KURS_TYP] = @KURS_TYP GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_land_whr]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_land_whr] GO CREATE PROCEDURE [dbo].[tdb_Read_land_whr] @LAND_ID int, @WHR_ID int, @KURS_TYP int AS SET NOCOUNT ON SELECT [LAND_ID], [WHR_ID], [KURS_TYP], [A_KURS], [V_KURS], [VON_DAT] FROM [land_whr] WHERE [LAND_ID] = @LAND_ID AND [WHR_ID] = @WHR_ID AND [KURS_TYP] = @KURS_TYP GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_land_whr]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_land_whr] GO CREATE PROCEDURE [dbo].[tdb_Delete_land_whr] @LAND_ID int, @WHR_ID int, @KURS_TYP int AS SET NOCOUNT ON DELETE FROM [land_whr] WHERE [LAND_ID] = @LAND_ID AND [WHR_ID] = @WHR_ID AND [KURS_TYP] = @KURS_TYP GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_land_whr]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_land_whr] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_land_whr] AS SET NOCOUNT ON SELECT [LAND_ID], [WHR_ID], [KURS_TYP], [A_KURS], [V_KURS], [VON_DAT] FROM [land_whr] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_land_whr_ByFK_LAND_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_land_whr_ByFK_LAND_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_land_whr_ByFK_LAND_ID] @LAND_ID int AS SET NOCOUNT ON SELECT [LAND_ID], [WHR_ID], [KURS_TYP], [A_KURS], [V_KURS], [VON_DAT] FROM [land_whr] WHERE [LAND_ID] = @LAND_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_land_whr_ByFK_WHR_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_land_whr_ByFK_WHR_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_land_whr_ByFK_WHR_ID] @WHR_ID int AS SET NOCOUNT ON SELECT [LAND_ID], [WHR_ID], [KURS_TYP], [A_KURS], [V_KURS], [VON_DAT] FROM [land_whr] WHERE [WHR_ID] = @WHR_ID GO --[End of Stored Procedure for table: land_whr] --=============================================================== --=============================================================== --[Stored Procedure generated for table: maxima] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_maxima]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_maxima] GO CREATE PROCEDURE [dbo].[tdb_Insert_maxima] @TABELLE int, @TYP int, @MAX_ID int, @MIN_ID int, @INCR int AS SET NOCOUNT ON INSERT INTO maxima ( [TABELLE], [TYP], [MAX_ID], [MIN_ID], [INCR] ) VALUES ( @TABELLE, @TYP, @MAX_ID, @MIN_ID, @INCR ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_maxima]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_maxima] GO CREATE PROCEDURE [dbo].[tdb_Update_maxima] @TABELLE int, @TYP int, @MAX_ID int, @MIN_ID int, @INCR int AS SET NOCOUNT ON UPDATE [maxima] SET [MAX_ID] = @MAX_ID, [MIN_ID] = @MIN_ID, [INCR] = @INCR WHERE [TABELLE] = @TABELLE AND [TYP] = @TYP GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_maxima]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_maxima] GO CREATE PROCEDURE [dbo].[tdb_Read_maxima] @TABELLE int, @TYP int AS SET NOCOUNT ON SELECT [TABELLE], [TYP], [MAX_ID], [MIN_ID], [INCR] FROM [maxima] WHERE [TABELLE] = @TABELLE AND [TYP] = @TYP GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_maxima]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_maxima] GO CREATE PROCEDURE [dbo].[tdb_Delete_maxima] @TABELLE int, @TYP int AS SET NOCOUNT ON DELETE FROM [maxima] WHERE [TABELLE] = @TABELLE AND [TYP] = @TYP GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_maxima]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_maxima] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_maxima] AS SET NOCOUNT ON SELECT [TABELLE], [TYP], [MAX_ID], [MIN_ID], [INCR] FROM [maxima] GO --[End of Stored Procedure for table: maxima] --=============================================================== --=============================================================== --[Stored Procedure generated for table: mp_arrkom] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_mp_arrkom]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_mp_arrkom] GO CREATE PROCEDURE [dbo].[tdb_Insert_mp_arrkom] @ARR_ID int, @KOMM_ID int, @KOMM_BEZID int AS SET NOCOUNT ON INSERT INTO mp_arrkom ( [ARR_ID], [KOMM_ID], [KOMM_BEZID] ) VALUES ( @ARR_ID, @KOMM_ID, @KOMM_BEZID ) GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_arrkom]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_arrkom] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_arrkom] AS SET NOCOUNT ON SELECT [ARR_ID], [KOMM_ID], [KOMM_BEZID] FROM [mp_arrkom] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_arrkom_ByFK_ARR_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_arrkom_ByFK_ARR_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_arrkom_ByFK_ARR_ID] @ARR_ID int AS SET NOCOUNT ON SELECT [ARR_ID], [KOMM_ID], [KOMM_BEZID] FROM [mp_arrkom] WHERE [ARR_ID] = @ARR_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_arrkom_ByFK_KOMM_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_arrkom_ByFK_KOMM_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_arrkom_ByFK_KOMM_ID] @KOMM_ID int AS SET NOCOUNT ON SELECT [ARR_ID], [KOMM_ID], [KOMM_BEZID] FROM [mp_arrkom] WHERE [KOMM_ID] = @KOMM_ID GO --[End of Stored Procedure for table: mp_arrkom] --=============================================================== --=============================================================== --[Stored Procedure generated for table: mp_bch_dlg] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_mp_bch_dlg]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_mp_bch_dlg] GO CREATE PROCEDURE [dbo].[tdb_Insert_mp_bch_dlg] @BID int, @DLG_ID int, @TEIL int AS SET NOCOUNT ON INSERT INTO mp_bch_dlg ( [BID], [DLG_ID], [TEIL] ) VALUES ( @BID, @DLG_ID, @TEIL ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_mp_bch_dlg]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_mp_bch_dlg] GO CREATE PROCEDURE [dbo].[tdb_Update_mp_bch_dlg] @BID int, @DLG_ID int, @TEIL int AS SET NOCOUNT ON UPDATE [mp_bch_dlg] SET [DLG_ID] = @DLG_ID WHERE [BID] = @BID AND [TEIL] = @TEIL GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_mp_bch_dlg]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_mp_bch_dlg] GO CREATE PROCEDURE [dbo].[tdb_Read_mp_bch_dlg] @BID int, @TEIL int AS SET NOCOUNT ON SELECT [BID], [DLG_ID], [TEIL] FROM [mp_bch_dlg] WHERE [BID] = @BID AND [TEIL] = @TEIL GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_mp_bch_dlg]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_mp_bch_dlg] GO CREATE PROCEDURE [dbo].[tdb_Delete_mp_bch_dlg] @BID int, @TEIL int AS SET NOCOUNT ON DELETE FROM [mp_bch_dlg] WHERE [BID] = @BID AND [TEIL] = @TEIL GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_bch_dlg]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_bch_dlg] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_bch_dlg] AS SET NOCOUNT ON SELECT [BID], [DLG_ID], [TEIL] FROM [mp_bch_dlg] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_bch_dlg_ByFK_BID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_bch_dlg_ByFK_BID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_bch_dlg_ByFK_BID] @BID int AS SET NOCOUNT ON SELECT [BID], [DLG_ID], [TEIL] FROM [mp_bch_dlg] WHERE [BID] = @BID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_bch_dlg_ByFK_DLG_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_bch_dlg_ByFK_DLG_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_bch_dlg_ByFK_DLG_ID] @DLG_ID int AS SET NOCOUNT ON SELECT [BID], [DLG_ID], [TEIL] FROM [mp_bch_dlg] WHERE [DLG_ID] = @DLG_ID GO --[End of Stored Procedure for table: mp_bch_dlg] --=============================================================== --=============================================================== --[Stored Procedure generated for table: mp_debitor] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_mp_debitor]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_mp_debitor] GO CREATE PROCEDURE [dbo].[tdb_Insert_mp_debitor] @DEB_ID int, @BID int, @STA_ID int, @KID int, @KONTO varchar(256), @NACHSALDO float(53), @K_ID int, @FAKT_ID int, @FAKT_ZEIT datetime, @FAKT_NR varchar(256), @FAKT_TEXT varchar(1024), @DLN_DETAIL varchar(1024), @DLG_DETAIL varchar(1024), @WHR_ID int, @WHR_LAND_ID int, @WHR_KURS float(53), @WHR_TEXT varchar(1024), @WHR_EXCL float(53), @WHR_INKL float(53), @VAT_ID int, @VAT_LAND_ID int, @VAT float(53), @VAT_TEXT varchar(1024), @RST_EXCL float(53), @RST_INKL float(53), @RST_GEWINN float(53), @OPT_TEXT varchar(1024) AS SET NOCOUNT ON INSERT INTO mp_debitor ( [DEB_ID], [BID], [STA_ID], [KID], [KONTO], [NACHSALDO], [K_ID], [FAKT_ID], [FAKT_ZEIT], [FAKT_NR], [FAKT_TEXT], [DLN_DETAIL], [DLG_DETAIL], [WHR_ID], [WHR_LAND_ID], [WHR_KURS], [WHR_TEXT], [WHR_EXCL], [WHR_INKL], [VAT_ID], [VAT_LAND_ID], [VAT], [VAT_TEXT], [RST_EXCL], [RST_INKL], [RST_GEWINN], [OPT_TEXT] ) VALUES ( @DEB_ID, @BID, @STA_ID, @KID, @KONTO, @NACHSALDO, @K_ID, @FAKT_ID, @FAKT_ZEIT, @FAKT_NR, @FAKT_TEXT, @DLN_DETAIL, @DLG_DETAIL, @WHR_ID, @WHR_LAND_ID, @WHR_KURS, @WHR_TEXT, @WHR_EXCL, @WHR_INKL, @VAT_ID, @VAT_LAND_ID, @VAT, @VAT_TEXT, @RST_EXCL, @RST_INKL, @RST_GEWINN, @OPT_TEXT ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_mp_debitor]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_mp_debitor] GO CREATE PROCEDURE [dbo].[tdb_Update_mp_debitor] @DEB_ID int, @BID int, @STA_ID int, @KID int, @KONTO varchar(256), @NACHSALDO float(53), @K_ID int, @FAKT_ID int, @FAKT_ZEIT datetime, @FAKT_NR varchar(256), @FAKT_TEXT varchar(1024), @DLN_DETAIL varchar(1024), @DLG_DETAIL varchar(1024), @WHR_ID int, @WHR_LAND_ID int, @WHR_KURS float(53), @WHR_TEXT varchar(1024), @WHR_EXCL float(53), @WHR_INKL float(53), @VAT_ID int, @VAT_LAND_ID int, @VAT float(53), @VAT_TEXT varchar(1024), @RST_EXCL float(53), @RST_INKL float(53), @RST_GEWINN float(53), @OPT_TEXT varchar(1024) AS SET NOCOUNT ON UPDATE [mp_debitor] SET [BID] = @BID, [STA_ID] = @STA_ID, [KID] = @KID, [KONTO] = @KONTO, [NACHSALDO] = @NACHSALDO, [K_ID] = @K_ID, [FAKT_ID] = @FAKT_ID, [FAKT_ZEIT] = @FAKT_ZEIT, [FAKT_NR] = @FAKT_NR, [FAKT_TEXT] = @FAKT_TEXT, [DLN_DETAIL] = @DLN_DETAIL, [DLG_DETAIL] = @DLG_DETAIL, [WHR_ID] = @WHR_ID, [WHR_LAND_ID] = @WHR_LAND_ID, [WHR_KURS] = @WHR_KURS, [WHR_TEXT] = @WHR_TEXT, [WHR_EXCL] = @WHR_EXCL, [WHR_INKL] = @WHR_INKL, [VAT_LAND_ID] = @VAT_LAND_ID, [VAT] = @VAT, [VAT_TEXT] = @VAT_TEXT, [RST_EXCL] = @RST_EXCL, [RST_INKL] = @RST_INKL, [RST_GEWINN] = @RST_GEWINN, [OPT_TEXT] = @OPT_TEXT WHERE [DEB_ID] = @DEB_ID AND [VAT_ID] = @VAT_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_mp_debitor]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_mp_debitor] GO CREATE PROCEDURE [dbo].[tdb_Read_mp_debitor] @DEB_ID int, @VAT_ID int AS SET NOCOUNT ON SELECT [DEB_ID], [BID], [STA_ID], [KID], [KONTO], [NACHSALDO], [K_ID], [FAKT_ID], [FAKT_ZEIT], [FAKT_NR], [FAKT_TEXT], [DLN_DETAIL], [DLG_DETAIL], [WHR_ID], [WHR_LAND_ID], [WHR_KURS], [WHR_TEXT], [WHR_EXCL], [WHR_INKL], [VAT_ID], [VAT_LAND_ID], [VAT], [VAT_TEXT], [RST_EXCL], [RST_INKL], [RST_GEWINN], [OPT_TEXT] FROM [mp_debitor] WHERE [DEB_ID] = @DEB_ID AND [VAT_ID] = @VAT_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_mp_debitor]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_mp_debitor] GO CREATE PROCEDURE [dbo].[tdb_Delete_mp_debitor] @DEB_ID int, @VAT_ID int AS SET NOCOUNT ON DELETE FROM [mp_debitor] WHERE [DEB_ID] = @DEB_ID AND [VAT_ID] = @VAT_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_debitor]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_debitor] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_debitor] AS SET NOCOUNT ON SELECT [DEB_ID], [BID], [STA_ID], [KID], [KONTO], [NACHSALDO], [K_ID], [FAKT_ID], [FAKT_ZEIT], [FAKT_NR], [FAKT_TEXT], [DLN_DETAIL], [DLG_DETAIL], [WHR_ID], [WHR_LAND_ID], [WHR_KURS], [WHR_TEXT], [WHR_EXCL], [WHR_INKL], [VAT_ID], [VAT_LAND_ID], [VAT], [VAT_TEXT], [RST_EXCL], [RST_INKL], [RST_GEWINN], [OPT_TEXT] FROM [mp_debitor] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_debitor_ByFK_BID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_debitor_ByFK_BID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_debitor_ByFK_BID] @BID int AS SET NOCOUNT ON SELECT [DEB_ID], [BID], [STA_ID], [KID], [KONTO], [NACHSALDO], [K_ID], [FAKT_ID], [FAKT_ZEIT], [FAKT_NR], [FAKT_TEXT], [DLN_DETAIL], [DLG_DETAIL], [WHR_ID], [WHR_LAND_ID], [WHR_KURS], [WHR_TEXT], [WHR_EXCL], [WHR_INKL], [VAT_ID], [VAT_LAND_ID], [VAT], [VAT_TEXT], [RST_EXCL], [RST_INKL], [RST_GEWINN], [OPT_TEXT] FROM [mp_debitor] WHERE [BID] = @BID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_debitor_ByFK_KID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_debitor_ByFK_KID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_debitor_ByFK_KID] @KID int AS SET NOCOUNT ON SELECT [DEB_ID], [BID], [STA_ID], [KID], [KONTO], [NACHSALDO], [K_ID], [FAKT_ID], [FAKT_ZEIT], [FAKT_NR], [FAKT_TEXT], [DLN_DETAIL], [DLG_DETAIL], [WHR_ID], [WHR_LAND_ID], [WHR_KURS], [WHR_TEXT], [WHR_EXCL], [WHR_INKL], [VAT_ID], [VAT_LAND_ID], [VAT], [VAT_TEXT], [RST_EXCL], [RST_INKL], [RST_GEWINN], [OPT_TEXT] FROM [mp_debitor] WHERE [KID] = @KID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_debitor_ByFK_K_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_debitor_ByFK_K_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_debitor_ByFK_K_ID] @K_ID int AS SET NOCOUNT ON SELECT [DEB_ID], [BID], [STA_ID], [KID], [KONTO], [NACHSALDO], [K_ID], [FAKT_ID], [FAKT_ZEIT], [FAKT_NR], [FAKT_TEXT], [DLN_DETAIL], [DLG_DETAIL], [WHR_ID], [WHR_LAND_ID], [WHR_KURS], [WHR_TEXT], [WHR_EXCL], [WHR_INKL], [VAT_ID], [VAT_LAND_ID], [VAT], [VAT_TEXT], [RST_EXCL], [RST_INKL], [RST_GEWINN], [OPT_TEXT] FROM [mp_debitor] WHERE [K_ID] = @K_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_debitor_ByFK_FAKT_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_debitor_ByFK_FAKT_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_debitor_ByFK_FAKT_ID] @FAKT_ID int AS SET NOCOUNT ON SELECT [DEB_ID], [BID], [STA_ID], [KID], [KONTO], [NACHSALDO], [K_ID], [FAKT_ID], [FAKT_ZEIT], [FAKT_NR], [FAKT_TEXT], [DLN_DETAIL], [DLG_DETAIL], [WHR_ID], [WHR_LAND_ID], [WHR_KURS], [WHR_TEXT], [WHR_EXCL], [WHR_INKL], [VAT_ID], [VAT_LAND_ID], [VAT], [VAT_TEXT], [RST_EXCL], [RST_INKL], [RST_GEWINN], [OPT_TEXT] FROM [mp_debitor] WHERE [FAKT_ID] = @FAKT_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_debitor_ByFK_WHR_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_debitor_ByFK_WHR_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_debitor_ByFK_WHR_ID] @WHR_ID int AS SET NOCOUNT ON SELECT [DEB_ID], [BID], [STA_ID], [KID], [KONTO], [NACHSALDO], [K_ID], [FAKT_ID], [FAKT_ZEIT], [FAKT_NR], [FAKT_TEXT], [DLN_DETAIL], [DLG_DETAIL], [WHR_ID], [WHR_LAND_ID], [WHR_KURS], [WHR_TEXT], [WHR_EXCL], [WHR_INKL], [VAT_ID], [VAT_LAND_ID], [VAT], [VAT_TEXT], [RST_EXCL], [RST_INKL], [RST_GEWINN], [OPT_TEXT] FROM [mp_debitor] WHERE [WHR_ID] = @WHR_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_debitor_ByFK_WHR_LAND_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_debitor_ByFK_WHR_LAND_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_debitor_ByFK_WHR_LAND_ID] @WHR_LAND_ID int AS SET NOCOUNT ON SELECT [DEB_ID], [BID], [STA_ID], [KID], [KONTO], [NACHSALDO], [K_ID], [FAKT_ID], [FAKT_ZEIT], [FAKT_NR], [FAKT_TEXT], [DLN_DETAIL], [DLG_DETAIL], [WHR_ID], [WHR_LAND_ID], [WHR_KURS], [WHR_TEXT], [WHR_EXCL], [WHR_INKL], [VAT_ID], [VAT_LAND_ID], [VAT], [VAT_TEXT], [RST_EXCL], [RST_INKL], [RST_GEWINN], [OPT_TEXT] FROM [mp_debitor] WHERE [WHR_LAND_ID] = @WHR_LAND_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_debitor_ByFK_VAT_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_debitor_ByFK_VAT_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_debitor_ByFK_VAT_ID] @VAT_ID int AS SET NOCOUNT ON SELECT [DEB_ID], [BID], [STA_ID], [KID], [KONTO], [NACHSALDO], [K_ID], [FAKT_ID], [FAKT_ZEIT], [FAKT_NR], [FAKT_TEXT], [DLN_DETAIL], [DLG_DETAIL], [WHR_ID], [WHR_LAND_ID], [WHR_KURS], [WHR_TEXT], [WHR_EXCL], [WHR_INKL], [VAT_ID], [VAT_LAND_ID], [VAT], [VAT_TEXT], [RST_EXCL], [RST_INKL], [RST_GEWINN], [OPT_TEXT] FROM [mp_debitor] WHERE [VAT_ID] = @VAT_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_debitor_ByFK_VAT_LAND_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_debitor_ByFK_VAT_LAND_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_debitor_ByFK_VAT_LAND_ID] @VAT_LAND_ID int AS SET NOCOUNT ON SELECT [DEB_ID], [BID], [STA_ID], [KID], [KONTO], [NACHSALDO], [K_ID], [FAKT_ID], [FAKT_ZEIT], [FAKT_NR], [FAKT_TEXT], [DLN_DETAIL], [DLG_DETAIL], [WHR_ID], [WHR_LAND_ID], [WHR_KURS], [WHR_TEXT], [WHR_EXCL], [WHR_INKL], [VAT_ID], [VAT_LAND_ID], [VAT], [VAT_TEXT], [RST_EXCL], [RST_INKL], [RST_GEWINN], [OPT_TEXT] FROM [mp_debitor] WHERE [VAT_LAND_ID] = @VAT_LAND_ID GO --[End of Stored Procedure for table: mp_debitor] --=============================================================== --=============================================================== --[Stored Procedure generated for table: mp_file] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_mp_file]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_mp_file] GO CREATE PROCEDURE [dbo].[tdb_Insert_mp_file] @FILE_ID int, @CODE varchar(256), @FILE_TYP int, @LABEL_ID int, @FILENAME varchar(1024) AS SET NOCOUNT ON INSERT INTO mp_file ( [FILE_ID], [CODE], [FILE_TYP], [LABEL_ID], [FILENAME] ) VALUES ( @FILE_ID, @CODE, @FILE_TYP, @LABEL_ID, @FILENAME ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_mp_file]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_mp_file] GO CREATE PROCEDURE [dbo].[tdb_Update_mp_file] @FILE_ID int, @CODE varchar(256), @FILE_TYP int, @LABEL_ID int, @FILENAME varchar(1024) AS SET NOCOUNT ON UPDATE [mp_file] SET [CODE] = @CODE, [FILE_TYP] = @FILE_TYP, [LABEL_ID] = @LABEL_ID, [FILENAME] = @FILENAME WHERE [FILE_ID] = @FILE_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_mp_file]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_mp_file] GO CREATE PROCEDURE [dbo].[tdb_Read_mp_file] @FILE_ID int AS SET NOCOUNT ON SELECT [FILE_ID], [CODE], [FILE_TYP], [LABEL_ID], [FILENAME] FROM [mp_file] WHERE [FILE_ID] = @FILE_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_mp_file]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_mp_file] GO CREATE PROCEDURE [dbo].[tdb_Delete_mp_file] @FILE_ID int AS SET NOCOUNT ON DELETE FROM [mp_file] WHERE [FILE_ID] = @FILE_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_file]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_file] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_file] AS SET NOCOUNT ON SELECT [FILE_ID], [CODE], [FILE_TYP], [LABEL_ID], [FILENAME] FROM [mp_file] GO --[End of Stored Procedure for table: mp_file] --=============================================================== --=============================================================== --[Stored Procedure generated for table: mp_gemein_res] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_mp_gemein_res]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_mp_gemein_res] GO CREATE PROCEDURE [dbo].[tdb_Insert_mp_gemein_res] @PERS_ID int, @DL_ID int, @TEIL int, @BID int, @GPERS_ID int AS SET NOCOUNT ON INSERT INTO mp_gemein_res ( [PERS_ID], [DL_ID], [TEIL], [BID], [GPERS_ID] ) VALUES ( @PERS_ID, @DL_ID, @TEIL, @BID, @GPERS_ID ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_mp_gemein_res]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_mp_gemein_res] GO CREATE PROCEDURE [dbo].[tdb_Update_mp_gemein_res] @PERS_ID int, @DL_ID int, @TEIL int, @BID int, @GPERS_ID int AS SET NOCOUNT ON UPDATE [mp_gemein_res] SET WHERE [PERS_ID] = @PERS_ID AND [DL_ID] = @DL_ID AND [TEIL] = @TEIL AND [BID] = @BID AND [GPERS_ID] = @GPERS_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_mp_gemein_res]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_mp_gemein_res] GO CREATE PROCEDURE [dbo].[tdb_Read_mp_gemein_res] @PERS_ID int, @DL_ID int, @TEIL int, @BID int, @GPERS_ID int AS SET NOCOUNT ON SELECT [PERS_ID], [DL_ID], [TEIL], [BID], [GPERS_ID] FROM [mp_gemein_res] WHERE [PERS_ID] = @PERS_ID AND [DL_ID] = @DL_ID AND [TEIL] = @TEIL AND [BID] = @BID AND [GPERS_ID] = @GPERS_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_mp_gemein_res]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_mp_gemein_res] GO CREATE PROCEDURE [dbo].[tdb_Delete_mp_gemein_res] @PERS_ID int, @DL_ID int, @TEIL int, @BID int, @GPERS_ID int AS SET NOCOUNT ON DELETE FROM [mp_gemein_res] WHERE [PERS_ID] = @PERS_ID AND [DL_ID] = @DL_ID AND [TEIL] = @TEIL AND [BID] = @BID AND [GPERS_ID] = @GPERS_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_gemein_res]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_gemein_res] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_gemein_res] AS SET NOCOUNT ON SELECT [PERS_ID], [DL_ID], [TEIL], [BID], [GPERS_ID] FROM [mp_gemein_res] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_gemein_res_ByFK_PERS_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_gemein_res_ByFK_PERS_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_gemein_res_ByFK_PERS_ID] @PERS_ID int AS SET NOCOUNT ON SELECT [PERS_ID], [DL_ID], [TEIL], [BID], [GPERS_ID] FROM [mp_gemein_res] WHERE [PERS_ID] = @PERS_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_gemein_res_ByFK_DL_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_gemein_res_ByFK_DL_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_gemein_res_ByFK_DL_ID] @DL_ID int AS SET NOCOUNT ON SELECT [PERS_ID], [DL_ID], [TEIL], [BID], [GPERS_ID] FROM [mp_gemein_res] WHERE [DL_ID] = @DL_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_gemein_res_ByFK_BID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_gemein_res_ByFK_BID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_gemein_res_ByFK_BID] @BID int AS SET NOCOUNT ON SELECT [PERS_ID], [DL_ID], [TEIL], [BID], [GPERS_ID] FROM [mp_gemein_res] WHERE [BID] = @BID GO --[End of Stored Procedure for table: mp_gemein_res] --=============================================================== --=============================================================== --[Stored Procedure generated for table: mp_kapa] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_mp_kapa]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_mp_kapa] GO CREATE PROCEDURE [dbo].[tdb_Insert_mp_kapa] @KAT_ID int, @KATBEZ_ID int, @DLT_ID int, @DLTBEZ_ID int, @DL_ID int, @DLBEZ_ID int, @ANZ int, @BUSY int, @VON_DAT int, @BIS_DAT int AS SET NOCOUNT ON INSERT INTO mp_kapa ( [KAT_ID], [KATBEZ_ID], [DLT_ID], [DLTBEZ_ID], [DL_ID], [DLBEZ_ID], [ANZ], [BUSY], [VON_DAT], [BIS_DAT] ) VALUES ( @KAT_ID, @KATBEZ_ID, @DLT_ID, @DLTBEZ_ID, @DL_ID, @DLBEZ_ID, @ANZ, @BUSY, @VON_DAT, @BIS_DAT ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_mp_kapa]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_mp_kapa] GO CREATE PROCEDURE [dbo].[tdb_Update_mp_kapa] @KAT_ID int, @KATBEZ_ID int, @DLT_ID int, @DLTBEZ_ID int, @DL_ID int, @DLBEZ_ID int, @ANZ int, @BUSY int, @VON_DAT int, @BIS_DAT int AS SET NOCOUNT ON UPDATE [mp_kapa] SET [KATBEZ_ID] = @KATBEZ_ID, [DLTBEZ_ID] = @DLTBEZ_ID, [DLBEZ_ID] = @DLBEZ_ID, [ANZ] = @ANZ, [BUSY] = @BUSY WHERE [KAT_ID] = @KAT_ID AND [DLT_ID] = @DLT_ID AND [DL_ID] = @DL_ID AND [VON_DAT] = @VON_DAT AND [BIS_DAT] = @BIS_DAT GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_mp_kapa]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_mp_kapa] GO CREATE PROCEDURE [dbo].[tdb_Read_mp_kapa] @KAT_ID int, @DLT_ID int, @DL_ID int, @VON_DAT int, @BIS_DAT int AS SET NOCOUNT ON SELECT [KAT_ID], [KATBEZ_ID], [DLT_ID], [DLTBEZ_ID], [DL_ID], [DLBEZ_ID], [ANZ], [BUSY], [VON_DAT], [BIS_DAT] FROM [mp_kapa] WHERE [KAT_ID] = @KAT_ID AND [DLT_ID] = @DLT_ID AND [DL_ID] = @DL_ID AND [VON_DAT] = @VON_DAT AND [BIS_DAT] = @BIS_DAT GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_mp_kapa]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_mp_kapa] GO CREATE PROCEDURE [dbo].[tdb_Delete_mp_kapa] @KAT_ID int, @DLT_ID int, @DL_ID int, @VON_DAT int, @BIS_DAT int AS SET NOCOUNT ON DELETE FROM [mp_kapa] WHERE [KAT_ID] = @KAT_ID AND [DLT_ID] = @DLT_ID AND [DL_ID] = @DL_ID AND [VON_DAT] = @VON_DAT AND [BIS_DAT] = @BIS_DAT GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_kapa]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_kapa] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_kapa] AS SET NOCOUNT ON SELECT [KAT_ID], [KATBEZ_ID], [DLT_ID], [DLTBEZ_ID], [DL_ID], [DLBEZ_ID], [ANZ], [BUSY], [VON_DAT], [BIS_DAT] FROM [mp_kapa] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_kapa_ByFK_KAT_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_kapa_ByFK_KAT_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_kapa_ByFK_KAT_ID] @KAT_ID int AS SET NOCOUNT ON SELECT [KAT_ID], [KATBEZ_ID], [DLT_ID], [DLTBEZ_ID], [DL_ID], [DLBEZ_ID], [ANZ], [BUSY], [VON_DAT], [BIS_DAT] FROM [mp_kapa] WHERE [KAT_ID] = @KAT_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_kapa_ByFK_DLT_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_kapa_ByFK_DLT_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_kapa_ByFK_DLT_ID] @DLT_ID int AS SET NOCOUNT ON SELECT [KAT_ID], [KATBEZ_ID], [DLT_ID], [DLTBEZ_ID], [DL_ID], [DLBEZ_ID], [ANZ], [BUSY], [VON_DAT], [BIS_DAT] FROM [mp_kapa] WHERE [DLT_ID] = @DLT_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_kapa_ByFK_DL_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_kapa_ByFK_DL_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_kapa_ByFK_DL_ID] @DL_ID int AS SET NOCOUNT ON SELECT [KAT_ID], [KATBEZ_ID], [DLT_ID], [DLTBEZ_ID], [DL_ID], [DLBEZ_ID], [ANZ], [BUSY], [VON_DAT], [BIS_DAT] FROM [mp_kapa] WHERE [DL_ID] = @DL_ID GO --[End of Stored Procedure for table: mp_kapa] --=============================================================== --=============================================================== --[Stored Procedure generated for table: mp_kol_pers] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_mp_kol_pers]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_mp_kol_pers] GO CREATE PROCEDURE [dbo].[tdb_Insert_mp_kol_pers] @PERS_ID int, @ADR_TYP int, @MPID int, @K_ID int AS SET NOCOUNT ON INSERT INTO mp_kol_pers ( [PERS_ID], [ADR_TYP], [MPID], [K_ID] ) VALUES ( @PERS_ID, @ADR_TYP, @MPID, @K_ID ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_mp_kol_pers]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_mp_kol_pers] GO CREATE PROCEDURE [dbo].[tdb_Update_mp_kol_pers] @PERS_ID int, @ADR_TYP int, @MPID int, @K_ID int AS SET NOCOUNT ON UPDATE [mp_kol_pers] SET WHERE [PERS_ID] = @PERS_ID AND [ADR_TYP] = @ADR_TYP AND [MPID] = @MPID AND [K_ID] = @K_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_mp_kol_pers]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_mp_kol_pers] GO CREATE PROCEDURE [dbo].[tdb_Read_mp_kol_pers] @PERS_ID int, @ADR_TYP int, @MPID int, @K_ID int AS SET NOCOUNT ON SELECT [PERS_ID], [ADR_TYP], [MPID], [K_ID] FROM [mp_kol_pers] WHERE [PERS_ID] = @PERS_ID AND [ADR_TYP] = @ADR_TYP AND [MPID] = @MPID AND [K_ID] = @K_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_mp_kol_pers]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_mp_kol_pers] GO CREATE PROCEDURE [dbo].[tdb_Delete_mp_kol_pers] @PERS_ID int, @ADR_TYP int, @MPID int, @K_ID int AS SET NOCOUNT ON DELETE FROM [mp_kol_pers] WHERE [PERS_ID] = @PERS_ID AND [ADR_TYP] = @ADR_TYP AND [MPID] = @MPID AND [K_ID] = @K_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_kol_pers]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_kol_pers] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_kol_pers] AS SET NOCOUNT ON SELECT [PERS_ID], [ADR_TYP], [MPID], [K_ID] FROM [mp_kol_pers] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_kol_pers_ByFK_PERS_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_kol_pers_ByFK_PERS_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_kol_pers_ByFK_PERS_ID] @PERS_ID int AS SET NOCOUNT ON SELECT [PERS_ID], [ADR_TYP], [MPID], [K_ID] FROM [mp_kol_pers] WHERE [PERS_ID] = @PERS_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_kol_pers_ByFK_MPID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_kol_pers_ByFK_MPID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_kol_pers_ByFK_MPID] @MPID int AS SET NOCOUNT ON SELECT [PERS_ID], [ADR_TYP], [MPID], [K_ID] FROM [mp_kol_pers] WHERE [MPID] = @MPID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_kol_pers_ByFK_K_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_kol_pers_ByFK_K_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_kol_pers_ByFK_K_ID] @K_ID int AS SET NOCOUNT ON SELECT [PERS_ID], [ADR_TYP], [MPID], [K_ID] FROM [mp_kol_pers] WHERE [K_ID] = @K_ID GO --[End of Stored Procedure for table: mp_kol_pers] --=============================================================== --=============================================================== --[Stored Procedure generated for table: mp_kreditor] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_mp_kreditor]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_mp_kreditor] GO CREATE PROCEDURE [dbo].[tdb_Insert_mp_kreditor] @KRE_ID int, @BID int, @STA_ID int, @KID int, @KONTO varchar(256), @NACHSALDO float(53), @K_ID int, @FAKT_ID int, @FAKT_ZEIT datetime, @FAKT_NR varchar(256), @FAKT_TEXT varchar(1024), @DLN_DETAIL varchar(1024), @DLG_DETAIL varchar(1024), @WHR_ID int, @WHR_LAND_ID int, @WHR_KURS float(53), @WHR_TEXT varchar(1024), @WHR_EXCL float(53), @WHR_INKL float(53), @VAT_ID int, @VAT_LAND_ID int, @VAT float(53), @VAT_TEXT varchar(1024), @RST_EXCL float(53), @RST_INKL float(53), @RST_GEWINN float(53), @OPT_TEXT varchar(1024) AS SET NOCOUNT ON INSERT INTO mp_kreditor ( [KRE_ID], [BID], [STA_ID], [KID], [KONTO], [NACHSALDO], [K_ID], [FAKT_ID], [FAKT_ZEIT], [FAKT_NR], [FAKT_TEXT], [DLN_DETAIL], [DLG_DETAIL], [WHR_ID], [WHR_LAND_ID], [WHR_KURS], [WHR_TEXT], [WHR_EXCL], [WHR_INKL], [VAT_ID], [VAT_LAND_ID], [VAT], [VAT_TEXT], [RST_EXCL], [RST_INKL], [RST_GEWINN], [OPT_TEXT] ) VALUES ( @KRE_ID, @BID, @STA_ID, @KID, @KONTO, @NACHSALDO, @K_ID, @FAKT_ID, @FAKT_ZEIT, @FAKT_NR, @FAKT_TEXT, @DLN_DETAIL, @DLG_DETAIL, @WHR_ID, @WHR_LAND_ID, @WHR_KURS, @WHR_TEXT, @WHR_EXCL, @WHR_INKL, @VAT_ID, @VAT_LAND_ID, @VAT, @VAT_TEXT, @RST_EXCL, @RST_INKL, @RST_GEWINN, @OPT_TEXT ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_mp_kreditor]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_mp_kreditor] GO CREATE PROCEDURE [dbo].[tdb_Update_mp_kreditor] @KRE_ID int, @BID int, @STA_ID int, @KID int, @KONTO varchar(256), @NACHSALDO float(53), @K_ID int, @FAKT_ID int, @FAKT_ZEIT datetime, @FAKT_NR varchar(256), @FAKT_TEXT varchar(1024), @DLN_DETAIL varchar(1024), @DLG_DETAIL varchar(1024), @WHR_ID int, @WHR_LAND_ID int, @WHR_KURS float(53), @WHR_TEXT varchar(1024), @WHR_EXCL float(53), @WHR_INKL float(53), @VAT_ID int, @VAT_LAND_ID int, @VAT float(53), @VAT_TEXT varchar(1024), @RST_EXCL float(53), @RST_INKL float(53), @RST_GEWINN float(53), @OPT_TEXT varchar(1024) AS SET NOCOUNT ON UPDATE [mp_kreditor] SET [BID] = @BID, [STA_ID] = @STA_ID, [KONTO] = @KONTO, [NACHSALDO] = @NACHSALDO, [K_ID] = @K_ID, [FAKT_ID] = @FAKT_ID, [FAKT_ZEIT] = @FAKT_ZEIT, [FAKT_NR] = @FAKT_NR, [FAKT_TEXT] = @FAKT_TEXT, [DLN_DETAIL] = @DLN_DETAIL, [DLG_DETAIL] = @DLG_DETAIL, [WHR_ID] = @WHR_ID, [WHR_LAND_ID] = @WHR_LAND_ID, [WHR_KURS] = @WHR_KURS, [WHR_TEXT] = @WHR_TEXT, [WHR_EXCL] = @WHR_EXCL, [WHR_INKL] = @WHR_INKL, [VAT_LAND_ID] = @VAT_LAND_ID, [VAT] = @VAT, [VAT_TEXT] = @VAT_TEXT, [RST_EXCL] = @RST_EXCL, [RST_INKL] = @RST_INKL, [RST_GEWINN] = @RST_GEWINN, [OPT_TEXT] = @OPT_TEXT WHERE [KRE_ID] = @KRE_ID AND [KID] = @KID AND [VAT_ID] = @VAT_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_mp_kreditor]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_mp_kreditor] GO CREATE PROCEDURE [dbo].[tdb_Read_mp_kreditor] @KRE_ID int, @KID int, @VAT_ID int AS SET NOCOUNT ON SELECT [KRE_ID], [BID], [STA_ID], [KID], [KONTO], [NACHSALDO], [K_ID], [FAKT_ID], [FAKT_ZEIT], [FAKT_NR], [FAKT_TEXT], [DLN_DETAIL], [DLG_DETAIL], [WHR_ID], [WHR_LAND_ID], [WHR_KURS], [WHR_TEXT], [WHR_EXCL], [WHR_INKL], [VAT_ID], [VAT_LAND_ID], [VAT], [VAT_TEXT], [RST_EXCL], [RST_INKL], [RST_GEWINN], [OPT_TEXT] FROM [mp_kreditor] WHERE [KRE_ID] = @KRE_ID AND [KID] = @KID AND [VAT_ID] = @VAT_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_mp_kreditor]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_mp_kreditor] GO CREATE PROCEDURE [dbo].[tdb_Delete_mp_kreditor] @KRE_ID int, @KID int, @VAT_ID int AS SET NOCOUNT ON DELETE FROM [mp_kreditor] WHERE [KRE_ID] = @KRE_ID AND [KID] = @KID AND [VAT_ID] = @VAT_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_kreditor]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_kreditor] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_kreditor] AS SET NOCOUNT ON SELECT [KRE_ID], [BID], [STA_ID], [KID], [KONTO], [NACHSALDO], [K_ID], [FAKT_ID], [FAKT_ZEIT], [FAKT_NR], [FAKT_TEXT], [DLN_DETAIL], [DLG_DETAIL], [WHR_ID], [WHR_LAND_ID], [WHR_KURS], [WHR_TEXT], [WHR_EXCL], [WHR_INKL], [VAT_ID], [VAT_LAND_ID], [VAT], [VAT_TEXT], [RST_EXCL], [RST_INKL], [RST_GEWINN], [OPT_TEXT] FROM [mp_kreditor] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_kreditor_ByFK_BID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_kreditor_ByFK_BID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_kreditor_ByFK_BID] @BID int AS SET NOCOUNT ON SELECT [KRE_ID], [BID], [STA_ID], [KID], [KONTO], [NACHSALDO], [K_ID], [FAKT_ID], [FAKT_ZEIT], [FAKT_NR], [FAKT_TEXT], [DLN_DETAIL], [DLG_DETAIL], [WHR_ID], [WHR_LAND_ID], [WHR_KURS], [WHR_TEXT], [WHR_EXCL], [WHR_INKL], [VAT_ID], [VAT_LAND_ID], [VAT], [VAT_TEXT], [RST_EXCL], [RST_INKL], [RST_GEWINN], [OPT_TEXT] FROM [mp_kreditor] WHERE [BID] = @BID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_kreditor_ByFK_KID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_kreditor_ByFK_KID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_kreditor_ByFK_KID] @KID int AS SET NOCOUNT ON SELECT [KRE_ID], [BID], [STA_ID], [KID], [KONTO], [NACHSALDO], [K_ID], [FAKT_ID], [FAKT_ZEIT], [FAKT_NR], [FAKT_TEXT], [DLN_DETAIL], [DLG_DETAIL], [WHR_ID], [WHR_LAND_ID], [WHR_KURS], [WHR_TEXT], [WHR_EXCL], [WHR_INKL], [VAT_ID], [VAT_LAND_ID], [VAT], [VAT_TEXT], [RST_EXCL], [RST_INKL], [RST_GEWINN], [OPT_TEXT] FROM [mp_kreditor] WHERE [KID] = @KID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_kreditor_ByFK_K_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_kreditor_ByFK_K_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_kreditor_ByFK_K_ID] @K_ID int AS SET NOCOUNT ON SELECT [KRE_ID], [BID], [STA_ID], [KID], [KONTO], [NACHSALDO], [K_ID], [FAKT_ID], [FAKT_ZEIT], [FAKT_NR], [FAKT_TEXT], [DLN_DETAIL], [DLG_DETAIL], [WHR_ID], [WHR_LAND_ID], [WHR_KURS], [WHR_TEXT], [WHR_EXCL], [WHR_INKL], [VAT_ID], [VAT_LAND_ID], [VAT], [VAT_TEXT], [RST_EXCL], [RST_INKL], [RST_GEWINN], [OPT_TEXT] FROM [mp_kreditor] WHERE [K_ID] = @K_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_kreditor_ByFK_FAKT_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_kreditor_ByFK_FAKT_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_kreditor_ByFK_FAKT_ID] @FAKT_ID int AS SET NOCOUNT ON SELECT [KRE_ID], [BID], [STA_ID], [KID], [KONTO], [NACHSALDO], [K_ID], [FAKT_ID], [FAKT_ZEIT], [FAKT_NR], [FAKT_TEXT], [DLN_DETAIL], [DLG_DETAIL], [WHR_ID], [WHR_LAND_ID], [WHR_KURS], [WHR_TEXT], [WHR_EXCL], [WHR_INKL], [VAT_ID], [VAT_LAND_ID], [VAT], [VAT_TEXT], [RST_EXCL], [RST_INKL], [RST_GEWINN], [OPT_TEXT] FROM [mp_kreditor] WHERE [FAKT_ID] = @FAKT_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_kreditor_ByFK_WHR_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_kreditor_ByFK_WHR_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_kreditor_ByFK_WHR_ID] @WHR_ID int AS SET NOCOUNT ON SELECT [KRE_ID], [BID], [STA_ID], [KID], [KONTO], [NACHSALDO], [K_ID], [FAKT_ID], [FAKT_ZEIT], [FAKT_NR], [FAKT_TEXT], [DLN_DETAIL], [DLG_DETAIL], [WHR_ID], [WHR_LAND_ID], [WHR_KURS], [WHR_TEXT], [WHR_EXCL], [WHR_INKL], [VAT_ID], [VAT_LAND_ID], [VAT], [VAT_TEXT], [RST_EXCL], [RST_INKL], [RST_GEWINN], [OPT_TEXT] FROM [mp_kreditor] WHERE [WHR_ID] = @WHR_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_kreditor_ByFK_WHR_LAND_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_kreditor_ByFK_WHR_LAND_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_kreditor_ByFK_WHR_LAND_ID] @WHR_LAND_ID int AS SET NOCOUNT ON SELECT [KRE_ID], [BID], [STA_ID], [KID], [KONTO], [NACHSALDO], [K_ID], [FAKT_ID], [FAKT_ZEIT], [FAKT_NR], [FAKT_TEXT], [DLN_DETAIL], [DLG_DETAIL], [WHR_ID], [WHR_LAND_ID], [WHR_KURS], [WHR_TEXT], [WHR_EXCL], [WHR_INKL], [VAT_ID], [VAT_LAND_ID], [VAT], [VAT_TEXT], [RST_EXCL], [RST_INKL], [RST_GEWINN], [OPT_TEXT] FROM [mp_kreditor] WHERE [WHR_LAND_ID] = @WHR_LAND_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_kreditor_ByFK_VAT_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_kreditor_ByFK_VAT_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_kreditor_ByFK_VAT_ID] @VAT_ID int AS SET NOCOUNT ON SELECT [KRE_ID], [BID], [STA_ID], [KID], [KONTO], [NACHSALDO], [K_ID], [FAKT_ID], [FAKT_ZEIT], [FAKT_NR], [FAKT_TEXT], [DLN_DETAIL], [DLG_DETAIL], [WHR_ID], [WHR_LAND_ID], [WHR_KURS], [WHR_TEXT], [WHR_EXCL], [WHR_INKL], [VAT_ID], [VAT_LAND_ID], [VAT], [VAT_TEXT], [RST_EXCL], [RST_INKL], [RST_GEWINN], [OPT_TEXT] FROM [mp_kreditor] WHERE [VAT_ID] = @VAT_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_kreditor_ByFK_VAT_LAND_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_kreditor_ByFK_VAT_LAND_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_kreditor_ByFK_VAT_LAND_ID] @VAT_LAND_ID int AS SET NOCOUNT ON SELECT [KRE_ID], [BID], [STA_ID], [KID], [KONTO], [NACHSALDO], [K_ID], [FAKT_ID], [FAKT_ZEIT], [FAKT_NR], [FAKT_TEXT], [DLN_DETAIL], [DLG_DETAIL], [WHR_ID], [WHR_LAND_ID], [WHR_KURS], [WHR_TEXT], [WHR_EXCL], [WHR_INKL], [VAT_ID], [VAT_LAND_ID], [VAT], [VAT_TEXT], [RST_EXCL], [RST_INKL], [RST_GEWINN], [OPT_TEXT] FROM [mp_kreditor] WHERE [VAT_LAND_ID] = @VAT_LAND_ID GO --[End of Stored Procedure for table: mp_kreditor] --=============================================================== --=============================================================== --[Stored Procedure generated for table: mp_label] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_mp_label]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_mp_label] GO CREATE PROCEDURE [dbo].[tdb_Insert_mp_label] @LABEL_ID int, @SEC_ID int, @LABEL_TYP int, @S_ID int, @LABEL varchar(1024) AS SET NOCOUNT ON INSERT INTO mp_label ( [LABEL_ID], [SEC_ID], [LABEL_TYP], [S_ID], [LABEL] ) VALUES ( @LABEL_ID, @SEC_ID, @LABEL_TYP, @S_ID, @LABEL ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_mp_label]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_mp_label] GO CREATE PROCEDURE [dbo].[tdb_Update_mp_label] @LABEL_ID int, @SEC_ID int, @LABEL_TYP int, @S_ID int, @LABEL varchar(1024) AS SET NOCOUNT ON UPDATE [mp_label] SET [LABEL] = @LABEL WHERE [LABEL_ID] = @LABEL_ID AND [SEC_ID] = @SEC_ID AND [LABEL_TYP] = @LABEL_TYP AND [S_ID] = @S_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_mp_label]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_mp_label] GO CREATE PROCEDURE [dbo].[tdb_Read_mp_label] @LABEL_ID int, @SEC_ID int, @LABEL_TYP int, @S_ID int AS SET NOCOUNT ON SELECT [LABEL_ID], [SEC_ID], [LABEL_TYP], [S_ID], [LABEL] FROM [mp_label] WHERE [LABEL_ID] = @LABEL_ID AND [SEC_ID] = @SEC_ID AND [LABEL_TYP] = @LABEL_TYP AND [S_ID] = @S_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_mp_label]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_mp_label] GO CREATE PROCEDURE [dbo].[tdb_Delete_mp_label] @LABEL_ID int, @SEC_ID int, @LABEL_TYP int, @S_ID int AS SET NOCOUNT ON DELETE FROM [mp_label] WHERE [LABEL_ID] = @LABEL_ID AND [SEC_ID] = @SEC_ID AND [LABEL_TYP] = @LABEL_TYP AND [S_ID] = @S_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_label]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_label] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_label] AS SET NOCOUNT ON SELECT [LABEL_ID], [SEC_ID], [LABEL_TYP], [S_ID], [LABEL] FROM [mp_label] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_label_ByFK_S_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_label_ByFK_S_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_label_ByFK_S_ID] @S_ID int AS SET NOCOUNT ON SELECT [LABEL_ID], [SEC_ID], [LABEL_TYP], [S_ID], [LABEL] FROM [mp_label] WHERE [S_ID] = @S_ID GO --[End of Stored Procedure for table: mp_label] --=============================================================== --=============================================================== --[Stored Procedure generated for table: mp_multimedia] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_mp_multimedia]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_mp_multimedia] GO CREATE PROCEDURE [dbo].[tdb_Insert_mp_multimedia] @MULT_ID int, @MULT_TYP int, @S_ID int, @MULT image AS SET NOCOUNT ON INSERT INTO mp_multimedia ( [MULT_ID], [MULT_TYP], [S_ID], [MULT] ) VALUES ( @MULT_ID, @MULT_TYP, @S_ID, @MULT ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_mp_multimedia]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_mp_multimedia] GO CREATE PROCEDURE [dbo].[tdb_Update_mp_multimedia] @MULT_ID int, @MULT_TYP int, @S_ID int, @MULT image AS SET NOCOUNT ON UPDATE [mp_multimedia] SET [MULT_TYP] = @MULT_TYP, [S_ID] = @S_ID, [MULT] = @MULT WHERE [MULT_ID] = @MULT_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_mp_multimedia]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_mp_multimedia] GO CREATE PROCEDURE [dbo].[tdb_Read_mp_multimedia] @MULT_ID int AS SET NOCOUNT ON SELECT [MULT_ID], [MULT_TYP], [S_ID], [MULT] FROM [mp_multimedia] WHERE [MULT_ID] = @MULT_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_mp_multimedia]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_mp_multimedia] GO CREATE PROCEDURE [dbo].[tdb_Delete_mp_multimedia] @MULT_ID int AS SET NOCOUNT ON DELETE FROM [mp_multimedia] WHERE [MULT_ID] = @MULT_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_multimedia]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_multimedia] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_multimedia] AS SET NOCOUNT ON SELECT [MULT_ID], [MULT_TYP], [S_ID], [MULT] FROM [mp_multimedia] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_multimedia_ByFK_S_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_multimedia_ByFK_S_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_multimedia_ByFK_S_ID] @S_ID int AS SET NOCOUNT ON SELECT [MULT_ID], [MULT_TYP], [S_ID], [MULT] FROM [mp_multimedia] WHERE [S_ID] = @S_ID GO --[End of Stored Procedure for table: mp_multimedia] --=============================================================== --=============================================================== --[Stored Procedure generated for table: mp_param] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_mp_param]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_mp_param] GO CREATE PROCEDURE [dbo].[tdb_Insert_mp_param] @PARAM_ID int, @CODE varchar(256), @FILE_ID int, @PARAM_TYP int, @LABEL_ID int, @PARAM varchar(1024) AS SET NOCOUNT ON INSERT INTO mp_param ( [PARAM_ID], [CODE], [FILE_ID], [PARAM_TYP], [LABEL_ID], [PARAM] ) VALUES ( @PARAM_ID, @CODE, @FILE_ID, @PARAM_TYP, @LABEL_ID, @PARAM ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_mp_param]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_mp_param] GO CREATE PROCEDURE [dbo].[tdb_Update_mp_param] @PARAM_ID int, @CODE varchar(256), @FILE_ID int, @PARAM_TYP int, @LABEL_ID int, @PARAM varchar(1024) AS SET NOCOUNT ON UPDATE [mp_param] SET [CODE] = @CODE, [FILE_ID] = @FILE_ID, [PARAM_TYP] = @PARAM_TYP, [LABEL_ID] = @LABEL_ID, [PARAM] = @PARAM WHERE [PARAM_ID] = @PARAM_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_mp_param]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_mp_param] GO CREATE PROCEDURE [dbo].[tdb_Read_mp_param] @PARAM_ID int AS SET NOCOUNT ON SELECT [PARAM_ID], [CODE], [FILE_ID], [PARAM_TYP], [LABEL_ID], [PARAM] FROM [mp_param] WHERE [PARAM_ID] = @PARAM_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_mp_param]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_mp_param] GO CREATE PROCEDURE [dbo].[tdb_Delete_mp_param] @PARAM_ID int AS SET NOCOUNT ON DELETE FROM [mp_param] WHERE [PARAM_ID] = @PARAM_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_param]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_param] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_param] AS SET NOCOUNT ON SELECT [PARAM_ID], [CODE], [FILE_ID], [PARAM_TYP], [LABEL_ID], [PARAM] FROM [mp_param] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_param_ByFK_FILE_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_param_ByFK_FILE_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_param_ByFK_FILE_ID] @FILE_ID int AS SET NOCOUNT ON SELECT [PARAM_ID], [CODE], [FILE_ID], [PARAM_TYP], [LABEL_ID], [PARAM] FROM [mp_param] WHERE [FILE_ID] = @FILE_ID GO --[End of Stored Procedure for table: mp_param] --=============================================================== --=============================================================== --[Stored Procedure generated for table: mp_preferences] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_mp_preferences]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_mp_preferences] GO CREATE PROCEDURE [dbo].[tdb_Insert_mp_preferences] @MPID int, @FULLNAME varchar(1024), @FILTER varchar(1024), @GUI varchar(1024), @CUSTOM varchar(1024) AS SET NOCOUNT ON INSERT INTO mp_preferences ( [MPID], [FULLNAME], [FILTER], [GUI], [CUSTOM] ) VALUES ( @MPID, @FULLNAME, @FILTER, @GUI, @CUSTOM ) GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_preferences]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_preferences] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_preferences] AS SET NOCOUNT ON SELECT [MPID], [FULLNAME], [FILTER], [GUI], [CUSTOM] FROM [mp_preferences] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_preferences_ByFK_MPID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_preferences_ByFK_MPID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_preferences_ByFK_MPID] @MPID int AS SET NOCOUNT ON SELECT [MPID], [FULLNAME], [FILTER], [GUI], [CUSTOM] FROM [mp_preferences] WHERE [MPID] = @MPID GO --[End of Stored Procedure for table: mp_preferences] --=============================================================== --=============================================================== --[Stored Procedure generated for table: mp_profil] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_mp_profil]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_mp_profil] GO CREATE PROCEDURE [dbo].[tdb_Insert_mp_profil] @MPID int, @MPUSER varchar(128), @BCHST int, @SECLEVEL int, @S_ID int, @LAND_ID int, @DLTT_ID int, @DLT_ID int, @KAT_ID int, @DLAT_ID int, @DLNT_ID int, @SAI_ID int, @PRG_ID int, @A_ZEIT int, @E_ZEIT int, @P_RANGE int AS SET NOCOUNT ON INSERT INTO mp_profil ( [MPID], [MPUSER], [BCHST], [SECLEVEL], [S_ID], [LAND_ID], [DLTT_ID], [DLT_ID], [KAT_ID], [DLAT_ID], [DLNT_ID], [SAI_ID], [PRG_ID], [A_ZEIT], [E_ZEIT], [P_RANGE] ) VALUES ( @MPID, @MPUSER, @BCHST, @SECLEVEL, @S_ID, @LAND_ID, @DLTT_ID, @DLT_ID, @KAT_ID, @DLAT_ID, @DLNT_ID, @SAI_ID, @PRG_ID, @A_ZEIT, @E_ZEIT, @P_RANGE ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_mp_profil]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_mp_profil] GO CREATE PROCEDURE [dbo].[tdb_Update_mp_profil] @MPID int, @MPUSER varchar(128), @BCHST int, @SECLEVEL int, @S_ID int, @LAND_ID int, @DLTT_ID int, @DLT_ID int, @KAT_ID int, @DLAT_ID int, @DLNT_ID int, @SAI_ID int, @PRG_ID int, @A_ZEIT int, @E_ZEIT int, @P_RANGE int AS SET NOCOUNT ON UPDATE [mp_profil] SET [MPUSER] = @MPUSER, [BCHST] = @BCHST, [SECLEVEL] = @SECLEVEL, [S_ID] = @S_ID, [LAND_ID] = @LAND_ID, [DLTT_ID] = @DLTT_ID, [DLT_ID] = @DLT_ID, [KAT_ID] = @KAT_ID, [DLAT_ID] = @DLAT_ID, [DLNT_ID] = @DLNT_ID, [SAI_ID] = @SAI_ID, [PRG_ID] = @PRG_ID, [A_ZEIT] = @A_ZEIT, [E_ZEIT] = @E_ZEIT, [P_RANGE] = @P_RANGE WHERE [MPID] = @MPID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_mp_profil]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_mp_profil] GO CREATE PROCEDURE [dbo].[tdb_Read_mp_profil] @MPID int AS SET NOCOUNT ON SELECT [MPID], [MPUSER], [BCHST], [SECLEVEL], [S_ID], [LAND_ID], [DLTT_ID], [DLT_ID], [KAT_ID], [DLAT_ID], [DLNT_ID], [SAI_ID], [PRG_ID], [A_ZEIT], [E_ZEIT], [P_RANGE] FROM [mp_profil] WHERE [MPID] = @MPID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_mp_profil]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_mp_profil] GO CREATE PROCEDURE [dbo].[tdb_Delete_mp_profil] @MPID int AS SET NOCOUNT ON DELETE FROM [mp_profil] WHERE [MPID] = @MPID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_profil]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_profil] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_profil] AS SET NOCOUNT ON SELECT [MPID], [MPUSER], [BCHST], [SECLEVEL], [S_ID], [LAND_ID], [DLTT_ID], [DLT_ID], [KAT_ID], [DLAT_ID], [DLNT_ID], [SAI_ID], [PRG_ID], [A_ZEIT], [E_ZEIT], [P_RANGE] FROM [mp_profil] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_profil_ByFK_BCHST]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_profil_ByFK_BCHST] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_profil_ByFK_BCHST] @BCHST int AS SET NOCOUNT ON SELECT [MPID], [MPUSER], [BCHST], [SECLEVEL], [S_ID], [LAND_ID], [DLTT_ID], [DLT_ID], [KAT_ID], [DLAT_ID], [DLNT_ID], [SAI_ID], [PRG_ID], [A_ZEIT], [E_ZEIT], [P_RANGE] FROM [mp_profil] WHERE [BCHST] = @BCHST GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_profil_ByFK_S_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_profil_ByFK_S_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_profil_ByFK_S_ID] @S_ID int AS SET NOCOUNT ON SELECT [MPID], [MPUSER], [BCHST], [SECLEVEL], [S_ID], [LAND_ID], [DLTT_ID], [DLT_ID], [KAT_ID], [DLAT_ID], [DLNT_ID], [SAI_ID], [PRG_ID], [A_ZEIT], [E_ZEIT], [P_RANGE] FROM [mp_profil] WHERE [S_ID] = @S_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_profil_ByFK_LAND_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_profil_ByFK_LAND_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_profil_ByFK_LAND_ID] @LAND_ID int AS SET NOCOUNT ON SELECT [MPID], [MPUSER], [BCHST], [SECLEVEL], [S_ID], [LAND_ID], [DLTT_ID], [DLT_ID], [KAT_ID], [DLAT_ID], [DLNT_ID], [SAI_ID], [PRG_ID], [A_ZEIT], [E_ZEIT], [P_RANGE] FROM [mp_profil] WHERE [LAND_ID] = @LAND_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_profil_ByFK_DLTT_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_profil_ByFK_DLTT_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_profil_ByFK_DLTT_ID] @DLTT_ID int AS SET NOCOUNT ON SELECT [MPID], [MPUSER], [BCHST], [SECLEVEL], [S_ID], [LAND_ID], [DLTT_ID], [DLT_ID], [KAT_ID], [DLAT_ID], [DLNT_ID], [SAI_ID], [PRG_ID], [A_ZEIT], [E_ZEIT], [P_RANGE] FROM [mp_profil] WHERE [DLTT_ID] = @DLTT_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_profil_ByFK_DLT_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_profil_ByFK_DLT_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_profil_ByFK_DLT_ID] @DLT_ID int AS SET NOCOUNT ON SELECT [MPID], [MPUSER], [BCHST], [SECLEVEL], [S_ID], [LAND_ID], [DLTT_ID], [DLT_ID], [KAT_ID], [DLAT_ID], [DLNT_ID], [SAI_ID], [PRG_ID], [A_ZEIT], [E_ZEIT], [P_RANGE] FROM [mp_profil] WHERE [DLT_ID] = @DLT_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_profil_ByFK_KAT_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_profil_ByFK_KAT_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_profil_ByFK_KAT_ID] @KAT_ID int AS SET NOCOUNT ON SELECT [MPID], [MPUSER], [BCHST], [SECLEVEL], [S_ID], [LAND_ID], [DLTT_ID], [DLT_ID], [KAT_ID], [DLAT_ID], [DLNT_ID], [SAI_ID], [PRG_ID], [A_ZEIT], [E_ZEIT], [P_RANGE] FROM [mp_profil] WHERE [KAT_ID] = @KAT_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_profil_ByFK_DLAT_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_profil_ByFK_DLAT_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_profil_ByFK_DLAT_ID] @DLAT_ID int AS SET NOCOUNT ON SELECT [MPID], [MPUSER], [BCHST], [SECLEVEL], [S_ID], [LAND_ID], [DLTT_ID], [DLT_ID], [KAT_ID], [DLAT_ID], [DLNT_ID], [SAI_ID], [PRG_ID], [A_ZEIT], [E_ZEIT], [P_RANGE] FROM [mp_profil] WHERE [DLAT_ID] = @DLAT_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_profil_ByFK_DLNT_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_profil_ByFK_DLNT_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_profil_ByFK_DLNT_ID] @DLNT_ID int AS SET NOCOUNT ON SELECT [MPID], [MPUSER], [BCHST], [SECLEVEL], [S_ID], [LAND_ID], [DLTT_ID], [DLT_ID], [KAT_ID], [DLAT_ID], [DLNT_ID], [SAI_ID], [PRG_ID], [A_ZEIT], [E_ZEIT], [P_RANGE] FROM [mp_profil] WHERE [DLNT_ID] = @DLNT_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_profil_ByFK_SAI_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_profil_ByFK_SAI_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_profil_ByFK_SAI_ID] @SAI_ID int AS SET NOCOUNT ON SELECT [MPID], [MPUSER], [BCHST], [SECLEVEL], [S_ID], [LAND_ID], [DLTT_ID], [DLT_ID], [KAT_ID], [DLAT_ID], [DLNT_ID], [SAI_ID], [PRG_ID], [A_ZEIT], [E_ZEIT], [P_RANGE] FROM [mp_profil] WHERE [SAI_ID] = @SAI_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_profil_ByFK_PRG_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_profil_ByFK_PRG_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_profil_ByFK_PRG_ID] @PRG_ID int AS SET NOCOUNT ON SELECT [MPID], [MPUSER], [BCHST], [SECLEVEL], [S_ID], [LAND_ID], [DLTT_ID], [DLT_ID], [KAT_ID], [DLAT_ID], [DLNT_ID], [SAI_ID], [PRG_ID], [A_ZEIT], [E_ZEIT], [P_RANGE] FROM [mp_profil] WHERE [PRG_ID] = @PRG_ID GO --[End of Stored Procedure for table: mp_profil] --=============================================================== --=============================================================== --[Stored Procedure generated for table: mp_prox] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_mp_prox]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_mp_prox] GO CREATE PROCEDURE [dbo].[tdb_Insert_mp_prox] @ORT_ID int, @PROX_ID int AS SET NOCOUNT ON INSERT INTO mp_prox ( [ORT_ID], [PROX_ID] ) VALUES ( @ORT_ID, @PROX_ID ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_mp_prox]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_mp_prox] GO CREATE PROCEDURE [dbo].[tdb_Update_mp_prox] @ORT_ID int, @PROX_ID int AS SET NOCOUNT ON UPDATE [mp_prox] SET WHERE [ORT_ID] = @ORT_ID AND [PROX_ID] = @PROX_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_mp_prox]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_mp_prox] GO CREATE PROCEDURE [dbo].[tdb_Read_mp_prox] @ORT_ID int, @PROX_ID int AS SET NOCOUNT ON SELECT [ORT_ID], [PROX_ID] FROM [mp_prox] WHERE [ORT_ID] = @ORT_ID AND [PROX_ID] = @PROX_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_mp_prox]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_mp_prox] GO CREATE PROCEDURE [dbo].[tdb_Delete_mp_prox] @ORT_ID int, @PROX_ID int AS SET NOCOUNT ON DELETE FROM [mp_prox] WHERE [ORT_ID] = @ORT_ID AND [PROX_ID] = @PROX_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_prox]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_prox] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_prox] AS SET NOCOUNT ON SELECT [ORT_ID], [PROX_ID] FROM [mp_prox] GO --[End of Stored Procedure for table: mp_prox] --=============================================================== --=============================================================== --[Stored Procedure generated for table: mp_reminder] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_mp_reminder]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_mp_reminder] GO CREATE PROCEDURE [dbo].[tdb_Insert_mp_reminder] @REM_ID int, @MPID int, @K_ID int, @BID int, @PERS_ID int, @KID int, @ENTRY datetime, @DEADLINE datetime, @PERSON int, @PERS_TYP int, @NOTICE varchar(1024), @OPT varchar(1024) AS SET NOCOUNT ON INSERT INTO mp_reminder ( [REM_ID], [MPID], [K_ID], [BID], [PERS_ID], [KID], [ENTRY], [DEADLINE], [PERSON], [PERS_TYP], [NOTICE], [OPT] ) VALUES ( @REM_ID, @MPID, @K_ID, @BID, @PERS_ID, @KID, @ENTRY, @DEADLINE, @PERSON, @PERS_TYP, @NOTICE, @OPT ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_mp_reminder]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_mp_reminder] GO CREATE PROCEDURE [dbo].[tdb_Update_mp_reminder] @REM_ID int, @MPID int, @K_ID int, @BID int, @PERS_ID int, @KID int, @ENTRY datetime, @DEADLINE datetime, @PERSON int, @PERS_TYP int, @NOTICE varchar(1024), @OPT varchar(1024) AS SET NOCOUNT ON UPDATE [mp_reminder] SET [MPID] = @MPID, [K_ID] = @K_ID, [BID] = @BID, [PERS_ID] = @PERS_ID, [KID] = @KID, [ENTRY] = @ENTRY, [DEADLINE] = @DEADLINE, [PERSON] = @PERSON, [PERS_TYP] = @PERS_TYP, [NOTICE] = @NOTICE, [OPT] = @OPT WHERE [REM_ID] = @REM_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_mp_reminder]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_mp_reminder] GO CREATE PROCEDURE [dbo].[tdb_Read_mp_reminder] @REM_ID int AS SET NOCOUNT ON SELECT [REM_ID], [MPID], [K_ID], [BID], [PERS_ID], [KID], [ENTRY], [DEADLINE], [PERSON], [PERS_TYP], [NOTICE], [OPT] FROM [mp_reminder] WHERE [REM_ID] = @REM_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_mp_reminder]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_mp_reminder] GO CREATE PROCEDURE [dbo].[tdb_Delete_mp_reminder] @REM_ID int AS SET NOCOUNT ON DELETE FROM [mp_reminder] WHERE [REM_ID] = @REM_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_reminder]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_reminder] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_reminder] AS SET NOCOUNT ON SELECT [REM_ID], [MPID], [K_ID], [BID], [PERS_ID], [KID], [ENTRY], [DEADLINE], [PERSON], [PERS_TYP], [NOTICE], [OPT] FROM [mp_reminder] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_reminder_ByFK_MPID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_reminder_ByFK_MPID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_reminder_ByFK_MPID] @MPID int AS SET NOCOUNT ON SELECT [REM_ID], [MPID], [K_ID], [BID], [PERS_ID], [KID], [ENTRY], [DEADLINE], [PERSON], [PERS_TYP], [NOTICE], [OPT] FROM [mp_reminder] WHERE [MPID] = @MPID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_reminder_ByFK_K_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_reminder_ByFK_K_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_reminder_ByFK_K_ID] @K_ID int AS SET NOCOUNT ON SELECT [REM_ID], [MPID], [K_ID], [BID], [PERS_ID], [KID], [ENTRY], [DEADLINE], [PERSON], [PERS_TYP], [NOTICE], [OPT] FROM [mp_reminder] WHERE [K_ID] = @K_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_reminder_ByFK_BID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_reminder_ByFK_BID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_reminder_ByFK_BID] @BID int AS SET NOCOUNT ON SELECT [REM_ID], [MPID], [K_ID], [BID], [PERS_ID], [KID], [ENTRY], [DEADLINE], [PERSON], [PERS_TYP], [NOTICE], [OPT] FROM [mp_reminder] WHERE [BID] = @BID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_reminder_ByFK_PERS_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_reminder_ByFK_PERS_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_reminder_ByFK_PERS_ID] @PERS_ID int AS SET NOCOUNT ON SELECT [REM_ID], [MPID], [K_ID], [BID], [PERS_ID], [KID], [ENTRY], [DEADLINE], [PERSON], [PERS_TYP], [NOTICE], [OPT] FROM [mp_reminder] WHERE [PERS_ID] = @PERS_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_reminder_ByFK_KID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_reminder_ByFK_KID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_reminder_ByFK_KID] @KID int AS SET NOCOUNT ON SELECT [REM_ID], [MPID], [K_ID], [BID], [PERS_ID], [KID], [ENTRY], [DEADLINE], [PERSON], [PERS_TYP], [NOTICE], [OPT] FROM [mp_reminder] WHERE [KID] = @KID GO --[End of Stored Procedure for table: mp_reminder] --=============================================================== --=============================================================== --[Stored Procedure generated for table: mp_text_doc] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_mp_text_doc]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_mp_text_doc] GO CREATE PROCEDURE [dbo].[tdb_Insert_mp_text_doc] @TEXTID int, @TYP int, @MULT_ID int AS SET NOCOUNT ON INSERT INTO mp_text_doc ( [TEXTID], [TYP], [MULT_ID] ) VALUES ( @TEXTID, @TYP, @MULT_ID ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_mp_text_doc]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_mp_text_doc] GO CREATE PROCEDURE [dbo].[tdb_Update_mp_text_doc] @TEXTID int, @TYP int, @MULT_ID int AS SET NOCOUNT ON UPDATE [mp_text_doc] SET WHERE [TEXTID] = @TEXTID AND [TYP] = @TYP AND [MULT_ID] = @MULT_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_mp_text_doc]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_mp_text_doc] GO CREATE PROCEDURE [dbo].[tdb_Read_mp_text_doc] @TEXTID int, @TYP int, @MULT_ID int AS SET NOCOUNT ON SELECT [TEXTID], [TYP], [MULT_ID] FROM [mp_text_doc] WHERE [TEXTID] = @TEXTID AND [TYP] = @TYP AND [MULT_ID] = @MULT_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_mp_text_doc]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_mp_text_doc] GO CREATE PROCEDURE [dbo].[tdb_Delete_mp_text_doc] @TEXTID int, @TYP int, @MULT_ID int AS SET NOCOUNT ON DELETE FROM [mp_text_doc] WHERE [TEXTID] = @TEXTID AND [TYP] = @TYP AND [MULT_ID] = @MULT_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_text_doc]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_text_doc] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_text_doc] AS SET NOCOUNT ON SELECT [TEXTID], [TYP], [MULT_ID] FROM [mp_text_doc] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_text_doc_ByFK_MULT_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_text_doc_ByFK_MULT_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_text_doc_ByFK_MULT_ID] @MULT_ID int AS SET NOCOUNT ON SELECT [TEXTID], [TYP], [MULT_ID] FROM [mp_text_doc] WHERE [MULT_ID] = @MULT_ID GO --[End of Stored Procedure for table: mp_text_doc] --=============================================================== --=============================================================== --[Stored Procedure generated for table: mp_texte] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_mp_texte]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_mp_texte] GO CREATE PROCEDURE [dbo].[tdb_Insert_mp_texte] @TEXTID int, @TYP int, @S_ID int, @TEXT varchar(1024) AS SET NOCOUNT ON INSERT INTO mp_texte ( [TEXTID], [TYP], [S_ID], [TEXT] ) VALUES ( @TEXTID, @TYP, @S_ID, @TEXT ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_mp_texte]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_mp_texte] GO CREATE PROCEDURE [dbo].[tdb_Update_mp_texte] @TEXTID int, @TYP int, @S_ID int, @TEXT varchar(1024) AS SET NOCOUNT ON UPDATE [mp_texte] SET [TEXT] = @TEXT WHERE [TEXTID] = @TEXTID AND [TYP] = @TYP AND [S_ID] = @S_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_mp_texte]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_mp_texte] GO CREATE PROCEDURE [dbo].[tdb_Read_mp_texte] @TEXTID int, @TYP int, @S_ID int AS SET NOCOUNT ON SELECT [TEXTID], [TYP], [S_ID], [TEXT] FROM [mp_texte] WHERE [TEXTID] = @TEXTID AND [TYP] = @TYP AND [S_ID] = @S_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_mp_texte]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_mp_texte] GO CREATE PROCEDURE [dbo].[tdb_Delete_mp_texte] @TEXTID int, @TYP int, @S_ID int AS SET NOCOUNT ON DELETE FROM [mp_texte] WHERE [TEXTID] = @TEXTID AND [TYP] = @TYP AND [S_ID] = @S_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_texte]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_texte] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_texte] AS SET NOCOUNT ON SELECT [TEXTID], [TYP], [S_ID], [TEXT] FROM [mp_texte] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp_texte_ByFK_S_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp_texte_ByFK_S_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp_texte_ByFK_S_ID] @S_ID int AS SET NOCOUNT ON SELECT [TEXTID], [TYP], [S_ID], [TEXT] FROM [mp_texte] WHERE [S_ID] = @S_ID GO --[End of Stored Procedure for table: mp_texte] --=============================================================== --=============================================================== --[Stored Procedure generated for table: msg] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_msg]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_msg] GO CREATE PROCEDURE [dbo].[tdb_Insert_msg] @MSG_TYP int, @MSG_ID int, @S_ID int, @TEXTNR int, @TEXT varchar(1024) AS SET NOCOUNT ON INSERT INTO msg ( [MSG_TYP], [MSG_ID], [S_ID], [TEXTNR], [TEXT] ) VALUES ( @MSG_TYP, @MSG_ID, @S_ID, @TEXTNR, @TEXT ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_msg]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_msg] GO CREATE PROCEDURE [dbo].[tdb_Update_msg] @MSG_TYP int, @MSG_ID int, @S_ID int, @TEXTNR int, @TEXT varchar(1024) AS SET NOCOUNT ON UPDATE [msg] SET [TEXT] = @TEXT WHERE [MSG_TYP] = @MSG_TYP AND [MSG_ID] = @MSG_ID AND [S_ID] = @S_ID AND [TEXTNR] = @TEXTNR GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_msg]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_msg] GO CREATE PROCEDURE [dbo].[tdb_Read_msg] @MSG_TYP int, @MSG_ID int, @S_ID int, @TEXTNR int AS SET NOCOUNT ON SELECT [MSG_TYP], [MSG_ID], [S_ID], [TEXTNR], [TEXT] FROM [msg] WHERE [MSG_TYP] = @MSG_TYP AND [MSG_ID] = @MSG_ID AND [S_ID] = @S_ID AND [TEXTNR] = @TEXTNR GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_msg]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_msg] GO CREATE PROCEDURE [dbo].[tdb_Delete_msg] @MSG_TYP int, @MSG_ID int, @S_ID int, @TEXTNR int AS SET NOCOUNT ON DELETE FROM [msg] WHERE [MSG_TYP] = @MSG_TYP AND [MSG_ID] = @MSG_ID AND [S_ID] = @S_ID AND [TEXTNR] = @TEXTNR GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_msg]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_msg] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_msg] AS SET NOCOUNT ON SELECT [MSG_TYP], [MSG_ID], [S_ID], [TEXTNR], [TEXT] FROM [msg] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_msg_ByFK_S_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_msg_ByFK_S_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_msg_ByFK_S_ID] @S_ID int AS SET NOCOUNT ON SELECT [MSG_TYP], [MSG_ID], [S_ID], [TEXTNR], [TEXT] FROM [msg] WHERE [S_ID] = @S_ID GO --[End of Stored Procedure for table: msg] --=============================================================== --=============================================================== --[Stored Procedure generated for table: ort] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_ort]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_ort] GO CREATE PROCEDURE [dbo].[tdb_Insert_ort] @ORT_ID int, @BEZ_ID int, @LAND_ID int, @TEXTID int, @KRZL varchar(256), @ZEITVER int, @KOORD1 int, @KOORD2 int, @ORT_TYP int AS SET NOCOUNT ON INSERT INTO ort ( [ORT_ID], [BEZ_ID], [LAND_ID], [TEXTID], [KRZL], [ZEITVER], [KOORD1], [KOORD2], [ORT_TYP] ) VALUES ( @ORT_ID, @BEZ_ID, @LAND_ID, @TEXTID, @KRZL, @ZEITVER, @KOORD1, @KOORD2, @ORT_TYP ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_ort]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_ort] GO CREATE PROCEDURE [dbo].[tdb_Update_ort] @ORT_ID int, @BEZ_ID int, @LAND_ID int, @TEXTID int, @KRZL varchar(256), @ZEITVER int, @KOORD1 int, @KOORD2 int, @ORT_TYP int AS SET NOCOUNT ON UPDATE [ort] SET [BEZ_ID] = @BEZ_ID, [TEXTID] = @TEXTID, [KRZL] = @KRZL, [ZEITVER] = @ZEITVER, [KOORD1] = @KOORD1, [KOORD2] = @KOORD2, [ORT_TYP] = @ORT_TYP WHERE [ORT_ID] = @ORT_ID AND [LAND_ID] = @LAND_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_ort]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_ort] GO CREATE PROCEDURE [dbo].[tdb_Read_ort] @ORT_ID int, @LAND_ID int AS SET NOCOUNT ON SELECT [ORT_ID], [BEZ_ID], [LAND_ID], [TEXTID], [KRZL], [ZEITVER], [KOORD1], [KOORD2], [ORT_TYP] FROM [ort] WHERE [ORT_ID] = @ORT_ID AND [LAND_ID] = @LAND_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_ort]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_ort] GO CREATE PROCEDURE [dbo].[tdb_Delete_ort] @ORT_ID int, @LAND_ID int AS SET NOCOUNT ON DELETE FROM [ort] WHERE [ORT_ID] = @ORT_ID AND [LAND_ID] = @LAND_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_ort]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_ort] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_ort] AS SET NOCOUNT ON SELECT [ORT_ID], [BEZ_ID], [LAND_ID], [TEXTID], [KRZL], [ZEITVER], [KOORD1], [KOORD2], [ORT_TYP] FROM [ort] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_ort_ByFK_LAND_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_ort_ByFK_LAND_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_ort_ByFK_LAND_ID] @LAND_ID int AS SET NOCOUNT ON SELECT [ORT_ID], [BEZ_ID], [LAND_ID], [TEXTID], [KRZL], [ZEITVER], [KOORD1], [KOORD2], [ORT_TYP] FROM [ort] WHERE [LAND_ID] = @LAND_ID GO --[End of Stored Procedure for table: ort] --=============================================================== --=============================================================== --[Stored Procedure generated for table: pcx_files] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_pcx_files]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_pcx_files] GO CREATE PROCEDURE [dbo].[tdb_Insert_pcx_files] @PCX_ID int, @BEZ_ID int, @FILENAME varchar(1024), @X int, @Y int, @TYP int, @TYPCODE int, @FOLGE int AS SET NOCOUNT ON INSERT INTO pcx_files ( [PCX_ID], [BEZ_ID], [FILENAME], [X], [Y], [TYP], [TYPCODE], [FOLGE] ) VALUES ( @PCX_ID, @BEZ_ID, @FILENAME, @X, @Y, @TYP, @TYPCODE, @FOLGE ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_pcx_files]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_pcx_files] GO CREATE PROCEDURE [dbo].[tdb_Update_pcx_files] @PCX_ID int, @BEZ_ID int, @FILENAME varchar(1024), @X int, @Y int, @TYP int, @TYPCODE int, @FOLGE int AS SET NOCOUNT ON UPDATE [pcx_files] SET [BEZ_ID] = @BEZ_ID, [FILENAME] = @FILENAME, [X] = @X, [Y] = @Y, [TYP] = @TYP, [TYPCODE] = @TYPCODE, [FOLGE] = @FOLGE WHERE [PCX_ID] = @PCX_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_pcx_files]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_pcx_files] GO CREATE PROCEDURE [dbo].[tdb_Read_pcx_files] @PCX_ID int AS SET NOCOUNT ON SELECT [PCX_ID], [BEZ_ID], [FILENAME], [X], [Y], [TYP], [TYPCODE], [FOLGE] FROM [pcx_files] WHERE [PCX_ID] = @PCX_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_pcx_files]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_pcx_files] GO CREATE PROCEDURE [dbo].[tdb_Delete_pcx_files] @PCX_ID int AS SET NOCOUNT ON DELETE FROM [pcx_files] WHERE [PCX_ID] = @PCX_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_pcx_files]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_pcx_files] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_pcx_files] AS SET NOCOUNT ON SELECT [PCX_ID], [BEZ_ID], [FILENAME], [X], [Y], [TYP], [TYPCODE], [FOLGE] FROM [pcx_files] GO --[End of Stored Procedure for table: pcx_files] --=============================================================== --=============================================================== --[Stored Procedure generated for table: persadr] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_persadr]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_persadr] GO CREATE PROCEDURE [dbo].[tdb_Insert_persadr] @PERS_ID int, @ADR_TYP int, @ANS varchar(256), @ADR1 varchar(1024), @ADR2 varchar(1024), @ADR3 varchar(1024), @PLZ varchar(256), @ORT varchar(256), @KANT varchar(256), @LAND_ID int, @STA_ID int, @HAUPT_FLAG int, @RCH_FLAG int, @MAIL_FLAG int, @TEL varchar(256), @HANDY varchar(256), @FAX varchar(256), @TLX varchar(256), @EMAIL varchar(1024), @WEB varchar(1024) AS SET NOCOUNT ON INSERT INTO persadr ( [PERS_ID], [ADR_TYP], [ANS], [ADR1], [ADR2], [ADR3], [PLZ], [ORT], [KANT], [LAND_ID], [STA_ID], [HAUPT_FLAG], [RCH_FLAG], [MAIL_FLAG], [TEL], [HANDY], [FAX], [TLX], [EMAIL], [WEB] ) VALUES ( @PERS_ID, @ADR_TYP, @ANS, @ADR1, @ADR2, @ADR3, @PLZ, @ORT, @KANT, @LAND_ID, @STA_ID, @HAUPT_FLAG, @RCH_FLAG, @MAIL_FLAG, @TEL, @HANDY, @FAX, @TLX, @EMAIL, @WEB ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_persadr]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_persadr] GO CREATE PROCEDURE [dbo].[tdb_Update_persadr] @PERS_ID int, @ADR_TYP int, @ANS varchar(256), @ADR1 varchar(1024), @ADR2 varchar(1024), @ADR3 varchar(1024), @PLZ varchar(256), @ORT varchar(256), @KANT varchar(256), @LAND_ID int, @STA_ID int, @HAUPT_FLAG int, @RCH_FLAG int, @MAIL_FLAG int, @TEL varchar(256), @HANDY varchar(256), @FAX varchar(256), @TLX varchar(256), @EMAIL varchar(1024), @WEB varchar(1024) AS SET NOCOUNT ON UPDATE [persadr] SET [ANS] = @ANS, [ADR1] = @ADR1, [ADR2] = @ADR2, [ADR3] = @ADR3, [PLZ] = @PLZ, [ORT] = @ORT, [KANT] = @KANT, [LAND_ID] = @LAND_ID, [STA_ID] = @STA_ID, [HAUPT_FLAG] = @HAUPT_FLAG, [RCH_FLAG] = @RCH_FLAG, [MAIL_FLAG] = @MAIL_FLAG, [TEL] = @TEL, [HANDY] = @HANDY, [FAX] = @FAX, [TLX] = @TLX, [EMAIL] = @EMAIL, [WEB] = @WEB WHERE [PERS_ID] = @PERS_ID AND [ADR_TYP] = @ADR_TYP GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_persadr]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_persadr] GO CREATE PROCEDURE [dbo].[tdb_Read_persadr] @PERS_ID int, @ADR_TYP int AS SET NOCOUNT ON SELECT [PERS_ID], [ADR_TYP], [ANS], [ADR1], [ADR2], [ADR3], [PLZ], [ORT], [KANT], [LAND_ID], [STA_ID], [HAUPT_FLAG], [RCH_FLAG], [MAIL_FLAG], [TEL], [HANDY], [FAX], [TLX], [EMAIL], [WEB] FROM [persadr] WHERE [PERS_ID] = @PERS_ID AND [ADR_TYP] = @ADR_TYP GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_persadr]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_persadr] GO CREATE PROCEDURE [dbo].[tdb_Delete_persadr] @PERS_ID int, @ADR_TYP int AS SET NOCOUNT ON DELETE FROM [persadr] WHERE [PERS_ID] = @PERS_ID AND [ADR_TYP] = @ADR_TYP GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_persadr]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_persadr] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_persadr] AS SET NOCOUNT ON SELECT [PERS_ID], [ADR_TYP], [ANS], [ADR1], [ADR2], [ADR3], [PLZ], [ORT], [KANT], [LAND_ID], [STA_ID], [HAUPT_FLAG], [RCH_FLAG], [MAIL_FLAG], [TEL], [HANDY], [FAX], [TLX], [EMAIL], [WEB] FROM [persadr] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_persadr_ByFK_PERS_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_persadr_ByFK_PERS_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_persadr_ByFK_PERS_ID] @PERS_ID int AS SET NOCOUNT ON SELECT [PERS_ID], [ADR_TYP], [ANS], [ADR1], [ADR2], [ADR3], [PLZ], [ORT], [KANT], [LAND_ID], [STA_ID], [HAUPT_FLAG], [RCH_FLAG], [MAIL_FLAG], [TEL], [HANDY], [FAX], [TLX], [EMAIL], [WEB] FROM [persadr] WHERE [PERS_ID] = @PERS_ID GO --[End of Stored Procedure for table: persadr] --=============================================================== --=============================================================== --[Stored Procedure generated for table: personen] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_personen]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_personen] GO CREATE PROCEDURE [dbo].[tdb_Insert_personen] @PERS_ID int, @PERS_TYP int, @NAME varchar(512), @S_ID int, @STA_ID int, @TEXTID int AS SET NOCOUNT ON INSERT INTO personen ( [PERS_ID], [PERS_TYP], [NAME], [S_ID], [STA_ID], [TEXTID] ) VALUES ( @PERS_ID, @PERS_TYP, @NAME, @S_ID, @STA_ID, @TEXTID ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_personen]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_personen] GO CREATE PROCEDURE [dbo].[tdb_Update_personen] @PERS_ID int, @PERS_TYP int, @NAME varchar(512), @S_ID int, @STA_ID int, @TEXTID int AS SET NOCOUNT ON UPDATE [personen] SET [PERS_TYP] = @PERS_TYP, [NAME] = @NAME, [S_ID] = @S_ID, [STA_ID] = @STA_ID, [TEXTID] = @TEXTID WHERE [PERS_ID] = @PERS_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_personen]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_personen] GO CREATE PROCEDURE [dbo].[tdb_Read_personen] @PERS_ID int AS SET NOCOUNT ON SELECT [PERS_ID], [PERS_TYP], [NAME], [S_ID], [STA_ID], [TEXTID] FROM [personen] WHERE [PERS_ID] = @PERS_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_personen]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_personen] GO CREATE PROCEDURE [dbo].[tdb_Delete_personen] @PERS_ID int AS SET NOCOUNT ON DELETE FROM [personen] WHERE [PERS_ID] = @PERS_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_personen]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_personen] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_personen] AS SET NOCOUNT ON SELECT [PERS_ID], [PERS_TYP], [NAME], [S_ID], [STA_ID], [TEXTID] FROM [personen] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_personen_ByFK_S_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_personen_ByFK_S_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_personen_ByFK_S_ID] @S_ID int AS SET NOCOUNT ON SELECT [PERS_ID], [PERS_TYP], [NAME], [S_ID], [STA_ID], [TEXTID] FROM [personen] WHERE [S_ID] = @S_ID GO --[End of Stored Procedure for table: personen] --=============================================================== --=============================================================== --[Stored Procedure generated for table: preis] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_preis]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_preis] GO CREATE PROCEDURE [dbo].[tdb_Insert_preis] @PRE_ID int, @APR float(53), @EPR float(53), @VPR float(53), @GLT int, @WHR_ID int, @KBST int, @KAR_ID int, @DLTT_ID int, @KAT_ID int, @RKR_ID int, @DLA_ID int, @ARR_ID int, @DL_ID int, @EXT_ID int, @DL_VONDAT int, @DL_BISDAT int, @KONT_ID int, @STA_ID int, @TEXTID int, @HISTORY int, @SAI_ID int, @UNIT_TYP int, @UNIT_VON int, @UNIT_BIS int, @DAU int, @DAU_VON int, @DAU_BIS int AS SET NOCOUNT ON INSERT INTO preis ( [PRE_ID], [APR], [EPR], [VPR], [GLT], [WHR_ID], [KBST], [KAR_ID], [DLTT_ID], [KAT_ID], [RKR_ID], [DLA_ID], [ARR_ID], [DL_ID], [EXT_ID], [DL_VONDAT], [DL_BISDAT], [KONT_ID], [STA_ID], [TEXTID], [HISTORY], [SAI_ID], [UNIT_TYP], [UNIT_VON], [UNIT_BIS], [DAU], [DAU_VON], [DAU_BIS] ) VALUES ( @PRE_ID, @APR, @EPR, @VPR, @GLT, @WHR_ID, @KBST, @KAR_ID, @DLTT_ID, @KAT_ID, @RKR_ID, @DLA_ID, @ARR_ID, @DL_ID, @EXT_ID, @DL_VONDAT, @DL_BISDAT, @KONT_ID, @STA_ID, @TEXTID, @HISTORY, @SAI_ID, @UNIT_TYP, @UNIT_VON, @UNIT_BIS, @DAU, @DAU_VON, @DAU_BIS ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_preis]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_preis] GO CREATE PROCEDURE [dbo].[tdb_Update_preis] @PRE_ID int, @APR float(53), @EPR float(53), @VPR float(53), @GLT int, @WHR_ID int, @KBST int, @KAR_ID int, @DLTT_ID int, @KAT_ID int, @RKR_ID int, @DLA_ID int, @ARR_ID int, @DL_ID int, @EXT_ID int, @DL_VONDAT int, @DL_BISDAT int, @KONT_ID int, @STA_ID int, @TEXTID int, @HISTORY int, @SAI_ID int, @UNIT_TYP int, @UNIT_VON int, @UNIT_BIS int, @DAU int, @DAU_VON int, @DAU_BIS int AS SET NOCOUNT ON UPDATE [preis] SET [APR] = @APR, [EPR] = @EPR, [VPR] = @VPR, [GLT] = @GLT, [WHR_ID] = @WHR_ID, [KBST] = @KBST, [KAR_ID] = @KAR_ID, [DLTT_ID] = @DLTT_ID, [KAT_ID] = @KAT_ID, [RKR_ID] = @RKR_ID, [DLA_ID] = @DLA_ID, [ARR_ID] = @ARR_ID, [DL_ID] = @DL_ID, [EXT_ID] = @EXT_ID, [DL_VONDAT] = @DL_VONDAT, [DL_BISDAT] = @DL_BISDAT, [KONT_ID] = @KONT_ID, [STA_ID] = @STA_ID, [TEXTID] = @TEXTID, [HISTORY] = @HISTORY, [SAI_ID] = @SAI_ID, [UNIT_TYP] = @UNIT_TYP, [UNIT_VON] = @UNIT_VON, [UNIT_BIS] = @UNIT_BIS, [DAU] = @DAU, [DAU_VON] = @DAU_VON, [DAU_BIS] = @DAU_BIS WHERE [PRE_ID] = @PRE_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_preis]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_preis] GO CREATE PROCEDURE [dbo].[tdb_Read_preis] @PRE_ID int AS SET NOCOUNT ON SELECT [PRE_ID], [APR], [EPR], [VPR], [GLT], [WHR_ID], [KBST], [KAR_ID], [DLTT_ID], [KAT_ID], [RKR_ID], [DLA_ID], [ARR_ID], [DL_ID], [EXT_ID], [DL_VONDAT], [DL_BISDAT], [KONT_ID], [STA_ID], [TEXTID], [HISTORY], [SAI_ID], [UNIT_TYP], [UNIT_VON], [UNIT_BIS], [DAU], [DAU_VON], [DAU_BIS] FROM [preis] WHERE [PRE_ID] = @PRE_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_preis]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_preis] GO CREATE PROCEDURE [dbo].[tdb_Delete_preis] @PRE_ID int AS SET NOCOUNT ON DELETE FROM [preis] WHERE [PRE_ID] = @PRE_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_preis]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_preis] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_preis] AS SET NOCOUNT ON SELECT [PRE_ID], [APR], [EPR], [VPR], [GLT], [WHR_ID], [KBST], [KAR_ID], [DLTT_ID], [KAT_ID], [RKR_ID], [DLA_ID], [ARR_ID], [DL_ID], [EXT_ID], [DL_VONDAT], [DL_BISDAT], [KONT_ID], [STA_ID], [TEXTID], [HISTORY], [SAI_ID], [UNIT_TYP], [UNIT_VON], [UNIT_BIS], [DAU], [DAU_VON], [DAU_BIS] FROM [preis] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_preis_ByFK_WHR_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_preis_ByFK_WHR_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_preis_ByFK_WHR_ID] @WHR_ID int AS SET NOCOUNT ON SELECT [PRE_ID], [APR], [EPR], [VPR], [GLT], [WHR_ID], [KBST], [KAR_ID], [DLTT_ID], [KAT_ID], [RKR_ID], [DLA_ID], [ARR_ID], [DL_ID], [EXT_ID], [DL_VONDAT], [DL_BISDAT], [KONT_ID], [STA_ID], [TEXTID], [HISTORY], [SAI_ID], [UNIT_TYP], [UNIT_VON], [UNIT_BIS], [DAU], [DAU_VON], [DAU_BIS] FROM [preis] WHERE [WHR_ID] = @WHR_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_preis_ByFK_KBST]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_preis_ByFK_KBST] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_preis_ByFK_KBST] @KBST int AS SET NOCOUNT ON SELECT [PRE_ID], [APR], [EPR], [VPR], [GLT], [WHR_ID], [KBST], [KAR_ID], [DLTT_ID], [KAT_ID], [RKR_ID], [DLA_ID], [ARR_ID], [DL_ID], [EXT_ID], [DL_VONDAT], [DL_BISDAT], [KONT_ID], [STA_ID], [TEXTID], [HISTORY], [SAI_ID], [UNIT_TYP], [UNIT_VON], [UNIT_BIS], [DAU], [DAU_VON], [DAU_BIS] FROM [preis] WHERE [KBST] = @KBST GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_preis_ByFK_KAR_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_preis_ByFK_KAR_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_preis_ByFK_KAR_ID] @KAR_ID int AS SET NOCOUNT ON SELECT [PRE_ID], [APR], [EPR], [VPR], [GLT], [WHR_ID], [KBST], [KAR_ID], [DLTT_ID], [KAT_ID], [RKR_ID], [DLA_ID], [ARR_ID], [DL_ID], [EXT_ID], [DL_VONDAT], [DL_BISDAT], [KONT_ID], [STA_ID], [TEXTID], [HISTORY], [SAI_ID], [UNIT_TYP], [UNIT_VON], [UNIT_BIS], [DAU], [DAU_VON], [DAU_BIS] FROM [preis] WHERE [KAR_ID] = @KAR_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_preis_ByFK_DLTT_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_preis_ByFK_DLTT_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_preis_ByFK_DLTT_ID] @DLTT_ID int AS SET NOCOUNT ON SELECT [PRE_ID], [APR], [EPR], [VPR], [GLT], [WHR_ID], [KBST], [KAR_ID], [DLTT_ID], [KAT_ID], [RKR_ID], [DLA_ID], [ARR_ID], [DL_ID], [EXT_ID], [DL_VONDAT], [DL_BISDAT], [KONT_ID], [STA_ID], [TEXTID], [HISTORY], [SAI_ID], [UNIT_TYP], [UNIT_VON], [UNIT_BIS], [DAU], [DAU_VON], [DAU_BIS] FROM [preis] WHERE [DLTT_ID] = @DLTT_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_preis_ByFK_KAT_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_preis_ByFK_KAT_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_preis_ByFK_KAT_ID] @KAT_ID int AS SET NOCOUNT ON SELECT [PRE_ID], [APR], [EPR], [VPR], [GLT], [WHR_ID], [KBST], [KAR_ID], [DLTT_ID], [KAT_ID], [RKR_ID], [DLA_ID], [ARR_ID], [DL_ID], [EXT_ID], [DL_VONDAT], [DL_BISDAT], [KONT_ID], [STA_ID], [TEXTID], [HISTORY], [SAI_ID], [UNIT_TYP], [UNIT_VON], [UNIT_BIS], [DAU], [DAU_VON], [DAU_BIS] FROM [preis] WHERE [KAT_ID] = @KAT_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_preis_ByFK_RKR_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_preis_ByFK_RKR_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_preis_ByFK_RKR_ID] @RKR_ID int AS SET NOCOUNT ON SELECT [PRE_ID], [APR], [EPR], [VPR], [GLT], [WHR_ID], [KBST], [KAR_ID], [DLTT_ID], [KAT_ID], [RKR_ID], [DLA_ID], [ARR_ID], [DL_ID], [EXT_ID], [DL_VONDAT], [DL_BISDAT], [KONT_ID], [STA_ID], [TEXTID], [HISTORY], [SAI_ID], [UNIT_TYP], [UNIT_VON], [UNIT_BIS], [DAU], [DAU_VON], [DAU_BIS] FROM [preis] WHERE [RKR_ID] = @RKR_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_preis_ByFK_DLA_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_preis_ByFK_DLA_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_preis_ByFK_DLA_ID] @DLA_ID int AS SET NOCOUNT ON SELECT [PRE_ID], [APR], [EPR], [VPR], [GLT], [WHR_ID], [KBST], [KAR_ID], [DLTT_ID], [KAT_ID], [RKR_ID], [DLA_ID], [ARR_ID], [DL_ID], [EXT_ID], [DL_VONDAT], [DL_BISDAT], [KONT_ID], [STA_ID], [TEXTID], [HISTORY], [SAI_ID], [UNIT_TYP], [UNIT_VON], [UNIT_BIS], [DAU], [DAU_VON], [DAU_BIS] FROM [preis] WHERE [DLA_ID] = @DLA_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_preis_ByFK_DL_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_preis_ByFK_DL_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_preis_ByFK_DL_ID] @DL_ID int AS SET NOCOUNT ON SELECT [PRE_ID], [APR], [EPR], [VPR], [GLT], [WHR_ID], [KBST], [KAR_ID], [DLTT_ID], [KAT_ID], [RKR_ID], [DLA_ID], [ARR_ID], [DL_ID], [EXT_ID], [DL_VONDAT], [DL_BISDAT], [KONT_ID], [STA_ID], [TEXTID], [HISTORY], [SAI_ID], [UNIT_TYP], [UNIT_VON], [UNIT_BIS], [DAU], [DAU_VON], [DAU_BIS] FROM [preis] WHERE [DL_ID] = @DL_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_preis_ByFK_KONT_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_preis_ByFK_KONT_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_preis_ByFK_KONT_ID] @KONT_ID int AS SET NOCOUNT ON SELECT [PRE_ID], [APR], [EPR], [VPR], [GLT], [WHR_ID], [KBST], [KAR_ID], [DLTT_ID], [KAT_ID], [RKR_ID], [DLA_ID], [ARR_ID], [DL_ID], [EXT_ID], [DL_VONDAT], [DL_BISDAT], [KONT_ID], [STA_ID], [TEXTID], [HISTORY], [SAI_ID], [UNIT_TYP], [UNIT_VON], [UNIT_BIS], [DAU], [DAU_VON], [DAU_BIS] FROM [preis] WHERE [KONT_ID] = @KONT_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_preis_ByFK_SAI_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_preis_ByFK_SAI_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_preis_ByFK_SAI_ID] @SAI_ID int AS SET NOCOUNT ON SELECT [PRE_ID], [APR], [EPR], [VPR], [GLT], [WHR_ID], [KBST], [KAR_ID], [DLTT_ID], [KAT_ID], [RKR_ID], [DLA_ID], [ARR_ID], [DL_ID], [EXT_ID], [DL_VONDAT], [DL_BISDAT], [KONT_ID], [STA_ID], [TEXTID], [HISTORY], [SAI_ID], [UNIT_TYP], [UNIT_VON], [UNIT_BIS], [DAU], [DAU_VON], [DAU_BIS] FROM [preis] WHERE [SAI_ID] = @SAI_ID GO --[End of Stored Procedure for table: preis] --=============================================================== --=============================================================== --[Stored Procedure generated for table: programm] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_programm]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_programm] GO CREATE PROCEDURE [dbo].[tdb_Insert_programm] @PRG_ID int, @CODE varchar(256), @BEZ_ID int, @TEXTID int, @SAI_ID int AS SET NOCOUNT ON INSERT INTO programm ( [PRG_ID], [CODE], [BEZ_ID], [TEXTID], [SAI_ID] ) VALUES ( @PRG_ID, @CODE, @BEZ_ID, @TEXTID, @SAI_ID ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_programm]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_programm] GO CREATE PROCEDURE [dbo].[tdb_Update_programm] @PRG_ID int, @CODE varchar(256), @BEZ_ID int, @TEXTID int, @SAI_ID int AS SET NOCOUNT ON UPDATE [programm] SET [CODE] = @CODE, [BEZ_ID] = @BEZ_ID, [TEXTID] = @TEXTID, [SAI_ID] = @SAI_ID WHERE [PRG_ID] = @PRG_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_programm]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_programm] GO CREATE PROCEDURE [dbo].[tdb_Read_programm] @PRG_ID int AS SET NOCOUNT ON SELECT [PRG_ID], [CODE], [BEZ_ID], [TEXTID], [SAI_ID] FROM [programm] WHERE [PRG_ID] = @PRG_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_programm]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_programm] GO CREATE PROCEDURE [dbo].[tdb_Delete_programm] @PRG_ID int AS SET NOCOUNT ON DELETE FROM [programm] WHERE [PRG_ID] = @PRG_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_programm]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_programm] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_programm] AS SET NOCOUNT ON SELECT [PRG_ID], [CODE], [BEZ_ID], [TEXTID], [SAI_ID] FROM [programm] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_programm_ByFK_SAI_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_programm_ByFK_SAI_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_programm_ByFK_SAI_ID] @SAI_ID int AS SET NOCOUNT ON SELECT [PRG_ID], [CODE], [BEZ_ID], [TEXTID], [SAI_ID] FROM [programm] WHERE [SAI_ID] = @SAI_ID GO --[End of Stored Procedure for table: programm] --=============================================================== --=============================================================== --[Stored Procedure generated for table: regions] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_regions]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_regions] GO CREATE PROCEDURE [dbo].[tdb_Insert_regions] @HOST_ID int, @H_DLT_ID int, @DLT_ID int, @FOLGE int, @STUFE int, @NUMMER int AS SET NOCOUNT ON INSERT INTO regions ( [HOST_ID], [H_DLT_ID], [DLT_ID], [FOLGE], [STUFE], [NUMMER] ) VALUES ( @HOST_ID, @H_DLT_ID, @DLT_ID, @FOLGE, @STUFE, @NUMMER ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_regions]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_regions] GO CREATE PROCEDURE [dbo].[tdb_Update_regions] @HOST_ID int, @H_DLT_ID int, @DLT_ID int, @FOLGE int, @STUFE int, @NUMMER int AS SET NOCOUNT ON UPDATE [regions] SET [STUFE] = @STUFE, [NUMMER] = @NUMMER WHERE [HOST_ID] = @HOST_ID AND [H_DLT_ID] = @H_DLT_ID AND [DLT_ID] = @DLT_ID AND [FOLGE] = @FOLGE GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_regions]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_regions] GO CREATE PROCEDURE [dbo].[tdb_Read_regions] @HOST_ID int, @H_DLT_ID int, @DLT_ID int, @FOLGE int AS SET NOCOUNT ON SELECT [HOST_ID], [H_DLT_ID], [DLT_ID], [FOLGE], [STUFE], [NUMMER] FROM [regions] WHERE [HOST_ID] = @HOST_ID AND [H_DLT_ID] = @H_DLT_ID AND [DLT_ID] = @DLT_ID AND [FOLGE] = @FOLGE GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_regions]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_regions] GO CREATE PROCEDURE [dbo].[tdb_Delete_regions] @HOST_ID int, @H_DLT_ID int, @DLT_ID int, @FOLGE int AS SET NOCOUNT ON DELETE FROM [regions] WHERE [HOST_ID] = @HOST_ID AND [H_DLT_ID] = @H_DLT_ID AND [DLT_ID] = @DLT_ID AND [FOLGE] = @FOLGE GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_regions]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_regions] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_regions] AS SET NOCOUNT ON SELECT [HOST_ID], [H_DLT_ID], [DLT_ID], [FOLGE], [STUFE], [NUMMER] FROM [regions] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_regions_ByFK_DLT_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_regions_ByFK_DLT_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_regions_ByFK_DLT_ID] @DLT_ID int AS SET NOCOUNT ON SELECT [HOST_ID], [H_DLT_ID], [DLT_ID], [FOLGE], [STUFE], [NUMMER] FROM [regions] WHERE [DLT_ID] = @DLT_ID GO --[End of Stored Procedure for table: regions] --=============================================================== --=============================================================== --[Stored Procedure generated for table: reisender] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_reisender]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_reisender] GO CREATE PROCEDURE [dbo].[tdb_Insert_reisender] @PERS_ID int, @VOR varchar(512), @RKR_ID int, @SEX int, @MUTTERS_ID int, @AGE varchar(256), @PASSNR varchar(256), @ATTR1 varchar(1024), @ATTR2 varchar(1024), @TEXTID int AS SET NOCOUNT ON INSERT INTO reisender ( [PERS_ID], [VOR], [RKR_ID], [SEX], [MUTTERS_ID], [AGE], [PASSNR], [ATTR1], [ATTR2], [TEXTID] ) VALUES ( @PERS_ID, @VOR, @RKR_ID, @SEX, @MUTTERS_ID, @AGE, @PASSNR, @ATTR1, @ATTR2, @TEXTID ) GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_reisender]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_reisender] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_reisender] AS SET NOCOUNT ON SELECT [PERS_ID], [VOR], [RKR_ID], [SEX], [MUTTERS_ID], [AGE], [PASSNR], [ATTR1], [ATTR2], [TEXTID] FROM [reisender] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_reisender_ByFK_PERS_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_reisender_ByFK_PERS_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_reisender_ByFK_PERS_ID] @PERS_ID int AS SET NOCOUNT ON SELECT [PERS_ID], [VOR], [RKR_ID], [SEX], [MUTTERS_ID], [AGE], [PASSNR], [ATTR1], [ATTR2], [TEXTID] FROM [reisender] WHERE [PERS_ID] = @PERS_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_reisender_ByFK_RKR_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_reisender_ByFK_RKR_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_reisender_ByFK_RKR_ID] @RKR_ID int AS SET NOCOUNT ON SELECT [PERS_ID], [VOR], [RKR_ID], [SEX], [MUTTERS_ID], [AGE], [PASSNR], [ATTR1], [ATTR2], [TEXTID] FROM [reisender] WHERE [RKR_ID] = @RKR_ID GO --[End of Stored Procedure for table: reisender] --=============================================================== --=============================================================== --[Stored Procedure generated for table: reisender_typ] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_reisender_typ]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_reisender_typ] GO CREATE PROCEDURE [dbo].[tdb_Insert_reisender_typ] @RKR_ID int, @DLNCODE varchar(256), @BEZ_ID int, @VONALTER int, @BISALTER int, @TEXTID int AS SET NOCOUNT ON INSERT INTO reisender_typ ( [RKR_ID], [DLNCODE], [BEZ_ID], [VONALTER], [BISALTER], [TEXTID] ) VALUES ( @RKR_ID, @DLNCODE, @BEZ_ID, @VONALTER, @BISALTER, @TEXTID ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_reisender_typ]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_reisender_typ] GO CREATE PROCEDURE [dbo].[tdb_Update_reisender_typ] @RKR_ID int, @DLNCODE varchar(256), @BEZ_ID int, @VONALTER int, @BISALTER int, @TEXTID int AS SET NOCOUNT ON UPDATE [reisender_typ] SET [DLNCODE] = @DLNCODE, [BEZ_ID] = @BEZ_ID, [VONALTER] = @VONALTER, [BISALTER] = @BISALTER, [TEXTID] = @TEXTID WHERE [RKR_ID] = @RKR_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_reisender_typ]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_reisender_typ] GO CREATE PROCEDURE [dbo].[tdb_Read_reisender_typ] @RKR_ID int AS SET NOCOUNT ON SELECT [RKR_ID], [DLNCODE], [BEZ_ID], [VONALTER], [BISALTER], [TEXTID] FROM [reisender_typ] WHERE [RKR_ID] = @RKR_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_reisender_typ]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_reisender_typ] GO CREATE PROCEDURE [dbo].[tdb_Delete_reisender_typ] @RKR_ID int AS SET NOCOUNT ON DELETE FROM [reisender_typ] WHERE [RKR_ID] = @RKR_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_reisender_typ]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_reisender_typ] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_reisender_typ] AS SET NOCOUNT ON SELECT [RKR_ID], [DLNCODE], [BEZ_ID], [VONALTER], [BISALTER], [TEXTID] FROM [reisender_typ] GO --[End of Stored Procedure for table: reisender_typ] --=============================================================== --=============================================================== --[Stored Procedure generated for table: reservation] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_reservation]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_reservation] GO CREATE PROCEDURE [dbo].[tdb_Insert_reservation] @PERS_ID int, @DLG_ID int, @DL_ID int, @TEIL int, @DLT_ID int, @TYP_ID int, @BID int, @KONT_ID int, @KAT_ID int, @K_KON int, @B_KON int, @R_STA int, @SAI_ID int, @A_ZEIT int, @E_ZEIT int, @TEXTID int AS SET NOCOUNT ON INSERT INTO reservation ( [PERS_ID], [DLG_ID], [DL_ID], [TEIL], [DLT_ID], [TYP_ID], [BID], [KONT_ID], [KAT_ID], [K_KON], [B_KON], [R_STA], [SAI_ID], [A_ZEIT], [E_ZEIT], [TEXTID] ) VALUES ( @PERS_ID, @DLG_ID, @DL_ID, @TEIL, @DLT_ID, @TYP_ID, @BID, @KONT_ID, @KAT_ID, @K_KON, @B_KON, @R_STA, @SAI_ID, @A_ZEIT, @E_ZEIT, @TEXTID ) GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_reservation]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_reservation] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_reservation] AS SET NOCOUNT ON SELECT [PERS_ID], [DLG_ID], [DL_ID], [TEIL], [DLT_ID], [TYP_ID], [BID], [KONT_ID], [KAT_ID], [K_KON], [B_KON], [R_STA], [SAI_ID], [A_ZEIT], [E_ZEIT], [TEXTID] FROM [reservation] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_reservation_ByFK_PERS_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_reservation_ByFK_PERS_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_reservation_ByFK_PERS_ID] @PERS_ID int AS SET NOCOUNT ON SELECT [PERS_ID], [DLG_ID], [DL_ID], [TEIL], [DLT_ID], [TYP_ID], [BID], [KONT_ID], [KAT_ID], [K_KON], [B_KON], [R_STA], [SAI_ID], [A_ZEIT], [E_ZEIT], [TEXTID] FROM [reservation] WHERE [PERS_ID] = @PERS_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_reservation_ByFK_DLG_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_reservation_ByFK_DLG_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_reservation_ByFK_DLG_ID] @DLG_ID int AS SET NOCOUNT ON SELECT [PERS_ID], [DLG_ID], [DL_ID], [TEIL], [DLT_ID], [TYP_ID], [BID], [KONT_ID], [KAT_ID], [K_KON], [B_KON], [R_STA], [SAI_ID], [A_ZEIT], [E_ZEIT], [TEXTID] FROM [reservation] WHERE [DLG_ID] = @DLG_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_reservation_ByFK_DL_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_reservation_ByFK_DL_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_reservation_ByFK_DL_ID] @DL_ID int AS SET NOCOUNT ON SELECT [PERS_ID], [DLG_ID], [DL_ID], [TEIL], [DLT_ID], [TYP_ID], [BID], [KONT_ID], [KAT_ID], [K_KON], [B_KON], [R_STA], [SAI_ID], [A_ZEIT], [E_ZEIT], [TEXTID] FROM [reservation] WHERE [DL_ID] = @DL_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_reservation_ByFK_DLT_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_reservation_ByFK_DLT_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_reservation_ByFK_DLT_ID] @DLT_ID int AS SET NOCOUNT ON SELECT [PERS_ID], [DLG_ID], [DL_ID], [TEIL], [DLT_ID], [TYP_ID], [BID], [KONT_ID], [KAT_ID], [K_KON], [B_KON], [R_STA], [SAI_ID], [A_ZEIT], [E_ZEIT], [TEXTID] FROM [reservation] WHERE [DLT_ID] = @DLT_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_reservation_ByFK_TYP_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_reservation_ByFK_TYP_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_reservation_ByFK_TYP_ID] @TYP_ID int AS SET NOCOUNT ON SELECT [PERS_ID], [DLG_ID], [DL_ID], [TEIL], [DLT_ID], [TYP_ID], [BID], [KONT_ID], [KAT_ID], [K_KON], [B_KON], [R_STA], [SAI_ID], [A_ZEIT], [E_ZEIT], [TEXTID] FROM [reservation] WHERE [TYP_ID] = @TYP_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_reservation_ByFK_BID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_reservation_ByFK_BID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_reservation_ByFK_BID] @BID int AS SET NOCOUNT ON SELECT [PERS_ID], [DLG_ID], [DL_ID], [TEIL], [DLT_ID], [TYP_ID], [BID], [KONT_ID], [KAT_ID], [K_KON], [B_KON], [R_STA], [SAI_ID], [A_ZEIT], [E_ZEIT], [TEXTID] FROM [reservation] WHERE [BID] = @BID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_reservation_ByFK_KONT_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_reservation_ByFK_KONT_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_reservation_ByFK_KONT_ID] @KONT_ID int AS SET NOCOUNT ON SELECT [PERS_ID], [DLG_ID], [DL_ID], [TEIL], [DLT_ID], [TYP_ID], [BID], [KONT_ID], [KAT_ID], [K_KON], [B_KON], [R_STA], [SAI_ID], [A_ZEIT], [E_ZEIT], [TEXTID] FROM [reservation] WHERE [KONT_ID] = @KONT_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_reservation_ByFK_KAT_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_reservation_ByFK_KAT_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_reservation_ByFK_KAT_ID] @KAT_ID int AS SET NOCOUNT ON SELECT [PERS_ID], [DLG_ID], [DL_ID], [TEIL], [DLT_ID], [TYP_ID], [BID], [KONT_ID], [KAT_ID], [K_KON], [B_KON], [R_STA], [SAI_ID], [A_ZEIT], [E_ZEIT], [TEXTID] FROM [reservation] WHERE [KAT_ID] = @KAT_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_reservation_ByFK_SAI_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_reservation_ByFK_SAI_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_reservation_ByFK_SAI_ID] @SAI_ID int AS SET NOCOUNT ON SELECT [PERS_ID], [DLG_ID], [DL_ID], [TEIL], [DLT_ID], [TYP_ID], [BID], [KONT_ID], [KAT_ID], [K_KON], [B_KON], [R_STA], [SAI_ID], [A_ZEIT], [E_ZEIT], [TEXTID] FROM [reservation] WHERE [SAI_ID] = @SAI_ID GO --[End of Stored Procedure for table: reservation] --=============================================================== --=============================================================== --[Stored Procedure generated for table: saison] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_saison]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_saison] GO CREATE PROCEDURE [dbo].[tdb_Insert_saison] @SAI_ID int, @CODE varchar(256), @BEZ_ID int, @VON int, @BIS int, @TEXTID int AS SET NOCOUNT ON INSERT INTO saison ( [SAI_ID], [CODE], [BEZ_ID], [VON], [BIS], [TEXTID] ) VALUES ( @SAI_ID, @CODE, @BEZ_ID, @VON, @BIS, @TEXTID ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_saison]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_saison] GO CREATE PROCEDURE [dbo].[tdb_Update_saison] @SAI_ID int, @CODE varchar(256), @BEZ_ID int, @VON int, @BIS int, @TEXTID int AS SET NOCOUNT ON UPDATE [saison] SET [CODE] = @CODE, [BEZ_ID] = @BEZ_ID, [VON] = @VON, [BIS] = @BIS, [TEXTID] = @TEXTID WHERE [SAI_ID] = @SAI_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_saison]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_saison] GO CREATE PROCEDURE [dbo].[tdb_Read_saison] @SAI_ID int AS SET NOCOUNT ON SELECT [SAI_ID], [CODE], [BEZ_ID], [VON], [BIS], [TEXTID] FROM [saison] WHERE [SAI_ID] = @SAI_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_saison]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_saison] GO CREATE PROCEDURE [dbo].[tdb_Delete_saison] @SAI_ID int AS SET NOCOUNT ON DELETE FROM [saison] WHERE [SAI_ID] = @SAI_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_saison]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_saison] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_saison] AS SET NOCOUNT ON SELECT [SAI_ID], [CODE], [BEZ_ID], [VON], [BIS], [TEXTID] FROM [saison] GO --[End of Stored Procedure for table: saison] --=============================================================== --=============================================================== --[Stored Procedure generated for table: sprachen] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_sprachen]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_sprachen] GO CREATE PROCEDURE [dbo].[tdb_Insert_sprachen] @S_ID int, @BEZ_ID int, @DIALOG int, @SYSBEZ varchar(256), @OUTPUT int, @GUI int AS SET NOCOUNT ON INSERT INTO sprachen ( [S_ID], [BEZ_ID], [DIALOG], [SYSBEZ], [OUTPUT], [GUI] ) VALUES ( @S_ID, @BEZ_ID, @DIALOG, @SYSBEZ, @OUTPUT, @GUI ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_sprachen]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_sprachen] GO CREATE PROCEDURE [dbo].[tdb_Update_sprachen] @S_ID int, @BEZ_ID int, @DIALOG int, @SYSBEZ varchar(256), @OUTPUT int, @GUI int AS SET NOCOUNT ON UPDATE [sprachen] SET [BEZ_ID] = @BEZ_ID, [DIALOG] = @DIALOG, [SYSBEZ] = @SYSBEZ, [OUTPUT] = @OUTPUT, [GUI] = @GUI WHERE [S_ID] = @S_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_sprachen]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_sprachen] GO CREATE PROCEDURE [dbo].[tdb_Read_sprachen] @S_ID int AS SET NOCOUNT ON SELECT [S_ID], [BEZ_ID], [DIALOG], [SYSBEZ], [OUTPUT], [GUI] FROM [sprachen] WHERE [S_ID] = @S_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_sprachen]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_sprachen] GO CREATE PROCEDURE [dbo].[tdb_Delete_sprachen] @S_ID int AS SET NOCOUNT ON DELETE FROM [sprachen] WHERE [S_ID] = @S_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_sprachen]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_sprachen] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_sprachen] AS SET NOCOUNT ON SELECT [S_ID], [BEZ_ID], [DIALOG], [SYSBEZ], [OUTPUT], [GUI] FROM [sprachen] GO --[End of Stored Procedure for table: sprachen] --=============================================================== --=============================================================== --[Stored Procedure generated for table: status_werte] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_status_werte]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_status_werte] GO CREATE PROCEDURE [dbo].[tdb_Insert_status_werte] @STA_ID int, @ABK varchar(256), @STA varchar(1024), @BEZ_ID int, @KOND float(53), @TYP int AS SET NOCOUNT ON INSERT INTO status_werte ( [STA_ID], [ABK], [STA], [BEZ_ID], [KOND], [TYP] ) VALUES ( @STA_ID, @ABK, @STA, @BEZ_ID, @KOND, @TYP ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_status_werte]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_status_werte] GO CREATE PROCEDURE [dbo].[tdb_Update_status_werte] @STA_ID int, @ABK varchar(256), @STA varchar(1024), @BEZ_ID int, @KOND float(53), @TYP int AS SET NOCOUNT ON UPDATE [status_werte] SET [ABK] = @ABK, [STA] = @STA, [BEZ_ID] = @BEZ_ID, [KOND] = @KOND WHERE [STA_ID] = @STA_ID AND [TYP] = @TYP GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_status_werte]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_status_werte] GO CREATE PROCEDURE [dbo].[tdb_Read_status_werte] @STA_ID int, @TYP int AS SET NOCOUNT ON SELECT [STA_ID], [ABK], [STA], [BEZ_ID], [KOND], [TYP] FROM [status_werte] WHERE [STA_ID] = @STA_ID AND [TYP] = @TYP GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_status_werte]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_status_werte] GO CREATE PROCEDURE [dbo].[tdb_Delete_status_werte] @STA_ID int, @TYP int AS SET NOCOUNT ON DELETE FROM [status_werte] WHERE [STA_ID] = @STA_ID AND [TYP] = @TYP GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_status_werte]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_status_werte] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_status_werte] AS SET NOCOUNT ON SELECT [STA_ID], [ABK], [STA], [BEZ_ID], [KOND], [TYP] FROM [status_werte] GO --[End of Stored Procedure for table: status_werte] --=============================================================== --=============================================================== --[Stored Procedure generated for table: texte] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_texte]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_texte] GO CREATE PROCEDURE [dbo].[tdb_Insert_texte] @TEXTID int, @S_ID int, @TEXTNR int, @TEXT varchar(1024), @TYP int AS SET NOCOUNT ON INSERT INTO texte ( [TEXTID], [S_ID], [TEXTNR], [TEXT], [TYP] ) VALUES ( @TEXTID, @S_ID, @TEXTNR, @TEXT, @TYP ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_texte]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_texte] GO CREATE PROCEDURE [dbo].[tdb_Update_texte] @TEXTID int, @S_ID int, @TEXTNR int, @TEXT varchar(1024), @TYP int AS SET NOCOUNT ON UPDATE [texte] SET [TEXT] = @TEXT WHERE [TEXTID] = @TEXTID AND [S_ID] = @S_ID AND [TEXTNR] = @TEXTNR AND [TYP] = @TYP GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_texte]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_texte] GO CREATE PROCEDURE [dbo].[tdb_Read_texte] @TEXTID int, @S_ID int, @TEXTNR int, @TYP int AS SET NOCOUNT ON SELECT [TEXTID], [S_ID], [TEXTNR], [TEXT], [TYP] FROM [texte] WHERE [TEXTID] = @TEXTID AND [S_ID] = @S_ID AND [TEXTNR] = @TEXTNR AND [TYP] = @TYP GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_texte]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_texte] GO CREATE PROCEDURE [dbo].[tdb_Delete_texte] @TEXTID int, @S_ID int, @TEXTNR int, @TYP int AS SET NOCOUNT ON DELETE FROM [texte] WHERE [TEXTID] = @TEXTID AND [S_ID] = @S_ID AND [TEXTNR] = @TEXTNR AND [TYP] = @TYP GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_texte]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_texte] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_texte] AS SET NOCOUNT ON SELECT [TEXTID], [S_ID], [TEXTNR], [TEXT], [TYP] FROM [texte] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_texte_ByFK_S_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_texte_ByFK_S_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_texte_ByFK_S_ID] @S_ID int AS SET NOCOUNT ON SELECT [TEXTID], [S_ID], [TEXTNR], [TEXT], [TYP] FROM [texte] WHERE [S_ID] = @S_ID GO --[End of Stored Procedure for table: texte] --=============================================================== --=============================================================== --[Stored Procedure generated for table: tmp_bezeichnung] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_tmp_bezeichnung]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_tmp_bezeichnung] GO CREATE PROCEDURE [dbo].[tdb_Insert_tmp_bezeichnung] @BEZ_ID int, @S_ID int, @BEZ varchar(1024), @TYP int AS SET NOCOUNT ON INSERT INTO tmp_bezeichnung ( [BEZ_ID], [S_ID], [BEZ], [TYP] ) VALUES ( @BEZ_ID, @S_ID, @BEZ, @TYP ) GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tmp_bezeichnung]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tmp_bezeichnung] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tmp_bezeichnung] AS SET NOCOUNT ON SELECT [BEZ_ID], [S_ID], [BEZ], [TYP] FROM [tmp_bezeichnung] GO --[End of Stored Procedure for table: tmp_bezeichnung] --=============================================================== --=============================================================== --[Stored Procedure generated for table: tmp_texte] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_tmp_texte]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_tmp_texte] GO CREATE PROCEDURE [dbo].[tdb_Insert_tmp_texte] @TEXTID int, @S_ID int, @TEXTNR int, @TEXT varchar(1024), @TYP int AS SET NOCOUNT ON INSERT INTO tmp_texte ( [TEXTID], [S_ID], [TEXTNR], [TEXT], [TYP] ) VALUES ( @TEXTID, @S_ID, @TEXTNR, @TEXT, @TYP ) GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tmp_texte]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tmp_texte] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tmp_texte] AS SET NOCOUNT ON SELECT [TEXTID], [S_ID], [TEXTNR], [TEXT], [TYP] FROM [tmp_texte] GO --[End of Stored Procedure for table: tmp_texte] --=============================================================== --=============================================================== --[Stored Procedure generated for table: traeger_detail] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_traeger_detail]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_traeger_detail] GO CREATE PROCEDURE [dbo].[tdb_Insert_traeger_detail] @DLT_ID int, @FIRMA int AS SET NOCOUNT ON INSERT INTO traeger_detail ( [DLT_ID], [FIRMA] ) VALUES ( @DLT_ID, @FIRMA ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_traeger_detail]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_traeger_detail] GO CREATE PROCEDURE [dbo].[tdb_Update_traeger_detail] @DLT_ID int, @FIRMA int AS SET NOCOUNT ON UPDATE [traeger_detail] SET WHERE [DLT_ID] = @DLT_ID AND [FIRMA] = @FIRMA GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_traeger_detail]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_traeger_detail] GO CREATE PROCEDURE [dbo].[tdb_Read_traeger_detail] @DLT_ID int, @FIRMA int AS SET NOCOUNT ON SELECT [DLT_ID], [FIRMA] FROM [traeger_detail] WHERE [DLT_ID] = @DLT_ID AND [FIRMA] = @FIRMA GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_traeger_detail]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_traeger_detail] GO CREATE PROCEDURE [dbo].[tdb_Delete_traeger_detail] @DLT_ID int, @FIRMA int AS SET NOCOUNT ON DELETE FROM [traeger_detail] WHERE [DLT_ID] = @DLT_ID AND [FIRMA] = @FIRMA GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_traeger_detail]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_traeger_detail] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_traeger_detail] AS SET NOCOUNT ON SELECT [DLT_ID], [FIRMA] FROM [traeger_detail] GO -- //// Select All Stored Procedure Based On Foreign Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_traeger_detail_ByFK_DLT_ID]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_traeger_detail_ByFK_DLT_ID] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_traeger_detail_ByFK_DLT_ID] @DLT_ID int AS SET NOCOUNT ON SELECT [DLT_ID], [FIRMA] FROM [traeger_detail] WHERE [DLT_ID] = @DLT_ID GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_traeger_detail_ByFK_FIRMA]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_traeger_detail_ByFK_FIRMA] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_traeger_detail_ByFK_FIRMA] @FIRMA int AS SET NOCOUNT ON SELECT [DLT_ID], [FIRMA] FROM [traeger_detail] WHERE [FIRMA] = @FIRMA GO --[End of Stored Procedure for table: traeger_detail] --=============================================================== --=============================================================== --[Stored Procedure generated for table: traeger_typ] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_traeger_typ]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_traeger_typ] GO CREATE PROCEDURE [dbo].[tdb_Insert_traeger_typ] @TYP_ID int, @BEZ_ID int, @H_TYP_ID int, @HOST_TYP int, @TEXTID int AS SET NOCOUNT ON INSERT INTO traeger_typ ( [TYP_ID], [BEZ_ID], [H_TYP_ID], [HOST_TYP], [TEXTID] ) VALUES ( @TYP_ID, @BEZ_ID, @H_TYP_ID, @HOST_TYP, @TEXTID ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_traeger_typ]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_traeger_typ] GO CREATE PROCEDURE [dbo].[tdb_Update_traeger_typ] @TYP_ID int, @BEZ_ID int, @H_TYP_ID int, @HOST_TYP int, @TEXTID int AS SET NOCOUNT ON UPDATE [traeger_typ] SET [BEZ_ID] = @BEZ_ID, [H_TYP_ID] = @H_TYP_ID, [HOST_TYP] = @HOST_TYP, [TEXTID] = @TEXTID WHERE [TYP_ID] = @TYP_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_traeger_typ]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_traeger_typ] GO CREATE PROCEDURE [dbo].[tdb_Read_traeger_typ] @TYP_ID int AS SET NOCOUNT ON SELECT [TYP_ID], [BEZ_ID], [H_TYP_ID], [HOST_TYP], [TEXTID] FROM [traeger_typ] WHERE [TYP_ID] = @TYP_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_traeger_typ]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_traeger_typ] GO CREATE PROCEDURE [dbo].[tdb_Delete_traeger_typ] @TYP_ID int AS SET NOCOUNT ON DELETE FROM [traeger_typ] WHERE [TYP_ID] = @TYP_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_traeger_typ]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_traeger_typ] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_traeger_typ] AS SET NOCOUNT ON SELECT [TYP_ID], [BEZ_ID], [H_TYP_ID], [HOST_TYP], [TEXTID] FROM [traeger_typ] GO --[End of Stored Procedure for table: traeger_typ] --=============================================================== --=============================================================== --[Stored Procedure generated for table: waehrung] -- //// Insert Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Insert_waehrung]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Insert_waehrung] GO CREATE PROCEDURE [dbo].[tdb_Insert_waehrung] @WHR_ID int, @BEZ_ID int, @TEXTID int, @STATUS int, @KRZL varchar(256) AS SET NOCOUNT ON INSERT INTO waehrung ( [WHR_ID], [BEZ_ID], [TEXTID], [STATUS], [KRZL] ) VALUES ( @WHR_ID, @BEZ_ID, @TEXTID, @STATUS, @KRZL ) GO -- //// Update Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Update_waehrung]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Update_waehrung] GO CREATE PROCEDURE [dbo].[tdb_Update_waehrung] @WHR_ID int, @BEZ_ID int, @TEXTID int, @STATUS int, @KRZL varchar(256) AS SET NOCOUNT ON UPDATE [waehrung] SET [BEZ_ID] = @BEZ_ID, [TEXTID] = @TEXTID, [STATUS] = @STATUS, [KRZL] = @KRZL WHERE [WHR_ID] = @WHR_ID GO -- //// Select Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Read_waehrung]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Read_waehrung] GO CREATE PROCEDURE [dbo].[tdb_Read_waehrung] @WHR_ID int AS SET NOCOUNT ON SELECT [WHR_ID], [BEZ_ID], [TEXTID], [STATUS], [KRZL] FROM [waehrung] WHERE [WHR_ID] = @WHR_ID GO -- //// Delete Stored Procedure Based On Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_Delete_waehrung]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_Delete_waehrung] GO CREATE PROCEDURE [dbo].[tdb_Delete_waehrung] @WHR_ID int AS SET NOCOUNT ON DELETE FROM [waehrung] WHERE [WHR_ID] = @WHR_ID GO -- //// Select All Stored Procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_waehrung]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_waehrung] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_waehrung] AS SET NOCOUNT ON SELECT [WHR_ID], [BEZ_ID], [TEXTID], [STATUS], [KRZL] FROM [waehrung] GO --[End of Stored Procedure for table: waehrung] --=============================================================== if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_akt_detail_view]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_akt_detail_view] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_akt_detail_view] AS SET NOCOUNT ON SELECT [BID], [PERS_ID], [DLG_ID], [DL_ID], [TEIL], [Z_FLAG], [AKT_ID], [ORD], [A_FLAG], [M_FLAG], [A_TYP_ID], [PROZ] FROM [akt_detail_view] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_akt_view]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_akt_view] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_akt_view] AS SET NOCOUNT ON SELECT [ID], [BEZ], [UBEZ], [ORD], [SPR] FROM [akt_view] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_arr_dl_view]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_arr_dl_view] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_arr_dl_view] AS SET NOCOUNT ON SELECT [ARR_ID], [A_DAT], [DLG_ID], [BEZ], [A_ZEIT], [TEIL], [PRIO], [AKT_ID], [S_ID] FROM [arr_dl_view] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_arr_dlg_view]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_arr_dlg_view] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_arr_dlg_view] AS SET NOCOUNT ON SELECT [ARR_ID], [TEIL], [PRIO], [DLG_ID], [DL_ID], [ORD], [A_ZEIT], [RES_F], [BEZ], [BEZ1], [S_ID], [DTG_ZEIT] FROM [arr_dlg_view] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_arr_view]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_arr_view] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_arr_view] AS SET NOCOUNT ON SELECT [ARR_ID], [BEZ], [S_ID], [A_DAT], [PRG_ID], [TEXTID], [SAI_ID] FROM [arr_view] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_dl_dlg_view]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_dl_dlg_view] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_dl_dlg_view] AS SET NOCOUNT ON SELECT [DLG_ID], [START_ZEIT], [DL_ID], [BEZ], [A_ZEIT], [E_ZEIT], [ORD], [RES_F], [S_ID] FROM [dl_dlg_view] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_dla_view]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_dla_view] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_dla_view] AS SET NOCOUNT ON SELECT [DLA_ID], [H_DLA_ID], [ORD], [DLT_ID], [BEZ], [S_ID], [AKT_ID], [ORT], [ART_ID], [DAU], [TEXTID], [VON], [NACH] FROM [dla_view] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_dlg_view]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_dlg_view] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_dlg_view] AS SET NOCOUNT ON SELECT [DL_ID], [H_DL_ID], [DLA_ID], [BEZ], [S_ID], [ORD], [A_ZEIT], [E_ZEIT], [RES_F], [KID], [KONTO], [TEXTID], [SAI_ID] FROM [dlg_view] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_dln_view]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_dln_view] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_dln_view] AS SET NOCOUNT ON SELECT [DLN_ID], [NAME], [VOR], [ORT], [S_ID], [STA_ID], [TEXTID], [RKR_ID], [SEX], [EXT_TXT], [LAND_ID], [AGE], [PASSNR], [ATTR1], [ATTR2] FROM [dln_view] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_dlt_view]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_dlt_view] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_dlt_view] AS SET NOCOUNT ON SELECT [DLT_ID], [BEZ], [S_ID], [KAT_ID], [H_DLT_ID], [HOST_ID], [TYP_ID], [TEXTID], [STUFE] FROM [dlt_view] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_dtg_view]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_dtg_view] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_dtg_view] AS SET NOCOUNT ON SELECT [DLG_ID], [BEZ], [S_ID], [TEXTID], [SAI_ID], [A_ZEIT], [AKT_ID] FROM [dtg_view] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_gra_view]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_gra_view] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_gra_view] AS SET NOCOUNT ON SELECT [GRA_ID], [BEZ], [DLT_ID], [DLTBEZ], [TEXTID], [S_ID] FROM [gra_view] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_kar_view]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_kar_view] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_kar_view] AS SET NOCOUNT ON SELECT [KAR_ID], [BEZ], [S_ID], [TEXTID] FROM [kar_view] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_kat_view]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_kat_view] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_kat_view] AS SET NOCOUNT ON SELECT [KAT_ID], [BEZ], [S_ID], [H_KAT_ID], [TYP_ID], [GA], [TEXTID] FROM [kat_view] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_kon_view]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_kon_view] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_kon_view] AS SET NOCOUNT ON SELECT [KONT_ID], [BEZ], [S_ID], [HOSTKONT_ID], [KUNDEN_ID], [OPT_DAT], [REF], [SAI_ID], [TEXTID] FROM [kon_view] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_koncheck_view]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_koncheck_view] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_koncheck_view] AS SET NOCOUNT ON SELECT [HOSTKONT_ID], [KONT_ID], [KAT_ID], [DLT_ID], [ANZ], [BUSY] FROM [koncheck_view] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_kunden_view]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_kunden_view] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_kunden_view] AS SET NOCOUNT ON SELECT [KUN_ID], [NAME], [ORT], [S_ID], [STA_ID], [TEXTID], [KANT], [TEL], [FAX], [TLX], [KONTO], [LEITER], [ATTR1], [ATTR2], [K_TYP_ID], [LAND_ID], [WHR_ID] FROM [kunden_view] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_land_view]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_land_view] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_land_view] AS SET NOCOUNT ON SELECT [LAND_ID], [BEZ], [S_ID], [KRZL], [HAUPT_ORT], [HAUPT_SPR], [HAUPT_WHR], [TEXTID], [VAT] FROM [land_view] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp2000_kunden]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp2000_kunden] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp2000_kunden] AS SET NOCOUNT ON SELECT [PERS_ID], [NAME], [ADR1], [PLZ], [ORT], [LAND], [SPRACHE], [CODE], [WAEHRUNG], [VERSAND], [TEXT], [TEXTID], [S_ID], [TEL], [FAX], [EMAIL], [WEB], [KONTO], [TYP] FROM [mp2000_kunden] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mp2000_saison]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mp2000_saison] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mp2000_saison] AS SET NOCOUNT ON SELECT [SAI_ID], [BEZ_ID], [BEZ], [CODE], [VON], [BIS], [TEXT], [S_ID] FROM [mp2000_saison] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_MPV_AKT]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_MPV_AKT] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_MPV_AKT] AS SET NOCOUNT ON SELECT [ID], [BEZ], [UBEZ], [ORD], [SPR] FROM [MPV_AKT] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_MPV_AKT_DETAIL]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_MPV_AKT_DETAIL] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_MPV_AKT_DETAIL] AS SET NOCOUNT ON SELECT [BID], [PERS_ID], [DLG_ID], [DL_ID], [TEIL], [Z_FLAG], [AKT_ID], [ORD], [A_FLAG], [M_FLAG], [A_TYP_ID], [PROZ] FROM [MPV_AKT_DETAIL] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_MPV_ANGEBOT]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_MPV_ANGEBOT] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_MPV_ANGEBOT] AS SET NOCOUNT ON SELECT [ART_ID], [BEZ], [S_ID], [TEXTID] FROM [MPV_ANGEBOT] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_MPV_ARR]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_MPV_ARR] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_MPV_ARR] AS SET NOCOUNT ON SELECT [ARR_ID], [BEZ], [S_ID], [A_DAT], [PRG_ID], [TEXTID], [SAI_ID] FROM [MPV_ARR] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_MPV_ARR_DL]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_MPV_ARR_DL] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_MPV_ARR_DL] AS SET NOCOUNT ON SELECT [ARR_ID], [A_DAT], [DLG_ID], [BEZ], [A_ZEIT], [TEIL], [PRIO], [AKT_ID], [S_ID] FROM [MPV_ARR_DL] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_MPV_ARR_DLG]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_MPV_ARR_DLG] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_MPV_ARR_DLG] AS SET NOCOUNT ON SELECT [ARR_ID], [TEIL], [PRIO], [DLG_ID], [DL_ID], [ORD], [A_ZEIT], [RES_F], [BEZ], [BEZ1], [S_ID], [DTG_ZEIT] FROM [MPV_ARR_DLG] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mpv_buchung]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mpv_buchung] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mpv_buchung] AS SET NOCOUNT ON SELECT [D_BID], [BID], [REF], [ARR_ID], [KID], [SACH], [BCHST], [ANW], [B_DAT], [M_DAT], [MAPO_DAT], [MAPO_OPT_BST], [OPT_BST], [MAPO_OPT_KID], [OPT_KID], [STA], [AST], [SAI_ID], [K_ID], [HISTORY], [TEXTID] FROM [mpv_buchung] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_MPV_DL]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_MPV_DL] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_MPV_DL] AS SET NOCOUNT ON SELECT [DLG_ID], [BEZ], [S_ID], [TEXTID], [SAI_ID], [A_ZEIT], [AKT_ID] FROM [MPV_DL] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_MPV_DL_TDL]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_MPV_DL_TDL] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_MPV_DL_TDL] AS SET NOCOUNT ON SELECT [DLG_ID], [START_ZEIT], [DL_ID], [BEZ], [A_ZEIT], [E_ZEIT], [ORD], [RES_F], [S_ID] FROM [MPV_DL_TDL] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_MPV_DLA]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_MPV_DLA] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_MPV_DLA] AS SET NOCOUNT ON SELECT [DLA_ID], [H_DLA_ID], [ORD], [DLT_ID], [BEZ], [S_ID], [AKT_ID], [ORT], [ART_ID], [DAU], [TEXTID], [VON], [NACH] FROM [MPV_DLA] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_MPV_DLN]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_MPV_DLN] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_MPV_DLN] AS SET NOCOUNT ON SELECT [DLN_ID], [NAME], [VOR], [ORT], [S_ID], [STA_ID], [TEXTID], [RKR_ID], [SEX], [EXT_TXT], [LAND_ID], [AGE], [PASSNR], [ATTR1], [ATTR2] FROM [MPV_DLN] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mpv_dlnadr]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mpv_dlnadr] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mpv_dlnadr] AS SET NOCOUNT ON SELECT [PERS_ID], [ANS], [NAME], [VOR], [ADR1], [ADR2], [ADR3], [PLZ], [ORT], [LAND_ID], [STA_ID] FROM [mpv_dlnadr] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_MPV_DLT]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_MPV_DLT] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_MPV_DLT] AS SET NOCOUNT ON SELECT [DLT_ID], [BEZ], [S_ID], [KAT_ID], [H_DLT_ID], [HOST_ID], [TYP_ID], [TEXTID], [STUFE] FROM [MPV_DLT] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_MPV_GRA]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_MPV_GRA] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_MPV_GRA] AS SET NOCOUNT ON SELECT [GRA_ID], [BEZ], [DLT_ID], [DLTBEZ], [TEXTID], [S_ID] FROM [MPV_GRA] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mpv_kapa]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mpv_kapa] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mpv_kapa] AS SET NOCOUNT ON SELECT [KAT_ID], [KATBEZ], [KAT_S_ID], [TDL_ID], [TDLBEZ], [TDL_S_ID], [PRE_ID], [ANZ], [BUSY], [VPR] FROM [mpv_kapa] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mpv_kapadet]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mpv_kapadet] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mpv_kapadet] AS SET NOCOUNT ON SELECT [KAT_ID], [KATBEZ], [KAT_S_ID], [TDL_ID], [TDLBEZ], [A_ZEIT], [E_ZEIT], [TDL_S_ID], [PRE_ID], [ANZ], [BUSY], [VPR] FROM [mpv_kapadet] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_MPV_KAR]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_MPV_KAR] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_MPV_KAR] AS SET NOCOUNT ON SELECT [KAR_ID], [BEZ], [S_ID], [TEXTID] FROM [MPV_KAR] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_MPV_KAT]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_MPV_KAT] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_MPV_KAT] AS SET NOCOUNT ON SELECT [KAT_ID], [BEZ], [S_ID], [H_KAT_ID], [TYP_ID], [GA], [TEXTID] FROM [MPV_KAT] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_MPV_KON]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_MPV_KON] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_MPV_KON] AS SET NOCOUNT ON SELECT [KONT_ID], [BEZ], [S_ID], [HOSTKONT_ID], [KUNDEN_ID], [OPT_DAT], [REF], [SAI_ID], [TEXTID] FROM [MPV_KON] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_MPV_KONCHECK]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_MPV_KONCHECK] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_MPV_KONCHECK] AS SET NOCOUNT ON SELECT [HOSTKONT_ID], [KONT_ID], [KAT_ID], [DLT_ID], [ANZ], [BUSY] FROM [MPV_KONCHECK] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mpv_kunadr]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mpv_kunadr] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mpv_kunadr] AS SET NOCOUNT ON SELECT [PERS_ID], [ANS], [NAME], [ADR1], [ADR2], [ADR3], [PLZ], [ORT], [KANT], [LAND_ID], [STA_ID], [K_TYP_ID], [TEL], [FAX] FROM [mpv_kunadr] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_MPV_KUNDEN]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_MPV_KUNDEN] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_MPV_KUNDEN] AS SET NOCOUNT ON SELECT [KUN_ID], [NAME], [ORT], [S_ID], [STA_ID], [TEXTID], [KANT], [TEL], [FAX], [TLX], [KONTO], [LEITER], [ATTR1], [ATTR2], [K_TYP_ID], [LAND_ID], [WHR_ID] FROM [MPV_KUNDEN] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_MPV_LAND]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_MPV_LAND] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_MPV_LAND] AS SET NOCOUNT ON SELECT [LAND_ID], [BEZ], [S_ID], [KRZL], [HAUPT_ORT], [HAUPT_SPR], [HAUPT_WHR], [TEXTID], [VAT] FROM [MPV_LAND] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_MPV_LW]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_MPV_LW] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_MPV_LW] AS SET NOCOUNT ON SELECT [LAND_ID], [LANDBEZ], [LANDBEZS_ID], [WHR_ID], [WHRBEZ], [WHRBEZS_ID], [KURS_TYP], [A_KURS], [V_KURS] FROM [MPV_LW] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_MPV_ORT]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_MPV_ORT] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_MPV_ORT] AS SET NOCOUNT ON SELECT [ORT_ID], [BEZ], [S_ID], [KRZL], [LANDBEZ], [LANDBEZS_ID], [TEXTID], [ZEITVER], [KOORD1], [KOORD2] FROM [MPV_ORT] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mpv_prg]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mpv_prg] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mpv_prg] AS SET NOCOUNT ON SELECT [PRG_ID], [BEZ], [S_ID], [TEXTID], [SAI_ID] FROM [mpv_prg] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_MPV_RES_DL]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_MPV_RES_DL] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_MPV_RES_DL] AS SET NOCOUNT ON SELECT [BID], [PERS_ID], [NAME], [DL_ID], [DLAZEIT], [TDL_ID], [TDLAZEIT], [TDLEZEIT], [RESAZEIT], [RESEZEIT], [KAT_ID], [KATBEZ], [TYP_ID], [DLT_ID], [DLTBEZ], [KONT_ID], [R_STA], [S_ID] FROM [MPV_RES_DL] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_MPV_RESDL]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_MPV_RESDL] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_MPV_RESDL] AS SET NOCOUNT ON SELECT [BID], [PERS_ID], [TEIL], [DL_ID], [DL_BEZ], [DL_SID], [TDL_ID], [RESAZEIT], [RESEZEIT], [KAT_ID], [TYP_ID], [DLT_ID], [KONT_ID], [R_STA] FROM [MPV_RESDL] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_MPV_RESDLN]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_MPV_RESDLN] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_MPV_RESDLN] AS SET NOCOUNT ON SELECT [BID], [PERS_ID], [NAME], [TEIL], [DL_ID], [TDL_ID], [RESAZEIT], [RESEZEIT], [KAT_ID], [TYP_ID], [DLT_ID], [KONT_ID], [R_STA] FROM [MPV_RESDLN] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_MPV_RKR]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_MPV_RKR] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_MPV_RKR] AS SET NOCOUNT ON SELECT [RKR_ID], [BEZ], [S_ID], [TEXTID], [DLNCODE], [VONALTER], [BISALTER] FROM [MPV_RKR] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_MPV_ROUTEN]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_MPV_ROUTEN] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_MPV_ROUTEN] AS SET NOCOUNT ON SELECT [DLG_ID], [BEZ], [S_ID], [VON], [NACH] FROM [MPV_ROUTEN] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_mpv_saidet]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_mpv_saidet] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_mpv_saidet] AS SET NOCOUNT ON SELECT [SAI_ID], [SAIBEZ], [PRG_ID], [PRGBEZ], [ARR_ID], [ARRBEZ], [A_DAT], [TEIL], [PRIO], [DL_ID], [DLBEZ], [A_ZEIT], [S_ID] FROM [mpv_saidet] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_MPV_SAISON]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_MPV_SAISON] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_MPV_SAISON] AS SET NOCOUNT ON SELECT [SAI_ID], [BEZ], [S_ID], [VON], [BIS], [TEXTID] FROM [MPV_SAISON] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_MPV_SPRACHE]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_MPV_SPRACHE] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_MPV_SPRACHE] AS SET NOCOUNT ON SELECT [S_ID], [BEZ], [BEZSPRID], [DIALOG], [SYSBEZ] FROM [MPV_SPRACHE] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_MPV_STATUS]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_MPV_STATUS] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_MPV_STATUS] AS SET NOCOUNT ON SELECT [STA_ID], [ABK], [STA], [BEZ], [S_ID], [KOND], [TYP] FROM [MPV_STATUS] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_MPV_TDL]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_MPV_TDL] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_MPV_TDL] AS SET NOCOUNT ON SELECT [DL_ID], [H_DL_ID], [DLA_ID], [BEZ], [S_ID], [ORD], [A_ZEIT], [E_ZEIT], [RES_F], [KID], [KONTO], [TEXTID], [SAI_ID] FROM [MPV_TDL] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_MPV_TRAEGER]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_MPV_TRAEGER] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_MPV_TRAEGER] AS SET NOCOUNT ON SELECT [SPR], [TYP], [ID], [BEZ], [HID], [HOST] FROM [MPV_TRAEGER] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_MPV_TTYP]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_MPV_TTYP] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_MPV_TTYP] AS SET NOCOUNT ON SELECT [SPR], [ID], [BEZ], [HID], [HBEZ] FROM [MPV_TTYP] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_MPV_WHR]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_MPV_WHR] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_MPV_WHR] AS SET NOCOUNT ON SELECT [WHR_ID], [BEZ], [S_ID], [KRZL], [STATUS], [TEXTID] FROM [MPV_WHR] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_res_dl_view]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_res_dl_view] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_res_dl_view] AS SET NOCOUNT ON SELECT [BID], [PERS_ID], [NAME], [DL_ID], [DLAZEIT], [TDL_ID], [TDLAZEIT], [TDLEZEIT], [RESAZEIT], [RESEZEIT], [KAT_ID], [KATBEZ], [TYP_ID], [DLT_ID], [DLTBEZ], [KONT_ID], [R_STA], [S_ID] FROM [res_dl_view] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_resdl_view]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_resdl_view] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_resdl_view] AS SET NOCOUNT ON SELECT [BID], [PERS_ID], [TEIL], [DL_ID], [DL_BEZ], [DL_SID], [TDL_ID], [RESAZEIT], [RESEZEIT], [KAT_ID], [TYP_ID], [DLT_ID], [KONT_ID], [R_STA] FROM [resdl_view] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_resdln_view]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_resdln_view] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_resdln_view] AS SET NOCOUNT ON SELECT [BID], [PERS_ID], [NAME], [TEIL], [DL_ID], [TDL_ID], [RESAZEIT], [RESEZEIT], [KAT_ID], [TYP_ID], [DLT_ID], [KONT_ID], [R_STA] FROM [resdln_view] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_rkr_view]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_rkr_view] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_rkr_view] AS SET NOCOUNT ON SELECT [RKR_ID], [BEZ], [S_ID], [TEXTID], [DLNCODE], [VONALTER], [BISALTER] FROM [rkr_view] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_routen_view]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_routen_view] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_routen_view] AS SET NOCOUNT ON SELECT [DLG_ID], [BEZ], [S_ID], [VON], [NACH] FROM [routen_view] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_sai_view]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_sai_view] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_sai_view] AS SET NOCOUNT ON SELECT [SAI_ID], [BEZ], [S_ID], [VON], [BIS], [TEXTID] FROM [sai_view] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_spr_view]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_spr_view] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_spr_view] AS SET NOCOUNT ON SELECT [S_ID], [BEZ], [BEZSPRID], [DIALOG], [SYSBEZ] FROM [spr_view] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_sta_view]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_sta_view] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_sta_view] AS SET NOCOUNT ON SELECT [STA_ID], [ABK], [STA], [BEZ], [S_ID], [KOND], [TYP] FROM [sta_view] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tdbv_actt]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tdbv_actt] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tdbv_actt] AS SET NOCOUNT ON SELECT [ACTTYPE_ID], [BEZ_ID], [BEZ], [S_ID], [CODE], [TEXTID] FROM [tdbv_actt] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tdbv_acttsel]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tdbv_acttsel] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tdbv_acttsel] AS SET NOCOUNT ON SELECT [ACTTYPE_ID], [BEZ], [CODE], [S_ID] FROM [tdbv_acttsel] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tdbv_adr]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tdbv_adr] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tdbv_adr] AS SET NOCOUNT ON SELECT [PERS_ID], [ANS], [ADR1], [ADR2], [ADR3], [PLZ], [ORT], [KANT], [LAND_ID], [LAND], [LANDSID], [ADRTYP], [ADRTYPID], [ADRSTA], [ADRSTAID], [MAINFLAG], [INVOICEFLAG], [MAILFLAG], [TEL], [HANDY], [FAX], [TLX], [EMAIL], [WEB] FROM [tdbv_adr] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tdbv_arr]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tdbv_arr] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tdbv_arr] AS SET NOCOUNT ON SELECT [ARR_ID], [BEZ_ID], [BEZ], [S_ID], [CODE], [TEXTID], [ADAT], [PRG_ID], [PRG], [SAI_ID], [SAI] FROM [tdbv_arr] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tdbv_arrsel]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tdbv_arrsel] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tdbv_arrsel] AS SET NOCOUNT ON SELECT [ARR_ID], [BEZ], [CODE], [S_ID] FROM [tdbv_arrsel] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tdbv_city]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tdbv_city] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tdbv_city] AS SET NOCOUNT ON SELECT [ORT_ID], [BEZ_ID], [BEZ], [S_ID], [KRZL], [LANDID], [LANDBEZ], [TEXTID], [ZEITVER], [KOORD1], [KOORD2], [TYPE] FROM [tdbv_city] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tdbv_citysel]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tdbv_citysel] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tdbv_citysel] AS SET NOCOUNT ON SELECT [ORT_ID], [BEZ], [KRZL], [S_ID] FROM [tdbv_citysel] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tdbv_country]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tdbv_country] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tdbv_country] AS SET NOCOUNT ON SELECT [LAND_ID], [BEZ_ID], [BEZ], [S_ID], [KRZL], [HAUPT_ORT], [HAUPT_SPR], [HAUPT_WHR], [TEXTID], [VAT], [DATEFORMAT] FROM [tdbv_country] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tdbv_countryd]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tdbv_countryd] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tdbv_countryd] AS SET NOCOUNT ON SELECT [LAND_ID], [BEZ_ID], [BEZ], [S_ID], [KRZL], [CAPITALID], [CAPITAL], [LANGID], [LANG], [CURID], [CURRENCY], [TEXTID], [VAT], [DATEFORMAT] FROM [tdbv_countryd] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tdbv_countrylang]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tdbv_countrylang] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tdbv_countrylang] AS SET NOCOUNT ON SELECT [LAND_ID], [LANDBEZ], [CCODE], [DATEFORMAT], [S_ID], [SBEZ], [SCODE] FROM [tdbv_countrylang] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tdbv_countrysel]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tdbv_countrysel] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tdbv_countrysel] AS SET NOCOUNT ON SELECT [LAND_ID], [BEZ], [KRZL], [S_ID] FROM [tdbv_countrysel] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tdbv_cur]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tdbv_cur] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tdbv_cur] AS SET NOCOUNT ON SELECT [WHR_ID], [BEZ_ID], [BEZ], [S_ID], [KRZL], [STATUS], [TEXTID] FROM [tdbv_cur] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tdbv_cursel]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tdbv_cursel] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tdbv_cursel] AS SET NOCOUNT ON SELECT [WHR_ID], [BEZ], [KRZL], [S_ID] FROM [tdbv_cursel] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tdbv_cust]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tdbv_cust] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tdbv_cust] AS SET NOCOUNT ON SELECT [PERS_ID], [NAME], [S_ID], [STA_ID], [TEXTID], [CUSTTYPEID], [TEL], [HANDY], [FAX], [TLX], [EMAIL], [WEB], [ACCOUNT], [MANAGER], [ATTR1], [ATTR2], [CURID] FROM [tdbv_cust] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tdbv_custadr]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tdbv_custadr] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tdbv_custadr] AS SET NOCOUNT ON SELECT [PERS_ID], [ANS], [NAME], [LANG], [S_ID], [PERSSTA], [PERSSTAID], [ADR1], [ADR2], [ADR3], [PLZ], [ORT], [KANT], [LAND_ID], [LAND], [TEXTID], [CUSTTYPE], [CUSTTYPEID], [CTEL], [CHANDY], [CFAX], [CTLX], [CEMAIL], [CWEB], [ACCOUNT], [MANAGER], [ATTR1], [ATTR2], [ADRTYP], [ADRTYPID], [ADRSTA], [ADRSTAID], [MAINFLAG], [INVOICEFLAG], [MAILFLAG], [TEL], [HANDY], [FAX], [TLX], [EMAIL], [WEB], [CURID], [CUR] FROM [tdbv_custadr] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tdbv_custsel]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tdbv_custsel] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tdbv_custsel] AS SET NOCOUNT ON SELECT [PERS_ID], [NAME] FROM [tdbv_custsel] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tdbv_cutt]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tdbv_cutt] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tdbv_cutt] AS SET NOCOUNT ON SELECT [CUSTTYPE_ID], [BEZ_ID], [BEZ], [S_ID], [CODE], [TEXTID] FROM [tdbv_cutt] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tdbv_cuttsel]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tdbv_cuttsel] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tdbv_cuttsel] AS SET NOCOUNT ON SELECT [CUSTTYPE_ID], [BEZ], [CODE], [S_ID] FROM [tdbv_cuttsel] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tdbv_dltt]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tdbv_dltt] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tdbv_dltt] AS SET NOCOUNT ON SELECT [TYP_ID], [BEZ_ID], [BEZ], [S_ID], [H_TYP_ID], [HOST_TYP], [TEXTID] FROM [tdbv_dltt] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tdbv_dlttsel]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tdbv_dlttsel] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tdbv_dlttsel] AS SET NOCOUNT ON SELECT [TYP_ID], [BEZ], [S_ID] FROM [tdbv_dlttsel] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tdbv_dltttree]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tdbv_dltttree] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tdbv_dltttree] AS SET NOCOUNT ON SELECT [TYP_ID], [BEZ_ID], [BEZ], [H_TYP_ID], [HBEZ], [HOST_TYP], [HOSTBEZ], [S_ID] FROM [tdbv_dltttree] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tdbv_grpt]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tdbv_grpt] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tdbv_grpt] AS SET NOCOUNT ON SELECT [GRPTYPE_ID], [BEZ_ID], [BEZ], [S_ID], [CODE], [TEXTID] FROM [tdbv_grpt] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tdbv_grptsel]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tdbv_grptsel] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tdbv_grptsel] AS SET NOCOUNT ON SELECT [GRPTYPE_ID], [BEZ], [CODE], [S_ID] FROM [tdbv_grptsel] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tdbv_lang]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tdbv_lang] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tdbv_lang] AS SET NOCOUNT ON SELECT [S_ID], [BEZ_ID], [BEZ], [SYSBEZ], [DIALOG], [OUTPUT], [GUI], [BEZSPRID] FROM [tdbv_lang] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tdbv_langsel]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tdbv_langsel] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tdbv_langsel] AS SET NOCOUNT ON SELECT [S_ID], [BEZ], [SYSBEZ], [BEZSPRID] FROM [tdbv_langsel] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tdbv_ot]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tdbv_ot] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tdbv_ot] AS SET NOCOUNT ON SELECT [OT_ID], [BEZ_ID], [BEZ], [S_ID], [TEXTID] FROM [tdbv_ot] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tdbv_otsel]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tdbv_otsel] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tdbv_otsel] AS SET NOCOUNT ON SELECT [OT_ID], [BEZ], [S_ID] FROM [tdbv_otsel] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tdbv_pers]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tdbv_pers] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tdbv_pers] AS SET NOCOUNT ON SELECT [PERS_ID], [FIRSTNAME], [LASTNAME], [S_ID], [STA_ID], [TEXTID], [PERSTYPEID], [SEX], [MUTTERSID], [AGE], [PASSPORT], [ATTR1], [ATTR2], [RTEXTID] FROM [tdbv_pers] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tdbv_persadr]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tdbv_persadr] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tdbv_persadr] AS SET NOCOUNT ON SELECT [PERS_ID], [ANS], [FIRSTNAME], [LASTNAME], [LANG], [S_ID], [PERSSTA], [PERSSTAID], [ADR1], [ADR2], [ADR3], [PLZ], [ORT], [KANT], [LAND_ID], [LAND], [TEXTID], [PERSTYPE], [PERSTYPEID], [SEX], [MUTTERSID], [AGE], [PASSPORT], [ATTR1], [ATTR2], [RTEXTID], [ADRTYP], [ADRTYPID], [ADRSTA], [ADRSTAID], [MAINFLAG], [INVOICEFLAG], [MAILFLAG], [TEL], [HANDY], [FAX], [TLX], [EMAIL], [WEB] FROM [tdbv_persadr] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tdbv_perssel]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tdbv_perssel] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tdbv_perssel] AS SET NOCOUNT ON SELECT [PERS_ID], [FIRSTNAME], [LASTNAME], [SEX] FROM [tdbv_perssel] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tdbv_perst]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tdbv_perst] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tdbv_perst] AS SET NOCOUNT ON SELECT [PERSTYPE_ID], [BEZ_ID], [BEZ], [S_ID], [CODE], [VONALTER], [BISALTER], [TEXTID] FROM [tdbv_perst] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tdbv_perstsel]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tdbv_perstsel] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tdbv_perstsel] AS SET NOCOUNT ON SELECT [PERSTYPE_ID], [BEZ], [CODE], [S_ID] FROM [tdbv_perstsel] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tdbv_prg]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tdbv_prg] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tdbv_prg] AS SET NOCOUNT ON SELECT [PRG_ID], [BEZ_ID], [BEZ], [S_ID], [CODE], [TEXTID], [SAI_ID], [SAI] FROM [tdbv_prg] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tdbv_prgsel]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tdbv_prgsel] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tdbv_prgsel] AS SET NOCOUNT ON SELECT [PRG_ID], [BEZ], [CODE], [S_ID] FROM [tdbv_prgsel] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tdbv_prt]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tdbv_prt] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tdbv_prt] AS SET NOCOUNT ON SELECT [PRT_ID], [BEZ_ID], [BEZ], [S_ID], [TEXTID] FROM [tdbv_prt] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tdbv_prtsel]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tdbv_prtsel] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tdbv_prtsel] AS SET NOCOUNT ON SELECT [PRT_ID], [BEZ], [S_ID] FROM [tdbv_prtsel] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tdbv_ratesel]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tdbv_ratesel] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tdbv_ratesel] AS SET NOCOUNT ON SELECT [LAND_ID], [LANDBEZ], [WHR_ID], [WHRBEZ], [S_ID], [KURS_TYP], [A_KURS], [V_KURS], [FROMDAT] FROM [tdbv_ratesel] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tdbv_sai]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tdbv_sai] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tdbv_sai] AS SET NOCOUNT ON SELECT [SAI_ID], [BEZ_ID], [BEZ], [CODE], [VON], [BIS], [S_ID], [TEXTID] FROM [tdbv_sai] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tdbv_saisel]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tdbv_saisel] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tdbv_saisel] AS SET NOCOUNT ON SELECT [SAI_ID], [BEZ], [CODE], [S_ID] FROM [tdbv_saisel] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tdbv_sta]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tdbv_sta] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tdbv_sta] AS SET NOCOUNT ON SELECT [STA_ID], [BEZ_ID], [ABK], [STA], [BEZ], [S_ID], [KOND], [TYP] FROM [tdbv_sta] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tdbv_stasel]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tdbv_stasel] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tdbv_stasel] AS SET NOCOUNT ON SELECT [STA_ID], [BEZ], [CODE], [S_ID], [TYP] FROM [tdbv_stasel] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_tdbv_user]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_tdbv_user] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_tdbv_user] AS SET NOCOUNT ON SELECT [MPID], [TDBUSER], [BCHST], [BCHSTID], [SECLEVEL], [LANG], [S_ID], [COUNTRY], [LAND_ID], [SUPTYPE], [DLTT_ID], [DLT], [DLT_ID], [KAT], [KAT_ID], [DLAT], [DLAT_ID], [DLNT], [DLNT_ID], [SEASON], [SAI_ID], [PRG], [PRG_ID], [STARTTIME], [ENDTIME], [RANGE] FROM [tdbv_user] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_traeger_view]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_traeger_view] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_traeger_view] AS SET NOCOUNT ON SELECT [SPR], [TYP], [ID], [BEZ], [HID], [HOST] FROM [traeger_view] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tdb_ReadAll_ttyp_view]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[tdb_ReadAll_ttyp_view] GO CREATE PROCEDURE [dbo].[tdb_ReadAll_ttyp_view] AS SET NOCOUNT ON SELECT [SPR], [ID], [BEZ], [HID], [HBEZ] FROM [ttyp_view] GO
<filename>packages/automaton-with-gui/src/compat/v2types/V2FxSection.ts /** * Interface of a fx section. */ export interface V2FxSection { /** * Beginning time of the section. */ time: number; /** * Time length of the section. */ length: number; /** * Row of the section. */ row: number; /** * Whether the section would be bypassed or not. * Can be undefined. */ bypass?: boolean; /** * Fx definition name of the section. */ def: string; /** * Params of the section. */ params: any; }
#!/bin/bash # # Copyright (c) 2019-2020 P3TERX <https://p3terx.com> # # This is free software, licensed under the MIT License. # See /LICENSE for more information. # # https://github.com/P3TERX/Actions-OpenWrt # File name: diy-part2.sh # Description: OpenWrt DIY script part 2 (After Update feeds) # # Modify default IP #sed -i 's/192.168.31.1/192.168.31.2/g' package/base-files/files/bin/config_generate
<filename>src/components/pages/state/state-links.js import React from 'react' import { Link } from 'gatsby' import slug from '~utilities/slug' import stateLinksStyle from './state-links.module.scss' export default ({ twitter, covid19Site, covid19SiteSecondary, stateName, historicalSlug, fathomGoal, }) => { const trackClick = () => { if (!fathomGoal || typeof window.fathom === 'undefined') { return } window.fathom.trackGoal(fathomGoal, 0) } return ( <ul className={stateLinksStyle.list}> {twitter && ( <li> <a href={`https://twitter.com/${twitter}`} onClick={trackClick}> <span className="a11y-only">{stateName}&apos;s </span> Official Twitter </a> {covid19Site || covid19SiteSecondary ? <span>{'\u2022'}</span> : ''} </li> )} {covid19Site && ( <li> <a href={covid19Site} onClick={trackClick}> <span className="a11y-only">{stateName}&apos;s </span> Best Current Data Source </a> {covid19SiteSecondary || historicalSlug ? ( <span>{'\u2022'}</span> ) : ( '' )} </li> )} {covid19SiteSecondary && ( <li> <a href={covid19SiteSecondary} onClick={trackClick}> Secondary Data Source <span className="a11y-only"> for {stateName}</span> </a> {historicalSlug ? <span>{'\u2022'}</span> : ''} </li> )} {historicalSlug && ( <li> <Link to={`/data/state/${slug(historicalSlug)}#historical`}> Historical Data <span className="a11y-only">for {stateName}</span> </Link> </li> )} </ul> ) }
<reponame>yisuoyanyudmj/RLs-1<gh_stars>1-10 #!/usr/bin/env python3 # encoding: utf-8 import importlib from typing import Optional from rls.common.config import Config from rls.memories.replay_buffer import ReplayBuffer from rls.utils.logging_utils import get_logger logger = get_logger(__name__) BufferDict = { 'ER': 'ExperienceReplay', 'PER': 'PrioritizedExperienceReplay', 'NstepER': 'NStepExperienceReplay', 'NstepPER': 'NStepPrioritizedExperienceReplay', 'EpisodeER': 'EpisodeExperienceReplay' } def get_buffer(buffer_args: Config) -> Optional[ReplayBuffer]: ''' parsing arguments of replay buffer params: buffer_args: configurations of replay buffer return: Correct experience replay mechanism. For On-Policy algorithms, they don't have to specify a replay buffer out of model class, so return None ''' if buffer_args.get('buffer_size', 0) <= 0: logger.info('This algorithm does not need sepecify a data buffer outside the model.') return None _buffer_type = buffer_args.get('type', 'None') logger.info(_buffer_type) if _buffer_type in BufferDict.keys(): Buffer = getattr(importlib.import_module(f'rls.memories.replay_buffer'), BufferDict[_buffer_type]) return Buffer(batch_size=buffer_args['batch_size'], capacity=buffer_args['buffer_size'], **buffer_args[_buffer_type].to_dict) else: return None
<gh_stars>0 /** * This hook deploys the built application to a remote device * * @copyright * Copyright (c) 2017 by <NAME>. All Rights Reserved. */ 'use strict'; // TODO: // - Break winappdeploycmd stuff out into a seperate file // - Add prompting for code in this hook // - Figure out if logging is possible // - Allow storage of IPs? i.e. when we pair add to a 'database' 'use strict'; const exec = require('child_process').exec; const fs = require('fs'); const path = require('path'); const utils = require('../utils'); let appxLocation; let deployCmd; let deviceIP; let fields; let windowslib; exports.id = 'com.eh.remote-deployment'; /** The Titanium CLI version that this hook is compatible with */ exports.cliVersion = '>=3.2'; /** * Initialize the hook. * * @param {Object} logger - The logger instance * @param {Object} config - The CLI config object * @param {CLI} cli - The CLI instance * @param {Object} appc - The node-appc library */ exports.init = function init(logger, config, cli, appc) { utils.injectSDKModulePath(cli.env.getSDK().path); windowslib = require('windowslib'); fields = require('fields'); // Configures our little batch of options cli.addHook('build.windows.config', function (data, finished) { // We don't need the extra logic here as Windows support wasn't in 3.2.1 const r = data.result[1] || {}; r.flags || (r.flags = {}); r.flags['remote-deploy'] = { default: false, desc: 'enable remote deployment' }; r.options || (r.options = {}); r.options.ip = { default: null, desc: 'Device IP address' }; finished(null, data); }); cli.addHook('build.pre.construct', function(data, finished) { if(cli.argv['remote-deploy']) { cli.argv['build-only'] = true; } finished(); }); /** * General thoughts on the structure of the plugin * - Get the target, use it to determine win.ARM vs win10.x86 * - Get the build dir look get the location of the .appxbundle * - Maybe pull the app id? Then we can look up whether it is installed and determine whether to uninstall first? * - Install the app * - Handle any potential mess */ cli.on('build.post.compile', function(data, finished) { if (cli.argv['remote-deploy']) { cli.argv['build-only'] = true; // Performs the setup functionality // 1. Obtain the appxbundle location // 2. Obtain the winappdeploycmd path const setup = [ new Promise((resolve, reject) => { const appNameRegex = new RegExp(cli.tiapp.name, 'i'); const appVerRegex = new RegExp(cli.tiapp.name + '_(\\d+\\.*){4}_(Test|Debug_Test)', 'i'); const target = cli.argv['T'] || cli.argv.target; const dirName = target === 'wp-device' ? 'win10.ARM' : 'win10.x86'; // We're only gonna go to the AppxPackages, from there it's gonna be a minefield // to guess the path so we'll just do some further work from there. logger.trace(`Project type is ${dirName}`); const projectDir = cli.argv['project-dir'] || cli.arg['d']; let appxLookupPath = path.join(projectDir, 'build', 'windows', dirName, 'AppPackages'); logger.trace(`Looking for ${appxLookupPath}`); if (!fs.existsSync(appxLookupPath)) { return finished(new Error('Cannot find the AppPackages dir, please ensure you\'re using --win-sdk 10.0')) } const appNameDir = fs.readdirSync(appxLookupPath).filter(item => appNameRegex.test(item)); logger.trace(`${appxLookupPath} contents are ${appNameDir}`); appxLookupPath = path.join(appxLookupPath, appNameDir[0]); logger.trace(`Looking for ${appxLookupPath}`); const appVerDir = fs.readdirSync(appxLookupPath).filter(item => appVerRegex.test(item)); logger.trace(`${appxLookupPath} contents are ${appVerDir}`); appxLookupPath = path.join(appxLookupPath, appVerDir[0]); logger.trace(`Looking for ${appxLookupPath}`); const appxName = fs.readdirSync(appxLookupPath).filter(item => path.extname(item) === '.appxbundle'); const appxLocation = path.join(appxLookupPath, appxName[0]); logger.trace(`Looking for ${appxLocation}`); if (fs.existsSync(appxLocation)) { return resolve(appxLocation); } else { return reject('Unable to find appxbundle') } }), new Promise((resolve, reject) => { windowslib.windowsphone.detect(function(err, results) { if (err) { return reject(err); } const cmd = `"${results['windowsphone']['10.0'].deployCmd}"`; deployCmd = cmd; return resolve(cmd); }); }) ]; // Performs some checks before we attempt to connect and install // 1. Were we given an ip // - If not, prompt // 2. Can we connect to the device with winappdeploycmd // - If not, prompt for a code, maybe with a link to pairing docs // 3. Is the app already installed on the device // - If yes, run uninstall first // 4. Install the app (finally); Promise.all(setup) .then(results => { return new Promise((resolve, reject) => { appxLocation = results[0]; if (!cli.argv['ip']) { logger.info('No device-ip argument specified, prompting for one'); fields.text({ title: 'What is the device-ip?', validate: function (value) { return !!value; } }).prompt(function (err, value) { if (err) { logger.error('There was an error!\n' + err); } else { deviceIP = value; resolve(deviceIP); } }); } else { deviceIP = cli.argv['ip']; resolve(deviceIP); } }); }).then(ip => { deviceIP = ip; return new Promise(function(resolve, reject) { exec(`${deployCmd} list -ip ${deviceIP}`, function(err, stdout, stderr) { if (err) { // Maybe we're not paired? Prompt for code with docs logger.warn('Was unable to connect to the specified IP'); logger.warn('Guiding through the pairing process'); logger.error('Please use ti pair-device as this is currently unimplemented'); process.exit(1); } else { // All good in the hood, lets move on... // after checking if the app is installed logger.info('Able to connect to the specified IP'); const id = cli.tiapp.windows.id || cli.tiapp.id; return resolve(utils.parseListData(stdout, id)); } }); }); }) .then(installed => { return new Promise((resolve, reject) => { if (installed) { // Uninstall the app logger.info('Application is already installed on device, uninstalling it first'); exec(`${deployCmd} uninstall -ip ${deviceIP} -file ${appxLocation}`, function(err, stdout, stderr) { if (err) { logger.error('Was unable to uninstall the application') return reject(err); } else { logger.info('App uninstalled'); return resolve(); } }); } else { return resolve(); } }); }) .then(() => { logger.info('Installing the application') exec(`${deployCmd} install -ip ${deviceIP} -file ${appxLocation}`, function(err, stdout, stderr) { if (err) { logger.error('Was unable to install the application') finished(); } else { logger.info('App installed'); finished(); } }); }).catch(err =>{ logger.error('Oh no something went wrong'); logger.error(err) logger.error('Maybe try logging an issue over here => link') }); } else { finished(); } }); };
const fs = require('fs'); const dataFile = './data.txt'; fs.readFile(dataFile, (err, data) => { if (err) throw err; const path = parse_data(data.toString('utf8')); const hexPath = build_hex_path(path); console.log(hexPath[0], hexPath[hexPath.length - 1]); console.log(HexDistance(hexPath[0], hexPath[hexPath.length - 1])); }); function parse_data (dataStr) { let path = []; dataStr = dataStr.trim(); dataStr.split(/,/).forEach((dir) => { path.push(dir); }); return path; } function build_hex_path (path) { let hexPath = []; let furthestDistance = 0; hexPath.push(new Hex()); // start at origin path.forEach((dir) => { let nextHex = HexAdd(hexPath[hexPath.length - 1], HexDirection(dir)); hexPath.push(nextHex); let dist = HexDistance(hexPath[0], hexPath[hexPath.length - 1]); if (dist > furthestDistance) furthestDistance = dist; }); console.log('furthese distance:', furthestDistance); return hexPath; } function Hex (x = 0, y = 0, z = 0) { if (x + y + z != 0) throw "Invalid Hex Coords"; this.x = x; this.y = y; this.z = z; } const HEX_DIRECTIONS = { 'n': new Hex(0, 1, -1), 's': new Hex(0, -1, 1), 'ne': new Hex(1, 0, -1), 'se': new Hex(1, -1, 0), 'nw': new Hex(-1, 1, 0), 'sw': new Hex(-1, 0, 1) }; function HexDirection (dir = 'n') { return HEX_DIRECTIONS[dir]; } function HexAdd (h1, h2) { return new Hex(h1.x + h2.x, h1.y + h2.y, h1.z + h2.z); } function HexDistance (h1, h2) { return (Math.abs(h1.x - h2.x) + Math.abs(h1.y - h2.y) + Math.abs(h1.z - h2.z)) / 2; }
#!/bin/bash echo "Current time: $(date +%T)" echo "Sleep 5s" sleep 5 echo "Start purge cache" curl "https://purge.jsdelivr.net/npm/altair-graphql-plugin-github-sync@latest/dist/style.css" curl "https://purge.jsdelivr.net/npm/altair-graphql-plugin-github-sync@latest/dist/github-sync.umd.js" curl "https://purge.jsdelivr.net/npm/altair-graphql-plugin-github-sync@latest/package.json" curl "https://purge.jsdelivr.net/npm/altair-graphql-plugin-github-sync@latest/manifest.json" curl "https://purge.jsdelivr.net/npm/altair-graphql-plugin-github-sync@latest/package-lock.json" echo "" echo "Caching purged"
<gh_stars>0 package main import ( "testing" "github.com/coreos/fleet/job" "github.com/coreos/fleet/machine" "github.com/coreos/fleet/registry" "github.com/coreos/fleet/resource" "github.com/coreos/fleet/unit" ) func newFakeRegistryForSsh() registry.Registry { machines := []machine.MachineState{ {"c31e44e1-f858-436e-933e-59c642517860", "1.2.3.4", map[string]string{"ping": "pong"}, "", resource.ResourceTuple{}}, {"595989bb-cbb7-49ce-8726-722d6e157b4e", "5.6.7.8", map[string]string{"foo": "bar"}, "", resource.ResourceTuple{}}, {"hello.service", "8.7.6.5", map[string]string{"foo": "bar"}, "", resource.ResourceTuple{}}, } jobs := []job.Job{ *job.NewJob("j1.service", unit.Unit{}), *job.NewJob("j2.service", unit.Unit{}), *job.NewJob("hello.service", unit.Unit{}), } states := map[string]*unit.UnitState{ "j1.service": unit.NewUnitState("loaded", "active", "listening", &machines[0]), "j2.service": unit.NewUnitState("loaded", "inactive", "dead", &machines[1]), "hello.service": unit.NewUnitState("loaded", "inactive", "dead", &machines[2]), } reg := registry.NewFakeRegistry() reg.SetMachines(machines) reg.SetUnitStates(states) reg.SetJobs(jobs) return reg } func TestSshUnknownMachine(t *testing.T) { cAPI = newFakeRegistryForSsh() _, ok := findAddressInMachineList("asdf") if ok { t.Error("Expected to not find any machine with the machine ID `asdf`") } } func TestSshFindMachine(t *testing.T) { cAPI = newFakeRegistryForSsh() ip, _ := findAddressInMachineList("c31e44e1-f858-436e-933e-59c642517860") if ip != "1.2.3.4" { t.Errorf("Expected to return the host 1.2.3.4, but it was %s", ip) } } func TestSshFindMachineByUnknownJobName(t *testing.T) { cAPI = newFakeRegistryForSsh() _, ok := findAddressInRunningUnits("asdf") if ok { t.Error("Expected to not find any machine with the job name `asdf`") } } func TestSshFindMachineByJobName(t *testing.T) { cAPI = newFakeRegistryForSsh() ip, _ := findAddressInRunningUnits("j1") if ip != "1.2.3.4" { t.Errorf("Expected to return the host 1.2.3.4, but it was %s", ip) } } func TestGlobalLookupByUnknownArgument(t *testing.T) { cAPI = newFakeRegistryForSsh() ip, err := globalMachineLookup([]string{"asdf"}) if err != nil { t.Fatal("Expected to not find any error") } if ip != "" { t.Errorf("Expected to not find any host with the argument `asdf`") } } func TestGlobalLookupByMachineID(t *testing.T) { cAPI = newFakeRegistryForSsh() ip, err := globalMachineLookup([]string{"c31e44e1-f858-436e-933e-59c642517860"}) if err != nil { t.Fatal("Expected to not find any error") } if ip != "1.2.3.4" { t.Errorf("Expected to return the host 1.2.3.4, but it was %s", ip) } } func TestGlobalLookupByJobName(t *testing.T) { cAPI = newFakeRegistryForSsh() ip, err := globalMachineLookup([]string{"j1"}) if err != nil { t.Fatal("Expected to not find any error") } if ip != "1.2.3.4" { t.Errorf("Expected to return the host 1.2.3.4, but it was %s", ip) } } func TestGlobalLookupWithAmbiguousArgument(t *testing.T) { cAPI = newFakeRegistryForSsh() _, err := globalMachineLookup([]string{"hello.service"}) if err == nil { t.Fatal("Expected to find an error with an ambiguous argument") } }
package model import ( "errors" "fmt" "strconv" "strings" "unicode" "unicode/utf8" ) func NewSlug(value string) *Slug { s := new(Slug) s.Set(value) return s } type Slug string func (self *Slug) Get() string { return string(*self) } func (self *Slug) Set(value string) { result := make([]byte, utf8.RuneCountInString(value)) i := 0 for _, c := range value { if c >= 'a' && c <= 'z' || c >= '0' && c <= '9' || c == '-' || c == '_' { result[i] = byte(c) } else if c >= 'A' && c <= 'Z' { result[i] = byte(unicode.ToLower(c)) } else { result[i] = '-' } i++ } *self = Slug(string(result)) } func (self *Slug) IsEmpty() bool { return len(*self) == 0 } func (self *Slug) GetOrDefault(defaultSlug string) string { if self.IsEmpty() { return defaultSlug } return self.Get() } func (self *Slug) String() string { return self.Get() } func (self *Slug) SetSlug(str string) error { self.Set(str) return nil } func (self *Slug) FixValue(metaData *MetaData) { } func (self *Slug) Required(metaData *MetaData) bool { if minlen, ok, _ := self.Minlen(metaData); ok { if minlen > 0 { return true } } return metaData.BoolAttrib(StructTagKey, "required") } func (self *Slug) Validate(metaData *MetaData) error { value := string(*self) pos := strings.IndexAny(value, "\n\r") if pos != -1 { return errors.New("Line breaks not allowed") } if self.Required(metaData) && self.IsEmpty() { return NewRequiredError(metaData) } minlen, ok, err := self.Minlen(metaData) if ok && len(value) < minlen { err = &SlugTooShort{value, minlen} } if err != nil { return err } maxlen, ok, err := self.Maxlen(metaData) if ok && len(value) > maxlen { err = &SlugTooLong{value, maxlen} } if err != nil { return err } return nil } func (self *Slug) Minlen(metaData *MetaData) (minlen int, ok bool, err error) { var str string if str, ok = metaData.Attrib(StructTagKey, "minlen"); ok { minlen, err = strconv.Atoi(str) ok = err == nil } return minlen, ok, err } func (self *Slug) Maxlen(metaData *MetaData) (maxlen int, ok bool, err error) { var str string if str, ok = metaData.Attrib(StructTagKey, "maxlen"); ok { maxlen, err = strconv.Atoi(str) ok = err == nil } return maxlen, ok, err } type SlugTooShort struct { Str string Minlen int } func (self *SlugTooShort) Error() string { return fmt.Sprintf("Slug shorter than minimum of %d characters", self.Minlen) } type SlugTooLong struct { Str string Maxlen int } func (self *SlugTooLong) Error() string { return fmt.Sprintf("String longer than maximum of %d characters", self.Maxlen) }
<reponame>Boatdude55/staging-website<gh_stars>0 /** * @fileoverview * * Page 1 */ goog.provide('app.whatif.View'); goog.require('app.lib.structor.Structor'); goog.require('app.whatif.ViewHeroSection'); goog.require('app.whatif.ViewBudget'); goog.require('app.whatif.ViewPlan'); goog.require('app.whatif.ViewSave'); goog.require('app.whatif.ViewGoogle'); goog.require('app.whatif.ViewPlaid'); /** * [PageOne description] * * @constructor * @param {string=} opt_name [description] * @extends {app.lib.structor.Structor} */ app.whatif.View = function (opt_name) { app.whatif.View.base(this, 'constructor', opt_name ? opt_name : "WhatIf?"); var hero = new app.whatif.ViewHeroSection(); var budget = new app.whatif.ViewBudget(); var plan = new app.whatif.ViewPlan(); var save = new app.whatif.ViewSave(); var plaid = new app.whatif.ViewPlaid(); var google = new app.whatif.ViewGoogle(); this.addChild(hero, true); this.registerDisposable(hero); this.addChild(budget, true); this.registerDisposable(budget); this.addChild(plaid, true); this.registerDisposable(plaid); this.addChild(plan, true); this.registerDisposable(plan); this.addChild(google, true); this.registerDisposable(google); this.addChild(save, true); this.registerDisposable(save); }; goog.inherits(app.whatif.View, app.lib.structor.Structor);