|
|
@@ -30,7 +30,6 @@
|
|
|
<ul class="panelBar">
|
|
|
<li>
|
|
|
<button type="button" class="btn btn-dark btn-sm" id="btnAddRow">행추가</button>
|
|
|
- <button type="button" class="btn btn-danger btn-sm" id="btnDeleteRow">행삭제</button>
|
|
|
</li>
|
|
|
<li class="right">
|
|
|
<button type="button" class="btn btn-success btn-lg" id="btnSave">저장</button>
|
|
|
@@ -67,23 +66,23 @@
|
|
|
cellEditor: 'textCellEditor',
|
|
|
cellEditorParams: { maxlength: 50, required: true }
|
|
|
},
|
|
|
- {headerName: "RGB색상코드", field: "colorGrpFile", width: 100, cellClass: 'text-center',
|
|
|
+ {headerName: "RGB색상코드", field: "colorFile", width: 100, cellClass: 'text-center',
|
|
|
cellEditor: 'textCellEditor',
|
|
|
cellEditorParams: { maxlength: 7, required: true, onblur: '$(this).val($(this).val().toUpperCase())' }
|
|
|
},
|
|
|
{headerName: "색상", width: 60, cellClass: 'text-center', editable: false,
|
|
|
cellStyle : function(params){
|
|
|
- return { 'background-color': params.data.colorGrpFile};
|
|
|
+ return { 'background-color': params.data.colorFile};
|
|
|
}
|
|
|
},
|
|
|
- {headerName: "그룹색상명", field: "groupColorCd", width: 180, cellClass: 'text-left',
|
|
|
+ {headerName: "그룹색상명", field: "colorGrpCd", width: 180, cellClass: 'text-left',
|
|
|
cellEditor: 'agRichSelectCellEditor',
|
|
|
cellEditorParams: { values: gagaAgGrid.extractValues(groupColorCodeList), required: true },
|
|
|
valueFormatter: function (params) { return gagaAgGrid.lookupValue(groupColorCodeNmList, params.value); }
|
|
|
},
|
|
|
{headerName: "그룹색상", width: 80, cellClass: 'text-center', editable: false,
|
|
|
cellStyle : function(params){
|
|
|
- return { 'background-color': gagaAgGrid.lookupValue(groupColorCodeList, params.data.groupColorCd)};
|
|
|
+ return { 'background-color': gagaAgGrid.lookupValue(groupColorCodeList, params.data.colorGrpCd)};
|
|
|
}
|
|
|
},
|
|
|
{headerName: "사용여부", field: "useYn", width: 100, minWidth: 75, cellClass: 'text-center',
|
|
|
@@ -144,22 +143,22 @@
|
|
|
var optCheck = false;
|
|
|
$.each(changedData, function(idx, item) {
|
|
|
|
|
|
- if (item.colorGrpFile.indexOf("#") !=0 ) {
|
|
|
+ if (item.colorFile.indexOf("#") !=0 ) {
|
|
|
optCheck = true;
|
|
|
mcxDialog.alertC("RGB색상코드는 #으로 시작해주세요.", {
|
|
|
sureBtnText: "확인",
|
|
|
sureBtnClick: function() {
|
|
|
- gridOptions.api.setFocusedCell(idx, "colorGrpFile", null);
|
|
|
+ gridOptions.api.setFocusedCell(idx, "colorFile", null);
|
|
|
}
|
|
|
});
|
|
|
return false;
|
|
|
}
|
|
|
- if (item.colorGrpFile.length != 7 ) {
|
|
|
+ if (item.colorFile.length != 7 ) {
|
|
|
optCheck = true;
|
|
|
mcxDialog.alertC("RGB색상코드는 #포함 7자리로 입력해주세요.", {
|
|
|
sureBtnText: "확인",
|
|
|
sureBtnClick: function() {
|
|
|
- gridOptions.api.setFocusedCell(idx, "colorGrpFile", null);
|
|
|
+ gridOptions.api.setFocusedCell(idx, "colorFile", null);
|
|
|
}
|
|
|
});
|
|
|
return false;
|