Вы находитесь на странице: 1из 285

Terrasoft 3.

................................................................................. 10
1.

Terrasoft......................................................................... 11

2.

..................................................... 14
2.1.

.............................................................. 15

2.2.

................................................ 18

2.3.

................................. 20

2.4.

................................................ 21

2.4.1.

MS SQL Server....................................................................... 21

2.4.1.1.

............................................. 21

2.4.1.2.

.......................................... 22

MS SQL Server 2008 Management Studio Express .................................... 24


2.4.2.
2.5.

3.

Oracle / Firebird..................................................................... 25
............................................... 25

2.5.1.

....................................................... 25

2.5.2.

..................................................... 26

Terrasoft ............................................................. 27
3.1.

Terrasoft.............................................. 27

3.1.1.

....................................... 28

3.1.2.

............................................................... 33

3.2.

Terrasoft .............................................. 34

3.2.1.

Terrasoft MS SQL 2000 ............................... 34

3.2.2.

Terrasoft MS SQL 2005 ............................... 40

3.2.3.

Terrasoft MS SQL 2008 ............................... 44

3.2.4.

Terrasoft Firebird 2.0 .................................. 44

3.2.5.

Terrasoft Oracle ......................................... 44

3.3.

.................................. 46

3.3.1.

MS SQL 2000/2005/2008. 48

3.3.2.

Firebird 2.0..................... 49

3.3.3.

Oracle ............................ 50

3.3.4.
3.4.
3.4.1.
Terrasoft

........ 51
web-.......................................................... 52
web- IIS .......................................... 53
3

3.4.1.1.

web- IIS 6.0 ............................ 53

3.4.1.2.

web- IIS 7.0 ............................ 57

3.4.1.3.

IIS............................. 59

3.4.1.4.

......... 61

3.4.1.5.

SSL- ......................................... 62

3.4.2.

web- Apache............................ 70

3.4.2.2.

......... 70

3.4.2.3.

SSL- Apache....................... 70

3.5.
4.

.....................................................79

4.1.1.

....................................................80

4.1.2.

....................................82

4.1.3.

.........................................84

4.2.

Terrasoft .......................85

4.2.1.

.............................................89

4.2.2.

.........................................................89

4.2.3.

..........................................96

4.2.4.

..........................................................97

4.2.5.

......................................97

4.2.6.

web- ....................................98

4.2.7.

..........................98

4.2.8.

..................99

4.3.

.........................................99

4.3.1.

Terrasoft ...................... 100

4.3.2.

.................................. 103

4.3.3.

.............................................. 105

4.3.4.

....................................... 106

4.3.5.

..................................... 108

4.4.

...................................................... 110

......................................................... 112
5.1.

web- Service Desk ...........72

............................................................ 79
4.1.

5.

web- Apache 2 .................................69

3.4.2.1.

............................................................ 112

5.1.1.

................................................. 112

5.1.1.1.

..............113

5.1.1.2.

................................................114

5.1.1.3.

..................................115

5.1.1.4.

[] [] ................116

5.1.2.

[] ................................................... 116

5.1.2.1.

[] []......116

5.1.2.2.

[] .....................................116

5.1.3.

[]................................................ 117

5.1.3.1.

[] ..................................117

5.1.3.2.

[] .......................................118

5.1.3.3.

[] .................................119

5.1.3.4.

[] ...............................119

5.1.4.

[] ................................................ 120

5.1.5.

[]................................................... 121

5.1.5.1.

[] ...............................121

5.1.5.2.

[ ] ................121

5.1.5.3.

[ ] .............122

5.1.5.4.

[].................................122

5.1.6.

[] ................................................. 123

5.1.6.1.

[]......................................123

5.1.6.2.

[] ....................................123

5.1.6.3.

[] .................................124

5.1.6.4.

[] .......................................124

5.1.7.

[]............................................... 125

5.1.7.1.

Cisco ...................................126

5.1.8.

[Web-] ............................ 126

5.1.9.

MS Outlook.............................. 127

5.1.9.1.

.........................................127

5.1.9.2.

................................................131

5.1.10. ................................ 132


5.2.
5.2.1.
Terrasoft

........................................................ 133
........................................... 133

5.2.2.
5.3.

....................................... 138

5.4.

................................................... 141

5.4.1.

......................................... 141

5.4.2.

....................................... 143

5.4.2.1.

......................................... 143

5.4.2.2.

................................ 145

5.4.2.3.

....................... 147

5.4.3.

............................................... 150

5.6.

MS Office....................... 151

5.7.

MS Excel.................................................... 153

5.7.1.

.................................................... 153

5.7.2.

.......................................... 155

5.7.3.

MS Excel ................................. 159

OLAP- ............................................................................. 161

6.1.1.

OLAP- ....................................... 161

6.1.2.

....................................................... 161

6.1.3.

.................................................................... 163

6.1.4.

[OLAP] .................................. 164

Terrasoft Administrator ................................................ 168


7.1.

Terrasoft Administrator......................... 169

7.2.

................................................... 172

7.2.1.

............................................................... 173

7.2.2.

............... 174

7.2.3.

............. 175

7.2.4.

..................................................................... 176

7.2.5.

..................................... 177

7.2.6.

.......................................................... 178

7.2.7.

.............................................................. 179

7.3.

............................................................... 159

................................................... 161
6.1.

7.

.................................................. 149

5.5.

5.8.
6.

[ ].......................................... 136

Table ...................................................................... 180

7.3.1.

Table .................................................. 180

7.3.2.

Table ................................ 182

7.4.

Select Query ........................................................... 185

7.4.1.

Select Query........................................ 186

7.4.2.

Select Query...................... 186

7.5.

Insert Query............................................................ 191

7.6.

Update Query.......................................................... 192

7.7.

Delete Query........................................................... 194

7.8.

InsertSelect Query................................................... 194

7.9.

Dataset ................................................................... 195

7.9.1.

Dataset ............................................... 196

7.9.2.

, Dataset.................... 197

7.9.3.

Dataset ................................................ 199

7.9.4.

Dataset ........................................ 201

7.10.

MemoryDataset ....................................................... 201

7.11.

Window .................................................................. 203

7.11.1. .................................................................... 204


7.11.2. ..................................................................... 205
7.11.3. ............. 206
7.12.

Script...................................................................... 208

7.12.1. ............................................................... 209


7.12.2. ................................................... 210
7.12.3. ..................................................................... 211
7.13.

FastReport .............................................................. 212

7.13.1. FastReport........................................................ 213


7.13.2. FastReport......................................................... 213
7.13.3. FastReport ................................... 214
7.14.

ADO- ......................................................................... 215

7.14.1. ADOConnection .................................................... 215


7.14.2. ADOCommand ..................................................... 217
7.14.3. ADODataset ......................................................... 218
7.15.

User Fields .............................................................. 221

7.15.1. User Fields ....................................................... 221


Terrasoft

7.15.2. User Fields............................................ 222


7.15.3. User Fields ....... 223
7.16.

Enum ...................................................................... 223

7.16.1. Enum .................................................. 223


7.16.2. ...................................................... 224
7.17.

ImageList ................................................................ 225

7.17.1. ImageList ............................................ 225


7.17.2. ImageList ....................................... 225
7.17.3. ...................................... 226
7.18.

Workflow Diagram ................................................... 227

7.18.1. - .................................................. 228


7.18.2. - ............................................... 228
7.18.3. - ................................................... 234
7.18.4. - ................................. 234
7.18.5. - .................................. 235
7.19.

Workflow Action ...................................................... 236

7.19.1. Workflow Action................................... 236


7.19.2. Workflow Action............................................. 237
7.19.3. Workflow Action ................................................. 238
8.

- ................................................... 239
8.1.

- ......................... 240

8.1.1.

, , , ...... 241

8.1.2.

.................................................. 246

8.1.3.

.......................................................... 247

8.1.4.

............................................................... 248

8.1.5.

.............................................................. 249

8.1.6.

-.................................................. 250

8.1.6.1.

E-mail..................................... 250

8.1.6.2.

............................ 252

8.1.6.3.

...................................... 253

8.1.6.4.

.... 258

8.1.6.5.

/ ........................... 261

8.1.6.6.

8.1.7.

9.


263

....................................................... 264

8.2.

- ........................ 266

8.3.

..................... 268

.............................270
9.1.

....................................... 270

9.1.1.

................................................... 272

9.1.2.

....................................... 272

9.1.3.

............................................................ 273

9.1.4.

............................................ 274

9.1.5.

...................................... 276

9.1.6.

............. 276

9.2.

............................... 277

.............................................................................282

Terrasoft

,
, , ,
Terrasoft.
Terrasoft XRM + Service Desk,
Terrasoft.
- ,
.
.

Terrasoft.
Terrasoft .
, .
.
,
Terrasoft .
.
,
Terrasoft
.
. Terrasoft Administrator. ,
,
.
.
, -
.
, -.
,
Terrasoft
, .

10

Terrasoft

1. Terrasoft
Terrasoft ,
, .
,
.
,
.
.
,
.

Terrasoft
:
;
;
;
;
.
,
.

.
, , .

Terrasoft.
Web Web
Microsoft IIS Apache.

.
Terrasoft.

, ,
.

Terrasoft.

: Microsoft SQL Server,


Oracle Firebird.
Terrasoft.
.

. ,
Terrasoft

11


, .
,
XML,
.



.
,
,
.

, :
, ,
, ,
, .
.


, Terrasoft
, IDE (
).
,
,
- ,
. ,
CRM-
() Terrasoft.
,
, ..
Terrasoft
.
,
.
Terrasoft UNICODE,
.
.


Terrasoft
. Terrasoft
,
,
.

12

Terrasoft

Terrasoft
.
Terrasoft
ADO.
COM- Terrasoft
, Terrasoft.

Terrasoft

13

2.
Terrasoft - ,

.
( Terrasoft)

web-.
,
. Web-

Terrasoft. Terrasoft

.
( Terrasoft)
, .
Terrasoft
. Terrasoft
:
Terrasoft;
;
Terrasoft.

, Terrasoft:
IT- ;
CRM-;
;
, ;
.
, ,
Terrasoft
.

Terrasoft,
.
:
,

Terrasoft;

14

;
;

Terrasoft;

Terrasoft.

2.1.


().
Terrasoft :
,
;
;
.
Terrasoft :
MS SQL Server 2000

Windows.



.
, MS SQL Server
Windows, 32
64 .
MS SQL Server 2000 Desktop Engine (MSDE 2000)
MS SQL Server 2000.

Windows Vista
.

MSDE Microsoft Data Engine - -


, SQL Server 2000

( ).

,
.

MSDE ,
SQL Server
2000:
2Gb;
Terrasoft

15

2Gb;

();

2 CPU Windows NT Windows 2000;


;
Failover;
Full-text search;
OLAP;
English Query;
SQL Books Online;
GUI ( ,
SQL Server Enterprise Manager, SQL Server Profiler,
Query Analyzer, Database Upgrade Wizard, Index Tuning
Wizard, Import and Export Wizards).
MS SQL Server 2005
:

Management Studio;
-:
, ;

.

MS SQL Server 2005 Express Edition


, Microsoft
SQL Server 2005. Microsoft Desktop
Engine ( MSDE).
Microsoft Visual Studio 2005
,

.
, , :
1Gb;
4Gb;
1 SMP.

16

SQL Server 2005,


SQL Server Express:
Reporting Services;
Notification Services;
Integration Services;
Analysis Services;
Full-text Search;
OLAP Services / Data Mining.
MS SQL Server 2008
MS
SQL
Server
2008

, ,

, , .
,
.

,
,
.
MS SQL Server 2008 :
,

;
;
,

;
. NULL
.
,
NULL,
SQL Server 2008,
;
;
,

.
MS Office;
.

Terrasoft

17

Oracle (: 9., 10)


Oracle ,
.

( ),

.
Oracle .
Sun Solaris, Linux, Windows .
Oracle ,
,
, ,
.
Firebird ( 2.0)
Firebird
Borland InterBase SQL Server.
Firebird 1.0 InterBase
6.0 Open Edition. , ""
Firebird 1.5.
Firebird :
1.

: Classic Super Server;

2.

SQL,
.

Classic Server
,
, .
Super Server

,
.
SQL.

/ , .

:
, ,
, .

2.2.

,
Terrasoft
, .
:
18

Windows Server 2003


Windows,

.
Windows Server 2003 ,

.
Windows Server 2008
Microsoft
Windows Server.

, .
.
Windows XP Professional

Terrasoft 5 .

, /

. ,

,
, .
UNIX
,
,
. UNIX
, Oracle Firebird.
UNIX-
, ,
.
UNIX
.
UNIX
: , , web ,
- .
,
Terrasoft UNIX-,
.
UNIX-
:

Terrasoft

19


UNIX- (
GNU/Linux BSD);

, Windows;

, .

2.3.

Terrasoft
, MS Outlook, MS Word, MS Excel.
MS Outlook MS
Outlook.

MS Outlook
( )
. ,
Terrasoft ([] -> [Advanced Security] -> [Action List]),
([] -> [] -> [])
HTML.

MS Word MS Excel
.

XP (2002).
MS Outlook XP (2002)
Terrasoft
Service Pack 3.
MS Office 2003
Service Pack 2.
OLAP- MS Office ( 7
) Web Office
Components.

OLAP- Terrasoft XRM, Terrasoft Service Desk,


Terrasoft XRM+Service Desk, Terrasoft XRM Distribution, Terrasoft XRM Distribution+
Service Desk MS SQL.

( 10 000),

,
MS SQL Server Analysis
Services .

20

2.4.


CRM-,
.
,
Terrasoft.
-
Terrasoft .
:
MS SQL Server;
Oracle Firebird.

2.4.1. MS SQL Server



Terrasoft, MS SQL
Server.
,
Terrasoft,
.

MS SQL Server.

2.4.1.1.
MS SQL
Server.
-

1-5

5 - 10

Terrasoft

1-5

5 - 15

:
Intel P4 1GHz
Intel Xeon P3 1GHz
():
512 MB

:
Intel Xeon 1 1.5GHz
AMD 1.5/2GHz

():
1 GB

:
Intel Xeon dual
1.5GHz
():
1 GB

:
Intel Xeon dual
2GHz
AMD Opteron
2.4GHz
():
2 GB

21

15 - 20

15 - 30

20 - 30

30

:
Intel Xeon dual
2.2GHz
():
2 GB

:
Intel Xeon dual
2.8GHz
AMD Opteron
3.4GHz
():
2-3 GB

:
Intel Xeon dual
3GHz
():
3 GB

:
2 Intel Xeon dual
3.8GHz
2 AMD Opteron
3.4GHz
():
4 GB


.
x64- (AMD Opteron,
AMD Athlon 64,Intel Xeon\P4 with Intel EM64T support)
Itanium.
MS SQL Server
2005/2008

,

Microsoft Windows.

2.4.1.2.
,

Microsoft SQL Server.
MS SQL
Server

MS SQL 2000
Developer Edition

Microsoft Windows NT Workstation 4.0, Windows 2000


Professional Windows NT Windows 2000
.

22

MS SQL
Server

MS SQL 2000
Enterprise Edition

Microsoft Windows NT Server 4.0, Microsoft Windows NT Server


Enterprise Edition 4.0, Windows 2000 Server, Windows 2000
Advanced Server, Windows 2000 Data Center Server.
Microsoft Windows 2000 Server ( )
SQL Server 2000.

MS SQL 2000 Personal


Edition

