DEP设置付款申请单分录往来户银行账户和往来户银行不可手工录入
GUI:1.扩展付款申请单编辑页面
2.在界面加载后置脚本中添加如下脚本
pluginCtx.getKDTable("kdtEntrys").addKDTEditListener(function(event,methodName){
if(methodName == "equals"){
return this == event;
} if(methodName == "editStarting"){
var kdtEntrys = pluginCtx.getKDTable("kdtEntrys");
var rowIndex = kdtEntrys.getSelectManager().getActiveRowIndex();
var colIndex = kdtEntrys.getSelectManager().getActiveColumnIndex();
if (kdtEntrys.getColumn("accountBankNo").getColumnIndex() == colIndex) { kdtEntrys.getColumn("accountBankNo").getEditor().getComponent().setEditable(false);
}else if( kdtEntrys.getColumn("accountBankName").getColumnIndex() == colIndex){ kdtEntrys.getColumn("accountBankName").getEditor().getComponent().setEditable(false);
}
}
});
WEB:
1.新建扩展
2.点击编辑表格,点击事件,扩展 afterEditCell ,处理函数名为entryAfterEditCellHandlerExt
3.点设置,修改文件,在entryAfterEditCellHandlerExt 函数里加入如下代码
var gridId = "editGrid2";
var superModel = mod.useSync("fi/ap/js/ap_payrequest_eidit_page"); superModel.entryAfterEditCellHandler(rowid,cellname, value,iRow,iCol,gridId);
if("accountBankNo" == cellname){ //银行账户
var accountBankNoInput = gridId+"_" + iRow + "_accountBankNo";
waf("#" + accountBankNoInput).wafText("option","readOnly", true);
} else if("accountBank" == cellname){//银行
var accountBankInput = gridId+"_" + iRow + "_accountBank";
waf("#" + accountBankInput).wafText("option","readOnly", true);
}
DEP设置付款申请单分录往来户银行账户和往来户银行不可手工录入
本文2024-09-22 19:05:28发表“eas cloud知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-eas-104984.html