• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..01-Jun-2020-

READMEH A D29-May-20201.8 KiB4432

RunServicemgmtExample.batH A D29-May-2020548 189

RunServicemgmtExample.shH A D29-May-2020294 187

servicemgmt.cH A D29-May-20202.1 KiB10674

servicemgmt_dboperation.cH A D29-May-202029.8 KiB1,188750

servicemgmt_login.cH A D29-May-202014.6 KiB580400

servicemgmt_setup.cH A D29-May-20209.1 KiB315200

servicemgmt_setup.hH A D29-May-20204.6 KiB140103

README

1This example shows how Oracle Berkeley DB can be used to implement an
2automobile after-sale management application. This application provides a
3communication interface via the command line. There are three main entrance
4points for the application: administrator, customer and engineer. The user
5enters the system by specifing different flags such as -a, -c, -e for
6administrator, customer and engineer respectively and then logs in to carry
7out further operations.
8
9Administrator login: manage the customer information and engineer information,
10handle service requested by customer or submitted by engineer. An
11administrator password is already set up (use "admin").
12
13Customer login: edit customer information or request service.
14Log in with the customer's name, which can be found in the second
15column of the customer.txt file (for example, ZhangSan).
16
17Engineer login: edit engineer information or request additional
18service after the maintenance. Log in with the engineer's name,
19which can be found in the second column of the engineer.txt file
20(for example, LiQiang).
21
22The application will use three input files: customer.txt, engineer.txt,
23service.txt. These files are in the ./ServicemgmtExample directory and
24an example of the format is shown below:
25001#ZhangSan#12345678#zhongshanroad#zhangsan@gmail.com#87654321#Lavida#2014-05-01
26
27BUILD and RUN
28
29Windows
30
31To build this example, build the ex_servicemgmt project in Berkeley_DB solution
32with Visual Studio platform.
33
34To run the example, execute file RunServicemgmtExample.bat in
35examples/c/ex_servicemgmt.
36
37Unix/Linux
38
39To build this example, build Berkeley DB, then in the build_unix directory
40execute the command "make ex_servicemgmt".
41
42To run the example, execute script file RunServicemgmtExample.sh in
43examples/c/ex_servicemgmt.
44