Microsoft Windows Me, Windows 98, Windows NT Workstation


4.0, Windows 2000 Professional, Microsoft Windows NT Server
4.0, Windows 2000 Server .

MS SQL 2000
Standard Edition

Microsoft Windows NT Server 4.0, Windows 2000 Server,


Microsoft Windows NT Server Enterprise Edition, Windows 2000
Advanced Server, Windows 2000 Data Center Server.

MS SQL 2005
Developer Edition

32-bit
Microsoft Windows 2000 Server with Service Pack 4 ,
Windows 2000 Professional Edition with Service Pack 4 ,
Windows XP with Service Pack 2 , Windows Server 2003
Standard Edition, Enterprise Edition Datacenter Edition with
Service Pack 1 , Windows Small Business Server 2003
with Service Pack 1 .
x64
Microsoft Windows Server 2003 Standard x64 Edition, Enterprise
x64 Edition Datacenter x64 Edition with Service Pack 1
, Windows XP Professional x64 Edition .
Itanium
Microsoft Windows Server 2003 Enterprise Edition
DataCenter Edition Itanium for Itanium-based systems with
Service Pack 1 .

MS SQL 2005
Enterprise Edition

32-bit
Microsoft Windows 2000 Server with Service Pack 4 ,
Windows Server 2003 Standard Edition, Enterprise Edition
Datacenter Edition with Service Pack 1 , Windows Small
Business Server 2003 with Service Pack 1 .
x64
Microsoft Windows Server 2003 Standard x64 Edition, Enterprise
x64 Edition Datacenter x64 Edition with Service Pack 1
.
Itanium
Microsoft Windows Server 2003 Enterprise Edition
DataCenter Edition Itanium for Itanium-based systems with
Service Pack 1 .

Terrasoft

23

MS SQL
Server

MS SQL 2005
Workgroup Edition

Microsoft Windows 2000 Server with Service Pack 4 ,


Windows 2000 Professional Edition with Service Pack 4 ,
Windows XP with Service Pack 2 , Windows Server 2003
Standard Edition, Enterprise Edition Datacenter Edition with
Service Pack 1 , Windows Small Business Server 2003
with Service Pack 1 .

MS SQL 2005 Express


Edition

Windows XP with Service Pack 2 , Microsoft Windows


2000 Professional with Service Pack 4 , Microsoft
Windows 2000 Server with Service Pack 4 , Windows
Server 2003 Standard, Enterprise Datacenter editions with
Service Pack 1 , Windows Server 2003 Web Edition
Service Pack 1, Windows Small Business Server 2003 with
Service Pack 1 , Vista Home Basic (SQL Express
Service Pack 1 and SQL Express Advanced Service Pack 2),
Windows XP Embedded Service Pack 2 Feature Pack 2007,
Windows Embedded for Point of Service Pack 2.

MS SQL 2005
Standard Edition

32-bit
Microsoft Windows 2000 Server with Service Pack 4 ,
Windows 2000 Professional Edition with Service Pack 4 ,
Windows XP with Service Pack 2 , Windows Server 2003
Standard Edition, Enterprise Edition Datacenter Edition with
Service Pack 1 , Windows Small Business Server 2003
with Service Pack 1 .
x64
Microsoft Windows Server 2003 Standard x64 Edition, Enterprise
x64 Edition Datacenter x64 Edition with Service Pack 1
, Windows XP Professional x64 Edition .
Itanium
Microsoft Windows Server 2003 Enterprise Edition
DataCenter Edition Itanium for Itanium-based systems with
Service Pack 1 .

MS SQL Server 2008


Management Studio
Express

Windows Server 2003 Service Pack 2; Windows Server


2008; Windows Vista; Windows Vista Service Pack 1;
Windows XP Service Pack 2; Windows XP Service Pack 3.

MS SQL Server 2000


Service Pack 4.
Microsoft Windows NT Server 4.0, Service Pack 5

SQL Server 2000.
SQL Server 2000 Personal Edition
, Windows 98 Second Edition.

24

Microsoft Windows NT, Windows 2000, Windows Me Windows 98

.

Banyan VINES AppleTalk
ADSP. Novel NetWare IPX/SPX
Windows - NWLink.
TCP/IP
MS SQL Server 2000.
Microsoft Internet Explorer 5.0
Microsoft SQL Server 2000, Microsoft
Management Console (MMC) HTML Help.
,
Internet Explorer web- .
SQL Server 2000 Windows NT 4.0 Terminal
Server.

2.4.2. Oracle / Firebird


,
Oracle Firebird,
.
Terrasoft
,
.

2.5.

:

;

2.5.1.
-
Terrasoft

Pentium III


1GHz

Pentium IV

1.5 GHz


(RAM)

256 MB

512 MB


(HDD)

500 MB

750 MB

Terrasoft

25

Super VGA 1024x768

2.5.2.
,
Terrasoft ,
:
Microsoft Windows XP:
Windows XP Service Pack 2

Microsoft Windows Script 5.5 Windows 2000, XP **


Microsoft Outlook XP Service Pack 3 ***
Microsoft Windows Server 2003:
Microsoft Windows Script 5.5 Windows 2003 **

Microsoft Outlook 2003 Service Pack 3 ***


Microsoft Windows Vista:
Microsoft Windows Script 5.5 Windows Vista **

Microsoft Outlook 2003 ***


Microsoft Windows Server 2008

Microsoft Windows Script Host Version 5.7**


Microsoft Outlook 2003 (Service Pack 3), Microsoft Outlook 2007
(Service Pack 1 2)***

,
Microsoft SQL Server Client Tools

**

Microsoft Windows Script


Windows.
Windows Script
Terrasoft "Redist".

***

,

MS Outlook, , [E-mail],
[], [ ].

26

Terrasoft

3. Terrasoft
Terrasoft

Terrasoft

Terrasoft


1.

Terrasoft.

2.

Terrasoft.

3.

Terrasoft
.

1.

Terrasoft
.

2.

3.

Terrasoft
.

4.

Terrasoft .

Terrasoft

Terrasoft Firebird 2.0


Firebird 2.0
Terrasoft. .

Terrasoft
web-, web-
.

Terrasoft Service Desk,


Terrasoft XRM + Service Desk

Terrasoft XRM Distribution+ Service Desk


web- Service Desk.
web, .

3.1.

Terrasoft

Terrasoft
. Firebird
Firebird DataBase Server,
Firebird Terrasoft.
Terrasoft:
;
.
Terrasoft

27

3.1.1.
Terrasoft
Setup.exe , .
,
. 3.1.

. 3.1
, ,

,
(. 3.2).

. 3.2
,
,

28

Terrasoft

(. 3.3).
:


Terrasoft.
Terrasoft
.


,
.

. 3.3 Terrasoft


, .

Terrasoft, .

web, [Web Services ]


.

Terrasoft

29

Terrasoft Service Desk, Terrasoft XRM + Service Desk,


Terrasoft XRM Distribution + Service Desk
Service Desk
[ - Service Desk].

(.
3.4).

. 3.4
Terrasoft
[ Microsoft Script Control] ,
. Microsoft Script Control
Terrasoft.
[ Microsoft Script Debugger]
Microsoft.
: , call stack,
. ,
.
[ Microsoft Data Access Components (MDAC)]
MS SQL Server ,
.
.
[ SSL]
, Web-
https ( ).

30

Terrasoft

Terrasoft Firebird,
Firebird (.
3.5).
[ Firebird DataBase Server 2.0]
Firebird .

. 3.5 Firebird
[ Firebird DataBase Server 2.0] Firebird
DataBase Server.
, ,
.
[],
Terrasoft.
(. 3.6)
Terrasoft
.

Terrasoft Oracle
(Bin) ,
Oracle.


,

.

Terrasoft

31


[] [ ] [ Terrasoft]
[].

. 3.6

, (. 3.7).

. 3.7
32

Terrasoft

[].

Terrasoft
. ,
Terrasoft .

3.1.2.

, Terrasoft

.

.



UNINST000.exe,


Terrasoft.



,
, :
TS_XRM+ServiceDesk_SoftKey_RUS_MSSQL.exe /SILENT /
SUPPRESSMSGBOXES / DIR="C:\Program Files\
TS_XRM+ServiceDesk" /NOCANCEL / COMPONENTS = "core, admin,
database, outlookplugin,webserver,doc,frdoc"
:
<TS_XRM+ServiceDesk_SoftKey_RUS_MSSQL.exe> -
.
<SILENT> - , ,
.
<VERYSILENT> - .
<SUPPRESSMSGBOXES> - ,
,
, .
<NOCANCEL> - , .
.
<DIR=> - , .
<COMPONENTS=> - ,
( . 3.3):

core ;
admin ;
database ;
outlookplugin Plugin Microsoft Outlook;
webserver Web Services ;
doc ;

Terrasoft

33

frdoc Fast Report.

3.2.

Terrasoft


Terrasoft .
:
Terrasoft MS SQL 2000;
Terrasoft MS SQL 2005;
Terrasoft MS SQL 2008;
Terrasoft Firebird 2.0;
Terrasoft Oracle.

3.2.1. Terrasoft MS SQL 2000


MS SQL 2000
Terrasoft, ,
Terrasoft.

: <C:\Program Files\< >\DB>,
< > , , Terrasoft Sales,
Terrasoft CRM, Terrasoft XRM ..
MS SQL Server
Enterprise Manager .
MS SQL Server ,
SQL Server Group New SQL Server Registration.
, SQL ,
SQL-.

SQL

Server

1. .

Databases MS SQL Server
Enterprise Manager [All Tasks] -> [Restore Database]
(. 3.8).
(. 3.9) [Restore as database]
Terrasoft.
[Restore: From Device]
[Select Devices] .

34

Terrasoft

. 3.8

. 3.9

. .

Terrasoft

35

,
. 3.10. [Add]
[File Name] ( <C:\Program
Files\< >\DB\TS.bak>).
[OK]
(. 3.9).
[Options] (. 3.11) ,
(
<*.mdf>), - (
<*.ldf>).
,
. , ,
.

. 3.10

36

Terrasoft

. 3.11
[OK],
(. 3.12).

. 3.12

.

2. .

Terrasoft

37

Supervisor
. ,
Terrasoft.


Terrasoft.
Terrasoft [].

MS SQL Server Enterprise Manager


Security -> Logins
[New Login] (. 3.13).

. 3.13
, , . 3.14.
[General] [Name]
Supervisor.
[Authentication]
Authentication].

[SQL

Server

, . ,
Terrasoft Supervisor
. Supervisor ,

[Blank password].
38

Terrasoft

. 3.14
[Server Roles] (. 3.15) System
Administrators.

. 3.15
Terrasoft

39

[] Supervisor.
Terrasoft MS SQL 2000 .
Terrasoft c .

Terrasoft .

3.2.2. Terrasoft MS SQL 2005


Terrasoft MS SQL 2005
MS SQL 2000 ,
Microsoft SQL Server Management Studio.
.

1. .

[Restore Database] Databases
Microsoft SQL Server Management Studio.
, , . 3.16.

. 3.16
[To database:]
( )
.

40

Terrasoft

[From device]
.
, . 3.17.

. 3.17
[Backup media:] File
, [Add].

(. 3.18)
.
[Restore].

[Options] (. 3.19).
(<.mdf>-) - (<.ldf>).
,
[Overwrite the existing database].
.
[OK],
.

.

, MS SQL 2000,
MS SQL 2005. MS SQL 2005 MS SQL 2000
.

Terrasoft

41

. 3.18

. 3.19
2. .
42

Terrasoft

Supervisor
Microsoft SQL Server Management Studio
Security -> Logins (. 3.20)
[New Login].
(. 3.21) [General] [Login
name] Supervisor [SQL
Server Authentication]. .
Terrasoft Supervisor
. ,
[Enforce password policy].

. 3.20
[Server Roles] [sysadmin].
[] Supervisor.


Terrasoft.
Terrasoft [].

Terrasoft MS SQL 2005 .


Terrasoft c .

Terrasoft

43

Terrasoft
.

. 3.21

3.2.3. Terrasoft MS SQL 2008


Terrasoft MS SQL 2008
MS SQL 2005.

3.2.4. Terrasoft Firebird 2.0


Terrasoft Firebird
2.0, Firebird 2.0
Terrasoft.
.
Terrasoft ( TS.fdb) DB
( , <C:\Program
Files\< >\DB>).

3.2.5. Terrasoft Oracle


Terrasoft,
Terrasoft,

Terrasoft.

44

Terrasoft


: <C:\Program Files\< >\DB>,

<

>

Terrasoft

Sales,

Terrasoft CRM, Terrasoft XRM ..


:
1.

RestoreDatabase.cmd,

<C:\Program Files\< >\DB>,


[Enter].
2.

SYS ( Oracle)
[Enter].

3.

Terrasoft
[Enter]. , ,
[Enter].

4.

[Enter].
,
[Enter].

5.

.
, ,
.

Oracle Server,
:
1.


Oracle Client, , Oracle Server.

2.

, , Oracle
Client, tnsnames.ora. ,
, : <c:\oracle\ora92\network\admin\ tnsnames.ora >.

3.

Oracle Server. ,
tnsnames.ora,
:

Terrasoft

a.

(, TERRASOFT_ORA92);

b.

( PORT = 1521);

45

c.

, Oracle Server
(, HOST = SERVER_ORA);

d.

(SERVICE_NAME) (SID)
Oracle (, SERVICE_NAME =
Oracle92).

, tnsnames.ora ,
, :
TERRASOFT_ORA92 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)
(HOST = SERVER_ORA)(PORT =
1521))
)
(CONNECT_DATA =
(SERVICE_NAME = Oracle92)
)
)
Oracle Server
Oracle, Net Services Reference Guid.

3.3.

Terrasoft

TSClient.exe.
, ,
(. 3.22).

. 3.22

46

Terrasoft

Terrasoft Firebird 2.0 []


SYSDBA, [] masterkey.

Terrasoft Oracle []
SYS, [] SYS.


. 3.23.


( ),
,
.

. 3.23

[],
(. 3.24),
:
[] ,

.
[ ] ,
, Web Services.
.
[ ]
.
, [] (
[]
:
[. ]

Terrasoft.
Terrasoft

47

[ ]
.
[ ] ,
. wnd_Main,
.

. 3.24 /
[]

.

3.3.1. MS SQL
2000/2005/2008
Terrasoft
, MS SQL Server 2000
Service Pack 4.
Terrasoft,
MS SQL 2000 / 2005 / 2008,
(. 3.25
[ ] SQL-
, Terrasoft,
.
[ ] Terrasoft,
SQL-.
MS SQL (. 3.26),
, ,
.

48

Terrasoft

. 3.25 (MS SQL


2000/2005/2008)

. 3.26 MS SQL
MS SQL
, SQL-.

3.3.2. Firebird 2.0


Terrasoft,
Firebird 2.0, :
(. 3.27):
[]
(/).

[ /] Terrasoft
Firebird 2.0.
[ ] Firebird
.
Terrasoft

49

. 3.27 Firebird
[] , Firebird
( 3050). .
(. 3.28):

. 3.28 Firebird

,
Firebird, []
, [] Firebird, []
, .
, .

3.3.3. Oracle
Terrasoft,
Oracle, (. 3.29):
[Home Name] ,
Oracle.
[Server] , tnsnames.ora.
[Schema] Terrasoft.

RestoreDatabase.cmd .

50

Terrasoft

. 3.29 Oracle

3.3.4.

,

, []

.
,

:

[]
(.
3.26),
,
,

. 3.30

,
[OK] .
[]
(. 3.31)

Terrasoft

51

. 3.31
Terrasoft
, Supervisor.
,
.

Terrasoft Oracle []
SYS, [] SYS.

Terrasoft Firebird 2.0 []


SYSDBA, [] masterkey.

3.4.

web-

Terrasoft
web-, .
web-:
web- IIS ( 6.0 7.0);
web- Apache 2.

52

Terrasoft 3.1.1, RunSettings.xml,


Settings

Terrasoft,
Config. xml,
(
).
UserSettingsDirectory , ,
: UserSettingsDirectory="{ts}\Settings",
{ts} ,
Terrasoft.
Config. xml, ,
, ,
, web-.
RunSettings.xml ,
IIS.

Terrasoft

3.4.1. web- IIS


web- IIS :
web- IIS;

https,
SSL-.

3.4.1.1. web- IIS 6.0


Terrasoft web-. web-
Internet Information Services (IIS) 6.0
:
1.

Terrasoft
(. 3.3) [Web Services ].

2.

Internet Information Services. :

Terrasoft

a)

[ ] ->
[].

b)

