@@ -147,10 +147,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(); | |||
@@ -127,7 +127,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) { | |||
@@ -23,9 +23,13 @@ | |||
<input id="mobile" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">性别</div> | |||
<div id="GenderNo"></div> | |||
</div> | |||
@*<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_CompanyId"></div> | |||
@@ -38,10 +42,6 @@ | |||
<div class="lr-form-item-title">民族</div> | |||
<div id="NationalityNo"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">性别</div> | |||
<div id="GenderNo"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item"> | |||
<div class="lr-form-item-title">学位</div> | |||
<div id="DegreeNo"></div> | |||
@@ -16,7 +16,7 @@ var bootstrap = function ($, learun) { | |||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | |||
page.search(queryJson); | |||
}, 350, 550); | |||
$('#DeptNo').lrDataSourceSelect({ code: 'CdDeptInfo', value: 'deptno', text: 'deptname' }); | |||
//$('#DeptNo').lrDataSourceSelect({ code: 'CdDeptInfo', value: 'deptno', text: 'deptname' }); | |||
$('#ProvinceNo').lrDataSourceSelect({ | |||
code: 'DIC_PROVINCE', value: 'pcode', text: 'pname', | |||
select: function (item) { | |||
@@ -384,19 +384,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) { | |||
@@ -606,6 +606,8 @@ var bootstrap = function ($, learun) { | |||
{ label: "紧急联系人", name: "Linkman", width: 100, align: "left" }, | |||
{ label: "联系人关系", name: "RelationOfLinkman", width: 100, align: "left" }, | |||
{ label: "联系人电话", name: "PhoneOfLinkman", width: 100, align: "left" }, | |||
{ label: "证书信息", name: "CertificateNames", width: 150, align: "left" }, | |||
{ label: "获取证书日期", name: "CertificateDates", width: 150, align: "left" }, | |||
], | |||
mainId: 'EmpId', | |||
@@ -36,7 +36,7 @@ | |||
<td>政治面貌</td> | |||
<td>@Model.PartyFaceNo</td> | |||
<td>入党时间</td> | |||
<td>@(Model.JoinPartyTime.HasValue ? Model.JoinPartyTime.Value.ToShortDateString().Replace("/", "-") : "")</td> | |||
<td>@(Model.JoinPartyTime != "" && Model.JoinPartyTime != null ? Model.JoinPartyTime.Replace("/", "-") : "")</td> | |||
<td>最高学历(学位)</td> | |||
<td>@Model.HighestRecord</td> | |||
</tr> | |||
@@ -7,21 +7,25 @@ | |||
<div class="lr-form-item-title">教师姓名<font face="宋体">*</font></div> | |||
<div id="TCName" isvalid="yes" checkexpession="NotNull"></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="TeacherCertificate" > | |||
<div class="lr-form-item-title">资格种类</div> | |||
<div id="TCTypeID" ></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="TeacherCertificate" > | |||
<div class="lr-form-item-title">任教学科<font face="宋体">*</font></div> | |||
<input id="TCClass" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
<div class="col-xs-12 lr-form-item" data-table="TeacherCertificate"> | |||
<div class="lr-form-item-title">证书名称<font face="宋体">*</font></div> | |||
<input id="TCType" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="TeacherCertificate" > | |||
<div class="col-xs-12 lr-form-item" data-table="TeacherCertificate"> | |||
<div class="lr-form-item-title">证书编号<font face="宋体">*</font></div> | |||
<input id="TCCode" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="TeacherCertificate" > | |||
<div class="col-xs-12 lr-form-item" data-table="TeacherCertificate"> | |||
<div class="lr-form-item-title">资格种类</div> | |||
<div id="TCTypeID"></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="TeacherCertificate"> | |||
<div class="lr-form-item-title">任教学科</div> | |||
<input id="TCClass" type="text" class="form-control"/> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="TeacherCertificate"> | |||
<div class="lr-form-item-title">取得时间<font face="宋体">*</font></div> | |||
<input id="TCTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#TCTime').trigger('change'); } })" isvalid="yes" checkexpession="NotNull" /> | |||
<input id="TCTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#TCTime').trigger('change'); } })" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/PersonnelManagement/Views/TeacherCertificate/Form.js") |
@@ -16,11 +16,12 @@ var bootstrap = function ($, learun) { | |||
}, | |||
bind: function () { | |||
$('#TCTypeID').lrDataItemSelect({ code: 'jszgzl' }); | |||
$('#TCName').lrformselect({ | |||
layerUrl: top.$.rootUrl + '/LR_OrganizationModule/User/SelectOnlyForm', | |||
layerUrlW: 400, | |||
layerUrlH: 300, | |||
dataUrl: top.$.rootUrl + '/LR_OrganizationModule/User/GetListByUserIds' | |||
$('#TCName').lrselect({ | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=EmpInfo', | |||
param: { strWhere: "1=1 " }, | |||
value: "empid", | |||
text: "empname" | |||
}); | |||
}, | |||
initData: function () { | |||
@@ -7,8 +7,26 @@ | |||
<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 class="lr-layout-tool-item"> | |||
<div id="datesearch"></div> | |||
</div>*@ | |||
<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> | |||
<div id="TCName"></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">证书名称</div> | |||
<input id="TCType" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">资格种类</div> | |||
<div id="TCTypeID"></div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-tool-right"> | |||
@@ -15,6 +15,9 @@ var bootstrap = function ($, learun) { | |||
page.bind(); | |||
}, | |||
bind: function () { | |||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | |||
page.search(queryJson); | |||
}, 220, 400); | |||
// 时间搜索框 | |||
$('#datesearch').lrdate({ | |||
dfdata: [ | |||
@@ -42,6 +45,14 @@ var bootstrap = function ($, learun) { | |||
page.search(); | |||
} | |||
}); | |||
$('#TCName').lrselect({ | |||
allowSearch: true, | |||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=EmpInfo', | |||
param: { strWhere: "1=1 " }, | |||
value: "empid", | |||
text: "empname" | |||
}); | |||
$('#TCTypeID').lrDataItemSelect({ code: 'jszgzl' }); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
@@ -101,14 +112,18 @@ var bootstrap = function ($, learun) { | |||
{ | |||
label: "教师姓名", name: "TCName", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('user', { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'EmpInfo', | |||
key: value, | |||
keyId: 'empid', | |||
callback: function (_data) { | |||
callback(_data.name); | |||
callback(_data['empname']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: "证书名称", name: "TCType", width: 150, align: "left" }, | |||
{ label: "证书编号", name: "TCCode", width: 150, align: "left" }, | |||
{ | |||
label: "资格种类", name: "TCTypeID", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
@@ -122,17 +137,18 @@ var bootstrap = function ($, learun) { | |||
} | |||
}, | |||
{ label: "任教学科", name: "TCClass", width: 100, align: "left" }, | |||
{ label: "证书编号", name: "TCCode", width: 100, align: "left" }, | |||
{ label: "取得时间", name: "TCTime", width: 100, align: "left" }, | |||
], | |||
mainId: 'TCID', | |||
isPage: true | |||
isPage: true, | |||
sidx:'TCTime desc' | |||
}); | |||
page.search(); | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
param.StartTime = startTime; | |||
param.EndTime = endTime; | |||
//param.StartTime = startTime; | |||
//param.EndTime = endTime; | |||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
@@ -9,16 +9,16 @@ | |||
<add name="CollegeMIS" connectionString="Server=192.168.2.126;Initial Catalog=CollegeMIS;User ID=sa;Password=bjqj@2015!" providerName="System.Data.SqlClient" /> | |||
<add name="hangfireString" connectionString="Server=192.168.2.126;Initial Catalog=Hangfire;User ID=sa;Password=bjqj@2015!" providerName="System.Data.SqlClient" />--> | |||
<!--西昌--> | |||
<add name="BaseDb" connectionString="Server=112.45.152.8;Initial Catalog=adms7ultimate2;User ID=sa;Password=qj@2018" providerName="System.Data.SqlClient" /> | |||
<!--<add name="BaseDb" connectionString="Server=112.45.152.8;Initial Catalog=adms7ultimate2;User ID=sa;Password=qj@2018" providerName="System.Data.SqlClient" /> | |||
<add name="CollegeMIS" connectionString="Server=112.45.152.8;Initial Catalog=NewCollegeMIS;User ID=sa;Password=qj@2018" providerName="System.Data.SqlClient" /> | |||
<add name="hangfireString" connectionString="Server=112.45.152.8;Initial Catalog=HangFire;User ID=sa;Password=qj@2018" providerName="System.Data.SqlClient" /> | |||
<add name="hangfireString" connectionString="Server=112.45.152.8;Initial Catalog=HangFire;User ID=sa;Password=qj@2018" providerName="System.Data.SqlClient" />--> | |||
<!--demo.quanjiang.com--> | |||
<!--<add name="BaseDb" connectionString="Server=123.57.209.16;Initial Catalog=adms7ultimate2;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" /> | |||
<add name="CollegeMIS" connectionString="Server=123.57.209.16;Initial Catalog=CollegeMIS;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" /> | |||
<add name="hangfireString" connectionString="Server=123.57.209.16;Initial Catalog=Hangfire;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" />--> | |||
<!--<add name="BaseDb" connectionString="Server=123.57.209.16;Initial Catalog=adms7ultimate2_西昌;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" /> | |||
<add name="BaseDb" connectionString="Server=123.57.209.16;Initial Catalog=adms7ultimate2_西昌;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" /> | |||
<add name="CollegeMIS" connectionString="Server=123.57.209.16;Initial Catalog=CollegeMIS_西昌;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" /> | |||
<add name="hangfireString" connectionString="Server=123.57.209.16;Initial Catalog=Hangfire;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" />--> | |||
<add name="hangfireString" connectionString="Server=123.57.209.16;Initial Catalog=Hangfire;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" /> | |||
<!--<add name="BaseDb" connectionString="Server=123.57.209.16;Initial Catalog=adms7ultimate2_20200403test;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" /> | |||
<add name="CollegeMIS" connectionString="Server=123.57.209.16;Initial Catalog=CollegeMIS_20200403test;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" /> | |||
@@ -650,7 +650,14 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
/// 处分情况 | |||
/// </summary> | |||
[NotMapped] public List<TeacherPunishmentEntity> TeacherPunishmentList { get; set; } | |||
/// <summary> | |||
/// 证书信息 | |||
/// </summary> | |||
[NotMapped] public string CertificateNames { get; set; } | |||
/// <summary> | |||
/// 获取证书日期 | |||
/// </summary> | |||
[NotMapped] public string CertificateDates { get; set; } | |||
#endregion | |||
} | |||
} | |||
@@ -10,6 +10,7 @@ using System.Text; | |||
using Learun.Application.Base.AuthorizeModule; | |||
using Learun.Application.Base.SystemModule; | |||
using Learun.Application.Organization; | |||
using Learun.Application.TwoDevelopment.PersonnelManagement; | |||
namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
{ | |||
@@ -132,7 +133,18 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
dp.Add("CheckMark", queryParam["CheckMark"].ToString(), DbType.String); | |||
strSql.Append(" AND t.CheckMark = @CheckMark "); | |||
} | |||
return this.BaseRepository("CollegeMIS").FindList<EmpInfoEntity>(strSql.ToString(), dp, pagination); | |||
var result = new List<EmpInfoEntity>(); | |||
result = this.BaseRepository("CollegeMIS").FindList<EmpInfoEntity>(strSql.ToString(), dp, pagination).ToList(); | |||
foreach (var item in result) | |||
{ | |||
var certificate = this.BaseRepository().FindList<TeacherCertificateEntity>(x => x.TCName == item.EmpId); | |||
if (certificate.Any()) | |||
{ | |||
item.CertificateNames = string.Join(",", certificate.Select(x => x.TCType).ToArray()); | |||
item.CertificateDates = string.Join(",", certificate.Select(x => x.TCTime).ToArray()); | |||
} | |||
} | |||
return result; | |||
} | |||
catch (Exception ex) | |||
{ | |||
@@ -615,7 +627,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
{ | |||
try | |||
{ | |||
UserIBLL userIBLL = new UserBLL(); | |||
if (!string.IsNullOrEmpty(keyValue)) | |||
@@ -745,10 +757,10 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
{ | |||
model.F_DepartmentId = entity.F_DepartmentId; | |||
} | |||
if (!string.IsNullOrEmpty(entity.DeptNo)) | |||
{ | |||
model.DeptNo = entity.DeptNo; | |||
} | |||
//if (!string.IsNullOrEmpty(entity.DeptNo)) | |||
//{ | |||
// model.DeptNo = entity.DeptNo; | |||
//} | |||
db.Update(model); | |||
} | |||
} | |||
@@ -767,10 +779,10 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
{ | |||
model.F_DepartmentId = entity.F_DepartmentId; | |||
} | |||
if (!string.IsNullOrEmpty(entity.DeptNo)) | |||
{ | |||
model.DeptNo = entity.DeptNo; | |||
} | |||
//if (!string.IsNullOrEmpty(entity.DeptNo)) | |||
//{ | |||
// model.DeptNo = entity.DeptNo; | |||
//} | |||
db.Update(model); | |||
} | |||
} | |||
@@ -11,7 +11,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||
/// 日 期:2019-03-19 10:52 | |||
/// 描 述:教师证书信息 | |||
/// </summary> | |||
public class TeacherCertificateEntity | |||
public class TeacherCertificateEntity | |||
{ | |||
#region 实体成员 | |||
/// <summary> | |||
@@ -20,32 +20,32 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||
[Column("TCID")] | |||
public string TCID { get; set; } | |||
/// <summary> | |||
/// TCName | |||
/// 教师empid | |||
/// </summary> | |||
[Column("TCNAME")] | |||
public string TCName { get; set; } | |||
/// <summary> | |||
/// TCType | |||
/// 证书名称 | |||
/// </summary> | |||
[Column("TCTYPE")] | |||
public string TCType { get; set; } | |||
/// <summary> | |||
/// TCTypeID | |||
/// 资格种类 | |||
/// </summary> | |||
[Column("TCTYPEID")] | |||
public int? TCTypeID { get; set; } | |||
public string TCTypeID { get; set; } | |||
/// <summary> | |||
/// TCClass | |||
/// 任教学科 | |||
/// </summary> | |||
[Column("TCCLASS")] | |||
public string TCClass { get; set; } | |||
/// <summary> | |||
/// TCCode | |||
/// 证书编号 | |||
/// </summary> | |||
[Column("TCCODE")] | |||
public string TCCode { get; set; } | |||
/// <summary> | |||
/// TCTime | |||
/// 取得时间 | |||
/// </summary> | |||
[Column("TCTIME")] | |||
public DateTime? TCTime { get; set; } | |||
@@ -29,15 +29,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||
try | |||
{ | |||
var strSql = new StringBuilder(); | |||
strSql.Append("SELECT "); | |||
strSql.Append(@" | |||
t.TCID, | |||
t.TCName, | |||
t.TCTypeID, | |||
t.TCClass, | |||
t.TCCode, | |||
t.TCTime | |||
"); | |||
strSql.Append("SELECT t.* "); | |||
strSql.Append(" FROM TeacherCertificate t "); | |||
strSql.Append(" WHERE 1=1 "); | |||
var queryParam = queryJson.ToJObject(); | |||
@@ -49,7 +41,22 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||
dp.Add("endTime", queryParam["EndTime"].ToDate(), DbType.DateTime); | |||
strSql.Append(" AND ( t.TCTime >= @startTime AND t.TCTime <= @endTime ) "); | |||
} | |||
return this.BaseRepository().FindList<TeacherCertificateEntity>(strSql.ToString(),dp, pagination); | |||
if (!queryParam["TCName"].IsEmpty()) | |||
{ | |||
dp.Add("TCName", queryParam["TCName"].ToString(), DbType.String); | |||
strSql.Append(" AND t.TCName=@TCName "); | |||
} | |||
if (!queryParam["TCType"].IsEmpty()) | |||
{ | |||
dp.Add("TCType", '%' + queryParam["TCType"].ToString() + '%', DbType.String); | |||
strSql.Append(" AND t.TCType like @TCType "); | |||
} | |||
if (!queryParam["TCTypeID"].IsEmpty()) | |||
{ | |||
dp.Add("TCTypeID", queryParam["TCTypeID"].ToString(), DbType.String); | |||
strSql.Append(" AND t.TCTypeID=@TCTypeID "); | |||
} | |||
return this.BaseRepository().FindList<TeacherCertificateEntity>(strSql.ToString(), dp, pagination); | |||
} | |||
catch (Exception ex) | |||
{ | |||
@@ -101,7 +108,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||
{ | |||
try | |||
{ | |||
this.BaseRepository().Delete<TeacherCertificateEntity>(t=>t.TCID == keyValue); | |||
this.BaseRepository().Delete<TeacherCertificateEntity>(t => t.TCID == keyValue); | |||
} | |||
catch (Exception ex) | |||
{ | |||