Browse Source

현장검색시 엔터키처리 및 파라미터 전달부분 수정

SH 9 months ago
parent
commit
3e8e2cecd4

+ 4 - 2
src/main/webapp/ux/com/pop/comSitePop.xml

@@ -47,6 +47,8 @@
     scwin.initScreen = function() {
     scwin.initScreen = function() {
         var param = popupLib.getPopupParam();
         var param = popupLib.getPopupParam();
         var param_data = JSON.parse(strLib.serialize(param));
         var param_data = JSON.parse(strLib.serialize(param));
+        
+        input1.setValue(param_data.searchData1);
 
 
         scwin.btnSearch_onclick();
         scwin.btnSearch_onclick();
     };
     };
@@ -187,8 +189,8 @@
 							<w2:span label="현장명" style="" id=""></w2:span>
 							<w2:span label="현장명" style="" id=""></w2:span>
 						</xf:group>
 						</xf:group>
 						<xf:group style="" class="w2tb_td" tagname="td">
 						<xf:group style="" class="w2tb_td" tagname="td">
-
-							<xf:input adjustMaxLength="false" id="input1" style="width: 50%;height: 21px;" ev:oneditkeyup="scwin.input1_oneditkeyup"></xf:input>
+                            <xf:input dataType="text" ev:onkeypress="scwin.txtDeptNm_onkeypress" id="input1" style="width: 95%;">
+                            </xf:input>
 						</xf:group>
 						</xf:group>
 					</xf:group>
 					</xf:group>
 				</xf:group>
 				</xf:group>

+ 14 - 1
src/main/webapp/ux/cw/cw1001/CW10010001U.xml

@@ -282,6 +282,19 @@
 			callback: "fnSitePopup"
 			callback: "fnSitePopup"
 		});
 		});
     };
     };
+	
+	/***************************************************************************
+     * Event: scwin.grdData1_oneditkeyup
+     * 기   능 : 승인자성명 Enter키 입력시
+     ***************************************************************************/
+	scwin.grdData1_oneditkeyup = function(info) {
+		if (info.colID == "siteCd") {
+			if (info.keyCode == 13) {
+				scwin.currRow = info.rowIndex;
+				scwin.btnSitePop_onclick(scwin.currRow);
+			}
+		}
+	};
 
 
     /**************************************************************************
     /**************************************************************************
      * [4] Callback
      * [4] Callback
@@ -493,7 +506,7 @@
 						ignoreToggleOnDisabled="false" keyMoveEditMode="true" moveKeyEditMode="true" rowNumHeaderValue="No" rowNumStatusResize="true"
 						ignoreToggleOnDisabled="false" keyMoveEditMode="true" moveKeyEditMode="true" rowNumHeaderValue="No" rowNumStatusResize="true"
 						rowNumVisible="true" rowNumWidth="35" rowStatusHeaderValue="상태" rowStatusVisible="true" rowStatusWidth="35" scrollByColumn="true"
 						rowNumVisible="true" rowNumWidth="35" rowStatusHeaderValue="상태" rowStatusVisible="true" rowStatusWidth="35" scrollByColumn="true"
 						scrollByColumnAdaptive="false" style="height: 200px;" summaryAuto="false" useShiftKey="true" visibleRowNum=""
 						scrollByColumnAdaptive="false" style="height: 200px;" summaryAuto="false" useShiftKey="true" visibleRowNum=""
-						ev:onheaderclick="scwin.grdData1_onheaderclick" ev:oncellclick="scwin.grdData1_oncellclick" ev:oneditkeyup="scwin.grdData1_oneditkeyup">
+						ev:onheaderclick="scwin.grdData1_onheaderclick" ev:oncellclick="scwin.grdData1_oncellclick" ev:oneditkeyup="scwin.grdData1_oneditkeyup" enterKeyMove="none">
 						<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">