Parcourir la source

学校实习备案信息

怀来职教中心中职
ndbs il y a 1 an
Parent
révision
cd7e247905
13 fichiers modifiés avec 1064 ajouts et 0 suppressions
  1. +118
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/SchulPraktikaInfoController.cs
  2. +78
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SchulPraktikaInfo/Form.cshtml
  3. +61
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SchulPraktikaInfo/Form.js
  4. +49
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SchulPraktikaInfo/Index.cshtml
  5. +162
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SchulPraktikaInfo/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/SchulPraktikaInfoMap.cs
  8. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj
  9. +145
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/SchulPraktikaInfo/SchulPraktikaInfoBLL.cs
  10. +156
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/SchulPraktikaInfo/SchulPraktikaInfoEntity.cs
  11. +51
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/SchulPraktikaInfo/SchulPraktikaInfoIBLL.cs
  12. +205
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/SchulPraktikaInfo/SchulPraktikaInfoService.cs
  13. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj

+ 118
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/SchulPraktikaInfoController.cs Voir le fichier

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

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

#region 视图功能

/// <summary>
/// 主页面
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult Index()
{
return View();
}
/// <summary>
/// 表单页
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult Form()
{
ViewBag.EnCode = schulPraktikaInfoIBLL.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 = schulPraktikaInfoIBLL.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 SchulPraktikaInfoData = schulPraktikaInfoIBLL.GetSchulPraktikaInfoEntity( keyValue );
var jsonData = new {
SchulPraktikaInfo = SchulPraktikaInfoData,
};
return Success(jsonData);
}
#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
[HttpPost]
[AjaxOnly]
public ActionResult DeleteForm(string keyValue)
{
schulPraktikaInfoIBLL.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)
{
SchulPraktikaInfoEntity entity = strEntity.ToObject<SchulPraktikaInfoEntity>();
schulPraktikaInfoIBLL.SaveEntity(keyValue,entity);
if (string.IsNullOrEmpty(keyValue))
{
}
return Success("保存成功!");
}
#endregion

}
}

+ 78
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SchulPraktikaInfo/Form.cshtml Voir le fichier

@@ -0,0 +1,78 @@
@{
ViewBag.Title = "SchulPraktikaInfo";
Layout = "~/Views/Shared/_Form.cshtml";
}
<script>
var NewCode = "@ViewBag.EnCode";
</script>
<div class="lr-form-wrap" id="form">
<div class="col-xs-4 lr-form-item" data-table="SchulPraktikaInfo">
<div class="lr-form-item-title">地区</div>
<div id="Area"></div>
</div>
<div class="col-xs-4 lr-form-item" data-table="SchulPraktikaInfo">
<div class="lr-form-item-title">学校名称</div>
<div id="School"></div>
</div>
<div class="col-xs-4 lr-form-item" data-table="SchulPraktikaInfo">
<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="SchulPraktikaInfo">
<div class="lr-form-item-title">实习名目</div>
<textarea id="ITask" class="form-control" style="height:100px;"></textarea>
</div>
<div class="col-xs-4 lr-form-item" data-table="SchulPraktikaInfo">
<div class="lr-form-item-title">专业</div>
<div id="MajorNo"></div>
</div>
<div class="col-xs-4 lr-form-item" data-table="SchulPraktikaInfo">
<div class="lr-form-item-title">班级</div>
<div id="ClassNo"></div>
</div>
<div class="col-xs-4 lr-form-item" data-table="SchulPraktikaInfo">
<div class="lr-form-item-title">年级</div>
<div id="Grade"></div>
</div>
<div class="col-xs-4 lr-form-item" data-table="SchulPraktikaInfo">
<div class="lr-form-item-title">总人数</div>
<input id="StuNum" type="number" class="form-control" isvalid="yes" checkexpession="NumOrNull" />
</div>
<div class="col-xs-4 lr-form-item" data-table="SchulPraktikaInfo">
<div class="lr-form-item-title">安排人数</div>
<input id="SchoolPlanNum" type="number" class="form-control" isvalid="yes" checkexpession="NumOrNull" />
</div>
<div class="col-xs-4 lr-form-item" data-table="SchulPraktikaInfo">
<div class="lr-form-item-title">自主实习人数</div>
<input id="LibertyNum" type="number" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item" data-table="SchulPraktikaInfo">
<div class="lr-form-item-title">地区负责人</div>
<textarea id="InternshipCompany" class="form-control" style="height:100px;"></textarea>
</div>
<div class="col-xs-6 lr-form-item" data-table="SchulPraktikaInfo">
<div class="lr-form-item-title">开始时间</div>
<input id="StartTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#StartTime').trigger('change'); } })" />
</div>
<div class="col-xs-6 lr-form-item" data-table="SchulPraktikaInfo">
<div class="lr-form-item-title">结束时间</div>
<input id="EndTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#EndTime').trigger('change'); } })" />
</div>
<div class="col-xs-4 lr-form-item" data-table="SchulPraktikaInfo">
<div class="lr-form-item-title">指导老师</div>
<input id="InternshipTeacher" type="text" class="form-control" />
</div>
<div class="col-xs-4 lr-form-item" data-table="SchulPraktikaInfo">
<div class="lr-form-item-title">占总学时比例</div>
<input id="ClassHour" type="text" class="form-control" />
</div>
<div class="col-xs-4 lr-form-item" data-table="SchulPraktikaInfo">
<div class="lr-form-item-title">占总学分比例</div>
<input id="CreditHour" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item" data-table="SchulPraktikaInfo">
<div class="lr-form-item-title">备注</div>
<textarea id="Demo" class="form-control" style="height:100px;"></textarea>
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/SchulPraktikaInfo/Form.js")

