Escolar Documentos
Profissional Documentos
Cultura Documentos
Set up Steps:
1. Check the template currently used in the system.
a. Double click the CBPGui icon on the desktop to start the batching software.
b. In the main menu, select “Reports” button as showed in Picture 1-1.
Picture 1-1
c. In the Reports Selection page, as showed in Picture 1-2, select “Report Setup” button.
1
Picture 1-2
Picture 1-3
d. In Report Setup dialog, see the template used for “Batching – Delivery Order (DO)
Settings”, as showed in Picture 1-3. Here as an example, we use “IMG LOGICS DO
TEMPLATE.tpl”.
e. Remember the template name used in the system, and close the batching system.
2. Open the template file
a. Open “C:\I-Matrix 400\config” folder, find the template used in the system, as showed
in Picture 1-4.
2
Picture 1-4
b. Right click on the template file, select “Open With” in the popped up menu, and then
select “Notepad”.
c. Now we can see the content of the template file, as showed in Picture 1-5.
Picture 1-5
3
3. Explanation of the template file.
a. The template file starts with one SQL query statement, between “<sql>” and “<length
5.5>” as showed in Picture 1-5. Do not touch this SQL query statement, otherwise,
the template will corrupt and can not be used any more.
b. The section between “<start>” and “<end>” is the content we need to change to match
the customer DO format.
c. The content in “<start>” and “<end>” can be divided into three types. One is “< >”
statement, another one is statement like “<Any word Or Sentence>”, the last type is
statement like “<[Delivery][Date Truck in][date][10]>”.
d. The mean of “< >” statement is leave a blank space in the printing line. The length of
the blank space is depend on the length of the “< >” statement. For example, “< >”
will leave a blank space of two character length, otherwise, “< >” will leave a blank
space of five character length. A line only with “< >” statement will print a blank line
on the Customer DO.
e. The “<any word or sentence>”-like statement means directly print the content in < > to
the delivery order.
f. The “<[Delivery][Date Truck in][date][10]>”-like statement is a little complex. However,
it contents four parts: “[Delivery]”, “[Date Truck in]”, “[date]” and “[10]”. As you know,
all the batching data are recorded in the system database. System database consists of
many tables, and tables consist of fields with different types. “[Delivery]” means select
“Delivery” table in the database; “[Date Truck in]” means select “Date Truck in” field in
“Delivery” table; “[date]” means the type of “Date Truck in” field is date type; and
“[10]” means the printer will leave 10-character length space for the printing of “Date
Truck in” field. So in one word, the statement “<[Delivery][Date Truck in][date][10]>”
means print “Date Truck in” field from the “Delivery” table using 10 character length
space, the type of the field is date type. Other similar statements have the same meaning.
The tables needed in the DO printing and their fields are attached in the tail of the
instruction.
4. Change the format of the template file according to customer DO format.
a. Check customer delivery order, see the format and content they need for the printing.
Usually, the customer delivery order will be like as showed in Picture 4-1
4
Picture 4-1
b. The DO template format for upper customer delivery order will be like as showed in
Picture 4-2.
c. After change the format, close notepad. And open CBPGui to print one delivery order to
check the printing. Usually, the printing can not match the delivery order until adjusted
for several times. So open the DO template using Notepad again, according to the
printing result, adjust the fields printing position. When finished, close the template, test
printing with CBPGui agian.
d. Until the template match the customer delivery order very well, as showed in Picture 4-1.
The adjustment can be finished. Then restart the computer. The DO template set up is
finished.
5
Field Type Length Remarks
Order ID int - Primary key*
Concrete Grade string 24 Foreign key*
Order Code string 16
Cust ID string 20 Foreign key
Contract ID string 20
Ship-to ID int - Foreign key
Site Loc ID int - Foreign key
Date of Order date -
Time of Order time -
Vol of Order (m3) float -
Accumulated float -
Delivery Date date -
Delivery Time time -
Interval int -
Confirm? bool -
Ordered by int - Foreign key
Surcharge ID string 20
Cash Sales? bool -
Unit Sales Price currency -
Remarks string 100
Status string 20
PO Num string 15
UBS string 50
Loads int -
Price curency -
Picture R-1