| | |
| | | import com.example.server.progressTrack.model.DjJdgzTrackRecord; |
| | | import com.example.server.progressTrack.service.*; |
| | | import com.example.server.teamGroup.service.SysTeamGroupClassService; |
| | | import com.example.server.user.model.SysUser; |
| | | import com.example.server.utils.CacheUtils; |
| | | import com.example.server.utils.DownLoadTmpFile; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | for (JComboBoxItem item : selectedItems) { |
| | | selectedIds.append(item.getId()).append(","); |
| | | } |
| | | if (StringUtils.isNotBlank(selectedIds)){ |
| | | selectedIds.deleteCharAt(selectedIds.length()-1); |
| | | } |
| | | List<DjJdgzTrackRecord> list = djJdgzTrackRecordService.getListByImport(level1Id,level2Id,level2NodeId,selectedIds.toString()); |
| | | DownLoadTmpFile.buildTrack(list,tmpPath + "跟踪记录导入模板.xlsx", frame); |
| | | } |
| | |
| | | return; |
| | | } |
| | | |
| | | SysUser user = (SysUser) CacheUtils.get("user","user"); |
| | | if (user==null){ |
| | | JOptionPane.showMessageDialog(null, "用户失效请退出并重新登录", "提示", JOptionPane.WARNING_MESSAGE); |
| | | return; |
| | | } |
| | | |
| | | model.setDataVector(data, columnIdentifiers); |
| | | table.setModel(model); |
| | | table.getColumnModel().getColumn(0).setPreferredWidth(600); |
| | | table.getColumnModel().getColumn(1).setPreferredWidth(100); |
| | | table.getColumnModel().getColumn(0).setPreferredWidth(550); |
| | | table.getColumnModel().getColumn(1).setPreferredWidth(150); |
| | | |
| | | |
| | | table.getColumnModel().getColumn(0).setCellRenderer(new TableViewRenderer()); |
| | |
| | | JComboBoxItem[] teamList = sysTeamGroupClassService.getTeamList(null); |
| | | JComboBoxItem[] cabinList = cabinService.getList(); |
| | | String[] typeList = new String[]{ |
| | | "","改装", "加装", "换装", "改进性修理" |
| | | "","改装", "加装", "换装", "修理","改进性修理" |
| | | }; |
| | | List<DjJdgzTrackRecord> list = djJdgzTrackRecordService.getList(level1Id[0], deptList[0].getId(), teamList[0].getId(), cabinList[0].getId(), typeList[0], 0, null); |
| | | CommonTable.refreshTable(list, columnDto, subTable); |
| | |
| | | JOptionPane.showMessageDialog(null, "只能上传.xlsx或.xls的文件,且不超过2G\"", "提示", JOptionPane.WARNING_MESSAGE); |
| | | return flag; |
| | | } |
| | | |
| | | SysUser user = (SysUser) CacheUtils.get("user","user"); |
| | | if (user==null){ |
| | | flag = false; |
| | | JOptionPane.showMessageDialog(null, "用户失效请退出并重新登录", "提示", JOptionPane.WARNING_MESSAGE); |
| | | return flag; |
| | | } |
| | | |
| | | model.setDataVector(data, columnIdentifiers); |
| | | table.setModel(model); |
| | | table.getColumnModel().getColumn(0).setPreferredWidth(650); |