This commit is contained in:
@@ -237,9 +237,9 @@
|
||||
}
|
||||
}
|
||||
|
||||
// 변환명령에서 매핑 가능한(필드 유형) 소스 항목만 콤보로 표시
|
||||
// 변환명령에서 매핑 가능한(Field/Array 유형) 소스 항목만 콤보로 표시
|
||||
var srcFieldRows = data.filter(function (rowData) {
|
||||
return rowData['loutItemType'] == LAYOUT_ITEM_TYPE_FIELD;
|
||||
return rowData['loutItemType'] == LAYOUT_ITEM_TYPE_FIELD || rowData['loutItemType'] == LAYOUT_ITEM_TYPE_ARRAY;
|
||||
});
|
||||
$("#srcItemComboDialog").empty();
|
||||
new makeOptions("id","LOUTITEMPATH").setObj($("#srcItemComboDialog")).setData(srcFieldRows).setFormat(srcItemComboOptionFormat).rendering();
|
||||
@@ -1012,10 +1012,26 @@
|
||||
var rowId = targetGrid.getGridParam( "selrow" );
|
||||
if (isNull(rowId)) return;
|
||||
|
||||
targetGrid.jqGrid('setCell',rowId,'CNVSNRSULTITEMPATHNAME',$('textarea[name=CNVSNRSULTITEMPATHNAME]').val());
|
||||
var targetRow = targetGrid.getRowData(rowId);
|
||||
|
||||
// 소스 선택 없이 변환명령을 수기 입력한 경우, 타겟 결과 항목경로명/일련번호가 채워지지 않아
|
||||
// 저장 후 재조회 시 매칭되지 않고 누락되므로 선택된 타겟 행 자신의 값으로 채워준다
|
||||
var cnvsnRsultItemPathName = $('textarea[name=CNVSNRSULTITEMPATHNAME]').val();
|
||||
if (cnvsnRsultItemPathName == "") {
|
||||
cnvsnRsultItemPathName = addArrayTag(targetRow['loutItemType'], addGroupTag(tgtGroup, targetRow['LOUTITEMPATH']));
|
||||
$('textarea[name=CNVSNRSULTITEMPATHNAME]').val(cnvsnRsultItemPathName);
|
||||
}
|
||||
|
||||
var cnvsnItemSerno = $('input[name=CNVSNITEMSERNO]').val();
|
||||
if (cnvsnItemSerno == "") {
|
||||
cnvsnItemSerno = targetRow['loutItemSerno'];
|
||||
$('input[name=CNVSNITEMSERNO]').val(cnvsnItemSerno);
|
||||
}
|
||||
|
||||
targetGrid.jqGrid('setCell',rowId,'CNVSNRSULTITEMPATHNAME',cnvsnRsultItemPathName);
|
||||
targetGrid.jqGrid('setCell',rowId,'CNVSNCMDNAME',$('textarea[name=CNVSNCMDNAME]').val());
|
||||
targetGrid.jqGrid('setCell',rowId,'CNVSNITEMBASCVAL',$('input[name=CNVSNITEMBASCVAL]').val() == "" ? null : $('input[name=CNVSNITEMBASCVAL]').val());
|
||||
targetGrid.jqGrid('setCell',rowId,'CNVSNITEMSERNO',$('input[name=CNVSNITEMSERNO]').val());
|
||||
targetGrid.jqGrid('setCell',rowId,'CNVSNITEMSERNO',cnvsnItemSerno);
|
||||
}
|
||||
|
||||
// treeGrid 에서 rowid 가 접혀있는 상위 노드 아래에 있으면 화면에 보이도록 상위 노드를 모두 펼친다
|
||||
|
||||
Reference in New Issue
Block a user