pqhuy1987 0db1b99457
All checks were successful
Deploy SOLUTION_ERP / build-deploy (push) Successful in 6m25s
[CLAUDE] FE-Admin: KHKK man Thao tac dung LAI cay Nam>Du an>Hang muc>4 GD (FE-only, 0-mig)
Anh: "cho hien thi no giong the nay nhe" (chi sang cay o man Danh sach) + "Hien thi theo ngay
thang du an hang muc phieu duyet ncc va phieu KHKK tuong ung".

=== LAM GI ===
Tang tren man Thao tac nay DUNG LAI chinh `PipelineTreePanel` — cay
📅 Nam > 📁 Du an > 🧱 Hang muc > 4 folder giai doan, dung cay anh tro sang.

🔴 DUNG LAI thay vi dung ban thu hai: cay do DA co san tang NAM + gom hang muc + 4 folder;
chep lai la de 2 su-that, sua 1 cho quen cho kia. Lead vua tu tay dung cay 2 cap
(Du an > Hang muc) o luot truoc — nay GO HAN, vi no la ban thu hai cua cung mot hinh.

🔴 2 callback DA CO SAN, khong phai them moi:
· `onOpenPe` (them o dot D/O6) => bam phieu PE tren cay = nap THANG vao form tao, o lai man.
· `onOpenKhkk` => bam phieu KHKK = mo o panel 2.
Khong truyen thi cay tu `navigate` roi man — dung thu anh cam ("ko re-direct").

🔸 `bodyMaxHClass="max-h-none"`: `Tier` da tu cuon; de tran mac-dinh cua cay thi thanh 2
thanh cuon long nhau.

=== DON DEAD CODE (do go cay tu-dung) ===
· query `khkk-pe-candidates` GO khoi panel nay — cay tu nap index PE cua no; giu lai la goi
  mang cho danh sach khong con ai ve.
  🔸 `KhkkCreatePage` VAN dung key nay cho o chon PE cua form tao => cache dung chung, form
     tao KHONG mat du-lieu.
· go `awaiting` / `byProject` / `countProject` / `collapsed` / `formatDate` / prop
  `selectedPeId` — tat ca chi ton tai de phuc vu cay tu-dung.

=== HAU-KIEM host khac ===
4 host cay cua module Hop dong (ContractsListPage · HardCopiesPage x2 · MyContractsPage):
`onOpenPe` = 0, `hideSearch` = 0 => KHONG doi hanh vi. Ca 2 prop deu opt-in.

Verify dist bang NOI DUNG (khong tin thoi-gian build): chuoi moi 'Cay toan trinh — bam phieu'
= 1/1 ca 2 app; chuoi CU 'Da duyet · chua lap KHKK' = 0/0.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-05 21:53:39 +07:00
2026-08-05 21:02:04 +07:00

SOLUTION_ERP

Hệ thống quản lý Hợp đồng Nhà cung cấp / Thầu phụ / Tổ đội cho Công ty TNHH Xây dựng Solutions.

📘 AI context: CLAUDE.md (pointer) → docs/CLAUDE.md (full)

Quick start (dev)

Yêu cầu: .NET 10 SDK, Node 20+, SQL Server (local hoặc qua Docker).

# 1. DB — chạy SQL Server qua Docker (nếu chưa có local)
docker compose up -d

# 2. Backend — migration + run Api (port 5443)
dotnet ef database update --project src/Backend/SolutionErp.Infrastructure --startup-project src/Backend/SolutionErp.Api
dotnet run --project src/Backend/SolutionErp.Api

# 3. Frontend admin (port 8082) — terminal mới
cd fe-admin
npm install
npm run dev

# 4. Frontend user (port 8080) — terminal mới
cd fe-user
npm install
npm run dev

Admin mặc định (sẽ seed sau Phase 1): admin@solutionerp.local / Admin@123456

Architecture

fe-admin (:8082)          fe-user (:8080)
       │                        │
       └────── /api proxy ──────┘
                  ▼
         SolutionErp.Api (:5443)
                  │
   ┌──────────────┼──────────────┐
   ▼              ▼              ▼
 Application   Domain      Infrastructure ── SQL Server

Tech stack

  • Backend: .NET 10 + Clean Architecture + CQRS (MediatR) + FluentValidation + AutoMapper + EF Core + ASP.NET Identity + JWT
  • Frontend: React 18 + Vite + TypeScript + Tailwind + shadcn/ui + TanStack Query
  • DB: SQL Server 2022
  • Deploy: Windows Server + IIS

Roadmap

Phase Tuần Focus
0 Draft T1 Scaffold, parse FORM + QUY_TRINH
1 Alpha Core T2-4 Auth, Permission, CRUD master
2 Form Engine T5-6 Render template docx/xlsx
3 Workflow T7-9 State machine 9 phase
4 Report + Polish T10-11 Dashboard + Excel export
5 Production T12-13 CI/CD IIS, UAT, go-live

Chi tiết ở docs/changelog/migration-todos.md.

License

Proprietary — Công ty TNHH Xây dựng Solutions.

Description
H? th?ng qu?n l� H?p d?ng NCC/Th?u ph?/T? d?i � .NET 10 Clean Arch + 2 React FE
Readme 59 MiB
Languages
C# 53.9%
TypeScript 38.4%
PowerShell 6%
Python 0.7%
JavaScript 0.4%
Other 0.6%