xinyb
2024-05-13 e44542c5fdca3f427e2489449cad975e0eaf8a60
调整个别控件设置变量重复问题
1个文件已修改
10 ■■■■ 已修改文件
src/com/yc/service/panel/v2/TypeControl.java 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/com/yc/service/panel/v2/TypeControl.java
@@ -809,7 +809,7 @@
            returnStr += "<span id=\"" + id + "Span\"  name=\"" + id + "Span\" style=\"border:0px solid #a5a6ad; height:24px;\">"
                    + "<input id=\"" + id + "\"  name=\"" + id + "\" value=\"" + getJspValue(id) + "\" type=\"hidden\" "
                    + "onPropertyChange=\"cheeckSValueChan('" + id + "')\" /><ul class=\"checkcss\"><% ";
            returnStr += "\r\ntry{\r\n String outStr=\"\";\r\n int i_sql_checks=0;";
            returnStr += "\r\ntry{\r\n String outStr_"+id+"=\"\";\r\n int i_sql_checks=0;";
            returnStr += "\r\n  sql = \""
                    + DBHelper.replaceBr(panelBean.initialValue.getValLinShi(DBHelper.getValue(map, "SqlScript"), true)) + "\";";
            returnStr += "\r\n  SRS =  build.getSqlRowSet(DBHelper.getValRepShi(sql,session,docMap, false));";
@@ -922,7 +922,7 @@
        } else {
            returnStr += "<span id=\"" + id
                    + "Span\" style=\"border:0px solid #a5a6ad; height:24px;\"><%";
            returnStr += "\r\ntry{\r\n  String outStr=\"\";\r\nint i_sql_radio=0;";
            returnStr += "\r\ntry{\r\n  String outStr_"+id+"=\"\";\r\nint i_sql_radio=0;";
            returnStr += "\r\n  sql = \""
                    + DBHelper.replaceBr(panelBean.initialValue.getValLinShi(DBHelper.getValue(map, "SqlScript"), true)) + "\";";
            returnStr += "\r\n  SRS = build.getSqlRowSet(DBHelper.getValRepShi(sql,session,docMap, false));";
@@ -931,9 +931,9 @@
                    + "\").equals(SRS.getObject(2))||(\""
                    + panelBean.initialValue.getValLinShi(DBHelper.getValue(map, "initValue"), false)
                    + "\").equals(SRS.getObject(1))){";
            returnStr += "   outStr += \" checked='checked' \";";
            returnStr += "}else{outStr += \"\";}%>";
            returnStr += "<input <%=outStr%> name=\"" + id + "Radio\" type=\"radio\" id=\"" + id
            returnStr += "   outStr_"+id+" += \" checked='checked' \";";
            returnStr += "}else{outStr_"+id+" += \"\";}%>";
            returnStr += "<input <%=outStr_"+id+"%> name=\"" + id + "Radio\" type=\"radio\" id=\"" + id
                    + "_<%=i_sql_radio%>\" value=\"<%=SRS.getString(1)%>\" onclick=\"getRad('" + id
                    + "')\"><%=SRS.getString(2)%>&nbsp;&nbsp;";
            returnStr += " <%i_sql_radio++;}}finally {}%>";