Browse Source

eTEC E&C Standard 카운트 추가

DESKTOP-HMLPH8S\kim 2 years ago
parent
commit
a9b005fbfa

+ 6 - 0
src/main/java/sgc/portal/qc/qc0102/persistence/QC01020001UMapper.java

@@ -67,6 +67,12 @@ public interface QC01020001UMapper {
 	String selectName5(QC01020001USearch search);
 	String selectName55(QC01020001USearch search);
 	
+	int selectQcStndRCount(QC01020001USearch search);
+	int selectQcStndACount(QC01020001USearch search);
+	int selectQcStndMCount(QC01020001USearch search);
+	int selectQcStndECount(QC01020001USearch search);
+	int selectQcStndSCount(QC01020001USearch search);
+	
 	///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 	
 	//Standard e & c 조회

+ 20 - 0
src/main/java/sgc/portal/qc/qc0102/service/QC01020001UService.java

@@ -184,4 +184,24 @@ public class QC01020001UService {
         return mapper.selectQcStndGudlGudlRelAflIdListNext(search);
     }
     
+    public int selectQcStndRCount(QC01020001USearch search) {
+        return mapper.selectQcStndRCount(search);
+    }
+    
+    public int selectQcStndACount(QC01020001USearch search) {
+        return mapper.selectQcStndACount(search);
+    }
+    
+    public int selectQcStndMCount(QC01020001USearch search) {
+        return mapper.selectQcStndMCount(search);
+    }
+    
+    public int selectQcStndECount(QC01020001USearch search) {
+        return mapper.selectQcStndECount(search);
+    }
+    
+    public int selectQcStndSCount(QC01020001USearch search) {
+        return mapper.selectQcStndSCount(search);
+    }
+    
 }

+ 12 - 0
src/main/java/sgc/portal/qc/qc0102/web/QC01020001UController.java

