|
|
@@ -6,6 +6,7 @@ import android.os.Bundle;
|
|
|
import android.os.Handler;
|
|
|
import android.os.Message;
|
|
|
import android.support.v7.app.AlertDialog;
|
|
|
+import android.text.Html;
|
|
|
import android.text.TextUtils;
|
|
|
import android.util.Log;
|
|
|
import android.view.Menu;
|
|
|
@@ -22,7 +23,6 @@ import com.xzjmyk.pm.activity.adapter.DailyDetailsApprovalFlowAdapter;
|
|
|
import com.xzjmyk.pm.activity.adapter.DailyDetailsWorkTaskAdapter;
|
|
|
import com.xzjmyk.pm.activity.bean.oa.CommonApprovalFlowBean;
|
|
|
import com.xzjmyk.pm.activity.bean.oa.WorkTaskBean;
|
|
|
-import com.xzjmyk.pm.activity.ui.MainActivity;
|
|
|
import com.xzjmyk.pm.activity.ui.base.BaseActivity;
|
|
|
import com.xzjmyk.pm.activity.ui.erp.db.DBManager;
|
|
|
import com.xzjmyk.pm.activity.ui.erp.entity.EmployeesEntity;
|
|
|
@@ -50,6 +50,8 @@ import java.util.Map;
|
|
|
public class DailydetailsActivity extends BaseActivity {
|
|
|
private static final int DAILY_REFORSUB_SUCCESSFULLY = 1209;
|
|
|
private static final int DAILY_REFORDELETE_SUCCESSFULLY = 1214;
|
|
|
+ public static final int DELETE_SUCCEED = 1219;
|
|
|
+ private static final int REFORDELETE_DOC_REQUEST_SUCCESSFULLY = 1220;
|
|
|
private TextView wdd_data;
|
|
|
private TextView wdd_status;
|
|
|
private TextView wdd_summary;
|
|
|
@@ -59,9 +61,7 @@ public class DailydetailsActivity extends BaseActivity {
|
|
|
private String summary;
|
|
|
private String plan;
|
|
|
private String experience;
|
|
|
- private String status;
|
|
|
- private MyListView complete_tasklv;
|
|
|
- private MyListView uncomplete_tasklv;
|
|
|
+ private String wd_status;
|
|
|
private MyListView approval_flowlv;
|
|
|
private LinearLayout plan_ll;
|
|
|
private LinearLayout experience_ll;
|
|
|
@@ -72,7 +72,6 @@ public class DailydetailsActivity extends BaseActivity {
|
|
|
private List<WorkTaskBean> mWorkTaskBeanList;
|
|
|
private EmptyLayout mEmptyLayput_approvalflow;
|
|
|
private EmptyLayout mEmptyLayput_Task;
|
|
|
- private TextView no_task;
|
|
|
private int mkeyValue;
|
|
|
private String mCaller = "WorkDaily";
|
|
|
private int mNoc = 1 ;
|
|
|
@@ -110,6 +109,7 @@ public class DailydetailsActivity extends BaseActivity {
|
|
|
.putExtra("rs_summary", summary)
|
|
|
.putExtra("rs_plan", plan)
|
|
|
.putExtra("rs_experience", experience)
|
|
|
+ .putExtra("rs_donetask",donetask)
|
|
|
.putExtra("resubmit", "resubmit"));
|
|
|
Log.i("doresubmit_id", mkeyValue + "");
|
|
|
finish();
|
|
|
@@ -121,11 +121,21 @@ public class DailydetailsActivity extends BaseActivity {
|
|
|
if (!StringUtils.isEmpty(msg.getData().getString("result"))){
|
|
|
String resfordelete_result = msg.getData().getString("result");
|
|
|
LogUtil.prinlnLongMsg("RESUBMITTED_message", resfordelete_result);
|
|
|
-// Toast.makeText(ct, "工作日报反提交成功", Toast.LENGTH_SHORT).show();
|
|
|
dodelete(mCaller, mkeyValue);
|
|
|
}
|
|
|
}
|
|
|
break;
|
|
|
+ case REFORDELETE_DOC_REQUEST_SUCCESSFULLY:
|
|
|
+ if(msg.getData() != null){
|
|
|
+ if (!StringUtils.isEmpty(msg.getData().getString("result"))){
|
|
|
+ String delete_result = msg.getData().getString("result");
|
|
|
+ LogUtil.prinlnLongMsg("refordelete_result", delete_result);
|
|
|
+ if (JSON.parseObject(delete_result).containsKey("success") && JSON.parseObject(delete_result).getBoolean("success")) {
|
|
|
+ dodelete(mCaller,mkeyValue);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ break;
|
|
|
case DELETE_DOC_REQUEST_SUCCESSFULLY:
|
|
|
if(msg.getData() != null){
|
|
|
if (!StringUtils.isEmpty(msg.getData().getString("result"))){
|
|
|
@@ -133,13 +143,18 @@ public class DailydetailsActivity extends BaseActivity {
|
|
|
LogUtil.prinlnLongMsg("delete_result", delete_result);
|
|
|
if (JSON.parseObject(delete_result).containsKey("success") && JSON.parseObject(delete_result).getBoolean("success")) {
|
|
|
Toast.makeText(ct, "工作日报删除成功", Toast.LENGTH_LONG).show();
|
|
|
- if (!TextUtils.isEmpty(fromwhere) && fromwhere.equals("dailylist")){
|
|
|
- finish();
|
|
|
- }else {
|
|
|
- startActivity(new Intent(activity,WorkDailyShowActivity.class));
|
|
|
+// startActivity(new Intent(activity,WorkDailyShowActivity.class)
|
|
|
+// .putExtra("fromwhere","delete_succeed"));
|
|
|
+
|
|
|
+ if (!TextUtils.isEmpty(fromwhere) && "submitdaily".equals(fromwhere)){
|
|
|
+ startActivity(new Intent(DailydetailsActivity.this,WorkDailyShowActivity.class));
|
|
|
finish();
|
|
|
+ }else if (!TextUtils.isEmpty(fromwhere) && "dailylist".equals(fromwhere)){
|
|
|
+ Intent intent = new Intent();
|
|
|
+ intent.putExtra("delete_succeed","");
|
|
|
+ setResult(DELETE_SUCCEED,intent);
|
|
|
+ DailydetailsActivity.this.finish();
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -155,6 +170,13 @@ public class DailydetailsActivity extends BaseActivity {
|
|
|
}
|
|
|
};
|
|
|
private String submittype;
|
|
|
+ private TextView resubmit_tv;
|
|
|
+ private LinearLayout done_task_ll;
|
|
|
+ private TextView done_task_tv;
|
|
|
+ private LinearLayout undo_task_ll;
|
|
|
+ private TextView undo_task_tv;
|
|
|
+ private String emCode;
|
|
|
+ private String donetask;
|
|
|
|
|
|
/**
|
|
|
* 日报审批流获取并处理
|
|
|
@@ -181,7 +203,14 @@ public class DailydetailsActivity extends BaseActivity {
|
|
|
for (int i = 0; i < mCommonApprovalFlowBean.getData().size(); i++) {
|
|
|
if (manager == null) manager = new DBManager(mContext);
|
|
|
String whichsys = CommonUtil.getSharedPreferences(mContext, "erp_master");
|
|
|
- String emCode = mCommonApprovalFlowBean.getData().get(i).getJP_NODEDEALMAN();
|
|
|
+ emCode = mCommonApprovalFlowBean.getData().get(i).getJP_NODEDEALMAN();
|
|
|
+// if (mCommonApprovalFlowBean.getProcesss() != null &&
|
|
|
+// i < mCommonApprovalFlowBean.getProcesss().size() &&
|
|
|
+// mCommonApprovalFlowBean.getProcesss().get(i).getJp_nodeDealMan() !=null){
|
|
|
+// emCode = mCommonApprovalFlowBean.getProcesss().get(i).getJp_nodeDealMan();
|
|
|
+// }else {
|
|
|
+// emCode = mCommonApprovalFlowBean.getData().get(i).getJP_NODEDEALMAN();
|
|
|
+// }
|
|
|
if( emCode.contains(",")){
|
|
|
String str[] = emCode.split(",");
|
|
|
emCode = str[0];
|
|
|
@@ -191,7 +220,7 @@ public class DailydetailsActivity extends BaseActivity {
|
|
|
|
|
|
// 当处理当在Pc端不填写工作总结保存或提交时,在手机端查看详情界面这里出引起闪退:try 已解决
|
|
|
try {
|
|
|
- String[] selectionArgs = {emCode == null ? "":emCode, whichsys};
|
|
|
+ String[] selectionArgs = {emCode == null ? "": emCode, whichsys};
|
|
|
String selection = "em_code=? and whichsys=? ";
|
|
|
//获取数据库数据
|
|
|
EmployeesEntity bean = manager.selectForEmployee(selectionArgs, selection);
|
|
|
@@ -216,30 +245,30 @@ public class DailydetailsActivity extends BaseActivity {
|
|
|
mDailyDetailsApprovalFlowAdapter.setmCommonApprovalFlowBean(mCommonApprovalFlowBean);
|
|
|
approval_flowlv.setAdapter(mDailyDetailsApprovalFlowAdapter);
|
|
|
|
|
|
- int nodesnum = mCommonApprovalFlowBean.getNodes().size();
|
|
|
- int datanum = mCommonApprovalFlowBean.getData().size();
|
|
|
- if(nodesnum > 0 && datanum > 0 && nodesnum == datanum){
|
|
|
- if(mCommonApprovalFlowBean.getNodes().get(nodesnum-1).getJn_dealResult().equals("同意")){
|
|
|
- wdd_status.setTextColor(getApplicationContext().getResources().getColor(R.color.approval));
|
|
|
- wdd_status.setText("已审批");
|
|
|
- resanddel_ll.setVisibility(View.GONE);
|
|
|
- }
|
|
|
- }
|
|
|
- try{
|
|
|
- // 当保存数据但未提交时的解决方案
|
|
|
- submittype = new String();
|
|
|
- if(mCommonApprovalFlowBean.getData().size() == 0 &&
|
|
|
- mCommonApprovalFlowBean.getNodes().size() == 0 &&
|
|
|
- mCommonApprovalFlowBean.getProcesss().size() == 0 &&
|
|
|
- !status.equals("已审批")){
|
|
|
- wdd_status.setTextColor(mContext.getResources().getColor(R.color.done_approval));
|
|
|
- wdd_status.setText("未提交");
|
|
|
- resanddel_ll.setVisibility(View.VISIBLE);
|
|
|
- submittype = "unsubmit"; //未提交状态
|
|
|
- }
|
|
|
- }catch (Exception e){
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
+// int nodesnum = mCommonApprovalFlowBean.getNodes().size();
|
|
|
+// int datanum = mCommonApprovalFlowBean.getData().size();
|
|
|
+// if(nodesnum > 0 && datanum > 0 && nodesnum == datanum){
|
|
|
+// if(mCommonApprovalFlowBean.getNodes().get(nodesnum-1).getJn_dealResult().equals("同意")){
|
|
|
+// wdd_status.setTextColor(getApplicationContext().getResources().getColor(R.color.approval));
|
|
|
+// wdd_status.setText("已审批");
|
|
|
+// resanddel_ll.setVisibility(View.GONE);
|
|
|
+// }
|
|
|
+// }
|
|
|
+// try{
|
|
|
+// // 当保存数据但未提交时的解决方案
|
|
|
+// submittype = new String();
|
|
|
+// if(mCommonApprovalFlowBean.getData().size() == 0 &&
|
|
|
+// mCommonApprovalFlowBean.getNodes().size() == 0 &&
|
|
|
+// mCommonApprovalFlowBean.getProcesss().size() == 0 &&
|
|
|
+// !status.equals("已审批")){
|
|
|
+// wdd_status.setTextColor(mContext.getResources().getColor(R.color.done_approval));
|
|
|
+// wdd_status.setText("未提交");
|
|
|
+// resanddel_ll.setVisibility(View.VISIBLE);
|
|
|
+// submittype = "unsubmit"; //未提交状态
|
|
|
+// }
|
|
|
+// }catch (Exception e){
|
|
|
+// e.printStackTrace();
|
|
|
+// }
|
|
|
|
|
|
}
|
|
|
|
|
|
@@ -267,45 +296,25 @@ public class DailydetailsActivity extends BaseActivity {
|
|
|
wdd_status = (TextView) findViewById(R.id.work_daily_detail_status_tv);
|
|
|
plan_ll = (LinearLayout) findViewById(R.id.work_daily_detail_plan_ll);
|
|
|
experience_ll = (LinearLayout) findViewById(R.id.work_daily_detail_experience_ll);
|
|
|
- complete_tasklv = (MyListView) findViewById(R.id.work_daily_detail_completedtask_lv);
|
|
|
- uncomplete_tasklv = (MyListView) findViewById(R.id.work_daily_detail_uncompletedtask_lv);
|
|
|
approval_flowlv = (MyListView) findViewById(R.id.work_daily_detail_approval_flow_lv);
|
|
|
- no_task = (TextView) findViewById(R.id.work_daily_detail_no_task);
|
|
|
- addDaily = (TextView) findViewById(R.id.work_daily_detail_back_to_add);
|
|
|
unsubmit_iv = (ImageView) findViewById(R.id.work_daily_unsubmit_iv);
|
|
|
resanddel_ll = (LinearLayout) findViewById(R.id.item_common_docui_res_and_del_ll);
|
|
|
resubmit_ll = (LinearLayout) findViewById(R.id.common_docui_resubmit_ll);
|
|
|
delete_ll = (LinearLayout) findViewById(R.id.common_docui_delete_ll);
|
|
|
+ resubmit_tv = (TextView) findViewById(R.id.common_docui_resubmit_tv);
|
|
|
+ done_task_ll = (LinearLayout) findViewById(R.id.work_daily_detail_donetask_ll);
|
|
|
+ done_task_tv = (TextView) findViewById(R.id.work_daily_detail_donetask_tv);
|
|
|
+ undo_task_ll = (LinearLayout) findViewById(R.id.work_daily_detail_undotask_ll);
|
|
|
+ undo_task_tv = (TextView) findViewById(R.id.work_daily_detail_undotask_tv);
|
|
|
|
|
|
- //加载审批流的适配器
|
|
|
mEmptyLayput_approvalflow = new EmptyLayout(this, approval_flowlv);
|
|
|
mEmptyLayput_approvalflow.setShowEmptyButton(false);
|
|
|
mEmptyLayput_approvalflow.setShowErrorButton(false);
|
|
|
mEmptyLayput_approvalflow.setShowLoadingButton(false);
|
|
|
+ //加载审批流的适配器
|
|
|
mCommonApprovalFlowBean = new CommonApprovalFlowBean();
|
|
|
mDailyDetailsApprovalFlowAdapter = new DailyDetailsApprovalFlowAdapter(this);
|
|
|
|
|
|
-
|
|
|
- //加载我的任务的适配器
|
|
|
- mEmptyLayput_Task = new EmptyLayout(this, complete_tasklv);
|
|
|
- mEmptyLayput_Task.setShowEmptyButton(false);
|
|
|
- mEmptyLayput_Task.setShowErrorButton(false);
|
|
|
- mEmptyLayput_Task.setShowLoadingButton(false);
|
|
|
- mWorkTaskBeanList = new ArrayList<>();
|
|
|
- mDailyDetailsWorkTaskAdapter = new DailyDetailsWorkTaskAdapter(this);
|
|
|
-// if (mWorkTaskBeanList.isEmpty()) {
|
|
|
-// task_rl.setVisibility(View.GONE);
|
|
|
-// } else {
|
|
|
- no_task.setVisibility(View.GONE);
|
|
|
- for(int i = 0;i<5;i++){
|
|
|
- WorkTaskBean workTaskBean =new WorkTaskBean();
|
|
|
- mWorkTaskBeanList.add(workTaskBean);
|
|
|
- }
|
|
|
- mDailyDetailsWorkTaskAdapter.setmWorkTaskBeanList(mWorkTaskBeanList);
|
|
|
- complete_tasklv.setAdapter(mDailyDetailsWorkTaskAdapter);
|
|
|
-// }
|
|
|
-
|
|
|
-
|
|
|
manager = new DBManager(this);
|
|
|
im_ids =new ArrayList<>();
|
|
|
|
|
|
@@ -403,7 +412,7 @@ public class DailydetailsActivity extends BaseActivity {
|
|
|
if (retype.equals("reforsub")){ //反提交之重新提交请求
|
|
|
ViewUtil.httpSendRequest(this, resubmit_url, params, handler, headers, DAILY_REFORSUB_SUCCESSFULLY, null, null, "post");
|
|
|
}else if (retype.equals("refordelete")){ //反提交之删除请求
|
|
|
- ViewUtil.httpSendRequest(this, resubmit_url, params, handler, headers, DAILY_REFORDELETE_SUCCESSFULLY, null, null, "post");
|
|
|
+ ViewUtil.httpSendRequest(this, resubmit_url, params, handler, headers, REFORDELETE_DOC_REQUEST_SUCCESSFULLY, null, null, "post");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -412,7 +421,9 @@ public class DailydetailsActivity extends BaseActivity {
|
|
|
final Intent intent = getIntent();
|
|
|
date = intent.getStringExtra("Date");
|
|
|
summary = intent.getStringExtra("Content");
|
|
|
- status = intent.getStringExtra("Status");
|
|
|
+ if (!TextUtils.isEmpty(intent.getStringExtra("WD_Status"))){
|
|
|
+ wd_status = intent.getStringExtra("WD_Status");
|
|
|
+ }
|
|
|
mkeyValue = intent.getIntExtra("ID", -1); Log.i("first_mkeyValue",mkeyValue + "");
|
|
|
fromwhere = intent.getStringExtra("fromwhere");
|
|
|
if (!TextUtils.isEmpty(intent.getStringExtra("Plan"))) {
|
|
|
@@ -425,23 +436,34 @@ public class DailydetailsActivity extends BaseActivity {
|
|
|
} else {
|
|
|
experience_ll.setVisibility(View.GONE);
|
|
|
}
|
|
|
-// if (!TextUtils.isEmpty(summary) && !TextUtils.isEmpty(status) && !TextUtils.isEmpty(date)) {
|
|
|
- wdd_data.setText(date);
|
|
|
- wdd_summary.setText(summary);
|
|
|
- if(status.equals("已审批")){
|
|
|
- wdd_status.setTextColor(mContext.getResources().getColor(R.color.approval));
|
|
|
- resanddel_ll.setVisibility(View.GONE);
|
|
|
- }else if (status.equals("待审批")){
|
|
|
- wdd_status.setTextColor(mContext.getResources().getColor(R.color.no_approval));
|
|
|
- }
|
|
|
- wdd_status.setText(status);
|
|
|
+ if (!TextUtils.isEmpty(intent.getStringExtra("Donetask"))){
|
|
|
+ done_task_ll.setVisibility(View.VISIBLE);
|
|
|
+ done_task_tv.setText(Html.fromHtml(intent.getStringExtra("Donetask")));
|
|
|
+ donetask = intent.getStringExtra("Donetask");
|
|
|
+ }else {
|
|
|
+ done_task_ll.setVisibility(View.GONE);
|
|
|
+ }
|
|
|
+ wdd_data.setText(date);
|
|
|
+ wdd_summary.setText(summary);
|
|
|
+ if(wd_status.equals("已审核")){
|
|
|
+ wdd_status.setTextColor(mContext.getResources().getColor(R.color.approval));
|
|
|
+ wdd_status.setText("已审批");
|
|
|
+ resanddel_ll.setVisibility(View.GONE);
|
|
|
+ }else if (wd_status.equals("已提交")){
|
|
|
+ wdd_status.setTextColor(mContext.getResources().getColor(R.color.no_approval));
|
|
|
+ wdd_status.setText("待审批");
|
|
|
+ resanddel_ll.setVisibility(View.VISIBLE);
|
|
|
+ }else if (wd_status.equals("在录入")){
|
|
|
+ wdd_status.setTextColor(mContext.getResources().getColor(R.color.done_approval));
|
|
|
+ wdd_status.setText("未提交");
|
|
|
+ resanddel_ll.setVisibility(View.VISIBLE);
|
|
|
+ submittype = "unsubmit";
|
|
|
+ resubmit_tv.setText("提交");
|
|
|
+ }
|
|
|
+
|
|
|
+ wdd_plan.setText(plan);
|
|
|
+ wdd_experience.setText(experience);
|
|
|
|
|
|
- wdd_plan.setText(plan);
|
|
|
- wdd_experience.setText(experience);
|
|
|
-// } else {
|
|
|
-// Toast.makeText(this, "数据异常", Toast.LENGTH_LONG).show();
|
|
|
-// finish(); //这里就是处理在后台错误情况下传回错的数据才会执行该finish语句,否则永不执行
|
|
|
-// }
|
|
|
|
|
|
// 当获取到正确的单据caller和单据id时 请求获取审批流数据
|
|
|
if(!TextUtils.isEmpty(mCaller)&&mkeyValue!= -1){
|
|
|
@@ -498,44 +520,11 @@ public class DailydetailsActivity extends BaseActivity {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 兼容data[]审批人信息为空的情况,UAS部门这里data全部异常,!!
|
|
|
+ * 兼容data[]审批人信息为空的情况,UAS部门这里data全部异常,!! ,仅仅对日报审批流这样处理了,通用单据没兼容
|
|
|
* nodesnum = datanum && 最终已审批状态显示
|
|
|
* @param mCommonApprovalFlowBean
|
|
|
*/
|
|
|
private void Showflownodata(CommonApprovalFlowBean mCommonApprovalFlowBean) {
|
|
|
- if (ListUtils.isEmpty(mCommonApprovalFlowBean.getNodes())
|
|
|
- && ListUtils.isEmpty(mCommonApprovalFlowBean.getProcesss())
|
|
|
- && ListUtils.isEmpty(mCommonApprovalFlowBean.getData())){
|
|
|
- try{
|
|
|
- // 当保存数据但未提交时的解决方案
|
|
|
- if(mCommonApprovalFlowBean.getData().size() == 0 &&
|
|
|
- mCommonApprovalFlowBean.getNodes().size() == 0 &&
|
|
|
- mCommonApprovalFlowBean.getProcesss().size() == 0 &&
|
|
|
- !status.equals("已审批")){
|
|
|
- wdd_status.setTextColor(mContext.getResources().getColor(R.color.done_approval));
|
|
|
- wdd_status.setText("未提交");
|
|
|
- resanddel_ll.setVisibility(View.VISIBLE);
|
|
|
-
|
|
|
- /* unsubmit_iv.setVisibility(View.GONE);
|
|
|
- unsubmit_iv.setOnClickListener(new View.OnClickListener() {
|
|
|
- @Override
|
|
|
- public void onClick(View v) {
|
|
|
- Intent intent = new Intent(activity,WorkDailyAddActivity.class);
|
|
|
- intent.putExtra("UC_Summary",summary);
|
|
|
- intent.putExtra("UC_Plan",plan);
|
|
|
- intent.putExtra("UC_Experience",experience);
|
|
|
- intent.putExtra("id",mkeyValue);
|
|
|
- intent.putExtra("resubmit","UCsubmit");
|
|
|
- startActivity(intent);
|
|
|
- finish();
|
|
|
- }
|
|
|
- });*/
|
|
|
-
|
|
|
- }
|
|
|
- }catch (Exception e){
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
- }
|
|
|
|
|
|
if(!ListUtils.isEmpty(mCommonApprovalFlowBean.getNodes())
|
|
|
&& !ListUtils.isEmpty(mCommonApprovalFlowBean.getProcesss())
|
|
|
@@ -550,7 +539,6 @@ public class DailydetailsActivity extends BaseActivity {
|
|
|
String whichsys = CommonUtil.getSharedPreferences(mContext, "erp_master");
|
|
|
String emCode = mCommonApprovalFlowBean.getNodes().get(i).getJn_dealManId();
|
|
|
if (emCode.contains(",")) {
|
|
|
-// im_ids.add("");
|
|
|
String str[] = emCode.split(",");
|
|
|
emCode = str[0];
|
|
|
ToastMessage("多人审批,头像已显示为首个"); //该情况只有在测试账号情况下出现
|
|
|
@@ -567,20 +555,19 @@ public class DailydetailsActivity extends BaseActivity {
|
|
|
im_ids.add(imId);
|
|
|
} else {
|
|
|
im_ids.add("");
|
|
|
-// ToastMessage("审批流头像获取异常,已显示为默认");
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
- }
|
|
|
+ }
|
|
|
Log.i("imids", im_ids.toString());
|
|
|
- mDailyDetailsApprovalFlowAdapter.setIm_ids(im_ids);
|
|
|
+ mDailyDetailsApprovalFlowAdapter.setIm_ids(im_ids);
|
|
|
|
|
|
- // 设置数据之前先通过数据库获取到所有的imid保存到内存中
|
|
|
- mDailyDetailsApprovalFlowAdapter.setmCommonApprovalFlowBean(mCommonApprovalFlowBean);
|
|
|
- approval_flowlv.setAdapter(mDailyDetailsApprovalFlowAdapter);
|
|
|
+ // 设置数据之前先通过数据库获取到所有的imid保存到内存中
|
|
|
+ mDailyDetailsApprovalFlowAdapter.setmCommonApprovalFlowBean(mCommonApprovalFlowBean);
|
|
|
+ approval_flowlv.setAdapter(mDailyDetailsApprovalFlowAdapter);
|
|
|
|
|
|
- }else {
|
|
|
+ }else {
|
|
|
mEmptyLayput_approvalflow.showEmpty();
|
|
|
}
|
|
|
}
|