24 Commits

Author SHA1 Message Date
dee6bc7bef feat: add person name and insert time to announcement DTO
- Added PersonName property to AnnouncementDto to display person's full name
- Added lookup logic to fetch person names from Persons table based on phone numbers
- Added InsertTime shadow property retrieval from EF Core to display creation date
- Updated model snapshot with new shadow properties (InsertTime, IsRemoved, RemoveTime, UpdateTime) for Chat entity
2026-06-11 19:42:58 +03:30
861a98668e feat: add Auditable attribute to Chat entity and create migration
Added [Auditable] attribute to the Chat entity to enable auditing functionality. Created a new migration (AddAuditableToChat) that adds InsertTime, IsRemoved, and RemoveTime columns to the Chat table, along with the necessary database schema updates to support the auditing behavior.
2026-06-11 19:42:44 +03:30
e4fe2389a4 feat: add unit filtering and improve unit info handling in charge cycles
- Add optional UnitId parameter to CostCyclsList method for filtering cycles by specific unit
- Replace UnitIds/UnitNames lists with structured UnitInfoDto containing Id and Name
- Clean unit names by removing "GUID#" prefix when present
- Update CostCycleDto to use UnitInfoDto list instead of separate Id and Name lists
- Fix unit assignment logic in Add and Edit methods to use new DTO structure
2026-06-10 20:17:46 +03:30
3bc209839e refactor: extract DateTime.Now conversion to variable for reuse 2026-06-09 23:50:13 +03:30
f2880a2167 feat(dashboard): add optional CommonRequestDto parameter to GetManagerSummary
Add optional CommonRequestDto parameter to GetManagerSummary method in both service interface and implementation, and update the controller endpoint to accept it as a query parameter. This allows passing common request data (e.g., pagination, filtering) to the dashboard summary retrieval.
2026-06-09 23:35:16 +03:30
adcee56ce8 fix: update migration timestamp and correct city IDs in data seeder
- Update EF Core migration history timestamp from 20260608225159 to 20260608225845
- Fix CityId values in Complex seed data to use new composite format (provinceId*100+cityId)
  - Tehran: 1 → 801 (provinceId=8, cityId=1)
  - Isfahan: 3 → 401 (provinceId=4, cityId=1)
2026-06-09 02:45:46 +03:30
0e1b0345ec feat: disable identity auto-generation for reference/lookup tables
Reference tables (Province, City, BasicTable, IncomeCostTitle, UnitState, Transaction) require stable, manually assigned IDs that are cross-referenced by other entities. Identity auto-generation is disabled to allow explicit ID assignment from seed data.
2026-06-09 02:40:13 +03:30
6644db7e78 fix(db): update migration and configure many-to-many relationships to avoid cascade paths
- Regenerated InitialCreate migration to reflect new entity configurations
- Configured many-to-many relationship between CostCycle and Unit with NoAction on Unit side to prevent multiple cascade paths
- Updated UnitCost relationships: Cascade from CostCycle, NoAction from Unit
- Removed commented-out global filter code and replaced with explicit relationship configurations
2026-06-09 02:23:09 +03:30
569e39b58d Fix 'Invalid object name Provinces' error - reset migrations and switch to Migrate() 2026-06-09 02:13:29 +03:30
7a4190ca13 feat: add Province and City DbSets to ComplexDBContext 2026-06-09 01:58:05 +03:30
7e54818332 fix: use EnsureCreated instead of Migrate to handle missing initial migration 2026-06-09 01:52:29 +03:30
2c87b5bd49 fix: correct CORS middleware name and remove unused TLS certresolver comment
The CORS middleware was incorrectly referencing `webapp-cors` for the `accessControlAllowCredentials` header, which should use `complex-cors` to match the actual middleware name. Also removed a commented-out TLS certresolver line that was no longer needed.
2026-06-09 01:44:29 +03:30
13deea7f3f fix(docker-compose): rename connection string environment variable
Updated the connection string environment variable from `ConnectionStrings__Default` to `ConnectionStrings__ComplexConnection` to align with the application's expected configuration key.
2026-06-09 01:41:49 +03:30
3536ff62c1 fix: update manager phone number in seed data from 09120000001 to 09354600904
Changed the manager's mobile number across all seed data entries to reflect the correct contact information for the complex manager.
2026-06-09 01:40:26 +03:30
56f20110ff chore: remove tracked bin/obj build artifacts from git index 2026-06-09 01:35:24 +03:30
8be6133661 feat: add DataSeeder for reference/test data and auto-migration on startup 2026-06-09 01:31:37 +03:30
f101085b52 feat: add Dashboard service with manager summary statistics 2026-06-09 01:30:19 +03:30
c38f2de9c4 feat: add Announcement service with GetAnnouncements and SendAnnouncement 2026-06-09 01:30:12 +03:30
0caf9d58b8 feat: add Transaction service with UnitsByTransStateList and PayCosts 2026-06-09 01:30:05 +03:30
e2afe8af9a feat: add Person search endpoint with SearchPersons method 2026-06-09 01:29:57 +03:30
9a42b96f41 fix .gitignore to exclude nested bin/obj directories 2026-06-09 01:29:30 +03:30
motahhari
1fb1081af5 fix deploy config 2026-06-03 03:20:16 +03:30
a2140fadc3 Add .gitignore 2026-06-03 01:56:30 +03:30
8e92c983a2 first commit 2026-06-02 20:48:16 +03:30