Merge remote-tracking branch 'origin/main'

This commit is contained in:
2025-10-28 13:15:13 +09:00
3 changed files with 188 additions and 127 deletions

View File

@@ -185,8 +185,30 @@ ui-jqgrid tr.jqgrow td {
// {headerHozAlign : 'center', hozAlign : 'center', width : '90', title : 'PART 구분', field : 'PART_TYPE_TITLE' },
{headerHozAlign : 'center', hozAlign : 'center', width : '90', title : '비고', field : 'REMARK' }
];
// 중복 요청 방지 플래그
var isSearching = false;
function fn_search(){
_tabulGrid = fnc_tabul_search(_tabul_layout_fitColumns, _tabulGrid, "/partMng/partMngTempGridList.do", columns, true);
// 이미 검색 중이면 중단
if (isSearching) {
console.log('검색 중입니다. 잠시만 기다려주세요.');
return;
}
isSearching = true;
_tabulGrid = fnc_tabul_search(_tabul_layout_fitColumns, _tabulGrid, "/partMng/partMngTempGridList.do", columns, true, function() {
// 검색 완료 후 플래그 해제
isSearching = false;
});
// 타임아웃 방어 (10초 후 자동 해제)
setTimeout(function() {
if (isSearching) {
isSearching = false;
}
}, 10000);
}
function openPartMngPopup(objId){

View File

@@ -180,9 +180,31 @@ var columns = [
{headerHozAlign : 'center', hozAlign : 'center', width : '200', title : '상태', field : 'STATUS' }
];
// 중복 요청 방지를 위한 로딩 플래그
var isSearching = false;
//var grid;
function fn_search(){
_tabulGrid = fnc_tabul_search(_tabul_layout_fitColumns, _tabulGrid, "/partMng/searchStructureGridList.do", columns, true);
// 이미 검색 중이면 중복 요청 방지
if (isSearching) {
console.log('검색 중입니다. 잠시만 기다려주세요.');
return;
}
isSearching = true;
// 기존 그리드 검색 함수 실행
_tabulGrid = fnc_tabul_search(_tabul_layout_fitColumns, _tabulGrid, "/partMng/searchStructureGridList.do", columns, true, function() {
// 검색 완료 후 플래그 해제
isSearching = false;
});
// fnc_tabul_search가 콜백을 지원하지 않을 경우를 위한 타임아웃 처리
setTimeout(function() {
if (isSearching) {
isSearching = false;
}
}, 10000); // 10초 타임아웃
}
//양산제품에 해당하는 SPEC 정보 목록을 가져온다.