123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- /**
- * 功能:应急预警报告添加及修改
- *
- *
- * @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) {
- $.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);
- };
-
- }
|