Browse Source

평가자 삭제기능 추가

SH 8 months ago
parent
commit
2533d22372

+ 19 - 2
src/main/webapp/ux/cw/cw0624/CW06240001U.xml

@@ -634,6 +634,7 @@
 			    			grdData1.setCellReadOnly(i, "evalEmpNm1", true);
 			    			grdData1.setCellReadOnly(i, "evalEmpNm1", true);
 			    			grdData1.setCellReadOnly(i, "evalRate1", true);
 			    			grdData1.setCellReadOnly(i, "evalRate1", true);
 			    			grdData1.setCellReadOnly(i, "evalEmpNm2", true);
 			    			grdData1.setCellReadOnly(i, "evalEmpNm2", true);
+			    			grdData1.setCellReadOnly(i, "eval2Close", true);
 			    			grdData1.setCellReadOnly(i, "evalRate2", true);
 			    			grdData1.setCellReadOnly(i, "evalRate2", true);
 			    			grdData1.setCellReadOnly(i, "jobRate", true);
 			    			grdData1.setCellReadOnly(i, "jobRate", true);
 			    			grdData1.setCellReadOnly(i, "jobGoal", true);
 			    			grdData1.setCellReadOnly(i, "jobGoal", true);
@@ -648,6 +649,7 @@
 		    			grdData1.setCellReadOnly(i, "evalEmpNm1", true);
 		    			grdData1.setCellReadOnly(i, "evalEmpNm1", true);
 		    			grdData1.setCellReadOnly(i, "evalRate1", true);
 		    			grdData1.setCellReadOnly(i, "evalRate1", true);
 		    			grdData1.setCellReadOnly(i, "evalEmpNm2", true);
 		    			grdData1.setCellReadOnly(i, "evalEmpNm2", true);
+			    		grdData1.setCellReadOnly(i, "eval2Close", true);
 		    			grdData1.setCellReadOnly(i, "evalRate2", true);
 		    			grdData1.setCellReadOnly(i, "evalRate2", true);
 			    		grdData1.setCellReadOnly(i, "jobGoal", true);
 			    		grdData1.setCellReadOnly(i, "jobGoal", true);
 		    			grdData1.setCellReadOnly(i, "selectGoal", true);
 		    			grdData1.setCellReadOnly(i, "selectGoal", true);
@@ -684,6 +686,7 @@
 		    			grdData1.setCellReadOnly(i, "evalEmpNm1", true);
 		    			grdData1.setCellReadOnly(i, "evalEmpNm1", true);
 		    			grdData1.setCellReadOnly(i, "evalRate1", true);
 		    			grdData1.setCellReadOnly(i, "evalRate1", true);
 		    			grdData1.setCellReadOnly(i, "evalEmpNm2", true);
 		    			grdData1.setCellReadOnly(i, "evalEmpNm2", true);
+			    		grdData1.setCellDisabled(i, "eval2Close", true);
 		    			grdData1.setCellReadOnly(i, "evalRate2", true);
 		    			grdData1.setCellReadOnly(i, "evalRate2", true);
 		    		}
 		    		}
 		    	}
 		    	}
@@ -887,6 +890,16 @@
         dcdataList1.setCellData( rowidx , "kpiGrade" , "O: \n"+"E: \n"+"M: \n"+"B: ");
         dcdataList1.setCellData( rowidx , "kpiGrade" , "O: \n"+"E: \n"+"M: \n"+"B: ");
     }
     }
     
     
+    /***************************************************************************
+     * 함 수 명 : scwin.eval2Close
+     * 기   능 : 사번삭제 함수
+     ***************************************************************************/
+    scwin.eval2Close = function(rowindex) {
+		scwin.currRow = rowindex;
+	    dcdataList1.setCellData( scwin.currRow , "evalEmpNo2" , "" );
+	    dcdataList1.setCellData( scwin.currRow , "evalEmpNm2" , "" );
+    };
+    
     ]]></script>
     ]]></script>
 	</head>
 	</head>
 	<body>
 	<body>