@@ -80,6 +80,12 @@ public class QC01020001UController {
     	List<EasyHashMap<String, Object>>  list2S = service.selectHeaderUpList5(search);
     	List<EasyHashMap<String, Object>>  list3S = service.selectHeaderDownList5(search);
     	
+    	int count1 = service.selectQcStndRCount(search);
+    	int count2 = service.selectQcStndACount(search);
+    	int count3 = service.selectQcStndMCount(search);
+    	int count4 = service.selectQcStndECount(search);
+    	int count5 = service.selectQcStndSCount(search);
+    	
     	resultMap.put("dcdataList1"			, list1R);
     	resultMap.put("dsHeaderUpList1"		, list2R);
         resultMap.put("dsHeaderDownList1"	, list3R);
@@ -100,6 +106,12 @@ public class QC01020001UController {
     	resultMap.put("dsHeaderUpList5"		, list2S);
         resultMap.put("dsHeaderDownList5"	, list3S);
         
+        resultMap.put("dsCount1"	, count1);
+        resultMap.put("dsCount2"	, count2);
+        resultMap.put("dsCount3"	, count3);
+        resultMap.put("dsCount4"	, count4);
+        resultMap.put("dsCount5"	, count5);
+        
         return resultMap;
     }
     

+ 45 - 0
src/main/resources/sqlmap/mappers/qc/qc0102/QC01020001UMapper.xml

@@ -855,4 +855,49 @@
           	   AND A.DEL_YN = 'N'
      </select>
      
+     <select id="selectQcStndRCount" parameterType="map" resultType="int">
+     		SELECT COUNT(*) AS COUNT_1
+			  FROM QC_STND
+			 WHERE CMPN_CD = #{cmpnCd}
+			   AND UPPER_DOC_ID = '000-001'
+			   AND USE_YN = 'Y'
+			   AND MARK_YN = 'Y'
+     </select>
+     
+     <select id="selectQcStndACount" parameterType="map" resultType="int">
+     		SELECT COUNT(*) AS COUNT_1
+			  FROM QC_STND
+			 WHERE CMPN_CD = #{cmpnCd}
+			   AND UPPER_DOC_ID = '000-002'
+			   AND USE_YN = 'Y'
+			   AND MARK_YN = 'Y'
+     </select>
+     
+     <select id="selectQcStndMCount" parameterType="map" resultType="int">
+     		SELECT COUNT(*) AS COUNT_1
+			  FROM QC_STND
+			 WHERE CMPN_CD = #{cmpnCd}
+			   AND UPPER_DOC_ID = '000-003'
+			   AND USE_YN = 'Y'
+			   AND MARK_YN = 'Y'
+     </select>
+     
+     <select id="selectQcStndECount" parameterType="map" resultType="int">
+     		SELECT COUNT(*) AS COUNT_1
+			  FROM QC_STND
+			 WHERE CMPN_CD = #{cmpnCd}
+			   AND UPPER_DOC_ID = '000-004'
+			   AND USE_YN = 'Y'
+			   AND MARK_YN = 'Y'
+     </select>
+     
+     <select id="selectQcStndSCount" parameterType="map" resultType="int">
+     		SELECT COUNT(*) AS COUNT_1
+			  FROM QC_STND
+			 WHERE CMPN_CD = #{cmpnCd}
+			   AND UPPER_DOC_ID = '000-005'
+			   AND USE_YN = 'Y'
+			   AND MARK_YN = 'Y'
+     </select>
+     
 </mapper>

+ 28 - 14
src/main/webapp/ux/qc/qc0102/QC01020001U.xml

@@ -272,7 +272,7 @@
 
 				gridHeader = '<w2:row id="row1" style="">'
 					    + '<w2:column removeBorderStyle="false" width="320" inputType="text" style="height:21px;" id="'+dsHeaderUpList1.getCellData(0,"docId")+ '" value="' + dsHeaderUpList1.getCellData(0,"stndDocNm")+ '" '
-						+'blockSelect="false" displayMode="label" colSpan="2" rowSpan="">'
+						+'blockSelect="false" displayMode="label" colSpan="'+ result.dsCount1 +'" rowSpan="">'
 						+'</w2:column>'
 				        + '</w2:row>'	
 				        + '<w2:row id="row3" style="">'
@@ -293,7 +293,7 @@
 				gridBody += '</w2:row>'					
 				;
 				
-				var gridStr = '<w2:gridView xmlns="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:w2="http://www.inswave.com/websquare" xmlns:xf="http://www.w3.org/2002/xforms" readOnly="true" class="wq_gvw wq_gvw_noFocus" dataList="data:dcdataList1" '
+				var gridStr = '<w2:gridView xmlns="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:w2="http://www.inswave.com/websquare" xmlns:xf="http://www.w3.org/2002/xforms" readOnly="true" class="wq_gvw" dataList="data:dcdataList1" '
 						+'adaptive="crosstab" adaptiveThreshold="600" autoFit="allColumn" fixedColumnWithHidden="true" focusMode="row" id="grdData1"   tooltipDisplay="true" '
 						+'rowStatusWidth="50" scrollByColumn="true" style="height:160px;" fixedColumn="" rowStatusHeaderValue="상태" rowStatusVisible="false" '
 						+'rowMouseOver="false" useShiftKey="true" visibleRowNum="" sortable="true" showSortableUseFilterList="true" useFilterList="true" ev:oncellclick="scwin.grdData1_oncellclick" ev:onbodymouseover="scwin.grdData1_onbodymouseover" ev:onscrolly="">'
@@ -339,7 +339,7 @@
 
 				gridHeader2 = '<w2:row id="row1" style="">'
 					    + '<w2:column removeBorderStyle="false" width="1640" inputType="text" style="height:21px;" id="'+dsHeaderUpList2.getCellData(0,"docId")+ '" value="' + dsHeaderUpList2.getCellData(0,"stndDocNm")+ '" '
-						+'blockSelect="false" displayMode="label" colSpan="2" rowSpan="">'
+						+'blockSelect="false" displayMode="label" colSpan="'+ result.dsCount2 +'" rowSpan="">'
 						+'</w2:column>'
 				        + '</w2:row>'	
 				        + '<w2:row id="row3" style="">'
@@ -360,7 +360,7 @@
 				gridBody2 += '</w2:row>'					
 				;
 				
-				var gridStr2 = '<w2:gridView xmlns="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:w2="http://www.inswave.com/websquare" xmlns:xf="http://www.w3.org/2002/xforms" readOnly="true" class="wq_gvw wq_gvw_noFocus" dataList="data:dcdataList2" '
+				var gridStr2 = '<w2:gridView xmlns="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:w2="http://www.inswave.com/websquare" xmlns:xf="http://www.w3.org/2002/xforms" readOnly="true" class="wq_gvw" dataList="data:dcdataList2" '
 						+'adaptive="crosstab" adaptiveThreshold="600" autoFit="allColumn" fixedColumnWithHidden="true" focusMode="row" id="grdData2" tooltipDisplay="true" '
 						+'rowStatusWidth="50" scrollByColumn="true" style="height:200px;" fixedColumn="" rowStatusHeaderValue="상태" rowStatusVisible="false" '
 						+'rowMouseOver="false" useShiftKey="true" visibleRowNum="" sortable="true" showSortableUseFilterList="true" useFilterList="true" ev:oncellclick="scwin.grdData2_oncellclick" ev:onbodymouseover="scwin.grdData2_onbodymouseover">'
@@ -408,7 +408,7 @@
 
 				gridHeader3 = '<w2:row id="row1" style="">'
 					    + '<w2:column removeBorderStyle="false" width="810" inputType="text" style="height:21px;" id="'+dsHeaderUpList3.getCellData(0,"docId")+ '" value="' + dsHeaderUpList3.getCellData(0,"stndDocNm")+ '" '
-						+'blockSelect="false" displayMode="label" colSpan="2" rowSpan="">'
+						+'blockSelect="false" displayMode="label" colSpan="'+ result.dsCount3 +'" rowSpan="">'
 						+'</w2:column>'
 				        + '</w2:row>'	
 				        + '<w2:row id="row3" style="">'
@@ -429,7 +429,7 @@
 				gridBody3 += '</w2:row>'					
 				;
 				
-				var gridStr3 = '<w2:gridView xmlns="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:w2="http://www.inswave.com/websquare" xmlns:xf="http://www.w3.org/2002/xforms" readOnly="true" class="wq_gvw wq_gvw_noFocus" dataList="data:dcdataList3" '
+				var gridStr3 = '<w2:gridView xmlns="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:w2="http://www.inswave.com/websquare" xmlns:xf="http://www.w3.org/2002/xforms" readOnly="true" class="wq_gvw" dataList="data:dcdataList3" '
 						+'adaptive="crosstab" adaptiveThreshold="600" autoFit="allColumn" fixedColumnWithHidden="true" focusMode="row" id="grdData3" tooltipDisplay="true" '
 						+'rowStatusWidth="50" scrollByColumn="true" style="height:250px;" fixedColumn="" rowStatusHeaderValue="상태" rowStatusVisible="false" '
 						+'rowMouseOver="false" useShiftKey="true" visibleRowNum="" sortable="true" showSortableUseFilterList="true" useFilterList="true" ev:oncellclick="scwin.grdData3_oncellclick" ev:onbodymouseover="scwin.grdData3_onbodymouseover">'
@@ -475,7 +475,7 @@
 
 				gridHeader4 = '<w2:row id="row1" style="">'
 					    + '<w2:column removeBorderStyle="false" width="810" inputType="text" style="height:21px;" id="'+dsHeaderUpList4.getCellData(0,"docId")+ '" value="' + dsHeaderUpList4.getCellData(0,"stndDocNm")+ '" '
-						+'blockSelect="false" displayMode="label" colSpan="2" rowSpan="">'
+						+'blockSelect="false" displayMode="label" colSpan="'+ result.dsCount4 +'" rowSpan="">'
 						+'</w2:column>'
 				        + '</w2:row>'	
 				        + '<w2:row id="row3" style="">'
@@ -496,7 +496,7 @@
 				gridBody4 += '</w2:row>'					
 				;
 				
-				var gridStr4 = '<w2:gridView xmlns="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:w2="http://www.inswave.com/websquare" xmlns:xf="http://www.w3.org/2002/xforms" readOnly="true" class="wq_gvw wq_gvw_noFocus" dataList="data:dcdataList4" '
+				var gridStr4 = '<w2:gridView xmlns="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:w2="http://www.inswave.com/websquare" xmlns:xf="http://www.w3.org/2002/xforms" readOnly="true" class="wq_gvw" dataList="data:dcdataList4" '
 						+'adaptive="crosstab" adaptiveThreshold="600" autoFit="allColumn" fixedColumnWithHidden="true" focusMode="row" id="grdData4" tooltipDisplay="true" '
 						+'rowStatusWidth="50" scrollByColumn="true" style="height:400px;" fixedColumn="" rowStatusHeaderValue="상태" rowStatusVisible="false" '
 						+'rowMouseOver="false" useShiftKey="true" visibleRowNum="" sortable="true" showSortableUseFilterList="true" useFilterList="true" ev:oncellclick="scwin.grdData4_oncellclick" ev:onbodymouseover="scwin.grdData4_onbodymouseover">'
@@ -542,7 +542,7 @@
 
 				gridHeader5 = '<w2:row id="row1" style="">'
 					    + '<w2:column removeBorderStyle="false" width="1640" inputType="text" style="height:21px;" id="'+dsHeaderUpList5.getCellData(0,"docId")+ '" value="' + dsHeaderUpList5.getCellData(0,"stndDocNm")+ '" '
-						+'blockSelect="false" displayMode="label" colSpan="8">'
+						+'blockSelect="false" displayMode="label" colSpan="'+ result.dsCount5 +'">'
 						+'</w2:column>'
 				        + '</w2:row>'	
 				        + '<w2:row id="row3" style="">'
@@ -563,7 +563,7 @@
 				gridBody5 += '</w2:row>'					
 				;
 				
-				var gridStr5 = '<w2:gridView xmlns="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:w2="http://www.inswave.com/websquare" xmlns:xf="http://www.w3.org/2002/xforms" readOnly="true" class="wq_gvw wq_gvw_noFocus" dataList="data:dcdataList5" '
+				var gridStr5 = '<w2:gridView xmlns="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:w2="http://www.inswave.com/websquare" xmlns:xf="http://www.w3.org/2002/xforms" readOnly="true" class="wq_gvw" dataList="data:dcdataList5" '
 						+'adaptive="crosstab" adaptiveThreshold="600" autoFit="allColumn" fixedColumnWithHidden="true" focusMode="row" id="grdData5" tooltipDisplay="true" '
 						+'rowStatusWidth="50" scrollByColumn="true" style="height:370px;" fixedColumn="" rowStatusHeaderValue="상태" rowStatusVisible="false" '
 						+'rowMouseOver="false" useShiftKey="true" visibleRowNum="" sortable="true" showSortableUseFilterList="true" useFilterList="true" ev:onbodymouseover="scwin.grdData5_onbodymouseover">'
@@ -833,8 +833,15 @@
 		if(dsContextList.getTotalRow() == 0){
 			contextGroup1.hide();
 		}else if(dsContextList.getTotalRow() > 0){
-			contextGroup1.show();
-			contextGroup1.setPosition( left + 700 , top + 500);
+			
+			if(info.colIndex != 1){
+				contextGroup1.show();
+				contextGroup1.setPosition( left + 700 , top + 500);
+			}else if(info.colIndex == 1){
+				contextGroup1.show();
+				contextGroup1.setPosition( left + 280 , top + 500);
+				//contextGroup1.setPosition( left - 460 , top + 920);
+			}
 		}
 	};
 	
@@ -850,6 +857,7 @@
 		var colIdx = info.colIndex;
 		var rowIdx2 = info.rowIndex - grdData5.getTopRowIndex();
 		var left = grdData5.getPosition( "left" ) + grdData5.getCellPosition( rowIdx2 , colIdx , "left" )+grdData5.getCellSize( rowIdx2 , colIdx , "width" );
+		var right = grdData5.getPosition( "right" ) + grdData5.getCellPosition( rowIdx2 , colIdx , "right" )+grdData5.getCellSize( rowIdx2 , colIdx , "width" );
 		var top = grdData5.getPosition( "top" ) + grdData5.getCellPosition( rowIdx2 , colIdx , "top" )+grdData5.getCellSize( rowIdx2 , colIdx , "height" );
 		
 		for(var i = 0 ; i <= dsHeaderDownList5.getRowCount(); i++){
@@ -865,8 +873,14 @@
 		if(dsContextList.getTotalRow() == 0){
 			contextGroup1.hide();
 		}else if(dsContextList.getTotalRow() > 0){
-			contextGroup1.show();
-			contextGroup1.setPosition( left - 35 , top + 920);
+		
+			if(info.colIndex != 7){
+				contextGroup1.show();
+				contextGroup1.setPosition( left - 35 , top + 920);
+			}else if(info.colIndex == 7){
+				contextGroup1.show();
+				contextGroup1.setPosition( left - 460 , top + 920);
+			}
 		}
 	};
 	]]></script>

