Parcourir la source

中职实习基础数据表

长阳分支推送专用^2
lifeng il y a 2 ans
Parent
révision
c647bac14a
13 fichiers modifiés avec 1080 ajouts et 0 suppressions
  1. +117
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Controllers/ods_zzsxjcsjController.cs
  2. +115
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Views/ods_zzsxjcsj/Form.cshtml
  3. +62
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Views/ods_zzsxjcsj/Form.js
  4. +29
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Views/ods_zzsxjcsj/Index.cshtml
  5. +194
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Views/ods_zzsxjcsj/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/Changyang_zhdn/ODS_ZZSXJCSJMap.cs
  8. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj
  9. +180
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Changyang_zhdn/ods_zzsxjcsj/ODS_ZZSXJCSJEntity.cs
  10. +125
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Changyang_zhdn/ods_zzsxjcsj/ods_zzsxjcsjBLL.cs
  11. +48
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Changyang_zhdn/ods_zzsxjcsj/ods_zzsxjcsjIBLL.cs
  12. +171
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Changyang_zhdn/ods_zzsxjcsj/ods_zzsxjcsjService.cs
  13. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj

+ 117
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Controllers/ods_zzsxjcsjController.cs Voir le fichier

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

namespace Learun.Application.Web.Areas.Changyang_zhdn.Controllers
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2022-11-10 12:17
/// 描 述:中职实习基础数据表
/// </summary>
public class ods_zzsxjcsjController : MvcControllerBase
{
private ods_zzsxjcsjIBLL ods_zzsxjcsjIBLL = new ods_zzsxjcsjBLL();

#region 视图功能

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

#region 提交数据

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

}
}

+ 115
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Views/ods_zzsxjcsj/Form.cshtml Voir le fichier

@@ -0,0 +1,115 @@
@{
ViewBag.Title = "中职实习基础数据表";
Layout = "~/Views/Shared/_Form.cshtml";
}
<div class="lr-form-wrap" id="form">
<div class="col-xs-12 lr-form-item" data-table="ODS_ZZSXJCSJ" >
<div class="lr-form-item-title">学校机构代码</div>
<input id="XXJGDM" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item" data-table="ODS_ZZSXJCSJ" >
<div class="lr-form-item-title">学校机构名称</div>
<input id="XXJGMC" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item" data-table="ODS_ZZSXJCSJ" >
<div class="lr-form-item-title">学生学号</div>
<input id="XSXH" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item" data-table="ODS_ZZSXJCSJ" >
<div class="lr-form-item-title">学生姓名</div>
<input id="XSXM" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item" data-table="ODS_ZZSXJCSJ" >
<div class="lr-form-item-title">专业名称</div>
<input id="ZYMC" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item" data-table="ODS_ZZSXJCSJ" >
<div class="lr-form-item-title">学年</div>
<input id="XN" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item" data-table="ODS_ZZSXJCSJ" >
<div class="lr-form-item-title">学期</div>
<input id="XQ" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item" data-table="ODS_ZZSXJCSJ" >
<div class="lr-form-item-title">实习班级</div>
<input id="SXBJ" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item" data-table="ODS_ZZSXJCSJ" >
<div class="lr-form-item-title">实习项目名称</div>
<input id="SXXMMC" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item" data-table="ODS_ZZSXJCSJ" >
<div class="lr-form-item-title">实习类别</div>
<div id="SXLB" ></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="ODS_ZZSXJCSJ" >
<div class="lr-form-item-title">实习是否开始</div>
<input id="SXSFKS" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item" data-table="ODS_ZZSXJCSJ" >
<div class="lr-form-item-title">实习是否结束</div>
<input id="SXSFJS" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item" data-table="ODS_ZZSXJCSJ" >
<div class="lr-form-item-title">实习行业</div>
<div id="SXHY"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="ODS_ZZSXJCSJ" >
<div class="lr-form-item-title">实习开始时间</div>
<input id="SXKSSJ" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item" data-table="ODS_ZZSXJCSJ" >
<div class="lr-form-item-title">实习结束时间</div>
<input id="SXJSSJ" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item" data-table="ODS_ZZSXJCSJ" >
<div class="lr-form-item-title">实习去向</div>
<div id="SXQX" ></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="ODS_ZZSXJCSJ" >
<div class="lr-form-item-title">实习单位来源</div>
<div id="SXDWLY" ></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="ODS_ZZSXJCSJ" >
<div class="lr-form-item-title">实习场所类型</div>
<div id="SXCSLX" ></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="ODS_ZZSXJCSJ" >
<div class="lr-form-item-title">实训基地号</div>
<input id="SXJDH" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item" data-table="ODS_ZZSXJCSJ" >
<div class="lr-form-item-title">实习单位名称</div>
<input id="SXDWMC" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item" data-table="ODS_ZZSXJCSJ" >
<div class="lr-form-item-title">实习单位地址</div>
<input id="SXDWDZ" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item" data-table="ODS_ZZSXJCSJ" >
<div class="lr-form-item-title">实习岗位名称</div>
<input id="SXGWMC" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item" data-table="ODS_ZZSXJCSJ" >
<div class="lr-form-item-title">住宿安排</div>
<div id="ZSAP" ></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="ODS_ZZSXJCSJ" >
<div class="lr-form-item-title">专业对口程度</div>
<div id="ZYDKCD" ></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="ODS_ZZSXJCSJ" >
<div class="lr-form-item-title">购买保险种类</div>
<div id="GMBXZL" ></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="ODS_ZZSXJCSJ" >
<div class="lr-form-item-title">保险购买方</div>
<div id="BXGMF" ></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="ODS_ZZSXJCSJ" >
<div class="lr-form-item-title">数据采集时间</div>
<input id="SJCJSJ" type="text" class="form-control" />
</div>
</div>
@Html.AppendJsFile("/Areas/Changyang_zhdn/Views/ods_zzsxjcsj/Form.js")

