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,282 @@
<?xml version="1.0" encoding="utf-8"?><!--
/*
** Copyright 2010, The Android Open Source Project
**
** 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.
*/
https://github.com/android/platform_frameworks_base/blob/master/core/res/res/layout/alert_dialog_holo.xml
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/mainlayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="@dimen/dialog_padding"
android:paddingRight="@dimen/dialog_padding">
<LinearLayout
android:id="@+id/parentPanelT"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:background="@drawable/dialog_bg"
android:clickable="false"
android:orientation="vertical"
android:visibility="visible">
<LinearLayout
android:id="@+id/topPanelT"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/title_templateT"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_marginTop="10dp">
<ImageView
android:id="@+id/iconT"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scaleType="centerInside"
android:src="@null" />
<TextView
android:id="@+id/alertTitleT"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="10dp"
android:ellipsize="end"
android:gravity="center"
android:maxLines="1"
android:text="TITLE"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textStyle="bold"
android:textColor="@color/gradient_end"/>
</LinearLayout>
</RelativeLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/contentPanelT"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<LinearLayout
android:id="@+id/ChoiceTaskList"
android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<TextView
android:id="@+id/Choice1"
style="?android:attr/textAppearanceMedium"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:padding="16dip"
android:paddingBottom="8dip"
android:paddingTop="8dip"
android:text="@string/title_mn_tasklist"
android:textColor="@color/msg_color"
android:textIsSelectable="true" />
</LinearLayout>
<LinearLayout
android:id="@+id/ChoiceVerificationlist"
android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<TextView
android:id="@+id/Choice2"
style="?android:attr/textAppearanceMedium"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:padding="16dip"
android:paddingBottom="8dip"
android:paddingTop="8dip"
android:text="@string/title_mn_verification_list"
android:textColor="@color/msg_color"
android:textIsSelectable="true" />
</LinearLayout>
<LinearLayout
android:id="@+id/ChoiceApprovalList"
android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<TextView
android:id="@+id/Choice3"
style="?android:attr/textAppearanceMedium"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:padding="16dip"
android:paddingBottom="8dip"
android:paddingTop="8dip"
android:text="@string/title_mn_approval_list"
android:textColor="@color/msg_color"
android:textIsSelectable="true" />
</LinearLayout>
<LinearLayout
android:id="@+id/ChoiceAssignmentList"
android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<TextView
android:id="@+id/Choice6"
style="?android:attr/textAppearanceMedium"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:padding="16dip"
android:paddingBottom="8dip"
android:paddingTop="8dip"
android:text="@string/title_mn_surveyassign"
android:textColor="@color/msg_color"
android:textIsSelectable="true" />
</LinearLayout>
<LinearLayout
android:id="@+id/ChoiceVerificationlistByBranch"
android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<TextView
android:id="@+id/Choice4"
style="?android:attr/textAppearanceMedium"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:padding="16dip"
android:paddingBottom="8dip"
android:paddingTop="8dip"
android:text="@string/title_mn_verification_bybranch"
android:textColor="@color/msg_color"
android:textIsSelectable="true" />
</LinearLayout>
<LinearLayout
android:id="@+id/ChoiceApprovalListByBranch"
android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<TextView
android:id="@+id/Choice5"
style="?android:attr/textAppearanceMedium"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:padding="16dip"
android:paddingBottom="8dip"
android:paddingTop="8dip"
android:text="@string/title_mn_approval_bybranch"
android:textColor="@color/msg_color"
android:textIsSelectable="true" />
</LinearLayout>
<TextView
android:id="@+id/messageT"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:gravity="center"
android:padding="10dp"
android:textColor="@color/fontColor"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textIsSelectable="true"
android:text="text" />
</LinearLayout>
<FrameLayout
android:id="@+id/customPanelT"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_margin="5dp">
<ImageView
android:id="@+id/imageViewT"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@drawable/img_notavailable"
android:scaleType="centerInside"
android:visibility="gone"/>
<AutoCompleteTextView
android:id="@+id/txtSearch"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:visibility="gone"
android:textColor="#FFFFFF"
android:hint="@string/search_question" >
</AutoCompleteTextView>
</FrameLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<Button
android:id="@+id/button1T"
style="@style/dialog_btn"
android:layout_marginLeft="10dp"
android:layout_marginRight="5dp"
android:text="@string/btnOk"
android:background="@drawable/button_background"
android:visibility="gone" />
<Button
android:id="@+id/button2T"
style="@style/dialog_btn"
android:layout_marginLeft="5dp"
android:layout_marginRight="10dp"
android:text="@string/btnCancel"
android:background="@drawable/button_background"
android:visibility="gone" />
</LinearLayout>
</LinearLayout>
</RelativeLayout>

