외사경찰현황 수정이력 오류 수정.
parent
2fcc444b35
commit
a3e97665b3
|
|
@ -305,7 +305,8 @@
|
|||
ofc_in_date,
|
||||
(select item_value from code_mgt where item_cd = title_cd) as title_cd,
|
||||
title_in_date,
|
||||
(select item_value from code_mgt where item_cd = outturn_cd) as outturn_cd,
|
||||
(select item_value from code_mgt where item_cd = duty_cd) as duty_cd,
|
||||
(select item_value from code_mgt where item_cd = outturn_cd) as outturn_cd,
|
||||
(select item_value from code_mgt where item_cd = series_cd) as series_cd,
|
||||
(select item_value from code_mgt where item_cd = language_cd) as language_cd
|
||||
from user_info_history
|
||||
|
|
|
|||
|
|
@ -1,15 +1,15 @@
|
|||
$(document).on('click', '.policeTr', function (event){
|
||||
const target = event.target;
|
||||
if(!(target.className === "checkBoxTd" ||$(target).parents("td").length>0)){
|
||||
const userSeq = (Number($(this).find(".userSeq").val()));
|
||||
showModal(userSeq);
|
||||
}
|
||||
const target = event.target;
|
||||
if(!(target.className === "checkBoxTd" ||$(target).parents("td").length>0)){
|
||||
const userSeq = (Number($(this).find(".userSeq").val()));
|
||||
showModal(userSeq);
|
||||
}
|
||||
});
|
||||
|
||||
function showModal(userSeq){
|
||||
$.ajax({
|
||||
$.ajax({
|
||||
url: '/police/policeEditModal',
|
||||
data: {userSeq: userSeq},
|
||||
data: {userSeq: userSeq},
|
||||
type: 'GET',
|
||||
dataType:"html",
|
||||
success: function(html){
|
||||
|
|
@ -84,10 +84,10 @@ $(document).on('click', '#updateBtn', function (){
|
|||
})
|
||||
|
||||
$(document).on('click', '#historyTab', function (){
|
||||
const userSeq = (Number($(this).data('userseq')));
|
||||
const userSeq = (Number($(this).data('userseq')));
|
||||
$.ajax({
|
||||
url: '/police/policeHistory',
|
||||
data: {userSeq: userSeq},
|
||||
data: {userSeq: userSeq},
|
||||
type: 'GET',
|
||||
dataType:"html",
|
||||
success: function(html){
|
||||
|
|
@ -101,42 +101,43 @@ $(document).on('click', '#historyTab', function (){
|
|||
})
|
||||
|
||||
$(document).on('click', '#editTab', function (){
|
||||
const userSeq = (Number($(this).data('userseq')));
|
||||
showModal(userSeq);
|
||||
const userSeq = (Number($(this).data('userseq')));
|
||||
showModal(userSeq);
|
||||
})
|
||||
|
||||
$(document).on('click', '.historyInfoTr', function (){
|
||||
$(this).find('.hisChk').prop('checked',true)
|
||||
if($(this).find('.hisChk').prop('checked')){
|
||||
$('.hisChk').prop('checked',false);
|
||||
$(this).find('.hisChk').prop('checked',true)
|
||||
}
|
||||
$(this).find('.hisChk').prop('checked',true)
|
||||
if($(this).find('.hisChk').prop('checked')){
|
||||
$('.hisChk').prop('checked',false);
|
||||
$(this).find('.hisChk').prop('checked',true)
|
||||
}
|
||||
$.ajax({
|
||||
url: '/police/policeHistoryView',
|
||||
data: {
|
||||
userSeq: Number($(this).find(".userSeq").val()),
|
||||
versionNo : Number($(this).find(".verNo").val())
|
||||
},
|
||||
userSeq: Number($(this).find(".userSeq").val()),
|
||||
versionNo : Number($(this).find(".verNo").val())
|
||||
},
|
||||
type: 'GET',
|
||||
dataType:"json",
|
||||
success: function(data){
|
||||
$('#vDicCode').val(data.dicCode);
|
||||
$('#vUserId').val(data.userId);
|
||||
$('#vUserNm').val(data.userNm);
|
||||
$('#vPhone').val(data.phoneNo);
|
||||
$('#vEmail').val(data.email);
|
||||
$('#vSex').val(data.sex);
|
||||
$('#vBirth').val(data.birthDate);
|
||||
$('#vPoliceInDate').val(data.policeInDate);
|
||||
$('#vOgCd').val(data.ogCd);
|
||||
$('#vOrganInDate').val(data.organInDate);
|
||||
$('#vOfcCd').val(data.ofcCd);
|
||||
$('#vOfcInDate').val(data.ofcInDate);
|
||||
$('#vTitleCd').val(data.titleCd);
|
||||
$('#vTitleInDate').val(data.titleInDate);
|
||||
$('#vOutturnCd').val(data.outturnCd);
|
||||
$('#vSeriesCd').val(data.seriesCd);
|
||||
$('#vLanguageCd').val(data.languageCd);
|
||||
$('#vDicCode').val(data.dicCode);
|
||||
$('#vUserId').val(data.userId);
|
||||
$('#vUserNm').val(data.userNm);
|
||||
$('#vPhone').val(data.phoneNo);
|
||||
$('#vEmail').val(data.email);
|
||||
$('#vSex').val(data.sex);
|
||||
$('#vBirth').val(data.birthDate);
|
||||
$('#vPoliceInDate').val(data.policeInDate);
|
||||
$('#vOgCd').val(data.ogCd);
|
||||
$('#vOrganInDate').val(data.organInDate);
|
||||
$('#vOfcCd').val(data.ofcCd);
|
||||
$('#vOfcInDate').val(data.ofcInDate);
|
||||
$('#vTitleCd').val(data.titleCd);
|
||||
$('#vTitleInDate').val(data.titleInDate);
|
||||
$('#vDutyCd').val(data.dutyCd);
|
||||
$('#vOutturnCd').val(data.outturnCd);
|
||||
$('#vSeriesCd').val(data.seriesCd);
|
||||
$('#vLanguageCd').val(data.languageCd);
|
||||
},
|
||||
error:function(e){
|
||||
ajaxErrorAction(e);
|
||||
|
|
@ -145,23 +146,23 @@ $(document).on('click', '.historyInfoTr', function (){
|
|||
})
|
||||
|
||||
$(document).on('click', '#previousTab', function (){
|
||||
const userStatus = $(this).data('userstatus');
|
||||
location.href = "/police/policeList?userStatus="+userStatus;
|
||||
const userStatus = $(this).data('userstatus');
|
||||
location.href = "/police/policeList?userStatus="+userStatus;
|
||||
})
|
||||
|
||||
$(document).on('click', '#presentTab', function (){
|
||||
const userStatus = $(this).data('userstatus');
|
||||
location.href = "/police/policeList?userStatus="+userStatus;
|
||||
const userStatus = $(this).data('userstatus');
|
||||
location.href = "/police/policeList?userStatus="+userStatus;
|
||||
})
|
||||
$(document).on('click', '#notPoliceTab', function (){
|
||||
const userStatus = $(this).data('userstatus');
|
||||
location.href = "/police/policeList?userStatus="+userStatus;
|
||||
const userStatus = $(this).data('userstatus');
|
||||
location.href = "/police/policeList?userStatus="+userStatus;
|
||||
})
|
||||
|
||||
$(document).on('click', '#outBtn', function (){
|
||||
if($('input:checkbox[name=policeChk]:checked').length < 1){
|
||||
alert("전출대상을 선택해주세요")
|
||||
return false;
|
||||
alert("전출대상을 선택해주세요")
|
||||
return false;
|
||||
}
|
||||
if(confirm("선택한 대상을 전출처리 하시겠습니까?")){
|
||||
const checkArr = [];
|
||||
|
|
@ -171,29 +172,29 @@ $(document).on('click', '#outBtn', function (){
|
|||
checkArr[idx].userSeq = Number(target.parents('tr').find('.userSeq').val());
|
||||
checkArr[idx].userStatus = "USC006"
|
||||
})
|
||||
$.ajax({
|
||||
type : 'POST',
|
||||
url : "/police/policeStatusUpdate",
|
||||
data : JSON.stringify(checkArr),
|
||||
contentType: 'application/json',
|
||||
beforeSend: function (xhr){
|
||||
xhr.setRequestHeader($("[name='_csrf_header']").val(), $("[name='_csrf']").val());
|
||||
},
|
||||
success : function(data) {
|
||||
alert(data+"건이 전출 처리되었습니다.");
|
||||
location.reload();
|
||||
},
|
||||
error : function(xhr, status) {
|
||||
alert("전출처리에 실패하였습니다");
|
||||
}
|
||||
})
|
||||
$.ajax({
|
||||
type : 'POST',
|
||||
url : "/police/policeStatusUpdate",
|
||||
data : JSON.stringify(checkArr),
|
||||
contentType: 'application/json',
|
||||
beforeSend: function (xhr){
|
||||
xhr.setRequestHeader($("[name='_csrf_header']").val(), $("[name='_csrf']").val());
|
||||
},
|
||||
success : function(data) {
|
||||
alert(data+"건이 전출 처리되었습니다.");
|
||||
location.reload();
|
||||
},
|
||||
error : function(xhr, status) {
|
||||
alert("전출처리에 실패하였습니다");
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
$(document).on('click', '#inBtn', function (){
|
||||
if($('input:checkbox[name=policeChk]:checked').length < 1){
|
||||
alert("전입대상을 선택해주세요")
|
||||
return false;
|
||||
alert("전입대상을 선택해주세요")
|
||||
return false;
|
||||
}
|
||||
if(confirm("선택한 대상을 전입처리 하시겠습니까?")){
|
||||
const checkArr = [];
|
||||
|
|
@ -203,22 +204,22 @@ $(document).on('click', '#inBtn', function (){
|
|||
checkArr[idx].userSeq = Number(target.parents('tr').find('.userSeq').val());
|
||||
checkArr[idx].userStatus = "USC003"
|
||||
})
|
||||
$.ajax({
|
||||
type : 'POST',
|
||||
url : "/police/policeStatusUpdate",
|
||||
data : JSON.stringify(checkArr),
|
||||
contentType: 'application/json',
|
||||
beforeSend: function (xhr){
|
||||
xhr.setRequestHeader($("[name='_csrf_header']").val(), $("[name='_csrf']").val());
|
||||
},
|
||||
success : function(data) {
|
||||
alert(data+"건이 전입 처리되었습니다.");
|
||||
location.reload();
|
||||
},
|
||||
error : function(xhr, status) {
|
||||
alert("전입처리에 실패하였습니다");
|
||||
}
|
||||
})
|
||||
$.ajax({
|
||||
type : 'POST',
|
||||
url : "/police/policeStatusUpdate",
|
||||
data : JSON.stringify(checkArr),
|
||||
contentType: 'application/json',
|
||||
beforeSend: function (xhr){
|
||||
xhr.setRequestHeader($("[name='_csrf_header']").val(), $("[name='_csrf']").val());
|
||||
},
|
||||
success : function(data) {
|
||||
alert(data+"건이 전입 처리되었습니다.");
|
||||
location.reload();
|
||||
},
|
||||
error : function(xhr, status) {
|
||||
alert("전입처리에 실패하였습니다");
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
|
|
@ -229,12 +230,12 @@ $(document).ready( function() {
|
|||
});
|
||||
|
||||
$(document).on('click', '#goExcel', function (){
|
||||
if(confirm("엑셀로 다운로드 하시겠습니까?")){
|
||||
$('input[name=excel]').val('Y');
|
||||
$('#searchFm').submit();
|
||||
$('input[name=excel]').val('');
|
||||
}else{
|
||||
false;
|
||||
}
|
||||
if(confirm("엑셀로 다운로드 하시겠습니까?")){
|
||||
$('input[name=excel]').val('Y');
|
||||
$('#searchFm').submit();
|
||||
$('input[name=excel]').val('');
|
||||
}else{
|
||||
false;
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -41,8 +41,6 @@
|
|||
</td>
|
||||
<td th:text="|${list.wrtTitle} ${list.wrtNm}|"></td>
|
||||
<td th:text="${#temporals.format(list.wrtDt, 'yyyy-MM-dd HH:mm')}"></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
@ -52,89 +50,95 @@
|
|||
</div>
|
||||
<div class="col-8" id="valueDiv">
|
||||
<div class="mb-1 mt-3 row">
|
||||
<label for="dicCode" class="col-sm-2 col-form-label col-form-label-sm text-center ">디지털식별코드</label>
|
||||
<label for="vDicCode" class="col-sm-2 col-form-label col-form-label-sm text-center ">디지털식별코드</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" class="form-control form-control-sm dateSelector" id="vDicCode"readonly>
|
||||
<input type="text" class="form-control form-control-sm dateSelector" id="vDicCode" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-1">
|
||||
<label for="userId" class="col-sm-2 col-form-label col-form-label-sm text-center ">아이디</label>
|
||||
<label for="vUserId" class="col-sm-2 col-form-label col-form-label-sm text-center ">아이디</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" class="form-control form-control-sm dateSelector" id="vUserId"readonly>
|
||||
<input type="text" class="form-control form-control-sm dateSelector" id="vUserId" readonly>
|
||||
</div>
|
||||
<label for="userNm" class="col-sm-2 col-form-label col-form-label-sm text-center">이름</label>
|
||||
<label for="vUserNm" class="col-sm-2 col-form-label col-form-label-sm text-center">이름</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" class="form-control form-control-sm dateSelector" id="vUserNm" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-1">
|
||||
<label for="phoneNo" class="col-sm-2 col-form-label col-form-label-sm text-center">휴대전화</label>
|
||||
<label for="vPhone" class="col-sm-2 col-form-label col-form-label-sm text-center">휴대전화</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" class="form-control form-control-sm dateSelector" id="vPhone"readonly>
|
||||
<input type="text" class="form-control form-control-sm dateSelector" id="vPhone" readonly>
|
||||
</div>
|
||||
<label for="email" class="col-sm-2 col-form-label col-form-label-sm text-center">이메일</label>
|
||||
<label for="vEmail" class="col-sm-2 col-form-label col-form-label-sm text-center">이메일</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" class="form-control form-control-sm dateSelector" id="vEmail" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-1">
|
||||
<label for="sex" class="col-sm-2 col-form-label col-form-label-sm text-center">성별</label>
|
||||
<label for="vSex" class="col-sm-2 col-form-label col-form-label-sm text-center">성별</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" class="form-control form-control-sm dateSelector" id="vSex"readonly>
|
||||
<input type="text" class="form-control form-control-sm dateSelector" id="vSex" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-1">
|
||||
<label for="birthDate" class="col-sm-2 col-form-label col-form-label-sm text-center">생년월일</label>
|
||||
<label for="vBirth" class="col-sm-2 col-form-label col-form-label-sm text-center">생년월일</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" class="form-control form-control-sm dateSelector" id="vBirth"readonly>
|
||||
<input type="text" class="form-control form-control-sm dateSelector" id="vBirth" readonly>
|
||||
</div>
|
||||
<label for="policeInDate" class="col-sm-2 col-form-label col-form-label-sm text-center">해양경찰배명일</label>
|
||||
<label for="vPoliceInDate" class="col-sm-2 col-form-label col-form-label-sm text-center">해양경찰배명일</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" class="form-control form-control-sm dateSelector" id="vPoliceInDate"readonly>
|
||||
<input type="text" class="form-control form-control-sm dateSelector" id="vPoliceInDate" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-1">
|
||||
<label for="ogCd" class="col-sm-2 col-form-label col-form-label-sm text-center">관서</label>
|
||||
<label for="vOgCd" class="col-sm-2 col-form-label col-form-label-sm text-center">관서</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" class="form-control form-control-sm dateSelector" id="vOgCd" readonly>
|
||||
</div>
|
||||
<label for="organInDate" class="col-sm-2 col-form-label col-form-label-sm text-center">현관서전입일</label>
|
||||
<label for="vOrganInDate" class="col-sm-2 col-form-label col-form-label-sm text-center">현관서전입일</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" class="form-control form-control-sm dateSelector" id="vOrganInDate" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-1">
|
||||
<label for="ofcCd" class="col-sm-2 col-form-label col-form-label-sm text-center">부서</label>
|
||||
<label for="vOfcCd" class="col-sm-2 col-form-label col-form-label-sm text-center">부서</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" class="form-control form-control-sm dateSelector" id="vOfcCd"readonly>
|
||||
<input type="text" class="form-control form-control-sm dateSelector" id="vOfcCd" readonly>
|
||||
</div>
|
||||
<label for="ofcInDate" class="col-sm-2 col-form-label col-form-label-sm text-center">현부서임용일</label>
|
||||
<label for="vOfcInDate" class="col-sm-2 col-form-label col-form-label-sm text-center">현부서임용일</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" class="form-control form-control-sm dateSelector" id="vOfcInDate" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-1">
|
||||
<label for="ogCd" class="col-sm-2 col-form-label col-form-label-sm text-center">계급</label>
|
||||
<label for="vTitleCd" class="col-sm-2 col-form-label col-form-label-sm text-center">계급</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" class="form-control form-control-sm dateSelector" id="vTitleCd" readonly>
|
||||
</div>
|
||||
<label for="titleInDate" class="col-sm-2 col-form-label col-form-label-sm text-center">현계급임용일</label>
|
||||
<label for="vTitleInDate" class="col-sm-2 col-form-label col-form-label-sm text-center">현계급임용일</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" class="form-control form-control-sm dateSelector" id="vTitleInDate" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-1">
|
||||
<label for="outturnCd" class="col-sm-2 col-form-label col-form-label-sm text-center">경과</label>
|
||||
<label for="vDutyCd" class="col-sm-2 col-form-label col-form-label-sm text-center">직책</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" class="form-control form-control-sm dateSelector" id="vDutyCd" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-1">
|
||||
<label for="vOutturnCd" class="col-sm-2 col-form-label col-form-label-sm text-center">경과</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" class="form-control form-control-sm dateSelector" id="vOutturnCd" readonly>
|
||||
</div>
|
||||
<label for="seriesCd" class="col-sm-2 col-form-label col-form-label-sm text-center">직별</label>
|
||||
<label for="vSeriesCd" class="col-sm-2 col-form-label col-form-label-sm text-center">직별</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" class="form-control form-control-sm dateSelector" id="vSeriesCd" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-1">
|
||||
<label for="languageCd" class="col-sm-2 col-form-label col-form-label-sm text-center">외국어특채</label>
|
||||
<label for="vLanguageCd" class="col-sm-2 col-form-label col-form-label-sm text-center">외국어특채</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" class="form-control form-control-sm dateSelector" id="vLanguageCd" readonly>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue