Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
StockTransfer
Overview
Overview
Details
Activity
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
Ramesh Babu Puvvadi
StockTransfer
Commits
e454403f
Commit
e454403f
authored
Oct 10, 2023
by
Ramesh Babu Puvvadi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added few changes
parent
19cfbbb2
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
25 deletions
+0
-25
misc.xml
.idea/misc.xml
+0
-1
ApiService.java
app/src/main/java/w/soulofpluto/posstock/ApiService.java
+0
-9
MenuAdapter.java
app/src/main/java/w/soulofpluto/posstock/MenuAdapter.java
+0
-11
strings.xml
app/src/main/res/values/strings.xml
+0
-4
No files found.
.idea/misc.xml
View file @
e454403f
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<project
version=
"4"
>
<component
name=
"CMakeSettings"
>
<component
name=
"CMakeSettings"
>
<configurations>
<configurations>
...
...
app/src/main/java/w/soulofpluto/posstock/ApiService.java
View file @
e454403f
...
@@ -16,15 +16,6 @@ import retrofit2.http.Path;
...
@@ -16,15 +16,6 @@ import retrofit2.http.Path;
*/
*/
public
interface
ApiService
{
public
interface
ApiService
{
/*String BASE_URL = "https://aeebe1.emporter.eu/pos_actions/";
String Token = "41f34d7009db337f6213be52f7151108";
String StoreId = "980";
@Headers({"Pos-Access-Token:" + Token,"Pos-User-Access-Store-Id:"+StoreId, "Accept: application/json","Content-Type:multipart/form-data"})
@Multipart
@POST("uploadBarcodeImages")
Call<ResponseBody> uploadMultiple(@Part("Pos-Access-Token") RequestBody token,
@Part("Pos-User-Access-Store-Id") RequestBody storeId, @Part("barcode") RequestBody barcode, @Part List<MultipartBody.Part> files);*/
@Headers
({
"Content-type: application/json"
})
@Headers
({
"Content-type: application/json"
})
@POST
(
"/login/doLogin"
)
@POST
(
"/login/doLogin"
)
Call
<
String
>
Login
(
@Body
RequestBody
body
);
Call
<
String
>
Login
(
@Body
RequestBody
body
);
...
...
app/src/main/java/w/soulofpluto/posstock/MenuAdapter.java
View file @
e454403f
...
@@ -19,12 +19,10 @@ import java.util.ArrayList;
...
@@ -19,12 +19,10 @@ import java.util.ArrayList;
public
class
MenuAdapter
extends
RecyclerView
.
Adapter
<
MenuAdapter
.
ViewHolder
>
{
public
class
MenuAdapter
extends
RecyclerView
.
Adapter
<
MenuAdapter
.
ViewHolder
>
{
ArrayList
<
String
>
arrayList
;
ArrayList
<
String
>
arrayList
;
Context
context
;
Context
context
;
public
MenuAdapter
(
Context
context
,
ArrayList
<
String
>
arrayList
){
public
MenuAdapter
(
Context
context
,
ArrayList
<
String
>
arrayList
){
this
.
context
=
context
;
this
.
context
=
context
;
this
.
arrayList
=
arrayList
;
this
.
arrayList
=
arrayList
;
}
}
@NonNull
@NonNull
@Override
@Override
public
MenuAdapter
.
ViewHolder
onCreateViewHolder
(
@NonNull
ViewGroup
parent
,
int
viewType
){
public
MenuAdapter
.
ViewHolder
onCreateViewHolder
(
@NonNull
ViewGroup
parent
,
int
viewType
){
...
@@ -33,7 +31,6 @@ public class MenuAdapter extends RecyclerView.Adapter<MenuAdapter.ViewHolder> {
...
@@ -33,7 +31,6 @@ public class MenuAdapter extends RecyclerView.Adapter<MenuAdapter.ViewHolder> {
MenuAdapter
.
ViewHolder
viewHolder
=
new
MenuAdapter
.
ViewHolder
(
listItem
);
MenuAdapter
.
ViewHolder
viewHolder
=
new
MenuAdapter
.
ViewHolder
(
listItem
);
return
viewHolder
;
return
viewHolder
;
}
}
@Override
@Override
public
void
onBindViewHolder
(
@NonNull
MenuAdapter
.
ViewHolder
holder
,
final
int
position
){
public
void
onBindViewHolder
(
@NonNull
MenuAdapter
.
ViewHolder
holder
,
final
int
position
){
final
String
data
=
arrayList
.
get
(
position
);
final
String
data
=
arrayList
.
get
(
position
);
...
@@ -55,36 +52,28 @@ public class MenuAdapter extends RecyclerView.Adapter<MenuAdapter.ViewHolder> {
...
@@ -55,36 +52,28 @@ public class MenuAdapter extends RecyclerView.Adapter<MenuAdapter.ViewHolder> {
if
(
data
.
equalsIgnoreCase
(
"Stock Audit"
))
{
if
(
data
.
equalsIgnoreCase
(
"Stock Audit"
))
{
/*Intent intent = new Intent(context,DashBoardActivity.class);
/*Intent intent = new Intent(context,DashBoardActivity.class);
context.startActivity(intent);*/
context.startActivity(intent);*/
return
;
}
else
if
(
data
.
equalsIgnoreCase
(
"Create Delivery Slip"
))
{
}
else
if
(
data
.
equalsIgnoreCase
(
"Create Delivery Slip"
))
{
/* Intent intent = new Intent(context, CreateDeliverySlip.class);
/* Intent intent = new Intent(context, CreateDeliverySlip.class);
context.startActivity(intent);*/
context.startActivity(intent);*/
return
;
}
else
if
(
data
.
equalsIgnoreCase
(
"Create Sale Bill"
))
{
}
else
if
(
data
.
equalsIgnoreCase
(
"Create Sale Bill"
))
{
/*Intent intent = new Intent(context, CreateSaleBill.class);
/*Intent intent = new Intent(context, CreateSaleBill.class);
context.startActivity(intent);*/
context.startActivity(intent);*/
return
;
}
else
if
(
data
.
equalsIgnoreCase
(
"Stock OutWord"
))
{
}
else
if
(
data
.
equalsIgnoreCase
(
"Stock OutWord"
))
{
Intent
intent
=
new
Intent
(
context
,
StockOutWordActivity
.
class
);
Intent
intent
=
new
Intent
(
context
,
StockOutWordActivity
.
class
);
context
.
startActivity
(
intent
);
context
.
startActivity
(
intent
);
return
;
}
else
if
(
data
.
equalsIgnoreCase
(
"Stock Transfer"
))
{
}
else
if
(
data
.
equalsIgnoreCase
(
"Stock Transfer"
))
{
Intent
intent
=
new
Intent
(
context
,
StockOutWordActivity
.
class
);
Intent
intent
=
new
Intent
(
context
,
StockOutWordActivity
.
class
);
context
.
startActivity
(
intent
);
context
.
startActivity
(
intent
);
return
;
}
else
{
}
else
{
Intent
intent
=
new
Intent
(
context
,
StockTransferActivity
.
class
);
Intent
intent
=
new
Intent
(
context
,
StockTransferActivity
.
class
);
context
.
startActivity
(
intent
);
context
.
startActivity
(
intent
);
return
;
}
}
});
});
}
}
@Override
@Override
public
int
getItemCount
()
{
public
int
getItemCount
()
{
return
arrayList
.
size
();
return
arrayList
.
size
();
}
}
public
class
ViewHolder
extends
RecyclerView
.
ViewHolder
{
public
class
ViewHolder
extends
RecyclerView
.
ViewHolder
{
public
TextView
menu_name
;
public
TextView
menu_name
;
public
ImageView
menu_image
;
public
ImageView
menu_image
;
...
...
app/src/main/res/values/strings.xml
View file @
e454403f
...
@@ -42,8 +42,6 @@
...
@@ -42,8 +42,6 @@
<string
name=
"qty"
>
Qty
</string>
<string
name=
"qty"
>
Qty
</string>
<string
name=
"scanningcomplete"
>
Scanning complete
</string>
<string
name=
"scanningcomplete"
>
Scanning complete
</string>
<string
name=
"rack"
>
Rack No
</string>
<string
name=
"rack"
>
Rack No
</string>
<string
name=
"auditstatus"
>
audit_status
</string>
<string
name=
"auditstatus"
>
audit_status
</string>
<string
name=
"fromdate"
>
created_from_date
</string>
<string
name=
"fromdate"
>
created_from_date
</string>
<string
name=
"todate"
>
created_to_date
</string>
<string
name=
"todate"
>
created_to_date
</string>
...
@@ -59,8 +57,6 @@
...
@@ -59,8 +57,6 @@
<string
name=
"stock_point"
>
stock_point_id
</string>
<string
name=
"stock_point"
>
stock_point_id
</string>
<string
name=
"key"
>
key
</string>
<string
name=
"key"
>
key
</string>
<string
name=
"AppCanNot"
>
App cannot handled
</string>
<string
name=
"AppCanNot"
>
App cannot handled
</string>
<string
name=
"action"
>
action
</string>
<string
name=
"action"
>
action
</string>
<string
name=
"promotions"
>
clear_promotion
</string>
<string
name=
"promotions"
>
clear_promotion
</string>
<string
name=
"barcode_name"
>
barcode
</string>
<string
name=
"barcode_name"
>
barcode
</string>
...
...
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