Browse Source

学生实习备案信息

怀来职教中心中职
ndbs 1 year ago
parent
commit
d2a876eb7a
13 changed files with 1302 additions and 0 deletions
  1. +122
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StudentPracticeInfoController.cs
  2. +114
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StudentPracticeInfo/Form.cshtml
  3. +68
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StudentPracticeInfo/Form.js
  4. +89
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StudentPracticeInfo/Index.cshtml
  5. +221
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StudentPracticeInfo/Index.js
  6. +5
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
  7. +29
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/EducationalAdministration/StudentPracticeInfoMap.cs
  8. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj
  9. +146
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StudentPracticeInfo/StudentPracticeInfoBLL.cs
  10. +201
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StudentPracticeInfo/StudentPracticeInfoEntity.cs
  11. +51
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StudentPracticeInfo/StudentPracticeInfoIBLL.cs
  12. +251
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StudentPracticeInfo/StudentPracticeInfoService.cs
  13. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj

+ 122
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StudentPracticeInfoController.cs View File

@@ -0,0 +1,122 @@
using Learun.Util;
using System.Data;
using Learun.Application.TwoDevelopment.EducationalAdministration;
using System.Web.Mvc;
using System.Collections.Generic;
using System;

namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2023-05-26 10:48
/// 描 述:StudentPracticeInfo
/// </summary>
public class StudentPracticeInfoController : MvcControllerBase
{
private StudentPracticeInfoIBLL studentPracticeInfoIBLL = new StudentPracticeInfoBLL();

#region 视图功能

/// <summary>
/// 主页面
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult Index()
{
return View();
}
/// <summary>
/// 表单页
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult Form()
{
ViewBag.EnCode = studentPracticeInfoIBLL.GetCode();
return View();
}
#endregion

#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="pagination">分页参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetPageList(string pagination, string queryJson)
{
Pagination paginationobj = pagination.ToObject<Pagination>();
var data = studentPracticeInfoIBLL.GetPageList(paginationobj, queryJson);
var jsonData = new
{
rows = data,
total = paginationobj.total,
page = paginationobj.page,
records = paginationobj.records
};
return Success(jsonData);
}
/// <summary>
/// 获取表单数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetFormData(string keyValue)
{
var StudentPracticeInfoData = studentPracticeInfoIBLL.GetStudentPracticeInfoEntity(keyValue);
var jsonData = new
{
StudentPracticeInfo = StudentPracticeInfoData,
};
return Success(jsonData);
}
#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
[HttpPost]
[AjaxOnly]
public ActionResult DeleteForm(string keyValue)
{
studentPracticeInfoIBLL.DeleteEntity(keyValue);
return Success("删除成功!");
}
/// <summary>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="strEntity">实体</param>
/// <returns></returns>
[HttpPost]
[ValidateAntiForgeryToken]
[AjaxOnly]
public ActionResult SaveForm(string keyValue, string strEntity)
{
StudentPracticeInfoEntity entity = strEntity.ToObject<StudentPracticeInfoEntity>();
var Code = entity.Code.Substring(4);
if (Convert.ToInt32(Code) >= 1000)
{
return Success("保存失败,实习编号已超出!!!");
}
studentPracticeInfoIBLL.SaveEntity(keyValue, entity);
return Success("保存成功!");
}
#endregion

}
}

+ 114
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StudentPracticeInfo/Form.cshtml View File

