Extjs Gridpanel 동적 로드
8175 단어 gridPanel
colMArray_ljdj=[smQd,
{header : /*" "*/" ", dataIndex : "dxjgdm", width : 100},
{header : /* */" ", dataIndex : "khmc", width : 100},
{header : /*" "*/" ", dataIndex : "jyje", width : 100, renderer:jyje_format, align:"right"},
{header : /*" "*/" ", dataIndex : "jyrq", width : 100},
{header : /*" "*/" ", dataIndex : "jysj", width : 100},
{header : " ", dataIndex : "yhdh", width : 100},
{header : /* */" ", dataIndex : "khtzzt", width : 100},
{header : /* */" ", dataIndex : "khlxzt", width : 100},
{header : /* */" ", dataIndex : "xgdjzt", width : 100},
{header : " ",dataIndex: 'zxdj', width : 80, renderer:zxdj_btn},
{header : /* */" ", dataIndex : "xyqyzt", width : 100},
{header : " ", dataIndex : "kkzt", width : 100},
{header : " ",dataIndex: 'kk', width : 80, renderer:kk_btn}];
function zxdj_btn(value, metaData, record, rowIndex, colIndex, store){
var lsh = record.data['lsh'];
var jyje_arr = record.data['jyje'].split(",");
var jyje = "";
for(var j = 0; j< jyje_arr.length; j++){
jyje += jyje_arr[j];
}
jyje = parseFloat(jyje);
if(((record.data['ywdm'] == '901')&&(record.data['xgdjzt'].split("-")[0] == 0))||((record.data['ywdm'] == '902')&&(record.data['khlxzt'].split("-")[0] == 1) && (record.data['xgdjzt'].split("-")[0] == 0))){
return "<div align='center'><button style='cursor:hand' onclick='ybdj(\""+lsh+"\",\""+jyje+"\")'><font size='1'> </font></button></div>";
}else if((record.data['ywdm'] == '902')&&(record.data['xgdjzt'].split("-")[0] == 2)&&(record.data['kkzt'].split("-")[0] == 0)){
return "<div align='center'><button style='cursor:hand;' onclick='qxdj(\""+lsh+"\")'><font size='1'> </font></button></div>";
}else{
return "<div align='center'><button style='cursor:hand;' disabled onclick=''><font size='1'> </font></button></div>";
}
/*
if((record.data['xgdjzt'].split("-")[0] == 2)||(record.data['khlxzt'].split("-")[0] == 0)){
return "<div align='center'><button style='cursor:hand;' disabled onclick='ybdj(\""+lsh+"\")'><font size='1'> </font></button></div>";
}else{
return "<div align='center'><button style='cursor:hand' onclick=''><font size='1'> </font></button></div>";
}*/
}
function kk_btn(value, metaData, record, rowIndex, colIndex, store){
var lsh = record.data['lsh'];
if((record.data['xgdjzt'].split("-")[0] == 2)&&(record.data['kkzt'].split("-")[0] == 0)){
return "<div align='center'><button style='cursor:hand' onclick='kk(\""+lsh+"\")'><font size='1'> </font></button></div>"
}else{
return "<div align='center'><button style='cursor:hand' disabled onclick=''><font size='1'> </font></button></div>"
}
}
function jyje_format(value, metaData, record, rowIndex, colIndex, store){
if(value != null && value != ""){
return rendererZhMoney(value);
}else{
return value;
}
}
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
동적 GridPanel텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.