|
@ -1,4 +1,4 @@
|
|
<%--
|
|
|
|
|
|
<%@ page import="com.yihu.ehr.system.model.SystemUser" %><%--
|
|
Created by IntelliJ IDEA.
|
|
Created by IntelliJ IDEA.
|
|
User: llh
|
|
User: llh
|
|
Date: 2016/1/7
|
|
Date: 2016/1/7
|
|
@ -19,8 +19,12 @@
|
|
TypeSearch: null,
|
|
TypeSearch: null,
|
|
$search: $('#inp_search'),
|
|
$search: $('#inp_search'),
|
|
init: function () {
|
|
init: function () {
|
|
|
|
|
|
this.top = $.Util.getTopWindowDOM();
|
|
this.top = $.Util.getTopWindowDOM();
|
|
|
|
<%
|
|
|
|
SystemUser user = (SystemUser) session.getAttribute("userInfo");
|
|
|
|
String systemName = user.getUserName();
|
|
|
|
%>
|
|
|
|
var userName = "<%=systemName%>";
|
|
//CDA 列名
|
|
//CDA 列名
|
|
this.columns = [
|
|
this.columns = [
|
|
{ display: '标准编码', name: 'code', hide:true},
|
|
{ display: '标准编码', name: 'code', hide:true},
|
|
@ -32,7 +36,17 @@
|
|
return ' <div style="vertical-align:middle;margin-top: 10px;"><span>未发布 </span><img src="${contextRoot}/develop/images/button/fabuwei_icon.png"/></a></div>';
|
|
return ' <div style="vertical-align:middle;margin-top: 10px;"><span>未发布 </span><img src="${contextRoot}/develop/images/button/fabuwei_icon.png"/></a></div>';
|
|
}
|
|
}
|
|
}},
|
|
}},
|
|
{ display: '发布者', name: 'publisher',width: '20%', align: 'center',type: 'int'},
|
|
|
|
|
|
{ display: '发布者', name: 'publisher',width: '20%', align: 'center', type: 'int', render: function (rowdata, rowindex, value) {
|
|
|
|
if(rowdata.publisher == '') {
|
|
|
|
rowdata.publisher = userName;
|
|
|
|
if(rowdata.status==1 && rowdata.type=="2"){
|
|
|
|
return rowdata.publisher;
|
|
|
|
}
|
|
|
|
}else {
|
|
|
|
return rowdata.publisher;
|
|
|
|
}
|
|
|
|
|
|
|
|
} },
|
|
{ display: '发布时间', name: 'date', width: '20%',align: 'center',render: function (rowdata, rowindex, value) {
|
|
{ display: '发布时间', name: 'date', width: '20%',align: 'center',render: function (rowdata, rowindex, value) {
|
|
if(!Util.isStrEmpty(rowdata.date)){
|
|
if(!Util.isStrEmpty(rowdata.date)){
|
|
return (rowdata.date+"").substring(0,19);
|
|
return (rowdata.date+"").substring(0,19);
|
|
@ -42,7 +56,6 @@
|
|
{
|
|
{
|
|
display: '操作', isSort: false, width: '20%', align: 'center',render: function (rowdata, rowindex, value) {
|
|
display: '操作', isSort: false, width: '20%', align: 'center',render: function (rowdata, rowindex, value) {
|
|
var html = '<div class="m-inline-buttons" style="width:200px;">';
|
|
var html = '<div class="m-inline-buttons" style="width:200px;">';
|
|
|
|
|
|
if(rowdata.type=="0"){//行数据为机构数据
|
|
if(rowdata.type=="0"){//行数据为机构数据
|
|
html += "<a href='#' style=\"width: 80px;\" onclick='standard.list.add(\"" + rowdata.id + "\",\"" + rowdata.name + "\",\"" + rowdata.code + "\",\"" + rowindex + "\", \"0\")'>新增标准</a>";
|
|
html += "<a href='#' style=\"width: 80px;\" onclick='standard.list.add(\"" + rowdata.id + "\",\"" + rowdata.name + "\",\"" + rowdata.code + "\",\"" + rowindex + "\", \"0\")'>新增标准</a>";
|
|
html += "<a class=\"m-btn-view\" onclick='standard.list.addPublisher(\"" + rowdata.id + "\", \"modify\")'></a> ";
|
|
html += "<a class=\"m-btn-view\" onclick='standard.list.addPublisher(\"" + rowdata.id + "\", \"modify\")'></a> ";
|
|
@ -198,6 +211,7 @@
|
|
standard.list.showDialog(_tital, _url, 500, 500, callback);
|
|
standard.list.showDialog(_tital, _url, 500, 500, callback);
|
|
},
|
|
},
|
|
releaseVersion: function (versionId,publisher) {
|
|
releaseVersion: function (versionId,publisher) {
|
|
|
|
debugger
|
|
versionId = parseInt(versionId.replace("version", ""));
|
|
versionId = parseInt(versionId.replace("version", ""));
|
|
var _text = "确定唯一发布当前版本?";
|
|
var _text = "确定唯一发布当前版本?";
|
|
$.ligerDialog.confirm(_text, function (confirm) {
|
|
$.ligerDialog.confirm(_text, function (confirm) {
|
|
@ -206,7 +220,7 @@
|
|
url: standard.list._url + "/standardCenter/publishVersion",
|
|
url: standard.list._url + "/standardCenter/publishVersion",
|
|
type: "get",
|
|
type: "get",
|
|
dataType: "json",
|
|
dataType: "json",
|
|
data: {versionId: versionId,publisher:""},
|
|
|
|
|
|
data: {versionId: versionId,publisher:publisher},
|
|
success: function (data) {
|
|
success: function (data) {
|
|
if(data.successFlg){
|
|
if(data.successFlg){
|
|
$.ligerDialog.success(data.message);
|
|
$.ligerDialog.success(data.message);
|