+ 62
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Views/ods_zzsxjcsj/Form.js Voir le fichier

@@ -0,0 +1,62 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2022-11-10 12:17
* 描 述:中职实习基础数据表
*/
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 () {
$('#SXLB').lrDataItemSelect({ code: 'sxlbdm' });
$('#SXHY').lrRadioCheckbox({
type: 'radio',
code: 'sxhydm',
});
$('#SXQX').lrDataItemSelect({ code: 'sxqxdm' });
$('#SXDWLY').lrDataItemSelect({ code: 'sxdwlydm' });
$('#SXCSLX').lrDataItemSelect({ code: 'sxcslxdm' });
$('#ZSAP').lrDataItemSelect({ code: 'zxapdm' });
$('#ZYDKCD').lrDataItemSelect({ code: 'zydkcddm' });
$('#GMBXZL').lrDataItemSelect({ code: 'bxgmzldm' });
$('#BXGMF').lrDataItemSelect({ code: 'bxgmfdm' });
},
initData: function () {
if (!!keyValue) {
$.lrSetForm(top.$.rootUrl + '/Changyang_zhdn/ods_zzsxjcsj/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]);
}
}
});
}
}
};
// 保存数据
acceptClick = function (callBack) {
if (!$('body').lrValidform()) {
return false;
}
var postData = {
strEntity: JSON.stringify($('body').lrGetFormData())
};
$.lrSaveForm(top.$.rootUrl + '/Changyang_zhdn/ods_zzsxjcsj/SaveForm?keyValue=' + keyValue, postData, function (res) {
// 保存成功后才回调
if (!!callBack) {
callBack();
}
});
};
page.init();
}

+ 29
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Views/ods_zzsxjcsj/Index.cshtml Voir le fichier

