@@ -188,6 +200,12 @@ $(document).ready(function(){
};
+ $P.crdnControl.onCurrentChange = item => {
+ if (!item) return;
+
+ let key = item.data.CRDN_ID;
+ $("#crdnTbody--${pageName}").setCurrentRow(key);
+ }
$P.fnResetAndChangeBiz = taskSeCd => {
$("#crdnTbody--${pageName}").html("");
@@ -278,8 +296,8 @@ $(document).ready(function(){
//달력 초기화
initDatepicker("frmSearch--${pageName}");
- $('#schDateFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-5475).date);
- $('#schDateTo--${pageName}').datepicker('setDate', new Date());
+ $('#schCrdnYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-5475).date);
+ $('#schCrdnYmdTo--${pageName}').datepicker('setDate', new Date());
diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06030-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06030-main.jsp
index 52fa0ce9..9eda72c6 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06030-main.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06030-main.jsp
@@ -69,7 +69,7 @@
영상매체 |
사진건수 |
발행번호 |
-
표지확인 |
+
표지확인 |
처리상태 |
@@ -87,7 +87,7 @@
{매체} |
{ATCH_FILE_CNT} |
{CRDN_SN} |
-
{표지확인} |
+
|
{CRDN_STTS_CD} |
@@ -156,6 +156,13 @@ $(document).ready(function(){
});
};
+ $P.crdnControl.onCurrentChange = item => {
+ if (!item) return;
+
+ let key = item.data.CRDN_ID;
+ $("#crdnTbody--${pageName}").setCurrentRow(key);
+ };
+
$P.searchCrdnList = () => {
$P.crdnControl.query = $P.getParams();
$P.crdnControl.load(1);
@@ -221,12 +228,15 @@ $(document).ready(function(){
$('#btnUpdateToConfirmData--${pageName}').on('click', () => {
- $P.crdnControl.getCurrent();
+ if(!$P.crdnControl.getCurrent()) {
+ dialog.alert({content:"선택된 자료가 없습니다.",timeout: 0, onOK:()=>{}});
+ return;
+ };
dialog.alert({
content:"현 자료를 장애차량 확인된 자료로 변경하겠습니까?",
onOK:() => {
- $P.crdnControl.save({ '표지정보확인' : 'Y' });
+ $P.crdnControl.save({ 'crdnId' : $P.crdnControl.getCurrent()["CRDN_ID"] });
}
});
});
diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06040-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06040-main.jsp
index e307d4ac..6690a62b 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06040-main.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06040-main.jsp
@@ -157,6 +157,13 @@ $(document).ready(function(){
};
+ $P.crdnControl.onCurrentChange = item => {
+ if (!item) return;
+
+ let key = item.data.CRDN_ID;
+ $("#crdnTbody--${pageName}").setCurrentRow(key);
+ }
+
$P.fnReset = () => {
$('#schRductYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-5475).date);
$('#schRductYmdTo--${pageName}').datepicker('setDate', new Date());