@@ -0,0 +1,114 @@
@{
ViewBag.Title = "StudentPracticeInfo";
Layout = "~/Views/Shared/_Form.cshtml";
}
<script>
var NewCode = "@ViewBag.EnCode";
</script>
<div class="lr-form-wrap" id="form">
<div class="col-xs-6 lr-form-item" data-table="StudentPracticeInfo" >
<div class="lr-form-item-title">学校名称</div>
<div id="School" ></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="StudentPracticeInfo" >
<div class="lr-form-item-title">实习编号</div>
<input id="Code" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item" data-table="StudentPracticeInfo" >
<div class="lr-form-item-title">实习名目</div>
<textarea id="ITask" class="form-control" style="height:100px;" ></textarea>
</div>
<div class="col-xs-6 lr-form-item" data-table="StudentPracticeInfo" >
<div class="lr-form-item-title">学生姓名</div>
<input id="StuName" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="StudentPracticeInfo" >
<div class="lr-form-item-title">学号</div>
<input id="StuNo" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="StudentPracticeInfo" >
<div class="lr-form-item-title">出生日期</div>
<input id="Birthday" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#Birthday').trigger('change'); } })" />
</div>
<div class="col-xs-6 lr-form-item" data-table="StudentPracticeInfo" >
<div class="lr-form-item-title">性别</div>
<div id="Sex" ></div>
</div>
<div class="col-xs-4 lr-form-item" data-table="StudentPracticeInfo" >
<div class="lr-form-item-title">年级</div>
<div id="Grade" ></div>
</div>
<div class="col-xs-4 lr-form-item" data-table="StudentPracticeInfo" >
<div class="lr-form-item-title">专业</div>
<div id="MajorNo" ></div>
</div>
<div class="col-xs-4 lr-form-item" data-table="StudentPracticeInfo" >
<div class="lr-form-item-title">班级</div>
<div id="ClassNo" ></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="StudentPracticeInfo" >
<div class="lr-form-item-title">实习单位及性质</div>
<input id="InternshipCompany" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="StudentPracticeInfo" >
<div class="lr-form-item-title">实习岗位</div>
<input id="Post" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="StudentPracticeInfo" >
<div class="lr-form-item-title">是否专业对口</div>
<div id="IsMatchMajor" ></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="StudentPracticeInfo" >
<div class="lr-form-item-title">知情同意书</div>
<div id="IsICF" ></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="StudentPracticeInfo" >
<div class="lr-form-item-title">实习三方协议</div>
<div id="IsTAI" ></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="StudentPracticeInfo" >
<div class="lr-form-item-title">实习责任保险</div>
<div id="IsInsure" ></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="StudentPracticeInfo" >
<div class="lr-form-item-title">投保险种名称</div>
<input id="insuranceName" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="StudentPracticeInfo" >
<div class="lr-form-item-title">实习责任教师</div>
<input id="Teacher" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="StudentPracticeInfo" >
<div class="lr-form-item-title">企业考核成绩</div>
<input id="CompanyCheckResult" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="StudentPracticeInfo" >
<div class="lr-form-item-title">实习考核成绩</div>
<input id="SchoolCheckResult" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="StudentPracticeInfo" >
<div class="lr-form-item-title">实习考核结果</div>
<input id="InternshipResult" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item" data-table="StudentPracticeInfo" >
<div class="lr-form-item-title">实习薪酬/月</div>
<input id="InternshipPay" type="text" class="form-control" isvalid="yes" checkexpession="PositiveFloatintZero" />
</div>
<div class="col-xs-4 lr-form-item" data-table="StudentPracticeInfo" >
<div class="lr-form-item-title">自主实习</div>
<div id="IsAP" ></div>
</div>
<div class="col-xs-4 lr-form-item" data-table="StudentPracticeInfo" >
<div class="lr-form-item-title">毕业年级</div>
<div id="ISGY" ></div>
</div>
<div class="col-xs-4 lr-form-item" data-table="StudentPracticeInfo" >
<div class="lr-form-item-title">签订就业协议</div>
<div id="IsED" ></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="StudentPracticeInfo" >
<div class="lr-form-item-title">备注</div>
<textarea id="Demo" class="form-control" style="height:100px;" ></textarea>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StudentPracticeInfo/Form.js")

+ 68
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StudentPracticeInfo/Form.js View File

