Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
medapp_eksad
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
qorri_di
medapp_eksad
Commits
44bae067
Commit
44bae067
authored
Sep 26, 2022
by
Tohap Maruli Pasaribu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update data on Action="Edit" in Data User
parent
752af512
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
600 additions
and
24 deletions
+600
-24
userControl_api.dart
lib/api/userControl_api.dart
+23
-0
admin_userControl.dart
lib/dashboard/admin/admin_userControl.dart
+577
-24
No files found.
lib/api/userControl_api.dart
View file @
44bae067
...
@@ -11,6 +11,29 @@ Future<List<dynamic>> getUserControl() async {
...
@@ -11,6 +11,29 @@ Future<List<dynamic>> getUserControl() async {
return
jsonDecode
(
response
.
body
)[
'data'
];
return
jsonDecode
(
response
.
body
)[
'data'
];
}
}
Future
<
bool
>
editUserControl
(
idUser
,
namaRs
,
noRs
,
alamatRs
,
namaPic
,
noPic
,
emailPic
,
password
,
statusUser
)
async
{
final
response
=
await
http
.
post
(
Uri
.
parse
(
'
$cmd
/user/signup'
),
body:
jsonEncode
({
"idUser"
:
idUser
,
"namaRs"
:
namaRs
,
"noRs"
:
noRs
,
"alamatRs"
:
alamatRs
,
"namaPic"
:
namaPic
,
"noPic"
:
noPic
,
"emailPic"
:
emailPic
,
"password"
:
password
,
"statusUser"
:
statusUser
}),
headers:
{
'Content-type'
:
'application/json; charset=UTF-8'
});
if
(
response
.
statusCode
==
200
)
{
return
true
;
}
else
{
return
false
;
}
}
Future
<
bool
>
deleteUserControl
(
idUser
)
async
{
Future
<
bool
>
deleteUserControl
(
idUser
)
async
{
final
response
=
await
http
.
post
(
Uri
.
parse
(
'
$cmd
/user/updateUser'
),
final
response
=
await
http
.
post
(
Uri
.
parse
(
'
$cmd
/user/updateUser'
),
body:
jsonEncode
({
"idUser"
:
idUser
}),
body:
jsonEncode
({
"idUser"
:
idUser
}),
...
...
lib/dashboard/admin/admin_userControl.dart
View file @
44bae067
This diff is collapsed.
Click to expand it.
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