-
Notifications
You must be signed in to change notification settings - Fork 1
/
morefields.js
85 lines (77 loc) · 2.69 KB
/
morefields.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/* Add CO Fields */
var inch = 72;
//UT Label
var aRectutLabel=[];
aRectutLabel[0]= 8.70*inch; //left side of text input
aRectutLabel[2]= aRectutLabel[0]+0.35*inch; // calculate width
aRectutLabel[1]= 8.45*inch; // top of the field
aRectutLabel[3]= aRectutLabel[1]-0.18*inch; //field height
var utnoLabel = this.addField("UTLabel", "text", this.pageNum, aRectutLabel);
//utnoLabel.delay = true;
utnoLabel.value = "UT#:";
utnoLabel.readonly = true;
utnoLabel.textSize = 0; //autosize
utnoLabel.alignment = "right";
utnoLabel.textFont = font.HelvB;
//utnoLabel.delay = false;
//UT no
var aRectut=[];
aRectut[0] = aRectutLabel[2] + 0.5; //left side of text input
aRectut[2] = aRectut[0]+0.45*inch; // calculate width
aRectut[1] = aRectutLabel[1];
aRectut[3] = aRectut[1] -0.18*inch;
var utno = this.addField("UT#", "text", this.pageNum, aRectut);
//utno.delay = true;
utno.textSize = 0; //autosize
utno.alignment = "left";
utno.textFont = font.HelvB;
//utno.delay = false;
//PrgLabel
var aRectprgLabel=[];
aRectprgLabel[0]= aRectutLabel[0]; //left side of text input
aRectprgLabel[2]= aRectutLabel[2]; // calculate width
aRectprgLabel[1]= aRectutLabel[3] -0.5;
aRectprgLabel[3]= aRectprgLabel[1] -0.18*inch;
var prgLabel = this.addField("PrgLabel", "text", this.pageNum, aRectprgLabel);
//prgLabel.delay = true;
prgLabel.value = "Prg:";
prgLabel.readonly = true;
prgLabel.textSize = 0; //autosize
prgLabel.alignment = "right";
prgLabel.textFont = font.HelvB;
//prgLabel.delay = false;
//Prg
var aRectprg=[];
aRectprg[0] = aRectprgLabel[2] + 0.5; //left side of text input
aRectprg[2] = aRectprg[0]+0.45*inch;// calculate width
aRectprg[1] = aRectprgLabel[1];
aRectprg[3] = aRectprg[1]-0.18*inch;
var prg = this.addField("prg", "text", this.pageNum, aRectprg);
prg.textSize = 0; //autosize
prg.defaultValue = "Prg: ";
prg.alignment = "left";
prg.textFont = font.HelvB;
//Scr Label
var aRectscrLabel=[];
aRectscrLabel[0]= aRectprgLabel[0]; //align label with the label above
aRectscrLabel[2]= aRectprgLabel[2]; //
aRectscrLabel[1]= aRectprgLabel[3] - 0.5;
aRectscrLabel[3]= aRectscrLabel[1]-0.18*inch;
var scrLabel = this.addField("scrLabel", "text", this.pageNum, aRectscrLabel);
//scrLabel.delay = true;
scrLabel.value = "Scr:";
scrLabel.readonly = true;
scrLabel.textSize = 0; //autosize
scrLabel.alignment = "right";
scrLabel.textFont = font.HelvB;
//scrLabel.delay = false;
var aRectscr=[];
aRectscr[0] = aRectscrLabel[2] + 0.5; //left side of text input
aRectscr[2] = aRectscr[0]+0.45*inch;// calculate width
aRectscr[1] = aRectscrLabel[1];
aRectscr[3] = aRectscr[1]-0.18*inch;
var scr = this.addField("scr", "text", this.pageNum, aRectscr);
scr.textSize = 0; //autosize
scr.defaultValue = "Scr: ";
scr.alignment = "left";
scr.textFont = font.HelvB;