|
@@ -92,7 +92,7 @@ shr.defineClass("shr.project.projectManagementList",shr.framework.List,{
|
|
|
var state = $("#grid").jqGrid("getCell",billIds[i], "projectState");
|
|
|
if(state && state != '未启用' && state != '禁用' && state != "0" && state != "3"){
|
|
|
shr.showWarning({
|
|
|
- message : '只能结束“进行中”、“禁用”的项目!',
|
|
|
+ message : '只能删除“进行中”、“禁用”的项目!',
|
|
|
hideAfter : 5
|
|
|
});
|
|
|
return ;
|
|
@@ -107,73 +107,6 @@ shr.defineClass("shr.project.projectManagementList",shr.framework.List,{
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
- },
|
|
|
-// /**
|
|
|
-// * 描述:项目变更
|
|
|
-// *
|
|
|
-// * @action
|
|
|
-// */
|
|
|
-// changeAction : function() {
|
|
|
-// var that = this;
|
|
|
-// var billIds = $("#grid").jqGrid("getSelectedRows");
|
|
|
-// if (billIds == undefined || billIds.length == 0 || (billIds && billIds.length == 1 && billIds[0] == "")) {
|
|
|
-// shr.showWarning({
|
|
|
-// message : "请先选中一行数据!",
|
|
|
-// hideAfter : 5
|
|
|
-// })
|
|
|
-// return;
|
|
|
-// } else {
|
|
|
-// for(var i = 0; i < billIds.length; i++) {
|
|
|
-// var state = $("#grid").jqGrid("getCell",billIds[i], "projectState");
|
|
|
-// if(state && state != '未启用' && state != '禁用' && state != "0" && state != "3"){
|
|
|
-// shr.showWarning({
|
|
|
-// message : '只能删除“已禁用”的项目!',
|
|
|
-// hideAfter : 5
|
|
|
-// });
|
|
|
-// return ;
|
|
|
-// }
|
|
|
-// }
|
|
|
-// var confirmMsg = '是否确认删除所选项目?';
|
|
|
-// shr.showConfirm(confirmMsg, function() {
|
|
|
-// top.Messenger().hideAll();
|
|
|
-// that.doRemoteWithBatchAction({
|
|
|
-// method : "delete",
|
|
|
-// billId : billIds.toString()
|
|
|
-// });
|
|
|
-// });
|
|
|
-// }
|
|
|
-// },
|
|
|
-// /**描述:项目变更-列表
|
|
|
-// */
|
|
|
-// changeListAction : function() {
|
|
|
-// var that = this;
|
|
|
-// var billIds = $("#grid").jqGrid("getSelectedRows");
|
|
|
-// if (billIds == undefined || billIds.length == 0 || (billIds && billIds.length == 1 && billIds[0] == "")) {
|
|
|
-// shr.showWarning({
|
|
|
-// message : "请先选中一行数据!",
|
|
|
-// hideAfter : 5
|
|
|
-// })
|
|
|
-// return;
|
|
|
-// } else {
|
|
|
-// for(var i = 0; i < billIds.length; i++) {
|
|
|
-// var state = $("#grid").jqGrid("getCell",billIds[i], "projectState");
|
|
|
-// if(state && state != '未启用' && state != '禁用' && state != "0" && state != "3"){
|
|
|
-// shr.showWarning({
|
|
|
-// message : '只能删除“已禁用”的项目!',
|
|
|
-// hideAfter : 5
|
|
|
-// });
|
|
|
-// return ;
|
|
|
-// }
|
|
|
-// }
|
|
|
-// var confirmMsg = '是否确认删除所选项目?';
|
|
|
-// shr.showConfirm(confirmMsg, function() {
|
|
|
-// top.Messenger().hideAll();
|
|
|
-// that.doRemoteWithBatchAction({
|
|
|
-// method : "deleteOne",
|
|
|
-// billId : billIds.toString()
|
|
|
-// });
|
|
|
-// });
|
|
|
-// }
|
|
|
-// },
|
|
|
+ }
|
|
|
});
|
|
|
|