Browse Source

手机端教师个人信息修改显示功能,由于修改登录名为身份证,导致account获取字段失效,增加了根据身份证获取empid的方法。

临城职教中职
坤 梁 2 years ago
parent
commit
7c407713b3
5 changed files with 47 additions and 1 deletions
  1. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/EmpInfo/EmpInfo.js
  2. +7
    -0
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/StatisticsApi.cs
  3. +19
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/EmpInfo/EmpInfoBLL.cs
  4. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/EmpInfo/EmpInfoIBLL.cs
  5. +19
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/EmpInfo/EmpInfoService.cs

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/EmpInfo/EmpInfo.js View File

@@ -14,7 +14,7 @@
var account = learun.storage.get('logininfo').account;
$.ajax({
type: 'POST',
url: config.webapi + '/Statistics/getEmpInfo',
url: config.webapi + '/Statistics/getEmpInfo2',
data: { 'account': account },
async: false,
success: function (msg) {


+ 7
- 0
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/StatisticsApi.cs View File

@@ -82,6 +82,7 @@ namespace Learun.Application.WebApi
Get["/stuAttendance"] = StuAttendance;//全校考勤
Post["/getStuInfo"] = GetStuNoByAccount;
Post["/getEmpInfo"] = GetEmpNoByAccount;
Post["/getEmpInfo2"] = GetEmpNoByAccount2;



@@ -122,6 +123,12 @@ namespace Learun.Application.WebApi
var stuEntity = empInfoIBLL.GetEmpInfoEntityByEmpNo(account);
return Success(stuEntity);
}
public Response GetEmpNoByAccount2(dynamic _)
{
string account = this.Request.Form.account.ToString();
var stuEntity = empInfoIBLL.GetEmpInfoEntityByIdCardNo(account);
return Success(stuEntity);
}
public Response GetStuNoByAccount(dynamic _)
{
string account = this.Request.Form.account.ToString();


+ 19
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/EmpInfo/EmpInfoBLL.cs View File

@@ -360,6 +360,25 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
}

public EmpInfoEntity GetEmpInfoEntityByIdCardNo(string keyValue)
{
try
{
return empInfoService.GetEmpInfoEntityByIdCardNo(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

public EmpInfoEntity GetEmpInfoEntityByMobile(string mobile)
{
try


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/EmpInfo/EmpInfoIBLL.cs View File

@@ -84,5 +84,6 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// <summary>
/// <returns></returns>
void SaveEditEntity(string keyValue, EmpInfoEntity entity);
EmpInfoEntity GetEmpInfoEntityByIdCardNo(string account);
}
}

+ 19
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/EmpInfo/EmpInfoService.cs View File

@@ -250,6 +250,25 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
}

public EmpInfoEntity GetEmpInfoEntityByIdCardNo(string keyValue)
{
try
{
return this.BaseRepository("CollegeMIS").FindEntity<EmpInfoEntity>(m => m.IdentityCardNo == keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

public EmpInfoEntity GetEmpInfoEntityByNo(string keyValue)
{
try


Loading…
Cancel
Save