$(function(){ //用户所属单位 var getCorp_names = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_names(); $("#SUBMIT_UNIT_750").val(getCorp_names); //取登录用户信息 var userName = top.com.sinosoft.lz.system.user.LoginInfo.getReal_name(); $("#SUBMIT_PERSION1_750").val(userName); //获取当前系统时间 $("#SUBMIT_TIME_750").val(getDateTime()); $("#asdf").bind("click",function(){ check(diag); }); }); //获得当前系统时间:年月日时分秒 function getDateTime(){ var s=""; var d = allGetServerTime(); var vYear = d.getFullYear(); var vMon = d.getMonth() + 1; var vDay = d.getDate(); var h = d.getHours(); var m = d.getMinutes(); var se = d.getSeconds(); s=vYear+"-"+(vMon<10 ? "0" + vMon : vMon)+"-"+(vDay<10 ? "0"+ vDay : vDay)+" "+(h<10 ? "0"+ h : h)+":"+(m<10 ? "0" + m : m)+":"+(se<10 ? "0" +se : se); return s; } //保存新增文件 function saveForm(){ $("body").eq(0).showLoading(); var formValue = $('#fillForm').serialize(); //序列化表单 var url = $.pathname() + '/ws/crud/CRUDService/create'; $.ajax({ url : url, type : 'post', data : formValue, dataType : 'text', timeout : 60000, success : function(data){ $("body").eq(0).hideLoading(); //弹窗的提示及关闭 top.Dialog.alert("提交成功!",function(){ if(top.Dialog || top.Dialog.close){ top.Dialog.close(); } }); $(top.document.body).find("#main_index_tab").hide();//隐藏顶部的滚动信息 $('#frmright',window.parent.document).attr('src',$.pathname()+'/page/system/questionHuiZong/questionHuiZong_List.jsp'); //$.messager.alert('提交成功'); //window.location.href="questionHuiZong_List.jsp"; //top.Dialog.close();//关闭新增窗口 //g.rend();//刷新页面 }, error : function(){ top.Dialog.alert("操作失败!",function(){ if(top.Dialog || top.Dialog.close){ top.Dialog.close(); } }); $('frmright,window.parent.document').Attr('src',$.pathname()+'/page/system/questionHuiZong/questionHuiZong_List.jsp'); } }); } //附件下载 function download(){ var diag = new top.Dialog(); diag.Title = "附件下载"; diag.Width = "510px"; diag.Height = 390; diag.URL = "/nwyj/page/system/questionHuiZong/download.jsp"; diag.show(); //弹框的关闭按钮 diag.CancelEvent = function(){ diag.close(); diag=null; parent.resetWindowSize(); }; } //下载操作手册 function download1(){ // window.open(url, windowName, windowFeatures, optionalArg4); // window.open("/nwyj/upload/manual.zip"); // window.location.href="/nwyj/page/system/questionHuiZong/FileDownload.jsp"; // top.Dialog.close();//关闭新增窗口 $(top.document.body).find("#main_index_tab").hide(); $(top.document.body).find("#frmright").attr("src","/nwyj/page/system/questionHuiZong/FileDownload.jsp"); top.Dialog.close();//关闭新增窗口 } //下载操作视频 function download2(){ // window.open(url, windowName, windowFeatures, optionalArg4); // window.open("/nwyj/WebContent/page/system/questionHuiZong/TVDownload.jsp"); // top.Dialog.close();//关闭新增窗口 $(top.document.body).find("#main_index_tab").hide(); $(top.document.body).find("#frmright").attr("src","/nwyj/page/system/questionHuiZong/TVDownload.jsp"); top.Dialog.close();//关闭新增窗口 } //查看历史问题记录 function check(diag){ $(top.document.body).find("#main_index_tab").hide(); $(top.document.body).find("#frmright").attr("src","/nwyj/page/system/questionHuiZong/questionHuiZong_List.jsp"); top.Dialog.close();//关闭新增窗口 } //常见问题和解决办法 function select(){ $(top.document.body).find("#main_index_tab").hide(); $(top.document.body).find("#frmright").attr("src","/nwyj/page/system/questionHuiZong/questionHuiZong_FAQ.jsp"); top.Dialog.close();//关闭新增窗口 } //返回 function goBack() { var url = "/nwyj/page/system/questionHuiZong/questionHuiZong_List.jsp"; window.parent.document.getElementById("frmright").setAttribute("src", ""+encodeURI(url)); } // $.messager=top.Dialog;