# fcwey/rotascada architecture

> Architecture diagram of the GitHub repository fcwey/rotascada, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/fcwey/rotascada
- Repository: https://github.com/fcwey/rotascada

## Overview

This is an industrial materials and processing management application, with both a Web API and WPF clients. A principal workflow is receiving a goods record, adding its materials and processing steps, then tracking work and dispatching it to a furnace. The code shown supports the intake and tracking service relationships; the tree also indicates catalog, customer, pricing, service, and furnace-planning capabilities. Several UI and API connections are inferred only from the project structure, so those edges are marked unverified.

Main entry points: [`DataAccess/Concrete/EntityFramework`](https://github.com/fcwey/rotascada/tree/master/DataAccess/Concrete/EntityFramework) (Entity Framework access), [`Business/Concrete/MalGirisKayitManager.cs`](https://github.com/fcwey/rotascada/blob/master/Business/Concrete/MalGirisKayitManager.cs) (Goods records), [`Business/Concrete/IslemTakipManager.cs`](https://github.com/fcwey/rotascada/blob/master/Business/Concrete/IslemTakipManager.cs) (Process tracking), [`WebAPI/Controllers`](https://github.com/fcwey/rotascada/tree/master/WebAPI/Controllers) (HTTP controllers)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_clients["User clients"]
  node_wpf_intake["Goods intake UI"]
  node_wpf_tracking["Tracking UI"]
  node_furnace_ui["Furnace planning UI"]
end

subgraph group_api["API and business services"]
  node_api_controllers["HTTP controllers"]
  node_intake_record["Goods records"]
  node_intake_material["Intake materials"]
  node_intake_steps["Intake operations"]
  node_tracking["Process tracking"]
  node_catalog["Product catalog<br/>[ProductManager.cs]"]
  node_auth["Authentication<br/>[AuthManager.cs]"]
  node_furnace["Furnace management<br/>[FurnaceManager.cs]"]
  node_other_services["Business services"]
end

subgraph group_data["Persistence"]
  node_ef_access["Entity Framework access"]
  node_context["Application context"]
  node_database[("Relational database")]
end

subgraph group_shared["Shared domain and infrastructure"]
  node_domain["Domain entities and DTOs"]
  node_results["Operation results"]
  node_core_repository["Repository base"]
end

node_operator(("Operator"))

node_operator -->|"enters goods"| node_wpf_intake
node_wpf_intake -->|"uses"| node_intake_record
node_intake_record -->|"cleans materials"| node_intake_material
node_intake_material -->|"deletes steps"| node_intake_steps
node_intake_record -->|"reads and writes"| node_ef_access
node_intake_material -->|"reads and writes"| node_ef_access
node_intake_steps -.->|"persists operations"| node_ef_access
node_wpf_tracking -.->|"uses"| node_tracking
node_tracking -->|"reads and dispatches"| node_ef_access
node_furnace_ui -.->|"plans loads"| node_furnace
node_tracking -.->|"dispatches to"| node_furnace
node_api_controllers -.->|"routes requests"| node_intake_record
node_api_controllers -.->|"routes requests"| node_tracking
node_api_controllers -->|"routes requests"| node_catalog
node_catalog -->|"checks categories"| node_other_services
node_catalog -.->|"reads and writes"| node_ef_access
node_auth -->|"uses user service"| node_other_services
node_ef_access -.->|"uses context"| node_context
node_context -->|"maps entities"| node_domain
node_ef_access -.->|"extends repository"| node_core_repository
node_intake_record -->|"returns results"| node_results
node_tracking -->|"returns results"| node_results

click node_wpf_intake "https://github.com/fcwey/rotascada/blob/master/WpfUI/Windows/Win_MalKabul.xaml.cs"
click node_wpf_tracking "https://github.com/fcwey/rotascada/blob/master/WpfUI/Windows/Win_IslemTakip.xaml.cs"
click node_furnace_ui "https://github.com/fcwey/rotascada/tree/master/WpfUI/UControls/UC_FurnacePlaning"
click node_api_controllers "https://github.com/fcwey/rotascada/tree/master/WebAPI/Controllers"
click node_intake_record "https://github.com/fcwey/rotascada/blob/master/Business/Concrete/MalGirisKayitManager.cs"
click node_intake_material "https://github.com/fcwey/rotascada/blob/master/Business/Concrete/MalGirisMalzemeManager.cs"
click node_intake_steps "https://github.com/fcwey/rotascada/blob/master/Business/Concrete/MalGirisIslemManager.cs"
click node_tracking "https://github.com/fcwey/rotascada/blob/master/Business/Concrete/IslemTakipManager.cs"
click node_catalog "https://github.com/fcwey/rotascada/blob/master/Business/Concrete/ProductManager.cs"
click node_auth "https://github.com/fcwey/rotascada/blob/master/Business/Concrete/AuthManager.cs"
click node_furnace "https://github.com/fcwey/rotascada/blob/master/Business/Concrete/FurnaceManager.cs"
click node_other_services "https://github.com/fcwey/rotascada/tree/master/Business/Concrete"
click node_ef_access "https://github.com/fcwey/rotascada/tree/master/DataAccess/Concrete/EntityFramework"
click node_context "https://github.com/fcwey/rotascada/blob/master/DataAccess/Concrete/EntityFramework/Contexts/NorthwindContext.cs"
click node_domain "https://github.com/fcwey/rotascada/tree/master/Entities"
click node_results "https://github.com/fcwey/rotascada/tree/master/Core/Utilities/Results"
click node_core_repository "https://github.com/fcwey/rotascada/blob/master/Core/DataAccess/EntityFramework/EfEntityRepositoryBase.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_wpf_intake,node_wpf_tracking,node_furnace_ui toneBlue
class node_api_controllers,node_intake_record,node_intake_material,node_intake_steps,node_tracking,node_catalog,node_auth,node_furnace,node_other_services toneAmber
class node_ef_access,node_context,node_database toneMint
class node_domain,node_results,node_core_repository toneRose
class node_operator toneIndigo
```

## Components

### User clients

- [Goods intake UI](https://github.com/fcwey/rotascada/blob/master/WpfUI/Windows/Win_MalKabul.xaml.cs): `WpfUI/Windows/Win_MalKabul.xaml.cs`
- [Tracking UI](https://github.com/fcwey/rotascada/blob/master/WpfUI/Windows/Win_IslemTakip.xaml.cs): `WpfUI/Windows/Win_IslemTakip.xaml.cs`
- [Furnace planning UI](https://github.com/fcwey/rotascada/tree/master/WpfUI/UControls/UC_FurnacePlaning): `WpfUI/UControls/UC_FurnacePlaning`

### API and business services

- [HTTP controllers](https://github.com/fcwey/rotascada/tree/master/WebAPI/Controllers): `WebAPI/Controllers`
- [Goods records](https://github.com/fcwey/rotascada/blob/master/Business/Concrete/MalGirisKayitManager.cs): `Business/Concrete/MalGirisKayitManager.cs`
- [Intake materials](https://github.com/fcwey/rotascada/blob/master/Business/Concrete/MalGirisMalzemeManager.cs): `Business/Concrete/MalGirisMalzemeManager.cs`
- [Intake operations](https://github.com/fcwey/rotascada/blob/master/Business/Concrete/MalGirisIslemManager.cs): `Business/Concrete/MalGirisIslemManager.cs`
- [Process tracking](https://github.com/fcwey/rotascada/blob/master/Business/Concrete/IslemTakipManager.cs): `Business/Concrete/IslemTakipManager.cs`
- [Product catalog](https://github.com/fcwey/rotascada/blob/master/Business/Concrete/ProductManager.cs): `Business/Concrete/ProductManager.cs`
- [Authentication](https://github.com/fcwey/rotascada/blob/master/Business/Concrete/AuthManager.cs): `Business/Concrete/AuthManager.cs`
- [Furnace management](https://github.com/fcwey/rotascada/blob/master/Business/Concrete/FurnaceManager.cs): `Business/Concrete/FurnaceManager.cs`
- [Business services](https://github.com/fcwey/rotascada/tree/master/Business/Concrete): `Business/Concrete`

### Persistence

- [Entity Framework access](https://github.com/fcwey/rotascada/tree/master/DataAccess/Concrete/EntityFramework): `DataAccess/Concrete/EntityFramework`
- [Application context](https://github.com/fcwey/rotascada/blob/master/DataAccess/Concrete/EntityFramework/Contexts/NorthwindContext.cs): `DataAccess/Concrete/EntityFramework/Contexts/NorthwindContext.cs`
- **Relational database**

### Shared domain and infrastructure

- [Domain entities and DTOs](https://github.com/fcwey/rotascada/tree/master/Entities): `Entities`
- [Operation results](https://github.com/fcwey/rotascada/tree/master/Core/Utilities/Results): `Core/Utilities/Results`
- [Repository base](https://github.com/fcwey/rotascada/blob/master/Core/DataAccess/EntityFramework/EfEntityRepositoryBase.cs): `Core/DataAccess/EntityFramework/EfEntityRepositoryBase.cs`

### Other components

- **Operator**

## Connections

- Operator → Goods intake UI: enters goods (evidence: `WpfUI/Windows/Win_MalKabul.xaml.cs`)
- Goods intake UI → Goods records: uses (evidence: `WpfUI/Windows/Win_MalKabul.xaml.cs`)
- Goods records → Intake materials: cleans materials (evidence: `Business/Concrete/MalGirisKayitManager.cs`)
- Intake materials → Intake operations: deletes steps (evidence: `Business/Concrete/MalGirisMalzemeManager.cs`)
- Goods records → Entity Framework access: reads and writes (evidence: `Business/Concrete/MalGirisKayitManager.cs`)
- Intake materials → Entity Framework access: reads and writes (evidence: `Business/Concrete/MalGirisMalzemeManager.cs`)
- Intake operations → Entity Framework access: persists operations
- Tracking UI → Process tracking: uses
- Process tracking → Entity Framework access: reads and dispatches (evidence: `Business/Concrete/IslemTakipManager.cs`)
- Furnace planning UI → Furnace management: plans loads
- Process tracking → Furnace management: dispatches to
- HTTP controllers → Goods records: routes requests
- HTTP controllers → Process tracking: routes requests
- HTTP controllers → Product catalog: routes requests (evidence: `WebAPI/Controllers/ProductsController.cs`)
- Product catalog → Business services: checks categories (evidence: `Business/Concrete/ProductManager.cs`)
- Product catalog → Entity Framework access: reads and writes
- Authentication → Business services: uses user service (evidence: `Business/Concrete/AuthManager.cs`)
- Entity Framework access → Application context: uses context
- Application context → Domain entities and DTOs: maps entities (evidence: `DataAccess/Concrete/EntityFramework/Contexts/NorthwindContext.cs`)
- Entity Framework access → Repository base: extends repository
- Goods records → Operation results: returns results (evidence: `Business/Concrete/MalGirisKayitManager.cs`)
- Process tracking → Operation results: returns results (evidence: `Business/Concrete/IslemTakipManager.cs`)
