|
|
@@ -311,11 +311,66 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//public List<Acc_DormitoryBuildEntity> GetDept() |
|
|
|
//{ |
|
|
|
// try |
|
|
|
// { |
|
|
|
// return accommodationService.GetSelectData("").Select(x => new Acc_DormitoryBuildEntity { Dept = x.Dept, DeptName = x.DeptName }).Distinct().ToList(); |
|
|
|
// } |
|
|
|
// catch (Exception ex) |
|
|
|
// { |
|
|
|
// if (ex is ExceptionEx) |
|
|
|
// { |
|
|
|
// throw; |
|
|
|
// } |
|
|
|
// else |
|
|
|
// { |
|
|
|
// throw ExceptionEx.ThrowBusinessException(ex); |
|
|
|
// } |
|
|
|
// } |
|
|
|
//} |
|
|
|
//public List<Acc_DormitoryBuildEntity> GetMajor(string strWhere) |
|
|
|
//{ |
|
|
|
// try |
|
|
|
// { |
|
|
|
// return accommodationService.GetSelectData(strWhere).Select(x => new Acc_DormitoryBuildEntity { Major = x.Major, MajorName = x.MajorName }).Distinct().ToList(); |
|
|
|
// } |
|
|
|
// catch (Exception ex) |
|
|
|
// { |
|
|
|
// if (ex is ExceptionEx) |
|
|
|
// { |
|
|
|
// throw; |
|
|
|
// } |
|
|
|
// else |
|
|
|
// { |
|
|
|
// throw ExceptionEx.ThrowBusinessException(ex); |
|
|
|
// } |
|
|
|
// } |
|
|
|
//} |
|
|
|
//public List<Acc_DormitoryBuildEntity> GetClass(string strWhere) |
|
|
|
//{ |
|
|
|
// try |
|
|
|
// { |
|
|
|
// return accommodationService.GetSelectData(strWhere).Select(x => new Acc_DormitoryBuildEntity { Class = x.Class, ClassName = x.ClassName }).Distinct().ToList(); |
|
|
|
// } |
|
|
|
// catch (Exception ex) |
|
|
|
// { |
|
|
|
// if (ex is ExceptionEx) |
|
|
|
// { |
|
|
|
// throw; |
|
|
|
// } |
|
|
|
// else |
|
|
|
// { |
|
|
|
// throw ExceptionEx.ThrowBusinessException(ex); |
|
|
|
// } |
|
|
|
// } |
|
|
|
//} |
|
|
|
|
|
|
|
public List<Acc_DormitoryBuildEntity> GetDept() |
|
|
|
{ |
|
|
|
try |
|
|
|
{ |
|
|
|
return accommodationService.GetSelectData("").Select(x => new Acc_DormitoryBuildEntity { Dept = x.Dept, DeptName = x.DeptName }).Distinct().ToList(); |
|
|
|
return accommodationService.GetDeptOrMajorOrClass("").Select(x => new Acc_DormitoryBuildEntity { Dept = x.Dept, DeptName = x.DeptName }).Distinct().ToList(); |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
@@ -333,7 +388,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement |
|
|
|
{ |
|
|
|
try |
|
|
|
{ |
|
|
|
return accommodationService.GetSelectData(strWhere).Select(x => new Acc_DormitoryBuildEntity { Major = x.Major, MajorName = x.MajorName }).Distinct().ToList(); |
|
|
|
return accommodationService.GetDeptOrMajorOrClass(strWhere).Select(x => new Acc_DormitoryBuildEntity { Major = x.Major, MajorName = x.MajorName }).Distinct().ToList(); |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
@@ -351,7 +406,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement |
|
|
|
{ |
|
|
|
try |
|
|
|
{ |
|
|
|
return accommodationService.GetSelectData(strWhere).Select(x => new Acc_DormitoryBuildEntity { Class = x.Class, ClassName = x.ClassName }).Distinct().ToList(); |
|
|
|
return accommodationService.GetDeptOrMajorOrClass(strWhere).Select(x => new Acc_DormitoryBuildEntity { Class = x.Class, ClassName = x.ClassName }).Distinct().ToList(); |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
@@ -365,7 +420,6 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// 获取左侧树形数据 |
|
|
|
/// <summary> |
|
|
|