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,198 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/tv_white">
<!-- <uk.co.senab.actionbarpulltorefresh.library.PullToRefreshLayout -->
<!-- android:id="@+id/ptr_layout" -->
<!-- android:layout_width="match_parent" -->
<!-- android:layout_height="match_parent"> -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:weightSum="1">
<include
android:id="@+id/include1"
layout="@layout/header_profile"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="0.6" />
<include
android:id="@+id/includeOut"
layout="@layout/outstandingtask_layout"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
android:id="@+id/swiperefreshtimeline"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="0.4">
<ListView
android:id="@android:id/list"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:listitem="@layout/timeline_item_layout" />
<!-- <LinearLayout -->
<!-- android:layout_width="match_parent" -->
<!-- android:layout_height="match_parent" -->
<!-- android:orientation="vertical" -->
<!-- android:weightSum="1"> -->
<!-- <include -->
<!-- android:id="@+id/include1" -->
<!-- android:layout_width="fill_parent" -->
<!-- android:layout_height="wrap_content" -->
<!-- layout="@layout/header_profile" -->
<!-- android:layout_weight="0.6" /> -->
<!-- <ListView -->
<!-- android:id="@android:id/list" -->
<!-- android:layout_width="match_parent" -->
<!-- android:layout_height="match_parent" -->
<!-- android:divider="@android:color/transparent" -->
<!-- android:dividerHeight="5dp" -->
<!-- android:layout_weight="0.4" -->
<!-- android:footerDividersEnabled="true" -->
<!-- android:headerDividersEnabled="true" -->
<!-- android:scrollbarSize="1dp" -->
<!-- android:scrollbarStyle="outsideOverlay" /> -->
<!-- </LinearLayout> -->
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
<!-- </uk.co.senab.actionbarpulltorefresh.library.PullToRefreshLayout> -->
<!-- <Button -->
<!-- android:id="@+id/tmMessage" -->
<!-- android:layout_width="wrap_content" -->
<!-- android:layout_height="wrap_content" -->
<!-- android:layout_alignParentRight="true" -->
<!-- android:layout_alignParentBottom="true" -->
<!-- android:text="Button" /> -->
</LinearLayout>
<ProgressBar
android:id="@+id/progressBar1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:visibility="gone" />
<RelativeLayout
android:id="@+id/searchLayout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:background="@color/tv_gray"
android:clickable="false"
android:visibility="gone">
<requestFocus />
<RelativeLayout
android:id="@+id/btnLayout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginBottom="5dp"
android:background="@color/ab_end"
android:focusable="true"
android:focusableInTouchMode="true"
android:paddingBottom="5dp"
android:paddingLeft="5dp"
android:paddingRight="5dp"
android:paddingTop="48dp">
<AutoCompleteTextView
android:id="@+id/autoCompleteSearch"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_toLeftOf="@+id/btnSearch"
android:background="@drawable/edittext_background"
android:hint="@string/search_timeline"></AutoCompleteTextView>
<ImageButton
android:id="@+id/btnSearch"
android:layout_width="42dp"
android:layout_height="42dp"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:background="@drawable/circle_button"
android:scaleType="fitXY"
android:src="@drawable/ic_search" />
</RelativeLayout>
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/btnLayout"
android:layout_marginLeft="5dp"
android:text="@string/timeline_type"
android:textAppearance="?android:attr/textAppearanceSmall" />
<Button
android:id="@+id/tmMessage"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/textView1"
android:layout_alignRight="@+id/tmSubmit"
android:layout_below="@+id/tmServerTask"
android:layout_marginTop="5dp"
android:background="@drawable/actionbar_background"
android:onClick="tmMessage"
android:text="@string/message"
android:textColor="@color/tv_white" />
<Button
android:id="@+id/tmSubmit"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/textView1"
android:layout_below="@+id/textView1"
android:layout_marginTop="5dp"
android:background="@drawable/actionbar_background"
android:text="@string/submitted_task"
android:textColor="@color/tv_white" />
<Button
android:id="@+id/tmServerTask"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBaseline="@+id/tmSubmit"
android:layout_alignBottom="@+id/tmSubmit"
android:layout_marginLeft="5dp"
android:layout_toRightOf="@+id/tmSubmit"
android:background="@drawable/actionbar_background"
android:text="@string/server_task"
android:textColor="@color/tv_white" />
<Button
android:id="@+id/tmCheckin"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/textView1"
android:layout_alignRight="@+id/tmSubmit"
android:layout_below="@+id/tmServerTask"
android:layout_marginTop="5dp"
android:background="@drawable/actionbar_background"
android:text="@string/check_in"
android:textColor="@color/tv_white" />
</RelativeLayout>
</RelativeLayout>

View file