[
] -> [Internet Information Services].

c)

,
IIS. ,
url
Terrasoft web, Bin
(
<C:\Program Files\< >\Bin>).

d)

, ,
,
.
[ ]
, . 3.32.

e)

Windows Server
2000/2003, IIS 6.0,
TSWebServicesServerLibrary.dll IIS Web Services
Extention. ,
[Add a new
Web service extention] . 3.33.

53

. 3.32

. 3.33
(. 3.34).

54

Terrasoft

. 3.34

TSWebServicesServerLibrary.dll, [Add].

[Set extention status to Allowed] (. 3.35).

. 3.35 [Allowed]
Terrasoft

55

[OK] [Web
Service Extentions] , . 3.36.

. 3.36 [Web Service Extentions]


3.

,
MS SQL, Firebird Oracle ( 3.3).

4.

( )
WebServerSettings.ini,

Settings
:
TimeoutInterval
. ,
.
TimerInterval .

.

56

: HTTP 413 Request Entity too


Large, :
cd C:\Inetpub\AdminScripts
cscript adsutil.vbs set w3svc/1/uploadreadaheadsize 26240000

cd C:\Inetpub\AdminScripts
cscript adsutil.vbs set w3svc/uploadreadaheadsize 26240000
IIS.
,
.

Terrasoft

web- URL
Terrasoft
( 3.4.1.3).

( 3.4.1.4).

3.4.1.2. web- IIS 7.0


web- IIS 7.0 :
1.

web- Terrasoft
( 3.3).

2.

1, 2.a-2.c, 3.4.1.1.

3.

, Bin,
,
[Handler Mappings]
( ), (. 3.27).

. 3.37 [Handler Mappings]


4.

[Edit Feature Permissions],


(. 3.38).

5.

IIS Manager [ISAPI


and CGI Restictions] (. 3.39).
DLL- ISAPI-
EXE- CGI, .

Terrasoft

57

. 3.38

. 3.39 [ISAPI and CGI Restictions]


6.

58

[Add],
TSWebServicesServerLibrary.dll (. 3.40).

Terrasoft

. 3.40
TSWebServicesServerLibrary.dll
web- URL
Terrasoft
( 3.4.1.3).

( 3.4.1.4).

3.4.1.3. IIS
IIS
:
http://_/__/TSWebServicesServ
erLibrary.dll/soap/IServer
web-
, :
http://_:/__/TSWebServic
esServerLibrary.dll/soap/IServer
XML-,
. 3.41, IIS
.
, IIS
.
: http://localhost/.

Terrasoft

59


,
(. 3.42).

. 3.41 XML- IIS

. 3.42

60

Terrasoft


( 3.4.1.4).

3.4.1.4.
, web-,
. :
1.

/ (. 3.24)
[ ] [Web Services].

2.

(. 3.43)
:
[URL]
:
http://_/__/TSWebS
ervicesServerLibrary.dll/soap/IServer.
https
[ SSL],
SSL- . SSL-
.
[ ] ,
proxy-. proxy-
IP- . proxy-
,

[
] .

. 3.43 (web)
[] , .
.
,
.

Terrasoft

61

[ ()]
.

,

.




, ,
[]

[].

[ ] .
9.

, .

Web-

3.4.1.5. SSL-
https,
SSL-. SSL-
:
1.

SSL- ;

2.

SSL- .

SSL-
1.

IIS (Default Web Site)


[ ].

2.

[
[].

3.

4.

Terrasoft
[ ]
[ ] [].
(. 3.44) :

[ (SSL)] ([Require secure


channel (SSL)]);
[
certificates]).

([Require

client

web
, .

62

Terrasoft

. 3.44

openssl.exe, Terrasoft.
1.

, :
openssl.exe genrsa -des3 -out ca.key 1024
openssl.exe req -new -x509 -days 3650 -key ca.key -out ca.crt config openssl.cfg
Common Name, ,
Web-.

2.

(ca.crt) .

3.

, :
openssl.exe genrsa -des3 -out server.key 1024
openssl.exe req -new -key server.key -out server.csr -config
openssl.cfg
openssl.exe x509 -req -days 365 -in server.csr -CA ca.crt -CAkey
ca.key -set_serial 01 -out server.crt
openssl pkcs12 -export -in server.crt -inkey server.key -out
server.pfx

Terrasoft

63

Common Name - Web-.


4.

(server.pfx)
( ),
mmc.

5.

IIS.
128- ([Require 128bit encryption]) [ ]
([Ignore client certificates]) - . 3.44.

6.

server.key, server.crt
ca.crt. ,
. 1 ( SSL Terrasoft).

SSL-
SSL- ,
:
1.

Terrasoft
(. 3.4)
[ SSL].

2.

;
;
, .
3.

SSL- /
Terrasoft (. 3.51).

SSL Apache .

64

1.

mmc.

2.

[] >
[ ] (. 3.45).

3.

(.
:

3.46).

a.

[] [ /
];

b.

[ ]
[];

c.

[
];

Terrasoft

. 3.45

. 3.46

Terrasoft

d.

[].

e.


( ) (. 3.47).
65

. 3.47
4.

- >

( ,
).

5.


[ ] - >[].

6.

[,
]
,
.
.

7.

Tools (
<C:\Program Files\< >\Tools>)
openssl.exe.
:
openssl.exe
pkcs12
-in
Certificate.pfx
-out
Certificate.pem,
:
Certificate.pfx ,
.6.
Certificate.pem .
.

8.

66

,
(.6), ,
.

Terrasoft

. 3.48 openssl.exe
9.

,
( ),
<BEGIN> <END>. 2-,
,
.
<.pem>.
, :
-----BEGIN RSA PRIVATE KEY----Proc-Type: 4,ENCRYPTED
DEK-Info: DES-EDE3-CBC,610E47678A8AE865
...
-----END RSA PRIVATE KEY---- :
-----BEGIN CERTIFICATE----...
-----END CERTIFICATE-----

SSL Apache .

, ,
:
1.

Terrasoft

Internet Explorer []
[].

67

2.

[
] ,
.

3.

[] (. 3.49).

. 3.49
4.


Base64-.

5.

.
<.pem>, , root.pem.

SSL- Terrasoft
:
1.

/ [URL]
https (. 3.50).

2.

[ SSL].

3.

SSL :
,
,
;
, .

68

Terrasoft

. 3.50 (web-)

. 3.51 SSL
,
.

[ ] .
, 1,
2 ( 2 => 1 =>
), = 2

3.4.2. web- Apache 2


web- Apache 2 :
web- Apache;

https,
SSL-.

Terrasoft

69

3.4.2.1. web- Apache


Terrasoft Apache 2.0-2.0.61.
web- Apache,
:
1.

Terrasoft.

2.

httpd.config Apache
:
LoadModule tsapache_module
"D:\Projects\Terrasoft33\Terrasoft\Bin\TSWebSe
rvicesServerLibrary.dll"
<Location /TSWebServicesServerLibrary>
SetHandler TSWebServicesServerLibrary-handler
</Location>
,
Terrasoft, .

3.4.2.2.

Web- Apache
IIS ( 3.4.1). URL .
:
http://_/__/soap/IServer.

3.4.2.3. SSL- Apache


https,
SSL-, :
1.

SSL- ;

2.

SSL- .

SSL- Apache .
SSL- Apache.

SSL-

70

1.

Apache, SSL.

2.

httpd.config
:
LoadModule ssl_module modules/mod_ssl.so

3.

:
a.

b.

c.

Terrasoft


SSL- IIS
(. 64). , ,
(. . 9 . 67),
.
:
openssl.exe
rsa
-in
Key.pem
passin
pass:Terrasoft out Key2.pem,
<Terrasoft> - .

, SSL- IIS (. 67).
4.

httpd.config
:
SSLEngine on
<Directory />
SSLRequireSSL
</Directory>
SSLCertificateFile " SSL"
SSLCertificateKeyFile
"

"
SSLCACertificateFile "
"
SSLVerifyDepth 2
SSLSessionCache
"shm:C:\Program
Files\Apache
Group\Apache2\logs\cache"
SSLSessionCacheTimeout 600
SSLVerifyClient require

SSL- Apache
Apache.

SSL-
SSL-
, . :
1.


(. 64)
( ).

2.


, ,
(, e-mail).

Terrasoft

71

3.5.

web-
Service Desk

web-
, ,
:
Windows XP Professional Windows Server 2003;
IIS , ;
Microsoft .NET Framework 2.0, 3.0 3.5.

web- Service Desk


Terrasoft Service Desk, Terrasoft XRM + Service Desk,
Terrasoft XRM Distribution + Service Desk

,
Terrasoft ( 3) web ( 4.2.6).

Terrasoft 3.1.1, RunSettings.xml,


Settings
Terrasoft, Config. xml,
(

). UserSettingsDirectory

,
,

:
UserSettingsDirectory="{ts}\Settings",
{ts} ,
Terrasoft.
Config. xml, ,
, ,
, web-.
RunSettings.xml ,
IIS.

web- Windows Server


2003, IIS 6.0.

web- Windows XP Professional



.
ASP.NET IIS.

web- :
1.

ASP.NET.
IIS , IIS
ASP.NET. ,
(Configure Your Server Wizard)
.

72

Terrasoft

IIS, ASP.NET, ASP


:

COM+.

a.

(Configure Your Server


Wizard).

b.

[Next] ([]) .

c.

[Server Role] ([ ])
Application Server ( )
[Next].

d.

[Enable ASP.NET] ([ ASP.NET])


, , [FrontPage Server Extensions]
([ FrontPage]),
[Next].

e.

[Next] .

f.

[Finish] ([]), IIS


ASP.NET.

IIS , ASP.NET ,
ASP.NET
. :
a.

IIS.

b.

Web Services
Extensions.

c.

[Web Service Extension] ASP.NET.

d.

[Allow] ([]).

ASP.NET .
2.

ASP.NET IIS.

C:\%winndir%\Microsoft.NET\ Framework\ v2.0.xxxx.
aspnet_regiis i.
IIS ASP.NET ISAPI .
, aspnet_regiis.
,
aspnet_regiis -?.

3.

Terrasoft

IIS:
a.


[Application Pool] IIS.

b.

[New] ([]),
[Application Pool] ([ ]).

c.

73


.
d.

[OK].

, ,
.
4.

.

[Properties] ([]).
[Default AppPool Properties]
([ AppPool ]).
[Identity] ([ ]),
,
.

.
,
.

Network Service (
)

;

, .

Local Service (
)


;
Network Service
.

Local System (
)


;
.

IUSR_computername,
IWAM_computername ASPNET, [Configurable]
([]) [Identity] ([ ]).
5.

74

web- IIS:
a.

[ ] ->
[].

b.

[
] -> [Internet Information Services].

c.

IIS.
,
url web-,

Terrasoft

WebForm, ServiceDeskWebForm,
(
<C:\Program
Files\<
>\
ServiceDeskWebForm>).
d.


, . 3.52.
[ (, ISAPI CGI)]
.

. 3.52

Terrasoft

e.



[ASP. NET]
ASP. NET 2.0 (. 3.53).

f.

Windows Server 2003



( Administrators
IIS_WPG) ,
ApplicationPull (. 3.54).

g.


(. 3.55).
IIS.

75

. 3.53

. 3.54

.

IIS

web-
web.config, , web-

76

Terrasoft

.
<appSettings>:

. 3.55
TSConfigName ,
web-, , "TS332".
TSLogin TSPassword
, web-
web- ( 4.2.6).
TSUseWindowsAuthentication windows web-.
false true.
TSIncidentWebOriginGUID GUID web
[ ].
web-
web.
TSFileItemTypeID ID
[ ].
, web, .
TSIncidentRemindSubjectTypeID ID
[ ].

.
Terrasoft

77

UploadFolder
. ,
c:\Uploads.
ASPNET.
web-
,
<system.web> <httpRuntime maxRequestLength="1024000">.
maxRequestLength

MaxFileSize Terrasoft ( 5.1).
web-
Service Desk c https,
() .
https web- IIS
SSL-.

, web- web https, url web-


https://.

78

4.


.

Terrasoft.
.
:
(
);
Terrasoft;
.

4.1.

,
.

, , Terrasoft 3.0.4,
-
( [] ),

:
1.

Terrasoft .
,
( []),
Terrasoft.

2.

Terrasoft
( []). []
.

3.

,
( []). :

Terrasoft

a.

(. 4.1)
[].

b.

,
.

c.

[].

79

. 4.1
d.

Terrasoft MS SQL

,
[]: [
], [ ],
[ ].
: ,
[].

MS SQL.

e.

4.1.1.
,
MS SQL,
[ ] []
.
(. 4.2):

. 4.2
80

[] ,
. .
[]
. .
, [], [
].
[]
,
.
[]
. Terrasoft MS SQL
Oracle
,
.
Terrasoft Firebird
:
[] ;
;
;
.
[ ] Terrasoft ,
,


.
[ ]
.
, ,
[ ] (
[ ] / [ ] )
(. 4.3).

. 4.3

Terrasoft

81

, ,
[] [].


,
[] [] .

4.1.2.
Terrasoft ,
, .

MS SQL.

,
[ ]
[] .
, . 4.4.

. 4.4

[].
Windows. Windows XP
. 4.5.
:
1.

(. 4.5)
(
). [ ]
.

2.

[] (. 4.5).

, (. 4.6),
[]
.

82

. 4.5

. 4.6
[OK].

Terrasoft.

Terrasoft ,
.
.

Terrasoft

83

[ ], [], []
.

.
, .

.

4.1.3.
Terrasoft
.
[ ] []
.

MS SQL.

, .
Windows XP . 4.5
:
1.


[ ],
,
.

2.

[]

(. 4.6).

,
.
[] , ,
. 4.7.

. 4.7
,
, .
,
[].
,
, .
[] .

84


(. 4.4).
[Terrasoft
Log]. , .
,
, ,
, . 4.8.
,
(. 4.8).

. 4.8

:
;
;
.

, ,
(
).

4.2.

Terrasoft

Terrasoft

Terrasoft, :
.

,

Terrasoft

, ,
1 , .
.

.
, ,
.

85

, Terrasoft
Terrasoft.
,
. ,
, Terrasoft.


,
.


.
, ,
,
.

,
,
, .

Terrasoft,
.
- .


,
.
,
, .


Terrasoft
.

[] [ ] ->
[ ]

Terrasoft,
(. 4.9).

86

[ ]
, .

. 4.9 [ ]

[ ]

(
).
[] []

Terrasoft.
Terrasoft,
(
[]

.
( []
).
,
.
[]
, .


UpdateActiveSessionPeriod 5 60 .
, .

[]
[ ] -> [] (. 4.10).

Terrasoft

87

,
.

, ,
.
,
, ,
, .
[]
(
,

),
.
[]
[]
[ ].
,
, .

. 4.10 [] []
[ ]
, []
,
.

88

, ,
.

4.2.1.
:
1.

Supervisor (
Terrasoft Firebird SYSDBA, Oracle
SYS).

Terrasoft MS
SQL Oracle.

2.

[] ,
,
.
.

3.

[] . []
, 2.

4.

,
.

[]

,
.
.

,
,
.

4.1.

4.2.2.
,
Terrasoft
,
4.2.1.


,
,

:
1.

Terrasoft


Terrasoft,
[]

/wnd=wnd_licenseManager

TSClient.exe
/wnd=wnd_licenseManager.

89

[Terrasoft XXX]
Windows (Terrasoft XXX ).
2.


.
,
.

MS SQL
Server ( Terrasoft Firebird
SYSDBA, Oracle SYS).

3.


(. 4.11):

. 4.11
4.

[ID ]
.
Terrasoft
Terrasoft. [ID ]
.
8 . ,
.


[] (. 4.11):
1.

90

,
,
, ,
.

, ,
,
,
.
2.

,
.

[ ]

[]
(

[Insert]).



[ ]

(.
4.12)
.

Terrasoft [OK] .

. 4.12
3.

Terrasoft

,
.
,
.
[]
.
,
[].

91

4.


Terrasoft Service Desk User 3.x,
Terrasoft XRM + Service Desk User 3.x,
Terrasoft XRM Distribution + Service Desk User 3.X,
Terrasoft XRM Distribution User + Service Desk Agent 3.X
Terrasoft XRM User + Service Desk Agent 3.X .

5.

-
,

[ ]

[] (F5).

,
[ ]
.

[ ].


, .


[ ] (. 4.13). ,
,
.
[ ] ,
.

.
:

( ).
Terrasoft MS SQL
\
.
, ,

).

92

. 4.13 [ ]

/
, web-

.


:
1.

Terrasoft MS SQL
( ) , ,
CompetitiveSessions.
Terrasoft Oracle
CompetitiveSessions.

,
.

2.

Terrasoft

Terrasoft MS SQL
, sql- .

.
,
PUBLIC,
(tbl_CompetitiveSession).

93

Terrasoft Oracle /

SCHEMA_NAME , :

GRANT CONNECT TO "SCHEMA_NAME";


ALTER USER " SCHEMA_NAME " DEFAULT ROLE
ALL;
GRANT CREATE TABLE TO " SCHEMA_NAME ";
GRANT UNLIMITED TABLESPACE TO "
SCHEMA_NAME";

3.

[ ]
(. 4.13) [ ].

4.

(. 4.14
Terrasoft MS SQL, . 4.15
Terrasoft Oracle) ,
, ,
.

Terrasoft MS SQL
. localhost.

. 4.14
(MS SQL)

94


. ,
.

. 4.15
(Oracle)
Terrasoft Oracle ,
, ,
Oracle , 9.2.

,
[]
, ,
.
tnsnames.ora, Oracle
(, d:/oracle/ora92/network/admin/ tnsnames.ora).

5.


. ,
, ,
,
,
.

web- Windows-
,
web- (IIS Appache2).

Terrasoft

95

/ MS SQL/ Oracle
,

Terrasoft.

.


, [ ] (

[Ctrl+S]), ()
.


<*.tlr>.


.

Terrasoft (support@terrasoft.com.ua
support@tscrm.com).

4.2.3.

Terrasoft
.
<*.tls>.

.
[ ] (
[Ctrl+O]) . ,
.
,
.
, Terrasoft
Terrasoft MS
SQL, :
1.


[
],
( ),
, .
: , ,
sql- myserver\mssql2005,
,
.

2.

96

],: ,
( ),

, .
: , ,
sql- myserver\mssql2005,

server1\mssqlexpress. ,
myserver\mssql2005,
() IP,

sql-

server1\mssqlexpress.

4.2.4.
:
;
;

, Terrasoft Call Centre;


.
, ,
/
/
.

4.2.5.
, Terrasoft
, :
1.

MS
SQL Server ( Terrasoft
Firebird SYSDBA).

2.

[ Supervisor]
[] ( Terrasoft Firebird
[ SYSDBA]). ,
,
.

3.


Terrasoft.

Terrasoft

97

4.2.6. web-
, web-
Service Desk, , .
web- :
1.

,
,
web- web.config ( 3.5) <appSettings>,
, WebUser.

web- , web [ ], [Email], e-mail ,



, , .

2.

:
Terrasoft Service Desk WebUser 3.X

Terrasoft Service Desk Agent 3.X ( Terrasoft XRM + Service Desk


Agent 3.X / Terrasoft XRM Distribution + Service Desk Agent 3.X).

3.

, web-
web- WebUser.

4.


Terrasoft Service Desk WebUser 3.X.
,
web-.

web-
Terrasoft Service Desk, Terrasoft XRM+ Service Desk,
Terrasoft XRM Distribution + Service Desk.

4.2.7.


,
, .

/
Terrasoft.

,

Terrasoft,
,
.
98

4.2.8.
,
.

1. .
:

a.

Supervisor
.

b.

[],
.
Supervisor
.

Terrasoft Firebird
SYSDBA, .

2. Supervisor.
Supervisor, ,

.
( ) Supervisor.

3. .
, ,
,
. :
a.

,
,
,
;

b.

,
.

4. ( ).


.

4.3.

Terrasoft .
,

[].

Terrasoft

99

(
).


.

,
.

4.3.1. Terrasoft


.
, ,
:
,
,
.
, []
[],
[],
[] .
, , []
[]
.
,
.
,

[]



,

( ,
.

).
( []),
[] .
,
.

100

,
[]
, .
, , :

.

,
.

.
-
, .

, ..

( ),
(
).

[]
[].

, , .
,
,
,
.
:

, .
Terrasoft MS SQL
Oracle
, ;
, ,
, ..
Terrasoft Firebird
:

[]

;
Terrasoft

101

.
Terrasoft
, ,
,

).

