Browse Source

문서관리 수정

SBK 2 years ago
parent
commit
a9fcaf09c6

+ 2 - 2
src/main/resources/sqlmap/mappers/qc/qc0103/QC01030001UMapper.xml

@@ -10,8 +10,8 @@
 		     , D.LAST_SND_RCV_SEQ		/*마지막 수발신 순번*/
 		     , A.DOC_TTL				/*제목*/
 		     , CASE WHEN DOC_DIST_GB_CD = 'D01' THEN A.DOC_TTL
-		            WHEN DOC_DIST_GB_CD = 'D02' THEN 'ㄴRe:[회신] ' || A.DOC_TTL
-		            WHEN DOC_DIST_GB_CD = 'D03' THEN 'ㄴRe:[배포] ' || A.DOC_TTL
+		            WHEN DOC_DIST_GB_CD = 'D02' THEN '<![CDATA[&nbsp;&nbsp;]]>ㄴRe:[회신] ' || A.DOC_TTL
+		            WHEN DOC_DIST_GB_CD = 'D03' THEN '<![CDATA[&nbsp;&nbsp;]]>ㄴRe:[배포] ' || A.DOC_TTL
 		            ELSE A.DOC_TTL
 		        END DOC_TTL_DISPLAY          		/*제목*/
 		     , TO_CHAR(A.DOC_REG_DT,'YYYY-MM-DD') DOC_REG_DT       		/*문서 등록일*/

+ 22 - 3
src/main/webapp/ux/qc/qc0103/QC01030001U.xml

@@ -353,10 +353,12 @@
         var rowidx = row;
         
         //변경내역 초기화
-        if(dcdataList1.getCellData( dcdataList1.getModifiedIndex() , "sndRcvSeq" ) != ""){
-        	dcdataList1.undoAll();
+        if(dcdataList1.getRowStatus( dcdataList1.getModifiedIndex() ) == "C"){
+        	if(dcdataList1.getModifiedIndex() != row){
+        		commLib.getConfirmMsg(commLib.getMessage("crud.0004"), "데이터 변경", "undoDcdataList1");
+        	}
         } else {
-        	dcdataList1.removeRow(dcdataList1.getModifiedIndex());
+        	dcdataList1.undoAll();
         }
         
         if(dcdataList1.getCellData( dcdataList1.getRowPosition() , "lastSndRcvSeq" ) != 1){
@@ -457,6 +459,20 @@
             }
         }
     };
+    
+    /***************************************************************************
+     * 함 수 명: scwin.beforeSearch
+     * 기    능: 변경 여부 체크
+     ***************************************************************************/
+    scwin.undoDcdataList1 = function(param) {
+        if (param) {
+            var param_data = JSON.parse(strLib.serialize(param));
+            if(param_data.retval == "true"){
+                dcdataList1.removeRow(dcdataList1.getModifiedIndex());
+            }
+        }
+    };
+    
     /***************************************************************************
      * 함 수 명: scwin.fnConfirmdcdataList1
      * 기    능: 문서관리 저장 삭제 수정
@@ -544,6 +560,9 @@
 	                		grdData1.setDisabled( "cell" , i , "reply" , true );
 		        			grdData1.setDisabled( "cell" , i , "deploy" , true );
 	                	}
+	                	
+	                	grdData1.setRowBackgroundColor( i , "#fffbee" );
+	                	
                 	} else if(dcdataList1.getCellData( i , "docDistGbCd" ) == "D02"){
                 		if(dcdataList1.getCellData( i , "lastSndRcvSeq" ) == 2){
 	                		grdData1.setDisabled( "cell" , i , "reply" , true );