View file

@ -0,0 +1,125 @@
package com.adins.mss.base.todolist.form;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.TextView;
import com.adins.mss.base.GlobalData;
import com.adins.mss.base.R;
import com.adins.mss.base.todolist.ToDoList;
import com.adins.mss.base.util.LocaleHelper;
import com.adins.mss.dao.TaskH;
import com.adins.mss.foundation.db.dataaccess.TaskHDataAccess;
import org.acra.ACRA;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
public class AllHeaderViewerActivity extends Activity {
public static final String BUND_KEY_REQ = "BUND_KEY_REQ";
public static final String REQ_PRIORITY_LIST = "REQ_PRIORITY_LIST";
public static final String REQ_LOG_LIST = "REQ_LOG_LIST";
public static final String REQ_STATUS_LIST = "REQ_STATUS_LIST";
private ListView listHeader;
private TaskHeaderAdapter listAdapter;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.all_header_viewer_layout);
ACRA.getErrorReporter().putCustomData("LAST_CLASS_ACCESSED", getClass().getSimpleName());
initialize();
}
@Override
protected void attachBaseContext(Context newBase) {
Context context = newBase;
Locale locale;
try{
locale = new Locale(GlobalData.getSharedGlobalData().getLocale());
context = LocaleHelper.wrap(newBase, locale);
} catch (Exception e) {
locale = new Locale(LocaleHelper.ENGLSIH);
context = LocaleHelper.wrap(newBase, locale);
} finally {
super.attachBaseContext(context);
}
}
@Override
public void onBackPressed() {
super.onBackPressed();
this.finish();
}
private void initialize() {
listHeader = (ListView) findViewById(android.R.id.list);
List<TaskH> listTaskH = null;
String key_req = getIntent().getExtras().getString(BUND_KEY_REQ);
if (REQ_PRIORITY_LIST.equals(key_req))
listTaskH = ToDoList.getListTaskInPriority(getApplicationContext(), 0, null);
else if (REQ_STATUS_LIST.equals(key_req))
listTaskH = TaskHDataAccess.getAllTaskInStatus(getApplicationContext(), GlobalData.getSharedGlobalData().getUser().getUuid_user());
else if (REQ_LOG_LIST.equals(key_req))
listTaskH = TaskHDataAccess.getAllSentTask(getApplicationContext(), GlobalData.getSharedGlobalData().getUser().getUuid_user());
else
listTaskH = new ArrayList<>();
listAdapter = new TaskHeaderAdapter(getApplicationContext(), listTaskH);
listHeader.setAdapter(listAdapter);
}
public class TaskHeaderAdapter extends ArrayAdapter<TaskH> {
private Context mContext;
private List<TaskH> listTaskH;
public TaskHeaderAdapter(Context c, List<TaskH> listTaskH) {
super(c, R.layout.all_header_viewer_item, listTaskH);
mContext = c;
this.listTaskH = listTaskH;
}
@Override
public int getCount() {
return listTaskH.size();
}
@Override
public long getItemId(int position) {
return 0;
}
// create a new ImageView for each item referenced by the Adapter
@Override
public View getView(int position, View convertView, ViewGroup parent) {
LayoutInflater inflater = (LayoutInflater) mContext
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View v;
v = inflater.inflate(R.layout.all_header_viewer_item, null);
TextView txtPriority = (TextView) v.findViewById(R.id.txtPriority);
TextView txtCustName = (TextView) v.findViewById(R.id.txtCustName);
TextView txtCustAddress = (TextView) v.findViewById(R.id.txtCustAddress);
TextView txtCustPhone = (TextView) v.findViewById(R.id.txtCustPhone);
TextView txtNotes = (TextView) v.findViewById(R.id.txtNotes);
TaskH taskH = listTaskH.get(position);
txtPriority.setText(taskH.getPriority());
txtCustName.setText(taskH.getCustomer_name());
txtCustAddress.setText(taskH.getCustomer_address());
txtCustPhone.setText(taskH.getCustomer_phone());
txtNotes.setText(taskH.getNotes());
return v;
}
}
}

