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
83061ce1
Commit
83061ce1
authored
Aug 26, 2024
by
Almouhannad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(F) Add medicines
parent
d628d080
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
74 additions
and
1 deletion
+74
-1
app.module.ts
Clinics.Frontend/src/app/app.module.ts
+2
-0
ask-for-serial-number.component.ts
.../ask-for-serial-number/ask-for-serial-number.component.ts
+8
-1
medicines.component.css
...c/app/components/doctor/medicines/medicines.component.css
+14
-0
medicines.component.html
.../app/components/doctor/medicines/medicines.component.html
+40
-0
medicines.component.ts
...rc/app/components/doctor/medicines/medicines.component.ts
+10
-0
No files found.
Clinics.Frontend/src/app/app.module.ts
View file @
83061ce1
...
...
@@ -51,6 +51,7 @@ import { AskForSerialNumberComponent } from './components/doctor/ask-for-serial-
import
{
HistoryComponent
}
from
'./components/doctor/history/history.component'
;
import
{
VisitComponent
}
from
'./components/doctor/visit/visit.component'
;
import
{
CreateVisitComponent
}
from
'./components/doctor/create-visit/create-visit.component'
;
import
{
MedicinesComponent
}
from
'./components/doctor/medicines/medicines.component'
;
@
NgModule
({
...
...
@@ -120,6 +121,7 @@ import { CreateVisitComponent } from './components/doctor/create-visit/create-vi
HistoryComponent
,
VisitComponent
,
CreateVisitComponent
,
MedicinesComponent
,
],
// identifies the root component that Angular should
...
...
Clinics.Frontend/src/app/components/doctor/ask-for-serial-number/ask-for-serial-number.component.ts
View file @
83061ce1
import
{
Component
,
Input
}
from
'@angular/core'
;
import
{
Component
,
Input
,
ViewChild
}
from
'@angular/core'
;
import
{
EmployeesDataService
}
from
'../../../services/employees/employees-data.service'
;
import
{
Router
}
from
'@angular/router'
;
import
{
NgForm
}
from
'@angular/forms'
;
@
Component
({
selector
:
'app-ask-for-serial-number'
,
...
...
@@ -16,18 +17,24 @@ export class AskForSerialNumberComponent {
@
Input
(
"parentModal"
)
parentModal
:
any
;
@
Input
(
"type"
)
type
:
'query'
|
'command'
;
@
ViewChild
(
"form"
)
form
:
NgForm
;
isFailure
:
boolean
=
false
;
errorMessage
:
string
=
'الموظف غير موجود'
;
serialNumber
:
string
;
onSubmit
():
void
{
this
.
isFailure
=
false
;
this
.
errorMessage
=
''
;
var
id
:
number
;
this
.
employeeDataService
.
getBySerialNumber
(
this
.
serialNumber
)
.
subscribe
(
result
=>
{
if
(
result
.
status
===
false
)
{
this
.
isFailure
=
true
;
this
.
errorMessage
=
result
.
errorMessage
!
;
this
.
form
.
form
.
markAsPristine
();
}
else
{
id
=
result
.
employeeData
!
.
id
;
...
...
Clinics.Frontend/src/app/components/doctor/medicines/medicines.component.css
0 → 100644
View file @
83061ce1
.table
{
--mdb-table-bg
:
var
(
--heading-color
);
--mdb-table-accent-bg
:
var
(
--accent-color
);
font-weight
:
800
;
}
.table
thead
th
{
background-color
:
var
(
--heading-color
);
color
:
#fff
;
}
.table
tbody
tr
td
,
.table
tbody
tr
th
{
color
:
var
(
--heading-color
);
}
\ No newline at end of file
Clinics.Frontend/src/app/components/doctor/medicines/medicines.component.html
0 → 100644
View file @
83061ce1
<div
class=
"custom-child"
dir=
"rtl"
>
<div
class=
"container text-center"
>
<table
class=
"table"
>
<thead>
<tr>
<th
scope=
"col"
>
#
</th>
<th
scope=
"col"
>
اسم الدواء
</th>
<th
scope=
"col"
>
سعة العلبة
</th>
<th
scope=
"col"
>
العيار
</th>
<th
scope=
"col"
>
الكمية
</th>
</tr>
</thead>
<tbody>
<tr>
<th
scope=
"row"
>
1
</th>
<td>
أسبيرين
</td>
<td>
100 ملج
</td>
<td>
مرتين في اليوم
</td>
<td>
30
</td>
</tr>
<tr>
<th
scope=
"row"
>
2
</th>
<td>
باراسيتامول
</td>
<td>
500 ملج
</td>
<td>
مرة واحدة في اليوم
</td>
<td>
20
</td>
</tr>
<tr>
<th
scope=
"row"
>
3
</th>
<td>
فيتامين سي
</td>
<td>
200 ملج
</td>
<td>
ثلاث مرات في اليوم
</td>
<td>
40
</td>
</tr>
</tbody>
</table>
</div>
</div>
\ No newline at end of file
Clinics.Frontend/src/app/components/doctor/medicines/medicines.component.ts
0 → 100644
View file @
83061ce1
import
{
Component
}
from
'@angular/core'
;
@
Component
({
selector
:
'app-medicines'
,
templateUrl
:
'./medicines.component.html'
,
styleUrl
:
'./medicines.component.css'
})
export
class
MedicinesComponent
{
}
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