@@ -2,7 +2,15 @@ | |||
ViewBag.Title = "课程信息管理"; | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap" > | |||
<style> | |||
.lr-form-item-title{ | |||
width:130px; | |||
} | |||
.lr-form-item{ | |||
padding-left:130px; | |||
} | |||
</style> | |||
<div class="lr-form-wrap"> | |||
<div class="col-xs-6 lr-form-item" data-table="LessonInfo"> | |||
<div class="lr-form-item-title">课程编号<font face="宋体">*</font></div> | |||
<input id="LessonNo" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
@@ -29,23 +37,23 @@ | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="LessonInfo"> | |||
<div class="lr-form-item-title">课程简称</div> | |||
<input id="EnName" type="text" class="form-control"/> | |||
<input id="EnName" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="LessonInfo"> | |||
<div class="lr-form-item-title">学分</div> | |||
<input id="StudyScore" type="text" class="form-control"/> | |||
<input id="StudyScore" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="LessonInfo"> | |||
<div class="lr-form-item-title">周理论学时</div> | |||
<input id="WeekStudyHour" type="text" class="form-control"/> | |||
<input id="WeekStudyHour" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="LessonInfo"> | |||
<div class="lr-form-item-title">周实验学时</div> | |||
<input id="WeekPracticeHour" type="text" class="form-control"/> | |||
<input id="WeekPracticeHour" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="LessonInfo"> | |||
<div class="lr-form-item-title">每周课时</div> | |||
<input id="TotalStudyHour" type="text" class="form-control"/> | |||
<input id="TotalStudyHour" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="LessonInfo"> | |||
<div class="lr-form-item-title">是否先修</div> | |||
@@ -67,6 +75,42 @@ | |||
<div class="lr-form-item-title">课程分类明细</div> | |||
<div id="LessonSortDetailNo"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="LessonInfo"> | |||
<div class="lr-form-item-title">课程类别</div> | |||
<div id="LessonCategory"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="LessonInfo"> | |||
<div class="lr-form-item-title">学科类别</div> | |||
<div id="SubjectCategory"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="LessonInfo"> | |||
<div class="lr-form-item-title">是否有线上课程</div> | |||
<div id="IsOnlineLesson"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="LessonInfo"> | |||
<div class="lr-form-item-title">线上课程网址</div> | |||
<input id="OnlineLessonAddress" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="LessonInfo"> | |||
<div class="lr-form-item-title">是否课程思政示范</div> | |||
<div id="IsLessonDemonstrate"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="LessonInfo"> | |||
<div class="lr-form-item-title">虚拟仿真实训课时数</div> | |||
<input id="VirtualHour" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="LessonInfo"> | |||
<div class="lr-form-item-title">主要开设实验项目名称</div> | |||
<input id="MainExperimentName" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="LessonInfo"> | |||
<div class="lr-form-item-title">主要开设实训项目名称</div> | |||
<input id="MainTrainName" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="LessonInfo"> | |||
<div class="lr-form-item-title">主要开设实习项目名称</div> | |||
<input id="MainPracticeName" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">课程简介</div> | |||
<script id="editor" type="text/plain" style="height:270px;"> | |||
@@ -57,7 +57,10 @@ var bootstrap = function ($, learun) { | |||
$('#WhoStudy').lrDataSourceSelect({ code: 'LessonInfo', value: 'lessonno', text: 'lessonname' }); | |||
$('#LessonSortNo').lrDataSourceSelect({ code: 'CdLessonSort', value: 'lessonsortno', text: 'lessonsortname' }); | |||
$('#LessonSortDetailNo').lrDataSourceSelect({ code: 'CdLessonSortDetail', value: 'lessonsortdetailno', text: 'lessonsortdetailname' }); | |||
$('#LessonCategory').lrDataItemSelect({ code: 'LessonCategory' }); | |||
$('#SubjectCategory').lrDataItemSelect({ code: 'SubjectCategory' }); | |||
$('#IsOnlineLesson').lrDataItemSelect({ code: 'YesOrNoBit' }); | |||
$('#IsLessonDemonstrate').lrDataItemSelect({ code: 'YesOrNoBit' }); | |||
//内容编辑器 | |||
ue = UE.getEditor('editor'); | |||
}, | |||
@@ -252,7 +252,48 @@ var bootstrap = function ($, learun) { | |||
formatter: function (cellvalue) { | |||
return cellvalue == true ? "<i class=\"fa fa-toggle-on\"></i>" : "<i class=\"fa fa-toggle-off\"></i>"; | |||
} | |||
} | |||
}, | |||
{ | |||
label: "课程类别", name: "LessonCategory", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'LessonCategory', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: "学科类别", name: "SubjectCategory", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'SubjectCategory', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: "是否有线上课程", name: "IsOnlineLesson", width: 100, align: "left", | |||
formatter: function (cellvalue) { | |||
return cellvalue == true ? "是" : "否"; | |||
} | |||
}, | |||
{ label: "线上课程网址", name: "OnlineLessonAddress", width: 100, align: "left" }, | |||
{ | |||
label: "是否课程思政示范", name: "IsLessonDemonstrate", width: 120, align: "left", | |||
formatter: function (cellvalue) { | |||
return cellvalue == true ? "是" : "否"; | |||
} | |||
}, | |||
{ label: "虚拟仿真实训课时数", name: "VirtualHour", width: 120, align: "left" }, | |||
{ label: "主要开设实验项目名称", name: "MainExperimentName", width: 130, align: "left" }, | |||
{ label: "主要开设实训项目名称", name: "MainTrainName", width: 130, align: "left" }, | |||
{ label: "主要开设实习项目名称", name: "MainPracticeName", width: 130, align: "left" }, | |||
], | |||
mainId: 'LessonId', | |||
isPage: true, | |||
@@ -164,6 +164,51 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
/// </summary> | |||
[Column("SYNCFLAG")] | |||
public bool? SyncFlag { get; set; } | |||
/// <summary> | |||
/// 课程类别 | |||
/// </summary> | |||
[Column("LESSONCATEGORY")] | |||
public string LessonCategory { get; set; } | |||
/// <summary> | |||
/// 学科类别 | |||
/// </summary> | |||
[Column("SUBJECTCATEGORY")] | |||
public string SubjectCategory { get; set; } | |||
/// <summary> | |||
/// 是否有线上课程 | |||
/// </summary> | |||
[Column("ISONLINELESSON")] | |||
public bool? IsOnlineLesson { get; set; } | |||
/// <summary> | |||
/// 线上课程网址 | |||
/// </summary> | |||
[Column("ONLINELESSONADDRESS")] | |||
public string OnlineLessonAddress { get; set; } | |||
/// <summary> | |||
/// 是否课程思政示范 | |||
/// </summary> | |||
[Column("ISLESSONDEMONSTRATE")] | |||
public bool? IsLessonDemonstrate { get; set; } | |||
/// <summary> | |||
/// 虚拟仿真实训课时数 | |||
/// </summary> | |||
[Column("VIRTUALHOUR")] | |||
public decimal? VirtualHour { get; set; } | |||
/// <summary> | |||
/// 主要开设实验项目名称 | |||
/// </summary> | |||
[Column("MAINEXPERIMENTNAME")] | |||
public string MainExperimentName { get; set; } | |||
/// <summary> | |||
/// 主要开设实训项目名称 | |||
/// </summary> | |||
[Column("MAINTRAINNAME")] | |||
public string MainTrainName { get; set; } | |||
/// <summary> | |||
/// 主要开设实习项目名称 | |||
/// </summary> | |||
[Column("MAINPRACTICENAME")] | |||
public string MainPracticeName { get; set; } | |||
#endregion | |||
#region 扩展操作 | |||
@@ -48,7 +48,10 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
t.LessonSortNo, | |||
t.LessonSortDetailNo, | |||
t.CheckMark, | |||
t.LessonTypeId,t.F_SchoolId | |||
t.LessonTypeId,t.F_SchoolId, | |||
t.LessonCategory,t.SubjectCategory,t.IsOnlineLesson,t.OnlineLessonAddress, | |||
t.IsLessonDemonstrate,t.VirtualHour,t.MainExperimentName, | |||
t.MainTrainName,t.MainPracticeName | |||
"); | |||
strSql.Append(" FROM LessonInfo t "); | |||
strSql.Append(" WHERE 1=1 "); | |||