Procházet zdrojové kódy

比例调整

黑龙江艺术高中职
hwh2023 před 4 měsíci
rodič
revize
cf5572fb80
10 změnil soubory, kde provedl 94 přidání a 55 odebrání
  1. +10
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/OpenLessonPlanController.cs
  2. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ArrangeLessonTermAttemper/Form.cshtml
  3. +30
    -29
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ArrangeLessonTermAttemper/Form.js
  4. +16
    -16
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ArrangeLessonTermAttemper/Index.js
  5. +21
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/OpenLessonPlan/ImportForm.js
  6. +9
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/OpenLessonPlan/Index.js
  7. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/TimeTableController.cs
  8. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TimeTable/IndexInEducationSelect_.js
  9. binární
      Learun.Framework.Ultimate V7/Learun.Application.Web/Content/excel/OpenLessonPlanImport.xls
  10. +3
    -3
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ArrangeLessonTermAttemper/ArrangeLessonTermAttemperService.cs

+ 10
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/OpenLessonPlanController.cs Zobrazit soubor

@@ -181,10 +181,19 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
FileStreamResult result = null;
try
{

string F_SchoolId = Request.Form["F_SchoolId"];
string AcademicYearNo = Request.Form["AcademicYearNo"];
string Semester = Request.Form["Semester"];
string Grade = Request.Form["Grade"];
string DeptNo = Request.Form["DeptNo"];
string GZ = Request.Form["GZ"];
string MajorNo = Request.Form["MajorNo"];
string LessonNo = Request.Form["LessonNo"];
var fileHead = "成绩比例设置导入模板";
var path = Server.MapPath("~/Content/excel/");
var pathoffull = path + "OpenLessonPlanImport.xls";
string queryJson = "{}";
string queryJson = "{\"F_SchoolId\":\""+ F_SchoolId + "\",\"AcademicYearNo\":\""+AcademicYearNo + "\",\"Semester\":\""+ Semester + "\",\"Grade\":\""+ Grade + "\",\"DeptNo\":\""+ DeptNo + "\",\"GZ\":\""+ GZ + "\",\"MajorNo\":\""+ MajorNo + "\",\"LessonNo\":\""+ LessonNo + "\"}";
var data = openLessonPlanIBLL.GetList( queryJson);

IWorkbook book = null;


+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ArrangeLessonTermAttemper/Form.cshtml Zobrazit soubor

@@ -44,10 +44,10 @@
<div class="lr-form-item-title">调度类型<font face="宋体">*</font></div>
<div id="AttemperType" isvalid="yes" checkexpession="NotNull"></div>
</div>
<div class="col-xs-6 lr-form-item AttemperType AttemperTypeTiao" data-table="ArrangeLessonTermAttemper">
@*<div class="col-xs-6 lr-form-item AttemperType AttemperTypeTiao" data-table="ArrangeLessonTermAttemper">
<div class="lr-form-item-title">调度时限<font face="宋体">*</font></div>
<div id="AttemperTimeType"></div>
</div>
</div>*@

<div class="col-xs-12 text-center">课程原安排</div>
<div class="col-xs-12 lr-form-item btnRow">


+ 30
- 29
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ArrangeLessonTermAttemper/Form.js Zobrazit soubor

@@ -116,8 +116,8 @@ var bootstrap = function ($, learun) {
}
$('.AttemperType').hide();

$("#AttemperTimeType").removeAttr("isvalid");
$("#AttemperTimeType").removeAttr("checkexpession");
//$("#AttemperTimeType").removeAttr("isvalid");
//$("#AttemperTimeType").removeAttr("checkexpession");
$("#AttemperStartTime").removeAttr("isvalid");
$("#AttemperStartTime").removeAttr("checkexpession");
$("#AttemperEndTime").removeAttr("isvalid");
@@ -140,8 +140,8 @@ var bootstrap = function ($, learun) {
$("#targetgridtable").hide();
if (item.id === "01") { //换课
$('.AttemperTypeTiao').show();
$("#AttemperTimeType").attr("isvalid", "yes");//调度时限 加入验证
$("#AttemperTimeType").attr("checkexpession", "NotNull");//验证规则
//$("#AttemperTimeType").attr("isvalid", "yes");//调度时限 加入验证
//$("#AttemperTimeType").attr("checkexpession", "NotNull");//验证规则
$("#AttemperStartTime").attr("isvalid", "yes");
$("#AttemperStartTime").attr("checkexpession", "NotNull");
$("#AttemperEndTime").attr("isvalid", "yes");
@@ -178,7 +178,7 @@ var bootstrap = function ($, learun) {
}
}
});
$('#AttemperTimeType').lrDataItemSelect({ code: 'AttemperTimeType' });
//$('#AttemperTimeType').lrDataItemSelect({ code: 'AttemperTimeType' });
//$('#F_SchoolId').lrDataSourceSelect({ code: 'company', value: 'f_companyid', text: 'f_fullname' });
//$('#NewF_SchoolId').lrDataSourceSelect({ code: 'company', value: 'f_companyid', text: 'f_fullname' });
//学年
@@ -269,8 +269,8 @@ var bootstrap = function ($, learun) {
else {
$('[data-table="' + id + '"]').lrSetFormData(data[id]);
$('.AttemperType').hide();
$("#AttemperTimeType").removeAttr("isvalid");
$("#AttemperTimeType").removeAttr("checkexpession");
//$("#AttemperTimeType").removeAttr("isvalid");
//$("#AttemperTimeType").removeAttr("checkexpession");
$("#AttemperStartTime").removeAttr("isvalid");
$("#AttemperStartTime").removeAttr("checkexpession");
$("#AttemperEndTime").removeAttr("isvalid");
@@ -282,8 +282,8 @@ var bootstrap = function ($, learun) {
$('#NewClassroomNo').siblings('div').html('教室');
if (data[id].AttemperType == "01") {
$('.AttemperTypeTiao').show();
$("#AttemperTimeType").attr("isvalid", "yes");
$("#AttemperTimeType").attr("checkexpession", "NotNull");
//$("#AttemperTimeType").attr("isvalid", "yes");
//$("#AttemperTimeType").attr("checkexpession", "NotNull");
$("#AttemperStartTime").attr("isvalid", "yes");
$("#AttemperStartTime").attr("checkexpession", "NotNull");
$("#AttemperEndTime").attr("isvalid", "yes");
@@ -571,8 +571,8 @@ var bootstrap = function ($, learun) {
}
$('[data-table="' + id + '"]').lrSetFormData(data[id]);
$('.AttemperType').hide();
$("#AttemperTimeType").removeAttr("isvalid");
$("#AttemperTimeType").removeAttr("checkexpession");
//$("#AttemperTimeType").removeAttr("isvalid");
//$("#AttemperTimeType").removeAttr("checkexpession");
$("#AttemperStartTime").removeAttr("isvalid");
$("#AttemperStartTime").removeAttr("checkexpession");
$("#AttemperEndTime").removeAttr("isvalid");
@@ -584,8 +584,8 @@ var bootstrap = function ($, learun) {
$('#NewClassroomNo').siblings('div').html('教室');
if (data[id].AttemperType == "01") {
$('.AttemperTypeTiao').show();
$("#AttemperTimeType").attr("isvalid", "yes");
$("#AttemperTimeType").attr("checkexpession", "NotNull");
//$("#AttemperTimeType").attr("isvalid", "yes");
//$("#AttemperTimeType").attr("checkexpession", "NotNull");
$("#AttemperStartTime").attr("isvalid", "yes");
$("#AttemperStartTime").attr("checkexpession", "NotNull");
$("#AttemperEndTime").attr("isvalid", "yes");
@@ -612,22 +612,23 @@ var bootstrap = function ($, learun) {
// 保存数据
save = function (processId, callBack, i) {
var formData = $('body').lrGetFormData();
if (formData.AttemperType == "03") { //对调:校区、学年、学期需要一致
////if (formData.F_SchoolId !== formData.NewF_SchoolId || formData.AcademicYearNo !== formData.NewAcademicYearNo || formData.Semester !== formData.NewSemester) {
//if (formData.AcademicYearNo !== formData.NewAcademicYearNo || formData.Semester !== formData.NewSemester) {
// learun.alert.warning("校区、学年、学期不一致!");
// return false;
//}
} else if (formData.AttemperType == "01") { //换课:调度时间比较;教师或教室必填一个;
//if ((formData.NewEmpNo == null || formData.NewEmpNo == "") && (formData.NewClassroomNo == null || formData.NewClassroomNo == "")) {
// learun.alert.warning("课程新安排中教师或教室不能为空!");
// return false;
//}
//if (formData.AttemperEndTime < formData.AttemperStartTime) {
// learun.alert.warning("调度结束时间不能小于调度开始时间!");
// return false;
//}
} else if (formData.AttemperType == "04") { //调课
//if (formData.AttemperType == "03") { //对调:校区、学年、学期需要一致
// ////if (formData.F_SchoolId !== formData.NewF_SchoolId || formData.AcademicYearNo !== formData.NewAcademicYearNo || formData.Semester !== formData.NewSemester) {
// //if (formData.AcademicYearNo !== formData.NewAcademicYearNo || formData.Semester !== formData.NewSemester) {
// // learun.alert.warning("校区、学年、学期不一致!");
// // return false;
// //}
//} else if (formData.AttemperType == "01") { //换课:调度时间比较;教师或教室必填一个;
// //if ((formData.NewEmpNo == null || formData.NewEmpNo == "") && (formData.NewClassroomNo == null || formData.NewClassroomNo == "")) {
// // learun.alert.warning("课程新安排中教师或教室不能为空!");
// // return false;
// //}
// //if (formData.AttemperEndTime < formData.AttemperStartTime) {
// // learun.alert.warning("调度结束时间不能小于调度开始时间!");
// // return false;
// //}
//} else
if (formData.AttemperType == "04") { //调课
if (formData) {
formData.predata = JSON.parse($('#gridtable').attr("data-val"));
formData.tardata = JSON.parse($('#gridtable1').attr("data-val"));


+ 16
- 16
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ArrangeLessonTermAttemper/Index.js Zobrazit soubor

@@ -370,22 +370,22 @@ var bootstrap = function ($, learun) {
}
},
//换课属性
{
label: "换课时限", name: "AttemperTimeType", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'AttemperTimeType',
callback: function (_data) {
if (row.AttemperType == '01') {
callback(_data.text);
} else {
callback('');
}
}
});
}
},
//{
// label: "换课时限", name: "AttemperTimeType", width: 100, align: "left",
// formatterAsync: function (callback, value, row, op, $cell) {
// learun.clientdata.getAsync('dataItem', {
// key: value,
// code: 'AttemperTimeType',
// callback: function (_data) {
// if (row.AttemperType == '01') {
// callback(_data.text);
// } else {
// callback('');
// }
// }
// });
// }
//},
{
label: "换课教师", name: "NewEmpNo", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {


+ 21
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/OpenLessonPlan/ImportForm.js Zobrazit soubor

@@ -6,6 +6,14 @@
* 描 述:导入固定资产信息
*/
var id = request('id');
var F_SchoolId = request('F_SchoolId');
var AcademicYearNo = request('AcademicYearNo');
var Semester = request('Semester');
var Grade = request('Grade');
var DeptNo = request('DeptNo');
var GZ = request('GZ');
var MajorNo = request('MajorNo');
var LessonNo = request('LessonNo');

var keyVaule = '';

@@ -143,7 +151,19 @@ var bootstrap = function ($, learun) {
init: function () {
/*模板下载*/
$('#lr_down_file_btn').on('click', function () {
learun.download({ url: top.$.rootUrl + '/EducationalAdministration/OpenLessonPlan/DownTemplate', param: { keyValue: id, __RequestVerificationToken: $.lrToken }, method: 'POST' });
learun.download({
url: top.$.rootUrl + '/EducationalAdministration/OpenLessonPlan/DownTemplate', param: {
keyValue: id, __RequestVerificationToken: $.lrToken,
F_SchoolId: F_SchoolId,
AcademicYearNo: AcademicYearNo,
Semester: Semester,
Grade: Grade,
DeptNo: DeptNo,
GZ: GZ,
MajorNo: MajorNo,
LessonNo: LessonNo
}, method: 'POST'
});
});
if (!WebUploader.Uploader.support()) {
alert('Web Uploader 不支持您的浏览器!如果你使用的是IE浏览器,请尝试升级 flash 播放器');


+ 9
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/OpenLessonPlan/Index.js Zobrazit soubor

@@ -71,10 +71,18 @@ var bootstrap = function ($, learun) {
///上传
$('#lr_import').on('click',
function () {
var queryparam = 'F_SchoolId=' + $('#F_SchoolId').lrselectGet()
+ '&AcademicYearNo=' + $('#AcademicYearNo').lrselectGet()
+ '&Semester=' + $('#Semester').lrselectGet()
+ '&Grade=' + $('#Grade').lrselectGet()
+ '&DeptNo=' + $('#DeptNo').lrselectGet()
+ '&GZ=' + $('#GZ').lrselectGet()
+ '&MajorNo=' + $('#MajorNo').lrselectGet()
+ '&LessonNo=' + $('#LessonNo').lrselectGet();
learun.layerForm({
id: 'form',
title: '导入',
url: top.$.rootUrl + '/EducationalAdministration/OpenLessonPlan/ImportForm',
url: top.$.rootUrl + '/EducationalAdministration/OpenLessonPlan/ImportForm?' + queryparam,
width: 600,
height: 400,
btn: null,


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/TimeTableController.cs Zobrazit soubor

@@ -187,7 +187,7 @@ namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers
{
var weekdatelist = new List<WeekDate>();
var yearsemester = Common.GetSemesterAndYear();
var arrangelessonlist = arrangeLessonTermIBLL.GetListForTimeTable("{\"AcademicYearNo\":\"" + yearsemester.AcademicYearShort + "\",\"Semester\":\"" + yearsemester.Semester + "\"}").OrderBy(m => m.LessonDate);
var arrangelessonlist = arrangeLessonTermIBLL.GetListForTimeTable("{\"AcademicYearNo\":\"" + yearsemester.AcademicYearShort + "\",\"Semester\":\"" + yearsemester.Semester + "\"}").OrderBy(m => m.LessonDate);
if (arrangelessonlist.Any())
{
var firstday = arrangelessonlist.First();


+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TimeTable/IndexInEducationSelect_.js Zobrazit soubor

@@ -452,6 +452,7 @@ var bootstrap = function ($, learun) {
// 保存数据
acceptClick = function (callBack) {
var predata = $('#predata .card-box');
var predatacontent = $('#predata .card-box .card-box-content');
var tardata = $('#tardata .card-box');
if (predata.length == 0 || tardata.length==0) {
learun.alert.warning("请选择课程!");
@@ -506,7 +507,7 @@ var bootstrap = function ($, learun) {
})

var postData = {
predatastr: predata.text(),predata: predata_, tardata: JSON.parse(tardata.attr('data-val'))
predatastr: predatacontent.text(),predata: predata_, tardata: JSON.parse(tardata.attr('data-val'))
};
if (!!callBack) {
callBack(postData);


binární
Learun.Framework.Ultimate V7/Learun.Application.Web/Content/excel/OpenLessonPlanImport.xls Zobrazit soubor


+ 3
- 3
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ArrangeLessonTermAttemper/ArrangeLessonTermAttemperService.cs Zobrazit soubor

@@ -468,8 +468,8 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
db.Update(item);
}
}
if (entity.AttemperTimeType == "01") //永久
{
//if (entity.AttemperTimeType == "01") //永久
//{
if (!string.IsNullOrEmpty(entity.NewEmpNo))
{
//TeachClass
@@ -486,7 +486,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
//db.ExecuteBySql($"update EmpReportCard set EmpNo='{entity.NewEmpNo}',EmpName='{db.FindEntity<EmpInfoEntity>(x => x.EmpNo == entity.NewEmpNo)?.EmpName}' where F_SchoolId='{entity.F_SchoolId}' and AcademicYearNo='{entity.AcademicYearNo}' and Semester='{entity.Semester}' and LessonNo='{entity.LessonNo}' and ClassNo='{entity.TeachClassNo}' and EmpNo='{entity.EmpNo}' and LessonSortNo='1' ");
db.ExecuteBySql($"update EmpReportCard set EmpNo='{entity.NewEmpNo}',EmpName='{db.FindEntity<EmpInfoEntity>(x => x.EmpNo == entity.NewEmpNo)?.EmpName}' where AcademicYearNo='{entity.AcademicYearNo}' and Semester='{entity.Semester}' and LessonNo='{entity.LessonNo}' and ClassNo='{entity.TeachClassNo}' and EmpNo='{entity.EmpNo}' and LessonSortNo='1' ");
}
}
//}
}
else if (entity.AttemperType == "02") //停课
{


Načítá se…
Zrušit
Uložit