+ 61
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SchulPraktikaInfo/Form.js Voir le fichier

@@ -0,0 +1,61 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2023-06-05 14:26
* 描 述:SchulPraktikaInfo
*/
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 () {
$('#Area').lrDataSourceSelect({ code: 'DIC_AREA', value: 'acode', text: 'aname' });
$('#School').lrDataSourceSelect({ code: 'company', value: 'f_companyid', text: 'f_fullname' });
$('#MajorNo').lrDataSourceSelect({ code: 'CdMajorInfo', value: 'majorno', text: 'majorname' });
$('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' });
$('#Grade').lrselect({
url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GenerateNearByYear',
value: "value",
text: "text",
});
},
initData: function () {
if (!!keyValue) {
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/SchulPraktikaInfo/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/SchulPraktikaInfo/SaveForm?keyValue=' + keyValue, postData, function (res) {
// 保存成功后才回调
if (!!callBack) {
callBack();
}
});
};
page.init();
}

+ 49
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SchulPraktikaInfo/Index.cshtml Voir le fichier

@@ -0,0 +1,49 @@
@{
ViewBag.Title = "SchulPraktikaInfo";
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-12 lr-form-item">
<div class="lr-form-item-title">专业</div>
<div id="MajorNo"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">班级</div>
<div id="ClassNo"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">年级</div>
<div id="Grade"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">指导老师</div>
<input id="InternshipTeacher" type="text" class="form-control" />
</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/SchulPraktikaInfo/Index.js")

+ 162
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SchulPraktikaInfo/Index.js Voir le fichier

@@ -0,0 +1,162 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2023-06-05 14:26
* 描 述:SchulPraktikaInfo
*/
var refreshGirdData;
var bootstrap = function ($, learun) {
"use strict";
var page = {
init: function () {
page.initGird();
page.bind();
},
bind: function () {
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
page.search(queryJson);
}, 220, 400);
$('#MajorNo').lrDataSourceSelect({ code: 'CdMajorInfo', value: 'majorno', text: 'majorname' });
$('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'majorno', text: 'classname' });
$('#Grade').lrselect({
url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GenerateNearByYear',
value: "value",
text: "text",
});
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
// 新增
$('#lr_add').on('click', function () {
learun.layerForm({
id: 'form',
title: '新增',
url: top.$.rootUrl + '/EducationalAdministration/SchulPraktikaInfo/Form',
width: 800,
height: 620,
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/SchulPraktikaInfo/Form?keyValue=' + keyValue,
width: 800,
height: 620,
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/SchulPraktikaInfo/DeleteForm', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
});
}
});
// 打印
$('#lr_print').on('click', function () {
$('#gridtable').jqprintTable();
});
},
// 初始化列表
initGird: function () {
$('#gridtable').lrAuthorizeJfGrid({
url: top.$.rootUrl + '/EducationalAdministration/SchulPraktikaInfo/GetPageList',
headData: [
{
label: "地区", name: "Area", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'DIC_AREA',
key: value,
keyId: 'acode',
callback: function (_data) {
callback(_data['aname']);
}
});
}
},
{
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: "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: "Grade", width: 100, align: "left" },
{ label: "总人数", name: "StuNum", width: 100, align: "left" },
{ label: "安排人数", name: "SchoolPlanNum", width: 100, align: "left" },
{ label: "自主实习人数", name: "LibertyNum", width: 100, align: "left" },
{ label: "地区负责人", name: "InternshipCompany", width: 100, align: "left" },
{ label: "开始时间", name: "StartTime", width: 100, align: "left" },
{ label: "结束时间", name: "EndTime", width: 100, align: "left" },
{ label: "指导老师", name: "InternshipTeacher", width: 100, align: "left" },
{ label: "占总学时比例", name: "ClassHour", width: 100, align: "left" },
{ label: "占总学分比例", name: "CreditHour", width: 100, align: "left" },
{ label: "备注", name: "Demo", width: 100, align: "left" },
],
mainId: 'ID',
isPage: true
});
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 Voir le fichier

