You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
205 lines
6.0 KiB
205 lines
6.0 KiB
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
|
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<%@include file="/wdk/theme/je/module/public/common.jsp"%>
|
|
<title>同步记录详情</title>
|
|
<script type="text/javascript">
|
|
<% if(null==su){%>
|
|
$.timeout();
|
|
<%}%>
|
|
</script>
|
|
</head>
|
|
|
|
<body class="easyui-layout" data-options="fit:true">
|
|
<div data-options="region:'north',border:false,collapsed:false" class="page-title" style="height:45px;line-height:34px;">
|
|
<div class="page-title-text"></div>
|
|
<div class="page-toolbar">
|
|
<a href="javascript:void(0);" id="btnsave" class="easyui-linkbutton" data-options="iconCls:'fa fa-save'" onclick="opt_resync()">重新同步</a>
|
|
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'fa fa-close'" onclick="opt_close()">关闭</a>
|
|
</div>
|
|
</div>
|
|
<div data-options="region:'center',border:true,collapsed:false" >
|
|
<div class="edit-container-win2">
|
|
<form id="edit_form" style="width:95%;align:center;">
|
|
|
|
<div class="row">
|
|
<div class="formgroup">
|
|
<label>数据源头</label>
|
|
<div>
|
|
<input type="text" class="easyui-validatebox" id="source" name="source" value="" />
|
|
</div>
|
|
</div>
|
|
<div class="formgroup">
|
|
<label>数据类型</label>
|
|
<div>
|
|
<input type="text" class="easyui-validatebox " id="marktypename" name="marktypename" value="" readonly="readonly"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="formgroup">
|
|
<label>操作类型</label>
|
|
<div>
|
|
<input type="text" class="easyui-validatebox" id="operationname" name="operationname" value="" readonly="readonly"/>
|
|
</div>
|
|
</div>
|
|
<div class="formgroup">
|
|
<label>同步时间</label>
|
|
<div>
|
|
<input type="text" class="easyui-validatebox " id="createdt" name="createdt" value="" readonly="readonly"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="formgroup">
|
|
<label>主数据标识</label>
|
|
<div>
|
|
<input type="text" class="easyui-validatebox" id="msgid" name="msgid" value="" readonly="readonly"/>
|
|
</div>
|
|
</div>
|
|
<div class="formgroup">
|
|
<label>是否成功</label>
|
|
<div>
|
|
<input type="text" class="easyui-validatebox " id="issuccess" name="issuccess" value="" readonly="readonly"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="formgroup">
|
|
<label>服务器地址</label>
|
|
<div>
|
|
<input type="text" class="easyui-validatebox" id="hostip" name="hostip" value="" readonly="readonly"/>
|
|
</div>
|
|
</div>
|
|
<div class="formgroup">
|
|
<label>MQ地址</label>
|
|
<div>
|
|
<input type="text" class="easyui-validatebox " id="mqinfo" name="mqinfo" value="" readonly="readonly"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row" style="height:180px;">
|
|
<div class="formgroup col-12">
|
|
<label>输入</label>
|
|
<div>
|
|
<textarea class="" name="input" id="input" rows="3" style="width:100%;" readonly="readonly"></textarea>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row" style="height:180px;">
|
|
<div class="formgroup col-12">
|
|
<label>输出</label>
|
|
<div>
|
|
<textarea class="" name="output" id="output" rows="3" style="width:100%;" readonly="readonly"></textarea>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row" style="height:60px;">
|
|
<div class="formgroup col-12">
|
|
<label>描述</label>
|
|
<div>
|
|
<textarea class="" name="descinfo" id="descinfo" rows="2" style="width:100%;" readonly="readonly"></textarea>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
|
|
<script>
|
|
var _wid = $.getURLParam('wid');
|
|
var param = $.getURLParam('param');
|
|
var jparam = $.str2json($.urlparam_decode(param));
|
|
var _actionflag = jparam.queryParams.actionflag; //操作标识:add-添加、mdf-修改
|
|
var _mark_uuid = jparam.queryParams.mark_uuid;
|
|
//alert($.json2str($.getSessionUser()));
|
|
$(function() {
|
|
initData();
|
|
});
|
|
|
|
//初始化对象数据
|
|
function initData(){
|
|
$.wait_open();
|
|
//组织参数
|
|
var dataParam = {
|
|
_SRVNAME:'service.sync.mark'
|
|
,_SRVMETHOD:'queryByMarkuuid'
|
|
,_DATA:$.json2str({
|
|
mark_uuid:_mark_uuid
|
|
})
|
|
};
|
|
|
|
//加载数据
|
|
$.cuajax({
|
|
url:'wdk?action=wdk.pub&method=call_service&ajaxparam='+new Date().getTime()
|
|
,method:"post"
|
|
,timeout:WDK_Timeout
|
|
,data:dataParam
|
|
,success:function(result) {
|
|
$.wait_close();
|
|
var jres = $.str2json(result);
|
|
//加载成功
|
|
if(jres.code=="1"){
|
|
//回填数据
|
|
$.setFieldValue(jres.resultset, "#edit_form");
|
|
if("1"==jres.resultset.issuccess){
|
|
$("#issuccess").val("是");
|
|
} else {
|
|
$("#issuccess").val("否");
|
|
}
|
|
}
|
|
},
|
|
error:function(result){
|
|
$.wait_close();
|
|
alert('网络错误!result='+result);
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
/**
|
|
重新同步
|
|
*/
|
|
function opt_resync() {
|
|
var dataParam = {
|
|
_SRVNAME:'service.sync.mark'
|
|
,_SRVMETHOD:'resync'
|
|
,_DATA:$.json2str({
|
|
user_info:{
|
|
op_account_uuid:$.getSessionUser().account_id,
|
|
op_person_uuid:$.getSessionUser().personuuid,
|
|
op_person_name:$.getSessionUser().personname,
|
|
manage_unit_uuid:$.getSessionUser().manageunituuid
|
|
},
|
|
mark_uuid:_mark_uuid
|
|
})
|
|
};
|
|
$.wait_open();
|
|
$.cuajax({
|
|
url:'wdk?action=wdk.pub&method=call_service&ajaxparam='+new Date().getTime()
|
|
,method:"post"
|
|
,timeout:WDK_Timeout
|
|
,data:dataParam
|
|
,success:function(result) {
|
|
$.wait_close();
|
|
//返回值字符串转json
|
|
var jres = $.str2json(result);
|
|
alert(jres.desc);
|
|
$.notify("ucsyncmark_list_query");
|
|
opt_close();
|
|
},
|
|
error:function(result){
|
|
$.wait_close();
|
|
alert('网络错误!result='+result);
|
|
}
|
|
});
|
|
}
|
|
|
|
// 关闭模态框
|
|
function opt_close(){
|
|
$.closeActiveTab();
|
|
}
|
|
</script>
|
|
</html>
|