@ -0,0 +1,104 @@
package com.adins.mss.svy.models;
import androidx.annotation.Keep;
import com.adins.mss.foundation.http.MssResponseType;
import com.adins.mss.svy.tool.JsonResponseServer.ResponseServer;
import com.google.gson.annotations.SerializedName;
import java.util.List;
public class ActionOnVerification extends MssResponseType{
@SerializedName("listDetail")
public List<ResponseServer> listDetail;
@SerializedName("listAction")
public List<ListAction> listAction;
/**
* Gets the listDetail
*/
public List<ResponseServer> getListDetail() {
return this.listDetail;
}
/**
* Sets the listDetail
*/
public void setListDetail(List<ResponseServer> value) {
this.listDetail = value;
}
/**
* Gets the listAction
*/
public List<ListAction> getListAction() {
return this.listAction;
}
/**
* Sets the listAction
*/
public void setListAction(List<ListAction> value) {
this.listAction = value;
}
public class ListAction
{
@Keep
public String uuid_status_task;
@Keep
public String status_code;
@Keep
public String status_desc;
/**
* Gets the uuid_status_task
*/
public String getUuid_status_task() {
return this.uuid_status_task;
}
/**
* Sets the uuid_status_task
*/
public void setUuid_status_task(String value) {
this.uuid_status_task = value;
}
/**
* Gets the status_code
*/
public String getStatus_code() {
return this.status_code;
}
/**
* Sets the status_code
*/
public void setStatus_code(String value) {
this.status_code = value;
}
/**
* Gets the status_desc
*/
public String getStatus_desc() {
return this.status_desc;
}
/**
* Sets the status_desc
*/
public void setStatus_desc(String value) {
this.status_desc = value;
}
@Override
public String toString() {
return this.status_desc;
}
}
}

View file

@ -0,0 +1,26 @@
package com.adins.mss.svy.reassignment;
/**
* Created by winy.firdasari on 20/01/2015.
*/
public class StatusOrder {
public String Status;
public String Tanggal;
public StatusOrder(){
}
public String getStatus() {
return Status;
}
public String getTanggal() {
return Tanggal;
}
public void setStatus(String Status) {
this.Status = Status;
}
public void setTanggal(String Tanggal) {
this.Tanggal = Tanggal;
}
}

View file