:

, ..
, -
.
.
.

.
.

(,
-
).

: , , , ,
.
,

. ,
,
.

. ,
[ ],
[].

, .
,
[] [], []
[ ].
.

.

(, ,
102

),

. ,





,
.

.
, ( ,
)
, :
,

(,

[]) []);
,
(,

);

, (,

);
,
(,
).
,
,
. ,
( ),
, ,
.

4.3.2.
:
[]
(),
() .
()
() .
[] ()
. []
().

Terrasoft

103

[] ().
[]
().
[] ().
[]
().

.
, .


Terrasoft MS SQL Oracle.

, []
[] (. 4.16)
,
.

. 4.16
[ ]

.

Terrasoft MS SQL Firebird


. Terrasoft
Oracle
.

[ ]
, (. 4.17).
,

.
(. 4.18)
( ) ( )

104

. 4.17

.
( [Ctrl] [Shift])
.

. 4.18

,

[] (.
4.16).


. ,
.

web- ,
web- [
] [E-mail].

4.3.3.

,
.

Terrasoft

105


.
[] , .
:
[ ]
, ..
.
[]
. ,
.
[]
.
[] .
[ ]
(,
- ).
[ ]
: , , ,
.

[] .

web- ,
web- e-mail,
.

4.3.4.
,
.

,
. ,
, ,
.

[
] [] (. 4.19).


Terrasoft MS SQL Oracle.

Terrasoft
.

106

[] ,
[ ] [ ],
, (),
[] ([]).
[] , [ ]
[ ],
, (),
[] ([]), .
[] , [ ]
[ ], ,
(),
[] ([]).
[ ] , [
] [ ],
,
(), [] ([]),
.
, -
.

[]
(. 4.16).
[
] ,

(. 4.19).

,

,
(

),
.



[ ]
,
(. 4.20).

[ ] [
], .
-

[]

Terrasoft

107

. 4.19

. 4.20

,
Terrasoft.
[
].

4.3.5.
Terrasoft :
[] (
).
[]
, .
[ ]
.

,
[ ]
[] (. 4.21).


Terrasoft MS SQL Oracle.

,
[] [] (. 4.16) (

108

),
.
, [ ]
,
(. 4.21).

. 4.21
[ ]

[ ]
(. 4.22).

. 4.22

Terrasoft

109

[
]. ,
, .

4.4.

Terrasoft
.

[] -> [] -> [
].
. 4.23.

. 4.23

(. 4.24).
[ , ]
,
.
, ,
, ,

, .
,
.

.
,
.


[].

110

. 4.24
[ ] /,
.
.
[ ]
/,
, .
,
, [<=]. ,
2010 , [<=]
31.03.2010.
[ ,
] ,
,
. ,
: .
.

: %
&.

, ,
. ,
,
,
,

.
[ ]
.
Terrasoft

111

5.
Terrasoft,
,
.
:
;
;

,

[
] -> [ ] MS Windows.

MS Excel;
.

5.1.


, ,

MS Outlook.
,

.
[] -> [] ->
[ ].
.
,
Terrasoft.

5.1.1.
,
.

UpdateActiveSessi
onPeriod

.
.
5 120 .

112

IsVisesClear

,



. ,
,


(


[ ]).

CheckLicensesDue
Date

,

.

,



( 10).

NumberOfDaysTo
WarningLicensesW
illExpire

FirstWeekCalcMet
hod

;

;
.

5.1.1.1.
,
.

CustomerID

Terrasoft

ID ,


().



,

Terrasoft.
ID

.

,

.

113

GridCanPrint

,

,
.

,


<*.xls>.

GridCanExport

QuickFilterLikeType

UseServerTimeZone

ServerTimeZone

UseInlineParameters

;
;
;
;
.


.

[
] - > [].
.
.
,

.
-
UTC (
,
).

!

.


,
[ ] -> [ ]
MS Windows ,

.


.

/ MS SQL
Server 2008.

5.1.1.2.
,
.

114

UseCalendarCache

,

.

WeekEndDayType


(
).

WorkDayType


(
).


WorkDayMonday

,

.

WorkDayTuesday

,
.

WorkDayWednesday

,
.

WorkDayThursday

,
.

WorkDayFriday

,
.

WorkDaySaturday

,
.

WorkDaySunday

,

.

5.1.1.3.

.

GlobalSearchMinSt
ringLength

.


,
.

GlobalSearchMaxR
esultRows

,
.

Terrasoft

115

5.1.1.4. [] []
,
[] [].

,
,

[]

.

InsertDescriptionM
odifier

,
,

,
,
.

MaxFileSize

(
),
[].

InsertDescriptionO
nTop

5.1.2. []
[]
[], [] [].
Terrasoft.

5.1.2.1. [] []
,
[] [].

OurCompanyAcco
untID

[].

,
.



.
0,
.

CheckAnniversaryF
orDays

5.1.2.2. []
,
[].

116

DeleteRemindingB
yFinishedTask

,


.

WorkDayBegin


(, 9:00).
,
.

WorkDayEnd


(, 18:00).
.

,

,

,
.

IsTaskCoveringCh
eck

TaskEmailByConta
ctTemplateID

,
,

.

Email-,



(,
,
..).

CycleTaskEmailBy
ContactTemplateI
D

,
,

.

Email-,




(,
, ..).

5.1.3. []
[]
[], [], [] [].
Terrasoft, Service Desk.

5.1.3.1. []
,

[]

:
Terrasoft Sales,
Terrasoft CRM,
Terrasoft XRM,
Terrasoft XRM+Service Desk,
Terrasoft Distribution, Terrasoft Distribution+Service Desk.

Terrasoft

117

CheckOpportunity
NumberDuplicate
s

OpportunityNumb
er

OpportunityMask


: <
> <%1>
<
>, <%1>
- ,

1

.
:%1.

5.1.3.2. []
,
[] : Terrasoft Sales, Terrasoft CRM,
Terrasoft XRM,
Terrasoft XRM+Service Desk,
Terrasoft Distribution,
Terrasoft Distribution+Service Desk.

InvoiceNumber

InvoiceMask


: <
> <%1>
<
>, <%1>
- ,

1
.
:
%1.

CheckInvoiceNum
berDuplicates

118

CalcInvoicePayme
nt

,
[
] [] [
]
[].

" "
- ,
.

5.1.3.3. []
,

[]

:
Terrasoft CRM,
Terrasoft XRM, Terrasoft XRM+Service Desk, Terrasoft Distribution, Terrasoft
Distribution+Service Desk.

ContractNumber

ContractMask


: <
> <%1>
<
>, <%1>
- ,

1

.
:
%1.

CheckContractNu
mberDuplicates

,

.

5.1.3.4. []
,

[]

:
Terrasoft CRM,
Terrasoft XRM, Terrasoft XRM+Service Desk, Terrasoft Distribution, Terrasoft
Distribution+Service Desk.

DocumentNumbe
r

Terrasoft

119

DocumentMask


: <
> <%1>
<
>, <%1>
- ,

1

.
:%1.

CheckDocumentN
umberDuplicates

,

.

5.1.4. []
,
[] :
Terrasoft XRM,
Terrasoft XRM+Service Desk,
Terrasoft Distribution+Service Desk.

DoAskBeforeDrag
DropInProject

UseCostForCalcul
ateMargin

ProjectTaskCreati
onQuestion

120

Terrasoft Distribution,

,


[].

,
:
= - .
,
:
= -
.
.

;


;


.

,
"
"
.

ShowDeadlineChe
ckDialog

,


.

5.1.5. []
[]
[], [ ], [ ]
[]. Terrasoft,
Sales CRM.

5.1.5.1. []
,

[]

:
Terrasoft XRM,
Terrasoft Service Desk, Terrasoft XRM+Service Desk, Terrasoft Distribution,
Terrasoft Distribution+Service Desk.

IncidentNumber

IncidentMask


: <
> <%1>
<
>, <%1>
- ,

1

.
:Ticket#%1.

IncidentWaitForC
ustomerResponse


( , 24.)

IncidentEmailByC
ontactTemplateID

,
,

.

Email-,



(,
,
..).

5.1.5.2. [ ]
,

[ ]

:
Terrasoft

121

Terrasoft XRM+Service Desk,


Terrasoft Service Desk.

Terrasoft Distribution+Service Desk,

ServiceAgreemen
tNumber

ServiceAgreemen
tMask


: <
> <%1>
<
>, <%1>
- ,

1

.

:Ticket#%1.

5.1.5.3. [ ]
,

:
Terrasoft XRM+Service Desk, Terrasoft Distribution + Service Desk,
Terrasoft Service Desk.

ChangeRequestN
umber

ChangeRequestM
ask


: <
> <%1>
<
>, <%1>
- ,

1

.

:Ticket#%1.

5.1.5.4. []
,
[] : Terrasoft Service Desk,
Terrasoft XRM+Service Desk, Terrasoft Distribution+Service Desk.

122

ProblemNumber

ProblemtMask


: <
> <%1>
<
>, <%1>
- ,

1

.
:Ticket#%1.

MinIncidentcount
ForProblem

5.1.6. []
[]
[], [], [], [].
Terrasoft, Sales, CRM Service Desk.

5.1.6.1. []
,
[] : Terrasoft Distribution,
Terrasoft Distribution+Service Desk.

OrderNumber

OrderMask


