Browse Source

教师证书管理 : 添加教师编码 修改查询下拉框

临城职教中职
ndbs 2 years ago
parent
commit
a2a62e771d
6 changed files with 20 additions and 24 deletions
  1. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherCertificate/Form.cshtml
  2. +3
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherCertificate/Form.js
  3. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherCertificate/Index.cshtml
  4. +5
    -16
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherCertificate/Index.js
  5. +6
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/TeacherCertificate/TeacherCertificateEntity.cs
  6. +3
    -3
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/TeacherCertificate/TeacherCertificateService.cs

+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherCertificate/Form.cshtml View File

@@ -5,7 +5,8 @@
<div class="lr-form-wrap">
<div class="col-xs-12 lr-form-item" data-table="TeacherCertificate">
<div class="lr-form-item-title">教师姓名<font face="宋体">*</font></div>
<div id="TCName" isvalid="yes" checkexpession="NotNull"></div>
<div id="TCNo" isvalid="yes" checkexpession="NotNull"></div>
<input id="TCName" hidden="hidden" />
</div>
<div class="col-xs-12 lr-form-item" data-table="TeacherCertificate">
<div class="lr-form-item-title">证书名称<font face="宋体">*</font></div>


+ 3
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherCertificate/Form.js View File

@@ -16,11 +16,11 @@ var bootstrap = function ($, learun) {
},
bind: function () {
$('#TCTypeID').lrDataItemSelect({ code: 'jszgzl' });
$('#TCName').lrselect({
$('#TCNo').lrselect({
allowSearch: true,
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=EmpInfo',
param: { strWhere: "1=1 " },
value: "empid",
value: "empno",
text: "empname"
});
},
@@ -44,6 +44,7 @@ var bootstrap = function ($, learun) {
if (!$('body').lrValidform()) {
return false;
}
$("#TCName").val($("#TCNo").find(".lr-select-placeholder").text());
var postData = {
strEntity: JSON.stringify($('body').lrGetFormData())
};


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherCertificate/Index.cshtml View File

@@ -15,7 +15,7 @@
<div class="lr-query-formcontent">
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">教师姓名</div>
<div id="TCName"></div>
<div id="TCNo"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">证书名称</div>


+ 5
- 16
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherCertificate/Index.js View File

@@ -45,11 +45,11 @@ var bootstrap = function ($, learun) {
page.search();
}
});
$('#TCName').lrselect({
$('#TCNo').lrselect({
allowSearch: true,
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=EmpInfo',
param: { strWhere: "1=1 " },
value: "empid",
value: "empno",
text: "empname"
});
$('#TCTypeID').lrDataItemSelect({ code: 'jszgzl' });
@@ -109,19 +109,8 @@ var bootstrap = function ($, learun) {
$('#gridtable').lrAuthorizeJfGrid({
url: top.$.rootUrl + '/PersonnelManagement/TeacherCertificate/GetPageList',
headData: [
{
label: "教师姓名", name: "TCName", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'EmpInfo',
key: value,
keyId: 'empid',
callback: function (_data) {
callback(_data['empname']);
}
});
}
},
{ label: "教师编号", name: "TCNo", width: 150, align: "left" },
{ label: "教师姓名", name: "TCName", width: 100, align: "left" },
{ label: "证书名称", name: "TCType", width: 150, align: "left" },
{ label: "证书编号", name: "TCCode", width: 150, align: "left" },
{
@@ -141,7 +130,7 @@ var bootstrap = function ($, learun) {
],
mainId: 'TCID',
isPage: true,
sidx:'TCTime desc'
sidx: 'TCTime desc'
});
page.search();
},


+ 6
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/TeacherCertificate/TeacherCertificateEntity.cs View File

@@ -11,7 +11,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
/// 日 期:2019-03-19 10:52
/// 描 述:教师证书信息
/// </summary>
public class TeacherCertificateEntity
public class TeacherCertificateEntity
{
#region 实体成员
/// <summary>
@@ -20,6 +20,11 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
[Column("TCID")]
public string TCID { get; set; }
/// <summary>
/// 教师empno
/// </summary>
[Column("TCNO")]
public string TCNo { get; set; }
/// <summary>
/// 教师empid
/// </summary>
[Column("TCNAME")]


+ 3
- 3
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/TeacherCertificate/TeacherCertificateService.cs View File

@@ -41,10 +41,10 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
dp.Add("endTime", queryParam["EndTime"].ToDate(), DbType.DateTime);
strSql.Append(" AND ( t.TCTime >= @startTime AND t.TCTime <= @endTime ) ");
}
if (!queryParam["TCName"].IsEmpty())
if (!queryParam["TCNo"].IsEmpty())
{
dp.Add("TCName", queryParam["TCName"].ToString(), DbType.String);
strSql.Append(" AND t.TCName=@TCName ");
dp.Add("TCNo", queryParam["TCNo"].ToString(), DbType.String);
strSql.Append(" AND t.TCNo=@TCNo ");
}
if (!queryParam["TCType"].IsEmpty())
{


Loading…
Cancel
Save