Browse Source

临城职教中职
ndbs 2 years ago
parent
commit
cd879a745b
3 changed files with 63 additions and 194 deletions
  1. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/IndexAccount.js
  2. +61
    -44
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/QRCode.cshtml
  3. +0
    -149
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/QRCode.js

+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/IndexAccount.js View File

@@ -25,11 +25,12 @@ var bootstrap = function ($, learun) {
//生成二维码
$("#lr_qrcode").on('click', function () {
var keyValue = $('#gridtable').jfGridValue('ID');
var StuName = $('#gridtable').jfGridValue('StuName');
if (learun.checkrow(keyValue)) {
learun.layerForm({
id: 'formcard',
title: '生成二维码',
url: top.$.rootUrl + '/EducationalAdministration/StuVolunteer/QRCode?keyValue=' + keyValue,//+ '&EmpName=' + escape(EmpName),
url: top.$.rootUrl + '/EducationalAdministration/StuVolunteer/QRCode?keyValue=' + keyValue + '&StuName=' + escape(StuName),
width: 700,
height: 300,
btn: null,


+ 61
- 44
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/QRCode.cshtml View File

@@ -1,46 +1,63 @@
@{
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="Address" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">毕业学校</div>
<input id="BySchool" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">学生姓名</div>
<input id="StuName" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">性别</div>
<div id="Sex"></div>
</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">
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
<!DOCTYPE html>


<html>

<head>
<meta name="viewport" content="width=device-width" />
<title>CardPrint</title>
@Html.AppendJsFile("/Content/jquery/jquery-1.10.2.min.js", "/Content/jquery/plugin/jqprint/jquery.jqprint-0.3.js")
<script src="/Content/js/qrcode.min.js"></script>
<script src="~/PhonePage/server.js"></script>
<link href="~/Content/cardprint/CardPrint.css" rel="stylesheet" />
<script>
function request(d) {
for (var c = location.search.slice(1).split("&"), a = 0; a < c.length; a++) {
var b = c[a].split("=");
if (b[0] == d)
if ("undefined" == unescape(b[1])) break;
else return unescape(b[1])
}
return ""
};
</script>
</head>

<body style="">
<div id="qrcodeBox" style="text-align:center;margin-top:20px;">
<div class="qrcodeBox" style="display:inline-block">
<div id="qrcode" style="margin:0 auto 5px;"></div>
<div class="qrcodeTxt" style="font-size:12px;"></div>
</div>

</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuVolunteer/QRCode.js")
<!--<div id="btnprint" type="button" class="btns" value="打印">打印</div>-->
<script>
//标签打印
var qrcode = new QRCode(document.getElementById("qrcode"), {
width: 80,
height: 80
});
var keyValue = request('keyValue');//二维码
var EmpName = request('EmpName');
$('.qrcodeTxt').html(unescape(EmpName));
$(function () {
var url = currentUrl + '/EducationalAdministration/StuEnrollPhone/Link?EmpNo=' + keyValue;
qrcode.makeCode(url);
//$("#btnprint").on("click", function () {
// AddPrintContent3()
//});


});
// 打印表单
function AddPrintContent3() {
$('#btnprint').css('display', 'none')
window.print();
$('#btnprint').css('display', 'block')
}
</script>
</body>

</html>

+ 0
- 149
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuVolunteer/QRCode.js View File

@@ -1,149 +0,0 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2021-12-16 10:14
* 描 述:长阳迎新
*/
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);
$('#Sex').lrDataItemSelect({ code: 'usersex' });
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
// 标注
$('#lr_label').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('ID');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认标注选中该项!', function (res) {
if (res) {
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuVolunteer/LabelForm', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
});
}
});
// 取消标注
$('#lr_cancel').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('ID');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否取消标注选中该项!', function (res) {
if (res) {
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuVolunteer/CancelLabel', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
});
}
});
// 填报志愿
$('#lr_school').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('ID');
if (learun.checkrow(keyValue)) {
if (keyValue.indexOf(',') != -1) {
learun.alert.warning("只能选择一条记录进行编辑!");
return;
}
var IsOurSchool = $('#gridtable').jfGridValue('IsOurSchool');
if (IsOurSchool == false) {
learun.layerForm({
id: 'form',
title: '填报学校',
url: top.$.rootUrl + '/EducationalAdministration/StuVolunteer/Formschool?keyValue=' + keyValue,
width: 600,
height: 400,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
});
} else {
learun.alert.warning("当前项无需填报!");
return;
}
}
});
},
// 初始化列表
initGird: function () {
$('#gridtable').lrAuthorizeJfGrid({
url: top.$.rootUrl + '/EducationalAdministration/StuVolunteer/GetPageList',
headData: [
{
label: "是否有意(本校)", name: "IsIntention", width: 100, align: "IsIntention",
formatter: function (cellvalue) {
return cellvalue == true ? "<span class=\"label label-success\">是</span>" :
"<span class=\"label label-danger\">否</span>";
}
},
{
label: "填报志愿(本校)", name: "IsOurSchool", width: 100, align: "IsIntention",
formatter: function (cellvalue) {
return cellvalue == true ? "<span class=\"label label-success\">是</span>" :
"<span class=\"label label-danger\">否</span>";
}
},
{ label: "县区名称", name: "Address", width: 200, align: "left" },
{ label: "毕业学校", name: "BySchool", width: 200, align: "left" },
{ label: "初中学号", name: "H_SchoolNo", width: 200, align: "left" },
{ label: "报名号", name: "ApplyNo", width: 200, align: "left" },
{ label: "学生姓名", name: "StuName", width: 100, align: "left" },
{
label: "性别", name: "Sex", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'usersex',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{
label: "录取意向", name: "IsCYSchool", width: 200, align: "left",
formatter: function (cellvalue) {
return cellvalue == true ? "<span class=\"label label-success\">是</span>" :
"<span class=\"label label-danger\">否</span>";
}
},
{ label: "身份证号", name: "CardNo", width: 150, align: "left" },
{ label: "中考总分", name: "StuScore", width: 100, align: "left" },
{ label: "第一志愿", name: "FirstVolunteer", width: 120, align: "left" },
{ label: "第二志愿", name: "SecondVolunteer", width: 120, align: "left" },
{ label: "第三志愿", name: "ThirdVolunteer", width: 120, align: "left" },
{ label: "第四志愿", name: "FouthVolunteer", width: 120, align: "left" },
{ label: "第五志愿", name: "FifthVolunteer", width: 120, align: "left" },
{ label: "第六志愿", name: "SixthVolunteer", width: 120, align: "left" },
{ label: "第七志愿", name: "SeventhVolunteer", width: 120, align: "left" },
{ label: "第八志愿", name: "EighthVolunteer", width: 120, align: "left" },
{ label: "第九志愿", name: "NinthVolunteer", width: 120, align: "left" },
{ label: "备注", name: "Demo", width: 100, align: "left" },
],
mainId: 'ID',
isPage: true,
isMultiselect: true

});
page.search();
},
search: function (param) {
param = param || {};
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {
$('#gridtable').jfGridSet('reload');
};
page.init();
}

Loading…
Cancel
Save