This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
修改时显示: | |
@Override | |
public FiveDisabledPerson get(Long id) { | |
FiveDisabledPerson person = fiveDisabledPersonDao.get(id); | |
String str = person.getDisabTypesStr(); | |
String[] arr = str.split(","); | |
person.setDisabTypes(arr); | |
Map<Long, Long> disabTypeMap = new HashMap<Long, Long>(); | |
for (String type_level : arr) { | |
if (StringUtil.isStringAvaliable(type_level)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="grid_4 lable-right"> | |
<label class="form-lbl">所在线路:</label> | |
</div> | |
<div class="grid_7"> | |
<select name="fiveDisabledPerson.attentionLine.id" id="attentionLine" class='form-txt'> | |
<option value="">请选择</option> | |
<@s.iterator value="attentionLineList" var="attentionLine"> | |
<option value="${(attentionLine.id)!}" <@s.if test="#attentionLine.id == fiveDisabledPerson.attentionLine.id">selected="true"</@s.if>> | |
${(attentionLine.name)!} | |
</option> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private double calculateDistance(Double x1, Double y1, Double x2, Double y2) { | |
double x = x1 - x2; | |
double y = y1 - y2; | |
return Math.sqrt(x * x + y * y); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(urlLastName=="pdf"){ | |
pdfOnlineView(fn.id); | |
return; | |
} | |
function pdfOnlineView(attachmentId){ | |
var fileActualUrl = getFileActualUrl(attachmentId); //得到在附件地址 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (lastName.equals("xls") || lastName.equals("xlsx")) { | |
InputStream inputStream = new FileInputStream(new File(FileUtil.getWebRoot() | |
+ File.separator + urlString)); | |
XSSFWorkbook wb = new XSSFWorkbook(inputStream); | |
businessTrainingAttachments.setOnlineActualContent(POIReadExcelToHtml07.getExcelInfo(wb)); | |
} | |
// 保存的时候用club字段保存tonlineActualContent |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/product/src/java/com/tianque/service/BaseService.java | |
package com.tianque.service; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import com.tianque.util.ThreadVariable; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/product/src/java/com/tianque/web/tag/JugeIsEqualTag.java | |
package com.tianque.web.tag; | |
import java.text.SimpleDateFormat; | |
import java.util.Date; | |
import javax.servlet.jsp.tagext.Tag; | |
import javax.servlet.jsp.tagext.TagSupport; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Autowired | |
private ImportBasicExceService importBasicExceService; | |
public String dispath(){ | |
if (DialogMode.ADD_MODE.equalsIgnoreCase(getMode())) { | |
importBasicExceService.addExcel(); | |
dispachAddMode(); | |
} | |
} |