@@ -0,0 +1,68 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2023-05-26 10:48
* 描 述:StudentPracticeInfo
*/
var acceptClick;
var keyValue = request('keyValue');
var bootstrap = function ($, learun) {
"use strict";
var page = {
init: function () {
$('.lr-form-wrap').lrscroll();
page.bind();
page.initData();
},
bind: function () {
$('#School').lrDataSourceSelect({ code: 'company',value: 'f_companyid',text: 'f_fullname' });
$('#Sex').lrDataItemSelect({ code: 'usersexbit' });
$('#Grade').lrselect({
url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GenerateNearByYear',
value: "value",
text: "text",
});
$('#MajorNo').lrDataSourceSelect({ code: 'CdMajorInfo',value: 'majorno',text: 'majorname' });
$('#ClassNo').lrDataSourceSelect({ code: 'bjsj',value: 'classno',text: 'classname' });
$('#IsMatchMajor').lrDataItemSelect({ code: 'YesOrNoBit' });
$('#IsICF').lrDataItemSelect({ code: 'YesOrNoBit' });
$('#IsTAI').lrDataItemSelect({ code: 'YesOrNoBit' });
$('#IsInsure').lrDataItemSelect({ code: 'YesOrNoBit' });
$('#IsAP').lrDataItemSelect({ code: 'YesOrNoBit' });
$('#ISGY').lrDataItemSelect({ code: 'YesOrNoBit' });
$('#IsED').lrDataItemSelect({ code: 'YesOrNoBit' });
},
initData: function () {
if (!!keyValue) {
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/StudentPracticeInfo/GetFormData?keyValue=' + keyValue, function (data) {
for (var id in data) {
if (!!data[id].length && data[id].length > 0) {
$('#' + id ).jfGridSet('refreshdata', data[id]);
}
else {
$('[data-table="' + id + '"]').lrSetFormData(data[id]);
}
}
});
} else {
$("#Code").val(NewCode);
}
}
};
// 保存数据
acceptClick = function (callBack) {
if (!$('body').lrValidform()) {
return false;
}
var postData = {
strEntity: JSON.stringify($('body').lrGetFormData())
};
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/StudentPracticeInfo/SaveForm?keyValue=' + keyValue, postData, function (res) {
// 保存成功后才回调
if (!!callBack) {
callBack();
}
});
};
page.init();
}

+ 89
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StudentPracticeInfo/Index.cshtml View File

@@ -0,0 +1,89 @@
@{
ViewBag.Title = "StudentPracticeInfo";
Layout = "~/Views/Shared/_Index.cshtml";
}
<div class="lr-layout " >
<div class="lr-layout-center">
<div class="lr-layout-wrap lr-layout-wrap-notitle ">
<div class="lr-layout-tool">
<div class="lr-layout-tool-left">
<div class="lr-layout-tool-item">
<div id="multiple_condition_query">
<div class="lr-query-formcontent">
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">学校</div>
<div id="School"></div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">实习编号</div>
<input id="Code" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">专业</div>
<div id="MajorNo"></div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">班级</div>
<div id="ClassNo"></div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">年级</div>
<div id="Grade"></div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">学生学号</div>
<input id="StuNo" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">学生姓名</div>
<input id="StuName" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">专业对口</div>
<div id="IsMatchMajor"></div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">知情同意书</div>
<div id="IsICF"></div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">实习协议</div>
<div id="IsTAI"></div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">实习保险</div>
<div id="IsInsure"></div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">自主实习</div>
<div id="IsAP"></div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">毕业年级</div>
<div id="ISGY"></div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">就业协议</div>
<div id="IsED"></div>
</div>
</div>
</div>
</div>
</div>
<div class="lr-layout-tool-right">
<div class=" btn-group btn-group-sm">
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a>
</div>
<div class=" btn-group btn-group-sm" learun-authorize="yes">
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i>&nbsp;打印</a>
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StudentPracticeInfo/Index.js")

+ 221
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StudentPracticeInfo/Index.js View File