: <
> <%1>
<
>, <%1>
- ,

1

. :
%1.

5.1.6.2. []
,
[] : Terrasoft Distribution,
Terrasoft Distribution+Service Desk.

Terrasoft

123

PurchaseNumber

PurchaseMask


: <
> <%1>
<
>, <%1>
- ,

1

. :
%1.

5.1.6.3. []
,
[] :
Terrasoft XRM,
Terrasoft XRM+Service Desk,
Terrasoft Distribution+Service Desk.

Terrasoft Distribution,

CFMask


: <
> <%1>
<
>, <%1>
- ,

1

.
:
CF%1.

CFNumber

5.1.6.4. []
,
[] : Terrasoft Distribution,
Terrasoft Distribution+Service Desk.

OfferingReserveP
eriodDays


(, 14 ).

124

AllowNegativeRe
main

,


.

CheckRemainFor
OfferingReserve

OfferingMovemen
tNumber

OfferingMovemen
tMask


: <
> <%1>
<
>, <%1>
- ,

1

.
:
%1.

5.1.7. []
[]
[], Call Centre.
Terrasoft,
Call Centre.
,
[].

CallInternalPhone
Length

CallNumber

CallMask


: <
> <%1>
<
>, <%1>
- ,

1

.
:Ticket#%1.

Terrasoft

125

CallInternalPhone
CommunicationTy
pe


[
],
, .

CallSmartTagMen
uLength

CallClientType

TAPI Client,
Oktell Client,
Cisco Client.

CallCentre.

5.1.7.1. Cisco
,
Cisco Call Centre.

CtiosA

,
,
10.192.10.121.

IP A Cisco.

CtiosB

,
,
10.192.10.121.

IP B Cisco.

PortA

,
, 42028.

A Cisco.

PortB

,
, 42028.

Cisco.

Heartbeat

''
Cisco ( 60 ).

PeripheralID

,
, 5004.

5.1.8. [Web-]
,

[Web-]

:
Terrasoft XRM+Service Desk,
Terrasoft Distribution+Service Desk,
Terrasoft Service Desk.

IncidentMarkMail
Template

,
,
.

126

IncidentNewCom
mentMailTemplat
e

,
,

.

Email-,

web-

,
.

IncidentMarkNotif
icationAction


;
E-mail;
E-mail.

,
URL ,

.

IncidentNewCom
mentNotificationA
ction


;
E-mail;
E-mail.

,


.

CanRequestUserR
egistrationFromW
eb

,

web-
web-.

SuccessfulRegistr
ationNotificationA
ction


;
E-mail;
E-mail.

SuccessfulRegistr
ationMailTemplat
e

,
,

.

Email-,

web-
.

MarkReadyIncide
ntStatus


,
web .

,

.

5.1.9. MS Outlook
MS Outlook
MS Outlook Terrasoft.
Terrasoft.

5.1.9.1.
,
MS Outlook Terrasoft.

Terrasoft

127


MSOutlookContac
tsIntegrationAddr
essesBusinessIsPr
imary
MSOutlookContac
tsIntegrationAddr
essesHomeIsPrim
ary
MSOutlookContac
tsIntegrationAddr
essesOtherIsPrim
ary

,

.

"".

,

.

"".


Microsoft Outlook ( Home
Business)
.

MS Outlook True
.
MSOutlookContac
tsIntegrationAcco
untTypeID


(
).


Microsoft.

MSOutlookContac
tsIntegrationAddr
essesBusinessTyp
eID

=
Business

,

Microsoft Outlook.

MSOutlookContac
tsIntegrationAddr
essesHomeTypeI
D

=
Home

,

Microsoft Outlook.

MSOutlookContac
tsIntegrationAddr
essesOtherTypeI
D

,

Microsoft Outlook.

MSOutlookContac
tsIntegrationAnni
versaryBirthdayTy
peID


,
Microsoft Outlook.

MSOutlookContac
tsIntegrationAnni
versaryOtherType
ID



Microsoft Outlook.

MSOutlookContac
tsIntegrationCom
municationAdditio
nalTypeID

,
IM Microsoft
Outlook.

128

MSOutlookContac
tsIntegrationCom
municationBusine
ssFaxTypeID

,

Microsoft Outlook.

MSOutlookContac
tsIntegrationCom
municationHomeF
axTypeID

,

Microsoft Outlook.

MSOutlookContac
tsIntegrationBusi
nessHomePageID


= Business
Home Page

,
web Microsoft Outlook.

MSOutlookContac
tsIntegrationCom
municationBusine
ssPhoneTypeID

,

Microsoft Outlook.

MSOutlookContac
tsIntegrationCom
panyMainPhoneT
ypeID

,

Microsoft
Outlook.

MSOutlookContac
tsIntegrationCom
municationEmailT
ypeID


= E-mail

,
E-Mail Microsoft
Outlook.

MSOutlookContac
tsIntegrationCom
municationFtpTyp
eID


= ftp-

,
ftp Microsoft
Outlook.

MSOutlookContac
tsIntegrationCom
municationHome
PhoneTypeID

,

Microsoft Outlook.

MSOutlookContac
tsIntegrationCom
municationMobile
PhoneTypeID

,

Microsoft Outlook.

MSOutlookContac
tsIntegrationCom
municationOtherF
axTypeID

,
()
Microsoft Outlook.

MSOutlookContac
tsIntegrationCom
municationOtherP
honeTypeID

,
()
Microsoft Outlook.

Terrasoft

129

MSOutlookContac
tsIntegrationCom
municationWebTy
peID


= Web

,
web-
Microsoft Outlook.

MSOutlookContac
tsIntegrationPers
onalHomePageID

,

web- Microsoft Outlook.

MSOutlookContac
tsIntegrationCom
municationPrimar
yPhoneTypeID

,

Microsoft Outlook.

MSOutlookContac
tsIntegrationCont
actTypeID


(
)


Microsoft
Outlook.

MSOutlookContac
tsIntegrationCom
munication1Para
metrName

,


1
()


1
.
, 1

,
[]


MSOutlookContactsIntegrationCommuni
cationBusinessPhoneTypeID.

MSOutlookContac
tsIntegrationCom
munication2Para
metrName

,


2
()


2
.

MSOutlookContac
tsIntegrationCom
munication3Para
metrName

,


3
()


3
.

MSOutlookContac
tsIntegrationCom
munication4Para
metrName

,


4
()


4
.


Microsoft Outlook.
,
Microsoft Outlook
.

MSOutlookLastDa
teByContactFrom
MsOutlook

130

MSOutlookLastDa
teByContactFrom
TS


.
,
.

5.1.9.2.
,
MS Outlook Terrasoft.

MSOutlookIntegr
ationAppointment
StateID


(
)

,

Microsoft Outlook ( ,
).

MSOutlookIntegr
ationAppointment
TypeID


(
)

,

Microsoft Outlook.

MSOutlookTasksI
ntegrationTaskTy
peID

(
)

,
Microsoft Outlook.

MSOutlookLastDa
teByTaskFromMs
Outlook


Microsoft Outlook.
,
Microsoft Outlook
.

MSOutlookLastDa
teByTaskFromTS


.
,
.

MSOutlookTasksI
ntegrationTaskCo
mpleteStateID

,

Microsoft Outlook.

MSOutlookTasksI
ntegrationTaskDe
ferredStateID


Microsoft
Outlook.

MSOutlookTasksI
ntegrationTaskIn
ProgressStateID

,

Microsoft Outlook.

MSOutlookTasksI
ntegrationTaskNo
tStartedStateID

,

Microsoft Outlook.

MSOutlookTasksI
ntegrationTaskW
aitingStateID


Microsoft
Outlook.

Terrasoft

131

MSProjectIntegrat
ionTaskImportanc
eHighPriorityID



Microsoft Outlook.

MSProjectIntegrat
ionTaskImportanc
eLowPriorityID



Microsoft Outlook.

MSProjectIntegrat
ionTaskImportanc
eNormalPriorityID



Microsoft Outlook.

5.1.10.
,
. 5.1.

[] .

. 5.1
[]
. .

[] .
[] .
[ ] , .
. :
[] (,
). .
[]
.

[ ] ,
.
132

[] ( / ).
[/]
.
[ ]
,
.
[ ]
, .
[],

.

[].

[].
[] ,
.
.
[] ,
.

,
, , ,
.

5.2.

,
.
.
,
[ ].

5.2.1.
[] -> [] -> [
] (. 5.2),
, .


Terrasoft MS SQL Oracle.

,
.

Terrasoft,
.
Terrasoft

133

. 5.2

Terrasoft


[] []
,

.

[]

,
(. 5.3).

,
, (. 5.4).

[ ].


, .

.

, ,
, [
], [
].

( [ ]
).

134

. 5.3

.
- ,
[ ]
(. 5.4).
,
[]
(.
5.2).

, ,
.
.

[] ,
(. 5.4)
[ ] [].
[],
(. 5.2)
(. 5.4),
[] [].

Terrasoft

135

. 5.4
, ,
[].

[ ] [].

.

5.2.2. [ ]
[ ] ,
.
. 5.5.

136


.
[] ,
.
[] ,
(,
[] [], []
[]).
[] ,
(, ).
[] [ ] .
[]
,
.

. 5.5 [ ]

,

,
[
] .

Terrasoft

[ ]

.

137

[ ] , (
, []), .
,
.

,

.

5.3.

, Terrasoft

.
.

[] -> [] -> [ ].


Terrasoft MS SQL Oracle.

. 5.6.

. 5.6

138

.
,
, ,
.

,
[] [] .

, .
[].

(. 5.7). .

. 5.7
[] ,
, [ ]
.

Terrasoft

139

[ ] , .
( 5.1).
[ /]
/.
.
[ ]
.
,
.
[ ],

.
[ ]

Terrasoft.
[ ]
.
[ ]
,
. ,
.
[ ]
, ,
, .
[ ]
.
, 3
. [
] [
]. []
[] ( ,
).
3
, (. 5.8).
[ ]

Terrasoft.
[ ] ,

.
[ ]
.

140

: (
).

. 5.8 [ ]
[ ]
[ ] ,
.

5.4.


( ),
,
.
:
[] [].
,
, ,
[].

5.4.1.
,
[] >
[].

Terrasoft

141


, . ,
.

[] > [] > [ ].


MS SQL Oracle.

. 5.9.

. 5.9
,
,
[ ] []
. , (. 5.10).

. 5.10
[] .
[] > []
.

142

, ,
[ ].

5.4.2.

.

Terrasoft Administrator
,
(. 5.9) .

,
.

(,
, ).



Terrasoft Administrator
.

Terrasoft Administrator
Common / Dictionaries / Custom.

,

(, , ).
, [ ]
[] (. 5.9).

[ ] []
.

,
, .

5.4.2.1.

(. 5.9) , ,
[ ] [].
(
[] []),
[] [ ] .

Terrasoft

143

,
.
. 5.11.

. 5.11

(, ),
[
] [ ].
. 5.12.

,
Terrasoft Administrator.

. 5.12
144

[] . .
, ,
. .
[ ] ( Dataset),
, Terrasoft
Administrator. .
[ ],
[].
,
,
[
].
[ ] ( Window),
.
[ ] (
Window),
.
[ ] ,
(, Type="Contact", NeedsRefresh=1)
.
,
, ,
,
.
,
, [].
[] > [] .

5.4.2.2.
,
[ ]
[] (. 5.9).

[ ] [].
. 5.13.


(. 5.12) .

[]
.

Terrasoft

145

. 5.13
:
;
;
[ ];
[ ] ( ).
[] () .
.
[] Terrasoft Administrator,
. ,
( ).
, Currency,
. .
[] ,
, [] ->
[] .
[ ] ,
, ,
. ,
[ ]
.
[ ] ,
.
, Terrasoft Administrator.
,
.
146

,
,
[] (. 5.13).

.
,
.
[] -> [] ,
.

5.4.2.3.

. [ ]
(. 5.13) [ ],
. 5.14.

. 5.14

(. 5.15) [] .
[] ,
, [ ]
.
[ ] , .
( 5.1).
[ /]
/.
.
[ ]
.
,
.
[ ],

.
Terrasoft

147

[ ]

.

. 5.15
[ ]
.
[ ]
,
. ,
.
[ ]
, .
[ ]
.
[ ] ,
.
,

148

. ,
[].

(. 5.14).
, [] []
.
[]
.

5.4.3.
,
,
.


,

.

, ,
, :
, ..
, ,
,
[], [], [], [].

.
,
,
. , :
1.

,
[] -> [] -> [] -> [
].

2.

3.

,
[].
,
, [] ->
[], , ,
.

Terrasoft

149

5.5.

,

.
, ,
,
.
.
,
.

,
.
, : , ,
; , ,
.

,

.

,
, :
(
);
;
;


,
,


, , VIP.

(,
, );
..

[] , , ,
..
. 5.16.

150

. 5.16


( ,
), [
] .

5.6.

MS Office

Terrasoft
MS Office
.
TSMSOfficeLibraryConfigurator.exe
Bin Terrasoft (
, <C:\Program Files\< >\Bin>).
(. 5.17),
,
.

. 5.17 MS Office
[OK] .
Terrasoft

151

MS Office,
Terrasoft
. , MS Outlook
MS Word Terrasoft .
Terrasoft MS Outlook

,

.

MS Outlook .
,
Terrasoft MS Outlook.
,
Terrasoft
, . 5.18.

. 5.18 Terrasoft
[
] [] .
,
Terrasoft MS Outlook,
[ ].
MS Outlook ( [] >
[Advanced Security] > [Action List]) TSClient.exe,
.
152

5.7.

MS Excel

MS Excel .


, []
( ).

,





.
Terrasoft,
[]
MS Excel
:

/wnd=wnd_Import.
.
,
Terrasoft : TSClient.exe /wnd=wnd_Import.

. 5.19.

. 5.19

.

5.7.1.
,
MS Excel. ,

MS Excel .
,
Terrasoft Administrator.
[ ] [
]. . 5.20.

Terrasoft

153

. 5.20
:

;


[]) Terrasoft.

MS

