123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- /**
- * 功能:应急处置后评估 评估项目管理
- *
- *
- * @author HXB
- * @date 2015/10/27
- */
- TargetManageAddEdit = function() {
- /**定义变量**/
- var _this = this;
- /**私有方法**/
- /***新增信息***/
- _this.save = function(){
- var node = $("#PARENT_ID_374").data("selectedNode");
- $("#LEVEL_374").val(node.level);
- $form = $('#editForm');
- var valid = $form.validationEngine({returnIsValid: true});
- if(valid){
- $("body").eq(0).showLoading();
- showProgressBar("正在提交中...");
- var url = $.pathname() + '/ws/crud/CRUDService/create/';
- if(fd_id!=undefined&&fd_id!=""){
- $("#FD_OBJECTID374").val(fd_id);
- url = $.pathname() +"/ws/crud/CRUDService/update/";
-
- }
- var formValue = $form.serialize();
- $.request.add(url,formValue,function(data){
- $("body").eq(0).hideLoading();
- top.Dialog.alert(data.Msg.info);
- $('#frmright',window.parent.document).attr('src',$.pathname()+"/page/business/em/evaluate/targetManage/TargetManage.jsp");
- });
- }
-
- };
- return {
- init : function() {
- $('#save').bind('click',function(){
- _this.save();
- });
- $('#back').bind('click',function(){
- $('#frmright',window.parent.document).attr('src',$.pathname()+"/page/business/em/evaluate/targetManage/TargetManage.jsp");
- });
- }
- };
- }();
- $(function() {
- TargetManageAddEdit.init();
- });
|