@@ -0,0 +1,29 @@
@{
ViewBag.Title = "中职实习基础数据表";
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>
<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>
</div>
<div class=" btn-group btn-group-sm" learun-authorize="yes">
<a id="lr_import" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 导入</a>
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/Changyang_zhdn/Views/ods_zzsxjcsj/Index.js")

+ 194
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Views/ods_zzsxjcsj/Index.js Voir le fichier

@@ -0,0 +1,194 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2022-11-10 12:17
* 描 述:中职实习基础数据表
*/
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();
});
// 新增
$('#lr_add').on('click', function () {
learun.layerForm({
id: 'form',
title: '新增',
url: top.$.rootUrl + '/Changyang_zhdn/ods_zzsxjcsj/Form',
width: 600,
height: 400,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
});
});
// 编辑
$('#lr_edit').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('GZSXJYSJID');
if (learun.checkrow(keyValue)) {
learun.layerForm({
id: 'form',
title: '编辑',
url: top.$.rootUrl + '/Changyang_zhdn/ods_zzsxjcsj/Form?keyValue=' + keyValue,
width: 600,
height: 400,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
});
}
});
// 删除
$('#lr_delete').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('GZSXJYSJID');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认删除该项!', function (res) {
if (res) {
learun.deleteForm(top.$.rootUrl + '/Changyang_zhdn/ods_zzsxjcsj/DeleteForm', { keyValue: keyValue}, function () {
refreshGirdData();
});
}
});
}
});
//  导入
$('#lr_import').on('click', function () {
});
},
// 初始化列表
initGird: function () {
$('#gridtable').lrAuthorizeJfGrid({
url: top.$.rootUrl + '/Changyang_zhdn/ods_zzsxjcsj/GetPageList',
headData: [
{ label: "学校机构代码", name: "XXJGDM", width: 100, align: "left"},
{ label: "学校机构名称", name: "XXJGMC", width: 100, align: "left"},
{ label: "学生学号", name: "XSXH", width: 100, align: "left"},
{ label: "学生姓名", name: "XSXM", width: 100, align: "left"},
{ label: "专业名称", name: "ZYMC", width: 100, align: "left"},
{ label: "学年", name: "XN", width: 100, align: "left"},
{ label: "学期", name: "XQ", width: 100, align: "left"},
{ label: "实习班级", name: "SXBJ", width: 100, align: "left"},
{ label: "实习项目名称", name: "SXXMMC", width: 100, align: "left"},
{ label: "实习类别", name: "SXLB", width: 100, align: "left",
formatterAsync: function (callback, value, row, op,$cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'sxlbdm',
callback: function (_data) {
callback(_data.text);
}
});
}},
{ label: "实习是否开始", name: "SXSFKS", width: 100, align: "left"},
{ label: "实习是否结束", name: "SXSFJS", width: 100, align: "left"},
{ label: "实习行业", name: "SXHY", width: 100, align: "left",
formatterAsync: function (callback, value, row, op,$cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'sxhydm',
callback: function (_data) {
callback(_data.text);
}
});
}},
{ label: "实习开始时间", name: "SXKSSJ", width: 100, align: "left"},
{ label: "实习结束时间", name: "SXJSSJ", width: 100, align: "left"},
{ label: "实习去向", name: "SXQX", width: 100, align: "left",
formatterAsync: function (callback, value, row, op,$cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'sxqxdm',
callback: function (_data) {
callback(_data.text);
}
});
}},
{ label: "实习单位来源", name: "SXDWLY", width: 100, align: "left",
formatterAsync: function (callback, value, row, op,$cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'sxdwlydm',
callback: function (_data) {
callback(_data.text);
}
});
}},
{ label: "实习场所类型", name: "SXCSLX", width: 100, align: "left",
formatterAsync: function (callback, value, row, op,$cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'sxcslxdm',
callback: function (_data) {
callback(_data.text);
}
});
}},
{ label: "实训基地号", name: "SXJDH", width: 100, align: "left"},
{ label: "实习单位名称", name: "SXDWMC", width: 100, align: "left"},
{ label: "实习单位地址", name: "SXDWDZ", width: 100, align: "left"},
{ label: "实习岗位名称", name: "SXGWMC", width: 100, align: "left"},
{ label: "住宿安排", name: "ZSAP", width: 100, align: "left",
formatterAsync: function (callback, value, row, op,$cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'zxapdm',
callback: function (_data) {
callback(_data.text);
}
});
}},
{ label: "专业对口程度", name: "ZYDKCD", width: 100, align: "left",
formatterAsync: function (callback, value, row, op,$cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'zydkcddm',
callback: function (_data) {
callback(_data.text);
}
});
}},
{ label: "购买保险种类", name: "GMBXZL", width: 100, align: "left",
formatterAsync: function (callback, value, row, op,$cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'bxgmzldm',
callback: function (_data) {
callback(_data.text);
}
});
}},
{ label: "保险购买方", name: "BXGMF", width: 100, align: "left",
formatterAsync: function (callback, value, row, op,$cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'bxgmfdm',
callback: function (_data) {
callback(_data.text);
}
});
}},
{ label: "数据采集时间", name: "SJCJSJ", width: 100, align: "left"},
],
mainId:'GZSXJYSJID',
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

