V20251023001 #15
@@ -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();
|
||||
|
||||
@@ -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'
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user