V20251023001 #15

Merged
geonhee merged 3 commits from V20251023001 into main 2025-10-27 05:30:20 +00:00
2 changed files with 33 additions and 10 deletions
Showing only changes of commit df0a534f0e - Show all commits

View File

@@ -212,9 +212,14 @@ $(document).ready(function(){
});
});
//var unit_cd = $.parseJSON($("#unit_cd").val()); //jqGrid 구분
var part_type = $.parseJSON($("#part_type").val()); //jqGrid 구분
//var sup_code = $.parseJSON($("#sup_code").val()); //jqGrid 구분
// JSON 파싱 시 에러 처리
var unit_cd_val = $("#unit_cd").val();
var part_type_val = $("#part_type").val();
var sup_code_val = $("#sup_code").val();
var unit_cd = unit_cd_val && unit_cd_val.trim() !== '' ? $.parseJSON(unit_cd_val) : {};
var part_type = part_type_val && part_type_val.trim() !== '' ? $.parseJSON(part_type_val) : {};
var sup_code = sup_code_val && sup_code_val.trim() !== '' ? $.parseJSON(sup_code_val) : {};
//Excel File Upload된 파일 목록 부분을 초기화 한다.
$("#excelImportList").hide();

View File

@@ -39,6 +39,19 @@
.tabulator-row.level-9 { background-color: #FFFFEB !important; }
.tabulator-row.level-10 { background-color: #ffffff !important; }
/* 시스템상태(NOTE) 컬럼 헤더 스타일 - CSV 업로드 오류 표시용 */
.tabulator-col[tabulator-field="NOTE"] .tabulator-col-content {
background: linear-gradient(to bottom, #FF9966 0%, #FF9966 100%) !important;
color: white !important;
font-weight: bold !important;
}
/* NOTE 컬럼에 오류가 있는 행 텍스트 색상 */
.tabulator-cell[tabulator-field="NOTE"] {
color: red !important;
font-weight: bold !important;
}
.file_icon, .file_empty_icon {
display: inline-block;
width: 20px;
@@ -84,6 +97,18 @@ function fn_initGrid() {
// 컬럼 정의
var columns = [
{
headerHozAlign: 'center',
hozAlign: 'center',
width: 160,
title: '시스템상태',
field: 'NOTE',
formatter: function(cell) {
var value = cell.getValue();
// NOTE 값이 있으면 빨간색으로 표시 (CSV 업로드 오류 메시지)
return value ? '<span style="color:red; font-weight:bold;">' + value + '</span>' : '';
}
},
{
headerHozAlign: 'center',
hozAlign: 'center',
@@ -111,13 +136,6 @@ function fn_initGrid() {
$('input[name=checkedPartNo]').not(radio).prop('checked', false);
}
}
},
{
headerHozAlign: 'center',
hozAlign: 'center',
width: 100,
title: '시스템상태',
field: 'STATUS'
}
];