Voting Import/Export; Introduction; Import Voting Script; Import File Layout - Bosch DCN Manual

Table of Contents

Advertisement

External Interface Manual
6

Voting import/export

6.1

Introduction

The DCN Voting applications can import voting scripts and export voting results. The voting import and export
takes into account the ImportSeparator setting in the Database section of DCN.INI:
[Database]
ImportSeparator=,
This setting determines what character is used to separate fields in import and/or export files. The default
separator is a comma (","). The default separator will be used when no separator is specified in the DCN.INI-
file.
6.2

Import voting script

6.2.1
Introduction
In voting scripts the DCN operator can prepare a voting even if the DCN system is not running. A voting script
is a simple ASCII file that describes one or more voting rounds. When imported into the DCN, these voting
rounds are the same as those made with the Multi and/or Parliamentary Voting applications.
6.2.2

Import file layout

Settings that do not apply for a particular type of vote are simply ignored, but the separator characters that
delimit these entries must be present.
File starts with the line:
DCN VOTING SCRIPT 5.0<SEP>script name<EOL>
where:
DCN VOTING SCRIPT
x.0
script name
<SEP>
<EOL>
A 2-line entry follows for each vote:
First line:
voting number<SEP>voting name<SEP>voting subject<SEP>voting kind<SEP>voting
menu<SEP>not used<SEP>not used<SEP>interim results<SEP>number of answers<EOL>
where:
voting number
voting name
voting subject
voting kind
voting menu
not used
interim results
number of answers
Bosch Security Systems B.V. | 2004 April | External Interface Manual
Indicates the type of file and the version of DCN required to
handle it. (required entry) In this fixed text, the letter 'x'
represents the major version number of the DCN software
(Version 5.0 shown in the line above).
Name of the script to be stored in the database. 8 characters
maximum. A script cannot be imported if it has a name which is
already present in the DCN system. (required entry).
Indicates a separator character.
Indicates an end of line (carriage return (0x0D) and newline
character(0x0A)).
This must be in the range 1-9999. (The default is 1 for the first
vote and is incremented for each subsequent vote in the script.)
20 characters maximum. Default empty.
132 characters maximum. Default empty.
A number in the range 1-6 that specifies the type of vote: See
table 1 for explanation. The default is 1 for the first vote and is
the previous value for subsequent votes.
A number in the range 1-7 that specifies the layout for the
possible answers on the delegate LCD screens: See table 2 for
explanation. The default is 1 for the first vote and is the
previous value for subsequent votes.
The fields are not used, and can be left blank.
A number in the range 0-4 that specifies the interim results
setting. See table 3 for an explanation of these values. The
default is 0 for the first vote and is the previous value for all
subsequent votes.
A number that indicates how many answers are possible in this
en | 29

Advertisement

Table of Contents
loading

Table of Contents