To analyze the problem gather the requirements and implement order processing system and to model the data using UML diagram.
Phase 1:
Problem analysis:
The system maintain a book database which allows customer to order
System maintain a stock details
Print inventory report
Restock inventory
Phase 2:
Functional Requirement analysis:
Users:
The external entity to the system which indicates the order process.
Order application:
This is independent process from the user to fill the application froms.
Identifying actors:
Sales person
Ware house manager
Ware house clerk
Phase 3:
Data modeling:
The various data modeling techniques which are implemented in the payroll processing system are
Usecase diagram
Class diagram
Collaboration diagram
Sequence diagram
State chart diagram
Activity diagram
Component diagram
Phase 4:
Software requirements:
The software is now designed in rational rose and skeleton code is generated in VBC++
Phase 5:
Implementation:
Use case diagram
Class Diagram
Activity Diagram
Sequence Diagram
Source code
ORDER DETAILS.CPP
#include "order detail (from boundaries).h"
//##ModelId=48B8DC540222
order detail (from boundaries)::open operation()
{
}
//##ModelId=48B8DC6903C8
order detail (from boundaries)::submit info()
{
}
//##ModelId=48B8DC7B0167
order detail (from boundaries)::save()
{
}
//##ModelId=48B8DC85002E
order detail (from boundaries)::op name()
{
}
ORDER DETAILS.H
#ifndef ORDER_DETAIL_FROM_BOUNDARIES_H_HEADER_INCLUDED_B74743E8
#define ORDER_DETAIL_FROM_BOUNDARIES_H_HEADER_INCLUDED_B74743E8
//##ModelId=48B8DC1603C8
class order detail (from boundaries)
{
public:
//##ModelId=48B8DC540222
open operation();
//##ModelId=48B8DC6903C8
submit info();
//##ModelId=48B8DC7B0167
save();
//##ModelId=48B8DC85002E
op name();
};
#endif /* ORDER_DETAIL_FROM_BOUNDARIES_H_HEADER_INCLUDED_B74743E8 */
ORDER ITEM.CPP
#include "order item (from entities).h"
//##ModelId=48B8DCCA035B
order item (from entities)::create()
{
}
//##ModelId=48B8DCD201A5
order item (from entities)::set info()
{
}
//##ModelId=48B8DCDB000F
order item (from entities)::get info()
{
}
ORDER ITEM.H
#ifndef ORDER_ITEM_FROM_ENTITIES_H_HEADER_INCLUDED_B7473CAF
#define ORDER_ITEM_FROM_ENTITIES_H_HEADER_INCLUDED_B7473CAF
//##ModelId=48B8DC9800AB
class order item (from entities)
{
public:
//##ModelId=48B8DCCA035B
create();
//##ModelId=48B8DCD201A5
set info();
//##ModelId=48B8DCDB000F
get info();
};
#endif /* ORDER_ITEM_FROM_ENTITIES_H_HEADER_INCLUDED_B7473CAF */
ORDERMGR.CPP
#include "order mgr (from control).h"
//##ModelId=48B8DD1E000F
order mgr (from control)::save order()
{
}
ORDERMGR.H
#ifndef ORDER_MGR_FROM_CONTROL_H_HEADER_INCLUDED_B7470EEE
#define ORDER_MGR_FROM_CONTROL_H_HEADER_INCLUDED_B7470EEE
//##ModelId=48B8DC0F00DA
class order mgr (from control)
{
public:
//##ModelId=48B8DD1E000F
save order();
};
#endif /* ORDER_MGR_FROM_CONTROL_H_HEADER_INCLUDED_B7470EEE */
ORDEROPTION.CPP
#include "order option (from boundaries).h"
//##ModelId=48B8DBA90109
order option (from boundaries)::create()
{
}
ORDEROPTION.H
#ifndef ORDER_OPTION_FROM_BOUNDARIES_H_HEADER_INCLUDED_B7471758
#define ORDER_OPTION_FROM_BOUNDARIES_H_HEADER_INCLUDED_B7471758
//##ModelId=48B8DB6A02CE
class order option (from boundaries)
{
public:
//##ModelId=48B8DBA90109
create();
};
#endif /* ORDER_OPTION_FROM_BOUNDARIES_H_HEADER_INCLUDED_B7471758 */
TRANSACTION MGR.CPP
#include "transaction mgr (from control).h"
//##ModelId=48B8DD62007D
transaction mgr (from control)::save order()
{
}
//##ModelId=48B8DD6D01C5
transaction mgr (from control)::commit()
{
}
TRANSACTION MGR.H
#ifndef TRANSACTION_MGR_FROM_CONTROL_H_HEADER_INCLUDED_B747014B
#define TRANSACTION_MGR_FROM_CONTROL_H_HEADER_INCLUDED_B747014B
//##ModelId=48B8DD330148
class transaction mgr (from control)
{
public:
//##ModelId=48B8DD62007D
save order();
//##ModelId=48B8DD6D01C5
commit();
};
#endif /* TRANSACTION_MGR_FROM_CONTROL_H_HEADER_INCLUDED_B747014B */
0 Comments