|
@@ -1,1295 +0,0 @@
|
|
|
-//package com.uas.jc_wms.fragment;
|
|
|
-//
|
|
|
-//import android.app.AlertDialog;
|
|
|
-//import android.content.Context;
|
|
|
-//import android.content.DialogInterface;
|
|
|
-//import android.content.Intent;
|
|
|
-//import android.graphics.Color;
|
|
|
-//import android.graphics.drawable.BitmapDrawable;
|
|
|
-//import android.os.Bundle;
|
|
|
-//import android.os.CountDownTimer;
|
|
|
-//import android.support.v4.content.ContextCompat;
|
|
|
-//import android.util.Log;
|
|
|
-//import android.view.Gravity;
|
|
|
-//import android.view.KeyEvent;
|
|
|
-//import android.view.LayoutInflater;
|
|
|
-//import android.view.View;
|
|
|
-//import android.view.Window;
|
|
|
-//import android.view.WindowManager;
|
|
|
-//import android.view.inputmethod.EditorInfo;
|
|
|
-//import android.view.inputmethod.InputMethodManager;
|
|
|
-//import android.widget.Button;
|
|
|
-//import android.widget.CheckBox;
|
|
|
-//import android.widget.CompoundButton;
|
|
|
-//import android.widget.EditText;
|
|
|
-//import android.widget.ImageView;
|
|
|
-//import android.widget.LinearLayout;
|
|
|
-//import android.widget.PopupWindow;
|
|
|
-//import android.widget.TextView;
|
|
|
-//
|
|
|
-//import com.alibaba.fastjson.JSON;
|
|
|
-//import com.alibaba.fastjson.JSONArray;
|
|
|
-//import com.alibaba.fastjson.JSONObject;
|
|
|
-//import com.android.volley.Request;
|
|
|
-//import com.bin.david.form.core.SmartTable;
|
|
|
-//import com.bin.david.form.core.TableConfig;
|
|
|
-//import com.bin.david.form.data.CellInfo;
|
|
|
-//import com.bin.david.form.data.column.Column;
|
|
|
-//import com.bin.david.form.data.format.bg.BaseCellBackgroundFormat;
|
|
|
-//import com.bin.david.form.data.style.FontStyle;
|
|
|
-//import com.bin.david.form.data.table.TableData;
|
|
|
-//import com.bin.david.form.listener.OnColumnItemClickListener;
|
|
|
-//
|
|
|
-//import com.uas.jc_wms.R;
|
|
|
-//import com.uas.jc_wms.activity.FunctionActivity;
|
|
|
-//import com.uas.jc_wms.bean.OutBoundListAddDalieBean;
|
|
|
-//import com.uas.jc_wms.global.GloableParams;
|
|
|
-//import com.uas.jc_wms.listener.MyEditorActionListener;
|
|
|
-//import com.uas.jc_wms.tools.SharedPreUtil;
|
|
|
-//import com.uas.jc_wms.util.CameraUtil;
|
|
|
-//import com.uas.jc_wms.util.CommonUtil;
|
|
|
-//import com.uas.jc_wms.util.Constants;
|
|
|
-//import com.uas.jc_wms.util.FastjsonUtil;
|
|
|
-//import com.uas.jc_wms.util.FragmentUtils;
|
|
|
-//import com.uas.jc_wms.util.HttpCallback;
|
|
|
-//import com.uas.jc_wms.util.HttpParams;
|
|
|
-//import com.uas.jc_wms.util.StringUtil;
|
|
|
-//import com.uas.jc_wms.util.VolleyRequest;
|
|
|
-//import com.uas.jc_wms.view.ClearableEditText;
|
|
|
-//import com.uuzuche.lib_zxing.activity.CaptureActivity;
|
|
|
-//import com.uuzuche.lib_zxing.activity.CodeUtils;
|
|
|
-//
|
|
|
-//
|
|
|
-//import java.util.ArrayList;
|
|
|
-//import java.util.Collections;
|
|
|
-//import java.util.List;
|
|
|
-//
|
|
|
-//import razerdp.basepopup.BasePopupWindow;
|
|
|
-//
|
|
|
-///**
|
|
|
-// * Created by cjh on 2022-10-09
|
|
|
-// */
|
|
|
-//public class OutboundListAdd_Fragment2 extends BaseFragment implements OnColumnItemClickListener<String>, View.OnClickListener {
|
|
|
-//
|
|
|
-// private ClearableEditText storage_recharge_collect_ets;
|
|
|
-// private ImageView storage_recharge_scan_ivs;
|
|
|
-// private SmartTable mSmartTable;
|
|
|
-// private Button jlt_storage_in_barcode_save_btn;
|
|
|
-// private TextView tv_documents_code;
|
|
|
-// private static final int SCAN_BARCODE_CODE = 111;
|
|
|
-// private int mFocusId;
|
|
|
-// private Column<String> va_detnoColumn,va_Pd_wmpdnoCoulmn,va_pucodeCoulmn,va_prodcodeColumn,va_qtyColumn,va_codeColumn,va_detailColumn,va_pr_specColumn,va_bar_loactioncColumn;
|
|
|
-// private TableData<OutBoundListAddDalieBean> mTableData;
|
|
|
-// private List<OutBoundListAddDalieBean> mFilterStorageInBeans;
|
|
|
-// private String va_ids;
|
|
|
-// private CheckBox add_checkbos;
|
|
|
-// private Button jlt_storage_in_generate_detailed_btn;
|
|
|
-// private Button jlt_storage_in_audit_btn;
|
|
|
-// private Button jlt_outbound_in_post_btn;
|
|
|
-// private CheckBox ck_special_outbound;
|
|
|
-//
|
|
|
-// private ClearableEditText ed_picking_code;
|
|
|
-// private ClearableEditText ed_picking_name;
|
|
|
-// private PopupWindow editPW;
|
|
|
-// private EditText ed_recipients_departmentr_code;
|
|
|
-// private EditText ed_recipients_departmentr_name;
|
|
|
-// private EditText ed_process_code;
|
|
|
-// private EditText ed_process_name;
|
|
|
-// private EditText ed_set_a_sideastorehouse;
|
|
|
-// private EditText ed_dial_a_levite;
|
|
|
-// private ClearableEditText edit_et;
|
|
|
-// private ImageView outbound_search_im;
|
|
|
-// private String bar_remain;
|
|
|
-// private String pi_status;
|
|
|
-// private InputMethodManager imm;
|
|
|
-// private boolean ischeck=false;
|
|
|
-// private Double pd_barcodeqtyDouble;
|
|
|
-// private Double pd_outqtyDouble;
|
|
|
-// private Double numberDouble;
|
|
|
-// private Integer integer;
|
|
|
-// private String pi_classs;
|
|
|
-// private PopupWindow mMenuPopupWindow;
|
|
|
-// private ImageView mMoreButton;
|
|
|
-// private View mMenuView;
|
|
|
-//
|
|
|
-// @Override
|
|
|
-// protected int getLayout() {
|
|
|
-// return R.layout.fragment_outboundlistadd2;
|
|
|
-// }
|
|
|
-//
|
|
|
-// @Override
|
|
|
-// protected void initViews() {
|
|
|
-// FunctionActivity.setTitle(getString(R.string.title_outbound_rechargeadd));
|
|
|
-// ((FunctionActivity) getActivity()).setListIconIvVisible(true);
|
|
|
-// mMoreButton = (ImageView) getActivity().findViewById(R.id.btn_actionbar_list_icon_iv);
|
|
|
-// storage_recharge_collect_ets = mActivity.findViewById(R.id.storage_recharge_collect_ets);
|
|
|
-// storage_recharge_scan_ivs = mActivity.findViewById(R.id.storage_recharge_scan_ivs);
|
|
|
-// tv_documents_code = mActivity.findViewById(R.id.tv_documents_code);
|
|
|
-// mSmartTable = mActivity.findViewById(R.id.jlt_storage_in_filter_list_sts);
|
|
|
-// jlt_storage_in_barcode_save_btn = mActivity.findViewById(R.id.jlt_storage_in_barcode_save_btn);
|
|
|
-// add_checkbos = mActivity.findViewById(R.id.add_checkbos);
|
|
|
-// jlt_storage_in_generate_detailed_btn = mActivity.findViewById(R.id.jlt_storage_in_generate_detailed_btn);
|
|
|
-// jlt_storage_in_audit_btn = mActivity.findViewById(R.id.jlt_storage_in_audit_btn);
|
|
|
-// jlt_outbound_in_post_btn = mActivity.findViewById(R.id.jlt_outbound_in_post_btn);
|
|
|
-// ck_special_outbound = mActivity.findViewById(R.id.ck_special_outbound);
|
|
|
-// //领料人
|
|
|
-// ed_picking_code = mActivity.findViewById(R.id.ed_picking_code);
|
|
|
-// ed_picking_name = mActivity.findViewById(R.id.ed_picking_name);
|
|
|
-// //领用部门
|
|
|
-// ed_recipients_departmentr_code = mActivity.findViewById(R.id.ed_recipients_departmentr_code);
|
|
|
-// ed_recipients_departmentr_name = mActivity.findViewById(R.id.ed_recipients_departmentr_name);
|
|
|
-//
|
|
|
-// ed_process_code = mActivity.findViewById(R.id.ed_process_code);
|
|
|
-// ed_process_name = mActivity.findViewById(R.id.ed_process_name);
|
|
|
-//
|
|
|
-// ed_set_a_sideastorehouse = mActivity.findViewById(R.id.ed_set_a_sideastorehouse);
|
|
|
-// ed_dial_a_levite = mActivity.findViewById(R.id.ed_dial_a_levite);
|
|
|
-// outbound_search_im = mActivity.findViewById(R.id.outbound_search_im);
|
|
|
-//
|
|
|
-// imm = (InputMethodManager) mActivity.getSystemService(Context.INPUT_METHOD_SERVICE);
|
|
|
-// if (!EventBus.getDefault().isRegistered(this)) {
|
|
|
-// EventBus.getDefault().register(this);
|
|
|
-// }
|
|
|
-// }
|
|
|
-//
|
|
|
-// @Override
|
|
|
-// protected void initEvents() {
|
|
|
-// SharedPreUtil.removeString(mActivity, Constants.STORAGEERECHADD);
|
|
|
-// SharedPreUtil.removeString(mActivity,"positionid");
|
|
|
-// SharedPreUtil.removeString(mActivity,"pd_pdnoid");
|
|
|
-//// String string_va_id = SharedPreUtil.getString(mActivity, Constants.STORAGEERECHADD, null);
|
|
|
-//// if (StringUtil.isEmpty(string_va_id)){
|
|
|
-//// jlt_storage_in_generate_detailed_btn.setEnabled(false);
|
|
|
-//// }else {
|
|
|
-//// jlt_storage_in_generate_detailed_btn.setEnabled(true);
|
|
|
-//// }
|
|
|
-// storage_recharge_scan_ivs.setOnClickListener(this);
|
|
|
-// jlt_storage_in_barcode_save_btn.setOnClickListener(this);
|
|
|
-// jlt_storage_in_generate_detailed_btn.setOnClickListener(this);
|
|
|
-// jlt_storage_in_audit_btn.setOnClickListener(this);
|
|
|
-// jlt_outbound_in_post_btn.setOnClickListener(this);
|
|
|
-// outbound_search_im.setOnClickListener(this);
|
|
|
-// mMoreButton.setOnClickListener(this);
|
|
|
-// storage_recharge_collect_ets.requestFocus();
|
|
|
-// storage_recharge_collect_ets.setOnEditorActionListener(new TextView.OnEditorActionListener() {
|
|
|
-// @Override
|
|
|
-// public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
|
|
|
-// if (actionId == EditorInfo.IME_ACTION_DONE
|
|
|
-// || actionId == EditorInfo.IME_ACTION_SEND
|
|
|
-// || (event != null && event.getAction() == KeyEvent.ACTION_DOWN && event.getKeyCode() == KeyEvent.KEYCODE_ENTER)) {
|
|
|
-// String data = storage_recharge_collect_ets.getText().toString().trim();
|
|
|
-// SharedPreUtil.saveString(mActivity,"out_editorcodes",data);
|
|
|
-//
|
|
|
-// if (add_checkbos.isChecked()==true){
|
|
|
-// baoucn(data,"");
|
|
|
-// storage_recharge_collect_ets.selectAll();
|
|
|
-// storage_recharge_collect_ets.requestFocus();
|
|
|
-// imm.showSoftInput(storage_recharge_collect_ets, InputMethodManager.RESULT_HIDDEN);
|
|
|
-// }else if (ck_special_outbound.isChecked()==true){
|
|
|
-// getDatalistCodes(data);
|
|
|
-// }else {
|
|
|
-// getDatalistCodes(data);
|
|
|
-// }
|
|
|
-//
|
|
|
-//
|
|
|
-// return true;
|
|
|
-// }
|
|
|
-// return false;
|
|
|
-// }
|
|
|
-// });
|
|
|
-//
|
|
|
-// add_checkbos.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
-// @Override
|
|
|
-// public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
|
|
|
-// if (isChecked==true){
|
|
|
-// ck_special_outbound.setChecked(false);
|
|
|
-// }
|
|
|
-// }
|
|
|
-// });
|
|
|
-// ck_special_outbound.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
-// @Override
|
|
|
-// public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
|
|
|
-// if (isChecked==true){
|
|
|
-// add_checkbos.setChecked(false);
|
|
|
-// }
|
|
|
-// }
|
|
|
-// });
|
|
|
-//
|
|
|
-// mFilterStorageInBeans = Collections.synchronizedList(new ArrayList<>());
|
|
|
-// va_detnoColumn = new Column<String>("序号", "PD_PDNO");
|
|
|
-// va_detnoColumn.setFixed(true);
|
|
|
-//
|
|
|
-// va_Pd_wmpdnoCoulmn = new Column<String>("合并序号", "PD_WMPDNO");
|
|
|
-//
|
|
|
-// va_pucodeCoulmn = new Column<String>("单号", "PI_INOUTNO");
|
|
|
-// va_prodcodeColumn = new Column<String>("料号", "PD_PRODCODE");
|
|
|
-// va_qtyColumn = new Column<String>("数量", "PD_OUTQTY");
|
|
|
-// va_codeColumn = new Column<String>("条码数量", "PD_BARCODEQTY");
|
|
|
-//
|
|
|
-// va_detailColumn = new Column<String>("名称", "PR_DETAIL");
|
|
|
-// va_pr_specColumn = new Column<String>("规格", "PR_SPEC");
|
|
|
-// va_bar_loactioncColumn = new Column<String>("储位", "BAR_LOACTION");
|
|
|
-//
|
|
|
-// va_detnoColumn.setOnColumnItemClickListener(this);
|
|
|
-// va_pucodeCoulmn.setOnColumnItemClickListener(this);
|
|
|
-// va_prodcodeColumn.setOnColumnItemClickListener(this);
|
|
|
-// va_qtyColumn.setOnColumnItemClickListener(this);
|
|
|
-// va_detailColumn.setOnColumnItemClickListener(this);
|
|
|
-// va_codeColumn.setOnColumnItemClickListener(this);
|
|
|
-// va_pr_specColumn.setOnColumnItemClickListener(this);
|
|
|
-// va_bar_loactioncColumn.setOnColumnItemClickListener(this);
|
|
|
-//
|
|
|
-//
|
|
|
-//// ceshiData();
|
|
|
-// }
|
|
|
-// @Override
|
|
|
-// protected void initDatas() {
|
|
|
-// WindowManager wm = mActivity.getWindowManager();
|
|
|
-// int screenWith = wm.getDefaultDisplay().getWidth();
|
|
|
-// mSmartTable.getConfig().setMinTableWidth(screenWith)
|
|
|
-// .setShowXSequence(false)
|
|
|
-// .setShowYSequence(false)
|
|
|
-// .setShowTableTitle(false)
|
|
|
-// .setFixedTitle(true)
|
|
|
-// .setVerticalPadding(CommonUtil.dip2px(mActivity, 12))
|
|
|
-// .setColumnTitleVerticalPadding(CommonUtil.dip2px(mActivity, 12))
|
|
|
-// .setHorizontalPadding(CommonUtil.dip2px(mActivity, 10))
|
|
|
-// .setSequenceHorizontalPadding(CommonUtil.dip2px(mActivity, 10))
|
|
|
-// .setColumnTitleHorizontalPadding(CommonUtil.dip2px(mActivity, 10))
|
|
|
-// .setColumnTitleStyle(new FontStyle(CommonUtil.sp2px(mActivity, 15), Color.parseColor("#000000")))
|
|
|
-// .setContentCellBackgroundFormat(new BaseCellBackgroundFormat<CellInfo>() {
|
|
|
-// @Override
|
|
|
-// public int getBackGroundColor(CellInfo cellInfo) {
|
|
|
-//// for (int i=0;i<mFilterStorageInBeans.size();i++){
|
|
|
-//// }
|
|
|
-// String pd_pdno = mFilterStorageInBeans.get(0).getPD_PDNO();
|
|
|
-// String pd_wmpdno = mFilterStorageInBeans.get(0).getPD_WMPDNO();
|
|
|
-// SharedPreUtil.saveString(mActivity,"positionid",0+"");
|
|
|
-// SharedPreUtil.saveString(mActivity,"pd_pdnoid",pd_pdno+"");
|
|
|
-// SharedPreUtil.saveString(mActivity,"pd_wmpdno",pd_wmpdno+"");
|
|
|
-//
|
|
|
-// if (cellInfo.row == 0) {
|
|
|
-// return ContextCompat.getColor(mActivity, R.color.text_blue);
|
|
|
-//
|
|
|
-// }
|
|
|
-// return TableConfig.INVALID_COLOR;
|
|
|
-// }
|
|
|
-// });
|
|
|
-//
|
|
|
-// Bundle bundle = getArguments();
|
|
|
-// if (bundle != null) {
|
|
|
-// va_ids = bundle.getString("pi_id");
|
|
|
-// pi_status = bundle.getString("pi_status");
|
|
|
-// String pi_inoutno = bundle.getString("pi_inoutno");
|
|
|
-// String pi_statuscode = bundle.getString("pi_statuscode");
|
|
|
-// String pi_invostatuscode = bundle.getString("pi_invostatuscode");
|
|
|
-// pi_classs = bundle.getString("pi_class");
|
|
|
-// if (pi_statuscode.equals("POSTED")){//已过账
|
|
|
-// jlt_storage_in_generate_detailed_btn.setEnabled(false);//明细
|
|
|
-// jlt_storage_in_barcode_save_btn.setEnabled(false);//提交
|
|
|
-// jlt_storage_in_audit_btn.setEnabled(false);//审核
|
|
|
-// jlt_outbound_in_post_btn.setEnabled(false);//过账
|
|
|
-// storage_recharge_collect_ets.setFocusable(false);//条码框
|
|
|
-// storage_recharge_collect_ets.setEnabled(false);
|
|
|
-// outbound_search_im.setEnabled(false);//放大镜
|
|
|
-// }else if (pi_statuscode.equals("UNPOST")){//未过账
|
|
|
-// if (pi_invostatuscode.equals("ENTERING")){//在录入
|
|
|
-// jlt_storage_in_generate_detailed_btn.setEnabled(true);//明细
|
|
|
-// jlt_storage_in_barcode_save_btn.setEnabled(true);//提交
|
|
|
-// jlt_storage_in_audit_btn.setEnabled(true);//审核
|
|
|
-// jlt_outbound_in_post_btn.setEnabled(true);//过账
|
|
|
-// storage_recharge_collect_ets.setFocusable(true);//条码框
|
|
|
-// }else if (pi_invostatuscode.equals("COMMITED")){//已提交
|
|
|
-// jlt_storage_in_generate_detailed_btn.setEnabled(false);//明细
|
|
|
-// jlt_storage_in_barcode_save_btn.setEnabled(false);//提交
|
|
|
-// jlt_storage_in_audit_btn.setEnabled(true);//审核
|
|
|
-// jlt_outbound_in_post_btn.setEnabled(true);//过账
|
|
|
-// outbound_search_im.setEnabled(false);//放大镜
|
|
|
-// storage_recharge_collect_ets.setFocusable(false);//条码框
|
|
|
-// storage_recharge_collect_ets.setEnabled(false);
|
|
|
-// }else if (pi_invostatuscode.equals("AUDITED")){//已审核
|
|
|
-// jlt_storage_in_generate_detailed_btn.setEnabled(false);//明细
|
|
|
-// jlt_storage_in_barcode_save_btn.setEnabled(false);//提交
|
|
|
-// jlt_storage_in_audit_btn.setEnabled(false);//审核
|
|
|
-// jlt_outbound_in_post_btn.setEnabled(true);//过账
|
|
|
-// storage_recharge_collect_ets.setFocusable(false);//条码框
|
|
|
-// storage_recharge_collect_ets.setEnabled(false);
|
|
|
-// outbound_search_im.setEnabled(false);//放大镜
|
|
|
-// }
|
|
|
-// }
|
|
|
-//
|
|
|
-// tv_documents_code.setText(pi_inoutno);
|
|
|
-//
|
|
|
-// getDataCommitList();
|
|
|
-// }
|
|
|
-//
|
|
|
-//
|
|
|
-// }
|
|
|
-//
|
|
|
-// /**
|
|
|
-// * 请求条码第一次
|
|
|
-// * @param data
|
|
|
-// */
|
|
|
-// private void getDatalistCodes(String data) {
|
|
|
-// String positionid = SharedPreUtil.getString(mActivity, "pd_pdnoid", null);
|
|
|
-// if (!mFilterStorageInBeans.isEmpty()){
|
|
|
-// if (StringUtil.isEmpty(positionid)){
|
|
|
-// CommonUtil.toastNoRepeat(mActivity,"请先选择明细"+positionid);
|
|
|
-// return;
|
|
|
-// }
|
|
|
-// }
|
|
|
-// progressDialog.show();
|
|
|
-//
|
|
|
-// String ifcancel;
|
|
|
-// if (add_checkbos.isChecked()==true){
|
|
|
-// ifcancel="true";
|
|
|
-// }else {
|
|
|
-//
|
|
|
-// ifcancel="false";
|
|
|
-// }
|
|
|
-// String ifspecial;
|
|
|
-// if (ck_special_outbound.isChecked()==true){
|
|
|
-// ifspecial="true";
|
|
|
-// }else {
|
|
|
-// ifspecial="false";
|
|
|
-// }
|
|
|
-// String string_va_id = SharedPreUtil.getString(mActivity, Constants.STORAGEERECHADD, null);
|
|
|
-//
|
|
|
-// if (!StringUtil.isEmpty(va_ids)){
|
|
|
-// string_va_id=va_ids;
|
|
|
-// }
|
|
|
-// VolleyRequest.getInstance().stringRequest(new HttpParams.Builder()
|
|
|
-// .url(GloableParams.ADDRESS_DOCUMENTLIBRARY_ADD_OUTBOUNDLIST)
|
|
|
-// .method(Request.Method.GET)
|
|
|
-// .tag(TAG + "getindatalist")
|
|
|
-// .flag(0)
|
|
|
-// .addParam("data", data)
|
|
|
-// .addParam("pi_id", string_va_id)
|
|
|
-// .addParam("em_code", ed_picking_code.getText().toString().trim())
|
|
|
-// .addParam("ifspecial",ifspecial)//是否勾选了特殊出库
|
|
|
-// .addParam("ifcancel",ifcancel)//是否勾选了取消采集
|
|
|
-// .build(), new HttpCallback() {
|
|
|
-// @Override
|
|
|
-// public void onSuccess(int flag, Object o) throws Exception {
|
|
|
-// progressDialog.dismiss();
|
|
|
-// String result = o.toString();
|
|
|
-// JSONObject resultObject = JSON.parseObject(result);
|
|
|
-// JSONObject dataObject = resultObject.getJSONObject("data");
|
|
|
-// if (dataObject != null) {
|
|
|
-// bar_remain = FastjsonUtil.getText(dataObject, "bar_remain");
|
|
|
-// if (!add_checkbos.isChecked()){
|
|
|
-// initEditPopupWindow();
|
|
|
-// }
|
|
|
-// EventBus.getDefault().post(new MessageOutboundEvents("提交单据后刷新列表"));
|
|
|
-// }
|
|
|
-//
|
|
|
-// }
|
|
|
-//
|
|
|
-// @Override
|
|
|
-// public void onFail(int flag, String failStr) throws Exception {
|
|
|
-// progressDialog.dismiss();
|
|
|
-// CommonUtil.toastNoRepeat(mActivity, failStr);
|
|
|
-// EventBus.getDefault().post(new MessageOutboundEvents("提交单据后刷新列表"));
|
|
|
-//
|
|
|
-// }
|
|
|
-// });
|
|
|
-// storage_recharge_collect_ets.selectAll();
|
|
|
-// storage_recharge_collect_ets.requestFocus();
|
|
|
-// imm.showSoftInput(storage_recharge_collect_ets, InputMethodManager.RESULT_HIDDEN);
|
|
|
-// }
|
|
|
-//
|
|
|
-// /**
|
|
|
-// * 弹框保存按钮
|
|
|
-// */
|
|
|
-// private void getDialogDatalistCodes(String data,String number) {
|
|
|
-// String pd_pdnoid = SharedPreUtil.getString(mActivity, "positionid", null);
|
|
|
-//
|
|
|
-// if (!StringUtil.isEmpty(pd_pdnoid)){
|
|
|
-// integer = Integer.valueOf(pd_pdnoid);
|
|
|
-// String pd_barcodeqty = mFilterStorageInBeans.get(integer).getPD_BARCODEQTY();//条码数量
|
|
|
-// String pd_outqty = mFilterStorageInBeans.get(integer).getPD_OUTQTY();//数量
|
|
|
-// if (pd_barcodeqty.isEmpty()){
|
|
|
-// pd_barcodeqtyDouble=0.0;
|
|
|
-// }else {
|
|
|
-// pd_barcodeqtyDouble = Double.valueOf(pd_barcodeqty);
|
|
|
-// }
|
|
|
-// if (pd_outqty.isEmpty()){
|
|
|
-// pd_outqtyDouble=0.0;
|
|
|
-// }else {
|
|
|
-// pd_outqtyDouble = Double.valueOf(pd_outqty);
|
|
|
-// }
|
|
|
-// if (number.isEmpty()){
|
|
|
-// numberDouble = 0.0;
|
|
|
-// }else {
|
|
|
-// numberDouble = Double.valueOf(number);
|
|
|
-// }
|
|
|
-// Log.e("pd_barcodeqtyDouble", pd_barcodeqtyDouble +"");
|
|
|
-// Log.e("pd_outqtyDouble", pd_outqtyDouble +"");
|
|
|
-// Log.e("numberDouble", numberDouble +"");
|
|
|
-// double v = pd_barcodeqtyDouble + numberDouble;
|
|
|
-// Log.e("v",v+"");
|
|
|
-// if (add_checkbos.isChecked()==true){
|
|
|
-// baoucn(data,number);
|
|
|
-// }else {
|
|
|
-// if (pd_barcodeqtyDouble > pd_outqtyDouble||pd_barcodeqtyDouble + numberDouble > pd_outqtyDouble){
|
|
|
-// dialosDatas(data,number,v, pd_outqtyDouble);
|
|
|
-// }else {
|
|
|
-// baoucn(data,number);
|
|
|
-// }
|
|
|
-// }
|
|
|
-//
|
|
|
-// }
|
|
|
-// }
|
|
|
-// //保存
|
|
|
-// public void baoucn(String data,String number){
|
|
|
-// String positionid = SharedPreUtil.getString(mActivity, "pd_pdnoid", null);
|
|
|
-// String pd_wmpdno = SharedPreUtil.getString(mActivity, "pd_wmpdno", null);
|
|
|
-// progressDialog.show();
|
|
|
-// String out_editorcodes = SharedPreUtil.getString(mActivity, "out_editorcodes", null);
|
|
|
-// String ifcancel;
|
|
|
-// if (add_checkbos.isChecked()==true){
|
|
|
-// ifcancel="true";
|
|
|
-// }else {
|
|
|
-// ifcancel="false";
|
|
|
-// }
|
|
|
-// String string_va_id = SharedPreUtil.getString(mActivity, Constants.STORAGEERECHADD, null);
|
|
|
-// if (!StringUtil.isEmpty(va_ids)){
|
|
|
-// string_va_id=va_ids;
|
|
|
-// }
|
|
|
-//
|
|
|
-// VolleyRequest.getInstance().stringRequest(new HttpParams.Builder()
|
|
|
-// .url(GloableParams.ADDRESS_DOCUMENTLIBRARY_SAVE_OUTBOUNDLIST)
|
|
|
-// .method(Request.Method.GET)
|
|
|
-// .tag(TAG + "getindatalist")
|
|
|
-// .flag(0)
|
|
|
-// .addParam("barcode", out_editorcodes)
|
|
|
-// .addParam("pi_id", string_va_id)
|
|
|
-// .addParam("ifcancel",ifcancel)//是否勾选了取消采集
|
|
|
-// .addParam("remain",number)//手动输入的数
|
|
|
-// .addParam("pd_pdno",positionid)//明细序号
|
|
|
-// .addParam("em_code",ed_picking_code.getText().toString().trim())//界面领料人code
|
|
|
-// .addParam("pd_wmpdno",pd_wmpdno)
|
|
|
-// .build(), new HttpCallback() {
|
|
|
-// @Override
|
|
|
-// public void onSuccess(int flag, Object o) throws Exception {
|
|
|
-// progressDialog.dismiss();
|
|
|
-// String result = o.toString();
|
|
|
-// JSONObject resultObject = JSON.parseObject(result);
|
|
|
-// JSONObject dataObject = resultObject.getJSONObject("data");
|
|
|
-// if (dataObject != null) {
|
|
|
-// //人员编号名称
|
|
|
-// String pi_emcode = FastjsonUtil.getText(dataObject, "pi_emcode");
|
|
|
-// String pi_emname = FastjsonUtil.getText(dataObject, "pi_emname");
|
|
|
-// //领用部门编号名称
|
|
|
-// String pi_departmentcode = FastjsonUtil.getText(dataObject, "pi_departmentcode");
|
|
|
-// String pi_departmentname = FastjsonUtil.getText(dataObject, "pi_departmentname");
|
|
|
-// //工序编号名称
|
|
|
-// String pi_cccode = FastjsonUtil.getText(dataObject, "pi_cccode");
|
|
|
-// String pi_ccname = FastjsonUtil.getText(dataObject, "pi_ccname");
|
|
|
-// //单据状态码
|
|
|
-// String pi_invostatuscode = FastjsonUtil.getText(dataObject, "pi_invostatuscode");
|
|
|
-// //单据状态
|
|
|
-// String pi_invostatus = FastjsonUtil.getText(dataObject, "pi_invostatus");
|
|
|
-// //拨出仓编号名称
|
|
|
-// String pi_whcode = FastjsonUtil.getText(dataObject, "pi_whcode");
|
|
|
-// String pi_whname = FastjsonUtil.getText(dataObject, "pi_whname");
|
|
|
-// //拨入仓编号名称
|
|
|
-// String pi_purpose = FastjsonUtil.getText(dataObject, "pi_purpose");
|
|
|
-// String pi_purposename = FastjsonUtil.getText(dataObject, "pi_purposename");
|
|
|
-// //单据编号
|
|
|
-// String pi_inoutno = FastjsonUtil.getText(dataObject, "pi_inoutno");
|
|
|
-// String va_id = FastjsonUtil.getText(dataObject, "pi_id");
|
|
|
-// SharedPreUtil.saveString(mActivity, Constants.STORAGEERECHADD, va_id);
|
|
|
-//
|
|
|
-// ed_picking_code.setText(pi_emcode);
|
|
|
-// ed_picking_name.setText(pi_emname);
|
|
|
-// ed_recipients_departmentr_code.setText(pi_departmentcode);
|
|
|
-// ed_recipients_departmentr_name.setText(pi_departmentname);
|
|
|
-// ed_process_code.setText(pi_cccode);
|
|
|
-// ed_process_name.setText(pi_ccname);
|
|
|
-// ed_set_a_sideastorehouse.setText(pi_whcode+"-"+pi_whname);
|
|
|
-// ed_dial_a_levite.setText(pi_purpose+"-"+pi_purposename);
|
|
|
-// tv_documents_code.setText(pi_inoutno);
|
|
|
-// }
|
|
|
-// getDataCommitList();
|
|
|
-// if (add_checkbos.isChecked()==true){
|
|
|
-// CommonUtil.toastNoRepeat(mActivity,"取消成功");
|
|
|
-// }else {
|
|
|
-// CommonUtil.toastNoRepeat(mActivity,"采集成功");
|
|
|
-// }
|
|
|
-//
|
|
|
-// }
|
|
|
-//
|
|
|
-// @Override
|
|
|
-// public void onFail(int flag, String failStr) throws Exception {
|
|
|
-// progressDialog.dismiss();
|
|
|
-// CommonUtil.toastNoRepeat(mActivity, failStr);
|
|
|
-//
|
|
|
-// }
|
|
|
-// });
|
|
|
-// }
|
|
|
-//
|
|
|
-// /**
|
|
|
-// * 拆分单据
|
|
|
-// */
|
|
|
-// public void resolutionData(){
|
|
|
-// String piacalass = null;
|
|
|
-// progressDialog.show();
|
|
|
-//
|
|
|
-// String string_va_id = SharedPreUtil.getString(mActivity, Constants.STORAGEERECHADD, null);
|
|
|
-// if (!StringUtil.isEmpty(va_ids)){
|
|
|
-// string_va_id=va_ids;
|
|
|
-// }
|
|
|
-// if (pi_classs.equals("拨出单")){
|
|
|
-// piacalass="ProdInOut!AppropriationOut";
|
|
|
-// }
|
|
|
-// if (pi_classs.equals("生产领料单")){
|
|
|
-// piacalass="ProdInOut!Picking";
|
|
|
-// }
|
|
|
-//
|
|
|
-// VolleyRequest.getInstance().stringRequest(new HttpParams.Builder()
|
|
|
-// .url(GloableParams.ADDRESS_ADDRESSTAIL_RESOLUTION)
|
|
|
-// .method(Request.Method.GET)
|
|
|
-// .tag(TAG + "getindatalist")
|
|
|
-// .flag(0)
|
|
|
-// .addParam("id", string_va_id)
|
|
|
-// .addParam("caller", piacalass)
|
|
|
-// .addParam("cls",pi_classs)
|
|
|
-// .build(), new HttpCallback() {
|
|
|
-// @Override
|
|
|
-// public void onSuccess(int flag, Object o) throws Exception {
|
|
|
-// progressDialog.dismiss();
|
|
|
-// CommonUtil.toastNoRepeat(mActivity, "拆分成功");
|
|
|
-// getDataCommitList();
|
|
|
-//
|
|
|
-// }
|
|
|
-//
|
|
|
-// @Override
|
|
|
-// public void onFail(int flag, String failStr) throws Exception {
|
|
|
-// progressDialog.dismiss();
|
|
|
-// CommonUtil.toastNoRepeat(mActivity, failStr);
|
|
|
-// getDataCommitList();
|
|
|
-//
|
|
|
-// }
|
|
|
-// });
|
|
|
-// }
|
|
|
-//
|
|
|
-// public void resolutionDatahave(){
|
|
|
-// String piacalass = null;
|
|
|
-// progressDialog.show();
|
|
|
-//
|
|
|
-// String string_va_id = SharedPreUtil.getString(mActivity, Constants.STORAGEERECHADD, null);
|
|
|
-// if (!StringUtil.isEmpty(va_ids)){
|
|
|
-// string_va_id=va_ids;
|
|
|
-// }
|
|
|
-//// if (pi_classs.equals("拨出单")){
|
|
|
-//// piacalass="ProdInOut!AppropriationOut";
|
|
|
-//// }
|
|
|
-//// if (pi_classs.equals("生产领料单")){
|
|
|
-//// piacalass="ProdInOut!Picking";
|
|
|
-//// }
|
|
|
-//
|
|
|
-// VolleyRequest.getInstance().stringRequest(new HttpParams.Builder()
|
|
|
-// .url(GloableParams.ADDRESS_ADDRESSTAIL_RESOLUTIONHAVE)
|
|
|
-// .method(Request.Method.GET)
|
|
|
-// .tag(TAG + "getindatalist")
|
|
|
-// .flag(0)
|
|
|
-// .addParam("pi_id", string_va_id)
|
|
|
-// .addParam("caller", "ProdInOut!Picking")
|
|
|
-// .addParam("cls","生产领料单")
|
|
|
-// .build(), new HttpCallback() {
|
|
|
-// @Override
|
|
|
-// public void onSuccess(int flag, Object o) throws Exception {
|
|
|
-// progressDialog.dismiss();
|
|
|
-// CommonUtil.toastNoRepeat(mActivity, "拆分成功");
|
|
|
-// getDataCommitList();
|
|
|
-//
|
|
|
-// }
|
|
|
-//
|
|
|
-// @Override
|
|
|
-// public void onFail(int flag, String failStr) throws Exception {
|
|
|
-// progressDialog.dismiss();
|
|
|
-// CommonUtil.toastNoRepeat(mActivity, failStr);
|
|
|
-// getDataCommitList();
|
|
|
-//
|
|
|
-// }
|
|
|
-// });
|
|
|
-// }
|
|
|
-//
|
|
|
-// public void dialosDatas(String data,String number,Double v,Double pd_outqtyDouble){
|
|
|
-// new AlertDialog.Builder(getActivity()).setTitle("提示").setMessage("本次条码数量:"+v+"大于出库数量:"+pd_outqtyDouble)
|
|
|
-// .setPositiveButton(getString(R.string.confirm), new DialogInterface.OnClickListener() {
|
|
|
-// @Override
|
|
|
-// public void onClick(DialogInterface dialog, int which) {
|
|
|
-// baoucn(data,number);
|
|
|
-//
|
|
|
-// }
|
|
|
-// }).setNegativeButton(getString(R.string.cancel), null).create().show();
|
|
|
-// }
|
|
|
-// private void commitDataCodes(){//提交
|
|
|
-// progressDialog.show();
|
|
|
-// storage_recharge_collect_ets.setText("");
|
|
|
-// ed_picking_code.requestFocus();
|
|
|
-// storage_recharge_collect_ets.clearFocus();
|
|
|
-//// if (tv_delivery_code.getText().toString().trim().isEmpty()){
|
|
|
-//// CommonUtil.toastNoRepeat(mActivity,"请填写送货单号");
|
|
|
-//// return;
|
|
|
-//// }
|
|
|
-// String string_va_id = SharedPreUtil.getString(mActivity, Constants.STORAGEERECHADD, null);
|
|
|
-// if (!StringUtil.isEmpty(va_ids)){
|
|
|
-// string_va_id=va_ids;
|
|
|
-// }
|
|
|
-// VolleyRequest.getInstance().stringRequest(new HttpParams.Builder()
|
|
|
-// .url(GloableParams.ADDRESS_DOCUMENTLIBRARY_COMMIT__OUTBOUNDLIST)
|
|
|
-// .method(Request.Method.GET)
|
|
|
-// .tag(TAG + "getindatalist")
|
|
|
-// .flag(0)
|
|
|
-// .addParam("id",string_va_id)
|
|
|
-// .addParam("action","SUBMIT")
|
|
|
-// .build(), new HttpCallback() {
|
|
|
-// @Override
|
|
|
-// public void onSuccess(int flag, Object o) throws Exception {
|
|
|
-// progressDialog.dismiss();
|
|
|
-// getDataCommitList();
|
|
|
-// CommonUtil.toastNoRepeat(mActivity,"提交成功");
|
|
|
-// }
|
|
|
-//
|
|
|
-// @Override
|
|
|
-// public void onFail(int flag, String failStr) throws Exception {
|
|
|
-// progressDialog.dismiss();
|
|
|
-// CommonUtil.toastNoRepeat(mActivity, failStr);
|
|
|
-// getDataCommitList();
|
|
|
-// }
|
|
|
-// });
|
|
|
-// getDataCommitList();
|
|
|
-// }
|
|
|
-// //生成明细数据
|
|
|
-// private void getDataadCommitList(){
|
|
|
-// progressDialog.show();
|
|
|
-// String string_va_ids = SharedPreUtil.getString(mActivity, Constants.STORAGEERECHADD, null);
|
|
|
-// if (!StringUtil.isEmpty(va_ids)){
|
|
|
-// string_va_ids=va_ids;
|
|
|
-// }
|
|
|
-// VolleyRequest.getInstance().stringRequest(new HttpParams.Builder()
|
|
|
-// .url(GloableParams.ADDRESS_DOCUMENTLIBRARY_DETAIL_OUTBOUNDLIST)
|
|
|
-// .method(Request.Method.GET)
|
|
|
-// .tag(TAG + "datalist")
|
|
|
-// .flag(0)
|
|
|
-// .addParam("pi_id",string_va_ids)
|
|
|
-// .build(), new HttpCallback() {
|
|
|
-// @Override
|
|
|
-// public void onSuccess(int flag, Object o) throws Exception {
|
|
|
-// progressDialog.dismiss();
|
|
|
-// getDataCommitList();
|
|
|
-// }
|
|
|
-// @Override
|
|
|
-// public void onFail(int flag, String failStr) throws Exception {
|
|
|
-// progressDialog.dismiss();
|
|
|
-// CommonUtil.toastNoRepeat(mActivity, failStr);
|
|
|
-// getDataCommitList();
|
|
|
-// }
|
|
|
-// });
|
|
|
-// }
|
|
|
-//
|
|
|
-//
|
|
|
-// //展示明细数据
|
|
|
-// private void getDataCommitList(){
|
|
|
-// progressDialog.show();
|
|
|
-// String string_va_ids = SharedPreUtil.getString(mActivity, Constants.STORAGEERECHADD, null);
|
|
|
-// if (!StringUtil.isEmpty(va_ids)){
|
|
|
-// string_va_ids=va_ids;
|
|
|
-// }
|
|
|
-// VolleyRequest.getInstance().stringRequest(new HttpParams.Builder()
|
|
|
-// .url(GloableParams.ADDRESS_DOCUMENTLIBRARY_DETAIL_OUTBOUNDLISTS)
|
|
|
-// .method(Request.Method.GET)
|
|
|
-// .tag(TAG + "datalist")
|
|
|
-// .flag(0)
|
|
|
-// .addParam("pi_id",string_va_ids)
|
|
|
-// .build(), new HttpCallback() {
|
|
|
-// private String pi_statuscode;
|
|
|
-// private String pi_invostatuscode;
|
|
|
-//
|
|
|
-// @Override
|
|
|
-// public void onSuccess(int flag, Object o) throws Exception {
|
|
|
-// progressDialog.dismiss();
|
|
|
-// try {
|
|
|
-// mFilterStorageInBeans.clear();
|
|
|
-// String result = o.toString();
|
|
|
-// JSONObject resultObject = JSON.parseObject(result);
|
|
|
-// JSONArray dataArray = resultObject.getJSONArray("data");
|
|
|
-// List<OutBoundListAddDalieBean> list = new ArrayList<>();
|
|
|
-// list.clear();
|
|
|
-// if (dataArray != null && dataArray.size() > 0) {
|
|
|
-// for (int i = 0; i < dataArray.size(); i++) {
|
|
|
-// JSONObject dataObject = dataArray.getJSONObject(i);
|
|
|
-// if (dataObject != null) {
|
|
|
-// OutBoundListAddDalieBean jltStorageInBean = new OutBoundListAddDalieBean();
|
|
|
-// jltStorageInBean.setPD_PDNO(FastjsonUtil.getText(dataObject, "PD_PDNO"));
|
|
|
-// jltStorageInBean.setPI_INOUTNO(FastjsonUtil.getText(dataObject, "PI_INOUTNO"));
|
|
|
-// jltStorageInBean.setPD_PRODCODE(FastjsonUtil.getText(dataObject, "PD_PRODCODE"));
|
|
|
-// jltStorageInBean.setPD_OUTQTY(FastjsonUtil.getText(dataObject, "PD_OUTQTY"));
|
|
|
-// jltStorageInBean.setPR_DETAIL(FastjsonUtil.getText(dataObject, "PR_DETAIL"));
|
|
|
-// jltStorageInBean.setPR_SPEC(FastjsonUtil.getText(dataObject, "PR_SPEC"));
|
|
|
-// jltStorageInBean.setBAR_LOACTION(FastjsonUtil.getText(dataObject, "BAR_LOACTION"));
|
|
|
-//
|
|
|
-// jltStorageInBean.setPI_INVOSTATUSCODE(FastjsonUtil.getText(dataObject, "PI_INVOSTATUSCODE"));
|
|
|
-// jltStorageInBean.setPI_STATUSCODE(FastjsonUtil.getText(dataObject, "PI_STATUSCODE"));
|
|
|
-// //领料人名称
|
|
|
-// jltStorageInBean.setPI_EMCODE(FastjsonUtil.getText(dataObject, "PI_EMCODE"));
|
|
|
-// jltStorageInBean.setPI_EMNAME(FastjsonUtil.getText(dataObject, "PI_EMNAME"));
|
|
|
-// //领用部门编号名称
|
|
|
-// jltStorageInBean.setPI_DEPARTMENTCODE(FastjsonUtil.getText(dataObject, "PI_DEPARTMENTCODE"));
|
|
|
-// jltStorageInBean.setPI_DEPARTMENTNAME(FastjsonUtil.getText(dataObject, "PI_DEPARTMENTNAME"));
|
|
|
-// //工序编号名称
|
|
|
-// jltStorageInBean.setPI_CCCODE(FastjsonUtil.getText(dataObject, "PI_CCCODE"));
|
|
|
-// jltStorageInBean.setPI_CCNAME(FastjsonUtil.getText(dataObject, "PI_CCNAME"));
|
|
|
-//
|
|
|
-// //拨出仓编号名称
|
|
|
-// jltStorageInBean.setPI_WHCODE(FastjsonUtil.getText(dataObject, "PI_WHCODE"));
|
|
|
-// jltStorageInBean.setPI_WHNAME(FastjsonUtil.getText(dataObject, "PI_WHNAME"));
|
|
|
-// //拨入仓编号名称
|
|
|
-// jltStorageInBean.setPI_PURPOSE(FastjsonUtil.getText(dataObject, "PI_PURPOSE"));
|
|
|
-// jltStorageInBean.setPI_PURPOSENAME(FastjsonUtil.getText(dataObject, "PI_PURPOSENAME"));
|
|
|
-// jltStorageInBean.setPD_BARCODEQTY(FastjsonUtil.getText(dataObject, "PD_BARCODEQTY"));
|
|
|
-//
|
|
|
-// jltStorageInBean.setPD_WMPDNO(FastjsonUtil.getText(dataObject, "PD_WMPDNO"));
|
|
|
-// list.add(jltStorageInBean);
|
|
|
-// pi_invostatuscode = jltStorageInBean.getPI_INVOSTATUSCODE();
|
|
|
-// pi_statuscode = jltStorageInBean.getPI_STATUSCODE();
|
|
|
-//
|
|
|
-// String pi_departmentcode = jltStorageInBean.getPI_DEPARTMENTCODE();
|
|
|
-// String pi_departmentname = jltStorageInBean.getPI_DEPARTMENTNAME();
|
|
|
-// String pi_emcode = jltStorageInBean.getPI_EMCODE();
|
|
|
-// String pi_emname = jltStorageInBean.getPI_EMNAME();
|
|
|
-//
|
|
|
-// String pi_cccode = jltStorageInBean.getPI_CCCODE();
|
|
|
-// String pi_ccname = jltStorageInBean.getPI_CCNAME();
|
|
|
-//
|
|
|
-// String pi_whcode = jltStorageInBean.getPI_WHCODE();
|
|
|
-// String pi_whname = jltStorageInBean.getPI_WHNAME();
|
|
|
-//
|
|
|
-// String pi_purpose = jltStorageInBean.getPI_PURPOSE();
|
|
|
-// String pi_purposename = jltStorageInBean.getPI_PURPOSENAME();
|
|
|
-// String pi_inoutno = jltStorageInBean.getPI_INOUTNO();
|
|
|
-// ed_picking_code.setText(pi_emcode);
|
|
|
-// ed_picking_name.setText(pi_emname);
|
|
|
-// ed_recipients_departmentr_code.setText(pi_departmentcode);
|
|
|
-// ed_recipients_departmentr_name.setText(pi_departmentname);
|
|
|
-// ed_process_code.setText(pi_cccode);
|
|
|
-// ed_process_name.setText(pi_ccname);
|
|
|
-// ed_set_a_sideastorehouse.setText(pi_whcode+"-"+pi_whname);
|
|
|
-// ed_dial_a_levite.setText(pi_purpose+"-"+pi_purposename);
|
|
|
-// tv_documents_code.setText(pi_inoutno);
|
|
|
-// }
|
|
|
-// }
|
|
|
-//// ENTERING 在录入
|
|
|
-//// COMMITED 已提交
|
|
|
-//// AUDITED 已审核
|
|
|
-// if (pi_statuscode.equals("POSTED")){//已过账
|
|
|
-// jlt_storage_in_generate_detailed_btn.setEnabled(false);//明细
|
|
|
-// jlt_storage_in_barcode_save_btn.setEnabled(false);//提交
|
|
|
-// jlt_storage_in_audit_btn.setEnabled(false);//审核
|
|
|
-// jlt_outbound_in_post_btn.setEnabled(false);//过账
|
|
|
-// storage_recharge_collect_ets.setFocusable(false);//条码框
|
|
|
-// storage_recharge_collect_ets.setEnabled(false);
|
|
|
-// }else if (pi_statuscode.equals("UNPOST")){//未过账
|
|
|
-// if (pi_invostatuscode.equals("ENTERING")){//在录入
|
|
|
-// jlt_storage_in_generate_detailed_btn.setEnabled(true);//明细
|
|
|
-// jlt_storage_in_barcode_save_btn.setEnabled(true);//提交
|
|
|
-// jlt_storage_in_audit_btn.setEnabled(true);//审核
|
|
|
-// jlt_outbound_in_post_btn.setEnabled(true);//过账
|
|
|
-// storage_recharge_collect_ets.setFocusable(true);//条码框
|
|
|
-// }else if (pi_invostatuscode.equals("COMMITED")){//已提交
|
|
|
-// jlt_storage_in_generate_detailed_btn.setEnabled(false);//明细
|
|
|
-// jlt_storage_in_barcode_save_btn.setEnabled(false);//提交
|
|
|
-// jlt_storage_in_audit_btn.setEnabled(true);//审核
|
|
|
-// jlt_outbound_in_post_btn.setEnabled(true);//过账
|
|
|
-// storage_recharge_collect_ets.setFocusable(false);//条码框
|
|
|
-// storage_recharge_collect_ets.setEnabled(false);
|
|
|
-// }else if (pi_invostatuscode.equals("AUDITED")){//已审核
|
|
|
-// jlt_storage_in_generate_detailed_btn.setEnabled(false);//明细
|
|
|
-// jlt_storage_in_barcode_save_btn.setEnabled(false);//提交
|
|
|
-// jlt_storage_in_audit_btn.setEnabled(false);//审核
|
|
|
-// jlt_outbound_in_post_btn.setEnabled(true);//过账
|
|
|
-// storage_recharge_collect_ets.setFocusable(false);//条码框
|
|
|
-// storage_recharge_collect_ets.setEnabled(false);
|
|
|
-// }
|
|
|
-// }
|
|
|
-//
|
|
|
-// }
|
|
|
-//// mFilterStorageInBeans = list;
|
|
|
-//
|
|
|
-// mFilterStorageInBeans = list;//PI_INOUTNO
|
|
|
-// setFilterTableData(mFilterStorageInBeans);
|
|
|
-//
|
|
|
-// EventBus.getDefault().post(new MessageOutboundEvents("提交单据后刷新列表"));
|
|
|
-// progressDialog.dismiss();
|
|
|
-// } catch (Exception e) {
|
|
|
-// e.printStackTrace();
|
|
|
-// progressDialog.dismiss();
|
|
|
-// }
|
|
|
-// }
|
|
|
-// @Override
|
|
|
-// public void onFail(int flag, String failStr) throws Exception {
|
|
|
-// progressDialog.dismiss();
|
|
|
-// setFilterTableData(new ArrayList<>());
|
|
|
-// CommonUtil.toastNoRepeat(mActivity, failStr);
|
|
|
-// setFilterTableData(mFilterStorageInBeans);
|
|
|
-// }
|
|
|
-// });
|
|
|
-// progressDialog.dismiss();
|
|
|
-// }
|
|
|
-//
|
|
|
-//
|
|
|
-//
|
|
|
-//
|
|
|
-// private void generate_auditData(){//审核
|
|
|
-// progressDialog.show();
|
|
|
-// storage_recharge_collect_ets.setText("");
|
|
|
-// ed_picking_code.requestFocus();
|
|
|
-// storage_recharge_collect_ets.clearFocus();
|
|
|
-//
|
|
|
-// String string_va_id = SharedPreUtil.getString(mActivity, Constants.STORAGEERECHADD, null);
|
|
|
-// if (!StringUtil.isEmpty(va_ids)){
|
|
|
-// string_va_id=va_ids;
|
|
|
-// }
|
|
|
-// VolleyRequest.getInstance().stringRequest(new HttpParams.Builder()
|
|
|
-// .url(GloableParams.ADDRESS_DOCUMENTLIBRARY_COMMIT__OUTBOUNDLIST)
|
|
|
-// .method(Request.Method.GET)
|
|
|
-// .tag(TAG + "getindatalist")
|
|
|
-// .flag(0)
|
|
|
-// .addParam("id",string_va_id)
|
|
|
-// .addParam("action","AUDIT")
|
|
|
-// .build(), new HttpCallback() {
|
|
|
-// @Override
|
|
|
-// public void onSuccess(int flag, Object o) throws Exception {
|
|
|
-// progressDialog.dismiss();
|
|
|
-// getDataCommitList();
|
|
|
-// CommonUtil.toastNoRepeat(mActivity,"审核成功");
|
|
|
-// }
|
|
|
-//
|
|
|
-// @Override
|
|
|
-// public void onFail(int flag, String failStr) throws Exception {
|
|
|
-// progressDialog.dismiss();
|
|
|
-// CommonUtil.toastNoRepeat(mActivity, failStr);
|
|
|
-// getDataCommitList();
|
|
|
-//
|
|
|
-// }
|
|
|
-// });
|
|
|
-// getDataCommitList();
|
|
|
-// }
|
|
|
-// private void genePostingData(){//过账
|
|
|
-// progressDialog.show();
|
|
|
-// storage_recharge_collect_ets.setText("");
|
|
|
-// ed_picking_code.requestFocus();
|
|
|
-// storage_recharge_collect_ets.clearFocus();
|
|
|
-// String string_va_id = SharedPreUtil.getString(mActivity, Constants.STORAGEERECHADD, null);
|
|
|
-// if (!StringUtil.isEmpty(va_ids)){
|
|
|
-// string_va_id=va_ids;
|
|
|
-// }
|
|
|
-// VolleyRequest.getInstance().stringRequest(new HttpParams.Builder()
|
|
|
-// .url(GloableParams.ADDRESS_DOCUMENTLIBRARY_COMMIT__OUTBOUNDLIST)
|
|
|
-// .method(Request.Method.GET)
|
|
|
-// .tag(TAG + "getindatalist")
|
|
|
-// .flag(0)
|
|
|
-// .addParam("id",string_va_id)
|
|
|
-// .addParam("action","POST")
|
|
|
-// .build(), new HttpCallback() {
|
|
|
-// @Override
|
|
|
-// public void onSuccess(int flag, Object o) throws Exception {
|
|
|
-// progressDialog.dismiss();
|
|
|
-// getDataCommitList();
|
|
|
-// CommonUtil.toastNoRepeat(mActivity,"过账成功");
|
|
|
-// }
|
|
|
-//
|
|
|
-// @Override
|
|
|
-// public void onFail(int flag, String failStr) throws Exception {
|
|
|
-// progressDialog.dismiss();
|
|
|
-// CommonUtil.toastNoRepeat(mActivity, failStr);
|
|
|
-// getDataCommitList();
|
|
|
-//
|
|
|
-// }
|
|
|
-// });
|
|
|
-// getDataCommitList();
|
|
|
-// }
|
|
|
-//
|
|
|
-// @Subscribe
|
|
|
-// public void onMessageEvent(MessageDetalBean event) {
|
|
|
-// progressDialog.dismiss();
|
|
|
-//// getDataadCommitList();
|
|
|
-// new CountDownTimer(500, 500) {
|
|
|
-//
|
|
|
-// public void onTick(long millisUntilFinished) {
|
|
|
-// getDataCommitList();
|
|
|
-// }
|
|
|
-// public void onFinish() {
|
|
|
-// getDataCommitList();
|
|
|
-// }
|
|
|
-//
|
|
|
-// }.start();
|
|
|
-// progressDialog.dismiss();
|
|
|
-// }
|
|
|
-//
|
|
|
-// @Override
|
|
|
-// public void onStop() {
|
|
|
-// super.onStop();
|
|
|
-// }
|
|
|
-//
|
|
|
-// //弹窗
|
|
|
-// private void initEditPopupWindow() {
|
|
|
-// View contView = LayoutInflater.from(mActivity).inflate(R.layout.index_edit_pup, null);
|
|
|
-// edit_et = (ClearableEditText) contView.findViewById(R.id.edit_et);
|
|
|
-// TextView sure_tv = (TextView) contView.findViewById(R.id.sure_tv);
|
|
|
-// TextView cancle_tv = (TextView) contView.findViewById(R.id.cancle_tv);
|
|
|
-// ImageView search_im = contView.findViewById(R.id.search_im);
|
|
|
-//// search_im.setVisibility(View.GONE);
|
|
|
-// edit_et.setText(bar_remain);
|
|
|
-// editPW = new PopupWindow(contView, LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT, true);
|
|
|
-// editPW.setTouchable(true);
|
|
|
-// editPW.setBackgroundDrawable(new BitmapDrawable());
|
|
|
-// editPW.setOnDismissListener(new BasePopupWindow.OnDismissListener() {
|
|
|
-// @Override
|
|
|
-// public void onDismiss() {
|
|
|
-// closeListPopupWindow();
|
|
|
-// }
|
|
|
-// });
|
|
|
-// View parentView = mActivity.getWindow().findViewById(Window.ID_ANDROID_CONTENT);
|
|
|
-//
|
|
|
-// editPW.showAtLocation(parentView, Gravity.CENTER, 0, 0);
|
|
|
-// CommonUtil.setBackgroundAlpha(mActivity, 0.5f);
|
|
|
-//
|
|
|
-// sure_tv.setOnClickListener(new View.OnClickListener() {
|
|
|
-// @Override
|
|
|
-// public void onClick(View v) {
|
|
|
-// String code = edit_et.getText().toString().trim();
|
|
|
-// getDialogDatalistCodes(storage_recharge_collect_ets.getText().toString().trim(),code);
|
|
|
-// closeListPopupWindow();
|
|
|
-// }
|
|
|
-// });
|
|
|
-//
|
|
|
-//
|
|
|
-// search_im.setOnClickListener(new View.OnClickListener() {
|
|
|
-// @Override
|
|
|
-// public void onClick(View v) {
|
|
|
-// Intent intent = new Intent(mActivity, CommonSeclecActivity.class);
|
|
|
-// intent.putExtra("title", "人员资料");
|
|
|
-// intent.putExtra("type", 1);
|
|
|
-// startActivityForResult(intent, Constants.FLAG.GET_COMMON_ITEM);
|
|
|
-// }
|
|
|
-// });
|
|
|
-// CommonUtil.setEditorActionListener(edit_et, new MyEditorActionListener() {
|
|
|
-// @Override
|
|
|
-// public void MyEditorAction(String text, int actionId, KeyEvent event) {
|
|
|
-// String code = edit_et.getText().toString().trim();
|
|
|
-// getDialogDatalistCodes(storage_recharge_collect_ets.getText().toString().trim(),code);
|
|
|
-// }
|
|
|
-// });
|
|
|
-// cancle_tv.setOnClickListener(new View.OnClickListener() {
|
|
|
-// @Override
|
|
|
-// public void onClick(View v) {
|
|
|
-// closeListPopupWindow();
|
|
|
-// }
|
|
|
-// });
|
|
|
-//
|
|
|
-//
|
|
|
-// }
|
|
|
-// private void setFilterTableData(List<OutBoundListAddDalieBean> filterTableData) {
|
|
|
-// mTableData = new TableData<OutBoundListAddDalieBean>("列表", filterTableData,
|
|
|
-// va_detnoColumn,va_Pd_wmpdnoCoulmn,va_pucodeCoulmn,va_prodcodeColumn,va_qtyColumn,va_codeColumn,va_detailColumn,va_pr_specColumn,va_bar_loactioncColumn);
|
|
|
-// mSmartTable.setTableData(mTableData);
|
|
|
-//// mSmartTable.requestLayout();
|
|
|
-// mSmartTable.postDelayed(new Runnable() {
|
|
|
-// @Override
|
|
|
-// public void run() {
|
|
|
-// mSmartTable.postInvalidate();
|
|
|
-// }
|
|
|
-// }, 100);
|
|
|
-//
|
|
|
-// }
|
|
|
-// private void showMoreMenu() {
|
|
|
-// if (mMenuView == null) {
|
|
|
-// mMenuView = View.inflate(mActivity, R.layout.pop_outboundlist_out_menu2, null);
|
|
|
-// }
|
|
|
-// Button pop_material_out_resolution = (Button) mMenuView.findViewById(R.id.pop_material_out_resolution);
|
|
|
-// Button take_apart_the_pallet = (Button) mMenuView.findViewById(R.id.take_apart_the_pallet);
|
|
|
-// Button pop_materialchange = (Button) mMenuView.findViewById(R.id.pop_materialchange);
|
|
|
-// pop_material_out_resolution.setOnClickListener(new View.OnClickListener() {
|
|
|
-// @Override
|
|
|
-// public void onClick(View v) {
|
|
|
-// new AlertDialog.Builder(getActivity()).setTitle("提示").setMessage("确认拆分单据?")
|
|
|
-// .setPositiveButton(getString(R.string.confirm), new DialogInterface.OnClickListener() {
|
|
|
-// @Override
|
|
|
-// public void onClick(DialogInterface dialog, int which) {
|
|
|
-// resolutionData();
|
|
|
-// }
|
|
|
-// }).setNegativeButton(getString(R.string.cancel), null).create().show();
|
|
|
-// closeMenuPopupWindow();
|
|
|
-// }
|
|
|
-//
|
|
|
-// });
|
|
|
-//
|
|
|
-// TakeApartThePalletFragment mfragment=new TakeApartThePalletFragment();
|
|
|
-// take_apart_the_pallet.setOnClickListener(new View.OnClickListener() {
|
|
|
-// @Override
|
|
|
-// public void onClick(View v) {
|
|
|
-// Bundle bundle = new Bundle();
|
|
|
-// bundle.putString("pi_id", va_ids);
|
|
|
-// mfragment.setArguments(bundle);
|
|
|
-// FragmentUtils.switchFragment(OutboundListAdd_Fragment.this, mfragment);
|
|
|
-// closeMenuPopupWindow();
|
|
|
-// }
|
|
|
-// });
|
|
|
-//
|
|
|
-//
|
|
|
-//
|
|
|
-// pop_materialchange.setOnClickListener(new View.OnClickListener() {
|
|
|
-// @Override
|
|
|
-// public void onClick(View v) {
|
|
|
-// new AlertDialog.Builder(getActivity()).setTitle("提示").setMessage("确认拆分单据?")
|
|
|
-// .setPositiveButton(getString(R.string.confirm), new DialogInterface.OnClickListener() {
|
|
|
-// @Override
|
|
|
-// public void onClick(DialogInterface dialog, int which) {
|
|
|
-// resolutionDatahave();
|
|
|
-// }
|
|
|
-// }).setNegativeButton(getString(R.string.cancel), null).create().show();
|
|
|
-//
|
|
|
-// closeMenuPopupWindow();
|
|
|
-// }
|
|
|
-// });
|
|
|
-//
|
|
|
-//
|
|
|
-//
|
|
|
-// if (mMenuPopupWindow == null) {
|
|
|
-// mMenuPopupWindow = new PopupWindow(mMenuView, LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT, true);
|
|
|
-// }
|
|
|
-// mMenuPopupWindow.setBackgroundDrawable(new BitmapDrawable());
|
|
|
-// mMenuPopupWindow.setOnDismissListener(new PopupWindow.OnDismissListener() {
|
|
|
-// @Override
|
|
|
-// public void onDismiss() {
|
|
|
-// closeMenuPopupWindow();
|
|
|
-// }
|
|
|
-// });
|
|
|
-// CommonUtil.setBackgroundAlpha(mActivity, 0.5f);
|
|
|
-// mMenuPopupWindow.showAsDropDown(mMoreButton);
|
|
|
-// }
|
|
|
-// private void closeMenuPopupWindow() {
|
|
|
-// if (mMenuPopupWindow != null) {
|
|
|
-// mMenuPopupWindow.dismiss();
|
|
|
-// mMenuPopupWindow = null;
|
|
|
-// CommonUtil.setBackgroundAlpha(mActivity, 1f);
|
|
|
-// }
|
|
|
-// }
|
|
|
-// private void closeListPopupWindow() {
|
|
|
-// if (editPW != null) {
|
|
|
-// editPW.dismiss();
|
|
|
-// editPW = null;
|
|
|
-// CommonUtil.setBackgroundAlpha(mActivity, 1f);
|
|
|
-// }
|
|
|
-//
|
|
|
-// }
|
|
|
-//
|
|
|
-//
|
|
|
-// @Override
|
|
|
-// public boolean onKeyDown(int keyCode, KeyEvent event) {
|
|
|
-// EventBus.getDefault().post(new MessageOutboundEvents("提交单据后刷新列表"));
|
|
|
-// return false;
|
|
|
-// }
|
|
|
-//
|
|
|
-// @Override
|
|
|
-// public boolean onFragmentBackPressed() {
|
|
|
-// EventBus.getDefault().post(new MessageOutboundEvents("提交单据后刷新列表"));
|
|
|
-// return false;
|
|
|
-// }
|
|
|
-//
|
|
|
-// @Override
|
|
|
-// public void onClick(View v) {
|
|
|
-// switch (v.getId()) {
|
|
|
-// case R.id.btn_actionbar_list_icon_iv:
|
|
|
-// showMoreMenu();
|
|
|
-// break;
|
|
|
-// case R.id.storage_recharge_scan_ivs:
|
|
|
-// if (CameraUtil.hasCamera()) {
|
|
|
-// if (root.findFocus() != null) {
|
|
|
-// mFocusId = root.findFocus().getId();
|
|
|
-// Intent intent = new Intent();
|
|
|
-// intent.setClass(mActivity, CaptureActivity.class);
|
|
|
-// startActivityForResult(intent, SCAN_BARCODE_CODE);
|
|
|
-// } else {
|
|
|
-// CommonUtil.toastNoRepeat(mActivity, "请选择您要操作的输入框");
|
|
|
-// }
|
|
|
-// } else {
|
|
|
-// CommonUtil.toastNoRepeat(mActivity, getString(R.string.no_camera_detected));
|
|
|
-// }
|
|
|
-// break;
|
|
|
-// case R.id.jlt_storage_in_generate_detailed_btn://生成明细
|
|
|
-// getDataadCommitList();
|
|
|
-// break;
|
|
|
-// case R.id.jlt_storage_in_barcode_save_btn://提交
|
|
|
-//
|
|
|
-// commitDataCodes();
|
|
|
-// break;
|
|
|
-// case R.id.jlt_storage_in_audit_btn://审核
|
|
|
-// generate_auditData();
|
|
|
-// break;
|
|
|
-// case R.id.jlt_outbound_in_post_btn://过账
|
|
|
-// genePostingData();
|
|
|
-//// initEditPopupWindow();
|
|
|
-// break;
|
|
|
-// case R.id.outbound_search_im://放大镜
|
|
|
-// Intent intent = new Intent(mActivity, CommonSeclecActivity.class);
|
|
|
-// intent.putExtra("title", "人员资料");
|
|
|
-// intent.putExtra("type", 1);
|
|
|
-// startActivityForResult(intent, Constants.FLAG.GET_COMMON_ITEMS);
|
|
|
-// break;
|
|
|
-// }
|
|
|
-// }
|
|
|
-//
|
|
|
-//
|
|
|
-// @Override
|
|
|
-// public void onClick (Column < String > column, String value, String s,int position){
|
|
|
-//// String pd_outqty = mFilterStorageInBeans.get(position).getPD_OUTQTY();//数量
|
|
|
-//// String pd_barcodeqty = mFilterStorageInBeans.get(position).getPD_BARCODEQTY();//条码数量
|
|
|
-//// if (Integer.valueOf(pd_outqty)>Integer.valueOf(pd_barcodeqty)){
|
|
|
-//// mSmartTable.getConfig()
|
|
|
-//// .setContentCellBackgroundFormat(new BaseCellBackgroundFormat<CellInfo>() {
|
|
|
-//// @Override
|
|
|
-//// public int getBackGroundColor(CellInfo cellInfo) {
|
|
|
-//// if (cellInfo.row == position) {
|
|
|
-//// return ContextCompat.getColor(mActivity, R.color.search_gray);
|
|
|
-//// }
|
|
|
-//// return TableConfig.INVALID_COLOR;
|
|
|
-//// }
|
|
|
-//// });
|
|
|
-//// }
|
|
|
-//
|
|
|
-// String pd_pdno = mFilterStorageInBeans.get(position).getPD_PDNO();
|
|
|
-// String pd_wmpdno = mFilterStorageInBeans.get(position).getPD_WMPDNO();
|
|
|
-//// String positionid = SharedPreUtil.getString(mActivity, "positionid", null);
|
|
|
-//// if (!StringUtil.isEmpty(positionid) && positionid.equals(position+"")){
|
|
|
-//// SharedPreUtil.removeString(mActivity,"positionid");
|
|
|
-//// SharedPreUtil.removeString(mActivity,"pd_pdnoid");
|
|
|
-//// mSmartTable.getConfig()
|
|
|
-//// .setContentCellBackgroundFormat(new BaseCellBackgroundFormat<CellInfo>() {
|
|
|
-//// @Override
|
|
|
-//// public int getBackGroundColor(CellInfo cellInfo) {
|
|
|
-//// int row = cellInfo.row;
|
|
|
-//// if (cellInfo.row == position) {
|
|
|
-//// ischeck=false;
|
|
|
-//// if (ischeck==false){
|
|
|
-//// return ContextCompat.getColor(mActivity, R.color.white);
|
|
|
-//// }
|
|
|
-//// }
|
|
|
-//// return TableConfig.INVALID_COLOR;
|
|
|
-//// }
|
|
|
-//// });
|
|
|
-//// }else {
|
|
|
-// SharedPreUtil.saveString(mActivity,"positionid",position+"");
|
|
|
-// SharedPreUtil.saveString(mActivity,"pd_pdnoid",pd_pdno+"");
|
|
|
-// SharedPreUtil.saveString(mActivity,"pd_wmpdno",pd_wmpdno+"");
|
|
|
-//
|
|
|
-//
|
|
|
-//
|
|
|
-// mSmartTable.getConfig()
|
|
|
-// .setContentCellBackgroundFormat(new BaseCellBackgroundFormat<CellInfo>() {
|
|
|
-// @Override
|
|
|
-// public int getBackGroundColor(CellInfo cellInfo) {
|
|
|
-// if (cellInfo.row == position) {
|
|
|
-// ischeck=false;
|
|
|
-// if (ischeck==false){
|
|
|
-// return ContextCompat.getColor(mActivity, R.color.text_blue);
|
|
|
-// }
|
|
|
-//
|
|
|
-// }
|
|
|
-// return TableConfig.INVALID_COLOR;
|
|
|
-// }
|
|
|
-// });
|
|
|
-//// }
|
|
|
-//
|
|
|
-// mSmartTable.postDelayed(new Runnable() {
|
|
|
-// @Override
|
|
|
-// public void run() {
|
|
|
-// mSmartTable.postInvalidate();
|
|
|
-// }
|
|
|
-// }, 100);
|
|
|
-//
|
|
|
-// }
|
|
|
-// @Override
|
|
|
-// public void onActivityResult(int requestCode, int resultCode, Intent data) {
|
|
|
-// super.onActivityResult(requestCode, resultCode, data);
|
|
|
-// if (requestCode == SCAN_BARCODE_CODE && data != null) {
|
|
|
-// if (data.getExtras() != null) {
|
|
|
-// String result = data.getExtras().getString(CodeUtils.RESULT_STRING);
|
|
|
-// SharedPreUtil.saveString(mActivity,"out_editorcodes",result);
|
|
|
-// if (mFocusId == R.id.storage_recharge_collect_ets) {
|
|
|
-// storage_recharge_collect_ets.setText(result);
|
|
|
-// storage_recharge_collect_ets.setSelection(result.length());
|
|
|
-// if (add_checkbos.isChecked()==true){
|
|
|
-// baoucn(result,"");
|
|
|
-// storage_recharge_collect_ets.selectAll();
|
|
|
-// storage_recharge_collect_ets.requestFocus();
|
|
|
-// imm.showSoftInput(storage_recharge_collect_ets, InputMethodManager.RESULT_HIDDEN);
|
|
|
-// }else if (ck_special_outbound.isChecked()==true){
|
|
|
-// getDatalistCodes(result);
|
|
|
-// }else {
|
|
|
-// getDatalistCodes(result);
|
|
|
-// }
|
|
|
-//
|
|
|
-//
|
|
|
-// }
|
|
|
-// }
|
|
|
-// }
|
|
|
-//
|
|
|
-//
|
|
|
-//
|
|
|
-// if (requestCode == Constants.FLAG.GET_COMMON_ITEM && resultCode == 1847) {
|
|
|
-// String result = data.getStringExtra("ITEM_DATA");
|
|
|
-// if(result.contains("-")){
|
|
|
-//// edit_et.setText(result.split("-")[0]);
|
|
|
-//// edit_et.setSelection(result.split("-")[0].length());
|
|
|
-// }
|
|
|
-// }
|
|
|
-//
|
|
|
-// if (requestCode == Constants.FLAG.GET_COMMON_ITEMS && resultCode == 1847) {
|
|
|
-// String result = data.getStringExtra("ITEM_DATA");
|
|
|
-// if(result.contains("-")){
|
|
|
-// ed_picking_code.setText(result.split("-")[1]);
|
|
|
-// ed_picking_name.setText(result.split("-")[2]);
|
|
|
-//// .split("\\(")[0]
|
|
|
-// ed_picking_code.setSelection(result.split("-")[1].length());
|
|
|
-// ed_picking_name.setSelection(result.split("-")[2].length());
|
|
|
-// }
|
|
|
-// }
|
|
|
-// }
|
|
|
-// @Override
|
|
|
-// public void onDestroyView() {
|
|
|
-// super.onDestroyView();
|
|
|
-// ((FunctionActivity) getActivity()).setMoreBtnVisible(false);
|
|
|
-// ((FunctionActivity) getActivity()).setListIconIvVisible(false);
|
|
|
-// CommonUtil.closeKeybord(storage_recharge_collect_ets, mActivity);
|
|
|
-// ((TextView) (getActivity().findViewById(R.id.tv_actionbar_withback))).setText(getString(R.string.title_outbound_rechargeadd));
|
|
|
-// SharedPreUtil.removeString(mActivity,Constants.STORAGEERECHADD);
|
|
|
-// }
|
|
|
-// @Override
|
|
|
-// public void onHiddenChanged(boolean hidden) {
|
|
|
-// super.onHiddenChanged(hidden);
|
|
|
-// if (hidden) {
|
|
|
-// ((FunctionActivity) getActivity()).setMoreBtnVisible(false);
|
|
|
-// ((FunctionActivity) getActivity()).setListIconIvVisible(false);
|
|
|
-// } else {
|
|
|
-// ((FunctionActivity) getActivity()).setMoreBtnVisible(true);
|
|
|
-// ((FunctionActivity) getActivity()).setListIconIvVisible(true);
|
|
|
-// FunctionActivity.setTitle(getString(R.string.title_outbound_rechargeadd));
|
|
|
-//
|
|
|
-// }
|
|
|
-// }
|
|
|
-// @Override
|
|
|
-// public void onDestroy() {
|
|
|
-// super.onDestroy();
|
|
|
-// EventBus.getDefault().unregister(this);
|
|
|
-// SharedPreUtil.removeString(mActivity,Constants.STORAGEERECHADD);
|
|
|
-// SharedPreUtil.removeString(mActivity,"positionid");
|
|
|
-// SharedPreUtil.removeString(mActivity,"pd_pdnoid");
|
|
|
-// SharedPreUtil.removeString(mActivity,"pd_wmpdno");
|
|
|
-// ((FunctionActivity) getActivity()).setListIconIvVisible(true);
|
|
|
-// }
|
|
|
-//}
|