UCML JS函数说明
1.调用父窗体函数 window.openerWindow.函数名2.公用JS存放位置
BPObject\Model\Rule\initvalue.js3.弹窗JS
var w = new UCML.OpenShowWindow({ frameMode: "frame",modal:false, maximizable: true,maximized:false,
collapsible: true,closable:true,collapsible:false, URL: "BPO_Work_Center.aspx?BusinessKeyOID="+BC_Work_CenterBase.getEmptyGuid()+"", scroll: "yes", draggable: true,resizable: true, width: 800, height: 600, title: "工作中心"});w.open();if (w && w.on) {//当窗口关闭时w.on("close", function () {BC_Work_CenterBase.Refresh();
})
}
12345678910114.行双击VCname.on("rowdblclick",函数名)
demo:VC_InstallPlan_ListList.on("rowdblclick",function (){WindowsOpen(1)});125.加载动画效果 开启加载动画: VCNAME.showMask(); ShowMessage(“正在抽取等待…”); 关闭加载动画: HideMessage(); VC_GetAccBugData_NewQuery.hideMask();6.BC字段change事件
BCNameBase.on("OnFieldChange", 函数名);
函数体
function hanshuming(event) { if (event.fieldName == '字段') { 函数; } }//demo BC_CustomerService_PlanBase.on("OnFieldChange",function (e){ if (e.fieldName=="CRMCustommer_FK"){ CallGetCRMData(BC_CustomerService_PlanBase.getFieldValue("CRMCustommer_FK")) } });12345678910111213141516177.清除BCLink BC_SOMainBase.clearAllBCLink();8.删除提示
if(window.confirm(‘确认删除吗?’)) { BC_Work_CenterBase.Delete(); BusinessSubmit(); } else { return false; }9.关闭窗口
window.currentWindow.close();