View file

@ -0,0 +1,25 @@
package com.adins.mss.coll.models.loyaltymodels;
import com.google.gson.annotations.SerializedName;
public class PointDetail {
@SerializedName("REWARD_PROGRAM")
public String rewardProgram;
@SerializedName("POINT")
public String point;
public transient int colorValue;
public PointDetail() {
}
public PointDetail(String rewardProgram, String point) {
this.rewardProgram = rewardProgram;
this.point = point;
}
public PointDetail(String rewardProgram, String point, int colorValue) {
this.rewardProgram = rewardProgram;
this.point = point;
this.colorValue = colorValue;
}
}

View file

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="define_AdInsLibrariesv1">year;owner</string>
<string name="library_AdInsLibrariesv1_author">AdIns</string>
<string name="library_AdInsLibrariesv1_authorWebsite">http://gegemobile.com/</string>
<string name="library_AdInsLibrariesv1_libraryName">MSS v1</string>
<string name="library_AdInsLibrariesv1_libraryDescription">
<![CDATA[
<b>AboutLibraries</b> is a library to offer you all the information you need of your libraries!
<br /><br />
Most modern apps feature an "Used Library"-Section and for this some information of those libs is required. As it gets annoying to copy those strings always to your app I have developed this small helper library to provide the required information.
]]>
</string>
<string name="library_AdInsLibrariesv1_libraryVersion">1.1.0</string>
<string name="library_AdInsLibrariesv1_libraryWebsite">https://github.com/mikepenz/AdInsLibraries</string>
<string name="library_AdInsLibrariesv1_licenseId">bsd_2</string>
<string name="library_AdInsLibrariesv_isOpenSource">true</string>
<string name="library_AdInsLibrariesv1_repositoryLink">https://github.com/mikepenz/AdInsLibraries</string>
<!-- Custom variables section -->
<string name="library_AdInsLibrariesv1_owner">AdIns</string>
<string name="library_AdInsLibrariesv1_year">2014</string>
</resources>

View file

