PRICE.DOC

(199 KB) Pobierz

Documentation creation of price disk

Version: 1.0

 

 

 

The program for creating the price disks consists of the two files

Crprs.exe  and CrPrs.ini.

First of all you have to install the CD-ROM if you want to use the

programm Crprs.exe or you have to start the program „Zipserve.exe“ in the directory „Price“.

The INI-file contains following entries :

 

[Main]

language               not used

 

[Extent]

Country              a special language code

                            A               = Hungarian

                            D               = German

                            E               = English

                            F               = French

                            H               = Dutch

                            I               = Italian

                            K               = Danish

                            N               = Norwegian

                            O               = Polish

                            S               = Spain

                            T               = Tzech

                            W               = Swedish

System                 the trade mark you create the price disk for.

                            VW

                            AUDI

                            PORSCHE

                            VW/AUDI

                            SEAT

                            SKODA

Level                               last update level.

 

[VW/AUDI]              system section (this is the example if you have in the section System VW)

Kennung              special code for price file (depends on the trade mark)

                            W              = VW

                            A              = AUDI

                            P              = PORSCHE

                            V              = VW/AUDI

                            S              = SEAT

                            K              = SKODA

 


Every time you start CrPrs.exe the entries Country , System and Level are

automatically updated .




How to create a price disk.

 

First of all the user has to choose a price file (21 Byte each entry)

The name of the price file has to be LexPrs.dat.



 

Now the user has to choose the path, where the created price file is copied to,



mostly a common disk drive.

 

 

A new update level will be created automatically.

The user is able tochange the update level if necassary.

The button Create creates a temporary price disk on the hard disk, the button

Copy copies this price file to the given path.



 

 

 

 

The price disk.

 

The price disk consists of a single file.

The name of this file is constructed as follows :

prs + 1 Byte code + 3 Byte update level . country code

 

f.e :              prss001.k  (Price disk for Seat Danemark with level 1)

This file containes the two files preis.dat and preisupv.log

 

Preis.dat contains the part number , the price, the discount group and the value added

tax code.

 

Preisupv.log contains the update level


The file LexPrs.dat

 

General construction

 

14 Byte              part number

  4 Byte               price

  2 Byte              discount group

  1 Byte              value-added tax code

 

 

Each entry in the file Lexprs.dat has 21 bytes and is sorted by part number und

without any CRLF at the end.

The part numbers are ascending , ASCII-sorted .

 

The fields part number, discount group and value-added tax code are

alphanumeric.

The field Price has the format unsigned long (C/C++ convention).

 

 

Construction of the field Price

 

The price in the file Lexprs.dat has no comma.

f.e.:  1050,00 changes to 105000

 

The calculations which create the unsigned long format, are done with

this price format 105000

 

Example : 105000

 

1.)              105000 : 16777216 =                  0 Decimal = 00 Hex                            rest : 105000

2.)              105000 :       65536 =     1 Decimal = 01 Hex                            rest :               39464

3.)                 39464 :           256 = 154 Decimal = 9A Hex                            rest :        40

4.)                      40 :               1 =   40 Decimal = 28 Hex

 

The result has the format

Hex :              28 9A 01 00

                            1   2    3   4     Byte

 

The calculations you need to create the correct price format in the file Lexprs.dat

are the same as mentioned above, the bold numbers are always fixed.

 

 

Page 1 / 1

 

© 1998 LEXCOM Informationssysteme, München

Zgłoś jeśli naruszono regulamin