校验挂车车架号

This commit is contained in:
tangfutang 2020-09-25 15:09:09 +08:00
parent f08e32c9ad
commit 77f7fc0c7f
2 changed files with 5 additions and 1 deletions

View File

@ -200,7 +200,7 @@
}
var carAttribute = getItemValue(0,0,"car_attribute");
if("head" != carAttribute){
setItemRequired(0,"FRAME_NUMBER",false);
//setItemRequired(0,"FRAME_NUMBER",false);
setItemRequired(0,"CAR_COLOUR",false);
setItemRequired(0,"ENGINE_NUMBER",false);
}

View File

@ -284,6 +284,10 @@ public class FileTemplateUtil {
if(message.length()>0){
return "请先填写:"+message.substring(0,message.length() - 1)+"!";
}
BizObject carTail = lrct.createQuery("FLOWUNID=:flowunid and car_attribute='tail' and ( FRAME_NUMBER is null or FRAME_NUMBER='' )").setParameter("flowunid", flowunid).getSingleResult(false);
if(carTail!=null){
return "请先填写:租赁物对应的车架号!";
}
String docName="";
String[] bfids = templateIds.split("&");
BizObjectManager btManager = JBOFactory.getBizObjectManager(BF_TEMPLATE.CLASS_NAME);