12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- /**
- * 功能:应急预警报告添加及修改
- *
- *
- * @author HXB
- * @date 2015/12/17
- */
- WarningReleaseMatter = function() {
- /**定义变量**/
- var _this = this;
- /**新增方法**/
- _this.save = function(){
- $form = $('#editForm');
- var valid = $form.validationEngine({returnIsValid: true});
- if(valid){
- var params = {classid :"365",FD_OBJECTID365:$("#BUSINESS_ID_378").val(),IS_SEND_365 :"1"};
- $.ajax({
- url : $.pathname() + '/ws/crud/CRUDService/update/',
- type : 'post',
- timeout : 15000,
- data : params,
- dataType : 'json',
- success : function(data) {
- var url = $.pathname() + '/ws/crud/CRUDService/create/';
- var formValue = $form.serialize();
- $.request.add(url,formValue,function(data){
- closeProgress();
- top.Dialog.alert('发送成功!', null, null, null, -1);
- $('#frmright',window.parent.document).attr('src',$.pathname()+"/page/business/em/alert/warning/Warning.jsp");
- });
- },
- error : function(e) {
- alert(33);
- $.messager.alert('系统提示信息', '访问服务失败!', 'error');
- }
- });
- }else{
- top.Dialog.alert('请选择下一节点处理人', null, null, null, -1);
- }
-
- };
- return {
- init : function() {
- $('#save').bind('click',function(){
- _this.save();
- });
- $("#goback").bind("click",function(){
- $(top.document.body).find("#frmright").attr("src","/nwyj/page/business/em/response/emergencyResponse/Warning.jsp");
- })
- }
- };
- }();
- $(function() {
- WarningReleaseMatter.init();
- $("#alterTime").on("click",alterRoundTime);
- });
- function alterRoundTime (){
- if(""==zqxIds){
- top.Dialog.alert("没有周期性时间,不能批量修改");
- return;
- }
- var roundTime = new top.Dialog();//定义一个窗口对象
- roundTime.Title = "修改周期性时间";//窗口标题
- roundTime.URL = "/nwyj/page/business/em/report/AlterTime.html";//窗口对应的页面
- roundTime.Height = 150;
- roundTime.Width= 500;
- roundTime.OKEvent = function(){
-
- roundTime.innerFrame.contentWindow.updateRoundTime();
- reportTable();
-
- };
- roundTime.CancelEvent = function(){
- roundTime.close();
- };
- //窗口Id
- roundTime.ID="showRoundTime";
- roundTime.ButtonAlign="center";//按钮居中
- roundTime.show();//显示窗口
-
- roundTime.OnLoad=function(){
-
-
- roundTime.innerFrame.contentWindow.showRoundTime(zqxIds);
- };
-
- }
|