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,37 @@
|
|||
package com.adins.mss.base.mainmenu.settings;
|
||||
|
||||
import android.content.Context;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuItem;
|
||||
|
||||
import com.adins.mss.base.R;
|
||||
import com.adins.mss.base.commons.SettingImpl;
|
||||
import com.adins.mss.base.commons.SettingInterface;
|
||||
import com.adins.mss.base.util.LocaleHelper;
|
||||
|
||||
/**
|
||||
* Created by olivia.dg on 9/20/2017.
|
||||
*/
|
||||
|
||||
public class UpdateMenuSetting {
|
||||
private SettingInterface setting;
|
||||
private Context context;
|
||||
|
||||
public UpdateMenuSetting(Context context) {
|
||||
this.context = context.getApplicationContext();
|
||||
}
|
||||
|
||||
public boolean updateFlagIcon(Menu mainMenu) {
|
||||
MenuItem existingItem = mainMenu.findItem(R.id.mnSetting);
|
||||
setting = new SettingImpl(context);
|
||||
if (existingItem != null) {
|
||||
existingItem.setIcon(R.drawable.ic_repairing_service);
|
||||
// if (setting.getLanguage().equals(LocaleHelper.ENGLSIH)) {
|
||||
// existingItem.setIcon(R.drawable.english);
|
||||
// } else {
|
||||
// existingItem.setIcon(R.drawable.bahasa);
|
||||
// }
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,78 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout 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"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
tools:context=".dashboardcollection.view.DashboardCollResultDetail">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
android:layout_marginTop="5dp"
|
||||
android:padding="8dp"
|
||||
android:id="@+id/dashCollResultListHeader"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
>
|
||||
|
||||
<androidx.constraintlayout.widget.Guideline
|
||||
android:id="@+id/colH_3_1"
|
||||
app:layout_constraintGuide_percent="0.33"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" />
|
||||
<androidx.constraintlayout.widget.Guideline
|
||||
android:id="@+id/colH_3_2"
|
||||
app:layout_constraintGuide_percent="0.66"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/dashResultAgrNoHeader"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@id/colH_3_1"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
android:gravity="left"
|
||||
android:textStyle="bold"
|
||||
android:text="@string/lblAgreementNo"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/dashResultCustNoHeader"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/colH_3_1"
|
||||
app:layout_constraintEnd_toStartOf="@id/colH_3_2"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
android:gravity="left"
|
||||
android:text="@string/custName"
|
||||
android:textStyle="bold"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/dashResultHeader"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/colH_3_2"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
android:gravity="right"
|
||||
android:text="PTP Date"
|
||||
android:textStyle="bold"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/dashCollResultList"
|
||||
app:layout_constraintTop_toBottomOf="@id/dashCollResultListHeader"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp">
|
||||
|
||||
</androidx.recyclerview.widget.RecyclerView>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
Binary file not shown.
After Width: | Height: | Size: 5.3 KiB |
|
@ -0,0 +1,100 @@
|
|||
package com.adins.mss.foundation.print;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
public class PrintItemBean implements Serializable {
|
||||
private String schemeId;
|
||||
private String type;
|
||||
private int questionGroupId;
|
||||
private int questionId;
|
||||
private String label;
|
||||
private String value;
|
||||
|
||||
public PrintItemBean() {
|
||||
}
|
||||
|
||||
/*public PrintItemBean(String s) {
|
||||
if (s == null || "".equals(s.trim()))
|
||||
throw new IllegalArgumentException("Invalid print item setting from server!");
|
||||
|
||||
String[] arrS = Tool.split(s, Global.DELIMETER_DATA);
|
||||
if (arrS != null && arrS.length > 0) {
|
||||
int idx = 0;
|
||||
this.type = arrS[idx++];
|
||||
String qgId = arrS[idx++];
|
||||
String qId = arrS[idx++];
|
||||
this.label = arrS[idx++];
|
||||
|
||||
if (Tool.isInteger(qgId))
|
||||
this.questionGroupId = Integer.parseInt(qgId);
|
||||
if (Tool.isInteger(qId))
|
||||
this.questionId = Integer.parseInt(qId);
|
||||
}
|
||||
}*/
|
||||
|
||||
public String getSchemeId() {
|
||||
return schemeId;
|
||||
}
|
||||
|
||||
public void setSchemeId(String schemeId) {
|
||||
this.schemeId = schemeId;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public int getQuestionGroupId() {
|
||||
return questionGroupId;
|
||||
}
|
||||
|
||||
public void setQuestionGroupId(int questionGroupId) {
|
||||
this.questionGroupId = questionGroupId;
|
||||
}
|
||||
|
||||
public int getQuestionId() {
|
||||
return questionId;
|
||||
}
|
||||
|
||||
public void setQuestionId(int questionId) {
|
||||
this.questionId = questionId;
|
||||
}
|
||||
|
||||
public String getLabel() {
|
||||
return (label == null) ? "" : label;
|
||||
}
|
||||
|
||||
public void setLabel(String label) {
|
||||
this.label = label;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
////////////////////
|
||||
/*public static List<PrintItemBean> parseToDataList(String printItemSetStr) {
|
||||
if (printItemSetStr == null || "".equals(printItemSetStr.trim()))
|
||||
return null;
|
||||
|
||||
List<PrintItemBean> list = new ArrayList<PrintItemBean>();
|
||||
String[] printItemSet = Tool.split(printItemSetStr, Global.DELIMETER_ROW);
|
||||
if (printItemSet != null && printItemSet.length > 0) {
|
||||
for (String s : printItemSet) {
|
||||
PrintItemBean bean = new PrintItemBean(s);
|
||||
list.add(bean);
|
||||
}
|
||||
}
|
||||
|
||||
return list;
|
||||
}*/
|
||||
}
|
|
@ -0,0 +1,111 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout 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"
|
||||
tools:context=".EmergencyLockActivity">
|
||||
|
||||
<de.hdodenhof.circleimageview.CircleImageView
|
||||
android:id="@+id/animate_pending"
|
||||
android:layout_width="150dp"
|
||||
android:layout_height="150dp"
|
||||
android:src="@drawable/em_pending_circle"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintVertical_chainStyle="packed"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
<de.hdodenhof.circleimageview.CircleImageView
|
||||
android:id="@+id/image_pending"
|
||||
android:layout_width="150dp"
|
||||
android:layout_height="150dp"
|
||||
android:src="@drawable/em_pending"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
|
||||
<de.hdodenhof.circleimageview.CircleImageView
|
||||
android:id="@+id/animate_success"
|
||||
android:layout_width="150dp"
|
||||
android:layout_height="150dp"
|
||||
android:src="@drawable/em_submitted_circle"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintVertical_chainStyle="packed"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
android:visibility="gone"/>
|
||||
<ImageView
|
||||
android:id="@+id/image_success"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="80dp"
|
||||
android:drawable="@drawable/em_check_with_animation"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
android:visibility="gone"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/text_success"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/emergency_sent"
|
||||
android:textSize="32sp"
|
||||
android:textStyle="bold"
|
||||
android:gravity="center"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/image_success"
|
||||
app:layout_constraintVertical_chainStyle="packed"
|
||||
app:layout_constraintVertical_bias="0.3"
|
||||
android:visibility="gone"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/text_success_description"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:text="@string/emergency_sent_description"
|
||||
android:textSize="18sp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/text_success"
|
||||
app:layout_constraintVertical_bias="0.0400000"
|
||||
app:layout_constraintVertical_chainStyle="packed" />
|
||||
<TextView
|
||||
android:id="@+id/text_pending"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/emergency_sent"
|
||||
android:textSize="16sp"
|
||||
android:layout_marginTop="30dp"
|
||||
android:layout_marginRight="100dp"
|
||||
android:layout_marginLeft="100dp"
|
||||
android:textAlignment="center"
|
||||
android:textAllCaps="true"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintVertical_chainStyle="packed"
|
||||
app:layout_constraintVertical_bias="0.3"/>
|
||||
<Button
|
||||
android:id="@+id/btn_cancel"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toBottomOf="@+id/image_pending"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
android:background="@drawable/transparent_bg_bordered_button"
|
||||
android:text="CANCEL"
|
||||
android:onClick="doCancel"
|
||||
android:visibility="gone"
|
||||
android:textColor="#B22222" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
@ -0,0 +1,251 @@
|
|||
package com.adins.mss.odr.update;
|
||||
|
||||
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
import android.view.View;
|
||||
import android.widget.ExpandableListView;
|
||||
import android.widget.ExpandableListView.OnGroupClickListener;
|
||||
|
||||
import com.adins.mss.base.GlobalData;
|
||||
import com.adins.mss.base.util.GsonHelper;
|
||||
import com.adins.mss.constant.Global;
|
||||
import com.adins.mss.foundation.UserHelp.UserHelp;
|
||||
import com.adins.mss.foundation.dialog.NiftyDialogBuilder;
|
||||
import com.adins.mss.foundation.formatter.Formatter;
|
||||
import com.adins.mss.odr.ExpandableListAdapter;
|
||||
import com.adins.mss.odr.ResultOrderActivity;
|
||||
import com.adins.mss.odr.model.JsonResponseServer;
|
||||
import com.adins.mss.odr.model.JsonResponseServer.ResponseServer;
|
||||
|
||||
import org.acra.ACRA;
|
||||
import org.apache.http.NameValuePair;
|
||||
import org.apache.http.message.BasicNameValuePair;
|
||||
|
||||
import java.text.ParseException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import static com.adins.mss.constant.Global.SHOW_USERHELP_DELAY_DEFAULT;
|
||||
|
||||
public class ResultUpdateActivity extends ResultOrderActivity implements OnGroupClickListener{
|
||||
private int taskType;
|
||||
private String searchByStatus;
|
||||
private List<ResponseServer> responseServer;
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
ACRA.getErrorReporter().putCustomData("LAST_CLASS_ACCESSED", getClass().getSimpleName());
|
||||
taskType = this.getIntent().getIntExtra(Global.BUND_KEY_TASK_TYPE, 0);
|
||||
|
||||
}
|
||||
@Override
|
||||
protected void initialize() {
|
||||
super.initialize();
|
||||
expListView.setGroupIndicator(null);
|
||||
expListView.setOnGroupClickListener(this);
|
||||
|
||||
Intent i = getIntent();
|
||||
searchByStatus = i.getStringExtra("status");
|
||||
if(searchByStatus==null){
|
||||
searchByStatus="1";
|
||||
}
|
||||
}
|
||||
@Override
|
||||
protected String getUsedURL() {
|
||||
return GlobalData.getSharedGlobalData().getURL_GET_LIST_CANCELORDER();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected List<NameValuePair> generateRequestParam() throws ParseException {
|
||||
String sdtSDate = "1";
|
||||
String sdtEDate = "1";
|
||||
if(startDate==null||endDate==null||"".equalsIgnoreCase(startDate)||"".equalsIgnoreCase(endDate)
|
||||
||"1".equalsIgnoreCase(startDate)||"1".equalsIgnoreCase(endDate)){
|
||||
|
||||
}else{
|
||||
//convert format date biar bisa di tranlate di DB servernya
|
||||
SimpleDateFormat f = new SimpleDateFormat(Global.DATE_STR_FORMAT);
|
||||
|
||||
Date sDate,eDate;
|
||||
sDate = f.parse(startDate);
|
||||
eDate = f.parse(endDate);
|
||||
sdtSDate = Formatter.formatDate(sDate, Global.DATE_STR_FORMAT_GSON);
|
||||
sdtEDate = Formatter.formatDate(eDate, Global.DATE_STR_FORMAT_GSON);
|
||||
}
|
||||
|
||||
if (orderNumber == null) orderNumber = "1";
|
||||
|
||||
String flag = flagParamForType(this.taskType);
|
||||
|
||||
List<NameValuePair> param = new ArrayList<NameValuePair>();
|
||||
// List<NameValuePair> param = RequestJsonFromURLTask.getBasicParam();
|
||||
|
||||
param.add(new BasicNameValuePair("startdate", sdtSDate));
|
||||
param.add(new BasicNameValuePair("enddate", sdtEDate));
|
||||
param.add(new BasicNameValuePair("ordernumber", orderNumber));
|
||||
param.add(new BasicNameValuePair("flag", flag));
|
||||
param.add(new BasicNameValuePair("status", searchByStatus ));
|
||||
|
||||
return param;
|
||||
}
|
||||
|
||||
protected String flagParamForType(int taskType){
|
||||
|
||||
String flagParam;
|
||||
switch (taskType) {
|
||||
case Global.TASK_ORDER_ASSIGNMENT:
|
||||
flagParam = Global.FLAG_FOR_ORDERASSIGNMENT;
|
||||
break;
|
||||
case Global.TASK_ORDER_REASSIGNMENT:
|
||||
flagParam = Global.FLAG_FOR_ORDERREASSIGNMENT;
|
||||
break;
|
||||
case Global.TASK_CANCEL_ORDER:
|
||||
//bangkit 20141027 change param from UO to UOC
|
||||
flagParam = Global.FLAG_FOR_CANCELORDER;
|
||||
break;
|
||||
default:
|
||||
flagParam = "";
|
||||
break;
|
||||
}
|
||||
return flagParam;
|
||||
}
|
||||
@Override
|
||||
public boolean onGroupClick(ExpandableListView parent, View v, int groupPosition,
|
||||
long id) {
|
||||
// TODO Auto-generated method stub
|
||||
String nomorOrder = responseServer.get(groupPosition).getKey();
|
||||
String uuid_task_h = responseServer.get(groupPosition).getFlag();
|
||||
// String statusCode = statusCodeMap.get(listDataHeader.get(groupPosition));
|
||||
//
|
||||
gotoDetailData(taskType, nomorOrder, uuid_task_h);
|
||||
this.finish();
|
||||
return true;
|
||||
}
|
||||
|
||||
protected void gotoDetailData(int taskType, String nomorOrder, String uuid_task_h){
|
||||
|
||||
Intent intent = null;
|
||||
|
||||
|
||||
switch (taskType) {
|
||||
case Global.TASK_ORDER_ASSIGNMENT:
|
||||
// intent = new Intent(this, OrderAssignmentActivity.class);
|
||||
break;
|
||||
case Global.TASK_ORDER_REASSIGNMENT:
|
||||
// intent = new Intent(this, OrderAssignmentActivity.class);
|
||||
break;
|
||||
case Global.TASK_CANCEL_ORDER:
|
||||
intent = new Intent(this, OrderCancelActivity.class);
|
||||
break;
|
||||
default:
|
||||
// intent = new Intent(this, OrderAssignmentActivity.class);
|
||||
break;
|
||||
}
|
||||
intent.putExtra(Global.BUND_KEY_TASK_TYPE, taskType);
|
||||
intent.putExtra(Global.BUND_KEY_ORDERNO, nomorOrder);
|
||||
intent.putExtra(Global.BUND_KEY_UUID_TASKH, uuid_task_h);
|
||||
startActivity(intent);
|
||||
}
|
||||
protected String flagParamForStatusCode(String code){
|
||||
String flagParam;
|
||||
|
||||
if("OnSurvey".equalsIgnoreCase(code)){
|
||||
flagParam="On Progress Survey";
|
||||
}else if ("OnCA".equalsIgnoreCase(code)){
|
||||
flagParam="On CA";
|
||||
}else{
|
||||
flagParam="";
|
||||
}
|
||||
|
||||
return flagParam;
|
||||
}
|
||||
@Override
|
||||
protected void processServerResponse(String result) {
|
||||
listDataHeader = new ArrayList<String>();
|
||||
listDataChild = new HashMap<String, List<String>>();
|
||||
try {
|
||||
// result = "{\"listResponseServer\":[{\"key\":\"ODRNO1812040004\",\"value\":\"Tes Submit Order\",\"flag\":\"5459915\"}],\"status\":{\"code\":0}}";
|
||||
JsonResponseServer resultOrder= GsonHelper.fromJson(result, JsonResponseServer.class);
|
||||
responseServer = resultOrder.getListResponseServer();
|
||||
if(responseServer!=null){
|
||||
if(responseServer.size()>0) {
|
||||
for (int i = 0; i < responseServer.size(); i++) {
|
||||
ResponseServer mobileBean = responseServer.get(i);
|
||||
|
||||
String orderNo = mobileBean.getKey();
|
||||
String customerName = mobileBean.getValue();
|
||||
|
||||
listDataHeader.add(orderNo + " - " + customerName);
|
||||
|
||||
listDataChild.put(listDataHeader.get(i), null);
|
||||
ExpandableListAdapter listAdapter = new ExpandableListAdapter(this, listDataHeader, listDataChild);
|
||||
expListView.setAdapter(listAdapter);
|
||||
}
|
||||
|
||||
Handler handler = new Handler();
|
||||
handler.postDelayed(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
UserHelp.showAllUserHelpWithListView(ResultUpdateActivity.this,ResultUpdateActivity.this.getClass().getSimpleName(),expListView,0);
|
||||
}
|
||||
}, SHOW_USERHELP_DELAY_DEFAULT);
|
||||
}
|
||||
else{
|
||||
final NiftyDialogBuilder builder = NiftyDialogBuilder.getInstance(this);
|
||||
builder.withTitle("INFO")
|
||||
.withMessage(getString(com.adins.mss.base.R.string.data_not_found))
|
||||
.withButton1Text("OK")
|
||||
.setButton1Click(new View.OnClickListener() {
|
||||
|
||||
@Override
|
||||
public void onClick(View arg0) {
|
||||
builder.dismiss();
|
||||
finish();
|
||||
}
|
||||
}).show();
|
||||
}
|
||||
}
|
||||
else{
|
||||
final NiftyDialogBuilder builder = NiftyDialogBuilder.getInstance(this);
|
||||
builder.withTitle("INFO")
|
||||
.withMessage(getString(com.adins.mss.base.R.string.data_not_found)+" "+resultOrder.getStatus().getMessage())
|
||||
.withButton1Text("OK")
|
||||
.setButton1Click(new View.OnClickListener() {
|
||||
|
||||
@Override
|
||||
public void onClick(View arg0) {
|
||||
builder.dismiss();
|
||||
finish();
|
||||
}
|
||||
}).show();
|
||||
}
|
||||
} catch (Exception e) {
|
||||
System.out.println(e);
|
||||
final NiftyDialogBuilder builder = NiftyDialogBuilder.getInstance(this);
|
||||
builder.withTitle("INFO")
|
||||
.withMessage(e.getMessage())
|
||||
.withButton1Text("OK")
|
||||
.setButton1Click(new View.OnClickListener() {
|
||||
|
||||
@Override
|
||||
public void onClick(View arg0) {
|
||||
builder.dismiss();
|
||||
finish();
|
||||
}
|
||||
}).show();
|
||||
}
|
||||
}
|
||||
//request task regarding detail data to be displayed on next activity: order detail list
|
||||
|
||||
@Override
|
||||
public void onBackPressed() {
|
||||
if(!Global.BACKPRESS_RESTRICTION) {
|
||||
super.onBackPressed();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
package com.adins.mss.base.dynamicform;
|
||||
|
||||
import com.adins.mss.foundation.http.MssRequestType;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
public class JsonRequestApprovalTask extends MssRequestType {
|
||||
@SerializedName("uuid_task_h")
|
||||
String uuid_task_h;
|
||||
@SerializedName("flag")
|
||||
String flag;
|
||||
@SerializedName("notes")
|
||||
String notes;
|
||||
|
||||
public String getNotes() {
|
||||
return this.notes;
|
||||
}
|
||||
|
||||
public void setNotes(String value) {
|
||||
this.notes = value;
|
||||
}
|
||||
|
||||
public String getUuid_task_h() {
|
||||
return this.uuid_task_h;
|
||||
}
|
||||
|
||||
public void setUuid_task_h(String value) {
|
||||
this.uuid_task_h = value;
|
||||
}
|
||||
|
||||
public String getFlag() {
|
||||
return this.flag;
|
||||
}
|
||||
|
||||
public void setFlag(String value) {
|
||||
this.flag = value;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue