diff --git a/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/noncrud/GetSubordinates/GetSubordinates.html b/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/noncrud/GetSubordinates/GetSubordinates.html
index e69de29..a1b716d 100644
--- a/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/noncrud/GetSubordinates/GetSubordinates.html
+++ b/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/noncrud/GetSubordinates/GetSubordinates.html
@@ -0,0 +1,26 @@
+
+
+
+
+ Get subordinates
+
+
+
+
+ Employees
+
+
+
+
+ ID
+ Name
+ Actions
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/noncrud/GetSubordinates/script.js b/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/noncrud/GetSubordinates/script.js
new file mode 100644
index 0000000..671e36b
--- /dev/null
+++ b/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/noncrud/GetSubordinates/script.js
@@ -0,0 +1,81 @@
+let employees = [];
+getEmployees();
+
+async function getEmployees()
+{
+ await fetch('https://localhost:5001/api/Employee')
+ .then(x => x.json())
+ .then(y => {
+ employees = y;
+ console.log(employees);
+ display();
+ });
+}
+
+function display()
+{
+ document.getElementById('lines').innerHTML = '';
+
+ employees.forEach(t => {
+ document.getElementById('lines').innerHTML +=
+ ''
+ + t.id +
+ ' '
+ + t.name +
+ ' '
+ + 'Run '
+ + ' ';
+ });
+}
+
+async function runQuery(id)
+{
+ let results = []
+ document.getElementById('resultarea').innerHTML = '';
+
+ try
+ {
+ await fetch('https://localhost:5001/api/GetSubordinates?id=' + id)
+ .then(x => x.json())
+ .then(y => {
+ results = y;
+ console.log(results);
+ });
+
+ document.getElementById('resultarea').innerHTML += 'Query results '
+
+ results.forEach(t => {
+ document.getElementById('resultarea').innerHTML +=
+ '';
+ });
+ }
+ catch (ex)
+ {
+ console.log(ex);
+ document.getElementById('resultarea').innerHTML += 'No results ';
+ }
+}
\ No newline at end of file
diff --git a/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/noncrud/WhoIsResponsibleForService/WhoIsResponsibleForService.html b/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/noncrud/WhoIsResponsibleForService/WhoIsResponsibleForService.html
index e69de29..23cb47f 100644
--- a/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/noncrud/WhoIsResponsibleForService/WhoIsResponsibleForService.html
+++ b/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/noncrud/WhoIsResponsibleForService/WhoIsResponsibleForService.html
@@ -0,0 +1,26 @@
+
+
+
+
+ Get leader responsible for service
+
+
+
+
+ Services
+
+
+
+
+ ID
+ Name
+ Actions
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/noncrud/WhoIsResponsibleForService/script.js b/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/noncrud/WhoIsResponsibleForService/script.js
new file mode 100644
index 0000000..1eb54ae
--- /dev/null
+++ b/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/noncrud/WhoIsResponsibleForService/script.js
@@ -0,0 +1,79 @@
+let services = [];
+getServices();
+
+async function getServices()
+{
+ await fetch('https://localhost:5001/api/Service')
+ .then(x => x.json())
+ .then(y => {
+ services = y;
+ console.log(services);
+ display();
+ });
+}
+
+function display()
+{
+ document.getElementById('lines').innerHTML = '';
+
+ services.forEach(t => {
+ document.getElementById('lines').innerHTML +=
+ ''
+ + t.id +
+ ' '
+ + t.name +
+ ' '
+ + 'Run '
+ + ' ';
+ });
+}
+
+async function runQuery(id)
+{
+ let result = null;
+ document.getElementById('resultarea').innerHTML = '';
+
+ try
+ {
+ await fetch('https://localhost:5001/api/WhoIsResponsibleForService?id=' + id)
+ .then(x => x.json())
+ .then(y => {
+ result = y;
+ console.log(result);
+ });
+
+ document.getElementById('resultarea').innerHTML += 'Query result '
+
+ document.getElementById('resultarea').innerHTML +=
+ '';
+ }
+ catch (ex)
+ {
+ console.log(ex);
+ document.getElementById('resultarea').innerHTML += 'No result ';
+ }
+}
\ No newline at end of file
diff --git a/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/noncrud/WhoMaintainsService/WhoMaintainsService.html b/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/noncrud/WhoMaintainsService/WhoMaintainsService.html
index e69de29..795199d 100644
--- a/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/noncrud/WhoMaintainsService/WhoMaintainsService.html
+++ b/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/noncrud/WhoMaintainsService/WhoMaintainsService.html
@@ -0,0 +1,26 @@
+
+
+
+
+ Who maintains a service
+
+
+
+
+ Services
+
+
+
+
+ ID
+ Name
+ Actions
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/noncrud/WhoMaintainsService/script.js b/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/noncrud/WhoMaintainsService/script.js
new file mode 100644
index 0000000..221d9e8
--- /dev/null
+++ b/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/noncrud/WhoMaintainsService/script.js
@@ -0,0 +1,81 @@
+let services = [];
+getServices();
+
+async function getServices()
+{
+ await fetch('https://localhost:5001/api/Service')
+ .then(x => x.json())
+ .then(y => {
+ services = y;
+ console.log(services);
+ display();
+ });
+}
+
+function display()
+{
+ document.getElementById('lines').innerHTML = '';
+
+ services.forEach(t => {
+ document.getElementById('lines').innerHTML +=
+ ''
+ + t.id +
+ ' '
+ + t.name +
+ ' '
+ + 'Run '
+ + ' ';
+ });
+}
+
+async function runQuery(id)
+{
+ let results = []
+ document.getElementById('resultarea').innerHTML = '';
+
+ try
+ {
+ await fetch('https://localhost:5001/api/WhoMaintainsService?id=' + id)
+ .then(x => x.json())
+ .then(y => {
+ results = y;
+ console.log(results);
+ });
+
+ document.getElementById('resultarea').innerHTML += 'Query results '
+
+ results.forEach(t => {
+ document.getElementById('resultarea').innerHTML +=
+ '';
+ });
+ }
+ catch (ex)
+ {
+ console.log(ex);
+ document.getElementById('resultarea').innerHTML += 'No results ';
+ }
+}
\ No newline at end of file
diff --git a/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/noncrud/WhoUsesService/WhoUsesService.html b/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/noncrud/WhoUsesService/WhoUsesService.html
index 40e4322..b43a6ee 100644
--- a/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/noncrud/WhoUsesService/WhoUsesService.html
+++ b/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/noncrud/WhoUsesService/WhoUsesService.html
@@ -2,16 +2,13 @@
- services
+ Who uses service
Services
- Want to add a new line?
-
-
@@ -20,8 +17,10 @@
Actions
-
+
+
+
\ No newline at end of file
diff --git a/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/noncrud/WhoUsesService/script.js b/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/noncrud/WhoUsesService/script.js
index 5478daa..6d8eec8 100644
--- a/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/noncrud/WhoUsesService/script.js
+++ b/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/noncrud/WhoUsesService/script.js
@@ -14,10 +14,10 @@ async function getServices()
function display()
{
- document.getElementById('resultarea').innerHTML = '';
+ document.getElementById('lines').innerHTML = '';
services.forEach(t => {
- document.getElementById('resultarea').innerHTML +=
+ document.getElementById('lines').innerHTML +=
''
+ t.id +
' '
@@ -31,24 +31,48 @@ function display()
async function runQuery(id)
{
let results = []
-
- await fetch('https://localhost:5001/api/WhoUsesService?id=' + id)
- .then(x => x.json())
- .then(y => {
- results = y;
- console.log(results);
- });
-
document.getElementById('resultarea').innerHTML = '';
- results.forEach(t => {
- document.getElementById('resultarea').innerHTML +=
- 'Query results ' +
- '' +
- '' +
- 'ID ' +
- 'Client ' +
- ' ';
- });
-
+ try
+ {
+ await fetch('https://localhost:5001/api/WhoUsesService?id=' + id)
+ .then(x => x.json())
+ .then(y => {
+ results = y;
+ console.log(results);
+ });
+
+ document.getElementById('resultarea').innerHTML += 'Query results ';
+
+ results.forEach(t => {
+ document.getElementById('resultarea').innerHTML +=
+ '';
+ });
+ }
+ catch (error)
+ {
+ console.log(error);
+ document.getElementById('resultarea').innerHTML += 'No results ';
+ }
}
\ No newline at end of file
diff --git a/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/noncrud/WhoWorksInMaintainerTeam/WhoWorksInMaintainerTeam.html b/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/noncrud/WhoWorksInMaintainerTeam/WhoWorksInMaintainerTeam.html
index e69de29..77ec5ae 100644
--- a/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/noncrud/WhoWorksInMaintainerTeam/WhoWorksInMaintainerTeam.html
+++ b/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/noncrud/WhoWorksInMaintainerTeam/WhoWorksInMaintainerTeam.html
@@ -0,0 +1,26 @@
+
+
+
+
+ Who works in a team
+
+
+
+
+ Teams
+
+
+
+
+ ID
+ Name
+ Actions
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/noncrud/WhoWorksInMaintainerTeam/script.js b/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/noncrud/WhoWorksInMaintainerTeam/script.js
new file mode 100644
index 0000000..0c8d0ae
--- /dev/null
+++ b/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/noncrud/WhoWorksInMaintainerTeam/script.js
@@ -0,0 +1,81 @@
+let teams = [];
+getTeams();
+
+async function getTeams()
+{
+ await fetch('https://localhost:5001/api/MaintainerTeam')
+ .then(x => x.json())
+ .then(y => {
+ teams = y;
+ console.log(teams);
+ display();
+ });
+}
+
+function display()
+{
+ document.getElementById('lines').innerHTML = '';
+
+ teams.forEach(t => {
+ document.getElementById('lines').innerHTML +=
+ ''
+ + t.id +
+ ' '
+ + t.name +
+ ' '
+ + 'Run '
+ + ' ';
+ });
+}
+
+async function runQuery(id)
+{
+ let results = []
+ document.getElementById('resultarea').innerHTML = '';
+
+ try
+ {
+ await fetch('https://localhost:5001/api/WhoWorksInMaintainerTeam?id=' + id)
+ .then(x => x.json())
+ .then(y => {
+ results = y;
+ console.log(results);
+ });
+
+ document.getElementById('resultarea').innerHTML += 'Query results '
+
+ results.forEach(t => {
+ document.getElementById('resultarea').innerHTML +=
+ '';
+ });
+ }
+ catch (ex)
+ {
+ console.log(ex);
+ document.getElementById('resultarea').innerHTML += 'No results ';
+ }
+}
\ No newline at end of file
diff --git a/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/noncrud/index.html b/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/noncrud/index.html
index f26719e..cdff854 100644
--- a/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/noncrud/index.html
+++ b/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/noncrud/index.html
@@ -2,7 +2,7 @@
- Company Manager
+ Company Database Manager
diff --git a/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/services/services.html b/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/services/services.html
index d616324..dd51bfd 100644
--- a/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/services/services.html
+++ b/WD7UVN_SzTGUI_2023242.Client.JS/wwwroot/services/services.html
@@ -2,7 +2,7 @@
- services
+ Services