@@ -894,6 +894,7 @@
<Compile Include="Areas\Changyang_zhdn\Controllers\ods_xwsxjdsjController.cs" />
<Compile Include="Areas\Changyang_zhdn\Controllers\ods_zzcjsthdsjController.cs" />
<Compile Include="Areas\Changyang_zhdn\Controllers\ods_jcxysjController.cs" />
<Compile Include="Areas\Changyang_zhdn\Controllers\ods_zzsxjcsjController.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="Areas\AdmissionsPlatform\Views\AP_OnlineUserInfo\DropOutIndex.js" />
@@ -7029,6 +7030,10 @@
<Content Include="Areas\Changyang_zhdn\Views\ods_jcxysj\Index.js" />
<Content Include="Areas\Changyang_zhdn\Views\ods_jcxysj\Form.cshtml" />
<Content Include="Areas\Changyang_zhdn\Views\ods_jcxysj\Form.js" />
<Content Include="Areas\Changyang_zhdn\Views\ods_zzsxjcsj\Index.cshtml" />
<Content Include="Areas\Changyang_zhdn\Views\ods_zzsxjcsj\Index.js" />
<Content Include="Areas\Changyang_zhdn\Views\ods_zzsxjcsj\Form.cshtml" />
<Content Include="Areas\Changyang_zhdn\Views\ods_zzsxjcsj\Form.js" />
</ItemGroup>
<ItemGroup>
<Folder Include="Areas\Changyang_zhdn\Controllers\" />


+ 29
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Changyang_zhdn/ODS_ZZSXJCSJMap.cs Voir le fichier

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