+ 3 - 3
src/main/webapp/ux/qc/qc0102/QC01020002U.xml

@@ -916,7 +916,7 @@
 											<xf:group tagname="col" style="width:100.00%"></xf:group>
 										</xf:group>
 										<xf:group tagname="tr">
-											<xf:group tagname="td" style="" class="w2tb_td">
+											<xf:group tagname="td" style="border-right:0px; border-left:0px; border-top:0px; border-bottom:0px;" class="w2tb_td">
 												<w2:generator id="fileList2" tagname="">
 													<w2:generator id="file" tagname="li">
 														<w2:anchor id="btn_addFile" outerDiv="false">
@@ -946,7 +946,7 @@
 											<xf:group tagname="col" style="width:100.00%"></xf:group>
 										</xf:group>
 										<xf:group tagname="tr">
-											<xf:group tagname="td" style="" class="w2tb_td">
+											<xf:group tagname="td" style="border-right:0px; border-left:0px; border-top:0px; border-bottom:0px;" class="w2tb_td">
 												<w2:generator id="fileList3" tagname="">
 													<w2:generator id="file" tagname="li">
 														<w2:anchor id="btn_addFile" outerDiv="false">
@@ -987,7 +987,7 @@
 											<xf:group tagname="col" style="width:100.00%"></xf:group>
 										</xf:group>
 										<xf:group tagname="tr">
-											<xf:group tagname="td" style="" class="w2tb_td">
+											<xf:group tagname="td" style="border-right:0px; border-left:0px; border-top:0px; border-bottom:0px;" class="w2tb_td">
 												<w2:generator id="fileList4" tagname="">
 													<w2:generator id="file" tagname="li">
 														<w2:anchor id="btn_addFile" outerDiv="false">