|
|
@@ -146,17 +146,17 @@ public class add_qupenren extends LinearLayout { |
|
|
|
quzhizuo.setOnClickListener(new OnClickListener() { |
|
|
|
@Override |
|
|
|
public void onClick(View view) { |
|
|
|
// if (!ConfigName.getInstance().PlcIsConnect) { |
|
|
|
// ToastUtils.warning("PLC未准备就绪!!!"); |
|
|
|
// return; |
|
|
|
// } |
|
|
|
// |
|
|
|
// Object chushiover = ExecuteTheRecipe.getListingValue("初始化完成"); |
|
|
|
// //Object jiting = ExecuteTheRecipe.getListingValue("设备急停"); |
|
|
|
// if (chushiover == null || !(boolean) chushiover) { |
|
|
|
// ToastUtils.warning("设备未初始化,请先手动初始化设备!!!"); |
|
|
|
// return; |
|
|
|
// } |
|
|
|
if (!ConfigName.getInstance().PlcIsConnect) { |
|
|
|
ToastUtils.warning("PLC未准备就绪!!!"); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
Object chushiover = ExecuteTheRecipe.getListingValue("初始化完成"); |
|
|
|
//Object jiting = ExecuteTheRecipe.getListingValue("设备急停"); |
|
|
|
if (chushiover == null || !(boolean) chushiover) { |
|
|
|
ToastUtils.warning("设备未初始化,请先手动初始化设备!!!"); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (mListener != null) { |
|
|
|
mListener.clickListenerNew(view, 5, mode); |
|
|
|
} |
|
|
|