@@ -905,6 +905,7 @@
<Compile Include="Areas\EducationalAdministration\Controllers\StuScoreNotPassTranController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\StuScoreNotPassTwoTranController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\StudentPracticeInfoController.cs" />
<Compile Include="Areas\EducationalAdministration\Controllers\SchulPraktikaInfoController.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="Areas\AdmissionsPlatform\Views\AP_OnlineUserInfo\DropOutIndex.js" />
@@ -7114,6 +7115,10 @@
<Content Include="Areas\EducationalAdministration\Views\StudentPracticeInfo\Index.js" />
<Content Include="Areas\EducationalAdministration\Views\StudentPracticeInfo\Form.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StudentPracticeInfo\Form.js" />
<Content Include="Areas\EducationalAdministration\Views\SchulPraktikaInfo\Index.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\SchulPraktikaInfo\Index.js" />
<Content Include="Areas\EducationalAdministration\Views\SchulPraktikaInfo\Form.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\SchulPraktikaInfo\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/SchulPraktikaInfoMap.cs Voir le fichier

@@ -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-06-05 14:26
/// 描 述:SchulPraktikaInfo
/// </summary>
public class SchulPraktikaInfoMap : EntityTypeConfiguration<SchulPraktikaInfoEntity>
{
public SchulPraktikaInfoMap()
{
#region 表、主键
//表
this.ToTable("SCHULPRAKTIKAINFO");
//主键
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 Voir le fichier

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


+ 145
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/SchulPraktikaInfo/SchulPraktikaInfoBLL.cs Voir le fichier

@@ -0,0 +1,145 @@
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-06-05 14:26
/// 描 述:SchulPraktikaInfo
/// </summary>
public class SchulPraktikaInfoBLL : SchulPraktikaInfoIBLL
{
private SchulPraktikaInfoService schulPraktikaInfoService = new SchulPraktikaInfoService();

#region 获取数据

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

/// <summary>
/// 获取SchulPraktikaInfo表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
public SchulPraktikaInfoEntity GetSchulPraktikaInfoEntity(string keyValue)
{
try
{
return schulPraktikaInfoService.GetSchulPraktikaInfoEntity(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
{
schulPraktikaInfoService.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, SchulPraktikaInfoEntity entity)
{
try
{
schulPraktikaInfoService.SaveEntity(keyValue, entity);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

#endregion


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

}
}

+ 156
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/SchulPraktikaInfo/SchulPraktikaInfoEntity.cs Voir le fichier

@@ -0,0 +1,156 @@
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-06-05 14:26
/// 描 述:SchulPraktikaInfo
/// </summary>
public class SchulPraktikaInfoEntity
{
#region 实体成员
/// <summary>
/// ID
/// </summary>
[Column("ID")]
public string ID { get; set; }
/// <summary>
/// 地区
/// </summary>
[Column("AREA")]
public string Area { 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>
/// MajorNo
/// </summary>
[Column("MAJORNO")]
public string MajorNo { get; set; }
/// <summary>
/// ClassNo
/// </summary>
[Column("CLASSNO")]
public string ClassNo { get; set; }
/// <summary>
/// Grade
/// </summary>
[Column("GRADE")]
public string Grade { get; set; }
/// <summary>
/// StuNum
/// </summary>
[Column("STUNUM")]
public int? StuNum { get; set; }
/// <summary>
/// SchoolPlanNum
/// </summary>
[Column("SCHOOLPLANNUM")]
public int? SchoolPlanNum { get; set; }
/// <summary>
/// LibertyNum
/// </summary>
[Column("LIBERTYNUM")]
public int? LibertyNum { get; set; }
/// <summary>
/// InternshipCompany
/// </summary>
[Column("INTERNSHIPCOMPANY")]
public string InternshipCompany { get; set; }
/// <summary>
/// StartTime
/// </summary>
[Column("STARTTIME")]
public DateTime? StartTime { get; set; }
/// <summary>
/// EndTime
/// </summary>
[Column("ENDTIME")]
public DateTime? EndTime { get; set; }
/// <summary>
/// InternshipTeacher
/// </summary>
[Column("INTERNSHIPTEACHER")]
public string InternshipTeacher { get; set; }
/// <summary>
/// ClassHour
/// </summary>
[Column("CLASSHOUR")]
public decimal? ClassHour { get; set; }
/// <summary>
/// CreditHour
/// </summary>
[Column("CREDITHOUR")]
public decimal? CreditHour { 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.CreateTime = DateTime.Now;
this.CreateUser = LoginUserInfo.Get().userId;
}
/// <summary>
/// 编辑调用
/// </summary>
/// <param name="keyValue"></param>
public void Modify(string keyValue)
{
this.ID = keyValue;
this.CreateTime = DateTime.Now;
this.CreateUser = LoginUserInfo.Get().userId;
this.ModifyTime = DateTime.Now;
this.ModifyUser = LoginUserInfo.Get().userId;
}
#endregion
#region 扩展字段
#endregion
}
}


+ 51
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/SchulPraktikaInfo/SchulPraktikaInfoIBLL.cs Voir le fichier

@@ -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-06-05 14:26
/// 描 述:SchulPraktikaInfo
/// </summary>
public interface SchulPraktikaInfoIBLL
{
#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
IEnumerable<SchulPraktikaInfoEntity> GetPageList(Pagination pagination, string queryJson);
/// <summary>
/// 获取SchulPraktikaInfo表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
SchulPraktikaInfoEntity GetSchulPraktikaInfoEntity(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, SchulPraktikaInfoEntity entity);
#endregion

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

+ 205
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/SchulPraktikaInfo/SchulPraktikaInfoService.cs Voir le fichier

@@ -0,0 +1,205 @@
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-06-05 14:26
/// 描 述:SchulPraktikaInfo
/// </summary>
public class SchulPraktikaInfoService : RepositoryFactory
{
#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="pagination">查询参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<SchulPraktikaInfoEntity> GetPageList(Pagination pagination, string queryJson)
{
try
{
var strSql = new StringBuilder();
strSql.Append("SELECT ");
strSql.Append(@" t.* ");
strSql.Append(" FROM SchulPraktikaInfo t ");
strSql.Append(" WHERE 1=1 ");
var queryParam = queryJson.ToJObject();
// 虚拟参数
var dp = new DynamicParameters(new { });
if (!queryParam["Area"].IsEmpty())
{
dp.Add("Area", queryParam["Area"].ToString(), DbType.String);
strSql.Append(" AND t.Area = @Area ");
}
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["InternshipTeacher"].IsEmpty())
{
dp.Add("InternshipTeacher", "%" + queryParam["InternshipTeacher"].ToString() + "%", DbType.String);
strSql.Append(" AND t.InternshipTeacher Like @InternshipTeacher ");
}
return this.BaseRepository("CollegeMIS").FindList<SchulPraktikaInfoEntity>(strSql.ToString(), dp, pagination);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 获取SchulPraktikaInfo表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
public SchulPraktikaInfoEntity GetSchulPraktikaInfoEntity(string keyValue)
{
try
{
return this.BaseRepository("CollegeMIS").FindEntity<SchulPraktikaInfoEntity>(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<SchulPraktikaInfoEntity>(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, SchulPraktikaInfoEntity 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>
///
/// </summary>
/// <returns></returns>
public string GetCode()
{
try
{
var strSql = new StringBuilder();
strSql.Append(@"select * from SchulPraktikaInfo ");
var data = this.BaseRepository("CollegeMIS").FindList<SchulPraktikaInfoEntity>(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 Voir le fichier

@@ -2075,6 +2075,10 @@
<Compile Include="EducationalAdministration\StudentPracticeInfo\StudentPracticeInfoService.cs" />
<Compile Include="EducationalAdministration\StudentPracticeInfo\StudentPracticeInfoBLL.cs" />
<Compile Include="EducationalAdministration\StudentPracticeInfo\StudentPracticeInfoIBLL.cs" />
<Compile Include="EducationalAdministration\SchulPraktikaInfo\SchulPraktikaInfoEntity.cs" />
<Compile Include="EducationalAdministration\SchulPraktikaInfo\SchulPraktikaInfoService.cs" />
<Compile Include="EducationalAdministration\SchulPraktikaInfo\SchulPraktikaInfoBLL.cs" />
<Compile Include="EducationalAdministration\SchulPraktikaInfo\SchulPraktikaInfoIBLL.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj">


Chargement…
Annuler
Enregistrer