데이터grid 조회 정보 표 통합


$('#purchaseOrderDtlDataGrid').datagrid({
        onLoadSuccess:function(){
        	var allRows = $('#purchaseOrderDtlDataGrid').datagrid('getRows');
	var effect = new Array();
	$.each(allRows,function(index,row){
		var k = true;
		for(var i=0;i<effect.length;i++){
			if(effect[i]==row.sizeKind){
				k=false;
			}
		}
		if(k){
			effect.push(row.sizeKind);
		}
	});
	// 
	var merge = {  
	    index:allRows.length-effect.length,  
	    rowspan:effect.length,
	    colspan:3
	};
	$('#purchaseOrderDtlDataGrid').datagrid('mergeCells',{  
        index:merge.index,  
        field:'itemNo',  
        rowspan:merge.rowspan,
        colspan:merge.colspan
    });
	$('#purchaseOrderDtlDataGrid').datagrid('mergeCells',{  
        index:merge.index,  
        field:'actualMoney',  
        rowspan:merge.rowspan,
        colspan:0
    });
	$('#purchaseOrderDtlDataGrid').datagrid('mergeCells',{  
        index:merge.index,  
        field:'orderQty',  
        rowspan:merge.rowspan,
        colspan:0
    });
 }
        });




좋은 웹페이지 즐겨찾기