|
版本: |
X5.2.6 |
小版本号: |
|
|
|
数据库: |
MySQL |
服务器操作系统: |
Windows |
应用服务器: |
Tomcat |
客户端操作系统: |
Windows 7 |
浏览器: |
Firefox |
|
|
填写完计划信息,点击流程工具条中的流转,触发dataMain的onAfterSave事件,事件代码如下:
insertCompanyWorkPlanDialog.dataMainAfterSave = function(event){
concatForTittle();
};
function concatForTittle() {
var data = justep.xbl('dataMain');
var rowID = data.getRowId();
var fworkPlanYear = data.getValue("fworkPlanYear", rowID);
var fworkPlanMonth = data.getValue("fworkPlanMonth", rowID);
var fworkPlanWeek = data.getValue("fworkPlanWeek", rowID);
var fwPCDN = data.getValue("fworkPlanCompileDeptName", rowID); #计划编制部门名称
var fwPCRN = data.getValue("fworkPlanCompilePersonName", rowID); #计划编制人
var title = "";
if ("" != fworkPlanYear && "" != fworkPlanMonth && "" != fworkPlanWeek) {
title = fwPCRN + " " + fworkPlanYear + "年" + fworkPlanMonth + "月" + fworkPlanWeek + " 工作计划";
} else if ("" != fworkPlanYear && "" != fworkPlanMonth) {
title = fwPCRN + " " + fworkPlanYear + "年" + fworkPlanMonth + "月" + " 工作计划";
} else if ("" != fworkPlanYear) {
title = fwPCRN + " " + fworkPlanYear + "年" + " 工作计划";
}
data.setValue("fworkPlanTopical", title, rowID);
}
在data.setValue("fworkPlanTopical", title, rowID);之前alter("计划主题:"+title);有内容,但是数据无法保存到数据库,该如何修改?谢谢
|
|