| | |
| | | var panelWidth = document.documentElement.clientWidth; |
| | | var treeWidth = $('#wrappers').outerWidth(true);// 树形的宽度 |
| | | var treeHeight = $('#tplt-panels').outerHeight(true);// 树形的高度 |
| | | $('#' + gridId[0]).css('height', (treeHeight - 30) + 'px');// 减去30是因为margin和padding的值 |
| | | $('#' + gridId[0]).css('height', (treeHeight - 30 - 20) + 'px');// 减去30是因为margin和padding的值 |
| | | $('#' + gridId[0]).css('width', (panelWidth - treeWidth - 30) + 'px'); |
| | | return; |
| | | } |
| | |
| | | if (topPanelHeight == null) {// 没有标题的高度 |
| | | topPanelHeight = $('#tplt-top').outerHeight(true)+10; |
| | | } |
| | | panelHeight = panelHeight - 20;//文字颜色说明占了20高 |
| | | if (panelType == 1) { |
| | | $('#' + gridId[0]).css('height', (panelHeight - topPanelHeight - 50) + 'px');// 减去50是因为margin和padding的值 |
| | | return; |
| | |
| | | }); |
| | | } |
| | | |
| | | //加载文字颜色说明 xin 2022-5-16 14:50:56 |
| | | // function getColorDescription(){ |
| | | // let colorEvnt = $('.colorDescription'); |
| | | // if (colorEvnt == null) { |
| | | // return; |
| | | // } |
| | | // let formId = panelFormId; |
| | | // $.ajax({ |
| | | // url: '/panel/colorDescription.do', |
| | | // type: "get", |
| | | // data: {'formId': formId}, |
| | | // success: function (res) { |
| | | // if (res != null && res.code === 0) { |
| | | // let data = res.data; |
| | | // if (data != null && data.length > 0) { |
| | | // let text = '文字颜色说明'; |
| | | // for (let i = 0; i < data.length; i++) { |
| | | // text += '<div><span title="' + data[i].itemMemo + '" class="spanColor" style="background-color: ' + data[i].hexColor + '"></span>' + |
| | | // '<span style="color: ' + data[i].hexColor + '">' + data[i].colorName + '</span></div>'; |
| | | // } |
| | | // colorEvnt.html(text); |
| | | // } |
| | | // } |
| | | // } |
| | | // }); |
| | | // } |
| | | |
| | | $(function(){ |
| | | if(panMain[panIndex]!=null) { |
| | | var panelValue = panMain[panIndex].panelAuditValue; |
| | |
| | | $(that).append('<li><img src="' + path + '" alt="" style="width: 100%;height: 150px"/></li>'); |
| | | } |
| | | }) |
| | | //加载文字颜色说明 |
| | | // getColorDescription(); |
| | | }) |
| | |
| | | <div id="tplt-panel" style="margin-left: 10px;"> |
| | | <%@ include file="panel.jsp" %> |
| | | </div> |
| | | <div class="colorDescription"> |
| | | <%//文字颜色说明显示位置 xin 2022-5-16 14:45:39%> |
| | | [?ColorDescription] |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div id="tplt-panel" style="margin-left: 10px;"> |
| | | <%@ include file="panel.jsp" %> |
| | | </div> |
| | | <div class="colorDescription"> |
| | | <%//文字颜色说明显示位置 xin 2022-5-16 14:45:39%> |
| | | [?ColorDescription] |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div id="tplt-panel"> |
| | | <%@ include file="panel.jsp" %> |
| | | </div> |
| | | <div class="colorDescription"> |
| | | <%//文字颜色说明显示位置 xin 2022-5-16 14:45:39%> |
| | | [?ColorDescription] |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div id="tplt-panel" style="margin-left: 10px;margin-top:5px;"> |
| | | <%@ include file="panel.jsp" %> |
| | | </div> |
| | | <div class="colorDescription"> |
| | | <%//文字颜色说明显示位置 xin 2022-5-16 14:45:39%> |
| | | [?ColorDescription] |
| | | </div> |
| | | </div> |
| | | <% |
| | | if ("1".equals(isShowOnlineMsg)) { |
| | |
| | | <div id="tplt-panel" style="margin-left: 10px;"> |
| | | <%@ include file="panel.jsp" %> |
| | | </div> |
| | | <div class="colorDescription"> |
| | | <%//文字颜色说明显示位置 xin 2022-5-16 14:45:39%> |
| | | [?ColorDescription] |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div id="tplt-panel" style="margin-left: 10px;"> |
| | | <%@ include file="panel.jsp" %> |
| | | </div> |
| | | <div class="colorDescription"> |
| | | <%//文字颜色说明显示位置 xin 2022-5-16 14:45:39%> |
| | | [?ColorDescription] |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div id="tplt-panel" style="margin-left: 10px;"> |
| | | <%@ include file="panel.jsp" %> |
| | | </div> |
| | | <div class="colorDescription"> |
| | | <%//文字颜色说明显示位置 xin 2022-5-16 14:45:39%> |
| | | [?ColorDescription] |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div id="tplt-panel"> |
| | | <%@ include file="panel.jsp" %> |
| | | </div> |
| | | <div class="colorDescription"> |
| | | <%//文字颜色说明显示位置 xin 2022-5-16 14:45:39%> |
| | | [?ColorDescription] |
| | | </div> |
| | | </div> |
| | | <div region="south" split="false" |
| | | style="height:33px;background:#efefef;border-right:0px;border-bottom:0px;border-left:0px;"> |
| | |
| | | <div id="tplt-panel" style="margin-top: 5px;"> |
| | | <%@ include file="panelR.jsp" %> |
| | | </div> |
| | | <div class="colorDescription"> |
| | | <%//文字颜色说明显示位置 xin 2022-5-16 14:45:39%> |
| | | [?ColorDescription] |
| | | </div> |
| | | </div> |
| | | <div region="south" split="false" |
| | | style="height:30px;background:#efefef;border-right:0px;border-bottom:0px;border-left:0px;"> |
| | |
| | | <div id="tplt-panel" style="margin-left: 10px;"> |
| | | <%@ include file="panel.jsp" %> |
| | | </div> |
| | | <div class="colorDescription"> |
| | | <%//文字颜色说明显示位置 xin 2022-5-16 14:45:39%> |
| | | [?ColorDescription] |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div region="center" border="false"> |
| | | <%@ include file="panel238.jsp" %> |
| | | </div> |
| | | <div class="colorDescription"> |
| | | <%//文字颜色说明显示位置 xin 2022-5-16 14:45:39%> |
| | | [?ColorDescription] |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div region="south" split="false" |
| | |
| | | <div id="tplt-panel"> |
| | | <%@ include file="@gridJsp@" %> |
| | | </div> |
| | | <div class="colorDescription"> |
| | | <%//文字颜色说明显示位置 xin 2022-5-16 14:45:39%> |
| | | [?ColorDescription] |
| | | </div> |
| | | </div> |
| | | <div region="south" split="false" |
| | | style="height:30px;background:#efefef;border-right:0px;border-bottom:0px;border-left:0px;"> |
| | |
| | | </div> |
| | | <div region="center" border="true" id="tplt-panels" style="border-right:0px;border-bottom:0px;"> |
| | | <%@ include file="@gridJsp@" %> |
| | | <div class="colorDescription"> |
| | | <%//文字颜色说明显示位置 xin 2022-5-16 14:45:39%> |
| | | [?ColorDescription] |
| | | </div> |
| | | </div> |
| | | <div region="south" split="false" |
| | | style="height:30px;background:#efefef;border-right:0px;border-bottom:0px;border-left:0px;"> |
| | |
| | | <div region="center" style="border:none;"> |
| | | <%@ include file="@gridJsp@" %> |
| | | </div> |
| | | <div class="colorDescription"> |
| | | <%//文字颜色说明显示位置 xin 2022-5-16 14:45:39%> |
| | | [?ColorDescription] |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div region="south" split="false" |
| | |
| | | </div> |
| | | <div region="center"> |
| | | <%@ include file="@gridJsp@" %> |
| | | <div class="colorDescription"> |
| | | <%//文字颜色说明显示位置 xin 2022-5-16 14:45:39%> |
| | | [?ColorDescription] |
| | | </div> |
| | | <script type="text/javascript"> |
| | | create(""); |
| | | </script> |
| | |
| | | <div region="center" border="false"> |
| | | <%@ include file="tree.jsp" %> |
| | | </div> |
| | | <div class="colorDescription"> |
| | | <%//文字颜色说明显示位置 xin 2022-5-16 14:45:39%> |
| | | [?ColorDescription] |
| | | </div> |
| | | <div region="south" border="false" style="height:200px;border-top: 1px solid #99BBE8;"> |
| | | <%@ include file="@gridJsp@" %> |
| | | <script type="text/javascript"> |
| | |
| | | <div id="tplt-panel" style="margin-left: 10px;margin-top:7px;"> |
| | | <%@ include file="panel.jsp" %> |
| | | </div> |
| | | <div class="colorDescription"> |
| | | <%//文字颜色说明显示位置 xin 2022-5-16 14:45:39%> |
| | | [?ColorDescription] |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div id="tplt-right"> |
| | | <%@ include file="panel.jsp" %> |
| | | </div> |
| | | <div class="colorDescription"> |
| | | <%//文字颜色说明显示位置 xin 2022-5-16 14:45:39%> |
| | | [?ColorDescription] |
| | | </div> |
| | | </div> |
| | | <div region="south" split="false" |
| | | style="height:30px;background:#efefef;border-right:0px;border-bottom:0px;border-left:0px;"> |
| | |
| | | <div id="tplt-panel"> |
| | | @panFou@ |
| | | </div> |
| | | <div class="colorDescription"> |
| | | <%//文字颜色说明显示位置 xin 2022-5-16 14:45:39%> |
| | | [?ColorDescription] |
| | | </div> |
| | | </div> |
| | | <%if ("1".equals(isShowOnlineMsg)) {//isShowOnlineMsg定义在jsCssHead %> |
| | | <% |
| | |
| | | <div id="tplt-panel"> |
| | | <%@ include file="panel.jsp" %> |
| | | </div> |
| | | <div class="colorDescription"> |
| | | <%//文字颜色说明显示位置 xin 2022-5-16 14:45:39%> |
| | | [?ColorDescription] |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div id="tplt-panel" style="float: left;margin-top: 5px;width: 920px;"> |
| | | @panFou@ |
| | | </div> |
| | | <div class="colorDescription"> |
| | | <%//文字颜色说明显示位置 xin 2022-5-16 14:45:39%> |
| | | [?ColorDescription] |
| | | </div> |
| | | </div> |
| | | <%if ("1".equals(isShowOnlineMsg)) {//isShowOnlineMsg定义在jsCssHead %> |
| | | <iframe style="width: 850px;height: 220px;" frameborder="0" scrolling="no" |
| | |
| | | <div id="tplt-panel" style="margin-left: 10px;margin-top: 5px;"> |
| | | <%@ include file="panel.jsp" %> |
| | | </div> |
| | | <div class="colorDescription"> |
| | | <%//文字颜色说明显示位置 xin 2022-5-16 14:45:39%> |
| | | [?ColorDescription] |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div id="tplt-panel" style="margin-left: 10px;"> |
| | | <%@ include file="panel.jsp" %> |
| | | </div> |
| | | <div class="colorDescription"> |
| | | <%//文字颜色说明显示位置 xin 2022-5-16 14:45:39%> |
| | | [?ColorDescription] |
| | | </div> |
| | | </div> |
| | | <% |
| | | if ("1".equals(isShowOnlineMsg)) {//isShowOnlineMsg定义在jsCssHead |
| | |
| | | <div id="tplt-panel" style="margin-left: 10px;"> |
| | | <%@ include file="panel.jsp" %> |
| | | </div> |
| | | <div class="colorDescription"> |
| | | <%//文字颜色说明显示位置 xin 2022-5-16 14:45:39%> |
| | | [?ColorDescription] |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div id="tplt-panel"> |
| | | @panFou@ |
| | | </div> |
| | | <div class="colorDescription"> |
| | | <%//文字颜色说明显示位置 xin 2022-5-16 14:45:39%> |
| | | [?ColorDescription] |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div id="tplt-panel"> |
| | | <%@ include file="panel.jsp" %> |
| | | </div> |
| | | <div class="colorDescription"> |
| | | <%//文字颜色说明显示位置 xin 2022-5-16 14:45:39%> |
| | | [?ColorDescription] |
| | | </div> |
| | | <%if ("1".equals(isShowOnlineMsg)) {//isShowOnlineMsg定义在jsCssHead %> |
| | | <% |
| | | request.setAttribute("formId", formId + ""); |
| | |
| | | <div id="tplt-panel" style="margin-left: 10px;"> |
| | | <%@ include file="panel.jsp" %> |
| | | </div> |
| | | <div class="colorDescription"> |
| | | <%//文字颜色说明显示位置 xin 2022-5-16 14:45:39%> |
| | | [?ColorDescription] |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | } |
| | | input[type="color" i]{ |
| | | padding: 1px 2px; |
| | | } |
| | | |
| | | /*------------文字颜色说明----------------*/ |
| | | .colorDescription{ |
| | | padding: 0px 40px; |
| | | font-size: 13px; |
| | | display: flex; |
| | | } |
| | | .colorDescription div{ |
| | | width: 150px; |
| | | height: 20px; |
| | | display: flex; |
| | | margin-left: 3px; |
| | | } |
| | | .colorDescription .spanColor{ |
| | | margin: 0px 3px 0px 10px; |
| | | width: 80px; |
| | | height: 100%; |
| | | display: inline-block; |
| | | border-radius: 5px; |
| | | } |
| | |
| | | import java.util.Map; |
| | | import java.util.regex.Matcher; |
| | | import java.util.regex.Pattern; |
| | | |
| | | import com.yc.api.bean.T9685Entity; |
| | | import com.yc.api.service.ApiServiceIfc; |
| | | import org.apache.commons.io.FileUtils; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.context.annotation.Scope; |
| | | import org.springframework.jdbc.support.rowset.SqlRowSet; |
| | |
| | | protected TreeGridIfc treeGrid; |
| | | @Autowired |
| | | protected GformIfc gformIfc; |
| | | @Autowired |
| | | private ApiServiceIfc apiServiceIfc; |
| | | |
| | | FileAndFolderOper FAFO = new FileAndFolderOper(); |
| | | protected String formID = ""; |
| | |
| | | // else { |
| | | data = data.replace("@_add_js_css_@", js_css); |
| | | // } |
| | | |
| | | |
| | | //-------------文字颜色说明---------xin 2022-5-18 16:09:54-----------// |
| | | StringBuilder colorText =new StringBuilder();//文字颜色说明 |
| | | if(StringUtils.isNotBlank(formID)) { |
| | | List<T9685Entity> colorList = apiServiceIfc.get9685List(Integer.parseInt(formID)); |
| | | if (colorList != null && colorList.size() > 0) { |
| | | colorText.append("文字颜色说明"); |
| | | for (T9685Entity t : colorList) { |
| | | colorText.append("<div><span title=\"" + t.getItemMemo() + "\" class=\"spanColor\" " + |
| | | "style=\"background-color: " + t.getHexColor() + "\"></span>" + |
| | | "<span style=\"color: " + t.getHexColor() + "\">" + |
| | | t.getColorName() + "</span></div>"); |
| | | } |
| | | } |
| | | } |
| | | //文字颜色说明 xin 2022-5-18 15:53:13 |
| | | data = data.replace("[?ColorDescription]",colorText); |
| | | |
| | | if (!file.exists() || !file.isDirectory()) file.mkdirs(); |
| | | file = new File(file.getPath() + File.separator + targetFileName); |
| | | FileUtils.writeStringToFile(file, data, "utf-8"); |
| | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpSession; |
| | | |
| | | import com.yc.api.bean.T9685Entity; |
| | | import com.yc.api.service.ApiServiceIfc; |
| | | import org.apache.commons.io.FileUtils; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | @Service("T_22_Impl") |
| | | @Scope("prototype") |
| | | public class T_22_Impl extends BaseImpl implements T_22_Ifc { |
| | | @Autowired |
| | | private ApiServiceIfc apiServiceIfc; |
| | | |
| | | private final String GET_PROC_NAME=" set nocount on ; declare @hdtable varchar(200) ;\n" |
| | | + " SELECT @hdtable = hdtable FROM gform WHERE formid=? \n" |
| | |
| | | } |
| | | |
| | | // --------从gform表获取是否显示大标题字段值(isTitle)判断是否显示大标题,并替换标识符-2012-02-20-syz-----[end]-------------------------// |
| | | |
| | | |
| | | |
| | | //-------------文字颜色说明---------xin 2022-5-18 16:09:54-----------// |
| | | StringBuilder colorText =new StringBuilder();//文字颜色说明 |
| | | if(StringUtils.isNotBlank(formID)) { |
| | | List<T9685Entity> colorList = apiServiceIfc.get9685List(Integer.parseInt(formID)); |
| | | if (colorList != null && colorList.size() > 0) { |
| | | colorText.append("文字颜色说明"); |
| | | for (T9685Entity t : colorList) { |
| | | colorText.append("<div><span title=\"" + t.getItemMemo() + "\" class=\"spanColor\" " + |
| | | "style=\"background-color: " + t.getHexColor() + "\"></span>" + |
| | | "<span style=\"color: " + t.getHexColor() + "\">" + |
| | | t.getColorName() + "</span></div>"); |
| | | } |
| | | } |
| | | } |
| | | //文字颜色说明 xin 2022-5-18 15:53:13 |
| | | data = data.replace("[?ColorDescription]",colorText); |
| | | //---------------- |
| | | |
| | | data = data.replace("[?title]", gformInfo.get("formname")+""); |
| | |
| | | |
| | | //import java.util.*; |
| | | |
| | | import com.yc.api.bean.T9685Entity; |
| | | import com.yc.api.service.ApiServiceIfc; |
| | | import com.yc.exception.ApplicationException; |
| | | import com.yc.service.BaseService; |
| | | |
| | |
| | | private BuildTopIfc buildTopIfc; |
| | | @Autowired |
| | | private TreeIfc treeIfc; |
| | | @Autowired |
| | | private ApiServiceIfc apiServiceIfc; |
| | | |
| | | @Override |
| | | public synchronized int build() throws Exception { |
| | |
| | | } |
| | | // --------从gform表获取是否显示大标题字段值(isTitle)判断是否显示大标题,并替换标识符-2012-02-20-syz-----[end]-------------------------// |
| | | |
| | | //-------------文字颜色说明---------xin 2022-5-18 16:09:54-----------// |
| | | StringBuilder colorText =new StringBuilder();//文字颜色说明 |
| | | if(StringUtils.isNotBlank(formID)) { |
| | | List<T9685Entity> colorList = apiServiceIfc.get9685List(Integer.parseInt(formID)); |
| | | if (colorList != null && colorList.size() > 0) { |
| | | colorText.append("文字颜色说明"); |
| | | for (T9685Entity t : colorList) { |
| | | colorText.append("<div><span title=\"" + t.getItemMemo() + "\" class=\"spanColor\" " + |
| | | "style=\"background-color: " + t.getHexColor() + "\"></span>" + |
| | | "<span style=\"color: " + t.getHexColor() + "\">" + |
| | | t.getColorName() + "</span></div>"); |
| | | } |
| | | } |
| | | } |
| | | //文字颜色说明 xin 2022-5-18 15:53:13 |
| | | data = data.replace("[?ColorDescription]",colorText); |
| | | // ---------------- |
| | | data = data.replace("[?title]", gformInfo.get("formname") + ""); |
| | | data = data.replace("[?treewidth]", gformInfo.get("treewidth") + ""); |
| | |
| | | |
| | | import com.yc.action.grid.GridUtils; |
| | | import com.yc.action.grid.TMuiDTO; |
| | | import com.yc.api.bean.T9685Entity; |
| | | import com.yc.api.service.ApiServiceIfc; |
| | | import com.yc.exception.ApplicationException; |
| | | import com.yc.service.build.top.BuildTopIfc; |
| | | import com.yc.service.commons.GformIfc; |
| | |
| | | private SystemSettingsDao systemSettingsDao; |
| | | @Autowired |
| | | SqlDBHelperIfc sqlDBHelperIfc; |
| | | @Autowired |
| | | private ApiServiceIfc apiServiceIfc; |
| | | String doc = "";// 关联字段 |
| | | private String id_info=""; |
| | | /* |
| | |
| | | } catch (Exception e) { |
| | | throw new ApplicationException(e.getMessage()); |
| | | } |
| | | //-------------文字颜色说明---------xin 2022-5-18 16:09:54-----------// |
| | | StringBuilder colorText =new StringBuilder();//文字颜色说明 |
| | | if(StringUtils.isNotBlank(formID)) { |
| | | List<T9685Entity> colorList = apiServiceIfc.get9685List(Integer.parseInt(formID)); |
| | | if (colorList != null && colorList.size() > 0) { |
| | | colorText.append("文字颜色说明"); |
| | | for (T9685Entity t : colorList) { |
| | | colorText.append("<div><span title=\"" + t.getItemMemo() + "\" class=\"spanColor\" " + |
| | | "style=\"background-color: " + t.getHexColor() + "\"></span>" + |
| | | "<span style=\"color: " + t.getHexColor() + "\">" + |
| | | t.getColorName() + "</span></div>"); |
| | | } |
| | | } |
| | | } |
| | | //文字颜色说明 xin 2022-5-18 15:53:13 |
| | | data = data.replace("[?ColorDescription]",colorText); |
| | | data = data.replace("[?title]", gformInfo.get("formname") + ""); |
| | | data = data.replace("@panFou@", html); |
| | | data = data.replace("[?notab]", ""+isTabs); |
| | |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | import com.yc.api.bean.T9685Entity; |
| | | import com.yc.api.service.ApiServiceIfc; |
| | | import org.apache.commons.io.FileUtils; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | private SystemSettingsDao systemSettingsDao; |
| | | @Autowired |
| | | SqlDBHelperIfc sqlDBHelperIfc; |
| | | @Autowired |
| | | private ApiServiceIfc apiServiceIfc; |
| | | String doc = "";// 关联字段 |
| | | |
| | | /* |
| | |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | |
| | | //-------------文字颜色说明---------xin 2022-5-18 16:09:54-----------// |
| | | StringBuilder colorText =new StringBuilder();//文字颜色说明 |
| | | if(StringUtils.isNotBlank(formID)) { |
| | | List<T9685Entity> colorList = apiServiceIfc.get9685List(Integer.parseInt(formID)); |
| | | if (colorList != null && colorList.size() > 0) { |
| | | colorText.append("文字颜色说明"); |
| | | for (T9685Entity t : colorList) { |
| | | colorText.append("<div><span title=\"" + t.getItemMemo() + "\" class=\"spanColor\" " + |
| | | "style=\"background-color: " + t.getHexColor() + "\"></span>" + |
| | | "<span style=\"color: " + t.getHexColor() + "\">" + |
| | | t.getColorName() + "</span></div>"); |
| | | } |
| | | } |
| | | } |
| | | //文字颜色说明 xin 2022-5-18 15:53:13 |
| | | data = data.replace("[?ColorDescription]",colorText); |
| | | data = data.replace("[?title]", gformInfo.get("formname") + ""); |
| | | data = data.replace("@panFou@", indexInc2); |
| | | String tabPage = tabPageCode(formID); |
| | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | import com.yc.api.bean.T9685Entity; |
| | | import com.yc.api.service.ApiServiceIfc; |
| | | import org.apache.commons.io.FileUtils; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | private PanelServiceIfc pIfc; |
| | | @Autowired |
| | | SqlDBHelperIfc sqlDBHelperIfc; |
| | | @Autowired |
| | | private ApiServiceIfc apiServiceIfc; |
| | | String doc="";//关联字段 |
| | | /* |
| | | * 生成文件 |
| | |
| | | }catch(Exception e){ |
| | | e.printStackTrace(); |
| | | } |
| | | |
| | | //-------------文字颜色说明---------xin 2022-5-18 16:09:54-----------// |
| | | StringBuilder colorText =new StringBuilder();//文字颜色说明 |
| | | if(StringUtils.isNotBlank(formID)) { |
| | | List<T9685Entity> colorList = apiServiceIfc.get9685List(Integer.parseInt(formID)); |
| | | if (colorList != null && colorList.size() > 0) { |
| | | colorText.append("文字颜色说明"); |
| | | for (T9685Entity t : colorList) { |
| | | colorText.append("<div><span title=\"" + t.getItemMemo() + "\" class=\"spanColor\" " + |
| | | "style=\"background-color: " + t.getHexColor() + "\"></span>" + |
| | | "<span style=\"color: " + t.getHexColor() + "\">" + |
| | | t.getColorName() + "</span></div>"); |
| | | } |
| | | } |
| | | } |
| | | //文字颜色说明 xin 2022-5-18 15:53:13 |
| | | data = data.replace("[?ColorDescription]",colorText); |
| | | data = data.replace("[?title]", gformInfo.get("formname")+""); |
| | | data = data.replace("@panFou@",indexInc); |
| | | buildPageCode(data, fileName); |
| | |
| | | |
| | | import com.yc.action.grid.GridUtils; |
| | | import com.yc.action.grid.TreeGridIfc; |
| | | import com.yc.api.bean.T9685Entity; |
| | | import com.yc.api.service.ApiServiceIfc; |
| | | import com.yc.service.BaseService; |
| | | import com.yc.service.build.BuildFuncIfc; |
| | | import com.yc.service.build.top.v2.BuildTopIfc; |
| | |
| | | protected GformIfc gformIfc; |
| | | @Autowired |
| | | private BuildTopIfc buildTopIfc; |
| | | @Autowired |
| | | private ApiServiceIfc apiServiceIfc; |
| | | |
| | | @Autowired |
| | | protected PanelServiceIfc pIfc; |
| | |
| | | |
| | | //--------从gform表获取是否显示大标题字段值(isTitle)判断是否显示大标题,并替换标识符-2012-02-20-syz-----[end]-------------------------// |
| | | |
| | | //-------------文字颜色说明---------xin 2022-5-18 16:09:54-----------// |
| | | StringBuilder colorText =new StringBuilder();//文字颜色说明 |
| | | if(StringUtils.isNotBlank(baseBean.formID)) { |
| | | List<T9685Entity> colorList = apiServiceIfc.get9685List(Integer.parseInt(baseBean.formID)); |
| | | if (colorList != null && colorList.size() > 0) { |
| | | colorText.append("文字颜色说明"); |
| | | for (T9685Entity t : colorList) { |
| | | colorText.append("<div><span title=\"" + t.getItemMemo() + "\" class=\"spanColor\" " + |
| | | "style=\"background-color: " + t.getHexColor() + "\"></span>" + |
| | | "<span style=\"color: " + t.getHexColor() + "\">" + |
| | | t.getColorName() + "</span></div>"); |
| | | } |
| | | } |
| | | } |
| | | //文字颜色说明 xin 2022-5-18 15:53:13 |
| | | data = data.replace("[?ColorDescription]",colorText); |
| | | // ---------------- |
| | | data = data.replace("[?title]", gformInfo.get("formname") + ""); |
| | | data = data.replaceAll("@gridJsp@", baseBean.formID + "_grid.jsp"); |
| | |
| | | package com.yc.service.build.type.v2; |
| | | |
| | | import com.yc.action.grid.GridUtils; |
| | | import com.yc.api.bean.T9685Entity; |
| | | import com.yc.api.service.ApiServiceIfc; |
| | | import com.yc.service.build.top.v2.BuildTopIfc; |
| | | import com.yc.service.panel.v2.PanelServiceIfc; |
| | | import com.yc.utils.SessionKey; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.dao.DataAccessException; |
| | | import org.springframework.jdbc.support.rowset.SqlRowSet; |
| | |
| | | |
| | | @Service("V22") |
| | | public class T_22_Impl extends BaseImpl implements T_22_Ifc { |
| | | @Autowired |
| | | private ApiServiceIfc apiServiceIfc; |
| | | |
| | | private final String GET_PROC_NAME=" set nocount on ; declare @hdtable varchar(200) ;\n" |
| | | + " SELECT @hdtable = hdtable FROM gform WHERE formid=? \n" |
| | |
| | | } |
| | | |
| | | // --------从gform表获取是否显示大标题字段值(isTitle)判断是否显示大标题,并替换标识符-2012-02-20-syz-----[end]-------------------------// |
| | | |
| | | |
| | | //-------------文字颜色说明---------xin 2022-5-18 16:09:54-----------// |
| | | StringBuilder colorText =new StringBuilder();//文字颜色说明 |
| | | if(StringUtils.isNotBlank(baseBean.formID)) { |
| | | List<T9685Entity> colorList = apiServiceIfc.get9685List(Integer.parseInt(baseBean.formID)); |
| | | if (colorList != null && colorList.size() > 0) { |
| | | colorText.append("文字颜色说明"); |
| | | for (T9685Entity t : colorList) { |
| | | colorText.append("<div><span title=\"" + t.getItemMemo() + "\" class=\"spanColor\" " + |
| | | "style=\"background-color: " + t.getHexColor() + "\"></span>" + |
| | | "<span style=\"color: " + t.getHexColor() + "\">" + |
| | | t.getColorName() + "</span></div>"); |
| | | } |
| | | } |
| | | } |
| | | //文字颜色说明 xin 2022-5-18 15:53:13 |
| | | data = data.replace("[?ColorDescription]",colorText); |
| | | //---------------- |
| | | |
| | | data = data.replace("[?title]", gformInfo.get("formname")+""); |
| | |
| | | package com.yc.service.build.type.v2; |
| | | |
| | | import com.yc.action.grid.GridUtils; |
| | | import com.yc.api.bean.T9685Entity; |
| | | import com.yc.api.service.ApiServiceIfc; |
| | | import com.yc.exception.ApplicationException; |
| | | import com.yc.factory.FactoryBean; |
| | | import com.yc.service.BaseService; |
| | |
| | | |
| | | @Autowired |
| | | private TreeIfc treeIfc; |
| | | @Autowired |
| | | private ApiServiceIfc apiServiceIfc; |
| | | |
| | | @Override |
| | | public int build(BaseBean baseBean) throws Exception { |
| | |
| | | } |
| | | // --------从gform表获取是否显示大标题字段值(isTitle)判断是否显示大标题,并替换标识符-2012-02-20-syz-----[end]-------------------------// |
| | | |
| | | //-------------文字颜色说明---------xin 2022-5-18 16:09:54-----------// |
| | | StringBuilder colorText =new StringBuilder();//文字颜色说明 |
| | | if(StringUtils.isNotBlank(baseBean.formID)) { |
| | | List<T9685Entity> colorList = apiServiceIfc.get9685List(Integer.parseInt(baseBean.formID)); |
| | | if (colorList != null && colorList.size() > 0) { |
| | | colorText.append("文字颜色说明"); |
| | | for (T9685Entity t : colorList) { |
| | | colorText.append("<div><span title=\"" + t.getItemMemo() + "\" class=\"spanColor\" " + |
| | | "style=\"background-color: " + t.getHexColor() + "\"></span>" + |
| | | "<span style=\"color: " + t.getHexColor() + "\">" + |
| | | t.getColorName() + "</span></div>"); |
| | | } |
| | | } |
| | | } |
| | | //文字颜色说明 xin 2022-5-18 15:53:13 |
| | | data = data.replace("[?ColorDescription]",colorText); |
| | | // ---------------- |
| | | data = data.replace("[?title]", gformInfo.get("formname") + ""); |
| | | data = data.replace("[?treewidth]", gformInfo.get("treewidth") + ""); |
| | |
| | | |
| | | import com.yc.action.grid.GridUtils; |
| | | import com.yc.action.grid.TMuiDTO; |
| | | import com.yc.api.bean.T9685Entity; |
| | | import com.yc.api.service.ApiServiceIfc; |
| | | import com.yc.exception.ApplicationException; |
| | | import com.yc.service.build.top.v2.BuildTopIfc; |
| | | import com.yc.service.commons.GformIfc; |
| | |
| | | import com.yc.service.panel.v2.PanelServiceIfc; |
| | | import org.apache.commons.collections.map.HashedMap; |
| | | import org.apache.commons.io.FileUtils; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | private BuildTopIfc buildTopIfc; |
| | | @Autowired |
| | | private PanelServiceIfc pIfc; |
| | | |
| | | @Autowired |
| | | SqlDBHelperIfc sqlDBHelperIfc; |
| | | @Autowired |
| | | private ApiServiceIfc apiServiceIfc; |
| | | |
| | | /* |
| | | * 生成文件 |
| | |
| | | } catch (Exception e) { |
| | | throw new ApplicationException(e.getMessage()); |
| | | } |
| | | //-------------文字颜色说明---------xin 2022-5-18 16:09:54-----------// |
| | | StringBuilder colorText =new StringBuilder();//文字颜色说明 |
| | | if(StringUtils.isNotBlank(formID)) { |
| | | List<T9685Entity> colorList = apiServiceIfc.get9685List(Integer.parseInt(formID)); |
| | | if (colorList != null && colorList.size() > 0) { |
| | | colorText.append("文字颜色说明"); |
| | | for (T9685Entity t : colorList) { |
| | | colorText.append("<div><span title=\"" + t.getItemMemo() + "\" class=\"spanColor\" " + |
| | | "style=\"background-color: " + t.getHexColor() + "\"></span>" + |
| | | "<span style=\"color: " + t.getHexColor() + "\">" + |
| | | t.getColorName() + "</span></div>"); |
| | | } |
| | | } |
| | | } |
| | | //文字颜色说明 xin 2022-5-18 15:53:13 |
| | | data = data.replace("[?ColorDescription]",colorText); |
| | | data = data.replace("[?title]", gformInfo.get("formname") + ""); |
| | | data = data.replace("@panFou@", html); |
| | | data = data.replace("[?notab]", "" + isTabs); |
| | |
| | | |
| | | import com.yc.action.grid.GridUtils; |
| | | import com.yc.action.grid.TMuiDTO; |
| | | import com.yc.api.bean.T9685Entity; |
| | | import com.yc.api.service.ApiServiceIfc; |
| | | import com.yc.service.impl.DBHelper; |
| | | import com.yc.service.panel.v2.PanelServiceIfc; |
| | | import com.yc.service.panel.SqlDBHelperIfc; |
| | | import org.apache.commons.io.FileUtils; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.jdbc.support.rowset.SqlRowSet; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | //private SystemSettingsDao systemSettingsDao; |
| | | @Autowired |
| | | SqlDBHelperIfc sqlDBHelperIfc; |
| | | @Autowired |
| | | private ApiServiceIfc apiServiceIfc; |
| | | |
| | | |
| | | /* |
| | |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | |
| | | //-------------文字颜色说明---------xin 2022-5-18 16:09:54-----------// |
| | | StringBuilder colorText =new StringBuilder();//文字颜色说明 |
| | | if(StringUtils.isNotBlank(baseBean.formID)) { |
| | | List<T9685Entity> colorList = apiServiceIfc.get9685List(Integer.parseInt(baseBean.formID)); |
| | | if (colorList != null && colorList.size() > 0) { |
| | | colorText.append("文字颜色说明"); |
| | | for (T9685Entity t : colorList) { |
| | | colorText.append("<div><span title=\"" + t.getItemMemo() + "\" class=\"spanColor\" " + |
| | | "style=\"background-color: " + t.getHexColor() + "\"></span>" + |
| | | "<span style=\"color: " + t.getHexColor() + "\">" + |
| | | t.getColorName() + "</span></div>"); |
| | | } |
| | | } |
| | | } |
| | | //文字颜色说明 xin 2022-5-18 15:53:13 |
| | | data = data.replace("[?ColorDescription]",colorText); |
| | | data = data.replace("[?title]", gformInfo.get("formname") + ""); |
| | | data = data.replace("@panFou@", indexInc2); |
| | | String tabPage = tabPageCode(formID); |
| | |
| | | |
| | | import com.yc.action.grid.GridUtils; |
| | | import com.yc.action.grid.TMuiDTO; |
| | | import com.yc.api.bean.T9685Entity; |
| | | import com.yc.api.service.ApiServiceIfc; |
| | | import com.yc.service.impl.DBHelper; |
| | | import com.yc.service.panel.SqlDBHelperIfc; |
| | | import com.yc.service.panel.v2.PanelServiceIfc; |
| | | import org.apache.commons.io.FileUtils; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | private PanelServiceIfc pIfc; |
| | | @Autowired |
| | | SqlDBHelperIfc sqlDBHelperIfc; |
| | | @Autowired |
| | | private ApiServiceIfc apiServiceIfc; |
| | | |
| | | /* |
| | | * 生成文件 |
| | |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | |
| | | //-------------文字颜色说明---------xin 2022-5-18 16:09:54-----------// |
| | | StringBuilder colorText =new StringBuilder();//文字颜色说明 |
| | | if(StringUtils.isNotBlank(baseBean.formID)) { |
| | | List<T9685Entity> colorList = apiServiceIfc.get9685List(Integer.parseInt(baseBean.formID)); |
| | | if (colorList != null && colorList.size() > 0) { |
| | | colorText.append("文字颜色说明"); |
| | | for (T9685Entity t : colorList) { |
| | | colorText.append("<div><span title=\"" + t.getItemMemo() + "\" class=\"spanColor\" " + |
| | | "style=\"background-color: " + t.getHexColor() + "\"></span>" + |
| | | "<span style=\"color: " + t.getHexColor() + "\">" + |
| | | t.getColorName() + "</span></div>"); |
| | | } |
| | | } |
| | | } |
| | | //文字颜色说明 xin 2022-5-18 15:53:13 |
| | | data = data.replace("[?ColorDescription]",colorText); |
| | | data = data.replace("[?title]", gformInfo.get("formname") + ""); |
| | | data = data.replace("@panFou@", indexInc); |
| | | buildPageCode(data, fileName, baseBean); |