|
|
|
@ -83,6 +83,7 @@
|
|
|
|
|
<select id="schOpt" name="schOpt" class="form-select">
|
|
|
|
|
<option value="schVhrno">차량번호</option>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<input type="text" id="schWord" name="schWord" class="form-control" value="" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -254,7 +255,7 @@ function renderCrdnList(data) {
|
|
|
|
|
/*******************************
|
|
|
|
|
* Biz function
|
|
|
|
|
*******************************/
|
|
|
|
|
const fnBiz = {
|
|
|
|
|
var fnBiz = {
|
|
|
|
|
getParams: () => {
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
@ -270,9 +271,9 @@ const fnBiz = {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
,pagePopup: function(flag, params){
|
|
|
|
|
let url;
|
|
|
|
|
let popTitle;
|
|
|
|
|
let popOption;
|
|
|
|
|
var url;
|
|
|
|
|
var popTitle;
|
|
|
|
|
var popOption;
|
|
|
|
|
switch (flag) {
|
|
|
|
|
case "total":
|
|
|
|
|
url = fimsApiUrl.POPUP_CRACKDOWN_TOTAL;
|
|
|
|
@ -305,11 +306,11 @@ const fnBiz = {
|
|
|
|
|
popup = CmmPopup.openModal(url, params, popOption, popTitle);
|
|
|
|
|
}
|
|
|
|
|
,onClickGrid: function(props){
|
|
|
|
|
const selColumn = props.columnInfo.name;
|
|
|
|
|
var selColumn = props.columnInfo.name;
|
|
|
|
|
switch (selColumn){
|
|
|
|
|
case 'cvlcptRcptNo':
|
|
|
|
|
popupDiv = 'edit';
|
|
|
|
|
const rowDatas = GRID.store.data.rawData.map(d => {
|
|
|
|
|
var rowDatas = GRID.store.data.rawData.map(d => {
|
|
|
|
|
return {crdnSeCd: d.crdnSeCd, crdnId: d.crdnId, crdnSttsCd: d.crdnSttsCd}
|
|
|
|
|
})
|
|
|
|
|
pageNav = new PageNavigation(GRID, rowDatas, props.rowKey);
|
|
|
|
@ -329,7 +330,7 @@ const fnBiz = {
|
|
|
|
|
}
|
|
|
|
|
,onDblClickGrid: function (props) {
|
|
|
|
|
popupDiv = 'total';
|
|
|
|
|
const rowDatas = GRID.store.data.rawData.map(d => {
|
|
|
|
|
var rowDatas = GRID.store.data.rawData.map(d => {
|
|
|
|
|
return {crdnSeCd: d.crdnSeCd, crdnId: d.crdnId, crdnSttsCd: d.crdnSttsCd}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
@ -387,7 +388,7 @@ $(() => {
|
|
|
|
|
/* *******************************
|
|
|
|
|
* Grid
|
|
|
|
|
******************************* */
|
|
|
|
|
const gridColumns = [
|
|
|
|
|
var gridColumns = [
|
|
|
|
|
{
|
|
|
|
|
header: '등록구분',
|
|
|
|
|
name: 'CRDN_REG_SE_CD',
|
|
|
|
@ -408,7 +409,7 @@ const gridColumns = [
|
|
|
|
|
type: CustomButtonRenderer,
|
|
|
|
|
options: {
|
|
|
|
|
formatter: (props)=>{
|
|
|
|
|
const rowData = props.grid.getRow(props.rowKey);
|
|
|
|
|
var rowData = props.grid.getRow(props.rowKey);
|
|
|
|
|
return {
|
|
|
|
|
formatter: rowData.crdnSeCd === '09' ? rowData.cvlcptRcptNo : rowData.fileLinkId
|
|
|
|
|
,element: "text"
|
|
|
|
@ -594,7 +595,7 @@ const gridColumns = [
|
|
|
|
|
hidden: true
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
const gridOptions = {
|
|
|
|
|
var gridOptions = {
|
|
|
|
|
el: 'grid',
|
|
|
|
|
rowHeaders: ['rowNum'],
|
|
|
|
|
columns: gridColumns,
|
|
|
|
@ -605,7 +606,7 @@ const gridOptions = {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const initGrid = () => {
|
|
|
|
|
var initGrid = () => {
|
|
|
|
|
GRID = TuiGrid.of(gridOptions);
|
|
|
|
|
GRID.on('dblclick', function (props) { fnBiz.onDblClickGrid(props); });
|
|
|
|
|
};
|
|
|
|
@ -613,11 +614,10 @@ const initGrid = () => {
|
|
|
|
|
$(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//페이지로딩 후 초기화
|
|
|
|
|
fnBiz.resetBtn();
|
|
|
|
|
initGrid();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#schDateFrom").datepicker({
|
|
|
|
|
changeMonth: true,
|
|
|
|
|
changeYear: true,
|
|
|
|
|