|
|
@@ -653,8 +653,8 @@ public class CommonDocDetailsActivity extends BaseActivity {
|
|
|
}
|
|
|
if (device) {
|
|
|
LogUtil.i("real_status=" + real_status);
|
|
|
- resanddel_ll.setVisibility(View.GONE);
|
|
|
if (real_status.equals("已审核") && !StringUtil.isEmpty(mCaller) && (mCaller.equals("DeviceChange!Use") || mCaller.equals("DeviceChange!Inspect"))) {
|
|
|
+ resanddel_ll.setVisibility(View.GONE);
|
|
|
sureTv.setVisibility(View.VISIBLE);
|
|
|
sureTv.setOnClickListener(new View.OnClickListener() {
|
|
|
@Override
|
|
|
@@ -959,41 +959,12 @@ public class CommonDocDetailsActivity extends BaseActivity {
|
|
|
|
|
|
|
|
|
} else { //已提交状态可进行反提交
|
|
|
- new AlertDialog
|
|
|
- .Builder(mContext)
|
|
|
- .setTitle(getString(R.string.common_notice))
|
|
|
- .setMessage(getString(R.string.daily_resubmit_notice1))
|
|
|
- .setNegativeButton(getString(R.string.common_cancel), null)
|
|
|
- .setPositiveButton(getString(R.string.common_sure), new DialogInterface.OnClickListener() {
|
|
|
- @Override
|
|
|
- public void onClick(DialogInterface dialog, int which) {
|
|
|
- Map<String, Object> params = new HashMap<>();
|
|
|
- params.put("caller", mCaller);
|
|
|
- params.put("id", mkeyValue);
|
|
|
- LinkedHashMap<String, Object> headers = new LinkedHashMap<>();
|
|
|
- headers.put("Cookie", "JSESSIONID=" + CommonUtil.getSharedPreferences(ct, "sessionId"));
|
|
|
- String url = "";
|
|
|
- if ("ExtraWork$".equals(mCaller)) { // 新的加班单反提交
|
|
|
- url = CommonUtil.getAppBaseUrl(ct) + "/hr/attendance/resSubmitExtraWork.action";
|
|
|
- ViewUtil.httpSendRequest(ct, url, params, mHandler, headers, NEW_DOC_RESUB_SUCCESSFUL, null, null, "post");
|
|
|
-
|
|
|
- } else if ("FeePlease!FYBX".equals(mCaller)) { // 报销单
|
|
|
- url = CommonUtil.getAppBaseUrl(ct) + "oa/fee/resSubmitFeePlease.action";
|
|
|
- ViewUtil.httpSendRequest(ct, url, params, mHandler, headers, 0x01, null, null, "post");
|
|
|
- } else { // 通用老的反提交
|
|
|
- url = CommonUtil.getAppBaseUrl(ct) + "/mobile/commonres.action";
|
|
|
- ViewUtil.httpSendRequest(ct, url, params, mHandler, headers, COM_DOC_RESUB_SUCCESSFUL, null, null, "post");
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- }).show();
|
|
|
+ reSubmit();
|
|
|
}
|
|
|
|
|
|
}
|
|
|
});
|
|
|
-
|
|
|
}
|
|
|
-
|
|
|
// 删除
|
|
|
delete_ll.setOnClickListener(new View.OnClickListener() {
|
|
|
@Override
|
|
|
@@ -1045,6 +1016,37 @@ public class CommonDocDetailsActivity extends BaseActivity {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+ private void reSubmit() {
|
|
|
+ new AlertDialog
|
|
|
+ .Builder(mContext)
|
|
|
+ .setTitle(getString(R.string.common_notice))
|
|
|
+ .setMessage(getString(R.string.daily_resubmit_notice1))
|
|
|
+ .setNegativeButton(getString(R.string.common_cancel), null)
|
|
|
+ .setPositiveButton(getString(R.string.common_sure), new DialogInterface.OnClickListener() {
|
|
|
+ @Override
|
|
|
+ public void onClick(DialogInterface dialog, int which) {
|
|
|
+ Map<String, Object> params = new HashMap<>();
|
|
|
+ params.put("caller", mCaller);
|
|
|
+ params.put("id", mkeyValue);
|
|
|
+ LinkedHashMap<String, Object> headers = new LinkedHashMap<>();
|
|
|
+ headers.put("Cookie", "JSESSIONID=" + CommonUtil.getSharedPreferences(ct, "sessionId"));
|
|
|
+ String url = "";
|
|
|
+ if ("ExtraWork$".equals(mCaller)) { // 新的加班单反提交
|
|
|
+ url = CommonUtil.getAppBaseUrl(ct) + "/hr/attendance/resSubmitExtraWork.action";
|
|
|
+ ViewUtil.httpSendRequest(ct, url, params, mHandler, headers, NEW_DOC_RESUB_SUCCESSFUL, null, null, "post");
|
|
|
+
|
|
|
+ } else if ("FeePlease!FYBX".equals(mCaller)) { // 报销单
|
|
|
+ url = CommonUtil.getAppBaseUrl(ct) + "oa/fee/resSubmitFeePlease.action";
|
|
|
+ ViewUtil.httpSendRequest(ct, url, params, mHandler, headers, 0x01, null, null, "post");
|
|
|
+ } else { // 通用老的反提交
|
|
|
+ url = CommonUtil.getAppBaseUrl(ct) + "/mobile/commonres.action";
|
|
|
+ ViewUtil.httpSendRequest(ct, url, params, mHandler, headers, COM_DOC_RESUB_SUCCESSFUL, null, null, "post");
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ }).show();
|
|
|
+ }
|
|
|
+
|
|
|
private void getapplypeomsg(String em_number) {
|
|
|
if (TextUtils.isEmpty(em_number)) {
|
|
|
String whichsys = CommonUtil.getSharedPreferences(mContext, "erp_master");
|