Commit c81470dc by User

added print option

parent d63feb8f
<component name="ProjectCodeStyleConfiguration">
<code_scheme name="Project" version="173">
<JetCodeStyleSettings>
<option name="PACKAGES_TO_USE_STAR_IMPORTS">
<value>
<package name="java.util" alias="false" withSubpackages="false" />
<package name="kotlinx.android.synthetic" alias="false" withSubpackages="true" />
<package name="io.ktor" alias="false" withSubpackages="true" />
</value>
</option>
<option name="PACKAGES_IMPORT_LAYOUT">
<value>
<package name="" alias="false" withSubpackages="true" />
<package name="java" alias="false" withSubpackages="true" />
<package name="javax" alias="false" withSubpackages="true" />
<package name="kotlin" alias="false" withSubpackages="true" />
<package name="" alias="true" withSubpackages="true" />
</value>
</option>
</JetCodeStyleSettings>
<codeStyleSettings language="XML">
<indentOptions>
<option name="CONTINUATION_INDENT_SIZE" value="4" />
......
......@@ -5,7 +5,7 @@
<configuration PROFILE_NAME="Debug" CONFIG_NAME="Debug" />
</configurations>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">
......
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
android {
compileSdkVersion 30
......@@ -6,7 +7,7 @@ android {
defaultConfig {
applicationId "w.soulofpluto.posstock"
minSdkVersion 16
minSdkVersion 17
targetSdkVersion 30
versionCode 1
versionName "1.0"
......@@ -17,9 +18,23 @@ android {
buildTypes {
release {
minifyEnabled false
shrinkResources false
zipAlignEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
defaultConfig {
ndk {
abiFilters 'armeabi' //, 'x86', ' 'x86_64', 'arm64-v8a'
}
}
compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}
}
dependencies {
......@@ -36,6 +51,11 @@ dependencies {
implementation 'com.squareup.retrofit2:converter-gson:2.2.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.8.0'
implementation platform('com.google.firebase:firebase-bom:28.4.0')
implementation 'com.google.firebase:firebase-analytics'
implementation files('libs/ePOS2.jar')
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
......
{
"project_info": {
"project_number": "503097399483",
"project_id": "posstockandsale",
"storage_bucket": "posstockandsale.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:503097399483:android:836d8165b3e50f7be6f19e",
"android_client_info": {
"package_name": "w.soulofpluto.posstock"
}
},
"oauth_client": [
{
"client_id": "503097399483-trqntkot7dvg8sv0eou1n766ug8ikt24.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "w.soulofpluto.posstock",
"certificate_hash": "0c48f6fd7e869b837d0608cb7c2cdbc084c0552b"
}
},
{
"client_id": "503097399483-2fmt335f3lug1ds4a2sjkmqir5onssje.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyASvVmZ2XqEbqjJfEZOzIewIgPFrRRvIPM"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "503097399483-2fmt335f3lug1ds4a2sjkmqir5onssje.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
}
],
"configuration_version": "1"
}
\ No newline at end of file
......@@ -7,6 +7,13 @@
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION"/>
<application
android:allowBackup="true"
......@@ -14,10 +21,16 @@
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_back_round"
android:supportsRtl="true"
android:usesCleartextTraffic="true"
android:requestLegacyExternalStorage="true"
android:theme="@style/AppTheme.NoActionBar"
android:networkSecurityConfig="@xml/network_security_config">
<meta-data
android:name="firebase_crashlytics_collection_enabled"
android:value="true" />
<activity
android:name=".SplashActivity"
android:windowSoftInputMode="adjustNothing"
......@@ -30,10 +43,22 @@
<activity
android:name=".Login"
android:windowSoftInputMode="adjustPan"
android:windowSoftInputMode="adjustResize|stateHidden"
android:screenOrientation="portrait">
</activity>
<activity
android:name=".HomeActivity"
android:windowSoftInputMode="adjustNothing"
android:screenOrientation="portrait"
android:configChanges="keyboardHidden|screenSize">
</activity>
<activity
android:name=".DiscoveryActivity"
android:windowSoftInputMode="adjustNothing"
android:screenOrientation="portrait"
android:configChanges="keyboardHidden|screenSize">
</activity>
<activity
android:name=".DashBoardActivity"
android:windowSoftInputMode="adjustNothing"
android:screenOrientation="portrait"
......@@ -63,6 +88,18 @@
android:screenOrientation="portrait"
android:configChanges="keyboardHidden|screenSize">
</activity>
<activity
android:name=".CreateDeliverySlip"
android:windowSoftInputMode="adjustResize|stateHidden"
android:screenOrientation="portrait"
android:configChanges="keyboardHidden|screenSize">
</activity>
<activity
android:name=".CreateSaleBill"
android:windowSoftInputMode="adjustResize|stateHidden"
android:screenOrientation="portrait"
android:configChanges="keyboardHidden|screenSize">
</activity>
</application>
</manifest>
\ No newline at end of file
package w.soulofpluto.posstock;
/*
Create by Ramesh Babu
*/
public class Barcode {
String barcode, empId;
int qty;
public Barcode(String Barcode, int Qty, String empId){
this.barcode = Barcode;
this.qty = Qty;
this.empId = empId;
}
public String getBarcode() {
return barcode;
}
public void setBarcode(String barcode) {
this.barcode = barcode;
}
public int getQty() {
return qty;
}
public void setQty(int qty) {
this.qty = qty;
}
public String getEmpId() {
return empId;
}
public void setEmpId(String empId) {
this.empId = empId;
}
}
package w.soulofpluto.posstock;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.List;
/*
Create by Ramesh Babu
*/
public class CreateResponse {
@SerializedName("success")
@Expose
private Integer success;
@SerializedName("data")
@Expose
private List<Datum> data = null;
@SerializedName("promo_suggestions")
@Expose
private List<Object> promoSuggestions = null;
@SerializedName("total_qty")
@Expose
private Integer totalQty;
@SerializedName("net_payable")
@Expose
private Integer netPayable;
@SerializedName("last_scanned_barcode")
@Expose
private String lastScannedBarcode;
@SerializedName("barcode_images")
@Expose
private List<Object> barcodeImages = null;
@SerializedName("transaction_start_time")
@Expose
private String transactionStartTime;
@SerializedName("transaction_start_microtime")
@Expose
private Long transactionStartMicrotime;
public Integer getSuccess() {
return success;
}
public void setSuccess(Integer success) {
this.success = success;
}
public List<Datum> getData() {
return data;
}
public void setData(List<Datum> data) {
this.data = data;
}
public List<Object> getPromoSuggestions() {
return promoSuggestions;
}
public void setPromoSuggestions(List<Object> promoSuggestions) {
this.promoSuggestions = promoSuggestions;
}
public Integer getTotalQty() {
return totalQty;
}
public void setTotalQty(Integer totalQty) {
this.totalQty = totalQty;
}
public Integer getNetPayable() {
return netPayable;
}
public void setNetPayable(Integer netPayable) {
this.netPayable = netPayable;
}
public String getLastScannedBarcode() {
return lastScannedBarcode;
}
public void setLastScannedBarcode(String lastScannedBarcode) {
this.lastScannedBarcode = lastScannedBarcode;
}
public List<Object> getBarcodeImages() {
return barcodeImages;
}
public void setBarcodeImages(List<Object> barcodeImages) {
this.barcodeImages = barcodeImages;
}
public String getTransactionStartTime() {
return transactionStartTime;
}
public void setTransactionStartTime(String transactionStartTime) {
this.transactionStartTime = transactionStartTime;
}
public Long getTransactionStartMicrotime() {
return transactionStartMicrotime;
}
public void setTransactionStartMicrotime(Long transactionStartMicrotime) {
this.transactionStartMicrotime = transactionStartMicrotime;
}
public class Datum {
@SerializedName("barcode")
@Expose
private String barcode;
@SerializedName("emp_id")
@Expose
private String empId;
@SerializedName("quantity")
@Expose
private Integer quantity;
@SerializedName("promo_disc")
@Expose
private Integer promoDisc;
@SerializedName("item_rsp")
@Expose
private String itemRsp;
@SerializedName("net_payable")
@Expose
private Integer netPayable;
@SerializedName("issis")
@Expose
private Integer issis;
@SerializedName("uom")
@Expose
private String uom;
@SerializedName("emp_name")
@Expose
private String empName;
@SerializedName("item_level_promo_name")
@Expose
private String itemLevelPromoName;
@SerializedName("bill_level_promo_name")
@Expose
private String billLevelPromoName;
@SerializedName("discount_code")
@Expose
private String discountCode;
@SerializedName("promo_suggested")
@Expose
private String promoSuggested;
@SerializedName("suggested_promo_id")
@Expose
private Integer suggestedPromoId;
@SerializedName("color_code")
@Expose
private String colorCode;
public String getBarcode() {
return barcode;
}
public void setBarcode(String barcode) {
this.barcode = barcode;
}
public String getEmpId() {
return empId;
}
public void setEmpId(String empId) {
this.empId = empId;
}
public Integer getQuantity() {
return quantity;
}
public void setQuantity(Integer quantity) {
this.quantity = quantity;
}
public Integer getPromoDisc() {
return promoDisc;
}
public void setPromoDisc(Integer promoDisc) {
this.promoDisc = promoDisc;
}
public String getItemRsp() {
return itemRsp;
}
public void setItemRsp(String itemRsp) {
this.itemRsp = itemRsp;
}
public Integer getNetPayable() {
return netPayable;
}
public void setNetPayable(Integer netPayable) {
this.netPayable = netPayable;
}
public Integer getIssis() {
return issis;
}
public void setIssis(Integer issis) {
this.issis = issis;
}
public String getUom() {
return uom;
}
public void setUom(String uom) {
this.uom = uom;
}
public String getEmpName() {
return empName;
}
public void setEmpName(String empName) {
this.empName = empName;
}
public String getItemLevelPromoName() {
return itemLevelPromoName;
}
public void setItemLevelPromoName(String itemLevelPromoName) {
this.itemLevelPromoName = itemLevelPromoName;
}
public String getBillLevelPromoName() {
return billLevelPromoName;
}
public void setBillLevelPromoName(String billLevelPromoName) {
this.billLevelPromoName = billLevelPromoName;
}
public String getDiscountCode() {
return discountCode;
}
public void setDiscountCode(String discountCode) {
this.discountCode = discountCode;
}
public String getPromoSuggested() {
return promoSuggested;
}
public void setPromoSuggested(String promoSuggested) {
this.promoSuggested = promoSuggested;
}
public Integer getSuggestedPromoId() {
return suggestedPromoId;
}
public void setSuggestedPromoId(Integer suggestedPromoId) {
this.suggestedPromoId = suggestedPromoId;
}
public String getColorCode() {
return colorCode;
}
public void setColorCode(String colorCode) {
this.colorCode = colorCode;
}
}
}
\ No newline at end of file
package w.soulofpluto.posstock;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.recyclerview.widget.RecyclerView;
import java.util.ArrayList;
/*
Create by Ramesh Babu
*/
public class CreateSaleAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>{
private Context context;
private ArrayList<Model> List;
public CreateSaleAdapter(Context context, ArrayList<Model> list){
this.context = context;
this.List = list;
}
@Override
public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup viewGroup, int i){
LayoutInflater layoutInflater = LayoutInflater.from(viewGroup.getContext());
View listItem = layoutInflater.inflate(R.layout.custom_list_item, viewGroup, false);
CreateSaleAdapter.ViewHolder viewHolder = new CreateSaleAdapter.ViewHolder(listItem);
return viewHolder;
}
@Override
public void onBindViewHolder(final RecyclerView.ViewHolder viewHolder, final int position){
final Model model = List.get(position);
((ViewHolder)viewHolder).Id.setText(model.getDelivery_slip_id());
((ViewHolder)viewHolder).remove.setOnClickListener(new View.OnClickListener(){
@Override
public void onClick(View v){
List.remove(position);
notifyDataSetChanged();
((CreateSaleBill)context).SetData(model.getDelivery_slip_id());
}
});
}
@Override
public int getItemCount(){
return List.size();
}
public class ViewHolder extends RecyclerView.ViewHolder{
private TextView Id;
private ImageView remove;
public ViewHolder(View itemView){
super(itemView);
this.Id = itemView.findViewById(R.id.Id);
this.remove = itemView.findViewById(R.id.remove);
}
}
}
......@@ -9,6 +9,7 @@ import android.content.Context;
import android.text.Html;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.view.Window;
import android.widget.Button;
......@@ -39,7 +40,7 @@ public class CustomAdapter extends RecyclerView.Adapter<CustomAdapter.ViewHolder
final Plans items = arrayList.get(position);
holder.plan_id.setText("PLAN ID : "+items.getPlanId());
holder.plan_name.setText("NAME : "+items.getName());
holder.view_section.setOnClickListener(new View.OnClickListener(){
holder.view_section.setOnClickListener(new OnClickListener(){
@Override
public void onClick(View view){
final Dialog dialog = new Dialog(context);
......@@ -54,7 +55,8 @@ public class CustomAdapter extends RecyclerView.Adapter<CustomAdapter.ViewHolder
ImageView close = dialog.findViewById(R.id.close);
section.setText(Html.fromHtml(Constants.Sec +items.getSection()));
division.setText(Html.fromHtml(Constants.div+items.getDivision()));
close.setOnClickListener(new View.OnClickListener(){
close.setOnClickListener(new OnClickListener(){
@Override
public void onClick(View view){
dialog.dismiss();
......@@ -62,7 +64,7 @@ public class CustomAdapter extends RecyclerView.Adapter<CustomAdapter.ViewHolder
});
}
});
holder.start_scan.setOnClickListener(new View.OnClickListener(){
holder.start_scan.setOnClickListener(new OnClickListener(){
@Override
public void onClick(View view){
PlanDetails.start(context,items);
......
......@@ -29,42 +29,49 @@ import java.util.concurrent.TimeUnit;
public class DashBoardActivity extends AppCompatActivity implements View.OnClickListener {
Toolbar dashboard_toolbar;
Button stock_audit,rack_qty,searchby_barcode;
Button stock_audit,rack_qty,searchby_barcode, transfer;
TextView version;
PreferenceManager preferenceManager;
@Override
protected void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_dashboard);
stock_audit = findViewById(R.id.stock_audit);
rack_qty = findViewById(R.id.rack_qty);
searchby_barcode = findViewById(R.id.searchby_barcode);
dashboard_toolbar= findViewById(R.id.dashboard_toolbar);
version = findViewById(R.id.version);
preferenceManager= new PreferenceManager(this);
stock_audit = findViewById(R.id.stock_audit);
rack_qty = findViewById(R.id.rack_qty);
searchby_barcode = findViewById(R.id.searchby_barcode);
dashboard_toolbar = findViewById(R.id.dashboard_toolbar);
version = findViewById(R.id.version);
transfer = findViewById(R.id.transfer);
preferenceManager = new PreferenceManager(this);
setSupportActionBar(dashboard_toolbar);
getSupportActionBar().setTitle(getResources().getString(R.string.dashboard));
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
stock_audit.setOnClickListener(this);
rack_qty.setOnClickListener(this);
searchby_barcode.setOnClickListener(this);
transfer.setOnClickListener(this);
version.setText(Html.fromHtml(Constants.Ver_Text +Constants.VERSION));
}
@Override
public boolean onCreateOptionsMenu(Menu menu){
getMenuInflater().inflate(R.menu.menu, menu);
return super.onCreateOptionsMenu(menu);
getMenuInflater().inflate(R.menu.menu, menu);
return super.onCreateOptionsMenu(menu);
}
@Override
public boolean onOptionsItemSelected(@NonNull MenuItem item){
switch(item.getItemId()){
case R.id.dashboard_logout:
if(Constants.isNetworkAvailable(DashBoardActivity.this)){
Logout(Constants.Logout+preferenceManager.getUserId());
Constants.ProgressDialogShow(DashBoardActivity.this);
}else{
Constants.getToast(DashBoardActivity.this,getResources().getString(R.string.connection));
}
break;
switch(item.getItemId()){
case R.id.dashboard_logout:
if(Constants.isNetworkAvailable(DashBoardActivity.this)){
Logout(Constants.Logout+preferenceManager.getUserId());
Constants.ProgressDialogShow(DashBoardActivity.this);
}else{
Constants.getToast(DashBoardActivity.this,getResources().getString(R.string.connection));
}
break;
case android.R.id.home:
finish();
break;
}
return super.onOptionsItemSelected(item);
}
......@@ -98,7 +105,7 @@ public class DashBoardActivity extends AppCompatActivity implements View.OnClick
preferenceManager.setLogged(false);
preferenceManager.setCustToken("");
preferenceManager.setStoreId("");
Login.logout(DashBoardActivity.this,preferenceManager.getStoreId());
Login.logout(DashBoardActivity.this);
}else{
Constants.getToast(DashBoardActivity.this,jsonObject.getString("msg"));
}
......@@ -130,28 +137,4 @@ public class DashBoardActivity extends AppCompatActivity implements View.OnClick
break;
}
}
@Override
public void onBackPressed(){
int count = 0;
if(count>0){
super.onBackPressed();
}else{
AlertDialog alert = new AlertDialog.Builder(this)
.setTitle("Are you sure you want to close this app")
//.setMessage("Are you sure to Exit")
.setPositiveButton("Yes", new DialogInterface.OnClickListener(){
@Override
public void onClick(DialogInterface dialogInterface, int i){
finish();
}
})
.setNegativeButton("No", new DialogInterface.OnClickListener(){
@Override
public void onClick(DialogInterface dialogInterface, int i){
}
})
.show();
}
}
}
package w.soulofpluto.posstock;
/*
Create by Ramesh Babu
*/
public interface DataInterface {
void onDeliveryData(int code, String data, String Id);
void onDeliveryFail(String fail);
void onDeliveryDataRemove(int code, String data);
void onDeliveryFailRemove(String fail);
void onLogoutData(int code, String data);
void onLogoutFail(String fail);
void onFinalData(int code, String finaldata);
void onFinalFail(String finalfail);
void onCustomerName(int code,String name);
void onCustomerNameFail(String fail);
}
package w.soulofpluto.posstock;
/*
Create by Ramesh Babu
*/
import android.content.Context;
import android.text.Html;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import java.util.List;
public class DeliverySlipAdapter extends RecyclerView.Adapter<DeliverySlipAdapter.ViewHolder> {
public List<CreateResponse.Datum> arrayList;
public Context context;
public DeliverySlipAdapter(Context context, List<CreateResponse.Datum> list){
this.context = context;
this.arrayList = list;
}
@NonNull
@Override
public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
LayoutInflater layoutInflater = LayoutInflater.from(parent.getContext());
View listItem = layoutInflater.inflate(R.layout.delivery_list_item, parent, false);
DeliverySlipAdapter.ViewHolder viewHolder = new DeliverySlipAdapter.ViewHolder(listItem);
return viewHolder;
}
@Override
public void onBindViewHolder(@NonNull ViewHolder holder, int position) {
CreateResponse.Datum datum = arrayList.get(position);
if(TextUtils.isEmpty(datum.getItemLevelPromoName())){
holder.item_level_promotion.setVisibility(View.GONE);
}else{
holder.item_level_promotion.setVisibility(View.VISIBLE);
holder.item_level_promotion.setText(datum.getItemLevelPromoName());
}
holder.create_barcode.setText(Html.fromHtml(Constants.getBarcode(datum.getBarcode())));
holder.create_empid.setText(Html.fromHtml(Constants.getEmpId(datum.getEmpId())));
holder.create_dis.setText(Html.fromHtml(Constants.getCode(Constants.IndianRupeesFormat(String.valueOf(datum.getPromoDisc())))));
holder.create_mrp.setText(Html.fromHtml(Constants.getMRP(Constants.IndianRupeesFormat(datum.getItemRsp()))));
holder.create_netpay.setText(Html.fromHtml(Constants.getNetPayable(Constants.IndianRupeesFormat(datum.getNetPayable().toString()))));
}
@Override
public int getItemCount() {
return arrayList.size();
}
public class ViewHolder extends RecyclerView.ViewHolder{
public TextView create_barcode,create_empid,create_mrp,create_dis,create_netpay,item_level_promotion;
public ViewHolder(View itemView){
super(itemView);
create_barcode = itemView.findViewById(R.id.create_barcode);
create_empid = itemView.findViewById(R.id.create_empid);
create_mrp = itemView.findViewById(R.id.create_mrp);
create_dis = itemView.findViewById(R.id.create_dis);
create_netpay = itemView.findViewById(R.id.create_netpay);
item_level_promotion = itemView.findViewById(R.id.item_level_promotion);
}
}
}
package w.soulofpluto.posstock;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.ListView;
import android.widget.SimpleAdapter;
import com.epson.epos2.Epos2Exception;
import com.epson.epos2.discovery.DeviceInfo;
import com.epson.epos2.discovery.Discovery;
import com.epson.epos2.discovery.DiscoveryListener;
import com.epson.epos2.discovery.FilterOption;
import java.util.ArrayList;
import java.util.HashMap;
public class DiscoveryActivity extends Activity implements View.OnClickListener, AdapterView.OnItemClickListener {
private Context mContext = null;
private ArrayList<HashMap<String, String>> mPrinterList = null;
private SimpleAdapter mPrinterListAdapter = null;
private FilterOption mFilterOption = null;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_discovery);
mContext = this;
Button button = (Button)findViewById(R.id.btnRestart);
button.setOnClickListener(this);
mPrinterList = new ArrayList<HashMap<String, String>>();
mPrinterListAdapter = new SimpleAdapter(this, mPrinterList, R.layout.list_at,
new String[] { "PrinterName", "Target" },
new int[] { R.id.PrinterName, R.id.Target });
ListView list = (ListView)findViewById(R.id.lstReceiveData);
list.setAdapter(mPrinterListAdapter);
list.setOnItemClickListener(this);
mFilterOption = new FilterOption();
mFilterOption.setDeviceType(Discovery.TYPE_PRINTER);
mFilterOption.setEpsonFilter(Discovery.FILTER_NAME);
try {
Discovery.start(this, mFilterOption, mDiscoveryListener);
}
catch (Exception e) {
ShowMsg.showException(e, "start", mContext);
}
}
@Override
public void onDestroy() {
super.onDestroy();
while (true) {
try {
Discovery.stop();
break;
}
catch (Epos2Exception e) {
if (e.getErrorStatus() != Epos2Exception.ERR_PROCESSING) {
break;
}
}
}
mFilterOption = null;
}
@Override
public void onClick(View v) {
switch (v.getId()) {
case R.id.btnRestart:
restartDiscovery();
break;
default:
// Do nothing
break;
}
}
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
Intent intent = new Intent();
HashMap<String, String> item = mPrinterList.get(position);
intent.putExtra(getString(R.string.title_target), item.get("Target"));
setResult(RESULT_OK, intent);
finish();
}
private void restartDiscovery() {
while (true) {
try {
Discovery.stop();
break;
}
catch (Epos2Exception e) {
if (e.getErrorStatus() != Epos2Exception.ERR_PROCESSING) {
ShowMsg.showException(e, "stop", mContext);
return;
}
}
}
mPrinterList.clear();
mPrinterListAdapter.notifyDataSetChanged();
try {
Discovery.start(this, mFilterOption, mDiscoveryListener);
}
catch (Exception e) {
ShowMsg.showException(e, "stop", mContext);
}
}
private DiscoveryListener mDiscoveryListener = new DiscoveryListener() {
@Override
public void onDiscovery(final DeviceInfo deviceInfo) {
runOnUiThread(new Runnable() {
@Override
public synchronized void run() {
HashMap<String, String> item = new HashMap<String, String>();
item.put("PrinterName", deviceInfo.getDeviceName());
item.put("Target", deviceInfo.getTarget());
mPrinterList.add(item);
mPrinterListAdapter.notifyDataSetChanged();
}
});
}
};
}
......@@ -49,7 +49,7 @@ public class Login extends AppCompatActivity implements View.OnClickListener, Ad
private PreferenceManager preferenceManager;
private String Store_Name;
public static void logout(Context context, String id){
public static void logout(Context context){
Activity activity = (Activity) context;
Intent in_logout = new Intent(context, Login.class);
in_logout.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
......@@ -118,8 +118,8 @@ public class Login extends AppCompatActivity implements View.OnClickListener, Ad
@Override
public void run(){
try{
JSONObject object = new JSONObject(Response);
if(response.code() == 200){
JSONObject object = new JSONObject(Response);
stores = new ArrayList<>();
if(object.has(getResources().getString(R.string.success))){
if(object.getInt(getResources().getString(R.string.success)) == 1){
......@@ -142,6 +142,13 @@ public class Login extends AppCompatActivity implements View.OnClickListener, Ad
storeId.setAdapter(null);
}
}
}else{
runOnUiThread(new Runnable() {
@Override
public void run() {
Constants.getToast(Login.this,Response);
}
});
}
}catch(JSONException e){
e.printStackTrace();
......@@ -266,7 +273,7 @@ public class Login extends AppCompatActivity implements View.OnClickListener, Ad
if (Store_Name != null)
preferenceManager.setStoreName(Store_Name);
preferenceManager.setLogged(true);
Intent in = new Intent(Login.this, DashBoardActivity.class);
Intent in = new Intent(Login.this, HomeActivity.class);
startActivity(in);
finish();
} else {
......
......@@ -85,7 +85,7 @@ public class MainActivity extends AppCompatActivity {
preferenceManager.setLogged(false);
preferenceManager.setCustToken("");
preferenceManager.setStoreId("");
Login.logout(MainActivity.this,preferenceManager.getStoreId());
Login.logout(MainActivity.this);
}else{
Constants.getToast(MainActivity.this,jsonObject.getString(getResources().getString(R.string.msg)));
}
......@@ -222,7 +222,7 @@ public class MainActivity extends AppCompatActivity {
preferenceManager.setLogged(false);
preferenceManager.setCustToken("");
preferenceManager.setStoreId("");
Login.logout(MainActivity.this,preferenceManager.getStoreId());
Login.logout(MainActivity.this);
}
}
}
......
package w.soulofpluto.posstock;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import java.util.ArrayList;
/*
Create by Ramesh Babu
*/
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) {
LayoutInflater layoutInflater = LayoutInflater.from(parent.getContext());
View listItem = layoutInflater.inflate(R.layout.menulist_item, parent, false);
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);
holder.menu_name.setText(data);
holder.layout.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if(data.equalsIgnoreCase("Stock Audit")){
Intent intent = new Intent(context,DashBoardActivity.class);
context.startActivity(intent);
}else if(data.equalsIgnoreCase("Create Delivery Slip")){
Intent intent = new Intent(context,CreateDeliverySlip.class);
context.startActivity(intent);
}else{
Intent intent = new Intent(context,CreateSaleBill.class);
context.startActivity(intent);
}
}
});
}
@Override
public int getItemCount() {
return arrayList.size();
}
public class ViewHolder extends RecyclerView.ViewHolder{
public TextView menu_name;
public ImageView menu_image;
public LinearLayout layout;
public ViewHolder(View itemView){
super(itemView);
menu_name = itemView.findViewById(R.id.menu_name);
menu_image = itemView.findViewById(R.id.menu_image);
layout = itemView.findViewById(R.id.layout);
}
}
}
package w.soulofpluto.posstock;
/*
Create by Ramesh Babu
*/
public class Model {
private String delivery_slip_id;
private int manual_discount;
public Model(String Id, int discount){
this.delivery_slip_id = Id;
this.manual_discount = discount;
}
public String getDelivery_slip_id() {
return delivery_slip_id;
}
public void setDelivery_slip_id(String delivery_slip_id) {
this.delivery_slip_id = delivery_slip_id;
}
public int getManual_discount() {
return manual_discount;
}
public void setManual_discount(int manual_discount) {
this.manual_discount = manual_discount;
}
}
......@@ -570,7 +570,7 @@ public class PlanDetails extends AppCompatActivity implements View.OnClickListen
try {
final JSONObject jsonObject = new JSONObject(res);
if (jsonObject.has(getResources().getString(R.string.success))) {
if (jsonObject.getInt(getResources().getString(R.string.success)) == 1) {
if(jsonObject.getInt(getResources().getString(R.string.success)) == 1){
runOnUiThread(new Runnable() {
@Override
public void run() {
......@@ -585,15 +585,15 @@ public class PlanDetails extends AppCompatActivity implements View.OnClickListen
}
});
} else if (jsonObject.getInt(getResources().getString(R.string.success)) == 3) {
}else if (jsonObject.getInt(getResources().getString(R.string.success)) == 3){
runOnUiThread(new Runnable() {
@Override
public void run() {
try {
try{
Constants.getToast(PlanDetails.this, jsonObject.getString(getResources().getString(R.string.msg)));
DoLogin();
} catch (JSONException e) {
e.printStackTrace();
}catch(JSONException e){
e.printStackTrace();
}
}
});
......
......@@ -11,7 +11,7 @@ import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import java.util.ArrayList;
/*
/*
Create by Ramesh Babu
*/
......
......@@ -22,6 +22,7 @@ public class PreferenceManager {
public static final String ID = "ID";
public static final String BLUETOOTH = "bluetooth";
public static final String STORENAME = "storeName";
public static final String KEY_USER_LOGIN = "userlogin";
public static final String APP_SHARED_PREFS = PreferenceManager.class.getSimpleName();
public static SharedPreferences _sharedPrefs;
public static SharedPreferences.Editor _prefsEditor;
......@@ -38,6 +39,16 @@ public class PreferenceManager {
_prefsEditor.remove(KEY_USER_ID);
_prefsEditor.apply();
}
public void setKeyUserLogin(String userLogin){
_prefsEditor.putString(KEY_USER_LOGIN,userLogin);
_prefsEditor.apply();
}
public String getKeyUserLogin(){
return _sharedPrefs.getString(KEY_USER_LOGIN,"");
}
public void setFirstName(String firstName){
_prefsEditor.putString(FIRST_NAME,firstName);
_prefsEditor.apply();
......
......@@ -181,7 +181,7 @@ public class RackWiseQty extends AppCompatActivity implements AdapterView.OnItem
preferenceManager.setLogged(false);
preferenceManager.setCustToken("");
preferenceManager.setStoreId("");
Login.logout(RackWiseQty.this,preferenceManager.getStoreId());
Login.logout(RackWiseQty.this);
}
}
}
......@@ -334,7 +334,7 @@ public class RackWiseQty extends AppCompatActivity implements AdapterView.OnItem
preferenceManager.setLogged(false);
preferenceManager.setCustToken("");
preferenceManager.setStoreId("");
Login.logout(RackWiseQty.this,preferenceManager.getStoreId());
Login.logout(RackWiseQty.this);
}
}
}
......
......@@ -322,7 +322,7 @@ import static w.soulofpluto.posstock.Constants.getDateWithOffset;
preferenceManager.setLogged(false);
preferenceManager.setCustToken("");
preferenceManager.setStoreId("");
Login.logout(SearchByBarcode.this,preferenceManager.getStoreId());
Login.logout(SearchByBarcode.this);
}
}
}
......
package w.soulofpluto.posstock;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import com.epson.epos2.Epos2CallbackCode;
import com.epson.epos2.Epos2Exception;
public class ShowMsg {
public static void showException(Exception e, String method, Context context) {
String msg = "";
if (e instanceof Epos2Exception) {
msg = String.format(
"%s\n\t%s\n%s\n\t%s",
context.getString(R.string.title_err_code),
getEposExceptionText(((Epos2Exception) e).getErrorStatus()),
context.getString(R.string.title_err_method),
method);
}
else {
msg = e.toString();
}
show(msg, context);
}
public static void showResult(int code, String errMsg, Context context) {
String msg = "";
if (errMsg.isEmpty()) {
msg = String.format(
"\t%s\n\t%s\n",
context.getString(R.string.title_msg_result),
getCodeText(code));
}
else {
msg = String.format(
"\t%s\n\t%s\n\n\t%s\n\t%s\n",
context.getString(R.string.title_msg_result),
getCodeText(code),
context.getString(R.string.title_msg_description),
errMsg);
}
show(msg, context);
}
public static void showMsg(String msg, Context context) {
show(msg, context);
}
private static void show(String msg, Context context) {
AlertDialog.Builder alertDialog = new AlertDialog.Builder(context);
alertDialog.setMessage(msg);
alertDialog.setPositiveButton("OK", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int whichButton) {
return ;
}
});
alertDialog.create();
alertDialog.show();
}
private static String getEposExceptionText(int state) {
String return_text = "";
switch (state) {
case Epos2Exception.ERR_PARAM:
return_text = "ERR_PARAM";
break;
case Epos2Exception.ERR_CONNECT:
return_text = "ERR_CONNECT";
break;
case Epos2Exception.ERR_TIMEOUT:
return_text = "ERR_TIMEOUT";
break;
case Epos2Exception.ERR_MEMORY:
return_text = "ERR_MEMORY";
break;
case Epos2Exception.ERR_ILLEGAL:
return_text = "ERR_ILLEGAL";
break;
case Epos2Exception.ERR_PROCESSING:
return_text = "ERR_PROCESSING";
break;
case Epos2Exception.ERR_NOT_FOUND:
return_text = "ERR_NOT_FOUND";
break;
case Epos2Exception.ERR_IN_USE:
return_text = "ERR_IN_USE";
break;
case Epos2Exception.ERR_TYPE_INVALID:
return_text = "ERR_TYPE_INVALID";
break;
case Epos2Exception.ERR_DISCONNECT:
return_text = "ERR_DISCONNECT";
break;
case Epos2Exception.ERR_ALREADY_OPENED:
return_text = "ERR_ALREADY_OPENED";
break;
case Epos2Exception.ERR_ALREADY_USED:
return_text = "ERR_ALREADY_USED";
break;
case Epos2Exception.ERR_BOX_COUNT_OVER:
return_text = "ERR_BOX_COUNT_OVER";
break;
case Epos2Exception.ERR_BOX_CLIENT_OVER:
return_text = "ERR_BOX_CLIENT_OVER";
break;
case Epos2Exception.ERR_UNSUPPORTED:
return_text = "ERR_UNSUPPORTED";
break;
case Epos2Exception.ERR_FAILURE:
return_text = "ERR_FAILURE";
break;
default:
return_text = String.format("%d", state);
break;
}
return return_text;
}
private static String getCodeText(int state) {
String return_text = "";
switch (state) {
case Epos2CallbackCode.CODE_SUCCESS:
return_text = "PRINT_SUCCESS";
break;
case Epos2CallbackCode.CODE_PRINTING:
return_text = "PRINTING";
break;
case Epos2CallbackCode.CODE_ERR_AUTORECOVER:
return_text = "ERR_AUTORECOVER";
break;
case Epos2CallbackCode.CODE_ERR_COVER_OPEN:
return_text = "ERR_COVER_OPEN";
break;
case Epos2CallbackCode.CODE_ERR_CUTTER:
return_text = "ERR_CUTTER";
break;
case Epos2CallbackCode.CODE_ERR_MECHANICAL:
return_text = "ERR_MECHANICAL";
break;
case Epos2CallbackCode.CODE_ERR_EMPTY:
return_text = "ERR_EMPTY";
break;
case Epos2CallbackCode.CODE_ERR_UNRECOVERABLE:
return_text = "ERR_UNRECOVERABLE";
break;
case Epos2CallbackCode.CODE_ERR_FAILURE:
return_text = "ERR_FAILURE";
break;
case Epos2CallbackCode.CODE_ERR_NOT_FOUND:
return_text = "ERR_NOT_FOUND";
break;
case Epos2CallbackCode.CODE_ERR_SYSTEM:
return_text = "ERR_SYSTEM";
break;
case Epos2CallbackCode.CODE_ERR_PORT:
return_text = "ERR_PORT";
break;
case Epos2CallbackCode.CODE_ERR_TIMEOUT:
return_text = "ERR_TIMEOUT";
break;
case Epos2CallbackCode.CODE_ERR_JOB_NOT_FOUND:
return_text = "ERR_JOB_NOT_FOUND";
break;
case Epos2CallbackCode.CODE_ERR_SPOOLER:
return_text = "ERR_SPOOLER";
break;
case Epos2CallbackCode.CODE_ERR_BATTERY_LOW:
return_text = "ERR_BATTERY_LOW";
break;
case Epos2CallbackCode.CODE_ERR_TOO_MANY_REQUESTS:
return_text = "ERR_TOO_MANY_REQUESTS";
break;
case Epos2CallbackCode.CODE_ERR_REQUEST_ENTITY_TOO_LARGE:
return_text = "ERR_REQUEST_ENTITY_TOO_LARGE";
break;
case Epos2CallbackCode.CODE_CANCELED:
return_text = "CODE_CANCELED";
break;
case Epos2CallbackCode.CODE_ERR_NO_MICR_DATA:
return_text = "ERR_NO_MICR_DATA";
break;
case Epos2CallbackCode.CODE_ERR_ILLEGAL_LENGTH:
return_text = "ERR_ILLEGAL_LENGTH";
break;
case Epos2CallbackCode.CODE_ERR_NO_MAGNETIC_DATA:
return_text = "ERR_NO_MAGNETIC_DATA";
break;
case Epos2CallbackCode.CODE_ERR_RECOGNITION:
return_text = "ERR_RECOGNITION";
break;
case Epos2CallbackCode.CODE_ERR_READ:
return_text = "ERR_READ";
break;
case Epos2CallbackCode.CODE_ERR_NOISE_DETECTED:
return_text = "ERR_NOISE_DETECTED";
break;
case Epos2CallbackCode.CODE_ERR_PAPER_JAM:
return_text = "ERR_PAPER_JAM";
break;
case Epos2CallbackCode.CODE_ERR_PAPER_PULLED_OUT:
return_text = "ERR_PAPER_PULLED_OUT";
break;
case Epos2CallbackCode.CODE_ERR_CANCEL_FAILED:
return_text = "ERR_CANCEL_FAILED";
break;
case Epos2CallbackCode.CODE_ERR_PAPER_TYPE:
return_text = "ERR_PAPER_TYPE";
break;
case Epos2CallbackCode.CODE_ERR_WAIT_INSERTION:
return_text = "ERR_WAIT_INSERTION";
break;
case Epos2CallbackCode.CODE_ERR_ILLEGAL:
return_text = "ERR_ILLEGAL";
break;
case Epos2CallbackCode.CODE_ERR_INSERTED:
return_text = "ERR_INSERTED";
break;
case Epos2CallbackCode.CODE_ERR_WAIT_REMOVAL:
return_text = "ERR_WAIT_REMOVAL";
break;
case Epos2CallbackCode.CODE_ERR_DEVICE_BUSY:
return_text = "ERR_DEVICE_BUSY";
break;
case Epos2CallbackCode.CODE_ERR_IN_USE:
return_text = "ERR_IN_USE";
break;
case Epos2CallbackCode.CODE_ERR_CONNECT:
return_text = "ERR_CONNECT";
break;
case Epos2CallbackCode.CODE_ERR_DISCONNECT:
return_text = "ERR_DISCONNECT";
break;
case Epos2CallbackCode.CODE_ERR_MEMORY:
return_text = "ERR_MEMORY";
break;
case Epos2CallbackCode.CODE_ERR_PROCESSING:
return_text = "ERR_PROCESSING";
break;
case Epos2CallbackCode.CODE_ERR_PARAM:
return_text = "ERR_PARAM";
break;
default:
return_text = String.format("%d", state);
break;
}
return return_text;
}
}
package w.soulofpluto.posstock;
import android.app.AlertDialog;
import android.bluetooth.BluetoothAdapter;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import com.google.firebase.FirebaseApp;
/*
Create by Ramesh Babu
*/
public class SplashActivity extends AppCompatActivity{
PreferenceManager preferenceManager;
BluetoothAdapter bluetoothAdapter;
private int REQUEST_ENABLE_BT = 1;
@Override
protected void onCreate(@Nullable Bundle savedInstanceState){
setContentView(R.layout.activity_splash);
preferenceManager = new PreferenceManager(this);
runOnUiThread(new Runnable(){
bluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
FirebaseApp.initializeApp(this);
//FirebaseCrashlytics.getInstance().setCrashlyticsCollectionEnabled(true);
//FirebaseApp.getInstance().setAutomaticResourceManagementEnabled(true);
//FirebaseCrashlytics.getInstance().setCrashlyticsCollectionEnabled(true);
//FirebaseApp.getInstance().
if(bluetoothAdapter!=null && bluetoothAdapter.isEnabled()){
runOnUiThread(() -> splashMethod());
//throw new RuntimeException("Test Crash");
}else{
//Constants.getToast(this,"Please Enable your bluetooth device");
try {
showDialog("Please Enable your bluetooth device");
} catch (Exception e) {
e.printStackTrace();
}
}
super.onCreate(savedInstanceState);
}
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == REQUEST_ENABLE_BT) {
if (resultCode == RESULT_OK) {
Constants.getToast(this,"BlueTooth Turned On");
runOnUiThread(new Runnable(){
@Override
public void run(){
splashMethod();
}
});
//Toast.makeText(MainActivity.this, "BlueTooth Turned On", Toast.LENGTH_LONG).show();
} else {
//Toast.makeText(MainActivity.this, "Cancelled", Toast.LENGTH_LONG).show();
Constants.getToast(this,"Cancelled");
}
}
}
public void showDialog(final String phone) throws Exception
{
AlertDialog.Builder builder = new AlertDialog.Builder(SplashActivity.this);
builder.setMessage(phone);
builder.setPositiveButton("OK", new DialogInterface.OnClickListener()
{
@Override
public void run(){
splashMethod();
public void onClick(DialogInterface dialog, int which)
{
Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);
startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);
dialog.dismiss();
}
});
super.onCreate(savedInstanceState);
builder.setNegativeButton("Cancel", new DialogInterface.OnClickListener()
{
@Override
public void onClick(DialogInterface dialog, int which)
{
dialog.dismiss();
}
});
builder.show();
}
public void splashMethod(){
Handler handler = new Handler();
......@@ -33,7 +99,7 @@ public class SplashActivity extends AppCompatActivity{
/*startActivity(new Intent(SplashActivity.this, MainActivity.class));
finish();*/
if(preferenceManager.isLogged()){
startActivity(new Intent(SplashActivity.this, DashBoardActivity.class));
startActivity(new Intent(SplashActivity.this, HomeActivity.class));
finish();
}else{
startActivity(new Intent(SplashActivity.this, Login.class));
......
<vector android:height="24dp" android:viewportHeight="510"
android:viewportWidth="510" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#ffffff" android:pathData="M311.1,255l58.65,58.65c7.65,-17.851 10.2,-38.25 10.2,-58.65c0,-20.4 -5.101,-40.8 -10.2,-58.65L311.1,255zM446.25,119.85L415.65,153c15.3,30.6 25.5,66.3 25.5,102s-10.2,71.4 -25.5,102l30.6,30.6c25.5,-38.25 38.25,-86.699 38.25,-135.149S471.75,158.1 446.25,119.85zM349.35,145.35L204,0h-25.5v193.8L61.2,76.5l-35.7,35.7L168.3,255L25.5,397.8l35.7,35.7l117.3,-117.3V510H204l145.35,-145.35L239.7,255L349.35,145.35zM229.5,96.9l48.45,48.45L229.5,193.8V96.9zM277.95,364.65L229.5,413.1V316.2L277.95,364.65z"/>
</vector>
<vector android:height="24dp" android:viewportHeight="510"
android:viewportWidth="510" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#FF000000" android:pathData="M311.1,255l58.65,58.65c7.65,-17.851 10.2,-38.25 10.2,-58.65c0,-20.4 -5.101,-40.8 -10.2,-58.65L311.1,255zM446.25,119.85L415.65,153c15.3,30.6 25.5,66.3 25.5,102s-10.2,71.4 -25.5,102l30.6,30.6c25.5,-38.25 38.25,-86.699 38.25,-135.149S471.75,158.1 446.25,119.85zM349.35,145.35L204,0h-25.5v193.8L61.2,76.5l-35.7,35.7L168.3,255L25.5,397.8l35.7,35.7l117.3,-117.3V510H204l145.35,-145.35L239.7,255L349.35,145.35zM229.5,96.9l48.45,48.45L229.5,193.8V96.9zM277.95,364.65L229.5,413.1V316.2L277.95,364.65z"/>
</vector>
<vector android:height="24dp" android:viewportHeight="477.867"
android:viewportWidth="477.867" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#ffff" android:pathData="M409.6,0c-9.426,0 -17.067,7.641 -17.067,17.067v62.344C304.667,-5.656 164.478,-3.386 79.411,84.479c-40.09,41.409 -62.455,96.818 -62.344,154.454c0,9.426 7.641,17.067 17.067,17.067S51.2,248.359 51.2,238.933c0.021,-103.682 84.088,-187.717 187.771,-187.696c52.657,0.01 102.888,22.135 138.442,60.976l-75.605,25.207c-8.954,2.979 -13.799,12.652 -10.82,21.606s12.652,13.799 21.606,10.82l102.4,-34.133c6.99,-2.328 11.697,-8.88 11.674,-16.247v-102.4C426.667,7.641 419.026,0 409.6,0z"/>
<path android:fillColor="#ffff" android:pathData="M443.733,221.867c-9.426,0 -17.067,7.641 -17.067,17.067c-0.021,103.682 -84.088,187.717 -187.771,187.696c-52.657,-0.01 -102.888,-22.135 -138.442,-60.976l75.605,-25.207c8.954,-2.979 13.799,-12.652 10.82,-21.606c-2.979,-8.954 -12.652,-13.799 -21.606,-10.82l-102.4,34.133c-6.99,2.328 -11.697,8.88 -11.674,16.247v102.4c0,9.426 7.641,17.067 17.067,17.067s17.067,-7.641 17.067,-17.067v-62.345c87.866,85.067 228.056,82.798 313.122,-5.068c40.09,-41.409 62.455,-96.818 62.344,-154.454C460.8,229.508 453.159,221.867 443.733,221.867z"/>
</vector>
<vector android:height="48dp" android:viewportHeight="510.986"
android:viewportWidth="510.986" android:width="48dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#ffffff" android:pathData="M447.486,0c-29.181,0 -54.575,20.226 -61.577,48H242.466c-10.55,0 -20.47,4.109 -27.931,11.569L9.212,264.893c-12.282,12.282 -12.282,32.266 0,44.548l192.333,192.333c6.141,6.141 14.208,9.211 22.274,9.211s16.133,-3.07 22.274,-9.211L451.417,296.45c7.46,-7.461 11.569,-17.38 11.569,-27.931V138.38c6.169,-3.172 12.003,-6.858 17.329,-11.102c20.065,-15.987 30.671,-38.042 30.671,-63.778C510.986,28.486 482.5,0 447.486,0zM447.986,268.52c0,6.544 -2.548,12.696 -7.176,17.324L235.486,491.168c-6.434,6.434 -16.901,6.434 -23.335,0L19.818,298.835c-6.433,-6.434 -6.433,-16.901 0,-23.335L225.142,70.176C229.77,65.548 235.922,63 242.466,63h189.02c9.098,0 16.5,7.402 16.5,16.5v49.274c-13.084,5.388 -27.495,8.491 -41.343,9.604C404.122,119.011 387.529,104 367.486,104c-21.78,0 -39.5,17.72 -39.5,39.5s17.72,39.5 39.5,39.5c18.316,0 33.756,-12.532 38.206,-29.471c14.033,-0.931 28.617,-3.722 42.294,-8.648V268.52zM365.81,150.811c7.258,1.663 15.357,2.669 23.906,2.97c-3.894,8.387 -12.392,14.22 -22.231,14.22c-13.509,0 -24.5,-10.991 -24.5,-24.5s10.991,-24.5 24.5,-24.5c11.904,0 21.847,8.535 24.044,19.805c-8.081,-0.195 -15.688,-1.085 -22.368,-2.616c-4.036,-0.927 -8.061,1.597 -8.986,5.635C359.25,145.862 361.773,149.885 365.81,150.811zM470.967,115.547c-2.523,2.01 -5.195,3.875 -7.981,5.608V79.5c0,-17.369 -14.131,-31.5 -31.5,-31.5h-29.964c6.542,-19.307 24.973,-33 45.964,-33c26.743,0 48.5,21.757 48.5,48.5C495.986,84.808 487.568,102.319 470.967,115.547z"/>
</vector>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/bg">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_above="@+id/layout"
android:layout_alignParentTop="true">
<androidx.appcompat.widget.Toolbar
android:id="@+id/createdeliveryslip_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="@drawable/background_all"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
app:contentInsetEnd="0dp"
app:contentInsetLeft="0dp"
app:contentInsetRight="0dp"
app:contentInsetStart="0dp"
app:contentInsetStartWithNavigation="0dp"
app:elevation="0dp"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
app:theme="@style/ThemeOverlay.AppCompat"
app:titleTextAppearance="@style/Toolbartitleheader"
app:titleTextColor="@android:color/white"></androidx.appcompat.widget.Toolbar>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
app:cardCornerRadius="3dp">
<LinearLayout
android:id="@+id/header_items"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:visibility="gone">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:orientation="horizontal">
<TextView
android:id="@+id/totalItems"
style="@style/textfont"
android:layout_width="0dp"
android:textStyle="bold"
android:layout_height="wrap_content"
android:layout_weight="0.50" />
<TextView
android:id="@+id/totalMrp"
style="@style/textfont"
android:layout_width="0dp"
android:textStyle="bold"
android:layout_height="wrap_content"
android:layout_weight="0.50" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:orientation="horizontal">
<TextView
android:id="@+id/totalDis"
style="@style/textfont"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.50"
android:text="Total Disc"
android:visibility="invisible" />
<TextView
android:id="@+id/totalNetMrp"
style="@style/textfont"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.50"
android:text="Net MRP"
android:visibility="invisible" />
</LinearLayout>
</LinearLayout>
</androidx.cardview.widget.CardView>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:orientation="horizontal"
android:weightSum="1">
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/checked"/>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.30">
<EditText
android:id="@+id/emp_id"
style="@style/textfont"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:hint="Sales Person"
android:singleLine="true"
android:textColor="@android:color/black" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.70">
<EditText
android:id="@+id/barcode_enter"
style="@style/textfont"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginRight="5dp"
android:hint="Barcode"
android:singleLine="true"
android:textColor="@android:color/black" />
</com.google.android.material.textfield.TextInputLayout>
</LinearLayout>
</LinearLayout>
<!-- <androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/bg">
</androidx.cardview.widget.CardView> -->
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/deliveryslip_list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="3dp"
android:layout_above="@+id/layout">
</androidx.recyclerview.widget.RecyclerView>
</LinearLayout>
<LinearLayout
android:id="@+id/layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_alignParentBottom="true">
<Button
android:id="@+id/valid"
style="@style/textfont"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_margin="3dp"
android:background="@drawable/background_all"
android:text="@string/resolve_promotions"
android:textColor="@android:color/white"
android:visibility="gone" />
<Button
android:id="@+id/valid_print"
style="@style/textfont"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_margin="3dp"
android:background="@drawable/background_all"
android:text="@string/print"
android:textColor="@android:color/white"
android:visibility="gone" />
</LinearLayout>
</RelativeLayout>
\ No newline at end of file
......@@ -60,6 +60,19 @@
android:padding="10dp"/>
<Button
android:id="@+id/transfer"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:text="@string/transfer"
android:layout_margin="10dp"
style="@style/headerfont"
android:textColor="@android:color/white"
android:background="@drawable/background_all"
android:padding="10dp"
android:visibility="gone"/>
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
......
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" android:background="#FFFFFF">
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/btn_restart"
android:id="@+id/btnRestart"
android:layout_marginBottom="10dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/title_printerlist"
android:id="@+id/txtList"
android:layout_marginTop="5dp"
android:textColor="#000000" />
<ListView
android:id="@+id/lstReceiveData"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:cacheColorHint="#ffffff">
</ListView>
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/bg">
<androidx.appcompat.widget.Toolbar
android:id="@+id/home_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="@drawable/background_all"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
app:theme="@style/ThemeOverlay.AppCompat"
app:elevation="0dp"
app:contentInsetEnd="0dp"
app:contentInsetLeft="0dp"
app:contentInsetRight="0dp"
app:contentInsetStart="0dp"
app:contentInsetStartWithNavigation="0dp"
app:titleTextColor="@android:color/white"
app:titleTextAppearance="@style/Toolbartitleheader">
</androidx.appcompat.widget.Toolbar>
<!-- <LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<RelativeLayout
android:id="@+id/layout"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.50"
android:gravity="center"
android:background="@android:color/white"
android:layout_margin="2dp">
<ImageView
android:id="@+id/image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/ic_launcher"
android:layout_centerHorizontal="true"
android:layout_margin="5dp"
/>
<TextView
android:layout_below="@+id/image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Create Delivery Slip"
style="@style/textfont"
android:layout_centerHorizontal="true"
android:layout_margin="5dp"/>
</RelativeLayout>
<RelativeLayout
android:id="@+id/layout1"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.50"
android:gravity="center"
android:background="@android:color/white"
android:layout_margin="2dp">
<ImageView
android:id="@+id/image1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/ic_launcher"
android:layout_centerHorizontal="true"
android:layout_margin="5dp"
/>
<TextView
android:layout_below="@+id/image1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:text="Stock Audit"
style="@style/textfont"
android:layout_margin="5dp"/>
</RelativeLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<RelativeLayout
android:id="@+id/layout2"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.50"
android:gravity="center"
android:background="@android:color/white"
android:layout_margin="2dp">
<ImageView
android:id="@+id/image2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/ic_launcher"
android:layout_centerHorizontal="true"
android:layout_margin="5dp"
/>
<TextView
android:layout_below="@+id/image2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Create Delivery Slip"
style="@style/textfont"
android:layout_centerHorizontal="true"
android:layout_margin="5dp"/>
</RelativeLayout>
<RelativeLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.50"
android:layout_margin="2dp">
</RelativeLayout>
</LinearLayout>
-->
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/menu_list"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<TextView
android:id="@+id/version"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:text="Version : 1.0"
android:layout_alignParentRight="true"
style="@style/textfont"
android:layout_margin="10dp"
/>
</RelativeLayout>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_margin="3dp"
app:cardCornerRadius="3dp"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="1"
android:layout_gravity="center"
android:layout_margin="5dp">
<TextView
android:id="@+id/Id"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.7"
android:textSize="16dp"
style="@style/textfont"
android:textColor="@android:color/black"
android:layout_gravity="center"/>
<ImageView
android:id="@+id/remove"
android:layout_width="wrap_content"
android:contentDescription="TODO"
android:layout_height="wrap_content"
android:background="@drawable/ic_delete"
android:layout_gravity="center"/>
</LinearLayout>
</LinearLayout>
</androidx.cardview.widget.CardView>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_margin="5dp"
android:background="@color/bg"
app:cardCornerRadius="3dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/item_level_promotion"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/textfont"
android:textStyle="bold"
android:layout_margin="5dp"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="1"
android:layout_margin="5dp">
<TextView
android:id="@+id/create_barcode"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.50"
android:layout_marginRight="5dp"
style="@style/textfont"/>
<TextView
android:id="@+id/create_empid"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.50"
android:layout_marginLeft="5dp"
style="@style/textfont"/>
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/bg"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="1"
android:layout_margin="5dp">
<TextView
android:id="@+id/create_mrp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.50"
android:layout_marginRight="5dp"
style="@style/textfont"/>
<TextView
android:id="@+id/create_dis"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.50"
android:layout_marginLeft="5dp"
style="@style/textfont"/>
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/bg"/>
<TextView
android:id="@+id/create_netpay"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
style="@style/textfont"
android:layout_margin="5dp"/>
</LinearLayout>
</androidx.cardview.widget.CardView>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_gravity="bottom"
android:layout_margin="10dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="15dp"
android:text="Select Payment Method"
style="@style/textfont"
android:textSize="18sp"
android:textStyle="bold"
android:textColor="@android:color/black"/>
<ImageView
android:id="@+id/dialog_close"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@android:drawable/ic_menu_close_clear_cancel"
android:layout_alignParentRight="true"
android:layout_centerInParent="true"/>
</RelativeLayout>
<Spinner
android:id="@+id/bank_names"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:layout_marginBottom="10dp"
>
</Spinner>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:id="@+id/last_four_digits"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Enter last four digits"
android:layout_margin="10dp"
android:maxLength="4"
style="@style/textfont"
android:inputType="number"/>
</com.google.android.material.textfield.TextInputLayout>
<Button
android:id="@+id/bank_submit"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Submit"
android:layout_margin="10dp"
style="@style/textfont"
android:background="@drawable/background_all"
android:textColor="@android:color/white"/>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<TwoLineListItem xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:mode="twoLine"
android:orientation="horizontal"
android:paddingBottom="2dip"
android:paddingTop="2dip" >
<TextView
android:id="@+id/PrinterName"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:textSize="30sp"
android:textColor="#000000" />
<TextView
android:id="@+id/Target"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/PrinterName"
android:layout_alignStart="@+id/PrinterName" android:layout_below="@+id/PrinterName"
android:layout_margin="5dp"
android:textSize="20sp"
android:textColor="#000000" />
</TwoLineListItem>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="@android:color/white"
app:cardCornerRadius="3dp"
android:layout_margin="3dp">
<LinearLayout
android:id="@+id/layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:gravity="center"
android:layout_margin="15dp">
<ImageView
android:id="@+id/menu_image"
android:src="@mipmap/ic_launcher"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<TextView
android:id="@+id/menu_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/textfont"
android:textColor="@android:color/black"
android:text="name"/>
</LinearLayout>
</androidx.cardview.widget.CardView>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:layout_margin="5dp">
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/colorPrimary"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Bluetooth Devices List"
android:layout_margin="10dp"
android:textColor="@android:color/white"/>
<ImageView
android:id="@+id/refresh_bluetooth"
android:layout_width="wrap_content"
android:contentDescription="TODO"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:background="@drawable/ic_refresh"
android:layout_alignParentRight="true"
android:layout_margin="10dp"/>
</RelativeLayout>
<ListView
android:id="@+id/bluetooth_list"
android:layout_width="match_parent"
android:layout_height="match_parent">
</ListView>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<menu
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/dashboard_connection"
android:icon="@drawable/ic_bluetooth_signal_indicator"
android:title="connection"
app:showAsAction="always"/>
<!-- <item
android:id="@+id/option1"
android:orderInCategory="1"
android:title="Connected"
android:icon="@drawable/ic_bluetooth_indicator"
app:showAsAction="ifRoom|collapseActionView"/>-->
<item
android:id="@+id/dashboard_reload"
android:icon="@drawable/ic_refresh"
android:title="Reload"
app:showAsAction="always"/>
<item
android:id="@+id/dashboard_logout"
android:icon="@drawable/ic_power"
android:title="Delete"
app:showAsAction="always"/>
</menu>
\ No newline at end of file
......@@ -18,6 +18,7 @@
<string name="no_stores">No Stores Available</string>
<string name="login">Login</string>
<string name="dashboard">DashBoard</string>
<string name="home">Home</string>
<string name="test">Plans List</string>
<string name="spalsh">Splash Screen</string>
......@@ -27,6 +28,7 @@
<string name="stockaudit"> Stock Audit Plans </string>
<string name="rackreport"> Rack Wise Qty </string>
<string name="searchbarcode"> SEARCH BY BARCODE </string>
<string name="transfer"> STOCK TRANSFER </string>
<string name="ok"> OK </string>
<string name="relogin"> ReLogin </string>
<string name="pieces">Pieces</string>
......@@ -55,7 +57,116 @@
<string name="plan_details">Plan Details</string>
<string name="key">key</string>
<string name="action">action</string>
<string name="promotions">clear_promotion</string>
<string name="barcode_name">barcode</string>
<string name="apply_promotion">apply_promotion_on_scan</string>
<string name="qty_name">quantity</string>
<string name="items">delivery_slip_items</string>
<string name="create_title">Create Delivery Slip</string>
<string name="resolve_promotions">Resolve Promotions</string>
<string name="save">Save</string>
<string name="print">Print</string>
<string name="totalqty">total_qty</string>
<string name="netpayable">net_payable</string>
<!--<string name="section"><font color=#cc0029>SECTION :</font></string>-->
<string name="scanning">Barcode Scanning...</string>
<string name="btn_discovery">Discovery</string>
<string name="title_target">Target</string>
<string name="title_printerseries">Printer Series</string>
<string name="title_lang">Lang</string>
<string name="btn_samplereceipt">Sample Receipt</string>
<string name="btn_samplecoupon">Sample Coupon</string>
<string name="btn_restart">Restart</string>
<string name="title_activity_discovery">DiscoveryActivity</string>
<string name="title_printerlist">Printer List</string>
<string name="default_target">TCP:192.168.192.168</string>
<string name="title_warnings">Printer Warnings</string>
<string name="print_job_id">ABC123</string>
<string name="title_err_code">Error Code</string>
<string name="title_err_method">Method</string>
<string name="title_msg_result">Result</string>
<string name="title_msg_description">Description</string>
<string name="printerseries_m10">TM-m10 Series</string>
<string name="printerseries_m30">TM-m30 Series</string>
<string name="printerseries_p20">TM-P20 Series</string>
<string name="printerseries_p60">TM-P60 Series</string>
<string name="printerseries_p60ii">TM-P60II Series</string>
<string name="printerseries_p80">TM-P80 Series</string>
<string name="printerseries_t20">TM-T20 Series</string>
<string name="printerseries_t60">TM-T60 Series</string>
<string name="printerseries_t70">TM-T70 Series</string>
<string name="printerseries_t81">TM-T81 Series</string>
<string name="printerseries_t82">TM-T82 Series</string>
<string name="printerseries_t83">TM-T83 Series</string>
<string name="printerseries_t83iii">TM-T83III Series</string>
<string name="printerseries_t88">TM-T88 Series</string>
<string name="printerseries_t90">TM-T90 Series</string>
<string name="printerseries_t90kp">TM-T90KP Series</string>
<string name="printerseries_t100">TM-T100 Series</string>
<string name="printerseries_u220">TM-U220 Series</string>
<string name="printerseries_u330">TM-U330 Series</string>
<string name="printerseries_l90">TM-L90 Series</string>
<string name="printerseries_h6000">TM-H6000 Series</string>
<string name="printSpeed_1">1</string>
<string name="printSpeed_2">2</string>
<string name="printSpeed_3">3</string>
<string name="printSpeed_4">4</string>
<string name="printSpeed_5">5</string>
<string name="printSpeed_6">6</string>
<string name="printSpeed_7">7</string>
<string name="printSpeed_8">8</string>
<string name="printSpeed_9">9</string>
<string name="printSpeed_10">10</string>
<string name="printSpeed_11">11</string>
<string name="printSpeed_12">12</string>
<string name="printSpeed_13">13</string>
<string name="printSpeed_14">14</string>
<string name="printDensity_DIP">DIP</string>
<string name="printDensity_70">70%</string>
<string name="printDensity_75">75%</string>
<string name="printDensity_80">80%</string>
<string name="printDensity_85">85%</string>
<string name="printDensity_90">90%</string>
<string name="printDensity_95">95%</string>
<string name="printDensity_100">100%</string>
<string name="printDensity_105">105%</string>
<string name="printDensity_110">110%</string>
<string name="printDensity_115">115%</string>
<string name="printDensity_120">120%</string>
<string name="printDensity_125">125%</string>
<string name="printDensity_130">130%</string>
<string name="paperWidth_58">58mm</string>
<string name="paperWidth_60">60mm</string>
<string name="paperWidth_80">80mm</string>
<string name="lang_ank">ANK</string>
<string name="lang_japanese">JAPANESE</string>
<string name="lang_chinese">CHINESE</string>
<string name="lang_taiwan">TAIWAN</string>
<string name="lang_korean">KOREAN</string>
<string name="lang_thai">THAI</string>
<string name="lang_southasia">SOUTH ASIA</string>
<string name="action_settings">Settings</string>
<string name="handlingmsg_warn_receipt_near_end">Roll paper is nearly end.\n</string>
<string name="handlingmsg_warn_battery_near_end">Battery level of printer is low.\n</string>
<string name="handlingmsg_err_no_response">Please check the connection of the printer and the mobile terminal.\nConnection get lost.\n</string>
<string name="handlingmsg_err_cover_open">Please close roll paper cover.\n</string>
<string name="handlingmsg_err_receipt_end">Please check roll paper.\n</string>
<string name="handlingmsg_err_paper_feed">Please release a paper feed switch.\n</string>
<string name="handlingmsg_err_autocutter">Please remove jammed paper and close roll paper cover.\nRemove any jammed paper or foreign substances in the printer, and then turn the printer off and turn the printer on again.\n</string>
<string name="handlingmsg_err_need_recover">Then, If the printer doesn\'t recover from error, please cycle the power switch.\n</string>
<string name="handlingmsg_err_unrecover">Please cycle the power switch of the printer.\nIf same errors occurred even power cycled, the printer may out of order.</string>
<string name="handlingmsg_err_overheat">Please wait until error LED of the printer turns off. \n</string>
<string name="handlingmsg_err_head">Print head of printer is hot.\n</string>
<string name="handlingmsg_err_motor">Motor Driver IC of printer is hot.\n</string>
<string name="handlingmsg_err_battery">Battery of printer is hot.\n</string>
<string name="handlingmsg_err_wrong_paper">Please set correct roll paper.\n</string>
<string name="handlingmsg_err_battery_real_end">Please connect AC adapter or change the battery.\nBattery of printer is almost empty.\n</string>
<string name="handlingmsg_err_offline">Printer is offline.\n</string>
</resources>
\ No newline at end of file
......@@ -6,7 +6,7 @@ buildscript {
}
dependencies {
classpath "com.android.tools.build:gradle:4.0.1"
classpath 'com.google.gms:google-services:4.3.10'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
......
commit d63feb8fdb72f68521dd7549ad08cee51e87d815 (HEAD -> master, origin/master)
Author: User <ramesh.puvvadi@gmail.com>
Date: Tue Mar 9 15:26:47 2021 +0530
few changes
commit 2db0454684c6aa50ae9003313dd46ba97fe5ec39
Author: User <ramesh.puvvadi@gmail.com>
Date: Tue Mar 2 14:09:07 2021 +0530
added keyboard open searchbybarcode
commit 40384fd7c5a43b38bc1cf7d16063f7a34be26af3
Author: User <ramesh.puvvadi@gmail.com>
Date: Mon Feb 22 13:12:48 2021 +0530
initial commit
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