更新需求:
1.更新缺陷列表质控报表 2.重新校验完整性功能 3.终审页面超期字样、退回按钮去掉 4.首次签收页面增加选择条件 超期天数 ————2021.03.14 王泽钦master
parent
09fc19ea25
commit
76cc294a3e
@ -0,0 +1,73 @@
|
|||||||
|
package com.emr.controller;
|
||||||
|
|
||||||
|
import com.emr.entity.Archive_Master;
|
||||||
|
import com.emr.entity.Archive_Master_Vo;
|
||||||
|
import com.emr.entity.TempMasterID;
|
||||||
|
import com.emr.service.Archive_MasterService;
|
||||||
|
import com.emr.service.TempMasterIDService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.ui.Model;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Controller
|
||||||
|
public class TempHandleWzController {
|
||||||
|
@Autowired
|
||||||
|
private TempMasterIDService tempMasterIDService;
|
||||||
|
@Autowired
|
||||||
|
private Archive_MasterService archiveMasterService;
|
||||||
|
|
||||||
|
@RequestMapping("toReloadWzPage")
|
||||||
|
public String toReloadWzPage() {
|
||||||
|
return "reloadWz";
|
||||||
|
}
|
||||||
|
|
||||||
|
@RequestMapping("selectByInpNoAndVisitId")
|
||||||
|
@ResponseBody
|
||||||
|
public List<Archive_Master> selectByInpNoAndVisitId(Archive_Master_Vo archive_master_vo){
|
||||||
|
return this.archiveMasterService.selectByUnfile(archive_master_vo);
|
||||||
|
}
|
||||||
|
|
||||||
|
@RequestMapping("reloadWz")
|
||||||
|
@ResponseBody
|
||||||
|
public int reloadWz(String masterId){
|
||||||
|
int rows = 0;
|
||||||
|
TempMasterID tempMasterID = new TempMasterID();
|
||||||
|
tempMasterID.setId(masterId);
|
||||||
|
List<TempMasterID> list = new ArrayList<>();
|
||||||
|
list.add(tempMasterID);
|
||||||
|
rows = tempMasterIDService.reloadWz(list);
|
||||||
|
return rows;
|
||||||
|
}
|
||||||
|
|
||||||
|
@RequestMapping("reloadWzAll")
|
||||||
|
@ResponseBody
|
||||||
|
public int reloadWzAll(){
|
||||||
|
int rows = 0;
|
||||||
|
//List<TempMasterID> list = tempMasterIDService.selectAllMasterID();
|
||||||
|
//rows = tempMasterIDService.reloadWz(list);
|
||||||
|
|
||||||
|
TempMasterID t1 = new TempMasterID();
|
||||||
|
t1.setId("36cc3c27-447e-48e4-93b9-06b3acc397ca");
|
||||||
|
TempMasterID t2 = new TempMasterID();
|
||||||
|
t2.setId("a490ca0b-879f-4ae4-9238-33c44e5fda99");
|
||||||
|
TempMasterID t3 = new TempMasterID();
|
||||||
|
t3.setId("0687f5a2-40f0-48ce-872b-922d8ceba7da");
|
||||||
|
TempMasterID t4 = new TempMasterID();
|
||||||
|
t4.setId("169044f8-21a2-4420-ad01-c24b19910e3a");
|
||||||
|
TempMasterID t5 = new TempMasterID();
|
||||||
|
t5.setId("3f3d18cf-6f75-4367-9ada-3684e176c102");
|
||||||
|
List<TempMasterID> list = new ArrayList<>();
|
||||||
|
list.add(t1);
|
||||||
|
list.add(t2);
|
||||||
|
list.add(t3);
|
||||||
|
list.add(t4);
|
||||||
|
list.add(t5);
|
||||||
|
rows = tempMasterIDService.reloadWz(list);
|
||||||
|
return rows;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
package com.emr.dao;
|
||||||
|
|
||||||
|
import com.emr.entity.TempMasterID;
|
||||||
|
import com.emr.entity.TempMasterIDExample;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface TempMasterIDMapper {
|
||||||
|
int insert(TempMasterID record);
|
||||||
|
|
||||||
|
int insertSelective(TempMasterID record);
|
||||||
|
|
||||||
|
List<TempMasterID> selectByExample(TempMasterIDExample example);
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
package com.emr.entity;
|
||||||
|
|
||||||
|
public class TempMasterID {
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
public String getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(String id) {
|
||||||
|
this.id = id == null ? null : id.trim();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,270 @@
|
|||||||
|
package com.emr.entity;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class TempMasterIDExample {
|
||||||
|
protected String orderByClause;
|
||||||
|
|
||||||
|
protected boolean distinct;
|
||||||
|
|
||||||
|
protected List<Criteria> oredCriteria;
|
||||||
|
|
||||||
|
public TempMasterIDExample() {
|
||||||
|
oredCriteria = new ArrayList<Criteria>();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOrderByClause(String orderByClause) {
|
||||||
|
this.orderByClause = orderByClause;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOrderByClause() {
|
||||||
|
return orderByClause;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDistinct(boolean distinct) {
|
||||||
|
this.distinct = distinct;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isDistinct() {
|
||||||
|
return distinct;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Criteria> getOredCriteria() {
|
||||||
|
return oredCriteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void or(Criteria criteria) {
|
||||||
|
oredCriteria.add(criteria);
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria or() {
|
||||||
|
Criteria criteria = createCriteriaInternal();
|
||||||
|
oredCriteria.add(criteria);
|
||||||
|
return criteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria createCriteria() {
|
||||||
|
Criteria criteria = createCriteriaInternal();
|
||||||
|
if (oredCriteria.size() == 0) {
|
||||||
|
oredCriteria.add(criteria);
|
||||||
|
}
|
||||||
|
return criteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criteria createCriteriaInternal() {
|
||||||
|
Criteria criteria = new Criteria();
|
||||||
|
return criteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void clear() {
|
||||||
|
oredCriteria.clear();
|
||||||
|
orderByClause = null;
|
||||||
|
distinct = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected abstract static class GeneratedCriteria {
|
||||||
|
protected List<Criterion> criteria;
|
||||||
|
|
||||||
|
protected GeneratedCriteria() {
|
||||||
|
super();
|
||||||
|
criteria = new ArrayList<Criterion>();
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isValid() {
|
||||||
|
return criteria.size() > 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Criterion> getAllCriteria() {
|
||||||
|
return criteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Criterion> getCriteria() {
|
||||||
|
return criteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void addCriterion(String condition) {
|
||||||
|
if (condition == null) {
|
||||||
|
throw new RuntimeException("Value for condition cannot be null");
|
||||||
|
}
|
||||||
|
criteria.add(new Criterion(condition));
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void addCriterion(String condition, Object value, String property) {
|
||||||
|
if (value == null) {
|
||||||
|
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||||
|
}
|
||||||
|
criteria.add(new Criterion(condition, value));
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||||
|
if (value1 == null || value2 == null) {
|
||||||
|
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||||
|
}
|
||||||
|
criteria.add(new Criterion(condition, value1, value2));
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdIsNull() {
|
||||||
|
addCriterion("id is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdIsNotNull() {
|
||||||
|
addCriterion("id is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdEqualTo(String value) {
|
||||||
|
addCriterion("id =", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdNotEqualTo(String value) {
|
||||||
|
addCriterion("id <>", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdGreaterThan(String value) {
|
||||||
|
addCriterion("id >", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdGreaterThanOrEqualTo(String value) {
|
||||||
|
addCriterion("id >=", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdLessThan(String value) {
|
||||||
|
addCriterion("id <", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdLessThanOrEqualTo(String value) {
|
||||||
|
addCriterion("id <=", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdLike(String value) {
|
||||||
|
addCriterion("id like", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdNotLike(String value) {
|
||||||
|
addCriterion("id not like", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdIn(List<String> values) {
|
||||||
|
addCriterion("id in", values, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdNotIn(List<String> values) {
|
||||||
|
addCriterion("id not in", values, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdBetween(String value1, String value2) {
|
||||||
|
addCriterion("id between", value1, value2, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdNotBetween(String value1, String value2) {
|
||||||
|
addCriterion("id not between", value1, value2, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class Criteria extends GeneratedCriteria {
|
||||||
|
|
||||||
|
protected Criteria() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class Criterion {
|
||||||
|
private String condition;
|
||||||
|
|
||||||
|
private Object value;
|
||||||
|
|
||||||
|
private Object secondValue;
|
||||||
|
|
||||||
|
private boolean noValue;
|
||||||
|
|
||||||
|
private boolean singleValue;
|
||||||
|
|
||||||
|
private boolean betweenValue;
|
||||||
|
|
||||||
|
private boolean listValue;
|
||||||
|
|
||||||
|
private String typeHandler;
|
||||||
|
|
||||||
|
public String getCondition() {
|
||||||
|
return condition;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object getValue() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object getSecondValue() {
|
||||||
|
return secondValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isNoValue() {
|
||||||
|
return noValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isSingleValue() {
|
||||||
|
return singleValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isBetweenValue() {
|
||||||
|
return betweenValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isListValue() {
|
||||||
|
return listValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTypeHandler() {
|
||||||
|
return typeHandler;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criterion(String condition) {
|
||||||
|
super();
|
||||||
|
this.condition = condition;
|
||||||
|
this.typeHandler = null;
|
||||||
|
this.noValue = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criterion(String condition, Object value, String typeHandler) {
|
||||||
|
super();
|
||||||
|
this.condition = condition;
|
||||||
|
this.value = value;
|
||||||
|
this.typeHandler = typeHandler;
|
||||||
|
if (value instanceof List<?>) {
|
||||||
|
this.listValue = true;
|
||||||
|
} else {
|
||||||
|
this.singleValue = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criterion(String condition, Object value) {
|
||||||
|
this(condition, value, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||||
|
super();
|
||||||
|
this.condition = condition;
|
||||||
|
this.value = value;
|
||||||
|
this.secondValue = secondValue;
|
||||||
|
this.typeHandler = typeHandler;
|
||||||
|
this.betweenValue = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criterion(String condition, Object value, Object secondValue) {
|
||||||
|
this(condition, value, secondValue, null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
package com.emr.service;
|
||||||
|
|
||||||
|
import com.emr.entity.Archive_Master;
|
||||||
|
import com.emr.entity.Archive_Master_Vo;
|
||||||
|
import com.emr.entity.TempMasterID;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface TempMasterIDService {
|
||||||
|
List<TempMasterID> selectAllMasterID();
|
||||||
|
|
||||||
|
//重新校验完整性并赋值
|
||||||
|
int reloadWz(List<TempMasterID> masterIDList);
|
||||||
|
}
|
@ -0,0 +1,81 @@
|
|||||||
|
package com.emr.service.ipml;
|
||||||
|
|
||||||
|
import com.emr.dao.Archive_MasterMapper;
|
||||||
|
import com.emr.dao.TempMasterIDMapper;
|
||||||
|
import com.emr.entity.Archive_Master;
|
||||||
|
import com.emr.entity.TempMasterID;
|
||||||
|
import com.emr.entity.TempMasterIDExample;
|
||||||
|
import com.emr.service.TempMasterIDService;
|
||||||
|
import org.apache.cxf.endpoint.Client;
|
||||||
|
import org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
public class TempMasterIDServiceImpl implements TempMasterIDService {
|
||||||
|
@Autowired
|
||||||
|
private TempMasterIDMapper tempMasterIDMapper;
|
||||||
|
@Autowired
|
||||||
|
private Archive_MasterMapper archive_masterMapper;
|
||||||
|
@Value("${HomepageDictionary}")
|
||||||
|
private String HomepageDictionary;
|
||||||
|
@Value("${HomepageMethod}")
|
||||||
|
private String HomepageMethod;
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<TempMasterID> selectAllMasterID() {
|
||||||
|
return tempMasterIDMapper.selectByExample(new TempMasterIDExample());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int reloadWz(List<TempMasterID> masterIDList) {
|
||||||
|
String result = "";
|
||||||
|
int rows = 0;
|
||||||
|
ArrayList<Archive_Master> archive_masters = new ArrayList<>();
|
||||||
|
Archive_Master archive_master = null;
|
||||||
|
try {
|
||||||
|
String endpoint = HomepageDictionary;
|
||||||
|
String method = HomepageMethod;
|
||||||
|
JaxWsDynamicClientFactory factory = JaxWsDynamicClientFactory.newInstance();
|
||||||
|
Client client = factory.createClient(endpoint);
|
||||||
|
// HomepageDictionary_Service homepageDictionary_service = new HomepageDictionary_Service();
|
||||||
|
// com.emr.webservice.HomepageDictionary homepageDictionaryImplPort = homepageDictionary_service.getHomepageDictionaryImplPort();
|
||||||
|
|
||||||
|
// 设置超时单位为毫秒
|
||||||
|
/*HTTPConduit conduit = (HTTPConduit)client.getConduit();
|
||||||
|
HTTPClientPolicy policy = new HTTPClientPolicy();
|
||||||
|
policy.setConnectionTimeout(30000);//连接超时时间
|
||||||
|
policy.setAllowChunking(false);
|
||||||
|
policy.setReceiveTimeout(180000);//请求超时时间.
|
||||||
|
conduit.setClient(policy);*/
|
||||||
|
|
||||||
|
for (TempMasterID tempMasterID:masterIDList) {
|
||||||
|
archive_master = new Archive_Master();
|
||||||
|
String temp = tempMasterID.getId();
|
||||||
|
Object[] res = null;
|
||||||
|
res = client.invoke(method, temp);
|
||||||
|
result = (String) res[0];
|
||||||
|
// String result = homepageDictionaryImplPort.checkData(temp);
|
||||||
|
|
||||||
|
//修改lockinfo
|
||||||
|
archive_master.setId(temp);
|
||||||
|
archive_master.setLockinfo(result);
|
||||||
|
archive_masters.add(archive_master);
|
||||||
|
//rows = archive_masterMapper.updateByClo(archive_master);
|
||||||
|
//TODO 手动提交事务
|
||||||
|
|
||||||
|
}
|
||||||
|
for (Archive_Master temp: archive_masters) {
|
||||||
|
rows = archive_masterMapper.updateByClo(temp);
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
System.err.println(e.toString());
|
||||||
|
}
|
||||||
|
return rows;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,71 @@
|
|||||||
|
<?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.emr.dao.TempMasterIDMapper">
|
||||||
|
<resultMap id="BaseResultMap" type="com.emr.entity.TempMasterID">
|
||||||
|
<result column="id" jdbcType="VARCHAR" property="id" />
|
||||||
|
</resultMap>
|
||||||
|
<sql id="Example_Where_Clause">
|
||||||
|
<where>
|
||||||
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||||
|
<if test="criteria.valid">
|
||||||
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||||
|
<foreach collection="criteria.criteria" item="criterion">
|
||||||
|
<choose>
|
||||||
|
<when test="criterion.noValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.singleValue">
|
||||||
|
and ${criterion.condition} #{criterion.value}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.betweenValue">
|
||||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.listValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||||
|
#{listItem}
|
||||||
|
</foreach>
|
||||||
|
</when>
|
||||||
|
</choose>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</where>
|
||||||
|
</sql>
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
id
|
||||||
|
</sql>
|
||||||
|
<select id="selectByExample" parameterType="com.emr.entity.TempMasterIDExample" resultMap="BaseResultMap">
|
||||||
|
select
|
||||||
|
<if test="distinct">
|
||||||
|
distinct
|
||||||
|
</if>
|
||||||
|
'false' as QUERYID,
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from TempMasterID
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
<if test="orderByClause != null">
|
||||||
|
order by ${orderByClause}
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
<insert id="insert" parameterType="com.emr.entity.TempMasterID">
|
||||||
|
insert into TempMasterID (id)
|
||||||
|
values (#{id,jdbcType=VARCHAR})
|
||||||
|
</insert>
|
||||||
|
<insert id="insertSelective" parameterType="com.emr.entity.TempMasterID">
|
||||||
|
insert into TempMasterID
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">
|
||||||
|
id,
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">
|
||||||
|
#{id,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
</mapper>
|
@ -0,0 +1,102 @@
|
|||||||
|
<%--
|
||||||
|
Created by IntelliJ IDEA.
|
||||||
|
User: 56827
|
||||||
|
Date: 2021/3/4
|
||||||
|
Time: 20:54
|
||||||
|
To change this template use File | Settings | File Templates.
|
||||||
|
--%>
|
||||||
|
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Title</title>
|
||||||
|
<%@include file="../jspf/comm.jspf" %>
|
||||||
|
<%@ include file="../jspf/ztreeCommom.jsp" %>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div style="margin-left:30px;margin-right:10px;height:auto">
|
||||||
|
<%--<form id="form" name="form" method="post" action="${pageContext.request.contextPath }/selectByInpNoAndVisitId">--%>
|
||||||
|
<form>
|
||||||
|
<div>
|
||||||
|
<label for="inpNo">住院号:</label>
|
||||||
|
<input type="text" id="inpNo" placeholder="请输入住院号">
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<label for="visitId">住院次数:</label>
|
||||||
|
<input type="number" id="visitId" placeholder="请输入次数">
|
||||||
|
</div>
|
||||||
|
<button type="button" id="searchBtn">查询</button>
|
||||||
|
<button type="button" id="reloadWz">重新校验完整性</button>
|
||||||
|
<button type="button" id="reloadWzAll">重新校验完整性(缺失清单)</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<label>患者id:</label>
|
||||||
|
<textarea id="masterId" style="height: 200px;width: 400px">
|
||||||
|
|
||||||
|
</textarea>
|
||||||
|
<label>完整性信息:</label>
|
||||||
|
<textarea id="wzContent" style="height: 200px;width: 400px">
|
||||||
|
|
||||||
|
</textarea>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(function () {
|
||||||
|
$("#searchBtn").on('click', function () {
|
||||||
|
var inpNo = $("#inpNo").val();
|
||||||
|
var visitId = $("#visitId").val();
|
||||||
|
$.ajax({
|
||||||
|
url: "${pageContext.request.contextPath }/selectByInpNoAndVisitId",
|
||||||
|
type: "POST",
|
||||||
|
data: {inpNo: inpNo, visitId: visitId},
|
||||||
|
success: function (result) {
|
||||||
|
console.log(result);
|
||||||
|
if (result.length > 0) {
|
||||||
|
$("#masterId").val(result[0].id);
|
||||||
|
$("#wzContent").val(result[0].lockinfo);
|
||||||
|
}else {
|
||||||
|
alert("不存在该患者");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
$("#reloadWz").on('click', function () {
|
||||||
|
var masterId = $("#masterId").val();
|
||||||
|
$.ajax({
|
||||||
|
url: "${pageContext.request.contextPath }/reloadWz",
|
||||||
|
type: "POST",
|
||||||
|
data: {masterId: masterId},
|
||||||
|
success: function (result) {
|
||||||
|
console.log(result);
|
||||||
|
if (result > 0) {
|
||||||
|
alert("重新校验成功");
|
||||||
|
}else {
|
||||||
|
alert("重新校验失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
$("#reloadWzAll").on('click', function () {
|
||||||
|
//var masterId = $("#masterId").val();
|
||||||
|
$.ajax({
|
||||||
|
url: "${pageContext.request.contextPath }/reloadWzAll",
|
||||||
|
type: "GET",
|
||||||
|
data: null,
|
||||||
|
success: function (result) {
|
||||||
|
// console.log(result.length);
|
||||||
|
// console.log(result);
|
||||||
|
if (result > 0) {
|
||||||
|
alert("重新校验成功");
|
||||||
|
}else {
|
||||||
|
alert("重新校验失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in New Issue