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,88 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="5dp"
android:background="@drawable/spinner_background" >
<TextView
android:id="@+id/txtTaskID"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/dummy_task_id"
android:textColor="@color/tv_white"
android:layout_gravity="center_horizontal"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textSize="12dp"
/>
<ImageView
android:id="@+id/imgStatus"
android:layout_marginTop="5dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_schema"
android:layout_gravity="center_horizontal" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:orientation="vertical" >
<TextView
android:id="@+id/txtName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:gravity="center"
android:lines="1"
android:text="@string/dummy_header_name_2"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="@color/tv_white" />
<TextView
android:id="@+id/txtDate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:gravity="center"
android:lines="1"
android:text="@string/dummy_date"
android:textSize="12dp"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="@color/tv_white" />
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_gravity="center_horizontal" >
<TextView
android:id="@+id/txtStatusTask"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/dummy_status_task"
android:visibility="gone"
android:textColor="@color/tv_white"
android:textSize="10dp" />
<TextView
android:id="@+id/txtScheme"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:textColor="@color/tv_white"
android:minLines="2"
android:gravity="center_horizontal"
android:layout_gravity="center_horizontal"
android:text="@string/dummy_scheme_name"
android:textSize="10dp" />
</LinearLayout>
</LinearLayout>

View file

@ -0,0 +1,35 @@
package com.adins.mss.foundation.dialog.gitonway.lib.effects;
import android.view.View;
import com.adins.libs.nineoldandroids.animation.ObjectAnimator;
/*
* Copyright 2014 litao
* https://github.com/sd6352051/NiftyDialogEffects
*
* 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.
*/
public class NewsPaper extends BaseEffects {
@Override
protected void setupAnimation(View view) {
getAnimatorSet().playTogether(
ObjectAnimator.ofFloat(view, "rotation", 1080, 720, 360, 0).setDuration(mDuration),
ObjectAnimator.ofFloat(view, "alpha", 0, 1).setDuration(mDuration * 3 / 2),
ObjectAnimator.ofFloat(view, "scaleX", 0.1f, 0.5f, 1).setDuration(mDuration),
ObjectAnimator.ofFloat(view, "scaleY", 0.1f, 0.5f, 1).setDuration(mDuration)
);
}
}

View file

@ -0,0 +1,127 @@
package com.adins.mss.foundation.db.dataaccess;
import android.content.Context;
import com.adins.mss.dao.DaoSession;
import com.adins.mss.dao.ThemeItem;
import com.adins.mss.dao.ThemeItemDao;
import com.adins.mss.foundation.db.DaoOpenHelper;
import java.util.List;
import de.greenrobot.dao.query.DeleteQuery;
import de.greenrobot.dao.query.QueryBuilder;
/**
* Created by intishar.fa on 01/10/2018.
*/
public class ThemeItemDataAccess {
protected static DaoSession getDaoSession(Context context) {
return DaoOpenHelper.getDaoSession(context);
}
/**
* get taskD dao and you can access the DB
*
* @param context
* @return
*/
protected static ThemeItemDao getThemeItemDao(Context context) {
return getDaoSession(context).getThemeItemDao();
}
/**
* Clear session, close db and set daoOpenHelper to null
*/
public static void closeAll() {
/*if(daoOpenHelper!=null){
daoOpenHelper.closeAll();
daoOpenHelper = null;
}*/
DaoOpenHelper.closeAll();
}
/**
* add taskD as entity
*
* @param context
* @param themeitem
*/
public static void add(Context context, ThemeItem themeitem) {
getThemeItemDao(context).insertInTx(themeitem);
getDaoSession(context).clear();
}
/**
* add taskD as list entity
*
* @param context
* @param themeItemList
*/
public static void add(Context context, List<ThemeItem> themeItemList) {
getThemeItemDao(context).insertInTx(themeItemList);
getDaoSession(context).clear();
}
/**
* addOrReplace taskD as entity
*
* @param context
* @param themeitem
*/
public static void addOrReplace(Context context, ThemeItem themeitem) {
getThemeItemDao(context).insertOrReplaceInTx(themeitem);
getDaoSession(context).clear();
}
/**
* addOrReplace taskD as list entity
*
* @param context
* @param themeItemList
*/
public static void addOrReplace(Context context, List<ThemeItem> themeItemList) {
getThemeItemDao(context).insertOrReplaceInTx(themeItemList);
getDaoSession(context).clear();
}
/**
* delete all content in table.
*
* @param context
*/
public static void clean(Context context) {
getThemeItemDao(context).deleteAll();
getDaoSession(context).clear();
}
/**
* @param context
* @param themeitem
*/
public static void delete(Context context, ThemeItem themeitem) {
getThemeItemDao(context).delete(themeitem);
getDaoSession(context).clear();
}
public static void deleteAllItemByUuidTheme(Context context,String uuidTheme){
DeleteQuery<ThemeItem> deleteQuery = getThemeItemDao(context).queryBuilder()
.where(ThemeItemDao.Properties.Uuid_theme.eq(uuidTheme))
.buildDelete();
deleteQuery.executeDeleteWithoutDetachingEntities();
getDaoSession(context).clear();
}
public static List<ThemeItem> getAll(Context context){
QueryBuilder<ThemeItem> qb = getThemeItemDao(context).queryBuilder();
return qb.list();
}
public static List<ThemeItem> getAllByUuidTheme(Context context, String uuidTheme){
QueryBuilder<ThemeItem> qb = getThemeItemDao(context).queryBuilder();
qb.where(ThemeItemDao.Properties.Uuid_theme.eq(uuidTheme));
return qb.list();
}
}

