uae_pharma
This commit is contained in:
Generated
BIN
Binary file not shown.
@@ -28,8 +28,8 @@ android {
|
||||
versionName "4.3"*/
|
||||
|
||||
//For UAE
|
||||
versionCode 25
|
||||
versionName "3.7"
|
||||
versionCode 26
|
||||
versionName "3.8"
|
||||
|
||||
|
||||
//For Turkey
|
||||
|
||||
@@ -95,7 +95,7 @@ import cpm.com.gskmtorange.xmlGetterSetter.TableBean;
|
||||
*/
|
||||
|
||||
public class GSKOrangeDB extends SQLiteOpenHelper {
|
||||
public static final String DATABASE_NAME = "GSK_ORANGE_DB67";
|
||||
public static final String DATABASE_NAME = "GSK_ORANGE_DB68";
|
||||
public static final int DATABASE_VERSION = 15;
|
||||
TableBean tableBean;
|
||||
private SQLiteDatabase db;
|
||||
|
||||
@@ -202,8 +202,9 @@ public class LoginActivity extends AppCompatActivity implements GoogleApiClient.
|
||||
mPasswordView.setText("cpm123");*/
|
||||
|
||||
//UAE
|
||||
museridView.setText("testuae");
|
||||
mPasswordView.setText("cpm123");
|
||||
/*museridView.setText("testuae");
|
||||
mPasswordView.setText("cpm123");*/
|
||||
|
||||
|
||||
//KSA
|
||||
/* museridView.setText("Esmail.d");
|
||||
@@ -227,6 +228,12 @@ public class LoginActivity extends AppCompatActivity implements GoogleApiClient.
|
||||
// museridView.setText("test.Kenya");
|
||||
/* museridView.setText("testkenya");
|
||||
mPasswordView.setText("cpm123");*/
|
||||
|
||||
/*museridView.setText("rajesh.r");
|
||||
mPasswordView.setText("cpm123");*/
|
||||
/* museridView.setText("testuae1");
|
||||
mPasswordView.setText("cpm123");*/
|
||||
|
||||
mPasswordView.setOnEditorActionListener(new TextView.OnEditorActionListener() {
|
||||
@Override
|
||||
public boolean onEditorAction(TextView textView, int id, KeyEvent keyEvent) {
|
||||
|
||||
+52
-13
@@ -40,10 +40,8 @@ import cpm.com.gskmtorange.xmlGetterSetter.T2PGetterSetter;
|
||||
public class CategoryListActivity extends AppCompatActivity {
|
||||
RecyclerView recyclerView;
|
||||
TextView txt_categoryName;
|
||||
|
||||
ArrayList<CategoryGetterSetter> categoryList;
|
||||
CategoryListAdapter adapter;
|
||||
|
||||
GSKOrangeDB db;
|
||||
String store_id, visit_date, username, intime, date, keyAccount_id, class_id, storeType_id,camera_allow, country_id, store_flag_str, pog_type_id;
|
||||
private SharedPreferences preferences;
|
||||
@@ -52,16 +50,11 @@ public class CategoryListActivity extends AppCompatActivity {
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_category_list);
|
||||
|
||||
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
|
||||
|
||||
db = new GSKOrangeDB(this);
|
||||
db.open();
|
||||
|
||||
preferences = PreferenceManager.getDefaultSharedPreferences(this);
|
||||
|
||||
CommonFunctions.updateLangResources(getApplicationContext(), preferences.getString(CommonString.KEY_LANGUAGE, ""));
|
||||
|
||||
store_id = preferences.getString(CommonString.KEY_STORE_ID, null);
|
||||
visit_date = preferences.getString(CommonString.KEY_DATE, null);
|
||||
date = preferences.getString(CommonString.KEY_DATE, null);
|
||||
@@ -255,12 +248,32 @@ public class CategoryListActivity extends AppCompatActivity {
|
||||
}
|
||||
}
|
||||
|
||||
//new add UAE pharma
|
||||
if(flag){
|
||||
if (db.getSubCategoryMasterForPOG(category_id, storeType_id, pog_type_id, null).size() > 0) {
|
||||
|
||||
/* if (db.getSubCategoryMasterForPOG(category_id, storeType_id, pog_type_id, null).size() > 0) {
|
||||
if (db.getAfterSavePOGUploadQuestionAnswerData(store_id, category_id).size() == 0) {
|
||||
flag = false;
|
||||
}
|
||||
}*/
|
||||
if (country_id.equals("2")){
|
||||
if (camera_allow.equals("1")){
|
||||
if (db.getSubCategoryMasterForPOG(category_id, storeType_id, pog_type_id, null).size() > 0) {
|
||||
if (db.getAfterSavePOGUploadQuestionAnswerData(store_id, category_id).size() == 0) {
|
||||
flag = false;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
flag = true;
|
||||
}
|
||||
}else {
|
||||
if (db.getSubCategoryMasterForPOG(category_id, storeType_id, pog_type_id, null).size() > 0) {
|
||||
if (db.getAfterSavePOGUploadQuestionAnswerData(store_id, category_id).size() == 0) {
|
||||
flag = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (flag){
|
||||
@@ -307,9 +320,9 @@ public class CategoryListActivity extends AppCompatActivity {
|
||||
}else if (category_id.equals("8")) {
|
||||
categoryList.get(i).setCategory_img(R.mipmap.first_aid_tick);
|
||||
}else if (category_id.equals("9")) {
|
||||
categoryList.get(i).setCategory_img(R.mipmap.pain_relief_tick);
|
||||
categoryList.get(i).setCategory_img(R.mipmap.analgesics_tick);
|
||||
} else if (category_id.equals("10")) {
|
||||
categoryList.get(i).setCategory_img(R.mipmap.respiratory_health_tick);
|
||||
categoryList.get(i).setCategory_img(R.mipmap.cough_n_cold_tick);
|
||||
}
|
||||
} else {
|
||||
if (category_id.equals("1")) {
|
||||
@@ -329,9 +342,9 @@ public class CategoryListActivity extends AppCompatActivity {
|
||||
}else if (category_id.equals("8")) {
|
||||
categoryList.get(i).setCategory_img(R.mipmap.first_aid);
|
||||
}else if (category_id.equals("9")) {
|
||||
categoryList.get(i).setCategory_img(R.mipmap.pain_relief);
|
||||
categoryList.get(i).setCategory_img(R.mipmap.analgesics);
|
||||
} else if (category_id.equals("10")) {
|
||||
categoryList.get(i).setCategory_img(R.mipmap.respiratory_health);
|
||||
categoryList.get(i).setCategory_img(R.mipmap.cough_n_cold);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -661,11 +674,37 @@ public class CategoryListActivity extends AppCompatActivity {
|
||||
}
|
||||
}
|
||||
|
||||
if (db.getSubCategoryMasterForPOG(category_id, storeType_id, pog_type_id, null).size() > 0) {
|
||||
//add UAE pharma No camera pog disable
|
||||
|
||||
/* if (db.getSubCategoryMasterForPOG(category_id, storeType_id, pog_type_id, null).size() > 0) {
|
||||
if (db.getAfterSavePOGUploadQuestionAnswerData(store_id, category_id).size() == 0) {
|
||||
flag_filled = false;
|
||||
break;
|
||||
}
|
||||
}*/
|
||||
if (country_id.equals("2")){
|
||||
if (camera_allow.equals("1")){
|
||||
if (db.getSubCategoryMasterForPOG(category_id, storeType_id, pog_type_id, null).size() > 0) {
|
||||
if (db.getAfterSavePOGUploadQuestionAnswerData(store_id, category_id).size() == 0) {
|
||||
flag_filled = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}/*else {
|
||||
if (db.getSubCategoryMasterForPOG(category_id, storeType_id, pog_type_id, null).size() > 0) {
|
||||
if (db.getAfterSavePOGUploadQuestionAnswerData(store_id, category_id).size() == 0) {
|
||||
flag_filled = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}*/
|
||||
}else {
|
||||
if (db.getSubCategoryMasterForPOG(category_id, storeType_id, pog_type_id, null).size() > 0) {
|
||||
if (db.getAfterSavePOGUploadQuestionAnswerData(store_id, category_id).size() == 0) {
|
||||
flag_filled = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//Counterfeit Product Option - Egypt
|
||||
|
||||
+71
-8
@@ -321,7 +321,7 @@ public class DailyDataMenuActivity extends AppCompatActivity {
|
||||
categoryList.add(data);
|
||||
|
||||
//POG
|
||||
data = new DailyDataMenuGetterSetter();
|
||||
/* data = new DailyDataMenuGetterSetter();
|
||||
if (db.getSubCategoryMasterForPOG(categoryId, storeType_id, pog_type_id, null).size() > 0) {
|
||||
if (db.getAfterSavePOGUploadQuestionAnswerData(store_id, categoryId).size() > 0) {
|
||||
data.setCategory_img(R.mipmap.msl_availability_done);
|
||||
@@ -331,6 +331,34 @@ public class DailyDataMenuActivity extends AppCompatActivity {
|
||||
|
||||
} else {
|
||||
data.setCategory_img(R.mipmap.msl_availability_grey);
|
||||
}*/
|
||||
//new add UAE Pharma
|
||||
data = new DailyDataMenuGetterSetter();
|
||||
if (country_id.equals("2")){
|
||||
if (camera_allow.equals("1")){
|
||||
if (db.getSubCategoryMasterForPOG(categoryId, storeType_id, pog_type_id, null).size() > 0) {
|
||||
if (db.getAfterSavePOGUploadQuestionAnswerData(store_id, categoryId).size() > 0) {
|
||||
data.setCategory_img(R.mipmap.msl_availability_done);
|
||||
} else {
|
||||
data.setCategory_img(R.mipmap.msl_availability);
|
||||
}
|
||||
|
||||
} else {
|
||||
data.setCategory_img(R.mipmap.msl_availability_grey);
|
||||
}
|
||||
}else {
|
||||
data.setCategory_img(R.mipmap.msl_availability_grey);
|
||||
}
|
||||
}else {
|
||||
if (db.getSubCategoryMasterForPOG(categoryId, storeType_id, pog_type_id, null).size() > 0) {
|
||||
if (db.getAfterSavePOGUploadQuestionAnswerData(store_id, categoryId).size() > 0) {
|
||||
data.setCategory_img(R.mipmap.msl_availability_done);
|
||||
} else {
|
||||
data.setCategory_img(R.mipmap.msl_availability);
|
||||
}
|
||||
} else {
|
||||
data.setCategory_img(R.mipmap.msl_availability_grey);
|
||||
}
|
||||
}
|
||||
|
||||
data.setCategory_name(getString(R.string.pog));
|
||||
@@ -594,12 +622,32 @@ public class DailyDataMenuActivity extends AppCompatActivity {
|
||||
}
|
||||
|
||||
} else if (dailyData.getCategory_name().equalsIgnoreCase(getResources().getString(R.string.pog))) {
|
||||
if (db.getSubCategoryMasterForPOG(categoryId, storeType_id, pog_type_id, null).size() > 0) {
|
||||
//new add UAE pharma
|
||||
|
||||
/*if (db.getSubCategoryMasterForPOG(categoryId, storeType_id, pog_type_id, null).size() > 0) {
|
||||
holder.categoryName.setTextColor(getResources().getColor(R.color.colorPrimaryDark));
|
||||
} else {
|
||||
holder.categoryName.setTextColor(getResources().getColor(R.color.grey_background));
|
||||
}*/
|
||||
if (country_id.equals("2")){
|
||||
if (camera_allow.equals("1")){
|
||||
if (db.getSubCategoryMasterForPOG(categoryId, storeType_id, pog_type_id, null).size() > 0) {
|
||||
holder.categoryName.setTextColor(getResources().getColor(R.color.colorPrimaryDark));
|
||||
} else {
|
||||
holder.categoryName.setTextColor(getResources().getColor(R.color.grey_background));
|
||||
}
|
||||
}else {
|
||||
holder.categoryName.setTextColor(getResources().getColor(R.color.grey_background));
|
||||
}
|
||||
}else{
|
||||
if (db.getSubCategoryMasterForPOG(categoryId, storeType_id, pog_type_id, null).size() > 0) {
|
||||
holder.categoryName.setTextColor(getResources().getColor(R.color.colorPrimaryDark));
|
||||
} else {
|
||||
holder.categoryName.setTextColor(getResources().getColor(R.color.grey_background));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
holder.lay_menu.setOnClickListener(new View.OnClickListener() {
|
||||
@@ -722,12 +770,27 @@ public class DailyDataMenuActivity extends AppCompatActivity {
|
||||
|
||||
} else if (dailyData.getCategory_name().equalsIgnoreCase(getResources().getString(R.string.pog))) {
|
||||
|
||||
if (db.getSubCategoryMasterForPOG(categoryId, storeType_id, pog_type_id, null).size() > 0) {
|
||||
Intent intent = new Intent(DailyDataMenuActivity.this, POGQuestionsActivity.class);
|
||||
intent.putExtra("categoryName", dailyData.getCategory_name());
|
||||
intent.putExtra("categoryId", categoryId);
|
||||
startActivity(intent);
|
||||
overridePendingTransition(R.anim.activity_in, R.anim.activity_out);
|
||||
//add uae pharma
|
||||
if (country_id.equals("2")){
|
||||
if (camera_allow.equals("1")){
|
||||
if (db.getSubCategoryMasterForPOG(categoryId, storeType_id, pog_type_id, null).size() > 0) {
|
||||
Intent intent = new Intent(DailyDataMenuActivity.this, POGQuestionsActivity.class);
|
||||
intent.putExtra("categoryName", dailyData.getCategory_name());
|
||||
intent.putExtra("categoryId", categoryId);
|
||||
startActivity(intent);
|
||||
overridePendingTransition(R.anim.activity_in, R.anim.activity_out);
|
||||
}
|
||||
|
||||
}
|
||||
}else {
|
||||
if (db.getSubCategoryMasterForPOG(categoryId, storeType_id, pog_type_id, null).size() > 0) {
|
||||
Intent intent = new Intent(DailyDataMenuActivity.this, POGQuestionsActivity.class);
|
||||
intent.putExtra("categoryName", dailyData.getCategory_name());
|
||||
intent.putExtra("categoryId", categoryId);
|
||||
startActivity(intent);
|
||||
overridePendingTransition(R.anim.activity_in, R.anim.activity_out);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
} else if (dailyData.getCategory_name().equalsIgnoreCase(getResources().getString(R.string.title_activity_counterfeit_products))) {
|
||||
|
||||
-12
@@ -1,12 +0,0 @@
|
||||
/**
|
||||
* Automatically generated file. DO NOT MODIFY
|
||||
*/
|
||||
package com.androidbuts.multispinnerfilter;
|
||||
|
||||
public final class BuildConfig {
|
||||
public static final boolean DEBUG = Boolean.parseBoolean("true");
|
||||
public static final String LIBRARY_PACKAGE_NAME = "com.androidbuts.multispinnerfilter";
|
||||
public static final String BUILD_TYPE = "debug";
|
||||
public static final int VERSION_CODE = 1;
|
||||
public static final String VERSION_NAME = "1.0";
|
||||
}
|
||||
Reference in New Issue
Block a user