Commit 9a9c19b7 authored by hasan khaddour's avatar hasan khaddour

re structure

parent 3c7b981a
...@@ -27,7 +27,7 @@ import { NgxPaginationModule } from 'ngx-pagination'; ...@@ -27,7 +27,7 @@ import { NgxPaginationModule } from 'ngx-pagination';
import { CustomerRoutingModule } from './customers/routing/customer-routing.module'; import { CustomerRoutingModule } from './customers/routing/customer-routing.module';
import { LoadingInterceptor } from './core/interceptors/loading.interceptor'; import { LoadingInterceptor } from './core/interceptors/loading.interceptor';
import { ProjectsModule } from './projects/projects.module'; import { ProjectsModule } from './projects/projects.module';
import { ProjectRoutingModule } from './projects/project-routing.module'; import { ProjectRoutingModule } from './projects/routing/project-routing.module';
import { ProjectFAQComponent } from './pages/project-faq/project-faq.component'; import { ProjectFAQComponent } from './pages/project-faq/project-faq.component';
import { PsmStartComponent } from './pages/psm-start/psm-start.component'; import { PsmStartComponent } from './pages/psm-start/psm-start.component';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
......
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
import { EmployeesRoutingModule } from './employees-routing.module'; import { EmployeesRoutingModule } from './routing/employees-routing.module';
import { EmployeeProfileComponent } from './pages/employee-profile/employee-profile.component'; import { EmployeeProfileComponent } from './pages/employee-profile/employee-profile.component';
import { EmployeeParticipatesComponent } from './pages/employee-participates/employee-participates.component'; import { EmployeeParticipatesComponent } from './pages/employee-participates/employee-participates.component';
import { EmployeeParticipateComponent } from './components/employee-participate/employee-participate.component'; import { EmployeeParticipateComponent } from './components/employee-participate/employee-participate.component';
......
import { HttpClient } from '@angular/common/http';
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router'; import { RouterModule, Routes } from '@angular/router';
import { ConfigurationService } from '../core/services/configuration/configuration.service'; import { EmployeeParticipatesComponent } from '../pages/employee-participates/employee-participates.component';
import { Observable } from 'rxjs'; import { EmployeeProfileComponent } from '../pages/employee-profile/employee-profile.component';
import { Result } from '../core/models/result';
import { Employee } from './models/responses/employee';
import { EmployeeProfileComponent } from './pages/employee-profile/employee-profile.component';
import { EmployeeParticipateComponent } from './components/employee-participate/employee-participate.component';
import { EmployeeParticipatesComponent } from './pages/employee-participates/employee-participates.component';
const routes: Routes = [ const routes: Routes = [
{path:"profile", component:EmployeeProfileComponent}, {path:"profile", component:EmployeeProfileComponent},
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<div class="mb-3 col-3"> <div class="mb-3 col-3">
<label for="worker" class="form-label">عدد العمال المطلوب</label> <label for="worker" class="form-label">عدد العمال المطلوب</label>
<input id="worker" class="form-control" [(ngModel)]="request.stepInfo.NumberOfWorker" name="worker" required> <input id="worker" class="form-control" [(ngModel)]="request.stepInfo.numberOfWorker" name="worker" required>
</div> </div>
</div> </div>
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
</div> </div>
<div class="mb-3 col-3"> <div class="mb-3 col-3">
<label for="duration" class="form-label">المدة</label> <label for="duration" class="form-label"> المدة (أسبوع)</label>
<input id="duration" class="form-control" [(ngModel)]="request.stepInfo.duration" name="duration" required> <input id="duration" class="form-control" [(ngModel)]="request.stepInfo.duration" name="duration" required>
</div> </div>
...@@ -46,8 +46,8 @@ ...@@ -46,8 +46,8 @@
</div> </div>
</div> </div>
<div class="row "> <div class="row ">
<button type="submit" class="btn btn-primary">إضافة</button> <button type="submit" [disabled]="projectForm.invalid" class="col-5 m-4 btn btn-primary">إضافة</button>
<button class="btn btn-seondary" (click)="onClose()" >إغلاق</button> <div class="col-5 m-4 btn btn-secondary" (click)="onClose()" >إغلاق</div>
</div> </div>
</form> </form>
......
...@@ -25,7 +25,7 @@ export class AddStepModalComponent implements OnInit { ...@@ -25,7 +25,7 @@ export class AddStepModalComponent implements OnInit {
stepInfo: { stepInfo: {
startDate:new Date (), startDate:new Date (),
description :'', description :'',
NumberOfWorker :0, numberOfWorker :0,
stepName:'', stepName:'',
duration:0 duration:0
}, },
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<div class="small mb-2 d-flex"> <div class="small mb-2 d-flex">
<span class="text-muted mr-4 ">نسبة الانجاز {{step.currentCompletionRatio}}</span> <span class="text-muted mr-4 ">نسبة الانجاز {{step.currentCompletionRatio}}</span>
<span class="text-muted mr-4 ">الثقل {{step.weight}}</span> <span class="text-muted mr-4 ">الثقل {{step.weight}}</span>
<span class="text-muted mr-4 ">عدد العمال المطلوب {{step.stepInfo.NumberOfWorker}}</span> <span class="text-muted mr-4 ">عدد العمال المطلوب {{step.stepInfo.numberOfWorker}}</span>
</div> </div>
......
...@@ -4,6 +4,6 @@ export interface StepInfo { ...@@ -4,6 +4,6 @@ export interface StepInfo {
description: string; description: string;
startDate: Date; startDate: Date;
duration: number; duration: number;
NumberOfWorker : number numberOfWorker : number
} }
...@@ -64,7 +64,6 @@ export class StepListComponent { ...@@ -64,7 +64,6 @@ export class StepListComponent {
} }
}, (reason) => { }, (reason) => {
this.toastr.error("لقد حدث خطاء ما")
}); });
} }
......
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router'; import { RouterModule, Routes } from '@angular/router';
import { ProjectListComponent } from './pages/project-list/project-list.component'; import { FinancialSpendingComponent } from '../pages/financial-spending/financial-spending.component';
import { ProjectDetailsComponent } from './pages/project-details/project-details.component'; import { ParticipantChangesComponent } from '../pages/participant-changes/participant-changes.component';
import { ProjectCreateComponent } from './pages/project-create/project-create.component'; import { ParticipantsListComponent } from '../pages/participants-list/participants-list.component';
import { StepListComponent } from './pages/step-list/step-list.component'; import { ProjectAttachmentsComponent } from '../pages/project-attachments/project-attachments.component';
import { ParticipantsListComponent } from './pages/participants-list/participants-list.component'; import { ProjectCreateComponent } from '../pages/project-create/project-create.component';
import { FinancialSpendingComponent } from './pages/financial-spending/financial-spending.component'; import { ProjectDetailsComponent } from '../pages/project-details/project-details.component';
import { ParticipantChangesComponent } from './pages/participant-changes/participant-changes.component'; import { ProjectListComponent } from '../pages/project-list/project-list.component';
import { ProjectAttachmentsComponent } from './pages/project-attachments/project-attachments.component'; import { StepListComponent } from '../pages/step-list/step-list.component';
const routes: Routes = [ const routes: Routes = [
......
...@@ -43,30 +43,6 @@ ...@@ -43,30 +43,6 @@
</a> </a>
</li> </li>
<li class="nav-heading">التقارير</li>
<li class="nav-item">
<a class="nav-link collapsed" data-bs-target="#Reports-nav" data-bs-toggle="collapse" href="#">
<i class="fe fe-printer"></i><span>إصدار تقرير</span><i class="bi bi-chevron-down ms-auto"></i>
</a>
<ul id="Reports-nav" class="nav-content collapse " data-bs-parent="#sidebar-nav">
<li>
<a href="components-alerts.html">
<i class="fe fe-circle"></i><span>تقرير متابعة</span>
</a>
</li>
<li>
<a href="components-accordion.html">
<i class="fe fe-circle"></i><span> تقرير انجاز</span>
</a>
</li>
<li>
<a href="components-badges.html">
<i class="fe fe-circle"></i><span>تقرير انشغالية</span>
</a>
</li>
</ul>
</li><!-- End Components Nav --> </li><!-- End Components Nav -->
<li class="nav-heading">الجهات الطارحة</li> <li class="nav-heading">الجهات الطارحة</li>
<li class="nav-item"> <li class="nav-item">
......
...@@ -189,7 +189,7 @@ export class TrackDetailsComponent implements OnInit { ...@@ -189,7 +189,7 @@ export class TrackDetailsComponent implements OnInit {
stepInfo:s?.stepInfo ?? { stepInfo:s?.stepInfo ?? {
startDate:new Date(), startDate:new Date(),
stepName :'', stepName :'',
NumberOfWorker:0, numberOfWorker:0,
description:'', description:'',
duration:0, duration:0,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment