@@ -1,7 +1,7 @@ | |||
var config = { | |||
webapi: 'http://localhost:8088/', | |||
web: "http://localhost:8087/"//web地址,用于配置logo | |||
}; | |||
//var config = { | |||
// webapi: 'http://123.57.209.16:31173/', | |||
// web: "http://localhost:8087/"//web地址,用于配置logo | |||
//}; | |||
//var config = { | |||
// webapi: 'http://112.230.201.53:31173/', | |||
// web:"http://112.230.201.53/:8081/"//web地址,用于配置logo | |||
@@ -12,17 +12,22 @@ | |||
//}; | |||
//var config = { | |||
// webapi: 'http://localhost:8081/', | |||
// web: "http://localhost:8080/"//web地址,用于配置logo | |||
//}; | |||
//var config = { | |||
// webapi: 'http://123.57.209.16:31174/', | |||
var config = { | |||
webapi: 'http://localhost:8081/', | |||
web: "http://localhost:8087/"//web地址,用于配置logo | |||
}; | |||
// var config = { | |||
// webapi: 'http://123.57.209.16:31173/', | |||
// web: "http://123.57.209.16:31175/"//web地址,用于配置logo | |||
//}; | |||
// }; | |||
//金隅 | |||
//var config = { | |||
// webapi: 'http://192.168.100.225:31173/', | |||
// web:"http://192.168.100.225:8081/"//web地址,用于配置logo | |||
//}; | |||
//}; | |||
// var config = { | |||
// webapi: 'http://123.57.209.16:31174/', | |||
// web: "http://123.57.209.16:31175/"//web地址,用于配置logo | |||
// }; |
@@ -1,4 +1,4 @@ | |||
<div class="lr-page lr-Ask-page"> | |||
<div class="lr-page lr-Ask-page"> | |||
<div class="lr-page-tool"> | |||
<div class="lr-tool-left"> | |||
总共<span class="lr-badge lr-badge-primary">0</span>条 | |||
@@ -16,7 +16,4 @@ | |||
</div> | |||
</div> | |||
<div class="lr-page-content" id="lr_Ask_list"></div> | |||
<!--<div class="lr-list-addbtn" id="lr_Ask_btn"> | |||
<i class="iconfont icon-add1"></i> | |||
</div>--> | |||
</div> |
@@ -1,4 +1,4 @@ | |||
(function () { | |||
(function () { | |||
var multipleData = null; | |||
var page = { | |||
grid: null, | |||
@@ -26,6 +26,7 @@ | |||
}, | |||
lclass: 'lr-list', | |||
loadData: function (param, callback, $page) {// 列表加载后台数据 | |||
console.log(param) | |||
var _postParam = { | |||
pagination: { | |||
rows: param.rows, | |||
@@ -2,6 +2,7 @@ | |||
var page = { | |||
isScroll: true, | |||
init: function($page, param) { | |||
console.log(param) | |||
var path = config.webapi; | |||
learun.layer.loading(true,"加载数据中..."); | |||
learun.httpget(path + "/learun/ask/paper", { | |||
@@ -10,6 +11,7 @@ | |||
learun.layer.loading(false); | |||
$page.find('.inSecTitle').html(res.VTitle).end().find('.inSecTime').html(res.VStartTime + ' - ' + res.VStopTime) | |||
var dataList = res.Ask_Questions; | |||
console.log(dataList) | |||
var otherHtml = '<div class="shenInput shenInput3">'+ | |||
'<span>其他</span>'+ | |||
'<div class="shenInputBox shenInputBox1">'+ | |||
@@ -92,7 +94,7 @@ | |||
return | |||
} | |||
// return | |||
learun.httpget(path + "/learun/ask/savepaper", | |||
learun.httppost(path + "/learun/ask/savepaper", | |||
{ | |||
VID: param.VID, | |||
LessonNo: param.LessonNo, | |||
@@ -1,4 +1,4 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2019-10-17 17:22 | |||
@@ -144,6 +144,7 @@ | |||
}); | |||
} | |||
learun.httpget(config.webapi + 'learun/AssetManagementSystem/InventoryItem/pagelist', _postParam, (data) => { | |||
console.log(data) | |||
$page.find('.lr-badge').text('0'); | |||
if (data) { | |||
$page.find('.lr-badge').text(data.records); | |||
@@ -1,4 +1,4 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2019-10-24 16:51 | |||
@@ -89,6 +89,7 @@ | |||
var _postData = {} | |||
_postData.keyValue = keyValue; | |||
_postData.strEntity = JSON.stringify($page.find('.lr-form-container').lrformGet()); | |||
console.log(_postData) | |||
learun.layer.loading(true, '正在提交数据'); | |||
learun.httppost(config.webapi + 'learun/AssetManagementSystem/InventoryItem/save', _postData, (data) => { | |||
learun.layer.loading(false); | |||
@@ -1,4 +1,4 @@ | |||
(function () { | |||
(function () { | |||
var keyValue = ''; | |||
var weekChina = ["一", "二", "三", "四", "五", "六", "日"]; | |||
var $header = null; | |||
@@ -31,11 +31,11 @@ | |||
config.webapi + | |||
'learun/EducationalAdministration/OpenLessonPlanOfElectiveStudent/GetApplyResult', | |||
_postData, | |||
( | |||
dataresult, inforesult) => { | |||
(dataresult, inforesult) => { | |||
learun.layer.loading(false); | |||
clearInterval(timer); | |||
learun.layer.toast(inforesult); | |||
//learun.layer.toast(inforesult); | |||
learun.layer.toast(dataresult.msg); | |||
learun.nav.closeCurrent(); | |||
var prepage = learun.nav.getpage('EducationalAdministration/OpenLessonPlanOfElectiveStudent'); | |||
prepage.grid.reload(); | |||
@@ -1,4 +1,4 @@ | |||
(function () { | |||
(function () { | |||
var weekChina = ["一", "二", "三", "四", "五", "六", "日"]; | |||
var begin = ''; | |||
var end = ''; | |||
@@ -13,6 +13,7 @@ | |||
lclass: page.lclass, | |||
rows: 10, // 每页行数 | |||
getData: function (param, callback) {// 获取数据 param 分页参数,callback 异步回调 | |||
console.log(param) | |||
param.multipleData = multipleData; | |||
page.loadData(param, callback, $page); | |||
}, | |||
@@ -48,6 +49,7 @@ | |||
_postParam.queryJson = JSON.stringify({ StuNo: JSON.parse(localStorage.userinfo).baseinfo.account, StuMajorNo: JSON.parse(localStorage.userinfo).baseinfo.majorno, StuGrade: JSON.parse(localStorage.userinfo).baseinfo.grade }); | |||
} | |||
learun.httpget(config.webapi + 'learun/EducationalAdministration/OpenLessonPlanOfElectiveStudent/pagelist', _postParam, (data) => { | |||
console.log(data) | |||
$page.find('.lr-badge').text('0'); | |||
if (data) { | |||
$page.find('.lr-badge').text(data.records); | |||
@@ -116,9 +118,15 @@ | |||
_postData.keyValue = item.Id; | |||
_postData.StuNo = JSON.parse(localStorage.userinfo).baseinfo.account; | |||
learun.layer.loading(true, '正在取消报名...'); | |||
console.log(123); | |||
learun.httppost(config.webapi + 'learun/EducationalAdministration/OpenLessonPlanOfElectiveStudent/CancelPre', _postData, (data, info) => { | |||
console.log(data) | |||
console.log(info) | |||
if (data) {// 成功 | |||
learun.layer.toast(info); | |||
console.log(1111111111) | |||
console.log(data) | |||
console.log(info) | |||
//learun.layer.toast(info); | |||
page.grid.reload(); | |||
} | |||
learun.layer.loading(false); | |||
@@ -1,4 +1,4 @@ | |||
(function () { | |||
(function () { | |||
var keyValue = ''; | |||
var weekChina = ["一", "二", "三", "四", "五", "六", "日"]; | |||
var $header = null; | |||
@@ -26,7 +26,8 @@ | |||
learun.httppost(config.webapi + 'learun/EducationalAdministration/OpenLessonPlanOfElectiveStudent/SignInPre', _postData, (data,info) => { | |||
learun.layer.loading(false); | |||
if (data) {// 表单数据保存成功 | |||
learun.layer.toast(info); | |||
//learun.layer.toast(info); | |||
learun.layer.toast(data.msg); | |||
learun.nav.closeCurrent(); | |||
var prepage = learun.nav.getpage('EducationalAdministration/OpenLessonPlanOfElectiveStudentPre'); | |||
prepage.grid.reload(); | |||
@@ -35,10 +36,12 @@ | |||
}); | |||
page.bind($page, param); | |||
if (keyValue) { | |||
console.log(keyValue) | |||
$page.find('.lr-form-container').setFormRead(); | |||
// 获取表单数据 | |||
learun.layer.loading(true, '获取表单数据'); | |||
learun.httpget(config.webapi + 'learun/EducationalAdministration/OpenLessonPlanOfElectiveStudent/form', keyValue, (data) => { | |||
console.log(data) | |||
if (data) { | |||
for (var id in data) { | |||
if (data[id].length) { | |||
@@ -1,104 +1,99 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2020-04-21 09:23 | |||
* 描 述:扫码入教学楼统计 | |||
*/ | |||
(function () { | |||
var page = { | |||
grid: null, | |||
init: function ($page) { | |||
var ua = navigator.userAgent.toLowerCase(); | |||
if (/(html5plus)/i.test(ua)) { | |||
//if (false) { | |||
$('.bcidBox').css('display', 'block'); | |||
var scan = new plus.barcode.Barcode('bcid'); | |||
scan.onmarked = function onmarked(type, result) { | |||
scan.close(); | |||
$('.bcidBox').css('display', 'none'); | |||
var loginInfo = learun.storage.get('userinfo'); | |||
var buildEntity = {}; | |||
buildEntity.SId = loginInfo.baseinfo.account; | |||
buildEntity.BId = result;//'1d13cb80-d66a-4c55-a633-f88dc0b80df7'; | |||
var param = {}; | |||
param.keyValue = ''; | |||
param.strEntity = JSON.stringify(buildEntity); | |||
learun.layer.loading(true, '正在提交数据'); | |||
learun.httppost(config.webapi + 'learun/EducationalAdministration/R_EnterBuilding/save', param, (data) => { | |||
learun.layer.loading(false); | |||
if (data) {// 表单数据保存成功 | |||
learun.layer.toast("扫描成功"); | |||
learun.nav.closeCurrent(); | |||
//var prepage = learun.nav.getpage('EducationalAdministration/R_EnterBuilding'); | |||
//prepage.grid.reload(); | |||
} | |||
}); | |||
}; | |||
scan.start(); | |||
} else if (/micromessenger/.test(ua)) { | |||
$.ajax({ | |||
url: config.webapi + "weixinapi/getweixinwebaccess_token?url=" + encodeURIComponent(window.location.href), | |||
type: "get", | |||
success: function (res) { | |||
wx.config({ | |||
debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。 | |||
appId: res.data.appid, // 必填,公众号的唯一标识 | |||
timestamp: res.data.timestamp, // 必填,生成签名的时间戳 | |||
nonceStr: res.data.noncestr, // 必填,生成签名的随机串 | |||
signature: res.data.certificate, // 必填,签名 | |||
jsApiList: ["scanQRCode"] // 必填,需要使用的JS接口列表 | |||
}); | |||
wx.ready(function () { | |||
wx.scanQRCode({ | |||
needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果, | |||
scanType: ["qrCode", "barCode"], // 可以指定扫二维码还是一维码,默认二者都有 | |||
success: function (res) { | |||
learun.layer.toast(res); | |||
//res.resultStr | |||
var loginInfo = learun.storage.get('userinfo'); | |||
var buildEntity = {}; | |||
buildEntity.SId = loginInfo.baseinfo.account; | |||
buildEntity.BId = res.resultStr;//'1d13cb80-d66a-4c55-a633-f88dc0b80df7'; | |||
var param = {}; | |||
param.keyValue = ''; | |||
param.strEntity = JSON.stringify(buildEntity); | |||
learun.layer.loading(true, '正在提交数据'); | |||
learun.httppost(config.webapi + 'learun/EducationalAdministration/R_EnterBuilding/save', param, (data) => { | |||
learun.layer.loading(false); | |||
if (data) {// 表单数据保存成功 | |||
learun.layer.toast("扫描成功"); | |||
learun.nav.closeCurrent(); | |||
//var prepage = learun.nav.getpage('EducationalAdministration/R_EnterBuilding'); | |||
//prepage.grid.reload(); | |||
} | |||
}); | |||
} | |||
}); | |||
}) | |||
} | |||
}); | |||
} else { | |||
learun.layer.warning('请下载app或者到微信浏览器打开网页'); | |||
} | |||
} | |||
}; | |||
return page; | |||
(function() { | |||
var page = { | |||
grid: null, | |||
init: function($page) { | |||
var ua = navigator.userAgent.toLowerCase(); | |||
if (/(html5plus)/i.test(ua)) { | |||
//if (false) { | |||
$('.bcidBox').css('display', 'block'); | |||
var scan = new plus.barcode.Barcode('bcid'); | |||
scan.onmarked = function onmarked(type, result) { | |||
scan.close(); | |||
$('.bcidBox').css('display', 'none'); | |||
var loginInfo = learun.storage.get('userinfo'); | |||
var buildEntity = {}; | |||
buildEntity.SId = loginInfo.baseinfo.account; | |||
buildEntity.BId = result; //'1d13cb80-d66a-4c55-a633-f88dc0b80df7'; | |||
var param = {}; | |||
param.keyValue = ''; | |||
param.strEntity = JSON.stringify(buildEntity); | |||
learun.layer.loading(true, '正在提交数据'); | |||
learun.httppost(config.webapi + 'learun/EducationalAdministration/R_EnterBuilding/save', param, (data) => { | |||
learun.layer.loading(false); | |||
if (data) { // 表单数据保存成功 | |||
learun.layer.toast("扫描成功"); | |||
learun.nav.closeCurrent(); | |||
//var prepage = learun.nav.getpage('EducationalAdministration/R_EnterBuilding'); | |||
//prepage.grid.reload(); | |||
} | |||
}); | |||
}; | |||
scan.start(); | |||
} else if (/micromessenger/.test(ua)) { | |||
$.ajax({ | |||
url: config.webapi + "weixinapi/getweixinwebaccess_token?url=" + encodeURIComponent(window.location.href), | |||
type: "get", | |||
success: function(res) { | |||
wx.config({ | |||
debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。 | |||
appId: res.data.appid, // 必填,公众号的唯一标识 | |||
timestamp: res.data.timestamp, // 必填,生成签名的时间戳 | |||
nonceStr: res.data.noncestr, // 必填,生成签名的随机串 | |||
signature: res.data.certificate, // 必填,签名 | |||
jsApiList: ["scanQRCode"] // 必填,需要使用的JS接口列表 | |||
}); | |||
wx.ready(function() { | |||
wx.scanQRCode({ | |||
needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果, | |||
scanType: ["qrCode", "barCode"], // 可以指定扫二维码还是一维码,默认二者都有 | |||
success: function(res) { | |||
learun.layer.toast(res); | |||
//res.resultStr | |||
var loginInfo = learun.storage.get('userinfo'); | |||
var buildEntity = {}; | |||
buildEntity.SId = loginInfo.baseinfo.account; | |||
buildEntity.BId = res.resultStr; //'1d13cb80-d66a-4c55-a633-f88dc0b80df7'; | |||
var param = {}; | |||
param.keyValue = ''; | |||
param.strEntity = JSON.stringify(buildEntity); | |||
learun.layer.loading(true, '正在提交数据'); | |||
learun.httppost(config.webapi + 'learun/EducationalAdministration/R_EnterBuilding/save', param, ( | |||
data) => { | |||
learun.layer.loading(false); | |||
if (data) { // 表单数据保存成功 | |||
learun.layer.toast("扫描成功"); | |||
learun.nav.closeCurrent(); | |||
//var prepage = learun.nav.getpage('EducationalAdministration/R_EnterBuilding'); | |||
//prepage.grid.reload(); | |||
} | |||
}); | |||
} | |||
}); | |||
}) | |||
} | |||
}); | |||
} else { | |||
learun.layer.warning('请下载app或者到微信浏览器打开网页'); | |||
} | |||
} | |||
}; | |||
return page; | |||
})(); |
@@ -1,4 +1,4 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2020-04-21 09:27 | |||
@@ -1,4 +1,4 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2019-12-26 14:43 | |||
@@ -71,6 +71,8 @@ | |||
if (param.begin && param.end) { | |||
_postParam.queryJson = JSON.stringify({ StartTime: param.begin, EndTime: param.end }); | |||
} | |||
console.log(param.multipleData) | |||
// return | |||
learun.httpget(config.webapi + 'StuInfoFresh/pageList', _postParam, (data) => { | |||
$page.find('.lr-badge').text('0'); | |||
if (data) { | |||
@@ -1,4 +1,4 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2019-12-26 14:43 | |||
@@ -91,6 +91,8 @@ | |||
var _postData = {} | |||
_postData.keyValue = keyValue; | |||
_postData.strEntity = JSON.stringify(data); | |||
console.log(_postData) | |||
// return | |||
learun.layer.loading(true, '正在提交数据'); | |||
learun.httppost(config.webapi + 'StuInfoFresh/save', _postData, (data) => { | |||
learun.layer.loading(false); | |||
@@ -1,149 +1,149 @@ | |||
#sQrCode { | |||
height: 100%; | |||
background-color: #EEF2F3; | |||
padding-bottom: 30px; | |||
#sQrCode { | |||
height: 100%; | |||
background-color: #EEF2F3; | |||
padding-bottom: 30px; | |||
} | |||
.sQrLogo { | |||
background-image: url(images/xcBg.jpg); | |||
background-size: 100% 100%; | |||
text-align: center; | |||
line-height: 0; | |||
padding: 20px 0 70px; | |||
background-image: url(images/xcBg.jpg); | |||
background-size: 100% 100%; | |||
text-align: center; | |||
line-height: 0; | |||
padding: 20px 0 70px; | |||
} | |||
.sQrLogoImg1 img { | |||
width: 20%; | |||
width: 20%; | |||
} | |||
.sQrLogoImg1 { | |||
margin-bottom: 10px; | |||
margin-bottom: 10px; | |||
} | |||
.sQrLogoImg2 img { | |||
width: 50%; | |||
width: 50%; | |||
} | |||
.sQrBox { | |||
margin: -50px 20px 0; | |||
background-color: #fff; | |||
padding: 30px 38px; | |||
border-radius: 10px; | |||
-webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, .1); | |||
-moz-box-shadow: 0 4px 10px rgba(0, 0, 0, .1); | |||
box-shadow: 0 4px 10px rgba(0, 0, 0, .1); | |||
/* overflow: hidden; */ | |||
margin: -50px 20px 0; | |||
background-color: #fff; | |||
padding: 30px 38px; | |||
border-radius: 10px; | |||
-webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, .1); | |||
-moz-box-shadow: 0 4px 10px rgba(0, 0, 0, .1); | |||
box-shadow: 0 4px 10px rgba(0, 0, 0, .1); | |||
/* overflow: hidden; */ | |||
} | |||
.sQrT2 { | |||
font-weight: bold; | |||
text-align: center; | |||
font-size: 24px; | |||
margin-bottom: 20px; | |||
color: #CC0000; | |||
font-weight: bold; | |||
text-align: center; | |||
font-size: 24px; | |||
margin-bottom: 20px; | |||
color: #CC0000; | |||
} | |||
.sQrList { | |||
background-color: #F8F8F8; | |||
margin: 0 10px; | |||
padding: 10px 30px; | |||
border-radius: 4px | |||
background-color: #F8F8F8; | |||
margin: 0 10px; | |||
padding: 10px 30px; | |||
border-radius: 4px | |||
} | |||
.sQrList div { | |||
padding: 7px 10px; | |||
font-size: 14px; | |||
color: #000; | |||
border-top: 1px solid #D7D7D7; | |||
} | |||
.sQrList div { | |||
padding: 7px 10px; | |||
font-size: 14px; | |||
color: #000; | |||
border-top: 1px solid #D7D7D7; | |||
} | |||
.sQrList div:first-child { | |||
border: 0; | |||
} | |||
.sQrList div:first-child { | |||
border: 0; | |||
} | |||
.sQrList div span { | |||
color: #AEAEAE; | |||
margin-right: 10px; | |||
} | |||
.sQrList div span { | |||
color: #AEAEAE; | |||
margin-right: 10px; | |||
} | |||
.sQrType3 { | |||
background-color: #CC0000; | |||
padding: 20px 0; | |||
text-align: center; | |||
color: #fff; | |||
margin: 30px -38px -30px; | |||
border-radius: 0 0 10px 10px; | |||
background-color: #CC0000; | |||
padding: 20px 0; | |||
text-align: center; | |||
color: #fff; | |||
margin: 30px -38px -30px; | |||
border-radius: 0 0 10px 10px; | |||
} | |||
.sQrType3 > * { | |||
display: inline-block; | |||
vertical-align: middle; | |||
text-align: left; | |||
} | |||
.sQrType3>* { | |||
display: inline-block; | |||
vertical-align: middle; | |||
text-align: left; | |||
} | |||
.sQrTypeT { | |||
font-size: 14px; | |||
font-size: 14px; | |||
} | |||
.sQrTypeTxt { | |||
font-size: 24px; | |||
font-weight: bold; | |||
margin-top: 3px; | |||
font-size: 24px; | |||
font-weight: bold; | |||
margin-top: 3px; | |||
} | |||
.sQrTypeImg { | |||
margin-left: 15px; | |||
width: 43px; | |||
line-height: 0; | |||
margin-left: 15px; | |||
width: 43px; | |||
line-height: 0; | |||
} | |||
.sQrTypeImg img { | |||
width: 100%; | |||
} | |||
.sQrTypeImg img { | |||
width: 100%; | |||
} | |||
.sQrTxt1 { | |||
margin: 30px 50px 20px; | |||
font-size: 14px; | |||
color: #AEAEAE; | |||
margin: 30px 50px 20px; | |||
font-size: 14px; | |||
color: #AEAEAE; | |||
} | |||
.sQrBtn2 { | |||
margin: 20px 20px 0; | |||
background-color: #CED0D0; | |||
/* -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, .1); | |||
margin: 20px 20px 0; | |||
background-color: #CED0D0; | |||
/* -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, .1); | |||
-moz-box-shadow: 0 0 10px rgba(0, 0, 0, .1); | |||
box-shadow: 0 0 10px rgba(0, 0, 0, .1); */ | |||
border-radius: 8px; | |||
height: 50px; | |||
line-height: 50px; | |||
font-weight: bold; | |||
color: #fff; | |||
font-size: 16px; | |||
text-align: center; | |||
} | |||
.sQrBtn2 img { | |||
width: 23px; | |||
margin-right: 10px; | |||
position: relative; | |||
top: 2px; | |||
} | |||
border-radius: 8px; | |||
height: 50px; | |||
line-height: 50px; | |||
font-weight: bold; | |||
color: #fff; | |||
font-size: 16px; | |||
text-align: center; | |||
} | |||
.sQrBtn2 img { | |||
width: 23px; | |||
margin-right: 10px; | |||
position: relative; | |||
top: 2px; | |||
} | |||
.sQrType3 .sQrTypePhoto { | |||
border: 4px solid #CC0000; | |||
border-radius: 4px; | |||
width: 85px; | |||
margin: -30px 10px -30px 0; | |||
background: #fff; | |||
border: 4px solid #CC0000; | |||
border-radius: 4px; | |||
width: 85px; | |||
margin: -30px 10px -30px 0; | |||
background: #fff; | |||
} | |||
.sQrTypePhoto div { | |||
height: 0; | |||
overflow: hidden; | |||
padding-bottom: 139.516129%; | |||
line-height: 0; | |||
height: 0; | |||
overflow: hidden; | |||
padding-bottom: 139.516129%; | |||
line-height: 0; | |||
} | |||
.sQrTypePhoto img { | |||
width: 100%; | |||
width: 100%; | |||
} |
@@ -1,149 +1,149 @@ | |||
#sQrCode { | |||
height: 100%; | |||
background-color: #EEF2F3; | |||
padding-bottom: 30px; | |||
#sQrCode { | |||
height: 100%; | |||
background-color: #EEF2F3; | |||
padding-bottom: 30px; | |||
} | |||
.sQrLogo { | |||
background-image: url(images/xcBg.jpg); | |||
background-size: 100% 100%; | |||
text-align: center; | |||
line-height: 0; | |||
padding: 20px 0 70px; | |||
background-image: url(images/xcBg.jpg); | |||
background-size: 100% 100%; | |||
text-align: center; | |||
line-height: 0; | |||
padding: 20px 0 70px; | |||
} | |||
.sQrLogoImg1 img { | |||
width: 20%; | |||
width: 20%; | |||
} | |||
.sQrLogoImg1 { | |||
margin-bottom: 10px; | |||
margin-bottom: 10px; | |||
} | |||
.sQrLogoImg2 img { | |||
width: 50%; | |||
width: 50%; | |||
} | |||
.sQrBox { | |||
margin: -50px 20px 0; | |||
background-color: #fff; | |||
padding: 30px 38px; | |||
border-radius: 10px; | |||
-webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, .1); | |||
-moz-box-shadow: 0 4px 10px rgba(0, 0, 0, .1); | |||
box-shadow: 0 4px 10px rgba(0, 0, 0, .1); | |||
/* overflow: hidden; */ | |||
margin: -50px 20px 0; | |||
background-color: #fff; | |||
padding: 30px 38px; | |||
border-radius: 10px; | |||
-webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, .1); | |||
-moz-box-shadow: 0 4px 10px rgba(0, 0, 0, .1); | |||
box-shadow: 0 4px 10px rgba(0, 0, 0, .1); | |||
/* overflow: hidden; */ | |||
} | |||
.sQrT2 { | |||
font-weight: bold; | |||
text-align: center; | |||
font-size: 24px; | |||
margin-bottom: 20px; | |||
color: #F8B500; | |||
font-weight: bold; | |||
text-align: center; | |||
font-size: 24px; | |||
margin-bottom: 20px; | |||
color: #F8B500; | |||
} | |||
.sQrList { | |||
background-color: #F8F8F8; | |||
margin: 0 10px; | |||
padding: 10px 30px; | |||
border-radius: 4px | |||
background-color: #F8F8F8; | |||
margin: 0 10px; | |||
padding: 10px 30px; | |||
border-radius: 4px | |||
} | |||
.sQrList div { | |||
padding: 7px 10px; | |||
font-size: 14px; | |||
color: #000; | |||
border-top: 1px solid #D7D7D7; | |||
} | |||
.sQrList div { | |||
padding: 7px 10px; | |||
font-size: 14px; | |||
color: #000; | |||
border-top: 1px solid #D7D7D7; | |||
} | |||
.sQrList div:first-child { | |||
border: 0; | |||
} | |||
.sQrList div:first-child { | |||
border: 0; | |||
} | |||
.sQrList div span { | |||
color: #AEAEAE; | |||
margin-right: 10px; | |||
} | |||
.sQrList div span { | |||
color: #AEAEAE; | |||
margin-right: 10px; | |||
} | |||
.sQrType2 { | |||
background-color: #F8B500; | |||
padding: 20px 0; | |||
text-align: center; | |||
color: #fff; | |||
margin: 30px -38px -30px; | |||
border-radius: 0 0 10px 10px; | |||
background-color: #F8B500; | |||
padding: 20px 0; | |||
text-align: center; | |||
color: #fff; | |||
margin: 30px -38px -30px; | |||
border-radius: 0 0 10px 10px; | |||
} | |||
.sQrType2 > * { | |||
display: inline-block; | |||
vertical-align: middle; | |||
text-align: left; | |||
} | |||
.sQrType2>* { | |||
display: inline-block; | |||
vertical-align: middle; | |||
text-align: left; | |||
} | |||
.sQrTypeT { | |||
font-size: 14px; | |||
font-size: 14px; | |||
} | |||
.sQrTypeTxt { | |||
font-size: 24px; | |||
font-weight: bold; | |||
margin-top: 3px; | |||
font-size: 24px; | |||
font-weight: bold; | |||
margin-top: 3px; | |||
} | |||
.sQrTypeImg { | |||
margin-left: 15px; | |||
width: 43px; | |||
line-height: 0; | |||
margin-left: 15px; | |||
width: 43px; | |||
line-height: 0; | |||
} | |||
.sQrTypeImg img { | |||
width: 100%; | |||
} | |||
.sQrTypeImg img { | |||
width: 100%; | |||
} | |||
.sQrTxt1 { | |||
margin: 30px 50px 20px; | |||
font-size: 14px; | |||
color: #AEAEAE; | |||
margin: 30px 50px 20px; | |||
font-size: 14px; | |||
color: #AEAEAE; | |||
} | |||
.sQrBtn3 { | |||
margin: 20px 20px 0; | |||
background-color: #CED0D0; | |||
/* -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, .1); | |||
margin: 20px 20px 0; | |||
background-color: #CED0D0; | |||
/* -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, .1); | |||
-moz-box-shadow: 0 0 10px rgba(0, 0, 0, .1); | |||
box-shadow: 0 0 10px rgba(0, 0, 0, .1); */ | |||
border-radius: 8px; | |||
height: 50px; | |||
line-height: 50px; | |||
font-weight: bold; | |||
color: #fff; | |||
font-size: 16px; | |||
text-align: center; | |||
} | |||
.sQrBtn3 img { | |||
width: 23px; | |||
margin-right: 10px; | |||
position: relative; | |||
top: 2px; | |||
} | |||
border-radius: 8px; | |||
height: 50px; | |||
line-height: 50px; | |||
font-weight: bold; | |||
color: #fff; | |||
font-size: 16px; | |||
text-align: center; | |||
} | |||
.sQrBtn3 img { | |||
width: 23px; | |||
margin-right: 10px; | |||
position: relative; | |||
top: 2px; | |||
} | |||
.sQrType2 .sQrTypePhoto { | |||
border: 4px solid #F8B500; | |||
border-radius: 4px; | |||
width: 85px; | |||
margin: -30px 10px -30px 0; | |||
background: #fff; | |||
border: 4px solid #F8B500; | |||
border-radius: 4px; | |||
width: 85px; | |||
margin: -30px 10px -30px 0; | |||
background: #fff; | |||
} | |||
.sQrTypePhoto div { | |||
height: 0; | |||
overflow: hidden; | |||
padding-bottom: 139.516129%; | |||
line-height: 0; | |||
height: 0; | |||
overflow: hidden; | |||
padding-bottom: 139.516129%; | |||
line-height: 0; | |||
} | |||
.sQrTypePhoto img { | |||
width: 100%; | |||
width: 100%; | |||
} |
@@ -1,4 +1,4 @@ | |||
(function () { | |||
(function () { | |||
var $header = null; | |||
var stuNo = ''; | |||
var page = { | |||
@@ -7,7 +7,7 @@ | |||
stuNo = param.stuNo; | |||
// 添加头部按钮列表 | |||
$header = $page.parents('.f-page').find('.f-page-header'); | |||
learun.httpget(config.webapi + 'learun/EducationalAdministration/StuInfoBasic/stuinfoDetail',stuNo, function (data) { | |||
learun.httpget(config.webapi + 'learun/adms/EducationalAdministration/StuInfoBasic/stuinfoDetail',stuNo, function (data) { | |||
console.log(data); | |||
$('.sQrList div strong').eq(0).html(data.stuInfo.StuName); | |||
$('.sQrList div strong').eq(1).html(data.majorInfo.MajorName); | |||
@@ -19,7 +19,6 @@ | |||
$('.sQrTypePhoto img').attr('src', config.web + data.stuInfo.Photo); | |||
} else { | |||
if (data.stuInfo.GenderNo) { | |||
$('.sQrTypePhoto img').attr('src', '/images/on-boy.jpg'); | |||
} else { | |||
@@ -1,149 +1,149 @@ | |||
#sQrCode { | |||
height: 100%; | |||
background-color: #EEF2F3; | |||
padding-bottom: 30px; | |||
#sQrCode { | |||
height: 100%; | |||
background-color: #EEF2F3; | |||
padding-bottom: 30px; | |||
} | |||
.sQrLogo { | |||
background-image: url(images/xcBg.jpg); | |||
background-size: 100% 100%; | |||
text-align: center; | |||
line-height: 0; | |||
padding: 20px 0 70px; | |||
background-image: url(images/xcBg.jpg); | |||
background-size: 100% 100%; | |||
text-align: center; | |||
line-height: 0; | |||
padding: 20px 0 70px; | |||
} | |||
.sQrLogoImg1 img { | |||
width: 20%; | |||
width: 20%; | |||
} | |||
.sQrLogoImg1 { | |||
margin-bottom: 10px; | |||
margin-bottom: 10px; | |||
} | |||
.sQrLogoImg2 img { | |||
width: 50%; | |||
width: 50%; | |||
} | |||
.sQrBox { | |||
margin: -50px 20px 0; | |||
background-color: #fff; | |||
padding: 30px 38px; | |||
border-radius: 10px; | |||
-webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, .1); | |||
-moz-box-shadow: 0 4px 10px rgba(0, 0, 0, .1); | |||
box-shadow: 0 4px 10px rgba(0, 0, 0, .1); | |||
/* overflow: hidden; */ | |||
margin: -50px 20px 0; | |||
background-color: #fff; | |||
padding: 30px 38px; | |||
border-radius: 10px; | |||
-webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, .1); | |||
-moz-box-shadow: 0 4px 10px rgba(0, 0, 0, .1); | |||
box-shadow: 0 4px 10px rgba(0, 0, 0, .1); | |||
/* overflow: hidden; */ | |||
} | |||
.sQrT2 { | |||
font-weight: bold; | |||
text-align: center; | |||
font-size: 24px; | |||
margin-bottom: 20px; | |||
color: #21A737; | |||
font-weight: bold; | |||
text-align: center; | |||
font-size: 24px; | |||
margin-bottom: 20px; | |||
color: #21A737; | |||
} | |||
.sQrList { | |||
background-color: #F8F8F8; | |||
margin: 0 10px; | |||
padding: 10px 30px; | |||
border-radius: 4px | |||
background-color: #F8F8F8; | |||
margin: 0 10px; | |||
padding: 10px 30px; | |||
border-radius: 4px | |||
} | |||
.sQrList div { | |||
padding: 7px 10px; | |||
font-size: 14px; | |||
color: #000; | |||
border-top: 1px solid #D7D7D7; | |||
} | |||
.sQrList div { | |||
padding: 7px 10px; | |||
font-size: 14px; | |||
color: #000; | |||
border-top: 1px solid #D7D7D7; | |||
} | |||
.sQrList div:first-child { | |||
border: 0; | |||
} | |||
.sQrList div:first-child { | |||
border: 0; | |||
} | |||
.sQrList div span { | |||
color: #AEAEAE; | |||
margin-right: 10px; | |||
} | |||
.sQrList div span { | |||
color: #AEAEAE; | |||
margin-right: 10px; | |||
} | |||
.sQrType1 { | |||
background-color: #21A737; | |||
padding: 20px 0; | |||
text-align: center; | |||
color: #fff; | |||
margin: 30px -38px -30px; | |||
border-radius: 0 0 10px 10px; | |||
background-color: #21A737; | |||
padding: 20px 0; | |||
text-align: center; | |||
color: #fff; | |||
margin: 30px -38px -30px; | |||
border-radius: 0 0 10px 10px; | |||
} | |||
.sQrType1 > * { | |||
display: inline-block; | |||
vertical-align: middle; | |||
text-align: left; | |||
} | |||
.sQrType1>* { | |||
display: inline-block; | |||
vertical-align: middle; | |||
text-align: left; | |||
} | |||
.sQrTypeT { | |||
font-size: 14px; | |||
font-size: 14px; | |||
} | |||
.sQrTypeTxt { | |||
font-size: 24px; | |||
font-weight: bold; | |||
margin-top: 3px; | |||
font-size: 24px; | |||
font-weight: bold; | |||
margin-top: 3px; | |||
} | |||
.sQrTypeImg { | |||
margin-left: 15px; | |||
width: 43px; | |||
line-height: 0; | |||
margin-left: 15px; | |||
width: 43px; | |||
line-height: 0; | |||
} | |||
.sQrTypeImg img { | |||
width: 100%; | |||
} | |||
.sQrTypeImg img { | |||
width: 100%; | |||
} | |||
.sQrTxt1 { | |||
margin: 30px 50px 20px; | |||
font-size: 14px; | |||
color: #AEAEAE; | |||
margin: 30px 50px 20px; | |||
font-size: 14px; | |||
color: #AEAEAE; | |||
} | |||
.sQrBtn1 { | |||
margin: 20px 20px 0; | |||
background-color: #fff; | |||
-webkit-box-shadow: 0 0 10px rgba(0, 0, 0, .1); | |||
-moz-box-shadow: 0 0 10px rgba(0, 0, 0, .1); | |||
box-shadow: 0 0 10px rgba(0, 0, 0, .1); | |||
border-radius: 8px; | |||
height: 50px; | |||
line-height: 50px; | |||
font-weight: bold; | |||
color: #339933; | |||
font-size: 16px; | |||
text-align: center; | |||
} | |||
.sQrBtn1 img { | |||
width: 23px; | |||
margin-right: 10px; | |||
position: relative; | |||
top: 2px; | |||
} | |||
margin: 20px 20px 0; | |||
background-color: #fff; | |||
-webkit-box-shadow: 0 0 10px rgba(0, 0, 0, .1); | |||
-moz-box-shadow: 0 0 10px rgba(0, 0, 0, .1); | |||
box-shadow: 0 0 10px rgba(0, 0, 0, .1); | |||
border-radius: 8px; | |||
height: 50px; | |||
line-height: 50px; | |||
font-weight: bold; | |||
color: #339933; | |||
font-size: 16px; | |||
text-align: center; | |||
} | |||
.sQrBtn1 img { | |||
width: 23px; | |||
margin-right: 10px; | |||
position: relative; | |||
top: 2px; | |||
} | |||
.sQrType1 .sQrTypePhoto { | |||
border: 4px solid #21A737; | |||
border-radius: 4px; | |||
width: 85px; | |||
margin: -30px 10px -30px 0; | |||
background: #fff; | |||
border: 4px solid #21A737; | |||
border-radius: 4px; | |||
width: 85px; | |||
margin: -30px 10px -30px 0; | |||
background: #fff; | |||
} | |||
.sQrTypePhoto div { | |||
height: 0; | |||
overflow: hidden; | |||
padding-bottom: 139.516129%; | |||
line-height: 0; | |||
height: 0; | |||
overflow: hidden; | |||
padding-bottom: 139.516129%; | |||
line-height: 0; | |||
} | |||
.sQrTypePhoto img { | |||
width: 100%; | |||
width: 100%; | |||
} |
@@ -1,11 +1,6 @@ | |||
<div class="lr-form-container" id="sQrCode"> | |||
<div class="lr-form-container" id="sQrCode"> | |||
<div class="sQrCode"> | |||
<div class="sQrLogo"> | |||
<!-- <div class="sTabBox"> | |||
<div id="aa">正常</div> | |||
<div id="bb">异常微弱</div> | |||
<div id="cc">异常严重</div> | |||
</div> --> | |||
<div class="sQrLogoImg1"><img src="images/logoXc.png" alt=""></div> | |||
<div class="sQrLogoImg2"><img src="images/logoXcTxt.png" alt=""></div> | |||
</div> | |||
@@ -1,4 +1,4 @@ | |||
(function () { | |||
(function () { | |||
var keyValue = ''; | |||
var $header = null; | |||
var page = { | |||
@@ -22,18 +22,18 @@ | |||
var logininfo = learun.storage.get('userinfo'); | |||
//learun.httpget(config.webapi + 'learun/EducationalAdministration/StuInfoBasic/stuinfoDetail',logininfo.baseinfo.account, function (data) { | |||
////learun.httpget(config.webapi + 'learun/EducationalAdministration/StuInfoBasic/stuinfoDetail','2018010108', function (data) { | |||
// console.log(data); | |||
// $('.sQrList div strong').eq(0).html(data.stuInfo.StuName); | |||
// $('.sQrList div strong').eq(1).html(data.majorInfo.MajorName); | |||
// $('.sQrList div strong').eq(2).html(data.classInfo.ClassName); | |||
// $('.sQrList div strong').eq(3).html(data.stuInfo.StuNo); | |||
// $('.sQrList div strong').eq(4).html(data.roomInfo); | |||
// //$('.sQrList div strong').eq(4).html(data.stuInfo.Photo); //学生照片 | |||
learun.httpget(config.webapi + 'learun/adms/EducationalAdministration/StuInfoBasic/stuinfoDetail','2018010108', function (data) { | |||
console.log(data); | |||
$('.sQrList div strong').eq(0).html(data.stuInfo.StuName); | |||
$('.sQrList div strong').eq(1).html(data.majorInfo.MajorName); | |||
$('.sQrList div strong').eq(2).html(data.classInfo.ClassName); | |||
$('.sQrList div strong').eq(3).html(data.stuInfo.StuNo); | |||
$('.sQrList div strong').eq(4).html(data.roomInfo); | |||
//$('.sQrList div strong').eq(4).html(data.stuInfo.Photo); //学生照片 | |||
// learun.code.encode({ id: 'lr_mycode_qrcode', text: data.stuInfo.StuNo }); | |||
//}) | |||
learun.code.encode({ id: 'lr_mycode_qrcode', text: '2019010211' }); | |||
learun.code.encode({ id: 'lr_mycode_qrcode', text: data.stuInfo.StuNo }); | |||
}) | |||
//learun.code.encode({ id: 'lr_mycode_qrcode', text: '2019010211' }); | |||
}, | |||
bind: function ($page, param) { | |||
@@ -0,0 +1 @@ | |||
|
@@ -0,0 +1,23 @@ | |||
<div class="lr-page lr-EducationalAdministrationSys_ReceiveComplaint-page"> | |||
<div class="lr-page-tool"> | |||
<div class="lr-tool-left"> | |||
总共<span class="lr-badge lr-badge-primary">0</span>条 | |||
</div> | |||
<div class="lr-tool-right"> | |||
<div class="lr-tool-right-btn lr_multiple_search"> | |||
<i class="iconfont icon-searchlist"></i> | |||
<div class="lr-tool-right-btn-content lr-form-container"> | |||
<div class="lr-form-row"> | |||
<label>主题</label> | |||
<input id="Title" type="text"> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-tool-right-btn lr_time_search"> | |||
<i class="iconfont icon-time"></i> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-page-content" id="lr_EducationalAdministrationSys_ReceiveComplaint_list"></div> | |||
</div> |
@@ -0,0 +1,129 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2021-04-30 16:33 | |||
* 描 述:接收投诉意见 | |||
*/ | |||
(function () { | |||
var begin = ''; | |||
var end = ''; | |||
var multipleData = null; | |||
var page = { | |||
grid: null, | |||
init: function ($page) { | |||
begin = ''; | |||
end = ''; | |||
multipleData = null; | |||
page.grid = $page.find('#lr_EducationalAdministrationSys_ReceiveComplaint_list').lrpagination({ | |||
lclass: page.lclass, | |||
rows: 10, // 每页行数 | |||
getData: function (param, callback) {// 获取数据 param 分页参数,callback 异步回调 | |||
param.begin = begin; | |||
param.end = end; | |||
param.multipleData = multipleData; | |||
page.loadData(param, callback, $page); | |||
}, | |||
renderData: function (_index, _item, _$item) {// 渲染数据模板 | |||
return page.rowRender(_index, _item, _$item, $page); | |||
}, | |||
click: function (item, $item, $et) {// 列表行点击事件 | |||
if ($et.hasClass('lr-btn-danger')) { | |||
page.btnClick(item, $item, $page); | |||
} | |||
else { | |||
page.rowClick(item, $item, $page); | |||
} | |||
}, | |||
btns: page.rowBtns | |||
}); | |||
// 时间搜索 | |||
$page.find('.lr_time_search').searchdate({ | |||
callback: function (_begin, _end) { | |||
begin = _begin; | |||
end = _end; | |||
multipleData = null; | |||
page.grid.reload(); | |||
} | |||
}); | |||
// 多条件查询 | |||
var $multiple = $page.find('.lr_multiple_search').multiplequery({ | |||
callback: function (data) { | |||
begin = ''; | |||
end = ''; | |||
multipleData = data || {}; | |||
page.grid.reload(); | |||
} | |||
}); | |||
}, | |||
lclass: 'lr-list', | |||
loadData: function (param, callback, $page) {// 列表加载后台数据 | |||
var _postParam = { | |||
pagination: { | |||
rows: param.rows, | |||
page: param.page, | |||
sidx: 'SendTime desc', | |||
sord: 'DESC' | |||
}, | |||
queryJson: JSON.stringify({ ReceiverId: learun.storage.get('userinfo').baseinfo.userId }) | |||
}; | |||
if (param.multipleData) { | |||
multipleData.ReceiverId = learun.storage.get('userinfo').baseinfo.userId; | |||
_postParam.queryJson = JSON.stringify(multipleData); | |||
} | |||
if (param.begin && param.end) { | |||
_postParam.queryJson = JSON.stringify({ StartTime: param.begin, EndTime: param.end, ReceiverId: learun.storage.get('userinfo').baseinfo.userId }); | |||
} | |||
learun.httpget(config.webapi + 'learun/adms/EducationalAdministration/Sys_ReceiveComplaint/pagelist', _postParam, (data) => { | |||
$page.find('.lr-badge').text('0'); | |||
if (data) { | |||
$page.find('.lr-badge').text(data.records); | |||
callback(data.rows, parseInt(data.records)); | |||
} | |||
else { | |||
callback([], 0); | |||
} | |||
}); | |||
}, | |||
rowRender: function (_index, _item, _$item, $page) {// 渲染列表行数据 | |||
_$item.addClass('lr-list-item lr-list-item-multi'); | |||
_$item.append($('<p class="lr-ellipsis"><span>投诉编号:</span></p>').dataFormatter({ value: _item.ComplaintCode })); | |||
_$item.append($('<p class="lr-ellipsis"><span>主题:</span></p>').dataFormatter({ value: _item.Title })); | |||
_$item.append($('<p class="lr-ellipsis"><span>指派人:</span></p>').dataFormatter({ value: _item.Sender })); | |||
_$item.append($('<p class="lr-ellipsis"><span>指派时间:</span></p>').dataFormatter({ | |||
value: _item.SendTime, | |||
type: 'datetime', | |||
dateformat: 'yyyy-MM-dd hh:mm:ss' | |||
})); | |||
_$item.append($('<p class="lr-ellipsis"><span>回复状态:</span></p>').dataFormatter({ value: _item.ReplyFlag == 1 ? "已回复" : "未回复" })); | |||
_$item.append($('<p class="lr-ellipsis"><span>回复时间:</span></p>').dataFormatter({ | |||
value: _item.ReplyTime, | |||
type: 'datetime', | |||
dateformat: 'yyyy-MM-dd hh:mm:ss' | |||
})); | |||
return ''; | |||
}, | |||
rowClick: function (item, $item, $page) {// 列表行点击触发方法 | |||
learun.nav.go({ path: 'EducationalAdministration/Sys_ReceiveComplaint/form', title: '详情', type: 'right', param: { keyValue: item.RComplaintId, ReplyFlag: item.ReplyFlag } }); | |||
}, | |||
btnClick: function (item, $item, $page) {// 左滑按钮点击事件 | |||
if (item.ReplyFlag !== 1) { | |||
learun.layer.warning("当前投诉意见未回复,无法删除!"); | |||
return false; | |||
} | |||
learun.layer.confirm('确定要删除该笔数据吗?', function (_index) { | |||
if (_index === '1') { | |||
learun.layer.loading(true, '正在删除该笔数据'); | |||
learun.httppost(config.webapi + 'learun/adms/EducationalAdministration/Sys_ReceiveComplaint/delete', item.RComplaintId, (data) => { | |||
if (data) {// 删除数据成功 | |||
page.grid.reload(); | |||
} | |||
learun.layer.loading(false); | |||
}); | |||
} | |||
}, '智慧校园提示', ['取消', '确定']); | |||
}, | |||
rowBtns: ['<a class="lr-btn-danger">删除</a>'] // 列表行左滑按钮 | |||
}; | |||
return page; | |||
})(); |
@@ -0,0 +1 @@ | |||
|
@@ -0,0 +1,17 @@ | |||
<div class="lr-form-container"> | |||
<div class="lr-form-row " data-table="Sys_ReceiveComplaint"> | |||
<font face="宋体">*</font> | |||
<label>主题</label> | |||
<input id="Title" type="text" isvalid="yes" checkexpession="NotNull" errormsg="主题" readonly="readonly" /> | |||
</div> | |||
<div class="lr-form-row lr-form-row-multi" data-table="Sys_ReceiveComplaint"> | |||
<font face="宋体">*</font> | |||
<label>投诉意见</label> | |||
<textarea id="Contents" isvalid="yes" checkexpession="NotNull" errormsg="投诉意见" readonly="readonly"></textarea> | |||
</div> | |||
<div class="lr-form-row lr-form-row-multi" data-table="Sys_ReceiveComplaint"> | |||
<font face="宋体">*</font> | |||
<label>回复内容</label> | |||
<textarea id="ReplyContents" isvalid="yes" checkexpession="NotNull" errormsg="回复内容"></textarea> | |||
</div> | |||
</div> |
@@ -0,0 +1,154 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2021-04-30 16:33 | |||
* 描 述:接收投诉意见 | |||
*/ | |||
(function () { | |||
var keyValue = ''; | |||
var ReplyFlag = '';//回复状态 | |||
var $header = null; | |||
var titleText = ''; | |||
var page = { | |||
isScroll: true, | |||
init: function ($page, param) { | |||
keyValue = param.keyValue; | |||
ReplyFlag = param.ReplyFlag; | |||
// 添加头部按钮列表 | |||
var _html = '\ | |||
<div class="lr-form-header-cancel" >取消</div>\ | |||
<div class="lr-form-header-btnlist" >\ | |||
<div class="lr-form-header-more" ><i class="iconfont icon-more" ></i></div>\ | |||
<div class="lr-form-header-edit" ><i class="iconfont icon-edit" ></i></div>\ | |||
</div>\ | |||
<div class="lr-form-header-submit" >提交</div>'; | |||
$header = $page.parents('.f-page').find('.f-page-header'); | |||
$header.append(_html); | |||
// 取消 | |||
$header.find('.lr-form-header-cancel').on('tap', function () { | |||
learun.layer.confirm('确定要退出当前编辑?', function (_index) { | |||
if (_index === '1') { | |||
if (keyValue) {// 如果是编辑状态 | |||
learun.formblur(); | |||
$header.find('.lr-form-header-cancel').hide(); | |||
$header.find('.lr-form-header-submit').hide(); | |||
$header.find('.lr-form-header-btnlist').show(); | |||
$header.find('.f-page-title').text(titleText); | |||
$page.find('.lr-form-container').setFormRead(); | |||
} | |||
else {// 如果是新增状态 关闭当前页面 | |||
learun.nav.closeCurrent(); | |||
} | |||
} | |||
}, '智慧校园提示', ['取消', '确定']); | |||
}); | |||
// 编辑 | |||
$header.find('.lr-form-header-edit').on('tap', function () { | |||
if (keyValue) { | |||
if (ReplyFlag !== 0) { | |||
learun.layer.warning("当前投诉意见已回复!"); | |||
return false; | |||
} | |||
} | |||
$header.find('.lr-form-header-btnlist').hide(); | |||
$header.find('.lr-form-header-cancel').show(); | |||
$header.find('.lr-form-header-submit').show(); | |||
titleText = $header.find('.f-page-title').text(); | |||
$header.find('.f-page-title').text('编辑'); | |||
$page.find('.lr-form-container').setFormWrite(); | |||
}); | |||
// 更多 | |||
$header.find('.lr-form-header-more').on('tap', function () { | |||
learun.actionsheet({ | |||
id: 'more', | |||
data: [ | |||
{ | |||
text: '删除', | |||
mark: true, | |||
event: function () {// 删除当前条信息 | |||
learun.layer.confirm('确定要删除该笔数据吗?', function (_index) { | |||
if (_index === '1') { | |||
learun.layer.loading(true, '正在删除该笔数据'); | |||
learun.httppost(config.webapi + 'learun/adms/EducationalAdministration/Sys_ReceiveComplaint/delete', keyValue, (data) => { | |||
learun.layer.loading(false); | |||
if (data) {// 删除数据成功 | |||
learun.nav.closeCurrent(); | |||
var prepage = learun.nav.getpage('EducationalAdministration/Sys_ReceiveComplaint'); | |||
prepage.grid.reload(); | |||
} | |||
}); | |||
} | |||
}, '智慧校园提示', ['取消', '确定']); | |||
} | |||
} | |||
], | |||
cancel: function () { | |||
} | |||
}); | |||
}); | |||
// 提交 | |||
$header.find('.lr-form-header-submit').on('tap', function () { | |||
// 获取表单数据 | |||
if (!$page.find('.lr-form-container').lrformValid()) { | |||
return false; | |||
} | |||
var _postData = {} | |||
_postData.keyValue = keyValue; | |||
_postData.strEntity = JSON.stringify($page.find('.lr-form-container').lrformGet()); | |||
learun.layer.loading(true, '正在提交数据'); | |||
learun.httppost(config.webapi + 'learun/adms/EducationalAdministration/Sys_ReceiveComplaint/save', _postData, (data) => { | |||
learun.layer.loading(false); | |||
if (data) {// 表单数据保存成功 | |||
if (keyValue) { | |||
learun.layer.toast('保存数据成功!'); | |||
learun.formblur(); | |||
$header.find('.lr-form-header-cancel').hide(); | |||
$header.find('.lr-form-header-submit').hide(); | |||
$header.find('.lr-form-header-btnlist').show(); | |||
$header.find('.f-page-title').text(titleText); | |||
$page.find('.lr-form-container').setFormRead(); | |||
} | |||
else {// 如果是 | |||
learun.nav.closeCurrent(); | |||
} | |||
var prepage = learun.nav.getpage('EducationalAdministration/Sys_ReceiveComplaint'); | |||
prepage.grid.reload(); | |||
} | |||
}); | |||
}); | |||
page.bind($page, param); | |||
if (keyValue) { | |||
// 添加编辑按钮 | |||
$page.find('.lr-form-container').setFormRead(); | |||
$header.find('.lr-form-header-btnlist').show(); | |||
// 获取表单数据 | |||
learun.layer.loading(true, '获取表单数据'); | |||
learun.httpget(config.webapi + 'learun/adms/EducationalAdministration/Sys_ReceiveComplaint/form', keyValue, (data) => { | |||
if (data) { | |||
for (var id in data) { | |||
if (data[id].length) { | |||
$page.find('#' + id).lrgridSet(data[id]); | |||
} | |||
else { | |||
$page.find('[data-table="' + id + '"]').lrformSet(data[id]); | |||
} | |||
} | |||
} | |||
learun.layer.loading(false); | |||
}); | |||
} | |||
else { | |||
$header.find('.lr-form-header-cancel').show(); | |||
$header.find('.lr-form-header-submit').show(); | |||
} | |||
}, | |||
bind: function ($page, param) { | |||
}, destroy: function (pageinfo) { | |||
$header = null; | |||
keyValue = ''; | |||
} | |||
}; | |||
return page; | |||
})(); | |||
@@ -0,0 +1 @@ | |||
|
@@ -0,0 +1,27 @@ | |||
<div class="lr-page lr-EducationalAdministrationSys_SendComplaintAssign-page"> | |||
<div class="lr-page-tool"> | |||
<div class="lr-tool-left"> | |||
总共<span class="lr-badge lr-badge-primary">0</span>条 | |||
</div> | |||
<div class="lr-tool-right"> | |||
<div class="lr-tool-right-btn lr_multiple_search"> | |||
<i class="iconfont icon-searchlist"></i> | |||
<div class="lr-tool-right-btn-content lr-form-container"> | |||
<div class="lr-form-row"> | |||
<label>主题</label> | |||
<input id="Title" type="text"> | |||
</div> | |||
<div class="lr-form-row"> | |||
<label>投诉编号</label> | |||
<input id="ComplaintCode" type="text"> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-tool-right-btn lr_time_search"> | |||
<i class="iconfont icon-time"></i> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-page-content" id="lr_EducationalAdministrationSys_SendComplaintAssign_list"></div> | |||
</div> |
@@ -0,0 +1,121 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2021-04-30 16:33 | |||
* 描 述:发送投诉意见 | |||
*/ | |||
(function () { | |||
var begin = ''; | |||
var end = ''; | |||
var multipleData = null; | |||
var page = { | |||
grid: null, | |||
init: function ($page) { | |||
begin = ''; | |||
end = ''; | |||
multipleData = null; | |||
page.grid = $page.find('#lr_EducationalAdministrationSys_SendComplaintAssign_list').lrpagination({ | |||
lclass: page.lclass, | |||
rows: 10, // 每页行数 | |||
getData: function (param, callback) {// 获取数据 param 分页参数,callback 异步回调 | |||
param.begin = begin; | |||
param.end = end; | |||
param.multipleData = multipleData; | |||
page.loadData(param, callback, $page); | |||
}, | |||
renderData: function (_index, _item, _$item) {// 渲染数据模板 | |||
return page.rowRender(_index, _item, _$item, $page); | |||
}, | |||
click: function (item, $item, $et) {// 列表行点击事件 | |||
if ($et.hasClass('lr-btn-danger')) { | |||
//page.btnClick(item, $item, $page); | |||
} | |||
else { | |||
page.rowClick(item, $item, $page); | |||
} | |||
}, | |||
btns: page.rowBtns | |||
}); | |||
// 时间搜索 | |||
$page.find('.lr_time_search').searchdate({ | |||
callback: function (_begin, _end) { | |||
begin = _begin; | |||
end = _end; | |||
multipleData = null; | |||
page.grid.reload(); | |||
} | |||
}); | |||
// 多条件查询 | |||
var $multiple = $page.find('.lr_multiple_search').multiplequery({ | |||
callback: function (data) { | |||
begin = ''; | |||
end = ''; | |||
multipleData = data || {}; | |||
page.grid.reload(); | |||
} | |||
}); | |||
}, | |||
lclass: 'lr-list', | |||
loadData: function (param, callback, $page) {// 列表加载后台数据 | |||
var _postParam = { | |||
pagination: { | |||
rows: param.rows, | |||
page: param.page, | |||
sidx: 'SendTime desc', | |||
sord: 'DESC' | |||
}, | |||
queryJson: JSON.stringify({ SendFlag: "1" }) | |||
}; | |||
if (param.multipleData) { | |||
multipleData.SendFlag = "1"; | |||
_postParam.queryJson = JSON.stringify(multipleData); | |||
} | |||
if (param.begin && param.end) { | |||
_postParam.queryJson = JSON.stringify({ StartTime: param.begin, EndTime: param.end, SendFlag: "1" }); | |||
} | |||
learun.httpget(config.webapi + 'learun/adms/EducationalAdministration/Sys_SendComplaint/pagelist', _postParam, (data) => { | |||
$page.find('.lr-badge').text('0'); | |||
if (data) { | |||
$page.find('.lr-badge').text(data.records); | |||
callback(data.rows, parseInt(data.records)); | |||
} | |||
else { | |||
callback([], 0); | |||
} | |||
}); | |||
}, | |||
rowRender: function (_index, _item, _$item, $page) {// 渲染列表行数据 | |||
_$item.addClass('lr-list-item lr-list-item-multi'); | |||
_$item.append($('<p class="lr-ellipsis"><span>投诉编号:</span></p>').dataFormatter({ value: _item.ComplaintCode })); | |||
_$item.append($('<p class="lr-ellipsis"><span>主题:</span></p>').dataFormatter({ value: _item.Title })); | |||
_$item.append($('<p class="lr-ellipsis"><span>投诉人:</span></p>').dataFormatter({ value: _item.CreateUserName })); | |||
_$item.append($('<p class="lr-ellipsis"><span>指派状态:</span></p>').dataFormatter({ value: _item.AssignFlag == 1 ? "已指派" : "未指派" })); | |||
_$item.append($('<p class="lr-ellipsis"><span>指派时间:</span></p>').dataFormatter({ | |||
value: _item.AssignTime, | |||
type: 'datetime', | |||
dateformat: 'yyyy-MM-dd hh:mm:ss' | |||
})); | |||
_$item.append($('<p class="lr-ellipsis"><span>接收人:</span></p>').dataFormatter({ value: _item.Receiver })); | |||
return ''; | |||
}, | |||
rowClick: function (item, $item, $page) {// 列表行点击触发方法 | |||
learun.nav.go({ path: 'EducationalAdministration/Sys_SendComplaint/Assign/form', title: '详情', type: 'right', param: { keyValue: item.SComplaintId, AssignFlag: item.AssignFlag } }); | |||
}, | |||
//btnClick: function (item, $item, $page) {// 左滑按钮点击事件 | |||
// learun.layer.confirm('确定要删除该笔数据吗?', function (_index) { | |||
// if (_index === '1') { | |||
// learun.layer.loading(true, '正在删除该笔数据'); | |||
// learun.httppost(config.webapi + 'learun/adms/EducationalAdministration/Sys_SendComplaint/delete', item.SComplaintId, (data) => { | |||
// if (data) {// 删除数据成功 | |||
// page.grid.reload(); | |||
// } | |||
// learun.layer.loading(false); | |||
// }); | |||
// } | |||
// }, '智慧校园提示', ['取消', '确定']); | |||
//}, | |||
rowBtns: [] // 列表行左滑按钮 | |||
}; | |||
return page; | |||
})(); |
@@ -0,0 +1 @@ | |||
|
@@ -0,0 +1,22 @@ | |||
<div class="lr-form-container"> | |||
<div class="lr-form-row " data-table="Sys_SendComplaint"> | |||
<font face="宋体">*</font> | |||
<label>投诉编号</label> | |||
<input id="ComplaintCode" type="text" isvalid="yes" checkexpession="NotNull" errormsg="投诉编号" readonly="readonly" /> | |||
</div> | |||
<div class="lr-form-row " data-table="Sys_SendComplaint"> | |||
<font face="宋体">*</font> | |||
<label>主题</label> | |||
<input id="Title" type="text" isvalid="yes" checkexpession="NotNull" errormsg="主题" readonly="readonly" /> | |||
</div> | |||
<div class="lr-form-row lr-form-row-multi" data-table="Sys_SendComplaint"> | |||
<font face="宋体">*</font> | |||
<label>投诉意见</label> | |||
<textarea id="Contents" isvalid="yes" checkexpession="NotNull" errormsg="投诉意见" readonly="readonly"></textarea> | |||
</div> | |||
<div class="lr-form-row " data-table="Sys_SendComplaint"> | |||
<font face="宋体">*</font> | |||
<label>接收人</label> | |||
<div id="ReceiverUserId" isvalid="yes" checkexpession="NotNull" errormsg="接收人" ></div> | |||
</div> | |||
</div> |
@@ -0,0 +1,159 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2021-04-30 16:33 | |||
* 描 述:发送投诉意见 | |||
*/ | |||
(function () { | |||
var keyValue = ''; | |||
var AssignFlag = '';//指派状态 | |||
var $header = null; | |||
var titleText = ''; | |||
var page = { | |||
isScroll: true, | |||
init: function ($page, param) { | |||
keyValue = param.keyValue; | |||
AssignFlag = param.AssignFlag; | |||
// 添加头部按钮列表 | |||
var _html = '\ | |||
<div class="lr-form-header-cancel" >取消</div>\ | |||
<div class="lr-form-header-btnlist" >\ | |||
<div class="lr-form-header-more" ><i class="iconfont icon-more" ></i></div>\ | |||
<div class="lr-form-header-edit" ><i class="iconfont icon-edit" ></i></div>\ | |||
</div>\ | |||
<div class="lr-form-header-submit" >提交</div>'; | |||
$header = $page.parents('.f-page').find('.f-page-header'); | |||
$header.append(_html); | |||
// 取消 | |||
$header.find('.lr-form-header-cancel').on('tap', function () { | |||
learun.layer.confirm('确定要退出当前编辑?', function (_index) { | |||
if (_index === '1') { | |||
if (keyValue) {// 如果是编辑状态 | |||
learun.formblur(); | |||
$header.find('.lr-form-header-cancel').hide(); | |||
$header.find('.lr-form-header-submit').hide(); | |||
$header.find('.lr-form-header-btnlist').show(); | |||
$header.find('.f-page-title').text(titleText); | |||
$page.find('.lr-form-container').setFormRead(); | |||
} | |||
else {// 如果是新增状态 关闭当前页面 | |||
learun.nav.closeCurrent(); | |||
} | |||
} | |||
}, '智慧校园提示', ['取消', '确定']); | |||
}); | |||
// 编辑 | |||
$header.find('.lr-form-header-edit').on('tap', function () { | |||
if (keyValue) { | |||
if (AssignFlag !== 0) { | |||
learun.layer.warning("当前投诉意见已指派!"); | |||
return false; | |||
} | |||
} | |||
$header.find('.lr-form-header-btnlist').hide(); | |||
$header.find('.lr-form-header-cancel').show(); | |||
$header.find('.lr-form-header-submit').show(); | |||
titleText = $header.find('.f-page-title').text(); | |||
$header.find('.f-page-title').text('编辑'); | |||
$page.find('.lr-form-container').setFormWrite(); | |||
}); | |||
// 更多 | |||
$header.find('.lr-form-header-more').on('tap', function () { | |||
learun.actionsheet({ | |||
id: 'more', | |||
data: [ | |||
//{ | |||
// text: '删除', | |||
// mark: true, | |||
// event: function () {// 删除当前条信息 | |||
// learun.layer.confirm('确定要删除该笔数据吗?', function (_index) { | |||
// if (_index === '1') { | |||
// learun.layer.loading(true, '正在删除该笔数据'); | |||
// learun.httppost(config.webapi + 'learun/adms/EducationalAdministration/Sys_SendComplaint/delete', keyValue, (data) => { | |||
// learun.layer.loading(false); | |||
// if (data) {// 删除数据成功 | |||
// learun.nav.closeCurrent(); | |||
// var prepage = learun.nav.getpage('EducationalAdministration/Sys_SendComplaint'); | |||
// prepage.grid.reload(); | |||
// } | |||
// }); | |||
// } | |||
// }, '智慧校园提示', ['取消', '确定']); | |||
// } | |||
//} | |||
], | |||
cancel: function () { | |||
} | |||
}); | |||
}); | |||
// 提交 | |||
$header.find('.lr-form-header-submit').on('tap', function () { | |||
// 获取表单数据 | |||
if (!$page.find('.lr-form-container').lrformValid()) { | |||
return false; | |||
} | |||
var formData = $page.find('.lr-form-container').lrformGet(); | |||
formData.Receiver = $page.find("#ReceiverUserId").find("div").text(); | |||
var _postData = {} | |||
_postData.keyValue = keyValue; | |||
_postData.strEntity = JSON.stringify(formData); | |||
learun.layer.loading(true, '正在提交数据'); | |||
learun.httppost(config.webapi + 'learun/adms/EducationalAdministration/Sys_SendComplaint/saveAssign', _postData, (data) => { | |||
learun.layer.loading(false); | |||
if (data) {// 表单数据保存成功 | |||
if (keyValue) { | |||
learun.layer.toast('保存数据成功!'); | |||
learun.formblur(); | |||
$header.find('.lr-form-header-cancel').hide(); | |||
$header.find('.lr-form-header-submit').hide(); | |||
$header.find('.lr-form-header-btnlist').show(); | |||
$header.find('.f-page-title').text(titleText); | |||
$page.find('.lr-form-container').setFormRead(); | |||
} | |||
else {// 如果是 | |||
learun.nav.closeCurrent(); | |||
} | |||
var prepage = learun.nav.getpage('EducationalAdministration/Sys_SendComplaint/Assign'); | |||
prepage.grid.reload(); | |||
} | |||
}); | |||
}); | |||
page.bind($page, param); | |||
if (keyValue) { | |||
// 添加编辑按钮 | |||
$page.find('.lr-form-container').setFormRead(); | |||
$header.find('.lr-form-header-btnlist').show(); | |||
// 获取表单数据 | |||
learun.layer.loading(true, '获取表单数据'); | |||
learun.httpget(config.webapi + 'learun/adms/EducationalAdministration/Sys_SendComplaint/form', keyValue, (data) => { | |||
if (data) { | |||
for (var id in data) { | |||
if (data[id].length) { | |||
$page.find('#' + id).lrgridSet(data[id]); | |||
} | |||
else { | |||
$page.find('[data-table="' + id + '"]').lrformSet(data[id]); | |||
} | |||
} | |||
} | |||
learun.layer.loading(false); | |||
}); | |||
} | |||
else { | |||
$header.find('.lr-form-header-cancel').show(); | |||
$header.find('.lr-form-header-submit').show(); | |||
} | |||
}, | |||
bind: function ($page, param) { | |||
$page.find('#ReceiverUserId').lrselect({ | |||
type: 'user', | |||
needPre: false | |||
}); | |||
}, destroy: function (pageinfo) { | |||
$header = null; | |||
keyValue = ''; | |||
} | |||
}; | |||
return page; | |||
})(); | |||
@@ -0,0 +1 @@ | |||
|
@@ -0,0 +1,29 @@ | |||
<div class="lr-page lr-EducationalAdministrationSys_SendComplaint-page"> | |||
<div class="lr-page-tool"> | |||
<div class="lr-tool-left"> | |||
总共<span class="lr-badge lr-badge-primary">0</span>条 | |||
</div> | |||
<div class="lr-tool-right"> | |||
<div class="lr-tool-right-btn lr_multiple_search"> | |||
<i class="iconfont icon-searchlist"></i> | |||
<div class="lr-tool-right-btn-content lr-form-container"> | |||
<div class="lr-form-row"> | |||
<label>主题</label> | |||
<input id="Title" type="text"> | |||
</div> | |||
<div class="lr-form-row"> | |||
<label>投诉编号</label> | |||
<input id="ComplaintCode" type="text"> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-tool-right-btn lr_time_search"> | |||
<i class="iconfont icon-time"></i> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-page-content" id="lr_EducationalAdministrationSys_SendComplaint_list"></div> | |||
<div class="lr-list-addbtn" id="lr_EducationalAdministrationSys_SendComplaint_btn"> | |||
<i class="iconfont icon-add1"></i> | |||
</div> | |||
</div> |
@@ -0,0 +1,165 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2021-04-30 16:33 | |||
* 描 述:发送投诉意见 | |||
*/ | |||
(function () { | |||
var begin = ''; | |||
var end = ''; | |||
var multipleData = null; | |||
var page = { | |||
grid: null, | |||
init: function ($page) { | |||
begin = ''; | |||
end = ''; | |||
multipleData = null; | |||
page.grid = $page.find('#lr_EducationalAdministrationSys_SendComplaint_list').lrpagination({ | |||
lclass: page.lclass, | |||
rows: 10, // 每页行数 | |||
getData: function (param, callback) {// 获取数据 param 分页参数,callback 异步回调 | |||
param.begin = begin; | |||
param.end = end; | |||
param.multipleData = multipleData; | |||
page.loadData(param, callback, $page); | |||
}, | |||
renderData: function (_index, _item, _$item) {// 渲染数据模板 | |||
return page.rowRender(_index, _item, _$item, $page); | |||
}, | |||
click: function (item, $item, $et) {// 列表行点击事件 | |||
if ($et.hasClass('lr-btn-danger')) {//删除 | |||
page.btnClick(item, $item, $page); | |||
} | |||
else if ($et.hasClass('lr-btn-blue')) {//提交 | |||
page.btnClickOfSubmit(item, $item, $page); | |||
} | |||
else if ($et.hasClass('lr-btn-green')) {//回复情况 | |||
page.btnClickOfReply(item, $item, $page); | |||
} | |||
else { | |||
page.rowClick(item, $item, $page); | |||
} | |||
}, | |||
btns: page.rowBtns | |||
}); | |||
// 时间搜索 | |||
$page.find('.lr_time_search').searchdate({ | |||
callback: function (_begin, _end) { | |||
begin = _begin; | |||
end = _end; | |||
multipleData = null; | |||
page.grid.reload(); | |||
} | |||
}); | |||
// 多条件查询 | |||
var $multiple = $page.find('.lr_multiple_search').multiplequery({ | |||
callback: function (data) { | |||
begin = ''; | |||
end = ''; | |||
multipleData = data || {}; | |||
page.grid.reload(); | |||
} | |||
}); | |||
$page.find('#lr_EducationalAdministrationSys_SendComplaint_btn').on('tap', function () { | |||
learun.nav.go({ path: 'EducationalAdministration/Sys_SendComplaint/form', title: '新增', type: 'right' }); | |||
}); | |||
}, | |||
lclass: 'lr-list', | |||
loadData: function (param, callback, $page) {// 列表加载后台数据 | |||
var _postParam = { | |||
pagination: { | |||
rows: param.rows, | |||
page: param.page, | |||
sidx: 'SendTime desc', | |||
sord: 'DESC' | |||
}, | |||
queryJson: JSON.stringify({ CreateUserId: learun.storage.get('userinfo').baseinfo.userId }) | |||
}; | |||
if (param.multipleData) { | |||
multipleData.CreateUserId = learun.storage.get('userinfo').baseinfo.userId; | |||
_postParam.queryJson = JSON.stringify(multipleData); | |||
} | |||
if (param.begin && param.end) { | |||
_postParam.queryJson = JSON.stringify({ StartTime: param.begin, EndTime: param.end, CreateUserId: learun.storage.get('userinfo').baseinfo.userId }); | |||
} | |||
learun.httpget(config.webapi + 'learun/adms/EducationalAdministration/Sys_SendComplaint/pagelist', _postParam, (data) => { | |||
$page.find('.lr-badge').text('0'); | |||
if (data) { | |||
$page.find('.lr-badge').text(data.records); | |||
callback(data.rows, parseInt(data.records)); | |||
} | |||
else { | |||
callback([], 0); | |||
} | |||
}); | |||
}, | |||
rowRender: function (_index, _item, _$item, $page) {// 渲染列表行数据 | |||
_$item.addClass('lr-list-item lr-list-item-multi'); | |||
_$item.append($('<p class="lr-ellipsis"><span>投诉编号:</span></p>').dataFormatter({ value: _item.ComplaintCode })); | |||
_$item.append($('<p class="lr-ellipsis"><span>主题:</span></p>').dataFormatter({ value: _item.Title })); | |||
_$item.append($('<p class="lr-ellipsis"><span>提交状态:</span></p>').dataFormatter({ value: _item.SendFlag == 1 ? "已提交" : "草稿" })); | |||
_$item.append($('<p class="lr-ellipsis"><span>提交时间:</span></p>').dataFormatter({ | |||
value: _item.SendTime, | |||
type: 'datetime', | |||
dateformat: 'yyyy-MM-dd hh:mm:ss' | |||
})); | |||
_$item.append($('<p class="lr-ellipsis"><span>回复状态:</span></p>').dataFormatter({ value: _item.ReplyFlag == 1 ? "已回复" : "未回复" })); | |||
return ''; | |||
}, | |||
rowClick: function (item, $item, $page) {// 列表行点击触发方法 | |||
learun.nav.go({ path: 'EducationalAdministration/Sys_SendComplaint/form', title: '详情', type: 'right', param: { keyValue: item.SComplaintId, SendFlag: item.SendFlag } }); | |||
}, | |||
btnClick: function (item, $item, $page) {// 左滑按钮点击事件 | |||
if (item.SendFlag !== 0) { | |||
learun.layer.warning("当前投诉意见已提交,无法删除!"); | |||
return false; | |||
} | |||
learun.layer.confirm('确定要删除该笔数据吗?', function (_index) { | |||
if (_index === '1') { | |||
learun.layer.loading(true, '正在删除该笔数据'); | |||
learun.httppost(config.webapi + 'learun/adms/EducationalAdministration/Sys_SendComplaint/delete', item.SComplaintId, (data) => { | |||
if (data) {// 删除数据成功 | |||
page.grid.reload(); | |||
} | |||
learun.layer.loading(false); | |||
}); | |||
} | |||
}, '智慧校园提示', ['取消', '确定']); | |||
}, | |||
btnClickOfSubmit: function (item, $item, $page) {// 左滑按钮点击事件 | |||
if (item.SendFlag !== 0) { | |||
learun.layer.warning("当前投诉意见已提交!"); | |||
return false; | |||
} | |||
learun.layer.confirm('确定要提交该笔数据吗?', function (_index) { | |||
if (_index === '1') { | |||
learun.layer.loading(true, '正在提交该笔数据'); | |||
learun.httppost(config.webapi + 'learun/adms/EducationalAdministration/Sys_SendComplaint/submit', item.SComplaintId, (data) => { | |||
if (data) {// 提交数据成功 | |||
page.grid.reload(); | |||
} | |||
learun.layer.loading(false); | |||
}); | |||
} | |||
}, '智慧校园提示', ['取消', '确定']); | |||
}, | |||
btnClickOfReply: function (item, $item, $page) {// 左滑按钮点击事件 | |||
if (item.SendFlag !== 1) { | |||
learun.layer.warning("当前投诉意见未提交,请先提交!"); | |||
return false; | |||
} | |||
if (item.ReplyFlag !== 1) { | |||
learun.layer.warning("当前投诉意见未回复!"); | |||
return false; | |||
} | |||
learun.nav.go({ path: 'EducationalAdministration/Sys_SendComplaint/reply', title: '回复情况', type: 'right', param: { keyValue: item.SComplaintId } }); | |||
}, | |||
rowBtns: [ | |||
'<a class="lr-btn-danger">删除</a>', | |||
'<a class="lr-btn-blue">提交</a>', | |||
'<a class="lr-btn-green">回复情况</a>' | |||
] // 列表行左滑按钮 | |||
}; | |||
return page; | |||
})(); |
@@ -0,0 +1 @@ | |||
|
@@ -0,0 +1,17 @@ | |||
<div class="lr-form-container"> | |||
<div class="lr-form-row " data-table="Sys_SendComplaint"> | |||
<font face="宋体">*</font> | |||
<label>投诉编号</label> | |||
<input id="ComplaintCode" type="text" isvalid="yes" checkexpession="NotNull" errormsg="投诉编号" readonly="readonly"/> | |||
</div> | |||
<div class="lr-form-row " data-table="Sys_SendComplaint"> | |||
<font face="宋体">*</font> | |||
<label>主题</label> | |||
<input id="Title" type="text" isvalid="yes" checkexpession="NotNull" errormsg="主题" /> | |||
</div> | |||
<div class="lr-form-row lr-form-row-multi" data-table="Sys_SendComplaint"> | |||
<font face="宋体">*</font> | |||
<label>投诉意见</label> | |||
<textarea id="Contents" isvalid="yes" checkexpession="NotNull" errormsg="投诉意见"></textarea> | |||
</div> | |||
</div> |
@@ -0,0 +1,169 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2021-04-30 16:33 | |||
* 描 述:发送投诉意见 | |||
*/ | |||
(function () { | |||
var keyValue = ''; | |||
var SendFlag = '';//提交状态 | |||
var $header = null; | |||
var titleText = ''; | |||
var page = { | |||
isScroll: true, | |||
init: function ($page, param) { | |||
keyValue = param.keyValue; | |||
SendFlag = param.SendFlag; | |||
// 添加头部按钮列表 | |||
var _html = '\ | |||
<div class="lr-form-header-cancel" >取消</div>\ | |||
<div class="lr-form-header-btnlist" >\ | |||
<div class="lr-form-header-more" ><i class="iconfont icon-more" ></i></div>\ | |||
<div class="lr-form-header-edit" ><i class="iconfont icon-edit" ></i></div>\ | |||
</div>\ | |||
<div class="lr-form-header-submit" >提交</div>'; | |||
$header = $page.parents('.f-page').find('.f-page-header'); | |||
$header.append(_html); | |||
// 取消 | |||
$header.find('.lr-form-header-cancel').on('tap', function () { | |||
learun.layer.confirm('确定要退出当前编辑?', function (_index) { | |||
if (_index === '1') { | |||
if (keyValue) {// 如果是编辑状态 | |||
learun.formblur(); | |||
$header.find('.lr-form-header-cancel').hide(); | |||
$header.find('.lr-form-header-submit').hide(); | |||
$header.find('.lr-form-header-btnlist').show(); | |||
$header.find('.f-page-title').text(titleText); | |||
$page.find('.lr-form-container').setFormRead(); | |||
} | |||
else {// 如果是新增状态 关闭当前页面 | |||
learun.nav.closeCurrent(); | |||
} | |||
} | |||
}, '智慧校园提示', ['取消', '确定']); | |||
}); | |||
// 编辑 | |||
$header.find('.lr-form-header-edit').on('tap', function () { | |||
if (keyValue) { | |||
if (SendFlag !== 0) { | |||
learun.layer.warning("当前投诉意见已提交,不能编辑!"); | |||
return false; | |||
} | |||
} | |||
$header.find('.lr-form-header-btnlist').hide(); | |||
$header.find('.lr-form-header-cancel').show(); | |||
$header.find('.lr-form-header-submit').show(); | |||
titleText = $header.find('.f-page-title').text(); | |||
$header.find('.f-page-title').text('编辑'); | |||
$page.find('.lr-form-container').setFormWrite(); | |||
}); | |||
// 更多 | |||
$header.find('.lr-form-header-more').on('tap', function () { | |||
learun.actionsheet({ | |||
id: 'more', | |||
data: [ | |||
{ | |||
text: '删除', | |||
mark: true, | |||
event: function () {// 删除当前条信息 | |||
learun.layer.confirm('确定要删除该笔数据吗?', function (_index) { | |||
if (_index === '1') { | |||
learun.layer.loading(true, '正在删除该笔数据'); | |||
learun.httppost(config.webapi + 'learun/adms/EducationalAdministration/Sys_SendComplaint/delete', keyValue, (data) => { | |||
learun.layer.loading(false); | |||
if (data) {// 删除数据成功 | |||
learun.nav.closeCurrent(); | |||
var prepage = learun.nav.getpage('EducationalAdministration/Sys_SendComplaint'); | |||
prepage.grid.reload(); | |||
} | |||
}); | |||
} | |||
}, '智慧校园提示', ['取消', '确定']); | |||
} | |||
} | |||
], | |||
cancel: function () { | |||
} | |||
}); | |||
}); | |||
// 提交 | |||
$header.find('.lr-form-header-submit').on('tap', function () { | |||
// 获取表单数据 | |||
if (!$page.find('.lr-form-container').lrformValid()) { | |||
return false; | |||
} | |||
var _postData = {} | |||
_postData.keyValue = keyValue; | |||
_postData.strEntity = JSON.stringify($page.find('.lr-form-container').lrformGet()); | |||
learun.layer.loading(true, '正在提交数据'); | |||
learun.httppost(config.webapi + 'learun/adms/EducationalAdministration/Sys_SendComplaint/save', _postData, (data) => { | |||
learun.layer.loading(false); | |||
if (data) {// 表单数据保存成功 | |||
if (keyValue) { | |||
learun.layer.toast('保存数据成功!'); | |||
learun.formblur(); | |||
$header.find('.lr-form-header-cancel').hide(); | |||
$header.find('.lr-form-header-submit').hide(); | |||
$header.find('.lr-form-header-btnlist').show(); | |||
$header.find('.f-page-title').text(titleText); | |||
$page.find('.lr-form-container').setFormRead(); | |||
} | |||
else {// 如果是 | |||
learun.nav.closeCurrent(); | |||
} | |||
var prepage = learun.nav.getpage('EducationalAdministration/Sys_SendComplaint'); | |||
prepage.grid.reload(); | |||
} | |||
}); | |||
}); | |||
page.bind($page, param); | |||
if (keyValue) { | |||
// 添加编辑按钮 | |||
$page.find('.lr-form-container').setFormRead(); | |||
$header.find('.lr-form-header-btnlist').show(); | |||
// 获取表单数据 | |||
learun.layer.loading(true, '获取表单数据'); | |||
learun.httpget(config.webapi + 'learun/adms/EducationalAdministration/Sys_SendComplaint/form', keyValue, (data) => { | |||
if (data) { | |||
for (var id in data) { | |||
if (data[id].length) { | |||
$page.find('#' + id).lrgridSet(data[id]); | |||
} | |||
else { | |||
$page.find('[data-table="' + id + '"]').lrformSet(data[id]); | |||
} | |||
} | |||
} | |||
learun.layer.loading(false); | |||
}); | |||
} | |||
else { | |||
$header.find('.lr-form-header-cancel').show(); | |||
$header.find('.lr-form-header-submit').show(); | |||
//获取投诉编号 | |||
learun.httpget(config.webapi + 'learun/adms/EducationalAdministration/Sys_SendComplaint/complaintCode', "", (data) => { | |||
if (data && data != "" && data != undefined) { | |||
$page.find('#ComplaintCode').val(data); | |||
} else { | |||
$page.find('#ComplaintCode').val("TS_" + getCode()); | |||
} | |||
learun.layer.loading(false); | |||
}); | |||
} | |||
}, | |||
bind: function ($page, param) { | |||
}, destroy: function (pageinfo) { | |||
$header = null; | |||
keyValue = ''; | |||
} | |||
}; | |||
return page; | |||
})(); | |||
//生成随机数 | |||
var getCode = function () { | |||
var a = parseInt(Math.random() * (10000 - 1000 + 1) + 1000); | |||
var now = new Date(); | |||
var b = now.getFullYear() + "" + ((now.getMonth() + 1) < 10 ? ("0" + (now.getMonth() + 1)) : (now.getMonth() + 1)) + "" + (now.getDate() < 10 ? ("0" + now.getDate()) : now.getDate()) + "" + (now.getHours() < 10 ? ("0" + now.getHours()) : now.getHours()) + "" + (now.getMinutes() < 10 ? ("0" + now.getMinutes()) : now.getMinutes()) + "" + (now.getSeconds() < 10 ? ("0" + now.getSeconds) : now.getSeconds()); | |||
return b + a; | |||
} |
@@ -0,0 +1 @@ | |||
|
@@ -0,0 +1,6 @@ | |||
<div class="lr-form-container" id="replyList"> | |||
<!--<div class="lr-form-row lr-form-row-multi"> | |||
<label>回复内容</label> | |||
<textarea readonly="readonly"></textarea> | |||
</div>--> | |||
</div> |
@@ -0,0 +1,45 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2021-04-30 16:33 | |||
* 描 述:发送投诉意见 | |||
*/ | |||
(function () { | |||
var keyValue = ''; | |||
var $header = null; | |||
var titleText = ''; | |||
var page = { | |||
isScroll: true, | |||
init: function ($page, param) { | |||
keyValue = param.keyValue; | |||
page.bind($page, param); | |||
if (keyValue) { | |||
// 获取表单数据 | |||
learun.layer.loading(true, '获取表单数据'); | |||
learun.httpget(config.webapi + 'learun/adms/EducationalAdministration/Sys_SendComplaint/replylist', keyValue, (data) => { | |||
if (data) { | |||
var html = ''; | |||
for (var id in data) { | |||
for (var i = 0; i < data[id].length; i++) { | |||
html += '<div class="lr-form-row lr-form-row-multi">'; | |||
html += '<label>回复内容</label>'; | |||
html += '<textarea readonly="readonly">' + data[id][i].ReplyContents + '</textarea>'; | |||
html += '</div>'; | |||
} | |||
} | |||
$page.find('#replyList').html(html); | |||
} | |||
learun.layer.loading(false); | |||
}); | |||
} | |||
}, | |||
bind: function ($page, param) { | |||
}, destroy: function (pageinfo) { | |||
$header = null; | |||
keyValue = ''; | |||
} | |||
}; | |||
return page; | |||
})(); | |||
@@ -1,7 +1,7 @@ | |||
<div class="lr-page lr-EducationalAdministrationThermography-page"> | |||
<div class="lr-page lr-EducationalAdministrationThermography-page"> | |||
<div class="lr-page-tool"> | |||
<div class="lr-tool-left"> | |||
总共<span class="lr-badge lr-badge-primary">0</span>条 | |||
总共1<span class="lr-badge lr-badge-primary">0</span>条 | |||
</div> | |||
<div class="lr-tool-right"> | |||
<div class="lr-tool-right-btn lr_multiple_search"> | |||
@@ -1,76 +1,75 @@ | |||
* { | |||
box-sizing: border-box; | |||
box-sizing: border-box; | |||
} | |||
ul { | |||
margin: 0px; | |||
padding: 0px; | |||
list-style: none; | |||
margin: 0px; | |||
padding: 0px; | |||
list-style: none; | |||
} | |||
li { | |||
list-style: none; | |||
list-style: none; | |||
} | |||
#semester2 { | |||
margin-bottom: 10px; | |||
margin-bottom: 10px; | |||
} | |||
#weekTime2 span { | |||
margin: 0 10px; | |||
margin: 0 10px; | |||
} | |||
#weekTime2 i { | |||
} | |||
#weekTime2 i {} | |||
.timeTable_sec2 { | |||
margin-bottom: 30px; | |||
background-color: #fff; | |||
margin-bottom: 30px; | |||
background-color: #fff; | |||
} | |||
.noHtml { | |||
height: 100%; | |||
line-height: 60px; | |||
text-align: center; | |||
font-size: 14px; | |||
height: 100%; | |||
line-height: 60px; | |||
text-align: center; | |||
font-size: 14px; | |||
} | |||
.timeTable_sec3 { | |||
padding: 0px 12px 1px; | |||
text-align: center; | |||
background: #0C86D8; | |||
height: 35px; | |||
padding: 0px 12px 1px; | |||
text-align: center; | |||
background: #0C86D8; | |||
height: 35px; | |||
} | |||
.tSec3Time { | |||
text-align: center; | |||
line-height: 24px; | |||
font-size: 14px; | |||
color: #fff; | |||
} | |||
.tSec3Time span { | |||
display: inline-block; | |||
background-color: #B8E2FF; | |||
width: 6px; | |||
height: 6px; | |||
border-radius: 50%; | |||
vertical-align: middle; | |||
position: relative; | |||
top: -2px; | |||
margin: 0 10px; | |||
} | |||
text-align: center; | |||
line-height: 24px; | |||
font-size: 14px; | |||
color: #fff; | |||
} | |||
.tSec3Time span { | |||
display: inline-block; | |||
background-color: #B8E2FF; | |||
width: 6px; | |||
height: 6px; | |||
border-radius: 50%; | |||
vertical-align: middle; | |||
position: relative; | |||
top: -2px; | |||
margin: 0 10px; | |||
} | |||
.timeTable_sec4 { | |||
padding: 0 12px; | |||
/* margin-top: -65px; */ | |||
margin-bottom: 10px; | |||
background: #0075C4; | |||
padding: 0 12px; | |||
/* margin-top: -65px; */ | |||
margin-bottom: 10px; | |||
background: #0075C4; | |||
} | |||
.tSec4Box { | |||
/* background: #fff; | |||
/* background: #fff; | |||
padding: 20px 0; | |||
text-align: center; | |||
font-size: 0; | |||
@@ -78,12 +77,12 @@ li { | |||
} | |||
.tSec4T { | |||
/* text-align: center; */ | |||
margin-bottom: 10px; | |||
overflow: hidden; | |||
font-size: 16px; | |||
color: #fff; | |||
padding-top: 10px; | |||
/* text-align: center; */ | |||
margin-bottom: 10px; | |||
overflow: hidden; | |||
font-size: 16px; | |||
color: #fff; | |||
padding-top: 10px; | |||
} | |||
/* .tSec4T div:first-child { | |||
@@ -96,60 +95,60 @@ li { | |||
.tSec4Con { | |||
padding-bottom: 10px; | |||
padding-bottom: 10px; | |||
} | |||
.tSec4Con > * { | |||
/* display: inline-block; | |||
.tSec4Con>* { | |||
/* display: inline-block; | |||
vertical-align: middle; */ | |||
} | |||
.tSec4Con .studSeeSec2Line { | |||
height: 25px; | |||
width: 1px; | |||
background: #D6DFE2; | |||
margin: 0 40px; | |||
} | |||
.tSec4Con .studSeeSec2Txt { | |||
color: #4FB1F3; | |||
font-size: 14px; | |||
} | |||
.tSec4Con .studSeeSec2Txt i { | |||
margin-right: 5px; | |||
} | |||
.tSec4Con .studSeeSec2Txt div { | |||
float: right; | |||
font-size: 20px; | |||
margin-top: -2px; | |||
} | |||
.tSec4Con .studSeeSec2Txt div span { | |||
display: inline-block; | |||
line-height: 20px; | |||
font-size: 12px; | |||
padding: 0 10px; | |||
position: relative; | |||
background: #4FB1F3; | |||
color: #0075C4; | |||
border-radius: 2px; | |||
top: -3px; | |||
margin-right: 5px; | |||
} | |||
.tSec4Con .studSeeSec2Txt div span:after { | |||
content: ''; | |||
position: absolute; | |||
border: 3px solid #4FB1F3; | |||
border-right-color: transparent; | |||
border-top-color: transparent; | |||
border-bottom-color: transparent; | |||
right: -6px; | |||
top: 50%; | |||
margin-top: -3px; | |||
} | |||
} | |||
.tSec4Con .studSeeSec2Line { | |||
height: 25px; | |||
width: 1px; | |||
background: #D6DFE2; | |||
margin: 0 40px; | |||
} | |||
.tSec4Con .studSeeSec2Txt { | |||
color: #4FB1F3; | |||
font-size: 14px; | |||
} | |||
.tSec4Con .studSeeSec2Txt i { | |||
margin-right: 5px; | |||
} | |||
.tSec4Con .studSeeSec2Txt div { | |||
float: right; | |||
font-size: 20px; | |||
margin-top: -2px; | |||
} | |||
.tSec4Con .studSeeSec2Txt div span { | |||
display: inline-block; | |||
line-height: 20px; | |||
font-size: 12px; | |||
padding: 0 10px; | |||
position: relative; | |||
background: #4FB1F3; | |||
color: #0075C4; | |||
border-radius: 2px; | |||
top: -3px; | |||
margin-right: 5px; | |||
} | |||
.tSec4Con .studSeeSec2Txt div span:after { | |||
content: ''; | |||
position: absolute; | |||
border: 3px solid #4FB1F3; | |||
border-right-color: transparent; | |||
border-top-color: transparent; | |||
border-bottom-color: transparent; | |||
right: -6px; | |||
top: 50%; | |||
margin-top: -3px; | |||
} | |||
/* .tSec4Con .studSeeSec2Txt div:first-child span { | |||
font-size: 20px; | |||
@@ -162,39 +161,39 @@ li { | |||
} */ | |||
.timeTableList { | |||
overflow: hidden; | |||
padding: 3px 7px 18px; | |||
} | |||
.timeTableList li { | |||
width: 33.333333%; | |||
float: left; | |||
font-size: 14px; | |||
line-height: 16px; | |||
margin-top: 14px; | |||
padding: 0 7px; | |||
} | |||
.timeTableList div { | |||
border: 1px solid #DAEFFD; | |||
padding: 13px 0; | |||
text-align: center; | |||
overflow: hidden; | |||
} | |||
.timeTableList span { | |||
color: #fff; | |||
font-size: 12px; | |||
border: 1px solid #cacaca; | |||
border-radius: 50%; | |||
height: 14px; | |||
width: 14px; | |||
line-height: 12px; | |||
/* margin-right: 5px; */ | |||
position: relative; | |||
top: -1px; | |||
margin-left: 6px; | |||
} | |||
overflow: hidden; | |||
padding: 3px 7px 18px; | |||
} | |||
.timeTableList li { | |||
width: 33.333333%; | |||
float: left; | |||
font-size: 14px; | |||
line-height: 16px; | |||
margin-top: 14px; | |||
padding: 0 7px; | |||
} | |||
.timeTableList div { | |||
border: 1px solid #DAEFFD; | |||
padding: 13px 0; | |||
text-align: center; | |||
overflow: hidden; | |||
} | |||
.timeTableList span { | |||
color: #fff; | |||
font-size: 12px; | |||
border: 1px solid #cacaca; | |||
border-radius: 50%; | |||
height: 14px; | |||
width: 14px; | |||
line-height: 12px; | |||
/* margin-right: 5px; */ | |||
position: relative; | |||
top: -1px; | |||
margin-left: 6px; | |||
} | |||
/* .timeTableList li.active span { | |||
color: #9D9E9E !important; | |||
@@ -202,176 +201,177 @@ li { | |||
border-color: #cacaca !important; | |||
} */ | |||
.timeTableBtn,.submitBtn { | |||
font-size: 16px; | |||
margin: 20px 12px; | |||
background: #0C86D8; | |||
border-radius: 4px; | |||
text-align: center; | |||
line-height: 40px; | |||
height: 40px; | |||
color: #fff; | |||
cursor:pointer; | |||
.timeTableBtn, | |||
.submitBtn { | |||
font-size: 16px; | |||
margin: 20px 12px; | |||
background: #0C86D8; | |||
border-radius: 4px; | |||
text-align: center; | |||
line-height: 40px; | |||
height: 40px; | |||
color: #fff; | |||
cursor: pointer; | |||
} | |||
.statusType { | |||
padding: 10px 12px; | |||
background: #fff; | |||
overflow: hidden; | |||
margin-bottom: 10px; | |||
} | |||
.statusType li { | |||
width: 16.666667%; | |||
float: left; | |||
/* text-align: center; */ | |||
font-size: 14px; | |||
line-height: 16px; | |||
} | |||
.statusType span { | |||
display: inline-block; | |||
color: #fff; | |||
line-height: 14px; | |||
font-size: 12px; | |||
border: 1px solid #cacaca; | |||
border-radius: 50%; | |||
height: 9px; | |||
width: 9px; | |||
line-height: 12px; | |||
margin-right: 5px; | |||
position: relative; | |||
top: 0px; | |||
} | |||
padding: 10px 12px; | |||
background: #fff; | |||
overflow: hidden; | |||
margin-bottom: 10px; | |||
} | |||
.statusType li { | |||
width: 16.666667%; | |||
float: left; | |||
/* text-align: center; */ | |||
font-size: 14px; | |||
line-height: 16px; | |||
} | |||
.statusType span { | |||
display: inline-block; | |||
color: #fff; | |||
line-height: 14px; | |||
font-size: 12px; | |||
border: 1px solid #cacaca; | |||
border-radius: 50%; | |||
height: 9px; | |||
width: 9px; | |||
line-height: 12px; | |||
margin-right: 5px; | |||
position: relative; | |||
top: 0px; | |||
} | |||
/*未检测*/ | |||
.sStatue1 span { | |||
background: #0089FE; | |||
color: #0089FE; | |||
border-color: #0089FE; | |||
background: #0089FE; | |||
color: #0089FE; | |||
border-color: #0089FE; | |||
} | |||
/*正常*/ | |||
.sStatue2 span { | |||
background: #F2B60A; | |||
color: #F2B60A; | |||
border-color: #F2B60A; | |||
background: #F2B60A; | |||
color: #F2B60A; | |||
border-color: #F2B60A; | |||
} | |||
/*异常*/ | |||
.sStatue3 span { | |||
background: #E24545; | |||
color: #E24545; | |||
border-color: #E24545; | |||
background: #E24545; | |||
color: #E24545; | |||
border-color: #E24545; | |||
} | |||
/*病假*/ | |||
.sStatue4 span { | |||
background: #29CF41; | |||
color: #29CF41; | |||
border-color: #29CF41; | |||
background: #29CF41; | |||
color: #29CF41; | |||
border-color: #29CF41; | |||
} | |||
/*迟到*/ | |||
.sStatue5 span { | |||
background: #ad5151; | |||
color: #ad5151; | |||
border-color: #ad5151; | |||
background: #ad5151; | |||
color: #ad5151; | |||
border-color: #ad5151; | |||
} | |||
/*事假*/ | |||
.sStatue6 span { | |||
background: #84f193; | |||
color: #84f193; | |||
border-color: #84f193; | |||
background: #84f193; | |||
color: #84f193; | |||
border-color: #84f193; | |||
} | |||
.timeTableAlertZ { | |||
width: 100%; | |||
height: 100%; | |||
z-index: 99; | |||
position: fixed; | |||
top: 0; | |||
left: 0; | |||
right: 0; | |||
bottom: 0; | |||
background-color: rgba(0, 0, 0, .5); | |||
display: none; | |||
width: 100%; | |||
height: 100%; | |||
z-index: 99; | |||
position: fixed; | |||
top: 0; | |||
left: 0; | |||
right: 0; | |||
bottom: 0; | |||
background-color: rgba(0, 0, 0, .5); | |||
display: none; | |||
} | |||
.timeTableAlert { | |||
z-index: -1; | |||
position: fixed; | |||
top: 0; | |||
left: 0; | |||
right: 0; | |||
bottom: 0; | |||
margin: auto; | |||
width: 80%; | |||
height: 70%; | |||
background: #fff; | |||
border-radius: 4px; | |||
filter: alpha(opacity=0); | |||
-moz-opacity: 0; | |||
-khtml-opacity: 0; | |||
opacity: 0; | |||
transition: all 0.3s; | |||
-moz-transition: all 0.3s; | |||
-ms-transition: all 0.3s; | |||
-o-transition: all 0.3s; | |||
-webkit-transition: all 0.3s; | |||
overflow: hidden; | |||
} | |||
.timeTableAlert.active { | |||
z-index: 999; | |||
filter: alpha(opacity=100); | |||
-moz-opacity: 1; | |||
-khtml-opacity: 1; | |||
opacity: 1; | |||
} | |||
z-index: -1; | |||
position: fixed; | |||
top: 0; | |||
left: 0; | |||
right: 0; | |||
bottom: 0; | |||
margin: auto; | |||
width: 80%; | |||
height: 70%; | |||
background: #fff; | |||
border-radius: 4px; | |||
filter: alpha(opacity=0); | |||
-moz-opacity: 0; | |||
-khtml-opacity: 0; | |||
opacity: 0; | |||
transition: all 0.3s; | |||
-moz-transition: all 0.3s; | |||
-ms-transition: all 0.3s; | |||
-o-transition: all 0.3s; | |||
-webkit-transition: all 0.3s; | |||
overflow: hidden; | |||
} | |||
.timeTableAlert.active { | |||
z-index: 999; | |||
filter: alpha(opacity=100); | |||
-moz-opacity: 1; | |||
-khtml-opacity: 1; | |||
opacity: 1; | |||
} | |||
.timeTableAlertTop { | |||
background-color: #0C86D8; | |||
padding: 10px 12px; | |||
background-color: #0C86D8; | |||
padding: 10px 12px; | |||
} | |||
.timeTableAlertT { | |||
color: #fff; | |||
font-size: 16px; | |||
color: #fff; | |||
font-size: 16px; | |||
} | |||
.timeTableAlertTxt { | |||
font-size: 14px; | |||
color: #B8E2FF; | |||
text-align: right; | |||
margin-top: 5px; | |||
font-size: 14px; | |||
color: #B8E2FF; | |||
text-align: right; | |||
margin-top: 5px; | |||
} | |||
.timeTableAlertList { | |||
overflow: auto; | |||
max-height: calc(100% - 62px); | |||
overflow: auto; | |||
max-height: calc(100% - 62px); | |||
} | |||
.timeTableAlertList li { | |||
line-height: 40px; | |||
text-align: center; | |||
font-size: 14px; | |||
color: #1A1A1A; | |||
} | |||
.timeTableAlertList li { | |||
line-height: 40px; | |||
text-align: center; | |||
font-size: 14px; | |||
color: #1A1A1A; | |||
} | |||
.timeTableAlertList li.active { | |||
background-color: #D1ECFF !important; | |||
} | |||
.timeTableAlertList li.active { | |||
background-color: #D1ECFF !important; | |||
} | |||
.timeTableAlertList li:nth-child(2n) { | |||
background-color: #FBFDFF; | |||
} | |||
.timeTableAlertList li:nth-child(2n) { | |||
background-color: #FBFDFF; | |||
} | |||
.timeTableAlertList li:nth-child(2n - 1) { | |||
background-color: #FFFFFF; | |||
} | |||
.timeTableAlertList li:nth-child(2n - 1) { | |||
background-color: #FFFFFF; | |||
} | |||
#MeasureTime { | |||
text-align: center; | |||
text-align: center; | |||
} |
@@ -4,6 +4,7 @@ | |||
isScroll: false, | |||
init: function ($page, param) { | |||
//console.log(param) 传过来的参数 在param上 | |||
//console.log(param) | |||
//测温时间段 | |||
$page.find('#MeasureTime').lrpickerex({ | |||
code: 'MeasureTime', | |||
@@ -52,41 +53,6 @@ | |||
$('.timeTableAlert').removeClass('active'); | |||
} | |||
//弹框确定按钮:单个学生提交测温 | |||
//$page.find(".timeTableBtn").on('tap', | |||
// function () { | |||
// // 获取表单数据 | |||
// if (!$page.find('.lr-form-container').lrformValid()) { | |||
// return false; | |||
// } | |||
// var data = JSON.parse($(this).siblings('.timeTableAlertTop').attr('student')); | |||
// data.Status = $page.find('#Status').lrpickerGet(); | |||
// data.Temperature = $page.find('#Temperature').val(); | |||
// data.ProcessingResult = $page.find('#ProcessingResult').val(); | |||
// data.Remark = $page.find('#Remark').val(); | |||
// data.MeasureTime = $page.find('#MeasureTime').lrpickerGet(); | |||
// learun.layer.confirm('是否确认提交测温?', | |||
// function (_index) { | |||
// if (_index === '1') { | |||
// learun.layer.loading(true, '正在提交'); | |||
// learun.httppost( | |||
// config.webapi + '/learun/adms/EducationalAdministration/Thermography/save', | |||
// { | |||
// keyValue: data.ID, | |||
// strEntity: JSON.stringify(data) | |||
// }, | |||
// (data) => { | |||
// learun.layer.loading(false); | |||
// if (data) { | |||
// learun.layer.toast("提交成功"); | |||
// timeTableAlertFn(); | |||
// loadData($page, param); | |||
// } | |||
// }); | |||
// } | |||
// }); | |||
// }); | |||
//弹框确定按钮:弹框数据绑定到学生列表上 | |||
$page.find(".timeTableBtn").on('tap', | |||
function () { | |||
@@ -95,11 +61,13 @@ | |||
return false; | |||
} | |||
var data = JSON.parse($(this).siblings('.timeTableAlertTop').attr('student')); | |||
data.Status = $page.find('#Status').lrpickerGet(); | |||
data.Temperature = $page.find('#Temperature').val(); | |||
data.ProcessingResult = $page.find('#ProcessingResult').val(); | |||
data.Remark = $page.find('#Remark').val(); | |||
data.MeasureTime = $page.find('#MeasureTime').lrpickerGet(); | |||
$page.find('.timeTableList').find('li[stuNo="' + data.PersonBeingMeasured + '"]').attr('student', JSON.stringify(data)); | |||
var classTemp = !data.Status ? 'sStatue1' : data.Status == "0" ? 'sStatue1' : data.Status == "1" ? 'sStatue2' : 'sStatue3'; | |||
$page.find('.timeTableList').find('li[stuNo="' + data.PersonBeingMeasured + '"]').removeClass().addClass(classTemp); | |||
@@ -139,6 +107,7 @@ | |||
}; | |||
function loadData($page, param) { | |||
console.log($page.find('#MeasureTime').lrpickerGet()) | |||
var _postParam = { | |||
queryJson: JSON.stringify({ | |||
MeasurerID: learun.storage.get('userinfo').baseinfo.account, | |||
@@ -1,4 +1,4 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2020-02-03 14:37 | |||
@@ -18,6 +18,7 @@ | |||
lclass: page.lclass, | |||
rows: 10, // 每页行数 | |||
getData: function (param, callback) {// 获取数据 param 分页参数,callback 异步回调 | |||
console.log(param) | |||
param.multipleData = multipleData; | |||
page.loadData(param, callback, $page); | |||
}, | |||
@@ -37,6 +38,8 @@ | |||
// 多条件查询 | |||
var $multiple = $page.find('.lr_multiple_search').multiplequery({ | |||
callback: function (data) { | |||
console.log(11) | |||
console.log(data) | |||
begin = ''; | |||
end = ''; | |||
multipleData = data || {}; | |||
@@ -63,14 +66,20 @@ | |||
queryJson: '{}' | |||
}; | |||
var userInfo = learun.storage.get('userinfo'); | |||
//console.log(param) | |||
var aaa=''; | |||
if (param.multipleData) { | |||
multipleData.Creater = userInfo.baseinfo.userId; | |||
_postParam.queryJson = JSON.stringify(multipleData); | |||
} | |||
if (param.begin && param.end) { | |||
_postParam.queryJson = JSON.stringify({ StartTime: param.begin, EndTime: param.end }); | |||
} | |||
}else{ | |||
_postParam.queryJson=JSON.stringify({Creater:userInfo.baseinfo.userId}) | |||
} | |||
// if (param.begin && param.end) { | |||
// _postParam.queryJson = JSON.stringify({ StartTime: param.begin, EndTime: param.end,Creater:userInfo.baseinfo.userId }); | |||
// } | |||
_postParam.queryJson=JSON.stringify({Creater:userInfo.baseinfo.userId}) | |||
learun.httpget(config.webapi + 'learun/PersonnelManagement/EpidemicSituationCopy/pagelist', _postParam, (data) => { | |||
// console.log(data) | |||
$page.find('.lr-badge').text('0'); | |||
if (data) { | |||
$page.find('.lr-badge').text(data.records); | |||
@@ -90,55 +99,13 @@ | |||
keyId:'f_userid', | |||
text:'f_realname' | |||
})); | |||
//_$item.append($('<p class="lr-ellipsis"><span>单位名称:</span></p>').dataFormatter({ value: _item.UnitName })); | |||
//_$item.append($('<p class="lr-ellipsis"><span>返工人员:</span></p>').dataFormatter({ value: _item.BackUser })); | |||
//_$item.append($('<p class="lr-ellipsis"><span>类别:</span></p>').dataFormatter({ value: _item.Type, | |||
// type: 'dataItem', | |||
// code: 'EUserType' | |||
//})); | |||
//_$item.append($('<p class="lr-ellipsis"><span>所在部门:</span></p>').dataFormatter({ value: _item.Department })); | |||
//_$item.append($('<p class="lr-ellipsis"><span>关系:</span></p>').dataFormatter({ value: _item.RelationShip, | |||
// type: 'dataItem', | |||
// code: 'ERelationship' | |||
//})); | |||
//_$item.append($('<p class="lr-ellipsis"><span>性别:</span></p>').dataFormatter({ | |||
// value: _item.Gender, | |||
// type: 'dataItem', | |||
// code: 'usersex' | |||
//})); | |||
_$item.append($('<p class="lr-ellipsis"><span>填报时间:</span></p>').dataFormatter({ value: _item.CreateTime, | |||
_$item.append($('<p class="lr-ellipsis"><span>填报时间:</span></p>').dataFormatter({ | |||
value: _item.CreateTime, | |||
type: 'datetime', | |||
dateformat: 'yyyy-MM-dd' | |||
})); | |||
//_$item.append($('<p class="lr-ellipsis"><span>身份证号:</span></p>').dataFormatter({ value: _item.IDCard })); | |||
//_$item.append($('<p class="lr-ellipsis"><span>家庭住址:</span></p>').dataFormatter({ value: _item.HomeAddress })); | |||
//_$item.append($('<p class="lr-ellipsis"><span>联系方式:</span></p>').dataFormatter({ value: _item.Mobile })); | |||
//_$item.append($('<p class="lr-ellipsis"><span>前往省份:</span></p>').dataFormatter({ value: _item.Provice, | |||
// type: 'dataSource', | |||
// code: 'DIC_PROVINCE', | |||
// keyId: 'pcode', | |||
// text: 'pname' | |||
//})); | |||
//_$item.append($('<p class="lr-ellipsis"><span>前往详细地址:</span></p>').dataFormatter({ value: _item.Objective })); | |||
//_$item.append($('<p class="lr-ellipsis"><span>外出原因:</span></p>').dataFormatter({ | |||
// value: _item.OutReason, | |||
// type: 'dataItem', | |||
// code: 'OutReason' | |||
//})); | |||
//_$item.append($('<p class="lr-ellipsis"><span>外出时间:</span></p>').dataFormatter({ value: _item.OutTime, | |||
// type: 'datetime', | |||
// dateformat: 'yyyy-MM-dd' | |||
//})); | |||
//_$item.append($('<p class="lr-ellipsis"><span>返回时间:</span></p>').dataFormatter({ value: _item.BackHomeTime, | |||
// type: 'datetime', | |||
// dateformat: 'yyyy-MM-dd' | |||
//})); | |||
//_$item.append($('<p class="lr-ellipsis"><span>交通工具:</span></p>').dataFormatter({ value: _item.Vehicle, | |||
// type: 'dataItem', | |||
// code: 'Vehicle' | |||
//})); | |||
//_$item.append($('<p class="lr-ellipsis"><span>交通工具号码:</span></p>').dataFormatter({ value: _item.VehicleNum })); | |||
//_$item.append($('<p class="lr-ellipsis"><span>返回抵达目的地:</span></p>').dataFormatter({ value: _item.BackAddress })); | |||
return ''; | |||
}, | |||
rowClick: function (item, $item, $page) {// 列表行点击触发方法 | |||
@@ -1,4 +1,4 @@ | |||
<div class="lr-form-container"> | |||
<div class="lr-form-container"> | |||
<div class="lr-form-row " data-table="EpidemicSituation"> | |||
<label>填报人员</label> | |||
@@ -1,4 +1,4 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2020-02-03 14:37 | |||
@@ -12,6 +12,7 @@ | |||
isScroll: true, | |||
init: function ($page, param) { | |||
keyValue = param.keyValue; | |||
// console.log(param) | |||
// 添加头部按钮列表 | |||
var _html = '\ | |||
<div class="lr-form-header-cancel" >取消</div>\ | |||
@@ -80,6 +81,7 @@ | |||
}); | |||
}); | |||
// 提交 | |||
$header.find('.lr-form-header-submit').on('tap', function () { | |||
// 获取表单数据 | |||
if (!$page.find('.lr-form-container').lrformValid()) { | |||
@@ -87,9 +89,10 @@ | |||
} | |||
var _postData = {} | |||
_postData.keyValue = keyValue; | |||
var pageForm = $page.find('[data-table="EpidemicSituation"]').lrformGet(); | |||
var allArea = $page.find('#ProvinceArea').lrpickerGet(); | |||
console.log($page.find('#ProvinceArea')) | |||
console.log(allArea) | |||
if (allArea) { | |||
var list = allArea.split(','); | |||
@@ -97,7 +100,7 @@ | |||
pageForm.OutArea = list[1] || ''; | |||
pageForm.City = list[2] || ''; | |||
} | |||
console.log(pageForm) | |||
_postData.strEntity = JSON.stringify(pageForm); | |||
if ($page.find('#HasFamily').lrpickerGet() == '1') { | |||
@@ -146,6 +149,8 @@ | |||
_postData.strpeopleDetailsList = '[]'; | |||
} | |||
console.log(_postData) | |||
return | |||
learun.layer.loading(true, '正在提交数据'); | |||
learun.httppost(config.webapi + 'learun/PersonnelManagement/EpidemicSituationCopy/save', _postData, (data) => { | |||
learun.layer.loading(false); | |||
@@ -174,6 +179,8 @@ | |||
$header.find('.lr-form-header-btnlist').show(); | |||
// 获取表单数据 | |||
learun.layer.loading(true, '获取表单数据'); | |||
// console.log(11) | |||
// console.log(keyValue) | |||
learun.httpget(config.webapi + 'learun/PersonnelManagement/EpidemicSituationCopy/form', keyValue, (data) => { | |||
if (data) { | |||
//省市区数据处理 | |||
@@ -194,8 +201,6 @@ | |||
$page.find('[data-table="' + id + '"]').lrformSet(data[id]); | |||
} | |||
} | |||
} | |||
learun.layer.loading(false); | |||
}); | |||
@@ -322,6 +327,7 @@ | |||
//新建时获取登陆人信息 | |||
var userInfo = learun.storage.get('userinfo'); | |||
//console.log(userInfo) | |||
if (!keyValue) { | |||
@@ -340,6 +346,7 @@ | |||
learun.httpget(config.webapi + 'learun/PersonnelManagement/EpidemicSituationCopy/getStuSource', | |||
userInfo.baseinfo.account, | |||
(data) => { | |||
console.log(data) | |||
if (data) { | |||
$page.find('#HomeAddress').val(data.Address); | |||
$page.find('#StudentSource').val(data.res); | |||
@@ -630,7 +630,7 @@ | |||
} | |||
function ajaxData(jqs) { | |||
var html = '<div class="attendBoxT">2019年3月11日 星期三</div><div class="attendBoxTime">'; | |||
var html = '<div class="attendBoxT">'+ jqs.day +'</div><div class="attendBoxTime">'; | |||
$.each(jqs.list, function (i, n) { | |||
var times = '', timeTxt = '', attendConStatus = ''; | |||
if (i == 0) { | |||
@@ -663,7 +663,7 @@ | |||
dataK = data; | |||
} | |||
); | |||
); | |||
@@ -99,8 +99,7 @@ | |||
var weekData2 = ProcessingData(weekData); | |||
var tSec2List = $('.tSec2List'); | |||
weekTimeSpan.eq(0).text(todayWeek.Monday).end().eq(1).text(todayWeek.Sunday); | |||
$.each(weekData2, | |||
function (i, n) { | |||
$.each(weekData2,function (i, n) { | |||
var html = ''; | |||
n.lessonData.sort(compare('sectionTime')); | |||
if (n.lessonData.length == 0) { | |||
@@ -67,8 +67,7 @@ | |||
if (n.lessonData.length == 0) { | |||
html += '<li><div class="noHtml">该时间段没有课程</div></li>'; | |||
} else { | |||
$.each(n.lessonData, | |||
function (j, k) { | |||
$.each(n.lessonData,function (j, k) { | |||
var lessonInfo = JSON.stringify(k); | |||
console.log(lessonInfo); | |||
html += '<li lessonInfo=\'' + lessonInfo + '\' id="' + k.id + '">' + | |||
@@ -5,7 +5,7 @@ | |||
var page = { | |||
isScroll: false, | |||
init: function ($page, param) { | |||
console.log(param) | |||
loadData(param); | |||
} | |||
}; | |||
@@ -174,53 +174,6 @@ | |||
按照公安部有关规定,户口迁移遵循自愿原则。 | |||
</div> | |||
<!--<div class="noticeTitle">七、报到程序(一站式服务)</div> | |||
<div class="noticeTxt">(一)新生凭录取通知书和身份证到学校招生就业处报到,确认考生信息、移交考生档案,领取新生报到流程单。</div> | |||
<div class="noticeTxt">(二)新生持报到流程单到学校财务处回执缴费事宜。(网上缴费凭证、银行托收凭证。校内生活广场和综合楼均设有农行、凉山商业银行自助存取款机)。</div> | |||
<div class="noticeBox"> | |||
<div class="noticeTxt">网上缴费:</div> | |||
<div class="noticeTxt"> | |||
<span>单位名称</span><span>西昌民族幼儿师范高等专科学校</span> | |||
</div> | |||
<div class="noticeTxt"> | |||
<span>账 号</span><span>5105 0181 0042 0900 0666</span> | |||
</div> | |||
<div class="noticeTxt"> | |||
<span>开户银行</span><span>建行西昌西客站支行</span> | |||
</div> | |||
<div class="noticeTxt"> | |||
<span>行 号</span><span>105684078019</span> | |||
</div> | |||
</div> | |||
<div class="noticeTxt">(三)新生凭学校财务处确认单到所在系部登记入班,至学生公寓入住。</div> | |||
<div class="noticeTitle">八、助学贷款</div> | |||
<div class="noticeTxt"> | |||
需申请助学贷款的同学,可向户籍所在地教育局新生资助办公室咨询办理(详见高校本专科学生资助政策简介);学生助学贷款回执单开学后交回学校财务处。 | |||
</div> | |||
<div class="noticeTitle">九、乘车路线</div> | |||
<div class="noticeTxt">我校在火车站、长途汽车站均设有新生接待处,也可自驾或到市区乘107路、118路公交车至西昌学院北校区站下车。</div> | |||
<div class="noticeTxt">特别提示:新生报到时持录取通知书到当地火车站购买到校普速车票,可享受半价优惠;动车二等座可享受7.5折优惠。</div> | |||
<div class="noticeTxt">温馨提示</div> | |||
<div class="noticeTxt">(一)旅途中请注意人身安全,妥善保管好各种证件、行李不要让不相识的人代为保管行李;</div> | |||
<div class="noticeTxt">(二)到校后自行办理缴费等入学,谨防上当受骗;</div> | |||
<div class="noticeTxt">(三)学生家长可在学校附近入住;</div> | |||
<div class="noticeTxt">(四)自驾车可在百度地图和高德地图搜索“西昌民族幼儿师范高等专科学校”前往。</div> | |||
<div class="noticeTitle">十、学校地址</div> | |||
<div class="noticeTxt"> | |||
四川省凉山州西昌市西乡乡园丁路1号 <br /> 邮政编码:615013 | |||
</div> | |||
<div class="noticeTitle">十一、登录学校网址</div> | |||
<div class="noticeTxt"> | |||
http://www.xcmzyz.com,查询录取情况并记录学号(8月20日可查询),使用学号登录学校“数字校园”系统(初始密码:123456),完善个人信息并修改密码。 | |||
</div> | |||
<div class="noticeTitle">十二、咨询电话:</div>--> | |||
<div class="noticeText">西昌民族幼儿师范高等专科学校</div> | |||
<div class="noticeText">二0一九年九月一日</div> | |||
@@ -18,9 +18,11 @@ | |||
$('#ClassNo').html(entity.ClassNo); | |||
$('#ClassTutorName').html(entity.ClassTutorName); | |||
$('#ClassTutorMobile').html(entity.ClassTutorMobile); | |||
$('#PayFeeStatus').html(entity.PayFeeStatus == "1" ? "已缴费" : "未缴费"); | |||
$('#CollectFileStatus').html(entity.CollectFileStatus == "1" ? "已提交" : "未提交"); | |||
$('#GetKeyStatus').html(entity.GetKeyStatus == "1" ? "已领取" : "未领取"); | |||
$('#IsCompleteInfo').html(entity.IsCompleteInfo); | |||
$('#Dormitory').html(entity.DormitoryName); | |||
} | |||
@@ -19,21 +19,25 @@ | |||
} else { | |||
notCompleteStyle("#IsCompleteInfo", "images/enter2-1.png"); | |||
} | |||
if (data["StuInfoFreshEntity"].PayFeeStatus == "1") { | |||
completeStyle("#PayFeeStatus", "images/enter1-2.png"); | |||
} else { | |||
notCompleteStyle("#PayFeeStatus", "images/enter2-2.png"); | |||
} | |||
if (data["StuInfoFreshEntity"].StudentLoanStatus == "1") { | |||
completeStyle("#StudentLoan", "images/enter1-3.png"); | |||
} else { | |||
notCompleteStyle("#StudentLoan", "images/enter2-3.png"); | |||
} | |||
if (data["StuInfoFreshEntity"].OnsitePayFeeStatus == "1") { | |||
completeStyle("#OnsitePayFeeStatus", "images/enter1-4.png"); | |||
} else { | |||
notCompleteStyle("#OnsitePayFeeStatus", "images/enter2-4.png"); | |||
} | |||
if (data["StuInfoFreshEntity"].RegisterStatus == "1") { | |||
completeStyle("#RegisterStatus", "images/enter1-5.png"); | |||
} else { | |||
@@ -95,19 +95,21 @@ | |||
judgeDate(todayWeek.SundayTime); | |||
var param = { startTime: start, endTime: end }; | |||
learun.httpget(config.webapi + "arrangeExam/stuList", param, (data) => { | |||
//console.log(data) | |||
weekData = data; | |||
var weekData2 = ProcessingData(weekData); | |||
var tSec2List = $('.tSec2List'); | |||
weekTimeSpan.eq(0).text(todayWeek.Monday).end().eq(1).text(todayWeek.Sunday); | |||
$.each(weekData2, | |||
function (i, n) { | |||
//console.log(weekData2) | |||
$.each(weekData2, function (i, n) { | |||
// console.log(n) | |||
var html = ''; | |||
n.lessonData.sort(compare('sectionTime')); | |||
if (n.lessonData.length == 0) { | |||
html += '<li><div class="noHtml">该时间段没有考试</div></li>'; | |||
} else { | |||
$.each(n.lessonData, | |||
function (j, k) { | |||
$.each(n.lessonData, function (j, k) { | |||
html += '<li>' + | |||
'<div class="tSec2ListL">第' + | |||
k.sectionTime + | |||
@@ -132,7 +134,8 @@ | |||
} | |||
tSec2List.eq(n.weekTime - 1).html(html); | |||
}); | |||
} | |||
} | |||
); | |||
} | |||
@@ -5,7 +5,6 @@ | |||
init: function ($page, param) { | |||
//console.log(param) 传过来的参数 在param上 | |||
//初始化 | |||
console.log(param); | |||
loadData(param); | |||
$('.tSec3Time').html('<span></span>' + param.LessonDate + ' 第' + param.LessonTime.substring(1) + '节<span></span>'); | |||
$('.tSec4T').html('<div>' + | |||
@@ -18,7 +17,6 @@ | |||
function () { | |||
var that = $(this); | |||
var jsons = JSON.parse(that.attr('student')); | |||
// console.log(jsons) | |||
var type = that.attr('class'); | |||
type = type.length == 0 ? 'sStatue1' : type; | |||
that.addClass('active'); | |||
@@ -48,20 +46,19 @@ | |||
$(".timeTableList li").each(function () { | |||
var keType = $(this).attr("kqtype") ? $(this).attr("kqtype") : "0"; | |||
console.log(keType); | |||
var object = JSON.parse($(this).attr("student")); | |||
object.kqType = keType; | |||
rowData.push(object); | |||
}) | |||
var jsonObj = JSON.parse(JSON.stringify(rowData)); | |||
console.log(JSON.stringify(jsonObj)); | |||
learun.layer.confirm('是否确认提交考勤?', | |||
function (num) { | |||
learun.layer.loading(true, '正在提交'); | |||
learun.httppost( | |||
config.webapi + '/Learun/EducationalAdministration/StuAttendanceLeave/apply', | |||
config.webapi + '/Learun/adms/EducationalAdministration/StuAttendanceLeave/apply', | |||
{ | |||
lessonTime: param.LessonTime, | |||
lessonDate: param.LessonDate, | |||
@@ -103,7 +100,6 @@ | |||
) | |||
}; | |||
learun.httpget(config.webapi + "/teachattendance/students", _postParam, (data) => { | |||
console.log(data); | |||
studentCheckData(data, param) | |||
}) | |||
} | |||
@@ -115,7 +111,9 @@ | |||
} else { | |||
$.each(weekData2.rows, function (j, k) { | |||
var statusName = !k.Sort ? 'sStatue1' : k.Sort == "准时" ? 'sStatue1' : k.Sort == "早退" ? 'sStatue2' : k.Sort == "旷课" ? 'sStatue3' : k.Sort == "病假" ? 'sStatue4' : k.Sort == "迟到" ? 'sStatue5' : 'sStatue6'; | |||
html += '<li student=' + JSON.stringify(k) + ' class="' + statusName + '"><div>' + | |||
var sktype = !k.Sort ? '0' : k.Sort == "准时" ? '0' : k.Sort == "早退" ? '2' : k.Sort == "旷课" ? '5' : k.Sort == "病假" ? '3' : k.Sort == "迟到" ? '1' : '4'; | |||
k.kqType=sktype; | |||
html += '<li student=' + JSON.stringify(k) + ' class="' + statusName + '" kqtype="'+sktype+'"><div>' + | |||
k.StuName + '<span class="iconfont icon-check"></span>' + | |||
'</div></li>'; | |||
}) | |||
@@ -85,7 +85,8 @@ | |||
}; | |||
function studentCheckData(Monday, Sunday) { | |||
var studCheckList = $('.studCheckList'); | |||
learun.httpget(config.webapi + "learun/adms/timetable/StuLessonInfo", {}, (data) => { | |||
var param = { StartDate: Monday, EndDate: Sunday }; | |||
learun.httpget(config.webapi + "learun/adms/timetable/StuLessonInfo", param, (data) => { | |||
console.log(data); | |||
$.each(data, function (i, n) { | |||
var html = ''; | |||
@@ -131,8 +132,6 @@ | |||
} | |||
studCheckList.eq(parseInt(n.week) - 1).html(html) | |||
}) | |||
}) | |||
@@ -25,6 +25,7 @@ | |||
//获取学年学期列表 | |||
learun.layer.loading(true, '获取数据中'); | |||
learun.httpget(config.webapi + "scoreSearch/academicAndSemesterList", {}, (data) => { | |||
console.log(data) | |||
if (data == null || data.length <= 0) { | |||
$('.studSeeSec2 .studSeeSec2Top').hide(); | |||
$('.studSeeSec2 .tips').show(); | |||
@@ -52,6 +53,7 @@ | |||
function studentSeeAjax(id) { | |||
var param = { value: id }; | |||
learun.httpget(config.webapi + "scoreSearch/scoreList", param, (data) => { | |||
console.log(data) | |||
if(data != null){ | |||
var html1 = '<div class="studSeeSec2Txt">' + | |||
'<div><span>' + data.Rank + '</span>名</div><div>班级排名</div>' + | |||
@@ -1,4 +1,4 @@ | |||
<div class="lr-form-container"> | |||
<div class="lr-form-container"> | |||
<div class="lr-form-row " hidden data-table="StuAttendanceLeave"> | |||
<label>学年度</label> | |||
@@ -109,5 +109,4 @@ | |||
<label>备注</label> | |||
<textarea id="Remark" style="height:100px;"></textarea> | |||
</div> | |||
</div> |
@@ -1,4 +1,4 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2019-06-24 14:40 | |||
@@ -50,35 +50,7 @@ | |||
$header.find('.f-page-title').text('请假'); | |||
$page.find('.lr-form-container').setFormWrite(); | |||
}); | |||
//// 更多 | |||
//$header.find('.lr-form-header-more').on('tap', function () { | |||
// learun.actionsheet({ | |||
// id: 'more', | |||
// data: [ | |||
// { | |||
// text: '删除', | |||
// mark: true, | |||
// event: function () {// 删除当前条信息 | |||
// learun.layer.confirm('确定要删除该笔数据吗?', function (_index) { | |||
// if (_index === '1') { | |||
// learun.layer.loading(true, '正在删除该笔数据'); | |||
// learun.httppost(config.webapi + 'learun/EducationalAdministration/StuAttendanceLeave/delete', keyValue, (data) => { | |||
// learun.layer.loading(false); | |||
// if (data) {// 删除数据成功 | |||
// learun.nav.closeCurrent(); | |||
// var prepage = learun.nav.getpage('EducationalAdministration/StuAttendanceLeave'); | |||
// prepage.grid.reload(); | |||
// } | |||
// }); | |||
// } | |||
// }, '智慧校园提示', ['取消', '确定']); | |||
// } | |||
// } | |||
// ], | |||
// cancel: function () { | |||
// } | |||
// }); | |||
//}); | |||
// 提交 | |||
$header.find('.lr-form-header-submit').on('tap', function () { | |||
// 获取表单数据 | |||
@@ -88,6 +60,9 @@ | |||
var _postData = {} | |||
_postData.keyValue = keyValue; | |||
_postData.strEntity = JSON.stringify($page.find('.lr-form-container').lrformGet()); | |||
console.log($page.find('.lr-form-container').lrformGet()) | |||
console.log(_postData) | |||
return | |||
learun.layer.loading(true, '正在提交数据'); | |||
learun.httppost(config.webapi + 'learun/EducationalAdministration/StuAttendanceLeave/save', _postData, (data) => { | |||
learun.layer.loading(false); | |||
@@ -115,10 +90,9 @@ | |||
$header.find('.lr-form-header-btnlist').show(); | |||
// 获取表单数据 | |||
learun.layer.loading(true, '获取表单数据'); | |||
learun.httpget(config.webapi + 'learun/EducationalAdministration/StuAttendanceLeave/leaveform', keyValue, (data) => { | |||
learun.httpget(config.webapi + 'learun/adms/EducationalAdministration/StuAttendanceLeave/leaveform', {}, (data) => { | |||
console.log(data); | |||
if (data) { | |||
for (var id in data) { | |||
if (data[id]) { | |||
if (data[id].length) { | |||
@@ -94,6 +94,7 @@ | |||
function loadData(start, end) { | |||
judgeDate(todayWeek.SundayTime); | |||
var param = { StartDate: start, EndDate: end }; | |||
// let param = { StartDate: '2018-11-05', EndDate: '2018-11-11' }; | |||
learun.httpget(config.webapi + "learun/adms/timetable/list", param, (data) => { | |||
weekData = data; | |||
var weekData2 = ProcessingData(weekData); | |||
@@ -216,6 +216,8 @@ | |||
StuInfoFreshFamilyEntities: family(), | |||
StuInfoFreshEmergePeopleEntities: emergePeople() | |||
}; | |||
console.log(postdata) | |||
// return | |||
learun.layer.loading(true, '正在提交数据'); | |||
learun.httpget(config.webapi + "StuInfoFresh/saveStuInfoFresh", postdata, (data) => { | |||
learun.layer.loading(false); | |||
@@ -1,4 +1,4 @@ | |||
/* | |||
/* | |||
* 版 本 Learun-ADMS V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
* Copyright (c) 2013-2017 北京泉江科技有限公司 | |||
* 创建人:数字化智慧校园-前端开发组 | |||
@@ -172,6 +172,9 @@ namespace Learun.Application.Organization | |||
/// <returns></returns> | |||
[Column("F_ORDER")] | |||
public int? F_Order { get; set; } | |||
[Column("F_ISVIRTUALIZATION")] | |||
public bool? F_IsVirtualization { get; set; } | |||
#endregion | |||
#region 扩展操作 | |||
@@ -668,6 +668,7 @@ namespace Learun.Application.Organization | |||
companyId = item.F_CompanyId, | |||
departmentId = item.F_DepartmentId, | |||
name = item.F_RealName, | |||
mobile=item?.F_Mobile | |||
}; | |||
string img = ""; | |||
if (!string.IsNullOrEmpty(item.F_HeadIcon)) | |||
@@ -857,7 +858,7 @@ namespace Learun.Application.Organization | |||
/// 重置密码 | |||
/// </summary> | |||
/// <param name="keyValue">账号主键</param> | |||
public void ResetPassword(string keyValue) | |||
public void ResetPassword(string keyValue, string defaultpwd) | |||
{ | |||
try | |||
{ | |||
@@ -871,7 +872,7 @@ namespace Learun.Application.Organization | |||
{ | |||
cache.Remove(cacheKeyId + item, CacheId.user); | |||
} | |||
string password = Md5Helper.Encrypt(ConfigurationManager.AppSettings["defaultpwd"], 32).ToLower(); | |||
string password = Md5Helper.Encrypt(defaultpwd, 32).ToLower(); | |||
userService.RevisePasswordBatch(keyValue, password); | |||
} | |||
catch (Exception ex) | |||
@@ -908,7 +909,7 @@ namespace Learun.Application.Organization | |||
/// 重置密码(八位) | |||
/// </summary> | |||
/// <param name="keyValue">账号主键</param> | |||
public void ResetPasswordEight(string keyValue) | |||
public void ResetPasswordEight(string keyValue, string defaultpwd) | |||
{ | |||
try | |||
{ | |||
@@ -916,7 +917,7 @@ namespace Learun.Application.Organization | |||
{ | |||
cache.Remove(cacheKeyId + item, CacheId.user); | |||
} | |||
string password = Md5Helper.Encrypt(ConfigurationManager.AppSettings["defaultpwdeight"], 32).ToLower(); | |||
string password = Md5Helper.Encrypt(defaultpwd, 32).ToLower(); | |||
userService.RevisePasswordBatch(keyValue, password); | |||
} | |||
catch (Exception ex) | |||
@@ -1201,6 +1202,31 @@ namespace Learun.Application.Organization | |||
} | |||
} | |||
/// <summary> | |||
/// 修改用户的允许登录结束时间 | |||
/// </summary> | |||
/// <param name="keyValue">主键值</param> | |||
/// <param name="state">状态:1-赋值;0-重置</param> | |||
public void UpdateAllowEndTime(string keyValue, int state) | |||
{ | |||
try | |||
{ | |||
userService.UpdateAllowEndTime(keyValue, state); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
///// <summary> | |||
///// 获取用户头像 | |||
///// </summary> | |||
@@ -130,12 +130,12 @@ namespace Learun.Application.Organization | |||
/// 重置密码 | |||
/// </summary> | |||
/// <param name="keyValue">账号主键</param> | |||
void ResetPassword(string keyValue); | |||
void ResetPassword(string keyValue, string defaultpwd); | |||
/// <summary> | |||
/// 重置密码(八位) | |||
/// </summary> | |||
/// <param name="keyValue">账号主键</param> | |||
void ResetPasswordEight(string keyValue); | |||
void ResetPasswordEight(string keyValue, string defaultpwd); | |||
/// <summary> | |||
/// 修改用户状态 | |||
/// </summary> | |||
@@ -179,7 +179,7 @@ namespace Learun.Application.Organization | |||
/// <param name="userId">用户ID</param> | |||
void GetImg(string userId); | |||
void setPassword(string userid,string pwd); | |||
void setPassword(string userid, string pwd); | |||
List<UserEntity> GetStudents(); | |||
#endregion | |||
@@ -195,5 +195,12 @@ namespace Learun.Application.Organization | |||
void UpdateIp(string ip, string id); | |||
void GetImgForDC(string userId); | |||
UserEntity GetEntityByWeixinOpenIdPC(string openId); | |||
/// <summary> | |||
/// 修改用户的允许登录结束时间 | |||
/// </summary> | |||
/// <param name="keyValue">主键值</param> | |||
/// <param name="state">状态:1-赋值;0-重置</param> | |||
void UpdateAllowEndTime(string keyValue, int state); | |||
} | |||
} |
@@ -26,5 +26,6 @@ | |||
/// </summary> | |||
public string img { get; set; } | |||
public string id { get; set; } | |||
public string mobile { get; set; } | |||
} | |||
} |
@@ -128,7 +128,7 @@ namespace Learun.Application.Organization | |||
{ | |||
try | |||
{ | |||
return this.BaseRepository().FindList<UserEntity>(a => a.F_Description == "教师").ToList().Count() > 0 ? true : false; | |||
return this.BaseRepository().FindList<UserEntity>(a =>a.F_Description == "教师"&&a.F_DeleteMark==1&&a.F_EnabledMark==1).ToList().Count() > 0 ? true : false; | |||
} | |||
catch (Exception ex) | |||
{ | |||
@@ -848,6 +848,38 @@ namespace Learun.Application.Organization | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 修改用户的允许登录结束时间 | |||
/// </summary> | |||
/// <param name="keyValue">主键值</param> | |||
/// <param name="state">状态:1-赋值;0-重置</param> | |||
public void UpdateAllowEndTime(string keyValue, int state) | |||
{ | |||
try | |||
{ | |||
if (state == 0) | |||
{ | |||
this.BaseRepository().ExecuteBySql("update LR_Base_User set F_AllowEndTime=null where F_UserId='" + keyValue + "'"); | |||
} | |||
else | |||
{ | |||
this.BaseRepository().ExecuteBySql("update LR_Base_User set F_AllowEndTime='" + DateTime.Now + "' where F_UserId='" + keyValue + "'"); | |||
} | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
} | |||
} |
@@ -0,0 +1,247 @@ | |||
using System; | |||
using Learun.Util; | |||
using System.Data; | |||
using Learun.Application.TwoDevelopment.Ask; | |||
using System.Web.Mvc; | |||
using System.Collections.Generic; | |||
using Learun.Application.TwoDevelopment.EducationalAdministration; | |||
namespace Learun.Application.Web.Areas.Ask.Controllers | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园 | |||
/// Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2019-04-23 15:50 | |||
/// 描 述:教师问卷管理 | |||
/// </summary> | |||
public class Ask_MainOfTeacherController : MvcControllerBase | |||
{ | |||
private Ask_MainOfTeacherIBLL ask_MainOfTeacherIBLL = new Ask_MainOfTeacherBLL(); | |||
#region 视图功能 | |||
/// <summary> | |||
/// 主页面 | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult Index() | |||
{ | |||
return View(); | |||
} | |||
[HttpGet] | |||
public ActionResult AnswerIndex() | |||
{ | |||
return View(); | |||
} | |||
[HttpGet] | |||
public ActionResult TeacherIndex() | |||
{ | |||
var logininfo = LoginUserInfo.Get(); | |||
ViewBag.EmpNo = logininfo.account; | |||
ViewBag.EmpName = logininfo.realName; | |||
return View(); | |||
} | |||
[HttpGet] | |||
public ActionResult AnswerQuery() | |||
{ | |||
return View(); | |||
} | |||
[HttpGet] | |||
public ActionResult Paper(string VID) | |||
{ | |||
ViewBag.EmpNo = LoginUserInfo.Get().account; | |||
ViewBag.EmpName = LoginUserInfo.Get().realName; | |||
if (!string.IsNullOrEmpty(VID)) | |||
{ | |||
var Ask_MainOfTeacher = ask_MainOfTeacherIBLL.GetAsk_MainOfTeacherEntityAndQuestions(VID); | |||
return View(Ask_MainOfTeacher); | |||
} | |||
else | |||
{ | |||
return View(); | |||
} | |||
} | |||
[HttpGet] | |||
public ActionResult PaperAdminView(string VID) | |||
{ | |||
ViewBag.EmpNo = LoginUserInfo.Get().account; | |||
ViewBag.EmpName = LoginUserInfo.Get().realName; | |||
if (!string.IsNullOrEmpty(VID)) | |||
{ | |||
var Ask_MainOfTeacher = ask_MainOfTeacherIBLL.GetAsk_MainOfTeacherEntityAndQuestions(VID); | |||
return View(Ask_MainOfTeacher); | |||
} | |||
else | |||
{ | |||
return View(); | |||
} | |||
} | |||
[HttpGet] | |||
public ActionResult PaperView(string VID,string EmpNo) | |||
{ | |||
if (!string.IsNullOrEmpty(VID)) | |||
{ | |||
var Ask_MainOfTeacher = ask_MainOfTeacherIBLL.GetAsk_MainOfTeacherEntityAndQuestionsResult(VID, EmpNo); | |||
return View(Ask_MainOfTeacher); | |||
} | |||
else | |||
{ | |||
return View(); | |||
} | |||
} | |||
/// <summary> | |||
/// 表单页 | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult Form() | |||
{ | |||
ViewBag.VSerial = "Table_" + CommonHelper.CreateNo(); | |||
return View(); | |||
} | |||
#endregion | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取页面显示列表数据 | |||
/// <summary> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
[HttpGet] | |||
[AjaxOnly] | |||
public ActionResult GetPageList(string pagination, string queryJson) | |||
{ | |||
Pagination paginationobj = pagination.ToObject<Pagination>(); | |||
var data = ask_MainOfTeacherIBLL.GetPageList(paginationobj, queryJson); | |||
var jsonData = new | |||
{ | |||
rows = data, | |||
total = paginationobj.total, | |||
page = paginationobj.page, | |||
records = paginationobj.records | |||
}; | |||
return Success(jsonData); | |||
} | |||
[HttpGet] | |||
[AjaxOnly] | |||
public ActionResult GetTeacherPageList(string pagination, string queryJson) | |||
{ | |||
Pagination paginationobj = pagination.ToObject<Pagination>(); | |||
var data = ask_MainOfTeacherIBLL.GetTeacherPageList(paginationobj, queryJson); | |||
var jsonData = new | |||
{ | |||
rows = data, | |||
total = paginationobj.total, | |||
page = paginationobj.page, | |||
records = paginationobj.records | |||
}; | |||
return Success(jsonData); | |||
} | |||
[HttpGet] | |||
[AjaxOnly] | |||
public ActionResult GetAnswerPageList(string pagination, string queryJson) | |||
{ | |||
Pagination paginationobj = pagination.ToObject<Pagination>(); | |||
var data = ask_MainOfTeacherIBLL.GetTeacherPageList(paginationobj, queryJson); | |||
var jsonData = new | |||
{ | |||
rows = data, | |||
total = paginationobj.total, | |||
page = paginationobj.page, | |||
records = paginationobj.records | |||
}; | |||
return Success(jsonData); | |||
} | |||
/// <summary> | |||
/// 获取表单数据 | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
[AjaxOnly] | |||
public ActionResult GetFormData(string keyValue) | |||
{ | |||
var Ask_MainOfTeacherData = ask_MainOfTeacherIBLL.GetAsk_MainOfTeacherEntity(keyValue); | |||
var jsonData = new | |||
{ | |||
Ask_MainOfTeacher = Ask_MainOfTeacherData, | |||
}; | |||
return Success(jsonData); | |||
} | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[AjaxOnly] | |||
public ActionResult DeleteForm(string keyValue) | |||
{ | |||
ask_MainOfTeacherIBLL.DeleteEntity(keyValue); | |||
return Success("删除成功!"); | |||
} | |||
[HttpPost] | |||
[AjaxOnly] | |||
public ActionResult SubmitForm(string keyValue) | |||
{ | |||
ask_MainOfTeacherIBLL.ChangeFormStatus(keyValue, true); | |||
return Success("操作成功!"); | |||
} | |||
[HttpPost] | |||
[AjaxOnly] | |||
public ActionResult UnSubmitForm(string keyValue) | |||
{ | |||
ask_MainOfTeacherIBLL.ChangeFormStatus(keyValue, false); | |||
return Success("操作成功!"); | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// <param name="keyValue">主键</param> | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[ValidateAntiForgeryToken] | |||
[AjaxOnly] | |||
public ActionResult SaveForm(string keyValue, string strEntity) | |||
{ | |||
var userinfo = LoginUserInfo.Get(); | |||
Ask_MainOfTeacherEntity entity = strEntity.ToObject<Ask_MainOfTeacherEntity>(); | |||
entity.UID = userinfo.userId; | |||
entity.UName = userinfo.realName; | |||
entity.VCreateTime = DateTime.Now; | |||
entity.Status = false; | |||
entity.SPVNum = 0; | |||
entity.SPNum = 0; | |||
entity.SClick = 0; | |||
ask_MainOfTeacherIBLL.SaveEntity(keyValue, entity); | |||
return Success("保存成功!"); | |||
} | |||
[HttpPost] | |||
[ValidateAntiForgeryToken] | |||
[AjaxOnly] | |||
[ValidateInput(false)] | |||
public ActionResult TeacherSubmitForm(string answerlist,string VID) | |||
{ | |||
var userinfo = LoginUserInfo.Get(); | |||
List<Ask_QuestionResultEntity> entity = answerlist.ToObject<List<Ask_QuestionResultEntity>>(); | |||
ask_MainOfTeacherIBLL.SaveAsk_QuestionResultEntity(entity, VID,userinfo.account,userinfo.realName, userinfo.iPAddress); | |||
return Success("保存成功!"); | |||
} | |||
#endregion | |||
} | |||
} |
@@ -3,6 +3,7 @@ using System.Data; | |||
using Learun.Application.TwoDevelopment.Ask; | |||
using System.Web.Mvc; | |||
using System.Collections.Generic; | |||
using System.Linq; | |||
namespace Learun.Application.Web.Areas.Ask.Controllers | |||
{ | |||
@@ -26,7 +27,7 @@ namespace Learun.Application.Web.Areas.Ask.Controllers | |||
[HttpGet] | |||
public ActionResult Index() | |||
{ | |||
return View(); | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 表单页 | |||
@@ -35,7 +36,7 @@ namespace Learun.Application.Web.Areas.Ask.Controllers | |||
[HttpGet] | |||
public ActionResult Form() | |||
{ | |||
return View(); | |||
return View(); | |||
} | |||
#endregion | |||
@@ -66,7 +67,7 @@ namespace Learun.Application.Web.Areas.Ask.Controllers | |||
[AjaxOnly] | |||
public ActionResult GetAnalysisList(string queryJson) | |||
{ | |||
var data = ask_QuestionItemsIBLL.GetAnalysisList(queryJson); | |||
var data = ask_QuestionItemsIBLL.GetAnalysisList(queryJson).OrderBy(x => x.IOrder); | |||
return Success(data); | |||
} | |||
/// <summary> | |||
@@ -77,8 +78,9 @@ namespace Learun.Application.Web.Areas.Ask.Controllers | |||
[AjaxOnly] | |||
public ActionResult GetFormData(string keyValue) | |||
{ | |||
var Ask_QuestionItemsData = ask_QuestionItemsIBLL.GetAsk_QuestionItemsEntity( keyValue ); | |||
var jsonData = new { | |||
var Ask_QuestionItemsData = ask_QuestionItemsIBLL.GetAsk_QuestionItemsEntity(keyValue); | |||
var jsonData = new | |||
{ | |||
Ask_QuestionItems = Ask_QuestionItemsData, | |||
}; | |||
return Success(jsonData); | |||
@@ -110,7 +112,7 @@ namespace Learun.Application.Web.Areas.Ask.Controllers | |||
public ActionResult SaveForm(string keyValue, string strEntity) | |||
{ | |||
Ask_QuestionItemsEntity entity = strEntity.ToObject<Ask_QuestionItemsEntity>(); | |||
ask_QuestionItemsIBLL.SaveEntity(keyValue,entity); | |||
ask_QuestionItemsIBLL.SaveEntity(keyValue, entity); | |||
return Success("保存成功!"); | |||
} | |||
#endregion | |||
@@ -0,0 +1,38 @@ | |||
@{ | |||
ViewBag.Title = "教师问卷管理"; | |||
Layout = "~/Views/Shared/_Index.cshtml"; | |||
} | |||
<div class="lr-layout "> | |||
<div class="lr-layout-center"> | |||
<div class="lr-layout-wrap lr-layout-wrap-notitle "> | |||
<div class="lr-layout-tool"> | |||
<div class="lr-layout-tool-left"> | |||
<div class="lr-layout-tool-item"> | |||
<div id="multiple_condition_query"> | |||
<div class="lr-query-formcontent"> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">姓名</div> | |||
<input id="EmpName" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">编号</div> | |||
<input id="EmpNo" type="text" class="form-control" /> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-tool-right"> | |||
<div class=" btn-group btn-group-sm"> | |||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | |||
</div> | |||
<div class=" btn-group btn-group-sm" learun-authorize="yes"> | |||
<a id="lr_view" class="btn btn-default"><i class="fa fa-building-o"></i> 查看答卷</a> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/Ask/Views/Ask_MainOfTeacher/AnswerIndex.js") |
@@ -0,0 +1,88 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2019-04-23 15:50 | |||
* 描 述:教师问卷管理 | |||
*/ | |||
var refreshGirdData; | |||
var VID = request("VID"); | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var page = { | |||
init: function () { | |||
page.initGird(); | |||
page.bind(); | |||
}, | |||
bind: function () { | |||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | |||
page.search(queryJson); | |||
}, 220, 400); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
}); | |||
// 答题情况 | |||
$('#lr_view').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('VID'); | |||
var EmpNo = $('#gridtable').jfGridValue('EmpNo'); | |||
if (learun.checkrow(keyValue)) { | |||
var Status = $('#gridtable').jfGridValue('IsAnswer'); | |||
if (Status === false || Status === 'false') { | |||
learun.alert.warning("当前项目未交卷!"); | |||
return; | |||
} | |||
learun.frameTab.open({ F_ModuleId: 'paper' + keyValue, F_Icon: 'fa fa-window-maximize', F_FullName: '量表考核答卷', F_UrlAddress: '/Ask/Ask_MainOfTeacher/PaperView?VID=' + keyValue + '&EmpNo=' + EmpNo }); | |||
} | |||
}); | |||
}, | |||
// 初始化列表 | |||
initGird: function () { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/Ask/Ask_MainOfTeacher/GetAnswerPageList', | |||
headData: [ | |||
{ label: "姓名", name: "EmpName", width: 80, align: "left" }, | |||
{ label: "编号", name: "EmpNo", width: 80, align: "left" }, | |||
{ | |||
label: "性别", name: "GenderNo", width: 80, align: "left", | |||
formatter: function (cellvalue) { | |||
return cellvalue.toLowerCase() === true || cellvalue.toLowerCase() == "true" ? "男" : "女"; | |||
} | |||
}, | |||
{ | |||
label: "考核部门", name: "DepartmentId", width: 150, align: "left", formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', | |||
key: value, | |||
keyId: 'id', | |||
callback: function (_data) { | |||
callback(_data['name']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: "是否交卷", name: "IsAnswer", width: 80, align: "left", formatter: function (cellvalue) { | |||
return cellvalue === true ? "<i class=\"fa fa-toggle-on\"></i>" : "<i class=\"fa fa-toggle-off\"></i>"; | |||
} | |||
}, | |||
{ label: "得分", name: "TotalScore", width: 80, align: "left" } | |||
], | |||
mainId: 'EmpNo', | |||
isPage: true, | |||
sidx: 'TotalScore', | |||
sord: 'DESC' | |||
}); | |||
page.search(); | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
param.VID = VID; | |||
param.Manager = true; | |||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
refreshGirdData = function () { | |||
page.search(); | |||
}; | |||
page.init(); | |||
} |
@@ -0,0 +1,46 @@ | |||
@{ | |||
ViewBag.Title = "教师问卷管理"; | |||
Layout = "~/Views/Shared/_Index.cshtml"; | |||
} | |||
<div class="lr-layout "> | |||
<div class="lr-layout-center"> | |||
<div class="lr-layout-wrap lr-layout-wrap-notitle "> | |||
<div class="lr-layout-tool"> | |||
<div class="lr-layout-tool-left"> | |||
<div class="lr-layout-tool-item"> | |||
<div id="multiple_condition_query"> | |||
<div class="lr-query-formcontent"> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">标题</div> | |||
<input id="VTitle" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">问卷编号</div> | |||
<input id="VSerial" type="text" class="form-control" /> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-tool-right"> | |||
<div class=" btn-group btn-group-sm"> | |||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | |||
</div> | |||
<div class=" btn-group btn-group-sm" learun-authorize="yes"> | |||
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 录入</a> | |||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 修改</a> | |||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | |||
<a id="lr_question" class="btn btn-default"><i class="fa fa-navicon"></i> 管理问题</a> | |||
<a id="lr_answer" class="btn btn-default"><i class="fa fa-building-o"></i> 答题情况</a> | |||
</div> | |||
<div class=" btn-group btn-group-sm" learun-authorize="yes"> | |||
<a id="lr_submit" class="btn btn-default"><i class="fa fa-lock"></i> 审核</a> | |||
<a id="lr_unsubmit" class="btn btn-default"><i class="fa fa-unlock"></i> 去审核</a> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/Ask/Views/Ask_MainOfTeacher/AnswerQuery.js") |
@@ -0,0 +1,217 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2019-04-23 15:50 | |||
* 描 述:教师问卷管理 | |||
*/ | |||
var refreshGirdData; | |||
var ATId; | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var page = { | |||
init: function () { | |||
page.inittree(); | |||
page.initGird(); | |||
page.bind(); | |||
}, | |||
bind: function () { | |||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | |||
page.search(queryJson); | |||
}, 220, 400); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
}); | |||
// 新增 | |||
$('#lr_add').on('click', function () { | |||
if (!ATId) { | |||
learun.alert.warning('请选择分类!'); | |||
return false; | |||
} | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '新增', | |||
url: top.$.rootUrl + '/Ask/Ask_MainOfTeacher/Form?ATId=' + ATId, | |||
width: 780, | |||
height: 560, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
}); | |||
// 编辑 | |||
$('#lr_edit').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('VID'); | |||
if (learun.checkrow(keyValue)) { | |||
var Status = $('#gridtable').jfGridValue('Status'); | |||
if (Status === true || Status == 'true') { | |||
learun.alert.warning("当前项目已审核不能修改!"); | |||
return; | |||
} | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '编辑', | |||
url: top.$.rootUrl + '/Ask/Ask_MainOfTeacher/Form?keyValue=' + keyValue, | |||
width: 780, | |||
height: 560, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
} | |||
}); | |||
// 删除 | |||
$('#lr_delete').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('VID'); | |||
if (learun.checkrow(keyValue)) { | |||
var Status = $('#gridtable').jfGridValue('Status'); | |||
if (Status === true || Status == 'true') { | |||
learun.alert.warning("当前项目已审核不能删除!"); | |||
return; | |||
} | |||
learun.layerConfirm('是否确认删除该项!', function (res) { | |||
if (res) { | |||
learun.deleteForm(top.$.rootUrl + '/Ask/Ask_MainOfTeacher/DeleteForm', { keyValue: keyValue }, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
// 管理问题 | |||
$('#lr_question').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('VID'); | |||
if (learun.checkrow(keyValue)) { | |||
var Status = $('#gridtable').jfGridValue('Status'); | |||
if (Status === true || Status == 'true') { | |||
learun.alert.warning("当前项目已审核不能修改!"); | |||
return; | |||
} | |||
learun.layerForm({ | |||
id: 'formquestion', | |||
title: '管理问题', | |||
url: top.$.rootUrl + '/Ask/Ask_Question/Index?VID=' + keyValue, | |||
width: 980, | |||
height: 760, | |||
btn:null | |||
}); | |||
} | |||
}); | |||
// 答题情况 | |||
$('#lr_answer').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('VID'); | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerForm({ | |||
id: 'formanswer', | |||
title: '答题情况', | |||
url: top.$.rootUrl + '/Ask/Ask_MainOfTeacher/AnswerIndex?VID=' + keyValue, | |||
width: 980, | |||
height: 760, | |||
btn:null | |||
}); | |||
} | |||
}); | |||
// 审核 | |||
$('#lr_submit').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('VID'); | |||
if (learun.checkrow(keyValue)) { | |||
var Status = $('#gridtable').jfGridValue('Status'); | |||
if (Status === true || Status == 'true') { | |||
learun.alert.warning("当前项目已审核!"); | |||
return; | |||
} | |||
learun.layerConfirm('是否确认审核该项!', function (res) { | |||
if (res) { | |||
learun.postForm(top.$.rootUrl + '/Ask/Ask_MainOfTeacher/SubmitForm', { keyValue: keyValue }, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
// 去审核 | |||
$('#lr_unsubmit').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('VID'); | |||
if (learun.checkrow(keyValue)) { | |||
var Status = $('#gridtable').jfGridValue('Status'); | |||
if (Status !== true && Status !== 'true') { | |||
learun.alert.warning("当前项目已去审核!"); | |||
return; | |||
} | |||
learun.layerConfirm('是否确认去审核该项!', function (res) { | |||
if (res) { | |||
learun.postForm(top.$.rootUrl + '/Ask/Ask_MainOfTeacher/UnSubmitForm', { keyValue: keyValue }, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
}, | |||
inittree: function () { | |||
$('#companyTree').lrtree({ | |||
url: top.$.rootUrl + '/Ask/Ask_Type/GetAllTree', | |||
nodeClick: page.treeNodeClick | |||
}); | |||
}, | |||
treeNodeClick: function (item) { | |||
ATId = item.id; | |||
$('#titleinfo').text(item.text); | |||
page.search(); | |||
}, | |||
// 初始化列表 | |||
initGird: function () { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/Ask/Ask_MainOfTeacher/GetPageList', | |||
headData: [ | |||
{ label: "问卷编号", name: "VSerial", width: 180, align: "left" }, | |||
{ label: "标题", name: "VTitle", width: 200, align: "left" }, | |||
{ | |||
label: "类别", name: "ATId", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ask_Type', | |||
key: value, | |||
keyId: 'atid', | |||
callback: function (_data) { | |||
callback(_data['atname']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: "开始时间", name: "VStartTime", width: 100, align: "left" }, | |||
{ label: "结束时间", name: "VStopTime", width: 100, align: "left" }, | |||
{ label: "考核部门", name: "DepartmentIdsName", width: 150, align: "left" }, | |||
{ label: "考核人数", name: "SPVNum", width: 80, align: "left" }, | |||
{ label: "填写人数", name: "SPNum", width: 80, align: "left" }, | |||
{ label: "点击热度", name: "SClick", width: 80, align: "left" }, | |||
{ label: "排序", name: "VOrder", width: 80, align: "left" }, | |||
{ | |||
label: "是否匿名", name: "VHide", width: 100, align: "left", | |||
formatter: function (cellvalue) { | |||
return cellvalue == true ? "<i class=\"fa fa-toggle-on\"></i>" : "<i class=\"fa fa-toggle-off\"></i>"; | |||
} | |||
}, | |||
{ | |||
label: "审核标志", name: "Status", width: 100, align: "left", formatter: function (cellvalue) { | |||
return cellvalue == true ? "<i class=\"fa fa-toggle-on\"></i>" : "<i class=\"fa fa-toggle-off\"></i>"; | |||
} | |||
} | |||
], | |||
mainId: 'VID', | |||
isPage: true, | |||
sidx:'VOrder' | |||
}); | |||
page.search(); | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
param.ATId = ATId; | |||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
refreshGirdData = function () { | |||
page.search(); | |||
}; | |||
page.init(); | |||
} |
@@ -0,0 +1,48 @@ | |||
@{ | |||
ViewBag.Title = "教师问卷管理"; | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<script type="text/javascript"> | |||
var NewVSerial = "@ViewBag.VSerial"; | |||
</script> | |||
<div class="lr-form-wrap"> | |||
<div class="col-xs-12 lr-form-item" data-table="Ask_MainOfTeacher" > | |||
<div class="lr-form-item-title">问卷编号</div> | |||
<input id="VSerial" type="text" class="form-control" readonly="readonly" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="Ask_MainOfTeacher" > | |||
<div class="lr-form-item-title">标题<font face="宋体">*</font></div> | |||
<input id="VTitle" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Ask_MainOfTeacher"> | |||
<div class="lr-form-item-title">类别<font face="宋体">*</font></div> | |||
<div id="ATId" isvalid="yes" checkexpession="NotNull"></div> | |||
<input id="ATName" type="hidden" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Ask_MainOfTeacher" > | |||
<div class="lr-form-item-title">排序<font face="宋体">*</font></div> | |||
<input id="VOrder" type="text" class="form-control" isvalid="yes" checkexpession="Num" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Ask_MainOfTeacher" > | |||
<div class="lr-form-item-title">开始时间<font face="宋体">*</font></div> | |||
<input id="VStartTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ maxDate:'#F{$dp.$D(\'VStopTime\')}',dateFmt:'yyyy-MM-dd',onpicked: function () { $('#VStartTime').trigger('change'); } })" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Ask_MainOfTeacher" > | |||
<div class="lr-form-item-title">结束时间<font face="宋体">*</font></div> | |||
<input id="VStopTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ minDate:'#F{$dp.$D(\'VStartTime\')}',dateFmt:'yyyy-MM-dd',onpicked: function () { $('#VStopTime').trigger('change'); } })" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Ask_MainOfTeacher"> | |||
<div class="lr-form-item-title">考核部门</div> | |||
<div id="DepartmentIds"></div> | |||
<input id="DepartmentIdsName" type="hidden" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Ask_MainOfTeacher" > | |||
<div class="lr-form-item-title">是否匿名<font face="宋体">*</font></div> | |||
<div id="VHide" isvalid="yes" checkexpession="NotNull" ></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="Ask_MainOfTeacher" > | |||
<div class="lr-form-item-title">备注说明</div> | |||
<textarea id="VContent" class="form-control" style="height:150px;" ></textarea> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/Ask/Views/Ask_MainOfTeacher/Form.js") |
@@ -0,0 +1,73 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2019-04-23 15:50 | |||
* 描 述:教师问卷管理 | |||
*/ | |||
var acceptClick; | |||
var keyValue = request('keyValue'); | |||
var pATId = request("ATId"); | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var page = { | |||
init: function () { | |||
$('.lr-form-wrap').lrscroll(); | |||
page.bind(); | |||
page.initData(); | |||
}, | |||
bind: function () { | |||
$('#ATId').lrselect({ | |||
type: 'tree', | |||
// 展开最大高度 | |||
maxHeight: 200, | |||
// 是否允许搜索 | |||
allowSearch: true, | |||
// 访问数据接口地址 | |||
url: top.$.rootUrl + '/Ask/Ask_Type/GetAllTree', | |||
select: function(item) { | |||
if (item != null && item != undefined) { | |||
$("#ATName").val(item.text); | |||
} | |||
} | |||
}); | |||
if (!!pATId) { | |||
$('#ATId').lrselectSet(pATId); | |||
} | |||
$('#DepartmentIds').lrDepartmentSelect({ type: 'treemultiple' }); | |||
$('#VHide').lrDataItemSelect({ code: 'YesOrNoBit' }); | |||
}, | |||
initData: function () { | |||
if (!!keyValue) { | |||
$.lrSetForm(top.$.rootUrl + '/Ask/Ask_MainOfTeacher/GetFormData?keyValue=' + keyValue, | |||
function (data) { | |||
for (var id in data) { | |||
if (!!data[id].length && data[id].length > 0) { | |||
$('#' + id).jfGridSet('refreshdata', data[id]); | |||
} else { | |||
$('[data-table="' + id + '"]').lrSetFormData(data[id]); | |||
} | |||
} | |||
}); | |||
} else { | |||
$("#VSerial").val(NewVSerial); | |||
} | |||
} | |||
}; | |||
// 保存数据 | |||
acceptClick = function (callBack) { | |||
if (!$('body').lrValidform()) { | |||
return false; | |||
} | |||
$("#DepartmentIdsName").val($("#DepartmentIds").find(".lr-select-placeholder").text()); | |||
var postData = { | |||
strEntity: JSON.stringify($('body').lrGetFormData()) | |||
}; | |||
$.lrSaveForm(top.$.rootUrl + '/Ask/Ask_MainOfTeacher/SaveForm?keyValue=' + keyValue, postData, function (res) { | |||
// 保存成功后才回调 | |||
if (!!callBack) { | |||
callBack(); | |||
} | |||
}); | |||
}; | |||
page.init(); | |||
} |
@@ -0,0 +1,57 @@ | |||
@{ | |||
ViewBag.Title = "教师问卷管理"; | |||
Layout = "~/Views/Shared/_Index.cshtml"; | |||
} | |||
<div class="lr-layout lr-layout-left-center" id="lr_layout"> | |||
<div class="lr-layout-left"> | |||
<div class="lr-layout-wrap"> | |||
<div class="lr-layout-title lrlt ">分类</div> | |||
<div id="companyTree" class="lr-layout-body"></div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-center"> | |||
<div class="lr-layout-wrap"> | |||
<div class="lr-layout-title"> | |||
<span id="titleinfo" class="lrlt">未选择分类</span> - <span class="lrlt">分类信息</span> | |||
</div> | |||
<div class="lr-layout-tool"> | |||
<div class="lr-layout-tool-left"> | |||
<div class="lr-layout-tool-item"> | |||
<div id="multiple_condition_query"> | |||
<div class="lr-query-formcontent"> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">标题</div> | |||
<input id="VTitle" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">问卷编号</div> | |||
<input id="VSerial" type="text" class="form-control" /> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-tool-right"> | |||
<div class=" btn-group btn-group-sm"> | |||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | |||
</div> | |||
<div class=" btn-group btn-group-sm" learun-authorize="yes"> | |||
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 录入</a> | |||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 修改</a> | |||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | |||
<a id="lr_question" class="btn btn-default"><i class="fa fa-navicon"></i> 管理问题</a> | |||
<a id="lr_answer" class="btn btn-default"><i class="fa fa-building-o"></i> 答题情况</a> | |||
<a id="lr_analysis" class="btn btn-default"><i class="fa fa-building-o"></i> 结果分析</a> | |||
<a id="lr_view" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 查看问卷</a> | |||
</div> | |||
<div class=" btn-group btn-group-sm" learun-authorize="yes"> | |||
<a id="lr_submit" class="btn btn-default"><i class="fa fa-lock"></i> 审核</a> | |||
<a id="lr_unsubmit" class="btn btn-default"><i class="fa fa-unlock"></i> 去审核</a> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/Ask/Views/Ask_MainOfTeacher/Index.js") |
@@ -0,0 +1,237 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2019-04-23 15:50 | |||
* 描 述:教师问卷管理 | |||
*/ | |||
var refreshGirdData; | |||
var ATId; | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var page = { | |||
init: function () { | |||
page.inittree(); | |||
page.initGird(); | |||
page.bind(); | |||
}, | |||
bind: function () { | |||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | |||
page.search(queryJson); | |||
}, 220, 400); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
}); | |||
// 新增 | |||
$('#lr_add').on('click', function () { | |||
if (!ATId) { | |||
learun.alert.warning('请选择分类!'); | |||
return false; | |||
} | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '新增', | |||
url: top.$.rootUrl + '/Ask/Ask_MainOfTeacher/Form?ATId=' + ATId, | |||
width: 780, | |||
height: 560, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
}); | |||
// 编辑 | |||
$('#lr_edit').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('VID'); | |||
if (learun.checkrow(keyValue)) { | |||
var Status = $('#gridtable').jfGridValue('Status'); | |||
if (Status === true || Status == 'true') { | |||
learun.alert.warning("当前项目已审核不能修改!"); | |||
return; | |||
} | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '编辑', | |||
url: top.$.rootUrl + '/Ask/Ask_MainOfTeacher/Form?keyValue=' + keyValue, | |||
width: 780, | |||
height: 560, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
} | |||
}); | |||
// 删除 | |||
$('#lr_delete').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('VID'); | |||
if (learun.checkrow(keyValue)) { | |||
var Status = $('#gridtable').jfGridValue('Status'); | |||
if (Status === true || Status == 'true') { | |||
learun.alert.warning("当前项目已审核不能删除!"); | |||
return; | |||
} | |||
learun.layerConfirm('是否确认删除该项!', function (res) { | |||
if (res) { | |||
learun.deleteForm(top.$.rootUrl + '/Ask/Ask_MainOfTeacher/DeleteForm', { keyValue: keyValue }, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
// 管理问题 | |||
$('#lr_question').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('VID'); | |||
if (learun.checkrow(keyValue)) { | |||
var Status = $('#gridtable').jfGridValue('Status'); | |||
if (Status === true || Status == 'true') { | |||
learun.alert.warning("当前项目已审核不能修改!"); | |||
return; | |||
} | |||
learun.layerForm({ | |||
id: 'formquestion', | |||
title: '管理问题', | |||
url: top.$.rootUrl + '/Ask/Ask_Question/Index?VID=' + keyValue, | |||
width: 980, | |||
height: 760, | |||
btn: null | |||
}); | |||
} | |||
}); | |||
// 结果分析 | |||
$('#lr_analysis').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('VID'); | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerForm({ | |||
id: 'formanalysis', | |||
title: '结果分析', | |||
url: top.$.rootUrl + '/Ask/Ask_Question/AnalysisIndex?VID=' + keyValue, | |||
width: 1000, | |||
height: 760, | |||
btn: null | |||
}); | |||
} | |||
}); | |||
// 答题情况 | |||
$('#lr_answer').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('VID'); | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerForm({ | |||
id: 'formanswer', | |||
title: '答题情况', | |||
url: top.$.rootUrl + '/Ask/Ask_MainOfTeacher/AnswerIndex?VID=' + keyValue, | |||
width: 980, | |||
height: 760, | |||
btn: null | |||
}); | |||
} | |||
}); | |||
$('#lr_view').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('VID'); | |||
if (learun.checkrow(keyValue)) { | |||
top.learun.frameTab.open({ F_ModuleId: 'paper' + keyValue, F_Icon: 'fa fa-window-maximize', F_FullName: '量表考核答卷', F_UrlAddress: '/Ask/Ask_MainOfTeacher/PaperAdminView?VID=' + keyValue }); | |||
} | |||
}); | |||
// 审核 | |||
$('#lr_submit').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('VID'); | |||
if (learun.checkrow(keyValue)) { | |||
var Status = $('#gridtable').jfGridValue('Status'); | |||
if (Status === true || Status == 'true') { | |||
learun.alert.warning("当前项目已审核!"); | |||
return; | |||
} | |||
learun.layerConfirm('是否确认审核该项!', function (res) { | |||
if (res) { | |||
learun.postForm(top.$.rootUrl + '/Ask/Ask_MainOfTeacher/SubmitForm', { keyValue: keyValue }, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
// 去审核 | |||
$('#lr_unsubmit').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('VID'); | |||
if (learun.checkrow(keyValue)) { | |||
var Status = $('#gridtable').jfGridValue('Status'); | |||
if (Status !== true && Status !== 'true') { | |||
learun.alert.warning("当前项目已去审核!"); | |||
return; | |||
} | |||
learun.layerConfirm('是否确认去审核该项!', function (res) { | |||
if (res) { | |||
learun.postForm(top.$.rootUrl + '/Ask/Ask_MainOfTeacher/UnSubmitForm', { keyValue: keyValue }, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
}, | |||
inittree: function () { | |||
$('#companyTree').lrtree({ | |||
url: top.$.rootUrl + '/Ask/Ask_Type/GetAllTree', | |||
nodeClick: page.treeNodeClick | |||
}); | |||
}, | |||
treeNodeClick: function (item) { | |||
ATId = item.id; | |||
$('#titleinfo').text(item.text); | |||
page.search(); | |||
}, | |||
// 初始化列表 | |||
initGird: function () { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/Ask/Ask_MainOfTeacher/GetPageList', | |||
headData: [ | |||
{ label: "问卷编号", name: "VSerial", width: 180, align: "left" }, | |||
{ label: "标题", name: "VTitle", width: 200, align: "left" }, | |||
{ | |||
label: "类别", name: "ATId", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ask_Type', | |||
key: value, | |||
keyId: 'atid', | |||
callback: function (_data) { | |||
callback(_data['atname']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: "开始时间", name: "VStartTime", width: 100, align: "left" }, | |||
{ label: "结束时间", name: "VStopTime", width: 100, align: "left" }, | |||
{ label: "考核部门", name: "DepartmentIdsName", width: 150, align: "left" }, | |||
{ label: "考核人数", name: "SPVNum", width: 80, align: "left" }, | |||
{ label: "填写人数", name: "SPNum", width: 80, align: "left" }, | |||
{ label: "点击热度", name: "SClick", width: 80, align: "left" }, | |||
{ label: "排序", name: "VOrder", width: 80, align: "left" }, | |||
{ | |||
label: "是否匿名", name: "VHide", width: 100, align: "left", | |||
formatter: function (cellvalue) { | |||
return cellvalue == true ? "<i class=\"fa fa-toggle-on\"></i>" : "<i class=\"fa fa-toggle-off\"></i>"; | |||
} | |||
}, | |||
{ | |||
label: "审核标志", name: "Status", width: 100, align: "left", formatter: function (cellvalue) { | |||
return cellvalue == true ? "<i class=\"fa fa-toggle-on\"></i>" : "<i class=\"fa fa-toggle-off\"></i>"; | |||
} | |||
} | |||
], | |||
mainId: 'VID', | |||
isPage: true, | |||
sidx: 'VOrder' | |||
}); | |||
page.search(); | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
param.ATId = ATId; | |||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
refreshGirdData = function () { | |||
page.search(); | |||
}; | |||
page.init(); | |||
} |
@@ -0,0 +1,66 @@ | |||
@{ | |||
ViewBag.Title = "教师问卷管理"; | |||
Layout = "~/Views/Shared/_Index.cshtml"; | |||
} | |||
@model Learun.Application.TwoDevelopment.Ask.Ask_MainOfTeacherEntity | |||
<link href="~/Content/paper/css/common.css" rel="stylesheet" /> | |||
<link href="~/Content/paper/dist/demo.css" rel="stylesheet" /> | |||
<link href="~/Content/paper/css/index.css" rel="stylesheet" /> | |||
<script src="~/Content/paper/dist/jquery.validator.min.js?local=zh-CN"></script> | |||
<script type="text/javascript"> | |||
$.lrToken = $('@Html.AntiForgeryToken()').val(); | |||
</script> | |||
<div class="warpper" style="background-color: #FFFFFF;"> | |||
<!-- / index_sec1 --> | |||
<div class="index_sec index_sec1"> | |||
<input id="EmpNo" type="hidden" value="@ViewBag.EmpNo" /> | |||
<input id="EmpName" type="hidden" value="@ViewBag.EmpName" /> | |||
<div class="inSecTitle">@Model.VTitle</div> | |||
<div class="inSecTime">@(Model.VStartTime.HasValue ? Model.VStartTime.Value.ToShortDateString() : "")~@(Model.VStopTime.HasValue ? Model.VStopTime.Value.ToShortDateString() : "")</div> | |||
<div class="index_box"> | |||
<form id="AskPaper"> | |||
@foreach (var question in Model.Ask_Questions) | |||
{ | |||
<div class="signSec2Box"> | |||
<div class="shenInput form-item"> | |||
<div class="shenInputBox"> | |||
<div class="signTxt">@question.QTitle @Html.Raw((question.QMust == true ? "<font style=\"color: red\">*</font>" : "")) @(question.QType == 2 && (question.QMin.HasValue) ? "最少选择" + question.QMin.Value + "项" : "") @(question.QType == 2 && (question.QMax.HasValue) ? "最多选择" + question.QMax.Value + "项" : "")</div> | |||
<div class="inputRadioRow"> | |||
@foreach (var questionitem in question.Ask_QuestionItems) | |||
{ | |||
<div class="inputRadioCol4"> | |||
<i class="@(question.QType == 1 ? "inputRadio" : "inputCheck")" hasinput="@(questionitem.QShowText == true ? "yes" : "")"><input id="@questionitem.IID" qid="@question.QID" hasinput="@(questionitem.QShowText == true ? "yes" : "")" @(question.QMust == true ? "data-rule=" + (question.QTypeString == "input" ? "\"required;\"" : "\"checked;\"") + (question.QMin.HasValue ? "checked(" + question.QMin.Value + "~);" : "") + (question.QMax.HasValue ? "checked(~" + question.QMax.Value + ");" : "") : "") name="@question.QSerial" type="@question.QTypeString" class="xuanze" /></i> <span>@questionitem.ITitle</span> | |||
</div> | |||
} | |||
</div> | |||
</div> | |||
</div> | |||
@if (question.Ask_QuestionItems.Count(m => m.QShowText == true) > 0) | |||
{ | |||
<div class="shenInput form-item shenInput3"> | |||
<span>@question.Ask_QuestionItems.FirstOrDefault(m => m.QShowText == true).ITitle</span> | |||
<div class="shenInputBox shenInputBox1"> | |||
<input id="@(question.Ask_QuestionItems.FirstOrDefault(m => m.QShowText == true).IID)Other" qid="@question.QID" type="text" name="@(question.QSerial)Other" class="inputTxt" data-rule="required(#@(question.Ask_QuestionItems.FirstOrDefault(m => m.QShowText == true).IID):checked)" /> | |||
</div> | |||
</div> | |||
} | |||
</div> | |||
} | |||
<div class="shenBtnBox"> | |||
<div class="signTxt">本人声明在此报名表中填写的所有信息、 及提供与本表相关的一切资料均真实、准确</div> | |||
<div class="shenRow"> | |||
<div class="shenCol6"> | |||
<div class="shenBtn">提 交</div> | |||
</div> | |||
</div> | |||
</div> | |||
</form> | |||
</div> | |||
</div> | |||
<!-- / index_sec1 --> | |||
</div> | |||
@Html.AppendJsFile("/Areas/Ask/Views/Ask_MainOfTeacher/Paper.js") |
@@ -0,0 +1,77 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2019-04-23 15:50 | |||
* 描 述:教师问卷管理 | |||
*/ | |||
var refreshGirdData; | |||
var VID = request("VID"); | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var page = { | |||
init: function () { | |||
$('.warpper').lrscroll(); | |||
page.bind(); | |||
}, | |||
bind: function () { | |||
$('.shenBtn').click(function () { | |||
$('#AskPaper').trigger("validate"); | |||
}); | |||
//单选框 | |||
$('.shenInputBox').on('click', | |||
'.inputRadio', | |||
function () { | |||
if (!$(this).hasClass('active')) { | |||
$(this).addClass('active').parents('.shenInputBox').find('.inputRadio').not($(this)) | |||
.removeClass('active'); | |||
judgeRideo($(this)); | |||
} | |||
}); | |||
//多选框 | |||
$('.inputCheck').click(function () { | |||
if ($(this).hasClass('active')) { | |||
$(this).removeClass('active'); | |||
} else { | |||
$(this).addClass('active'); | |||
} | |||
judgeRideo($(this)); | |||
}); | |||
//是否为其他选项判断 | |||
function judgeRideo(obj) { | |||
var parents = obj.parents('.signSec2Box'); | |||
var inputs = parents.find('.shenInput3'); | |||
if (parents.find("i[hasinput='yes']").hasClass('active')) { | |||
inputs.css({ display: 'block' }); | |||
} else { | |||
inputs.css({ display: 'none' }); | |||
} | |||
} | |||
$('#AskPaper').validator({ | |||
timely: 2, | |||
theme: 'yellow_right_effect', | |||
valid: function (form) { | |||
learun.layerConfirm('是否确认提交答案?', function (res) { | |||
var answerlist = new Array(); | |||
var strStuNo = $("#EmpNo").val(); | |||
var strStuName = $("#EmpName").val(); | |||
$(form).find("input.xuanze:checked").each(function (index, element) { | |||
var itemvalue = { QID: $(this).attr("qid"), IID: $(this).attr("id"), UText: "", UID: strStuNo, UName:strStuName}; | |||
if ($(this).attr("hasinput")=="yes") { | |||
itemvalue.UText = $("#" + $(this).attr("id") + "Other").val(); | |||
} | |||
answerlist.push(itemvalue); | |||
}); | |||
if (res) { | |||
learun.postForm(top.$.rootUrl + '/Ask/Ask_MainOfTeacher/TeacherSubmitForm', { answerlist: JSON.stringify(answerlist), VID: VID, "__RequestVerificationToken": $.lrToken }, function () { | |||
learun.frameTab.parentIframe().refreshGirdData(); | |||
learun.frameTab.close("paper" + VID); | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
} | |||
}; | |||
page.init(); | |||
} |
@@ -0,0 +1,57 @@ | |||
@{ | |||
ViewBag.Title = "教师问卷管理"; | |||
Layout = "~/Views/Shared/_Index.cshtml"; | |||
} | |||
@model Learun.Application.TwoDevelopment.Ask.Ask_MainOfTeacherEntity | |||
<link href="~/Content/paper/css/common.css" rel="stylesheet" /> | |||
<link href="~/Content/paper/dist/demo.css" rel="stylesheet" /> | |||
<link href="~/Content/paper/css/index.css" rel="stylesheet" /> | |||
<script src="~/Content/paper/dist/jquery.validator.min.js?local=zh-CN"></script> | |||
<script type="text/javascript"> | |||
$.lrToken = $('@Html.AntiForgeryToken()').val(); | |||
</script> | |||
<div class="warpper" style="background-color: #FFFFFF;"> | |||
<!-- / index_sec1 --> | |||
<div class="index_sec index_sec1"> | |||
<input id="EmpNo" type="hidden" value="@ViewBag.EmpNo" /> | |||
<input id="EmpName" type="hidden" value="@ViewBag.EmpName" /> | |||
<div class="inSecTitle">@Model.VTitle</div> | |||
<div class="inSecTime">@(Model.VStartTime.HasValue ? Model.VStartTime.Value.ToShortDateString() : "")~@(Model.VStopTime.HasValue ? Model.VStopTime.Value.ToShortDateString() : "")</div> | |||
<div class="index_box"> | |||
<form id="AskPaper"> | |||
@foreach (var question in Model.Ask_Questions) | |||
{ | |||
<div class="signSec2Box"> | |||
<div class="shenInput form-item"> | |||
<div class="shenInputBox"> | |||
<div class="signTxt">@question.QTitle @Html.Raw((question.QMust == true ? "<font style=\"color: red\">*</font>" : "")) @(question.QType == 2 && (question.QMin.HasValue) ? "最少选择" + question.QMin.Value + "项" : "") @(question.QType == 2 && (question.QMax.HasValue) ? "最多选择" + question.QMax.Value + "项" : "")</div> | |||
<div class="inputRadioRow"> | |||
@foreach (var questionitem in question.Ask_QuestionItems) | |||
{ | |||
<div class="inputRadioCol4"> | |||
<i class="@(question.QType == 1 ? "inputRadio" : "inputCheck")" hasinput="@(questionitem.QShowText == true ? "yes" : "")"><input id="@questionitem.IID" qid="@question.QID" hasinput="@(questionitem.QShowText == true ? "yes" : "")" @(question.QMust == true ? "data-rule=" + (question.QTypeString == "input" ? "\"required;\"" : "\"checked;\"") + (question.QMin.HasValue ? "checked(" + question.QMin.Value + "~);" : "") + (question.QMax.HasValue ? "checked(~" + question.QMax.Value + ");" : "") : "") name="@question.QSerial" type="@question.QTypeString" class="xuanze" /></i> <span>@questionitem.ITitle</span> | |||
</div> | |||
} | |||
</div> | |||
</div> | |||
</div> | |||
@if (question.Ask_QuestionItems.Count(m => m.QShowText == true) > 0) | |||
{ | |||
<div class="shenInput form-item shenInput3"> | |||
<span>@question.Ask_QuestionItems.FirstOrDefault(m => m.QShowText == true).ITitle</span> | |||
<div class="shenInputBox shenInputBox1"> | |||
<input id="@(question.Ask_QuestionItems.FirstOrDefault(m => m.QShowText == true).IID)Other" qid="@question.QID" type="text" name="@(question.QSerial)Other" class="inputTxt" data-rule="required(#@(question.Ask_QuestionItems.FirstOrDefault(m => m.QShowText == true).IID):checked)" /> | |||
</div> | |||
</div> | |||
} | |||
</div> | |||
} | |||
</form> | |||
</div> | |||
</div> | |||
<!-- / index_sec1 --> | |||
</div> | |||
@Html.AppendJsFile("/Areas/Ask/Views/Ask_MainOfTeacher/PaperAdminView.js") |
@@ -0,0 +1,77 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2019-04-23 15:50 | |||
* 描 述:教师问卷管理 | |||
*/ | |||
var refreshGirdData; | |||
var VID = request("VID"); | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var page = { | |||
init: function () { | |||
$('.warpper').lrscroll(); | |||
page.bind(); | |||
}, | |||
bind: function () { | |||
$('.shenBtn').click(function () { | |||
$('#AskPaper').trigger("validate"); | |||
}); | |||
//单选框 | |||
$('.shenInputBox').on('click', | |||
'.inputRadio', | |||
function () { | |||
if (!$(this).hasClass('active')) { | |||
$(this).addClass('active').parents('.shenInputBox').find('.inputRadio').not($(this)) | |||
.removeClass('active'); | |||
judgeRideo($(this)); | |||
} | |||
}); | |||
//多选框 | |||
$('.inputCheck').click(function () { | |||
if ($(this).hasClass('active')) { | |||
$(this).removeClass('active'); | |||
} else { | |||
$(this).addClass('active'); | |||
} | |||
judgeRideo($(this)); | |||
}); | |||
//是否为其他选项判断 | |||
function judgeRideo(obj) { | |||
var parents = obj.parents('.signSec2Box'); | |||
var inputs = parents.find('.shenInput3'); | |||
if (parents.find("i[hasinput='yes']").hasClass('active')) { | |||
inputs.css({ display: 'block' }); | |||
} else { | |||
inputs.css({ display: 'none' }); | |||
} | |||
} | |||
$('#AskPaper').validator({ | |||
timely: 2, | |||
theme: 'yellow_right_effect', | |||
valid: function (form) { | |||
learun.layerConfirm('是否确认提交答案?', function (res) { | |||
var answerlist = new Array(); | |||
var strStuNo = $("#EmpNo").val(); | |||
var strStuName = $("#EmpName").val(); | |||
$(form).find("input.xuanze:checked").each(function (index, element) { | |||
var itemvalue = { QID: $(this).attr("qid"), IID: $(this).attr("id"), UText: "", UID: strStuNo, UName:strStuName}; | |||
if ($(this).attr("hasinput")=="yes") { | |||
itemvalue.UText = $("#" + $(this).attr("id") + "Other").val(); | |||
} | |||
answerlist.push(itemvalue); | |||
}); | |||
if (res) { | |||
learun.postForm(top.$.rootUrl + '/Ask/Ask_MainOfTeacher/TeacherSubmitForm', { answerlist: JSON.stringify(answerlist), VID: VID, "__RequestVerificationToken": $.lrToken }, function () { | |||
learun.frameTab.parentIframe().refreshGirdData(); | |||
learun.frameTab.close("paper" + VID); | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
} | |||
}; | |||
page.init(); | |||
} |
@@ -0,0 +1,56 @@ | |||
@{ | |||
ViewBag.Title = "教师问卷管理"; | |||
Layout = "~/Views/Shared/_Index.cshtml"; | |||
} | |||
@model Learun.Application.TwoDevelopment.Ask.Ask_MainOfTeacherEntity | |||
<link href="~/Content/paper/css/common.css" rel="stylesheet" /> | |||
<link href="~/Content/paper/dist/demo.css" rel="stylesheet" /> | |||
<link href="~/Content/paper/css/index.css" rel="stylesheet" /> | |||
<script src="~/Content/paper/dist/jquery.validator.min.js?local=zh-CN"></script> | |||
<script type="text/javascript"> | |||
$.lrToken = $('@Html.AntiForgeryToken()').val(); | |||
</script> | |||
<div class="warpper" style="background-color: #FFFFFF;"> | |||
<!-- / index_sec1 --> | |||
<div class="index_sec index_sec1"> | |||
<div class="inSecTitle">@Model.VTitle</div> | |||
<div class="inSecTime">@(Model.VStartTime.HasValue ? Model.VStartTime.Value.ToShortDateString() : "")~@(Model.VStopTime.HasValue ? Model.VStopTime.Value.ToShortDateString() : "")</div> | |||
<div class="index_box"> | |||
<form id="AskPaper"> | |||
@foreach (var question in Model.Ask_Questions) | |||
{ | |||
<div class="signSec2Box"> | |||
<div class="shenInput form-item"> | |||
<div class="shenInputBox"> | |||
<div class="signTxt">@question.QTitle @Html.Raw((question.QMust == true ? "<font style=\"color: red\">*</font>" : "")) @(question.QType == 2 && (question.QMin.HasValue) ? "最少选择" + question.QMin.Value + "项" : "") @(question.QType == 2 && (question.QMax.HasValue) ? "最多选择" + question.QMax.Value + "项" : "")</div> | |||
<div class="inputRadioRow"> | |||
@foreach (var questionitem in question.Ask_QuestionItems) | |||
{ | |||
<div class="inputRadioCol4"> | |||
<i class="@(question.QType == 1 ? "inputRadio" : "inputCheck")" hasinput="@(questionitem.QShowText == true ? "yes" : "")"><input id="@questionitem.IID" qid="@question.QID" hasinput="@(questionitem.QShowText == true ? "yes" : "")" @(question.QMust == true ? "data-rule=" + (question.QTypeString == "input" ? "\"required;\"" : "\"checked;\"") + (question.QMin.HasValue ? "checked(" + question.QMin.Value + "~);" : "") + (question.QMax.HasValue ? "checked(~" + question.QMax.Value + ");" : "") : "") name="@question.QSerial" type="@question.QTypeString" class="xuanze" @(questionitem.IsChecked?"checked=\"checked\"":"") /></i> <span>@questionitem.ITitle</span> | |||
</div> | |||
} | |||
</div> | |||
</div> | |||
</div> | |||
@if (question.Ask_QuestionItems.Count(m => m.QShowText == true) > 0) | |||
{ | |||
<div class="shenInput form-item shenInput3"> | |||
<span>@question.Ask_QuestionItems.FirstOrDefault(m => m.QShowText == true).ITitle</span> | |||
<div class="shenInputBox shenInputBox1"> | |||
<input id="@(question.Ask_QuestionItems.FirstOrDefault(m => m.QShowText == true).IID)Other" qid="@question.QID" type="text" name="@(question.QSerial)Other" class="inputTxt" data-rule="required(#@(question.Ask_QuestionItems.FirstOrDefault(m => m.QShowText == true).IID):checked)" value="@(question.Ask_QuestionItems.FirstOrDefault(m => m.QShowText == true&&!string.IsNullOrEmpty(m.UText))!=null?question.Ask_QuestionItems.FirstOrDefault(m => m.QShowText == true&&!string.IsNullOrEmpty(m.UText)).UText:"")" /> | |||
</div> | |||
</div> | |||
} | |||
</div> | |||
} | |||
</form> | |||
</div> | |||
</div> | |||
<!-- / index_sec1 --> | |||
</div> | |||
@Html.AppendJsFile("/Areas/Ask/Views/Ask_MainOfTeacher/PaperView.js") |
@@ -0,0 +1,55 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2019-04-23 15:50 | |||
* 描 述:教师问卷管理 | |||
*/ | |||
var refreshGirdData; | |||
var VID = request("VID"); | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var page = { | |||
init: function () { | |||
$('.warpper').lrscroll(); | |||
page.bind(); | |||
}, | |||
bind: function () { | |||
//单选框 | |||
$('.shenInputBox').on('click', | |||
'.inputRadio', | |||
function () { | |||
if (!$(this).hasClass('active')) { | |||
$(this).addClass('active').parents('.shenInputBox').find('.inputRadio').not($(this)) | |||
.removeClass('active'); | |||
judgeRideo($(this)); | |||
} | |||
}); | |||
//多选框 | |||
$('.inputCheck').click(function () { | |||
if ($(this).hasClass('active')) { | |||
$(this).removeClass('active'); | |||
} else { | |||
$(this).addClass('active'); | |||
} | |||
judgeRideo($(this)); | |||
}); | |||
//是否为其他选项判断 | |||
function judgeRideo(obj) { | |||
var parents = obj.parents('.signSec2Box'); | |||
var inputs = parents.find('.shenInput3'); | |||
if (parents.find("i[hasinput='yes']").hasClass('active')) { | |||
inputs.css({ display: 'block' }); | |||
} else { | |||
inputs.css({ display: 'none' }); | |||
} | |||
} | |||
$('form').find("input.xuanze:checked").each(function (index, element) { | |||
if ($(this).attr("hasinput") == "yes") { | |||
$("#" + $(this).attr("id") + "Other").parents(".shenInput3").css({ display: 'block' }); | |||
} | |||
}); | |||
} | |||
}; | |||
page.init(); | |||
} |
@@ -0,0 +1,42 @@ | |||
@{ | |||
ViewBag.Title = "教师问卷管理"; | |||
Layout = "~/Views/Shared/_Index.cshtml"; | |||
} | |||
<script type="text/javascript"> | |||
var EmpNo = '@ViewBag.EmpNo'; | |||
</script> | |||
<div class="lr-layout "> | |||
<div class="lr-layout-center"> | |||
<div class="lr-layout-wrap lr-layout-wrap-notitle "> | |||
<div class="lr-layout-tool"> | |||
<div class="lr-layout-tool-left"> | |||
<div class="lr-layout-tool-item"> | |||
<div id="multiple_condition_query"> | |||
<div class="lr-query-formcontent"> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">标题</div> | |||
<input id="VTitle" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">问卷编号</div> | |||
<input id="VSerial" type="text" class="form-control" /> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-tool-right"> | |||
<div class=" btn-group btn-group-sm"> | |||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | |||
</div> | |||
<div class=" btn-group btn-group-sm" learun-authorize="yes"> | |||
<a id="lr_start" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 开始考核</a> | |||
<a id="lr_view" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 查看答题情况</a> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/Ask/Views/Ask_MainOfTeacher/TeacherIndex.js") |
@@ -0,0 +1,93 @@ | |||
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2019-04-23 15:50 | |||
* 描 述:教师问卷管理 | |||
*/ | |||
var refreshGirdData; | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var page = { | |||
init: function () { | |||
page.initGird(); | |||
page.bind(); | |||
}, | |||
bind: function () { | |||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | |||
page.search(queryJson); | |||
}, 220, 400); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
}); | |||
$('#lr_start').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('VID'); | |||
if (learun.checkrow(keyValue)) { | |||
var Status = $('#gridtable').jfGridValue('IsAnswer'); | |||
if (Status === true || Status === 'true') { | |||
learun.alert.warning("当前项目已交卷!"); | |||
return; | |||
} | |||
top.learun.frameTab.open({ F_ModuleId: 'paper' + keyValue, F_Icon: 'fa fa-window-maximize', F_FullName: '量表考核答卷', F_UrlAddress: '/Ask/Ask_MainOfTeacher/Paper?VID=' + keyValue }); | |||
} | |||
}); | |||
//查看 | |||
$('#lr_view').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('VID'); | |||
var EmpNo = $('#gridtable').jfGridValue('EmpNo'); | |||
if (learun.checkrow(keyValue)) { | |||
var Status = $('#gridtable').jfGridValue('IsAnswer'); | |||
if (Status === false || Status === 'false') { | |||
learun.alert.warning("当前项目未交卷!"); | |||
return; | |||
} | |||
top.learun.frameTab.open({ F_ModuleId: 'paper' + keyValue, F_Icon: 'fa fa-window-maximize', F_FullName: '量表考核答卷', F_UrlAddress: '/Ask/Ask_MainOfTeacher/PaperView?VID=' + keyValue + '&EmpNo=' + EmpNo }); | |||
} | |||
}); | |||
}, | |||
// 初始化列表 | |||
initGird: function () { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/Ask/Ask_MainOfTeacher/GetTeacherPageList', | |||
headData: [ | |||
{ label: "问卷编号", name: "VSerial", width: 180, align: "left" }, | |||
{ label: "标题", name: "VTitle", width: 200, align: "left" }, | |||
{ | |||
label: "类别", name: "ATId", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ask_Type', | |||
key: value, | |||
keyId: 'atid', | |||
callback: function (_data) { | |||
callback(_data['atname']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: "开始时间", name: "VStartTime", width: 100, align: "left" }, | |||
{ label: "结束时间", name: "VStopTime", width: 100, align: "left" }, | |||
{ | |||
label: "是否交卷", name: "IsAnswer", width: 80, align: "left", formatter: function (cellvalue) { | |||
return cellvalue === true ? "<i class=\"fa fa-toggle-on\"></i>" : "<i class=\"fa fa-toggle-off\"></i>"; | |||
} | |||
}, | |||
{ label: "考核评分", name: "TotalScore", width: 80, align: "left" }, | |||
{ label: "提交时间", name: "CreateDate", width: 80, align: "left" } | |||
], | |||
mainId: 'VID', | |||
isPage: true | |||
}); | |||
page.search(); | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
param.EmpNo = EmpNo; | |||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
refreshGirdData = function () { | |||
page.search(); | |||
}; | |||
page.init(); | |||
} |
@@ -21,12 +21,6 @@ | |||
<div class="lr-form-item-title">盘点说明</div> | |||
<textarea id="ITExplain" class="form-control" style="height:100px;"></textarea> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">明细操作</div> | |||
<input id="detailadd" type="button" class="btn btn-success" value="新增明细" /> | |||
<input id="detailedit" type="button" class="btn btn-warning" value="编辑明细" /> | |||
<input id="detaildel" type="button" class="btn btn-danger" value="移除明细" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item lr-form-item-grid"> | |||
<div id="Ass_InventoryItem"></div> | |||
</div> | |||
@@ -27,62 +27,32 @@ var bootstrap = function ($, learun) { | |||
var page = { | |||
init: function () { | |||
$('.lr-form-wrap').lrscroll(); | |||
$("#detailadd").on('click', function () { | |||
selectedRow = null; | |||
learun.layerForm({ | |||
id: 'formitem', | |||
title: '新增明细', | |||
url: top.$.rootUrl + '/AssetManagementSystem/Ass_InventoryItemApply/Form', | |||
width: 860, | |||
height: 600, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
}); | |||
$("#detailedit").on('click', function () { | |||
Ass_InventoryItem | |||
var keyValue = $('#Ass_InventoryItem').jfGridValue('AAIId'); | |||
selectedRow = $('#Ass_InventoryItem').jfGridGet('rowdata'); | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerForm({ | |||
id: 'formitem', | |||
title: '编辑明细', | |||
url: top.$.rootUrl + '/AssetManagementSystem/Ass_InventoryItemApply/Form?keyValue=' + keyValue, | |||
width: 860, | |||
height: 600, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
} | |||
}); | |||
$("#detaildel").on('click', function () { | |||
var keyValue = $('#Ass_InventoryItem').jfGridValue('AAIId'); | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerConfirm('是否确认删除该项!', function (res, index) { | |||
if (res) { | |||
$.each(tempdatra, function (key, val) { | |||
if (tempdatra[key].AAIId === keyValue) { | |||
pricecount -= tempdatra[key].AAIPrice * tempdatra[key].AAIStock; | |||
tempdatra.splice(key, 1); | |||
} | |||
}); | |||
//$("#AOPrice").val(pricecount); | |||
$('#Ass_InventoryItem').jfGridSet('refreshdata', tempdatra.sort(sortNumber)); | |||
top.layer.close(index); | |||
} | |||
}); | |||
} | |||
}); | |||
page.bind(); | |||
page.initData(); | |||
}, | |||
bind: function () { | |||
$('#Ass_InventoryItem').jfGrid({ | |||
headData: [ | |||
{ | |||
label: '是否盘点', name: 'AIsCheck', width: 150, align: 'left', formatter: function (cellvalue, row) { | |||
if (cellvalue === true) { | |||
return '<span class=\"label label-default\">已盘点</span>'; | |||
} else { | |||
return '<span class=\"label label-warning\" >未盘点</span>'; | |||
} | |||
} | |||
}, | |||
{ | |||
label: '盘点结果', name: 'AResult', width: 150, align: 'left', formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'InventoryResult', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: '资产编号', name: 'AAICode', width: 150, align: 'left' | |||
}, | |||
@@ -3,6 +3,7 @@ using System.Data; | |||
using Learun.Application.TwoDevelopment.EducationalAdministration; | |||
using System.Web.Mvc; | |||
using System.Collections.Generic; | |||
using System.Collections; | |||
namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
{ | |||
@@ -26,7 +27,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
[HttpGet] | |||
public ActionResult Index() | |||
{ | |||
return View(); | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 表单页 | |||
@@ -35,8 +36,19 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
[HttpGet] | |||
public ActionResult Form() | |||
{ | |||
return View(); | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 日程管理 | |||
/// </summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult ScheduleIndex() | |||
{ | |||
return View(); | |||
} | |||
#endregion | |||
#region 获取数据 | |||
@@ -74,6 +86,29 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
var data = schoolCalendarIBLL.GetList(queryJson); | |||
return Success(data); | |||
} | |||
/// <summary> | |||
/// 获取日程数据 | |||
/// </summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult GetListForSchedule() | |||
{ | |||
var userInfo = LoginUserInfo.Get(); | |||
List<Hashtable> data = new List<Hashtable>(); | |||
foreach (SchoolCalendarEntity entity in schoolCalendarIBLL.GetList()) | |||
{ | |||
Hashtable ht = new Hashtable(); | |||
ht["id"] = entity.ID; | |||
ht["academicYearNo"] = "【" + entity.AcademicYearNo + "】"; | |||
ht["title"] = entity.Content; | |||
ht["end"] = (entity.EndTime.ToDate().ToString("yyyy-MM-dd") + " " + entity.EndTime.ToString().Substring(0, 2) + ":" + entity.EndTime.ToString().Substring(2, 2)).ToDate().ToString("yyyy-MM-dd HH:mm:ss"); | |||
ht["start"] = (entity.StartTime.ToDate().ToString("yyyy-MM-dd") + " " + entity.StartTime.ToString().Substring(0, 2) + ":" + entity.StartTime.ToString().Substring(2, 2)).ToDate().ToString("yyyy-MM-dd HH:mm:ss"); | |||
ht["allDay"] = false; | |||
data.Add(ht); | |||
} | |||
return ToJsonResult(data); | |||
} | |||
/// <summary> | |||
/// 获取表单数据 | |||
/// <summary> | |||
@@ -82,8 +117,9 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
[AjaxOnly] | |||
public ActionResult GetFormData(string keyValue) | |||
{ | |||
var SchoolCalendarData = schoolCalendarIBLL.GetSchoolCalendarEntity( keyValue ); | |||
var jsonData = new { | |||
var SchoolCalendarData = schoolCalendarIBLL.GetSchoolCalendarEntity(keyValue); | |||
var jsonData = new | |||
{ | |||
SchoolCalendar = SchoolCalendarData, | |||
}; | |||
return Success(jsonData); | |||
@@ -114,11 +150,49 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
[AjaxOnly] | |||
public ActionResult SaveForm(string keyValue, string strEntity) | |||
{ | |||
UserInfo userInfo = LoginUserInfo.Get(); SchoolCalendarEntity entity = strEntity.ToObject<SchoolCalendarEntity>(); | |||
schoolCalendarIBLL.SaveEntity(userInfo,keyValue,entity); | |||
UserInfo userInfo = LoginUserInfo.Get(); | |||
SchoolCalendarEntity entity = strEntity.ToObject<SchoolCalendarEntity>(); | |||
//根据学年和学期查询 | |||
var model = schoolCalendarIBLL.GetSchoolCalendarEntityByNo(entity.AcademicYearNo, entity.Semester); | |||
if (string.IsNullOrEmpty(keyValue)) | |||
{ | |||
if (model != null) | |||
{ | |||
return Fail("当前学期已存在!"); | |||
} | |||
} | |||
else | |||
{ | |||
if (model != null && model.ID != keyValue) | |||
{ | |||
return Fail("当前学期已存在!"); | |||
} | |||
} | |||
schoolCalendarIBLL.SaveEntity(userInfo, keyValue, entity); | |||
return Success("保存成功!"); | |||
} | |||
#endregion | |||
#region 扩展数据 | |||
/// <summary> | |||
/// 学年 | |||
/// </summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult GenerateNearByAcademic() | |||
{ | |||
return Success(Learun.Util.WebHelper.GenerateNearByAcademic()); | |||
} | |||
/// <summary> | |||
/// 学期 | |||
/// </summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult GenerateNearBySemeter() | |||
{ | |||
return Success(Learun.Util.WebHelper.GenerateNearBySemeter()); | |||
} | |||
#endregion | |||
} | |||
} |
@@ -741,7 +741,17 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
} | |||
} | |||
/// <summary> | |||
/// 生成帐号 | |||
/// </summary> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[AjaxOnly] | |||
public ActionResult Generate() | |||
{ | |||
stuEnrollIBLL.GenerateAccout(); | |||
return Success("生成成功!"); | |||
} | |||
[HttpPost] | |||
[AjaxOnly] | |||
@@ -0,0 +1,131 @@ | |||
using Learun.Util; | |||
using System.Data; | |||
using Learun.Application.TwoDevelopment.EducationalAdministration; | |||
using System.Web.Mvc; | |||
using System.Collections.Generic; | |||
namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2021-01-19 11:14 | |||
/// 描 述:默认密码配置 | |||
/// </summary> | |||
public class Sys_DefaultPwdConfigController : MvcControllerBase | |||
{ | |||
private Sys_DefaultPwdConfigIBLL sys_DefaultPwdConfigIBLL = new Sys_DefaultPwdConfigBLL(); | |||
#region 视图功能 | |||
/// <summary> | |||
/// 主页面 | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult Index() | |||
{ | |||
return View(); | |||
} | |||
/// <summary> | |||
/// 表单页 | |||
/// <summary> | |||
/// <returns></returns> | |||
[HttpGet] | |||
public ActionResult Form() | |||
{ | |||
return View(); | |||
} | |||
#endregion | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取页面显示列表数据 | |||
/// </summary> | |||
/// <param name="pagination">分页参数</param> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
[HttpGet] | |||
[AjaxOnly] | |||
public ActionResult GetPageList(string pagination, string queryJson) | |||
{ | |||
Pagination paginationobj = pagination.ToObject<Pagination>(); | |||
var data = sys_DefaultPwdConfigIBLL.GetPageList(paginationobj, queryJson); | |||
var jsonData = new | |||
{ | |||
rows = data, | |||
total = paginationobj.total, | |||
page = paginationobj.page, | |||
records = paginationobj.records | |||
}; | |||
return Success(jsonData); | |||
} | |||
/// <summary> | |||
/// 获取表单数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
[HttpGet] | |||
[AjaxOnly] | |||
public ActionResult GetFormData(string keyValue) | |||
{ | |||
var Sys_DefaultPwdConfigData = sys_DefaultPwdConfigIBLL.GetSys_DefaultPwdConfigEntity( keyValue ); | |||
var jsonData = new { | |||
Sys_DefaultPwdConfig = Sys_DefaultPwdConfigData, | |||
}; | |||
return Success(jsonData); | |||
} | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[AjaxOnly] | |||
public ActionResult DeleteForm(string keyValue) | |||
{ | |||
sys_DefaultPwdConfigIBLL.DeleteEntity(keyValue); | |||
return Success("删除成功!"); | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <param name="strEntity">实体</param> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[ValidateAntiForgeryToken] | |||
[AjaxOnly] | |||
public ActionResult SaveForm(string keyValue, string strEntity) | |||
{ | |||
Sys_DefaultPwdConfigEntity entity = strEntity.ToObject<Sys_DefaultPwdConfigEntity>(); | |||
entity.IsEnabled = false; | |||
sys_DefaultPwdConfigIBLL.SaveEntity(keyValue,entity); | |||
if (string.IsNullOrEmpty(keyValue)) | |||
{ | |||
} | |||
return Success("保存成功!"); | |||
} | |||
/// <summary> | |||
/// 启用 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[AjaxOnly] | |||
public ActionResult DoEnabled(string keyValue) | |||
{ | |||
sys_DefaultPwdConfigIBLL.DoEnabled(keyValue); | |||
return Success("操作成功!"); | |||
} | |||
#endregion | |||
} | |||
} |
@@ -151,10 +151,10 @@ | |||
<div class="lr-form-item-title">部门<font face="宋体">*</font></div> | |||
<div id="F_DepartmentId" checkexpession="NotNull"></div> | |||
</div> | |||
<div class="col-xs-4 lr-form-item" data-table="EmpInfo"> | |||
@*<div class="col-xs-4 lr-form-item" data-table="EmpInfo"> | |||
<div class="lr-form-item-title">系部</div> | |||
<div id="DeptNo"></div> | |||
</div> | |||
</div>*@ | |||
<div class="col-xs-4 lr-form-item" data-table="EmpInfo"> | |||
<div class="lr-form-item-title">岗位类别</div> | |||
<div id="EmpSortNo"></div> | |||
@@ -48,7 +48,7 @@ var bootstrap = function ($, learun) { | |||
$("#ForeignLanguageNo").parent().hide(); | |||
$("#EmpSortNo").parent().hide(); | |||
$("#EmpFullTimeNo").parent().hide(); | |||
$("#DeptNo").parent().hide(); | |||
//$("#DeptNo").parent().hide(); | |||
$("#TitleOfTechPostNo").parent().hide(); | |||
$("#InSchoolDate").parent().hide(); | |||
$("#resume").parent().hide(); | |||
@@ -128,7 +128,7 @@ var bootstrap = function ($, learun) { | |||
$('#EmpSortNo').lrDataItemSelect({ code: 'jsgw' }); | |||
$('#EmpFullTimeNo').lrDataItemSelect({ code: 'EmpFullTime' }); | |||
$('#ObtainWay').lrDataItemSelect({ code: 'ObtainWay' }); | |||
$('#DeptNo').lrDataSourceSelect({ code: 'CdDeptInfo', value: 'deptno', text: 'deptname' }); | |||
//$('#DeptNo').lrDataSourceSelect({ code: 'CdDeptInfo', value: 'deptno', text: 'deptname' }); | |||
$('#PostRank').lrDataSourceSelect({ code: 'BCdTitleOfTechPost', value: 'titleoftechpostno', text: 'titleoftechpost' }); | |||
$('#Photo').lrUploader(); | |||
$('#HighestRecord').lrDataSourceSelect({ code: 'BCdCultureDegree', value: 'culturedegreeno', text: 'culturedegree' }); | |||
@@ -11,10 +11,10 @@ | |||
<div class="lr-form-item-title">部门</div> | |||
<div id="F_DepartmentId"></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="EmpInfo"> | |||
@*<div class="col-xs-12 lr-form-item" data-table="EmpInfo"> | |||
<div class="lr-form-item-title">系部</div> | |||
<div id="DeptNo"></div> | |||
</div> | |||
</div>*@ | |||
</div> | |||
@@ -35,7 +35,7 @@ var bootstrap = function ($, learun) { | |||
} | |||
}); | |||
$('#F_DepartmentId').lrselect(); | |||
$('#DeptNo').lrDataSourceSelect({ code: 'CdDeptInfo', value: 'deptno', text: 'deptname' }); | |||
//$('#DeptNo').lrDataSourceSelect({ code: 'CdDeptInfo', value: 'deptno', text: 'deptname' }); | |||
}, | |||
initData: function () { | |||
if (!!keyValue) { | |||
@@ -22,10 +22,10 @@ | |||
<div class="lr-form-item-title">联系电话</div> | |||
<input id="mobile" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
@*<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">系部</div> | |||
<div id="DeptNo"></div> | |||
</div> | |||
</div>*@ | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">部门</div> | |||
<div id="F_DepartmentId"></div> | |||
@@ -373,19 +373,19 @@ var bootstrap = function ($, learun) { | |||
}); | |||
} | |||
}, | |||
{ | |||
label: "系部", name: "DeptNo", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo', | |||
key: value, | |||
keyId: 'deptno', | |||
callback: function (_data) { | |||
callback(_data['deptname']); | |||
} | |||
}); | |||
} | |||
}, | |||
//{ | |||
// label: "系部", name: "DeptNo", width: 100, align: "left", | |||
// formatterAsync: function (callback, value, row, op, $cell) { | |||
// learun.clientdata.getAsync('custmerData', { | |||
// url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo', | |||
// key: value, | |||
// keyId: 'deptno', | |||
// callback: function (_data) { | |||
// callback(_data['deptname']); | |||
// } | |||
// }); | |||
// } | |||
//}, | |||
{ | |||
label: "性别", name: "GenderNo", width: 80, align: "left", | |||
formatter: function (cellvalue) { | |||
@@ -36,7 +36,7 @@ | |||
<td>政治面貌</td> | |||
<td>@Model.PartyFaceNo</td> | |||
<td>入党时间</td> | |||
<td>@Model.JoinPartyTime</td> | |||
<td>@(Model.JoinPartyTime != "" && Model.JoinPartyTime != null ? Model.JoinPartyTime.Replace("/", "-") : "")</td> | |||
<td>最高学历(学位)</td> | |||
<td>@Model.HighestRecord</td> | |||
</tr> | |||
@@ -3,13 +3,21 @@ | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap"> | |||
<div class="col-xs-6 lr-form-item" data-table="SchoolCalendar"> | |||
@*<div class="col-xs-6 lr-form-item" data-table="SchoolCalendar"> | |||
<div class="lr-form-item-title">学年</div> | |||
<input id="AcademicYearNo" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="SchoolCalendar"> | |||
<div class="lr-form-item-title">学期</div> | |||
<div id="Semester" isvalid="yes" checkexpession="NotNull"></div> | |||
</div>*@ | |||
<div class="col-xs-12 lr-form-item" data-table="SchoolCalendar"> | |||
<div class="lr-form-item-title">学年<font face="宋体">*</font></div> | |||
<div id="AcademicYearNo" isvalid="yes" checkexpession="NotNull"></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="SchoolCalendar"> | |||
<div class="lr-form-item-title">学期<font face="宋体">*</font></div> | |||
<div id="Semester" isvalid="yes" checkexpession="NotNull"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="SchoolCalendar"> | |||
<div class="lr-form-item-title">开始日期</div> | |||
@@ -15,8 +15,22 @@ var bootstrap = function ($, learun) { | |||
page.initData(); | |||
}, | |||
bind: function () { | |||
$("#Semester").lrDataItemSelect({ code: 'Semester' }); | |||
//学年 | |||
$('#AcademicYearNo').lrselect({ | |||
placeholder: "请选择学年", | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/EducationalAdministration/SchoolCalendar/GenerateNearByAcademic', | |||
value: 'value', | |||
text: 'text' | |||
}); | |||
//学期 | |||
$('#Semester').lrselect({ | |||
placeholder: "请选择学年", | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/EducationalAdministration/SchoolCalendar/GenerateNearBySemeter', | |||
value: 'value', | |||
text: 'text' | |||
}); | |||
}, | |||
initData: function () { | |||
if (!!keyValue) { | |||
@@ -46,6 +60,7 @@ var bootstrap = function ($, learun) { | |||
if (!!callBack) { | |||
callBack(); | |||
} | |||
learun.frameTab.currentIframe().location.reload(); | |||
}); | |||
}; | |||
page.init(); | |||
@@ -0,0 +1,166 @@ | |||
<!DOCTYPE html> | |||
<html> | |||
<head> | |||
<meta name="viewport" content="width=device-width" /> | |||
<title>日程管理</title> | |||
<script src="~/Content/jquery/plugin/fullcalendar/js/jquery-1.7.2.min.js"></script> | |||
<script src="~/Content/jquery/plugin/jquery-ui/jquery-ui.min.js"></script> | |||
<script src="~/Content/jquery/plugin/fullcalendar/js/fullcalendar.min.js"></script> | |||
<link href="~/Content/jquery/plugin/fullcalendar/css/fullcalendar.css" rel="stylesheet" /> | |||
@Html.AppendCssFile( | |||
"/Views/LR_Content/style/lr-common.css", | |||
"/Views/LR_Content/style/lr-iframe-index.css" | |||
) | |||
<script type='text/javascript'> | |||
var search = (window.location.search).split('?')[1]; | |||
var type = search.split('=')[1]; | |||
//type=1 校历查看;type=2 校历管理(日历模式) | |||
$(document).ready(function () { | |||
resize(); | |||
$('.calendar').fullCalendar({ | |||
header: { | |||
left: 'prev,next', | |||
center: 'title', | |||
right: 'agendaDay,agendaWeek,month' | |||
}, | |||
monthNamesShort: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"], | |||
dayNamesShort: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], | |||
buttonText: { | |||
prev: '上一页', | |||
next: '下一页', | |||
month: '月视图', | |||
week: '周视图', | |||
day: '日视图' | |||
}, | |||
titleFormat: "yyyy年MM月", | |||
columnFormat: { | |||
month: 'ddd', | |||
week: 'MM月dd日 ddd', | |||
day: 'MM月dd日 ddd' | |||
}, | |||
allDayText: '今天', | |||
axisFormat: "HH:00", | |||
height: $(window).height() - 55, | |||
dayClick: function (date, allDay, jsEvent, view) { | |||
if (type == 2) { | |||
btn_add(); | |||
} | |||
}, | |||
editable: true, | |||
eventLimit: true, | |||
eventAfterRender: function (event, element, view) {//数据绑定上去后添加相应信息在页面上 | |||
//var fstart = $.fullCalendar.formatDate(event.start, "HH:mm"); | |||
//var fend = $.fullCalendar.formatDate(event.end, "HH:mm"); | |||
if (view.name == "month") {//按月份 | |||
var evtcontent = '<div class="fc-event-inner fc-event-skin" data-id="' + event.id + '">'; | |||
//evtcontent += '<span class="fc-event-time">' + fstart + " - " + fend + '</span>'; | |||
evtcontent += '<span class="fc-event-time">' + event.academicYearNo + '</span>'; | |||
evtcontent += '<span class="fc-event-title">: ' + event.title + '</span>'; | |||
evtcontent += '</div><div class="ui-resizable-handle ui-resizable-e"> </div>'; | |||
if (type == 2) { | |||
evtcontent += '<div class="fc-event-delete" style="width:100%;height:100%;background-color:#000;" data-id="' + event.id + '">删除</div>'; | |||
} | |||
element.html(evtcontent); | |||
} else { | |||
var evtcontent = '<div class="fc-event-inner fc-event-skin" data-id="' + event.id + '" style="height:98%">'; | |||
evtcontent += '<div class="fc-event-head fc-event-skin">'; | |||
evtcontent += '<span class="fc-event-time">' + event.academicYearNo + '</span>'; | |||
//evtcontent += '<div class="fc-event-time">' + fstart + " - " + fend + event.title + '</div>'; | |||
evtcontent += '<div class="fc-event-title">' + event.title + '</div>'; | |||
evtcontent += '</div>'; | |||
evtcontent += '<div class="fc-event-content"></div>'; | |||
evtcontent += '<div class="fc-event-bg"></div>'; | |||
evtcontent += '</div>'; | |||
if (type == 2) { | |||
evtcontent += '<div class="fc-event-delete" style="width:100%;height:2%;background-color:#000;" data-id="' + event.id + '">删除</div>'; | |||
} | |||
element.html(evtcontent); | |||
} | |||
}, | |||
events: (function () { | |||
var _data = []; | |||
$.ajax({ | |||
url: top.$.rootUrl + '/EducationalAdministration/SchoolCalendar/GetListForSchedule', | |||
type: "get", | |||
dataType: "json", | |||
async: false, | |||
success: function (data) { | |||
_data = data; | |||
} | |||
}); | |||
return _data; | |||
})() | |||
}); | |||
}); | |||
function resize() { | |||
$('#pageayout').height($(window).height() - 20); | |||
$(window).resize(function (e) { | |||
window.setTimeout(function () { | |||
$('#pageayout').height($(window).height() - 20); | |||
}, 200); | |||
e.stopPropagation(); | |||
}); | |||
} | |||
//添加校历 | |||
function btn_add() { | |||
if (type == 2) { | |||
top.learun.layerForm({ | |||
id: 'form', | |||
title: '添加校历', | |||
url: '/EducationalAdministration/SchoolCalendar/Form', | |||
width: 600, | |||
height: 400, | |||
callBack: function (id) { | |||
return top[id].acceptClick(); | |||
} | |||
}); | |||
} | |||
}; | |||
//编辑校历 | |||
$(document).on('click', '.fc-event-inner', function () { | |||
if (type == 2) { | |||
var keyValue = $(this).attr('data-id'); | |||
top.learun.layerForm({ | |||
id: 'form', | |||
title: '编辑校历', | |||
url: '/EducationalAdministration/SchoolCalendar/Form?keyValue=' + keyValue, | |||
width: 600, | |||
height: 400, | |||
callBack: function (id) { | |||
return top[id].acceptClick(); | |||
} | |||
}); | |||
} | |||
}); | |||
//删除日程 | |||
$(document).on('click', '.fc-event-delete', function () { | |||
if (type == 2) { | |||
var keyValue = $(this).attr('data-id'); | |||
if (!keyValue) { | |||
learun.alert.warning("请选择日程!"); | |||
return false; | |||
} | |||
top.learun.layerConfirm('是否确认删除该项!', function (res) { | |||
if (res) { | |||
top.learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/SchoolCalendar/DeleteForm', { keyValue: keyValue }, function () { | |||
callback(); | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
function callback() { | |||
location.reload(); | |||
} | |||
</script> | |||
</head> | |||
<body> | |||
<div id="pageayout" class="border" style="overflow: auto; padding: 0px;"> | |||
<div id='calendar' class="calendar" style="margin: 10px;background: #fff; "></div> | |||
</div> | |||
</body> | |||
</html> |