一、全选、全取消、反向选择
1.全选
function uf_selAll(){
for(var j=0; j< ds_hz.recordCount; j++){
ds_hz.setValueAt(j,"sel",1);
}
ds_hz.update();
}
2.全取消
function uf_selCancel(){
for(var j=0; j< ds_hz.recordCount; j++){
ds_hz.setValueAt(j,"sel",0);
}
ds_hz.update();
}
3.反向选择
function uf_sel_fx(){
for(var j=0; j< ds_hz.recordCount; j++){
if(ds_hz.getValueAt(j,'sel') == 1){
ds_hz.setValueAt(j,"sel",0);
}else{
ds_hz.setValueAt(j,"sel",1);
}
}
ds_hz.update();
}
二、导出Excel模板、导入Excel表格
1.导出Excel模板
function uf_out_excel_mb(){
grid6.exportTo(0);
}
2.导入Excel表格
function uf_Import(){
var params={
};
params.clientid = ds_ddhz.getValue('clientid');
if(Utility.isSpace(params.clientid )){
alert('请确认销售客户');
return false;
}
params.EntId = form.userinfo.entid;
try {
DBUtil.update("uf_delete_sql");
if (FormUtil.importFile("dataset", "uf_impo