Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Krishna Vemulavada
/
vera_2.1_app
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a43d48f3
authored
Apr 09, 2018
by
Kunj Gupta
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Added two options - Create and View HR case.
parent
91424b51
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
155 additions
and
8 deletions
app/src/arrow/AndroidManifest.xml
app/src/arrow/java/com/vsoft/servicenow/MenuProvider.java
app/src/arrow/res/drawable/create_hr_case.png
app/src/arrow/res/drawable/view_hr_case.png
app/src/arrow/res/values/strings.xml
app/src/main/java/com/vsoft/servicenow/menu/ChatMenuItemData.java
app/src/main/java/com/vsoft/servicenow/menu/CreateHRCaseMenuItemData.java
app/src/main/java/com/vsoft/servicenow/menu/HomeScreenMenuItemData.java
app/src/main/java/com/vsoft/servicenow/menu/MyIncidentMenuItemData.java
app/src/main/java/com/vsoft/servicenow/menu/MyRequestMenuItemData.java
app/src/main/java/com/vsoft/servicenow/menu/NotificationMenuItemData.java
app/src/main/java/com/vsoft/servicenow/menu/OrderServicesMenuItemData.java
app/src/main/java/com/vsoft/servicenow/menu/ReportIncidentMenuItemData.java
app/src/main/java/com/vsoft/servicenow/menu/ViewHRCaseMenuItemData.java
app/src/main/java/com/vsoft/servicenow/ui/CreateHRCaseScreen.java
app/src/main/java/com/vsoft/servicenow/ui/ViewHRCaseScreen.java
app/src/arrow/AndroidManifest.xml
View file @
a43d48f3
...
@@ -20,6 +20,13 @@
...
@@ -20,6 +20,13 @@
android:name=
"com.vsoft.servicenow.ui.NotificationScreen"
android:name=
"com.vsoft.servicenow.ui.NotificationScreen"
android:screenOrientation=
"portrait"
/>
android:screenOrientation=
"portrait"
/>
<activity
android:name=
"com.vsoft.servicenow.ui.CreateHRCaseScreen"
android:screenOrientation=
"portrait"
/>
<activity
android:name=
"com.vsoft.servicenow.ui.ViewHRCaseScreen"
android:screenOrientation=
"portrait"
/>
<service
android:name=
".service.NotificationInstanceIdService"
<service
android:name=
".service.NotificationInstanceIdService"
android:exported=
"false"
>
android:exported=
"false"
>
<intent-filter>
<intent-filter>
...
...
app/src/arrow/java/com/vsoft/servicenow/MenuProvider.java
View file @
a43d48f3
package
com
.
vsoft
.
servicenow
;
package
com
.
vsoft
.
servicenow
;
import
com.vsoft.servicenow.menu.ChatMenuItemData
;
import
com.vsoft.servicenow.menu.ChatMenuItemData
;
import
com.vsoft.servicenow.menu.CreateHRCaseMenuItemData
;
import
com.vsoft.servicenow.menu.HomeScreenMenuItemData
;
import
com.vsoft.servicenow.menu.HomeScreenMenuItemData
;
import
com.vsoft.servicenow.menu.MyIncidentMenuItemData
;
import
com.vsoft.servicenow.menu.MyIncidentMenuItemData
;
import
com.vsoft.servicenow.menu.MyRequestMenuItemData
;
import
com.vsoft.servicenow.menu.MyRequestMenuItemData
;
import
com.vsoft.servicenow.menu.NotificationMenuItemData
;
import
com.vsoft.servicenow.menu.NotificationMenuItemData
;
import
com.vsoft.servicenow.menu.OrderServicesMenuItemData
;
import
com.vsoft.servicenow.menu.OrderServicesMenuItemData
;
import
com.vsoft.servicenow.menu.ReportIncidentMenuItemData
;
import
com.vsoft.servicenow.menu.ReportIncidentMenuItemData
;
import
com.vsoft.servicenow.menu.ViewHRCaseMenuItemData
;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.List
;
...
@@ -33,6 +35,14 @@ public class MenuProvider {
...
@@ -33,6 +35,14 @@ public class MenuProvider {
.
setTitle
(
R
.
string
.
home_screen_report_incident_title
)
.
setTitle
(
R
.
string
.
home_screen_report_incident_title
)
.
setMenuIconResId
(
R
.
string
.
home_screen_my_request_icon
)
.
setMenuIconResId
(
R
.
string
.
home_screen_my_request_icon
)
.
build
(),
.
build
(),
new
CreateHRCaseMenuItemData
.
Builder
()
.
setTitle
(
R
.
string
.
home_screen_create_hr_case_title
)
.
setMenuIconResId
(
R
.
string
.
home_screen_create_hr_case_icon
)
.
build
(),
new
ViewHRCaseMenuItemData
.
Builder
()
.
setTitle
(
R
.
string
.
home_screen_view_hr_case_title
)
.
setMenuIconResId
(
R
.
string
.
home_screen_view_hr_case_icon
)
.
build
(),
new
ChatMenuItemData
.
Builder
()
new
ChatMenuItemData
.
Builder
()
.
setTitle
(
R
.
string
.
home_screen_chat_title
)
.
setTitle
(
R
.
string
.
home_screen_chat_title
)
.
setMenuIconResId
(
R
.
string
.
home_screen_chat_icon
)
.
setMenuIconResId
(
R
.
string
.
home_screen_chat_icon
)
...
...
app/src/arrow/res/drawable/create_hr_case.png
0 → 100644
View file @
a43d48f3
34.7 KB
app/src/arrow/res/drawable/view_hr_case.png
0 → 100644
View file @
a43d48f3
35 KB
app/src/arrow/res/values/strings.xml
View file @
a43d48f3
...
@@ -15,6 +15,12 @@
...
@@ -15,6 +15,12 @@
<string
name=
"home_screen_my_request_title"
>
My Requests
</string>
<string
name=
"home_screen_my_request_title"
>
My Requests
</string>
<string
name=
"home_screen_my_request_icon"
>
my_requests
</string>
<string
name=
"home_screen_my_request_icon"
>
my_requests
</string>
<string
name=
"home_screen_create_hr_case_title"
>
Create HR Case
</string>
<string
name=
"home_screen_create_hr_case_icon"
>
create_hr_case
</string>
<string
name=
"home_screen_view_hr_case_title"
>
View HR Case
</string>
<string
name=
"home_screen_view_hr_case_icon"
>
view_hr_case
</string>
<string
name=
"home_screen_chat_title"
>
Chatbot
</string>
<string
name=
"home_screen_chat_title"
>
Chatbot
</string>
<string
name=
"home_screen_chat_icon"
>
chatbot
</string>
<string
name=
"home_screen_chat_icon"
>
chatbot
</string>
...
...
app/src/main/java/com/vsoft/servicenow/menu/ChatMenuItemData.java
View file @
a43d48f3
...
@@ -45,7 +45,7 @@ public class ChatMenuItemData extends HomeScreenMenuItemData implements Parcelab
...
@@ -45,7 +45,7 @@ public class ChatMenuItemData extends HomeScreenMenuItemData implements Parcelab
public
Builder
()
{
public
Builder
()
{
item
=
new
ChatMenuItemData
();
item
=
new
ChatMenuItemData
();
set
Fragment
(
ChatActivity
.
class
);
set
Activity
(
ChatActivity
.
class
);
}
}
}
}
}
}
app/src/main/java/com/vsoft/servicenow/menu/CreateHRCaseMenuItemData.java
0 → 100755
View file @
a43d48f3
package
com
.
vsoft
.
servicenow
.
menu
;
import
android.os.Parcel
;
import
android.os.Parcelable
;
import
com.vsoft.servicenow.ui.CreateHRCaseScreen
;
import
com.vsoft.servicenow.ui.ReportIncidentScreen
;
/**
* Created by Kunj on 23/03/18.
*/
public
class
CreateHRCaseMenuItemData
extends
HomeScreenMenuItemData
implements
Parcelable
{
protected
CreateHRCaseMenuItemData
()
{
}
protected
CreateHRCaseMenuItemData
(
Parcel
in
)
{
super
(
in
);
}
public
static
final
Creator
<
CreateHRCaseMenuItemData
>
CREATOR
=
new
Creator
<
CreateHRCaseMenuItemData
>()
{
@Override
public
CreateHRCaseMenuItemData
createFromParcel
(
Parcel
in
)
{
return
new
CreateHRCaseMenuItemData
(
in
);
}
@Override
public
CreateHRCaseMenuItemData
[]
newArray
(
int
size
)
{
return
new
CreateHRCaseMenuItemData
[
size
];
}
};
@Override
public
void
writeToParcel
(
Parcel
dest
,
int
flags
)
{
super
.
writeToParcel
(
dest
,
flags
);
}
@Override
public
int
describeContents
()
{
return
0
;
}
public
static
class
Builder
extends
HomeScreenMenuItemData
.
Builder
<
Builder
>
{
public
Builder
()
{
item
=
new
CreateHRCaseMenuItemData
();
setActivity
(
CreateHRCaseScreen
.
class
);
}
}
}
app/src/main/java/com/vsoft/servicenow/menu/HomeScreenMenuItemData.java
View file @
a43d48f3
...
@@ -75,8 +75,8 @@ public class HomeScreenMenuItemData implements Parcelable {
...
@@ -75,8 +75,8 @@ public class HomeScreenMenuItemData implements Parcelable {
return
(
T
)
this
;
return
(
T
)
this
;
}
}
public
T
set
Fragment
(
Class
fragment
)
{
public
T
set
Activity
(
Class
activity
)
{
item
.
activity
=
fragment
;
item
.
activity
=
activity
;
return
(
T
)
this
;
return
(
T
)
this
;
}
}
...
...
app/src/main/java/com/vsoft/servicenow/menu/MyIncidentMenuItemData.java
View file @
a43d48f3
...
@@ -46,7 +46,7 @@ public class MyIncidentMenuItemData extends HomeScreenMenuItemData implements Pa
...
@@ -46,7 +46,7 @@ public class MyIncidentMenuItemData extends HomeScreenMenuItemData implements Pa
public
Builder
()
{
public
Builder
()
{
item
=
new
MyIncidentMenuItemData
();
item
=
new
MyIncidentMenuItemData
();
set
Fragment
(
MyIncidentScreen
.
class
);
set
Activity
(
MyIncidentScreen
.
class
);
}
}
}
}
}
}
app/src/main/java/com/vsoft/servicenow/menu/MyRequestMenuItemData.java
View file @
a43d48f3
...
@@ -46,7 +46,7 @@ public class MyRequestMenuItemData extends HomeScreenMenuItemData implements Par
...
@@ -46,7 +46,7 @@ public class MyRequestMenuItemData extends HomeScreenMenuItemData implements Par
public
Builder
()
{
public
Builder
()
{
item
=
new
MyRequestMenuItemData
();
item
=
new
MyRequestMenuItemData
();
set
Fragment
(
MyRequestActivity
.
class
);
set
Activity
(
MyRequestActivity
.
class
);
}
}
}
}
}
}
app/src/main/java/com/vsoft/servicenow/menu/NotificationMenuItemData.java
View file @
a43d48f3
...
@@ -45,7 +45,7 @@ public class NotificationMenuItemData extends HomeScreenMenuItemData implements
...
@@ -45,7 +45,7 @@ public class NotificationMenuItemData extends HomeScreenMenuItemData implements
public
Builder
()
{
public
Builder
()
{
item
=
new
NotificationMenuItemData
();
item
=
new
NotificationMenuItemData
();
set
Fragment
(
NotificationScreen
.
class
);
set
Activity
(
NotificationScreen
.
class
);
}
}
}
}
}
}
app/src/main/java/com/vsoft/servicenow/menu/OrderServicesMenuItemData.java
View file @
a43d48f3
...
@@ -46,7 +46,7 @@ public class OrderServicesMenuItemData extends HomeScreenMenuItemData implements
...
@@ -46,7 +46,7 @@ public class OrderServicesMenuItemData extends HomeScreenMenuItemData implements
public
Builder
()
{
public
Builder
()
{
item
=
new
OrderServicesMenuItemData
();
item
=
new
OrderServicesMenuItemData
();
set
Fragment
(
CatalogueScreen
.
class
);
set
Activity
(
CatalogueScreen
.
class
);
}
}
}
}
}
}
app/src/main/java/com/vsoft/servicenow/menu/ReportIncidentMenuItemData.java
View file @
a43d48f3
...
@@ -45,7 +45,7 @@ public class ReportIncidentMenuItemData extends HomeScreenMenuItemData implement
...
@@ -45,7 +45,7 @@ public class ReportIncidentMenuItemData extends HomeScreenMenuItemData implement
public
Builder
()
{
public
Builder
()
{
item
=
new
ReportIncidentMenuItemData
();
item
=
new
ReportIncidentMenuItemData
();
set
Fragment
(
ReportIncidentScreen
.
class
);
set
Activity
(
ReportIncidentScreen
.
class
);
}
}
}
}
}
}
app/src/main/java/com/vsoft/servicenow/menu/ViewHRCaseMenuItemData.java
0 → 100755
View file @
a43d48f3
package
com
.
vsoft
.
servicenow
.
menu
;
import
android.os.Parcel
;
import
android.os.Parcelable
;
import
com.vsoft.servicenow.ui.ReportIncidentScreen
;
import
com.vsoft.servicenow.ui.ViewHRCaseScreen
;
/**
* Created by Kunj on 23/03/18.
*/
public
class
ViewHRCaseMenuItemData
extends
HomeScreenMenuItemData
implements
Parcelable
{
protected
ViewHRCaseMenuItemData
()
{
}
protected
ViewHRCaseMenuItemData
(
Parcel
in
)
{
super
(
in
);
}
public
static
final
Creator
<
ViewHRCaseMenuItemData
>
CREATOR
=
new
Creator
<
ViewHRCaseMenuItemData
>()
{
@Override
public
ViewHRCaseMenuItemData
createFromParcel
(
Parcel
in
)
{
return
new
ViewHRCaseMenuItemData
(
in
);
}
@Override
public
ViewHRCaseMenuItemData
[]
newArray
(
int
size
)
{
return
new
ViewHRCaseMenuItemData
[
size
];
}
};
@Override
public
void
writeToParcel
(
Parcel
dest
,
int
flags
)
{
super
.
writeToParcel
(
dest
,
flags
);
}
@Override
public
int
describeContents
()
{
return
0
;
}
public
static
class
Builder
extends
HomeScreenMenuItemData
.
Builder
<
Builder
>
{
public
Builder
()
{
item
=
new
ViewHRCaseMenuItemData
();
setActivity
(
ViewHRCaseScreen
.
class
);
}
}
}
app/src/main/java/com/vsoft/servicenow/ui/CreateHRCaseScreen.java
0 → 100644
View file @
a43d48f3
package
com
.
vsoft
.
servicenow
.
ui
;
import
android.support.v7.app.AppCompatActivity
;
/**
* Created by chaukadev on 4/9/18.
*/
public
class
CreateHRCaseScreen
extends
AppCompatActivity
{
}
app/src/main/java/com/vsoft/servicenow/ui/ViewHRCaseScreen.java
0 → 100644
View file @
a43d48f3
package
com
.
vsoft
.
servicenow
.
ui
;
import
android.support.v7.app.AppCompatActivity
;
/**
* Created by chaukadev on 4/9/18.
*/
public
class
ViewHRCaseScreen
extends
AppCompatActivity
{
}
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