|
@@ -27,6 +27,7 @@
|
|
<w2:dataCollection baseNode="map">
|
|
<w2:dataCollection baseNode="map">
|
|
<w2:dataList baseNode="list" repeatNode="map" id="dcdataList1" saveRemovedData="">
|
|
<w2:dataList baseNode="list" repeatNode="map" id="dcdataList1" saveRemovedData="">
|
|
<w2:columnInfo>
|
|
<w2:columnInfo>
|
|
|
|
+ <w2:column id="sel" name="선택" dataType="text" ignoreStatus="true"></w2:column>
|
|
<w2:column id="del" name="삭제" dataType="text"></w2:column>
|
|
<w2:column id="del" name="삭제" dataType="text"></w2:column>
|
|
<w2:column id="cmpnCd" name="cmpnCd" dataType="text"></w2:column>
|
|
<w2:column id="cmpnCd" name="cmpnCd" dataType="text"></w2:column>
|
|
<w2:column id="yearYy" name="yearYy" dataType="text"></w2:column>
|
|
<w2:column id="yearYy" name="yearYy" dataType="text"></w2:column>
|
|
@@ -161,6 +162,60 @@
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+ /**************************************************************************
|
|
|
|
+ * Event : scwin.btnConfY_onclick
|
|
|
|
+ * 기 능 : 마감 버튼 클릭 이벤트
|
|
|
|
+ **************************************************************************/
|
|
|
|
+ scwin.btnConfY_onclick = function() {
|
|
|
|
+
|
|
|
|
+ scwin.checkCnt = 0;
|
|
|
|
+
|
|
|
|
+ for (var i = 0; i < dcdataList1.getTotalRow(); i++) {
|
|
|
|
+
|
|
|
|
+ if(dcdataList1.getCellData( i , "sel" ) == "Y") {
|
|
|
|
+ if(dcdataList1.getCellData( i , "confYn" ) == "N"){
|
|
|
|
+ scwin.checkCnt++;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ scwin.fnSetStatusCd(i, 1);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if(scwin.checkCnt == 0){
|
|
|
|
+ commLib.getAlert("마감할 데이터가 없습니다.");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ commLib.saveMsg(dcdataList1, "scwin.fnUpdateYn");
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ /**************************************************************************
|
|
|
|
+ * Event : scwin.btnConfN_onclick
|
|
|
|
+ * 기 능 : 마감취소 버튼 클릭 이벤트
|
|
|
|
+ **************************************************************************/
|
|
|
|
+ scwin.btnConfN_onclick = function() {
|
|
|
|
+
|
|
|
|
+ scwin.checkCnt = 0;
|
|
|
|
+
|
|
|
|
+ for (var i = 0; i < dcdataList1.getTotalRow(); i++) {
|
|
|
|
+
|
|
|
|
+ if(dcdataList1.getCellData( i , "sel" ) == "Y") {
|
|
|
|
+ if(dcdataList1.getCellData( i , "confYn" ) == "Y"){
|
|
|
|
+ scwin.checkCnt++;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ scwin.fnSetStatusCd(i, 2);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if(scwin.checkCnt == 0){
|
|
|
|
+ commLib.getAlert("마감취소할 데이터가 없습니다.");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ commLib.saveMsg(dcdataList1, "scwin.fnUpdateYn");
|
|
|
|
+ };
|
|
|
|
+
|
|
/**************************************************************************
|
|
/**************************************************************************
|
|
* Event:scwin.btnExcel_onclick
|
|
* Event:scwin.btnExcel_onclick
|
|
* 기능:엑셀버튼 클릭
|
|
* 기능:엑셀버튼 클릭
|
|
@@ -289,6 +344,46 @@
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+ /***************************************************************************
|
|
|
|
+ * 함 수 명: scwin.fnUpdateYn
|
|
|
|
+ * 기 능: 신청 처리
|
|
|
|
+ * param: 확인팝업 선택값
|
|
|
|
+ ***************************************************************************/
|
|
|
|
+ scwin.fnUpdateYn = function(param) {
|
|
|
|
+ if(param){
|
|
|
|
+ if (JSON.parse(param).retval=="true") {
|
|
|
|
+ var mdata = strLib.serialize(dcdataList1.getModifiedJSON({DB:true}));
|
|
|
|
+ ajaxLib.ajax("cw/cw0629/CW06290001U/updateYn", {
|
|
|
|
+ method: "POST",
|
|
|
|
+ requestData: mdata,
|
|
|
|
+ processMsg:"yes",
|
|
|
|
+ callback: function(result, e) {
|
|
|
|
+ if(result.result == null){
|
|
|
|
+ commLib.getAlert(commLib.getMessage("crud.0002"), "데이터 결과", "R");
|
|
|
|
+ scwin.grdSearch();
|
|
|
|
+ } else {
|
|
|
|
+ commLib.getAlert(result.result, "데이터 결과", "R");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ /***************************************************************************
|
|
|
|
+ * 함 수 명 : scwin.fnSetStatusCd
|
|
|
|
+ * 기 능 : 요청 checkbox가 체크된 row 데이터들의 마감여부 변경
|
|
|
|
+ ***************************************************************************/
|
|
|
|
+ scwin.fnSetStatusCd = function(rowindex, gbn) {
|
|
|
|
+ var rows = grdData1.getCheckedIndex("sel");
|
|
|
|
+
|
|
|
|
+ if (gbn == "1") {
|
|
|
|
+ dcdataList1.setCellData(rowindex, "confYn", "Y");
|
|
|
|
+ } else if (gbn == "2") {
|
|
|
|
+ dcdataList1.setCellData(rowindex, "confYn", "N");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
]]></script>
|
|
]]></script>
|
|
</head>
|
|
</head>
|
|
<body>
|
|
<body>
|
|
@@ -314,6 +409,12 @@
|
|
<w2:anchor class="btn_cm" outerDiv="true" style="" id="btnSave" ev:onclick="scwin.btnSave_onclick">
|
|
<w2:anchor class="btn_cm" outerDiv="true" style="" id="btnSave" ev:onclick="scwin.btnSave_onclick">
|
|
<xf:label><![CDATA[저장]]></xf:label>
|
|
<xf:label><![CDATA[저장]]></xf:label>
|
|
</w2:anchor>
|
|
</w2:anchor>
|
|
|
|
+ <w2:anchor class="btn_cm" outerDiv="true" style="" id="btnConfY" ev:onclick="scwin.btnConfY_onclick">
|
|
|
|
+ <xf:label><![CDATA[마감]]></xf:label>
|
|
|
|
+ </w2:anchor>
|
|
|
|
+ <w2:anchor class="btn_cm" outerDiv="true" style="" id="btnConfN" ev:onclick="scwin.btnConfN_onclick">
|
|
|
|
+ <xf:label><![CDATA[마감취소]]></xf:label>
|
|
|
|
+ </w2:anchor>
|
|
<w2:anchor class="btn_cm" outerDiv="true" style="" id="btnExcel" ev:onclick="scwin.btnExcel_onclick">
|
|
<w2:anchor class="btn_cm" outerDiv="true" style="" id="btnExcel" ev:onclick="scwin.btnExcel_onclick">
|
|
<xf:label><![CDATA[엑셀]]></xf:label>
|
|
<xf:label><![CDATA[엑셀]]></xf:label>
|
|
</w2:anchor>
|
|
</w2:anchor>
|
|
@@ -370,6 +471,9 @@
|
|
<w2:caption style="" id="caption1" value="this is a grid caption."></w2:caption>
|
|
<w2:caption style="" id="caption1" value="this is a grid caption."></w2:caption>
|
|
<w2:header style="" id="header1">
|
|
<w2:header style="" id="header1">
|
|
<w2:row style="" id="row1">
|
|
<w2:row style="" id="row1">
|
|
|
|
+ <w2:column removeBorderStyle="false" width="50" inputType="checkbox" id="selAll" value="선택"
|
|
|
|
+ blockSelect="false" displayMode="label" checkboxLabel="선택">
|
|
|
|
+ </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">
|
|
blockSelect="false" displayMode="label" checkboxLabel="삭제" style="color:red">
|
|
</w2:column>
|
|
</w2:column>
|
|
@@ -391,7 +495,7 @@
|
|
<w2:column removeBorderStyle="false" width="600" inputType="text" id="mainData2" value="정의"
|
|
<w2:column removeBorderStyle="false" width="600" inputType="text" id="mainData2" value="정의"
|
|
blockSelect="false" displayMode="label">
|
|
blockSelect="false" displayMode="label">
|
|
</w2:column>
|
|
</w2:column>
|
|
- <w2:column removeBorderStyle="false" width="500" inputType="text" id="mainData3" value="행동키워드"
|
|
|
|
|
|
+ <w2:column removeBorderStyle="false" width="470" inputType="text" id="mainData3" value="행동키워드"
|
|
blockSelect="false" displayMode="label">
|
|
blockSelect="false" displayMode="label">
|
|
</w2:column>
|
|
</w2:column>
|
|
<w2:column removeBorderStyle="false" width="60" inputType="text" id="confYn" value="마감여부"
|
|
<w2:column removeBorderStyle="false" width="60" inputType="text" id="confYn" value="마감여부"
|
|
@@ -401,6 +505,9 @@
|
|
</w2:header>
|
|
</w2:header>
|
|
<w2:gBody style="" id="gBody1">
|
|
<w2:gBody style="" id="gBody1">
|
|
<w2:row style="" id="row2">
|
|
<w2:row style="" id="row2">
|
|
|
|
+ <w2:column removeBorderStyle="false" width="50" inputType="checkbox" id="sel" blockSelect="false"
|
|
|
|
+ displayMode="label" trueValue="Y" falseValue="N" valueType="other">
|
|
|
|
+ </w2:column>
|
|
<w2:column removeBorderStyle="false" width="50" inputType="checkbox" id="del" blockSelect="false"
|
|
<w2:column removeBorderStyle="false" width="50" inputType="checkbox" id="del" blockSelect="false"
|
|
displayMode="label" trueValue="Y" falseValue="N" valueType="other">
|
|
displayMode="label" trueValue="Y" falseValue="N" valueType="other">
|
|
</w2:column>
|
|
</w2:column>
|
|
@@ -428,7 +535,7 @@
|
|
displayMode="label" textAlign="left">
|
|
displayMode="label" textAlign="left">
|
|
</w2:column>
|
|
</w2:column>
|
|
<w2:column removeBorderStyle="false" width="60" inputType="select" id="confYn" blockSelect="false"
|
|
<w2:column removeBorderStyle="false" width="60" inputType="select" id="confYn" blockSelect="false"
|
|
- displayMode="label" allOption="" chooseOption="" ref="">
|
|
|
|
|
|
+ displayMode="label" readOnly="true" allOption="" chooseOption="" ref="">
|
|
<w2:choices>
|
|
<w2:choices>
|
|
<w2:item>
|
|
<w2:item>
|
|
<w2:label><![CDATA[Y]]></w2:label>
|
|
<w2:label><![CDATA[Y]]></w2:label>
|