add project adins

This commit is contained in:
Alfrid Sanjaya Leo Putra 2024-07-25 14:44:22 +07:00
commit f8f85d679d
5299 changed files with 625430 additions and 0 deletions

View file

@ -0,0 +1,135 @@
/*
* Copyright 2013 Chris Banes
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package uk.co.senab.actionbarpulltorefresh.library;
import com.adins.mss.base.R;
/**
* Allows you to specify a number of configuration options when setting up a {@link PullToRefreshLayout}.
*/
public final class Options {
/* Default configuration values */
private static final int DEFAULT_HEADER_LAYOUT = R.layout.default_header;
private static final float DEFAULT_REFRESH_SCROLL_DISTANCE = 0.5f;
private static final boolean DEFAULT_REFRESH_ON_UP = false;
private static final int DEFAULT_REFRESH_MINIMIZED_DELAY = 1 * 1000;
private static final boolean DEFAULT_REFRESH_MINIMIZE = true;
EnvironmentDelegate environmentDelegate = null;
int headerLayout = DEFAULT_HEADER_LAYOUT;
HeaderTransformer headerTransformer = null;
float refreshScrollDistance = DEFAULT_REFRESH_SCROLL_DISTANCE;
boolean refreshOnUp = DEFAULT_REFRESH_ON_UP;
int refreshMinimizeDelay = DEFAULT_REFRESH_MINIMIZED_DELAY;
/**
* Enable or disable the header 'minimization', which by default means that the majority of
* the header is hidden, leaving only the progress bar still showing.
* <p/>
* If set to true, the header will be minimized after the delay set in
* {@link #refreshMinimizeDelay}. If set to false then the whole header will be displayed
* until the refresh is finished.
*/
boolean refreshMinimize = DEFAULT_REFRESH_MINIMIZE;
Options() {
}
public static Builder create() {
return new Builder();
}
public static class Builder {
final Options mOptions = new Options();
/**
* EnvironmentDelegate instance which will be used. If null, we will
* create an instance of the default class.
*/
public Builder environmentDelegate(EnvironmentDelegate environmentDelegate) {
mOptions.environmentDelegate = environmentDelegate;
return this;
}
/**
* The layout resource ID which should be inflated to be displayed above
* the Action Bar
*/
public Builder headerLayout(int headerLayoutId) {
mOptions.headerLayout = headerLayoutId;
return this;
}
/**
* The header transformer to be used to transfer the header view. If
* null, an instance of {@link DefaultHeaderTransformer} will be used.
*/
public Builder headerTransformer(HeaderTransformer headerTransformer) {
mOptions.headerTransformer = headerTransformer;
return this;
}
/**
* The percentage of the refreshable view that needs to be scrolled
* before a refresh is initiated.
*/
public Builder scrollDistance(float refreshScrollDistance) {
mOptions.refreshScrollDistance = refreshScrollDistance;
return this;
}
/**
* Whether a refresh should only be initiated when the user has finished
* the touch event.
*/
public Builder refreshOnUp(boolean enabled) {
mOptions.refreshOnUp = enabled;
return this;
}
/**
* Disable the header 'minimization', which by default means that the majority of
* the header is hidden, leaving only the progress bar still showing.
*/
public Builder noMinimize() {
mOptions.refreshMinimize = false;
return this;
}
/**
* Enable header 'minimization', which by default means that the majority of
* the header is hidden, leaving only the progress bar still showing.
*/
public Builder minimize() {
return minimize(DEFAULT_REFRESH_MINIMIZED_DELAY);
}
/**
* Enable header 'minimization' and set the delay.
*/
public Builder minimize(int delay) {
mOptions.refreshMinimizeDelay = delay;
mOptions.refreshMinimize = true;
return this;
}
/**
* @return the built {@link Options} instance.
*/
public Options build() {
return mOptions;
}
}
}

View file

@ -0,0 +1,42 @@
package com.adins.mss.odr.accounts.api;
import com.adins.mss.foundation.http.MssRequestType;
import com.google.gson.annotations.SerializedName;
/**
* Created by olivia.dg on 11/16/2017.
*/
public class AccountsSearchRequest extends MssRequestType {
@SerializedName("uuid_account")
private String uuid_account;
@SerializedName("uuid_product")
private String uuid_product;
@SerializedName("uuid_status")
private String uuid_status;
public String getUuid_account() {
return uuid_account;
}
public String getUuid_product() {
return uuid_product;
}
public void setUuid_product(String uuid_product) {
this.uuid_product = uuid_product;
}
public String getUuid_status() {
return uuid_status;
}
public void setUuid_status(String uuid_status) {
this.uuid_status = uuid_status;
}
public void setUuid_account(String uuid_account) {
this.uuid_account = uuid_account;
}
}