@@ -0,0 +1,221 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2023-05-26 10:48
* 描 述:StudentPracticeInfo
*/
var refreshGirdData;
var bootstrap = function ($, learun) {
"use strict";
var page = {
init: function () {
page.initGird();
page.bind();
},
bind: function () {
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
page.search(queryJson);
}, 350, 400);
$('#School').lrDataSourceSelect({ code: 'company', value: 'f_companyid', text: 'f_fullname' });
$('#Grade').lrselect({
url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GenerateNearByYear',
value: "value",
text: "text",
});
$('#MajorNo').lrDataSourceSelect({ code: 'CdMajorInfo', value: 'majorno', text: 'majorname' });
$('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' });
$('#IsMatchMajor').lrDataItemSelect({ code: 'YesOrNoBit' });
$('#IsICF').lrDataItemSelect({ code: 'YesOrNoBit' });
$('#IsTAI').lrDataItemSelect({ code: 'YesOrNoBit' });
$('#IsInsure').lrDataItemSelect({ code: 'YesOrNoBit' });
$('#IsAP').lrDataItemSelect({ code: 'YesOrNoBit' });
$('#ISGY').lrDataItemSelect({ code: 'YesOrNoBit' });
$('#IsED').lrDataItemSelect({ code: 'YesOrNoBit' });
// 新增
$('#lr_add').on('click', function () {
learun.layerForm({
id: 'form',
title: '新增',
url: top.$.rootUrl + '/EducationalAdministration/StudentPracticeInfo/Form',
width: 800,
height: 800,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
});
});
// 编辑
$('#lr_edit').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('ID');
if (learun.checkrow(keyValue)) {
learun.layerForm({
id: 'form',
title: '编辑',
url: top.$.rootUrl + '/EducationalAdministration/StudentPracticeInfo/Form?keyValue=' + keyValue,
width: 800,
height: 800,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
});
}
});
// 删除
$('#lr_delete').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('ID');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认删除该项!', function (res) {
if (res) {
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/StudentPracticeInfo/DeleteForm', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
});
}
});
// 打印
$('#lr_print').on('click', function () {
$('#gridtable').jqprintTable();
});
//  导入
$('#lr_import').on('click', function () {
});
//  导出
$('#lr_export').on('click', function () {
});
},
// 初始化列表
initGird: function () {
$('#gridtable').lrAuthorizeJfGrid({
url: top.$.rootUrl + '/EducationalAdministration/StudentPracticeInfo/GetPageList',
headData: [
{
label: "学校名称", name: "School", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'company',
key: value,
keyId: 'f_companyid',
callback: function (_data) {
callback(_data['f_fullname']);
}
});
}
},
{ label: "实习编号", name: "Code", width: 100, align: "left" },
{ label: "实习名目", name: "ITask", width: 100, align: "left" },
{ label: "学生姓名", name: "StuName", width: 100, align: "left" },
{ label: "学号", name: "StuNo", width: 100, align: "left" },
{
label: "出生日期", name: "Birthday", width: 100, align: "left",
formatter: function (value) {
return learun.formatDate(value, 'yyyy-MM-dd');
}
},
{
label: "性别", name: "Sex", width: 50, align: "left",
formatter: function (cellvalue) {
return cellvalue == true ? "男" : "女";
}
},
{
label: "年级", name: "Grade", width: 50, align: "left",
},
{
label: "专业", name: "MajorNo", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo',
key: value,
keyId: 'majorno',
callback: function (_data) {
callback(_data['majorname']);
}
});
}
},
{
label: "班级", name: "ClassNo", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj',
key: value,
keyId: 'classno',
callback: function (_data) {
callback(_data['classname']);
}
});
}
},
{ label: "实习单位及性质", name: "InternshipCompany", width: 100, align: "left" },
{ label: "实习岗位", name: "Post", width: 100, align: "left" },
{
label: "是否专业对口", name: "IsMatchMajor", width: 100, align: "left"
, formatter: function (cellvalue) {
return cellvalue == true ? "是" : "否"
}
},
{
label: "知情同意书", name: "IsICF", width: 100, align: "left"
, formatter: function (cellvalue) {
return cellvalue == true ? "是" : "否"
}
},
{
label: "实习三方协议", name: "IsTAI", width: 100, align: "left"
, formatter: function (cellvalue) {
return cellvalue == true ? "是" : "否"
}
},
{
label: "实习责任保险", name: "IsInsure", width: 100, align: "left"
, formatter: function (cellvalue) {
return cellvalue == true ? "是" : "否"
}
},
{ label: "投保险种名称", name: "insuranceName", width: 100, align: "left" },
{ label: "实习责任教师", name: "Teacher", width: 100, align: "left" },
{ label: "企业考核成绩", name: "CompanyCheckResult", width: 100, align: "left" },
{ label: "实习考核成绩", name: "SchoolCheckResult", width: 100, align: "left" },
{ label: "实习考核结果", name: "InternshipResult", width: 100, align: "left" },
{ label: "实习薪酬/月", name: "InternshipPay", width: 100, align: "left" },
{
label: "自主实习", name: "IsAP", width: 100, align: "left"
, formatter: function (cellvalue) {
return cellvalue == true ? "是" : "否"
}
},
{
label: "毕业年级", name: "ISGY", width: 100, align: "left"
, formatter: function (cellvalue) {
return cellvalue == true ? "是" : "否"
}
},
{
label: "签订就业协议", name: "IsED", width: 100, align: "left"
, formatter: function (cellvalue) {
return cellvalue == true ? "是" : "否"
}
},
{ label: "备注", name: "Demo", width: 100, align: "left" },
],
mainId: 'ID',
isPage: true,
sidx: 'CreateTime desc'
});
page.search();
},
search: function (param) {
param = param || {};
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {
$('#gridtable').jfGridSet('reload');
};
page.init();
}