@ -0,0 +1,21 @@
package com.adins.mss.base.todolist.form.helper;
import com.adins.mss.foundation.http.MssRequestType;
import com.google.gson.annotations.SerializedName;
/**
* Created by Kamil on 10/18/17.
*/
public class JsonRequestRetrieveVerificationForm extends MssRequestType {
@SerializedName("uuid_task_h")
String uuidTaskH;
public String getUuidTaskH() {
return uuidTaskH;
}
public void setUuidTaskH(String uuidTaskH) {
this.uuidTaskH = uuidTaskH;
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

View file

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/txtTaskTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_margin="2dp"
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:paddingLeft="20dp"
android:background="@drawable/button_background"
android:text="@string/title"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="@color/fontColorWhite"/>
</LinearLayout>

View file

@ -0,0 +1,60 @@
package com.manuelpeinado.fadingactionbar.view;
import android.content.Context;
import android.os.Build;
import android.util.AttributeSet;
import android.widget.ScrollView;
/**
* @author Cyril Mottier with modifications from Manuel Peinado
*/
public class ObservableScrollView extends ScrollView implements ObservableScrollable {
// Edge-effects don't mix well with the translucent action bar in Android 2.X
private boolean mDisableEdgeEffects = true;
private OnScrollChangedCallback mOnScrollChangedListener;
public ObservableScrollView(Context context) {
super(context);
}
public ObservableScrollView(Context context, AttributeSet attrs) {
super(context, attrs);
}
public ObservableScrollView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
}
@Override
protected void onScrollChanged(int l, int t, int oldl, int oldt) {
super.onScrollChanged(l, t, oldl, oldt);
if (mOnScrollChangedListener != null) {
mOnScrollChangedListener.onScroll(l, t);
}
}
@Override
protected float getTopFadingEdgeStrength() {
// http://stackoverflow.com/a/6894270/244576
if (mDisableEdgeEffects && Build.VERSION.SDK_INT < Build.VERSION_CODES.HONEYCOMB) {
return 0.0f;
}
return super.getTopFadingEdgeStrength();
}
@Override
protected float getBottomFadingEdgeStrength() {
// http://stackoverflow.com/a/6894270/244576
if (mDisableEdgeEffects && Build.VERSION.SDK_INT < Build.VERSION_CODES.HONEYCOMB) {
return 0.0f;
}
return super.getBottomFadingEdgeStrength();
}
@Override
public void setOnScrollChangedCallback(OnScrollChangedCallback callback) {
mOnScrollChangedListener = callback;
}
}

View file

@ -0,0 +1,121 @@
package com.adins.mss.base.todolist.form.followup;
import com.adins.mss.foundation.http.MssResponseType;
import com.google.gson.annotations.SerializedName;
public class TaskListResponse extends MssResponseType {
@SerializedName("uuidTaskH")
private String uuidTaskH;
@SerializedName("customerName")
private String customerName;
@SerializedName("agreementNo")
private String agreementNo;
@SerializedName("flagTask")
private String flagTask;
@SerializedName("customerAddress")
private String customerAddress;
@SerializedName("customerPhone")
private String customerPhone;
@SerializedName("tglJanjiBayar")
private String tglJanjiBayar;
@SerializedName("overdueDays")
private String overdueDays;
@SerializedName("installmentNo")
private String installmentNo;
@SerializedName("amountDue")
private String amountDue;
public String getCustomerAddress() {
return customerAddress;
}
public void setCustomerAddress(String customerAddress) {
this.customerAddress = customerAddress;
}
public String getCustomerPhone() {
return customerPhone;
}
public void setCustomerPhone(String customerPhone) {
this.customerPhone = customerPhone;
}
public String getTglJanjiBayar() {
return tglJanjiBayar;
}
public void setTglJanjiBayar(String tglJanjiBayar) {
this.tglJanjiBayar = tglJanjiBayar;
}
public String getOverdueDays() {
return overdueDays;
}
public void setOverdueDays(String overdueDays) {
this.overdueDays = overdueDays;
}
public String getInstallmentNo() {
return installmentNo;
}
public void setInstallmentNo(String installmentNo) {
this.installmentNo = installmentNo;
}
public String getAmountDue() {
return amountDue;
}
public void setAmountDue(String amountDue) {
this.amountDue = amountDue;
}
public String getUuidTaskH() {
return uuidTaskH;
}
public void setUuidTaskH(String uuidTaskH) {
this.uuidTaskH = uuidTaskH;
}
public String getCustomerName() {
return customerName;
}
public void setCustomerName(String customerName) {
this.customerName = customerName;
}
public String getAgreementNo() {
return agreementNo;
}
public void setAgreementNo(String agreementNo) {
this.agreementNo = agreementNo;
}
public String getFlagTask() {
return flagTask;
}
public void setFlagTask(String flagTask) {
this.flagTask = flagTask;
}
}

View file

@ -0,0 +1,25 @@
package com.adins.mss.odr.accounts.api;
import com.adins.mss.dao.Account;
import com.adins.mss.foundation.http.MssResponseType;
import com.google.gson.annotations.SerializedName;
import java.util.List;
/**
* Created by olivia.dg on 11/16/2017.
*/
public class AccountsSearchResponse extends MssResponseType {
@SerializedName("listAccount")
List<Account> listAccount;
public List<Account> getListAccount() {
return listAccount;
}
public void setListAccount(List<Account> listAccount) {
this.listAccount = listAccount;
}
}