87,993
社区成员
发帖
与我相关
我的任务
分享 /**
* 增改公用保存设置
*/
var saveCommon = function(saveFlag) {
var configSave = {
url : saveFlag.url,
params : {
cid:getExtCmpValueById('cameraName'),
eid:getExtCmpValueById('pnote'),
unit:getExtCmpValueById('punit'),
address:getExtCmpValueById('paddress'),
contact:getExtCmpValueById('pcontact'),
tel:getExtCmpValueById('ptel'),
unitPrice:getExtCmpValueById('punitPrice'),
theory:getExtCmpValueById('ptheory'),
payWay:getExtCmpValueById('payway'),
cycle:getExtCmpValueById('pcycle'),
payLast:getExtCmpValueById('ppayLast'),
takeRouting:getExtCmpValueById('ptakeRouting'),
},
callBack : function(returnData) {
var configCb = {
msg : '供电管理信息保存成功!!',
fn : function(confirm) {
if ('ok' == confirm) {
if (saveFlag.save == 'save') {
refreshGridList(moduleGridId);
getExtCmpById(moduleVOp.cuvWindowId).close();
} else {
moduleVOp.enableSaveButton();//添加保存enable
resetForm(basicConstant.FORM_ID);
refreshGridList(moduleGridId);
}
}
}
}
showSucMesg(configCb);
}
}
submitForm(configSave);
}
/**
* 点击保存按钮调用方法
*/
var save = function() {
var url = 'powerpointInfoAction!savePowerpointInfo.action';
if(configForm.modify == true){
url = 'powerpointInfoAction!modifyPowerpointInfo.action';
}
var configSave = {
url:url,
save:'save'
}
saveCommon(configSave);
}}