Excel (


[] [ (
)] (. 5.21) Terrasoft
.

. 5.21

MS Excel.

[]
[ ( )] (. 5.22)
.
[] MS Excel,
Terrasoft,
[].

154

. 5.22
MS
Excel.

5.7.2.

. [ ]
[ ] (. 5.23).
:

MS Excel;

Terrasoft.

. 5.23

[] [ ]
(. 5.24) :
Terrasoft

155

[] ;
.

(. 5.19)

[ ].
[ ] .
[]
,

.



, , MS Access,
- .
[ ]


.

[ (COM)]
TSADOImportLibrary.ADOSource.
Terrasoft ADO,
MS Excel.
[ ] GetRecordset.
TSADOImportLibrary.ADOSource,
MS Excel.
[] Terrasoft,
.
[ ] wnd_ExcelImportOptionsEdit.
(. 5.25),
SQL-,
.
[] [
] (. 5.23).
[]
.

. 5.24

156


[] [ ]
(. 5.23).
(. 5.25)
<*.xls>, ,
, :

. 5.25
:
[FROM]
MS Excel ;
[UNION],
, [WHERE];
MS Excel ,
.
:
SELECT `$`. + ' ' +
`$`. + ' ' + `$`. AS
, '{613C78E1-BB34-4F8D-B9B5D90CC146EEDC}' AS , `$`.,
`$`., `$`.,
`$`., `$`.USD FROM
`$` WHERE (`$`. Is Not
Null)
UNION SELECT `$`. + ' ' + `$`. +
' ' + `$`. AS , '{613C78E1BB34-4F8D-B9B5-D90CC146EEDC}' AS , `$`.[ ],
`$`., `$`., `$`.,
`$`.USD FROM `$` WHERE (`$`.[ ] Is
Not Null)

MS Excel
Terrasoft. []
[ ] (. 5.23)
[ ] (. 5.26) :
[ ] MS Excel.
[ ] Terrasoft.
Terrasoft

157

[ ] Terrasoft. :
, .
MS Excel Terrasoft.
,
.
[] (. 5.26)

.
,
.
[]
[ ] (.
5.20).
,
MS Excel
. [
] ID,
[] .
,
.
[ ]
: .
,
Terrasoft ,
Terrasoft.
,
Terrasoft.
[]
, .
[]
.
,
, [
] (. 5.26)
.
[]
, .

158

. 5.26

, MS
Excel.

5.7.3. MS Excel
,
Terrasoft
: TSClient.exe /wnd=wnd_Import.
(. 5.19),
[ ] MS Excel,
[ ] (.
5.23).
MS Excel []
( ),
.
[],
[] .

5.8.

,
,
Terrasoft .

:
1.

Terrasoft

:
TSClient.exe wnd=wnd_AccountLogo,




50 .

159

TSClient.exe
.
2.

Terrasoft,

Terrasoft []
/wnd=wnd_AccountLogo.

[ ],
. 5.27.

. 5.27 Terrasoft


.
,
, <.png>.
Terrasoft

(. 5.28).

. 5.28 Terrasoft

160

6.
Terrasoft ,
.
, OLAP ,
[OLAP] Terrasoft.

6.1.

OLAP-

OLAP-
.
, ,
Microsoft Analysis Server.
[OLAP] Terrasoft.

OLAP- Terrasoft XRM, Terrasoft Service Desk,


Terrasoft XRM+Service Desk, Terrasoft XRM Distribution, Terrasoft XRM Distribution+
Service Desk MS SQL.

6.1.1. OLAP-

1.

MS SQL Analysis Manager (


Terrasoft).

2.

OLAP-.

3.

OLAP-
Terrasoft .

4.

OLAP-
Terrasoft ( "View").

MS SQL Analysis Manager


.

6.1.2.
Analysis Manager
New Database .
,
, .

[New Data Source] DataSources (. 6.1).
(data source)
, (. 6.2).

Terrasoft

161

. 6.1

. 6.2
OLAP-
.

162

6.1.3.
OLAP- Terrasoft (.
6.3).

. 6.3
.
, (dimensions) ,
.
.
(facts measures) ,
.
, :
, , , , ,
.
: , , , ,
, , ,
, .
OLAP_DEMO
Process the Database.
. 6.4.

Terrasoft

163

. 6.4

6.1.4. [OLAP]

OLAP-
:
1.

[OLAP] Terrasoft
[ ]
(. 6.5).

. 6.5

164

2.

OLAP (. 6.6)

. 6.6
3.

OLAP-
Terrasoft. [
].

4.

[ ]
[+ .odc]
[] (. 6.7).

. 6.7
5.

Terrasoft

[ ] [
OLAP Microsoft SQL Server] [] (. 6.8).

165

. 6.8 [ OLAP Microsoft SQL Server]


6.


Terrasoft (. 6.9).

. 6.9
7.

166

OLAP-, , ,
OLAP- Terrasoft (. 6.10).

. 6.10 OLAP [Account]


8.

[]. ,
, ,
[] (. 6.11).

. 6.11
9.

[OK]
.

OLAP- .
, .
Terrasoft

167

7. Terrasoft Administrator
Terrasoft Administrator ,
.
CRM-
.
CRM-,

-
.
-,

.

Terrasoft

,
.
Terrasoft Administrator ,
TSAdmin.exe [Bin]
.
,
, ,
.
Terrasoft Administrator
.
Terrasoft Platform SDK.
:
Terrasoft Administrator;
;
Table;
Select Query;
Insert Query;
Update Query;
Delete Query;
InsertSelect Query;
Dataset;
MemoryDataset;
Window;
Script;
FastReport;
ADO-;
168

Terrasoft Administrator

User Fields;
Enum;
ImageList;
Workflow Action;
Workflow Diagram.

7.1.

Terrasoft Administrator

Terrasoft Administrator
. 7.1. Terrasoft
Administrator.
1 . :
[]
( [ ], [ ]),
Terrasoft Administrator.
[] /
( []),
[ Terrasoft] ( []).
[]

Terrasoft
([ ], [ ]).
[
], ,
, .
RemoveUnusedServices.xml,
Settings
.
2 .

Terrasoft .


,
[Ctrl] + [E].


,
.
.
, , :
[Details] ,
, .
[Dictionaries] ,
, .
[General] [Main Grid],
,
, .

Terrasoft

169

. 7.1 Terrasoft Administrator


[Reports] ,
, .
[User Fields]
.

:

[Foreign Workspace Details] ,



. , [Foreign
Workspace Details] [Offerings] ([])
[] [].
[Library] ,
.
[Foreign Reports] ,

. , [Foreign Reports]
[Documents] ([])
[ ] [].
[Functions] ,
[].
170

Terrasoft Administrator

[MailLinks] (Insidents).

.
[Links] ,
, , [Email].
[Dialogs] .
, ,
:
[Common]. [Dictionaries] ,
[]
Terrasoft; [Workspaces]
,
[] Terrasoft. [Common]
:
[Dataset Templates]
.
[Duplicates] ,
Terrasoft.

[Import] ,
.
[Logs] ,
.
[Popups] ,
,
.
[System Settings] ,
Terrasoft.
[Tools] ,
MS Outlook,
,
.
[User Reports] ,
.
[User Settings]

Terrasoft.
[Window Templates] ,
.
[System]
.
Terrasoft

171

[Call Centre] , Call


Centre. Call Centre.
[Workflow] Terrasoft Sales.
-: [Workflow
Action] [Workflow Diagram].
[MSProject]
Terrasoft XRM, Terrasoft XRM+Service Desk, Terrasoft Distribution,
Terrasoft Distribution+Service Desk. ,
MS Project.
3 .
. , Table : , , ;
Window (,
Frame, - DataGrid) (,
DatasetLink).
4 . , , Dataset,
Window, Script .

.
5 .

,
, ,
Table,

(Window,
Script,
Workflow Diagram).

Terrasoft Administrator
.
,

.

7.2.


,
[Ctrl] + [F4].

()

[Ctrl] + [Tab],
() [Ctrl] + [Shift]
+ [Tab].

:
;
;
;
;
;
.

172

Terrasoft Administrator

7.2.1.
.
, .
. ,
.
:
;
, Terrasoft;
USI
(Unique Service Identifier).
.

:
Table .
Script Jscript,
.
SelectQuery ,
( ).
InsertQuery ,
( ).
UpdateQuery , ,
( ).
DeleteQuery ,
, ( ).
InsertSelectQuery ,
.
Dataset ,
, .
.
MemoryDataset

,
.
Window
.

Terrasoft

173

ImageList ,
,
.
Enum , ,
. , ,
.
UserFields ,
.
Workflow Action ,
, -.
Workflow Diagram -.
Fast Report Fast Report.
ADOConnection
.

ADODataset ,
.
ADOCommand
.

7.2.2.
,
.
.
.
[] , .
[] .
, SQL-, :
[] -> [Edit < >]
;
[] -> [Preview < >]
SQL- . , SQL-,
.
[] ,
.
[]
, .

174

Terrasoft Administrator

[]
. ,
Select Query. [] -> [ ]
,
.
[]
Terrasoft Administrator, ,
.
- (,
Table), ,
,
.
[ ]
<.xml> .
[ ]
<.xml>.
, .

7.2.3.
[] (

)
.

.
,
.
:
, ,
.. ,

(. 7.2).

Terrasoft

175

. 7.2

7.2.4.
[]

)

. []
(.
7.3)


.
[ ]
:

,
(<>=<USI>-<
>)
.

176

,
, ,

[Ctrl] + [F].

,

Terrasoft Administrator,

[Shift] + [Ctrl] + [F].

Terrasoft Administrator

[ ] ,
.
[ ]
.
[ ] ,

( []) ( []).

. 7.3

7.2.5.
Terrasoft Administrator
.
:
1.

[Common].

2.

[Tools] -> [GrepSearch].

3.

[wnd_GrepSearchScript].

4.

, F9
[Script] -> [Run].

, ,
. 7.4.
[ ] ,
, [].
, [].

, .
Terrasoft

177


, .

. 7.4
. []
, .
[] , .
[] []
.
,

[ ].

7.2.6.

.


:
[ ] ,
.
[ ] ,
.

178

Terrasoft Administrator

[ ] ,
.
[

.

.
( []
)

[]

,
.
(, ) , .
,
.

7.2.7.
[]
.
. 7.5.

. 7.5
:

Terrasoft

179

[ID];
[ ];
[ ];
[ ].
(USI),
.
, Script Table.
.

.

[]

7.3.

Table

Table .
:
;
;
;
.
,
,
[] -> [Table].
[]
Terrasoft Administrator.

, Table
,

.

SQL- []
Terrasoft Administrator.
:
Table;
Table.

7.3.1. Table

Table,
. 7.6.
180

Terrasoft Administrator

. 7.6 Table
[] ,
.
[] .
, ,
: tbl_XXX.
[] .
[] Terrasoft : [
], [ ].
[ ]
,
[]
Terrasoft [ ].
[ ]
tbl_XXXRight,
.
Terrasoft
[].
[ ]
[ ]
[] Terrasoft,
.
[ ] ,
.
Terrasoft, ,
Terrasoft

181

[ ],
.

7.3.2. Table
,
Table.
. 7.7.

. 7.7 Table
(Fields)
,
Table [Fields] []
.
,
. : ID (
), CreatedOn ( ), CreatedByID ( ),
ModifiedOn ( ), ModifiedByID ( ).
(. 7.8) .
[] .
[] .
[] Terrasoft [
].

182

Terrasoft Administrator

. 7.8
[ ] .
:
[] ,
.
[] ANSII
(, ).
[ Unicode]
UNICODE (.. ,
).
[] .
[ ] .
[] (true / false).
[/] ( ).
[ ]
(, , RTF-).
[ ]

.
[] .

( ).
[] .
.
[] .

(Indexes)

Terrasoft

183

,
Table [Indexes] []
.
.
: []
[] [ ].
[] (. 7.9)
.

. 7.9

,
.

.

(. 7.10).

. 7.10
(Relations)
,
Table [Relations] []
.
Relations
.
(. 7.11) .
[ ] ,
.

184

Terrasoft Administrator

. 7.11
[ ] ,
.
[] .
[ ],
,
, .
,
, .

7.4.

Select Query

Select Query
.
Select, Union.
Select-.
:
Select-;
.
Select :
, ;
( SQL-),
.
,
,
[] -> [Select Query].
[]
Terrasoft Administrator.

SQL- []
Terrasoft Administrator.

Terrasoft

185

,
:
- [ SQL] .
- [] .
- [ ] .
- [ ]
.

- [ ] SQL-

:
Select Query;
Select Query.

7.4.1. Select Query


(. 7.12) :
[] ,
, , DataSet.
, , sq_XXX.
[] .
[] .

. 7.12

7.4.2. Select Query



Select Query, . 7.13.

186

Terrasoft Administrator

. 7.13 Select Query


FROM
, ,
FROM.
, ,
Join FROM.
Join (. 7.14) :
1.

Join, , LEFT OUTER JOIN.


Join SQL;

2.

3.

,
.

[ ] Join
, Select ,
, ().

. 7.14 Join
Select
Select SQL
, ,
.
Terrasoft

187

Select (. 7.15) [ ]
,
.

-1,

.
,

[ ] -1
[]

,
( 40).

Select.
Select-.
Select, .

[ (Distinct)]
.
[] ,
,
.

. 7.15 SELECT
Select .
Select. :
[
]

,
. (. 7.16)
:
, ;
;
( / / );

,
. ,
,
, [AccountTypeID]
0, [Name] 1;

188

Terrasoft Administrator

. 7.16

-
;


,
.

[ ],
,
Terrasoft
.
[-] ,
.
(. 7.17) :
;
;
;
[ ].

. 7.17 -
[ ] ,
. ,
,
.
.
[ SQL]
SQL-, Terrasoft
Administrator, , ,

Terrasoft

189

, ,
.

Where
, , Where.
Where :
, SQL, ,
Is Null, Between, Like ..;
;
,
Terrasoft
.
, SQL,
,
Parameters.
(Test Subquery )
, .
. 7.18.

. 7.18 Like
AND
OR, Where (. 7.19).

, .

. 7.19 Where
Parameters
, Where,
Parameters. (. 7.20)
, .

190

Terrasoft Administrator

Table. ,

.

. 7.20

7.5.

Insert Query

Insert Query .
:
, ;
, .
,
,
[] -> [Insert Query].
, ,
iq_XXX.
[]
Terrasoft Administrator.

SQL- []
Terrasoft Administrator.

,
Select Query.
,
(. 7.21).

. 7.21 Insert Query

Terrasoft

191

, ,
, . 7.22.

. 7.22 Insert Query


,
[] .

.
(. 7.23) ,
( ).
.
.

. 7.23 Insert Query

7.6.

Update Query

Update Query ,
.
:
, ;
, ;
.
,
,
[] -> [Update Query].
, ,
uq_XXX.

192

Terrasoft Administrator

[]
Terrasoft Administrator.

SQL- []
Terrasoft Administrator.

,
Select Query.
, ,
(. 7.24).

. 7.24 Update Query


, ,
, . 7.25.

. 7.25 Update Query


,
[] .

.
Insert Query
(. 7.22).
Select
Query.

Terrasoft

193

7.7.

Delete Query

Delete Query
.
:
, ;
.
,
,
[] -> [Delete Query].
, ,
dq_XXX.
[]
Terrasoft Administrator.

SQL- []
Terrasoft Administrator.

,
Select Query.
, .
Update Query (. 7.24).
Select
Query.

7.8.

InsertSelect Query

InsertSelect Query
.
:
;
,
;
, ;
,
,
[] -> [InsertSelect Query].
, ,
isq_XXX.
[]
Terrasoft Administrator.

194

Terrasoft Administrator

SQL- []
Terrasoft Administrator.

,
Select Query.
, .
Insert Query (. 7.21).

Insert Query Select Query.
InsertSelect Query
. 7.26.
Insert
Select.

. 7.26 InsertSelect Query

7.9.

Dataset

Dataset
. :
;
;
, ;
;
.

Terrasoft

195

Dataset ,
Dataset ,
[] -> [Dataset].
Dataset
Terrasoft Administrator.

[]

SQL- Dataset []
Terrasoft Administrator.
:
Dataset;
, Dataset;
Dataset;
Dataset.

7.9.1. Dataset
Dataset . 7.27.

. 7.27 Dataset
[] ,
,

196

Terrasoft Administrator

Dataset (, ).
, , ds_XXX.
[] . ,
Dataset, ,

Terrasoft.
[ ] ,
Dataset.
[ ], [
], [ ],
/ /
, [ ], [ ],
[ ] .
, , ,
[ ]
[ ].
[ ]
.
. .
[ ] - ,
Dataset, -
Terrasoft,
(
-).
[USI ] ,
Dataset.
[], Dataset
(,

Terrasoft).
[], [], [],
Terrasoft, Dataset,
, .
[] .

7.9.2. , Dataset
,

Dataset,

Dataset,

Data Fields.

Dataset.
Terrasoft

,
Dataset,
,

Select Query Dataset.

197

:
[ ]
ANSII (, ).
[ ]
.
[ ] .
[ ] (true / false).
[ /] (
).
[ ]
(, , RTF-).
[ ]
Dataset.
[ ]
(Enum).
[
]


.
Dataset . 7.28.

. 7.28 Dataset
[] ,
Dataset, .

198

Dataset
Dataset.

Terrasoft Administrator

[] Dataset.
, .
[ ] Dataset
,
[ ] Terrasoft
.
[] ,

Terrasoft.

.

, , .
, [ ].
Dataset,
[
]
.
[
]
Terrasoft.
,
.
[ ]
, ,
,
Terrasoft.
[ ],
, ,
,
Terrasoft.
[ ]
Terrasoft.
[ ]
.
[]
Terrasoft.

7.9.3. Dataset
[]
Dataset.
. 7.29.
Terrasoft

199

. 7.29 Dataset
[OnDatasetAfterAppend]
, [OnDatasetBeforeAppend]
.
[OnDatasetAfterCancel] / [OnDatasetBeforeCancel]
/ Dataset.
[OnDatasetAfterClose] / [OnDatasetBeforeClose] /
Dataset.
[OnDatasetAfterDelete] / [OnDatasetBeforeDelete]
/ Dataset.
[OnDatasetAfterEdit] / [OnDatasetBeforeEdit] /
Dataset.
[OnDatasetAfterOpen] / [OnDatasetBeforeOpen] /
Dataset.
[OnDatasetBeforeLookupDatasetOpen] ,
Terrasoft
.
[OnDatasetAfterPositionChange] / [OnDatasetBeforePositionChange]
/ .
[OnDatasetAfterPost] / [OnDatasetBeforePost] /
.
[OnDatasetCalcFields]
.
[OnDatasetChangeDataField]
Dataset.
[OnDatasetInsertDataField] , Dataset
, [OnDataRemoveDataField]
Dataset .

200

Terrasoft Administrator

[OnDatasetDataChange]
Dataset.
[OnDatasetStateChange]
Dataset.
[OnDatasetRefreshRecord]
.

[OnDatasetDeleteError],
[OnDatasetOpenError]

[OnDatasetPostError] (
), Dataset / .
[OnEventsDisabled] / [OnEventsEnabled]
/ Dataset.
[OnNotify] , Dataset
.

7.9.4. Dataset
- Dataset,
. :
1.

Dataset (. 7.29)
.

2.

[Value] .

3.

Dataset ,
.

4.

,
.

5.

Dataset

7.10. MemoryDataset
MemoryDataset ,
.
. Terrasoft Administrator , ,
,
..
:
;
, ;
;
.
Dataset .

Terrasoft

201

MemoryDataset ,
MemoryDataset ,
[] -> [MemoryDataset].
MemoryDataset []
Terrasoft Administrator.

, ,
mds_XXX.
MemoryDataset . 7.30.

. 7.30 MemoryDataset

Dataset.
,
, MemoryDataset (. 7.31).

. 7.31 MemoryDataset

Dataset.

202

Terrasoft Administrator

MemoryDataset ,
, [ ]
[ ]. .
MemoryDataset ,
Dataset.

7.11. Window
Window
. :
, ;
;
;
;
.
,
,
[] -> [Window].
.
Window.

Terrasoft Administrator [ ].

Terrasoft
Window, []
Administrator, .

.
[Name]
.
[]
Terrasoft Administrator.

:
;
;
.
. 7.32.

Terrasoft

203

. 7.32
:
;
;
.

7.11.1.
[]
Window. . 7.33.
[Align] .
[BorderStyle]
.

[Direction]
( ).
[Height] [Width].
[IsEnabled] ,
.
[IsResizable] True ,
.
[IsStayOnTop]
.

[IsVisible] .

204

True

Terrasoft Administrator

. 7.33
[Left] [Top] .
[Name] . .
, , wnd_XXX.
[PopupMenu] .
[Script] , .
[TemplateWindowUSI]
.
[UseProfile] ,
True. ,
.
[USI] .
[WindowCaption] .
[WindowState] ,
, , /.

7.11.2.
[]
Window. . 7.34.

Terrasoft

205

. 7.34
[OnCreate].
, [OnShow].
[OnActivate] , ,
[OnDeactivate] .
[OnPrepare]
.
[OnEventsDisabled] / [OnEventsEnabled]
/ .
[OnFocusControl] , -
.
[UseProfile] True,
[OnProfileDeserialize]

[OnProfileSerialize] .
[OnCloseQuery], [OnClose]. [OnCloseQuery]
.

Terrasoft Platform SDK.

7.11.3.
Window
.
Window [].
. 7.35.
206

Terrasoft Administrator

. 7.35


: Frame, FrameSet, FrameGroup.
, .

(FrameSet)
(),
(Splitter).
IsResizable.
(
IsResizable = True).
FrameSet
( IsClient = True).

.

(Frame)
.

.


FrameSet.

Terrasoft Administrator.

(FrameGroup)

Terrasoft

207


.


:
.

.

.
.

[
] .
:

DatasetLink - Dataset

. ,
DatasetLink , DataControl. ,
IntegerDataControl. ,
, .

EnumLink (Enum).
ActionMenu
.


Terrasoft Platform SDK.

7.12. Script
Script


.
.
Terrasoft
JavaScript.
, ,

Terrasoft
Platform SDK.

,
,

208

,

[Ctrl] + [G]

.


,
,
.


,
[Ctrl].

Terrasoft Administrator

[] -> [Script].
:
;

;




,
[Ctrl],
.

:
;
;
.

7.12.1.
[]
Script. . 7.36.

. 7.36
[Caption] .
, , < ,
><Script>

scr_XXX.
[Description]
.


,
,


[Shift] + [Ctrl] + [T].

[Timeout]

, ,
. 7.37.

Terrasoft

209

. 7.37
, [Timeout]
-1.
[USI] .

7.12.2.
, ,
Terrasoft Administrator
.
, . 7.38.

. 7.38

,

[]

.

Terrasoft Administrator .
Window,

210


,
,


,
.

Terrasoft Administrator


[]
.
[]

.
[]
.

7.12.3.
Script
, . 7.39.

. 7.39


MS Office. ,
.
- [] - .
- [] -
.
Main().
Terrasoft.
, ,
: debugger.

.

- [ / ] .
- [].
[ / ] .
[] ,
.
- [] -
.

, [] .
,

Terrasoft

211

[] -> [ ].

[] -> [ ] .

7.13. FastReport
FastReport .
, ,
,
[] -> [FastReport].
:
,
Master - Detail;

C++Script).

