Class gridUtil
Extends
Object.
Defined in: gridUtils.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
gridUtil()
Object gridUtil() Grid 관련 Util을 제공 합니다.
|
| Method Attributes | Method Name and Description |
|---|---|
| <static> |
gridUtil.autoSelect(grid, checkBoxId, strColumnKey, nRow, oVal, nVal)
WiseGrid 자동선택 - 그리드의 Cell의 값이 변했을 때 선택 Box를 자동으로 체크.
|
| <static> |
gridUtil.containGivenValueCount(grid, checkBoxId, strColumnKey, givenValue)
선택 되어진 값 중 해당 컬럼에 주어진 값의 Count 를 반환 합니다.
|
| <static> |
gridUtil.deleteAddedRows(grid, checkBoxId)
transactionStatus가 'C'인 행만 삭제 (행추가한 행만 삭제) 다른 status가 있는지 여부를 반환
delete selected row when transactional stauts is C reutrn other status exist
|
| <static> |
gridUtil.deleteRows(grid, checkBoxId)
선택한 행들을 삭제.
|
| <static> |
gridUtil.deleteRowsIgnoreTransactionalStatus(grid, checkBoxId)
선택한 행들을 삭제.
|
| <static> |
gridUtil.excelDown(grid)
Grid Data를 Excel File로 Export
export grid data to excel file |
| <static> |
gridUtil.excelUpload(grid)
Grid Data를 Excel File로 Import
import grid data from excel file |
| <static> |
gridUtil.gridCaseRequired(grid, args, selColID, checkColID, checkVal, message)
WiseGrid 필수값 체크 : 전체 데이터 중 특정 컬럼의 특정 값을 가진 Row만 체크.
|
| <static> |
gridUtil.gridRequired(grid, selColID, message)
WiseGrid 필수값 체크 : Grid가 자동으로 생성될 때 DB에 지정한 필수컬럼을 자동으로 array로 만든다.
|
| <static> |
gridUtil.gridRequiredCustom(grid, args, selColID, message)
WiseGrid 필수값 체크 : 사용자가 체크 할 Column을 array로 만들어 넘긴다.
|
| <static> |
gridUtil.isContainGivenValue(grid, checkBoxId, strColumnKey, givenValues, messages)
선택 되어진 값 중 해당 컬럼에 값을 확인 확인 할 값과 Message 쌍을 넘겨서 해당 값이 있으면 그에 맞는 메시지를 출력 합니다.
|
| <static> |
gridUtil.isSelectMoreThan1(grid, checkBoxId)
그리드의 선택된 행수가 하나보다 많으면 true else false
check selected item is more than 0 |
| <static> |
gridUtil.isSelectOne(grid, checkBoxId)
그리드의 선택된 행수가 하나이면 true else false
checked selected one
|
| <static> |
gridUtil.removeTransactionalStatus(grid, strColumnKey)
WiseUX에서 제공하는 transactionalStatus 컬럼의 값을 제어하기 위한 function
transactionalStatus의 값을 Selected Column의 값과 맞춘다. |
| <static> |
gridUtil.selectedRowCount(grid, checkBoxId)
check box가 선택된 갯수를 반환
get selected count |
| <static> |
gridUtil.selectedRowIndexes(grid, checkBoxId)
그리드에서 체크박스 선택된 행번호를 배열로 반환
ex) gridSelectedRowIndex(grid, 'SELECTED').length 하면 선택된 행의 갯수를 알 수 있음. |
| <static> |
gridUtil.swapRow(grid, sourceRow, targetRow)
그리드에서 행 번호를 인자로 받아 두 로우를 swap (swap grid row)
swap grid row with row num |
| <static> |
gridUtil.validateRowReruiredValue(grid, checkBoxId, strColumnKey, nRow)
컬럼과 행번호를 넘겨 해당 위치에 값이 존재하는지 확인 값이 null 이거나 빈값이면 false를 return
check isEmpty selected row with given column |
| <static> |
gridUtil.validateRowReruiredValueWithMessage(grid, checkBoxId, strColumnKey, nRow, message)
컬럼과 행번호를 넘겨 해당 위치에 값이 존재하는지 확인
값이 null 이거나 빈값이면 message를 출력하고 false를 return
check isEmpty selected row with given column, message
|
| <static> |
gridUtil.validateSelectedRowRequiredValueWithMessage(grid, checkBoxId, strColumnKey, nRow, message)
체크박스가 선택된 모든 로우와 Array로 받은 컬럼 키에 해당하는 곳에 모두 데이터가 들어 있는지 확인
널이거나 빈값이 있다면 메시지를 출력하고 false return check isEmpty givenRow row with given column, message |
Method Detail
<static>
gridUtil.autoSelect(grid, checkBoxId, strColumnKey, nRow, oVal, nVal)
WiseGrid 자동선택 - 그리드의 Cell의 값이 변했을 때 선택 Box를 자동으로 체크.
auto select check box when change cell value
auto select check box when change cell value
- Parameters:
- {Object} grid
- WiseGrid Object - [WiseGrid Object]
- {String} checkBoxId
- 체크박스 컬럼 키
- {String} strColumnKey
- 체크 할 컬럼의 ID
- {Number} nRow
- Event가 발생한 Row Index
- {String} oVal
- {String} nVal
<static>
{Number}
gridUtil.containGivenValueCount(grid, checkBoxId, strColumnKey, givenValue)
선택 되어진 값 중 해당 컬럼에 주어진 값의 Count 를 반환 합니다.
return selected count with given value
return selected count with given value
- Parameters:
- {Object} grid
- WiseGrid Object - [WiseGrid Object]
- {String} checkBoxId
- 체크박스 컬럼 키
- {String} strColumnKey
- 체크 할 컬럼의 ID
- {String} givenValue
- Returns:
- {Number}
<static>
gridUtil.deleteAddedRows(grid, checkBoxId)
transactionStatus가 'C'인 행만 삭제 (행추가한 행만 삭제) 다른 status가 있는지 여부를 반환
delete selected row when transactional stauts is C reutrn other status exist
- Parameters:
- grid
- checkBoxId
- Returns:
- isExistOtherStatus 선택한 행 중 상태가 'C'가 아닌 다른 상태의 행이 존재하면 true 리턴
<static>
gridUtil.deleteRows(grid, checkBoxId)
선택한 행들을 삭제. transactional stauts 가 C인 건만 삭제
delete selected row when transactional stauts is C
delete selected row when transactional stauts is C
- Parameters:
- grid
- checkBoxId
<static>
gridUtil.deleteRowsIgnoreTransactionalStatus(grid, checkBoxId)
선택한 행들을 삭제. transactional stauts 무시하고 삭제
delete selected row ignore transactional stauts
delete selected row ignore transactional stauts
<static>
gridUtil.excelDown(grid)
Grid Data를 Excel File로 Export
export grid data to excel file
export grid data to excel file
- Parameters:
- {Object} grid
- WiseGrid Object - [WiseGrid Object]
<static>
gridUtil.excelUpload(grid)
Grid Data를 Excel File로 Import
import grid data from excel file
import grid data from excel file
- Parameters:
- {Object} grid
- WiseGrid Object - [WiseGrid Object]
<static>
{Boolean}
gridUtil.gridCaseRequired(grid, args, selColID, checkColID, checkVal, message)
WiseGrid 필수값 체크 : 전체 데이터 중 특정 컬럼의 특정 값을 가진 Row만 체크.
check grid mandatory value with given grid column and given value
check grid mandatory value with given grid column and given value
- Parameters:
- grid
- WiseGrid Object - [WiseGrid Object]
- args
- 체크 할 컬럼명 ex) args = ["HOUSE_CODE","USER_ID"]; - [Array]
- selColID
- grid의 데이터 중 선택된 행만 체크하기 위한 '선택' 컬럼의 컬럼키명. - [String]
- checkColID
- 체크해야 할 컬럼의 컬럼 ID - [String]
- checkVal
- 체크해야 할 값 - [String]
- message
- 컬럼값이 null일 때 표시 할 메세지 - [String]
- Returns:
- {Boolean}
<static>
{Boolean}
gridUtil.gridRequired(grid, selColID, message)
WiseGrid 필수값 체크 : Grid가 자동으로 생성될 때 DB에 지정한 필수컬럼을 자동으로 array로 만든다.
check grid mandatory value
check grid mandatory value
- Parameters:
- grid
- WiseGrid Object - [WiseGrid Object]
- selColID
- grid의 데이터 중 선택된 행만 체크하기 위한 '선택' 컬럼의 컬럼키명. - [String]
- message
- 컬럼값이 null일 때 표시 할 메세지 - [String]
- Returns:
- {Boolean}
<static>
{Boolean}
gridUtil.gridRequiredCustom(grid, args, selColID, message)
WiseGrid 필수값 체크 : 사용자가 체크 할 Column을 array로 만들어 넘긴다.
check grid mandatory value with given grid column
check grid mandatory value with given grid column
- Parameters:
- grid
- WiseGrid Object - [WiseGrid Object]
- args
- 체크 할 컬럼명 ex) args = ["HOUSE_CODE","USER_ID"]; - [Array]
- selColID
- grid의 데이터 중 선택된 행만 체크하기 위한 '선택' 컬럼의 컬럼키명. - [String]
- message
- 컬럼값이 null일 때 표시 할 메세지 - [String]
- Returns:
- {Boolean}
<static>
{Boolean}
gridUtil.isContainGivenValue(grid, checkBoxId, strColumnKey, givenValues, messages)
선택 되어진 값 중 해당 컬럼에 값을 확인 확인 할 값과 Message 쌍을 넘겨서 해당 값이 있으면 그에 맞는 메시지를 출력 합니다.
validate selected row column whith given value, if it's different alert given message.
validate selected row column whith given value, if it's different alert given message.
- Parameters:
- {Object} grid
- WiseGrid Object - [WiseGrid Object]
- {String} checkBoxId
- 체크박스 컬럼 키
- {String} strColumnKey
- 체크 할 컬럼의 ID
- {Array} givenValues
- {Array} messages
- Returns:
- {Boolean}
<static>
{Boolean}
gridUtil.isSelectMoreThan1(grid, checkBoxId)
그리드의 선택된 행수가 하나보다 많으면 true else false
check selected item is more than 0
check selected item is more than 0
- Returns:
- {Boolean}
<static>
{Boolean}
gridUtil.isSelectOne(grid, checkBoxId)
그리드의 선택된 행수가 하나이면 true else false
checked selected one
- Returns:
- {Boolean}
<static>
gridUtil.removeTransactionalStatus(grid, strColumnKey)
WiseUX에서 제공하는 transactionalStatus 컬럼의 값을 제어하기 위한 function
transactionalStatus의 값을 Selected Column의 값과 맞춘다.
transactionalStatus의 값을 Selected Column의 값과 맞춘다.
- Parameters:
- {Object} grid
- WiseGrid Object - [WiseGrid Object]
- {String} strColumnKey
- - "SELECTED" Column Key
<static>
{Number}
gridUtil.selectedRowCount(grid, checkBoxId)
check box가 선택된 갯수를 반환
get selected count
get selected count
- Returns:
- {Number}
<static>
{Array}
gridUtil.selectedRowIndexes(grid, checkBoxId)
그리드에서 체크박스 선택된 행번호를 배열로 반환
ex) gridSelectedRowIndex(grid, 'SELECTED').length 하면 선택된 행의 갯수를 알 수 있음. get selected index as array
ex) gridSelectedRowIndex(grid, 'SELECTED').length 하면 선택된 행의 갯수를 알 수 있음. get selected index as array
- Returns:
- {Array}
선택 된 행번호 배열
<static>
gridUtil.swapRow(grid, sourceRow, targetRow)
그리드에서 행 번호를 인자로 받아 두 로우를 swap (swap grid row)
swap grid row with row num
swap grid row with row num
- Parameters:
- {Object} grid
- WiseGrid Object - [WiseGrid Object]
- {Number} sourceRow
- {Number} targetRow
<static>
{Boolean}
gridUtil.validateRowReruiredValue(grid, checkBoxId, strColumnKey, nRow)
컬럼과 행번호를 넘겨 해당 위치에 값이 존재하는지 확인 값이 null 이거나 빈값이면 false를 return
check isEmpty selected row with given column
check isEmpty selected row with given column
- Parameters:
- {Object} grid
- WiseGrid Object - [WiseGrid Object]
- {String} checkBoxId
- 체크박스 컬럼 키
- {String} strColumnKey
- 체크 할 컬럼의 ID
- {Number} nRow
- RowIndex
- Returns:
- {Boolean}
<static>
{Boolean}
gridUtil.validateRowReruiredValueWithMessage(grid, checkBoxId, strColumnKey, nRow, message)
컬럼과 행번호를 넘겨 해당 위치에 값이 존재하는지 확인
값이 null 이거나 빈값이면 message를 출력하고 false를 return
check isEmpty selected row with given column, message
- Parameters:
- {Object} grid
- WiseGrid Object - [WiseGrid Object]
- {String} checkBoxId
- 체크박스 컬럼 키
- {String} strColumnKey
- 체크 할 컬럼의 ID
- {Number} nRow
- RowIndex
- {String} message
- Returns:
- {Boolean}
<static>
{Boolean}
gridUtil.validateSelectedRowRequiredValueWithMessage(grid, checkBoxId, strColumnKey, nRow, message)
체크박스가 선택된 모든 로우와 Array로 받은 컬럼 키에 해당하는 곳에 모두 데이터가 들어 있는지 확인
널이거나 빈값이 있다면 메시지를 출력하고 false return check isEmpty givenRow row with given column, message
널이거나 빈값이 있다면 메시지를 출력하고 false return check isEmpty givenRow row with given column, message
- Parameters:
- {Object} grid
- WiseGrid Object - [WiseGrid Object]
- {String} checkBoxId
- 체크박스 컬럼 키
- {String} strColumnKey
- 체크 할 컬럼의 ID
- {Number} nRow
- RowIndex
- {String} message
- Returns:
- {Boolean}