Przeglądaj źródła

选修课选课:不显示与已经报名课程 相同课程名称相同教师的课程;

微信api:缓存登录用户的年级;
大厂分支
dyy 4 lat temu
rodzic
commit
c6805c4473
9 zmienionych plików z 62 dodań i 33 usunięć
  1. +8
    -4
      Learun.Framework.Ultimate V7/Learun.Application.Mobile/Learun.Application.Mobile.jsproj
  2. +2
    -6
      Learun.Framework.Ultimate V7/Learun.Application.Mobile/Learun.Application.Mobile.sln
  3. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/OpenLessonPlanOfElectiveStudentPre/OpenLessonPlanOfElectiveStudentPre.js
  4. +3
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
  5. +18
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Properties/PublishProfiles/FolderProfile2.pubxml
  6. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Index.cs
  7. +4
    -2
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/WeixinApi.cs
  8. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Properties/PublishProfiles/FolderProfile.pubxml
  9. +24
    -18
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/OpenLessonPlanOfElective/OpenLessonPlanOfElectiveService.cs

+ 8
- 4
Learun.Framework.Ultimate V7/Learun.Application.Mobile/Learun.Application.Mobile.jsproj Wyświetl plik

@@ -44,10 +44,14 @@
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>b9943e88-bf67-46ec-a4d8-d0c81d5846c4</ProjectGuid>
<SccProjectName>Learun.Application.Mobile</SccProjectName>
<SccProvider>SourceGear Vault Visual Studio 2005 Client:{1EA47954-8515-402d-82D9-B5C332120A8D}</SccProvider>
<SccAuxPath>http://123.57.209.16:8090/VaultService</SccAuxPath>
<SccLocalPath>1~a7250b02-76e9-4d74-aa27-f5cdf7719296</SccLocalPath>
<SccProjectName>
</SccProjectName>
<SccProvider>
</SccProvider>
<SccAuxPath>
</SccAuxPath>
<SccLocalPath>
</SccLocalPath>
</PropertyGroup>
<ItemGroup>
<ProjectCapability Include="UseFileGlobs" />


+ 2
- 6
Learun.Framework.Ultimate V7/Learun.Application.Mobile/Learun.Application.Mobile.sln Wyświetl plik

@@ -56,11 +56,7 @@ Global
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {DE155D09-06B5-4BCA-8433-365A2FC796CF}
EndGlobalSection
GlobalSection(VaultVsipSolution-v2) = preSolution
VaultHost = http://123.57.209.16:8090/VaultService
VaultRepositoryID = 1
VaultRepositoryGUID = a7250b02-76e9-4d74-aa27-f5cdf7719296
ProjectCount = 1
ProjectRelativeDiskPath1 = Learun.Application.Mobile.jsproj
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {DE155D09-06B5-4BCA-8433-365A2FC796CF}
EndGlobalSection
EndGlobal

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/OpenLessonPlanOfElectiveStudentPre/OpenLessonPlanOfElectiveStudentPre.js Wyświetl plik

