1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
-
- //加载信息
- $(function(){
- //应急预案获取
- $("#MEET_EMERGENCIES_PLAN_365").initYewuSelect("214","FD_OBJECTID","PLAN_NAME");
-
- if((window.location.href).indexOf('?')>-1){
- var fd_id = (window.location.href).split('?')[1];//获取记录id
- getFileList(fd_id);//加载附件调用的方法
- $('#fileListLegend').css("display","block");
- $('#fileList').css("display","block");
- var url = $.pathname() + "/ws/crud/CRUDService/getDataById/";
- var params = {
- classid : '365',
- objectID : fd_id
- };
- $.ajax({
- url : url,
- type : 'post',
- timeout : 15000,
- data : params,
- dataType : 'json',
- success : function(data){
- $('#fillForm').ajaxWrite({data:data});
- $('#fillForm input[name="classid"]').val('365');
- $('#fillForm input[name="EARLY_WARNING_PROPERTY_365"]').val(data.EARLY_WARNING_PROPERTY_365);
- //alert(data.MEET_EMERGENCIES_PLAN_365);
- $("#MEET_EMERGENCIES_PLAN_365").attr("selectedValue",data.MEET_EMERGENCIES_PLAN_365);//应急预案
- for(var i in data){
- $('#'+i).html(data[i]);
- }
- level();
- },
- error : function(e){
- $.messager.alert('系统提示信息', '访问服务失败!', 'error');
- }
- });
- }
- });
-
- //两个预警级别的复选框获取值的方法
- function level(){
- //预警性质
- if($("#temp1").val() == "初次发布"){
- $("#EARLY_WARNING_PROPERTY_365").attr('checked','checked');
- $("#EARLY_WARNING_PROPERTY_365").attr("disabled",true);//初次发布禁用
- $("#WETHER_EW_ADJUST_365").attr("disabled",true);//是否预警禁用
- $("#last1").attr("disabled",true);//上次预警单号禁用
- $("#PREV_EW_LEVEL_365").attr("disabled",true);//上次级别禁用
- $("#PREV_EW_LEVEL_365").render();
- }
- //是否预警调整
- if($("#temp2").val() == "是"){
- $("#WETHER_EW_ADJUST_365").attr('checked','checked');
- $("#EARLY_WARNING_PROPERTY_365").attr("disabled",true);//是否预警调整禁用
- $("#EARLY_WARNING_PROPERTY_365").attr("disabled",true);//初次预警禁用
- }
- }
-
- //返回主页面
- function goBack() {
- //获取iframe中的元素值
- var iframe =parent.document.getElementsByName("frmright")[0];
- iframe.src = "/nwyj/page/business/em/alert/notice/manage.html";
- }
-
- //发布按钮点击事件
- function issue(){
- /* var myDate=allGetServerTime() ;
- //alert(myDate);
- window.location.href="/nwyj/page/business/em/alert/notice/manage.html";*/
- }
-
- //上报按钮点击事件
- function reported(){
-
- }
|