|
|
@ -1,3 +1,33 @@
|
|
|
|
|
|
|
|
//엑셀 파일 생성 정보
|
|
|
|
|
|
|
|
function getColDefs($th, $td){
|
|
|
|
|
|
|
|
var colDefs = [];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for(var i=0; i < $th.length; i++){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var label = $th.eq(i).text();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(label != ""){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var width = $th.eq(i).outerWidth();
|
|
|
|
|
|
|
|
width = Math.ceil(width/10) + 2;
|
|
|
|
|
|
|
|
var field = $td.eq(i).text();
|
|
|
|
|
|
|
|
field = field.replace("{", "");
|
|
|
|
|
|
|
|
field = field.replace("}", "");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var colDef = {
|
|
|
|
|
|
|
|
label : label,
|
|
|
|
|
|
|
|
width : width,
|
|
|
|
|
|
|
|
field : field
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
colDefs.push(colDef);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return JSON.stringify(colDefs);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* 지연
|
|
|
|
* 지연
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|