+ 5
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj View File

@@ -904,6 +904,7 @@
<Compile Include="Areas\EducationalAdministration\Controllers\StuScoreTranController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\StuScoreNotPassTranController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\StuScoreNotPassTwoTranController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\StudentPracticeInfoController.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="Areas\AdmissionsPlatform\Views\AP_OnlineUserInfo\DropOutIndex.js" />
@@ -7109,6 +7110,10 @@
<Content Include="Areas\EducationalAdministration\Views\StuScoreNotPassTwoTran\Form.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StuScoreNotPassTwoTran\Form.js" />
<Content Include="Views\Login\PageSeven.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StudentPracticeInfo\Index.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StudentPracticeInfo\Index.js" />
<Content Include="Areas\EducationalAdministration\Views\StudentPracticeInfo\Form.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StudentPracticeInfo\Form.js" />
</ItemGroup>
<ItemGroup>
<Folder Include="Areas\EducationalAdministration\Views\OpenLessonPlanOfElectivePre\" />


+ 29
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/EducationalAdministration/StudentPracticeInfoMap.cs View File

@@ -0,0 +1,29 @@
using Learun.Application.TwoDevelopment.EducationalAdministration;
using System.Data.Entity.ModelConfiguration;

namespace Learun.Application.Mapping
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2023-05-26 10:48
/// 描 述:StudentPracticeInfo
/// </summary>
public class StudentPracticeInfoMap : EntityTypeConfiguration<StudentPracticeInfoEntity>
{
public StudentPracticeInfoMap()
{
#region 表、主键
//表
this.ToTable("STUDENTPRACTICEINFO");
//主键
this.HasKey(t => t.ID);
#endregion

#region 配置关系
#endregion
}
}
}


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj View File

@@ -662,6 +662,7 @@
<Compile Include="EducationalAdministration\StuScoreTranMap.cs" />
<Compile Include="EducationalAdministration\StuScoreNotPassTranMap.cs" />
<Compile Include="EducationalAdministration\StuScoreNotPassTwoTranMap.cs" />
<Compile Include="EducationalAdministration\StudentPracticeInfoMap.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj">


+ 146
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StudentPracticeInfo/StudentPracticeInfoBLL.cs View File

@@ -0,0 +1,146 @@
using Learun.Util;
using System;
using System.Data;
using System.Collections.Generic;

