Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
HIAST-Clinics
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
almohanad.hafez
HIAST-Clinics
Commits
258f5445
Commit
258f5445
authored
Aug 26, 2024
by
Almouhannad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(F) Add doctos comps
parent
a574081b
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
157 additions
and
0 deletions
+157
-0
app.module.ts
Clinics.Frontend/src/app/app.module.ts
+6
-0
ask-for-serial-number.component.css
...ask-for-serial-number/ask-for-serial-number.component.css
+0
-0
ask-for-serial-number.component.html
...sk-for-serial-number/ask-for-serial-number.component.html
+64
-0
ask-for-serial-number.component.ts
.../ask-for-serial-number/ask-for-serial-number.component.ts
+24
-0
history.component.css
...d/src/app/components/doctor/history/history.component.css
+0
-0
history.component.html
.../src/app/components/doctor/history/history.component.html
+1
-0
history.component.ts
...nd/src/app/components/doctor/history/history.component.ts
+10
-0
visit.component.css
...ntend/src/app/components/doctor/visit/visit.component.css
+0
-0
visit.component.html
...tend/src/app/components/doctor/visit/visit.component.html
+1
-0
visit.component.ts
...ontend/src/app/components/doctor/visit/visit.component.ts
+10
-0
header.component.html
...p/components/shared/template/header/header.component.html
+17
-0
layout.component.css
...pp/components/shared/template/layout/layout.component.css
+24
-0
No files found.
Clinics.Frontend/src/app/app.module.ts
View file @
258f5445
...
@@ -47,6 +47,9 @@ import { ScrollToTopDirective } from './directives/scroll-to-top.directive';
...
@@ -47,6 +47,9 @@ import { ScrollToTopDirective } from './directives/scroll-to-top.directive';
import
{
DoctorDashboardComponent
}
from
'./components/doctor/doctor-dashboard/doctor-dashboard.component'
;
import
{
DoctorDashboardComponent
}
from
'./components/doctor/doctor-dashboard/doctor-dashboard.component'
;
import
{
DoctorNotificationsService
}
from
'./services/doctorsNotifications/doctor-notifications.service'
;
import
{
DoctorNotificationsService
}
from
'./services/doctorsNotifications/doctor-notifications.service'
;
import
{
DoctorStatusComponent
}
from
'./components/doctor/doctor-status/doctor-status.component'
;
import
{
DoctorStatusComponent
}
from
'./components/doctor/doctor-status/doctor-status.component'
;
import
{
AskForSerialNumberComponent
}
from
'./components/doctor/ask-for-serial-number/ask-for-serial-number.component'
;
import
{
HistoryComponent
}
from
'./components/doctor/history/history.component'
;
import
{
VisitComponent
}
from
'./components/doctor/visit/visit.component'
;
@
NgModule
({
@
NgModule
({
...
@@ -112,6 +115,9 @@ import { DoctorStatusComponent } from './components/doctor/doctor-status/doctor-
...
@@ -112,6 +115,9 @@ import { DoctorStatusComponent } from './components/doctor/doctor-status/doctor-
ScrollToTopDirective
,
ScrollToTopDirective
,
DoctorDashboardComponent
,
DoctorDashboardComponent
,
DoctorStatusComponent
,
DoctorStatusComponent
,
AskForSerialNumberComponent
,
HistoryComponent
,
VisitComponent
,
],
],
// identifies the root component that Angular should
// identifies the root component that Angular should
...
...
Clinics.Frontend/src/app/components/doctor/ask-for-serial-number/ask-for-serial-number.component.css
0 → 100644
View file @
258f5445
Clinics.Frontend/src/app/components/doctor/ask-for-serial-number/ask-for-serial-number.component.html
0 → 100644
View file @
258f5445
<!-- To avoid first field auto focus -->
<div
class=
"form-group"
>
<input
type=
"text"
autofocus=
"autofocus"
style=
"display:none"
/>
</div>
<div
class=
"custom-child"
>
<section
class=
"section"
>
<div
class=
"custom-title mb-3"
>
<h2
*
ngIf=
"type === 'query'"
>
الاستعلام عن موظف
</h2>
<h2
*
ngIf=
"type === 'command'"
>
تسجيل زيارة لموظف
</h2>
</div>
<div
*
ngIf=
"isFailure"
class=
"d-grid mb-3"
>
<button
type=
"button"
class=
"btn btn-danger"
style=
"cursor: auto; font-weight:700;"
>
خطأ: {{errorMessage}}
</button>
</div>
<form
#
form=
"ngForm"
(
submit
)="
onSubmit
()"
autocomplete=
"off"
>
<div
class=
"form-group"
>
<div
class=
"custom-field-layout mb-4"
style=
"width:60%;"
>
<input
type=
"text"
class=
"form-control"
placeholder=
"ادخل الرقم الذاتي"
dir=
"ltr"
[(
ngModel
)]="
serialNumber
"
name=
"serialNumber"
#
serialNumberField=
"ngModel"
required
maxlength=
"50"
pattern=
"[0-9]+"
>
<div
*
ngIf=
"(serialNumberField.touched || serialNumberField.dirty) && serialNumberField.errors"
class=
"mt-2 custom-errors-layout"
>
<span
class=
"text-danger"
>
{{
serialNumberField.errors['required'] ? 'هذا الحقل مطلوب'
: serialNumberField.errors['pattern'] ? 'الرقم الذاتي غير صالح'
: ''
}}
</span>
</div>
</div>
</div>
<div
class=
"container"
>
<div
class=
"custom-ok-button mb-2"
>
<button
class=
"btn btn-outline-primary"
[
disabled
]="!
form
.
dirty
||
form
.
invalid
"
type=
"submit"
>
تأكيد
</button>
</div>
<div
class=
"custom-no-button"
>
<button
type=
"button"
class=
"btn btn-outline-primary"
(
click
)="
parentModal
.
dismiss
()"
>
الغاء
</button>
</div>
</div>
</form>
</section>
</div>
Clinics.Frontend/src/app/components/doctor/ask-for-serial-number/ask-for-serial-number.component.ts
0 → 100644
View file @
258f5445
import
{
Component
,
Input
}
from
'@angular/core'
;
@
Component
({
selector
:
'app-ask-for-serial-number'
,
templateUrl
:
'./ask-for-serial-number.component.html'
,
styleUrl
:
'./ask-for-serial-number.component.css'
})
export
class
AskForSerialNumberComponent
{
constructor
(){}
@
Input
(
"parentModal"
)
parentModal
:
any
;
@
Input
(
"type"
)
type
:
'query'
|
'command'
;
isFailure
:
boolean
=
false
;
errorMessage
:
string
=
'الموظف غير موجود'
;
serialNumber
:
string
;
onSubmit
():
void
{
}
}
Clinics.Frontend/src/app/components/doctor/history/history.component.css
0 → 100644
View file @
258f5445
Clinics.Frontend/src/app/components/doctor/history/history.component.html
0 → 100644
View file @
258f5445
<p>
history works!
</p>
Clinics.Frontend/src/app/components/doctor/history/history.component.ts
0 → 100644
View file @
258f5445
import
{
Component
}
from
'@angular/core'
;
@
Component
({
selector
:
'app-history'
,
templateUrl
:
'./history.component.html'
,
styleUrl
:
'./history.component.css'
})
export
class
HistoryComponent
{
}
Clinics.Frontend/src/app/components/doctor/visit/visit.component.css
0 → 100644
View file @
258f5445
Clinics.Frontend/src/app/components/doctor/visit/visit.component.html
0 → 100644
View file @
258f5445
<p>
visit works!
</p>
Clinics.Frontend/src/app/components/doctor/visit/visit.component.ts
0 → 100644
View file @
258f5445
import
{
Component
}
from
'@angular/core'
;
@
Component
({
selector
:
'app-visit'
,
templateUrl
:
'./visit.component.html'
,
styleUrl
:
'./visit.component.css'
})
export
class
VisitComponent
{
}
Clinics.Frontend/src/app/components/shared/template/header/header.component.html
View file @
258f5445
...
@@ -76,10 +76,15 @@
...
@@ -76,10 +76,15 @@
(
click
)="
showDropdown =
!showDropdown"
>
خيارات
<i
(
click
)="
showDropdown =
!showDropdown"
>
خيارات
<i
class=
"bi bi-chevron-down toggle-dropdown"
></i></button>
class=
"bi bi-chevron-down toggle-dropdown"
></i></button>
<ul
[
ngClass
]="{'
show
'
:
showDropdown
}"
>
<ul
[
ngClass
]="{'
show
'
:
showDropdown
}"
>
<li
(
click
)="
openPopUp
(
doctorAskForSerialNumberQuery
);"
><a>
الاستعلام عن موظف
</a></li>
<li
(
click
)="
onLogout
();"
><a>
تسجيل الخروج
</a></li>
<li
(
click
)="
onLogout
();"
><a>
تسجيل الخروج
</a></li>
</ul>
</ul>
</li>
</li>
<li><a><button
class=
"btn"
[
class
]="{'
btn-outline-primary
'
:
isSelected
('
AddVisit
'),
'
btn-outline-secondary
'
:
!
isSelected
('
AddVisit
')}"
(
click
)="
showDropdown=
false;
selectButton
('
AddVisit
');
openPopUp
(
doctorAskForSerialNumberCommand
);"
>
تسجيل زيارة
</button></a></li>
<li><a
[
routerLink
]="'
doctor
/
waitinglist
'"
appScrollToTop
><button
class=
"btn"
<li><a
[
routerLink
]="'
doctor
/
waitinglist
'"
appScrollToTop
><button
class=
"btn"
[
class
]="{'
btn-outline-primary
'
:
isSelected
('
WaitingList
'),
'
btn-outline-secondary
'
:
!
isSelected
('
WaitingList
')}"
[
class
]="{'
btn-outline-primary
'
:
isSelected
('
WaitingList
'),
'
btn-outline-secondary
'
:
!
isSelected
('
WaitingList
')}"
(
click
)="
showDropdown=
false;
selectButton
('
WaitingList
')"
>
قائمة الانتظار
</button></a></li>
(
click
)="
showDropdown=
false;
selectButton
('
WaitingList
')"
>
قائمة الانتظار
</button></a></li>
...
@@ -145,4 +150,16 @@
...
@@ -145,4 +150,16 @@
</ng-template>
</ng-template>
<!-- #endregion -->
<!-- #endregion -->
<ng-template
#
doctorAskForSerialNumberQuery
let-modal
>
<div
*
ngIf=
"userData?.role === DOCTOR"
class=
"modal-body"
>
<app-ask-for-serial-number
[
type
]="'
query
'"
[
parentModal
]="
modal
"
></app-ask-for-serial-number>
</div>
</ng-template>
<ng-template
#
doctorAskForSerialNumberCommand
let-modal
>
<div
*
ngIf=
"userData?.role === DOCTOR"
class=
"modal-body"
>
<app-ask-for-serial-number
[
type
]="'
command
'"
[
parentModal
]="
modal
"
></app-ask-for-serial-number>
</div>
</ng-template>
</div>
</div>
\ No newline at end of file
Clinics.Frontend/src/app/components/shared/template/layout/layout.component.css
View file @
258f5445
...
@@ -197,4 +197,28 @@ app-footer {
...
@@ -197,4 +197,28 @@ app-footer {
font-weight
:
400
;
font-weight
:
400
;
color
:
var
(
--heading-color
);
color
:
var
(
--heading-color
);
}
}
::ng-deep
.custom-field-layout
{
text-align
:
center
;
margin
:
auto
;
}
::ng-deep
.custom-field-layout
input
{
width
:
100%
;
border
:
1px
solid
var
(
--heading-color
);
color
:
var
(
--heading-color
);
text-align
:
center
;
}
::ng-deep
.custom-field-layout
input
:focus
{
box-shadow
:
0
0
0
0.1em
var
(
--heading-color
);
border-color
:
var
(
--heading-color
);
}
::ng-deep
.custom-errors-layout
span
{
font-weight
:
800
;
}
/* #endregion */
/* #endregion */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment