|
|
@@ -51,7 +51,7 @@ import android.widget.PopupWindow;
|
|
|
import android.widget.TextView;
|
|
|
import android.widget.TextView.OnEditorActionListener;
|
|
|
import android.widget.Toast;
|
|
|
-
|
|
|
+//点数装板
|
|
|
public class PieceActivity extends Activity {
|
|
|
private EditText met; // 工号
|
|
|
private EditText barcode; // 条码
|
|
|
@@ -1862,6 +1862,7 @@ public class PieceActivity extends Activity {
|
|
|
out_goodsID = object1.getString("out_goodsID");
|
|
|
piece.setGoodsId(out_goodsID);
|
|
|
out_goodsCode = object1.getString("out_goodsCode");
|
|
|
+ String outGoodsCodeForCheck=object1.optString("out_goodsCode");
|
|
|
piece.setGoodsCode(out_goodsCode);
|
|
|
out_goodsName = object1.getString("out_goodsName");
|
|
|
piece.setGoodsName(out_goodsName);
|
|
|
@@ -1954,7 +1955,7 @@ public class PieceActivity extends Activity {
|
|
|
String orginalGoodsModelForCheck=p2.getGoodsModel();
|
|
|
String originalGoodsCode=p2.getGoodsCode();
|
|
|
if(spm_011.equals("1")) {
|
|
|
- if(!logoId.equals(originalLogoId)) {
|
|
|
+ if(!logoId.equals(originalLogoId)) {
|
|
|
Bundle bundle=new Bundle();
|
|
|
bundle.putInt("Status",0);
|
|
|
bundle.putString("Message","此产品【"+outbarcode+"】的商标【"+logoName+"】与此批次商标【"+originalLogoName+"】不同,不能进行该操作。");
|
|
|
@@ -1968,6 +1969,12 @@ public class PieceActivity extends Activity {
|
|
|
|
|
|
if(spm_012.equals("1")) {
|
|
|
if(!goodsModelForCheck.equals(orginalGoodsModelForCheck)) {
|
|
|
+ //注掉为点数装板 限制同型号装板
|
|
|
+ //由于H01412M与H01412M-G物料编码一致
|
|
|
+ //这两个产品可以装入一板内
|
|
|
+ //要是不让装入一板将上面if注释
|
|
|
+ //而这个注释打开
|
|
|
+ // if(!outGoodsCodeForCheck.equals(originalGoodsCode)) {
|
|
|
Bundle bundle=new Bundle();
|
|
|
bundle.putInt("Status",0);
|
|
|
bundle.putString("Message","此产品【"+outbarcode+"】的型号【"+out_goodsCode+"】与此批次型号【"+originalGoodsCode+"】不同,不能进行该操作。");
|