@@ -65,6 +65,11 @@ namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers | |||||
{ | { | ||||
return View(); | return View(); | ||||
} | } | ||||
[HttpGet] | |||||
public ActionResult qrCode() | |||||
{ | |||||
return View(); | |||||
} | |||||
#endregion | #endregion | ||||
#region 获取数据 | #region 获取数据 | ||||
@@ -4,6 +4,7 @@ | |||||
ViewBag.Title = "会议管理"; | ViewBag.Title = "会议管理"; | ||||
Layout = "~/Views/Shared/_Index.cshtml"; | Layout = "~/Views/Shared/_Index.cshtml"; | ||||
} | } | ||||
<div class="lr-layout "> | <div class="lr-layout "> | ||||
<div class="lr-layout-center"> | <div class="lr-layout-center"> | ||||
<div class="lr-layout-wrap lr-layout-wrap-notitle "> | <div class="lr-layout-wrap lr-layout-wrap-notitle "> | ||||
@@ -44,8 +45,9 @@ | |||||
<a id="lr_minutes" class="btn btn-default"><i class="fa fa-plus"></i> 纪要</a> | <a id="lr_minutes" class="btn btn-default"><i class="fa fa-plus"></i> 纪要</a> | ||||
<a id="lr_notice" class="btn btn-default"><i class="fa fa-plus"></i> 通知</a> | <a id="lr_notice" class="btn btn-default"><i class="fa fa-plus"></i> 通知</a> | ||||
<a id="lr_case" class="btn btn-default"><i class="fa fa-plus"></i> 签到情况</a> | <a id="lr_case" class="btn btn-default"><i class="fa fa-plus"></i> 签到情况</a> | ||||
<a id="lr_print" class="btn btn-default"><i class="fa fa-plus"></i> 打印</a> | |||||
@*<a id="lr_checkyes" class="btn btn-default"><i class="fa fa-plus"></i> 审核通过</a> | @*<a id="lr_checkyes" class="btn btn-default"><i class="fa fa-plus"></i> 审核通过</a> | ||||
<a id="lr_checkno" class="btn btn-default"><i class="fa fa-plus"></i> 审核不通过</a>*@ | |||||
<a id="lr_checkno" class="btn btn-default"><i class="fa fa-plus"></i> 审核不通过</a>*@ | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -215,6 +215,21 @@ var bootstrap = function ($, learun) { | |||||
}); | }); | ||||
} | } | ||||
}); | }); | ||||
// 查看 | |||||
$('#lr_print').on('click', function () { | |||||
var keyValue = $('#gridtable').jfGridValue('Id'); | |||||
if (learun.checkrow(keyValue)) { | |||||
learun.layerForm({ | |||||
id: 'viewform', | |||||
title: '二维码', | |||||
url: top.$.rootUrl + '/PersonnelManagement/MeetingManagement/qrCode?keyValue=' + keyValue, | |||||
width: 700, | |||||
height: 700, | |||||
btn: null | |||||
}); | |||||
} | |||||
}); | |||||
}, | }, | ||||
// 初始化列表 | // 初始化列表 | ||||
initGird: function () { | initGird: function () { | ||||
@@ -0,0 +1,15 @@ | |||||
@{ | |||||
ViewBag.Title = "会议管理"; | |||||
Layout = "~/Views/Shared/_Form.cshtml"; | |||||
} | |||||
<script src="~/Content/jquery/qrcode.min.js"></script> | |||||
<div class="lr-form-wrap"> | |||||
<div id="subprint" style="margin:0 auto;cursor:pointer;margin-bottom:10px; position:relative; width:80px; height:28px;line-height:28px;border-radius:4px; background:#039cfd;color:#FFF;text-align:center;"> | |||||
打印 | |||||
</div> | |||||
<div class="col lr-form-item" data-table="MeetingManagement"> | |||||
<div id="qrCode" style="text-align:center"></div> | |||||
</div> | |||||
</div> | |||||
@Html.AppendJsFile("/Areas/PersonnelManagement/Views/MeetingManagement/qrCode.js") | |||||
@Html.AppendJsFile("/Content/jquery/jquery-1.10.2.min.js", "/Content/jquery/plugin/jqprint/jquery.jqprint-0.3.js", "/Content/js/qrcode.min.js") |
@@ -0,0 +1,138 @@ | |||||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
* 创建人:超级管理员 | |||||
* 日 期:2021-02-21 10:07 | |||||
* 描 述:会议管理 | |||||
*/ | |||||
var acceptClick; | |||||
var keyValue = request('keyValue'); | |||||
// 设置权限 | |||||
var setAuthorize; | |||||
// 设置表单数据 | |||||
var setFormData; | |||||
// 验证数据是否填写完整 | |||||
var validForm; | |||||
// 保存数据 | |||||
var save; | |||||
var bootstrap = function ($, learun) { | |||||
"use strict"; | |||||
// 设置权限 | |||||
setAuthorize = function (data) { | |||||
if (!!data) { | |||||
for (var field in data) { | |||||
if (data[field].isLook != 1) {// 如果没有查看权限就直接移除 | |||||
$('#' + data[field].fieldId).parent().remove(); | |||||
} | |||||
else { | |||||
if (data[field].isEdit != 1) { | |||||
$('#' + data[field].fieldId).attr('disabled', 'disabled'); | |||||
if ($('#' + data[field].fieldId).hasClass('lrUploader-wrap')) { | |||||
$('#' + data[field].fieldId).css({ 'padding-right': '58px' }); | |||||
$('#' + data[field].fieldId).find('.btn-success').remove(); | |||||
} | |||||
} | |||||
} | |||||
} | |||||
} | |||||
}; | |||||
var page = { | |||||
init: function () { | |||||
$('.lr-form-wrap').lrscroll(); | |||||
page.bind(); | |||||
page.initData(); | |||||
}, | |||||
bind: function () { | |||||
//$('#MeetingPlace').lrselect({ | |||||
// allowSearch: true, | |||||
// url: top.$.rootUrl + '/PersonnelManagement/ConferenceRoom/GetList', | |||||
// value: "ID", | |||||
// text: "Name" | |||||
//}); | |||||
//$('#RecordPerson').lrUserSelect(0); | |||||
//$('#InternalParticipants').lrUserSelect(1); | |||||
$('#subprint').on('click', function () { | |||||
$('.box').jqprint(); | |||||
//alert(123123) | |||||
//if (!$('body').lrValidform()) { | |||||
// return false; | |||||
//} | |||||
//var entity = $('body').lrGetFormData(); | |||||
//var selgridtab = $('#selgridtab').jfGridGet('rowdatas'); | |||||
//$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/StuTransferInfo/SaveForm', { entity: entity, strStuEntity: JSON.stringify(selgridtab) }, | |||||
// function (res) { | |||||
// //console.log(res) | |||||
// if (res.code == 200) { | |||||
// setTimeout(function () { | |||||
// location.reload(); | |||||
// }, 100) | |||||
// } | |||||
// // 保存成功后才回调 | |||||
// //if (!!callBack) { | |||||
// // callBack(res); | |||||
// //} | |||||
// } | |||||
//); | |||||
}) | |||||
}, | |||||
initData: function () { | |||||
if (!!keyValue) { | |||||
$.lrSetForm(top.$.rootUrl + '/PersonnelManagement/MeetingManagement/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]); | |||||
} | |||||
//扫码签到 | |||||
makeCode(data[id].Id); | |||||
} | |||||
}); | |||||
} | |||||
} | |||||
}; | |||||
// 设置表单数据 | |||||
setFormData = function (processId, param, callback) { | |||||
if (!!processId) { | |||||
$.lrSetForm(top.$.rootUrl + '/PersonnelManagement/MeetingManagement/GetFormDataByProcessId?processId=' + processId, function (data) { | |||||
for (var id in data) { | |||||
if (!!data[id] && data[id].length > 0) { | |||||
$('#' + id).jfGridSet('refreshdata', data[id]); | |||||
} | |||||
else { | |||||
if (id == 'MeetingManagement' && data[id]) { | |||||
keyValue = data[id].Id; | |||||
} | |||||
$('[data-table="' + id + '"]').lrSetFormData(data[id]); | |||||
} | |||||
} | |||||
}); | |||||
} | |||||
callback && callback(); | |||||
} | |||||
// 验证数据是否填写完整 | |||||
validForm = function () { | |||||
if (!$('body').lrValidform()) { | |||||
return false; | |||||
} | |||||
return true; | |||||
}; | |||||
// 保存数据 | |||||
save = function (processId, callBack, i) { | |||||
if (!!callBack) { | |||||
var res = { | |||||
code: 200, data: {} | |||||
}; | |||||
callBack(res, i); | |||||
} | |||||
}; | |||||
page.init(); | |||||
} | |||||
//扫码签到 | |||||
var qrcode = new QRCode(document.getElementById("qrCode"), { | |||||
width: 500, | |||||
height: 500 | |||||
}); | |||||
function makeCode(urls) { | |||||
qrcode.makeCode(urls); | |||||
} |
@@ -1858,6 +1858,7 @@ | |||||
<Content Include="Areas\PersonnelManagement\Views\Emp_PayrollOnce\Index.js" /> | <Content Include="Areas\PersonnelManagement\Views\Emp_PayrollOnce\Index.js" /> | ||||
<Content Include="Areas\PersonnelManagement\Views\Emp_PayrollOnce\StatisticIndex.js" /> | <Content Include="Areas\PersonnelManagement\Views\Emp_PayrollOnce\StatisticIndex.js" /> | ||||
<Content Include="Areas\PersonnelManagement\Views\Emp_Payroll\StatisticIndex.js" /> | <Content Include="Areas\PersonnelManagement\Views\Emp_Payroll\StatisticIndex.js" /> | ||||
<Content Include="Areas\PersonnelManagement\Views\MeetingManagement\qrCode.js" /> | |||||
<Content Include="Areas\PersonnelManagement\Views\MeetingManagement\FormView.js" /> | <Content Include="Areas\PersonnelManagement\Views\MeetingManagement\FormView.js" /> | ||||
<Content Include="Areas\PersonnelManagement\Views\MeetingManagement\IndexOfMyJoin.js" /> | <Content Include="Areas\PersonnelManagement\Views\MeetingManagement\IndexOfMyJoin.js" /> | ||||
<Content Include="Areas\PersonnelManagement\Views\MeetingManagement\IndexOfMyApply.js" /> | <Content Include="Areas\PersonnelManagement\Views\MeetingManagement\IndexOfMyApply.js" /> | ||||
@@ -8105,6 +8106,7 @@ | |||||
<Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\QueryStuEncourgementIndex.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\QueryStuEncourgementIndex.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\QueryScoreIndex.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\StuTransferInfo\QueryScoreIndex.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuInfoGraduate\printxjk.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\StuInfoGraduate\printxjk.cshtml" /> | ||||
<Content Include="Areas\PersonnelManagement\Views\MeetingManagement\qrCode.cshtml" /> | |||||
<None Include="Properties\PublishProfiles\CustomProfile.pubxml" /> | <None Include="Properties\PublishProfiles\CustomProfile.pubxml" /> | ||||
<None Include="Properties\PublishProfiles\FolderProfile.pubxml" /> | <None Include="Properties\PublishProfiles\FolderProfile.pubxml" /> | ||||
<Content Include="Views\Login\Default-beifen.cshtml" /> | <Content Include="Views\Login\Default-beifen.cshtml" /> | ||||