namespace Learun.Application.Mapping
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2022-11-10 12:17
/// 描 述:中职实习基础数据表
/// </summary>
public class ODS_ZZSXJCSJMap : EntityTypeConfiguration<ODS_ZZSXJCSJEntity>
{
public ODS_ZZSXJCSJMap()
{
#region 表、主键
//表
this.ToTable("ODS_ZZSXJCSJ");
//主键
this.HasKey(t => t.GZSXJYSJID);
#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

@@ -653,6 +653,7 @@
<Compile Include="Changyang_zhdn\ODS_XWSXJDSJMap.cs" />
<Compile Include="Changyang_zhdn\ODS_ZZCJSTHDSJMap.cs" />
<Compile Include="Changyang_zhdn\ODS_JCXYSJMap.cs" />
<Compile Include="Changyang_zhdn\ODS_ZZSXJCSJMap.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj">


+ 180
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Changyang_zhdn/ods_zzsxjcsj/ODS_ZZSXJCSJEntity.cs Voir le fichier

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

namespace Learun.Application.TwoDevelopment.Changyang_zhdn
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2022-11-10 12:17
/// 描 述:中职实习基础数据表
/// </summary>
public class ODS_ZZSXJCSJEntity
{
#region 实体成员
/// <summary>
/// GZSXJYSJID
/// </summary>
[Column("GZSXJYSJID")]
public string GZSXJYSJID { get; set; }
/// <summary>
/// 学校机构代码
/// </summary>
[Column("XXJGDM")]
public string XXJGDM { get; set; }
/// <summary>
/// 学校机构名称
/// </summary>
[Column("XXJGMC")]
public string XXJGMC { get; set; }
/// <summary>
/// 学生学号
/// </summary>
[Column("XSXH")]
public string XSXH { get; set; }
/// <summary>
/// 学生姓名
/// </summary>
[Column("XSXM")]
public string XSXM { get; set; }
/// <summary>
/// 专业名称
/// </summary>
[Column("ZYMC")]
public string ZYMC { get; set; }
/// <summary>
/// 学年
/// </summary>
[Column("XN")]
public string XN { get; set; }
/// <summary>
/// 学期
/// </summary>
[Column("XQ")]
public string XQ { get; set; }
/// <summary>
/// 实习班级
/// </summary>
[Column("SXBJ")]
public string SXBJ { get; set; }
/// <summary>
/// 实习项目名称
/// </summary>
[Column("SXXMMC")]
public string SXXMMC { get; set; }
/// <summary>
/// 实习类别
/// </summary>
[Column("SXLB")]
public string SXLB { get; set; }
/// <summary>
/// 实习是否开始
/// </summary>
[Column("SXSFKS")]
public string SXSFKS { get; set; }
/// <summary>
/// 实习是否结束
/// </summary>
[Column("SXSFJS")]
public string SXSFJS { get; set; }
/// <summary>
/// 实习行业
/// </summary>
[Column("SXHY")]
public string SXHY { get; set; }
/// <summary>
/// 实习开始时间
/// </summary>
[Column("SXKSSJ")]
public string SXKSSJ { get; set; }
/// <summary>
/// 实习结束时间
/// </summary>
[Column("SXJSSJ")]
public string SXJSSJ { get; set; }
/// <summary>
/// 实习去向
/// </summary>
[Column("SXQX")]
public string SXQX { get; set; }
/// <summary>
/// 实习单位来源
/// </summary>
[Column("SXDWLY")]
public string SXDWLY { get; set; }
/// <summary>
/// 实习场所类型
/// </summary>
[Column("SXCSLX")]
public string SXCSLX { get; set; }
/// <summary>
/// 实训基地号
/// </summary>
[Column("SXJDH")]
public string SXJDH { get; set; }
/// <summary>
/// 实习单位名称
/// </summary>
[Column("SXDWMC")]
public string SXDWMC { get; set; }
/// <summary>
/// 实习单位地址
/// </summary>
[Column("SXDWDZ")]
public string SXDWDZ { get; set; }
/// <summary>
/// 实习岗位名称
/// </summary>
[Column("SXGWMC")]
public string SXGWMC { get; set; }
/// <summary>
/// 住宿安排
/// </summary>
[Column("ZSAP")]
public string ZSAP { get; set; }
/// <summary>
/// 专业对口程度
/// </summary>
[Column("ZYDKCD")]
public string ZYDKCD { get; set; }
/// <summary>
/// 购买保险种类
/// </summary>
[Column("GMBXZL")]
public string GMBXZL { get; set; }
/// <summary>
/// 保险购买方
/// </summary>
[Column("BXGMF")]
public string BXGMF { get; set; }
/// <summary>
/// 数据采集时间
/// </summary>
[Column("SJCJSJ")]
public string SJCJSJ { get; set; }
#endregion

#region 扩展操作
/// <summary>
/// 新增调用
/// </summary>
public void Create()
{
this.GZSXJYSJID = Guid.NewGuid().ToString();
}
/// <summary>
/// 编辑调用
/// </summary>
/// <param name="keyValue"></param>
public void Modify(string keyValue)
{
this.GZSXJYSJID = keyValue;
}
#endregion
#region 扩展字段
#endregion
}
}


+ 125
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Changyang_zhdn/ods_zzsxjcsj/ods_zzsxjcsjBLL.cs Voir le fichier

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

namespace Learun.Application.TwoDevelopment.Changyang_zhdn
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2022-11-10 12:17
/// 描 述:中职实习基础数据表
/// </summary>
public class ods_zzsxjcsjBLL : ods_zzsxjcsjIBLL
{
private ods_zzsxjcsjService ods_zzsxjcsjService = new ods_zzsxjcsjService();

#region 获取数据

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

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

#endregion

}
}

