瀏覽代碼

新疆皮山
ndbs 2 月之前
父節點
當前提交
76836af0e2
共有 7 個文件被更改,包括 180 次插入9 次删除
  1. +19
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/OfficeEquipmentController.cs
  2. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/OfficeEquipment/Index.cshtml
  3. +6
    -6
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/OfficeEquipment/Index.js
  4. +36
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/OfficeEquipment/qrCode.cshtml
  5. +114
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/OfficeEquipment/qrCode.js
  6. +2
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
  7. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/OfficeEquipment/OfficeEquipmentService.cs

+ 19
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/OfficeEquipmentController.cs 查看文件

@@ -37,7 +37,15 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
{
return View();
}
/// <summary>
/// 生成二维码
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult QRCode(string keyValue)
{
return View();
}
#endregion

#region 获取数据
@@ -112,6 +120,16 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
}
return Success("保存成功!");
}
public ActionResult Search(string keyValue)
{
var OfficeEquipmentData = officeEquipmentIBLL.GetOfficeEquipmentEntity(keyValue);
var jsonData = new
{
OfficeEquipment = OfficeEquipmentData,
};
return Success(jsonData);
}

#endregion

}


+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/OfficeEquipment/Index.cshtml 查看文件

@@ -34,7 +34,8 @@
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i>&nbsp;打印</a>
@*<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i>&nbsp;打印</a>*@
<a id="lr_qrCode" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;二维码</a>
</div>
</div>
</div>


+ 6
- 6
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/OfficeEquipment/Index.js 查看文件

@@ -17,7 +17,7 @@ var bootstrap = function ($, learun) {
page.search(queryJson);
}, 220, 400);
$('#Name').lrDataSourceSelect({ code: 'TeacherInfo',value: 'f_encode',text: 'f_realname' });
$('#Department').lrDataSourceSelect({ code: 'classdata',value: 'f_encode',text: 'name' });
$('#Department').lrDataSourceSelect({ code: 'classdata',value: 'id',text: 'name' });
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
@@ -69,12 +69,12 @@ var bootstrap = function ($, learun) {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
learun.layerForm({
id: 'formcardprint',
id: 'formqrCode',
title: '二维码',
url: top.$.rootUrl + '/EducationalAdministration/OfficeEquipment/FormPrint?keyValue=' + keyValue,
url: top.$.rootUrl + '/EducationalAdministration/OfficeEquipment/qrCode?keyValue=' + keyValue,
width: 700,
height: 300,
btn: null,
height: 900,
btn: null,
end: function () { refreshGirdData(); }
});
}
@@ -105,7 +105,7 @@ var bootstrap = function ($, learun) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata',
key: value,
keyId: 'f_encode',
keyId: 'id',
callback: function (_data) {
callback(_data['name']);
}


+ 36
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/OfficeEquipment/qrCode.cshtml 查看文件

@@ -0,0 +1,36 @@
@{
ViewBag.Title = "会议管理";
Layout = "~/Views/Shared/_Form.cshtml";
}
<script src="~/Content/jquery/qrcode.min.js"></script>
@*<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="lr-form-wrap" id="form">
<div class="col-xs-6 lr-form-item" data-table="OfficeEquipment">
<div class="lr-form-item-title">名称<font face="宋体">*</font></div>
<div id="Name" isvalid="yes" checkexpession="NotNull"></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="OfficeEquipment">
<div class="lr-form-item-title">部门<font face="宋体">*</font></div>
<div id="Department" isvalid="yes" checkexpession="NotNull"></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="OfficeEquipment">
<div class="lr-form-item-title">设备名称<font face="宋体">*</font></div>
<input id="DeviceName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-6 lr-form-item" data-table="OfficeEquipment">
<div class="lr-form-item-title">配置描述<font face="宋体">*</font></div>
<input id="Description" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-12 lr-form-item" data-table="OfficeEquipment">
<div class="lr-form-item-title">备注</div>
<textarea id="Remark" class="form-control" style="height:100px;"></textarea>
</div>
<div class="col lr-form-item" data-table="OfficeEquipment">
<div id="qrCode" style="text-align:center"></div>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/OfficeEquipment/qrCode.js")
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuVolunteer/server.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")

+ 114
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/OfficeEquipment/qrCode.js 查看文件

@@ -0,0 +1,114 @@
/* * 版 本 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 () {
$('#Name').lrDataSourceSelect({ code: 'TeacherInfo', value: 'f_encode', text: 'f_realname' });
$('#Department').lrselect({
type: 'tree',
allowSearch: true,
url: top.$.rootUrl + '/LR_OrganizationModule/Department/GetTreeNoCheck',
param: {},
});
},
initData: function () {
if (!!keyValue) {
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/OfficeEquipment/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: 550,
height: 550
});
function makeCode(urls) {
qrcode.makeCode(urls);
}

+ 2
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj 查看文件

@@ -1081,6 +1081,7 @@
<Content Include="Areas\EducationalAdministration\Views\ClassPlan\Form.js" />
<Content Include="Areas\EducationalAdministration\Views\ClassPlan\Index.js" />
<Content Include="Areas\EducationalAdministration\Views\ClassPlan\IndexSchool.js" />
<Content Include="Areas\EducationalAdministration\Views\OfficeEquipment\qrCode.js" />
<Content Include="Areas\EducationalAdministration\Views\SafetyCheck\FormCheck.js" />
<Content Include="Areas\EducationalAdministration\Views\SafetyCheck\FormView.js" />
<Content Include="Areas\EducationalAdministration\Views\StuArriveSchool\Form.js" />
@@ -1372,6 +1373,7 @@
<Content Include="Areas\EducationalAdministration\Views\StuInfoBasic\FinishSchoolDateForm.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\SafetyCheck\FormView.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\SafetyCheck\FormCheck.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\OfficeEquipment\qrCode.cshtml" />
<None Include="Areas\EducationalAdministration\Views\StuInfoBasic\Printxjk.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StuInfoFresh\AllocationClassDC.js" />
<Content Include="Areas\EducationalAdministration\Views\StuInfoFresh\StatisticClassIndex.js" />


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/OfficeEquipment/OfficeEquipmentService.cs 查看文件

@@ -44,7 +44,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
if (!queryParam["DeviceName"].IsEmpty())
{
dp.Add("DeviceName", "%" + queryParam["DeviceName"].ToString() + "%", DbType.String);
strSql.Append(" AND t.DeviceName = @DeviceName ");
strSql.Append(" AND t.DeviceName like @DeviceName ");
}
if (!queryParam["Department"].IsEmpty())
{


Loading…
取消
儲存