@ -0,0 +1,227 @@
package com.adins.mss.dao;
import java.util.List;
import java.util.ArrayList;
import android.database.Cursor;
import de.greenrobot.dao.AbstractDao;
import de.greenrobot.dao.Property;
import de.greenrobot.dao.internal.SqlUtils;
import de.greenrobot.dao.internal.DaoConfig;
import de.greenrobot.dao.database.Database;
import de.greenrobot.dao.database.DatabaseStatement;
import de.greenrobot.dao.query.Query;
import de.greenrobot.dao.query.QueryBuilder;
import com.adins.mss.dao.TaskHSequence;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/**
* DAO for table "TR_TASK_H_SEQUENCE".
*/
public class TaskHSequenceDao extends AbstractDao<TaskHSequence, Void> {
public static final String TABLENAME = "TR_TASK_H_SEQUENCE";
/**
* Properties of entity TaskHSequence.<br/>
* Can be used for QueryBuilder and for referencing column names.
*/
public static class Properties {
public final static Property Sequence = new Property(0, int.class, "sequence", false, "SEQUENCE");
public final static Property Uuid_task_h = new Property(1, String.class, "uuid_task_h", false, "UUID_TASK_H");
};
private DaoSession daoSession;
private Query<TaskHSequence> taskH_TaskHSequenceListQuery;
public TaskHSequenceDao(DaoConfig config) {
super(config);
}
public TaskHSequenceDao(DaoConfig config, DaoSession daoSession) {
super(config, daoSession);
this.daoSession = daoSession;
}
/** Creates the underlying database table. */
public static void createTable(Database db, boolean ifNotExists) {
String constraint = ifNotExists? "IF NOT EXISTS ": "";
db.execSQL("CREATE TABLE " + constraint + "\"TR_TASK_H_SEQUENCE\" (" + //
"\"SEQUENCE\" INTEGER NOT NULL ," + // 0: sequence
"\"UUID_TASK_H\" TEXT);"); // 1: uuid_task_h
}
/** Drops the underlying database table. */
public static void dropTable(Database db, boolean ifExists) {
String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "\"TR_TASK_H_SEQUENCE\"";
db.execSQL(sql);
}
/** @inheritdoc */
@Override
protected void bindValues(DatabaseStatement stmt, TaskHSequence entity) {
stmt.clearBindings();
stmt.bindLong(1, entity.getSequence());
String uuid_task_h = entity.getUuid_task_h();
if (uuid_task_h != null) {
stmt.bindString(2, uuid_task_h);
}
}
@Override
protected void attachEntity(TaskHSequence entity) {
super.attachEntity(entity);
entity.__setDaoSession(daoSession);
}
/** @inheritdoc */
@Override
public Void readKey(Cursor cursor, int offset) {
return null;
}
/** @inheritdoc */
@Override
public TaskHSequence readEntity(Cursor cursor, int offset) {
TaskHSequence entity = new TaskHSequence( //
cursor.getInt(offset + 0), // sequence
cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1) // uuid_task_h
);
return entity;
}
/** @inheritdoc */
@Override
public void readEntity(Cursor cursor, TaskHSequence entity, int offset) {
entity.setSequence(cursor.getInt(offset + 0));
entity.setUuid_task_h(cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1));
}
/** @inheritdoc */
@Override
protected Void updateKeyAfterInsert(TaskHSequence entity, long rowId) {
// Unsupported or missing PK type
return null;
}
/** @inheritdoc */
@Override
public Void getKey(TaskHSequence entity) {
return null;
}
/** @inheritdoc */
@Override
protected boolean isEntityUpdateable() {
return true;
}
/** Internal query to resolve the "taskHSequenceList" to-many relationship of TaskH. */
public List<TaskHSequence> _queryTaskH_TaskHSequenceList(String uuid_task_h) {
synchronized (this) {
if (taskH_TaskHSequenceListQuery == null) {
QueryBuilder<TaskHSequence> queryBuilder = queryBuilder();
queryBuilder.where(Properties.Uuid_task_h.eq(null));
taskH_TaskHSequenceListQuery = queryBuilder.build();
}
}
Query<TaskHSequence> query = taskH_TaskHSequenceListQuery.forCurrentThread();
query.setParameter(0, uuid_task_h);
return query.list();
}
private String selectDeep;
protected String getSelectDeep() {
if (selectDeep == null) {
StringBuilder builder = new StringBuilder("SELECT ");
SqlUtils.appendColumns(builder, "T", getAllColumns());
builder.append(',');
SqlUtils.appendColumns(builder, "T0", daoSession.getTaskHDao().getAllColumns());
builder.append(" FROM TR_TASK_H_SEQUENCE T");
builder.append(" LEFT JOIN TR_TASK_H T0 ON T.\"UUID_TASK_H\"=T0.\"UUID_TASK_H\"");
builder.append(' ');
selectDeep = builder.toString();
}
return selectDeep;
}
protected TaskHSequence loadCurrentDeep(Cursor cursor, boolean lock) {
TaskHSequence entity = loadCurrent(cursor, 0, lock);
int offset = getAllColumns().length;
TaskH taskH = loadCurrentOther(daoSession.getTaskHDao(), cursor, offset);
entity.setTaskH(taskH);
return entity;
}
public TaskHSequence loadDeep(Long key) {
assertSinglePk();
if (key == null) {
return null;
}
StringBuilder builder = new StringBuilder(getSelectDeep());
builder.append("WHERE ");
SqlUtils.appendColumnsEqValue(builder, "T", getPkColumns());
String sql = builder.toString();
String[] keyArray = new String[] { key.toString() };
Cursor cursor = db.rawQuery(sql, keyArray);
try {
boolean available = cursor.moveToFirst();
if (!available) {
return null;
} else if (!cursor.isLast()) {
throw new IllegalStateException("Expected unique result, but count was " + cursor.getCount());
}
return loadCurrentDeep(cursor, true);
} finally {
cursor.close();
}
}
/** Reads all available rows from the given cursor and returns a list of new ImageTO objects. */
public List<TaskHSequence> loadAllDeepFromCursor(Cursor cursor) {
int count = cursor.getCount();
List<TaskHSequence> list = new ArrayList<TaskHSequence>(count);
if (cursor.moveToFirst()) {
if (identityScope != null) {
identityScope.lock();
identityScope.reserveRoom(count);
}
try {
do {
list.add(loadCurrentDeep(cursor, false));
} while (cursor.moveToNext());
} finally {
if (identityScope != null) {
identityScope.unlock();
}
}
}
return list;
}
protected List<TaskHSequence> loadDeepAllAndCloseCursor(Cursor cursor) {
try {
return loadAllDeepFromCursor(cursor);
} finally {
cursor.close();
}
}
/** A raw-style query where you can pass any WHERE clause and arguments. */
public List<TaskHSequence> queryDeep(String where, String... selectionArg) {
Cursor cursor = db.rawQuery(getSelectDeep() + where, selectionArg);
return loadDeepAllAndCloseCursor(cursor);
}
}

View file

@ -0,0 +1,42 @@
package com.adins.mss.odr.simulasi;
import java.util.List;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import com.adins.mss.base.R;
import com.adins.mss.dao.Scheme;
import com.androidquery.AQuery;
public class CreditSimulationAdapter extends ArrayAdapter<Scheme>{
private List<Scheme> objects;
private Context context;
AQuery query;
public CreditSimulationAdapter(Context context,
List<Scheme> objects) {
super(context, R.layout.newtask_item_layout, objects);
this.context = context;
this.objects = objects;
}
@Override
public int getCount() {
return objects.size();
}
@Override
public View getView(final int position, View convertView, ViewGroup parent) {
if (convertView == null) {
convertView = LayoutInflater.from(getContext()).inflate(R.layout.newtask_item_layout, parent, false);
}
query = new AQuery(convertView);
Scheme scheme = objects.get(position);
query.id(R.id.txtTaskTitle).text(scheme.getScheme_description());
return convertView;
}
}

View file

@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="@color/gradient_end"
android:pathData="M7,10l5,5 5,-5z"/>
</vector>

View file

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.adins.mss.odr.MainActivity">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!" />
</RelativeLayout>