|
|
@@ -534,12 +534,12 @@ public class workorder extends PaoCust {
|
|
|
if (!getString("fstatus").equals("进行中") && !getString("fstatus").equals("质保卡审批"))
|
|
|
throw new P2AppException("", "该工单不在进行中状态");
|
|
|
PaoSetRemote ordernodeset = getPaoSet("ordernode");
|
|
|
- ordernodeset.setWhere("ischilden=0");
|
|
|
- ordernodeset.reset();
|
|
|
- int allcount = ordernodeset.count();
|
|
|
- ordernodeset.setWhere("ischilden=0 and isconfirm=1");
|
|
|
- ordernodeset.reset();
|
|
|
- int count = ordernodeset.count();
|
|
|
+// ordernodeset.setWhere("ischilden=0");
|
|
|
+// ordernodeset.reset();
|
|
|
+// int allcount = ordernodeset.count();
|
|
|
+// ordernodeset.setWhere("ischilden=0 and isconfirm=1");
|
|
|
+// ordernodeset.reset();
|
|
|
+// int count = ordernodeset.count();
|
|
|
// if (allcount != count && !getString("ftype").equals("维修")) {
|
|
|
// throw new P2AppException("", "还有工序没有确认");
|
|
|
// }
|
|
|
@@ -549,6 +549,11 @@ public class workorder extends PaoCust {
|
|
|
// if(!workorder_errormsg.isEmpty()){
|
|
|
// throw new P2AppException("","有异常信息未处理");
|
|
|
// }
|
|
|
+ ordernodeset.setWhere("fisrequirednode =1 and isconfirm=0");
|
|
|
+ ordernodeset.reset();
|
|
|
+ if(ordernodeset.count()>0) {
|
|
|
+ throw new P2AppException("", "还有必填的服务工序没有确认");
|
|
|
+ }
|
|
|
DBConnect dbConnect = new DBConnect();
|
|
|
PaoSetRemote workordertemplate = getPaoSet("WORKORDERTEMPLATE");
|
|
|
/** 判断预约单是否可以完成 **/
|