From 53a6bb3d8928d0a5407ddfc9457d0b4404a28d5f Mon Sep 17 00:00:00 2001 From: zhichao lei <442149704@qq.com> Date: Fri, 8 Jan 2021 18:02:25 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../www/pages/studentCheck/studentCheck.js | 3 +- .../XmlConfig/database.config | 8 +- .../Modules/TimeTable.cs | 5 +- .../XmlConfig/database.config | 8 +- ...i.csproj.50308.19.2020-01-17.09-46-40.9504 | 453 ------------------ ...eb.config.14182.1.2019-11-06.15-13-35.0033 | 106 ---- ...eb.config.44638.3.2020-01-06.09-55-40.0785 | 106 ---- ...eb.config.44638.3.2020-01-17.09-46-40.9504 | 118 ----- .../OpenLessonPlanOfElectiveService.cs | 2 +- .../StuAttendance/StuAttendanceBLL.cs | 4 +- .../StuAttendance/StuAttendanceIBLL.cs | 2 +- .../StuAttendance/StuAttendanceService.cs | 17 +- 12 files changed, 32 insertions(+), 800 deletions(-) delete mode 100644 Learun.Framework.Ultimate V7/Learun.Application.WebApi/_sgbak/Learun.Application.WebApi.csproj.50308.19.2020-01-17.09-46-40.9504 delete mode 100644 Learun.Framework.Ultimate V7/Learun.Application.WebApi/_sgbak/Web.config.14182.1.2019-11-06.15-13-35.0033 delete mode 100644 Learun.Framework.Ultimate V7/Learun.Application.WebApi/_sgbak/Web.config.44638.3.2020-01-06.09-55-40.0785 delete mode 100644 Learun.Framework.Ultimate V7/Learun.Application.WebApi/_sgbak/Web.config.44638.3.2020-01-17.09-46-40.9504 diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/studentCheck/studentCheck.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/studentCheck/studentCheck.js index ab5596ddb..3766ea43a 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/studentCheck/studentCheck.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/studentCheck/studentCheck.js @@ -85,7 +85,8 @@ }; function studentCheckData(Monday, Sunday) { var studCheckList = $('.studCheckList'); - learun.httpget(config.webapi + "learun/adms/timetable/StuLessonInfo", {}, (data) => { + var param = { StartDate: Monday, EndDate: Sunday }; + learun.httpget(config.webapi + "learun/adms/timetable/StuLessonInfo", param, (data) => { console.log(data); $.each(data, function (i, n) { var html = ''; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/database.config b/Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/database.config index 489b3b61f..11a2e6672 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/database.config +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/database.config @@ -13,12 +13,12 @@ --> - - - + - - + - + - \ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/_sgbak/Web.config.14182.1.2019-11-06.15-13-35.0033 b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/_sgbak/Web.config.14182.1.2019-11-06.15-13-35.0033 deleted file mode 100644 index ac5e85f83..000000000 --- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/_sgbak/Web.config.14182.1.2019-11-06.15-13-35.0033 +++ /dev/null @@ -1,106 +0,0 @@ - - - - - -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/_sgbak/Web.config.44638.3.2020-01-06.09-55-40.0785 b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/_sgbak/Web.config.44638.3.2020-01-06.09-55-40.0785 deleted file mode 100644 index 971aa796c..000000000 --- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/_sgbak/Web.config.44638.3.2020-01-06.09-55-40.0785 +++ /dev/null @@ -1,106 +0,0 @@ - - - - - -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/_sgbak/Web.config.44638.3.2020-01-17.09-46-40.9504 b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/_sgbak/Web.config.44638.3.2020-01-17.09-46-40.9504 deleted file mode 100644 index 1c74b3183..000000000 --- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/_sgbak/Web.config.44638.3.2020-01-17.09-46-40.9504 +++ /dev/null @@ -1,118 +0,0 @@ - - - - - -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/OpenLessonPlanOfElective/OpenLessonPlanOfElectiveService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/OpenLessonPlanOfElective/OpenLessonPlanOfElectiveService.cs index c2ec1f140..6bd019da2 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/OpenLessonPlanOfElective/OpenLessonPlanOfElectiveService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/OpenLessonPlanOfElective/OpenLessonPlanOfElectiveService.cs @@ -105,7 +105,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration 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(" 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 + "' "); diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuAttendance/StuAttendanceBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuAttendance/StuAttendanceBLL.cs index 58eff4892..79e18b6ed 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuAttendance/StuAttendanceBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuAttendance/StuAttendanceBLL.cs @@ -130,11 +130,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration } - public List GetStuLessonInfo(string account) + public List GetStuLessonInfo(string account,string startTime,string endTime) { try { - return stuAttendanceService.GetStuLessonInfo(account); + return stuAttendanceService.GetStuLessonInfo(account,startTime,endTime); } catch (Exception ex) { diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuAttendance/StuAttendanceIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuAttendance/StuAttendanceIBLL.cs index 9bc079a8c..f6ec07035 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuAttendance/StuAttendanceIBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuAttendance/StuAttendanceIBLL.cs @@ -70,7 +70,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration /// /// void SaveEntity(string keyValue, StuAttendanceEntity entity); - List GetStuLessonInfo(string account); + List GetStuLessonInfo(string account,string startTime,string endTime); #endregion } diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuAttendance/StuAttendanceService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuAttendance/StuAttendanceService.cs index 53b7a38c2..b7d9910d9 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuAttendance/StuAttendanceService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuAttendance/StuAttendanceService.cs @@ -237,11 +237,24 @@ and t.Status=2"); } } - internal List GetStuLessonInfo(string account) + internal List GetStuLessonInfo(string account,string starTime,string endTime) { try { - return this.BaseRepository("CollegeMIS").FindList(a => a.StuNo == account).ToList(); + var expression = LinqExtensions.True(); + expression = expression.And(a => a.StuNo == account); + if (!string.IsNullOrEmpty(starTime)) + { + var aTime = starTime.ToDate(); + expression = expression.And(a => a.LessonDate >= aTime); + } + + if (!string.IsNullOrEmpty(endTime)) + { + var bTime = endTime.ToDate(); + expression = expression.And(a => a.LessonDate <= bTime); + } + return this.BaseRepository("CollegeMIS").FindList(expression).ToList(); } catch (Exception ex) { From f6eae07f97a572eef665147bec9537d4d3c0606c Mon Sep 17 00:00:00 2001 From: zhichao lei <442149704@qq.com> Date: Wed, 13 Jan 2021 09:09:29 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E5=AD=A6=E8=B4=B9=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../www/config/config.js | 16 +++++++-------- .../Modules/StuInfoFreshApi.cs | 20 +++++++++---------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/config/config.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/config/config.js index 5ef5416f7..7c4493983 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/config/config.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/config/config.js @@ -1,7 +1,7 @@ -// var config = { -// webapi: 'http://localhost:8088/', -// web: "http://localhost:8087/"//web地址,用于配置logo -// }; +var config = { + webapi: 'http://localhost:8088/', + web: "http://localhost:8087/"//web地址,用于配置logo +}; //var config = { // webapi: 'http://112.230.201.53:31173/', // web:"http://112.230.201.53/:8081/"//web地址,用于配置logo @@ -16,10 +16,10 @@ // webapi: 'http://localhost:8081/', // web: "http://localhost:8080/"//web地址,用于配置logo //}; -var config = { - webapi: 'http://123.57.209.16:31173/', - web: "http://123.57.209.16:31175/"//web地址,用于配置logo -}; +// var config = { +// webapi: 'http://123.57.209.16:31173/', +// web: "http://123.57.209.16:31175/"//web地址,用于配置logo +// }; //金隅 //var config = { diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/StuInfoFreshApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/StuInfoFreshApi.cs index 36524c0dd..f090e2650 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/StuInfoFreshApi.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/StuInfoFreshApi.cs @@ -261,25 +261,25 @@ namespace Learun.Application.WebApi.Modules private Response GetPayFeeDetail(dynamic _) { var academicAndYear = Common.GetSemesterAndYear(); - var FinaChargesStandardList = new List(); - var StuInfoFreshData = stuInfoFreshIBLL.GetStuInfoFreshEntityByStuNo(userInfo.account); - if (StuInfoFreshData != null) + var finaChargesStandardList = new List(); + var stuInfoFreshData = stuInfoFreshIBLL.GetStuInfoFreshEntityByStuNo(userInfo.account); + if (stuInfoFreshData != null) { - if (!string.IsNullOrEmpty(StuInfoFreshData.ClassNo) && !string.IsNullOrEmpty(StuInfoFreshData.MajorNo)) + if (!string.IsNullOrEmpty(stuInfoFreshData.ClassNo) && !string.IsNullOrEmpty(stuInfoFreshData.MajorNo)) { - var ClassInfoEntity = classInfoIBLL.GetClassInfoEntityByClassNo(StuInfoFreshData.ClassNo); - if (ClassInfoEntity != null) + var classInfoEntity = classInfoIBLL.GetClassInfoEntityByClassNo(stuInfoFreshData.ClassNo); + if (classInfoEntity != null) { - FinaChargesStandardList = finaChargesStandardIBLL.GetFinaChargesStandardListByMajorNoOfNotAll(StuInfoFreshData.MajorNo, academicAndYear.AcademicYearShort, academicAndYear.Semester, ClassInfoEntity.Grade).ToList(); + finaChargesStandardList = finaChargesStandardIBLL.GetFinaChargesStandardListByMajorNoOfNotAll(stuInfoFreshData.MajorNo, academicAndYear.AcademicYearShort, academicAndYear.Semester, classInfoEntity.Grade).ToList(); } } } - var PayFeeTotal = FinaChargesStandardList.Select(x => x.Standard).Sum(); + var payFeeTotal = finaChargesStandardList.Select(x => x.Standard).Sum(); var result = new { - FinaChargesStandardList = FinaChargesStandardList, - PayFeeTotal = PayFeeTotal, + FinaChargesStandardList = finaChargesStandardList, + PayFeeTotal = payFeeTotal, AcademicYearNo = academicAndYear.AcademicYearShort, Semester = academicAndYear.Semester, }; From a03bda103fd26049bac6966fbc560152a50f38f6 Mon Sep 17 00:00:00 2001 From: zhichao lei <442149704@qq.com> Date: Thu, 14 Jan 2021 10:23:39 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../OpenLessonPlanOfElectiveStudentPre.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/OpenLessonPlanOfElectiveStudentPre/OpenLessonPlanOfElectiveStudentPre.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/OpenLessonPlanOfElectiveStudentPre/OpenLessonPlanOfElectiveStudentPre.js index 773b795ec..664665673 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/OpenLessonPlanOfElectiveStudentPre/OpenLessonPlanOfElectiveStudentPre.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/OpenLessonPlanOfElectiveStudentPre/OpenLessonPlanOfElectiveStudentPre.js @@ -116,6 +116,7 @@ _postData.keyValue = item.Id; _postData.StuNo = JSON.parse(localStorage.userinfo).baseinfo.account; learun.layer.loading(true, '正在取消报名...'); + console.log(123); learun.httppost(config.webapi + 'learun/EducationalAdministration/OpenLessonPlanOfElectiveStudent/CancelPre', _postData, (data, info) => { if (data) {// 成功 learun.layer.toast(info); From 5441c6a13aecd70efedef6977e1b0535e27c37a5 Mon Sep 17 00:00:00 2001 From: dyy <18335927079@163.com> Date: Fri, 15 Jan 2021 11:46:34 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91?= =?UTF-8?q?=E6=95=99=E5=B8=88=E4=BF=A1=E6=81=AF=E7=AE=A1=E7=90=86=E5=8F=96?= =?UTF-8?q?=E6=B6=88=E7=B3=BB=E9=83=A8=EF=BC=9B=E6=95=99=E5=B8=88=E8=AF=81?= =?UTF-8?q?=E4=B9=A6=E7=AE=A1=E7=90=86=E8=BF=9B=E8=A1=8C=E5=AE=8C=E5=96=84?= =?UTF-8?q?=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/EmpInfo/Form.cshtml | 4 +- .../Views/EmpInfo/Form.js | 4 +- .../Views/EmpInfo/FormEdit.cshtml | 4 +- .../Views/EmpInfo/FormEdit.js | 2 +- .../Views/EmpInfo/Index.cshtml | 4 +- .../Views/EmpInfo/Index.js | 28 +++++------ .../Views/EmpInfo/Print.cshtml | 2 +- .../Views/TeacherCertificate/Form.cshtml | 24 ++++++---- .../Views/TeacherCertificate/Form.js | 11 +++-- .../Views/TeacherCertificate/Index.cshtml | 20 +++++++- .../Views/TeacherCertificate/Index.js | 28 ++++++++--- .../XmlConfig/database.config | 8 ++-- .../XmlConfig/database.config | 8 ++-- .../EmpInfo/EmpInfoService.cs | 46 ++++++------------- .../TeacherCertificateEntity.cs | 14 +++--- .../TeacherCertificateService.cs | 25 ++++++---- 16 files changed, 130 insertions(+), 102 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Form.cshtml index ef9d72447..79cbcddee 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Form.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Form.cshtml @@ -147,10 +147,10 @@
部门*
-
+ @*
系部
-
+
*@
岗位类别
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Form.js index b6d9557e5..c4948f653 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Form.js @@ -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' }); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/FormEdit.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/FormEdit.cshtml index d50374b93..a3ce1de60 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/FormEdit.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/FormEdit.cshtml @@ -11,10 +11,10 @@
部门
-
+ @*
系部
-
+
*@ diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/FormEdit.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/FormEdit.js index 9f1bb64ba..ca29ab2d4 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/FormEdit.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/FormEdit.js @@ -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) { diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Index.cshtml index f8c885a1e..36ecf66d1 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Index.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Index.cshtml @@ -22,10 +22,10 @@
联系电话
-
+ @*
系部
-
+
*@
部门
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Index.js index a5487d379..f1080e9ef 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Index.js @@ -16,7 +16,7 @@ var bootstrap = function ($, learun) { $('#multiple_condition_query').lrMultipleQuery(function (queryJson) { page.search(queryJson); }, 280, 400); - $('#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) { @@ -364,19 +364,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) { diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Print.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Print.cshtml index c7f49e031..00c2cbcb8 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Print.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Print.cshtml @@ -36,7 +36,7 @@ 政治面貌 @Model.PartyFaceNo 入党时间 - @(Model.JoinPartyTime.HasValue ? Model.JoinPartyTime.Value.ToShortDateString().Replace("/", "-") : "") + @(Model.JoinPartyTime != "" && Model.JoinPartyTime != null ? Model.JoinPartyTime.Replace("/", "-") : "") 最高学历(学位) @Model.HighestRecord diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherCertificate/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherCertificate/Form.cshtml index a5a99d2ad..b28177bcb 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherCertificate/Form.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherCertificate/Form.cshtml @@ -7,21 +7,25 @@
教师姓名*
-
-
资格种类
-
-
-
-
任教学科*
- +
+
证书名称*
+
-
+
证书编号*
-
+
+
资格种类
+
+
+
+
任教学科
+ +
+
取得时间*
- +
@Html.AppendJsFile("/Areas/PersonnelManagement/Views/TeacherCertificate/Form.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherCertificate/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherCertificate/Form.js index f1dd57a33..94f26ecb5 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherCertificate/Form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/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 () { diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherCertificate/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherCertificate/Index.cshtml index 71998f003..b36e0db23 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherCertificate/Index.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherCertificate/Index.cshtml @@ -7,8 +7,26 @@
-
+ @*
+
*@ +
+
+
+
+
教师姓名
+
+
+
+
证书名称
+ +
+
+
资格种类
+
+
+
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherCertificate/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherCertificate/Index.js index 6174d3dae..2615111ed 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherCertificate/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherCertificate/Index.js @@ -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) }); } }; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/database.config b/Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/database.config index 11a2e6672..489b3b61f 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/database.config +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/database.config @@ -13,12 +13,12 @@ --> - + + + + - + + - +