@@ -45,7 +45,7 @@
// _postParam.queryJson = JSON.stringify(multipleData);
//}
if (true) {
_postParam.queryJson = JSON.stringify({ StuNo: JSON.parse(localStorage.userinfo).baseinfo.account, StuMajorNo: JSON.parse(localStorage.userinfo).baseinfo.majorno });
_postParam.queryJson = JSON.stringify({ StuNo: JSON.parse(localStorage.userinfo).baseinfo.account, StuMajorNo: JSON.parse(localStorage.userinfo).baseinfo.majorno, StuGrade: JSON.parse(localStorage.userinfo).baseinfo.grade });
}
learun.httpget(config.webapi + 'learun/EducationalAdministration/OpenLessonPlanOfElectiveStudent/pagelist', _postParam, (data) => {
$page.find('.lr-badge').text('0');


+ 3
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj Wyświetl plik

@@ -6490,6 +6490,7 @@
<Content Include="Areas\LR_NewWorkFlow\Views\StampInfo\Index.cshtml" />
<Content Include="Areas\LR_NewWorkFlow\Views\StampInfo\StampDetailIndex.cshtml" />
<Content Include="Areas\LR_NewWorkFlow\Views\NWFProcess\AddTaskForm.cshtml" />
<None Include="Properties\PublishProfiles\CustomProfile.pubxml" />
<None Include="Properties\PublishProfiles\FolderProfile.pubxml" />
<Content Include="Views\Login\Default-beifen.cshtml" />
<None Include="Properties\PublishProfiles\FolderProfile1.pubxml" />
@@ -6545,6 +6546,8 @@
<Content Include="Views\Shared\_AdminForDC.cshtml" />
<Content Include="Views\Home\AdminDefaultForDC.cshtml" />
<Content Include="Views\Home\AdminTheme5.cshtml" />
<None Include="Properties\PublishProfiles\FolderProfile2.pubxml" />
<None Include="Properties\PublishProfiles\learunadms6.1.pubxml" />
</ItemGroup>
<ItemGroup>
<WCFMetadata Include="Connected Services\" />


+ 18
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Properties/PublishProfiles/FolderProfile2.pubxml Wyświetl plik

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
此文件由 Web 项目的发布/打包过程使用。可以通过编辑此 MSBuild 文件
自定义此过程的行为。为了解与此相关的更多内容,请访问 https://go.microsoft.com/fwlink/?LinkID=208121。
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<WebPublishMethod>FileSystem</WebPublishMethod>
<PublishProvider>FileSystem</PublishProvider>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish />
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<ExcludeApp_Data>False</ExcludeApp_Data>
<publishUrl>D:\Job-release\DigitalCampus-release</publishUrl>
<DeleteExistingFiles>True</DeleteExistingFiles>
</PropertyGroup>
</Project>

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Index.cs Wyświetl plik

@@ -15,7 +15,7 @@ namespace Learun.Application.WebApi
: base()
{
Get["/"] = MainIndex;
Get["/index.html"] = MainIndex
Get["/index.html"] = MainIndex;
Get["/bgimg"] = BgImg;
}
/// <summary>


+ 4
- 2
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/WeixinApi.cs Wyświetl plik

@@ -46,7 +46,7 @@ namespace Learun.Application.WebApi.Modules
public Response GetImg(dynamic _)
{
string code = Request.Query["code"];
string rootPath = ConfigurationManager.AppSettings["AnnexesFile"]+"\\";
string rootPath = ConfigurationManager.AppSettings["AnnexesFile"] + "\\";
string midPath = "Content/images/logo";
try
{
@@ -60,7 +60,7 @@ namespace Learun.Application.WebApi.Modules
switch (code)
{
case "default":
return new GenericFileResponse(Path.Combine(rootPath, midPath, "default.png"), "image/jpeg");
return new GenericFileResponse(Path.Combine(rootPath, midPath, "default.png"), "image/jpeg");
case "accordion":
return new GenericFileResponse(Path.Combine(rootPath, midPath, "accordion.png"), "image/jpeg");
case "windows":
@@ -140,6 +140,7 @@ namespace Learun.Application.WebApi.Modules
var studententity = stuInfoBasicIBLL.GetStuInfoBasicEntityByStuNo(userEntity.F_Account);
if (studententity != null)
{
res.userInfo.grade = studententity.Grade;
var majorinfo = majorIbll.GetCdMajorEntityByMajorNo(studententity.MajorNo);
if (majorinfo != null)
{
@@ -213,6 +214,7 @@ namespace Learun.Application.WebApi.Modules
var studententity = stuInfoBasicIBLL.GetStuInfoBasicEntityByStuNo(userEntity.F_Account);
if (studententity != null)
{
res.userInfo.grade = studententity.Grade;
var majorinfo = majorIbll.GetCdMajorEntityByMajorNo(studententity.MajorNo);
if (majorinfo != null)
{


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Properties/PublishProfiles/FolderProfile.pubxml Wyświetl plik

@@ -12,7 +12,7 @@
<SiteUrlToLaunchAfterPublish />
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<ExcludeApp_Data>False</ExcludeApp_Data>
<publishUrl>D:\Job-release\CGPIweb-release</publishUrl>
<publishUrl>D:\Job-release\DigitalCampusApi-release</publishUrl>
<DeleteExistingFiles>True</DeleteExistingFiles>
</PropertyGroup>
</Project>

+ 24
- 18
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/OpenLessonPlanOfElective/OpenLessonPlanOfElectiveService.cs Wyświetl plik

@@ -90,17 +90,25 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
var queryParam = queryJson.ToJObject();
// 虚拟参数
var dp = new DynamicParameters(new { });

var strSql = new StringBuilder();
strSql.Append(@"select b.*,c.StuNo,c.StuName,c.Status,cp.Status as StatusPre from ElectiveMajor a left join OpenLessonPlanOfElective b on a.OLPOEId=b.Id
left join StuSelectLessonListOfElective c on b.Id=c.OLPEId and c.StuNo=@StuNo
left join StuSelectLessonListOfElectivePre cp on b.Id=cp.OLPEId and cp.StuNo=@StuNo
where 1=1 and a.MajorId is not null and a.Grade is not null ");
//学号
if (!queryParam["StuNo"].IsEmpty())
{
dp.Add("StuNo", queryParam["StuNo"].ToString(), DbType.String);
}
//教学工作安排中“选课”工作设置的学年学期
var now = DateTime.Now;
var EADateArrangeEntityAboutElective = this.BaseRepository("CollegeMIS").FindEntity<EADateArrangeEntity>(x => x.WorkName == "选课" && x.MakeDate <= now && x.EndDate >= now && x.CheckMark == "1");

var strSql = new StringBuilder();
strSql.Append(@"select b.*,c.StuNo,c.StuName,c.Status,cp.Status as StatusPre from ElectiveMajor a left join OpenLessonPlanOfElective b on a.OLPOEId=b.Id
left join StuSelectLessonListOfElective c on b.Id=c.OLPEId and c.StuNo=@StuNo
left join StuSelectLessonListOfElectivePre cp on b.Id=cp.OLPEId and cp.StuNo=@StuNo
where not exists ( ");
//不显示与已选课程 相同课程名称相同教师的课程
strSql.Append(" select * from StuSelectLessonListOfElective s where s.AcademicYearNo='" + EADateArrangeEntityAboutElective?.AcademicYearNo + "' and s.Semester='" + EADateArrangeEntityAboutElective.Semester + "' and s.StuNo=@StuNo and s.Status <>3 and s.LessonName=b.LessonName and s.EmpNo=b.EmpNo and s.OLPEId!=b.Id ");
strSql.Append(" ) ");
strSql.Append(" and a.MajorId is not null and a.Grade is not null ");
strSql.Append(" AND b.AcademicYearNo='" + EADateArrangeEntityAboutElective?.AcademicYearNo + "' and b.Semester='" + EADateArrangeEntityAboutElective?.Semester + "' ");
if (!queryParam["StuMajorNo"].IsEmpty())
{
dp.Add("StuMajorNo", queryParam["StuMajorNo"].ToString(), DbType.String);
@@ -119,18 +127,16 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
{
strSql.Append(" and a.Grade='' ");
}
//教学工作安排中“选课”工作设置的学年学期
var now = DateTime.Now;
var EADateArrangeEntityAboutElective = this.BaseRepository("CollegeMIS").FindEntity<EADateArrangeEntity>(x => x.WorkName == "选课" && x.MakeDate <= now && x.EndDate >= now && x.CheckMark == "1");
if (EADateArrangeEntityAboutElective != null)
{
strSql.Append(" AND b.AcademicYearNo='" + EADateArrangeEntityAboutElective?.AcademicYearNo + "' and b.Semester='" + EADateArrangeEntityAboutElective?.Semester + "'");
strSql.Append(" and b.LessonName not in(select LessonName from StuSelectLessonListOfElective where AcademicYearNo='" + EADateArrangeEntityAboutElective?.AcademicYearNo + "' and Semester='" + EADateArrangeEntityAboutElective?.Semester + "' and StuNo='" + queryParam["StuNo"].ToString() + "' and Status<>3)");
}
else
{
strSql.Append(" AND b.AcademicYearNo='' and b.Semester=''");
}
//不显示与已选课程 相同课程名称的课程
//if (EADateArrangeEntityAboutElective != null)
//{
// strSql.Append(" AND b.AcademicYearNo='" + EADateArrangeEntityAboutElective?.AcademicYearNo + "' and b.Semester='" + EADateArrangeEntityAboutElective?.Semester + "'");
// strSql.Append(" and b.LessonName not in(select LessonName from StuSelectLessonListOfElective where AcademicYearNo='" + EADateArrangeEntityAboutElective?.AcademicYearNo + "' and Semester='" + EADateArrangeEntityAboutElective?.Semester + "' and StuNo='" + queryParam["StuNo"].ToString() + "' and Status<>3)");
//}
//else
//{
// strSql.Append(" AND b.AcademicYearNo='' and b.Semester=''");
//}

if (!queryParam["EmpName"].IsEmpty())
{


Ładowanie…
Anuluj
Zapisz