View file

@ -0,0 +1,76 @@
package com.adins.mss.odr.accounts.adapter;
import androidx.fragment.app.FragmentActivity;
import androidx.recyclerview.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.adins.mss.dao.GroupTask;
import com.adins.mss.odr.R;
import com.adins.mss.odr.accounts.LoadOpportunityDetail;
import java.util.List;
/**
* Created by olivia.dg on 11/17/2017.
*/
public class OpportunityListAdapter extends RecyclerView.Adapter<OpportunityListAdapter.OpportunityListViewHolder> {
private static FragmentActivity activity;
private List<GroupTask> groupTasks;
public OpportunityListAdapter(FragmentActivity activity, List<GroupTask> groupTasks) {
this.activity = activity;
this.groupTasks = groupTasks;
}
public class OpportunityListViewHolder extends RecyclerView.ViewHolder {
public final View mView;
public final TextView txtId;
public final TextView txtStatus;
public final TextView txtProduct;
public OpportunityListViewHolder(View itemView) {
super(itemView);
mView = itemView;
txtId = (TextView) itemView.findViewById(R.id.txtId);
txtStatus = (TextView) itemView.findViewById(R.id.txtStatus);
txtProduct = (TextView) itemView.findViewById(R.id.txtProduct);
}
public void bind(GroupTask groupTask) {
txtId.setText(groupTask.getGroup_task_id());
txtStatus.setText(groupTask.getLast_status());
txtProduct.setText(groupTask.getProduct_name());
}
}
@Override
public OpportunityListViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.opportunity_list_item, parent, false);
OpportunityListViewHolder viewHolder = new OpportunityListViewHolder(v);
return viewHolder;
}
@Override
public void onBindViewHolder(OpportunityListViewHolder holder, final int position) {
holder.bind(groupTasks.get(position));
holder.mView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
LoadOpportunityDetail request = new LoadOpportunityDetail(activity, groupTasks.get(position));
request.execute();
}
});
}
@Override
public int getItemCount() {
if (groupTasks == null || groupTasks.size() == 0)
return 0;
else
return groupTasks.size();
}
}

View file

@ -0,0 +1,57 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="?android:attr/actionBarSize"
android:background="@color/tv_darker">
<TextView
android:id="@+id/lbl_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:gravity="center"
android:text="@string/defaultYourName"
android:textAppearance="@android:style/TextAppearance.Large"
android:textColor="#ffffff"/>
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="?android:attr/listPreferredItemHeightLarge"
android:background="#ffffff">
<LinearLayout android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:orientation="vertical">
<TextView
android:id="@+id/txt_time"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:textColor="@color/txt_view"
android:text="@string/defaultTime"/>
<TextView
android:id="@+id/txt_date"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:textColor="@color/txt_view"
android:text="@string/defaultDate"/>
<!-- <TextView -->
<!-- android:id="@+id/txt_desc" -->
<!-- android:layout_width="match_parent" -->
<!-- android:layout_height="wrap_content" -->
<!-- android:gravity="center" -->
<!-- android:textColor="@color/txt_view" -->
<!-- android:text="desc" /> -->
</LinearLayout>
</RelativeLayout>
</LinearLayout>

View file

@ -0,0 +1,56 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2009 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.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<TextView android:id="@+id/title_paired_devices"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/title_paired_devices"
android:visibility="gone"
android:background="#666"
android:textColor="#fff"
android:paddingLeft="5dp"
/>
<ListView android:id="@+id/paired_devices"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:stackFromBottom="true"
android:layout_weight="1"
/>
<TextView android:id="@+id/title_new_devices"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/title_other_devices"
android:visibility="gone"
android:background="#666"
android:textColor="#fff"
android:paddingLeft="5dp"
/>
<ListView android:id="@+id/new_devices"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:stackFromBottom="true"
android:layout_weight="2"
/>
<Button android:id="@+id/button_scan"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/button_scan"
/>
</LinearLayout>

View file

@ -0,0 +1,17 @@
package com.adins.mss.base.dynamicform.form.models;
import com.adins.mss.foundation.http.MssResponseType;
import com.google.gson.annotations.SerializedName;
public class JsonDataRecommendationResponse extends MssResponseType {
@SerializedName("result")
private String result;
public String getResult() {
return result;
}
public void setResult(String result) {
this.result = result;
}
}

View file

@ -0,0 +1,126 @@
package com.adins.mss.base.models;
import com.adins.mss.foundation.http.MssRequestType;
import com.google.gson.annotations.SerializedName;
public class RequestRejectedWithResurvey extends MssRequestType {
/**
* Property uuid_task_h
*/
@SerializedName("uuid_task_h")
String uuid_task_h;
/**
* Property flag
*/
@SerializedName("flag")
String flag;
/**
* Property uuid_user
*/
@SerializedName("uuid_user")
String uuid_user;
/**
* Property uuid_ms_user
*/
@SerializedName("uuid_ms_user")
String uuid_ms_user;
/**
* Property is_suggested
*/
@SerializedName("is_suggested")
String is_suggested;
/**
* Property notes
*/
@SerializedName("notes")
String notes;
/**
* Gets the uuid_ms_user
*/
public String getUuid_ms_user() {
return this.uuid_ms_user;
}
/**
* Sets the uuid_ms_user
*/
public void setUuid_ms_user(String value) {
this.uuid_ms_user = value;
}
/**
* Gets the is_suggested
*/
public String getIs_suggested() {
return this.is_suggested;
}
/**
* Sets the is_suggested
*/
public void setIs_suggested(String value) {
this.is_suggested = value;
}
/**
* Gets the notes
*/
public String getNotes() {
return this.notes;
}
/**
* Sets the notes
*/
public void setNotes(String value) {
this.notes = value;
}
/**
* Gets the uuid_task_h
*/
public String getUuid_task_h() {
return this.uuid_task_h;
}
/**
* Sets the uuid_task_h
*/
public void setUuid_task_h(String value) {
this.uuid_task_h = value;
}
/**
* Gets the flag
*/
public String getFlag() {
return this.flag;
}
/**
* Sets the flag
*/
public void setFlag(String value) {
this.flag = value;
}
/**
* Gets the uuid_user
*/
public String getUuid_user() {
return this.uuid_user;
}
/**
* Sets the uuid_user
*/
public void setUuid_user(String value) {
this.uuid_user = value;
}
}

View file

@ -0,0 +1,49 @@
<?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:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/darker_gray"
android:orientation="vertical"
tools:context=".pdfrenderer.ViewPdfRendererFragment">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycleViewPdf"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentTop="true" />
<androidx.cardview.widget.CardView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentBottom="true"
android:layout_margin="10dp"
android:visibility="gone"
app:cardBackgroundColor="@color/dividerLight_openSource"
app:cardCornerRadius="8dp">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:padding="5dp">
<ImageView
android:id="@+id/btnZoomIn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleType="centerInside"
app:srcCompat="@drawable/ic_plus_circle" />
<ImageView
android:id="@+id/btnZoomOut"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleType="centerInside"
app:srcCompat="@drawable/ic_minus_circle" />
</LinearLayout>
</androidx.cardview.widget.CardView>
</RelativeLayout>

View file

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid
android:color="@color/slaRed" />
<corners
android:radius="5dp" />
</shape>