+ 48
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Changyang_zhdn/ods_zzsxjcsj/ods_zzsxjcsjIBLL.cs Voir le fichier

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

namespace Learun.Application.TwoDevelopment.Changyang_zhdn
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2022-11-10 12:17
/// 描 述:中职实习基础数据表
/// </summary>
public interface ods_zzsxjcsjIBLL
{
#region 获取数据

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

}
}

+ 171
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Changyang_zhdn/ods_zzsxjcsj/ods_zzsxjcsjService.cs Voir le fichier

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

namespace Learun.Application.TwoDevelopment.Changyang_zhdn
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2022-11-10 12:17
/// 描 述:中职实习基础数据表
/// </summary>
public class ods_zzsxjcsjService : RepositoryFactory
{
#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="pagination">查询参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<ODS_ZZSXJCSJEntity> GetPageList(Pagination pagination, string queryJson)
{
try
{
var strSql = new StringBuilder();
strSql.Append("SELECT ");
strSql.Append(@"
t.GZSXJYSJID,
t.XXJGDM,
t.XXJGMC,
t.XSXH,
t.XSXM,
t.ZYMC,
t.XN,
t.XQ,
t.SXBJ,
t.SXXMMC,
t.SXLB,
t.SXSFKS,
t.SXSFJS,
t.SXHY,
t.SXKSSJ,
t.SXJSSJ,
t.SXQX,
t.SXDWLY,
t.SXCSLX,
t.SXJDH,
t.SXDWMC,
t.SXDWDZ,
t.SXGWMC,
t.ZSAP,
t.ZYDKCD,
t.GMBXZL,
t.BXGMF,
t.SJCJSJ
");
strSql.Append(" FROM ODS_ZZSXJCSJ t ");
strSql.Append(" WHERE 1=1 ");
var queryParam = queryJson.ToJObject();
// 虚拟参数
var dp = new DynamicParameters(new { });
return this.BaseRepository("changyang").FindList<ODS_ZZSXJCSJEntity>(strSql.ToString(),dp, pagination);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 获取ODS_ZZSXJCSJ表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
public ODS_ZZSXJCSJEntity GetODS_ZZSXJCSJEntity(string keyValue)
{
try
{
return this.BaseRepository("changyang").FindEntity<ODS_ZZSXJCSJEntity>(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("changyang").Delete<ODS_ZZSXJCSJEntity>(t=>t.GZSXJYSJID == 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, ODS_ZZSXJCSJEntity entity)
{
try
{
if (!string.IsNullOrEmpty(keyValue))
{
entity.Modify(keyValue);
this.BaseRepository("changyang").Update(entity);
}
else
{
entity.Create();
this.BaseRepository("changyang").Insert(entity);
}
}
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

@@ -2035,6 +2035,10 @@
<Compile Include="Changyang_zhdn\ods_jcxysj\ods_jcxysjService.cs" />
<Compile Include="Changyang_zhdn\ods_jcxysj\ods_jcxysjBLL.cs" />
<Compile Include="Changyang_zhdn\ods_jcxysj\ods_jcxysjIBLL.cs" />
<Compile Include="Changyang_zhdn\ods_zzsxjcsj\ODS_ZZSXJCSJEntity.cs" />
<Compile Include="Changyang_zhdn\ods_zzsxjcsj\ods_zzsxjcsjService.cs" />
<Compile Include="Changyang_zhdn\ods_zzsxjcsj\ods_zzsxjcsjBLL.cs" />
<Compile Include="Changyang_zhdn\ods_zzsxjcsj\ods_zzsxjcsjIBLL.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj">


Chargement…
Annuler
Enregistrer