@@ -1036,7 +1049,7 @@
 									blockSelect="false" displayMode="label" style="" colSpan="6">
 									blockSelect="false" displayMode="label" style="" colSpan="6">
 								</w2:column>
 								</w2:column>
 								<w2:column removeBorderStyle="false" width="70" inputType="text" id="column04" value="평가자2"
 								<w2:column removeBorderStyle="false" width="70" inputType="text" id="column04" value="평가자2"
-									blockSelect="false" displayMode="label" style="" colSpan="6">
+									blockSelect="false" displayMode="label" style="" colSpan="7">
 								</w2:column>
 								</w2:column>
 								<w2:column removeBorderStyle="false" width="50" inputType="checkbox" id="delAll" value="삭제"
 								<w2:column removeBorderStyle="false" width="50" inputType="checkbox" id="delAll" value="삭제"
 									blockSelect="false" displayMode="label" checkboxLabel="삭제" style="color:red" rowSpan="3">
 									blockSelect="false" displayMode="label" checkboxLabel="삭제" style="color:red" rowSpan="3">
@@ -1071,7 +1084,7 @@
 									blockSelect="false" displayMode="label" style="" rowSpan="2">
 									blockSelect="false" displayMode="label" style="" rowSpan="2">
 								</w2:column>
 								</w2:column>
 								<w2:column removeBorderStyle="false" width="70" inputType="text" id="evalEmpNo2" value="사번"
 								<w2:column removeBorderStyle="false" width="70" inputType="text" id="evalEmpNo2" value="사번"
-									blockSelect="false" displayMode="label" style="" class = "ast" rowSpan="2">
+									blockSelect="false" displayMode="label" style="" class = "ast" colSpan="2" rowSpan="2">
 								</w2:column>
 								</w2:column>
 								<w2:column removeBorderStyle="false" width="70" inputType="text" id="evalEmpNm2" value="성명"
 								<w2:column removeBorderStyle="false" width="70" inputType="text" id="evalEmpNm2" value="성명"
 									blockSelect="false" displayMode="label" style="" class = "ast" rowSpan="2">
 									blockSelect="false" displayMode="label" style="" class = "ast" rowSpan="2">
@@ -1239,6 +1252,10 @@
 								<w2:column removeBorderStyle="false" width="70" inputType="text" id="evalEmpNo2" blockSelect="false"
 								<w2:column removeBorderStyle="false" width="70" inputType="text" id="evalEmpNo2" blockSelect="false"
 									displayMode="label" readOnly="true">
 									displayMode="label" readOnly="true">
 								</w2:column>
 								</w2:column>
+								<w2:column removeBorderStyle="false" width="20" inputType="image" id="eval2Close" blockSelect="false"
+									displayMode="label" readOnly="false" imageSrc="/resources/images/inc/btn_lytbc_closeon.png"
+									imageClickFunction="scwin.eval2Close" imageWidth="20">
+								</w2:column>
 								<w2:column removeBorderStyle="false" width="70" inputType="textImage" id="evalEmpNm2" blockSelect="false"
 								<w2:column removeBorderStyle="false" width="70" inputType="textImage" id="evalEmpNm2" blockSelect="false"
 									displayMode="label" readOnly="false" imageSrc="/resources/images/contents/ico_tb_search.png"
 									displayMode="label" readOnly="false" imageSrc="/resources/images/contents/ico_tb_search.png"
 									imageClickFunction="scwin.empPop2Search" imageWidth="20">
 									imageClickFunction="scwin.empPop2Search" imageWidth="20">

+ 16 - 2
src/main/webapp/ux/cw/cw0626/CW06260001U.xml

@@ -870,6 +870,16 @@
         dcdataList1.setCellData( rowidx , "kpiGrade" , "O: \n"+"E: \n"+"M: \n"+"B: ");
         dcdataList1.setCellData( rowidx , "kpiGrade" , "O: \n"+"E: \n"+"M: \n"+"B: ");
     }
     }
     
     
