검찰연계 수정화면 보완
This commit is contained in:
parent
f5a1f2ebcb
commit
35a233f8a0
@ -28,7 +28,6 @@
|
|||||||
<title>검찰연계 등록</title>
|
<title>검찰연계 등록</title>
|
||||||
|
|
||||||
<script type="text/javaScript" language="javascript">
|
<script type="text/javaScript" language="javascript">
|
||||||
|
|
||||||
var prsctSeq = "${adrPrsctLinkVO.prsctSeq}";
|
var prsctSeq = "${adrPrsctLinkVO.prsctSeq}";
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
@ -50,32 +49,8 @@ function getAdrPrsctLinkDetail() {
|
|||||||
if (data.isSuccess) {
|
if (data.isSuccess) {
|
||||||
//alert(JSON.stringify(data.result));
|
//alert(JSON.stringify(data.result));
|
||||||
|
|
||||||
$("#dividendDate").val(data.result.dividendDate); //배당일
|
//등록화면 SHow
|
||||||
$("#prsctNo").val(data.result.prsctNo); //본사건번호
|
setAdrPrsctLinkShow(data.result);
|
||||||
$("#prsctAdrNo").val(data.result.prsctAdrNo); //조정사건번호
|
|
||||||
$("#plntfNm").val(data.result.plntfNm); //원고-대리인 이름
|
|
||||||
$("#dfndnNm").val(data.result.dfndnNm); //피고-대리인 이름
|
|
||||||
$("#prsctCn").val(data.result.prsctCn); //사건내용
|
|
||||||
|
|
||||||
var plntfPhone = "";
|
|
||||||
if (data.result.plntfPhone != null && data.result.plntfPhone != "") {
|
|
||||||
plntfPhone = data.result.plntfPhone.split('-');
|
|
||||||
if (plntfPhone.length == 3) {
|
|
||||||
$("#plntfPhone1").val(plntfPhone[0]); //원고-대리인 연락처
|
|
||||||
$("#plntfPhone2").val(plntfPhone[1]);
|
|
||||||
$("#plntfPhone3").val(plntfPhone[2]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
var dfndnPhone = "";
|
|
||||||
if (data.result.dfndnPhone != null && data.result.dfndnPhone != "") {
|
|
||||||
dfndnPhone = data.result.dfndnPhone.split('-');
|
|
||||||
if (dfndnPhone.length == 3) {
|
|
||||||
$("#dfndnPhone1").val(dfndnPhone[0]); //피고-대리인 연락처
|
|
||||||
$("#dfndnPhone2").val(dfndnPhone[1]);
|
|
||||||
$("#dfndnPhone3").val(dfndnPhone[2]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
alert("Msg : " + data.msg);
|
alert("Msg : " + data.msg);
|
||||||
@ -87,7 +62,39 @@ function getAdrPrsctLinkDetail() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
//등록창 Clear
|
//등록화면 SHow
|
||||||
|
function setAdrPrsctLinkShow(result) {
|
||||||
|
$("#dividendDate").val(result.dividendDate); //배당일
|
||||||
|
$("#prsctNo").val(result.prsctNo); //본사건번호
|
||||||
|
$("#prsctAdrNo").val(result.prsctAdrNo); //조정사건번호
|
||||||
|
$("#plntfNm").val(result.plntfNm); //원고 이름
|
||||||
|
$("#dfndnNm").val(result.dfndnNm); //피고 이름
|
||||||
|
$("#prsctCn").val(result.prsctCn); //사건내용
|
||||||
|
|
||||||
|
//원고 연락처
|
||||||
|
var plntfPhone = "";
|
||||||
|
if (result.plntfPhone != null && result.plntfPhone != "") {
|
||||||
|
plntfPhone = result.plntfPhone.split('-');
|
||||||
|
if (plntfPhone.length == 3) {
|
||||||
|
$("#plntfPhone1").val(plntfPhone[0]);
|
||||||
|
$("#plntfPhone2").val(plntfPhone[1]);
|
||||||
|
$("#plntfPhone3").val(plntfPhone[2]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//피고 연락처
|
||||||
|
var dfndnPhone = "";
|
||||||
|
if (result.dfndnPhone != null && result.dfndnPhone != "") {
|
||||||
|
dfndnPhone = result.dfndnPhone.split('-');
|
||||||
|
if (dfndnPhone.length == 3) {
|
||||||
|
$("#dfndnPhone1").val(dfndnPhone[0]);
|
||||||
|
$("#dfndnPhone2").val(dfndnPhone[1]);
|
||||||
|
$("#dfndnPhone3").val(dfndnPhone[2]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//등록화면 Clear
|
||||||
function setAdrPrsctLinkClear() {
|
function setAdrPrsctLinkClear() {
|
||||||
$("#dividendDate").val(""); //배당일
|
$("#dividendDate").val(""); //배당일
|
||||||
$("#prsctNo").val(""); //본사건번호
|
$("#prsctNo").val(""); //본사건번호
|
||||||
@ -115,6 +122,59 @@ function setAdrPrsctLinkClear() {
|
|||||||
listForm.searchEndDt.value = "";
|
listForm.searchEndDt.value = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//검찰연계 저장 Confirm
|
||||||
|
function setAdrPrsctLinkSaveConfirm() {
|
||||||
|
//검찰연계 유효성 검사
|
||||||
|
if (getValidCheck() == false) return;
|
||||||
|
|
||||||
|
// Confirm
|
||||||
|
var cfm = confirm("저장 하시겠습니까?");
|
||||||
|
if (cfm == true) {
|
||||||
|
//검찰연계 저장
|
||||||
|
setAdrPrsctLinkSave();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//검찰연계 저장
|
||||||
|
function setAdrPrsctLinkSave() {
|
||||||
|
$("#prsctSeq").val(prsctSeq); // 일련번호
|
||||||
|
|
||||||
|
// 연락처 대쉬처리
|
||||||
|
var plntfPhone = $("#plntfPhone1").val() + "-" + $("#plntfPhone2").val() + "-" + $("#plntfPhone3").val();
|
||||||
|
var dfndnPhone = $("#dfndnPhone1").val() + "-" + $("#dfndnPhone2").val() + "-" + $("#dfndnPhone3").val();
|
||||||
|
$("#plntfPhone").val(plntfPhone);
|
||||||
|
$("#dfndnPhone").val(dfndnPhone);
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
type: "POST",
|
||||||
|
url: "/kccadr/adrpr/adrPrsctLinkSaveAjax.do",
|
||||||
|
data: $("#adrPrsctLinkForm").serialize(),
|
||||||
|
dataType:'json',
|
||||||
|
async: false,
|
||||||
|
success: function (data) {
|
||||||
|
if (data.isSuccess) {
|
||||||
|
alert("저장 완료 했습니다.");
|
||||||
|
|
||||||
|
// 수정모드 체크
|
||||||
|
if (prsctSeq != null && prsctSeq != "" && prsctSeq != undefined) {
|
||||||
|
//목록
|
||||||
|
goList();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
//등록화면 Clear
|
||||||
|
setAdrPrsctLinkClear();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
alert("Msg : " + data.msg);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
error: function (e) {
|
||||||
|
alert("ERROR : " + JSON.stringify(e));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
//검찰연계 유효성 검사
|
//검찰연계 유효성 검사
|
||||||
function getValidCheck() {
|
function getValidCheck() {
|
||||||
if ($.trim($("#dividendDate").val()) == null || $.trim($("#dividendDate").val()) == "") {
|
if ($.trim($("#dividendDate").val()) == null || $.trim($("#dividendDate").val()) == "") {
|
||||||
@ -157,7 +217,6 @@ function getValidCheck() {
|
|||||||
$("#plntfPhone3").focus();
|
$("#plntfPhone3").focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if ($.trim($("#dfndnNm").val()) == null || $.trim($("#dfndnNm").val()) == "") {
|
else if ($.trim($("#dfndnNm").val()) == null || $.trim($("#dfndnNm").val()) == "") {
|
||||||
alert("피고(대리인) 이름를 입력하세요");
|
alert("피고(대리인) 이름를 입력하세요");
|
||||||
$("#dfndnNm").focus();
|
$("#dfndnNm").focus();
|
||||||
@ -186,59 +245,6 @@ function getValidCheck() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//검찰연계 저장 Confirm
|
|
||||||
function setAdrPrsctLinkSaveConfirm() {
|
|
||||||
// 유효성 검사
|
|
||||||
if (getValidCheck() == false) return;
|
|
||||||
|
|
||||||
// Confirm
|
|
||||||
var cfm = confirm("저장 하시겠습니까?");
|
|
||||||
if (cfm == true) {
|
|
||||||
// 주문 저장
|
|
||||||
setAdrPrsctLinkSave();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//검찰연계 저장
|
|
||||||
function setAdrPrsctLinkSave() {
|
|
||||||
$("#prsctSeq").val(prsctSeq); // 일련번호
|
|
||||||
|
|
||||||
// 연락처 대쉬처리
|
|
||||||
var plntfPhone = $("#plntfPhone1").val() + "-" + $("#plntfPhone2").val() + "-" + $("#plntfPhone3").val();
|
|
||||||
var dfndnPhone = $("#dfndnPhone1").val() + "-" + $("#dfndnPhone2").val() + "-" + $("#dfndnPhone3").val();
|
|
||||||
$("#plntfPhone").val(plntfPhone);
|
|
||||||
$("#dfndnPhone").val(dfndnPhone);
|
|
||||||
|
|
||||||
$.ajax({
|
|
||||||
type: "POST",
|
|
||||||
url: "/kccadr/adrpr/adrPrsctLinkSaveAjax.do",
|
|
||||||
data: $("#adrPrsctLinkForm").serialize(),
|
|
||||||
dataType:'json',
|
|
||||||
async: false,
|
|
||||||
success: function (data) {
|
|
||||||
if (data.isSuccess) {
|
|
||||||
alert("저장 완료 했습니다.");
|
|
||||||
|
|
||||||
// 수정모드 체크
|
|
||||||
if (prsctSeq != null && prsctSeq != "" && prsctSeq != undefined) {
|
|
||||||
//목록
|
|
||||||
goList();
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
//등록창 Clear
|
|
||||||
setAdrPrsctLinkClear();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
alert("Msg : " + data.msg);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
error: function (e) {
|
|
||||||
alert("ERROR : " + JSON.stringify(e));
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
//목록
|
//목록
|
||||||
function goList(){
|
function goList(){
|
||||||
var listForm = document.listForm ;
|
var listForm = document.listForm ;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user