Browse Source

본부별공사대장 준공예정원가 컬럼 클릭시 준공예정원가 팝업

SBK 1 year ago
parent
commit
907f742cee

+ 25 - 1
src/main/webapp/ux/co/co0103/CO01030001U.xml

@@ -249,6 +249,29 @@
                 close:true
             });
 		}
+		
+		if(colId == "complAmtPlan"){
+			var stdYm = dcdataList1.getCellData( row , "stdYm" );
+			var ccCd = dcdataList1.getCellData( row , "ccCd" );
+			var ccNm = dcdataList1.getCellData( row , "ccNm" );
+			var _rdoComplCd = rdoComplCd.getValue();
+			popupLib.open("CO01070001U", "/ux/co/co0107/CO01070001U.xml", {
+                title: "본부별공사대장 - 세부",
+                useLayer: true,
+                modal: true,
+                width: 1600,
+                height: 900,
+                param: {
+                	stdYm : stdYm,
+	            	ccCd : ccCd,
+	            	ccNm : ccNm,
+	            	rdoComplCd : _rdoComplCd
+	            },
+                callback: "",
+                close:true
+            });			
+		
+		}
 	};
 	
 	/**************************************************************************
@@ -366,6 +389,7 @@
 		    		if(dcdataList1.getCellData( i , "adventCtmnAmt" ) < 0){
 		    			grdData1.setCellColor( i , "adventCtmnAmt" , "red" );
 		    		}
+		    		
 		    	}
 		    	
 		    	for (var i=0; i<rows; i++) {
@@ -672,7 +696,7 @@
 								<w2:column width="70" id="costTotAmt" textAlign="right" dataType="number" displayFormat="#,###,###"></w2:column>
 								<w2:column width="70" id="saleAmt" textAlign="right" dataType="number" displayFormat="#,###,###"></w2:column>
 								<w2:column width="70" id="saleProfAmt" textAlign="right" dataType="number" displayFormat="#,###,###"></w2:column>
-								<w2:column width="70" id="complAmtPlan" textAlign="right" dataType="number" displayFormat="#,###,###"></w2:column>
+								<w2:column width="70" id="complAmtPlan" textAlign="right" dataType="number" displayFormat="#,###,###" inputType="link"></w2:column>
 								<w2:column width="70" id="nonPyrqNasAmt" textAlign="right" dataType="number" displayFormat="#,###,###"></w2:column>
 								<w2:column width="70" id="pyrqNasAmt" textAlign="right" dataType="number" displayFormat="#,###,###"></w2:column>
 								<w2:column width="70" id="pyrqAmt" textAlign="right" dataType="number" displayFormat="#,###,###"></w2:column>

+ 3 - 1
src/main/webapp/ux/co/co0105/CO01050001P.xml

@@ -229,7 +229,9 @@
 						<xf:group tagname="caption"></xf:group>
 						<xf:group tagname="colgroup">
 							<xf:group style="width:10.00%;" tagname="col"></xf:group>
-							<xf:group style="width:*;" tagname="col"></xf:group>
+							<xf:group style="width:40.00%;" tagname="col"></xf:group>
+							<xf:group style="width:10.00%;" tagname="col"></xf:group>
+							<xf:group style="width:40.00%;" tagname="col"></xf:group>
 						</xf:group>
 						<xf:group tagname="tr" style="">
 							<xf:group class="w2tb_th ast" style="" tagname="th">기준년월</xf:group>

+ 24 - 9
src/main/webapp/ux/co/co0107/CO01070001U.xml

@@ -92,15 +92,30 @@
      * 기    능: 화면 초기화(권한 및 공통코드 초기화)
      ***************************************************************************/
     scwin.initScreen = function() {
-    	
-    	comboCommon.setCommonCode([{"code":"CO003","compID":""}	//본부조회권한 예외사용자
-        						  ]);
-        						  
-		udcYm.setValue(dateLib.getCurrentDate('yyyyMM'));
-		rdoComplCd.setValue( "01" ); //진행구분
-		scwin.getComboCcgrp();	//본부
-		ccPop.hideComp(false,false,false,true,true,true);	//현장udc
+    	param = popupLib.getPopupParam();
+        var param_data = JSON.parse(strLib.serialize(param));
+		ccPop.hideComp(false,false,false,true,true,true);	//현장udc      
         
+        if(param_data.stdYm == undefined){
+	    	comboCommon.setCommonCode([{"code":"CO003","compID":""}	//본부조회권한 예외사용자
+	        						  ]);
+	        						  
+			udcYm.setValue(dateLib.getCurrentDate('yyyyMM'));
+			rdoComplCd.setValue( "01" ); //진행구분
+			scwin.getComboCcgrp();	//본부  	
+        } else {
+			udcYm.disableComp(true); 
+			udcYm.setValue(param_data.stdYm);
+			rdoComplCd.setValue( param_data.rdoComplCd ); //진행구분
+			rdoComplCd.setDisabled(true); 
+			selCcgrp.setDisabled(true);
+			pgtDiv.hide(); 
+			btnHelpHover.hide();
+			ccPop.disableComp(true,true,true,true,true,true);
+			dcsearchMap1.set( "ccCd" , param_data.ccCd );
+			dcsearchMap1.set( "ccNm" , param_data.ccNm );
+			scwin.grdSearch();
+        }       
     };
 
     /**************************************************************************
@@ -324,7 +339,7 @@
 	<body>
 		<xf:group id="sub_contents" style="" class="sub_contents fixed_cont">
 			<xf:group style="" id="contTop" class="">
-				<xf:group id="pgtbox" style="" class="pgtbox">
+				<xf:group id="pgtDiv" style="" class="pgtbox">
 					<w2:textbox id="pageTitle" class="pgt_tit" />
 					<xf:group id="" class="pgt_icobox">
 						<w2:anchor id="btnBookmark" style="" class="btn_bookmark" outerDiv="false" ev:onclick="scwin.btnBookmark_onclick">