From dcc29bdc48000e4d436e8730ff823bfc5a698155 Mon Sep 17 00:00:00 2001 From: duguoqing Date: Wed, 9 Nov 2022 16:11:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AD=E8=81=8C=E6=AF=95=E4=B8=9A=E5=8E=BB?= =?UTF-8?q?=E5=90=91=E3=80=90=E5=B0=B1=E4=B8=9A=E3=80=91=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/ods_zzbyqxjysjController.cs | 117 ++++++++++++ .../Views/ods_zzbyqxjysj/Form.cshtml | 95 ++++++++++ .../Views/ods_zzbyqxjysj/Form.js | 55 ++++++ .../Views/ods_zzbyqxjysj/Index.cshtml | 29 +++ .../Views/ods_zzbyqxjysj/Index.js | 153 +++++++++++++++ .../Learun.Application.Web.csproj | 5 + .../Changyang_zhdn/ODS_ZZBYQXJYSJMap.cs | 29 +++ .../Learun.Application.Mapping.csproj | 1 + .../ods_zzbyqxjysj/ODS_ZZBYQXJYSJEntity.cs | 178 ++++++++++++++++++ .../ods_zzbyqxjysj/ods_zzbyqxjysjBLL.cs | 125 ++++++++++++ .../ods_zzbyqxjysj/ods_zzbyqxjysjIBLL.cs | 48 +++++ .../ods_zzbyqxjysj/ods_zzbyqxjysjService.cs | 166 ++++++++++++++++ .../Learun.Application.TwoDevelopment.csproj | 4 + 13 files changed, 1005 insertions(+) create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Controllers/ods_zzbyqxjysjController.cs create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Views/ods_zzbyqxjysj/Form.cshtml create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Views/ods_zzbyqxjysj/Form.js create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Views/ods_zzbyqxjysj/Index.cshtml create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Views/ods_zzbyqxjysj/Index.js create mode 100644 Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Changyang_zhdn/ODS_ZZBYQXJYSJMap.cs create mode 100644 Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Changyang_zhdn/ods_zzbyqxjysj/ODS_ZZBYQXJYSJEntity.cs create mode 100644 Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Changyang_zhdn/ods_zzbyqxjysj/ods_zzbyqxjysjBLL.cs create mode 100644 Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Changyang_zhdn/ods_zzbyqxjysj/ods_zzbyqxjysjIBLL.cs create mode 100644 Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Changyang_zhdn/ods_zzbyqxjysj/ods_zzbyqxjysjService.cs diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Controllers/ods_zzbyqxjysjController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Controllers/ods_zzbyqxjysjController.cs new file mode 100644 index 000000000..e87cc7323 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Controllers/ods_zzbyqxjysjController.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-09 16:11 + /// 描 述:中职毕业去向【就业】数据表 + /// + public class ods_zzbyqxjysjController : MvcControllerBase + { + private ods_zzbyqxjysjIBLL ods_zzbyqxjysjIBLL = new ods_zzbyqxjysjBLL(); + + #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_zzbyqxjysjIBLL.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_ZZBYQXJYSJData = ods_zzbyqxjysjIBLL.GetODS_ZZBYQXJYSJEntity( keyValue ); + var jsonData = new { + ODS_ZZBYQXJYSJ = ODS_ZZBYQXJYSJData, + }; + return Success(jsonData); + } + #endregion + + #region 提交数据 + + /// + /// 删除实体数据 + /// + /// 主键 + /// + [HttpPost] + [AjaxOnly] + public ActionResult DeleteForm(string keyValue) + { + ods_zzbyqxjysjIBLL.DeleteEntity(keyValue); + return Success("删除成功!"); + } + /// + /// 保存实体数据(新增、修改) + /// + /// 主键 + /// 实体 + /// + [HttpPost] + [ValidateAntiForgeryToken] + [AjaxOnly] + public ActionResult SaveForm(string keyValue, string strEntity) + { + ODS_ZZBYQXJYSJEntity entity = strEntity.ToObject(); + ods_zzbyqxjysjIBLL.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_zzbyqxjysj/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Views/ods_zzbyqxjysj/Form.cshtml new file mode 100644 index 000000000..f557fecbf --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Views/ods_zzbyqxjysj/Form.cshtml @@ -0,0 +1,95 @@ +@{ + ViewBag.Title = "中职毕业去向【就业】数据表"; + Layout = "~/Views/Shared/_Form.cshtml"; +} +
+
+
学校机构代码
+ +
+
+
学校机构名称
+ +
+
+
学号
+ +
+
+
姓名
+ +
+
+
专业名称
+ +
+
+
班级名称
+ +
+
+
身份证号
+ +
+
+
就业单位是否校企合作单位
+ +
+
+
就业单位名称
+ +
+
+
就业单位行业
+
+
+
+
就业单位性质
+
+
+
+
就业单位规模
+
+
+
+
就业渠道
+
+
+
+
合同签订情况
+
+
+
+
起薪线(元)
+ +
+
+
是否对口
+ +
+
+
就业日期
+ +
+
+
是否自主创业
+ +
+
+
创业项目名称
+ +
+
+
是否灵活就业
+ +
+
+
工作内容
+ +
+
+
数据采集时间
+ +
+
+@Html.AppendJsFile("/Areas/Changyang_zhdn/Views/ods_zzbyqxjysj/Form.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Views/ods_zzbyqxjysj/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Views/ods_zzbyqxjysj/Form.js new file mode 100644 index 000000000..6a395b703 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Views/ods_zzbyqxjysj/Form.js @@ -0,0 +1,55 @@ +/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) + * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + * 创建人:超级管理员 + * 日 期:2022-11-09 16:11 + * 描 述:中职毕业去向【就业】数据表 + */ +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 () { + $('#JYDWHY').lrDataItemSelect({ code: 'sxjyhydm' }); + $('#JYDWXZ').lrDataItemSelect({ code: 'dwxzdm' }); + $('#JYDWGM').lrDataItemSelect({ code: 'jydwgmdm' }); + $('#JYQD').lrDataItemSelect({ code: 'jyqddm' }); + $('#HTQDQK').lrDataItemSelect({ code: 'htqdqkdm' }); + }, + initData: function () { + if (!!keyValue) { + $.lrSetForm(top.$.rootUrl + '/Changyang_zhdn/ods_zzbyqxjysj/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_zzbyqxjysj/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_zzbyqxjysj/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Views/ods_zzbyqxjysj/Index.cshtml new file mode 100644 index 000000000..df66c3df4 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Views/ods_zzbyqxjysj/Index.cshtml @@ -0,0 +1,29 @@ +@{ + ViewBag.Title = "中职毕业去向【就业】数据表"; + Layout = "~/Views/Shared/_Index.cshtml"; +} +
+
+
+
+
+
+
+
+ +
+ + +
+
+
+
+
+
+@Html.AppendJsFile("/Areas/Changyang_zhdn/Views/ods_zzbyqxjysj/Index.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Views/ods_zzbyqxjysj/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Views/ods_zzbyqxjysj/Index.js new file mode 100644 index 000000000..aa6fe6ad0 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Changyang_zhdn/Views/ods_zzbyqxjysj/Index.js @@ -0,0 +1,153 @@ +/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) + * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + * 创建人:超级管理员 + * 日 期:2022-11-09 16:11 + * 描 述:中职毕业去向【就业】数据表 + */ +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_zzbyqxjysj/Form', + width: 600, + height: 400, + callBack: function (id) { + return top[id].acceptClick(refreshGirdData); + } + }); + }); + // 编辑 + $('#lr_edit').on('click', function () { + var keyValue = $('#gridtable').jfGridValue('ZZSXJYSJID'); + if (learun.checkrow(keyValue)) { + learun.layerForm({ + id: 'form', + title: '编辑', + url: top.$.rootUrl + '/Changyang_zhdn/ods_zzbyqxjysj/Form?keyValue=' + keyValue, + width: 600, + height: 400, + callBack: function (id) { + return top[id].acceptClick(refreshGirdData); + } + }); + } + }); + // 删除 + $('#lr_delete').on('click', function () { + var keyValue = $('#gridtable').jfGridValue('ZZSXJYSJID'); + if (learun.checkrow(keyValue)) { + learun.layerConfirm('是否确认删除该项!', function (res) { + if (res) { + learun.deleteForm(top.$.rootUrl + '/Changyang_zhdn/ods_zzbyqxjysj/DeleteForm', { keyValue: keyValue}, function () { + refreshGirdData(); + }); + } + }); + } + }); + //  导入 + $('#lr_import').on('click', function () { + }); + }, + // 初始化列表 + initGird: function () { + $('#gridtable').lrAuthorizeJfGrid({ + url: top.$.rootUrl + '/Changyang_zhdn/ods_zzbyqxjysj/GetPageList', + headData: [ + { label: "学校机构代码", name: "XXJGDM", width: 100, align: "left"}, + { label: "学校机构名称", name: "XXJGMC", width: 100, align: "left"}, + { label: "学号", name: "XH", width: 100, align: "left"}, + { label: "姓名", name: "XM", width: 100, align: "left"}, + { label: "专业名称", name: "ZYMC", width: 100, align: "left"}, + { label: "班级名称", name: "BJMC", width: 100, align: "left"}, + { label: "身份证号", name: "SFZH", width: 100, align: "left"}, + { label: "就业单位是否校企合作单位", name: "SFXQHZDW", width: 100, align: "left"}, + { label: "就业单位名称", name: "JYDWMC", width: 100, align: "left"}, + { label: "就业单位行业", name: "JYDWHY", width: 100, align: "left", + formatterAsync: function (callback, value, row, op,$cell) { + learun.clientdata.getAsync('dataItem', { + key: value, + code: 'sxjyhydm', + callback: function (_data) { + callback(_data.text); + } + }); + }}, + { label: "就业单位性质", name: "JYDWXZ", width: 100, align: "left", + formatterAsync: function (callback, value, row, op,$cell) { + learun.clientdata.getAsync('dataItem', { + key: value, + code: 'dwxzdm', + callback: function (_data) { + callback(_data.text); + } + }); + }}, + { label: "就业单位规模", name: "JYDWGM", width: 100, align: "left", + formatterAsync: function (callback, value, row, op,$cell) { + learun.clientdata.getAsync('dataItem', { + key: value, + code: 'jydwgmdm', + callback: function (_data) { + callback(_data.text); + } + }); + }}, + { label: "就业渠道", name: "JYQD", width: 100, align: "left", + formatterAsync: function (callback, value, row, op,$cell) { + learun.clientdata.getAsync('dataItem', { + key: value, + code: 'jyqddm', + callback: function (_data) { + callback(_data.text); + } + }); + }}, + { label: "合同签订情况", name: "HTQDQK", width: 100, align: "left", + formatterAsync: function (callback, value, row, op,$cell) { + learun.clientdata.getAsync('dataItem', { + key: value, + code: 'htqdqkdm', + callback: function (_data) { + callback(_data.text); + } + }); + }}, + { label: "起薪线(元)", name: "QXX", width: 100, align: "left"}, + { label: "是否对口", name: "SFDK", width: 100, align: "left"}, + { label: "就业日期", name: "JYRQ", width: 100, align: "left"}, + { label: "是否自主创业", name: "ZZCY", width: 100, align: "left"}, + { label: "创业项目名称", name: "CYXMMC", width: 100, align: "left"}, + { label: "是否灵活就业", name: "LHJY", width: 100, align: "left"}, + { label: "工作内容", name: "GZNR", width: 100, align: "left"}, + { label: "数据采集时间", name: "SJCJSJ", width: 100, align: "left"}, + ], + mainId:'ZZSXJYSJID', + 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 7afebec0a..58967e8c6 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 @@ -885,6 +885,7 @@ + @@ -6984,6 +6985,10 @@ + + + + diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Changyang_zhdn/ODS_ZZBYQXJYSJMap.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Changyang_zhdn/ODS_ZZBYQXJYSJMap.cs new file mode 100644 index 000000000..83f5d7af3 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Changyang_zhdn/ODS_ZZBYQXJYSJMap.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-09 16:11 + /// 描 述:中职毕业去向【就业】数据表 + /// + public class ODS_ZZBYQXJYSJMap : EntityTypeConfiguration + { + public ODS_ZZBYQXJYSJMap() + { + #region 表、主键 + //表 + this.ToTable("ODS_ZZBYQXJYSJ"); + //主键 + this.HasKey(t => t.ZZSXJYSJID); + #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 d78f4b8d3..4446d4ac8 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 @@ -644,6 +644,7 @@ + diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Changyang_zhdn/ods_zzbyqxjysj/ODS_ZZBYQXJYSJEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Changyang_zhdn/ods_zzbyqxjysj/ODS_ZZBYQXJYSJEntity.cs new file mode 100644 index 000000000..b64c8c1b5 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Changyang_zhdn/ods_zzbyqxjysj/ODS_ZZBYQXJYSJEntity.cs @@ -0,0 +1,178 @@ +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-09 16:11 + /// 描 述:中职毕业去向【就业】数据表 + /// + public class ODS_ZZBYQXJYSJEntity + { + #region 实体成员 + /// + /// 主键数据唯一性标识 + + /// + [Column("ZZSXJYSJID")] + public string ZZSXJYSJID { get; set; } + /// + /// 学校机构代码 + + /// + [Column("XXJGDM")] + public string XXJGDM { get; set; } + /// + /// 学校机构名称 + + /// + [Column("XXJGMC")] + public string XXJGMC { get; set; } + /// + /// 学号 + + /// + [Column("XH")] + public string XH { get; set; } + /// + /// 姓名 + + /// + [Column("XM")] + public string XM { get; set; } + /// + /// 专业名称 + + /// + [Column("ZYMC")] + public string ZYMC { get; set; } + /// + /// 班级名称 + + /// + [Column("BJMC")] + public string BJMC { get; set; } + /// + /// 身份证号 + + /// + [Column("SFZH")] + public string SFZH { get; set; } + /// + /// 就业单位是否校企合作单位 + + /// + [Column("SFXQHZDW")] + public string SFXQHZDW { get; set; } + /// + /// 就业单位名称 + + /// + [Column("JYDWMC")] + public string JYDWMC { get; set; } + /// + /// 就业单位行业 + + /// + [Column("JYDWHY")] + public string JYDWHY { get; set; } + /// + /// 就业单位性质 + + /// + [Column("JYDWXZ")] + public string JYDWXZ { get; set; } + /// + /// 就业单位规模 + + /// + [Column("JYDWGM")] + public string JYDWGM { get; set; } + /// + /// 就业渠道 + + /// + [Column("JYQD")] + public string JYQD { get; set; } + /// + /// 合同签订情况 + + /// + [Column("HTQDQK")] + public string HTQDQK { get; set; } + /// + /// 起薪线(元) + + /// + [Column("QXX")] + public string QXX { get; set; } + /// + /// 是否对口 + + /// + [Column("SFDK")] + public string SFDK { get; set; } + /// + /// 就业日期 + + /// + [Column("JYRQ")] + public string JYRQ { get; set; } + /// + /// 是否自主创业 + + /// + [Column("ZZCY")] + public string ZZCY { get; set; } + /// + /// 创业项目名称 + + /// + [Column("CYXMMC")] + public string CYXMMC { get; set; } + /// + /// 是否灵活就业 + + /// + [Column("LHJY")] + public string LHJY { get; set; } + /// + /// 工作内容 + + /// + [Column("GZNR")] + public string GZNR { get; set; } + /// + /// 数据采集时间 + + /// + [Column("SJCJSJ")] + public string SJCJSJ { get; set; } + #endregion + + #region 扩展操作 + /// + /// 新增调用 + /// + public void Create() + { + this.ZZSXJYSJID = Guid.NewGuid().ToString(); + } + /// + /// 编辑调用 + /// + /// + public void Modify(string keyValue) + { + this.ZZSXJYSJID = keyValue; + } + #endregion + #region 扩展字段 + #endregion + } +} + diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Changyang_zhdn/ods_zzbyqxjysj/ods_zzbyqxjysjBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Changyang_zhdn/ods_zzbyqxjysj/ods_zzbyqxjysjBLL.cs new file mode 100644 index 000000000..37613f3fd --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Changyang_zhdn/ods_zzbyqxjysj/ods_zzbyqxjysjBLL.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-09 16:11 + /// 描 述:中职毕业去向【就业】数据表 + /// + public class ods_zzbyqxjysjBLL : ods_zzbyqxjysjIBLL + { + private ods_zzbyqxjysjService ods_zzbyqxjysjService = new ods_zzbyqxjysjService(); + + #region 获取数据 + + /// + /// 获取页面显示列表数据 + /// + /// 分页参数 + /// 查询参数 + /// + public IEnumerable GetPageList(Pagination pagination, string queryJson) + { + try + { + return ods_zzbyqxjysjService.GetPageList(pagination, queryJson); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowBusinessException(ex); + } + } + } + + /// + /// 获取ODS_ZZBYQXJYSJ表实体数据 + /// + /// 主键 + /// + public ODS_ZZBYQXJYSJEntity GetODS_ZZBYQXJYSJEntity(string keyValue) + { + try + { + return ods_zzbyqxjysjService.GetODS_ZZBYQXJYSJEntity(keyValue); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowBusinessException(ex); + } + } + } + + #endregion + + #region 提交数据 + + /// + /// 删除实体数据 + /// + /// 主键 + public void DeleteEntity(string keyValue) + { + try + { + ods_zzbyqxjysjService.DeleteEntity(keyValue); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowBusinessException(ex); + } + } + } + + /// + /// 保存实体数据(新增、修改) + /// + /// 主键 + /// 实体 + /// + public void SaveEntity(string keyValue, ODS_ZZBYQXJYSJEntity entity) + { + try + { + ods_zzbyqxjysjService.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_zzbyqxjysj/ods_zzbyqxjysjIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Changyang_zhdn/ods_zzbyqxjysj/ods_zzbyqxjysjIBLL.cs new file mode 100644 index 000000000..f26fff85e --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Changyang_zhdn/ods_zzbyqxjysj/ods_zzbyqxjysjIBLL.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-09 16:11 + /// 描 述:中职毕业去向【就业】数据表 + /// + public interface ods_zzbyqxjysjIBLL + { + #region 获取数据 + + /// + /// 获取页面显示列表数据 + /// + /// 查询参数 + /// + IEnumerable GetPageList(Pagination pagination, string queryJson); + /// + /// 获取ODS_ZZBYQXJYSJ表实体数据 + /// + /// 主键 + /// + ODS_ZZBYQXJYSJEntity GetODS_ZZBYQXJYSJEntity(string keyValue); + #endregion + + #region 提交数据 + + /// + /// 删除实体数据 + /// + /// 主键 + void DeleteEntity(string keyValue); + /// + /// 保存实体数据(新增、修改) + /// + /// 主键 + /// 实体 + void SaveEntity(string keyValue, ODS_ZZBYQXJYSJEntity entity); + #endregion + + } +} diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Changyang_zhdn/ods_zzbyqxjysj/ods_zzbyqxjysjService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Changyang_zhdn/ods_zzbyqxjysj/ods_zzbyqxjysjService.cs new file mode 100644 index 000000000..936ed1ae9 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Changyang_zhdn/ods_zzbyqxjysj/ods_zzbyqxjysjService.cs @@ -0,0 +1,166 @@ +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-09 16:11 + /// 描 述:中职毕业去向【就业】数据表 + /// + public class ods_zzbyqxjysjService : RepositoryFactory + { + #region 获取数据 + + /// + /// 获取页面显示列表数据 + /// + /// 查询参数 + /// 查询参数 + /// + public IEnumerable GetPageList(Pagination pagination, string queryJson) + { + try + { + var strSql = new StringBuilder(); + strSql.Append("SELECT "); + strSql.Append(@" + t.ZZSXJYSJID, + t.XXJGDM, + t.XXJGMC, + t.XH, + t.XM, + t.ZYMC, + t.BJMC, + t.SFZH, + t.SFXQHZDW, + t.JYDWMC, + t.JYDWHY, + t.JYDWXZ, + t.JYDWGM, + t.JYQD, + t.HTQDQK, + t.QXX, + t.SFDK, + t.JYRQ, + t.ZZCY, + t.CYXMMC, + t.LHJY, + t.GZNR, + t.SJCJSJ + "); + strSql.Append(" FROM ODS_ZZBYQXJYSJ 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_ZZBYQXJYSJ表实体数据 + /// + /// 主键 + /// + public ODS_ZZBYQXJYSJEntity GetODS_ZZBYQXJYSJEntity(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.ZZSXJYSJID == keyValue); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowServiceException(ex); + } + } + } + + /// + /// 保存实体数据(新增、修改) + /// + /// 主键 + /// 实体 + public void SaveEntity(string keyValue, ODS_ZZBYQXJYSJEntity 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 b9a7bbfb0..a59b82d09 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 @@ -1999,6 +1999,10 @@ + + + +