Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Ad1Appraisal-Mobile
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
Dida Adams Arizona
Ad1Appraisal-Mobile
Commits
628dde04
Commit
628dde04
authored
Mar 09, 2020
by
Deni Rinaldi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
backhndlr
parent
a314c2c9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
95 additions
and
47 deletions
+95
-47
appraisal.js
app/container/home/appraisal/appraisal.js
+4
-0
sampleMenuAppraisal.js
app/container/home/appraisal/sampleMenuAppraisal.js
+15
-2
approval.js
app/container/home/approval/approval.js
+4
-0
sampleMenuPenerimaan3.js
app/container/home/penerimaan/sampleMenuPenerimaan3.js
+72
-45
No files found.
app/container/home/appraisal/appraisal.js
View file @
628dde04
...
...
@@ -4,6 +4,7 @@ import { Container } from 'native-base'
import
api
from
'../../../service/api'
import
SvgAnimatedLinearGradient
from
'react-native-svg-animated-linear-gradient'
import
Svg
,
{
Circle
,
Rect
}
from
'react-native-svg'
import
{
NavigationEvents
}
from
'react-navigation'
import
Reactron
from
'reactotron-react-native'
import
Next
from
'react-native-vector-icons/MaterialIcons'
...
...
@@ -48,6 +49,9 @@ export default class Appraisal extends Component {
render
()
{
return
(
<
Container
style
=
{{
flex
:
1
}}
>
<
NavigationEvents
onDidFocus
=
{()
=>
this
.
getListAppraisal
()}
/
>
<
ScrollView
style
=
{{
paddingHorizontal
:
20
,
backgroundColor
:
'#F5F5F5'
,
paddingTop
:
10
}}
showsVerticalScrollIndicator
=
{
false
}
>
{
this
.
state
.
listData
.
map
((
item
,
index
)
=>
{
return
(
...
...
app/container/home/appraisal/sampleMenuAppraisal.js
View file @
628dde04
import
React
,
{
Component
}
from
'react'
import
{
Text
,
View
,
TextInput
,
ScrollView
,
StyleSheet
,
TouchableOpacity
}
from
'react-native'
import
{
Text
,
View
,
TextInput
,
ScrollView
,
StyleSheet
,
TouchableOpacity
,
BackHandler
}
from
'react-native'
import
{
Collapse
,
CollapseHeader
,
CollapseBody
}
from
"accordion-collapse-react-native"
;
import
{
Thumbnail
,
List
,
ListItem
,
Separator
,
Container
}
from
'native-base'
;
import
M
from
'moment'
...
...
@@ -37,7 +37,20 @@ export default class sampleMenuAppraisal extends Component {
}
componentDidMount
()
{
// alert(JSON.stringify(this.state.data))
BackHandler
.
addEventListener
(
'hardwareBackPress'
,
this
.
_onBackPressed
)
}
componentWillUnmount
()
{
BackHandler
.
removeEventListener
(
'hardwareBackPress'
,
this
.
_onBackPressed
)
}
_onBackPressed
=
()
=>
{
api
.
create
().
postDraftAppraisal
({
contract_id
:
this
.
state
.
data
.
contract_id
}).
then
((
response
)
=>
{
this
.
props
.
navigation
.
goBack
()
return
true
})
}
handlePenerimaanDate
(
date
)
{
...
...
app/container/home/approval/approval.js
View file @
628dde04
...
...
@@ -3,6 +3,7 @@ import { Text, View, ScrollView, TouchableOpacity } from 'react-native'
import
{
Container
}
from
'native-base'
import
api
from
'../../../service/api'
import
SvgAnimatedLinearGradient
from
'react-native-svg-animated-linear-gradient'
import
{
NavigationEvents
}
from
'react-navigation'
import
Svg
,
{
Circle
,
Rect
}
from
'react-native-svg'
import
Reactron
from
'reactotron-react-native'
import
Next
from
'react-native-vector-icons/MaterialIcons'
...
...
@@ -48,6 +49,9 @@ export default class Approval extends Component {
render
()
{
return
(
<
Container
style
=
{{
flex
:
1
}}
>
<
NavigationEvents
onDidFocus
=
{()
=>
this
.
getListAppraisal
()}
/
>
<
ScrollView
style
=
{{
paddingHorizontal
:
20
,
backgroundColor
:
'#F5F5F5'
,
paddingTop
:
10
}}
showsVerticalScrollIndicator
=
{
false
}
>
{
this
.
state
.
listData
.
map
((
item
,
index
)
=>
{
return
(
...
...
app/container/home/penerimaan/sampleMenuPenerimaan3.js
View file @
628dde04
...
...
@@ -151,7 +151,7 @@ export default class sampleMenuPenerimaan3 extends Component {
reactotron
.
log
(
Response
)
this
.
props
.
navigation
.
navigate
(
'Penerimaan'
)
})
}
}
}
}
...
...
@@ -375,51 +375,78 @@ export default class sampleMenuPenerimaan3 extends Component {
<
/View
>
<
/View
>
<
/ScrollView
>
{
this
.
state
.
data
==
""
?
<
View
style
=
{{
width
:
'100%'
,
justifyContent
:
'center'
,
marginTop
:
20
,
alignSelf
:
'center'
,
alignContent
:
'flex-end'
,
alignItems
:
'center'
}}
>
<
AwesomeButton
backgroundColor
=
{
Colors
.
yellowBasic
}
backgroundShadow
=
{
'#DBDBDB'
}
backgroundPlaceholder
=
{
null
}
backgroundDarker
=
{
'#FFED75'
}
backgroundProgress
=
{
null
}
width
=
{
120
}
height
=
{
45
}
raiseLevel
=
{
5
}
borderRadius
=
{
10
}
progressLoadingTime
=
{
1000
}
progress
=
{
!
this
.
state
.
progress
}
onPress
=
{
next
=>
{
setTimeout
(()
=>
{
this
.
handlePenerimaan
()
next
()
},
300
);
}}
>
<
Text
style
=
{{
color
:
'black'
,
fontWeight
:
'700'
}}
>
Terima
<
/Text
>
<
/AwesomeButton
>
<
/View
>
:
<
View
style
=
{{
width
:
'100%'
,
justifyContent
:
'space-evenly'
,
marginTop
:
20
,
alignSelf
:
'center'
,
alignContent
:
'flex-end'
,
alignItems
:
'center'
,
flexDirection
:
'row'
}}
>
<
AwesomeButton
backgroundColor
=
{
Colors
.
yellowBasic
}
backgroundShadow
=
{
'#DBDBDB'
}
backgroundPlaceholder
=
{
null
}
backgroundDarker
=
{
'#FFED75'
}
backgroundProgress
=
{
null
}
width
=
{
120
}
height
=
{
45
}
raiseLevel
=
{
5
}
borderRadius
=
{
10
}
progressLoadingTime
=
{
1000
}
progress
=
{
!
this
.
state
.
progress
}
onPress
=
{
next
=>
{
setTimeout
(()
=>
{
this
.
handlePenerimaan
(
'batal'
)
next
()
},
300
);
}}
>
<
Text
style
=
{{
color
:
'black'
,
fontWeight
:
'700'
}}
>
Batal
<
/Text
>
<
/AwesomeButton
>
<
AwesomeButton
backgroundColor
=
{
Colors
.
yellowBasic
}
backgroundShadow
=
{
'#DBDBDB'
}
backgroundPlaceholder
=
{
null
}
backgroundDarker
=
{
'#FFED75'
}
backgroundProgress
=
{
null
}
width
=
{
120
}
height
=
{
45
}
raiseLevel
=
{
5
}
borderRadius
=
{
10
}
progressLoadingTime
=
{
1000
}
progress
=
{
!
this
.
state
.
progress
}
onPress
=
{
next
=>
{
setTimeout
(()
=>
{
this
.
handlePenerimaan
()
next
()
},
300
);
}}
>
<
Text
style
=
{{
color
:
'black'
,
fontWeight
:
'700'
}}
>
Terima
<
/Text
>
<
/AwesomeButton
>
<
/View
>
}
<
View
style
=
{{
width
:
'100%'
,
justifyContent
:
'space-evenly'
,
marginTop
:
20
,
alignSelf
:
'center'
,
alignContent
:
'flex-end'
,
alignItems
:
'center'
,
flexDirection
:
'row'
}}
>
<
AwesomeButton
backgroundColor
=
{
Colors
.
yellowBasic
}
backgroundShadow
=
{
'#DBDBDB'
}
backgroundPlaceholder
=
{
null
}
backgroundDarker
=
{
'#FFED75'
}
backgroundProgress
=
{
null
}
width
=
{
120
}
height
=
{
45
}
raiseLevel
=
{
5
}
borderRadius
=
{
10
}
progressLoadingTime
=
{
1000
}
progress
=
{
!
this
.
state
.
progress
}
onPress
=
{
next
=>
{
setTimeout
(()
=>
{
this
.
handlePenerimaan
(
'batal'
)
next
()
},
300
);
}}
>
<
Text
style
=
{{
color
:
'black'
,
fontWeight
:
'700'
}}
>
Batal
<
/Text
>
<
/AwesomeButton
>
<
AwesomeButton
backgroundColor
=
{
Colors
.
yellowBasic
}
backgroundShadow
=
{
'#DBDBDB'
}
backgroundPlaceholder
=
{
null
}
backgroundDarker
=
{
'#FFED75'
}
backgroundProgress
=
{
null
}
width
=
{
120
}
height
=
{
45
}
raiseLevel
=
{
5
}
borderRadius
=
{
10
}
progressLoadingTime
=
{
1000
}
progress
=
{
!
this
.
state
.
progress
}
onPress
=
{
next
=>
{
setTimeout
(()
=>
{
this
.
handlePenerimaan
()
next
()
},
300
);
}}
>
<
Text
style
=
{{
color
:
'black'
,
fontWeight
:
'700'
}}
>
Terima
<
/Text
>
<
/AwesomeButton
>
<
/View
>
<
/Container
>
)
}
...
...
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