Pārlūkot izejas kodu

Merge branch '黑龙江艺术高中职' of http://8.141.155.183:3000/bjquanjiang/DigitalScholl into 黑龙江艺术高中职

黑龙江艺术高中职
dao pirms 5 mēnešiem
vecāks
revīzija
71e9213579
5 mainītis faili ar 37 papildinājumiem un 8 dzēšanām
  1. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Organization/Company/CompanyService.cs
  2. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/AllStuScoreQueryIndex.js
  3. +15
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Controllers/CompanyController.cs
  4. +17
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Controllers/DepartmentController.cs
  5. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/Company/Form.cshtml

+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Application.Organization/Company/CompanyService.cs Parādīt failu

@@ -53,7 +53,8 @@ namespace Learun.Application.Organization
t.F_Photo,
t.F_BriefIntroduction,
t.F_EnrollmentInformation,
t.F_ModifyUserName
t.F_ModifyUserName,
T.F_USCreditCode
";
}
#endregion


+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/AllStuScoreQueryIndex.js Parādīt failu

@@ -129,8 +129,8 @@ var bootstrap = function ($, learun) {
{ label: '科目', name: 'LessonName', width: 300, align: "left" },
{ label: '学分', name: 'StudyScore', width: 50, align: "left" },
{ label: '成绩', name: 'Score', width: 100, align: "left" },
{ label: '第一次补考成绩', name: 'ScoreOfNotPass', width: 100, align: "left" },
{ label: '第二次补考成绩', name: 'ScoreOfNotPassTwo', width: 100, align: "left" },
{ label: '补考成绩', name: 'ScoreOfNotPass', width: 100, align: "left" },
//{ label: '第二次补考成绩', name: 'ScoreOfNotPassTwo', width: 100, align: "left" },
{ label: '专业排名', name: 'RankInMajor', width: 100, align: "left" },
{ label: '班级排名', name: 'RankInClass', width: 100, align: "left" },
],


+ 15
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Controllers/CompanyController.cs Parādīt failu

@@ -130,6 +130,11 @@ namespace Learun.Application.Web.Areas.LR_OrganizationModule.Controllers

list = list.Where(m => m.F_CompanyId != keyValue).ToList();
}
if (keyValue == entity.F_ParentId)
{
return Fail("操作失败,当前项不允许");
}

if (list.Any(a => a.F_FullName == entity.F_FullName))
{
return Fail("学校名称重复");
@@ -156,8 +161,16 @@ namespace Learun.Application.Web.Areas.LR_OrganizationModule.Controllers
[AjaxOnly]
public ActionResult DeleteForm(string keyValue)
{
companyIBLL.VirtualDelete(keyValue);
return Success("删除成功!", "公司信息", OperationType.Delete, keyValue, "");
var list = companyIBLL.GetList().Where(x => x.F_ParentId == keyValue && x.F_EnabledMark == 1 && x.F_DeleteMark == 0);
if (list.Count() > 0)
{
return Fail("删除失败!拥有下辖项不可直接删除");
}
else
{
companyIBLL.VirtualDelete(keyValue);
return Success("删除成功!", "公司信息", OperationType.Delete, keyValue, "");
}
}
#endregion
}

+ 17
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Controllers/DepartmentController.cs Parādīt failu

@@ -1,5 +1,6 @@
using Learun.Application.Organization;
using Learun.Util;
using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;

@@ -17,6 +18,8 @@ namespace Learun.Application.Web.Areas.LR_OrganizationModule.Controllers
private DepartmentIBLL departmentIBLL = new DepartmentBLL();
private CompanyIBLL companyIBLL = new CompanyBLL();

private static DepartmentIBLL departmentIBLL_static = new DepartmentBLL();
private static Dictionary<string, DepartmentModel> mapData = departmentIBLL_static.GetModelMap();
#region 获取视图
/// <summary>
/// 主页
@@ -150,6 +153,10 @@ namespace Learun.Application.Web.Areas.LR_OrganizationModule.Controllers
return Fail("部门编号已存在!");
}
}
if (keyValue == entity.F_ParentId)
{
return Fail("操作失败,当前项不允许");
}
//发送标识false
entity.SendFlag = false;
departmentIBLL.SaveEntity(keyValue, entity);
@@ -164,8 +171,16 @@ namespace Learun.Application.Web.Areas.LR_OrganizationModule.Controllers
[AjaxOnly]
public ActionResult DeleteForm(string keyValue)
{
departmentIBLL.VirtualDelete(keyValue);
return Success("删除成功!");
var list = departmentIBLL.GetAllList().Where(x => x.F_ParentId == keyValue);
if (list.Count() > 0)
{
return Fail("删除失败!拥有下辖项不可直接删除");
}
else
{
departmentIBLL.VirtualDelete(keyValue);
return Success("删除成功!");
}
}
#endregion
}

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/Company/Form.cshtml Parādīt failu

@@ -36,7 +36,7 @@
<div class="lr-form-item-title">电子邮箱</div>
<input id="F_Email" type="text" class="form-control" isvalid="yes" checkexpession="EmailOrNull" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">照片</div>
<div id="F_Photo"></div>
</div>


Notiek ielāde…
Atcelt
Saglabāt