diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Controllers/ods_zzsxjcsjController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Controllers/ods_zzsxjcsjController.cs new file mode 100644 index 000000000..495b9bc5f --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Controllers/ods_zzsxjcsjController.cs @@ -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 +{ + /// + /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 + /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2022-11-10 12:17 + /// 描 述:中职实习基础数据表 + /// + public class ods_zzsxjcsjController : MvcControllerBase + { + private ods_zzsxjcsjIBLL ods_zzsxjcsjIBLL = new ods_zzsxjcsjBLL(); + + #region 视图功能 + + /// + /// 主页面 + /// + /// + [HttpGet] + public ActionResult Index() + { + return View(); + } + /// + /// 表单页 + /// + /// + [HttpGet] + public ActionResult Form() + { + return View(); + } + #endregion + + #region 获取数据 + + /// + /// 获取页面显示列表数据 + /// + /// 分页参数 + /// 查询参数 + /// + [HttpGet] + [AjaxOnly] + public ActionResult GetPageList(string pagination, string queryJson) + { + Pagination paginationobj = pagination.ToObject(); + var data = ods_zzsxjcsjIBLL.GetPageList(paginationobj, queryJson); + var jsonData = new + { + rows = data, + total = paginationobj.total, + page = paginationobj.page, + records = paginationobj.records + }; + return Success(jsonData); + } + /// + /// 获取表单数据 + /// + /// 主键 + /// + [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 提交数据 + + /// + /// 删除实体数据 + /// + /// 主键 + /// + [HttpPost] + [AjaxOnly] + public ActionResult DeleteForm(string keyValue) + { + ods_zzsxjcsjIBLL.DeleteEntity(keyValue); + return Success("删除成功!"); + } + /// + /// 保存实体数据(新增、修改) + /// + /// 主键 + /// 实体 + /// + [HttpPost] + [ValidateAntiForgeryToken] + [AjaxOnly] + public ActionResult SaveForm(string keyValue, string strEntity) + { + ODS_ZZSXJCSJEntity entity = strEntity.ToObject(); + ods_zzsxjcsjIBLL.SaveEntity(keyValue,entity); + if (string.IsNullOrEmpty(keyValue)) + { + } + return Success("保存成功!"); + } + #endregion + + } +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Views/ods_zzsxjcsj/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Views/ods_zzsxjcsj/Form.cshtml new file mode 100644 index 000000000..1d1711d5d --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Views/ods_zzsxjcsj/Form.cshtml @@ -0,0 +1,115 @@ +@{ + ViewBag.Title = "中职实习基础数据表"; + Layout = "~/Views/Shared/_Form.cshtml"; +} +
+
+
学校机构代码
+ +
+
+
学校机构名称
+ +
+
+
学生学号
+ +
+
+
学生姓名
+ +
+
+
专业名称
+ +
+
+
学年
+ +
+
+
学期
+ +
+
+
实习班级
+ +
+
+
实习项目名称
+ +
+
+
实习类别
+
+
+
+
实习是否开始
+ +
+
+
实习是否结束
+ +
+
+
实习行业
+
+
+
+
实习开始时间
+ +
+
+
实习结束时间
+ +
+
+
实习去向
+
+
+
+
实习单位来源
+
+
+
+
实习场所类型
+
+
+
+
实训基地号
+ +
+
+
实习单位名称
+ +
+
+
实习单位地址
+ +
+
+
实习岗位名称
+ +
+
+
住宿安排
+
+
+
+
专业对口程度
+
+
+
+
购买保险种类
+
+
+
+
保险购买方
+
+
+
+
数据采集时间
+ +
+
+@Html.AppendJsFile("/Areas/Changyang_zhdn/Views/ods_zzsxjcsj/Form.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Views/ods_zzsxjcsj/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Views/ods_zzsxjcsj/Form.js new file mode 100644 index 000000000..d41788509 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Views/ods_zzsxjcsj/Form.js @@ -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(); +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Views/ods_zzsxjcsj/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Views/ods_zzsxjcsj/Index.cshtml new file mode 100644 index 000000000..cd5cbd118 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Views/ods_zzsxjcsj/Index.cshtml @@ -0,0 +1,29 @@ +@{ + ViewBag.Title = "中职实习基础数据表"; + Layout = "~/Views/Shared/_Index.cshtml"; +} +
+
+
+
+
+
+
+
+ +
+ + +
+
+
+
+
+
+@Html.AppendJsFile("/Areas/Changyang_zhdn/Views/ods_zzsxjcsj/Index.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Views/ods_zzsxjcsj/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Views/ods_zzsxjcsj/Index.js new file mode 100644 index 000000000..760ad204f --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Views/ods_zzsxjcsj/Index.js @@ -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(); +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj b/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj index 15fd5dd35..2bad32f67 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj @@ -894,6 +894,7 @@ + @@ -7029,6 +7030,10 @@ + + + + diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Changyang_zhdn/ODS_ZZSXJCSJMap.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Changyang_zhdn/ODS_ZZSXJCSJMap.cs new file mode 100644 index 000000000..a81d9deee --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Changyang_zhdn/ODS_ZZSXJCSJMap.cs @@ -0,0 +1,29 @@ +using Learun.Application.TwoDevelopment.Changyang_zhdn; +using System.Data.Entity.ModelConfiguration; + +namespace Learun.Application.Mapping +{ + /// + /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 + /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2022-11-10 12:17 + /// 描 述:中职实习基础数据表 + /// + public class ODS_ZZSXJCSJMap : EntityTypeConfiguration + { + public ODS_ZZSXJCSJMap() + { + #region 表、主键 + //表 + this.ToTable("ODS_ZZSXJCSJ"); + //主键 + this.HasKey(t => t.GZSXJYSJID); + #endregion + + #region 配置关系 + #endregion + } + } +} + diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj index bc6d20ef8..582cbdc6c 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj @@ -653,6 +653,7 @@ + diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Changyang_zhdn/ods_zzsxjcsj/ODS_ZZSXJCSJEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Changyang_zhdn/ods_zzsxjcsj/ODS_ZZSXJCSJEntity.cs new file mode 100644 index 000000000..2c304a4b5 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Changyang_zhdn/ods_zzsxjcsj/ODS_ZZSXJCSJEntity.cs @@ -0,0 +1,180 @@ +using Learun.Util; +using System; +using System.ComponentModel.DataAnnotations.Schema; + +namespace Learun.Application.TwoDevelopment.Changyang_zhdn +{ + /// + /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 + /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2022-11-10 12:17 + /// 描 述:中职实习基础数据表 + /// + public class ODS_ZZSXJCSJEntity + { + #region 实体成员 + /// + /// GZSXJYSJID + /// + [Column("GZSXJYSJID")] + public string GZSXJYSJID { get; set; } + /// + /// 学校机构代码 + /// + [Column("XXJGDM")] + public string XXJGDM { get; set; } + /// + /// 学校机构名称 + /// + [Column("XXJGMC")] + public string XXJGMC { get; set; } + /// + /// 学生学号 + /// + [Column("XSXH")] + public string XSXH { get; set; } + /// + /// 学生姓名 + /// + [Column("XSXM")] + public string XSXM { get; set; } + /// + /// 专业名称 + /// + [Column("ZYMC")] + public string ZYMC { get; set; } + /// + /// 学年 + /// + [Column("XN")] + public string XN { get; set; } + /// + /// 学期 + /// + [Column("XQ")] + public string XQ { get; set; } + /// + /// 实习班级 + /// + [Column("SXBJ")] + public string SXBJ { get; set; } + /// + /// 实习项目名称 + /// + [Column("SXXMMC")] + public string SXXMMC { get; set; } + /// + /// 实习类别 + /// + [Column("SXLB")] + public string SXLB { get; set; } + /// + /// 实习是否开始 + /// + [Column("SXSFKS")] + public string SXSFKS { get; set; } + /// + /// 实习是否结束 + /// + [Column("SXSFJS")] + public string SXSFJS { get; set; } + /// + /// 实习行业 + /// + [Column("SXHY")] + public string SXHY { get; set; } + /// + /// 实习开始时间 + /// + [Column("SXKSSJ")] + public string SXKSSJ { get; set; } + /// + /// 实习结束时间 + /// + [Column("SXJSSJ")] + public string SXJSSJ { get; set; } + /// + /// 实习去向 + /// + [Column("SXQX")] + public string SXQX { get; set; } + /// + /// 实习单位来源 + /// + [Column("SXDWLY")] + public string SXDWLY { get; set; } + /// + /// 实习场所类型 + /// + [Column("SXCSLX")] + public string SXCSLX { get; set; } + /// + /// 实训基地号 + /// + [Column("SXJDH")] + public string SXJDH { get; set; } + /// + /// 实习单位名称 + /// + [Column("SXDWMC")] + public string SXDWMC { get; set; } + /// + /// 实习单位地址 + /// + [Column("SXDWDZ")] + public string SXDWDZ { get; set; } + /// + /// 实习岗位名称 + /// + [Column("SXGWMC")] + public string SXGWMC { get; set; } + /// + /// 住宿安排 + /// + [Column("ZSAP")] + public string ZSAP { get; set; } + /// + /// 专业对口程度 + /// + [Column("ZYDKCD")] + public string ZYDKCD { get; set; } + /// + /// 购买保险种类 + /// + [Column("GMBXZL")] + public string GMBXZL { get; set; } + /// + /// 保险购买方 + /// + [Column("BXGMF")] + public string BXGMF { get; set; } + /// + /// 数据采集时间 + /// + [Column("SJCJSJ")] + public string SJCJSJ { get; set; } + #endregion + + #region 扩展操作 + /// + /// 新增调用 + /// + public void Create() + { + this.GZSXJYSJID = Guid.NewGuid().ToString(); + } + /// + /// 编辑调用 + /// + /// + public void Modify(string keyValue) + { + this.GZSXJYSJID = keyValue; + } + #endregion + #region 扩展字段 + #endregion + } +} + diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Changyang_zhdn/ods_zzsxjcsj/ods_zzsxjcsjBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Changyang_zhdn/ods_zzsxjcsj/ods_zzsxjcsjBLL.cs new file mode 100644 index 000000000..4452c5458 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Changyang_zhdn/ods_zzsxjcsj/ods_zzsxjcsjBLL.cs @@ -0,0 +1,125 @@ +using Learun.Util; +using System; +using System.Data; +using System.Collections.Generic; + +namespace Learun.Application.TwoDevelopment.Changyang_zhdn +{ + /// + /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 + /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2022-11-10 12:17 + /// 描 述:中职实习基础数据表 + /// + public class ods_zzsxjcsjBLL : ods_zzsxjcsjIBLL + { + private ods_zzsxjcsjService ods_zzsxjcsjService = new ods_zzsxjcsjService(); + + #region 获取数据 + + /// + /// 获取页面显示列表数据 + /// + /// 分页参数 + /// 查询参数 + /// + public IEnumerable 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); + } + } + } + + /// + /// 获取ODS_ZZSXJCSJ表实体数据 + /// + /// 主键 + /// + 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 提交数据 + + /// + /// 删除实体数据 + /// + /// 主键 + public void DeleteEntity(string keyValue) + { + try + { + ods_zzsxjcsjService.DeleteEntity(keyValue); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowBusinessException(ex); + } + } + } + + /// + /// 保存实体数据(新增、修改) + /// + /// 主键 + /// 实体 + /// + 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 + + } +} diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Changyang_zhdn/ods_zzsxjcsj/ods_zzsxjcsjIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Changyang_zhdn/ods_zzsxjcsj/ods_zzsxjcsjIBLL.cs new file mode 100644 index 000000000..ce55fa182 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Changyang_zhdn/ods_zzsxjcsj/ods_zzsxjcsjIBLL.cs @@ -0,0 +1,48 @@ +using Learun.Util; +using System.Data; +using System.Collections.Generic; + +namespace Learun.Application.TwoDevelopment.Changyang_zhdn +{ + /// + /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 + /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2022-11-10 12:17 + /// 描 述:中职实习基础数据表 + /// + public interface ods_zzsxjcsjIBLL + { + #region 获取数据 + + /// + /// 获取页面显示列表数据 + /// + /// 查询参数 + /// + IEnumerable GetPageList(Pagination pagination, string queryJson); + /// + /// 获取ODS_ZZSXJCSJ表实体数据 + /// + /// 主键 + /// + ODS_ZZSXJCSJEntity GetODS_ZZSXJCSJEntity(string keyValue); + #endregion + + #region 提交数据 + + /// + /// 删除实体数据 + /// + /// 主键 + void DeleteEntity(string keyValue); + /// + /// 保存实体数据(新增、修改) + /// + /// 主键 + /// 实体 + void SaveEntity(string keyValue, ODS_ZZSXJCSJEntity entity); + #endregion + + } +} diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Changyang_zhdn/ods_zzsxjcsj/ods_zzsxjcsjService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Changyang_zhdn/ods_zzsxjcsj/ods_zzsxjcsjService.cs new file mode 100644 index 000000000..ff72e3e80 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Changyang_zhdn/ods_zzsxjcsj/ods_zzsxjcsjService.cs @@ -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 +{ + /// + /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 + /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2022-11-10 12:17 + /// 描 述:中职实习基础数据表 + /// + public class ods_zzsxjcsjService : RepositoryFactory + { + #region 获取数据 + + /// + /// 获取页面显示列表数据 + /// + /// 查询参数 + /// 查询参数 + /// + public IEnumerable 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(strSql.ToString(),dp, pagination); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowServiceException(ex); + } + } + } + + /// + /// 获取ODS_ZZSXJCSJ表实体数据 + /// + /// 主键 + /// + public ODS_ZZSXJCSJEntity GetODS_ZZSXJCSJEntity(string keyValue) + { + try + { + return this.BaseRepository("changyang").FindEntity(keyValue); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowServiceException(ex); + } + } + } + + #endregion + + #region 提交数据 + + /// + /// 删除实体数据 + /// + /// 主键 + public void DeleteEntity(string keyValue) + { + try + { + this.BaseRepository("changyang").Delete(t=>t.GZSXJYSJID == keyValue); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowServiceException(ex); + } + } + } + + /// + /// 保存实体数据(新增、修改) + /// + /// 主键 + /// 实体 + 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 + + } +} diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj index 155dcd4ed..4608e102c 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj @@ -2035,6 +2035,10 @@ + + + +