Commit 192f79c9 by 郎靓静

解决冲突

parents 67c6ccb6 bb2b21f0
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
<value>classpath:com/jw/app/business/portal/apps/appsDAO.xml</value> <value>classpath:com/jw/app/business/portal/apps/appsDAO.xml</value>
<value>classpath:com/jw/app/business/portal/content/ContentDAO.xml</value> <value>classpath:com/jw/app/business/portal/content/ContentDAO.xml</value>
<value>classpath:com/jw/app/business/table/TableDAO.xml</value> <value>classpath:com/jw/app/business/table/TableDAO.xml</value>
<value>classpath:com/jw/app/business/portlet/PortletDAO.xml</value> <value>classpath:com/jw/app/business/portlet/PortletDAO.xml</value>
<value>classpath:com/jw/app/business/apps/AppsDAO.xml</value> <value>classpath:com/jw/app/business/apps/AppsDAO.xml</value>
<value>classpath:com/jw/app/business/store/storeDAO.xml</value> <value>classpath:com/jw/app/business/store/storeDAO.xml</value>
...@@ -23,7 +22,17 @@ ...@@ -23,7 +22,17 @@
<value>classpath:com/jw/app/business/calendar/calendarDAO.xml</value> <value>classpath:com/jw/app/business/calendar/calendarDAO.xml</value>
<value>classpath:com/jw/app/business/portal/role/appsRoleDAO.xml</value> <value>classpath:com/jw/app/business/portal/role/appsRoleDAO.xml</value>
<value>classpath:com/jw/app/business/vote/voteDAO.xml</value> <value>classpath:com/jw/app/business/vote/voteDAO.xml</value>
<value>classpath:com/jw/app/business/workreport/workreportDAO.xml</value>
<value>classpath:com/jw/app/business/attendance/attendanceDAO.xml</value> <value>classpath:com/jw/app/business/attendance/attendanceDAO.xml</value>
<value>classpath:com/jw/app/business/friendlink/friendlinkDAO.xml</value>
<value>classpath:com/jw/app/business/notice/noticeDAO.xml</value>
<value>classpath:com/jw/app/business/todo/TodoDAO.xml</value>
<value>classpath:com/gaowj/business/base/impl/BaseDAO.xml</value>
<value>classpath:com/jw/app/business/meeting/meetingDAO.xml</value>
<value>classpath:com/jw/app/business/log/logDAO.xml</value>
<value>classpath:com/jw/app/business/forum/classify/classifyDAO.xml</value>
<value>classpath:com/jw/app/business/forum/topic/topicDAO.xml</value>
<value>classpath:com/jw/app/business/forum/word/wordDAO.xml</value>
</list> </list>
</property> </property>
</bean> </bean>
...@@ -90,6 +99,43 @@ ...@@ -90,6 +99,43 @@
<property name="mapperInterface" value="com.jw.app.business.attendance.attendanceDAO"/> <property name="mapperInterface" value="com.jw.app.business.attendance.attendanceDAO"/>
<property name="sqlSessionFactory" ref="sqlSessionFactory-apps"/> <property name="sqlSessionFactory" ref="sqlSessionFactory-apps"/>
</bean> </bean>
<bean id="friendlinkDAO" class="org.mybatis.spring.mapper.MapperFactoryBean">
<property name="mapperInterface" value="com.jw.app.business.friendlink.friendlinkDAO"/>
<property name="sqlSessionFactory" ref="sqlSessionFactory-apps"/>
</bean>
<bean id="noticeDAO" class="org.mybatis.spring.mapper.MapperFactoryBean">
<property name="mapperInterface" value="com.jw.app.business.notice.noticeDAO"/>
<property name="sqlSessionFactory" ref="sqlSessionFactory-apps"/>
</bean>
<bean id="todoDAO" class="org.mybatis.spring.mapper.MapperFactoryBean">
<property name="mapperInterface" value="com.jw.app.business.todo.TodoDAO"/>
<property name="sqlSessionFactory" ref="sqlSessionFactory-apps"/>
</bean>
<bean id="meetingDAO" class="org.mybatis.spring.mapper.MapperFactoryBean">
<property name="mapperInterface" value="com.jw.app.business.meeting.meetingDAO"/>
<property name="sqlSessionFactory" ref="sqlSessionFactory-apps"/>
</bean>
<bean id="logDAO" class="org.mybatis.spring.mapper.MapperFactoryBean">
<property name="mapperInterface" value="com.jw.app.business.log.logDAO"/>
<property name="sqlSessionFactory" ref="sqlSessionFactory-apps"/>
</bean>
<bean id="classifyDAO" class="org.mybatis.spring.mapper.MapperFactoryBean">
<property name="mapperInterface" value="com.jw.app.business.forum.classify.classifyDAO"/>
<property name="sqlSessionFactory" ref="sqlSessionFactory-apps"/>
</bean>
<bean id="topicDAO" class="org.mybatis.spring.mapper.MapperFactoryBean">
<property name="mapperInterface" value="com.jw.app.business.forum.topic.topicDAO"/>
<property name="sqlSessionFactory" ref="sqlSessionFactory-apps"/>
</bean>
<bean id="wordDAO" class="org.mybatis.spring.mapper.MapperFactoryBean">
<property name="mapperInterface" value="com.jw.app.business.forum.word.wordDAO"/>
<property name="sqlSessionFactory" ref="sqlSessionFactory-apps"/>
</bean>
<bean id="workreportDAO" class="org.mybatis.spring.mapper.MapperFactoryBean">
<property name="mapperInterface" value="com.jw.app.business.workreport.workreportDAO"/>
<property name="sqlSessionFactory" ref="sqlSessionFactory-apps"/>
</bean>
<!-- BusinessInterFace --> <!-- BusinessInterFace -->
<bean id="PortletBusiness" <bean id="PortletBusiness"
class="com.jw.app.business.portlet.PortletBusinessImpl"> class="com.jw.app.business.portlet.PortletBusinessImpl">
...@@ -147,6 +193,47 @@ ...@@ -147,6 +193,47 @@
<property name="attendanceDAO" ref="attendanceDAO"/> <property name="attendanceDAO" ref="attendanceDAO"/>
</bean> </bean>
<bean id="FriendLinkBusiness"
class="com.jw.app.business.friendlink.FriendLinkBusinessImpl">
<property name="friendlinkDAO" ref="friendlinkDAO"/>
</bean>
<bean id="NoticeBusiness"
class="com.jw.app.business.notice.NoticeBusinessImpl">
<property name="noticeDAO" ref="noticeDAO"/>
</bean>
<bean id="TodoBusiness"
class="com.jw.app.business.todo.TodoBusinessImpl">
<property name="todoDAO" ref="todoDAO"/>
</bean>
<bean id="MeetingBusiness"
class="com.jw.app.business.meeting.MeetingBusinessImpl">
<property name="meetingDAO" ref="meetingDAO"/>
</bean>
<bean id="LogBusiness"
class="com.jw.app.business.log.LogBusinessImpl">
<property name="logDAO" ref="logDAO"/>
</bean>
<bean id="ClassifyBusiness" class="com.jw.app.business.forum.classify.ClassifyBusinessImpl">
<property name="classifyDAO" ref="classifyDAO"/>
</bean>
<bean id="TopicBusiness" class="com.jw.app.business.forum.topic.TopicBusinessImpl">
<property name="topicDAO" ref="topicDAO"/>
</bean>
<bean id="WordBusiness" class="com.jw.app.business.forum.word.WordBusinessImpl">
<property name="wordDAO" ref="wordDAO"/>
</bean>
<bean id="WorkreportBusiness" class="com.jw.app.business.workreport.WorkreportBusinessImpl">
<property name="workreportDAO" ref="workreportDAO"/>
</bean>
<!-- DAO --> <!-- DAO -->
<bean id="portletDAO" class="org.mybatis.spring.mapper.MapperFactoryBean"> <bean id="portletDAO" class="org.mybatis.spring.mapper.MapperFactoryBean">
<property name="mapperInterface" value="com.jw.app.business.portlet.PortletDAO"/> <property name="mapperInterface" value="com.jw.app.business.portlet.PortletDAO"/>
......
...@@ -114,7 +114,7 @@ $.extend({ ...@@ -114,7 +114,7 @@ $.extend({
return -1;//不是ie浏览器 return -1;//不是ie浏览器
} }
}, },
//获得浏览器的宽度 //获得浏览器滚动条的宽度
getScrollbarWidth:function(){ getScrollbarWidth:function(){
var oP = document.createElement('p'), styles = { var oP = document.createElement('p'), styles = {
width: '100px', width: '100px',
...@@ -215,6 +215,153 @@ $.extend({ ...@@ -215,6 +215,153 @@ $.extend({
var date2=new Date(end_list[0],end_list[1],end_list[2]); var date2=new Date(end_list[0],end_list[1],end_list[2]);
var date=(date2.getTime()-date1.getTime())/(1000*60*60*24);/*不用考虑闰年否*/ var date=(date2.getTime()-date1.getTime())/(1000*60*60*24);/*不用考虑闰年否*/
return date; return date;
},
/**树的搜索功能
* @param zTreeId ztree对象的id,不需要#
* @param searchField 输入框选择器
* @param isHighLight 是否高亮,默认高亮,传入false禁用
* @param isExpand 是否展开,默认合拢,传入true展开
* @param searchBtn 绑定要点击的那个按钮的选择器
*/
fuzzySearch:function(zTreeId, searchField, isHighLight, isExpand,searchBtn){
var zTreeObj = $.fn.zTree.getZTreeObj(zTreeId);//get the ztree object by ztree id
if(!zTreeObj){
alter("fail to get ztree object");
}
var nameKey = zTreeObj.setting.data.key.name; //get the key of the node name
isHighLight = isHighLight===false?false:true;//default true, only use false to disable highlight
isExpand = isExpand?true:false; // not to expand in default
zTreeObj.setting.view.nameIsHTML = isHighLight; //allow use html in node name for highlight use
var metaChar = '[\\[\\]\\\\\^\\$\\.\\|\\?\\*\\+\\(\\)]'; //js meta characters
var rexMeta = new RegExp(metaChar, 'gi');//regular expression to match meta characters
// keywords filter function
function ztreeFilter(zTreeObj,_keywords,callBackFunc) {
if(!_keywords){
_keywords =''; //default blank for _keywords
}
// function to find the matching node
function filterFunc(node) {
if(node && node.oldname && node.oldname.length>0){
node[nameKey] = node.oldname; //recover oldname of the node if exist
}
zTreeObj.updateNode(node); //update node to for modifications take effect
if (_keywords.length == 0) {
//return true to show all nodes if the keyword is blank
zTreeObj.showNode(node);
//zTreeObj.expandNode(node,isExpand);
//如果没有输入值时,则显示所有的目录,并且折叠
zTreeObj.expandNode(node,false);
return true;
}
//transform node name and keywords to lowercase
if (node[nameKey] && node[nameKey].toLowerCase().indexOf(_keywords.toLowerCase())!=-1) {
if(isHighLight){ //highlight process
//a new variable 'newKeywords' created to store the keywords information
//keep the parameter '_keywords' as initial and it will be used in next node
//process the meta characters in _keywords thus the RegExp can be correctly used in str.replace
var newKeywords = _keywords.replace(rexMeta,function(matchStr){
//add escape character before meta characters
return '\\' + matchStr;
});
node.oldname = node[nameKey]; //store the old name
var rexGlobal = new RegExp(newKeywords, 'gi');//'g' for global,'i' for ignore case
//use replace(RegExp,replacement) since replace(/substr/g,replacement) cannot be used here
node[nameKey] = node.oldname.replace(rexGlobal, function(originalText){
//highlight the matching words in node name
var highLightText =
'<span style="margin-left:0;color: whitesmoke;background-color: darkred;">'
+ originalText
+'</span>';
return highLightText;
});
zTreeObj.updateNode(node); //update node for modifications take effect
}
zTreeObj.showNode(node);//show node with matching keywords
return true; //return true and show this node
}
zTreeObj.hideNode(node); // hide node that not matched
return false; //return false for node not matched
}
var nodesShow = zTreeObj.getNodesByFilter(filterFunc); //get all nodes that would be shown
processShowNodes(nodesShow, _keywords);//nodes should be reprocessed to show correctly
}
/**
* reprocess of nodes before showing
*/
function processShowNodes(nodesShow,_keywords){
if(nodesShow && nodesShow.length>0){
//process the ancient nodes if _keywords is not blank
if(_keywords.length>0){
$.each(nodesShow, function(n,obj){
var pathOfOne = obj.getPath();//get all the ancient nodes including current node
if(pathOfOne && pathOfOne.length>0){
//i < pathOfOne.length-1 process every node in path except self
for(var i=0;i<pathOfOne.length-1;i++){
zTreeObj.showNode(pathOfOne[i]); //show node
zTreeObj.expandNode(pathOfOne[i],true); //expand node
}
}
});
}else{ //show all nodes when _keywords is blank and expand the root nodes
var rootNodes = zTreeObj.getNodesByParam('level','0');//get all root nodes
$.each(rootNodes,function(n,obj){
zTreeObj.expandNode(obj,true); //expand all root nodes
});
}
}
}
//listen to change in input element
/*$(searchField).bind('input propertychange', function() {
var _keywords = $(this).val();
searchNodeLazy(_keywords); //call lazy load
});
var timeoutId = null;
// excute lazy load once after input change, the last pending task will be cancled
function searchNodeLazy(_keywords) {
if (timeoutId) {
//clear pending task
clearTimeout(timeoutId);
}
timeoutId = setTimeout(function() {
ztreeFilter(zTreeObj,_keywords); //lazy load ztreeFilter function
$(searchField).focus();//focus input field again after filtering
}, 500);
}*/
//绑定要点击的那个按钮
$(searchBtn).bind('click',function(){
var _keywords = $(searchField).val();
ztreeFilter(zTreeObj,_keywords);
})
//输入框的回车键操作
$(searchField).bind("keydown",function(e){
  // 兼容FF和IE和Opera
  var theEvent = e || window.event;
  var code = theEvent.keyCode || theEvent.which || theEvent.charCode;
   if (code == 13) {
//回车执行查询
var _keywords = $(searchField).val();
ztreeFilter(zTreeObj,_keywords);
  }
});
},
/**去掉Html标签代码
* @param str 带有Html的字符串
*/
removeHtml:function(str){
str = str || "";//防止空指针
str = str.replace(/<(?!\/?p\b)[^>]+>|(<p)\b[^>]*(>)/ig, "$1$2");
str = str.replace(/\s+/g,"");
str = str.replace(new RegExp("&nbsp;","gm"),"");
return str;
} }
// //
} }
......
[
{
"id": 0,
"name": "Item 0",
"price": "$0"
},
{
"id": 1,
"name": "Item 1",
"price": "$1"
},
{
"id": 2,
"name": "Item 2",
"price": "$2"
},
{
"id": 3,
"name": "Item 3",
"price": "$3"
},
{
"id": 4,
"name": "Item 4",
"price": "$4"
},
{
"id": 5,
"name": "Item 5",
"price": "$5"
},
{
"id": 6,
"name": "Item 6",
"price": "$6"
},
{
"id": 7,
"name": "Item 7",
"price": "$7"
},
{
"id": 8,
"name": "Item 8",
"price": "$8"
},
{
"id": 9,
"name": "Item 9",
"price": "$9"
},
{
"id": 10,
"name": "Item 10",
"price": "$10"
},
{
"id": 11,
"name": "Item 11",
"price": "$11"
},
{
"id": 12,
"name": "Item 12",
"price": "$12"
},
{
"id": 13,
"name": "Item 13",
"price": "$13"
},
{
"id": 14,
"name": "Item 14",
"price": "$14"
},
{
"id": 15,
"name": "Item 15",
"price": "$15"
},
{
"id": 16,
"name": "Item 16",
"price": "$16"
},
{
"id": 17,
"name": "Item 17",
"price": "$17"
},
{
"id": 18,
"name": "Item 18",
"price": "$18"
},
{
"id": 19,
"name": "Item 19",
"price": "$19"
},
{
"id": 20,
"name": "Item 20",
"price": "$20"
}
]
\ No newline at end of file
[
{
"id": "12184",
"title": "111",
"start": "2018-04-17 00:00",
"end": "2018-04-19 08:00",
"url": null,
"allDay": false,
"color": "#f30"
},
{
"id": "20262",
"title": "222",
"start": "2018-04-17 04:00",
"end": "2018-04-17 08:00",
"url": null,
"allDay": false,
"color": "#360"
},
{
"id": "12226",
"title": "333",
"start": "2018-04-18 00:00",
"end": "2018-04-18 08:00",
"url": null,
"allDay": false,
"color": "#360"
},
{
"id": "12227",
"title": "777",
"start": "2018-04-17",
"end": "2018-04-18",
"url": null,
"allDay": true,
"color": "blue"
},
{
"id": "1",
"title": "444",
"start": "2018-04-17 01:00",
"end": "2018-04-17 10:00",
"url": null,
"allDay": false,
"color": "skyblue"
},
{
"id": "2",
"title": "555",
"start": "2018-04-17",
"end": "2018-04-18",
"url": null,
"allDay": true,
"color": "black"
},
{
"id": "3",
"title": "666",
"start": "2018-04-20",
"end": "2018-04-21",
"url": null,
"allDay": true,
"color": "#ecc"
},
{
"id": "4",
"title": "666",
"start": "2018-05-6",
"end": "2018-05-7",
"url": null,
"allDay": true,
"color": "#ecc"
}
]
\ No newline at end of file
...@@ -22,4 +22,3 @@ ...@@ -22,4 +22,3 @@
} }
] ]
} }
...@@ -54,6 +54,7 @@ ...@@ -54,6 +54,7 @@
<script type="text/javascript" src="<%=localPath %>/js/ajaxfileupload.js"></script> <script type="text/javascript" src="<%=localPath %>/js/ajaxfileupload.js"></script>
<script type="text/javascript" src="<%=localPath %>/jwapp/common/js/lang_json.js"></script> <script type="text/javascript" src="<%=localPath %>/jwapp/common/js/lang_json.js"></script>
<script type="text/javascript" src="<%=localPath %>/jwapp/common/js/common_util.js"></script> <script type="text/javascript" src="<%=localPath %>/jwapp/common/js/common_util.js"></script>
<script type="text/javascript" src="<%=localPath %>/jwapp/common/js/common_luosz_util.js"></script>
<script type="text/javascript" src="<%=commonPath %>/ria/jquery/zTree_v3/js/jquery.ztree.core-3.5.js"></script> <script type="text/javascript" src="<%=commonPath %>/ria/jquery/zTree_v3/js/jquery.ztree.core-3.5.js"></script>
<script type="text/javascript" src="<%=commonPath %>/ria/jquery/zTree_v3/js/jquery.ztree.excheck-3.5.js"></script> <script type="text/javascript" src="<%=commonPath %>/ria/jquery/zTree_v3/js/jquery.ztree.excheck-3.5.js"></script>
...@@ -69,6 +70,10 @@ ...@@ -69,6 +70,10 @@
<link rel="stylesheet" type="text/css" href="<%=commonPath%>/ria/jquery/jquery-easyui-1.4.1/themes/default/easyui.css" charset="utf-8"></link> <link rel="stylesheet" type="text/css" href="<%=commonPath%>/ria/jquery/jquery-easyui-1.4.1/themes/default/easyui.css" charset="utf-8"></link>
<link rel="stylesheet" type="text/css" href="<%=commonPath%>/ria/jquery/jquery-easyui-1.4.1/themes/icon.css" charset="utf-8"></link> <link rel="stylesheet" type="text/css" href="<%=commonPath%>/ria/jquery/jquery-easyui-1.4.1/themes/icon.css" charset="utf-8"></link>
<link rel="stylesheet" type="text/css" href="<%=commonPath%>/ria/jquery/zTree_v3/css/zTreeStyle/zTreeStyle.css" charset="utf-8"></link> <link rel="stylesheet" type="text/css" href="<%=commonPath%>/ria/jquery/zTree_v3/css/zTreeStyle/zTreeStyle.css" charset="utf-8"></link>
<link rel="stylesheet" type="text/css" href="<%=localPath%>/jwapp/common/css/choice_user/common.css" charset="utf-8"></link>
<link rel="stylesheet" href="${ctx}/custom/plug/webupload/css/webuploader.css" type="text/css"></link>
<script src="${ctx}/custom/plug/webupload/js/webuploader.js"></script>
<script src="${ctx}/custom/plug/webupload/js/webuploaderExtend.js"></script>
<script type="text/javascript"> <script type="text/javascript">
// $.ajaxSetup ({ // $.ajaxSetup ({
......
...@@ -351,4 +351,40 @@ ...@@ -351,4 +351,40 @@
} }
.icon-ext-07_14 { .icon-ext-07_14 {
background:url('../../../../images/icons/(07,14).png') no-repeat left center; background:url('../../../../images/icons/(07,14).png') no-repeat left center;
}
.icon-ext-05_48 {
background:url('../../../../images/icons/(05,48).png') no-repeat left center;
}
.icon-ext-22_43 {
background:url('../../../../images/icons/(22,43).png') no-repeat left center;
}
.icon-ext-01_08 {
background:url('../../../../images/icons/(01,08).png') no-repeat left center;
}
.icon-ext-00_44 {
background:url('../../../../images/icons/(00,44).png') no-repeat left center;
}
.icon-ext-49_47 {
background:url('../../../../images/icons/(49,47).png') no-repeat left center;
}
.icon-ext-09_00 {
background:url('../../../../images/icons/(09,00).png') no-repeat left center;
}
.icon-ext-49_33 {
background:url('../../../../images/icons/(49,33).png') no-repeat left center;
}
.icon-ext-27_47 {
background:url('../../../../images/icons/(27,47).png') no-repeat left center;
}
.icon-ext-39_39 {
background:url('../../../../images/icons/(39,39).png') no-repeat left center;
}
.icon-ext-39_23 {
background:url('../../../../images/icons/(39,23).png') no-repeat left center;
}
.icon-ext-49_27 {
background:url('../../../../images/icons/(49,27).png') no-repeat left center;
}
.icon-ext-44_42 {
background:url('../../../../images/icons/(49,27).png') no-repeat left center;
} }
\ No newline at end of file
...@@ -1119,6 +1119,10 @@ a{ ...@@ -1119,6 +1119,10 @@ a{
line-height: 34px; line-height: 34px;
margin-top:5px; margin-top:5px;
cursor: pointer; cursor: pointer;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 311px;
} }
.disk_content_list_fileName>div:first-child+div>div:hover{ .disk_content_list_fileName>div:first-child+div>div:hover{
color:#2CA4F0; color:#2CA4F0;
...@@ -1177,7 +1181,7 @@ a{ ...@@ -1177,7 +1181,7 @@ a{
line-height: 28px; line-height: 28px;
padding-left:6px; padding-left:6px;
color:#bbb; color:#bbb;
width:70%; width:85%;
} }
.disk_move_search>span{ .disk_move_search>span{
border:1px solid #f2f2f2; border:1px solid #f2f2f2;
...@@ -1185,8 +1189,8 @@ a{ ...@@ -1185,8 +1189,8 @@ a{
line-height: 28px; line-height: 28px;
color:#333; color:#333;
display: inline-block; display: inline-block;
width:25%; width:13%;
margin-left:5%; margin-left:2%;
vertical-align: bottom; vertical-align: bottom;
text-align:center; text-align:center;
cursor: pointer; cursor: pointer;
...@@ -1229,7 +1233,7 @@ a{ ...@@ -1229,7 +1233,7 @@ a{
margin-left: 10px; margin-left: 10px;
} }
.disk_move_tree li span.button.ico_close,.disk_move_tree li span.button.ico_open,.disk_move_tree li span.button.ico_docu{ .disk_move_tree li span.button.ico_close,.disk_move_tree li span.button.ico_open,.disk_move_tree li span.button.ico_docu{
background-size: cover !important; background-size: 100% 100% !important;
width: 23px !important; width: 23px !important;
height: 17px !important; height: 17px !important;
vertical-align: text-bottom !important; vertical-align: text-bottom !important;
...@@ -1247,6 +1251,9 @@ a{ ...@@ -1247,6 +1251,9 @@ a{
padding-top:0px !important; padding-top:0px !important;
padding-left:4px !important; padding-left:4px !important;
border-radius: 3px; border-radius: 3px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
} }
.ztree li span.button.noline_close{ .ztree li span.button.noline_close{
background-image: url(../../custom/images/disk_move_tree_expand_gray.png) !important; background-image: url(../../custom/images/disk_move_tree_expand_gray.png) !important;
...@@ -1511,6 +1518,106 @@ a{ ...@@ -1511,6 +1518,106 @@ a{
.disk_createShare_content>div>div{ .disk_createShare_content>div>div{
padding:0px; padding:0px;
} }
/***************选择人员的样式*********************/
.disk_selectUser_content{
padding:0;
}
.disk_selectUser_content>div{
padding:0;
height:580px;
}
.disk_selectUser_content>div:first-child{
border-right:1px solid #e5e5e5;
overflow: auto;
}
.disk_selectUser_content>div:first-child>div:first-child>img{
margin-top:200px;
width:100%;
}
.disk_selectUser_table_title+div{
text-align: center;
}
.disk_selectUser_table_title+div>img{
width: 34%;
margin-top: 147px;
}
.disk_selectUser_table_title{
height:50px;
background: #f9f9f9;
padding-left:15px;
padding-top:10px;
border-bottom:1px solid #e5e5e5;
}
.disk_selectUser_table_title>input{
height:30px;
width:200px;
display: inline;
padding-left:7px;
}
.disk_selectUser_table_title>span{
margin-left: 15px;
background: #50B6FF;
padding: 0px 14px;
height: 30px;
line-height: 30px;
vertical-align: top;
display: inline-block;
color: white;
border-radius: 4px;
cursor: pointer;
}
.disk_selectUser_table_title>span:hover{
background: #93D5FF;
}
.disk_selectUser_table_title>label{
color:red;
margin-left:15px;
display: none;
}
/*******************选择人员的表格***************/
.disk_selectUser_table{
padding:10px;
}
.disk_selectUser_table .fixed-table-body{
height: 411px;
}
.disk_selectUser_table table{
font-size:14px;
}
.disk_selectUser_table .pagination>.active>a,
.disk_selectUser_table .pagination>.active>a:focus,
.disk_selectUser_table .pagination>.active>a:hover,
.disk_selectUser_table .pagination>.active>span,
.disk_selectUser_table .pagination>.active>span:focus,
.disk_selectUser_table .pagination>.active>span:hover{
background: #50B6FF;
border-color: #50B6FF;
color:white;
}
.disk_selectUser_table .pagination>li>a:focus,
.disk_selectUser_table .pagination>li>a:hover,
.disk_selectUser_table .pagination>li>span:focus,
.disk_selectUser_table .pagination>li>span:hover,
.disk_selectUser_table .pagination>li>a,
.disk_selectUser_table .pagination>li>span{
color:#666
}
.disk_selectUser_table .btn-default:hover,
.disk_selectUser_table .btn-default.active,
.disk_selectUser_table .btn-default:active,
.disk_selectUser_table .open>.dropdown-toggle.btn-default{
background-color: #eee;
border-color: #ddd;
}
.disk_selectUser_table .dropdown-menu>.active>a,
.disk_selectUser_table .dropdown-menu>.active>a:focus,
.disk_selectUser_table .dropdown-menu>.active>a:hover{
background-color:#50B6FF;
}
.disk_selectUser_table .fixed-table-container input[type="radio"],
.disk_selectUser_table .fixed-table-container input[type="checkbox"]{
margin: 3px auto !important;
}
/*******************分享的样式*******************/ /*******************分享的样式*******************/
.share_cotainer{ .share_cotainer{
width:400px; width:400px;
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<script type="text/javascript" src="${pageContext.request.contextPath}/jwapp/pages/storepersonal/js/storePersonalModule.js" charset="utf-8"></script> <script type="text/javascript" src="${pageContext.request.contextPath}/jwapp/pages/storepersonal/js/storePersonalModule.js" charset="utf-8"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/jwapp/pages/store/js/storeModule.js" charset="utf-8"></script> <script type="text/javascript" src="${pageContext.request.contextPath}/jwapp/pages/store/js/storeModule.js" charset="utf-8"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/jwapp/pages/storeshare/js/storeShareModule.js" charset="utf-8"></script> <script type="text/javascript" src="${pageContext.request.contextPath}/jwapp/pages/storeshare/js/storeShareModule.js" charset="utf-8"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/jwapp/pages/user/js/jwAppUserModule.js" charset="utf-8"></script> <script type="text/javascript" src="${pageContext.request.contextPath}/jwapp/pages/userchoice/js/userchoiceModule.js" charset="utf-8"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/jwapp/pages/storepartook/js/storePartookModule.js" charset="utf-8"></script> <script type="text/javascript" src="${pageContext.request.contextPath}/jwapp/pages/storepartook/js/storePartookModule.js" charset="utf-8"></script>
<script src="${ctx}/jfcas04/js/disk.js"></script> <script src="${ctx}/jfcas04/js/disk.js"></script>
</head> </head>
...@@ -21,14 +21,14 @@ ...@@ -21,14 +21,14 @@
<div class="disk_container container-fluid"> <div class="disk_container container-fluid">
<div class="row disk_search"> <div class="row disk_search">
<div class="col-md-2"> <div class="col-md-2">
<div class="col-md-6" onclick="location.href='disk'"><img src="${ctx}/custom/images/disk_home.png" wdith="14" height="14" /><span>|</span></div> <div class="col-md-6" onclick="disk_back_home()"><img src="${ctx}/custom/images/disk_home.png" wdith="14" height="14" /><span>|</span></div>
<%-- <div class="col-md-3" id="disk_backFolder_prev" onclick="disk_backFolder_prev(this)"><img src="${ctx}/custom/images/disk_last.png" wdith="14" height="14" /><span>|</span></div> <%-- <div class="col-md-3" id="disk_backFolder_prev" onclick="disk_backFolder_prev(this)"><img src="${ctx}/custom/images/disk_last.png" wdith="14" height="14" /><span>|</span></div>
<div class="col-md-3" id="disk_backFolder_next" onclick="disk_backFolder_next(this)"><img src="${ctx}/custom/images/disk_next.png" wdith="14" height="14" /><span>|</span></div> --%> <div class="col-md-3" id="disk_backFolder_next" onclick="disk_backFolder_next(this)"><img src="${ctx}/custom/images/disk_next.png" wdith="14" height="14" /><span>|</span></div> --%>
<div id="disk_rubbish" class="col-md-6" onclick="disk_rubbish()"><img src="${ctx}/custom/images/disk_circle.png" wdith="14" height="14" /></div> <div id="disk_rubbish" class="col-md-6" onclick="disk_rubbish()"><img src="${ctx}/custom/images/disk_circle.png" wdith="14" height="14" /></div>
</div> </div>
<div class="col-md-7"> <div class="col-md-7">
<div class="disk_search_center"> <div class="disk_search_center">
<a href="disk"><span class="glyphicon glyphicon-folder-close"></span><span>我的网盘</span><span class="glyphicon glyphicon-triangle-right"></span></a> <a href="javascript:disk_back_home()"><span class="glyphicon glyphicon-folder-close"></span><span>我的网盘</span><span class="glyphicon glyphicon-triangle-right"></span></a>
<!-- <a onclick="disk_backFolder(this)"><span class="glyphicon glyphicon-folder-close"></span><span>我的网盘</span><span class="glyphicon glyphicon-triangle-right"></span></a> --> <!-- <a onclick="disk_backFolder(this)"><span class="glyphicon glyphicon-folder-close"></span><span>我的网盘</span><span class="glyphicon glyphicon-triangle-right"></span></a> -->
</div> </div>
</div> </div>
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
<div class="col-md-12 disk_content_header"> <div class="col-md-12 disk_content_header">
<div class="col-md-11"> <div class="col-md-11">
<a href="javascript:disk_uploadFolder()"><img src="${ctx}/custom/images/disk_upload.png" width="16" height="16" /><span>上传文件</span></a> <a href="javascript:disk_uploadFolder()"><img src="${ctx}/custom/images/disk_upload.png" width="16" height="16" /><span>上传文件</span></a>
<a class="disk_document_default" href="javascript:disk_enjoyFolder()"><img src="${ctx}/custom/images/disk_gongxiang.png" width="16" height="16" /><span>共享文件</span></a> <a class="disk_document_default" href="javascript:disk_enjoyFolder()"><img src="${ctx}/custom/images/disk_gongxiang.png" width="16" height="16" /><span>共享</span></a>
<a href="javascript:disk_addFolder()"><img src="${ctx}/custom/images/disk_add.png" width="16" height="16" /><span>新建文件夹</span></a> <a href="javascript:disk_addFolder()"><img src="${ctx}/custom/images/disk_add.png" width="16" height="16" /><span>新建文件夹</span></a>
<a class="disk_document_default" href="javascript:disk_deleteFolder()"><img src="${ctx}/custom/images/disk_delete.png" width="16" height="16" /><span>删除</span></a> <a class="disk_document_default" href="javascript:disk_deleteFolder()"><img src="${ctx}/custom/images/disk_delete.png" width="16" height="16" /><span>删除</span></a>
<a class="disk_document_default" href="javascript:disk_shareFolder()"><img src="${ctx}/custom/images/disk_share.png" width="16" height="16" /><span>分享</span></a> <a class="disk_document_default" href="javascript:disk_shareFolder()"><img src="${ctx}/custom/images/disk_share.png" width="16" height="16" /><span>分享</span></a>
...@@ -59,85 +59,8 @@ ...@@ -59,85 +59,8 @@
<div class="col-md-1"><span onclick="disk_content_toggle(this)" class="disk_content_toggleBtn glyphicon glyphicon-th-large" title="切换到列表模式"></span></div> <div class="col-md-1"><span onclick="disk_content_toggle(this)" class="disk_content_toggleBtn glyphicon glyphicon-th-large" title="切换到列表模式"></span></div>
</div> </div>
<!-- 缩略图 --> <!-- 缩略图 -->
<div class="col-md-12 disk_content_lump"> <div class="col-md-12 disk_content_lump"></div>
<%-- <div class="col-md-2">
<div>
<img src="${ctx}/custom/images/disk_module1.png"/>
<div>公司文件</div>
<input style="display:none;" type="text" class="form-control" value="公司文件"/>
</div>
</div>
<div class="col-md-2">
<div>
<img src="${ctx}/custom/images/disk_module2.png"/>
<div>共享文件</div>
<input style="display:none;" type="text" class="form-control" value="共享文件"/>
</div>
</div>
<div class="col-md-2">
<div>
<img src="${ctx}/custom/images/disk_module3.png"/>
<div>我的文件</div>
<input style="display:none;" type="text" class="form-control" value="我的文件"/>
</div>
</div>
<div class="col-md-2">
<div>
<img src="${ctx}/custom/images/disk_module4.png"/>
<div>我的共享</div>
<input style="display:none;" type="text" class="form-control" value="我的共享"/>
</div>
</div>
<div class="col-md-2">
<div>
<img src="${ctx}/custom/images/disk_rar.png"/>
<div>压缩文件夹</div>
<input style="display:none;" type="text" class="form-control" value="压缩文件夹"/>
</div>
</div>
<div class="col-md-2">
<div>
<img src="${ctx}/custom/images/disk_word.png"/>
<div>我的文档</div>
<input style="display:none;" type="text" class="form-control" value="我的文档"/>
</div>
</div>
<div class="col-md-2">
<div>
<img src="${ctx}/custom/images/disk_excel.png"/>
<div>我的EXCEL</div>
<input style="display:none;" type="text" class="form-control" value="我的EXCEL"/>
</div>
</div>
<div class="col-md-2">
<div>
<img src="${ctx}/custom/images/disk_ppt.png"/>
<div>我的PPT</div>
<input style="display:none;" style="display:none;" type="text" class="form-control" value="我的PPT"/>
</div>
</div>
<div class="col-md-2">
<div>
<img src="${ctx}/custom/images/disk_pdf.png"/>
<div>我的PDF</div>
<input style="display:none;" type="text" class="form-control" value="我的PDF"/>
</div>
</div>
<div class="col-md-2">
<div>
<img src="${ctx}/custom/images/disk_uploadImg.png"/>
<div>超级狙击手.png</div>
<input style="display:none;" type="text" class="form-control" value="超级狙击手.png"/>
</div>
</div>
<div class="col-md-2">
<div>
<img src="${ctx}/custom/images/disk_unknow.png"/>
<div>disk_unknow.bsl</div>
<input style="display:none;" type="text" class="form-control" value="disk_unknow.bsl"/>
</div>
</div> --%>
</div>
<!-- 列表 --> <!-- 列表 -->
<div class="disk_content_list disk_table disk_table_height" style="display:none;margin-bottom:20px;" > <div class="disk_content_list disk_table disk_table_height" style="display:none;margin-bottom:20px;" >
<table id="disk_content_list"></table> <table id="disk_content_list"></table>
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<div class="index_search"> <div class="index_search">
<div class="index_search_content"> <div class="index_search_content">
<input type="text" value="大数据搜索引擎" onclick="index_search(this)"/> <input type="text" value="大数据搜索引擎" onclick="index_search(this)"/>
<div class="index_search_img" onclick="init_index_map($(this).prev().val())"><img src="${ctx}/custom/images/index4_search.png" height="22"/></div> <div class="index_search_img" onclick="fulltext($(this).prev().val())"><img src="${ctx}/custom/images/index4_search.png" height="22"/></div>
<div class="index_search_show"> <div class="index_search_show">
<div class="index_search_show_content"> <div class="index_search_show_content">
<div><label>所属区:</label></div> <div><label>所属区:</label></div>
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
<div><label>所筛选条件:</label></div> <div><label>所筛选条件:</label></div>
<div id="index_search_show_result"></div> <div id="index_search_show_result"></div>
<div> <div>
<span>确认搜索</span><span onclick="index_search_show_result_close()">取消</span> <span onclick="fulltext(index_search_show_result.innerText);">确认搜索</span><span onclick="index_search_show_result_close()">取消</span>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -49,6 +49,13 @@ $(function(){ ...@@ -49,6 +49,13 @@ $(function(){
}) })
//搜索
function fulltext(param){
console.log(param)
//alert(param);
window.open("http://qwss.jfbrother.com/jfV5qwss/jfcas?redirectUrl=view_fulltextTab?para_keywords="+param);
}
//初始化模块 //初始化模块
function init_index_module(){ function init_index_module(){
//d6926714-c220-4a7e-9ec0-3a23caebb179 //d6926714-c220-4a7e-9ec0-3a23caebb179
...@@ -1237,7 +1244,13 @@ function init_index_fullCalendar() { ...@@ -1237,7 +1244,13 @@ function init_index_fullCalendar() {
//开始时间 //开始时间
var start = calEvent.start._i; var start = calEvent.start._i;
//结束时间 //结束时间
var end = calEvent.end._i; var end = '';
if(calEvent.end==null){
end = start;
}
else{
end = calEvent.end._i;
}
//颜色 //颜色
var color = calEvent.color; var color = calEvent.color;
...@@ -1485,7 +1498,6 @@ function init_index_color(color) { ...@@ -1485,7 +1498,6 @@ function init_index_color(color) {
color = '#ECC'; color = '#ECC';
} }
$("#index_calendarColor").val(color); $("#index_calendarColor").val(color);
console.log($("#index_calendarColor"))
$("#index_calendarColor").spectrum({ $("#index_calendarColor").spectrum({
/*allowEmpty:true,*/ /*allowEmpty:true,*/
color : color, color : color,
...@@ -1514,7 +1526,7 @@ function init_index_color(color) { ...@@ -1514,7 +1526,7 @@ function init_index_color(color) {
palette : [ palette : [
[ "rgb(0, 0, 0)", "rgb(67, 67, 67)", "rgb(102, 102, 102)", /*"rgb(153, 153, 153)","rgb(183, 183, 183)",*/ [ "rgb(0, 0, 0)", "rgb(67, 67, 67)", "rgb(102, 102, 102)", /*"rgb(153, 153, 153)","rgb(183, 183, 183)",*/
"rgb(204, 204, 204)", "rgb(217, 217, 217)", /*"rgb(239, 239, 239)", "rgb(243, 243, 243)",*/ "rgb(255, 255, 255)" ], "rgb(204, 204, 204)", "rgb(217, 217, 217)", /*"rgb(239, 239, 239)", "rgb(243, 243, 243)",*/ /*"rgb(255, 255, 255)"*/ ],
[ "rgb(152, 0, 0)", "rgb(255, 0, 0)", "rgb(255, 153, 0)", "rgb(255, 255, 0)", "rgb(0, 255, 0)", [ "rgb(152, 0, 0)", "rgb(255, 0, 0)", "rgb(255, 153, 0)", "rgb(255, 255, 0)", "rgb(0, 255, 0)",
"rgb(0, 255, 255)", "rgb(74, 134, 232)", "rgb(0, 0, 255)", "rgb(153, 0, 255)", "rgb(255, 0, 255)" ], "rgb(0, 255, 255)", "rgb(74, 134, 232)", "rgb(0, 0, 255)", "rgb(153, 0, 255)", "rgb(255, 0, 255)" ],
[ "rgb(230, 184, 175)", "rgb(244, 204, 204)", "rgb(252, 229, 205)", "rgb(255, 242, 204)", "rgb(217, 234, 211)", [ "rgb(230, 184, 175)", "rgb(244, 204, 204)", "rgb(252, 229, 205)", "rgb(255, 242, 204)", "rgb(217, 234, 211)",
......
...@@ -121,6 +121,7 @@ function init_share_detail(infos){ ...@@ -121,6 +121,7 @@ function init_share_detail(infos){
if(infos.length==1){ if(infos.length==1){
if(!infos[0].fileImg){ if(!infos[0].fileImg){
$('.shareDetail_container_header>img').attr('src',ctx+'/photo/photo.jsp?ls_photo='+infos[0].FILE_SAVE_PATH+infos[0].FILE_SVAE_NAME); $('.shareDetail_container_header>img').attr('src',ctx+'/photo/photo.jsp?ls_photo='+infos[0].FILE_SAVE_PATH+infos[0].FILE_SVAE_NAME);
$('.shareDetail_container_header>img').css('border-radius','5px');
} }
else{ else{
$('.shareDetail_container_header>img').attr('src',ctx+'/custom/images/'+infos[0].fileImg); $('.shareDetail_container_header>img').attr('src',ctx+'/custom/images/'+infos[0].fileImg);
...@@ -200,7 +201,7 @@ function init_shareDetail_list(infos){ ...@@ -200,7 +201,7 @@ function init_shareDetail_list(infos){
return '<img style="margin-right:10px;vertical-align:top;" src="'+ctx+'/custom/images/'+ row.fileImg +'" height="44" width="61"><span style="margin-top:12px;display:inline-block;">'+value+'</span>'; return '<img style="margin-right:10px;vertical-align:top;" src="'+ctx+'/custom/images/'+ row.fileImg +'" height="44" width="61"><span style="margin-top:12px;display:inline-block;">'+value+'</span>';
} }
else{ else{
return '<img style="margin-right:10px;vertical-align:top;" src="'+ctx+'/photo/photo.jsp?ls_photo='+row.FILE_SAVE_PATH+row.FILE_SVAE_NAME+'" height="44" width="61"><span style="margin-top:12px;display:inline-block;">'+value+'</span>'; return '<img style="border-radius:5px;margin-right:10px;vertical-align:top;" src="'+ctx+'/photo/photo.jsp?ls_photo='+row.FILE_SAVE_PATH+row.FILE_SVAE_NAME+'" height="44" width="61"><span style="margin-top:12px;display:inline-block;">'+value+'</span>';
} }
} }
}, { }, {
......
...@@ -13,6 +13,7 @@ String procApp=com.gaowj.business.util.PropUtil.getValue("lcyq_app_url", "quartz ...@@ -13,6 +13,7 @@ String procApp=com.gaowj.business.util.PropUtil.getValue("lcyq_app_url", "quartz
<script src="${ctx}/jfcas04/js/office.js"></script> <script src="${ctx}/jfcas04/js/office.js"></script>
</head> </head>
<body> <body>
<input type="hidden" id="office_domain" value="<%=com.gaowj.business.util.PropUtil.getValue("domain", "quartz_service", "") %>" />
<!-- 头部 --> <!-- 头部 -->
<jsp:include page="/nav4.jsp"></jsp:include> <jsp:include page="/nav4.jsp"></jsp:include>
...@@ -23,25 +24,25 @@ String procApp=com.gaowj.business.util.PropUtil.getValue("lcyq_app_url", "quartz ...@@ -23,25 +24,25 @@ String procApp=com.gaowj.business.util.PropUtil.getValue("lcyq_app_url", "quartz
<div class="row office_bg"> <div class="row office_bg">
<div class="office_bg_content col-md-12"> <div class="office_bg_content col-md-12">
<div class="col-md-3"> <div class="col-md-3">
<div class="office_bg_content_click"> <div class="office_bg_content_click" >
<img src="${ctx}/custom/images/office_apply.png" width="100" height="100" /> <img src="${ctx}/custom/images/office_apply.png" width="100" height="100" />
<div>我要申请</div> <div>我要申请</div>
</div> </div>
</div> </div>
<div class="col-md-3"> <div class="col-md-3">
<div class=""> <div class="" src="<%=procApp %>?redirectUrl=processView_approval" iframeId="approval">
<img src="${ctx}/custom/images/office_examine.png" width="100" height="100" /> <img src="${ctx}/custom/images/office_examine.png" width="100" height="100" />
<div>我要审批</div> <div>我要审批</div>
</div> </div>
</div> </div>
<div class="col-md-3"> <div class="col-md-3">
<div class=""> <div class="" src="<%=procApp %>?redirectUrl=processView_progressRate" iframeId="progressRate">
<img src="${ctx}/custom/images/office_progress.png" width="100" height="100" /> <img src="${ctx}/custom/images/office_progress.png" width="100" height="100" />
<div>进度查询</div> <div>进度查询</div>
</div> </div>
</div> </div>
<div class="col-md-3"> <div class="col-md-3">
<div class=""> <div class="" src="<%=procApp %>?redirectUrl=processView_progressHistory" iframeId="progressHistory">
<img src="${ctx}/custom/images/office_history.png" width="100" height="100" /> <img src="${ctx}/custom/images/office_history.png" width="100" height="100" />
<div>历史查询</div> <div>历史查询</div>
</div> </div>
...@@ -61,21 +62,21 @@ String procApp=com.gaowj.business.util.PropUtil.getValue("lcyq_app_url", "quartz ...@@ -61,21 +62,21 @@ String procApp=com.gaowj.business.util.PropUtil.getValue("lcyq_app_url", "quartz
<!-- 审批模块 --> <!-- 审批模块 -->
<div class="office_module row" style="display:none"> <div class="office_module row" style="display:none">
<iframe id="approval" style="width:100%" src="<%=procApp %>/processView_approval"></iframe> <iframe id="approval" style="width:100%" ></iframe>
</div> </div>
<!-- 进度查询模块 --> <!-- 进度查询模块 -->
<div class="office_module row" style="display:none"> <div class="office_module row" style="display:none">
<iframe id="progressRate" style="width:100%" src="<%=procApp %>/processView_progressRate"></iframe> <iframe id="progressRate" style="width:100%" ></iframe>
</div> </div>
<!-- 历史查询模块 --> <!-- 历史查询模块 -->
<div class="office_module row" style="display:none"> <div class="office_module row" style="display:none">
<iframe id="progressHistory" style="width:100%" src="<%=procApp %>/processView_progressHistory"></iframe> <iframe id="progressHistory" style="width:100%" ></iframe>
</div> </div>
<!--主容器结尾--> <!--主容器结尾-->
</div> </div>
<input type="text" id="procAppUrl" value="<%=procApp%>"> <input type="text" id="procAppUrl" value="<%=procApp%>" style="display:none;">
<!-- 内容部分2 --> <!-- 内容部分2 -->
<div class="container-fluid" id="process_content2" style="display:none;"> <div class="container-fluid" id="process_content2" style="display:none;">
......
.choice_user>div{
display: inline-block;
background:#f4f4f4;
border-radius:5px;
vertical-align: top;
margin-right:5px;
padding:0 5px;
font-size: 12px;
position: relative;
margin-top:5px;
}
.choice_user>div:hover>span:first-child+span{
display: inline-block;
}
.choice_user>div>span:first-child+span{
display:none;
width: 12px;
height: 12px;
position: absolute;
top: -5px;
right: -5px;
cursor: pointer;
}
\ No newline at end of file
/** /**
* * contentid:需要初始化的容器id
* content:需要填充的数据
*/ */
function getbaidu(contentid){ function getbaidu(contentid,content){
UE.delEditor(contentid);
var ue = UE.getEditor(contentid,{ //这里可以选择自己需要的工具按钮名称,此处仅选择如下五个 var ue = UE.getEditor(contentid,{ //这里可以选择自己需要的工具按钮名称,此处仅选择如下五个
toolbars:[ [ toolbars:[ [
// 'fullscreen', // 'fullscreen',
...@@ -26,7 +28,13 @@ function getbaidu(contentid){ ...@@ -26,7 +28,13 @@ function getbaidu(contentid){
zIndex :9999, zIndex :9999,
allowDivTransToP : false, //允许进入编辑器的div标签自动变成p标签 allowDivTransToP : false, //允许进入编辑器的div标签自动变成p标签
//更多其他参数,请参考ueditor.config.js中的配置项 //更多其他参数,请参考ueditor.config.js中的配置项
serverUrl: '/jfV4platform/js/ueditor1_4_3/jsp/controller.jsp' serverUrl: '/jfV5portal/js/ueditor1_4_3/jsp/controller.jsp'
}); });
if (content != null && "" != content) {
ue.ready(function() {
//设置编辑器的内容
ue.setContent(content);
});
}
return ue; return ue;
} }
...@@ -1823,7 +1823,7 @@ function openViewIframRow(opendiv,editUrl,is_row,is_title,is_max,is_width,is_hei ...@@ -1823,7 +1823,7 @@ function openViewIframRow(opendiv,editUrl,is_row,is_title,is_max,is_width,is_hei
maximizable:is_max, maximizable:is_max,
left:is_left, left:is_left,
top:is_top, top:is_top,
content : '<iframe scrolling="yes" frameborder="0" src="'+ editUrl+ '" style="width:100%;height:98%;"></iframe><span id="return_text"></span>', content : '<iframe scrolling="yes" frameborder="0" src="'+ editUrl+ '" style="width:100%;height:98%;"></iframe><span id="return_text" style="display:none;">'+JSON.stringify(get_FIELD(is_row))+'</span>',
queryParams:get_FIELD(is_row), queryParams:get_FIELD(is_row),
modal : true, modal : true,
buttons : [{ buttons : [{
......
<%@page contentType="text/html; charset=UTF-8"%>
<%@ include file="/gaowj/header-simple-1.0.jsp"%>
<div id="classifyTab">
<link rel="stylesheet" type="text/css" href="${ctx}/jwapp/common/css/content_body.css" charset="utf-8"></link>
<link rel="stylesheet" type="text/css" href="${ctx}/jwapp/common/css/content_table.css" charset="utf-8"></link>
<link rel="stylesheet" type="text/css" href="${ctx}/jwapp/common/css/content_input.css" charset="utf-8"></link>
</div>
<table id="list" style="width: 100%; height: 100%;"></table>
<div id="tb">
<form id="classifyTab_searchForm" style="float:left">
名称: <input id="FIELD_CLASSIFY_NAME" name="FIELD_CLASSIFY_NAME" type="text" style="width: 200px" class="tableInput-easyui">
</form>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" onclick="javascript:searchRow()">查询</a>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" onclick="javascript:refreshRow()">刷新</a>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" onclick="javascript:addRow()">新增</a>
<a href="#" id="mb1" class="easyui-menubutton" data-options="menu:'#mm1',iconCls:'icon-ext-29_22'">更多</a>
<div id="mm1" style="width:30px;">
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-clear',plain:true" onclick="javascript:deleteBatchRow()">删除记录</a>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-undo',plain:true" onclick="javascript:resumeBatchRow()">恢复记录</a>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" onclick="javascript:removeBatchRow()">清除记录</a>
</div>
</div>
<div id="detail" style="overflow:auto;"></div>
<script type="text/javascript" src="${ctx}/jwapp/pages/standard/js/jwStandardModule.js" charset="utf-8"></script>
<script type="text/javascript" src="${ctx}/jwapp/pages/forum/classify/js/classifyModule.js" charset="utf-8"></script>
<script type="text/javascript" src="${ctx}/jwapp/pages/forum/classify/js/classifyTab.js" charset="utf-8"></script>
<%@page contentType="text/html; charset=UTF-8"%>
<form id="inputForm" method="post" style="width: 100%;">
<input type="hidden" name="FIELD_OPETYPE" id="OPETYPE" value="${is_row.OPETYPE}" />
<input type="hidden" name="FIELD_UUID" id="UUID" value="${is_row.UUID}"/>
<input type="hidden" name="FIELD_FILE_NAME" id="FILE_NAME" value="${is_row.FILE_NAME}"/>
<input type="hidden" name="FIELD_FILE_SAVE_NAME" id="FILE_SAVE_NAME" value="${is_row.FILE_SAVE_NAME}"/>
<input type="hidden" name="FIELD_FILE_SAVE_PATH" id="FILE_SAVE_PATH" value="${is_row.FILE_SAVE_PATH}"/>
<table align="center" border="0" cellpadding="0" cellspacing="0" class="tableStyle" style="margin: 10px 15px; width: 95%; line-height: 30px;">
<tr>
<td style="width: 15%;" class="tableStyleLable">
<span>版块名称:</span>
</td>
<td style="width: 85%">
<input class="easyui-textbox" id="CLASSIFY_NAME" name="FIELD_CLASSIFY_NAME" style="width:500px" value="${is_row.CLASSIFY_NAME}"/>
</td>
</tr>
<tr>
<td style="width: 15%;" class="tableStyleLable">
<span>版块图片:</span>
</td>
<td style="width: 85%">
<input type="button" id="CLASSIFY_BG" value="上传">
<input type="button" id="CLASSIFY_BG_BTN" value="上传按钮" style='display:none'>
<span>${is_row.FILE_NAME}</span>
<!-- <input type="file" name="userFile" id="userFile" />
<div class="tableStyleLable" id="notice"></div> -->
</td>
<tr>
</tr>
<tr>
<td style="width: 15%;" class="tableStyleLable">
<span>版块排序:</span>
</td>
<td style="width: 85%">
<input class="easyui-textbox" id="SORT" name="FIELD_SORT" style="width:500px" value="${is_row.SORT}"/>
</td>
</tr>
<tr>
<td style="width: 15%;" class="tableStyleLable">
<span>版块描述:</span>
</td>
<td style="width: 85%">
<input class="easyui-textbox" id="DESCRIPTION" name="FIELD_DESCRIPTION" style="width:500px" value="${is_row.DESCRIPTION}"/>
</td>
</tr>
</table>
</form>
\ No newline at end of file
//此乃本模块与后台交互的方法接口部分
var classifyModule = function(format) {
this.module = "";
this.action = "";
this.format = format;
};
//定义数据交互
classifyModule.prototype = BusinessObject;
//上传图片
classifyModule.prototype.upload = function(){};
//插入数据
classifyModule.prototype.insertClassify = function(){};
//更新
classifyModule.prototype.updateClassify = function(){};
//伪删除数据
classifyModule.prototype.deleteClassify = function(){};
//恢复数据
classifyModule.prototype.resumeClassify = function(){};
//清除数据
classifyModule.prototype.deleteTrueClassify = function(){};
//附件数据_分页
classifyModule.prototype.list = function(){};
//附件所有数据
classifyModule.prototype.listAll = function(){};
//创建一个数据操作对象,然后再后续使用
classifyModule.classifyActAction = new classifyModule("json").delegate("forumClassifyAct");
//创建一个数据获取对象,然后再后续使用
classifyModule.classifyDataAction = new classifyModule("json").delegate("forumClassifyData");
//说明: 1、所有方法里统一传递josn格式的参数,用于后台交互,如data.listTables(param) ,如没有参数则传'{}',如data.listTables({})
// 2、前后台数据获取传输协议 如:json[{'0':{pageCount':'2','pageNo':'1','pageSize':'20','rowSet':'[{0},{1}....]'}}]
// 3、前后台增删改的返回状态 如:json[{'0':{'rowSet':{'NAME':'-1','VALUE':'保存失败'}}}]
/**
* 序号:1
* 功能:定义分页(EasyUI)
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:无需更改
**/
var ls_width = $(window).width();
var ls_height = $(window).height();
var local_page=1;
var rows=20;
var listPageSize = [10,20,50,100,500,1000];
var queryData = eval("({'page':'"+local_page+"','rows':'"+rows+"'})");
var tab_n = 0;
//重置分页参数
function resetQueryData(){
queryData = "";
queryData = eval("({'page':'"+local_page+"','rows':'"+rows+"'})");
}
//定义附件关联模块ID(1:一般业务,2:测试信息,3:审批业务,999:其它数据 )
var ls_module_id='3';
//定义当前模块业务类型(YBYW:一般业务,SPGL:审批业务)
var ls_ywlx = 'YBYW';
//定义当前文件树节点
var ls_node = null;
/****/
/**
* 序号:2
* 功能:构建下拉框内容
* 参数:
* 说明:方便新增、修改页面里的下拉选项加载数据
* 作者:高伟杰
* 时间:2018-07-11
* 单位:宁波金网
* 备注:需更改
**/
//加载是否数据
var v_yesnoquery = {};
v_yesnoquery.FIELD_tableName = "DM_ST_YES_NO";
var v_yesnoquery_data = standardModel.dataAction.listAllCache(v_yesnoquery);
/****/
/**
* 序号:3
* 功能:构建主页面列表
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
var ls_title="回复管理";
var is_column = [ [
{field : 'CONTENT',title : '内容',width : 250,align : 'center'},
{field : 'REPLY_USER_NAME',title : '回帖人',width : 100,align : 'center'},
{field : 'REPLY_TIME',title : '回帖时间',width : 150,align : 'center'},
{field : 'DELETE_FLAG',title : '数据已删除',width : 80,align : 'center',
formatter : function(value) {
return getCodeName(v_yesnoquery_data.rowSet, value);
}
}
] ];
//列表加载完成回调
function dataOnLoadSuccess(){
}
//设置颜色和每行高度
function rowstyler(index, row) {
if (row.DELETE_FLAG != '1') {
if (row.STICK_FLAG == '1') {
return 'color:blue;height:30px;';
} else {
return 'height:30px;';
}
} else {
return 'color:#c0c0c0;height:30px;';
}
}
//展示列表
queryData.FIELD_TOPIC_ID = $("#TOPIC_ID").val();
datagrid("list",'',gaowj.WEB_APP_NAME + "/forumTopicData_listReply",queryData,is_column,60,80);
/****/
/**
* 序号:4
* 功能:设置主页面操作列菜单
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
//操用列显示更多(一般情况下无需更改)
function formatMenu(value, data,index) {
var returnData="";
return returnData
+ "<span class=\"icon-ext-moremenu\" style=\"padding-left:20px;*width:20px;\"></span>"
+ "<span data-p1="+index+" class=\"easyui-tooltip\" style=\"color:blue;cursor:pointer;\">更多</span>";
}
//上浮横向菜单集里的具体菜单项(需更改)
var is_tc = 0;
function getOptionMenu(data,index){
var returnData = "";
is_tc = 3;
returnData= "<span class=\"icon-clear\" style=\"padding-left:20px;*width:20px;\"></span><a href=\"javascript:void(0);\" onclick=\"deleteRow('"
+ index + "')\">删除</a> | <span class=\"icon-undo\" style=\"padding-left:20px;*width:20px;\"></span><a href=\"javascript:void(0);\" onclick=\"resumeRow('"
+ index + "')\">恢复</a> | <span class=\"icon-remove\" style=\"padding-left:20px;*width:20px;\"></span><a href=\"javascript:void(0);\" onclick=\"removeRow('"
+ index + "')\">清除</a>";
return returnData;
}
//返回菜单集的菜单个数(需更改)
function getOptionMenuCount(){
var is_menu_count = is_tc;
return is_menu_count;
}
/****/
/**
* 序号:5
* 功能:新增
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
//保存
function addRow(){
var is_entity = $("#inputForm").getFormVal();
//处理相关
var v_result = topicModule.topicActAction.insertTopicReply(is_entity);
$('#list').datagrid('reload');
$('#CONTENT').val('');
if (v_result != null && v_result != undefined) {
$.messager.alert('提示', v_result.VALUE);
}
//return v_result;
}
/****/
/**
* 序号:6
* 功能:单个删除
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
function deleteRow(index){
$('#list').datagrid('selectRow',index);
var is_row = $('#list').datagrid('getSelections');
$('#list').datagrid('clearSelections');
var code = is_row[0].UUID;
$.messager.confirm('提示', '确定删除?', function(r) {
if (r) {
var v_query = {};
v_query.FIELD_CODE = code;
var v_result = topicModule.topicActAction.deleteTopicReply(v_query);
$.messager.alert('提示',v_result.VALUE);
$('#list').datagrid('reload');
}
});
}
/****/
/**
* 序号:7
* 功能:批量删除
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
function deleteBatchRow(){
var code="";
var rows = $('#list').datagrid('getSelections');
for(var i=0; i<rows.length; i++){
code = code + rows[i].UUID+",";
}
if(rows == null || rows == ""){
$.messager.alert('提示',"请选择需删除的记录!",'info');
return;
}
if(code.length>0){
code = code.substring(0,code.length - 1);
}
$.messager.confirm('提示', '确定删除?', function(r) {
if (r) {
var v_query = {};
v_query.FIELD_CODE = code;
var v_result = topicModule.topicActAction.deleteTopicReply(v_query);
$.messager.alert('提示',v_result.VALUE);
$('#list').datagrid('reload');
}
});
}
/****/
/**
* 序号:8
* 功能:刷新
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
function refreshRow(){
$('#list').datagrid('load',{});
$("#replyDetail_searchForm")[0].reset();
}
/****/
/**
* 序号:9
* 功能:查询
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
function searchRow(){
var v_query = $("#replyDetail_searchForm").getFormVal();
$('#list').datagrid('load',v_query);
renderDATAFORM(v_query,$("#replyDetail_searchForm"));
}
/****/
/**
* 序号:10
* 功能:单个恢复
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
function resumeRow(index){
$('#list').datagrid('selectRow',index);
var is_row = $('#list').datagrid('getSelections');
$('#list').datagrid('clearSelections');
var code = is_row[0].UUID;
$.messager.confirm('提示', '确定恢复?', function(r) {
if (r) {
var v_query = {};
v_query.FIELD_CODE = code;
var v_result = topicModule.topicActAction.resumeTopicReply(v_query);
$.messager.alert('提示',v_result.VALUE);
$('#list').datagrid('reload');
}
});
}
/****/
/**
* 序号:11
* 功能:批量恢复
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
function resumeBatchRow(){
var code="";
var rows = $('#list').datagrid('getSelections');
for(var i=0; i<rows.length; i++){
code = code + rows[i].UUID+",";
}
if(rows == null || rows == ""){
$.messager.alert('提示',"请选择需恢复的记录!",'info');
return;
}
if(code.length>0){
code = code.substring(0,code.length - 1);
}
$.messager.confirm('提示', '确定恢复删除的记录?', function(r) {
if (r) {
var v_query = {};
v_query.FIELD_CODE = code;
var v_result = topicModule.topicActAction.resumeTopicReply(v_query);
$.messager.alert('提示',v_result.VALUE);
$('#list').datagrid('reload');
}
});
}
/****/
/**
* 序号:12
* 功能:单个清除
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
function removeRow(index){
$('#list').datagrid('selectRow',index);
var is_row = $('#list').datagrid('getSelections');
$('#list').datagrid('clearSelections');
if(is_row[0].DELETE_FLAG!=null && is_row[0].DELETE_FLAG == '0'){
$.messager.alert('提示',"存在没有删除标记的记录,无法清除!",'info');
return;
}
var code = is_row[0].UUID;
$.messager.confirm('提示', '确定清除记录?', function(r) {
if (r) {
var v_query = {};
v_query.FIELD_CODE = code;
var v_result = topicModule.topicActAction.deleteTrueTopicReply(v_query);
$.messager.alert('提示',v_result.VALUE);
$('#list').datagrid('reload');
}
});
}
/****/
/**
* 序号:13
* 功能:批量清除
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
function removeBatchRow(){
var code="";
var rows = $('#list').datagrid('getSelections');
for(var i=0; i<rows.length; i++){
code = code + rows[i].UUID+",";
if(rows[i].DELETE_FLAG!=null && rows[i].DELETE_FLAG == '0'){
$.messager.alert('提示',"存在没有删除标记的记录,无法清除!",'info');
return;
}
}
if(rows == null || rows == ""){
$.messager.alert('提示',"请选择需清除的记录!",'info');
return;
}
if(code.length>0){
code = code.substring(0,code.length - 1);
}
$.messager.confirm('提示', '确定清除记录?', function(r) {
if (r) {
var v_query = {};
v_query.FIELD_CODE = code;
var v_result = topicModule.topicActAction.deleteTrueTopicReply(v_query);
$.messager.alert('提示',v_result.VALUE);
$('#list').datagrid('reload');
}
});
}
/****/
//此乃本模块与后台交互的方法接口部分
var topicModule = function(format) {
this.module = "";
this.action = "";
this.format = format;
};
//定义数据交互
topicModule.prototype = BusinessObject;
//插入数据
topicModule.prototype.insertTopic = function(){};
//更新
topicModule.prototype.updateTopic = function(){};
//伪删除数据
topicModule.prototype.deleteTopic = function(){};
//恢复数据
topicModule.prototype.resumeTopic = function(){};
//清除数据
topicModule.prototype.deleteTrueTopic = function(){};
//插入主题回复
topicModule.prototype.insertTopicReply = function(){};
//更新主题回复
topicModule.prototype.updateTopicReply = function(){};
//删除主题回复数据
topicModule.prototype.deleteTopicReply = function(){};
//恢复数据
topicModule.prototype.resumeTopicReply = function(){};
//清除数据
topicModule.prototype.deleteTrueTopicReply = function(){};
//附件数据_分页
topicModule.prototype.listTopic = function(){};
//附件所有数据
topicModule.prototype.listTopicAll = function(){};
//附件数据_分页
topicModule.prototype.listReply = function(){};
//附件所有数据
topicModule.prototype.listReplyAll = function(){};
//创建一个数据操作对象,然后再后续使用
topicModule.topicActAction = new topicModule("json").delegate("forumTopicAct");
//创建一个数据获取对象,然后再后续使用
topicModule.topicDataAction = new topicModule("json").delegate("forumTopicData");
//说明: 1、所有方法里统一传递josn格式的参数,用于后台交互,如data.listTables(param) ,如没有参数则传'{}',如data.listTables({})
// 2、前后台数据获取传输协议 如:json[{'0':{pageCount':'2','pageNo':'1','pageSize':'20','rowSet':'[{0},{1}....]'}}]
// 3、前后台增删改的返回状态 如:json[{'0':{'rowSet':{'NAME':'-1','VALUE':'保存失败'}}}]
<%@page contentType="text/html; charset=UTF-8"%>
<%@ include file="/gaowj/header-simple-1.0.jsp"%>
<div style="overflow:auto;height:100%;">
<%-- <table align="center" border="0" cellpadding="0" cellspacing="0" class="tableStyle" style="margin: 10px 15px; width: 95%; line-height: 30px;">
<tr>
<td style="width: 15%;" class="tableStyleLable">
<span>标题:</span>
</td>
<td style="width: 85%"><span>[${is_row.CLASSIFY_NAME }]</span>${is_row.TITLE}</td>
</tr>
<tr>
<td style="width: 15%;" class="tableStyleLable">
<span>内容:</span>
</td>
<td style="width: 85%">${is_row.CONTENT}</td>
</tr>
<tr>
<td style="width: 15%;" class="tableStyleLable">
<span>发帖人:</span>
</td>
<td style="width: 85%">${is_row.POST_USER_NAME }</td>
</tr>
<tr>
<td style="width: 15%;" class="tableStyleLable">
<span>发帖时间:</span>
</td>
<td style="width: 85%">${is_row.POST_TIME}</td>
</tr>
</table> --%>
<div id="replyDetailTab">
<link rel="stylesheet" type="text/css" href="${ctx}/jwapp/common/css/content_body.css" charset="utf-8"></link>
<link rel="stylesheet" type="text/css" href="${ctx}/jwapp/common/css/content_table.css" charset="utf-8"></link>
<link rel="stylesheet" type="text/css" href="${ctx}/jwapp/common/css/content_input.css" charset="utf-8"></link>
</div>
<table id="list" style="width: 100%;height:75%;"></table>
<form id="inputForm" style="clear:both;">
<div>
<input type="hidden" id="TOPIC_ID" name="FIELD_TOPIC_ID" value="${is_row.UUID}">
<!-- <script id="CONTENT" type="text/plain" style="width:100%;height:150px;float:left;"></script> -->
<textarea name="FIELD_CONTENT" id="CONTENT" style="width:100%;height:100px;"></textarea>
<input type="button" value="回复" onclick="javascript:addRow()">
</div>
</form>
<div id="tb">
<form id="replyDetail_searchForm" style="float:left">
<input type="hidden" name="FIELD_TOPIC_ID" value="${is_row.UUID}">
内容: <input id="FIELD_CONTENT" name="FIELD_CONTENT" type="text" style="width: 200px" class="tableInput-easyui">
</form>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" onclick="javascript:searchRow()">查询</a>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" onclick="javascript:refreshRow()">刷新</a>
<a href="#" id="mb1" class="easyui-menubutton" data-options="menu:'#mm1',iconCls:'icon-ext-29_22'">更多</a>
<div id="mm1" style="width:30px;">
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-clear',plain:true" onclick="javascript:deleteBatchRow()">删除记录</a>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-undo',plain:true" onclick="javascript:resumeBatchRow()">恢复记录</a>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" onclick="javascript:removeBatchRow()">清除记录</a>
</div>
</div>
<script type="text/javascript" src="${ctx}/jwapp/pages/standard/js/jwStandardModule.js" charset="utf-8"></script>
<script type="text/javascript" src="${ctx}/jwapp/pages/forum/topic/js/topicModule.js" charset="utf-8"></script>
<script type="text/javascript" src="${ctx}/jwapp/pages/forum/topic/js/topicDetail.js" charset="utf-8"></script>
\ No newline at end of file
<%@page contentType="text/html; charset=UTF-8"%>
<%@ include file="/gaowj/header-simple-1.0.jsp"%>
<div id="topicTab">
<link rel="stylesheet" type="text/css" href="${ctx}/jwapp/common/css/content_body.css" charset="utf-8"></link>
<link rel="stylesheet" type="text/css" href="${ctx}/jwapp/common/css/content_table.css" charset="utf-8"></link>
<link rel="stylesheet" type="text/css" href="${ctx}/jwapp/common/css/content_input.css" charset="utf-8"></link>
</div>
<table id="list" style="width: 100%; height: 100%;"></table>
<div id="tb">
<form id="topicTab_searchForm" style="float:left">
名称: <input id="FIELD_TITLE" name="FIELD_TITLE" type="text" style="width: 200px" class="tableInput-easyui">
</form>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" onclick="javascript:searchRow()">查询</a>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" onclick="javascript:refreshRow()">刷新</a>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" onclick="javascript:addRow()">新增</a>
<a href="#" id="mb1" class="easyui-menubutton" data-options="menu:'#mm1',iconCls:'icon-ext-29_22'">更多</a>
<div id="mm1" style="width:30px;">
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-clear',plain:true" onclick="javascript:deleteBatchRow()">删除记录</a>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-undo',plain:true" onclick="javascript:resumeBatchRow()">恢复记录</a>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" onclick="javascript:removeBatchRow()">清除记录</a>
</div>
</div>
<div id="detail" style="overflow:auto;"></div>
<div id="replyDetail" style="overflow:auto;"></div>
<script type="text/javascript" src="${ctx}/jwapp/pages/standard/js/jwStandardModule.js" charset="utf-8"></script>
<script type="text/javascript" src="${ctx}/jwapp/pages/forum/classify/js/classifyModule.js" charset="utf-8"></script>
<script type="text/javascript" src="${ctx}/jwapp/pages/forum/topic/js/topicModule.js" charset="utf-8"></script>
<script type="text/javascript" src="${ctx}/jwapp/pages/forum/topic/js/topicTab.js" charset="utf-8"></script>
<%@page contentType="text/html; charset=UTF-8"%>
<form id="inputForm" method="post" style="width: 100%;">
<input type="hidden" name="FIELD_OPETYPE" id="OPETYPE" value="${is_row.OPETYPE}" />
<input type="hidden" name="FIELD_UUID" id="UUID" value="${is_row.UUID}"/>
<table align="center" border="0" cellpadding="0" cellspacing="0" class="tableStyle" style="margin: 10px 15px; width: 95%; line-height: 30px;">
<tr>
<td style="width: 15%;" class="tableStyleLable">
<span>标题:</span>
</td>
<td style="width: 85%">
<input class="easyui-textbox" id="TITLE" name="FIELD_TITLE" data-options="required:true" style="width:500px" value="${is_row.TITLE}"/>
</td>
</tr>
<tr>
<td style="width: 15%;" class="tableStyleLable">
<span>分类:</span>
</td>
<td style="width: 85%">
<input class="easyui-combobox" id="CLASSIFY_ID" name="FIELD_CLASSIFY_ID" data-options="required:true" style="width:200px" value="${is_row.CLASSIFY_ID}"/>
</td>
</tr>
<tr>
<td style="width: 15%;" class="tableStyleLable">
<span>内容:</span>
</td>
<td style="width: 85%">
<script id="CONTENT" type="text/plain" style="width:625px;height:300px;float:left;"></script>
</td>
</tr>
</table>
</form>
\ No newline at end of file
//此乃本模块与后台交互的方法接口部分
var wordModule = function(format) {
this.module = "";
this.action = "";
this.format = format;
};
//定义数据交互
wordModule.prototype = BusinessObject;
//插入数据
wordModule.prototype.insertWord = function(){};
//更新
wordModule.prototype.updateWord = function(){};
//删除数据
wordModule.prototype.deleteWord = function(){};
//刷新敏感词缓存
wordModule.prototype.insertSensitiveWordCache = function(){};
//附件数据_分页
wordModule.prototype.list = function(){};
//附件所有数据
wordModule.prototype.listAll = function(){};
//创建一个数据操作对象,然后再后续使用
wordModule.wordActAction = new wordModule("json").delegate("forumWordAct");
//创建一个数据获取对象,然后再后续使用
wordModule.wordDataAction = new wordModule("json").delegate("forumWordData");
//说明: 1、所有方法里统一传递josn格式的参数,用于后台交互,如data.listTables(param) ,如没有参数则传'{}',如data.listTables({})
// 2、前后台数据获取传输协议 如:json[{'0':{pageCount':'2','pageNo':'1','pageSize':'20','rowSet':'[{0},{1}....]'}}]
// 3、前后台增删改的返回状态 如:json[{'0':{'rowSet':{'NAME':'-1','VALUE':'保存失败'}}}]
/**
* 序号:1
* 功能:定义分页(EasyUI)
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:无需更改
**/
var ls_width = $(window).width();
var ls_height = $(window).height();
var local_page=1;
var rows=20;
var listPageSize = [10,20,50,100,500,1000];
var queryData = eval("({'page':'"+local_page+"','rows':'"+rows+"'})");
var tab_n = 0;
//重置分页参数
function resetQueryData(){
queryData = "";
queryData = eval("({'page':'"+local_page+"','rows':'"+rows+"'})");
}
//定义附件关联模块ID(1:一般业务,2:测试信息,3:审批业务,999:其它数据 )
var ls_module_id='3';
//定义当前模块业务类型(YBYW:一般业务,SPGL:审批业务)
var ls_ywlx = 'YBYW';
//定义当前文件树节点
var ls_node = null;
/****/
/**
* 序号:2
* 功能:构建下拉框内容
* 参数:
* 说明:方便新增、修改页面里的下拉选项加载数据
* 作者:高伟杰
* 时间:2018-07-11
* 单位:宁波金网
* 备注:需更改
**/
//加载是否数据
var v_yesnoquery = {};
v_yesnoquery.FIELD_tableName = "DM_ST_YES_NO";
var v_yesnoquery_data = standardModel.dataAction.listAllCache(v_yesnoquery);
/****/
/**
* 序号:3
* 功能:构建主页面列表
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
//定义grid列表
var ls_title="敏感词管理";
var is_column = [ [
{field : 'WORD',title : '单词',width : 250,align : 'center'},
//{field : 'LEVEL_NUM',title : '敏感等级',width : 150,align : 'center'},
{field : 'STATE_FLAG',title : '数据已失效',width : 80,align : 'center',
formatter : function(value) {
return getCodeName(v_yesnoquery_data.rowSet, value);
}
},
{field : 'CREATE_USER_NAME',title : '创建人员',width : 100,align : 'center'},
{field : 'CREATE_TIME',title : '创建时间',width : 150,align : 'center'},
{field : 'UPDATE_USER_NAME',title : '修改人员',width : 100,align : 'center'},
{field : 'UPDATE_TIME',title : '修改时间',width : 150,align : 'center'}
] ];
//列表加载完成回调
function dataOnLoadSuccess(){
}
//设置颜色和每行高度
function rowstyler(index,row){
if(row.STATE_FLAG!='1'){
return 'height:30px;';
}
else{
return 'color:#c0c0c0;height:30px;';
}
}
//展示列表
datagrid("list",ls_title,gaowj.WEB_APP_NAME + "/forumWordData_list",queryData,is_column,60,80);
/****/
/**
* 序号:4
* 功能:设置主页面操作列菜单
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
//操用列显示更多(一般情况下无需更改)
function formatMenu(value, data,index) {
var returnData="";
return returnData
+ "<span class=\"icon-ext-moremenu\" style=\"padding-left:20px;*width:20px;\"></span>"
+ "<span data-p1="+index+" class=\"easyui-tooltip\" style=\"color:blue;cursor:pointer;\">更多</span>";
}
//上浮横向菜单集里的具体菜单项(需更改)
var is_tc = 0;
function getOptionMenu(data, index) {
var returnData = "";
is_tc = 3;
if (data.STATE_FLAG == '1') {
returnData = "<span class=\"icon-edit\" style=\"padding-left:20px;*width:20px;\"></span><a href=\"javascript:void(0);\" onclick=\"editRow('"
+ index + "')\">编辑</a> | <span class=\"icon-clear\" style=\"padding-left:20px;*width:20px;\"></span><a href=\"javascript:void(0);\" onclick=\"deleteRow('"
+ index + "')\">删除</a> | <span class=\"icon-redo\" style=\"padding-left:20px;*width:20px;\"></span><a href=\"javascript:void(0);\" onclick=\"stateRow('"
+ index + "',0)\">生效</a>";
} else if (data.STATE_FLAG == '0') {
returnData = "<span class=\"icon-edit\" style=\"padding-left:20px;*width:20px;\"></span><a href=\"javascript:void(0);\" onclick=\"editRow('"
+ index + "')\">编辑</a> | <span class=\"icon-clear\" style=\"padding-left:20px;*width:20px;\"></span><a href=\"javascript:void(0);\" onclick=\"deleteRow('"
+ index + "')\">删除</a> | <span class=\"icon-undo\" style=\"padding-left:20px;*width:20px;\"></span><a href=\"javascript:void(0);\" onclick=\"stateRow('"
+ index + "',1)\">失效</a>";
}
return returnData;
}
//返回菜单集的菜单个数(需更改)
function getOptionMenuCount(){
var is_menu_count = is_tc;
return is_menu_count;
}
/****/
/**
* 序号:5
* 功能:新增修改弹出
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
//加载增加子页面
function addRow(){
var is_row={OPETYPE:'insert'};
openEditRow("forumWordView_wordTabDetail",is_row,"新增",true,0.65,0.95,160,0);
}
//加载增加子页面成功后的回调
function addUrlOnloadCallback(is_row) {
$('#STATE_FLAG').combobox({
data : v_yesnoquery_data.rowSet,
valueField : 'CODE_ID',
textField : 'CODE_NAME',
editable:false,
panelHeight:'auto'
});
}
//保存
function insertData(is_entity) {
//处理相关
var v_result = wordModule.wordActAction.insertWord(is_entity);
$('#list').datagrid('reload');
return v_result;
}
//加载修改子页面
function editRow(index) {
$('#list').datagrid('selectRow',index);
var is_row = $('#list').datagrid('getSelections');
$('#list').datagrid('clearSelections');
is_row[0].OPETYPE = 'update';
openEditRow("forumWordView_wordTabDetail",is_row[0],"编辑",true,0.65,0.95,160,0);
}
//加载修改子页面成功后的回调
function updateUrlOnloadCallback(is_row){
$('#STATE_FLAG').combobox({
data : v_yesnoquery_data.rowSet,
valueField : 'CODE_ID',
textField : 'CODE_NAME',
editable:false,
panelHeight:'auto'
});
}
//保存
function updateData(is_entity) {
v_result = wordModule.wordActAction.updateWord(is_entity);
$('#list').datagrid('reload');
return v_result;
}
/****/
/**
* 序号:6
* 功能:单个删除
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
function deleteRow(index){
$('#list').datagrid('selectRow',index);
var is_row = $('#list').datagrid('getSelections');
$('#list').datagrid('clearSelections');
var code = is_row[0].UUID;
$.messager.confirm('提示', '确定删除?', function(r) {
if (r) {
var v_query = {};
v_query.FIELD_CODE = code;
var v_result = wordModule.wordActAction.deleteWord(v_query);
$.messager.alert('提示',v_result.VALUE);
$('#list').datagrid('reload');
}
});
}
/****/
/**
* 序号:7
* 功能:批量删除
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
function deleteBatchRow(){
var code="";
var rows = $('#list').datagrid('getSelections');
for(var i=0; i<rows.length; i++){
code = code + rows[i].UUID+",";
}
if(rows == null || rows == ""){
$.messager.alert('提示',"请选择需删除的记录!",'info');
return;
}
if(code.length>0){
code = code.substring(0,code.length - 1);
}
$.messager.confirm('提示', '确定删除?', function(r) {
if (r) {
var v_query = {};
v_query.FIELD_CODE = code;
var v_result = wordModule.wordActAction.deleteWord(v_query);
$.messager.alert('提示',v_result.VALUE);
$('#list').datagrid('reload');
}
});
}
/****/
/**
* 序号:8
* 功能:刷新
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
function refreshRow(){
$('#list').datagrid('load',{});
$("#wordTab_searchForm")[0].reset();
}
/****/
/**
* 序号:9
* 功能:查询
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
function searchRow(){
var v_query = $("#wordTab_searchForm").getFormVal();
$('#list').datagrid('load',v_query);
renderDATAFORM(v_query,$("#wordTab_searchForm"));
}
/****/
/**
* 序号:10
* 功能:更新状态
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
function stateRow(index, flag) {
$('#list').datagrid('selectRow', index);
var is_row = $('#list').datagrid('getSelections');
$('#list').datagrid('clearSelections');
//更新置顶状态
var v_wordupdate = {};
v_wordupdate.FIELD_UUID = is_row[0].UUID;
v_wordupdate.FIELD_STATE_FLAG = flag;
var v_result = wordModule.wordActAction.updateWord(v_wordupdate);
//处理相关
$.messager.alert('提示',v_result.VALUE);
$('#list').datagrid('reload');
}
//刷新缓存
function refreshCache(){
var v_result = wordModule.wordActAction.insertSensitiveWordCache();
if (v_result != null && v_result != undefined) {
$.messager.alert('提示', v_result.VALUE);
}
}
/****/
<%@page contentType="text/html; charset=UTF-8"%>
<%@ include file="/gaowj/header-simple-1.0.jsp"%>
<div id="wordTab">
<link rel="stylesheet" type="text/css" href="${ctx}/jwapp/common/css/content_body.css" charset="utf-8"></link>
<link rel="stylesheet" type="text/css" href="${ctx}/jwapp/common/css/content_table.css" charset="utf-8"></link>
<link rel="stylesheet" type="text/css" href="${ctx}/jwapp/common/css/content_input.css" charset="utf-8"></link>
</div>
<table id="list" style="width: 100%; height: 100%;"></table>
<div id="tb">
<form id="wordTab_searchForm" style="float:left">
名称: <input id="FIELD_WORD" name="FIELD_WORD" type="text" style="width: 200px" class="tableInput-easyui">
</form>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" onclick="javascript:searchRow()">查询</a>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" onclick="javascript:refreshRow()">刷新</a>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" onclick="javascript:addRow()">新增</a>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-clear',plain:true" onclick="javascript:deleteBatchRow()">删除</a>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" onclick="javascript:refreshCache()">刷新缓存</a>
</div>
<div id="detail" style="overflow:auto;"></div>
<script type="text/javascript" src="${ctx}/jwapp/pages/standard/js/jwStandardModule.js" charset="utf-8"></script>
<script type="text/javascript" src="${ctx}/jwapp/pages/forum/word/js/wordModule.js" charset="utf-8"></script>
<script type="text/javascript" src="${ctx}/jwapp/pages/forum/word/js/wordTab.js" charset="utf-8"></script>
<%@page contentType="text/html; charset=UTF-8"%>
<form id="inputForm" method="post" style="width: 100%;">
<input type="hidden" name="FIELD_OPETYPE" id="OPETYPE" value="${is_row.OPETYPE}" />
<input type="hidden" name="FIELD_UUID" id="UUID" value="${is_row.UUID}"/>
<table align="center" border="0" cellpadding="0" cellspacing="0" class="tableStyle" style="margin: 10px 15px; width: 95%; line-height: 30px;">
<tr>
<td style="width: 15%;" class="tableStyleLable">
<span>单词:</span>
</td>
<td style="width: 85%">
<input class="easyui-textbox" id="WORD" name="FIELD_WORD" style="width:500px" value="${is_row.WORD}"/>
</td>
</tr>
<tr>
<td style="width: 15%;" class="tableStyleLable">
<span>是否失效:</span>
</td>
<td style="width: 85%">
<input class="easyui-combobox" style="width:130px;" id="STATE_FLAG" name="FIELD_STATE_FLAG" value="${is_row.STATE_FLAG}" />
</td>
</tr>
</table>
</form>
\ No newline at end of file
<%@page contentType="text/html; charset=UTF-8"%>
<%@ include file="/gaowj/header-simple-1.0.jsp"%>
<div id="studentTab">
<link rel="stylesheet" type="text/css" href="${ctx}/jwapp/common/css/content_body.css" charset="utf-8"></link>
<link rel="stylesheet" type="text/css" href="${ctx}/jwapp/common/css/content_table.css" charset="utf-8"></link>
<link rel="stylesheet" type="text/css" href="${ctx}/jwapp/common/css/content_input.css" charset="utf-8"></link>
</div>
<table id="list" style="width: 100%; height: 100%;"></table>
<div id="tb">
<form id="friendlinkTab_searchForm" style="float:left">
标题: <input class="easyui-textbox" id="FIELD_TITLE" name="FIELD_TITLE" style="width:200px"/>&nbsp;&nbsp;
</form>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" onclick="javascript:searchRow()">查询</a>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" onclick="javascript:refreshRow()">刷新</a>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" onclick="javascript:addRow()">新增</a>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-clear',plain:true" onclick="javascript:deleteBatchRow()">删除</a>
</div>
<div id="detail" style="overflow:auto;"></div>
<script type="text/javascript" src="/jfV5portal/lib/plug/jqueryColour/spectrum.js"></script>
<script type="text/javascript" src="${ctx}/jwapp/pages/standard/js/jwStandardModule.js" charset="utf-8"></script>
<script type="text/javascript" src="${ctx}/jwapp/pages/friendlink/js/friendlinkModule.js" charset="utf-8"></script>
<script type="text/javascript" src="${ctx}/jwapp/pages/friendlink/js/friendlinkTab.js" charset="utf-8"></script>
<%@page contentType="text/html; charset=UTF-8"%>
<form id="inputForm" method="post" style="width: 100%;">
<input type="hidden" name="FIELD_OPETYPE" id="OPETYPE" value="${is_row.OPETYPE}" />
<input type="hidden" name="FIELD_UUID" id="UUID" value="${is_row.UUID}" />
<input type="hidden" name="FIELD_USER_ID" id="USER_ID" value="${is_row.USER_ID}" />
<table align="center" border="0" cellpadding="0" cellspacing="0" class="tableStyle" style="margin: 10px 15px; width: 95%; line-height: 30px;">
<tr>
<td style="width: 15%;" class="tableStyleLable"><span>标题:</span>
</td>
<td style="width: 85%">
<input class="easyui-textbox" data-options="required:true" id="TITLE" name="FIELD_TITLE" style="width:300px" />
</td>
</tr>
<tr>
<td style="width: 15%;" class="tableStyleLable"><span>链接:</span>
</td>
<td style="width: 85%">
<input class="easyui-textbox" data-options="required:true" id="URL" name="FIELD_URL" style="width:300px" />
</td>
</tr>
<tr>
<td style="width: 15%;" class="tableStyleLable"><span>排序:</span>
</td>
<td style="width: 85%">
<input class="easyui-numberspinner" data-options="min:0,max:8 ,required:true" id="SORT" name="FIELD_SORT" style="width:150px" />
</td>
</tr>
</table>
</form>
\ No newline at end of file
//此乃本模块与后台交互的方法接口部分
var friendlinkModule = function(format) {
this.module = "";
this.action = "";
this.format = format;
};
//定义数据交互
friendlinkModule.prototype = BusinessObject;
//获取当前登录人的友情链接信息
friendlinkModule.prototype.listFriendLinkInfo = function(){};
//保存当前登录人的友情链接信息
friendlinkModule.prototype.saveFriendLinkInfo = function(){};
//删除当前登录人的友情链接信息
friendlinkModule.prototype.removeFriendLinkInfo = function(){};
//创建一个数据操作对象,然后再后续使用
friendlinkModule.act = new friendlinkModule("json").delegate("friendlinkAct");
//创建一个数据获取对象,然后再后续使用
friendlinkModule.data = new friendlinkModule("json").delegate("friendlinkData");
//说明: 1、所有方法里统一传递josn格式的参数,用于后台交互,如data.listTables(param) ,如没有参数则传'{}',如data.listTables({})
// 2、前后台数据获取传输协议 如:json[{'0':{pageCount':'2','pageNo':'1','pageSize':'20','rowSet':'[{0},{1}....]'}}]
// 3、前后台增删改的返回状态 如:json[{'0':{'rowSet':{'NAME':'-1','VALUE':'保存失败'}}}]
/**
* 序号:1
* 功能:定义分页(EasyUI)
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:无需更改
**/
var ls_width = $(window).width();
var ls_height = $(window).height();
var local_page=1;
var rows=20;
var listPageSize = [10,20,50,100,500,1000];
var queryData = eval("({'page':'"+local_page+"','rows':'"+rows+"'})");
var tab_n = 0;
//重置分页参数
function resetQueryData(){
queryData = "";
queryData = eval("({'page':'"+local_page+"','rows':'"+rows+"'})");
}
//定义附件关联模块ID(1:一般业务,2:测试信息,3:审批业务,999:其它数据 )
var ls_module_id='2';
//定义当前模块业务类型(YBYW:一般业务,SPGL:审批业务)
var ls_ywlx = 'YBYW';
/****/
/****/
/**
* 序号:2
* 功能:构建主页面列表
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
//定义grid列表
var ls_title="快速链接";
var is_column = [ [
{field : 'TITLE',title : '标题',width : 300,align : 'left', halign:'center'},
{field : 'URL',title : '链接',width : 300,align : 'left', halign:'center'},
{field : 'SORT',title : '排序',width : 80,align : 'center'},
{field : 'CREATE_USER_NAME',title : '创建人员',width : 100,align : 'center'},
{field : 'CREATE_TIME',title : '创建时间',width : 100,align : 'center'}
] ];
//列表加载完成回调
function dataOnLoadSuccess(){
}
//设置颜色和每行高度
function rowstyler(index,row){
}
//展示列表
datagrid("list",ls_title,gaowj.WEB_APP_NAME + "/friendlinkData_listFriendLinkInfo",queryData,is_column,60,80);
/****/
/**
* 序号:3
* 功能:设置主页面操作列菜单
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
//操用列显示更多(一般情况下无需更改)
function formatMenu(value, data,index) {
var returnData="";
return returnData
+ "<span class=\"icon-ext-moremenu\" style=\"padding-left:20px;*width:20px;\"></span>"
+ "<span data-p1="+index+" class=\"easyui-tooltip\" style=\"color:blue;cursor:pointer;\">更多</span>";
}
//上浮横向菜单集里的具体菜单项(需更改)
function getOptionMenu(data,index){
var returnData= "<span class=\"icon-edit\" style=\"padding-left:20px;*width:20px;\"></span><a href=\"javascript:void(0);\" onclick=\"editRow('"
+ index + "')\">编辑</a> | <span class=\"icon-clear\" style=\"padding-left:20px;*width:20px;\"></span><a href=\"javascript:void(0);\" onclick=\"deleteRow('"
+ index + "')\">删除</a>";
return returnData;
}
//返回菜单集的菜单个数(需更改)
function getOptionMenuCount(){
var is_menu_count = 2;
return is_menu_count;
}
/****/
/**
* 序号:4
* 功能:新增修改弹出
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
//加载增加子页面
function addRow(){
var is_row={OPETYPE:'insert'};
openEditRow("friendlinkView_friendlinkTabDetail",is_row,"新增",true,0.65,0.95,0,0);
}
//加载增加子页面成功后的回调
function addUrlOnloadCallback(is_row){
}
//保存
function insertData(is_entity){
var v_result = friendlinkModule.act.saveFriendLinkInfo(is_entity);
$('#list').datagrid('reload');
return v_result;
}
//加载修改子页面
function editRow(index) {
$('#list').datagrid('selectRow',index);
var is_row = $('#list').datagrid('getSelections');
$('#list').datagrid('clearSelections');
is_row[0].OPETYPE = 'update';
openEditRow("friendlinkView_friendlinkTabDetail",is_row[0],"编辑",true,0.65,0.95,0,0);
}
//加载修改子页面成功后的回调
function updateUrlOnloadCallback(is_row){
$("#inputForm").form('load',get_FIELD(is_row));
}
//保存
function updateData(is_entity){
var v_result = friendlinkModule.act.saveFriendLinkInfo(is_entity);
$('#list').datagrid('reload');
return v_result;
}
/****/
/**
* 序号:6
* 功能:单个删除
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
function deleteRow(index){
$('#list').datagrid('selectRow',index);
var is_row = $('#list').datagrid('getSelections');
$('#list').datagrid('clearSelections');
var code = is_row[0].UUID;
$.messager.confirm('提示', '确定删除?', function(r) {
if (r) {
var v_query = {};
v_query.FIELD_CODE = code;
var v_result = friendlinkModule.act.removeFriendLinkInfo(v_query);
$.messager.alert('提示',v_result.VALUE);
$('#list').datagrid('reload');
}
});
}
/****/
/**
* 序号:7
* 功能:批量删除
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
function deleteBatchRow(){
var code="";
var rows = $('#list').datagrid('getSelections');
for(var i=0; i<rows.length; i++){
code = code + rows[i].UUID+",";
}
if(rows == null || rows == ""){
$.messager.alert('提示',"请选择需删除的记录!",'info');
return;
}
if(code.length>0){
code = code.substring(0,code.length - 1);
}
$.messager.confirm('提示', '确定删除?', function(r) {
if (r) {
var v_query = {};
v_query.FIELD_CODE = code;
var v_result = friendlinkModule.act.removeFriendLinkInfo(v_query);
$.messager.alert('提示',v_result.VALUE);
$('#list').datagrid('reload');
}
});
}
/****/
/**
* 序号:8
* 功能:刷新
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
function refreshRow(){
$('#list').datagrid('load',{});
$("#friendlinkTab_searchForm")[0].reset();
}
/****/
/**
* 序号:9
* 功能:查询
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
function searchRow(){
var v_query = $("#friendlinkTab_searchForm").getFormVal();
$('#list').datagrid('load',v_query);
}
//此乃本模块与后台交互的方法接口部分
var logModule = function(format) {
this.module = "";
this.action = "";
this.format = format;
};
//定义数据交互
logModule.prototype = BusinessObject;
//插入日志数据
logModule.prototype.insertLog = function(){};
//修改日志数据
logModule.prototype.updateLog = function(){};
//删除日志数据
logModule.prototype.deleteLog = function(){};
//插入回复数据
logModule.prototype.insertReply = function(){};
//删除回复数据
logModule.prototype.deleteReply = function(){};
//日志数据_分页
logModule.prototype.list = function(){};
//日志所有数据
logModule.prototype.listAll = function(){};
//获取回复内容
logModule.prototype.listReply = function(){};
//获取回复内容
logModule.prototype.listReplyAll = function(){};
//获取回复内容
logModule.prototype.findPreviousLog = function(){};
//获取回复内容
logModule.prototype.findNextLog = function(){};
//创建一个数据操作对象,然后再后续使用
logModule.logActAction = new logModule("json").delegate("logAct");
//创建一个数据获取对象,然后再后续使用
logModule.logDataAction = new logModule("json").delegate("logData");
//说明: 1、所有方法里统一传递josn格式的参数,用于后台交互,如data.listTables(param) ,如没有参数则传'{}',如data.listTables({})
// 2、前后台数据获取传输协议 如:json[{'0':{pageCount':'2','pageNo':'1','pageSize':'20','rowSet':'[{0},{1}....]'}}]
// 3、前后台增删改的返回状态 如:json[{'0':{'rowSet':{'NAME':'-1','VALUE':'保存失败'}}}]
/**
* 序号:
* 功能:定义分页(EasyUI)
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:无需更改
**/
var ls_width = $(window).width();
var ls_height = $(window).height();
var local_page=1;
var rows=20;
var listPageSize = [10,20,50,100,500,1000];
var queryData = eval("({'page':'"+local_page+"','rows':'"+rows+"'})");
var tab_n = 0;
//重置分页参数
function resetQueryData(){
queryData = "";
queryData = eval("({'page':'"+local_page+"','rows':'"+rows+"'})");
}
//定义附件关联模块ID(1:一般业务,2:测试信息,3:审批业务,999:其它数据 )
var ls_module_id='2';
//定义当前模块业务类型(YBYW:一般业务,SPGL:审批业务)
var ls_ywlx = 'YBYW';
/****/
/**
* 序号:
* 功能:构建主页面列表
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:杰夫兄弟智慧科技有限公司
* 备注:需更改
**/
//定义grid列表
var ls_title="日志管理";
var is_column = [ [
{field : 'LOG_TITLE',title : '日志标题',width : 500,align : 'center'},
{field : 'NEW_CREATE',title : '创建人',width : 100,align : 'center'},
{field : 'CREATE_TIME',title : '创建时间',width : 150,align : 'center'},
{field : 'NEW_UPDATE',title : '修改人',width : 100,align : 'center'},
{field : 'UPDATE_TIME',title : '修改时间',width : 150,align : 'center'}
] ];
//列表加载完成回调
function dataOnLoadSuccess(){
}
//设置颜色和每行高度
function rowstyler(index,row){
}
//展示列表
datagrid("list",ls_title,gaowj.WEB_APP_NAME + "/logData_list",queryData,is_column,60,80);
/****/
/**
* 序号:
* 功能:设置主页面操作列菜单
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:杰夫兄弟智慧科技有限公司
* 备注:需更改
**/
//操用列显示更多(一般情况下无需更改)
function formatMenu(value, data,index) {
var returnData="";
return returnData
+ "<span class=\"icon-ext-moremenu\" style=\"padding-left:20px;*width:20px;\"></span>"
+ "<span data-p1="+index+" class=\"easyui-tooltip\" style=\"color:blue;cursor:pointer;\">更多</span>";
}
//上浮横向菜单集里的具体菜单项(需更改)
function getOptionMenu(data,index){
var returnData= "<span class=\"icon-edit\" style=\"padding-left:20px;*width:20px;\"></span> <a href=\"javascript:void(0);\" onclick=\"editRow('"
+ index + "')\">编辑</a> | <span class=\"icon-clear\" style=\"padding-left:20px;*width:20px;\"></span><a href=\"javascript:void(0);\" onclick=\"deleteRow('"
+ index + "')\">删除</a> | <span class=\"icon-preview\" style=\"padding-left:20px;*width:20px;\"></span><a href=\"javascript:void(0);\" onclick=\"viewRow('"
+ index + "')\">查看</a>";
return returnData;
}
//返回菜单集的菜单个数(需更改)
function getOptionMenuCount(){
var is_menu_count = 3;
return is_menu_count;
}
/****/
/**
* 序号:
* 功能:新增修改弹出
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:杰夫兄弟智慧科技有限公司
* 备注:需更改
**/
//加载增加子页面
function addRow(){
var is_row={OPETYPE:'insert'};
openEditRow("logView_logTabDetail",is_row,"新增",true,0.65,0.95,0,0);
}
//加载增加子页面成功后的回调
function addUrlOnloadCallback(is_row) {
//初始化编辑器
UE.delEditor('LOG_CONTENT');
var ue = UE.getEditor('LOG_CONTENT', {});
ue.ready(function() {
//设置编辑器的内容
ue.setContent("");
});
}
//保存
function insertData(is_entity){
var ue = UE.getEditor('LOG_CONTENT');
is_entity.FIELD_LOG_CONTENT = ue.getContent();
//处理相关
var v_result = logModule.logActAction.insertLog(is_entity);
$('#list').datagrid('reload');
return v_result;
}
//加载修改子页面
function editRow(index) {
$('#list').datagrid('selectRow',index);
var is_row = $('#list').datagrid('getSelections');
$('#list').datagrid('clearSelections');
is_row[0].OPETYPE = 'update';
openEditRow("logView_logTabDetail",is_row[0],"编辑",true,0.65,0.95,0,0);
}
//加载修改子页面成功后的回调
function updateUrlOnloadCallback(is_row) {
//初始化编辑器
if (is_row.LOG_CONTENT == null || is_row.LOG_CONTENT == '' || is_row.LOG_CONTENT == undefined)
is_row.LOG_CONTENT = '';
UE.delEditor('LOG_CONTENT');
var ue = UE.getEditor('LOG_CONTENT', {});
ue.ready(function() {
//设置编辑器的内容
ue.setContent(is_row.LOG_CONTENT);
});
}
//保存
function updateData(is_entity){
var ue = UE.getEditor('LOG_CONTENT');
is_entity.FIELD_LOG_CONTENT = ue.getContent();
//处理相关
var v_result = logModule.logActAction.updateLog(is_entity);
$('#list').datagrid('reload');
return v_result;
}
/**
* 序号:
* 功能:回复
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:杰夫兄弟智慧科技有限公司
* 备注:需更改
**/
function viewRow(index) {
$('#list').datagrid('selectRow',index);
var is_row = $('#list').datagrid('getSelections');
$('#list').datagrid('clearSelections');
//加载日志回复页面
openViewIframRow1("replyDetail","logView_replyTab?FIELD_UUID="+is_row[0].UUID,is_row[0],"查看",true,0.65,0.95,160,0);
}
//openViewIframRow1关闭后的回调
function closeCallback1(is_entity) {
}
/**
* 序号:
* 功能:单个删除
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:杰夫兄弟智慧科技有限公司
* 备注:需更改
**/
function deleteRow(index){
$('#list').datagrid('selectRow',index);
var is_row = $('#list').datagrid('getSelections');
$('#list').datagrid('clearSelections');
var code = is_row[0].UUID;
$.messager.confirm('提示', '确定删除?', function(r) {
if (r) {
var v_query = {};
v_query.FIELD_CODE = code;
var v_result = logModule.logActAction.deleteLog(v_query);
$.messager.alert('提示',v_result.VALUE);
$('#list').datagrid('reload');
}
});
}
/****/
/**
* 序号:
* 功能:批量删除
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:杰夫兄弟智慧科技有限公司
* 备注:需更改
**/
function deleteBatchRow(){
var code="";
var rows = $('#list').datagrid('getSelections');
for(var i=0; i<rows.length; i++){
code = code + rows[i].UUID+",";
}
if(rows == null || rows == ""){
$.messager.alert('提示',"请选择需删除的记录!",'info');
return;
}
if(code.length>0){
code = code.substring(0,code.length - 1);
}
$.messager.confirm('提示', '确定删除?', function(r) {
if (r) {
var v_query = {};
v_query.FIELD_CODE = code;
var v_result = logModule.logActAction.deleteLog(v_query);
$.messager.alert('提示',v_result.VALUE);
$('#list').datagrid('reload');
}
});
}
/****/
/**
* 序号:
* 功能:刷新
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:杰夫兄弟智慧科技有限公司
* 备注:需更改
**/
function refreshRow(){
$('#list').datagrid('load',{});
$("#logTab_searchForm")[0].reset();
}
/****/
/**
* 序号:
* 功能:查询
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:杰夫兄弟智慧科技有限公司
* 备注:需更改
**/
function searchRow(){
var v_query = $("#logTab_searchForm").getFormVal();
$('#list').datagrid('load',v_query);
}
/****/
\ No newline at end of file
/**
* 序号:
* 功能:定义分页(EasyUI)
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:无需更改
**/
var ls_width = $(window).width();
var ls_height = $(window).height();
var local_page=1;
var rows=20;
var listPageSize = [10,20,50,100,500,1000];
var queryData = eval("({'page':'"+local_page+"','rows':'"+rows+"'})");
var tab_n = 0;
//重置分页参数
function resetQueryData(){
queryData = "";
queryData = eval("({'page':'"+local_page+"','rows':'"+rows+"'})");
}
//定义附件关联模块ID(1:一般业务,2:测试信息,3:审批业务,999:其它数据 )
var ls_module_id='1';
//定义当前模块业务类型(YBYW:一般业务,SPGL:审批业务)
var ls_ywlx = 'YBYW';
/****/
/**
* 序号:
* 功能:构建主页面列表
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:杰夫兄弟智慧科技有限公司
* 备注:需更改
**/
//定义grid列表
var ls_title="回复管理";
var is_column = [ [
{field : 'REPLY_CONTENT',title : '内容',width : 350,align : 'center'},
{field : 'REPLY_USER_NAME',title : '回复人',width : 100,align : 'center'},
{field : 'REPLY_TIME',title : '回复时间',width : 150,align : 'center'},
] ];
//列表加载完成回调
function dataOnLoadSuccess(){
}
//设置颜色和每行高度
function rowstyler(index,row){
}
//展示列表
queryData.FIELD_LOG_ID = $("#LOG_ID").val();
datagrid("list",ls_title,gaowj.WEB_APP_NAME + "/logData_listReply",queryData,is_column,60,80);
/****/
/**
* 序号:4
* 功能:设置主页面操作列菜单
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
//操用列显示更多(一般情况下无需更改)
function formatMenu(value, data,index) {
var returnData="";
return returnData
+ "<span class=\"icon-ext-moremenu\" style=\"padding-left:20px;*width:20px;\"></span>"
+ "<span data-p1="+index+" class=\"easyui-tooltip\" style=\"color:blue;cursor:pointer;\">更多</span>";
}
//上浮横向菜单集里的具体菜单项(需更改)
var is_tc = 0;
function getOptionMenu(data,index){
var returnData = "";
is_tc = 1;
returnData= "<span class=\"icon-clear\" style=\"padding-left:20px;*width:20px;\"></span><a href=\"javascript:void(0);\" onclick=\"deleteRow('"
+ index + "')\">删除</a>";
return returnData;
}
//返回菜单集的菜单个数(需更改)
function getOptionMenuCount(){
var is_menu_count = is_tc;
return is_menu_count;
}
/****/
/**
* 序号:5
* 功能:新增
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
//保存
function addRow(){
var is_entity = $("#inputForm").getFormVal();
//处理相关
var v_result = logModule.logActAction.insertReply(is_entity);
if (v_result != null && v_result != undefined) {
$.messager.alert('提示', v_result.VALUE);
}
$('#list').datagrid('reload');
$('#REPLY_CONTENT').val('');
//return v_result;
}
/**
* 序号:
* 功能:刷新
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:杰夫兄弟智慧科技有限公司
* 备注:需更改
**/
function refreshRow(){
$('#list').datagrid('load',{});
$("#logReply_searchForm")[0].reset();
}
/****/
/**
* 序号:
* 功能:查询
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:杰夫兄弟智慧科技有限公司
* 备注:需更改
**/
function searchRow(){
var v_query = $("#logReply_searchForm").getFormVal();
$('#list').datagrid('load',v_query);
renderDATAFORM(v_query,$("#logReply_searchForm"));
}
/****/
/**
* 序号:6
* 功能:单个删除
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
function deleteRow(index){
$('#list').datagrid('selectRow',index);
var is_row = $('#list').datagrid('getSelections');
$('#list').datagrid('clearSelections');
var code = is_row[0].UUID;
$.messager.confirm('提示', '确定删除?', function(r) {
if (r) {
var v_query = {};
v_query.FIELD_CODE = code;
var v_result = logModule.logActAction.deleteReply(v_query);
$.messager.alert('提示',v_result.VALUE);
$('#list').datagrid('reload');
}
});
}
/****/
/**
* 序号:7
* 功能:批量删除
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
function deleteBatchRow(){
var code="";
var rows = $('#list').datagrid('getSelections');
for(var i=0; i<rows.length; i++){
code = code + rows[i].UUID+",";
}
if(rows == null || rows == ""){
$.messager.alert('提示',"请选择需删除的记录!",'info');
return;
}
if(code.length>0){
code = code.substring(0,code.length - 1);
}
$.messager.confirm('提示', '确定删除?', function(r) {
if (r) {
var v_query = {};
v_query.FIELD_CODE = code;
var v_result = logModule.logActAction.deleteReply(v_query);
$.messager.alert('提示',v_result.VALUE);
$('#list').datagrid('reload');
}
});
}
/****/
<%@page contentType="text/html; charset=UTF-8"%>
<%@ include file="/gaowj/header-simple-1.0.jsp"%>
<div id="logTab">
<link rel="stylesheet" type="text/css" href="${ctx}/jwapp/common/css/content_body.css" charset="utf-8"></link>
<link rel="stylesheet" type="text/css" href="${ctx}/jwapp/common/css/content_table.css" charset="utf-8"></link>
<link rel="stylesheet" type="text/css" href="${ctx}/jwapp/common/css/content_input.css" charset="utf-8"></link>
</div>
<table id="list" style="width: 100%; height: 100%;"></table>
<div id="tb">
<form id="logTab_searchForm" style="float:left">
日志标题: <input class="easyui-textbox" id="FIELD_LOG_TITLE" name="FIELD_LOG_TITLE" style="width:200px"/>&nbsp;&nbsp;
</form>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" onclick="javascript:searchRow()">查询</a>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" onclick="javascript:refreshRow()">刷新</a>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" onclick="javascript:addRow()">添加</a>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-clear',plain:true" onclick="javascript:deleteBatchRow()">删除</a>
</div>
<div id="detail" style="overflow:auto;"></div>
<div id="replyDetail" style="overflow:auto;"></div>
<script type="text/javascript" src="${ctx}/jwapp/pages/standard/js/jwStandardModule.js" charset="utf-8"></script>
<script type="text/javascript" src="${ctx}/jwapp/pages/log/js/logModule.js" charset="utf-8"></script>
<script type="text/javascript" src="${ctx}/jwapp/pages/log/js/logTab.js" charset="utf-8"></script>
<%@page contentType="text/html; charset=UTF-8"%>
<form id="inputForm" method="post" style="width: 100%;">
<input type="hidden" name="FIELD_OPETYPE" id="OPETYPE" value="${is_row.OPETYPE}" />
<input type="hidden" name="FIELD_UUID" id="UUID" value="${is_row.UUID}" />
<table align="center" border="0" cellpadding="0" cellspacing="0" class="tableStyle" style="margin: 10px 15px; width: 95%; line-height: 30px;">
<tr>
<td style="width: 15%;" class="tableStyleLable">
<span>日志标题:</span>
</td>
<td style="width: 85%">
<input class="easyui-textbox" id="LOG_TITLE" name="FIELD_LOG_TITLE" style="width:600px" required=true value="${is_row.LOG_TITLE}" />
</td>
</tr>
<tr>
<td class="tableStyleLable" valign="top" style="height:210px">
<span>日志内容:</span>
</td>
<td style="width: 85%">
<script id="LOG_CONTENT" type="text/plain" style="width:625px;height:300px;float:left;"></script>
</td>
</tr>
</table>
</form>
<%@page contentType="text/html; charset=UTF-8"%>
<%@ include file="/gaowj/header-simple-1.0.jsp"%>
<div style="overflow:auto;height:100%;">
<div id="logReplyTab">
<link rel="stylesheet" type="text/css" href="${ctx}/jwapp/common/css/content_body.css" charset="utf-8"></link>
<link rel="stylesheet" type="text/css" href="${ctx}/jwapp/common/css/content_table.css" charset="utf-8"></link>
<link rel="stylesheet" type="text/css" href="${ctx}/jwapp/common/css/content_input.css" charset="utf-8"></link>
</div>
<table id="list" style="width: 100%;height:75%;"></table>
<form id="inputForm" style="clear:both;">
<div>
<input type="hidden" id="LOG_ID" name="FIELD_LOG_ID" value="${is_row.UUID}">
<textarea name="FIELD_REPLY_CONTENT" id="REPLY_CONTENT" style="width:100%;height:100px;"></textarea>
<input type="button" value="回复" onclick="javascript:addRow()">
</div>
</form>
<div id="tb">
<form id="logReply_searchForm" style="float:left">
<input type="hidden" name="FIELD_LOG_ID" value="${is_row.UUID}">
内容: <input id="FIELD_REPLY_CONTENT" name="FIELD_REPLY_CONTENT" type="text" style="width: 200px" class="tableInput-easyui">
</form>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" onclick="javascript:searchRow()">查询</a>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" onclick="javascript:refreshRow()">刷新</a>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-clear',plain:true" onclick="javascript:deleteBatchRow()">删除记录</a>
</div>
<script type="text/javascript" src="${ctx}/jwapp/pages/standard/js/jwStandardModule.js" charset="utf-8"></script>
<script type="text/javascript" src="${ctx}/jwapp/pages/log/js/logModule.js" charset="utf-8"></script>
<script type="text/javascript" src="${ctx}/jwapp/pages/log/js/replyTab.js" charset="utf-8"></script>
\ No newline at end of file
<%@page contentType="text/html; charset=UTF-8"%>
<%@ include file="/gaowj/header-simple-1.0.jsp"%>
<div id="check_inTab">
<link rel="stylesheet" type="text/css" href="${ctx}/jwapp/common/css/content_body.css" charset="utf-8"></link>
<link rel="stylesheet" type="text/css" href="${ctx}/jwapp/common/css/content_table.css" charset="utf-8"></link>
<link rel="stylesheet" type="text/css" href="${ctx}/jwapp/common/css/content_input.css" charset="utf-8"></link>
</div>
<table id="list" style="width: 100%; height: 100%;"></table>
<div id="tb">
<form id="check_inTab_searchForm" style="float:left">
会议名称: <input class="easyui-textbox" id="FIELD_MEETING_NAME" name="FIELD_MEETING_NAME" style="width:200px"/>&nbsp;&nbsp;
</form>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" onclick="javascript:searchRow()">查询</a>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" onclick="javascript:refreshRow()">刷新</a>
</div>
<div id="detail" style="overflow:auto;"></div>
<script type="text/javascript" src="${ctx}/jwapp/pages/standard/js/jwStandardModule.js" charset="utf-8"></script>
<script type="text/javascript" src="${ctx}/jwapp/pages/meeting/js/meetingModule.js" charset="utf-8"></script>
<script type="text/javascript" src="${ctx}/jwapp/pages/meeting/js/check_inTab.js" charset="utf-8"></script>
<%@page contentType="text/html; charset=UTF-8"%>
<form id="inputForm" method="post" style="width: 100%;">
<input type="hidden" name="FIELD_UUID" id="UUID" value="${is_row.UUID}"/>
</form>
<table class="easyui-datagrid" id="check_in_list">
<thead>
<tr>
<th data-options="field:'REAL_NAME',width : 150" >用户名</th>
<th data-options="field:'NAME',width : 150">单位名称</th>
<th data-options="field:'TELEPHONE',width : 150">联系方式</th>
<th data-options="field:'CREATE_TIME',width : 150">签到时间</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
/**
* 序号:
* 功能:定义分页(EasyUI)
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:无需更改
**/
var ls_width = $(window).width();
var ls_height = $(window).height();
var local_page=1;
var rows=20;
var listPageSize = [10,20,50,100,500,1000];
var queryData = eval("({'page':'"+local_page+"','rows':'"+rows+"'})");
var tab_n = 0;
//重置分页参数
function resetQueryData(){
queryData = "";
queryData = eval("({'page':'"+local_page+"','rows':'"+rows+"'})");
}
//定义附件关联模块ID(1:一般业务,2:测试信息,3:审批业务,999:其它数据 )
var ls_module_id='2';
//定义当前模块业务类型(YBYW:一般业务,SPGL:审批业务)
var ls_ywlx = 'YBYW';
/****/
/**
* 序号:
* 功能:构建主页面列表
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:杰夫兄弟智慧科技有限公司
* 备注:需更改
**/
//定义grid列表
var ls_title="会议签到管理";
var is_column = [ [
{field : 'MEETING_NAME',title : '会议名称',width : 100,align : 'center'},
{field : 'MEETING_CONTENT',title : '会议内容',width : 300,align : 'center'},
{field : 'VENUE',title : '会议地址',width : 300,align : 'center'},
{field :'opt',title : '操作',width : 150,align : 'center',
formatter:function(value,row,index){
var voteBtn='<a style="cursor:pointer" onclick="javascript:check_inRow('+index+')">签到</a>'
var votedBtn='<a style="cursor:pointer">已签到</a>'
return '<div class=\'optBtns\'>'+(row.MEETING_COUNT>0?votedBtn:voteBtn)+'</div>';
}
}
] ];
//列表加载完成回调
function reportrollback(){
}
//设置颜色和每行高度
function rowstyler(index,row){
}
//展示列表
reportgrid("list",ls_title,gaowj.WEB_APP_NAME + "/meetingData_list",queryData,is_column,60,80);
/**
* 序号:
* 功能:签到
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:杰夫兄弟智慧科技有限公司
* 备注:需更改
**/
function check_inRow(index){
$('#list').datagrid('selectRow',index);
var is_row = $('#list').datagrid('getSelections');
var code = is_row[0].UUID;
var v_query = {};
v_query.FIELD_MEETING_ID = code;
var v_result = meetingModule.meetingActAction.insertCheck_in(v_query);
$('#list').datagrid('reload');
return v_result;
}
/**
* 序号:
* 功能:刷新
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:杰夫兄弟智慧科技有限公司
* 备注:需更改
**/
function refreshRow(){
$('#list').datagrid('load',{});
$("#meetingTab_searchForm")[0].reset();
}
/****/
/**
* 序号:
* 功能:查询
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:杰夫兄弟智慧科技有限公司
* 备注:需更改
**/
function searchRow(){
var v_query = $("#meetingTab_searchForm").getFormVal();
$('#list').datagrid('load',v_query);
}
/****/
//此乃本模块与后台交互的方法接口部分
var meetingModule = function(format) {
this.module = "";
this.action = "";
this.format = format;
};
//定义数据交互
meetingModule.prototype = BusinessObject;
//插入会议数据
meetingModule.prototype.insertMeeting = function(){};
//插入签到数据
meetingModule.prototype.insertCheck_in = function(){};
//修改会议数据
meetingModule.prototype.updateMeeting = function(){};
//删除会议数据
meetingModule.prototype.deleteMeeting = function(){};
//会议数据_分页
meetingModule.prototype.list = function(){};
//签到数据_分页
meetingModule.prototype.listCheck_in = function(){};
//会议所有数据
meetingModule.prototype.listAll = function(){};
//创建一个数据操作对象,然后再后续使用
meetingModule.meetingActAction = new meetingModule("json").delegate("meetingAct");
//创建一个数据获取对象,然后再后续使用
meetingModule.meetingDataAction = new meetingModule("json").delegate("meetingData");
//说明: 1、所有方法里统一传递josn格式的参数,用于后台交互,如data.listTables(param) ,如没有参数则传'{}',如data.listTables({})
// 2、前后台数据获取传输协议 如:json[{'0':{pageCount':'2','pageNo':'1','pageSize':'20','rowSet':'[{0},{1}....]'}}]
// 3、前后台增删改的返回状态 如:json[{'0':{'rowSet':{'NAME':'-1','VALUE':'保存失败'}}}]
<%@page contentType="text/html; charset=UTF-8"%>
<%@ include file="/gaowj/header-simple-1.0.jsp"%>
<div id="meetingTab">
<link rel="stylesheet" type="text/css" href="${ctx}/jwapp/common/css/content_body.css" charset="utf-8"></link>
<link rel="stylesheet" type="text/css" href="${ctx}/jwapp/common/css/content_table.css" charset="utf-8"></link>
<link rel="stylesheet" type="text/css" href="${ctx}/jwapp/common/css/content_input.css" charset="utf-8"></link>
</div>
<table id="list" style="width: 100%; height: 100%;"></table>
<div id="tb">
<form id="meetingTab_searchForm" style="float:left">
会议名称: <input class="easyui-textbox" id="FIELD_MEETING_NAME" name="FIELD_MEETING_NAME" style="width:200px"/>&nbsp;&nbsp;
</form>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" onclick="javascript:searchRow()">查询</a>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" onclick="javascript:refreshRow()">刷新</a>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" onclick="javascript:addRow()">添加</a>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-clear',plain:true" onclick="javascript:deleteBatchRow()">删除</a>
</div>
<div id="detail" style="overflow:auto;"></div>
<script type="text/javascript" src="${ctx}/jwapp/pages/standard/js/jwStandardModule.js" charset="utf-8"></script>
<script type="text/javascript" src="${ctx}/jwapp/pages/meeting/js/meetingModule.js" charset="utf-8"></script>
<script type="text/javascript" src="${ctx}/jwapp/pages/meeting/js/meetingTab.js" charset="utf-8"></script>
<%@page contentType="text/html; charset=UTF-8"%>
<form id="inputForm" method="post" style="width: 100%;">
<input type="hidden" name="FIELD_OPETYPE" id="OPETYPE" value="${is_row.OPETYPE}"/>
<input type="hidden" name="FIELD_UUID" id="UUID" value="${is_row.UUID}"/>
<table align="center" border="0" cellpadding="0" cellspacing="0" class="tableStyle" style="margin: 10px 15px; width: 95%; line-height: 30px;">
<tr>
<td style="width: 15%;" class="tableStyleLable">
<span>会议名称:</span>
</td>
<td style="width: 85%">
<input class="easyui-textbox" id="MEETING_NAME" name="FIELD_MEETING_NAME" style="width:600px" required=true value="${is_row.MEETING_NAME}"/>
</td>
</tr>
<tr>
<td style="width: 15%;" class="tableStyleLable">
<span>主持人:</span>
</td>
<td style="width: 85%">
<input class="easyui-textbox" id="HOST" name="FIELD_HOST" style="width:600px" required=true value="${is_row.HOST}"/>
</td>
</tr>
<tr>
<tr>
<td class="tableStyleLable" valign="top" style="height:160px">
<span>会议内容:</span>
</td>
<td>
<input class="easyui-textbox" id="MEETING_CONTENT" name="FIELD_MEETING_CONTENT" style="width:600px;height:150px" required=true multiline=true value="${is_row.MEETING_CONTENT}"/>
</td>
</tr>
<tr>
<td class="tableStyleLable">
<span>会议地址:</span>
</td>
<td>
<input class="easyui-textbox" id="VENUE" name="FIELD_VENUE" style="width:600px" required=true value="${is_row.VENUE}"/>
</td>
</tr>
<tr>
<td style="width: 20%;" class="tableStyleLable">
<span>
会议时间:
</span>
</td>
<td style="width: 80%">
<input id="START_TIME" name="FIELD_START_TIME" value="${is_row.START_TIME}" />
<span>到</span>
<input id="END_TIME" name="FIELD_END_TIME" type="text" value="${is_row.END_TIME}" >
</td>
</tr>
<tr>
<td style="width: 20%;" class="tableStyleLable">
<span>
会议签到时间:
</span>
</td>
<td style="width: 80%">
<input class="easyui-datetimebox" required id="CHECK_START_TIME" name="FIELD_CHECK_START_TIME" value="${is_row.CHECK_START_TIME}" />
<span>到</span>
<input class="easyui-datetimebox" required id="CHECK_END_TIME" name="FIELD_CHECK_END_TIME" type="text" value="${is_row.CHECK_END_TIME}" >
</td>
</tr>
</table>
</form>
\ No newline at end of file
//此乃本模块与后台交互的方法接口部分
var noticeModule = function(format) {
this.module = "";
this.action = "";
this.format = format;
};
//定义数据交互
noticeModule.prototype = BusinessObject;
//获取当前登录人的友情链接信息
noticeModule.prototype.listNoticeInfo = function(){};
//保存当前登录人的友情链接信息
noticeModule.prototype.saveNoticeInfo = function(){};
//删除当前登录人的友情链接信息
noticeModule.prototype.removeNoticeInfo = function(){};
//创建一个数据操作对象,然后再后续使用
noticeModule.act = new noticeModule("json").delegate("noticeAct");
//创建一个数据获取对象,然后再后续使用
noticeModule.data = new noticeModule("json").delegate("noticeData");
//说明: 1、所有方法里统一传递josn格式的参数,用于后台交互,如data.listTables(param) ,如没有参数则传'{}',如data.listTables({})
// 2、前后台数据获取传输协议 如:json[{'0':{pageCount':'2','pageNo':'1','pageSize':'20','rowSet':'[{0},{1}....]'}}]
// 3、前后台增删改的返回状态 如:json[{'0':{'rowSet':{'NAME':'-1','VALUE':'保存失败'}}}]
/**
* 序号:1
* 功能:定义分页(EasyUI)
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:无需更改
**/
var ls_width = $(window).width();
var ls_height = $(window).height();
var local_page=1;
var rows=20;
var listPageSize = [10,20,50,100,500,1000];
var queryData = eval("({'page':'"+local_page+"','rows':'"+rows+"'})");
var tab_n = 0;
//重置分页参数
function resetQueryData(){
queryData = "";
queryData = eval("({'page':'"+local_page+"','rows':'"+rows+"'})");
}
//定义附件关联模块ID(1:一般业务,2:测试信息,3:审批业务,999:其它数据 )
var ls_module_id='2';
//定义当前模块业务类型(YBYW:一般业务,SPGL:审批业务)
var ls_ywlx = 'YBYW';
/****/
/****/
/**
* 序号:2
* 功能:构建主页面列表
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
//定义grid列表
var ls_title="快速链接";
var is_column = [ [
{field : 'TITLE',title : '标题',width : 380,align : 'left', halign:'center'},
{field : 'RELEASE_TIME',title : '发布时间',width : 120,align : 'center'},
{field : 'CREATE_USER_NAME',title : '创建人员',width : 100,align : 'center'},
{field : 'CREATE_TIME',title : '创建时间',width : 120,align : 'center'}
] ];
//列表加载完成回调
function dataOnLoadSuccess(){
}
//设置颜色和每行高度
function rowstyler(index,row){
}
//展示列表
datagrid("list",ls_title,gaowj.WEB_APP_NAME + "/noticeData_listNoticeInfo",queryData,is_column,60,80);
/****/
/**
* 序号:3
* 功能:设置主页面操作列菜单
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
//操用列显示更多(一般情况下无需更改)
function formatMenu(value, data,index) {
var returnData="";
return returnData
+ "<span class=\"icon-ext-moremenu\" style=\"padding-left:20px;*width:20px;\"></span>"
+ "<span data-p1="+index+" class=\"easyui-tooltip\" style=\"color:blue;cursor:pointer;\">更多</span>";
}
//上浮横向菜单集里的具体菜单项(需更改)
function getOptionMenu(data,index){
var returnData= "<span class=\"icon-edit\" style=\"padding-left:20px;*width:20px;\"></span><a href=\"javascript:void(0);\" onclick=\"editRow('"
+ index + "')\">编辑</a> | <span class=\"icon-clear\" style=\"padding-left:20px;*width:20px;\"></span><a href=\"javascript:void(0);\" onclick=\"deleteRow('"
+ index + "')\">删除</a>";
return returnData;
}
//返回菜单集的菜单个数(需更改)
function getOptionMenuCount(){
var is_menu_count = 2;
return is_menu_count;
}
/****/
/**
* 序号:4
* 功能:新增修改弹出
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
//加载增加子页面
function addRow(){
var is_row={OPETYPE:'insert'};
openEditRow("noticeView_noticeTabDetail",is_row,"新增",true,0.65,0.95,0,0);
}
//加载增加子页面成功后的回调
function addUrlOnloadCallback(is_row){
//UE.getEditor("TITLE");
//UE.getEditor('TEXT').destroy();
//var ue = UE.getEditor('TEXT');
//getbaidu
//console.log(ue)
getbaidu('TEXT');
}
//保存
function insertData(is_entity){
var v_result = noticeModule.act.saveNoticeInfo(is_entity);
$('#list').datagrid('reload');
return v_result;
}
//加载修改子页面
function editRow(index) {
$('#list').datagrid('selectRow',index);
var is_row = $('#list').datagrid('getSelections');
$('#list').datagrid('clearSelections');
is_row[0].OPETYPE = 'update';
openEditRow("noticeView_noticeTabDetail",is_row[0],"编辑",true,0.65,0.95,0,0);
}
//加载修改子页面成功后的回调
function updateUrlOnloadCallback(is_row){
$("#inputForm").form('load',get_FIELD(is_row));
getbaidu('TEXT',is_row.TEXT);
}
//保存
function updateData(is_entity){
var v_result = noticeModule.act.saveNoticeInfo(is_entity);
$('#list').datagrid('reload');
return v_result;
}
/****/
/**
* 序号:6
* 功能:单个删除
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
function deleteRow(index){
$('#list').datagrid('selectRow',index);
var is_row = $('#list').datagrid('getSelections');
$('#list').datagrid('clearSelections');
var code = is_row[0].UUID;
$.messager.confirm('提示', '确定删除?', function(r) {
if (r) {
var v_query = {};
v_query.FIELD_CODE = code;
var v_result = noticeModule.act.removeNoticeInfo(v_query);
$.messager.alert('提示',v_result.VALUE);
$('#list').datagrid('reload');
}
});
}
/****/
/**
* 序号:7
* 功能:批量删除
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
function deleteBatchRow(){
var code="";
var rows = $('#list').datagrid('getSelections');
for(var i=0; i<rows.length; i++){
code = code + rows[i].UUID+",";
}
if(rows == null || rows == ""){
$.messager.alert('提示',"请选择需删除的记录!",'info');
return;
}
if(code.length>0){
code = code.substring(0,code.length - 1);
}
$.messager.confirm('提示', '确定删除?', function(r) {
if (r) {
var v_query = {};
v_query.FIELD_CODE = code;
var v_result = noticeModule.act.removeNoticeInfo(v_query);
$.messager.alert('提示',v_result.VALUE);
$('#list').datagrid('reload');
}
});
}
/****/
/**
* 序号:8
* 功能:刷新
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
function refreshRow(){
$('#list').datagrid('load',{});
$("#noticeTab_searchForm")[0].reset();
}
/****/
/**
* 序号:9
* 功能:查询
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
function searchRow(){
var v_query = $("#noticeTab_searchForm").getFormVal();
$('#list').datagrid('load',v_query);
}
<%@page contentType="text/html; charset=UTF-8"%>
<%@ include file="/gaowj/header-simple-1.0.jsp"%>
<div id="studentTab">
<link rel="stylesheet" type="text/css" href="${ctx}/jwapp/common/css/content_body.css" charset="utf-8"></link>
<link rel="stylesheet" type="text/css" href="${ctx}/jwapp/common/css/content_table.css" charset="utf-8"></link>
<link rel="stylesheet" type="text/css" href="${ctx}/jwapp/common/css/content_input.css" charset="utf-8"></link>
</div>
<table id="list" style="width: 100%; height: 100%;"></table>
<div id="tb">
<form id="noticeTab_searchForm" style="float:left">
标题: <input class="easyui-textbox" id="FIELD_TITLE" name="FIELD_TITLE" style="width:200px"/>&nbsp;&nbsp;
</form>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" onclick="javascript:searchRow()">查询</a>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" onclick="javascript:refreshRow()">刷新</a>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" onclick="javascript:addRow()">新增</a>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-clear',plain:true" onclick="javascript:deleteBatchRow()">删除</a>
</div>
<div id="detail" style="overflow:auto;"></div>
<script type="text/javascript" src="${ctx}/jwapp/common/js/baiduediter.js"></script>
<script type="text/javascript" src="${ctx}/jwapp/pages/standard/js/jwStandardModule.js" charset="utf-8"></script>
<script type="text/javascript" src="${ctx}/jwapp/pages/notice/js/noticeModule.js" charset="utf-8"></script>
<script type="text/javascript" src="${ctx}/jwapp/pages/notice/js/noticeTab.js" charset="utf-8"></script>
<%@page contentType="text/html; charset=UTF-8"%>
<form id="inputForm" method="post" style="width: 100%;">
<input type="hidden" name="FIELD_OPETYPE" id="OPETYPE" value="${is_row.OPETYPE}" />
<input type="hidden" name="FIELD_UUID" id="UUID" value="${is_row.UUID}" />
<input type="hidden" name="FIELD_USER_ID" id="USER_ID" value="${is_row.USER_ID}" />
<table align="center" border="0" cellpadding="0" cellspacing="0" class="tableStyle" style="margin: 10px 15px; width: 95%; line-height: 30px;">
<tr>
<td style="width: 15%;" class="tableStyleLable"><span>标题:</span></td>
<td style="width: 85%">
<input class="easyui-textbox" data-options="required:true" id="TITLE" name="FIELD_TITLE" style="width:300px" />
</td>
</tr>
<tr>
<td style="width: 15%;" class="tableStyleLable"><span>正文:</span></td>
<td style="width: 85%">
<div id="TEXT" name="FIELD_TEXT">
</div>
</td>
</tr>
</table>
</form>
\ No newline at end of file
var todoModule=initModule([
'insertInfo',
'updateInfo',
'deleteInfo',
'listInfo',
'updateDoState'],{
act:'todoAct',
data:'todoData'
});
//说明: 1、所有方法里统一传递josn格式的参数,用于后台交互,如data.listTables(param) ,如没有参数则传'{}',如data.listTables({})
// 2、前后台数据获取传输协议 如:json[{'0':{pageCount':'2','pageNo':'1','pageSize':'20','rowSet':'[{0},{1}....]'}}]
// 3、前后台增删改的返回状态 如:json[{'0':{'rowSet':{'NAME':'-1','VALUE':'保存失败'}}}]
\ No newline at end of file
/**
* 序号:1
* 功能:定义分页(EasyUI)
* 参数:
* 说明:
* 作者:朱天成
* 时间:2018-08-07
* 单位:宁波金网
* 备注:无需更改
**/
var ls_width = $(window).width();
var ls_height = $(window).height();
var local_page = 1;
var rows = 20;
var listPageSize = [ 10, 20, 50, 100, 500, 1000 ];
var queryData = eval("({'page':'" + local_page + "','rows':'" + rows + "'})");
var tab_n = 0;
//重置分页参数
function resetQueryData() {
queryData = "";
queryData = eval("({'page':'" + local_page + "','rows':'" + rows + "'})");
}
//定义附件关联模块ID(1:一般业务,2:测试信息,3:审批业务,999:其它数据 )
var ls_module_id = '2';
//定义当前模块业务类型(YBYW:一般业务,SPGL:审批业务)
var ls_ywlx = 'YBYW';
/****/
/**
* 序号:2
* 功能:构建下拉框内容
* 参数:
* 说明:方便新增、修改页面里的下拉选项加载数据
* 作者:朱天成
* 时间:2018-08-07
* 单位:杰夫兄弟智慧科技有限公司
* 备注:需更改
**/
var v_sender_or_recipient_data = [{CODE_ID:'0',CODE_NAME:'全部'},{CODE_ID:'1',CODE_NAME:'我发起的'},{CODE_ID:'2',CODE_NAME:'我的代办'}];
var v_do_state_data = [{CODE_ID:'all',CODE_NAME:'全部'},{CODE_ID:'0',CODE_NAME:'未办'},{CODE_ID:'1',CODE_NAME:'已办'}];
/****/
/**
* 序号:3
* 功能:构建主页面列表
* 参数:
* 说明:
* 作者:朱天成
* 时间:2018-08-07
* 单位:杰夫兄弟智慧科技有限公司
* 备注:需更改
**/
//定义grid列表
var ls_title = "代办管理";
var is_column = [ [
{
field : 'TITLE',
title : '主题',
width : 350,
align : 'center'
},
{
field : 'SEND_REAL_NAME',
title : '发起人',
width : 100,
align : 'center'
},
{
field : 'RECIPIENT_REAL_NAME',
title : '接收人',
width : 100,
align : 'center'
},
{
field : 'LAUNCH_TIME',
title : '发起时间',
width : 120,
align : 'center'
},
{
field : 'READ_TIME',
title : '读取时间',
width : 120,
align : 'center',
formatter : function(value,row,index){
return (value==null||value=='')?"未读":value;
}
},
{
field : 'DO_TIME',
title : '办理时间',
width : 120,
align : 'center',
formatter : function(value,row,index){
return (value==null||value=='')?"未办":value;
}
}
] ];
//列表加载完成回调
function dataOnLoadSuccess() {
}
//设置颜色和每行高度
function rowstyler(index, row) {
}
queryData=$.extend(queryData,$("#todoTab_searchForm").getFormVal());
//展示列表
datagrid("list", ls_title, gaowj.WEB_APP_NAME + "/todoData_list", queryData, is_column, 60, 80);
$(function(){
$('#FIELD_ROLE').combobox({
data : v_sender_or_recipient_data,
valueField : 'CODE_ID',
textField : 'CODE_NAME',
editable:false,
panelHeight:'auto'
});
$('#FIELD_DO_STATE').combobox({
data : v_do_state_data,
valueField : 'CODE_ID',
textField : 'CODE_NAME',
editable:false,
panelHeight:'auto'
});
});
/****/
/**
* 序号:4
* 功能:设置主页面操作列菜单
* 参数:
* 说明:
* 作者:朱天成
* 时间:2018-08-07
* 单位:杰夫兄弟智慧科技有限公司
* 备注:需更改
**/
//操用列显示更多(一般情况下无需更改)
function formatMenu(value, data, index) {
var returnData = "";
return returnData
+ "<span class=\"icon-ext-moremenu\" style=\"padding-left:20px;*width:20px;\"></span>"
+ "<span data-p1=" + index + " class=\"easyui-tooltip\" style=\"color:blue;cursor:pointer;\">更多</span>";
}
//上浮横向菜单集里的具体菜单项(需更改)
function getOptionMenu(data, index) {
var returnData = "<span class=\"icon-edit\" style=\"padding-left:20px;*width:20px;\"></span> <a href=\"javascript:void(0);\" onclick=\"editRow('"
+ index + "')\">编辑</a> | <span class=\"icon-clear\" style=\"padding-left:20px;*width:20px;\"></span><a href=\"javascript:void(0);\" onclick=\"deleteRow('"
+ index + "')\">删除</a> | <span class=\"icon-reload\" style=\"padding-left:20px;*width:20px;\"></span><a href=\"javascript:void(0);\" onclick=\"todoEndRow('"
+ index + "')\">已办</a>";
return returnData;
}
//返回菜单集的菜单个数(需更改)
function getOptionMenuCount() {
var is_menu_count = 3;
return is_menu_count;
}
/****/
/**
* 序号:5
* 功能:新增修改弹出
* 参数:
* 说明:
* 作者:朱天成
* 时间:2018-08-07
* 单位:杰夫兄弟智慧科技有限公司
* 备注:需更改
**/
//加载增加子页面
function addRow() {
var is_row = {
OPETYPE : 'insert'
};
openEditRow("todoView_todoTabDetail", is_row, "新增", true, 0.65, 0.95, 0, 0);
}
//加载增加子页面成功后的回调
function addUrlOnloadCallback(is_row) {
$("#TYPE").val($("#FIELD_TYPE").val());
}
//保存
function insertData(is_entity) {
var RECIPIENTS="";
$("#todo_select_user div").each(function(){
RECIPIENTS+=","+$(this).data('id');
});
if(RECIPIENTS!=''){
is_entity.FIELD_RECIPIENTS=RECIPIENTS.substr("1");
}
var v_result = todoModule.act.insertInfo(is_entity);
$('#list').datagrid('reload');
return v_result;
}
//加载修改子页面
function editRow(index) {
$('#list').datagrid('selectRow', index);
var is_row = $('#list').datagrid('getSelections');
$('#list').datagrid('clearSelections');
is_row[0].OPETYPE = 'update';
openEditRow("todoView_todoTabDetail", is_row[0], "编辑", true, 0.65, 0.95, 0, 0);
}
//加载修改子页面成功后的回调
function updateUrlOnloadCallback(is_row) {
$("#choice_user_tr").remove();
$("#inputForm").form('load',get_FIELD(is_row));
}
//保存
function updateData(is_entity) {
var v_result = todoModule.act.updateInfo(is_entity);
$('#list').datagrid('reload');
return v_result;
}
/****/
/**
* 序号:6
* 功能:单个删除
* 参数:
* 说明:
* 作者:朱天成
* 时间:2018-08-07
* 单位:杰夫兄弟智慧科技有限公司
* 备注:需更改
**/
function deleteRow(index) {
$('#list').datagrid('selectRow', index);
var is_row = $('#list').datagrid('getSelections');
$('#list').datagrid('clearSelections');
var code = is_row[0].UUID;
$.messager.confirm('提示', '确定删除?', function(r) {
if (r) {
var v_query = {};
v_query.FIELD_CODE = code;
var v_result = todoModule.act.deleteInfo(v_query);
$.messager.alert('提示', v_result.VALUE);
$('#list').datagrid('reload');
}
});
}
/****/
/**
* 序号:7
* 功能:批量删除
* 参数:
* 说明:
* 作者:朱天成
* 时间:2018-08-07
* 单位:杰夫兄弟智慧科技有限公司
* 备注:需更改
**/
function deleteBatchRow() {
var code = "";
var rows = $('#list').datagrid('getSelections');
for (var i = 0; i < rows.length; i++) {
code = code + rows[i].UUID + ",";
}
if (rows == null || rows == "") {
$.messager.alert('提示', "请选择需删除的记录!", 'info');
return;
}
if (code.length > 0) {
code = code.substring(0, code.length - 1);
}
$.messager.confirm('提示', '确定删除?', function(r) {
if (r) {
var v_query = {};
v_query.FIELD_CODE = code;
var v_result = todoModule.act.deleteInfo(v_query);
$.messager.alert('提示', v_result.VALUE);
$('#list').datagrid('reload');
}
});
}
/****/
/**
* 序号:8
* 功能:刷新
* 参数:
* 说明:
* 作者:朱天成
* 时间:2018-08-07
* 单位:杰夫兄弟智慧科技有限公司
* 备注:需更改
**/
function refreshRow() {
$('#list').datagrid('load', {});
$("#todoTab_searchForm")[0].reset();
}
/****/
/**
* 序号:9
* 功能:查询
* 参数:
* 说明:
* 作者:朱天成
* 时间:2018-08-07
* 单位:杰夫兄弟智慧科技有限公司
* 备注:需更改
**/
function searchRow() {
var v_query = $("#todoTab_searchForm").getFormVal();
$('#list').datagrid('load', v_query);
}
/****/
/**
* 序号:10
* 功能:人员弹出框选择
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:宁波金网
* 备注:需更改
**/
function choiceUser(uuid, singleSelect) { //编辑框上弹出单位选择
var is_title = "人员选择";
var is_row = {
}
var modifyUrl = gaowj.WEB_APP_NAME + "/userchoiceView_userChoice?singleSelect=" + singleSelect;
openViewIframRow("userChoice", modifyUrl, is_row, is_title, true, 0.95, 0.95, 0, 0);
}
//选单位和人员后回调方法
function closeCallback(is_entity) {
var result = $('#return_text').data('json');
if (result == '' || result == null || result == undefined)
return;
$('#todo_select_user').empty();
for (var i = 0; i < result.length; i++) {
//创建一个表格
var $row = createUserInfo(result[i]);
$("#todo_select_user").append($row);
}
}
//创建一个收件人
function createUserInfo(data) {
var $div = $('<div></div>');
$div.data('id', data.USER_ID);
$div.append($('<span>' + data.USER_NAME + '</span>'));
$div.append($('<span class="icon-clear" onclick="removeUserInfo(this)"></span>'));
return $div;
}
function removeUserInfo(span){
$(span).parent().remove();
}
//设为已办
function todoEndRow(index){
$('#list').datagrid('selectRow', index);
var is_row = $('#list').datagrid('getSelections');
$('#list').datagrid('clearSelections');
var v_result = todoModule.act.updateDoState(get_FIELD(is_row[0]));
$.messager.alert('提示', v_result.VALUE);
$('#list').datagrid('reload');
}
\ No newline at end of file
<%@page contentType="text/html; charset=UTF-8"%>
<%@ include file="/gaowj/header-simple-1.0.jsp"%>
<div id="todoTab">
<link rel="stylesheet" type="text/css" href="${ctx}/jwapp/common/css/content_body.css" charset="utf-8"></link>
<link rel="stylesheet" type="text/css" href="${ctx}/jwapp/common/css/content_table.css" charset="utf-8"></link>
<link rel="stylesheet" type="text/css" href="${ctx}/jwapp/common/css/content_input.css" charset="utf-8"></link>
</div>
<table id="list" style="width: 100%; height: 100%;"></table>
<div id="tb">
<form id="todoTab_searchForm" style="float:left">
<input type="hidden" name="FIELD_TYPE" id="FIELD_TYPE" value="${type}" />
主题内容: <input class="easyui-textbox" id="FIELD_TITLE" name="FIELD_TITLE" style="width:200px"/>&nbsp;&nbsp;
角色: <input class="easyui-textbox" id="FIELD_ROLE" name="FIELD_ROLE" value="0" style="width:200px"/>&nbsp;&nbsp;
办理状态: <input class="easyui-textbox" id="FIELD_DO_STATE" name="FIELD_DO_STATE" value="all" style="width:200px"/>&nbsp;&nbsp;
</form>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" onclick="javascript:searchRow()">查询</a>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" onclick="javascript:refreshRow()">刷新</a>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" onclick="javascript:addRow()">新增</a>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-clear',plain:true" onclick="javascript:deleteBatchRow()">删除</a>
</div>
<div id="detail" style="overflow:auto;"></div>
<div id="userChoice" style="overflow:auto;"></div>
<script type="text/javascript" src="${ctx}/jwapp/pages/standard/js/jwStandardModule.js" charset="utf-8"></script>
<script type="text/javascript" src="${ctx}/jwapp/pages/todo/js/todoModule.js" charset="utf-8"></script>
<script type="text/javascript" src="${ctx}/jwapp/pages/todo/js/todoTab.js" charset="utf-8"></script>
<%@page contentType="text/html; charset=UTF-8"%>
<form id="inputForm" method="post" style="width: 100%;">
<input type="hidden" name="FIELD_OPETYPE" id="OPETYPE" value="${is_row.OPETYPE}" />
<input type="hidden" name="FIELD_UUID" id="UUID" value="${is_row.UUID}" />
<input type="hidden" name="FIELD_TYPE" id="TYPE"/>
<table align="center" border="0" cellpadding="0" cellspacing="0" class="tableStyle" style="margin: 10px 15px; width: 95%; line-height: 30px;">
<tr id="choice_user_tr">
<td style="width: 15%;" class="tableStyleLable">
<span>接收人:</span>
</td>
<td style="width: 85%">
<div class="choice_user" id="todo_select_user"></div>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-ext-37_34',plain:true"
onclick="javascript:choiceUser('',false)">选</a>
</td>
</tr>
<tr>
<td style="width: 15%;" class="tableStyleLable">
<span>主题内容:</span>
</td>
<td style="width: 85%">
<input class="easyui-textbox" id="TITLE" name="FIELD_TITLE" style="width: 400px" required="true" />
</td>
</tr>
<tr>
<td style="width: 15%;" class="tableStyleLable">
<span>副标题:</span>
</td>
<td style="width: 85%">
<input class="easyui-textbox" id="SUB_TITLE" name="FIELD_SUB_TITLE" style="width: 400px" required="true" />
</td>
</tr>
<tr>
<td style="width: 15%;" class="tableStyleLable">
<span>URL:</span>
</td>
<td style="width: 85%">
<input class="easyui-textbox" id="URL" name="FIELD_URL" style="width: 400px" required="true" />
</td>
</tr>
<tr>
<td style="width: 15%;" class="tableStyleLable">
<span>正文:</span>
</td>
<td style="width: 85%">
<input class="easyui-textbox" id="CONTENT" name="FIELD_CONTENT" style="width: 400px" required="true" />
</td>
</tr>
</table>
</form>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment