Merge branch 'master' into ysy_T2P_upload
@@ -41,7 +41,7 @@
|
||||
<ConfirmationsSetting value="0" id="Add" />
|
||||
<ConfirmationsSetting value="0" id="Remove" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||
</component>
|
||||
<component name="ProjectType">
|
||||
|
||||
@@ -68,7 +68,6 @@
|
||||
android:label="@string/title_activity_store_geotag"
|
||||
android:screenOrientation="portrait"
|
||||
android:theme="@style/AppTheme.NoActionBar" />
|
||||
|
||||
<meta-data
|
||||
android:name="com.google.android.maps.v2.API_KEY"
|
||||
android:value="AIzaSyD02po19go2JMhXJeAnKDiZSiNloPsWqzI" />
|
||||
@@ -121,6 +120,12 @@
|
||||
android:theme="@style/AppTheme.NoActionBar"
|
||||
android:windowSoftInputMode="adjustPan" />
|
||||
|
||||
<activity
|
||||
android:name=".gsk_dailyentry.StoreWisePerformanceActivity"
|
||||
android:configChanges="screenSize|orientation|keyboardHidden"
|
||||
android:screenOrientation="portrait"
|
||||
android:theme="@style/AppTheme.NoActionBar"
|
||||
android:windowSoftInputMode="adjustPan" />
|
||||
<!-- Gagan End Declaration -->
|
||||
|
||||
<activity
|
||||
@@ -128,21 +133,21 @@
|
||||
android:configChanges="screenSize|orientation|keyboardHidden"
|
||||
android:label="@string/title_activity_Non_Work"
|
||||
android:screenOrientation="portrait"
|
||||
android:theme="@style/AppTheme.NoActionBar"></activity>
|
||||
|
||||
|
||||
<activity
|
||||
android:theme="@style/AppTheme.NoActionBar"/>
|
||||
|
||||
<activity
|
||||
android:name=".dailyentry.AdditionalVisibility"
|
||||
android:configChanges="screenSize|orientation|keyboardHidden"
|
||||
android:label="@string/title_activity_Additional_visibility"
|
||||
android:screenOrientation="portrait"
|
||||
android:theme="@style/AppTheme.NoActionBar"></activity>
|
||||
android:theme="@style/AppTheme.NoActionBar"/>
|
||||
|
||||
<activity
|
||||
android:name=".upload.UploadActivity"
|
||||
android:configChanges="screenSize|orientation|keyboardHidden"
|
||||
android:label="@string/title_activity_upload"
|
||||
android:screenOrientation="portrait" />
|
||||
|
||||
|
||||
</application>
|
||||
|
||||
|
||||
@@ -15,7 +15,9 @@ import cpm.com.gskmtorange.GetterSetter.AddittionalGetterSetter;
|
||||
import cpm.com.gskmtorange.GetterSetter.CoverageBean;
|
||||
import cpm.com.gskmtorange.GetterSetter.GeotaggingBeans;
|
||||
import cpm.com.gskmtorange.GetterSetter.StoreBean;
|
||||
import cpm.com.gskmtorange.xmlGetterSetter.CategoryWisePerformaceGetterSetter;
|
||||
import cpm.com.gskmtorange.GetterSetter.AdditionalDialogGetterSetter;
|
||||
|
||||
import cpm.com.gskmtorange.xmlGetterSetter.NonWorkingReasonGetterSetter;
|
||||
import cpm.com.gskmtorange.constant.CommonString;
|
||||
import cpm.com.gskmtorange.xmlGetterSetter.BrandMasterGetterSetter;
|
||||
@@ -32,9 +34,11 @@ import cpm.com.gskmtorange.xmlGetterSetter.MappingDisplayChecklistGetterSetter;
|
||||
import cpm.com.gskmtorange.xmlGetterSetter.MappingPromotionGetterSetter;
|
||||
import cpm.com.gskmtorange.xmlGetterSetter.MappingStockGetterSetter;
|
||||
import cpm.com.gskmtorange.xmlGetterSetter.Promo_Compliance_DataGetterSetter;
|
||||
import cpm.com.gskmtorange.xmlGetterSetter.STORE_PERFORMANCE_MasterGetterSetter;
|
||||
import cpm.com.gskmtorange.xmlGetterSetter.SkuGetterSetter;
|
||||
import cpm.com.gskmtorange.xmlGetterSetter.SkuMasterGetterSetter;
|
||||
import cpm.com.gskmtorange.xmlGetterSetter.Stock_FacingGetterSetter;
|
||||
import cpm.com.gskmtorange.xmlGetterSetter.StoreWisePerformaceGetterSetter;
|
||||
import cpm.com.gskmtorange.xmlGetterSetter.SubCategoryMasterGetterSetter;
|
||||
import cpm.com.gskmtorange.xmlGetterSetter.T2PGetterSetter;
|
||||
import cpm.com.gskmtorange.xmlGetterSetter.TableBean;
|
||||
@@ -91,6 +95,8 @@ public class GSKOrangeDB extends SQLiteOpenHelper {
|
||||
db.execSQL(CommonString.CREATE_TABLE_INSERT_ADDITIONAL_PROMO_COMPLIANCE);
|
||||
db.execSQL(CommonString.CREATE_TABLE_INSERT_PROMO_SKU);
|
||||
|
||||
db.execSQL(TableBean.getStorePerformance());
|
||||
|
||||
//Gagan End
|
||||
|
||||
db.execSQL(CommonString.CREATE_TABLE_STORE_GEOTAGGING);
|
||||
@@ -111,7 +117,10 @@ public class GSKOrangeDB extends SQLiteOpenHelper {
|
||||
db.execSQL("DROP TABLE IF EXISTS " + TableBean.getJourneyPlan());
|
||||
}
|
||||
|
||||
public void deleteTableWithStoreID(String storeid, String process_id) {
|
||||
public void deleteTableWithStoreID(String storeid) {
|
||||
|
||||
db.delete( CommonString.TABLE_COVERAGE_DATA, CommonString.KEY_STORE_ID + "='" + storeid + "'", null);
|
||||
|
||||
}
|
||||
|
||||
public void deleteAllTables() {
|
||||
@@ -1997,6 +2006,109 @@ public class GSKOrangeDB extends SQLiteOpenHelper {
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
//Store wise Performance
|
||||
public void InsertSTORE_PERFORMANCE(STORE_PERFORMANCE_MasterGetterSetter data) {
|
||||
db.delete("STORE_PERFORMANCE", null, null);
|
||||
|
||||
ContentValues values = new ContentValues();
|
||||
try {
|
||||
for (int i = 0; i < data.getSTORE_ID().size(); i++) {
|
||||
|
||||
values.put("STORE_ID", data.getSTORE_ID().get(i));
|
||||
values.put("CATEGORY_ID", data.getCATEGORY_ID().get(i));
|
||||
values.put("PERIOD", data.getPERIOD().get(i));
|
||||
values.put("MSL_AVAILABILITY", data.getMSL_AVAILABILITY().get(i));
|
||||
values.put("SOS", data.getSOS().get(i));
|
||||
values.put("T2P", data.getT2P().get(i));
|
||||
values.put("PROMO", data.getPROMO().get(i));
|
||||
values.put("OSS", data.getOSS().get(i));
|
||||
values.put("ORDERID", data.getORDERID().get(i));
|
||||
|
||||
db.insert("STORE_PERFORMANCE", null, values);
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
Log.d("Exception ", " STORE_PERFORMANCE " + ex.toString());
|
||||
}
|
||||
}
|
||||
|
||||
//Category wise Performance
|
||||
public ArrayList<CategoryWisePerformaceGetterSetter> getCategoryWisePerformance(String store_id, String category_id) {
|
||||
ArrayList<CategoryWisePerformaceGetterSetter> list = new ArrayList<>();
|
||||
Cursor dbcursor = null;
|
||||
|
||||
try {
|
||||
dbcursor = db.rawQuery("Select * from STORE_PERFORMANCE " +
|
||||
"where STORE_ID='" + store_id + "' and CATEGORY_ID='" + category_id + "'", null);
|
||||
|
||||
if (dbcursor != null) {
|
||||
dbcursor.moveToFirst();
|
||||
while (!dbcursor.isAfterLast()) {
|
||||
CategoryWisePerformaceGetterSetter cd = new CategoryWisePerformaceGetterSetter();
|
||||
|
||||
cd.setStore_id(dbcursor.getString(dbcursor.getColumnIndexOrThrow("STORE_ID")));
|
||||
cd.setCategory_id(dbcursor.getString(dbcursor.getColumnIndexOrThrow("CATEGORY_ID")));
|
||||
cd.setPeriod(dbcursor.getString(dbcursor.getColumnIndexOrThrow("PERIOD")));
|
||||
cd.setMsl_availability(dbcursor.getString(dbcursor.getColumnIndexOrThrow("MSL_AVAILABILITY")));
|
||||
cd.setSos(dbcursor.getString(dbcursor.getColumnIndexOrThrow("SOS")));
|
||||
cd.setT2p(dbcursor.getString(dbcursor.getColumnIndexOrThrow("T2P")));
|
||||
cd.setPromo(dbcursor.getString(dbcursor.getColumnIndexOrThrow("PROMO")));
|
||||
cd.setOss(dbcursor.getString(dbcursor.getColumnIndexOrThrow("OSS")));
|
||||
cd.setOrder_id(dbcursor.getString(dbcursor.getColumnIndexOrThrow("ORDERID")));
|
||||
|
||||
list.add(cd);
|
||||
dbcursor.moveToNext();
|
||||
}
|
||||
dbcursor.close();
|
||||
return list;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
Log.d("Exception ", "getPromoComplianceSkuData!" + e.toString());
|
||||
return list;
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
public ArrayList<StoreWisePerformaceGetterSetter> getStoreWisePerformance(String store_id) {
|
||||
ArrayList<StoreWisePerformaceGetterSetter> list = new ArrayList<>();
|
||||
Cursor dbcursor = null;
|
||||
|
||||
try {
|
||||
dbcursor = db.rawQuery("Select PERIOD, ROUND(avg(MSL_AVAILABILITY),1) as MSL_AVAILABILITY,ROUND(avg(sos),1) as SOS ," +
|
||||
" ROUND(avg(t2p),1) as T2P,ROUND(avg(pROMO),1) as PROMO,ROUND(SUM(oss),1) AS OSS " +
|
||||
"from STORE_PERFORMANCE " +
|
||||
"where STORE_ID='" + store_id + "' " +
|
||||
"GROUP BY PERIOD " +
|
||||
"ORDER BY ORDERID ", null);
|
||||
|
||||
if (dbcursor != null) {
|
||||
dbcursor.moveToFirst();
|
||||
while (!dbcursor.isAfterLast()) {
|
||||
StoreWisePerformaceGetterSetter cd = new StoreWisePerformaceGetterSetter();
|
||||
|
||||
/* cd.setStore_id(dbcursor.getString(dbcursor.getColumnIndexOrThrow("STORE_ID")));
|
||||
cd.setCategory_id(dbcursor.getString(dbcursor.getColumnIndexOrThrow("CATEGORY_ID")));*/
|
||||
cd.setPeriod(dbcursor.getString(dbcursor.getColumnIndexOrThrow("PERIOD")));
|
||||
cd.setMsl_availability(dbcursor.getString(dbcursor.getColumnIndexOrThrow("MSL_AVAILABILITY")));
|
||||
cd.setSos(dbcursor.getString(dbcursor.getColumnIndexOrThrow("SOS")));
|
||||
cd.setT2p(dbcursor.getString(dbcursor.getColumnIndexOrThrow("T2P")));
|
||||
cd.setPromo(dbcursor.getString(dbcursor.getColumnIndexOrThrow("PROMO")));
|
||||
cd.setOss(dbcursor.getString(dbcursor.getColumnIndexOrThrow("OSS")));
|
||||
// cd.setOrder_id(dbcursor.getString(dbcursor.getColumnIndexOrThrow("ORDERID")));
|
||||
|
||||
list.add(cd);
|
||||
dbcursor.moveToNext();
|
||||
}
|
||||
dbcursor.close();
|
||||
return list;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
Log.d("Exception ", "getPromoComplianceSkuData!" + e.toString());
|
||||
return list;
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
//Gagan end new code 1
|
||||
|
||||
public void InsertStockDialog(AdditionalDialogGetterSetter data) {
|
||||
@@ -2265,6 +2377,9 @@ public class GSKOrangeDB extends SQLiteOpenHelper {
|
||||
|
||||
sb.setSku(cursordata.getString(cursordata
|
||||
.getColumnIndexOrThrow("sku_name")));
|
||||
sb.setBtn_toogle(cursordata.getString(cursordata
|
||||
.getColumnIndexOrThrow("toggle_value")));
|
||||
|
||||
|
||||
productData.add(sb);
|
||||
cursordata.moveToNext();
|
||||
@@ -2280,6 +2395,19 @@ public class GSKOrangeDB extends SQLiteOpenHelper {
|
||||
return productData;
|
||||
|
||||
}
|
||||
public void updateStoreStatus(String storeid, String visitdate,
|
||||
String status) {
|
||||
|
||||
try {
|
||||
ContentValues values = new ContentValues();
|
||||
values.put(CommonString.KEY_CHECKOUT_STATUS, status);
|
||||
|
||||
db.update("JOURNEY_PLAN", values, CommonString.KEY_STORE_ID + "='" + storeid + "' AND " + CommonString.KEY_VISIT_DATE + "='" + visitdate + "'", null);
|
||||
} catch (Exception e) {
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public void InsertT2PData(ArrayList<T2PGetterSetter> data, String store_id, String category_id) {
|
||||
db.delete(CommonString.TABLE_INSERT_T2P_COMPLIANCE, CommonString.KEY_STORE_ID + "='" + store_id + "' AND " + CommonString.KEY_CATEGORY_ID + "='" + category_id + "'", null);
|
||||
|
||||
@@ -114,7 +114,7 @@ public class AdditionalVisibility extends AppCompatActivity implements View.OnCl
|
||||
store_id = preferences.getString(CommonString.KEY_STORE_ID, null);
|
||||
|
||||
|
||||
store_id = "1";
|
||||
store_id = "2";
|
||||
date = preferences.getString(CommonString.KEY_DATE, null);
|
||||
intime = preferences.getString(CommonString.KEY_STORE_IN_TIME, "");
|
||||
|
||||
@@ -255,6 +255,7 @@ public class AdditionalVisibility extends AppCompatActivity implements View.OnCl
|
||||
|
||||
btntoggle.setChecked(true);
|
||||
|
||||
btnimage.setBackgroundResource(R.mipmap.camera);
|
||||
togglevalue = "1";
|
||||
brandlayout.setVisibility(View.VISIBLE);
|
||||
diaplylayout.setVisibility(View.VISIBLE);
|
||||
@@ -611,10 +612,9 @@ public class AdditionalVisibility extends AppCompatActivity implements View.OnCl
|
||||
|
||||
if (_pathforcheck != null && !_pathforcheck.equals("")) {
|
||||
if (new File(str + _pathforcheck).exists()) {
|
||||
// Bitmap bmp = BitmapFactory.decodeFile(str + _pathforcheck);
|
||||
// img_cam.setImageBitmap(bmp);
|
||||
// img_clicked.setVisibility(View.GONE);
|
||||
// img_cam.setVisibility(View.VISIBLE);
|
||||
|
||||
btnimage.setBackgroundResource(R.mipmap.camera_done);
|
||||
|
||||
img_str = _pathforcheck;
|
||||
_pathforcheck = "";
|
||||
}
|
||||
|
||||
@@ -42,6 +42,7 @@ import cpm.com.gskmtorange.GetterSetter.StoreBean;
|
||||
import cpm.com.gskmtorange.R;
|
||||
import cpm.com.gskmtorange.constant.CommonString;
|
||||
import cpm.com.gskmtorange.download.DownloadActivity;
|
||||
import cpm.com.gskmtorange.gsk_dailyentry.CategoryListActivity;
|
||||
|
||||
/**
|
||||
* Created by ashishc on 29-12-2016.
|
||||
@@ -250,7 +251,6 @@ public class StoreListActivity extends AppCompatActivity {
|
||||
|
||||
store_id = current.getSTORE_ID();
|
||||
|
||||
|
||||
if (current.getUPLOAD_STATUS().equalsIgnoreCase(CommonString.KEY_U)) {
|
||||
Snackbar.make(v, R.string.title_store_list_activity_store_already_done, Snackbar.LENGTH_LONG).setAction("Action", null).show();
|
||||
} else if (current.getUPLOAD_STATUS().equalsIgnoreCase(CommonString.KEY_D)) {
|
||||
@@ -361,13 +361,29 @@ public class StoreListActivity extends AppCompatActivity {
|
||||
public void onCheckedChanged(RadioGroup group, int checkedId) {
|
||||
// find which radio button is selected
|
||||
if (checkedId == R.id.yes) {
|
||||
|
||||
Intent in = new Intent(StoreListActivity.this, StoreimageActivity.class);
|
||||
startActivity(in);
|
||||
|
||||
overridePendingTransition(R.anim.activity_in, R.anim.activity_out);
|
||||
|
||||
dialog.cancel();
|
||||
boolean flag=true;
|
||||
if(coverage.size()>0) {
|
||||
for (int i = 0; i < coverage.size(); i++) {
|
||||
if (store_id.equals(coverage.get(i).getStoreId())) {
|
||||
flag=false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if(flag==true)
|
||||
{
|
||||
Intent in = new Intent(StoreListActivity.this, StoreimageActivity.class);
|
||||
startActivity(in);
|
||||
overridePendingTransition(R.anim.activity_in, R.anim.activity_out);
|
||||
dialog.cancel();
|
||||
}
|
||||
else
|
||||
{
|
||||
Intent in=new Intent(StoreListActivity.this,CategoryListActivity.class);
|
||||
startActivity(in);
|
||||
overridePendingTransition(R.anim.activity_in, R.anim.activity_out);
|
||||
dialog.cancel();
|
||||
}
|
||||
|
||||
} else if (checkedId == R.id.no) {
|
||||
|
||||
@@ -383,6 +399,9 @@ public class StoreListActivity extends AppCompatActivity {
|
||||
int id) {
|
||||
|
||||
|
||||
UpdateStore(store_id);
|
||||
|
||||
|
||||
|
||||
Intent in = new Intent(StoreListActivity.this, NonWorkingReason.class);
|
||||
startActivity(in);
|
||||
@@ -404,8 +423,6 @@ public class StoreListActivity extends AppCompatActivity {
|
||||
} else {
|
||||
|
||||
|
||||
|
||||
|
||||
Intent in = new Intent(StoreListActivity.this, NonWorkingReason.class);
|
||||
startActivity(in);
|
||||
}
|
||||
@@ -439,5 +456,12 @@ public class StoreListActivity extends AppCompatActivity {
|
||||
return result_flag;
|
||||
}
|
||||
|
||||
public void UpdateStore(String storeid) {
|
||||
|
||||
db.open();
|
||||
db.deleteTableWithStoreID(storeid);
|
||||
|
||||
db.updateStoreStatus(storeid, storelist.get(0).getVISIT_DATE(), "N");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,6 +40,7 @@ import cpm.com.gskmtorange.constant.CommonString;
|
||||
import cpm.com.gskmtorange.Database.GSKOrangeDB;
|
||||
import cpm.com.gskmtorange.GetterSetter.CoverageBean;
|
||||
import cpm.com.gskmtorange.gsk_dailyentry.CategoryListActivity;
|
||||
import cpm.com.gskmtorange.gsk_dailyentry.StoreWisePerformanceActivity;
|
||||
|
||||
/**
|
||||
* Created by ashishc on 31-05-2016.
|
||||
@@ -198,7 +199,8 @@ public class StoreimageActivity extends AppCompatActivity implements View.OnClic
|
||||
editor.commit();*/
|
||||
|
||||
|
||||
Intent in = new Intent(StoreimageActivity.this, CategoryListActivity.class);
|
||||
//Intent in = new Intent(StoreimageActivity.this, CategoryListActivity.class);
|
||||
Intent in = new Intent(StoreimageActivity.this, StoreWisePerformanceActivity.class);
|
||||
startActivity(in);
|
||||
finish();
|
||||
}
|
||||
@@ -268,8 +270,7 @@ public class StoreimageActivity extends AppCompatActivity implements View.OnClic
|
||||
intent.putExtra(MediaStore.EXTRA_OUTPUT, outputFileUri);
|
||||
intent.setPackage(defaultCameraPackage);
|
||||
startActivityForResult(intent, 0);
|
||||
}
|
||||
catch (ActivityNotFoundException e) {
|
||||
} catch (ActivityNotFoundException e) {
|
||||
e.printStackTrace();
|
||||
|
||||
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
|
||||
@@ -277,8 +278,7 @@ public class StoreimageActivity extends AppCompatActivity implements View.OnClic
|
||||
intent.setPackage(gallery_package);
|
||||
startActivityForResult(intent, 0);
|
||||
|
||||
}
|
||||
catch (Exception e) {
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,6 +39,7 @@ import cpm.com.gskmtorange.xmlGetterSetter.MappingDisplayChecklistGetterSetter;
|
||||
import cpm.com.gskmtorange.xmlGetterSetter.MappingPromotionGetterSetter;
|
||||
import cpm.com.gskmtorange.xmlGetterSetter.MappingStockGetterSetter;
|
||||
import cpm.com.gskmtorange.xmlGetterSetter.NonWorkingReasonGetterSetter;
|
||||
import cpm.com.gskmtorange.xmlGetterSetter.STORE_PERFORMANCE_MasterGetterSetter;
|
||||
import cpm.com.gskmtorange.xmlGetterSetter.SkuMasterGetterSetter;
|
||||
import cpm.com.gskmtorange.xmlGetterSetter.SubCategoryMasterGetterSetter;
|
||||
import cpm.com.gskmtorange.xmlGetterSetter.TableBean;
|
||||
@@ -68,6 +69,7 @@ public class DownloadActivity extends AppCompatActivity {
|
||||
NonWorkingReasonGetterSetter nonWorkingReasonGetterSetter;
|
||||
MappingPromotionGetterSetter mappingPromotionGetterSetter;
|
||||
MAPPING_ADDITIONAL_PROMOTION_MasterGetterSetter mapping_additional_promotion_masterGetterSetter;
|
||||
STORE_PERFORMANCE_MasterGetterSetter store_performance_masterGetterSetter;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
@@ -584,6 +586,43 @@ public class DownloadActivity extends AppCompatActivity {
|
||||
}
|
||||
publishProgress(data);
|
||||
|
||||
|
||||
//STORE_PERFORMANCE
|
||||
request = new SoapObject(CommonString.NAMESPACE, CommonString.METHOD_NAME_UNIVERSAL_DOWNLOAD);
|
||||
request.addProperty("UserName", userId);
|
||||
request.addProperty("Type", "STORE_PERFORMANCE");
|
||||
request.addProperty("cultureid", culture_id);
|
||||
|
||||
envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
|
||||
envelope.dotNet = true;
|
||||
envelope.setOutputSoapObject(request);
|
||||
|
||||
androidHttpTransport = new HttpTransportSE(CommonString.URL);
|
||||
androidHttpTransport.call(CommonString.SOAP_ACTION_UNIVERSAL, envelope);
|
||||
|
||||
result = (Object) envelope.getResponse();
|
||||
|
||||
if (result.toString() != null) {
|
||||
xpp.setInput(new StringReader(result.toString()));
|
||||
xpp.next();
|
||||
eventType = xpp.getEventType();
|
||||
store_performance_masterGetterSetter = XMLHandlers.STORE_PERFORMANCEXMLHandler(xpp, eventType);
|
||||
|
||||
if (store_performance_masterGetterSetter.getSTORE_ID().size() > 0) {
|
||||
String table_store_performace = store_performance_masterGetterSetter.getTable_STORE_PERFORMANCE();
|
||||
if (table_store_performace != null) {
|
||||
resultHttp = CommonString.KEY_SUCCESS;
|
||||
TableBean.setStorePerformance(table_store_performace);
|
||||
}
|
||||
} else {
|
||||
//return "STORE_PERFORMANCE";
|
||||
}
|
||||
data.value = 100;
|
||||
data.name = "STORE_PERFORMANCE Data Download";
|
||||
}
|
||||
publishProgress(data);
|
||||
|
||||
|
||||
//Gagan end code
|
||||
|
||||
|
||||
@@ -605,6 +644,8 @@ public class DownloadActivity extends AppCompatActivity {
|
||||
|
||||
db.insertNonWorkingData(nonWorkingReasonGetterSetter);
|
||||
|
||||
db.InsertSTORE_PERFORMANCE(store_performance_masterGetterSetter);
|
||||
|
||||
} catch (MalformedURLException e) {
|
||||
/*final AlertMessage message = new AlertMessage(
|
||||
CompleteDownloadActivity.this,
|
||||
|
||||
@@ -2,7 +2,10 @@ package cpm.com.gskmtorange.gsk_dailyentry;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.SharedPreferences;
|
||||
import android.content.res.Resources;
|
||||
import android.os.Bundle;
|
||||
import android.preference.PreferenceManager;
|
||||
import android.support.design.widget.FloatingActionButton;
|
||||
import android.support.v7.app.AppCompatActivity;
|
||||
import android.support.v7.widget.LinearLayoutManager;
|
||||
@@ -19,121 +22,84 @@ import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import cpm.com.gskmtorange.Database.GSKOrangeDB;
|
||||
import cpm.com.gskmtorange.R;
|
||||
import cpm.com.gskmtorange.constant.CommonString;
|
||||
import cpm.com.gskmtorange.xmlGetterSetter.CategoryWisePerformaceGetterSetter;
|
||||
|
||||
public class CategoryWisePerformanceActivity extends AppCompatActivity {
|
||||
TextView txt_categoryName;
|
||||
RecyclerView recyclerView;
|
||||
Toolbar toolbar;
|
||||
|
||||
String categoryName = "", categoryId;
|
||||
|
||||
ArrayList<CategoryWisePerformaceGetterSetter> categoryWisePerformanceList;
|
||||
CategoryWisePerformaceAdapter adapter;
|
||||
|
||||
GSKOrangeDB db;
|
||||
private SharedPreferences preferences;
|
||||
String store_id, visit_date, username, intime, date, keyAccount_id, class_id, storeType_id;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_category_wise_performance);
|
||||
try {
|
||||
setContentView(R.layout.activity_category_wise_performance);
|
||||
|
||||
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
|
||||
toolbar = (Toolbar) findViewById(R.id.toolbar);
|
||||
recyclerView = (RecyclerView) findViewById(R.id.recyclerView);
|
||||
|
||||
recyclerView = (RecyclerView) findViewById(R.id.recyclerView);
|
||||
//txt_categoryName = (TextView) findViewById(R.id.txt_categoryName);
|
||||
db = new GSKOrangeDB(this);
|
||||
db.open();
|
||||
|
||||
categoryName = getIntent().getStringExtra("categoryName");
|
||||
categoryId = getIntent().getStringExtra("categoryId");
|
||||
//preference data
|
||||
preferences = PreferenceManager.getDefaultSharedPreferences(this);
|
||||
store_id = preferences.getString(CommonString.KEY_STORE_ID, null);
|
||||
visit_date = preferences.getString(CommonString.KEY_DATE, null);
|
||||
date = preferences.getString(CommonString.KEY_DATE, null);
|
||||
username = preferences.getString(CommonString.KEY_USERNAME, null);
|
||||
intime = preferences.getString(CommonString.KEY_STORE_IN_TIME, "");
|
||||
keyAccount_id = preferences.getString(CommonString.KEY_KEYACCOUNT_ID, "");
|
||||
class_id = preferences.getString(CommonString.KEY_CLASS_ID, "");
|
||||
storeType_id = preferences.getString(CommonString.KEY_STORETYPE_ID, "");
|
||||
|
||||
//txt_categoryName.setText(getResources().getString(R.string.title_activity_category_wise_performance) + " " + categoryName);
|
||||
toolbar.setTitle(getResources().getString(R.string.title_activity_category_wise_performance) + " " + categoryName);
|
||||
setSupportActionBar(toolbar);
|
||||
getSupportActionBar().setHomeButtonEnabled(true);
|
||||
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||||
//Intent data
|
||||
categoryName = getIntent().getStringExtra("categoryName");
|
||||
categoryId = getIntent().getStringExtra("categoryId");
|
||||
|
||||
FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
|
||||
fab.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
Intent intent = new Intent(CategoryWisePerformanceActivity.this, DailyDataMenuActivity.class);
|
||||
intent.putExtra("categoryName", categoryName);
|
||||
intent.putExtra("categoryId", categoryId);
|
||||
startActivity(intent);
|
||||
}
|
||||
});
|
||||
//txt_categoryName.setText(getResources().getString(R.string.title_activity_category_wise_performance) + " " + categoryName);
|
||||
toolbar.setTitle(getResources().getString(R.string.title_activity_category_wise_performance) + " " + categoryName);
|
||||
setSupportActionBar(toolbar);
|
||||
getSupportActionBar().setHomeButtonEnabled(true);
|
||||
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||||
|
||||
FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
|
||||
fab.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
Intent intent = new Intent(CategoryWisePerformanceActivity.this, DailyDataMenuActivity.class);
|
||||
intent.putExtra("categoryName", categoryName);
|
||||
intent.putExtra("categoryId", categoryId);
|
||||
startActivity(intent);
|
||||
}
|
||||
});
|
||||
} catch (Resources.NotFoundException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onResume() {
|
||||
super.onResume();
|
||||
try {
|
||||
categoryWisePerformanceList = db.getCategoryWisePerformance(store_id, categoryId);
|
||||
|
||||
categoryWisePerformanceList = new ArrayList<>();
|
||||
CategoryWisePerformaceGetterSetter data = new CategoryWisePerformaceGetterSetter();
|
||||
|
||||
data.setPeriod("Period");
|
||||
data.setSos("SOS");
|
||||
data.setT2p("T2P");
|
||||
data.setPromo("Promo");
|
||||
data.setMsl_availability("MSL Availability");
|
||||
data.setOss("OSS");
|
||||
categoryWisePerformanceList.add(data);
|
||||
|
||||
data = new CategoryWisePerformaceGetterSetter();
|
||||
data.setPeriod("LTM");
|
||||
data.setSos("75");
|
||||
data.setT2p("0");
|
||||
data.setPromo("0");
|
||||
data.setMsl_availability("25");
|
||||
data.setOss("55");
|
||||
categoryWisePerformanceList.add(data);
|
||||
|
||||
data = new CategoryWisePerformaceGetterSetter();
|
||||
data.setPeriod("MTM");
|
||||
data.setSos("75");
|
||||
data.setT2p("0");
|
||||
data.setPromo("0");
|
||||
data.setMsl_availability("25");
|
||||
data.setOss("55");
|
||||
categoryWisePerformanceList.add(data);
|
||||
|
||||
data = new CategoryWisePerformaceGetterSetter();
|
||||
data.setPeriod("RTM");
|
||||
data.setSos("75");
|
||||
data.setT2p("0");
|
||||
data.setPromo("0");
|
||||
data.setMsl_availability("25");
|
||||
data.setOss("55");
|
||||
categoryWisePerformanceList.add(data);
|
||||
|
||||
data = new CategoryWisePerformaceGetterSetter();
|
||||
data.setPeriod("LTM");
|
||||
data.setSos("75");
|
||||
data.setT2p("0");
|
||||
data.setPromo("0");
|
||||
data.setMsl_availability("25");
|
||||
data.setOss("55");
|
||||
categoryWisePerformanceList.add(data);
|
||||
|
||||
data = new CategoryWisePerformaceGetterSetter();
|
||||
data.setPeriod("MTM");
|
||||
data.setSos("75");
|
||||
data.setT2p("0");
|
||||
data.setPromo("0");
|
||||
data.setMsl_availability("25");
|
||||
data.setOss("55");
|
||||
categoryWisePerformanceList.add(data);
|
||||
|
||||
data = new CategoryWisePerformaceGetterSetter();
|
||||
data.setPeriod("RTM");
|
||||
data.setSos("75");
|
||||
data.setT2p("0");
|
||||
data.setPromo("0");
|
||||
data.setMsl_availability("25");
|
||||
data.setOss("55");
|
||||
categoryWisePerformanceList.add(data);
|
||||
|
||||
adapter = new CategoryWisePerformaceAdapter(CategoryWisePerformanceActivity.this, categoryWisePerformanceList);
|
||||
recyclerView.setAdapter(adapter);
|
||||
recyclerView.setLayoutManager(new LinearLayoutManager(getApplicationContext()));
|
||||
adapter = new CategoryWisePerformaceAdapter(CategoryWisePerformanceActivity.this, categoryWisePerformanceList);
|
||||
recyclerView.setAdapter(adapter);
|
||||
recyclerView.setLayoutManager(new LinearLayoutManager(getApplicationContext()));
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
public class CategoryWisePerformaceAdapter extends RecyclerView.Adapter<CategoryWisePerformaceAdapter.MyViewHolder> {
|
||||
@@ -158,11 +124,18 @@ public class CategoryWisePerformanceActivity extends AppCompatActivity {
|
||||
public void onBindViewHolder(CategoryWisePerformaceAdapter.MyViewHolder holder, int position) {
|
||||
final CategoryWisePerformaceGetterSetter categoryData = list.get(position);
|
||||
|
||||
holder.txt_period.setText(categoryData.getPeriod());
|
||||
if (categoryData.getPeriod().equalsIgnoreCase("LTM")) {
|
||||
holder.txt_period.setText(getResources().getString(R.string.category_performance_ltm));
|
||||
} else if (categoryData.getPeriod().equalsIgnoreCase("MTD")) {
|
||||
holder.txt_period.setText(getResources().getString(R.string.category_performance_mtd));
|
||||
} else if (categoryData.getPeriod().equalsIgnoreCase("LSV")) {
|
||||
holder.txt_period.setText(getResources().getString(R.string.category_performance_lsv));
|
||||
}
|
||||
//holder.txt_period.setText(categoryData.getPeriod());
|
||||
holder.txt_msl_availability.setText(categoryData.getMsl_availability());
|
||||
holder.txt_sos.setText(categoryData.getSos());
|
||||
holder.txt_t2p.setText(categoryData.getT2p());
|
||||
holder.txt_promo.setText(categoryData.getPromo());
|
||||
holder.txt_msl_availability.setText(categoryData.getMsl_availability());
|
||||
holder.txt_oss.setText(categoryData.getOss());
|
||||
}
|
||||
|
||||
@@ -186,7 +159,6 @@ public class CategoryWisePerformanceActivity extends AppCompatActivity {
|
||||
txt_oss = (TextView) itemView.findViewById(R.id.txt_oss);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -0,0 +1,173 @@
|
||||
package cpm.com.gskmtorange.gsk_dailyentry;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.SharedPreferences;
|
||||
import android.content.res.Resources;
|
||||
import android.os.Bundle;
|
||||
import android.preference.PreferenceManager;
|
||||
import android.support.design.widget.FloatingActionButton;
|
||||
import android.support.v7.app.AppCompatActivity;
|
||||
import android.support.v7.widget.LinearLayoutManager;
|
||||
import android.support.v7.widget.RecyclerView;
|
||||
import android.support.v7.widget.Toolbar;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.MenuItem;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import cpm.com.gskmtorange.Database.GSKOrangeDB;
|
||||
import cpm.com.gskmtorange.R;
|
||||
import cpm.com.gskmtorange.constant.CommonString;
|
||||
import cpm.com.gskmtorange.xmlGetterSetter.CategoryWisePerformaceGetterSetter;
|
||||
import cpm.com.gskmtorange.xmlGetterSetter.StoreWisePerformaceGetterSetter;
|
||||
|
||||
public class StoreWisePerformanceActivity extends AppCompatActivity {
|
||||
RecyclerView recyclerView;
|
||||
Toolbar toolbar;
|
||||
|
||||
ArrayList<StoreWisePerformaceGetterSetter> storeWisePerformanceList;
|
||||
StoreWisePerformaceAdapter adapter;
|
||||
|
||||
GSKOrangeDB db;
|
||||
private SharedPreferences preferences;
|
||||
String store_id, visit_date, username, intime, date, keyAccount_id, class_id, storeType_id;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
try {
|
||||
setContentView(R.layout.activity_store_wise_performance);
|
||||
|
||||
toolbar = (Toolbar) findViewById(R.id.toolbar);
|
||||
recyclerView = (RecyclerView) findViewById(R.id.recyclerView);
|
||||
|
||||
db = new GSKOrangeDB(this);
|
||||
db.open();
|
||||
|
||||
//preference data
|
||||
preferences = PreferenceManager.getDefaultSharedPreferences(this);
|
||||
store_id = preferences.getString(CommonString.KEY_STORE_ID, null);
|
||||
visit_date = preferences.getString(CommonString.KEY_DATE, null);
|
||||
date = preferences.getString(CommonString.KEY_DATE, null);
|
||||
username = preferences.getString(CommonString.KEY_USERNAME, null);
|
||||
intime = preferences.getString(CommonString.KEY_STORE_IN_TIME, "");
|
||||
keyAccount_id = preferences.getString(CommonString.KEY_KEYACCOUNT_ID, "");
|
||||
class_id = preferences.getString(CommonString.KEY_CLASS_ID, "");
|
||||
storeType_id = preferences.getString(CommonString.KEY_STORETYPE_ID, "");
|
||||
|
||||
toolbar.setTitle(getResources().getString(R.string.title_activity_store_wise_performance));
|
||||
setSupportActionBar(toolbar);
|
||||
getSupportActionBar().setHomeButtonEnabled(true);
|
||||
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||||
|
||||
FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
|
||||
fab.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
Intent intent = new Intent(StoreWisePerformanceActivity.this, CategoryListActivity.class);
|
||||
startActivity(intent);
|
||||
}
|
||||
});
|
||||
} catch (Resources.NotFoundException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onResume() {
|
||||
super.onResume();
|
||||
try {
|
||||
storeWisePerformanceList = db.getStoreWisePerformance(store_id);
|
||||
|
||||
adapter = new StoreWisePerformaceAdapter(StoreWisePerformanceActivity.this, storeWisePerformanceList);
|
||||
recyclerView.setAdapter(adapter);
|
||||
recyclerView.setLayoutManager(new LinearLayoutManager(getApplicationContext()));
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
public class StoreWisePerformaceAdapter extends RecyclerView.Adapter<StoreWisePerformaceAdapter.MyViewHolder> {
|
||||
Context context;
|
||||
private LayoutInflater inflator;
|
||||
List<StoreWisePerformaceGetterSetter> list = Collections.emptyList();
|
||||
|
||||
public StoreWisePerformaceAdapter(Context context, List<StoreWisePerformaceGetterSetter> list) {
|
||||
inflator = LayoutInflater.from(context);
|
||||
this.list = list;
|
||||
this.context = context;
|
||||
}
|
||||
|
||||
@Override
|
||||
public StoreWisePerformaceAdapter.MyViewHolder onCreateViewHolder(ViewGroup parent, int i) {
|
||||
View view = inflator.inflate(R.layout.item_store_wise_performance, parent, false);
|
||||
StoreWisePerformaceAdapter.MyViewHolder holder = new StoreWisePerformaceAdapter.MyViewHolder(view);
|
||||
return holder;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBindViewHolder(StoreWisePerformaceAdapter.MyViewHolder holder, int position) {
|
||||
final StoreWisePerformaceGetterSetter categoryData = list.get(position);
|
||||
|
||||
if (categoryData.getPeriod().equalsIgnoreCase("LTM")) {
|
||||
holder.txt_period.setText(getResources().getString(R.string.category_performance_ltm));
|
||||
} else if (categoryData.getPeriod().equalsIgnoreCase("MTD")) {
|
||||
holder.txt_period.setText(getResources().getString(R.string.category_performance_mtd));
|
||||
} else if (categoryData.getPeriod().equalsIgnoreCase("LSV")) {
|
||||
holder.txt_period.setText(getResources().getString(R.string.category_performance_lsv));
|
||||
}
|
||||
holder.txt_msl_availability.setText(categoryData.getMsl_availability());
|
||||
holder.txt_sos.setText(categoryData.getSos());
|
||||
holder.txt_t2p.setText(categoryData.getT2p());
|
||||
holder.txt_promo.setText(categoryData.getPromo());
|
||||
holder.txt_oss.setText(categoryData.getOss());
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getItemCount() {
|
||||
return list.size();
|
||||
}
|
||||
|
||||
class MyViewHolder extends RecyclerView.ViewHolder {
|
||||
TextView txt_period, txt_sos, txt_t2p, txt_promo, txt_msl_availability, txt_oss;
|
||||
LinearLayout lay_menu;
|
||||
|
||||
public MyViewHolder(View itemView) {
|
||||
super(itemView);
|
||||
lay_menu = (LinearLayout) itemView.findViewById(R.id.lay_menu);
|
||||
txt_period = (TextView) itemView.findViewById(R.id.txt_period);
|
||||
txt_sos = (TextView) itemView.findViewById(R.id.txt_sos);
|
||||
txt_t2p = (TextView) itemView.findViewById(R.id.txt_t2p);
|
||||
txt_promo = (TextView) itemView.findViewById(R.id.txt_promo);
|
||||
txt_msl_availability = (TextView) itemView.findViewById(R.id.txt_msl_availability);
|
||||
txt_oss = (TextView) itemView.findViewById(R.id.txt_oss);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onOptionsItemSelected(MenuItem item) {
|
||||
// Handle action bar item clicks here. The action bar will
|
||||
// automatically handle clicks on the Home/Up button, so long
|
||||
// as you specify a parent activity in AndroidManifest.xml.
|
||||
int id = item.getItemId();
|
||||
|
||||
if (id == android.R.id.home) {
|
||||
finish();
|
||||
}
|
||||
|
||||
//noinspection SimplifiableIfStatement
|
||||
if (id == R.id.action_settings) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return super.onOptionsItemSelected(item);
|
||||
}
|
||||
}
|
||||
@@ -31,6 +31,8 @@ import javax.xml.parsers.SAXParser;
|
||||
import javax.xml.parsers.SAXParserFactory;
|
||||
|
||||
import cpm.com.gskmtorange.Database.GSKOrangeDB;
|
||||
import cpm.com.gskmtorange.GetterSetter.AdditionalDialogGetterSetter;
|
||||
import cpm.com.gskmtorange.GetterSetter.AddittionalGetterSetter;
|
||||
import cpm.com.gskmtorange.GetterSetter.CoverageBean;
|
||||
import cpm.com.gskmtorange.GetterSetter.StoreBean;
|
||||
import cpm.com.gskmtorange.R;
|
||||
@@ -70,6 +72,9 @@ public class UploadActivity extends AppCompatActivity {
|
||||
ArrayList<Stock_FacingGetterSetter> stock_facingHeaderList, stock_facingChildList;
|
||||
ArrayList<Promo_Compliance_DataGetterSetter> promotionSkuList, additionalPromotionList;
|
||||
ArrayList<T2PGetterSetter> t2PGetterSetters;
|
||||
ArrayList<AddittionalGetterSetter> additionalVisibilityList;
|
||||
ArrayList<AdditionalDialogGetterSetter> additionalVisibilitySkuList;
|
||||
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
@@ -440,7 +445,116 @@ public class UploadActivity extends AppCompatActivity {
|
||||
data.name = "Additional Promotion Data Uploading";
|
||||
publishProgress(data);
|
||||
|
||||
//T2p Upload Data
|
||||
|
||||
////ashish open
|
||||
|
||||
//Additional Visibility Data
|
||||
String additional_visibility_data_xml = "";
|
||||
String additional_visibility_dialog_xml = "";
|
||||
onXML = "";
|
||||
String onXMLdIALOG = "";
|
||||
additionalVisibilityList = db.getAdditionalStock(coverageList.get(i).getStoreId());
|
||||
|
||||
if (additionalVisibilityList.size() > 0) {
|
||||
for (int J = 0; J < additionalVisibilityList.size(); J++) {
|
||||
|
||||
String KeyID = additionalVisibilityList.get(J).getKey_id();
|
||||
|
||||
additionalVisibilitySkuList = db.getDialogStock(KeyID);
|
||||
|
||||
for (int k = 0; k < additionalVisibilitySkuList.size(); k++) {
|
||||
|
||||
|
||||
onXMLdIALOG = "[VISIBILITY_DAILOG]"
|
||||
+ "[MID]" + mid + "[/MID]"
|
||||
+ "[USER_ID]"
|
||||
+ userId
|
||||
+ "[/USER_ID]"
|
||||
+ "[KEY_ID]"
|
||||
+ additionalVisibilitySkuList.get(k).getKEY_ID()
|
||||
+ "[/KEY_ID]"
|
||||
/* + "[DIALOG_BRAND_ID]"
|
||||
+ additionalVisibilitySkuList.get(k).getBrand_id()
|
||||
+ "[/DIALOG_BRAND_ID]"*/
|
||||
+ "[SKU_ID]"
|
||||
+ additionalVisibilitySkuList.get(k).getSku_id()
|
||||
+ "[/SKU_ID]"
|
||||
+ "[QUANTITY]"
|
||||
+ additionalVisibilitySkuList.get(k).getQuantity()
|
||||
+ "[/QUANTITY]"
|
||||
+ "[/VISIBILITY_DAILOG]";
|
||||
|
||||
additional_visibility_dialog_xml = additional_visibility_dialog_xml + onXMLdIALOG;
|
||||
|
||||
}
|
||||
|
||||
onXML = "[ADDITIONAL_VISIBILITY_DATA]"
|
||||
+ "[MID]" + mid + "[/MID]"
|
||||
+ "[USER_ID]"
|
||||
+ userId
|
||||
+ "[/USER_ID]"
|
||||
+ "[KEY_ID]"
|
||||
+ additionalVisibilityList.get(J).getKey_id()
|
||||
+ "[/KEY_ID]"
|
||||
+ "[ADDITIONAL_DISPLAY]"
|
||||
+ additionalVisibilityList.get(J).getBtn_toogle()
|
||||
+ "[/ADDITIONAL_DISPLAY]"
|
||||
+ "[BRAND_ID]"
|
||||
+ additionalVisibilityList.get(J).getBrand_id()
|
||||
+ "[/BRAND_ID]"
|
||||
+ "[IMAGE_URL]"
|
||||
+ additionalVisibilityList.get(J).getImage()
|
||||
+ "[/IMAGE_URL]"
|
||||
+ "[DISPLAY_ID]"
|
||||
+ additionalVisibilityList.get(J).getSku_id()
|
||||
+ "[/DISPLAY_ID]"
|
||||
+ "[SKU_LIST]"
|
||||
+ additional_visibility_dialog_xml
|
||||
+ "[/SKU_LIST]"
|
||||
+ "[/ADDITIONAL_VISIBILITY_DATA]";
|
||||
|
||||
additional_visibility_data_xml = additional_visibility_data_xml + onXML;
|
||||
|
||||
}
|
||||
|
||||
final String sos_xml = "[DATA]" + additional_visibility_data_xml + "[/DATA]";
|
||||
|
||||
request = new SoapObject(CommonString.NAMESPACE, CommonString.METHOD_UPLOAD_STOCK_XML_DATA);
|
||||
request.addProperty("XMLDATA", sos_xml);
|
||||
request.addProperty("KEYS", "ADDITIONAL_VISIBILITY_DATA");
|
||||
request.addProperty("USERNAME", userId);
|
||||
request.addProperty("MID", mid);
|
||||
|
||||
envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
|
||||
envelope.dotNet = true;
|
||||
envelope.setOutputSoapObject(request);
|
||||
|
||||
androidHttpTransport = new HttpTransportSE(CommonString.URL);
|
||||
androidHttpTransport.call(CommonString.SOAP_ACTION + CommonString.METHOD_UPLOAD_STOCK_XML_DATA, envelope);
|
||||
|
||||
result = (Object) envelope.getResponse();
|
||||
|
||||
if (!result.toString().equalsIgnoreCase(CommonString.KEY_SUCCESS)) {
|
||||
return CommonString.METHOD_UPLOAD_STOCK_XML_DATA;
|
||||
}
|
||||
|
||||
if (result.toString().equalsIgnoreCase(CommonString.KEY_NO_DATA)) {
|
||||
return CommonString.METHOD_UPLOAD_STOCK_XML_DATA;
|
||||
}
|
||||
|
||||
if (result.toString().equalsIgnoreCase(CommonString.KEY_FAILURE)) {
|
||||
return CommonString.METHOD_UPLOAD_STOCK_XML_DATA;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
data.value = 35;
|
||||
data.name = "Additional Visibility Data";
|
||||
publishProgress(data);
|
||||
|
||||
/////ashish close
|
||||
|
||||
//T2p Upload Data
|
||||
|
||||
String t2p_data_xml = "";
|
||||
onXML = "";
|
||||
@@ -566,11 +680,11 @@ public class UploadActivity extends AppCompatActivity {
|
||||
return CommonString.METHOD_UPLOAD_STOCK_XML_DATA;
|
||||
}
|
||||
}
|
||||
|
||||
data.value = 40;
|
||||
data.name = "T2P Data Uploading";
|
||||
publishProgress(data);
|
||||
|
||||
|
||||
//Image Upload
|
||||
|
||||
//Stock Facing Images Upload
|
||||
|
||||
@@ -5,7 +5,23 @@ package cpm.com.gskmtorange.xmlGetterSetter;
|
||||
*/
|
||||
|
||||
public class CategoryWisePerformaceGetterSetter {
|
||||
String period, sos, t2p, promo, msl_availability, oss;
|
||||
String store_id, category_id, period, msl_availability, sos, t2p, promo, oss, order_id;
|
||||
|
||||
public String getStore_id() {
|
||||
return store_id;
|
||||
}
|
||||
|
||||
public void setStore_id(String store_id) {
|
||||
this.store_id = store_id;
|
||||
}
|
||||
|
||||
public String getCategory_id() {
|
||||
return category_id;
|
||||
}
|
||||
|
||||
public void setCategory_id(String category_id) {
|
||||
this.category_id = category_id;
|
||||
}
|
||||
|
||||
public String getPeriod() {
|
||||
return period;
|
||||
@@ -15,6 +31,14 @@ public class CategoryWisePerformaceGetterSetter {
|
||||
this.period = period;
|
||||
}
|
||||
|
||||
public String getMsl_availability() {
|
||||
return msl_availability;
|
||||
}
|
||||
|
||||
public void setMsl_availability(String msl_availability) {
|
||||
this.msl_availability = msl_availability;
|
||||
}
|
||||
|
||||
public String getSos() {
|
||||
return sos;
|
||||
}
|
||||
@@ -39,14 +63,6 @@ public class CategoryWisePerformaceGetterSetter {
|
||||
this.promo = promo;
|
||||
}
|
||||
|
||||
public String getMsl_availability() {
|
||||
return msl_availability;
|
||||
}
|
||||
|
||||
public void setMsl_availability(String msl_availability) {
|
||||
this.msl_availability = msl_availability;
|
||||
}
|
||||
|
||||
public String getOss() {
|
||||
return oss;
|
||||
}
|
||||
@@ -54,4 +70,12 @@ public class CategoryWisePerformaceGetterSetter {
|
||||
public void setOss(String oss) {
|
||||
this.oss = oss;
|
||||
}
|
||||
|
||||
public String getOrder_id() {
|
||||
return order_id;
|
||||
}
|
||||
|
||||
public void setOrder_id(String order_id) {
|
||||
this.order_id = order_id;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,101 @@
|
||||
package cpm.com.gskmtorange.xmlGetterSetter;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
* Created by gagang on 11-01-2017.
|
||||
*/
|
||||
|
||||
public class STORE_PERFORMANCE_MasterGetterSetter {
|
||||
String table_STORE_PERFORMANCE;
|
||||
|
||||
ArrayList<String> STORE_ID = new ArrayList<>();
|
||||
ArrayList<String> CATEGORY_ID = new ArrayList<>();
|
||||
ArrayList<String> PERIOD = new ArrayList<>();
|
||||
ArrayList<String> SOS = new ArrayList<>();
|
||||
ArrayList<String> T2P = new ArrayList<>();
|
||||
ArrayList<String> PROMO = new ArrayList<>();
|
||||
ArrayList<String> MSL_AVAILABILITY = new ArrayList<>();
|
||||
ArrayList<String> OSS = new ArrayList<>();
|
||||
ArrayList<String> ORDERID = new ArrayList<>();
|
||||
|
||||
public String getTable_STORE_PERFORMANCE() {
|
||||
return table_STORE_PERFORMANCE;
|
||||
}
|
||||
|
||||
public void setTable_STORE_PERFORMANCE(String table_STORE_PERFORMANCE) {
|
||||
this.table_STORE_PERFORMANCE = table_STORE_PERFORMANCE;
|
||||
}
|
||||
|
||||
public ArrayList<String> getSTORE_ID() {
|
||||
return STORE_ID;
|
||||
}
|
||||
|
||||
public void setSTORE_ID(String STORE_ID) {
|
||||
this.STORE_ID.add(STORE_ID);
|
||||
}
|
||||
|
||||
public ArrayList<String> getCATEGORY_ID() {
|
||||
return CATEGORY_ID;
|
||||
}
|
||||
|
||||
public void setCATEGORY_ID(String CATEGORY_ID) {
|
||||
this.CATEGORY_ID.add(CATEGORY_ID);
|
||||
}
|
||||
|
||||
public ArrayList<String> getPERIOD() {
|
||||
return PERIOD;
|
||||
}
|
||||
|
||||
public void setPERIOD(String PERIOD) {
|
||||
this.PERIOD.add(PERIOD);
|
||||
}
|
||||
|
||||
public ArrayList<String> getSOS() {
|
||||
return SOS;
|
||||
}
|
||||
|
||||
public void setSOS(String SOS) {
|
||||
this.SOS.add(SOS);
|
||||
}
|
||||
|
||||
public ArrayList<String> getT2P() {
|
||||
return T2P;
|
||||
}
|
||||
|
||||
public void setT2P(String t2P) {
|
||||
this.T2P.add(t2P);
|
||||
}
|
||||
|
||||
public ArrayList<String> getPROMO() {
|
||||
return PROMO;
|
||||
}
|
||||
|
||||
public void setPROMO(String PROMO) {
|
||||
this.PROMO.add(PROMO);
|
||||
}
|
||||
|
||||
public ArrayList<String> getMSL_AVAILABILITY() {
|
||||
return MSL_AVAILABILITY;
|
||||
}
|
||||
|
||||
public void setMSL_AVAILABILITY(String MSL_AVAILABILITY) {
|
||||
this.MSL_AVAILABILITY.add(MSL_AVAILABILITY);
|
||||
}
|
||||
|
||||
public ArrayList<String> getOSS() {
|
||||
return OSS;
|
||||
}
|
||||
|
||||
public void setOSS(String OSS) {
|
||||
this.OSS.add(OSS);
|
||||
}
|
||||
|
||||
public ArrayList<String> getORDERID() {
|
||||
return ORDERID;
|
||||
}
|
||||
|
||||
public void setORDERID(String ORDERID) {
|
||||
this.ORDERID.add(ORDERID);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
package cpm.com.gskmtorange.xmlGetterSetter;
|
||||
|
||||
/**
|
||||
* Created by gagang on 23-12-2016.
|
||||
*/
|
||||
|
||||
public class StoreWisePerformaceGetterSetter {
|
||||
String store_id, category_id, period, msl_availability, sos, t2p, promo, oss, order_id;
|
||||
|
||||
public String getStore_id() {
|
||||
return store_id;
|
||||
}
|
||||
|
||||
public void setStore_id(String store_id) {
|
||||
this.store_id = store_id;
|
||||
}
|
||||
|
||||
public String getCategory_id() {
|
||||
return category_id;
|
||||
}
|
||||
|
||||
public void setCategory_id(String category_id) {
|
||||
this.category_id = category_id;
|
||||
}
|
||||
|
||||
public String getPeriod() {
|
||||
return period;
|
||||
}
|
||||
|
||||
public void setPeriod(String period) {
|
||||
this.period = period;
|
||||
}
|
||||
|
||||
public String getMsl_availability() {
|
||||
return msl_availability;
|
||||
}
|
||||
|
||||
public void setMsl_availability(String msl_availability) {
|
||||
this.msl_availability = msl_availability;
|
||||
}
|
||||
|
||||
public String getSos() {
|
||||
return sos;
|
||||
}
|
||||
|
||||
public void setSos(String sos) {
|
||||
this.sos = sos;
|
||||
}
|
||||
|
||||
public String getT2p() {
|
||||
return t2p;
|
||||
}
|
||||
|
||||
public void setT2p(String t2p) {
|
||||
this.t2p = t2p;
|
||||
}
|
||||
|
||||
public String getPromo() {
|
||||
return promo;
|
||||
}
|
||||
|
||||
public void setPromo(String promo) {
|
||||
this.promo = promo;
|
||||
}
|
||||
|
||||
public String getOss() {
|
||||
return oss;
|
||||
}
|
||||
|
||||
public void setOss(String oss) {
|
||||
this.oss = oss;
|
||||
}
|
||||
|
||||
public String getOrder_id() {
|
||||
return order_id;
|
||||
}
|
||||
|
||||
public void setOrder_id(String order_id) {
|
||||
this.order_id = order_id;
|
||||
}
|
||||
}
|
||||
@@ -21,6 +21,8 @@ public class TableBean {
|
||||
|
||||
//Gagan start code
|
||||
public static String MAPPING_ADDITIONAL_PROMOTION;
|
||||
public static String STORE_PERFORMANCE;
|
||||
|
||||
//Gagan end code
|
||||
|
||||
public static String getJourneyPlan() {
|
||||
@@ -129,5 +131,13 @@ public class TableBean {
|
||||
MAPPING_ADDITIONAL_PROMOTION = mappingAdditionalPromotion;
|
||||
}
|
||||
|
||||
public static String getStorePerformance() {
|
||||
return STORE_PERFORMANCE;
|
||||
}
|
||||
|
||||
public static void setStorePerformance(String storePerformance) {
|
||||
STORE_PERFORMANCE = storePerformance;
|
||||
}
|
||||
|
||||
//Gagan end code
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ import cpm.com.gskmtorange.xmlGetterSetter.MappingDisplayChecklistGetterSetter;
|
||||
import cpm.com.gskmtorange.xmlGetterSetter.MappingPromotionGetterSetter;
|
||||
import cpm.com.gskmtorange.xmlGetterSetter.MappingStockGetterSetter;
|
||||
import cpm.com.gskmtorange.xmlGetterSetter.NonWorkingReasonGetterSetter;
|
||||
import cpm.com.gskmtorange.xmlGetterSetter.STORE_PERFORMANCE_MasterGetterSetter;
|
||||
import cpm.com.gskmtorange.xmlGetterSetter.SkuMasterGetterSetter;
|
||||
import cpm.com.gskmtorange.xmlGetterSetter.SubCategoryMasterGetterSetter;
|
||||
|
||||
@@ -621,5 +622,53 @@ public class XMLHandlers {
|
||||
return map;
|
||||
}
|
||||
|
||||
|
||||
public static STORE_PERFORMANCE_MasterGetterSetter STORE_PERFORMANCEXMLHandler(XmlPullParser xpp, int eventType) {
|
||||
STORE_PERFORMANCE_MasterGetterSetter st = new STORE_PERFORMANCE_MasterGetterSetter();
|
||||
|
||||
try {
|
||||
while (xpp.getEventType() != XmlPullParser.END_DOCUMENT) {
|
||||
if (xpp.getEventType() == XmlPullParser.START_TAG) {
|
||||
|
||||
if (xpp.getName().equals("META_DATA")) {
|
||||
st.setTable_STORE_PERFORMANCE(xpp.nextText());
|
||||
}
|
||||
if (xpp.getName().equals("STORE_ID")) {
|
||||
st.setSTORE_ID(xpp.nextText());
|
||||
}
|
||||
if (xpp.getName().equals("CATEGORY_ID")) {
|
||||
st.setCATEGORY_ID(xpp.nextText());
|
||||
}
|
||||
if (xpp.getName().equals("PERIOD")) {
|
||||
st.setPERIOD(xpp.nextText());
|
||||
}
|
||||
if (xpp.getName().equals("SOS")) {
|
||||
st.setSOS(xpp.nextText());
|
||||
}
|
||||
if (xpp.getName().equals("T2P")) {
|
||||
st.setT2P(xpp.nextText());
|
||||
}
|
||||
if (xpp.getName().equals("PROMO")) {
|
||||
st.setPROMO(xpp.nextText());
|
||||
}
|
||||
if (xpp.getName().equals("MSL_AVAILABILITY")) {
|
||||
st.setMSL_AVAILABILITY(xpp.nextText());
|
||||
}
|
||||
if (xpp.getName().equals("OSS")) {
|
||||
st.setOSS(xpp.nextText());
|
||||
}
|
||||
if (xpp.getName().equals("ORDERID")) {
|
||||
st.setORDERID(xpp.nextText());
|
||||
}
|
||||
}
|
||||
xpp.next();
|
||||
}
|
||||
} catch (XmlPullParserException e) {
|
||||
e.printStackTrace();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return st;
|
||||
}
|
||||
//Gagan End Code
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 8.5 KiB |
|
Before Width: | Height: | Size: 4.4 KiB |
|
Before Width: | Height: | Size: 8.4 KiB |
|
Before Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 8.4 KiB |
|
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 7.9 KiB |
|
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 7.6 KiB |
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 7.7 KiB |
@@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:fitsSystemWindows="true">
|
||||
|
||||
<android.support.design.widget.AppBarLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:theme="@style/AppTheme.AppBarOverlay">
|
||||
|
||||
<android.support.v7.widget.Toolbar
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
android:background="?attr/colorPrimary"
|
||||
app:popupTheme="@style/AppTheme.PopupOverlay" />
|
||||
|
||||
</android.support.design.widget.AppBarLayout>
|
||||
|
||||
<include layout="@layout/content_store_wise_performance" />
|
||||
|
||||
<android.support.design.widget.FloatingActionButton
|
||||
android:id="@+id/fab"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom|end"
|
||||
android:layout_margin="@dimen/fab_margin"
|
||||
app:srcCompat="@drawable/right_arrow" />
|
||||
|
||||
</android.support.design.widget.CoordinatorLayout>
|
||||
@@ -24,14 +24,123 @@
|
||||
android:text="Category Performance"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:textColor="@android:color/black"
|
||||
android:visibility="gone"/>
|
||||
android:visibility="gone" />
|
||||
|
||||
<android.support.v7.widget.RecyclerView
|
||||
android:id="@+id/recyclerView"
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingBottom="5dp"
|
||||
android:paddingTop="5dp" />
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:weightSum="30">
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="5"
|
||||
android:gravity="center"
|
||||
android:padding="5dp"
|
||||
android:text="@string/category_performance_period"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="#000" />
|
||||
|
||||
<View
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/colorPrimary" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="5"
|
||||
android:gravity="center"
|
||||
android:padding="5dp"
|
||||
android:text="@string/category_performance_msl_availability"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="#000" />
|
||||
|
||||
<View
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/colorPrimary" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="5"
|
||||
android:gravity="center"
|
||||
android:padding="5dp"
|
||||
android:text="@string/category_performance_sos"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="#000" />
|
||||
|
||||
<View
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/colorPrimary" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="5"
|
||||
android:gravity="center"
|
||||
android:padding="5dp"
|
||||
android:text="@string/category_performance_t2p"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="#000" />
|
||||
|
||||
<View
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/colorPrimary" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="5"
|
||||
android:gravity="center"
|
||||
android:padding="5dp"
|
||||
android:text="@string/category_performance_promo"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="#000" />
|
||||
|
||||
<View
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/colorPrimary" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="5"
|
||||
android:gravity="center"
|
||||
android:padding="5dp"
|
||||
android:text="@string/category_performance_oss"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="#000" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="#888" />
|
||||
</LinearLayout>
|
||||
|
||||
<android.support.v7.widget.RecyclerView
|
||||
android:id="@+id/recyclerView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingBottom="5dp" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
@@ -0,0 +1,146 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/content_category_wise_performance"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:layout_behavior="@string/appbar_scrolling_view_behavior"
|
||||
tools:showIn="@layout/activity_category_wise_performance">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_categoryName"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="#FFF1710F"
|
||||
android:paddingBottom="10dp"
|
||||
android:paddingLeft="20dp"
|
||||
android:paddingTop="10dp"
|
||||
android:text="Category Performance"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:textColor="@android:color/black"
|
||||
android:visibility="gone" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:weightSum="30">
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="5"
|
||||
android:gravity="center"
|
||||
android:padding="5dp"
|
||||
android:text="@string/category_performance_period"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="#000" />
|
||||
|
||||
<View
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/colorPrimary" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="5"
|
||||
android:gravity="center"
|
||||
android:padding="5dp"
|
||||
android:text="@string/category_performance_msl_availability"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="#000" />
|
||||
|
||||
<View
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/colorPrimary" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="5"
|
||||
android:gravity="center"
|
||||
android:padding="5dp"
|
||||
android:text="@string/category_performance_sos"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="#000" />
|
||||
|
||||
<View
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/colorPrimary" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="5"
|
||||
android:gravity="center"
|
||||
android:padding="5dp"
|
||||
android:text="@string/category_performance_t2p"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="#000" />
|
||||
|
||||
<View
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/colorPrimary" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="5"
|
||||
android:gravity="center"
|
||||
android:padding="5dp"
|
||||
android:text="@string/category_performance_promo"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="#000" />
|
||||
|
||||
<View
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/colorPrimary" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="5"
|
||||
android:gravity="center"
|
||||
android:padding="5dp"
|
||||
android:text="@string/category_performance_oss"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="#000" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="#888" />
|
||||
</LinearLayout>
|
||||
|
||||
<android.support.v7.widget.RecyclerView
|
||||
android:id="@+id/recyclerView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingBottom="5dp" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
@@ -15,7 +15,6 @@
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal"
|
||||
android:weightSum="30">
|
||||
<!--android:background="#F1E9E9"-->
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_period"
|
||||
@@ -23,71 +22,15 @@
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="5"
|
||||
android:gravity="center"
|
||||
android:paddingBottom="5dp"
|
||||
android:paddingTop="5dp"
|
||||
android:padding="5dp"
|
||||
android:text="Period"
|
||||
android:textColor="#000"
|
||||
android:textSize="20sp"
|
||||
android:textStyle="bold" />
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="#000" />
|
||||
|
||||
<View
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#f2711f" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_sos"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="5"
|
||||
android:gravity="center"
|
||||
android:paddingBottom="5dp"
|
||||
android:paddingTop="5dp"
|
||||
android:text="SOS"
|
||||
android:textColor="#000"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<View
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#f2711f" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_t2p"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="5"
|
||||
android:gravity="center"
|
||||
android:paddingBottom="5dp"
|
||||
android:paddingTop="5dp"
|
||||
android:text="T2P"
|
||||
android:textColor="#000"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<View
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#f2711f" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_promo"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="5"
|
||||
android:gravity="center"
|
||||
android:paddingBottom="5dp"
|
||||
android:paddingTop="5dp"
|
||||
android:text="Promo"
|
||||
android:textColor="#000"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<View
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#f2711f" />
|
||||
android:background="@color/colorPrimary" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_msl_availability"
|
||||
@@ -95,17 +38,63 @@
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="5"
|
||||
android:gravity="center"
|
||||
android:paddingBottom="5dp"
|
||||
android:paddingTop="5dp"
|
||||
android:padding="5dp"
|
||||
android:text="MSL Availability"
|
||||
android:textColor="#000"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="#000" />
|
||||
|
||||
<View
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#f2711f" />
|
||||
android:background="@color/colorPrimary" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_sos"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="5"
|
||||
android:gravity="center"
|
||||
android:padding="5dp"
|
||||
android:text="SOS"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="#000" />
|
||||
|
||||
<View
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/colorPrimary" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_t2p"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="5"
|
||||
android:gravity="center"
|
||||
android:padding="5dp"
|
||||
android:text="T2P"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="#000" />
|
||||
|
||||
<View
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/colorPrimary" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_promo"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="5"
|
||||
android:gravity="center"
|
||||
android:padding="5dp"
|
||||
android:text="Promo"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="#000" />
|
||||
|
||||
<View
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/colorPrimary" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_oss"
|
||||
@@ -113,12 +102,10 @@
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="5"
|
||||
android:gravity="center"
|
||||
android:paddingBottom="5dp"
|
||||
android:paddingTop="5dp"
|
||||
android:padding="5dp"
|
||||
android:text="OSS"
|
||||
android:textColor="#000"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="#000" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
|
||||
@@ -0,0 +1,120 @@
|
||||
<?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">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/lay_menu"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal"
|
||||
android:weightSum="30">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_period"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="5"
|
||||
android:gravity="center"
|
||||
android:padding="5dp"
|
||||
android:text="Period"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="#000" />
|
||||
|
||||
<View
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/colorPrimary" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_msl_availability"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="5"
|
||||
android:gravity="center"
|
||||
android:padding="5dp"
|
||||
android:text="MSL Availability"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="#000" />
|
||||
|
||||
<View
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/colorPrimary" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_sos"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="5"
|
||||
android:gravity="center"
|
||||
android:padding="5dp"
|
||||
android:text="SOS"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="#000" />
|
||||
|
||||
<View
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/colorPrimary" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_t2p"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="5"
|
||||
android:gravity="center"
|
||||
android:padding="5dp"
|
||||
android:text="T2P"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="#000" />
|
||||
|
||||
<View
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/colorPrimary" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_promo"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="5"
|
||||
android:gravity="center"
|
||||
android:padding="5dp"
|
||||
android:text="Promo"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="#000" />
|
||||
|
||||
<View
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/colorPrimary" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_oss"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="5"
|
||||
android:gravity="center"
|
||||
android:padding="5dp"
|
||||
android:text="OSS"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="#000" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="#888" />
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
|
||||
@@ -47,4 +47,54 @@
|
||||
|
||||
<string name="title_activity_upload">Veri Paylaş</string>
|
||||
|
||||
<!--Gagan Start Code -->
|
||||
<string name="title_activity_category_list">Kategoriler</string>
|
||||
<string name="title_activity_category_wise_performance">Kategori Performansı</string>
|
||||
<string name="title_activity_daily_main_menu">Günlük Veri Menüsü</string>
|
||||
<string name="title_activity_msl__availability">Bulunurluk</string>
|
||||
<string name="title_activity_stock_facing">Raf Payı</string>
|
||||
|
||||
<string name="daily_data_menu_msl_availability">Bulunurluk</string>
|
||||
<string name="daily_data_menu_stock_facing">Raf Payı</string>
|
||||
<string name="daily_data_menu_t2p">Kalıcı Teşhir</string>
|
||||
<string name="daily_data_menu_additional_visibility">Ek Teşhir</string>
|
||||
<string name="daily_data_menu_promo_compliance">Promosyon</string>
|
||||
<string name="daily_data_menu_competition_tracking">Rakip Bilgisi</string>
|
||||
<string name="daily_data_menu_additional_promotions">Promosyon</string>
|
||||
|
||||
<string name="msl_availability_sku">Ürün Adı</string>
|
||||
<string name="msl_availability_mbq">X</string>
|
||||
<string name="msl_availability_availability">Bulunurluk</string>
|
||||
|
||||
<string name="stock_facing_reference_image">Örnek Fotoğraf</string>
|
||||
<string name="stock_facing_sku_name">Ürün Adı</string>
|
||||
<string name="stock_facing_stock">X</string>
|
||||
<string name="stock_facing_faceup">Önyüz</string>
|
||||
<string name="stock_facing_sos_target">Raf Payı Hedefi</string>
|
||||
|
||||
<string name="title_activity_promo_compliance">Promosyon</string>
|
||||
|
||||
<string name="promo_compliance_additional_promo">Additional Promos</string>
|
||||
<string name="promo_compliance_promo">Promos</string>
|
||||
<string name="promo_compliance_promos_sku">Promosyon Ürünü</string>
|
||||
<string name="promo_compliance_sku">Promosyon Ürünü</string>
|
||||
<string name="promo_compliance_inStock">Ürün Bulunuyor</string>
|
||||
<string name="promo_compliance_promoAnnouncer">Duyuru Var</string>
|
||||
<string name="promo_compliance_runningPOS">Kasa Okuyor</string>
|
||||
<string name="promo_compliance_add">Add</string>
|
||||
|
||||
<string name="category_performance_period">Zaman</string>
|
||||
<string name="category_performance_msl_availability">Bulunurluk</string>
|
||||
<string name="category_performance_sos">Raf Payi</string>
|
||||
<string name="category_performance_t2p">Kalici Teshir</string>
|
||||
<string name="category_performance_promo">Promosyon</string>
|
||||
<string name="category_performance_oss">TMP</string>
|
||||
|
||||
<string name="category_performance_ltm">Son 3 Ay</string>
|
||||
<string name="category_performance_mtd">Bu Ay</string>
|
||||
<string name="category_performance_lsv">Son Ziyaret</string>
|
||||
|
||||
<string name="title_activity_store_wise_performance">Mağaza Performansı</string>
|
||||
|
||||
<!--Gagan End Code -->
|
||||
</resources>
|
||||
@@ -120,6 +120,18 @@
|
||||
<string name="promo_compliance_runningPOS">Running on POS</string>
|
||||
<string name="promo_compliance_add">Add</string>
|
||||
|
||||
<string name="category_performance_period">Period</string>
|
||||
<string name="category_performance_msl_availability">MSL Availability</string>
|
||||
<string name="category_performance_sos">SOS</string>
|
||||
<string name="category_performance_t2p">T2P</string>
|
||||
<string name="category_performance_promo">Promo</string>
|
||||
<string name="category_performance_oss">OSS</string>
|
||||
|
||||
<string name="category_performance_ltm">LTM</string>
|
||||
<string name="category_performance_mtd">MTD</string>
|
||||
<string name="category_performance_lsv">LSV</string>
|
||||
|
||||
<string name="title_activity_store_wise_performance">Store wise Performance</string>
|
||||
<!--Gagan end new code 1-->
|
||||
|
||||
|
||||
|
||||