+    /***************************************************************************
+     * 함 수 명 : scwin.eval2Close
+     * 기   능 : 사번삭제 함수
+     ***************************************************************************/
+    scwin.eval2Close = function(rowindex) {
+		scwin.currRow = rowindex;
+	    dcdataList1.setCellData( scwin.currRow , "evalEmpNo2" , "" );
+	    dcdataList1.setCellData( scwin.currRow , "evalEmpNm2" , "" );
+    };
+    
     ]]></script>
     ]]></script>
 	</head>
 	</head>
 	<body>
 	<body>
@@ -1071,7 +1081,7 @@
 									blockSelect="false" displayMode="label" style="" colSpan="6">
 									blockSelect="false" displayMode="label" style="" colSpan="6">
 								</w2:column>
 								</w2:column>
 								<w2:column removeBorderStyle="false" width="70" inputType="text" id="column04" value="평가자2"
 								<w2:column removeBorderStyle="false" width="70" inputType="text" id="column04" value="평가자2"
-									blockSelect="false" displayMode="label" style="" colSpan="6">
+									blockSelect="false" displayMode="label" style="" colSpan="7">
 								</w2:column>
 								</w2:column>
 							</w2:row>
 							</w2:row>
 							<w2:row style="" id="row3">
 							<w2:row style="" id="row3">
@@ -1103,7 +1113,7 @@
 									blockSelect="false" displayMode="label" style="" rowSpan="2">
 									blockSelect="false" displayMode="label" style="" rowSpan="2">
 								</w2:column>
 								</w2:column>
 								<w2:column removeBorderStyle="false" width="70" inputType="text" id="evalEmpNo2" value="사번"
 								<w2:column removeBorderStyle="false" width="70" inputType="text" id="evalEmpNo2" value="사번"
-									blockSelect="false" displayMode="label" style="" class = "ast" rowSpan="2">
+									blockSelect="false" displayMode="label" style="" class = "ast" colSpan="2" rowSpan="2">
 								</w2:column>
 								</w2:column>
 								<w2:column removeBorderStyle="false" width="70" inputType="text" id="evalEmpNm2" value="성명"
 								<w2:column removeBorderStyle="false" width="70" inputType="text" id="evalEmpNm2" value="성명"
 									blockSelect="false" displayMode="label" style="" class = "ast" rowSpan="2">
 									blockSelect="false" displayMode="label" style="" class = "ast" rowSpan="2">
@@ -1237,6 +1247,10 @@
 								<w2:column removeBorderStyle="false" width="70" inputType="text" id="evalEmpNo2" blockSelect="false"
 								<w2:column removeBorderStyle="false" width="70" inputType="text" id="evalEmpNo2" blockSelect="false"
 									displayMode="label" readOnly="true">
 									displayMode="label" readOnly="true">
 								</w2:column>
 								</w2:column>
+								<w2:column removeBorderStyle="false" width="20" inputType="image" id="eval2Close" blockSelect="false"
+									displayMode="label" readOnly="false" imageSrc="/resources/images/inc/btn_lytbc_closeon.png"
+									imageClickFunction="scwin.eval2Close" imageWidth="20">
+								</w2:column>
 								<w2:column removeBorderStyle="false" width="70" inputType="textImage" id="evalEmpNm2" blockSelect="false"
 								<w2:column removeBorderStyle="false" width="70" inputType="textImage" id="evalEmpNm2" blockSelect="false"
 									displayMode="label" readOnly="false" imageSrc="/resources/images/contents/ico_tb_search.png"
 									displayMode="label" readOnly="false" imageSrc="/resources/images/contents/ico_tb_search.png"
 									imageClickFunction="scwin.empPop2Search" imageWidth="20">
 									imageClickFunction="scwin.empPop2Search" imageWidth="20">