namespace Learun.Application.TwoDevelopment.EducationalAdministration
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2023-05-26 10:48
/// 描 述:StudentPracticeInfo
/// </summary>
public class StudentPracticeInfoBLL : StudentPracticeInfoIBLL
{
private StudentPracticeInfoService studentPracticeInfoService = new StudentPracticeInfoService();

#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="pagination">分页参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<StudentPracticeInfoEntity> GetPageList(Pagination pagination, string queryJson)
{
try
{
return studentPracticeInfoService.GetPageList(pagination, queryJson);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

/// <summary>
/// 获取StudentPracticeInfo表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
public StudentPracticeInfoEntity GetStudentPracticeInfoEntity(string keyValue)
{
try
{
return studentPracticeInfoService.GetStudentPracticeInfoEntity(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
public void DeleteEntity(string keyValue)
{
try
{
studentPracticeInfoService.DeleteEntity(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

/// <summary>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="entity">实体</param>
/// <returns></returns>
public void SaveEntity(string keyValue, StudentPracticeInfoEntity entity)
{
try
{
studentPracticeInfoService.SaveEntity(keyValue, entity);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

#endregion

#region 扩展

public string GetCode()
{
try
{
return studentPracticeInfoService.GetCode();
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
#endregion
}
}

+ 201
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StudentPracticeInfo/StudentPracticeInfoEntity.cs View File

@@ -0,0 +1,201 @@
using Learun.Util;
using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace Learun.Application.TwoDevelopment.EducationalAdministration
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2023-05-26 10:48
/// 描 述:StudentPracticeInfo
/// </summary>
public class StudentPracticeInfoEntity
{
#region 实体成员
/// <summary>
/// ID
/// </summary>
[Column("ID")]
public string ID { get; set; }
/// <summary>
/// School
/// </summary>
[Column("SCHOOL")]
public string School { get; set; }
/// <summary>
/// Code
/// </summary>
[Column("CODE")]
public string Code { get; set; }
/// <summary>
/// ITask
/// </summary>
[Column("ITASK")]
public string ITask { get; set; }
/// <summary>
/// Grade
/// </summary>
[Column("GRADE")]
public string Grade { get; set; }
/// <summary>
/// ClassNo
/// </summary>
[Column("CLASSNO")]
public string ClassNo { get; set; }
/// <summary>
/// MajorNo
/// </summary>
[Column("MAJORNO")]
public string MajorNo { get; set; }
/// <summary>
/// StuNo
/// </summary>
[Column("STUNO")]
public string StuNo { get; set; }
/// <summary>
/// StuName
/// </summary>
[Column("STUNAME")]
public string StuName { get; set; }
/// <summary>
/// Birthday
/// </summary>
[Column("BIRTHDAY")]
public DateTime? Birthday { get; set; }
/// <summary>
/// Sex
/// </summary>
[Column("SEX")]
public bool? Sex { get; set; }
/// <summary>
/// InternshipCompany
/// </summary>
[Column("INTERNSHIPCOMPANY")]
public string InternshipCompany { get; set; }
/// <summary>
/// Post
/// </summary>
[Column("POST")]
public string Post { get; set; }
/// <summary>
/// IsMatchMajor
/// </summary>
[Column("ISMATCHMAJOR")]
public bool? IsMatchMajor { get; set; }
/// <summary>
/// 知情同意书
/// </summary>
[Column("ISICF")]
public bool? IsICF { get; set; }
/// <summary>
/// 实习三方协议
/// </summary>
[Column("ISTAI")]
public bool? IsTAI { get; set; }
/// <summary>
/// 是否投保
/// </summary>
[Column("ISINSURE")]
public bool? IsInsure { get; set; }
/// <summary>
/// insuranceName
/// </summary>
[Column("INSURANCENAME")]
public string insuranceName { get; set; }
/// <summary>
/// Teacher
/// </summary>
[Column("TEACHER")]
public string Teacher { get; set; }
/// <summary>
/// CompanyCheckResult
/// </summary>
[Column("COMPANYCHECKRESULT")]
public string CompanyCheckResult { get; set; }
/// <summary>
/// SchoolCheckResult
/// </summary>
[Column("SCHOOLCHECKRESULT")]
public string SchoolCheckResult { get; set; }
/// <summary>
/// InternshipResult
/// </summary>
[Column("INTERNSHIPRESULT")]
public string InternshipResult { get; set; }
/// <summary>
/// InternshipPay
/// </summary>
[Column("INTERNSHIPPAY")]
public decimal? InternshipPay { get; set; }
/// <summary>
/// 是否为自主实习
/// </summary>
[Column("ISAP")]
public bool? IsAP { get; set; }
/// <summary>
/// 是否毕业年级
/// </summary>
[Column("ISGY")]
public bool? ISGY { get; set; }
/// <summary>
/// 是否签订就业协议
/// </summary>
[Column("ISED")]
public bool? IsED { get; set; }
/// <summary>
/// Demo
/// </summary>
[Column("DEMO")]
public string Demo { get; set; }
/// <summary>
/// CreateTime
/// </summary>
[Column("CREATETIME")]
public DateTime? CreateTime { get; set; }
/// <summary>
/// CreateUser
/// </summary>
[Column("CREATEUSER")]
public string CreateUser { get; set; }
/// <summary>
/// ModifyTime
/// </summary>
[Column("MODIFYTIME")]
public DateTime? ModifyTime { get; set; }
/// <summary>
/// ModifyUser
/// </summary>
[Column("MODIFYUSER")]
public string ModifyUser { get; set; }
#endregion

#region 扩展操作
/// <summary>
/// 新增调用
/// </summary>
public void Create()
{
this.ID = Guid.NewGuid().ToString();
this.CreateUser = LoginUserInfo.Get().userId;
this.CreateTime = DateTime.Now;
this.ModifyUser = LoginUserInfo.Get().userId;
this.ModifyTime = DateTime.Now;
}
/// <summary>
/// 编辑调用
/// </summary>
/// <param name="keyValue"></param>
public void Modify(string keyValue)
{
this.ID = keyValue;
this.ModifyUser = LoginUserInfo.Get().userId;
this.ModifyTime = DateTime.Now;
}
#endregion
#region 扩展字段
#endregion
}
}


+ 51
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StudentPracticeInfo/StudentPracticeInfoIBLL.cs View File

@@ -0,0 +1,51 @@
using Learun.Util;
using System.Data;
using System.Collections.Generic;

namespace Learun.Application.TwoDevelopment.EducationalAdministration
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2023-05-26 10:48
/// 描 述:StudentPracticeInfo
/// </summary>
public interface StudentPracticeInfoIBLL
{
#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
IEnumerable<StudentPracticeInfoEntity> GetPageList(Pagination pagination, string queryJson);
/// <summary>
/// 获取StudentPracticeInfo表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
StudentPracticeInfoEntity GetStudentPracticeInfoEntity(string keyValue);
#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
void DeleteEntity(string keyValue);
/// <summary>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="entity">实体</param>
void SaveEntity(string keyValue, StudentPracticeInfoEntity entity);
#endregion

#region 扩展数据
string GetCode();
#endregion
}
}

+ 251
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StudentPracticeInfo/StudentPracticeInfoService.cs View File

@@ -0,0 +1,251 @@
using Dapper;
using Learun.DataBase.Repository;
using Learun.Util;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace Learun.Application.TwoDevelopment.EducationalAdministration
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2023-05-26 10:48
/// 描 述:StudentPracticeInfo
/// </summary>
public class StudentPracticeInfoService : RepositoryFactory
{
#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="pagination">查询参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<StudentPracticeInfoEntity> GetPageList(Pagination pagination, string queryJson)
{
try
{
var strSql = new StringBuilder();
strSql.Append("SELECT ");
strSql.Append(@" t.* ");
strSql.Append(" FROM StudentPracticeInfo t ");
strSql.Append(" WHERE 1=1 ");
var queryParam = queryJson.ToJObject();
// 虚拟参数
var dp = new DynamicParameters(new { });
if (!queryParam["Code"].IsEmpty())
{
dp.Add("Code", "%" + queryParam["Code"].ToString() + "%", DbType.String);
strSql.Append(" AND t.Code Like @Code ");
}
if (!queryParam["StuNo"].IsEmpty())
{
dp.Add("StuNo", "%" + queryParam["StuNo"].ToString() + "%", DbType.String);
strSql.Append(" AND t.StuNo Like @StuNo ");
}
if (!queryParam["StuName"].IsEmpty())
{
dp.Add("StuName", "%" + queryParam["StuName"].ToString() + "%", DbType.String);
strSql.Append(" AND t.StuName Like @StuName ");
}
if (!queryParam["School"].IsEmpty())
{
dp.Add("School", "" + queryParam["School"].ToString() + "", DbType.String);
strSql.Append(" AND t.School=@School ");
}
if (!queryParam["MajorNo"].IsEmpty())
{
dp.Add("MajorNo", "" + queryParam["MajorNo"].ToString() + "", DbType.String);
strSql.Append(" AND t.MajorNo=@MajorNo ");
}
if (!queryParam["ClassNo"].IsEmpty())
{
dp.Add("ClassNo", "" + queryParam["ClassNo"].ToString() + "", DbType.String);
strSql.Append(" AND t.ClassNo=@ClassNo ");
}
if (!queryParam["Grade"].IsEmpty())
{
dp.Add("Grade", "" + queryParam["Grade"].ToString() + "", DbType.String);
strSql.Append(" AND t.Grade=@Grade ");
}
if (!queryParam["IsMatchMajor"].IsEmpty())
{
dp.Add("IsMatchMajor", "" + queryParam["IsMatchMajor"].ToString() + "", DbType.String);
strSql.Append(" AND t.IsMatchMajor=@IsMatchMajor ");
}
if (!queryParam["IsICF"].IsEmpty())
{
dp.Add("IsICF", "" + queryParam["IsICF"].ToString() + "", DbType.String);
strSql.Append(" AND t.IsICF=@IsICF ");
}
if (!queryParam["IsTAI"].IsEmpty())
{
dp.Add("IsTAI", "" + queryParam["IsTAI"].ToString() + "", DbType.String);
strSql.Append(" AND t.IsTAI=@IsTAI ");
}
if (!queryParam["IsInsure"].IsEmpty())
{
dp.Add("IsInsure", "" + queryParam["IsInsure"].ToString() + "", DbType.String);
strSql.Append(" AND t.IsInsure=@IsInsure ");
}
if (!queryParam["IsAP"].IsEmpty())
{
dp.Add("IsAP", "" + queryParam["IsAP"].ToString() + "", DbType.String);
strSql.Append(" AND t.IsAP=@IsAP ");
}
if (!queryParam["ISGY"].IsEmpty())
{
dp.Add("ISGY", "" + queryParam["ISGY"].ToString() + "", DbType.String);
strSql.Append(" AND t.ISGY=@ISGY ");
}
if (!queryParam["IsED"].IsEmpty())
{
dp.Add("IsED", "" + queryParam["IsED"].ToString() + "", DbType.String);
strSql.Append(" AND t.IsED=@IsED ");
}
return this.BaseRepository("CollegeMIS").FindList<StudentPracticeInfoEntity>(strSql.ToString(), dp, pagination);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 获取StudentPracticeInfo表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
public StudentPracticeInfoEntity GetStudentPracticeInfoEntity(string keyValue)
{
try
{
return this.BaseRepository("CollegeMIS").FindEntity<StudentPracticeInfoEntity>(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
public void DeleteEntity(string keyValue)
{
try
{
this.BaseRepository("CollegeMIS").Delete<StudentPracticeInfoEntity>(t => t.ID == keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="entity">实体</param>
public void SaveEntity(string keyValue, StudentPracticeInfoEntity entity)
{
try
{
if (!string.IsNullOrEmpty(keyValue))
{
entity.Modify(keyValue);
this.BaseRepository("CollegeMIS").Update(entity);
}
else
{
entity.Create();
this.BaseRepository("CollegeMIS").Insert(entity);
}
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

#endregion

#region 扩展
/// <summary>
/// 获取FundsApply表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
public string GetCode()
{
try
{
var strSql = new StringBuilder();
strSql.Append(@"select * from StudentPracticeInfo ");
var data = this.BaseRepository("CollegeMIS").FindList<StudentPracticeInfoEntity>(strSql.ToString()).OrderByDescending(x => x.Code).FirstOrDefault();
var Code = DateTime.Now.Year.ToString();
if (data != null && !string.IsNullOrEmpty(data.Code))
{
var NCode = data.Code.Substring(data.Code.Length - 3, 3);
Code = Code + (Convert.ToInt32(NCode) + 1).ToString().PadLeft(3, '0');
}
else
{
Code = Code + "001";
}
return Code;
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}
#endregion
}
}

+ 4
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj View File

@@ -2071,6 +2071,10 @@
<Compile Include="EducationalAdministration\StuScoreNotPassTwoTran\StuScoreNotPassTwoTranService.cs" />
<Compile Include="EducationalAdministration\StuScoreNotPassTwoTran\StuScoreNotPassTwoTranIBLL.cs" />
<Compile Include="EducationalAdministration\StuScoreNotPassTwoTran\StuScoreNotPassTwoTranBLL.cs" />
<Compile Include="EducationalAdministration\StudentPracticeInfo\StudentPracticeInfoEntity.cs" />
<Compile Include="EducationalAdministration\StudentPracticeInfo\StudentPracticeInfoService.cs" />
<Compile Include="EducationalAdministration\StudentPracticeInfo\StudentPracticeInfoBLL.cs" />
<Compile Include="EducationalAdministration\StudentPracticeInfo\StudentPracticeInfoIBLL.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj">


Loading…
Cancel
Save