Pascal

Script,

JScript,

BasicScript,

, ,
fr_XXX. FastReport
. 7.40.

. 7.40

212

Terrasoft
Administrator []
Terrasoft.

Terrasoft Administrator

[]
Terrasoft Administrator.

Terrasoft Administrator.

[]

:
FastReport;
FastReport;
FastReport.

7.13.1. FastReport
[]
FastReport.
. 7.41.
[Caption] .
.
[Script] .
[USI] .

. 7.41

7.13.2. FastReport
[]
Script. . 7.42.

. 7.42
[OnPrepare] .
[OnPreview]
.

Terrasoft

213

7.13.3. FastReport

. FastReport
FastReport ( , ).
Dataset.
,
[TS] -> [TS Dataset] (. 7.43).

. 7.43
, FastReport
TSDataset.
Dataset FastReport. []
TSDataset [USI] Dataset,
Terrasoft Administrator.
Dataset, ,
[FetchRecordsCount],
.
. ,
, -1.
, , ,

Terrasoft. ,
[ ]

.
[ ].
,
. . 7.44.

. 7.44
214

Terrasoft Administrator

,
[].

.

Terrasoft
Administrator

. , Fast
Report .
:
1.

Terrasoft Administrator
.

2.

,
[] -> [FastReport].

3.

[Select Parent Report]


.

4.

.

() .

7.14. ADO-
ADO-
, , - .
Terrasoft Administrator ADO-:
ADOConnection;
ADOCommand;
ADODataset.
,
(
ADOConnection), (
ADOCommand) ADODataset.

7.14.1. ADOConnection
ADOConnection
.
ADOConnection, ,
,
[] ->[ADOConnection].
ADOConnection []
Terrasoft Administrator.

ADOConnection, . 7.45.
Terrasoft

215

. 7.45 ADOConnection
[] , ADOConnection
ADOCommand ADODataset.
[] .
[] ADOConnection.
[ ]
.
Windows (. 7.46),
.

. 7.46

216

Terrasoft Administrator

[] ADOConnection
.
[] , ,
.
[ ]
. ,
.
. .

7.14.2. ADOCommand
ADOCommand
.
ADOCommand, ,
,
[] -> [ADOCommand].
ADOCommand []
Terrasoft Administrator.

SQL- ADOCommand,
. 7.47.

. 7.47 ADOCommand
[] , ADOCommand
ADODataset.
[] .
[] ADOCommand.

Terrasoft

217

[ ]
, Windows
(. 7.46).
.
[]
ADOConnection.
, ADOConnection.
[]
.
[ SQL] .
,
[ ]
ADOCommand(. 7.48).
,
.

. 7.48

[] ADOCommand.

7.14.3. ADODataset
ADODataset
.
ADODataset, ,
,
[] ->[ ADODataset].
ADODataset []
Terrasoft Administrator.

ADODataset
, . 7.49.

218

Terrasoft Administrator

. 7.49 ADODataset
ADODataset
Dataset, ,
ADO-.
[ ]
, Windows
(. 7.46).
.
[]
ADOConnection.
, ADOConnection.
[ SQL] ADODataset
.
,
[ ]
Parameters ADODataset(. 7.50).
,
.

[]
ADODataset.

Terrasoft


Parameters

219

. 7.50 ADODataset
, SQL-,
ADODataset, [ ]
Data Fields
ADODataset.
[ ]
ADODataset ,


.

:
http://msdn2.microsoft.com/.
clUseClient ( )
clUseServer (
).

ADODataset.
[ ] ,
. :
ctUnspcified (), ctOpenForwardOnly ( ),
ctStatic (), ctKeyset ( ) ctDynamic
().
[ ]
clUseServer, [ ] ctOpenForwardOnly.
ADODataset , [
] clUseClient, [
] ctKeyset.

220

Terrasoft Administrator

[]
Dataset.
[SQL- ] SQL-,
[ SQL]
(. 7.51).

. 7.51 SQL-
[ ], [ ], [ ]
, ,
Terrasoft Administrator.
ADOCommand.

7.15. User Fields


User Fields - . User Fields

Terrasoft. ( ,
..) ,
[] -> [ ]
Terrasoft.
,
User Fields ,
[] -> [User Fields].
User Fields []
Terrasoft Administrator.

:
User Fields;
User Fields;
User Fields .

7.15.1. User Fields


User Fields . 7.52.
[] .
, , uf_XXX.
[] ,

Terrasoft.
Terrasoft

221

. 7.52 User Fields


[ DBDataset] Dataset,
.
.
[ ] ,
.

7.15.2. User Fields


, ,
User Fields.
. 7.53.

. 7.53 User Fields


, ,
[ ] Tables

Terrasoft Administrator.
,
, [ ]

222

Terrasoft Administrator

Windows
Terrasoft Administrator.
, ,
.
[ ]
DataGrid.
,
( Dataset), .

7.15.3. User Fields

, ,
, .

FrameGroup.
, ,
UserFieldsGroup [UserFields]
, .

7.16. Enum
Enum
. Dataset
(
, ),
Window.
Enum ,
,
[] -> [Enum].
[]
Terrasoft Administrator.

:
Enum;
.

7.16.1. Enum
(. 7.54) :
[] .
, , enm_XXX.
[] .
[] .

Terrasoft

223

. 7.54

7.16.2.
Enum,
. 7.55.

. 7.55
,

[
]

.
. 7.56.

. 7.56
[]
.
[].
[] , ,
[] .
[] .

224

Terrasoft Administrator

[]

Terrasoft Administrator.

Administrator.

Terrasoft

7.17. ImageList
ImageList .
,
.
ImageList ,
,
[] -> [ImageList].
ImageList
Terrasoft Administrator.

[]

:
ImageList;
ImageList;
.

7.17.1. ImageList
(. 7.57) :
[] ImageList.
, , il_XXX.
[] .
[] ImageList.

. 7.57 ImageList

7.17.2. ImageList
,
ImageList, . 7.58.
Terrasoft

225

. 7.58
, :
1.

[]
.

2.

3.

[]
Terrasoft Administrator.

[]

Terrasoft Administrator.

Administrator.


Terrasoft Administrator.

,
Terrasoft

7.17.3.
Window
:
;
;
;
.
.
[]
:
[DisabledImageName] .
[ImageName] .

226

Terrasoft Administrator

[HotImageName] .
[PressedImageName] .

7.18. Workflow Diagram


Workflow Diagram
-.

Terrasoft Sales Workflow Diagram .

Workflow Diagram,
[Workflow] [Workflow Diagrams]
[] -> [Workflow Diagram] .
, ,
wd_XXX.
- []
Terrasoft Administrator.

Workflow Diagram
[].

