mirror of
https://github.com/freeedcom/ai-codereviewer.git
synced 2025-06-30 21:04:16 +00:00
add project adins
This commit is contained in:
parent
ad06ac5505
commit
f8f85d679d
5299 changed files with 625430 additions and 0 deletions
|
@ -0,0 +1,47 @@
|
|||
package com.adins.mss.foundation.operators;
|
||||
|
||||
import androidx.annotation.Keep;
|
||||
|
||||
import com.gadberry.utility.expression.Argument;
|
||||
import com.gadberry.utility.expression.Expression;
|
||||
import com.gadberry.utility.expression.Function;
|
||||
import com.gadberry.utility.expression.InvalidArgumentsException;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by gigin.ginanjar on 14/09/2016.
|
||||
*/
|
||||
public class IfElseFunctionForCopyValue extends Function {
|
||||
|
||||
@Keep
|
||||
public IfElseFunctionForCopyValue(Expression expression) {
|
||||
super(expression);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void checkArgs(List<Argument> args) throws InvalidArgumentsException {
|
||||
if (args.size() < 3) {
|
||||
throw new InvalidArgumentsException(
|
||||
"IfElseOperator requires a minimum of three arguments."
|
||||
);
|
||||
}
|
||||
for (Argument arg : args) {
|
||||
if (arg.isNull()) {
|
||||
throw new InvalidArgumentsException(
|
||||
"IfElseOperator cannot accept null arguments. At least one argument provided was null.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Argument resolve() {
|
||||
Argument condArgument = new Argument(getArgument(0).toBoolean(), getResolver());
|
||||
boolean condition = condArgument.toBoolean();
|
||||
if (condition) {
|
||||
return new Argument(getArgument(1).toString(), getResolver());
|
||||
} else {
|
||||
return new Argument(getArgument(2).toString(), getResolver());
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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="M12,2C8.13,2 5,5.13 5,9c0,5.25 7,13 7,13s7,-7.75 7,-13c0,-3.87 -3.13,-7 -7,-7zM12,11.5c-1.38,0 -2.5,-1.12 -2.5,-2.5s1.12,-2.5 2.5,-2.5 2.5,1.12 2.5,2.5 -1.12,2.5 -2.5,2.5z"/>
|
||||
</vector>
|
|
@ -0,0 +1,21 @@
|
|||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/newTaskLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/bgColor">
|
||||
|
||||
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
||||
android:id="@+id/swipeRefreshLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_margin="5dp">
|
||||
</androidx.recyclerview.widget.RecyclerView>
|
||||
|
||||
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
||||
|
||||
</RelativeLayout>
|
|
@ -0,0 +1,17 @@
|
|||
package com.adins.mss.base.dukcapil;
|
||||
|
||||
import com.adins.mss.foundation.http.MssRequestType;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
public class JsonRequestImageDkcp extends MssRequestType {
|
||||
@SerializedName("imgIdentity")
|
||||
private String imgIdentity;
|
||||
|
||||
public String getImgIdentity() {
|
||||
return imgIdentity;
|
||||
}
|
||||
|
||||
public void setImgIdentity(String imgIdentity) {
|
||||
this.imgIdentity = imgIdentity;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,137 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/bg_grayscale">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:layout_marginBottom="46dp">
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?android:actionBarSize"
|
||||
android:background="@drawable/actionbar_background">
|
||||
</View>
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:padding="16dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/deposit_report"
|
||||
style="@style/PageTextTitle"/>
|
||||
|
||||
<Spinner
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
style="@style/MySpinner"
|
||||
android:id="@+id/transferBySpinner"
|
||||
android:entries="@array/transfer_spinner">
|
||||
</Spinner>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:id="@+id/transferAsBank">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txtNomorRekening"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/label_account_number_2"
|
||||
style="@style/FieldLabel"/>
|
||||
|
||||
<EditText
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/editNomorRekening"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txtBankName"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/label_bank_name_2"
|
||||
style="@style/FieldLabel"/>
|
||||
|
||||
<EditText
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/editNamaBank"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/label_batch_id_2"
|
||||
style="@style/FieldLabel"/>
|
||||
|
||||
<EditText
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:editable="false"
|
||||
android:id="@+id/editBatchId"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txtBuktiTransfer"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/label_transfer_evidence_2"
|
||||
style="@style/FieldLabel"/>
|
||||
|
||||
<ImageView
|
||||
android:layout_width="120dp"
|
||||
android:layout_height="120dp"
|
||||
android:layout_gravity="center"
|
||||
android:background="#EEE"
|
||||
android:id="@+id/imageBukti"/>
|
||||
|
||||
<Button
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/take_a_photo"
|
||||
android:id="@+id/buttonSelectPhoto"/>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:id="@+id/transferAsCashier"
|
||||
android:visibility="gone">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txtCashierName"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/label_cashier_name_2"
|
||||
style="@style/FieldLabel"/>
|
||||
|
||||
<EditText
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/editNamaKasir"/>
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
</LinearLayout>
|
||||
<Button
|
||||
android:layout_height="45dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_gravity="bottom"
|
||||
android:text="@string/btnSend"
|
||||
android:id="@+id/buttonSend"/>
|
||||
</FrameLayout>
|
|
@ -0,0 +1,30 @@
|
|||
/*
|
||||
* Copyright (C) 2011 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.
|
||||
*/
|
||||
package com.adins.libs.nineoldandroids.util;
|
||||
|
||||
/**
|
||||
* Thrown when code requests a {@link Property} on a class that does
|
||||
* not expose the appropriate method or field.
|
||||
*
|
||||
* @see Property#of(java.lang.Class, java.lang.Class, java.lang.String)
|
||||
*/
|
||||
public class NoSuchPropertyException extends RuntimeException {
|
||||
|
||||
public NoSuchPropertyException(String s) {
|
||||
super(s);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,245 @@
|
|||
# Add project specific ProGuard rules here.
|
||||
# By default, the flags in this file are appended to flags specified
|
||||
# in C:\Users\gigin.ginanjar\AppData\Local\Android\sdk/tools/proguard/proguard-android.txt
|
||||
# You can edit the include path and order by changing the proguardFiles
|
||||
# directive in build.gradle.
|
||||
#
|
||||
# For more details, see
|
||||
# http://developer.android.com/guide/developing/tools/proguard.html
|
||||
|
||||
# Add any project specific keep options here:
|
||||
|
||||
# If your project uses WebView with JS, uncomment the following
|
||||
# and specify the fully qualified class name to the JavaScript interface
|
||||
# class:
|
||||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
||||
# public *;
|
||||
#}
|
||||
|
||||
-optimizationpasses 5
|
||||
|
||||
#When not preverifing in a case-insensitive filing system, such as Windows. Because this tool unpacks your processed jars, you should then use:
|
||||
-dontusemixedcaseclassnames
|
||||
|
||||
#Specifies not to ignore non-public library classes. As of version 4.5, this is the default setting
|
||||
-dontskipnonpubliclibraryclasses
|
||||
|
||||
#Preverification is irrelevant for the dex compiler and the Dalvik VM, so we can switch it off with the -dontpreverify option.
|
||||
-dontpreverify
|
||||
|
||||
#Specifies to write out some more information during processing. If the program terminates with an exception, this option will print out the entire stack trace, instead of just the exception message.
|
||||
-verbose
|
||||
|
||||
#The -optimizations option disables some arithmetic simplifications that Dalvik 1.0 and 1.5 can't handle. Note that the Dalvik VM also can't handle aggressive overloading (of static fields).
|
||||
#To understand or change this check http://proguard.sourceforge.net/index.html#/manual/optimizations.html
|
||||
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
|
||||
|
||||
#To repackage classes on a single package
|
||||
-repackageclasses ''
|
||||
|
||||
#Uncomment if using annotations to keep them.
|
||||
-keepattributes *Annotation*, Override
|
||||
-keepattributes Signature
|
||||
-keepattributes EnclosingMethod
|
||||
-keepattributes InnerClasses
|
||||
|
||||
#-keep public class !com.adins.mss.** {*;}
|
||||
#Keep classes that are referenced on the AndroidManifest
|
||||
#-keep public class * extends androidx.fragment.app.Fragment
|
||||
-keep public class * extends androidx.appcompat.app.AppCompatActivity
|
||||
-keep public class * extends com.adins.mss.base.MssFragmentActivity
|
||||
-keep public class * extends androidx.fragment.app.Fragment
|
||||
-keep public class * extends androidx.fragment.app.FragmentActivity
|
||||
-keep public class * extends android.app.Activity
|
||||
-keep public class * extends android.app.Application
|
||||
-keep public class * extends android.app.Service
|
||||
-keep public class * extends android.content.BroadcastReceiver
|
||||
-keep public class * extends android.content.ContentProvider
|
||||
-keep public class * extends com.adins.mss.foundation.http.MssRequestType
|
||||
-keep public class * extends com.adins.mss.foundation.http.MssResponseType
|
||||
-keep public class com.android.vending.licensing.ILicensingService
|
||||
-keep class com.adins.**.*Request
|
||||
-keep class com.adins.**.*Response
|
||||
-keep class android.** { *; }
|
||||
-keep class com.google.** { *; }
|
||||
-keep class net.sqlcipher.** {*;}
|
||||
|
||||
#To remove debug logs:
|
||||
-assumenosideeffects class android.util.Log {
|
||||
public static *** d(...);
|
||||
public static *** v(...);
|
||||
public static *** e(...);
|
||||
public static *** i(...);
|
||||
}
|
||||
|
||||
#To avoid changing names of methods invoked on layout's onClick.
|
||||
# Uncomment and add specific method names if using onClick on layouts
|
||||
-keepclassmembers class * {
|
||||
public void onClickButton(android.view.View);
|
||||
}
|
||||
|
||||
#Maintain java native methods
|
||||
-keepclasseswithmembernames class * {
|
||||
native <methods>;
|
||||
}
|
||||
|
||||
#To maintain custom components names that are used on layouts XML.
|
||||
#Uncomment if having any problem with the approach below
|
||||
#-keep public class custom.components.package.and.name.**
|
||||
|
||||
#To maintain custom components names that are used on layouts XML:
|
||||
-keep public class * extends android.view.View {
|
||||
public <init>(android.content.Context);
|
||||
public <init>(android.content.Context, android.util.AttributeSet);
|
||||
public <init>(android.content.Context, android.util.AttributeSet, int);
|
||||
public void set*(...);
|
||||
}
|
||||
|
||||
-keepclasseswithmembers class * {
|
||||
public <init>(android.content.Context, android.util.AttributeSet);
|
||||
}
|
||||
|
||||
-keepclasseswithmembers class * {
|
||||
public <init>(android.content.Context, android.util.AttributeSet, int);
|
||||
}
|
||||
|
||||
#Maintain enums
|
||||
-keepclassmembers enum * {
|
||||
public static **[] values();
|
||||
public static ** valueOf(java.lang.String);
|
||||
}
|
||||
|
||||
#To keep parcelable classes (to serialize - deserialize objects to sent through Intents)
|
||||
-keep class * implements android.os.Parcelable {
|
||||
public static final android.os.Parcelable$Creator *;
|
||||
}
|
||||
|
||||
#Keep the R
|
||||
-keepclassmembers class **.R$* {
|
||||
public static <fields>;
|
||||
}
|
||||
|
||||
#Keep Interface
|
||||
-keep interface * {*;}
|
||||
-keep class sun.misc.Unsafe { *; }
|
||||
|
||||
###### ADDITIONAL OPTIONS NOT USED NORMALLY
|
||||
|
||||
#To keep callback calls. Uncomment if using any
|
||||
#http://proguard.sourceforge.net/index.html#/manual/examples.html#callback
|
||||
#-keep class mypackage.MyCallbackClass {
|
||||
# void myCallbackMethod(java.lang.String);
|
||||
#}
|
||||
|
||||
#Uncomment if using Serializable
|
||||
-keepclassmembers class * implements java.io.Serializable {
|
||||
private static final java.io.ObjectStreamField[] serialPersistentFields;
|
||||
private void writeObject(java.io.ObjectOutputStream);
|
||||
private void readObject(java.io.ObjectInputStream);
|
||||
java.lang.Object writeReplace();
|
||||
java.lang.Object readResolve();
|
||||
}
|
||||
|
||||
-keep class * implements java.io.Serializable {
|
||||
public protected <fields>;
|
||||
}
|
||||
|
||||
#Keep fields for Gson transactions
|
||||
-keep public class * extends com.adins.mss.foundation.http.MssRequestType{
|
||||
<fields>;
|
||||
}
|
||||
-keep public class * extends com.adins.mss.foundation.http.MssResponseType{
|
||||
<fields>;
|
||||
}
|
||||
-keep public class * extends com.adins.mss.foundation.http.KeyValue{
|
||||
<fields>;
|
||||
}
|
||||
|
||||
-ignorewarnings
|
||||
|
||||
#Keep Class For MSS
|
||||
|
||||
-keep class com.adins.mss.dao.** {*;}
|
||||
#-keep class com.adins.mss.svy.MSLoginActivity
|
||||
-keep class com.adins.mss.base.login.DefaultLoginModel
|
||||
-keep public class com.adins.mss.foundation.formatter.DateFormatter{
|
||||
public <methods>;
|
||||
}
|
||||
|
||||
|
||||
#-keep public class com.adins.mss.base.authentication.AuthenticationResultBean{
|
||||
# <fields>;
|
||||
#}
|
||||
|
||||
#-keep class com.adins.mss.base.GlobalData{
|
||||
# public <methods>;
|
||||
# <fields>;
|
||||
#}
|
||||
#-keep class com.adins.mss.constant.Global
|
||||
#-keep class com.adins.mss.svy.login.MSDefaultLoginModel
|
||||
|
||||
-keepclassmembers class *{
|
||||
static <fields>;
|
||||
public <methods>;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#Keep for Timeline
|
||||
#-keep class com.adins.mss.base.timeline.activity.Timeline_Activity{
|
||||
# public void outstandingTask(android.view.View);
|
||||
# public void tmCheckIn(android.view.View);
|
||||
# public void changeHeader(android.view.View);
|
||||
# public void changeProfile(android.view.View);
|
||||
# public void searchContent(android.view.View);
|
||||
# public void tmSubmitted(android.view.View);
|
||||
# public void tmTask(android.view.View);
|
||||
# public void tmMessage(android.view.View);
|
||||
#}
|
||||
#-keepclassmembers class *{
|
||||
# public void ***(android.view.View);
|
||||
#}
|
||||
|
||||
-keep class com.adins.mss.base.dialogfragments.NewTaskDialog {
|
||||
public void itemClick(android.widget.AdapterView,android.view.View,int,long);
|
||||
}
|
||||
|
||||
-dontwarn javax.script.**
|
||||
-dontwarn org.apache.commons.logging.**
|
||||
-dontwarn java.beans.**
|
||||
-dontwarn okio.**
|
||||
-dontwarn com.androidquery.auth.TwitterHandle
|
||||
-dontwarn org.bouncycastle.**
|
||||
-dontwarn oauth.**
|
||||
-dontwarn com.android.auth.TwitterHandle.**
|
||||
|
||||
-keep class javax.** {*;}
|
||||
-keep class org.apache.commons.logging.** {*;}
|
||||
-keep class java.beans.** {*;}
|
||||
-keep class org.apache.commons.jexl2.** {*;}
|
||||
-keep class org.bouncycastle.** {*;}
|
||||
-keep class okio.** {*;}
|
||||
-keep class oauth.signpost.** {*;}
|
||||
-keep class org.apache.log4j.Logger {*;}
|
||||
-keep class java.nio.** {*;}
|
||||
-keep class junit..** {*;}
|
||||
-keep class oauth.signpost.commonshttp.** {*;}
|
||||
-keep public class com.gadberry.** {*;}
|
||||
-keep class oauth.** { *; }
|
||||
-keep class com.android.auth.TwitterHandle.** { *; }
|
||||
|
||||
-keepclassmembers class **.R$* { public static <fields>; }
|
||||
-keep class net.sqlcipher.** { *; }
|
||||
-keep class net.sqlcipher.database.** { *; }
|
||||
|
||||
-keep public class com.adins.mss.logger.Logger{
|
||||
public <methods>;
|
||||
}
|
||||
|
||||
-keep class com.androidquery.AQuery {
|
||||
public protected <methods>;
|
||||
public protected <fields>;
|
||||
}
|
||||
|
||||
-keep class com.adins.mss.foundation.security.storepreferences.ObscuredSharedPreferences {*;}
|
||||
-keep public class com.adins.mss.foundation.UserHelp.** {*;}
|
|
@ -0,0 +1,69 @@
|
|||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:background="@drawable/dialog2_bg">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imgHeader"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="60dp"
|
||||
android:layout_gravity="center"
|
||||
android:layout_margin="15dp"
|
||||
android:padding="10dp"
|
||||
android:src="@drawable/ic_success"
|
||||
android:background="@drawable/button_background_round"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txtResult"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:text="@string/dummy_result"
|
||||
android:gravity="center_horizontal"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txtTimeSent"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:gravity="center_horizontal"
|
||||
android:text="@string/dummy_time_sent"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txtDataSize"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:text="@string/dummy_data_size"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:layout_gravity="center"
|
||||
android:layout_margin="10dp">
|
||||
<Button
|
||||
android:id="@+id/btnOK"
|
||||
android:layout_width="120dp"
|
||||
android:layout_height="40dp"
|
||||
android:background="@drawable/button_background"
|
||||
android:text="@string/btnOk"
|
||||
android:layout_margin="5dp"
|
||||
android:textColor="@color/fontColorWhite"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/btnPrintPage"
|
||||
android:layout_width="120dp"
|
||||
android:layout_height="40dp"
|
||||
android:background="@drawable/button_background"
|
||||
android:text="@string/btnPrint"
|
||||
android:layout_margin="5dp"
|
||||
android:textColor="@color/fontColorWhite"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
|
@ -0,0 +1,23 @@
|
|||
package com.adins.mss.foundation.questiongenerator;
|
||||
|
||||
import androidx.annotation.Keep;
|
||||
|
||||
import com.gadberry.utility.expression.Argument;
|
||||
import com.gadberry.utility.expression.Expression;
|
||||
import com.gadberry.utility.expression.symbol.EqualSymbol;
|
||||
|
||||
@Keep
|
||||
public class NotEqualSymbol extends EqualSymbol {
|
||||
|
||||
@Keep
|
||||
public NotEqualSymbol(Expression expression) {
|
||||
super(expression);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Argument resolve() {
|
||||
boolean result = super.resolve().toBoolean();
|
||||
Argument argResult = new Argument(!result, getResolver());
|
||||
return argResult;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
package com.adins.mss.odr.followup.api;
|
||||
|
||||
import com.adins.mss.foundation.http.MssResponseType;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
/**
|
||||
* Created by olivia.dg on 11/24/2017.
|
||||
*/
|
||||
|
||||
public class DoFollowUpResponse extends MssResponseType {
|
||||
@SerializedName("result")
|
||||
private String result;
|
||||
|
||||
public String getResult() {
|
||||
return result;
|
||||
}
|
||||
|
||||
public void setResult(String result) {
|
||||
this.result = result;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,151 @@
|
|||
package com.adins.mss.dao;
|
||||
|
||||
import com.adins.mss.dao.DaoSession;
|
||||
import de.greenrobot.dao.DaoException;
|
||||
|
||||
import com.adins.mss.base.util.ExcludeFromGson;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT. Enable "keep" sections if you want to edit.
|
||||
/**
|
||||
* Entity mapped to table "TR_EMERGENCY".
|
||||
*/
|
||||
public class Emergency {
|
||||
|
||||
private long uuid_emergency;
|
||||
/** Not-null value. */
|
||||
@SerializedName("uuid_user")
|
||||
private String uuid_user;
|
||||
@SerializedName("longitude")
|
||||
private String longitude;
|
||||
@SerializedName("latitude")
|
||||
private String latitude;
|
||||
@SerializedName("dtm_emergency")
|
||||
private java.util.Date dtm_emergency;
|
||||
|
||||
/** Used to resolve relations */
|
||||
private transient DaoSession daoSession;
|
||||
|
||||
/** Used for active entity operations. */
|
||||
private transient EmergencyDao myDao;
|
||||
|
||||
private User user;
|
||||
private String user__resolvedKey;
|
||||
|
||||
|
||||
public Emergency() {
|
||||
}
|
||||
|
||||
public Emergency(long uuid_emergency) {
|
||||
this.uuid_emergency = uuid_emergency;
|
||||
}
|
||||
|
||||
public Emergency(long uuid_emergency, String uuid_user, String longitude, String latitude, java.util.Date dtm_emergency) {
|
||||
this.uuid_emergency = uuid_emergency;
|
||||
this.uuid_user = uuid_user;
|
||||
this.longitude = longitude;
|
||||
this.latitude = latitude;
|
||||
this.dtm_emergency = dtm_emergency;
|
||||
}
|
||||
|
||||
/** called by internal mechanisms, do not call yourself. */
|
||||
public void __setDaoSession(DaoSession daoSession) {
|
||||
this.daoSession = daoSession;
|
||||
myDao = daoSession != null ? daoSession.getEmergencyDao() : null;
|
||||
}
|
||||
|
||||
public long getUuid_emergency() {
|
||||
return uuid_emergency;
|
||||
}
|
||||
|
||||
public void setUuid_emergency(long uuid_emergency) {
|
||||
this.uuid_emergency = uuid_emergency;
|
||||
}
|
||||
|
||||
/** Not-null value. */
|
||||
public String getUuid_user() {
|
||||
return uuid_user;
|
||||
}
|
||||
|
||||
/** Not-null value; ensure this value is available before it is saved to the database. */
|
||||
public void setUuid_user(String uuid_user) {
|
||||
this.uuid_user = uuid_user;
|
||||
}
|
||||
|
||||
public String getLongitude() {
|
||||
return longitude;
|
||||
}
|
||||
|
||||
public void setLongitude(String longitude) {
|
||||
this.longitude = longitude;
|
||||
}
|
||||
|
||||
public String getLatitude() {
|
||||
return latitude;
|
||||
}
|
||||
|
||||
public void setLatitude(String latitude) {
|
||||
this.latitude = latitude;
|
||||
}
|
||||
|
||||
public java.util.Date getDtm_emergency() {
|
||||
return dtm_emergency;
|
||||
}
|
||||
|
||||
public void setDtm_emergency(java.util.Date dtm_emergency) {
|
||||
this.dtm_emergency = dtm_emergency;
|
||||
}
|
||||
|
||||
/** To-one relationship, resolved on first access. */
|
||||
public User getUser() {
|
||||
String __key = this.uuid_user;
|
||||
if (user__resolvedKey == null || user__resolvedKey != __key) {
|
||||
if (daoSession == null) {
|
||||
throw new DaoException("Entity is detached from DAO context");
|
||||
}
|
||||
UserDao targetDao = daoSession.getUserDao();
|
||||
User userNew = targetDao.load(__key);
|
||||
synchronized (this) {
|
||||
user = userNew;
|
||||
user__resolvedKey = __key;
|
||||
}
|
||||
}
|
||||
return user;
|
||||
}
|
||||
|
||||
public void setUser(User user) {
|
||||
if (user == null) {
|
||||
throw new DaoException("To-one property 'uuid_user' has not-null constraint; cannot set to-one to null");
|
||||
}
|
||||
synchronized (this) {
|
||||
this.user = user;
|
||||
uuid_user = user.getUuid_user();
|
||||
user__resolvedKey = uuid_user;
|
||||
}
|
||||
}
|
||||
|
||||
/** Convenient call for {@link AbstractDao#delete(Object)}. Entity must attached to an entity context. */
|
||||
public void delete() {
|
||||
if (myDao == null) {
|
||||
throw new DaoException("Entity is detached from DAO context");
|
||||
}
|
||||
myDao.delete(this);
|
||||
}
|
||||
|
||||
/** Convenient call for {@link AbstractDao#update(Object)}. Entity must attached to an entity context. */
|
||||
public void update() {
|
||||
if (myDao == null) {
|
||||
throw new DaoException("Entity is detached from DAO context");
|
||||
}
|
||||
myDao.update(this);
|
||||
}
|
||||
|
||||
/** Convenient call for {@link AbstractDao#refresh(Object)}. Entity must attached to an entity context. */
|
||||
public void refresh() {
|
||||
if (myDao == null) {
|
||||
throw new DaoException("Entity is detached from DAO context");
|
||||
}
|
||||
myDao.refresh(this);
|
||||
}
|
||||
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
|
@ -0,0 +1,5 @@
|
|||
<vector android:height="24dp" android:tint="#555555"
|
||||
android:viewportHeight="24.0" android:viewportWidth="24.0"
|
||||
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#FF000000" android:pathData="M19,8L5,8c-1.66,0 -3,1.34 -3,3v6h4v4h12v-4h4v-6c0,-1.66 -1.34,-3 -3,-3zM16,19L8,19v-5h8v5zM19,12c-0.55,0 -1,-0.45 -1,-1s0.45,-1 1,-1 1,0.45 1,1 -0.45,1 -1,1zM18,3L6,3v4h12L18,3z"/>
|
||||
</vector>
|
|
@ -0,0 +1,70 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout 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:orientation="vertical"
|
||||
android:background="@drawable/bg_grayscale"
|
||||
>
|
||||
<View
|
||||
android:id="@+id/actionbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:layout_alignParentTop="true"
|
||||
android:background="@drawable/actionbar_background" />
|
||||
|
||||
<fragment
|
||||
android:id="@+id/mapOut"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="300dp"
|
||||
android:tag="mapout"
|
||||
class="com.google.android.gms.maps.SupportMapFragment" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/DescLayoutOut"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:padding="5dp"
|
||||
android:layout_margin="5dp"
|
||||
android:background="@drawable/highpriority_background"
|
||||
android:visibility="gone">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/addressImage"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/ic_absent"
|
||||
android:layout_gravity="center_vertical" />
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:orientation="vertical">
|
||||
<TextView
|
||||
android:id="@+id/textLocalOut"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text=""
|
||||
android:textColor="@color/tv_white"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium" />
|
||||
<TextView
|
||||
android:id="@+id/textAddressOut"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text=""
|
||||
android:textColor="@color/tv_white"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<Button
|
||||
android:id="@+id/btnRefreshCOut"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/refresh"
|
||||
android:layout_marginTop="5dp"
|
||||
android:layout_marginRight="5dp"
|
||||
android:layout_gravity="right" />
|
||||
|
||||
</LinearLayout>
|
Loading…
Add table
Add a link
Reference in a new issue