Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task architecture app #6

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
110 changes: 110 additions & 0 deletions class_diagram.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
## Учет клиентов

```mermaid
classDiagram
class AClient {
<<Abstract>>

+ string inn
+ string address
+ map~string, string~ contacts
}

AClient <|-- ClientYL
class ClientYL {
+ string name
}
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
```

## Учет этапов производства

```mermaid
classDiagram
class Stage {
+ string name_of_stage
+ Equipment* equipment
+ map<Material*, int> materials
+ string execution_time
}

ProductionPlan *-- Stage
class ProductionPlan {
+ list<Stage*> stages
}
```
## Учет заказов

```mermaid
classDiagram
Order *-- Product
class Order {
+ sring number
+ string start_data
+ string plann_end_date
+ string fact_end_date
+ map<Product*, int> products
+ string comments
}

class Product {
+ string code
+ string names
+ double cost
* Material* material
}

Product *-- Material
class Material {
+ string name
+ int quantity
}
```

## Учет оборудования

```mermaid
classDiagram
class StatusEquipment {
<<Enumeration>>
IDLE
AT_WORK
UNDER_REPAIR
ON_THE_WAY
}

Equipment *-- StatusEquipment
Equipment *-- Workshop
class Equipment {
+ int accession_number
+ string name
+ StatusEquipment status
+ Workshop* workshop
+ Employee* employee
}

class Workshop {
+ string name
}
```
## Учет сотрудников

```mermaid
classDiagram
class StatusEmployee {
<<Enumeration>>
AT_WORK
VACATION
ON_HOSPITAL
ON_BUISNESS_TRIP
DAY_OFF
}

Employee *-- StatusEmployee
class Employee{
+ string last_name
+ string first_name
+ string patronymic_name
+ string speciality
+ StatusEmployee status
+ string employee_number
}
```