Implement Persian Date Conversion and Enhance User Network Information Service

- Added PersianDateTimeService for converting Gregorian dates to Persian format in the BackOffice frontend.
- Updated multiple frontend pages (Dashboard, UserPayouts, WorkerControl, UserNetworkInfo) to utilize the new Persian date service.
- Enhanced GetUserNetworkPositionDto with 28+ new fields for comprehensive user network data.
- Updated GetUserNetworkPositionQueryHandler to include new methods for calculating network statistics.
- Modified Protobuf messages to accommodate the new fields, increasing from 14 to 42.
- Refined week number calculation algorithm to ensure consistency across C# and SQL implementations.
- Created new CSV and Excel files for binary plan calculations.
- Ensured all changes are tested and validated for accuracy and performance.
This commit is contained in:
masoodafar-web
2025-12-20 06:15:59 +03:30
parent 13a3489765
commit 002e99f6bf
32 changed files with 10263 additions and 106 deletions
+41 -10
View File
@@ -1,6 +1,27 @@
# 🎯 FourSat - مرجع سریع (Quick Reference)
> **برای دسترسی فوری به مستندات مهم**
> **برای دسترسی فوری به مستندات مهم**
> **آخرین بروزرسانی**: ۲۹ آذر ۱۴۰۴
---
## 🆕 آخرین تغییرات
### ۲۹ آذر - مایگریشن WeekNumber به WeekDefinitionId ✨
- **5 Entity** در CMS آپدیت شدند
- **Proto Files** در CMS و BFF آپدیت شدند
- **Blazor Components** در FrontOffice آپدیت شدند
- **فیلدهای جدید**: `WeekDefinitionId` (long), `WeekDisplayName` (string)
- **فیلدهای حذف شده**: `WeekNumber`, `WeekLabel`, `GregorianWeekNumber`, `PersianWeekNumber`
**📄 جزئیات**: [CHANGELOG-2025-12-19.md](CHANGELOG-2025-12-19.md)
### ۲۸ آذر - بهبودات FrontOffice
- سیستم مدیریت موجودی محصولات
- ویژگی‌های باشگاه مشتریان
- رفع باگ آدرس‌ها
**📄 جزئیات**: [CHANGELOG-2025-12-18.md](CHANGELOG-2025-12-18.md)
---
@@ -13,6 +34,7 @@
### 🔥 برای Development:
- **Setup**: [06-DEPLOYMENT/quick-start.md](06-DEPLOYMENT/quick-start.md)
- **سیستم کمیسیون**: [03-BACKEND/CMS/commission-system.md](03-BACKEND/CMS/commission-system.md) ✨
- **TODO ها**: [04-FRONTEND/FrontOffice/todo-commented-code.md](04-FRONTEND/FrontOffice/todo-commented-code.md)
- **Protobuf Issues**: [03-BACKEND/FrontOffice.BFF/protobuf-mismatch.md](03-BACKEND/FrontOffice.BFF/protobuf-mismatch.md)
@@ -25,6 +47,7 @@
- **CMS Status**: [03-BACKEND/CMS/implementation-status.md](03-BACKEND/CMS/implementation-status.md)
- **API Coverage**: [03-BACKEND/CMS/api-coverage.md](03-BACKEND/CMS/api-coverage.md)
- **Entity Guide**: [03-BACKEND/CMS/entity-guide.md](03-BACKEND/CMS/entity-guide.md)
- **Commission System**: [03-BACKEND/CMS/commission-system.md](03-BACKEND/CMS/commission-system.md) ✨
### 🎨 برای Frontend:
- **BackOffice Status**: [04-FRONTEND/BackOffice/ui-status.md](04-FRONTEND/BackOffice/ui-status.md)
@@ -50,17 +73,25 @@
## 📊 وضعیت سیستم
| Component | Progress |
|-----------|----------|
| CMS | 95% ✅ |
| BackOffice.BFF | 100% ✅ |
| BackOffice UI | 100% ✅ |
| FrontOffice.BFF | 60% 🚧 |
| FrontOffice UI | 75% 🚧 |
| Component | Progress | امروز |
|-----------|----------|--------|
| CMS | 96% ✅ | +1% (Network Info) |
| BackOffice.BFF | 100% ✅ | Updated (DTO) |
| BackOffice UI | 98% ✅ | +1% (Persian Date) |
| FrontOffice.BFF | 60% 🚧 | - |
| FrontOffice UI | 75% 🚧 | - |
### تغییرات اخیر:
-**امروز (22 آذر)**: تاریخ شمسی + اطلاعات کامل شبکه + رفع Bug هفته
- ✅ BackOffice.BFF: رفع Anti-Pattern معماری (Protobuf اختصاصی)
- ✅ HTTP Annotations: 33 endpoint برای Swagger
- ✅ Network Tree: نمایش درختی D3.js با zoom/pan
- ✅ User AutoComplete: جستجوی چند فیلدی
- ✅ Multi-Role Authorization: پشتیبانی از JWT آرایه‌ای
---
## جستجوی موضوعی
## 🔍 جستجوی موضوعی
```bash
# باشگاه مشتریان
@@ -86,4 +117,4 @@ grep -r "Wallet" 01-BUSINESS/ 04-FRONTEND/
---
**تاریخ بروزرسانی**: ۱۴ آذر ۱۴۰۴
**تاریخ بروزرسانی**: ۲۲ آذر ۱۴۰۴ (12 دسامبر 2025)