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
Binary file not shown.
After Width: | Height: | Size: 9.4 KiB |
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<item
|
||||
android:id="@+id/timelineNav"
|
||||
android:title="Timeline"
|
||||
android:icon="@drawable/ic_timeline"
|
||||
/>
|
||||
<item
|
||||
android:id="@+id/menuNav"
|
||||
android:title="Menu"
|
||||
android:icon="@drawable/ic_menu_black"
|
||||
/>
|
||||
<item
|
||||
android:id="@+id/taskListNav"
|
||||
android:title="Task List"
|
||||
android:icon="@drawable/ic_task_list"
|
||||
/>
|
||||
</menu>
|
|
@ -0,0 +1,34 @@
|
|||
package com.adins.mss.base.todolist;
|
||||
|
||||
import com.adins.mss.dao.PrintItem;
|
||||
import com.adins.mss.dao.Scheme;
|
||||
import com.adins.mss.foundation.http.MssResponseType;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class JsonGetScheme extends MssResponseType {
|
||||
@SerializedName("listScheme")
|
||||
private List<Scheme> listScheme;
|
||||
|
||||
@SerializedName("listPrintItem")
|
||||
private List<PrintItem> listPrintItem;
|
||||
|
||||
public List<PrintItem> getListPrintItem() {
|
||||
return listPrintItem;
|
||||
}
|
||||
|
||||
public void setListPrintItem(List<PrintItem> listPrintItem) {
|
||||
this.listPrintItem = listPrintItem;
|
||||
}
|
||||
|
||||
public List<Scheme> getListScheme() {
|
||||
return listScheme;
|
||||
}
|
||||
|
||||
public void setListSceme(List<Scheme> listScheme) {
|
||||
this.listScheme = listScheme;
|
||||
}
|
||||
|
||||
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 3.1 KiB |
|
@ -0,0 +1,45 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:id="@+id/footer" >
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_above="@+id/contentComment"
|
||||
android:orientation="horizontal"
|
||||
>
|
||||
<TextView
|
||||
android:id="@+id/contentVersion"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textSize="10dp"
|
||||
android:text="@string/appVersion" />
|
||||
<TextView
|
||||
android:id="@+id/divider"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="|"
|
||||
android:textSize="10dp"
|
||||
android:visibility="gone" />
|
||||
<TextView
|
||||
android:id="@+id/androidId"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textSize="10dp"
|
||||
android:text="androidId"
|
||||
android:visibility="gone"/>
|
||||
</LinearLayout>
|
||||
<TextView
|
||||
android:id="@+id/contentComment"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:text="@string/aboutCopyright" />
|
||||
|
||||
</RelativeLayout>
|
|
@ -0,0 +1,52 @@
|
|||
package com.adins.mss.base.mainmenu;
|
||||
|
||||
import androidx.fragment.app.FragmentActivity;
|
||||
|
||||
import com.adins.mss.base.NewMainActivity;
|
||||
import com.adins.mss.base.R;
|
||||
import com.adins.mss.foundation.dialog.NiftyDialogBuilder;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
public class MainMenuHelper {
|
||||
public static void doBackFragment(FragmentActivity activity) {
|
||||
NewMainActivity.fragmentManager.popBackStack();
|
||||
}
|
||||
|
||||
public static List<String> matchingMenu(List<String> serverMenuTitle, List<String> templateMenuTitle) {
|
||||
List<String> newMenu = new ArrayList<String>();
|
||||
|
||||
for (String templateMenu : templateMenuTitle) {
|
||||
mLoop:
|
||||
for (String serverMenu : serverMenuTitle) {
|
||||
if (serverMenu.equalsIgnoreCase(templateMenu)) {
|
||||
newMenu.add(templateMenu);
|
||||
break mLoop;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return newMenu;
|
||||
}
|
||||
|
||||
public static List<Integer> matchingIcon(List<String> MenuTitle, HashMap<String, Integer> templateIcon) {
|
||||
List<Integer> newIcon = new ArrayList<Integer>();
|
||||
|
||||
for (String templateMenu : MenuTitle) {
|
||||
newIcon.add(templateIcon.get(templateMenu));
|
||||
}
|
||||
|
||||
return newIcon;
|
||||
}
|
||||
|
||||
public static void showNotAvailableMenuDialog(FragmentActivity activity, String menuTitle) {
|
||||
NiftyDialogBuilder builder = NiftyDialogBuilder.getInstance(activity);
|
||||
builder.withTitle(activity.getString(R.string.info_capital))
|
||||
.withIcon(android.R.drawable.ic_dialog_info)
|
||||
.withMessage(activity.getResources().getString(R.string.menu_not_available, menuTitle))
|
||||
.isCancelable(true)
|
||||
.show();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,42 @@
|
|||
<?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:id="@+id/surveyLayoutView">
|
||||
|
||||
<View
|
||||
android:id="@+id/actionbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentTop="true"
|
||||
android:background="@drawable/actionbar_background" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btnSavePlan"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/button_background"
|
||||
android:textSize="18dp"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:text="Save"
|
||||
android:textColor="#ffffff" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recyclerList"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:footerDividersEnabled="true"
|
||||
android:headerDividersEnabled="true"
|
||||
android:scrollbarSize="1dp"
|
||||
android:scrollbarStyle="outsideOverlay"
|
||||
android:divider="@android:color/transparent"
|
||||
android:dividerHeight="5dp"
|
||||
android:padding="5dp">
|
||||
</androidx.recyclerview.widget.RecyclerView>
|
||||
|
||||
|
||||
|
||||
</LinearLayout>
|
|
@ -0,0 +1,86 @@
|
|||
package com.adins.mss.foundation.oauth2;
|
||||
|
||||
public class OAuth2Config {
|
||||
|
||||
private final String scope;
|
||||
private final String grantType;
|
||||
private final String clientId;
|
||||
private final String clientSecret;
|
||||
private final String username;
|
||||
private final String password;
|
||||
private final String site;
|
||||
|
||||
private OAuth2Config(OAuth2ConfigBuilder builder) {
|
||||
this.username = builder.username;
|
||||
this.password = builder.password;
|
||||
this.clientId = builder.clientId;
|
||||
this.clientSecret = builder.clientSecret;
|
||||
this.site = builder.site;
|
||||
this.scope = builder.scope;
|
||||
this.grantType = builder.grantType;
|
||||
}
|
||||
|
||||
public String getScope() {
|
||||
return scope;
|
||||
}
|
||||
|
||||
public String getGrantType() {
|
||||
return grantType;
|
||||
}
|
||||
|
||||
public String getClientId() {
|
||||
return clientId;
|
||||
}
|
||||
|
||||
public String getClientSecret() {
|
||||
return clientSecret;
|
||||
}
|
||||
|
||||
public String getSite() {
|
||||
return site;
|
||||
}
|
||||
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
public String getTokenEndPointUrl() {
|
||||
return site + "/oauth/token";
|
||||
}
|
||||
|
||||
public static class OAuth2ConfigBuilder {
|
||||
private String scope;
|
||||
private String grantType;
|
||||
private String clientId;
|
||||
private String clientSecret;
|
||||
private String username;
|
||||
private String password;
|
||||
private String site;
|
||||
|
||||
public OAuth2ConfigBuilder(String username, String password, String clientId, String clientSecret, String site) {
|
||||
this.username = username;
|
||||
this.password = password;
|
||||
this.clientId = clientId;
|
||||
this.clientSecret = clientSecret;
|
||||
this.site = site;
|
||||
}
|
||||
|
||||
public OAuth2ConfigBuilder grantType(String grantType) {
|
||||
this.grantType = grantType;
|
||||
return this;
|
||||
}
|
||||
|
||||
public OAuth2ConfigBuilder scope(String scope) {
|
||||
this.scope = scope;
|
||||
return this;
|
||||
}
|
||||
|
||||
public OAuth2Config build() {
|
||||
return new OAuth2Config(this);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,42 @@
|
|||
package com.adins.mss.svy.reassignment;
|
||||
|
||||
import com.adins.mss.foundation.http.MssRequestType;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
public class JsonRequestImage extends MssRequestType{
|
||||
/** Property uuid_task_h */
|
||||
@SerializedName("uuid_task_h")
|
||||
String uuid_task_h;
|
||||
|
||||
/** Property question_id */
|
||||
@SerializedName("question_id")
|
||||
String question_id;
|
||||
|
||||
/**
|
||||
* 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 question_id
|
||||
*/
|
||||
public String getQuestion_id() {
|
||||
return this.question_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the question_id
|
||||
*/
|
||||
public void setQuestion_id(String value) {
|
||||
this.question_id = value;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
package com.adins.mss.base.loyalti.monthlypointacquisition.contract;
|
||||
|
||||
import com.adins.mss.base.loyalti.BasePresenter;
|
||||
import com.adins.mss.base.loyalti.BaseView;
|
||||
import com.adins.mss.base.loyalti.model.GroupPointData;
|
||||
import com.adins.mss.base.loyalti.model.LoyaltyPointsRequest;
|
||||
import com.adins.mss.base.loyalti.model.PointDetail;
|
||||
import com.adins.mss.base.loyalti.model.RankDetail;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface MonthlyPointContract {
|
||||
interface View extends BaseView<Presenter> {
|
||||
void onDataReceived(float[][] pointDataSet, RankDetail[][] rankDataSet, List<PointDetail> pointDetailsDataSet);
|
||||
void onGetDataFailed(String message);
|
||||
}
|
||||
|
||||
interface Presenter extends BasePresenter {
|
||||
void getMonthlyPointsData(LoyaltyPointsRequest reqData);
|
||||
float getAvgPoint();
|
||||
int getMaxPoint();
|
||||
int getTotalPoints();
|
||||
int getCurrentMonth();
|
||||
String[] getMonths();
|
||||
GroupPointData getPointDataAt(int monthIdx);
|
||||
List<PointDetail> getPointDetails();
|
||||
List<RankDetail> getRanks();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,117 @@
|
|||
package com.adins.mss.base.dialogfragments;
|
||||
|
||||
import android.content.DialogInterface;
|
||||
import android.graphics.Rect;
|
||||
import android.os.Bundle;
|
||||
import androidx.fragment.app.DialogFragment;
|
||||
import androidx.fragment.app.Fragment;
|
||||
import androidx.fragment.app.FragmentTransaction;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.Window;
|
||||
import android.view.WindowManager;
|
||||
import android.widget.Button;
|
||||
import android.widget.RadioButton;
|
||||
|
||||
import com.adins.mss.base.NewMainActivity;
|
||||
import com.adins.mss.base.R;
|
||||
import com.adins.mss.base.commons.Common;
|
||||
import com.adins.mss.base.commons.CommonImpl;
|
||||
import com.adins.mss.base.commons.SettingImpl;
|
||||
import com.adins.mss.base.commons.SettingInterface;
|
||||
import com.adins.mss.base.mainmenu.fragment.NewMenuFragment;
|
||||
import com.adins.mss.base.util.LocaleHelper;
|
||||
import com.adins.mss.constant.Global;
|
||||
|
||||
/**
|
||||
* Created by olivia.dg on 9/20/2017.
|
||||
*/
|
||||
|
||||
public class SettingsDialog extends DialogFragment {
|
||||
|
||||
private SettingInterface setting;
|
||||
private Common common;
|
||||
private Button btnSave;
|
||||
private RadioButton rdIndonesia;
|
||||
private RadioButton rdEnglish;
|
||||
|
||||
public SettingsDialog() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
||||
super.onCreateView(inflater, container, savedInstanceState);
|
||||
|
||||
Global.isMenuMoreClicked = true;
|
||||
|
||||
View view = inflater.inflate(R.layout.new_dialog_settings, container, false);
|
||||
|
||||
// WindowManager.LayoutParams wmlp = getDialog().getWindow().getAttributes();
|
||||
// wmlp.windowAnimations = R.style.DialogAnimation2;
|
||||
// getDialog().getWindow().setAttributes(wmlp);
|
||||
//
|
||||
// getDialog().setCanceledOnTouchOutside(false);
|
||||
// getDialog().getWindow().requestFeature(Window.FEATURE_NO_TITLE);
|
||||
//
|
||||
// Rect displayRectangle = new Rect();
|
||||
// Window window = getDialog().getWindow();
|
||||
// window.getDecorView().getWindowVisibleDisplayFrame(displayRectangle);
|
||||
//
|
||||
// view.setMinimumWidth((int) (displayRectangle.width() * 0.9f));
|
||||
|
||||
btnSave = (Button) view.findViewById(R.id.btnSave);
|
||||
rdIndonesia = (RadioButton) view.findViewById(R.id.rdBahasa);
|
||||
rdEnglish = (RadioButton) view.findViewById(R.id.rdEnglish);
|
||||
|
||||
common = new CommonImpl();
|
||||
setting = new SettingImpl(getContext());
|
||||
String language = setting.getLanguage();
|
||||
|
||||
if (language.equals(LocaleHelper.BAHASA_INDONESIA)) {
|
||||
rdIndonesia.setChecked(true);
|
||||
} else {
|
||||
rdEnglish.setChecked(true);
|
||||
}
|
||||
|
||||
btnSave.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
if (rdEnglish.isChecked()) {
|
||||
setting.setLanguage(LocaleHelper.ENGLSIH);
|
||||
} else if (rdIndonesia.isChecked()) {
|
||||
setting.setLanguage(LocaleHelper.BAHASA_INDONESIA);
|
||||
}
|
||||
common.setAuditData();
|
||||
|
||||
dismiss();
|
||||
Global.isMenuMoreClicked = false;
|
||||
Fragment fragment = new NewMenuFragment();
|
||||
FragmentTransaction transaction = NewMainActivity.fragmentManager.beginTransaction();
|
||||
transaction.setCustomAnimations(R.anim.activity_open_translate, R.anim.activity_close_scale, R.anim.activity_open_scale, R.anim.activity_close_translate);
|
||||
transaction.replace(R.id.content_frame, fragment);
|
||||
transaction.commit();
|
||||
}
|
||||
});
|
||||
return view;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDestroyView() {
|
||||
super.onDestroyView();
|
||||
Global.isMenuMoreClicked = false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDismiss(DialogInterface dialog) {
|
||||
super.onDismiss(dialog);
|
||||
Global.isMenuMoreClicked = false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCancel(DialogInterface dialog) {
|
||||
super.onCancel(dialog);
|
||||
Global.isMenuMoreClicked = false;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,109 @@
|
|||
package com.adins.mss.base;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
|
||||
import com.adins.mss.base.dynamictheme.DynamicTheme;
|
||||
import com.adins.mss.base.dynamictheme.ThemeLoader;
|
||||
import com.adins.mss.base.synchronize.ProgressListener;
|
||||
import com.adins.mss.base.synchronize.SynchronizeView;
|
||||
import com.adins.mss.base.util.LocaleHelper;
|
||||
|
||||
import org.acra.ACRA;
|
||||
|
||||
import java.util.Locale;
|
||||
|
||||
/**
|
||||
* Created by winy.firdasari on 05/01/2015.
|
||||
*/
|
||||
|
||||
public abstract class SynchronizeActivity extends AppCompatActivity implements ProgressListener, ThemeLoader.ColorSetLoaderCallback {
|
||||
|
||||
public Activity activity = this;
|
||||
private SynchronizeView views;
|
||||
|
||||
public SynchronizeActivity() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBackPressed() {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
setContentView(R.layout.new_synchronize_activity);
|
||||
ACRA.getErrorReporter().putCustomData("LAST_CLASS_ACCESSED", getClass().getSimpleName());
|
||||
views = new SynchronizeView(activity, getIntentMainMenu(), this);
|
||||
loadColorSet();
|
||||
}
|
||||
|
||||
@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);
|
||||
}
|
||||
}
|
||||
|
||||
private void loadColorSet(){
|
||||
ThemeLoader themeLoader = new ThemeLoader(this);
|
||||
themeLoader.loadSavedColorSet(this);
|
||||
}
|
||||
|
||||
protected abstract Intent getIntentMainMenu();
|
||||
|
||||
@Override
|
||||
public void onUpdatedValue(float progress) {
|
||||
views.progressUpdated(progress);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onSyncScheme(boolean value) {
|
||||
views.isSyncScheme = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onSyncQuestion(boolean value) {
|
||||
views.isSyncQuestionSet = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onSyncLookup(boolean value) {
|
||||
views.isSyncLookup = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onSyncHoliday(boolean value) {
|
||||
views.isSyncHoliday = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onSyncPaymentChannel(boolean value) {
|
||||
views.isSyncPaymentChannel = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onHasLoaded(DynamicTheme dynamicTheme) {
|
||||
views.initialize();
|
||||
if(dynamicTheme != null && !dynamicTheme.getThemeItemList().isEmpty())
|
||||
views.applyColorTheme(dynamicTheme);
|
||||
views.publish();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onHasLoaded(DynamicTheme dynamicTheme, boolean needUpdate) {
|
||||
//EMPTY
|
||||
}
|
||||
}
|
|
@ -0,0 +1,133 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/new_image_header"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:src="@drawable/header_image"
|
||||
android:scaleType="centerCrop" />
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:padding="10dp" >
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal" >
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/profileLayout"
|
||||
android:gravity="center_vertical"
|
||||
android:layout_width="86dp"
|
||||
android:layout_height="86dp" >
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageProfile"
|
||||
android:layout_width="86dp"
|
||||
android:layout_height="86dp"
|
||||
android:background="#90FFFFFF"
|
||||
android:padding="5dp"
|
||||
android:scaleType="fitXY"
|
||||
android:src="@drawable/profile_image" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/editProfile"
|
||||
android:layout_width="16dp"
|
||||
android:layout_height="16dp"
|
||||
android:layout_alignBottom="@+id/imageProfile"
|
||||
android:layout_alignRight="@+id/imageProfile"
|
||||
android:layout_margin="10dp"
|
||||
android:src="@drawable/edit" />
|
||||
</RelativeLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="3dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:background="#AAFFFFFF" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical|left"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txtName"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:shadowColor="#000000"
|
||||
android:shadowDx="2"
|
||||
android:shadowDy="2"
|
||||
android:shadowRadius="5"
|
||||
android:text="@string/dummy_header_name"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txtJob"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="sans-serif-light"
|
||||
android:shadowColor="#000000"
|
||||
android:shadowDx="2"
|
||||
android:shadowDy="2"
|
||||
android:shadowRadius="5"
|
||||
android:text="@string/dummy_header_job"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txtDealer"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="sans-serif-light"
|
||||
android:shadowColor="#000000"
|
||||
android:shadowDx="2"
|
||||
android:shadowDy="2"
|
||||
android:shadowRadius="5"
|
||||
android:text="@string/dummy_header_dealer"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textStyle="bold" />
|
||||
<TextView
|
||||
android:id="@+id/txtCOH"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="sans-serif-light"
|
||||
android:visibility="gone"
|
||||
android:shadowColor="#000000"
|
||||
android:shadowDx="2"
|
||||
android:shadowDy="2"
|
||||
android:shadowRadius="5"
|
||||
android:text="@string/lblCashOnHand"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="#FFFFFF"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/edit_header"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_alignBottom="@+id/image_header"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_gravity="right|bottom"
|
||||
android:layout_margin="5dp"
|
||||
android:src="@drawable/edit" />
|
||||
</FrameLayout>
|
||||
</RelativeLayout>
|
Binary file not shown.
After Width: | Height: | Size: 335 KiB |
|
@ -0,0 +1,79 @@
|
|||
<?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:background="@color/gray_holo_light"
|
||||
android:padding="5dp"
|
||||
>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/documentNameTitle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Guideline & FAQ"
|
||||
android:textSize="@dimen/textSizeLarge_openSource"
|
||||
android:textStyle="bold"
|
||||
android:padding="10dp"/>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/pdfLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:gravity="center_vertical"
|
||||
android:background="@color/gray_holo_light"
|
||||
android:layout_weight="1">
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/photo_view_border"
|
||||
android:padding="1dp"
|
||||
>
|
||||
<com.github.chrisbanes.photoview.PhotoView
|
||||
android:id="@+id/pdfImage"
|
||||
android:background="@color/fontColorWhite"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:scaleType="fitCenter"
|
||||
/>
|
||||
</FrameLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/btnNavigationPdf"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:layout_marginBottom="10dp">
|
||||
|
||||
<Button
|
||||
android:id="@+id/previous"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/button_view_background"
|
||||
android:text="Previous"
|
||||
android:textSize="13sp"
|
||||
android:padding="10dp"
|
||||
android:layout_margin="10dp"
|
||||
android:textAllCaps="false"
|
||||
android:minHeight="0dp"
|
||||
/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/next"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/button_view_background"
|
||||
android:text="Next"
|
||||
android:textSize="13sp"
|
||||
android:layout_margin="10dp"
|
||||
android:textAllCaps="false"
|
||||
android:padding="10dp"
|
||||
android:minHeight="0dp"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
|
@ -0,0 +1,136 @@
|
|||
package com.adins.mss.base.todolist.form;
|
||||
|
||||
|
||||
import android.os.Bundle;
|
||||
import androidx.fragment.app.FragmentActivity;
|
||||
import android.view.View;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.adins.mss.base.GlobalData;
|
||||
import com.adins.mss.base.NewMainActivity;
|
||||
import com.adins.mss.base.R;
|
||||
import com.adins.mss.base.crashlytics.FireCrash;
|
||||
import com.adins.mss.base.todolist.ToDoList;
|
||||
import com.adins.mss.constant.Global;
|
||||
import com.adins.mss.dao.LocationInfo;
|
||||
import com.adins.mss.dao.TaskH;
|
||||
import com.google.android.gms.maps.CameraUpdateFactory;
|
||||
import com.google.android.gms.maps.GoogleMap;
|
||||
import com.google.android.gms.maps.OnMapReadyCallback;
|
||||
import com.google.android.gms.maps.SupportMapFragment;
|
||||
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||||
import com.google.android.gms.maps.model.LatLng;
|
||||
import com.google.android.gms.maps.model.Marker;
|
||||
import com.google.android.gms.maps.model.MarkerOptions;
|
||||
|
||||
import org.acra.ACRA;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class ViewMapActivity extends FragmentActivity implements OnMapReadyCallback {
|
||||
private static List<TaskH> listTaskH;
|
||||
SupportMapFragment mapFragment;
|
||||
private GoogleMap mGoogleMap;
|
||||
private LatLng locationPoint;
|
||||
|
||||
public List<TaskH> getListTaskH() {
|
||||
return listTaskH;
|
||||
}
|
||||
|
||||
public static void setListTaskH(List<TaskH> value) {
|
||||
ViewMapActivity.listTaskH = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBackPressed() {
|
||||
super.onBackPressed();
|
||||
this.finish();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.maps_layout);
|
||||
ACRA.getErrorReporter().putCustomData("LAST_CLASS_ACCESSED", getClass().getSimpleName());
|
||||
mapFragment = (SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.maps);
|
||||
if (savedInstanceState == null) {
|
||||
mapFragment.setRetainInstance(true);
|
||||
} else {
|
||||
mapFragment.getMapAsync(this);
|
||||
}
|
||||
initialize();
|
||||
}
|
||||
|
||||
private void initialize() {
|
||||
if (mGoogleMap == null) {
|
||||
((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.maps)).getMapAsync(this);
|
||||
if (mGoogleMap != null) {
|
||||
setupMaps();
|
||||
}
|
||||
}
|
||||
if (GlobalData.getSharedGlobalData().getUser() == null) {
|
||||
NewMainActivity.InitializeGlobalDataIfError(getApplicationContext());
|
||||
}
|
||||
if (getListTaskH() == null)
|
||||
setListTaskH(ToDoList.getListTaskInPriority(getApplicationContext(), ToDoList.SEARCH_BY_ALL, null));
|
||||
if (getListTaskH() != null && getListTaskH().size() > 0) {
|
||||
for (TaskH task : getListTaskH()) {
|
||||
try {
|
||||
double latitude = Double.parseDouble(task.getLatitude());
|
||||
double longitude = Double.parseDouble(task.getLongitude());
|
||||
LatLng latLng = new LatLng(latitude, longitude);
|
||||
MarkerOptions markerOptions = new MarkerOptions();
|
||||
markerOptions.position(latLng);
|
||||
markerOptions.title(task.getCustomer_name());
|
||||
markerOptions.snippet(task.getCustomer_phone() + "\r\n" + task.getCustomer_address());
|
||||
markerOptions.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_BLUE));
|
||||
|
||||
mGoogleMap.addMarker(markerOptions);
|
||||
mGoogleMap.setInfoWindowAdapter(new GoogleMap.InfoWindowAdapter() {
|
||||
@Override
|
||||
public View getInfoWindow(Marker marker) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public View getInfoContents(Marker marker) {
|
||||
View v = getLayoutInflater().inflate(R.layout.marker, null);
|
||||
TextView infoTitle = (TextView) v.findViewById(R.id.infoTitle);
|
||||
infoTitle.setText(marker.getTitle());
|
||||
TextView infoSnippet = (TextView) v.findViewById(R.id.infoSnippet);
|
||||
infoSnippet.setText(marker.getSnippet());
|
||||
return v;
|
||||
}
|
||||
});
|
||||
} catch (Exception e) {
|
||||
FireCrash.log(e);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void setupMaps() {
|
||||
try {
|
||||
LocationInfo info = Global.LTM.getCurrentLocation(Global.FLAG_LOCATION_CAMERA);
|
||||
double mLatitude = Double.parseDouble(info.getLatitude());
|
||||
double mLongitude = Double.parseDouble(info.getLongitude());
|
||||
locationPoint = new LatLng(mLatitude, mLongitude);
|
||||
mGoogleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(locationPoint, 12));
|
||||
MarkerOptions markerOptions = new MarkerOptions();
|
||||
markerOptions.position(locationPoint);
|
||||
markerOptions.title("Your Location");
|
||||
markerOptions.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED));
|
||||
mGoogleMap.addMarker(markerOptions);
|
||||
} catch (Exception e) {
|
||||
FireCrash.log(e);
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onMapReady(GoogleMap googleMap) {
|
||||
mGoogleMap = googleMap;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,236 @@
|
|||
package com.adins.mss.dao;
|
||||
|
||||
import android.database.Cursor;
|
||||
|
||||
import de.greenrobot.dao.AbstractDao;
|
||||
import de.greenrobot.dao.Property;
|
||||
import de.greenrobot.dao.internal.DaoConfig;
|
||||
import de.greenrobot.dao.database.Database;
|
||||
import de.greenrobot.dao.database.DatabaseStatement;
|
||||
|
||||
import com.adins.mss.dao.PaymentHistoryH;
|
||||
|
||||
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
|
||||
/**
|
||||
* DAO for table "TR_PAYMENTHISTORY_H".
|
||||
*/
|
||||
public class PaymentHistoryHDao extends AbstractDao<PaymentHistoryH, String> {
|
||||
|
||||
public static final String TABLENAME = "TR_PAYMENTHISTORY_H";
|
||||
|
||||
/**
|
||||
* Properties of entity PaymentHistoryH.<br/>
|
||||
* Can be used for QueryBuilder and for referencing column names.
|
||||
*/
|
||||
public static class Properties {
|
||||
public final static Property Uuid_payment_history_h = new Property(0, String.class, "uuid_payment_history_h", true, "UUID_PAYMENT_HISTORY_H");
|
||||
public final static Property Uuid_task_h = new Property(1, String.class, "uuid_task_h", false, "UUID_TASK_H");
|
||||
public final static Property Agreement_no = new Property(2, String.class, "agreement_no", false, "AGREEMENT_NO");
|
||||
public final static Property Branch_code = new Property(3, String.class, "branch_code", false, "BRANCH_CODE");
|
||||
public final static Property Value_date = new Property(4, java.util.Date.class, "value_date", false, "VALUE_DATE");
|
||||
public final static Property Payment_amount = new Property(5, String.class, "payment_amount", false, "PAYMENT_AMOUNT");
|
||||
public final static Property Installment_amount = new Property(6, String.class, "installment_amount", false, "INSTALLMENT_AMOUNT");
|
||||
public final static Property Installment_number = new Property(7, String.class, "installment_number", false, "INSTALLMENT_NUMBER");
|
||||
public final static Property Transaction_type = new Property(8, String.class, "transaction_type", false, "TRANSACTION_TYPE");
|
||||
public final static Property Wop_code = new Property(9, String.class, "wop_code", false, "WOP_CODE");
|
||||
public final static Property Receipt_no = new Property(10, String.class, "receipt_no", false, "RECEIPT_NO");
|
||||
public final static Property Post_date = new Property(11, java.util.Date.class, "post_date", false, "POST_DATE");
|
||||
public final static Property Dtm_upd = new Property(12, java.util.Date.class, "dtm_upd", false, "DTM_UPD");
|
||||
public final static Property Usr_upd = new Property(13, String.class, "usr_upd", false, "USR_UPD");
|
||||
public final static Property Dtm_crt = new Property(14, java.util.Date.class, "dtm_crt", false, "DTM_CRT");
|
||||
public final static Property Usr_crt = new Property(15, String.class, "usr_crt", false, "USR_CRT");
|
||||
};
|
||||
|
||||
|
||||
public PaymentHistoryHDao(DaoConfig config) {
|
||||
super(config);
|
||||
}
|
||||
|
||||
public PaymentHistoryHDao(DaoConfig config, DaoSession daoSession) {
|
||||
super(config, 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_PAYMENTHISTORY_H\" (" + //
|
||||
"\"UUID_PAYMENT_HISTORY_H\" TEXT PRIMARY KEY NOT NULL ," + // 0: uuid_payment_history_h
|
||||
"\"UUID_TASK_H\" TEXT," + // 1: uuid_task_h
|
||||
"\"AGREEMENT_NO\" TEXT," + // 2: agreement_no
|
||||
"\"BRANCH_CODE\" TEXT," + // 3: branch_code
|
||||
"\"VALUE_DATE\" INTEGER," + // 4: value_date
|
||||
"\"PAYMENT_AMOUNT\" TEXT," + // 5: payment_amount
|
||||
"\"INSTALLMENT_AMOUNT\" TEXT," + // 6: installment_amount
|
||||
"\"INSTALLMENT_NUMBER\" TEXT," + // 7: installment_number
|
||||
"\"TRANSACTION_TYPE\" TEXT," + // 8: transaction_type
|
||||
"\"WOP_CODE\" TEXT," + // 9: wop_code
|
||||
"\"RECEIPT_NO\" TEXT," + // 10: receipt_no
|
||||
"\"POST_DATE\" INTEGER," + // 11: post_date
|
||||
"\"DTM_UPD\" INTEGER," + // 12: dtm_upd
|
||||
"\"USR_UPD\" TEXT," + // 13: usr_upd
|
||||
"\"DTM_CRT\" INTEGER," + // 14: dtm_crt
|
||||
"\"USR_CRT\" TEXT);"); // 15: usr_crt
|
||||
}
|
||||
|
||||
/** Drops the underlying database table. */
|
||||
public static void dropTable(Database db, boolean ifExists) {
|
||||
String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "\"TR_PAYMENTHISTORY_H\"";
|
||||
db.execSQL(sql);
|
||||
}
|
||||
|
||||
/** @inheritdoc */
|
||||
@Override
|
||||
protected void bindValues(DatabaseStatement stmt, PaymentHistoryH entity) {
|
||||
stmt.clearBindings();
|
||||
stmt.bindString(1, entity.getUuid_payment_history_h());
|
||||
|
||||
String uuid_task_h = entity.getUuid_task_h();
|
||||
if (uuid_task_h != null) {
|
||||
stmt.bindString(2, uuid_task_h);
|
||||
}
|
||||
|
||||
String agreement_no = entity.getAgreement_no();
|
||||
if (agreement_no != null) {
|
||||
stmt.bindString(3, agreement_no);
|
||||
}
|
||||
|
||||
String branch_code = entity.getBranch_code();
|
||||
if (branch_code != null) {
|
||||
stmt.bindString(4, branch_code);
|
||||
}
|
||||
|
||||
java.util.Date value_date = entity.getValue_date();
|
||||
if (value_date != null) {
|
||||
stmt.bindLong(5, value_date.getTime());
|
||||
}
|
||||
|
||||
String payment_amount = entity.getPayment_amount();
|
||||
if (payment_amount != null) {
|
||||
stmt.bindString(6, payment_amount);
|
||||
}
|
||||
|
||||
String installment_amount = entity.getInstallment_amount();
|
||||
if (installment_amount != null) {
|
||||
stmt.bindString(7, installment_amount);
|
||||
}
|
||||
|
||||
String installment_number = entity.getInstallment_number();
|
||||
if (installment_number != null) {
|
||||
stmt.bindString(8, installment_number);
|
||||
}
|
||||
|
||||
String transaction_type = entity.getTransaction_type();
|
||||
if (transaction_type != null) {
|
||||
stmt.bindString(9, transaction_type);
|
||||
}
|
||||
|
||||
String wop_code = entity.getWop_code();
|
||||
if (wop_code != null) {
|
||||
stmt.bindString(10, wop_code);
|
||||
}
|
||||
|
||||
String receipt_no = entity.getReceipt_no();
|
||||
if (receipt_no != null) {
|
||||
stmt.bindString(11, receipt_no);
|
||||
}
|
||||
|
||||
java.util.Date post_date = entity.getPost_date();
|
||||
if (post_date != null) {
|
||||
stmt.bindLong(12, post_date.getTime());
|
||||
}
|
||||
|
||||
java.util.Date dtm_upd = entity.getDtm_upd();
|
||||
if (dtm_upd != null) {
|
||||
stmt.bindLong(13, dtm_upd.getTime());
|
||||
}
|
||||
|
||||
String usr_upd = entity.getUsr_upd();
|
||||
if (usr_upd != null) {
|
||||
stmt.bindString(14, usr_upd);
|
||||
}
|
||||
|
||||
java.util.Date dtm_crt = entity.getDtm_crt();
|
||||
if (dtm_crt != null) {
|
||||
stmt.bindLong(15, dtm_crt.getTime());
|
||||
}
|
||||
|
||||
String usr_crt = entity.getUsr_crt();
|
||||
if (usr_crt != null) {
|
||||
stmt.bindString(16, usr_crt);
|
||||
}
|
||||
}
|
||||
|
||||
/** @inheritdoc */
|
||||
@Override
|
||||
public String readKey(Cursor cursor, int offset) {
|
||||
return cursor.getString(offset + 0);
|
||||
}
|
||||
|
||||
/** @inheritdoc */
|
||||
@Override
|
||||
public PaymentHistoryH readEntity(Cursor cursor, int offset) {
|
||||
PaymentHistoryH entity = new PaymentHistoryH( //
|
||||
cursor.getString(offset + 0), // uuid_payment_history_h
|
||||
cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1), // uuid_task_h
|
||||
cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2), // agreement_no
|
||||
cursor.isNull(offset + 3) ? null : cursor.getString(offset + 3), // branch_code
|
||||
cursor.isNull(offset + 4) ? null : new java.util.Date(cursor.getLong(offset + 4)), // value_date
|
||||
cursor.isNull(offset + 5) ? null : cursor.getString(offset + 5), // payment_amount
|
||||
cursor.isNull(offset + 6) ? null : cursor.getString(offset + 6), // installment_amount
|
||||
cursor.isNull(offset + 7) ? null : cursor.getString(offset + 7), // installment_number
|
||||
cursor.isNull(offset + 8) ? null : cursor.getString(offset + 8), // transaction_type
|
||||
cursor.isNull(offset + 9) ? null : cursor.getString(offset + 9), // wop_code
|
||||
cursor.isNull(offset + 10) ? null : cursor.getString(offset + 10), // receipt_no
|
||||
cursor.isNull(offset + 11) ? null : new java.util.Date(cursor.getLong(offset + 11)), // post_date
|
||||
cursor.isNull(offset + 12) ? null : new java.util.Date(cursor.getLong(offset + 12)), // dtm_upd
|
||||
cursor.isNull(offset + 13) ? null : cursor.getString(offset + 13), // usr_upd
|
||||
cursor.isNull(offset + 14) ? null : new java.util.Date(cursor.getLong(offset + 14)), // dtm_crt
|
||||
cursor.isNull(offset + 15) ? null : cursor.getString(offset + 15) // usr_crt
|
||||
);
|
||||
return entity;
|
||||
}
|
||||
|
||||
/** @inheritdoc */
|
||||
@Override
|
||||
public void readEntity(Cursor cursor, PaymentHistoryH entity, int offset) {
|
||||
entity.setUuid_payment_history_h(cursor.getString(offset + 0));
|
||||
entity.setUuid_task_h(cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1));
|
||||
entity.setAgreement_no(cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2));
|
||||
entity.setBranch_code(cursor.isNull(offset + 3) ? null : cursor.getString(offset + 3));
|
||||
entity.setValue_date(cursor.isNull(offset + 4) ? null : new java.util.Date(cursor.getLong(offset + 4)));
|
||||
entity.setPayment_amount(cursor.isNull(offset + 5) ? null : cursor.getString(offset + 5));
|
||||
entity.setInstallment_amount(cursor.isNull(offset + 6) ? null : cursor.getString(offset + 6));
|
||||
entity.setInstallment_number(cursor.isNull(offset + 7) ? null : cursor.getString(offset + 7));
|
||||
entity.setTransaction_type(cursor.isNull(offset + 8) ? null : cursor.getString(offset + 8));
|
||||
entity.setWop_code(cursor.isNull(offset + 9) ? null : cursor.getString(offset + 9));
|
||||
entity.setReceipt_no(cursor.isNull(offset + 10) ? null : cursor.getString(offset + 10));
|
||||
entity.setPost_date(cursor.isNull(offset + 11) ? null : new java.util.Date(cursor.getLong(offset + 11)));
|
||||
entity.setDtm_upd(cursor.isNull(offset + 12) ? null : new java.util.Date(cursor.getLong(offset + 12)));
|
||||
entity.setUsr_upd(cursor.isNull(offset + 13) ? null : cursor.getString(offset + 13));
|
||||
entity.setDtm_crt(cursor.isNull(offset + 14) ? null : new java.util.Date(cursor.getLong(offset + 14)));
|
||||
entity.setUsr_crt(cursor.isNull(offset + 15) ? null : cursor.getString(offset + 15));
|
||||
}
|
||||
|
||||
/** @inheritdoc */
|
||||
@Override
|
||||
protected String updateKeyAfterInsert(PaymentHistoryH entity, long rowId) {
|
||||
return entity.getUuid_payment_history_h();
|
||||
}
|
||||
|
||||
/** @inheritdoc */
|
||||
@Override
|
||||
public String getKey(PaymentHistoryH entity) {
|
||||
if(entity != null) {
|
||||
return entity.getUuid_payment_history_h();
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** @inheritdoc */
|
||||
@Override
|
||||
protected boolean isEntityUpdateable() {
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue