Merge branch 'master' of http://117.78.1.188:8089/r/dkyChenJiang
New file |
| | |
| | | package com.javaweb.geo.controller; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.ui.ModelMap; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | import com.javaweb.common.annotation.Log; |
| | | import com.javaweb.common.enums.BusinessType; |
| | | import com.javaweb.geo.domain.HoleLog; |
| | | import com.javaweb.geo.service.IHoleLogService; |
| | | import com.javaweb.common.core.controller.BaseController; |
| | | import com.javaweb.common.core.domain.AjaxResult; |
| | | import com.javaweb.common.utils.poi.ExcelUtil; |
| | | import com.javaweb.common.core.page.TableDataInfo; |
| | | |
| | | /** |
| | | * 钻孔日志Controller |
| | | * |
| | | * @author cxy |
| | | * @date 2024-05-21 |
| | | */ |
| | | @Controller |
| | | @RequestMapping("/geo/holeLog") |
| | | public class HoleLogController extends BaseController { |
| | | private String prefix = "geo/holeLog"; |
| | | |
| | | @Autowired |
| | | private IHoleLogService holeLogService; |
| | | |
| | | @RequiresPermissions("geo:holeLog:view") |
| | | @GetMapping() |
| | | public String holeLog(String id, ModelMap mmap) { |
| | | mmap.put("projectId", id); |
| | | return prefix + "/holeLog"; |
| | | } |
| | | |
| | | /** |
| | | * 查询钻孔日志列表 |
| | | */ |
| | | @RequiresPermissions("geo:holeLog:list") |
| | | @PostMapping("/list") |
| | | @ResponseBody |
| | | public TableDataInfo list(HoleLog holeLog) { |
| | | startPage(); |
| | | List<HoleLog> list = holeLogService.selectHoleLogList(holeLog); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导出钻孔日志列表 |
| | | */ |
| | | @RequiresPermissions("geo:holeLog:export") |
| | | @Log(title = "钻孔日志", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | @ResponseBody |
| | | public AjaxResult export(HoleLog holeLog) { |
| | | List<HoleLog> list = holeLogService.selectHoleLogList(holeLog); |
| | | ExcelUtil<HoleLog> util = new ExcelUtil<HoleLog>(HoleLog.class); |
| | | return util.exportExcel(list, "holeLog"); |
| | | } |
| | | |
| | | /** |
| | | * 新增钻孔日志 |
| | | */ |
| | | @GetMapping("/add") |
| | | public String add(String projectId, ModelMap mmap) { |
| | | mmap.put("projectId", projectId); |
| | | return prefix + "/add"; |
| | | } |
| | | |
| | | /** |
| | | * 新增保存钻孔日志 |
| | | */ |
| | | @RequiresPermissions("geo:holeLog:add") |
| | | @Log(title = "钻孔日志", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @ResponseBody |
| | | public AjaxResult addSave(HoleLog holeLog) { |
| | | return toAjax(holeLogService.insertHoleLog(holeLog)); |
| | | } |
| | | |
| | | /** |
| | | * 修改钻孔日志 |
| | | */ |
| | | @GetMapping("/edit/{id}") |
| | | public String edit(@PathVariable("id") String id, ModelMap mmap) { |
| | | HoleLog holeLog = holeLogService.selectHoleLogById(id); |
| | | mmap.put("holeLog", holeLog); |
| | | return prefix + "/edit"; |
| | | } |
| | | |
| | | /** |
| | | * 修改保存钻孔日志 |
| | | */ |
| | | @RequiresPermissions("geo:holeLog:edit") |
| | | @Log(title = "钻孔日志", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @ResponseBody |
| | | public AjaxResult editSave(HoleLog holeLog) { |
| | | return toAjax(holeLogService.updateHoleLog(holeLog)); |
| | | } |
| | | |
| | | /** |
| | | * 删除钻孔日志 |
| | | */ |
| | | @RequiresPermissions("geo:holeLog:remove") |
| | | @Log(title = "钻孔日志", businessType = BusinessType.DELETE) |
| | | @PostMapping("/remove") |
| | | @ResponseBody |
| | | public AjaxResult remove(String ids) { |
| | | return toAjax(holeLogService.deleteHoleLogByIds(ids)); |
| | | } |
| | | } |
| | |
| | | @ResponseBody |
| | | public AjaxResult addSave(HolePerson holePerson) |
| | | { |
| | | |
| | | return toAjax(holePersonService.insertHolePerson(holePerson)); |
| | | } |
| | | |
| | |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.javaweb.common.config.Global; |
| | | import com.javaweb.common.config.ServerConfig; |
| | | import com.javaweb.common.utils.IdGenerate; |
| | | import com.javaweb.common.utils.file.FileUploadUtils; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.ui.ModelMap; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import com.javaweb.common.annotation.Log; |
| | | import com.javaweb.common.enums.BusinessType; |
| | | import com.javaweb.geo.domain.ProjectPerson; |
| | |
| | | import com.javaweb.common.core.domain.AjaxResult; |
| | | import com.javaweb.common.utils.poi.ExcelUtil; |
| | | import com.javaweb.common.core.page.TableDataInfo; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | |
| | | /** |
| | | * 项目人员Controller |
| | |
| | | |
| | | @Autowired |
| | | private IProjectPersonService projectPersonService; |
| | | |
| | | @Autowired |
| | | private ServerConfig serverConfig; |
| | | |
| | | @RequiresPermissions("geo:projectPerson:view") |
| | | @GetMapping() |
| | |
| | | @PostMapping("/add") |
| | | @ResponseBody |
| | | public AjaxResult addSave(ProjectPerson projectPerson) { |
| | | |
| | | return toAjax(projectPersonService.insertProjectPerson(projectPerson)); |
| | | } |
| | | |
| | |
| | | public AjaxResult remove(String ids) { |
| | | return toAjax(projectPersonService.deleteProjectPersonByIds(ids)); |
| | | } |
| | | |
| | | /** |
| | | * 上传图片 |
| | | */ |
| | | @PostMapping("/uploadPersonFile") |
| | | @ResponseBody |
| | | public AjaxResult uploadPersonFile(MultipartFile file, HttpServletRequest request){ |
| | | try |
| | | { |
| | | // 上传文件路径 |
| | | String filePath = Global.getUploadPath() +"/personfile"; |
| | | // 上传并返回新文件名称 |
| | | String fileName = FileUploadUtils.upload(filePath, file); |
| | | String url = serverConfig.getUrl() + fileName; |
| | | AjaxResult ajax = AjaxResult.success(); |
| | | ajax.put("fileName", fileName); |
| | | ajax.put("url", url); |
| | | return ajax; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | return AjaxResult.error(e.getMessage()); |
| | | } |
| | | } |
| | | } |
New file |
| | |
| | | package com.javaweb.geo.domain; |
| | | |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.javaweb.common.annotation.Excel; |
| | | import com.javaweb.common.core.domain.BaseEntity; |
| | | |
| | | /** |
| | | * 钻孔日志对象 js_hole_log |
| | | * |
| | | * @author cxy |
| | | * @date 2024-05-21 |
| | | */ |
| | | public class HoleLog extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** 主键 */ |
| | | private String id; |
| | | |
| | | /** 项目id */ |
| | | private String projectId; |
| | | |
| | | /** 钻孔id */ |
| | | private String holeId; |
| | | |
| | | /** 钻孔编号 */ |
| | | @Excel(name = "钻孔编号") |
| | | private String code; |
| | | |
| | | /** 起始深度 */ |
| | | @Excel(name = "起始深度") |
| | | private Double beginDepth; |
| | | |
| | | /** 终止深度 */ |
| | | @Excel(name = "终止深度") |
| | | private Double endDepth; |
| | | |
| | | /** 描述员 */ |
| | | @Excel(name = "描述员") |
| | | private String recordPerson; |
| | | |
| | | /** 描述备注 */ |
| | | @Excel(name = "描述备注") |
| | | private String description; |
| | | |
| | | /** 是否删除 */ |
| | | private String isDelete; |
| | | |
| | | public void setId(String id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getId() |
| | | { |
| | | return id; |
| | | } |
| | | public void setProjectId(String projectId) |
| | | { |
| | | this.projectId = projectId; |
| | | } |
| | | |
| | | public String getProjectId() |
| | | { |
| | | return projectId; |
| | | } |
| | | public void setHoleId(String holeId) |
| | | { |
| | | this.holeId = holeId; |
| | | } |
| | | |
| | | public String getHoleId() |
| | | { |
| | | return holeId; |
| | | } |
| | | public void setCode(String code) |
| | | { |
| | | this.code = code; |
| | | } |
| | | |
| | | public String getCode() |
| | | { |
| | | return code; |
| | | } |
| | | public void setBeginDepth(Double beginDepth) |
| | | { |
| | | this.beginDepth = beginDepth; |
| | | } |
| | | |
| | | public Double getBeginDepth() |
| | | { |
| | | return beginDepth; |
| | | } |
| | | public void setEndDepth(Double endDepth) |
| | | { |
| | | this.endDepth = endDepth; |
| | | } |
| | | |
| | | public Double getEndDepth() |
| | | { |
| | | return endDepth; |
| | | } |
| | | public void setRecordPerson(String recordPerson) |
| | | { |
| | | this.recordPerson = recordPerson; |
| | | } |
| | | |
| | | public String getRecordPerson() |
| | | { |
| | | return recordPerson; |
| | | } |
| | | public void setDescription(String description) |
| | | { |
| | | this.description = description; |
| | | } |
| | | |
| | | public String getDescription() |
| | | { |
| | | return description; |
| | | } |
| | | public void setIsDelete(String isDelete) |
| | | { |
| | | this.isDelete = isDelete; |
| | | } |
| | | |
| | | public String getIsDelete() |
| | | { |
| | | return isDelete; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("projectId", getProjectId()) |
| | | .append("holeId", getHoleId()) |
| | | .append("code", getCode()) |
| | | .append("beginDepth", getBeginDepth()) |
| | | .append("endDepth", getEndDepth()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("recordPerson", getRecordPerson()) |
| | | .append("description", getDescription()) |
| | | .append("isDelete", getIsDelete()) |
| | | .toString(); |
| | | } |
| | | } |
| | |
| | | |
| | | /** |
| | | * 项目资料对象 js_project_data |
| | | * |
| | | * |
| | | * @author cxy |
| | | * @date 2024-05-16 |
| | | */ |
| | | public class ProjectData extends BaseEntity |
| | | { |
| | | public class ProjectData extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** 主键 */ |
| | | /** |
| | | * 主键 |
| | | */ |
| | | private String id; |
| | | |
| | | /** 项目id */ |
| | | /** |
| | | * 项目id |
| | | */ |
| | | private String projectId; |
| | | |
| | | /** 钻孔id */ |
| | | private String holeId; |
| | | /** |
| | | * 钻孔Code |
| | | */ |
| | | private String holeCode; |
| | | |
| | | /** 资料名称 */ |
| | | /** |
| | | * 资料名称 |
| | | */ |
| | | @Excel(name = "资料名称") |
| | | private String name; |
| | | |
| | | /** 资料类型 */ |
| | | /** |
| | | * 资料类型 |
| | | */ |
| | | @Excel(name = "资料类型") |
| | | private String dataType; |
| | | |
| | | /** 资料路径 */ |
| | | /** |
| | | * 资料路径 |
| | | */ |
| | | private String dataUrl; |
| | | |
| | | /** 文件类型 */ |
| | | /** |
| | | * 文件类型 |
| | | */ |
| | | @Excel(name = "文件类型") |
| | | private String fileType; |
| | | |
| | | /** 标签 */ |
| | | /** |
| | | * 标签 |
| | | */ |
| | | @Excel(name = "标签") |
| | | private String labels; |
| | | |
| | | public void setId(String id) |
| | | { |
| | | public String getId() { |
| | | return id; |
| | | } |
| | | |
| | | public void setId(String id) { |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getId() |
| | | { |
| | | return id; |
| | | public String getProjectId() { |
| | | return projectId; |
| | | } |
| | | public void setProjectId(String projectId) |
| | | { |
| | | |
| | | public void setProjectId(String projectId) { |
| | | this.projectId = projectId; |
| | | } |
| | | |
| | | public String getProjectId() |
| | | { |
| | | return projectId; |
| | | } |
| | | public void setHoleId(String holeId) |
| | | { |
| | | this.holeId = holeId; |
| | | public String getHoleCode() { |
| | | return holeCode; |
| | | } |
| | | |
| | | public String getHoleId() |
| | | { |
| | | return holeId; |
| | | public void setHoleCode(String holeCode) { |
| | | this.holeCode = holeCode; |
| | | } |
| | | public void setName(String name) |
| | | { |
| | | |
| | | public void setName(String name) { |
| | | this.name = name; |
| | | } |
| | | |
| | | public String getName() |
| | | { |
| | | public String getName() { |
| | | return name; |
| | | } |
| | | public void setDataType(String dataType) |
| | | { |
| | | |
| | | public void setDataType(String dataType) { |
| | | this.dataType = dataType; |
| | | } |
| | | |
| | | public String getDataType() |
| | | { |
| | | public String getDataType() { |
| | | return dataType; |
| | | } |
| | | public void setDataUrl(String dataUrl) |
| | | { |
| | | |
| | | public void setDataUrl(String dataUrl) { |
| | | this.dataUrl = dataUrl; |
| | | } |
| | | |
| | | public String getDataUrl() |
| | | { |
| | | public String getDataUrl() { |
| | | return dataUrl; |
| | | } |
| | | public void setFileType(String fileType) |
| | | { |
| | | |
| | | public void setFileType(String fileType) { |
| | | this.fileType = fileType; |
| | | } |
| | | |
| | | public String getFileType() |
| | | { |
| | | public String getFileType() { |
| | | return fileType; |
| | | } |
| | | public void setLabels(String labels) |
| | | { |
| | | |
| | | public void setLabels(String labels) { |
| | | this.labels = labels; |
| | | } |
| | | |
| | | public String getLabels() |
| | | { |
| | | public String getLabels() { |
| | | return labels; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("projectId", getProjectId()) |
| | | .append("holeId", getHoleId()) |
| | | .append("name", getName()) |
| | | .append("dataType", getDataType()) |
| | | .append("dataUrl", getDataUrl()) |
| | | .append("fileType", getFileType()) |
| | | .append("labels", getLabels()) |
| | | .append("createBy", getCreateBy()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("updateBy", getUpdateBy()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .append("remark", getRemark()) |
| | | .toString(); |
| | | return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("projectId", getProjectId()) |
| | | .append("holeCode", getHoleCode()) |
| | | .append("name", getName()) |
| | | .append("dataType", getDataType()) |
| | | .append("dataUrl", getDataUrl()) |
| | | .append("fileType", getFileType()) |
| | | .append("labels", getLabels()) |
| | | .append("createBy", getCreateBy()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("updateBy", getUpdateBy()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .append("remark", getRemark()) |
| | | .toString(); |
| | | } |
| | | } |
| | |
| | | import com.javaweb.common.annotation.Excel; |
| | | import com.javaweb.common.core.domain.BaseEntity; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 项目人员对象 js_project_person |
| | | * |
| | | * |
| | | * @author cxy |
| | | * @date 2024-05-16 |
| | | */ |
| | | public class ProjectPerson extends BaseEntity |
| | | { |
| | | public class ProjectPerson extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** id */ |
| | | /** |
| | | * id |
| | | */ |
| | | private String ids; |
| | | |
| | | /** 项目id */ |
| | | /** |
| | | * 项目id |
| | | */ |
| | | private String projectId; |
| | | |
| | | /** 钻孔id */ |
| | | /** |
| | | * 钻孔id |
| | | */ |
| | | private String holeId; |
| | | |
| | | /** 人员名称 */ |
| | | /** |
| | | * 人员名称 |
| | | */ |
| | | @Excel(name = "人员名称") |
| | | private String name; |
| | | |
| | | /** 类型 */ |
| | | /** |
| | | * 类型 |
| | | */ |
| | | @Excel(name = "类型") |
| | | private String type; |
| | | |
| | | /** 手机号 */ |
| | | /** |
| | | * 手机号 |
| | | */ |
| | | @Excel(name = "手机号") |
| | | private String phone; |
| | | |
| | | /** 身份证号 */ |
| | | /** |
| | | * 身份证号 |
| | | */ |
| | | @Excel(name = "身份证号") |
| | | private String idCard; |
| | | |
| | | /** 人员分组 */ |
| | | /** |
| | | * 人员分组 |
| | | */ |
| | | @Excel(name = "人员分组") |
| | | private String personGroup; |
| | | |
| | | /** 职责 */ |
| | | /** |
| | | * 职责 |
| | | */ |
| | | @Excel(name = "职责") |
| | | private String responsibility; |
| | | |
| | | /** 状态 */ |
| | | |
| | | /** |
| | | * 进场时间 |
| | | */ |
| | | @Excel(name = "进场时间", width = 30, dateFormat = "yyyy-MM-dd") |
| | | private Date inSiteTime; |
| | | |
| | | /** |
| | | * 出场时间 |
| | | */ |
| | | @Excel(name = "出场时间", width = 30, dateFormat = "yyyy-MM-dd") |
| | | private Date outSiteTime; |
| | | |
| | | /** |
| | | * 证件类型 |
| | | */ |
| | | @Excel(name = "证件类型") |
| | | private String documentType; |
| | | |
| | | /** |
| | | * 证件编号 |
| | | */ |
| | | @Excel(name = "证件编号") |
| | | private String documentCode; |
| | | |
| | | /** |
| | | * 证件url |
| | | */ |
| | | @Excel(name = "证件url") |
| | | private String documentPath; |
| | | |
| | | /** |
| | | * 状态 |
| | | */ |
| | | private String status; |
| | | |
| | | /** 是否删除(0 未删除 1删除) */ |
| | | /** |
| | | * 是否删除(0 未删除 1删除) |
| | | */ |
| | | private String isDeleted; |
| | | |
| | | public void setIds(String ids) |
| | | { |
| | | public void setIds(String ids) { |
| | | this.ids = ids; |
| | | } |
| | | |
| | | public String getIds() |
| | | { |
| | | public String getIds() { |
| | | return ids; |
| | | } |
| | | public void setProjectId(String projectId) |
| | | { |
| | | |
| | | public void setProjectId(String projectId) { |
| | | this.projectId = projectId; |
| | | } |
| | | |
| | | public String getProjectId() |
| | | { |
| | | public String getProjectId() { |
| | | return projectId; |
| | | } |
| | | public void setHoleId(String holeId) |
| | | { |
| | | |
| | | public void setHoleId(String holeId) { |
| | | this.holeId = holeId; |
| | | } |
| | | |
| | | public String getHoleId() |
| | | { |
| | | public String getHoleId() { |
| | | return holeId; |
| | | } |
| | | public void setName(String name) |
| | | { |
| | | |
| | | public void setName(String name) { |
| | | this.name = name; |
| | | } |
| | | |
| | | public String getName() |
| | | { |
| | | public String getName() { |
| | | return name; |
| | | } |
| | | public void setType(String type) |
| | | { |
| | | |
| | | public void setType(String type) { |
| | | this.type = type; |
| | | } |
| | | |
| | | public String getType() |
| | | { |
| | | public String getType() { |
| | | return type; |
| | | } |
| | | public void setPhone(String phone) |
| | | { |
| | | |
| | | public void setPhone(String phone) { |
| | | this.phone = phone; |
| | | } |
| | | |
| | | public String getPhone() |
| | | { |
| | | public String getPhone() { |
| | | return phone; |
| | | } |
| | | |
| | |
| | | this.personGroup = personGroup; |
| | | } |
| | | |
| | | public void setResponsibility(String responsibility) |
| | | { |
| | | public void setResponsibility(String responsibility) { |
| | | this.responsibility = responsibility; |
| | | } |
| | | |
| | | public String getResponsibility() |
| | | { |
| | | public String getResponsibility() { |
| | | return responsibility; |
| | | } |
| | | public void setStatus(String status) |
| | | { |
| | | |
| | | |
| | | public Date getInSiteTime() { |
| | | return inSiteTime; |
| | | } |
| | | |
| | | public void setInSiteTime(Date inSiteTime) { |
| | | this.inSiteTime = inSiteTime; |
| | | } |
| | | |
| | | public void setOutSiteTime(Date outSiteTime) { |
| | | this.outSiteTime = outSiteTime; |
| | | } |
| | | |
| | | public Date getOutSiteTime() { |
| | | return outSiteTime; |
| | | } |
| | | |
| | | public void setDocumentType(String documentType) { |
| | | this.documentType = documentType; |
| | | } |
| | | |
| | | public String getDocumentType() { |
| | | return documentType; |
| | | } |
| | | |
| | | public void setDocumentCode(String documentCode) { |
| | | this.documentCode = documentCode; |
| | | } |
| | | |
| | | public String getDocumentCode() { |
| | | return documentCode; |
| | | } |
| | | |
| | | public void setDocumentPath(String documentPath) { |
| | | this.documentPath = documentPath; |
| | | } |
| | | |
| | | public String getDocumentPath() { |
| | | return documentPath; |
| | | } |
| | | |
| | | |
| | | public void setStatus(String status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | public String getStatus() |
| | | { |
| | | |
| | | public String getStatus() { |
| | | return status; |
| | | } |
| | | public void setIsDeleted(String isDeleted) |
| | | { |
| | | |
| | | public void setIsDeleted(String isDeleted) { |
| | | this.isDeleted = isDeleted; |
| | | } |
| | | |
| | | public String getIsDeleted() |
| | | { |
| | | public String getIsDeleted() { |
| | | return isDeleted; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("ids", getIds()) |
| | | .append("projectId", getProjectId()) |
| | | .append("holeId", getHoleId()) |
| | | .append("name", getName()) |
| | | .append("type", getType()) |
| | | .append("phone", getPhone()) |
| | | .append("responsibility", getResponsibility()) |
| | | .append("status", getStatus()) |
| | | .append("isDeleted", getIsDeleted()) |
| | | .append("createBy", getCreateBy()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("updateBy", getUpdateBy()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .append("remark", getRemark()) |
| | | .toString(); |
| | | return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("ids", getIds()) |
| | | .append("projectId", getProjectId()) |
| | | .append("holeId", getHoleId()) |
| | | .append("name", getName()) |
| | | .append("type", getType()) |
| | | .append("phone", getPhone()) |
| | | .append("responsibility", getResponsibility()) |
| | | .append("inSiteTime", getInSiteTime()) |
| | | .append("outSiteTime", getOutSiteTime()) |
| | | .append("documentType", getDocumentType()) |
| | | .append("documentCode", getDocumentCode()) |
| | | .append("documentPath", getDocumentPath()) |
| | | .append("status", getStatus()) |
| | | .append("isDeleted", getIsDeleted()) |
| | | .append("createBy", getCreateBy()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("updateBy", getUpdateBy()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .append("remark", getRemark()) |
| | | .toString(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.javaweb.geo.mapper; |
| | | |
| | | import com.javaweb.geo.domain.HoleLog; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 钻孔日志Mapper接口 |
| | | * |
| | | * @author cxy |
| | | * @date 2024-05-21 |
| | | */ |
| | | public interface HoleLogMapper |
| | | { |
| | | /** |
| | | * 查询钻孔日志 |
| | | * |
| | | * @param id 钻孔日志ID |
| | | * @return 钻孔日志 |
| | | */ |
| | | public HoleLog selectHoleLogById(String id); |
| | | |
| | | /** |
| | | * 查询钻孔日志列表 |
| | | * |
| | | * @param holeLog 钻孔日志 |
| | | * @return 钻孔日志集合 |
| | | */ |
| | | public List<HoleLog> selectHoleLogList(HoleLog holeLog); |
| | | |
| | | /** |
| | | * 新增钻孔日志 |
| | | * |
| | | * @param holeLog 钻孔日志 |
| | | * @return 结果 |
| | | */ |
| | | public int insertHoleLog(HoleLog holeLog); |
| | | |
| | | /** |
| | | * 修改钻孔日志 |
| | | * |
| | | * @param holeLog 钻孔日志 |
| | | * @return 结果 |
| | | */ |
| | | public int updateHoleLog(HoleLog holeLog); |
| | | |
| | | /** |
| | | * 删除钻孔日志 |
| | | * |
| | | * @param id 钻孔日志ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteHoleLogById(String id); |
| | | |
| | | /** |
| | | * 批量删除钻孔日志 |
| | | * |
| | | * @param ids 需要删除的数据ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteHoleLogByIds(String[] ids); |
| | | } |
New file |
| | |
| | | package com.javaweb.geo.service; |
| | | |
| | | import com.javaweb.geo.domain.HoleLog; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 钻孔日志Service接口 |
| | | * |
| | | * @author cxy |
| | | * @date 2024-05-21 |
| | | */ |
| | | public interface IHoleLogService |
| | | { |
| | | /** |
| | | * 查询钻孔日志 |
| | | * |
| | | * @param id 钻孔日志ID |
| | | * @return 钻孔日志 |
| | | */ |
| | | public HoleLog selectHoleLogById(String id); |
| | | |
| | | /** |
| | | * 查询钻孔日志列表 |
| | | * |
| | | * @param holeLog 钻孔日志 |
| | | * @return 钻孔日志集合 |
| | | */ |
| | | public List<HoleLog> selectHoleLogList(HoleLog holeLog); |
| | | |
| | | /** |
| | | * 新增钻孔日志 |
| | | * |
| | | * @param holeLog 钻孔日志 |
| | | * @return 结果 |
| | | */ |
| | | public int insertHoleLog(HoleLog holeLog); |
| | | |
| | | /** |
| | | * 修改钻孔日志 |
| | | * |
| | | * @param holeLog 钻孔日志 |
| | | * @return 结果 |
| | | */ |
| | | public int updateHoleLog(HoleLog holeLog); |
| | | |
| | | /** |
| | | * 批量删除钻孔日志 |
| | | * |
| | | * @param ids 需要删除的数据ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteHoleLogByIds(String ids); |
| | | |
| | | /** |
| | | * 删除钻孔日志信息 |
| | | * |
| | | * @param id 钻孔日志ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteHoleLogById(String id); |
| | | } |
| | |
| | | package com.javaweb.geo.service; |
| | | |
| | | import com.javaweb.common.core.domain.AjaxResult; |
| | | import com.javaweb.geo.domain.ProjectPerson; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | * @return 结果 |
| | | */ |
| | | public int deleteProjectPersonById(String ids); |
| | | |
| | | } |
New file |
| | |
| | | package com.javaweb.geo.service.impl; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.javaweb.common.utils.DateUtils; |
| | | import com.javaweb.common.utils.IdGenerate; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.javaweb.geo.mapper.HoleLogMapper; |
| | | import com.javaweb.geo.domain.HoleLog; |
| | | import com.javaweb.geo.service.IHoleLogService; |
| | | import com.javaweb.common.core.text.Convert; |
| | | import org.springframework.util.ObjectUtils; |
| | | |
| | | /** |
| | | * 钻孔日志Service业务层处理 |
| | | * |
| | | * @author cxy |
| | | * @date 2024-05-21 |
| | | */ |
| | | @Service |
| | | public class HoleLogServiceImpl implements IHoleLogService { |
| | | @Autowired |
| | | private HoleLogMapper holeLogMapper; |
| | | |
| | | /** |
| | | * 查询钻孔日志 |
| | | * |
| | | * @param id 钻孔日志ID |
| | | * @return 钻孔日志 |
| | | */ |
| | | @Override |
| | | public HoleLog selectHoleLogById(String id) { |
| | | return holeLogMapper.selectHoleLogById(id); |
| | | } |
| | | |
| | | /** |
| | | * 查询钻孔日志列表 |
| | | * |
| | | * @param holeLog 钻孔日志 |
| | | * @return 钻孔日志 |
| | | */ |
| | | @Override |
| | | public List<HoleLog> selectHoleLogList(HoleLog holeLog) { |
| | | return holeLogMapper.selectHoleLogList(holeLog); |
| | | } |
| | | |
| | | /** |
| | | * 新增钻孔日志 |
| | | * |
| | | * @param holeLog 钻孔日志 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int insertHoleLog(HoleLog holeLog) { |
| | | if(ObjectUtils.isEmpty(holeLog.getId())){ |
| | | holeLog.setId(IdGenerate.nextId()); |
| | | } |
| | | return holeLogMapper.insertHoleLog(holeLog); |
| | | } |
| | | |
| | | /** |
| | | * 修改钻孔日志 |
| | | * |
| | | * @param holeLog 钻孔日志 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int updateHoleLog(HoleLog holeLog) { |
| | | return holeLogMapper.updateHoleLog(holeLog); |
| | | } |
| | | |
| | | /** |
| | | * 删除钻孔日志对象 |
| | | * |
| | | * @param ids 需要删除的数据ID |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int deleteHoleLogByIds(String ids) { |
| | | return holeLogMapper.deleteHoleLogByIds(Convert.toStrArray(ids)); |
| | | } |
| | | |
| | | /** |
| | | * 删除钻孔日志信息 |
| | | * |
| | | * @param id 钻孔日志ID |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int deleteHoleLogById(String id) { |
| | | return holeLogMapper.deleteHoleLogById(id); |
| | | } |
| | | } |
| | |
| | | package com.javaweb.geo.service.impl; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.javaweb.common.core.domain.AjaxResult; |
| | | import com.javaweb.common.utils.DateUtils; |
| | | import com.javaweb.common.utils.IdGenerate; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | import com.javaweb.geo.service.IProjectPersonService; |
| | | import com.javaweb.common.core.text.Convert; |
| | | import org.springframework.util.ObjectUtils; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | |
| | | /** |
| | | * 项目人员Service业务层处理 |
| | |
| | | { |
| | | return projectPersonMapper.deleteProjectPersonById(ids); |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.javaweb.geo.mapper.HoleLogMapper"> |
| | | |
| | | <resultMap type="HoleLog" id="HoleLogResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="projectId" column="project_id" /> |
| | | <result property="holeId" column="hole_id" /> |
| | | <result property="code" column="code" /> |
| | | <result property="beginDepth" column="begin_depth" /> |
| | | <result property="endDepth" column="end_depth" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="recordPerson" column="record_person" /> |
| | | <result property="description" column="description" /> |
| | | <result property="isDelete" column="is_delete" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectHoleLogVo"> |
| | | select id, project_id, hole_id, code, begin_depth, end_depth, create_time, record_person, description, is_delete from js_hole_log |
| | | </sql> |
| | | |
| | | <select id="selectHoleLogList" parameterType="HoleLog" resultMap="HoleLogResult"> |
| | | <include refid="selectHoleLogVo"/> |
| | | <where> |
| | | <if test="projectId != null and projectId != ''"> and project_id = #{projectId}</if> |
| | | <if test="holeId != null and holeId != ''"> and hole_id = #{holeId}</if> |
| | | <if test="code != null and code != ''"> and code = #{code}</if> |
| | | <if test="beginDepth != null "> and begin_depth = #{beginDepth}</if> |
| | | <if test="endDepth != null "> and end_depth = #{endDepth}</if> |
| | | <if test="recordPerson != null and recordPerson != ''"> and record_person = #{recordPerson}</if> |
| | | <if test="description != null and description != ''"> and description = #{description}</if> |
| | | <!-- 开始时间检索 --> |
| | | <if test="params.beginTime != null and params.beginTime != ''"> |
| | | and date_format(create_time,'%y%m%d') >= date_format(#{params.beginCreateTime},'%y%m%d') |
| | | </if> |
| | | <!-- 结束时间检索 --> |
| | | <if test="params.endTime != null and params.endTime != ''"> |
| | | and date_format(create_time,'%y%m%d') <= date_format(#{params.endCreateTime},'%y%m%d') |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectHoleLogById" parameterType="String" resultMap="HoleLogResult"> |
| | | <include refid="selectHoleLogVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertHoleLog" parameterType="HoleLog"> |
| | | insert into js_hole_log |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null and id != ''">id,</if> |
| | | <if test="projectId != null and projectId != ''">project_id,</if> |
| | | <if test="holeId != null and holeId != ''">hole_id,</if> |
| | | <if test="code != null and code != ''">code,</if> |
| | | <if test="beginDepth != null ">begin_depth,</if> |
| | | <if test="endDepth != null ">end_depth,</if> |
| | | <if test="createTime != null ">create_time,</if> |
| | | <if test="recordPerson != null and recordPerson != ''">record_person,</if> |
| | | <if test="description != null and description != ''">description,</if> |
| | | <if test="isDelete != null and isDelete != ''">is_delete,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null and id != ''">#{id},</if> |
| | | <if test="projectId != null and projectId != ''">#{projectId},</if> |
| | | <if test="holeId != null and holeId != ''">#{holeId},</if> |
| | | <if test="code != null and code != ''">#{code},</if> |
| | | <if test="beginDepth != null ">#{beginDepth},</if> |
| | | <if test="endDepth != null ">#{endDepth},</if> |
| | | <if test="createTime != null ">#{createTime},</if> |
| | | <if test="recordPerson != null and recordPerson != ''">#{recordPerson},</if> |
| | | <if test="description != null and description != ''">#{description},</if> |
| | | <if test="isDelete != null and isDelete != ''">#{isDelete},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateHoleLog" parameterType="HoleLog"> |
| | | update js_hole_log |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="projectId != null and projectId != ''">project_id = #{projectId},</if> |
| | | <if test="holeId != null and holeId != ''">hole_id = #{holeId},</if> |
| | | <if test="code != null and code != ''">code = #{code},</if> |
| | | <if test="beginDepth != null ">begin_depth = #{beginDepth},</if> |
| | | <if test="endDepth != null ">end_depth = #{endDepth},</if> |
| | | <if test="createTime != null ">create_time = #{createTime},</if> |
| | | <if test="recordPerson != null and recordPerson != ''">record_person = #{recordPerson},</if> |
| | | <if test="description != null and description != ''">description = #{description},</if> |
| | | <if test="isDelete != null and isDelete != ''">is_delete = #{isDelete},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteHoleLogById" parameterType="String"> |
| | | delete from js_hole_log where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteHoleLogByIds" parameterType="String"> |
| | | delete from js_hole_log where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
| | |
| | | <resultMap type="ProjectData" id="ProjectDataResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="projectId" column="project_id" /> |
| | | <result property="holeId" column="hole_id" /> |
| | | <result property="holeCode" column="hole_code" /> |
| | | <result property="name" column="name" /> |
| | | <result property="dataType" column="data_type" /> |
| | | <result property="dataUrl" column="data_url" /> |
| | |
| | | </resultMap> |
| | | |
| | | <sql id="selectProjectDataVo"> |
| | | select id, project_id, hole_id, name, data_type, data_url, file_type, labels, create_by, create_time, update_by, update_time, remark from js_project_data |
| | | select id, project_id, hole_code, name, data_type, data_url, file_type, labels, create_by, create_time, update_by, update_time, remark from js_project_data |
| | | </sql> |
| | | |
| | | <select id="selectProjectDataList" parameterType="ProjectData" resultMap="ProjectDataResult"> |
| | | <include refid="selectProjectDataVo"/> |
| | | <where> |
| | | <if test="projectId != null and projectId != ''"> and project_id = #{projectId}</if> |
| | | <if test="holeId != null and holeId != ''"> and hole_id = #{holeId}</if> |
| | | <if test="holeCode != null and holeCode != ''"> and hole_code = #{holeCode}</if> |
| | | <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if> |
| | | <if test="dataType != null and dataType != ''"> and data_type = #{dataType}</if> |
| | | <if test="fileType != null and fileType != ''"> and file_type = #{fileType}</if> |
| | |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null and id != ''">id,</if> |
| | | <if test="projectId != null and projectId != ''">project_id,</if> |
| | | <if test="holeId != null and holeId != ''">hole_id,</if> |
| | | <if test="holeCode != null and holeCode != ''">hole_code,</if> |
| | | <if test="name != null and name != ''">name,</if> |
| | | <if test="dataType != null and dataType != ''">data_type,</if> |
| | | <if test="dataUrl != null and dataUrl != ''">data_url,</if> |
| | |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null and id != ''">#{id},</if> |
| | | <if test="projectId != null and projectId != ''">#{projectId},</if> |
| | | <if test="holeId != null and holeId != ''">#{holeId},</if> |
| | | <if test="holeCode != null and holeCode != ''">#{holeCode},</if> |
| | | <if test="name != null and name != ''">#{name},</if> |
| | | <if test="dataType != null and dataType != ''">#{dataType},</if> |
| | | <if test="dataUrl != null and dataUrl != ''">#{dataUrl},</if> |
| | |
| | | update js_project_data |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="projectId != null and projectId != ''">project_id = #{projectId},</if> |
| | | <if test="holeId != null and holeId != ''">hole_id = #{holeId},</if> |
| | | <if test="holeCode != null and holeCode != ''">hole_code = #{holeCode},</if> |
| | | <if test="name != null and name != ''">name = #{name},</if> |
| | | <if test="dataType != null and dataType != ''">data_type = #{dataType},</if> |
| | | <if test="dataUrl != null and dataUrl != ''">data_url = #{dataUrl},</if> |
| | |
| | | <result property="idCard" column="id_card" /> |
| | | <result property="personGroup" column="person_group" /> |
| | | <result property="responsibility" column="responsibility" /> |
| | | <result property="inSiteTime" column="in_site_time" /> |
| | | <result property="outSiteTime" column="out_site_time" /> |
| | | <result property="documentType" column="document_type" /> |
| | | <result property="documentCode" column="document_code" /> |
| | | <result property="documentPath" column="document_path" /> |
| | | <result property="status" column="status" /> |
| | | <result property="isDeleted" column="is_deleted" /> |
| | | <result property="createBy" column="create_by" /> |
| | |
| | | </resultMap> |
| | | |
| | | <sql id="selectProjectPersonVo"> |
| | | select ids, project_id, hole_id, name, type, phone, id_card , person_group , responsibility, status, is_deleted, create_by, create_time, update_by, update_time, remark from js_project_person |
| | | select ids, project_id, hole_id, name, type, phone, id_card , person_group , responsibility, in_site_time, out_site_time, document_type, document_code, document_path, status, is_deleted, create_by, create_time, update_by, update_time, remark from js_project_person |
| | | </sql> |
| | | |
| | | <select id="selectProjectPersonList" parameterType="ProjectPerson" resultMap="ProjectPersonResult"> |
| | | <include refid="selectProjectPersonVo"/> |
| | | <where> |
| | | <if test="projectId != null and projectId != ''"> and project_id = #{projectId}</if> |
| | | <if test="holeId != null and holeId != ''"> and hole_id = #{holeId}</if> |
| | | <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if> |
| | | <if test="type != null and type != ''"> and type = #{type}</if> |
| | | <if test="phone != null and phone != ''"> and phone = #{phone}</if> |
| | | <if test="remark != null and remark != ''"> and remark = #{remark}</if> |
| | | <if test="idCard != null and idCard != ''"> and id_card = #{idCard}</if> |
| | | <if test="personGroup != null and personGroup != ''"> and person_group = #{personGroup}</if> |
| | | <if test="responsibility != null and responsibility != ''"> and responsibility = #{responsibility}</if> |
| | | <if test="inSiteTime != null "> and in_site_time = #{inSiteTime}</if> |
| | | <if test="outSiteTime != null "> and out_site_time = #{outSiteTime}</if> |
| | | <if test="documentType != null and documentType != ''"> and document_type = #{documentType}</if> |
| | | <if test="documentCode != null and documentCode != ''"> and document_code = #{documentCode}</if> |
| | | <if test="documentPath != null and documentPath != ''"> and document_path = #{documentPath}</if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | <if test="idCard != null and idCard != ''">id_card,</if> |
| | | <if test="personGroup != null and personGroup != ''">person_group,</if> |
| | | <if test="responsibility != null and responsibility != ''">responsibility,</if> |
| | | <if test="inSiteTime != null ">in_site_time,</if> |
| | | <if test="outSiteTime != null ">out_site_time,</if> |
| | | <if test="documentType != null and documentType != ''">document_type,</if> |
| | | <if test="documentCode != null and documentCode != ''">document_code,</if> |
| | | <if test="documentPath != null and documentPath != ''">document_path,</if> |
| | | <if test="status != null and status != ''">status,</if> |
| | | <if test="isDeleted != null and isDeleted != ''">is_deleted,</if> |
| | | <if test="createBy != null and createBy != ''">create_by,</if> |
| | |
| | | <if test="idCard != null and idCard != ''">#{idCard},</if> |
| | | <if test="personGroup != null and personGroup != ''">#{personGroup},</if> |
| | | <if test="responsibility != null and responsibility != ''">#{responsibility},</if> |
| | | <if test="inSiteTime != null ">#{inSiteTime},</if> |
| | | <if test="outSiteTime != null ">#{outSiteTime},</if> |
| | | <if test="documentType != null and documentType != ''">#{documentType},</if> |
| | | <if test="documentCode != null and documentCode != ''">#{documentCode},</if> |
| | | <if test="documentPath != null and documentPath != ''">#{documentPath},</if> |
| | | <if test="status != null and status != ''">#{status},</if> |
| | | <if test="isDeleted != null and isDeleted != ''">#{isDeleted},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | |
| | | <if test="idCard != null and idCard != ''">id_card = #{idCard},</if> |
| | | <if test="personGroup != null and personGroup != ''">person_group = #{personGroup},</if> |
| | | <if test="responsibility != null and responsibility != ''">responsibility = #{responsibility},</if> |
| | | <if test="inSiteTime != null ">in_site_time = #{inSiteTime},</if> |
| | | <if test="outSiteTime != null ">out_site_time = #{outSiteTime},</if> |
| | | <if test="documentType != null and documentType != ''">document_type = #{documentType},</if> |
| | | <if test="documentCode != null and documentCode != ''">document_code = #{documentCode},</if> |
| | | <if test="documentPath != null and documentPath != ''">document_path = #{documentPath},</if> |
| | | <if test="status != null and status != ''">status = #{status},</if> |
| | | <if test="isDeleted != null and isDeleted != ''">is_deleted = #{isDeleted},</if> |
| | | <if test="createBy != null and createBy != ''">create_by = #{createBy},</if> |
New file |
| | |
| | | <!DOCTYPE html> |
| | | <html lang="zh" xmlns:th="http://www.thymeleaf.org" > |
| | | <head> |
| | | <th:block th:include="include :: header('新增钻孔日志')" /> |
| | | <th:block th:include="include :: datetimepicker-css" /> |
| | | </head> |
| | | <body class="white-bg"> |
| | | <div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
| | | <form class="form-horizontal m" id="form-holeLog-add"> |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">钻孔编号:</label> |
| | | <div class="col-sm-8"> |
| | | <input name="code" class="form-control" type="text"> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">起始深度:</label> |
| | | <div class="col-sm-8"> |
| | | <input name="beginDepth" class="form-control" type="text"> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">终止深度:</label> |
| | | <div class="col-sm-8"> |
| | | <input name="endDepth" class="form-control" type="text"> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">记录保存时间:</label> |
| | | <div class="col-sm-8"> |
| | | <div class="input-group date"> |
| | | <span class="input-group-addon"><i class="fa fa-calendar"></i></span> |
| | | <input name="createTime" class="form-control" placeholder="yyyy-MM-dd" type="text"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">描述员:</label> |
| | | <div class="col-sm-8"> |
| | | <input name="recordPerson" class="form-control" type="text"> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">描述备注:</label> |
| | | <div class="col-sm-8"> |
| | | <textarea name="description" class="form-control"></textarea> |
| | | </div> |
| | | </div> |
| | | </form> |
| | | </div> |
| | | <th:block th:include="include :: footer" /> |
| | | <th:block th:include="include :: datetimepicker-js" /> |
| | | <script th:inline="javascript"> |
| | | var prefix = ctx + "geo/holeLog" |
| | | var projectId = [[${projectId}]]; |
| | | |
| | | $("#form-holeLog-add").validate({ |
| | | focusCleanup: true |
| | | }); |
| | | |
| | | $("input[name='createTime']").datetimepicker({ |
| | | format: "yyyy-mm-dd", |
| | | minView: "month", |
| | | autoclose: true |
| | | }); |
| | | |
| | | function submitHandler() { |
| | | if ($.validate.form()) { |
| | | let formData = $('#form-holeLog-add').serialize(); |
| | | let data = formData + "&projectId=" + projectId; |
| | | $.operate.save(prefix + "/add", data); |
| | | } |
| | | } |
| | | </script> |
| | | </body> |
| | | </html> |
New file |
| | |
| | | <!DOCTYPE html> |
| | | <html lang="zh" xmlns:th="http://www.thymeleaf.org" > |
| | | <head> |
| | | <th:block th:include="include :: header('修改钻孔日志')" /> |
| | | <th:block th:include="include :: datetimepicker-css" /> |
| | | </head> |
| | | <body class="white-bg"> |
| | | <div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
| | | <form class="form-horizontal m" id="form-holeLog-edit" th:object="${holeLog}"> |
| | | <input name="id" th:field="*{id}" type="hidden"> |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">钻孔编号:</label> |
| | | <div class="col-sm-8"> |
| | | <input name="code" th:field="*{code}" class="form-control" type="text"> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">起始深度:</label> |
| | | <div class="col-sm-8"> |
| | | <input name="beginDepth" th:field="*{beginDepth}" class="form-control" type="text"> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">终止深度:</label> |
| | | <div class="col-sm-8"> |
| | | <input name="endDepth" th:field="*{endDepth}" class="form-control" type="text"> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">记录保存时间:</label> |
| | | <div class="col-sm-8"> |
| | | <div class="input-group date"> |
| | | <span class="input-group-addon"><i class="fa fa-calendar"></i></span> |
| | | <input name="createTime" th:value="${#dates.format(holeLog.createTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">描述员:</label> |
| | | <div class="col-sm-8"> |
| | | <input name="recordPerson" th:field="*{recordPerson}" class="form-control" type="text"> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">描述备注:</label> |
| | | <div class="col-sm-8"> |
| | | <textarea name="description" class="form-control">[[*{description}]]</textarea> |
| | | </div> |
| | | </div> |
| | | </form> |
| | | </div> |
| | | <th:block th:include="include :: footer" /> |
| | | <th:block th:include="include :: datetimepicker-js" /> |
| | | <script type="text/javascript"> |
| | | var prefix = ctx + "geo/holeLog"; |
| | | $("#form-holeLog-edit").validate({ |
| | | focusCleanup: true |
| | | }); |
| | | |
| | | $("input[name='createTime']").datetimepicker({ |
| | | format: "yyyy-mm-dd", |
| | | minView: "month", |
| | | autoclose: true |
| | | }); |
| | | |
| | | function submitHandler() { |
| | | if ($.validate.form()) { |
| | | $.operate.save(prefix + "/edit", $('#form-holeLog-edit').serialize()); |
| | | } |
| | | } |
| | | </script> |
| | | </body> |
| | | </html> |
New file |
| | |
| | | <!DOCTYPE html> |
| | | <html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"> |
| | | <head> |
| | | <th:block th:include="include :: header('钻孔日志列表')" /> |
| | | </head> |
| | | <body class="gray-bg"> |
| | | <div class="container-div"> |
| | | <div class="row"> |
| | | <div class="col-sm-12 search-collapse"> |
| | | <form id="formId"> |
| | | <div class="select-list"> |
| | | <ul> |
| | | <li> |
| | | <p>钻孔编号:</p> |
| | | <input type="text" name="code"/> |
| | | </li> |
| | | <li class="select-time"> |
| | | <p>记录保存时间:</p> |
| | | <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginCreateTime]"/> |
| | | <span>-</span> |
| | | <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endCreateTime]"/> |
| | | </li> |
| | | <li> |
| | | <p>描述员:</p> |
| | | <input type="text" name="recordPerson"/> |
| | | </li> |
| | | <li> |
| | | <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a> |
| | | <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a> |
| | | </li> |
| | | </ul> |
| | | </div> |
| | | </form> |
| | | </div> |
| | | |
| | | <div class="btn-group-sm" id="toolbar" role="group"> |
| | | <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="geo:holeLog:add"> |
| | | <i class="fa fa-plus"></i> 添加 |
| | | </a> |
| | | <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="geo:holeLog:edit"> |
| | | <i class="fa fa-edit"></i> 修改 |
| | | </a> |
| | | <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="geo:holeLog:remove"> |
| | | <i class="fa fa-remove"></i> 删除 |
| | | </a> |
| | | <!-- <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="geo:holeLog:export">--> |
| | | <!-- <i class="fa fa-download"></i> 导出--> |
| | | <!-- </a>--> |
| | | </div> |
| | | <div class="col-sm-12 select-table table-striped"> |
| | | <table id="bootstrap-table"></table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <th:block th:include="include :: footer" /> |
| | | <script th:inline="javascript"> |
| | | var editFlag = [[${@permission.hasPermi('geo:holeLog:edit')}]]; |
| | | var removeFlag = [[${@permission.hasPermi('geo:holeLog:remove')}]]; |
| | | var prefix = ctx + "geo/holeLog"; |
| | | var projectId=[[${projectId}]]; |
| | | |
| | | $(function() { |
| | | var options = { |
| | | url: prefix + "/list?projectId=" + projectId, |
| | | createUrl: prefix + "/add?projectId=" + projectId, |
| | | updateUrl: prefix + "/edit/{id}", |
| | | removeUrl: prefix + "/remove", |
| | | exportUrl: prefix + "/export", |
| | | modalName: "钻孔日志", |
| | | columns: [{ |
| | | checkbox: true |
| | | }, |
| | | { |
| | | field : 'id', |
| | | title : '主键', |
| | | visible: false |
| | | }, |
| | | { |
| | | field : 'code', |
| | | title : '钻孔编号' |
| | | }, |
| | | { |
| | | field : 'beginDepth', |
| | | title : '起始深度', |
| | | sortable: true |
| | | }, |
| | | { |
| | | field : 'endDepth', |
| | | title : '终止深度', |
| | | sortable: true |
| | | }, |
| | | { |
| | | field : 'createTime', |
| | | title : '记录保存时间', |
| | | sortable: true |
| | | }, |
| | | { |
| | | field : 'recordPerson', |
| | | title : '描述员' |
| | | }, |
| | | { |
| | | field : 'description', |
| | | title : '描述备注' |
| | | }, |
| | | { |
| | | title: '操作', |
| | | align: 'center', |
| | | formatter: function(value, row, index) { |
| | | var actions = []; |
| | | actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> '); |
| | | actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>'); |
| | | return actions.join(''); |
| | | } |
| | | }] |
| | | }; |
| | | $.table.init(options); |
| | | }); |
| | | </script> |
| | | </body> |
| | | </html> |
| | |
| | | </div> |
| | | <div class="box-header "> |
| | | <div class="box-title"> |
| | | <i class="glyphicon glyphicon-map-marker"></i> <a class="afont" th:href="@{/geo/holeLog(id=${project.ids})}" target="mainFrame" onclick="selected(this)">钻孔日志</a> |
| | | </div> |
| | | </div> |
| | | <div class="box-header "> |
| | | <div class="box-title"> |
| | | <i class="glyphicon glyphicon-user"></i> <a class="afont" th:href="@{/geo/projectPerson(id=${project.ids})}" target="mainFrame" onclick="selected(this)">人员管理</a> |
| | | </div> |
| | | </div> |
| | |
| | | <body class="white-bg"> |
| | | <div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
| | | <form class="form-horizontal m" id="form-projectData-add"> |
| | | <div class="form-group"> |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">资料名称:</label> |
| | | <div class="col-sm-8"> |
| | | <input name="name" class="form-control" type="text"> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">钻孔编号:</label> |
| | | <div class="col-sm-8"> |
| | | <input name="holeCode" class="form-control" type="text"> |
| | | </div> |
| | | </div> |
| | | <!-- <div class="form-group">--> |
| | | <!-- <label class="col-sm-3 control-label">资料类型:</label>--> |
| | | <!-- <div class="col-sm-8">--> |
| | |
| | | <div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
| | | <form class="form-horizontal m" id="form-projectData-edit" th:object="${projectData}"> |
| | | <input name="id" th:field="*{id}" type="hidden"> |
| | | <div class="form-group"> |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">资料名称:</label> |
| | | <div class="col-sm-8"> |
| | | <input name="name" th:field="*{name}" class="form-control" type="text"> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">钻孔编号:</label> |
| | | <div class="col-sm-8"> |
| | | <input name="holeCode" th:field="*{holeCode}" class="form-control" type="text"> |
| | | </div> |
| | | </div> |
| | | <!-- <div class="form-group"> --> |
| | | <!-- <label class="col-sm-3 control-label">资料类型:</label>--> |
| | | <!-- <div class="col-sm-8">--> |
| | |
| | | <input type="text" name="name"/> |
| | | </li> |
| | | <li> |
| | | <p>钻孔编号:</p> |
| | | <input type="text" name="holeCode"/> |
| | | </li> |
| | | <li> |
| | | <p>标签:</p> |
| | | <input type="text" name="labels"/> |
| | | </li> |
| | |
| | | field : 'name', |
| | | title : '资料名称' |
| | | }, |
| | | { |
| | | field : 'holeCode', |
| | | title : '钻孔编号' |
| | | }, |
| | | { |
| | | field : 'labels', |
| | | title : '标签' |
| | |
| | | <input type="text" name="name"/> |
| | | </li> |
| | | <li> |
| | | <p>钻孔编号:</p> |
| | | <input type="text" name="holeCode"/> |
| | | </li> |
| | | <li> |
| | | <p>业务类型:</p> |
| | | <select name="fileType" th:with="type=${@dict.getType('project_data_file_type')}"> |
| | | <option value="">所有</option> |
| | |
| | | field : 'name', |
| | | title : '资料名称' |
| | | }, |
| | | { |
| | | field : 'holeCode', |
| | | title : '钻孔编号' |
| | | }, |
| | | { |
| | | field : 'fileType', |
| | | title : '业务类型', |
| | |
| | | </li> |
| | | |
| | | <li> |
| | | <a class="btn btn-primary btn-rounded btn-sm" onclick="upload()"><i class="fa fa-search"></i> 上传</a> |
| | | <a class="btn btn-primary btn-rounded btn-sm" onclick="upload()"><i class="fa fa-upload"></i> 上传</a> |
| | | </li> |
| | | </ul> |
| | | </div> |
| | |
| | | <html lang="zh" xmlns:th="http://www.thymeleaf.org" > |
| | | <head> |
| | | <th:block th:include="include :: header('新增项目人员')" /> |
| | | <th:block th:include="include :: datetimepicker-css" /> |
| | | </head> |
| | | <body class="white-bg"> |
| | | <div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
| | |
| | | <input name="responsibility" class="form-control" type="text"> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">进场时间:</label> |
| | | <div class="col-sm-8"> |
| | | <div class="input-group date"> |
| | | <span class="input-group-addon"><i class="fa fa-calendar"></i></span> |
| | | <input name="inSiteTime" class="form-control" placeholder="yyyy-MM-dd" type="text"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">出场时间:</label> |
| | | <div class="col-sm-8"> |
| | | <div class="input-group date"> |
| | | <span class="input-group-addon"><i class="fa fa-calendar"></i></span> |
| | | <input name="outSiteTime" class="form-control" placeholder="yyyy-MM-dd" type="text"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">证件类型:</label> |
| | | <div class="col-sm-8"> |
| | | <input name="documentType" class="form-control" type="text"> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">证件编号:</label> |
| | | <div class="col-sm-8"> |
| | | <input name="documentCode" class="form-control" type="text"> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">上传证件:</label> |
| | | <div class="col-sm-8"> |
| | | <input type="file" name= "file" id="file"/> |
| | | </div> |
| | | </div> |
| | | |
| | | </form> |
| | | </div> |
| | | <th:block th:include="include :: footer" /> |
| | | <th:block th:include="include :: datetimepicker-js" /> |
| | | <script th:inline="javascript"> |
| | | var prefix = ctx + "geo/projectPerson" |
| | | var projectId = [[${projectId}]]; |
| | |
| | | }); |
| | | |
| | | function submitHandler() { |
| | | var result = doSubmitFile(); |
| | | var documentFile =null; |
| | | if(result !=null){ |
| | | if(result.code == web_status.SUCCESS){ |
| | | documentFile= result.fileName; |
| | | } |
| | | } |
| | | if ($.validate.form()) { |
| | | let formData = $('#form-projectPerson-add').serialize(); |
| | | let data = formData + "&projectId=" + projectId; |
| | | let data = formData + "&projectId=" + projectId +"&documentPath="+documentFile; |
| | | $.operate.save(prefix + "/add", data); |
| | | } |
| | | } |
| | | //上传文件 |
| | | function doSubmitFile(){ |
| | | var file = $('#file').val(); |
| | | if (file == '' || file ==null){ |
| | | return null; |
| | | } |
| | | var formData = new FormData(); |
| | | formData.append("file", $('#file')[0].files[0]); |
| | | var data = null; |
| | | $.ajax({ |
| | | url: ctx + "geo/projectPerson/uploadPersonFile", |
| | | data: formData, |
| | | cache: false, |
| | | contentType: false, |
| | | processData: false, |
| | | type: 'POST', |
| | | async:false, |
| | | success: function (result) { |
| | | data= result; |
| | | } |
| | | }); |
| | | return data; |
| | | } |
| | | |
| | | $("input[name='inSiteTime']").datetimepicker({ |
| | | format: "yyyy-mm-dd", |
| | | minView: "month", |
| | | autoclose: true |
| | | }); |
| | | |
| | | $("input[name='outSiteTime']").datetimepicker({ |
| | | format: "yyyy-mm-dd", |
| | | minView: "month", |
| | | autoclose: true |
| | | }); |
| | | |
| | | </script> |
| | | </body> |
| | | </html> |
New file |
| | |
| | | <!DOCTYPE html> |
| | | <html lang="zh" xmlns:th="http://www.thymeleaf.org" > |
| | | <head> |
| | | <th:block th:include="include :: header('新增项目人员')" /> |
| | | <th:block th:include="include :: datetimepicker-css" /> |
| | | </head> |
| | | <body class="white-bg"> |
| | | <div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
| | | <form class="form-horizontal m" id="form-projectPerson-add"> |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">人员名称:</label> |
| | | <div class="col-sm-8"> |
| | | <input name="name" class="form-control" type="text"> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">类型:</label> |
| | | <div class="col-sm-8"> |
| | | <select name="type" class="form-control m-b" th:with="type=${@dict.getType('project_person_type')}"> |
| | | <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">手机号:</label> |
| | | <div class="col-sm-8"> |
| | | <input name="phone" class="form-control" type="text"> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">身份证号:</label> |
| | | <div class="col-sm-8"> |
| | | <input name="idCard" class="form-control" type="text"> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">人员分组:</label> |
| | | <div class="col-sm-8"> |
| | | <input name="personGroup" class="form-control" type="text"> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">职责:</label> |
| | | <div class="col-sm-8"> |
| | | <input name="responsibility" class="form-control" type="text"> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">进场时间:</label> |
| | | <div class="col-sm-8"> |
| | | <div class="input-group date"> |
| | | <span class="input-group-addon"><i class="fa fa-calendar"></i></span> |
| | | <input name="inSiteTime" class="form-control" placeholder="yyyy-MM-dd" type="text"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">出场时间:</label> |
| | | <div class="col-sm-8"> |
| | | <div class="input-group date"> |
| | | <span class="input-group-addon"><i class="fa fa-calendar"></i></span> |
| | | <input name="outSiteTime" class="form-control" placeholder="yyyy-MM-dd" type="text"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">证件类型:</label> |
| | | <div class="col-sm-8"> |
| | | <input name="documentType" class="form-control" type="text"> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">证件编号:</label> |
| | | <div class="col-sm-8"> |
| | | <input name="documentCode" class="form-control" type="text"> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">上传证件:</label> |
| | | <div class="col-sm-8"> |
| | | <form id="formId" enctype="multipart/form-data"> |
| | | <div class="select-list"> |
| | | <ul> |
| | | <li> |
| | | <input type="file" id="file" name="file"/> |
| | | </li> |
| | | <li> |
| | | <a class="btn btn-primary btn-rounded btn-sm" onclick="upload()"><i class="fa fa-upload"></i> 上传</a> |
| | | </li> |
| | | </ul> |
| | | </div> |
| | | </form> |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | </form> |
| | | </div> |
| | | <th:block th:include="include :: footer" /> |
| | | <th:block th:include="include :: datetimepicker-js" /> |
| | | <script th:inline="javascript"> |
| | | var prefix = ctx + "geo/projectPerson" |
| | | var projectId = [[${projectId}]]; |
| | | |
| | | $("#form-projectPerson-add").validate({ |
| | | focusCleanup: true |
| | | }); |
| | | |
| | | function submitHandler() { |
| | | if ($.validate.form()) { |
| | | let formData = $('#form-projectPerson-add').serialize(); |
| | | let data = formData + "&projectId=" + projectId; |
| | | $.operate.save(prefix + "/add", data); |
| | | } |
| | | } |
| | | |
| | | $("input[name='inSiteTime']").datetimepicker({ |
| | | format: "yyyy-mm-dd", |
| | | minView: "month", |
| | | autoclose: true |
| | | }); |
| | | |
| | | $("input[name='outSiteTime']").datetimepicker({ |
| | | format: "yyyy-mm-dd", |
| | | minView: "month", |
| | | autoclose: true |
| | | }); |
| | | |
| | | function upload(){ |
| | | var file = $('#file').val(); |
| | | if (file == '' || (!$.common.endWith(file, '.png'))){ |
| | | $.modal.msgWarning("请选择待上传的文件"); |
| | | return false; |
| | | } |
| | | |
| | | var formData = new FormData(); |
| | | formData.append("file", $('#file')[0].files[0]); |
| | | formData.append("projectId", projectId); |
| | | $.modal.loading("数据上传解析中"); |
| | | |
| | | $.ajax({ |
| | | url: ctx + "geo/projectPerson/uploadImg", |
| | | data: formData, |
| | | cache: false, |
| | | contentType: false, |
| | | processData: false, |
| | | type: 'POST', |
| | | success: function (result) { |
| | | if (result.code == web_status.SUCCESS) { |
| | | $.modal.closeLoading(); |
| | | $.modal.alertSuccess(result.msg); |
| | | } else if (result.code == web_status.WARNING) { |
| | | $.modal.closeLoading(); |
| | | $.modal.alertWarning(result.msg) |
| | | } else { |
| | | $.modal.closeLoading(); |
| | | $.modal.alertError(result.msg); |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | </script> |
| | | </body> |
| | | </html> |
| | |
| | | <html lang="zh" xmlns:th="http://www.thymeleaf.org" > |
| | | <head> |
| | | <th:block th:include="include :: header('修改项目人员')" /> |
| | | <th:block th:include="include :: datetimepicker-css" /> |
| | | </head> |
| | | <body class="white-bg"> |
| | | <div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
| | |
| | | <input name="responsibility" th:field="*{responsibility}" class="form-control" type="text"> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">进场时间:</label> |
| | | <div class="col-sm-8"> |
| | | <div class="input-group date"> |
| | | <span class="input-group-addon"><i class="fa fa-calendar"></i></span> |
| | | <input name="inSiteTime" th:value="${#dates.format(projectPerson.inSiteTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">出场时间:</label> |
| | | <div class="col-sm-8"> |
| | | <div class="input-group date"> |
| | | <span class="input-group-addon"><i class="fa fa-calendar"></i></span> |
| | | <input name="outSiteTime" th:value="${#dates.format(projectPerson.outSiteTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">证件类型:</label> |
| | | <div class="col-sm-8"> |
| | | <input name="documentType" th:field="*{documentType}" class="form-control" type="text"> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">证件编号:</label> |
| | | <div class="col-sm-8"> |
| | | <input name="documentCode" th:field="*{documentCode}" class="form-control" type="text"> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">上传证件:</label> |
| | | <div class="col-sm-8"> |
| | | |
| | | <input type="file" name= "file" id="file"/> |
| | | |
| | | </div> |
| | | </div> |
| | | </form> |
| | | </div> |
| | | <th:block th:include="include :: footer" /> |
| | | <th:block th:include="include :: datetimepicker-js" /> |
| | | <script type="text/javascript"> |
| | | var prefix = ctx + "geo/projectPerson"; |
| | | $("#form-projectPerson-edit").validate({ |
| | |
| | | }); |
| | | |
| | | function submitHandler() { |
| | | var result = doSubmitFile(); |
| | | var documentFile =null; |
| | | if(result !=null){ |
| | | if(result.code == web_status.SUCCESS){ |
| | | documentFile= result.fileName; |
| | | } |
| | | } |
| | | if ($.validate.form()) { |
| | | $.operate.save(prefix + "/edit", $('#form-projectPerson-edit').serialize()); |
| | | let formData = $('#form-projectPerson-edit').serialize(); |
| | | let data = formData +"&documentPath="+documentFile; |
| | | $.operate.save(prefix + "/edit",data); |
| | | } |
| | | } |
| | | |
| | | //上传文件 |
| | | function doSubmitFile(){ |
| | | var file = $('#file').val(); |
| | | if (file == '' || file ==null){ |
| | | return null; |
| | | } |
| | | var formData = new FormData(); |
| | | formData.append("file", $('#file')[0].files[0]); |
| | | var data = null; |
| | | $.ajax({ |
| | | url: ctx + "geo/projectPerson/uploadPersonFile", |
| | | data: formData, |
| | | cache: false, |
| | | contentType: false, |
| | | processData: false, |
| | | type: 'POST', |
| | | async:false, |
| | | success: function (result) { |
| | | data= result; |
| | | } |
| | | }); |
| | | return data; |
| | | } |
| | | |
| | | |
| | | $("input[name='inSiteTime']").datetimepicker({ |
| | | format: "yyyy-mm-dd", |
| | | minView: "month", |
| | | autoclose: true |
| | | }); |
| | | |
| | | $("input[name='outSiteTime']").datetimepicker({ |
| | | format: "yyyy-mm-dd", |
| | | minView: "month", |
| | | autoclose: true |
| | | }); |
| | | </script> |
| | | </body> |
| | | </html> |
| | |
| | | field : 'responsibility', |
| | | title : '职责' |
| | | }, |
| | | { |
| | | field : 'remark', |
| | | title : '备注' |
| | | }, |
| | | { |
| | | field : 'inSiteTime', |
| | | title : '进场时间' |
| | | }, |
| | | { |
| | | field : 'outSiteTime', |
| | | title : '出场时间' |
| | | }, |
| | | { |
| | | field : 'documentType', |
| | | title : '证件类型', |
| | | visible: false |
| | | }, |
| | | { |
| | | field : 'documentCode', |
| | | title : '证件编号', |
| | | visible: false |
| | | }, |
| | | { |
| | | field : 'documentPath', |
| | | title : '证件照片', |
| | | formatter: function(value, row, index) { |
| | | return `<a onclick="viewUserFile('${row.documentPath}')" href="#">证件照</a>`; |
| | | } |
| | | |
| | | }, |
| | | |
| | | { |
| | | title: '操作', |
| | | align: 'center', |
| | |
| | | }; |
| | | $.table.init(options); |
| | | }); |
| | | //查看证件照片 |
| | | function viewUserFile(path) { |
| | | var filepath = "/bjfw/"+path; |
| | | window.open(filepath) |
| | | } |
| | | </script> |
| | | </body> |
| | | </html> |