|
@@ -24,6 +24,8 @@ import android.widget.ImageView;
|
|
|
import android.widget.LinearLayout;
|
|
|
import android.widget.ListView;
|
|
|
import android.widget.PopupWindow;
|
|
|
+import android.widget.RadioButton;
|
|
|
+import android.widget.RadioGroup;
|
|
|
import android.widget.TextView;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
@@ -86,6 +88,9 @@ public class PreProcessingReportFragment extends BaseFragment implements View.On
|
|
|
private String macode;
|
|
|
private String mouldcode;
|
|
|
private String stringlotno;
|
|
|
+ private RadioGroup rg_hui;
|
|
|
+ private RadioButton rb_ok;
|
|
|
+ private RadioButton rb_no;
|
|
|
|
|
|
@Override
|
|
|
protected int getLayout() {
|
|
@@ -103,6 +108,9 @@ public class PreProcessingReportFragment extends BaseFragment implements View.On
|
|
|
btn_oneprint = root.findViewById(R.id.btn_oneprint);
|
|
|
ol_remark_et = root.findViewById(R.id.ol_remark_et);
|
|
|
iv_search = root.findViewById(R.id.iv_search);
|
|
|
+ rg_hui = root.findViewById(R.id.rg_hui);
|
|
|
+ rb_ok = root.findViewById(R.id.rb_ok);
|
|
|
+ rb_no = root.findViewById(R.id.rb_no);
|
|
|
jlt_storage_in_barcode_save_btn = root.findViewById(R.id.jlt_storage_in_barcode_save_btn);
|
|
|
}
|
|
|
|
|
@@ -120,8 +128,8 @@ public class PreProcessingReportFragment extends BaseFragment implements View.On
|
|
|
macode = arguments.getString(Constants.FLAG.MA_CODE);
|
|
|
mouldcode = arguments.getString(Constants.FLAG.MOULDCODE);
|
|
|
|
|
|
-
|
|
|
- getPrintTemplate();
|
|
|
+ rb_ok.setChecked(true);
|
|
|
+ getPrintTemplate("Lotno!PDAPrint");
|
|
|
btn_oneprint.setOnClickListener(new View.OnClickListener() {
|
|
|
@Override
|
|
|
public void onClick(View v) {
|
|
@@ -169,6 +177,21 @@ public class PreProcessingReportFragment extends BaseFragment implements View.On
|
|
|
});
|
|
|
ma_code = SharedPreUtil.getString(mActivity, "MA_CODE", null);
|
|
|
sc_code = SharedPreUtil.getString(mActivity, "SC_CODE", null);
|
|
|
+ rg_hui.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
|
|
|
+ @SuppressLint("NonConstantResourceId")
|
|
|
+ @Override
|
|
|
+ public void onCheckedChanged(RadioGroup radioGroup, int checkid) {
|
|
|
+ switch (checkid){
|
|
|
+ case R.id.rb_ok:
|
|
|
+ getPrintTemplate("Lotno!PDAPrint");
|
|
|
+ break;
|
|
|
+ case R.id.rb_no:
|
|
|
+ getPrintTemplate("PreBarcode");
|
|
|
+ break;
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
// tv_ma_code.setText(ma_code);
|
|
|
}
|
|
|
|
|
@@ -380,14 +403,14 @@ public class PreProcessingReportFragment extends BaseFragment implements View.On
|
|
|
CommonUtil.setBackgroundAlpha(mActivity, 1f);
|
|
|
}
|
|
|
}
|
|
|
- private void getPrintTemplate() {
|
|
|
+ private void getPrintTemplate(String caller) {
|
|
|
VolleyRequest.getInstance().stringRequest(mStringRequest,
|
|
|
new HttpParams.Builder()
|
|
|
.url(GloableParams.ADDRESS_BARINFO_PRINTMODEL)
|
|
|
.method(Request.Method.GET)
|
|
|
.flag(0)
|
|
|
.tag("barinfoPrint")
|
|
|
- .addParam("caller", "PreBarcode")//Barcode!PDAPrint仓库
|
|
|
+ .addParam("caller", caller)//Barcode!PDAPrint仓库
|
|
|
.build(), new HttpCallback() {
|
|
|
@Override
|
|
|
public void onSuccess(int flag, Object o) throws Exception {
|