추가수정
parent
1408d69dd0
commit
61fe872019
|
|
@ -91,7 +91,7 @@
|
||||||
a.wrt_dt
|
a.wrt_dt
|
||||||
FROM international_crime_arrest a
|
FROM international_crime_arrest a
|
||||||
<include refid="selectInternationalCrimeArrestListWhere"></include>
|
<include refid="selectInternationalCrimeArrestListWhere"></include>
|
||||||
ORDER BY a.crime_awareness_dt DESC nulls last, wrt_dt desc
|
ORDER BY a.case_sent_dt DESC nulls last, wrt_dt desc
|
||||||
LIMIT #{rowCnt} OFFSET #{firstIndex}
|
LIMIT #{rowCnt} OFFSET #{firstIndex}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -240,43 +240,42 @@ function saveInternationalCrimeArrest(status){
|
||||||
}
|
}
|
||||||
|
|
||||||
function contentCheck(status){
|
function contentCheck(status){
|
||||||
let flag = true;
|
|
||||||
if(status !== "DST001"){
|
if(status !== "DST001"){
|
||||||
if(!$("#organSelector").val()){
|
if(!$("#organSelector").val()){
|
||||||
alert("지방청을 선택해주세요.")
|
alert("지방청을 선택해주세요.")
|
||||||
flag = false;
|
return false;
|
||||||
}
|
}
|
||||||
if(!$("#departmentSelector").val()){
|
if(!$("#departmentSelector").val()){
|
||||||
alert("관할서를 선택해주세요.")
|
alert("관할서를 선택해주세요.")
|
||||||
flag = false;
|
return false;
|
||||||
}
|
}
|
||||||
if(!$("#caseOfficer").val()){
|
if(!$("#caseOfficer").val()){
|
||||||
alert("담당경찰관을 입력해주세요.")
|
alert("담당경찰관을 입력해주세요.")
|
||||||
flag = false;
|
return false;
|
||||||
}
|
}
|
||||||
if(!$("#crimeType").val()){
|
if(!$("#crimeType").val()){
|
||||||
alert("범죄테마를 선택해주세요.")
|
alert("범죄테마를 선택해주세요.")
|
||||||
flag = false;
|
return false;
|
||||||
}
|
}
|
||||||
if(!$("#violationType").val()){
|
if(!$("#violationType").val()){
|
||||||
alert("위반유형을 선택해주세요.")
|
alert("위반유형을 선택해주세요.")
|
||||||
flag = false;
|
return false;
|
||||||
}
|
}
|
||||||
if(!$("#crimeName").val()){
|
if(!$("#crimeName").val()){
|
||||||
alert("죄명을 입력해주세요.")
|
alert("죄명을 입력해주세요.")
|
||||||
flag = false;
|
return false;
|
||||||
}
|
}
|
||||||
if(!$("#occurTable").val()){
|
if(!$("#occurTable").val()){
|
||||||
alert("발생원표를 입력해주세요.")
|
alert("발생원표를 입력해주세요.")
|
||||||
flag = false;
|
return false;
|
||||||
}
|
}
|
||||||
if(!$("#arrestTable").val()){
|
if(!$("#arrestTable").val()){
|
||||||
alert("검거원표를 입력해주세요.")
|
alert("검거원표를 입력해주세요.")
|
||||||
flag = false;
|
return false;
|
||||||
}
|
}
|
||||||
if(!$("#suspectTable").val()){
|
if(!$("#suspectTable").val()){
|
||||||
alert("피의자원표를 입력해주세요.")
|
alert("피의자원표를 입력해주세요.")
|
||||||
flag = false;
|
return false;
|
||||||
}
|
}
|
||||||
const suspectNames = $("#spiDiv").find(".suspectName");
|
const suspectNames = $("#spiDiv").find(".suspectName");
|
||||||
let suspectFlag = false;
|
let suspectFlag = false;
|
||||||
|
|
@ -287,28 +286,28 @@ function contentCheck(status){
|
||||||
})
|
})
|
||||||
if(suspectFlag){
|
if(suspectFlag){
|
||||||
alert("피의자 이름을 입력해주세요")
|
alert("피의자 이름을 입력해주세요")
|
||||||
flag = false;
|
return false;
|
||||||
}
|
}
|
||||||
if(!$("#caseSentDt").val()){
|
if(!$("#caseSentDt").val()){
|
||||||
alert("사건송치를 입력해주세요.")
|
alert("사건송치를 입력해주세요.")
|
||||||
flag = false;
|
return false;
|
||||||
}
|
}
|
||||||
if(!CrossEditor.IsDirty()){
|
if(!CrossEditor.IsDirty()){
|
||||||
alert("범죄사실을 입력해주세요.")
|
alert("범죄사실을 입력해주세요.")
|
||||||
flag = false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if($("#crimeAwarenessDt").val()){
|
if($("#crimeAwarenessDt").val()){
|
||||||
if(!$("#crimeAwarenessDate").val()){
|
if(!$("#crimeAwarenessDate").val()){
|
||||||
alert("검거일자를 입력해주세요.")
|
alert("검거일자를 입력해주세요.")
|
||||||
flag = false;
|
return false;
|
||||||
}
|
}
|
||||||
if(!$("#crimeAwarenessTime").val()){
|
if(!$("#crimeAwarenessTime").val()){
|
||||||
alert("검거시간을 입력해주세요.")
|
alert("검거시간을 입력해주세요.")
|
||||||
flag = false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return flag;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).on('click', '#icaExcelDownBtn', function (){
|
$(document).on('click', '#icaExcelDownBtn', function (){
|
||||||
|
|
|
||||||
|
|
@ -103,8 +103,8 @@
|
||||||
<div class="col-4">
|
<div class="col-4">
|
||||||
<div class="input-group w-auto input-daterange" id="dateSelectorDiv">
|
<div class="input-group w-auto input-daterange" id="dateSelectorDiv">
|
||||||
<select class="form-select form-select-sm w-30" name="dateSelector">
|
<select class="form-select form-select-sm w-30" name="dateSelector">
|
||||||
<option value="awarenessDt" th:selected="${searchParams.dateSelector eq 'awarenessDt'}">검거일시</option>
|
|
||||||
<option value="caseSentDt" th:selected="${searchParams.dateSelector eq 'caseSentDt'}">사건송치</option>
|
<option value="caseSentDt" th:selected="${searchParams.dateSelector eq 'caseSentDt'}">사건송치</option>
|
||||||
|
<option value="awarenessDt" th:selected="${searchParams.dateSelector eq 'awarenessDt'}">검거일시</option>
|
||||||
<option value="wrtDt" th:selected="${searchParams.dateSelector eq 'wrtDt'}">작성일</option>
|
<option value="wrtDt" th:selected="${searchParams.dateSelector eq 'wrtDt'}">작성일</option>
|
||||||
</select>
|
</select>
|
||||||
<input type="text" class="form-control form-control-sm w-35" id="startDate" name="startDate" placeholder="시작일" autocomplete="off" readonly th:value="${searchParams.startDate}">
|
<input type="text" class="form-control form-control-sm w-35" id="startDate" name="startDate" placeholder="시작일" autocomplete="off" readonly th:value="${searchParams.startDate}">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue