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:
@@ -1,6 +1,20 @@
|
||||
# 📚 FourSat Project Documentation
|
||||
|
||||
> **نسخه 2.0** - تجمیع و بازسازی شده در ۱۴ آذر ۱۴۰۴
|
||||
> **نسخه 2.1** - آخرین بروزرسانی: ۲۹ آذر ۱۴۰۴ (19 December 2025)
|
||||
|
||||
---
|
||||
|
||||
## 📋 تغییرات اخیر
|
||||
|
||||
### ۲۹ آذر - مایگریشن WeekNumber به WeekDefinitionId
|
||||
- تغییر از `string WeekNumber` به `long WeekDefinitionId` در سیستم کمیسیون
|
||||
- آپدیت تمام Entities، Protos، DTOs و Blazor Components
|
||||
- مستندات: [CHANGELOG-2025-12-19.md](CHANGELOG-2025-12-19.md)
|
||||
|
||||
### ۲۸ آذر - بهبودات FrontOffice
|
||||
- سیستم مدیریت موجودی محصولات
|
||||
- ویژگیهای باشگاه مشتریان
|
||||
- مستندات: [CHANGELOG-2025-12-18.md](CHANGELOG-2025-12-18.md)
|
||||
|
||||
---
|
||||
|
||||
@@ -60,21 +74,35 @@ totalDoc/
|
||||
| باشگاه مشتریان | [01-BUSINESS/network-commission-system.md](01-BUSINESS/network-commission-system.md) |
|
||||
| شبکه باینری | [01-BUSINESS/binary-tree-guide.md](01-BUSINESS/binary-tree-guide.md) |
|
||||
| فروشگاه تخفیف | [01-BUSINESS/discount-shop-business.md](01-BUSINESS/discount-shop-business.md) |
|
||||
| سیستم کمیسیون | [03-BACKEND/CMS/commission-system.md](03-BACKEND/CMS/commission-system.md) ✨ |
|
||||
| پیادهسازی CMS | [03-BACKEND/CMS/implementation-status.md](03-BACKEND/CMS/implementation-status.md) |
|
||||
| TODO ها | [04-FRONTEND/FrontOffice/todo-commented-code.md](04-FRONTEND/FrontOffice/todo-commented-code.md) |
|
||||
| کارهای جاری | [05-TASKS/CURRENT-SPRINT.md](05-TASKS/CURRENT-SPRINT.md) 🔥 |
|
||||
|
||||
---
|
||||
|
||||
## 🎯 اولویتهای جاری (۱۴ آذر)
|
||||
## 📝 Changelogs
|
||||
|
||||
| تاریخ | فایل | موضوع |
|
||||
|-------|------|-------|
|
||||
| ۲۹ آذر ۱۴۰۴ | [CHANGELOG-2025-12-19.md](CHANGELOG-2025-12-19.md) | مایگریشن WeekNumber به WeekDefinitionId |
|
||||
| ۲۸ آذر ۱۴۰۴ | [CHANGELOG-2025-12-18.md](CHANGELOG-2025-12-18.md) | مدیریت موجودی، ClubFeatures |
|
||||
| ۲۱ آذر ۱۴۰۴ | [SESSION-2025-12-12-PERSIAN-DATE-AND-NETWORK-INFO-IMPROVEMENTS.md](SESSION-2025-12-12-PERSIAN-DATE-AND-NETWORK-INFO-IMPROVEMENTS.md) | تاریخ شمسی و Network Info |
|
||||
| ۱۸ آذر ۱۴۰۴ | [CHANGELOG-2025-12-09.md](CHANGELOG-2025-12-09.md) | ClubFeatures، Balance Calculation |
|
||||
|
||||
---
|
||||
|
||||
## 🎯 اولویتهای جاری (۲۹ آذر)
|
||||
|
||||
### ✅ انجام شده:
|
||||
1. **مایگریشن WeekNumber به WeekDefinitionId** - تمام لایهها
|
||||
2. **آپدیت Proto Files** - CMS و FrontOffice.BFF
|
||||
3. **آپدیت Blazor Components** - FrontOffice
|
||||
|
||||
### 🔥 High Priority:
|
||||
1. **FrontOffice UI Integration** - اتصال 7 صفحه به API واقعی
|
||||
2. **Protobuf Mismatch Fixes** - رفع مغایرت در 3 Handler
|
||||
|
||||
### 🟡 Medium Priority:
|
||||
3. **WalletService Implementation** - پیادهسازی 5 متد
|
||||
4. **Package Purchase UI** - ساخت 4 صفحه جدید
|
||||
1. **اجرای EF Migration** - دیتابیس CMS
|
||||
2. **Data Migration Scripts** - انتقال دادههای موجود
|
||||
3. **پابلیش NuGet Packages** - proto ها
|
||||
|
||||
**جزئیات**: [05-TASKS/CURRENT-SPRINT.md](05-TASKS/CURRENT-SPRINT.md)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user