优化质量校验提示语/岗位增加属性悬浮显示
This commit is contained in:
parent
c7cb5a41cb
commit
d2862d0170
Binary file not shown.
@ -9002,7 +9002,12 @@ public class CoeProcessLevelWeb extends ActionWeb {
|
|||||||
Boolean flag2=true;
|
Boolean flag2=true;
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
StringBuffer sb1=new StringBuffer();
|
StringBuffer sb1=new StringBuffer();
|
||||||
|
StringBuffer sb2=new StringBuffer();
|
||||||
|
StringBuffer sb3=new StringBuffer();
|
||||||
sb.append("<span>质量校验<span><br/>");
|
sb.append("<span>质量校验<span><br/>");
|
||||||
|
sb1.append("<span>文件属性:<span>");
|
||||||
|
sb2.append("<span>节点名称:<span>");
|
||||||
|
|
||||||
for (PALRepositoryPropertyModel property : propertys) {
|
for (PALRepositoryPropertyModel property : propertys) {
|
||||||
String id = property.getPropertyId();
|
String id = property.getPropertyId();
|
||||||
if (!attributeModelMap.containsKey(id) || !attributeModelMap.get(id).getUse()) {
|
if (!attributeModelMap.containsKey(id) || !attributeModelMap.get(id).getUse()) {
|
||||||
@ -9019,17 +9024,20 @@ public class CoeProcessLevelWeb extends ActionWeb {
|
|||||||
if (list == null || list.isEmpty()) {
|
if (list == null || list.isEmpty()) {
|
||||||
flag1 = false;
|
flag1 = false;
|
||||||
}
|
}
|
||||||
} else {
|
} /*else {
|
||||||
flag1 = UtilString.isNotEmpty(property.getPropertyValue());
|
flag1 = UtilString.isNotEmpty(property.getPropertyValue());
|
||||||
}
|
}*/
|
||||||
if (!flag1) {// 校验不通过
|
if (!flag1) {// 校验不通过
|
||||||
sb.append("''"+attributeModel.getTitle()+"''").append(",");
|
sb1.append("''"+attributeModel.getTitle()+"''").append(",");
|
||||||
flag1 = false;
|
flag1 = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/***************************************************数据属性校验*************************************************/
|
/***************************************************数据属性校验*************************************************/
|
||||||
|
if(flag1==false){
|
||||||
|
sb.append(sb1.substring(0, sb1.length()-1));
|
||||||
|
sb.append("未填写,请检查!").append("</br>");
|
||||||
|
}
|
||||||
|
|
||||||
Map<String, PALMethodAttributeModel> methodAttributeModelMap = new HashMap<>();
|
Map<String, PALMethodAttributeModel> methodAttributeModelMap = new HashMap<>();
|
||||||
// 校验形状
|
// 校验形状
|
||||||
@ -9065,23 +9073,23 @@ public class CoeProcessLevelWeb extends ActionWeb {
|
|||||||
if (list == null || list.isEmpty()) {
|
if (list == null || list.isEmpty()) {
|
||||||
flag2 = false;
|
flag2 = false;
|
||||||
}
|
}
|
||||||
} else {
|
} /*else {
|
||||||
flag2 = UtilString.isNotEmpty(value);
|
flag2 = UtilString.isNotEmpty(value);
|
||||||
}
|
}*/
|
||||||
if (!flag2) {
|
if (!flag2) {
|
||||||
sb.append("''"+attrModel.getNewTitle()+"''").append(",");
|
sb2.append("【"+o.get("text")+"】"+"''"+attrModel.getNewTitle()+"''").append(",");
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(flag1==false || flag2==false){
|
if( flag2==false){
|
||||||
sb1.append(sb.substring(0, sb.length()-1));
|
sb.append(sb2.substring(0, sb2.length()-1));
|
||||||
sb1.append("未填写,请检查!");
|
sb.append("未填写,请检查!");
|
||||||
}
|
}
|
||||||
|
|
||||||
int index=sb1.indexOf("未填写");
|
int index=sb.indexOf("未填写");
|
||||||
if(index==-1 ){
|
if(index==-1 ){
|
||||||
ro.put("result","ok");
|
ro.put("result","ok");
|
||||||
}else{
|
}else{
|
||||||
@ -9089,7 +9097,7 @@ public class CoeProcessLevelWeb extends ActionWeb {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
ro.put("sb",sb1);
|
ro.put("sb",sb);
|
||||||
return ro.toString();
|
return ro.toString();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -433,7 +433,7 @@ function writeRelationListHtml() {
|
|||||||
relationShapeText = relationShapeText.replace("<", "<").replace(">", ">").replace("\"", """);
|
relationShapeText = relationShapeText.replace("<", "<").replace(">", ">").replace("\"", """);
|
||||||
html += "<li>"
|
html += "<li>"
|
||||||
+ " <div class=\"relation_div\" index=\"" + i + "\">"
|
+ " <div class=\"relation_div\" index=\"" + i + "\">"
|
||||||
+ " <div class='text-overflow' fileId=\"" + relationShapeList[i].relationFileId + "\" shapeId=\"" + relationShapeList[i].relationShapeId + "\" onclick=\"window.open('"+url+"')\">" + relationShapeText + "</div>"
|
+ " <div class='text-overflow' title=\""+relationShapeText+"\" fileId=\"" + relationShapeList[i].relationFileId + "\" shapeId=\"" + relationShapeList[i].relationShapeId + "\" onclick=\"window.open('"+url+"')\">" + relationShapeText + "</div>"
|
||||||
+ " <img src=\"../apps/com.actionsoft.apps.coe.pal/lib/designer/extend/images/close_attr.jpg\" style=\"cursor: pointer; display: none;\"/>"
|
+ " <img src=\"../apps/com.actionsoft.apps.coe.pal/lib/designer/extend/images/close_attr.jpg\" style=\"cursor: pointer; display: none;\"/>"
|
||||||
+ " </div>"
|
+ " </div>"
|
||||||
+ "</li>";
|
+ "</li>";
|
||||||
|
|||||||
@ -219,7 +219,6 @@ $(function() {
|
|||||||
*/
|
*/
|
||||||
$("#QualityInspection").off("click").on("click", function () {
|
$("#QualityInspection").off("click").on("click", function () {
|
||||||
$.simpleAlert("正在校验", "loading");
|
$.simpleAlert("正在校验", "loading");
|
||||||
debugger;
|
|
||||||
var obj=Model.define;
|
var obj=Model.define;
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type : "POST",
|
type : "POST",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user