Commit e454403f by Ramesh Babu Puvvadi

added few changes

parent 19cfbbb2
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CMakeSettings">
<configurations>
......
......@@ -16,16 +16,7 @@ import retrofit2.http.Path;
*/
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")
Call<String> Login(@Body RequestBody body);
......
......@@ -19,12 +19,10 @@ import java.util.ArrayList;
public class MenuAdapter extends RecyclerView.Adapter<MenuAdapter.ViewHolder> {
ArrayList<String> arrayList;
Context context;
public MenuAdapter(Context context, ArrayList<String> arrayList){
this.context = context;
this.arrayList = arrayList;
}
@NonNull
@Override
public MenuAdapter.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType){
......@@ -33,7 +31,6 @@ public class MenuAdapter extends RecyclerView.Adapter<MenuAdapter.ViewHolder> {
MenuAdapter.ViewHolder viewHolder = new MenuAdapter.ViewHolder(listItem);
return viewHolder;
}
@Override
public void onBindViewHolder(@NonNull MenuAdapter.ViewHolder holder, final int position){
final String data = arrayList.get(position);
......@@ -55,36 +52,28 @@ public class MenuAdapter extends RecyclerView.Adapter<MenuAdapter.ViewHolder> {
if (data.equalsIgnoreCase("Stock Audit")) {
/*Intent intent = new Intent(context,DashBoardActivity.class);
context.startActivity(intent);*/
return;
} else if (data.equalsIgnoreCase("Create Delivery Slip")) {
/* Intent intent = new Intent(context, CreateDeliverySlip.class);
context.startActivity(intent);*/
return;
} else if (data.equalsIgnoreCase("Create Sale Bill")) {
/*Intent intent = new Intent(context, CreateSaleBill.class);
context.startActivity(intent);*/
return;
} else if (data.equalsIgnoreCase("Stock OutWord")) {
Intent intent = new Intent(context, StockOutWordActivity.class);
context.startActivity(intent);
return;
} else if (data.equalsIgnoreCase("Stock Transfer")) {
Intent intent = new Intent(context, StockOutWordActivity.class);
context.startActivity(intent);
return;
} else {
Intent intent = new Intent(context, StockTransferActivity.class);
context.startActivity(intent);
return;
}
});
}
@Override
public int getItemCount() {
return arrayList.size();
}
public class ViewHolder extends RecyclerView.ViewHolder {
public TextView menu_name;
public ImageView menu_image;
......
......@@ -42,8 +42,6 @@
<string name="qty">Qty</string>
<string name="scanningcomplete">Scanning complete</string>
<string name="rack"> Rack No </string>
<string name="auditstatus">audit_status</string>
<string name="fromdate">created_from_date</string>
<string name="todate">created_to_date</string>
......@@ -59,8 +57,6 @@
<string name="stock_point">stock_point_id</string>
<string name="key">key</string>
<string name="AppCanNot">App cannot handled</string>
<string name="action">action</string>
<string name="promotions">clear_promotion</string>
<string name="barcode_name">barcode</string>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment