123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- $(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;
|