[ ]
:
[ ]
,
[
.

-
-. :
1.

[]
[ ]
: [ ]
[ ].

2.

[
].

-
.
Workflow Diagram:
-;
-;
-;
-;

Terrasoft

227

-.

7.18.1. -
Workflow Diagram
[] .
. 7.59.

. 7.59 -
[Caption] -.
.
[MaxProcessedItems]
-.
[Script] -.
[USI] Workflow Diagram .
[Parameters]
. -
7.18.2.

7.18.2. -
-
-,
. , ,
, ID
.

(. 7.60),

[]

[Parameters] (. 7.59)
-.

228

Terrasoft Administrator

. 7.60
.
, . 7.61.

. 7.61

, (, ,
, ..).

Terrasoft

229

,
.

.
,
.


,
.

(, ,
) [] (. 7.61).
[]
True False.
/
.

, .


/ .

JavaScript
(. 7.62).


[].


[]
[].

. 7.62

230

Terrasoft Administrator

[ ]


.

[ ].

[].


(. 7.60)
.

.


,
(. 7.63).
, ,
,
.
,
.
-
.

/.

. 7.63 -

[]
. ,
- (. 7.64).
.
,

Terrasoft

231


.
-,
.

. 7.64 -
, ,

.
-
,
[]
. ,
(. 7.61)
. (. 7.65)
.

. 7.65
232

Terrasoft Administrator


[
].

-.
, , -,
, []
,
.
, ,
, Owner1 Owner2.
Owner1 :
1.

Owner1.

2.

3.

, .

4.

[]

5.

, [ ].

ID


Owner2, ID ,
.

Workflow Action.
Owner1 OwnerID
.
, OwnerID .

:
1.

Owner1 .

2.


. :
a.

-
.

b.


OwnerID.

c.

,
, Owner1
OwnerID.
[] ,
[]
Owner1 .

Terrasoft

233

7.18.3. -
Workflow Diagram
[] .
. 7.66.
[OnAfterItemExecute] / [OnBeforeItemExecute] /
-.
[OnEventsDisabled] / [OnEventsEnabled]
/ -.

. 7.66 -
[OnNotify] ,
.

7.18.4. -
- .
-.
[]
-. . 7.67.

. 7.67 -
- :
[Caption] -.
[Left] [Top] .

234

Terrasoft Administrator

[Name] -.
, ,
,
[Height] [Width].
:
[DelayType] (, , ).
[Value] .
,
[ProcessImmediately].
True, .
, .
:
[DiagramUSI]
.

Workflow

Diagram,

[WaitForCompletion] True
.
-
:
[CaptionPosition] .
[Code] .

7.18.5. -
-
[] .
.
[OnStart],
-.
[OnFinish],
-.
:
[OnAfterExecute] .
[OnBeforeExecute] .
[OnExecute],
.

[OnDecision], .
[OnCollected]
, , .

Terrasoft

235

[OnGetCustomDelay],
(
).
:
[OnAfterComlete] .
[OnBeforeStart] .

7.19. Workflow Action


Workflow Action .
, .
-.

Terrasoft Sales Workflow Action .

Workflow Action
[Workflow] [Workflow Actions].
,
[] -> [Workflow Action]
.

Terrasoft Administrator.

[]

:
Workflow Action;
Workflow Action;
Workflow Action.

7.19.1. Workflow Action


(. 7.68) :
[] Workflow Action.
, , wa_XXX.
[] .
-.
[] .
[ ] .
-.
[] .

236

Terrasoft Administrator

. 7.68
[] Workflow Action.

7.19.2. Workflow Action


- ,
(. 7.69),

[] [Parameters] .

. 7.69
-
.

Terrasoft

237

, OwnerID
.


-




.

1.


OwnerID.

2.

3.

,
.

4.

[] .

5.

[ ].

7.19.3. Workflow Action


Workflow Action
[] .
. 7.70.
[OnCancel] .
[OnEventsDisabled] / [OnEventsEnabled]
/ .
[OnExecute] .

. 7.70
[OnGetLinksInfo]
.
[OnInitialize] .
[OnNotify] ,
.

238

8. -
- , , ,
,
, .

-


,
[Ctrl].


,
[] Terrasoft.
[Ctrl].

,
.

Terrasoft Sales - .

- Terrasoft Administrator
, . 8.1.

. 8.1 -
Terrasoft

239

- [Workflow] [Workflow
Diagrams]. -,
[] -> [Workflow Diagram] (. 8.2)
(. 8.3).

. 8.2

. 8.3
, ,
wd_XXX. [Caption].

8.1.

-
.

, - ,
.

240

-:
- - .
- - .
- -
,
.


(

).

,

-,


.

Workflow Diagram
Workflow Action.


.

.
.

.
.
,
, , .
.

8.1.1. , , ,

, ,
-.

.

.
.

Terrasoft

241


, (. 8.4).
:
1.

[Workflow] - > [Workflow Diagrams]


( [Workflow Diagrams]).

2.

wd_Call.

3.

. 8.4

1.

(. 8.5). :

. 8.5
a.

242

b.

2.


, .
.

. :
a.

b.

c.

- (. 8.6).

[] .
[] .
[]

[] Terrasoft.
.
[ ]
. []

[] Terrasoft.
.

. 8.6 -
[]
. ,
Terrasoft
[]
.

Terrasoft

243

, .
[ ]

.


,
.


.

[
]

.
Terrasoft [ ]
: < >+< [
]>.
[ ]
.
, 1 .
[ ]

. , ,

,
( []).
,

.
3.

(. 8.7). :
;

a.

b.

c.

,
.

. 8.7
244

4.

. :

a.

b.


, .

5.

.
(. 8.8),
.
. Terrasoft
[] > [] > [] >
[ ] .

6.

-.

. 8.8
- ,

. ,
:
,
, ,
;

.
-,
. 8.9.

Terrasoft

245

. 8.9

-:

,
.
.

- ,

.

8.1.2.
, ,

.
,
, .
, (. 8.10).

246

1.

2.

3.

. :

a.

b.


, .
.

. 8.10
4.

5.

6.

7.

8.1.3.
, ,

.
, .
. -,
. 8.11.

. 8.11
:

Terrasoft

247

1.

2.

. :

a.

b.


, .
.

c.


: [DelayType] wddtDay ( - );
[Value] 1 ( ).

3.

4.

5.

,

.

8.1.4.

.
:

248

1.

2.


, .
.

3.


,

[UseExpression]
(. 7.62).



.
True.
,
,
TaskStatusID=={F5DA68EB-4EEF-9E69-A36B54CFED91},


. ,

.

4.

, :
a.

[UseExpression]
False.

b.

[Code]
( ).

c.

[Caption]
. .

d.


OnDecision,
.

,
function Item3OnDecision(DecisionItem, IsComplete,
ResultLinkCodes)
{ if (a < 10)
{ResultLinkCodes.Value = 'K1';}
else
if (a == 10)
{ResultLinkCodes.Value = 'K2';}
else
{ResultLinkCodes.Value = 'K1;K2';}
}
K1, K2 [Code] .
-
. 8.12.

. 8.12

8.1.5.

-.
:
1.
Terrasoft

.
249

2.


, .
.

3.

OnExecute,
.

8.1.6. -

. ,
.

.
.

-

:
1.


-
.

Workflow Action
Workflow Actions.

2.

,
.

3.

.
.

8.1.6.1. E-mail
e-mail
. . 8.13.
- :

250

1.

.
[] e-mail-.

2.

,
-.

3.

, :
a.

b.

,
;

c.

,
.

. 8.13 [] Email
4.

:
a.

[ ],
,
.

b.

[ ],

e-mail.

, , . 8.13,
[ ],
[].
[ID],
ContactID.
[] (. 8.14) , e-mail
[] (
).
(
[]), ,
-.
,
.

Terrasoft

251

. 8.14 []
E-mail
[ ]
[], - [
] .

8.1.6.2.

, ,
.
, -
.
,
? ,
..
,


..

. 8.15.
- :

252

1.

,
.

2.

, .

3.

,
:
a.

b.


. , ,

,
.

. 8.15
4.

. ,

.
[], [].

5.

, [
].


[ ].

(. 8.8)
,
.

8.1.6.3.

, , .

Terrasoft

253


. 8.16.

. 8.16
- :
1.

.
.

2.

,
,
.
a.

254

,
,
,
,
.

3.

4.

b.


,
,
[ , ,
ID ]. ,

.
ID .

ID .

c.

,
,
,

.

d.

[ ],
.

, ,

.



.

-


,

.



, . 8.17.

.



,
.


.
.
,
[ ],
.
[ ]
.

Terrasoft

255

. 8.17


,
[
] . ,

/ .
[] (. 8.18)
.
,
(
);
.
,
. ,
, ,
.

256

,
,

(. 8.17).

. 8.18 []

. , ID
(AccountID) ,
:
1.

2.

,
.

Terrasoft

257

3.

[Caption]
.
-.

4.

[ ]
wnd_AccountEdit.

5.

[ ].

6.

, ID .

7.

[]
,
AccountID.
,
.
, ,
(OwnerID) . :
1.

2.

OwnerID
[] .

3.

[
]
.

4.

8.1.6.4.

. 8.19.

,
- .
,
Terrasoft Administrator, .
,
,
.
- :

258

1.

, .

2.

,

,

.
.

. 8.19

3.


. .

4.

,
.

, ,
,
.

,
.
[] [] .
,
[].
, .

,
. 8.20.

Terrasoft

259

. 8.20
:

1.

.
.

2.

.
, [ ],
.
[ ]
.

3.

260


,
[
] .

4.

5.

:
a.


[]. ,
, .

b.

,
[ ].


, .


[ ]
.
.
, -
, .
, , ID ,
.
:
1.

2.


(ds_Contact).

3.

4.

5.

RecordID, ID
, .

6.

[] .

7.

[ ]
. ,
, [].

[].

8.1.6.5. /
/ ,
-
. ,
. 8.21.

Terrasoft

261

. 8.21 /
- :
1.

2.

3.

262

a.

b.

.
,

.

, .
,
. ,
, ,
.

4.


. ,


.

5.

,

,
/ .


,
, [].
. 8.17.

8.1.6.6.

-,

-.

,
,
.
,
,
.

[]
[]. . 8.22.

. 8.22
[ ( )] .

Terrasoft

263

[] .
[ ],
[] ,
.
(,
, , , , )
.

Terrasoft Service Desk .



.

.
Terrasoft Service Desk.

[]
. Terrasoft RM.

[] .
Terrasoft Service Desk.

[].
Terrasoft Sales, Terrasoft Service Desk.

8.1.7.
- ,

.
,
.

. ,
.
1.

:
a.

264

Workflow Diagram
wd_Contract ([Caption])
;

b.

(. 8.23);

. 8.23
c.
2.

3.

:
a.

Workflow Diagram
wd_WorkWithClient ([Caption])
;

b.

c.


(. 8.24).
a.

Terrasoft

265

. 8.24
b.


, .
.

c.

[DiagramUSI]
wd_Contract.

d.

[WaitForCompletion] True.

.

4.

5.

8.2.



Terrasoft. :
1.

2.

266

[],
:
a.

b.

[
] [
] .
- Terrasoft
Administrator,
.

, :
a.

[
] [
] .

b.

(. 8.25)
[OK].

. 8.25
c.

-
Terrasoft Administrator,

-
- Terrasoft.
:
1.

[]
[ ] :
[ ] [
].

2.

[ ]
(. 8.26).

. 8.26 -

Terrasoft

267

, - , -,
-
Terrasoft.

8.3.

Terrasoft

-
, ,
.

[] ->[] -> [
]. , ,
(. 8.27).

. 8.27

,
. 8.28.
[]
.
.
[ ]
,
, .
, .
[] ,
. .
[ ] ,
.
,
.
268

. 8.28

, .
/
( )
( ).

.

, [
].
[] .
[
].
.

Terrasoft

269

9.

:
( 9.1)
:
, Terrasoft ,

.

;
( 9.2)
.
,


.
.

9.1.


[ ] []
Terrasoft Administrator. . 9.1.

. 9.1
270

,
.
:
(1);
(2) ;
(3) .
[]
(. 9.2).

. 9.2 []
[] -
.
[]
.

Windows.
[] [ ] ,
Windows
.
[] .
:
[] ( 9.1.1) .
,
;
[] ( 9.1.2)
. ,
.
[] ( 9.1.3)
. ,
,
.
[] (
9.1.4)

.
.
Terrasoft

271

[ ] ( 9.1.5)
.
.

9.1.1-9.1.5.

9.1.1.
,
.
. 9.3.

. 9.3
, ,
[] [].
, Terrasoft,
, .


[ ].

9.1.2.
,

. ,
.
. 9.4.

272

. 9.4
:
USI- - Terrasoft
Administrator ( 7.1). USI-

*.
,
\Accounts\* - ,
Accounts. ?
.
(, Table, Window, Script ..);
(ID) ;
;
.

. 9.4. ,
.
.

9.1.3.
. ,
,
.
[Common], ,
. 9.5. ,
[] -> [].

,
Terrasoft

273


[ ], .
.

( 9.1.4).

. 9.5 [Common]

Main .

9.1.4.

,
.
.
. 9.6.
[] ,
.
[],
.
:
;
;
XML- ;
XML- .
:
274

OnBeforeApply ;
OnAfterApply .

. 9.6
,
:
OnDelete , ;
OnConflictNewExist , ,

-;
OnConflictDeletedChanged , , ,
-;
XML- , ,
OnConflictChanged.
,
.

:
Source* - -.
Destination* - -.
*Storage - TSObjectLibrary.XMLStorage .
*Node - TSObjectLibrary.XMLStorageNode .
Terrasoft

275

ActionValue - TSObjectLibrary.Value
, ,
.
Common:
aaDoNothing .
.
aaSkip ,
.
aaApply ,
.
:
AttributeName .
Value .
OldValue .
NewValue .

9.1.5.

[ ] .
. 9.1 (3).
[] ,
.
[ ] .
[ ] .
[]
.

[] -
[] .


.
: []
[], ,

.

9.1.6.

276

1.

Terrasoft Administrator.

2.

[] -> [
].

3.

,
, c []
.

4.

5.

6.

[ ]
[] .

7.

, .

8.


[] .

9.2.

[
] [] Terrasoft Administrator.
,
. 9.7.

. 9.7
[]
, .
[] []
, .


[ ].

[ ] Package,
.
[OK]
, . 9.8.

Terrasoft

277

. 9.8
SQL

(. 9.9).
,
[Yes]. [No] ,
, (
).

. 9.9
,
,
,
(. 9.10).
,
, (),
(, , ), ,
(Table, DBDataset, FastReport ..).
278

. 9.10
(
) / ( ),
.

:

(,

,
.
, ,
, .
.

,
, ,
.
,
[] ,
, , /
(. 9.11).
,
.

, .
[
] [ ].
Terrasoft

279

.
,
Terrasoft,
, .

. 9.11


[] (. 9.12).

. 9.12



,
:
[ ]

,

[F7]
[
],
[F8]

[
].

[ ]
.

:
[ ]
, ;
[ ]
.

[] .
280

[ ] (. 9.10)
,
. .

.
, [Yes]
(. 9.13).

. 9.13


XML- (. 9.14).

. 9.14


, ,
.
XML.

Terrasoft

281


-A-

, 151
MS Outlook, 20

ADOCommand, 217

MS SQL Server 2000, 15

ADOConnection, 215

Desktop Engine, 15

ADODataset, 218

, 21

-DDataset, 195
Delete Query, 194

-EEnum, 223

-F

, 46
, 22
, 34
MS SQL Server 2005, 15
Express Edition, 15
, 21
, 46
, 22
, 40
MS SQL Server 2008, 15

FastReport
, 212
Firebird, 15
, 25
, 49
, 25

-I
ImageList, 225
Insert Query, 191
InsertSelect Query, 194

-M
MemoryDataset, 201
MS Excel
282

, 21
, 46
, 22
, 44

-OOLAP
, 161
, 20
Oracle, 15
, 25
, 25

-SScript
, 208
, 249
Select Query, 185
SSL-
Apache, 70
IIS, 61

-T-

, 26
Windows Server 2003, 18
, 26
Windows Vista
, 26
Windows XP Professional, 18
, 26
Workflow
Action, 236
Diagram, 227
, 239

Table, 180
Terrasoft Administrator, 168
Terrasoft, 11

-UUpdate Query, 192


User Fields
, 133
, 221
UNIX , 18

-WWeb-
, 72
Web-
, 98
Web-
Apache, 62
IIS, 52
Window, 203
Windows Server 2000, 18

Terrasoft

283

-, 100

-, 241

, 100

, 241

--

, 247

, 168
-

-, 168

, 227

, 100

, 239

--

, 266

-
MS SQL 2000, 34
MS SQL 2005, 40
MS SQL 2008, 44
, 248

- , 150

- , 250

-
, 133
, 136

, 85, 89
, 85, 89
, 133
, 159

-
, 79

- , 100

Firebird, 49
MS SQL 2000 / 2005 / 2008, 46
web- Apache, 70
web- IIS, 59, 61
, 141

- , 270

284

--

Firebird, 40
MS SQL 2000, 34

, 228

MS SQL 2005, 40

, 133

MS SQL 2008, 44

, 105

MS SQL 2000, 34

, 108

MS SQL 2005, 40

, 103

MS SQL 2008, 44

, 106
, 264

-
, 79

, 149
, 141
, 145
, 241
, 100

--

, 18
, 15

, 246

--

--

, 241

, 100

, 173

, 177

Firebird, 27

, 174

, 28

, 176

, 28

, 179
, 175

, 151

, 85
, 112

, 208
, 249
Terrasoft

Terrasoft

285

Оценить