View file

@ -0,0 +1,33 @@
package org.acra.util;
import android.content.Context;
import android.widget.Toast;
import org.acra.ACRA;
import static org.acra.ACRA.LOG_TAG;
/**
* Responsible for sending Toasts under all circumstances.
* <p/>
*
* @author William Ferguson
* @since 4.3.0
*/
public final class ToastSender {
/**
* Sends a Toast and ensures that any Exception thrown during sending is handled.
*
* @param context Application context.
* @param toastResourceId Id of the resource to send as the Toast message.
* @param toastLength Length of the Toast.
*/
public static void sendToast(Context context, int toastResourceId, int toastLength) {
try {
Toast.makeText(context, toastResourceId, toastLength).show();
} catch (RuntimeException e) {
ACRA.log.e(LOG_TAG, "Could not send crash Toast", e);
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

View file

@ -0,0 +1,43 @@
package com.adins.mss.base.syncfile;
import com.adins.mss.dao.MobileDataFile;
import com.adins.mss.foundation.http.MssResponseType;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
import java.util.List;
/**
* Created by loise on 10/16/2017.
*/
/**
* template for response from server
*/
public class JsonResponseSyncFile implements Serializable {
@SerializedName("data")
List<MobileDataFile> listMobileDatafile;
@SerializedName("status")
MssResponseType.Status status;
public MssResponseType.Status getStatus() {
return status;
}
public void setStatus(MssResponseType.Status status) {
this.status = status;
}
public List<MobileDataFile> getListMobileDataFile() {
return this.listMobileDatafile;
}
public void setListMobileDataFile(List<MobileDataFile> value) {
this.listMobileDatafile = value;
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

View file

@ -0,0 +1,163 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg_color" >
<include
android:id="@+id/include1"
layout="@layout/footer" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/layoutSyncQuestionSet"
android:layout_centerHorizontal="true" >
<TextView
android:id="@+id/textViewSyncScheme"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/sync_scheme"
android:textSize="10dp"
android:textColor="@color/tv_darker" />
<TextView
android:id="@+id/textViewSyncSchemeDone"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_toRightOf="@+id/textViewSyncScheme"
android:textColor="@color/tv_darker"
android:textSize="10dp"
android:textStyle="italic" />
</LinearLayout>
<LinearLayout
android:id="@+id/layoutSyncQuestionSet"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/layoutSyncLookup"
android:layout_centerHorizontal="true" >
<TextView
android:id="@+id/textViewSyncQuestionSet"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/sync_question_set"
android:textSize="10dp"
android:textColor="@color/tv_darker" />
<TextView
android:id="@+id/textViewSyncQuestionSetDone"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:textSize="10dp"
android:layout_toRightOf="@+id/textViewSyncQuestionSet"
android:textColor="@color/tv_darker"
android:textStyle="italic" />
</LinearLayout>
<LinearLayout
android:id="@+id/layoutSyncLookup"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/layoutSyncHoliday"
android:layout_centerHorizontal="true" >
<TextView
android:id="@+id/textViewSyncLookup"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/sync_lookup"
android:textSize="10dp"
android:textColor="@color/tv_darker" />
<TextView
android:id="@+id/textViewSyncLookupDone"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:textSize="10dp"
android:layout_toRightOf="@+id/textViewSyncLookup"
android:textColor="@color/tv_darker"
android:textStyle="italic" />
</LinearLayout>
<LinearLayout
android:id="@+id/layoutSyncHoliday"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_above="@+id/progressBar"
android:layout_marginBottom="8dp" >
<TextView
android:id="@+id/textViewSyncHoliday"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/sync_holiday"
android:textSize="10dp"
android:textColor="@color/tv_darker" />
<TextView
android:id="@+id/textViewSyncHolidayDone"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:textSize="10dp"
android:layout_toRightOf="@+id/textViewSyncHoliday"
android:textColor="@color/tv_darker"
android:textStyle="italic" />
</LinearLayout>
<ProgressBar
android:id="@+id/progressBar"
style="@android:style/Widget.ProgressBar.Horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/lblStatus"
android:layout_alignWithParentIfMissing="false"
android:layout_centerHorizontal="true"
android:layout_centerInParent="false"
android:layout_centerVertical="false"
android:layout_marginBottom="58dp"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:indeterminate="false"
android:max="100"
android:minWidth="240dp" />
<!--
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/progressBar"
android:layout_centerHorizontal="true"
android:layout_marginBottom="16dp"
android:text="Synchronizing"
android:textColor="@color/tv_darker" />
-->
<TextView
android:id="@+id/lblStatus"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:textColor="@android:color/white" />
<TextView
android:id="@+id/progressLabel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@id/progressBar"
android:layout_centerHorizontal="true"
android:layout_centerInParent="false"
android:layout_marginTop="26dp"
android:text="@string/sync_progress"
android:textColor="@color/tv_darker" />
</RelativeLayout>

View file

@ -0,0 +1,434 @@
{
"project_info": {
"project_number": "446222152141",
"firebase_url": "https://aitmss-cloud.firebaseio.com",
"project_id": "aitmss-cloud",
"storage_bucket": "aitmss-cloud.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:446222152141:android:7314503471868713",
"android_client_info": {
"package_name": "com.adins.mss.base"
}
},
"oauth_client": [
{
"client_id": "446222152141-llmcc27vignp2jas7f71rb1sva69e62j.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyC3a4yfB1rBSHTlMlGarmHKkoeRj9f44MY"
}
],
"services": {
"analytics_service": {
"status": 1
},
"appinvite_service": {
"status": 1,
"other_platform_oauth_client": []
},
"ads_service": {
"status": 2
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:446222152141:android:82ba9047a008c046",
"android_client_info": {
"package_name": "com.adins.mss.coll.cloud"
}
},
"oauth_client": [
{
"client_id": "446222152141-buravk7m2l0j6o2tosr7mn717ukam7lo.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "com.adins.mss.coll.cloud",
"certificate_hash": "e831f754571d0287b1577c64c2f9da80dca8a28d"
}
},
{
"client_id": "446222152141-llmcc27vignp2jas7f71rb1sva69e62j.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyC3a4yfB1rBSHTlMlGarmHKkoeRj9f44MY"
}
],
"services": {
"analytics_service": {
"status": 1
},
"appinvite_service": {
"status": 2,
"other_platform_oauth_client": [
{
"client_id": "446222152141-llmcc27vignp2jas7f71rb1sva69e62j.apps.googleusercontent.com",
"client_type": 3
}
]
},
"ads_service": {
"status": 2
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:446222152141:android:cecbb11fe64bc4f1",
"android_client_info": {
"package_name": "com.adins.mss.coll.cloud.dev"
}
},
"oauth_client": [
{
"client_id": "446222152141-llmcc27vignp2jas7f71rb1sva69e62j.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyC3a4yfB1rBSHTlMlGarmHKkoeRj9f44MY"
}
],
"services": {
"analytics_service": {
"status": 1
},
"appinvite_service": {
"status": 1,
"other_platform_oauth_client": []
},
"ads_service": {
"status": 2
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:446222152141:android:d9573a5a957ef4f0",
"android_client_info": {
"package_name": "com.adins.mss.coll.cloud.trial"
}
},
"oauth_client": [
{
"client_id": "446222152141-llmcc27vignp2jas7f71rb1sva69e62j.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyC3a4yfB1rBSHTlMlGarmHKkoeRj9f44MY"
}
],
"services": {
"analytics_service": {
"status": 1
},
"appinvite_service": {
"status": 1,
"other_platform_oauth_client": []
},
"ads_service": {
"status": 2
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:446222152141:android:b65468a6c10b3f97",
"android_client_info": {
"package_name": "com.adins.mss.odr.cloud"
}
},
"oauth_client": [
{
"client_id": "446222152141-r44n3f9ci2g7cveohplqgt5hi3gri0b5.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "com.adins.mss.odr.cloud",
"certificate_hash": "e831f754571d0287b1577c64c2f9da80dca8a28d"
}
},
{
"client_id": "446222152141-llmcc27vignp2jas7f71rb1sva69e62j.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyC3a4yfB1rBSHTlMlGarmHKkoeRj9f44MY"
}
],
"services": {
"analytics_service": {
"status": 1
},
"appinvite_service": {
"status": 2,
"other_platform_oauth_client": [
{
"client_id": "446222152141-llmcc27vignp2jas7f71rb1sva69e62j.apps.googleusercontent.com",
"client_type": 3
}
]
},
"ads_service": {
"status": 2
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:446222152141:android:d722cab582795d44",
"android_client_info": {
"package_name": "com.adins.mss.odr.cloud.dev"
}
},
"oauth_client": [
{
"client_id": "446222152141-llmcc27vignp2jas7f71rb1sva69e62j.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyC3a4yfB1rBSHTlMlGarmHKkoeRj9f44MY"
}
],
"services": {
"analytics_service": {
"status": 1
},
"appinvite_service": {
"status": 1,
"other_platform_oauth_client": []
},
"ads_service": {
"status": 2
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:446222152141:android:338f8c2ea2872c21",
"android_client_info": {
"package_name": "com.adins.mss.svy.cloud"
}
},
"oauth_client": [
{
"client_id": "446222152141-ikq3or8fefog8m9uiqboih3uc7r23epo.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "com.adins.mss.svy.cloud",
"certificate_hash": "e831f754571d0287b1577c64c2f9da80dca8a28d"
}
},
{
"client_id": "446222152141-llmcc27vignp2jas7f71rb1sva69e62j.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyC3a4yfB1rBSHTlMlGarmHKkoeRj9f44MY"
}
],
"services": {
"analytics_service": {
"status": 1
},
"appinvite_service": {
"status": 2,
"other_platform_oauth_client": [
{
"client_id": "446222152141-llmcc27vignp2jas7f71rb1sva69e62j.apps.googleusercontent.com",
"client_type": 3
}
]
},
"ads_service": {
"status": 2
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:446222152141:android:0b9842b47415ffc9",
"android_client_info": {
"package_name": "com.adins.mss.svy.cloud.dev"
}
},
"oauth_client": [
{
"client_id": "446222152141-llmcc27vignp2jas7f71rb1sva69e62j.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyC3a4yfB1rBSHTlMlGarmHKkoeRj9f44MY"
}
],
"services": {
"analytics_service": {
"status": 1
},
"appinvite_service": {
"status": 1,
"other_platform_oauth_client": []
},
"ads_service": {
"status": 2
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:446222152141:android:c40e5d0f9a417228",
"android_client_info": {
"package_name": "com.adins.collection"
}
},
"oauth_client": [
{
"client_id": "446222152141-llmcc27vignp2jas7f71rb1sva69e62j.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyC3a4yfB1rBSHTlMlGarmHKkoeRj9f44MY"
},
{
"current_key": "AIzaSyA2V50uQBKw5_w2f3BEEbcNkmwofZyt-Io"
}
],
"services": {
"analytics_service": {
"status": 1
},
"appinvite_service": {
"status": 1,
"other_platform_oauth_client": []
},
"ads_service": {
"status": 2
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:446222152141:android:bb9385b95e120d4c",
"android_client_info": {
"package_name": "com.adins.collection.dev"
}
},
"oauth_client": [
{
"client_id": "446222152141-llmcc27vignp2jas7f71rb1sva69e62j.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyC3a4yfB1rBSHTlMlGarmHKkoeRj9f44MY"
},
{
"current_key": "AIzaSyA2V50uQBKw5_w2f3BEEbcNkmwofZyt-Io"
}
],
"services": {
"analytics_service": {
"status": 1
},
"appinvite_service": {
"status": 1,
"other_platform_oauth_client": []
},
"ads_service": {
"status": 2
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:446222152141:android:95299b5f05d78e63",
"android_client_info": {
"package_name": "com.adins.survey"
}
},
"oauth_client": [
{
"client_id": "446222152141-llmcc27vignp2jas7f71rb1sva69e62j.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyC3a4yfB1rBSHTlMlGarmHKkoeRj9f44MY"
},
{
"current_key": "AIzaSyA2V50uQBKw5_w2f3BEEbcNkmwofZyt-Io"
}
],
"services": {
"analytics_service": {
"status": 1
},
"appinvite_service": {
"status": 1,
"other_platform_oauth_client": []
},
"ads_service": {
"status": 2
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:446222152141:android:a841b661c5c9d7d5",
"android_client_info": {
"package_name": "com.adins.survey.dev"
}
},
"oauth_client": [
{
"client_id": "446222152141-llmcc27vignp2jas7f71rb1sva69e62j.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyC3a4yfB1rBSHTlMlGarmHKkoeRj9f44MY"
},
{
"current_key": "AIzaSyA2V50uQBKw5_w2f3BEEbcNkmwofZyt-Io"
}
],
"services": {
"analytics_service": {
"status": 1
},
"appinvite_service": {
"status": 1,
"other_platform_oauth_client": []
},
"ads_service": {
"status": 2
}
}
}
],
"configuration_version": "1"
}

View file

@ -0,0 +1,18 @@
package com.adins.mss.odr.products.api;
import com.google.gson.annotations.SerializedName;
public class ProductDetailViewPdfBean {
@SerializedName("product_file")
private String product_file;
public String getProduct_file() {
return product_file;
}
public void setProduct_file(String product_file) {
this.product_file = product_file;
}
}

View file

@ -0,0 +1,34 @@
package com.adins.mss.foundation.http;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
public class KeyValue implements Serializable {
@SerializedName("key")
protected String key;
@SerializedName("value")
protected String value;
//Glen add constructor
public KeyValue(String key, String value) {
this.key = key;
this.value = value;
}
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
}

View file

@ -0,0 +1,19 @@
<?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:background="@color/tv_gray"
android:padding="10dp" >
<TextView
android:id="@+id/txtStatusOrder"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textSize="15sp"
android:paddingTop="5dp"
android:paddingBottom="5dp"
android:paddingLeft="5dp"
android:textColor="@color/tv_darker" />
</LinearLayout>