Você está na página 1de 9

Installing Instruction

Document Name: DO Template Setup


Instruction
Document No.:
IMG LOGICS PTE LTD
Written By: Li Yulang Date: 2013.07.05
Remarks:
1. Attention: Before Change the Do Template format, make a backup for the “C:\ I-Matrix
400\config” folder. If anything is wrong during the changing, we can restore the system
from the backup folder.
2. The DO template is under the folder of “C:\I-Matrix 400\config”, with an extension of
“.tpl”.

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.

Attachment (Table and fields for DO Template Set Up)


Table Name: Order

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 -

Table Name: Delivery


Field Type Length Remarks
Delivery ID int - Primary key
Order ID int -
DO No string 20
Seal No string 15
Date to deliv date -
Time to deliv time -
Date Truck in date -
Time Truck in time -
Truck ID string 20 Foreign key
Driver NRIC/FIN string 15 Foreign key
Batch Vol float -
Accumulated float -
Ret Concrete ID int - Foreign key
Remarks string 30
6
Remarks2 string 50
Date Truck out date -
Time Truck out time -
Delivery Status string 50
Time Truck Return time -
Surcharge 1 string 8
Surcharge 2 string 8
Cash amt currency -
Loads int -

Table Name: Concrete


Field Type Length Remarks
Concrete ID int - Primary key
DischFor ID int - Foreign key
Concrete Grade string 24
Product Code string 24
Slump string 15
Strength string 20
Remarks string 200
Invalid bool -
MaxSize float -
extra1 string 50 DC Class*
extra2 string 50 Exp Class
extra3 string 50 Cl Class
extra4 string 50 SpecialPP
extra5 string 50 Cem Type
extra6 string 50 Cem Str.Class
extra7 string 50 MaxNAgg
extra8 string 50 SuperPlasticize
extra9 string 50 Retarder
extra10 string 50 Max
extra11 string 50 Min
extra12 string 50 MaxW/C
extra13 string 50 AirContent
extra14 string 50 Max%CA/TA
extra15 string 50 Density
extra16 string 50 Admin

Table Name: Site


Field Type Length Remarks
Site ID int - Primary key
Cust ID string 20 Foreign key
Site Name string 50
7
Add string 80
Country string 20
Postal string 10

Table Name: Site Loc


Field Type Length Remarks
Site Loc ID int - Primary key
Site ID int - Foreign key
Cust ID string 20 Foreign key
Loc Desc string 50
Distance float -
DistType string 50

Table Name: Cust


Field Type Length Remarks
Cust ID string 20 Primary key
Cust Name string 80
Address string 255
Country string 20
Postal Code string 10
Main Tel string 25
Remarks string 50

Table Name: Contact Per


Field Type Length Remarks
Per ID int - Primary key
Site ID int - Foreign key
Name string 50
Designation string 50
Department string 50
Contact No string 25

Table Name: Truck


Field Type Length Remarks
Truck Code string 20
Transp Co Code string 20 Foreign key
Reg No string 15
Driver NRIC/FIN string 15 Foreign key
Status string 15 Foreign key
Capacity float -
Road Tax Exp date -
Inspection date -
Insurance Exp date -
8
Cost centre string 20 Foreign key
Remarks string 50

Table Name: Employee


Field Type Length Remarks
IC/FIN string 15
Transp Co Code string 20 Foreign key
Name string 50
DOB date -
Date joined date -
Designation Desc string 30
Department string 20
Dormitory string 15
Add string 50
Postal string 10
* Remarks:
1. Usually, Primary key and Foreign key are not used for printing.
2. In concrete table, the fields from extra1 to extra16 are set at the “Design Mix -> Edit” page, as
showed in Picture R-1. These data are keyed in by the plant operator or customer office to
describe each concrete.

Picture R-1

Você também pode gostar