Browse Source

협력업제 하자관리 작업완료서 수정

SBK 2 years ago
parent
commit
56168cb6e0

+ 6 - 1
src/main/webapp/ux/as/as0103/AS01030001U.xml

@@ -322,7 +322,12 @@
      * 기능:작업완료 확인서 출력
      **************************************************************************/
     scwin.btnDonePrint_onclick = function() {
-    	scwin.btnLayerPop_onclick();
+    	var deftNo = dcdataList1.getCellData( dcdataList1.getRowPosition() , "deftNo" );
+    	var param = { ARG_CMPN_CD	: scwin.cmpnCd
+                    , ARG_DEFT_NO	: deftNo
+					};
+		ubiLib.ubiReportPopup("CS03010001R.jrf", param , "AS");
+    	//scwin.btnLayerPop_onclick();
     };
     
     /***************************************************************************

+ 22 - 15
src/main/webapp/ux/as/as0103/AS01030003P.xml

@@ -197,21 +197,28 @@
      * 기능:등록버튼 클릭 클릭
      **************************************************************************/
     scwin.btnDonePrint_onclick = function() {
-		if (lastClickedInfo.deftNo) {
-	        ajaxLib.ajax("as/as0103/AS01030001U/selectTcsDeftView", {
-	            method: "POST",
-	            mode : "synchronous",
-	            requestData : strLib.serialize(lastClickedInfo),
-	            callback: function(result, e) {
-	            	if (result.deftNo) {
-	            		var param = { ARG_CMPN_CD	: scwin.cmpnCd
-	                    			, ARG_DEFT_NO	: result.deftNo
-						};
-						ubiLib.ubiReportPopup("CS03010001R.jrf", param , "AS");
-					}
-				}
-			});
-	    }
+    	alert(lastClickedInfo.deftNo);
+    	var deftNo = lastClickedInfo.deftNo;
+    	var param = { ARG_CMPN_CD	: scwin.cmpnCd
+                    , ARG_DEFT_NO	: deftNo
+					};
+		ubiLib.ubiReportPopup("CS03010001R.jrf", param , "AS");
+		
+//		if (lastClickedInfo.deftNo) {
+//	        ajaxLib.ajax("as/as0103/AS01030001U/selectTcsDeftView", {
+//	            method: "POST",
+//	            mode : "synchronous",
+//	            requestData : strLib.serialize(lastClickedInfo),
+//	            callback: function(result, e) {
+//	            	if (result.deftNo) {
+//	            		var param = { ARG_CMPN_CD	: scwin.cmpnCd
+//	                    			, ARG_DEFT_NO	: result.deftNo
+//						};
+//						ubiLib.ubiReportPopup("CS03010001R.jrf", param , "AS");
+//					}
+//				}
+//			});
+//	    }
     };
     
     /***************************************************************************