FLOW-DIAGRAM FOR EDIT OPERATION ON PART LIST
3.3 Feature of Package
A software requires following properties:
Logical and functional accuracy. It is the essential
condition for a software. A series of logical and arithmetical
operations are to be performed upon the stored data an that must be error free. Otherwise, by no means, system will work.
Logical and functional accuracy is necessary condition but not sufficient condition. User can make mistake during data entry or edit. And wrong entry should not be permitted to be entered. For example, quantity of an item supplied to shop to produce a product cannot be negative value.
3rd important thing is the package should be user friendly. User should fill comfort to use it. Assist menu, error message, etc. may be arranged properly to help him to do his job comfortably.
Access restriction is another important thing for professional software. Only authorized persons get access into software.
The salient features and characteristics of the developed Package Program are as follows:
a. Menu driven b" User friendly
c. Restricted access to Oatabase
d. Program code written in Dbase 111+
e. Lin~, among the Database files are through inaccessible code which are generated by the system itself.
f. Modular program design
The Package is completely menu driven. When an user gets access to the software, he will get the main menu where he has several selection option. He may move highlight up or down over the options by cursor keys and,that highlighted option will be selected when Return key is present. Selection may also be done by typing the corresponding serial number of the option.
After selecting an option its sub-menu will appear in the screen. The nature of sub-menu is same as main menu. When one of the options are selected it may bring application program or SUb-Bub-menu. When user finishes job with the aid of application program he will 'return to main menu. There are also exit options in the sub-menu which drive the current state to main menu. The Exit menu is for quit the Program Package. The Fig.-25 shows the complete menu structure.
The package is user-friendly in that sense that it is Menu-driven:
Headline Box to indicate what is going on in the current session, Prompting Box to prompt what next to be done by the user,
Error message when some thing done wrong by the user.
The access to database by the app] ication program are restricted through password and access category.
I ,
I
!t
iPRINT REPtRT MENUI
I,P..:a~r:...t:::liS:..:t---~~' )jAPi-I
,...
,
'material Require I '!AP l-ei
Custorr?~ Order I
'~-4
Prooure,01entOrder i ,I'AP I~
IProduction Order ' )~
!Materlal Steck \ ~IIIP
H
I I ~ I
I'
I,other Rep.:r:,
'---1
!Exit _
---~
jPRINT REPORT MENU! I
(Reserved Items I 1'!\,P,:
ISonded Items I----,>fAP ,--", jMachine avallabie
l---..i ..
~P~IWorker Available AP i~,
'Machine Require ,II,P
W
'Man Power Require ~AP
i--:
Custome~ APi---;.i
f:-;::;-;I
,Supplier ~4
!Exlt
I
"
----'I_
I EDIT MENU
I '
~---~~
'I
D,art'1"IS~F'I!esI --~~1
'AD I I,Production Plan . AP1---"1 'Custome' "lecord - !I,PW
;vVorkerRecord AP
Maohine Record, ,AP
~
;exit I~th,er Illes
ir:.Xh _ 1
1_, _
: DATA EDIT MEN:"" :
!Material file ,i )~
ICustomer Order I \ lAP
IProcuremen,lorder I "'--AP' IProduction Order ',---~--;_IIP;
,Reserve Material
(--->
APBonded Material i---~--4AP
; MAII~MENU IDat?,E'ntry ,Data Update 'Prmt Report
,Data Edit _
iloois I. ,
i::ox:: 1, I
ITOOlS MENU_~J __ i
IN.w
jEdit PasswordPM""dI
Ir
'AP9
I
IC!~anGarbage II .AP,EXit' ,
I I
i
•
AP = Application pro\;',,~
Fig,- 25 Menu Struct~'?
,
---
I
IAPi ~i
~pl ,I
L...:.:..JAP i ~ '> .••
~'pi ;
~~
lAP! .
IAPi
J I
i,
"l
1 ,.
I
I
I
INEW ENTRY MENU;
I""
New Iype Mac"me\.,'
I'--"-" ,~••INew Worker !~f>P i
\p'o'-!uc",on,~ L ola~1\" !__j I.\ 0~ !
INew machine
i--;AP
I'1= ._Xlt 1--,
IOther Rep.:r:;,
1
. [Exit __
--j -P-R-.INT--R-E-PO-RT-M-E-N-U-! \
IReser'led Items ~
iBonded Items !---->iAP 1-",;
jMachine available [----;!,.l.p L~
IWorker Available ' AP \-;
'Machine Require ,,A.P W
IMan Power Require ~-:
)Customer ~AP
i-:
ISuppller I~AP -,
!Exit
I
1_
i EDIT MENU I ,
!~art list ,Files ~
I--,AP r-~
!,...roducllon Plan ' . AP I~'i 'Custome" qecord', 'IAP
H
,Vvorker Record ,
l----i~ .
IMachine Record i
I--->fAP
-
'i:xit•
,
1
t NEW ENTRY MENU
1
,J
fjDATA UPDATE MENUI Customer Order
I
• iPRINT REPORT MENU' 'a~ocur~ment Order ,AP!--, Procurement Order ----
, "liAP i t iProduClion Order APi Production Order
I
Drr M",NiJ , Part list : .-.
f ' '
file j material Require I )!.Il.P
!~
,Custorrer Order AP Reserve II Custorr:~!" Order ;
,y...J
Bonded Items AP Material Stock~rOrder
,
, ~'!"---
Procure,;,ent Order , )IAP l--->i !Exit New Type Materialnent Order
" f
, ,~-).
on Orde' ! Production Order Partlisl
Material I !Malerlal Steck I ~1,ApH Others
\ I L:.-...:..-.i !
Material 1-- i I Exit
I I
11M
,s
•
"
plication progi2.:":'"
Fig_- 25 Menu Structur~
'1, ~
Page-71 Each user has unique password and also gets an access category. When he will enter correct password, he will get access to data-base to that extend up to
--
--which his access category allo.ls. The Database Administrator will allot a personnel the access category and a pass,,'ord. The user can change his own password but not the access category. Database Administrator has the sole authority to change access category or to delete password and any user to end to of his accessibility. The access categories are:
Database administrator category having complete access even to password file.
A class user having the authority to enter, update, edit, delete or retrieve any data from any database.
B class user having the all the authority A class user has except edit the data.
C class user having the authority to enter data and generate report only.
o class user having the authority to regenerate report only.
Besides there may be some other category. For example, some user may have no access to customer file. It depends on the database Administrator how he will categorize the access.
The program code is written in Dbase III t. Operating system is DOS 3 or any higher version. The package works in Dbase III t environment.
The concept of relational database links two database through relational table
which includes primary key as its attributes. But in this package, the system generated codes are used instead of primary keys to link the files. There is a code field (attribute) in each Entity. This additional attribute is not accessible to any user. This code has one-to-one relation to primary key of the Entity. So, each value of code correspond uniquely to its primary key. Thus it is just like another primary key. And the relational tables are constitute with these codes instead of actual primary keys.
When any record is entered into database, the application program will generate a code for it. The code must not be duplicate to any other previous code. The algorithm and program code for code generator is shown in Fig.-26
The use of code gives two major advantages:
Memory saving. Primary keys, generally tens of character long where code will be maximum 5 character (for maximum 100000 records), For example, part no is a primary key used in many files and it is 18
(eighte~n) character long and it is substituted by 5 digit code.
Since actual primary key is not used as linking attributes, it is no more redundant. So, it is recorded in single database and very easy to edi t.
Since the code is inaccessibl,e by the user. The user view of the database structure remains conceptually same as before.
L
n =
oOll
exists this code in database? /
I
n =*n + 1I---~
n = 001
USE CustOrdr INDEX Code SEEK N
DO WHILE FOUND() n=n+1
GO TOP SEEK ENDDO
code
=
n ,generatedl I
code = n
I
I
(a) (b)
Fig.-26 Example of (a) Program coding and (b) Flow-Diagram of Code generator
Modular program design gives two major advantages:
-- Better understandability since it gives a structured program which makes the program self-documenting. i.e., easy for anyone to read and work
Easy to repair and maintenance.
.-
CHAPTER-4