@@ -0,0 +1,166 @@ | |||
using System; | |||
using Learun.Util; | |||
using System.Data; | |||
using Learun.Application.TwoDevelopment.EducationalAdministration; | |||
using System.Web.Mvc; | |||
using System.Collections.Generic; | |||
using NPOI.SS.Util; | |||
namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2022-01-24 12:19 | |||
/// 描 述:教材信息管理 | |||
/// </summary> | |||
public class TextBookInfoController : MvcControllerBase | |||
{ | |||
private TextBookInfoIBLL textBookInfoIBLL = new TextBookInfoBLL(); | |||
#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 = textBookInfoIBLL.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 TextBookInfoData = textBookInfoIBLL.GetTextBookInfoEntity(keyValue); | |||
var jsonData = new | |||
{ | |||
TextBookInfo = TextBookInfoData, | |||
}; | |||
return Success(jsonData); | |||
} | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[AjaxOnly] | |||
public ActionResult DeleteForm(string keyValue) | |||
{ | |||
textBookInfoIBLL.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) | |||
{ | |||
TextBookInfoEntity entity = strEntity.ToObject<TextBookInfoEntity>(); | |||
if (string.IsNullOrEmpty(keyValue)) | |||
{ | |||
entity.IsValid = true; | |||
entity.IsDel = 0; | |||
} | |||
else | |||
{ | |||
entity.UpdateUserID = LoginUserInfo.Get().userId; | |||
entity.Updatetime = DateTime.Now; | |||
} | |||
var RepetitionList = textBookInfoIBLL.GetRepetitions(keyValue, entity.TextBookNo, entity.TextBookName, entity.PublishNo, entity.DeptNo, entity.Publisher, entity.TextBookNature, entity.TextBookType, entity.Edition, entity.Impression); | |||
if (RepetitionList != null) | |||
{ | |||
return Fail("保存失败请检查数据有重复项!"); | |||
} | |||
else | |||
{ | |||
textBookInfoIBLL.SaveEntity(keyValue, entity); | |||
return Success("保存成功!"); | |||
} | |||
} | |||
#endregion | |||
#region 扩展数据 | |||
/// <summary> | |||
/// 启用 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[AjaxOnly] | |||
public ActionResult EnableEntity(string keyValue, string IsValid) | |||
{ | |||
textBookInfoIBLL.EnabOrDisabEntity(keyValue, IsValid); | |||
return Success("启用成功!"); | |||
} | |||
/// <summary> | |||
/// 禁用 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[AjaxOnly] | |||
public ActionResult DisableEntity(string keyValue, string IsValid) | |||
{ | |||
textBookInfoIBLL.EnabOrDisabEntity(keyValue, IsValid); | |||
return Success("禁用成功!"); | |||
} | |||
#endregion | |||
} | |||
} |
@@ -0,0 +1,79 @@ | |||
@{ | |||
ViewBag.Title = "教材信息管理"; | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap" id="form"> | |||
<div class="col-xs-6 lr-form-item" data-table="TextBookInfo" > | |||
<div class="lr-form-item-title">教材号<font face="宋体">*</font></div> | |||
<input id="TextBookNo" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="TextBookInfo" > | |||
<div class="lr-form-item-title">教材名称</div> | |||
<input id="TextBookName" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="TextBookInfo" > | |||
<div class="lr-form-item-title">出版号<font face="宋体">*</font></div> | |||
<input id="PublishNo" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="TextBookInfo" > | |||
<div class="lr-form-item-title">专业部<font face="宋体">*</font></div> | |||
<div id="DeptNo" isvalid="yes" checkexpession="NotNull" ></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="TextBookInfo" > | |||
<div class="lr-form-item-title">第一作者<font face="宋体">*</font></div> | |||
<input id="FirstAuthor" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="TextBookInfo" > | |||
<div class="lr-form-item-title">其他作者</div> | |||
<input id="OtherAuthor" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="TextBookInfo" > | |||
<div class="lr-form-item-title">出版日期<font face="宋体">*</font></div> | |||
<input id="Pubdate" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#Pubdate').trigger('change'); } })" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="TextBookInfo" > | |||
<div class="lr-form-item-title">出版社<font face="宋体">*</font></div> | |||
<input id="Publisher" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="TextBookInfo" > | |||
<div class="lr-form-item-title">教材类型<font face="宋体">*</font></div> | |||
<div id="TextBookType" isvalid="yes" checkexpession="NotNull" ></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="TextBookInfo" > | |||
<div class="lr-form-item-title">教材性质<font face="宋体">*</font></div> | |||
<div id="TextBookNature" isvalid="yes" checkexpession="NotNull" ></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="TextBookInfo" > | |||
<div class="lr-form-item-title">价格</div> | |||
<input id="Price" type="text" class="form-control" isvalid="yes" checkexpession="PositiveFloatint" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="TextBookInfo" > | |||
<div class="lr-form-item-title">版次</div> | |||
<input id="Edition" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="TextBookInfo" > | |||
<div class="lr-form-item-title">印次</div> | |||
<input id="Impression" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="TextBookInfo" > | |||
<div class="lr-form-item-title">是否有练习册</div> | |||
<div id="IsWorkBook" ></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="TextBookInfo" > | |||
<div class="lr-form-item-title">是否有教参教辅</div> | |||
<div id="IsTeachConsult" ></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="TextBookInfo" > | |||
<div class="lr-form-item-title">内容简介</div> | |||
<textarea id="Description" class="form-control" style="height:100px;" ></textarea> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="TextBookInfo" style="display: none; " > | |||
<div class="lr-form-item-title">当前信息</div> | |||
<input id="CreateUserID" type="text" readonly class="form-control currentInfo lr-currentInfo-user" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="TextBookInfo" style="display: none; " > | |||
<div class="lr-form-item-title">当前信息</div> | |||
<input id="Createdate" type="text" readonly class="form-control currentInfo lr-currentInfo-time" /> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/TextBookInfo/Form.js") |
@@ -0,0 +1,58 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2022-01-24 12:19 | |||
* 描 述:教材信息管理 | |||
*/ | |||
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 () { | |||
$('#DeptNo').lrDataSourceSelect({ code: 'CdDeptInfo', value: 'deptno', text: 'deptname' }); | |||
$('#TextBookType').lrDataItemSelect({ code: 'TextBookType' }); | |||
$('#TextBookNature').lrDataItemSelect({ code: 'TextBookNature' }); | |||
$('#IsWorkBook').lrDataItemSelect({ code: 'YesOrNoBit' }); | |||
$('#IsTeachConsult').lrDataItemSelect({ code: 'YesOrNoBit' }); | |||
$('#CreateUserID')[0].lrvalue = learun.clientdata.get(['userinfo']).userId; | |||
$('#CreateUserID').val(learun.clientdata.get(['userinfo']).realName); | |||
$('#Createdate').val(learun.formatDate(new Date(), 'yyyy-MM-dd hh:mm:ss')); | |||
}, | |||
initData: function () { | |||
if (!!keyValue) { | |||
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/TextBookInfo/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 + '/EducationalAdministration/TextBookInfo/SaveForm?keyValue=' + keyValue, postData, function (res) { | |||
// 保存成功后才回调 | |||
if (!!callBack) { | |||
callBack(); | |||
} | |||
}); | |||
}; | |||
page.init(); | |||
} |
@@ -0,0 +1,50 @@ | |||
@{ | |||
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 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> | |||
<input id="TextBookName" type="text" class="form-control" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">专业部</div> | |||
<div id="DeptNo"></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">教材类型</div> | |||
<div id="TextBookType"></div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">教材性质</div> | |||
<div id="TextBookNature"></div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-tool-right"> | |||
<div class=" btn-group btn-group-sm"> | |||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | |||
</div> | |||
<div class=" btn-group btn-group-sm" learun-authorize="yes"> | |||
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 新增</a> | |||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | |||
<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i> 打印</a> | |||
<a id="lr_enabled" class="btn btn-default"><i class="fa fa-lock"></i> 启用</a> | |||
<a id="lr_disabled" class="btn btn-default"><i class="fa fa-unlock"></i> 禁用</a></div> | |||
</div> | |||
</div> | |||
<div class="lr-layout-body" id="gridtable"></div> | |||
</div> | |||
</div> | |||
</div> | |||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/TextBookInfo/Index.js") |
@@ -0,0 +1,243 @@ | |||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
* 创建人:超级管理员 | |||
* 日 期:2022-01-24 12:19 | |||
* 描 述:教材信息管理 | |||
*/ | |||
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); | |||
$('#DeptNo').lrDataSourceSelect({ code: 'CdDeptInfo', value: 'deptno', text: 'deptname' }); | |||
$('#TextBookType').lrDataItemSelect({ code: 'TextBookType' }); | |||
$('#TextBookNature').lrDataItemSelect({ code: 'TextBookNature' }); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
}); | |||
// 新增 | |||
$('#lr_add').on('click', function () { | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '新增', | |||
url: top.$.rootUrl + '/EducationalAdministration/TextBookInfo/Form', | |||
width: 800, | |||
height: 500, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
}); | |||
// 编辑 | |||
$('#lr_edit').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
if (learun.checkrow(keyValue)) { | |||
if (keyValue.indexOf(',') != -1) { | |||
learun.alert.warning("只能选择一条记录进行编辑!"); | |||
return; | |||
} | |||
var IsValid = $('#gridtable').jfGridValue('IsValid'); | |||
if (IsValid == "true") { | |||
learun.alert.warning("选中记录中包含已启用项目,已启用项不可编辑!"); | |||
return; | |||
} | |||
learun.layerForm({ | |||
id: 'form', | |||
title: '编辑', | |||
url: top.$.rootUrl + '/EducationalAdministration/TextBookInfo/Form?keyValue=' + keyValue, | |||
width: 800, | |||
height: 500, | |||
callBack: function (id) { | |||
return top[id].acceptClick(refreshGirdData); | |||
} | |||
}); | |||
} | |||
}); | |||
// 删除 | |||
$('#lr_delete').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
if (learun.checkrow(keyValue)) { | |||
var IsValid = $('#gridtable').jfGridValue('IsValid'); | |||
if (IsValid.indexOf('true') != -1) { | |||
learun.alert.warning("选中记录中包含已启用项目,已启用项不能删除!"); | |||
return; | |||
} | |||
learun.layerConfirm('是否确认删除该项!', function (res) { | |||
if (res) { | |||
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/TextBookInfo/DeleteForm', { keyValue: keyValue }, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
// 打印 | |||
$('#lr_print').on('click', function () { | |||
$('#gridtable').jqprintTable(); | |||
}); | |||
//启用 | |||
$('#lr_enabled').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
if (learun.checkrow(keyValue)) { | |||
var IsValid = $('#gridtable').jfGridValue('IsValid'); | |||
if (IsValid.indexOf('true') != -1) { | |||
learun.alert.warning("选中记录中包含已启用项!"); | |||
return; | |||
} | |||
learun.layerConfirm('是否确认启用选中项?', function (res) { | |||
if (res) { | |||
learun.postForm(top.$.rootUrl + '/EducationalAdministration/TextBookInfo/EnableEntity', { keyValue: keyValue, IsValid: '1' }, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
//禁用 | |||
$('#lr_disabled').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||
if (learun.checkrow(keyValue)) { | |||
var IsValid = $('#gridtable').jfGridValue('IsValid'); | |||
if (IsValid.indexOf('false') != -1) { | |||
learun.alert.warning("选中记录中包含已启用项!"); | |||
return; | |||
} | |||
learun.layerConfirm('是否确认禁用选中项?', function (res) { | |||
if (res) { | |||
learun.postForm(top.$.rootUrl + '/EducationalAdministration/TextBookInfo/DisableEntity', { keyValue: keyValue, IsValid: '0' }, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
}); | |||
} | |||
}); | |||
}, | |||
// 初始化列表 | |||
initGird: function () { | |||
$('#gridtable').lrAuthorizeJfGrid({ | |||
url: top.$.rootUrl + '/EducationalAdministration/TextBookInfo/GetPageList', | |||
headData: [ | |||
{ label: "教材号", name: "TextBookNo", width: 150, align: "left" }, | |||
{ label: "教材名称", name: "TextBookName", width: 150, align: "left" }, | |||
{ label: "出版号", name: "PublishNo", width: 100, align: "left" }, | |||
{ | |||
label: "专业部", name: "DeptNo", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo', | |||
key: value, | |||
keyId: 'deptno', | |||
callback: function (_data) { | |||
callback(_data['deptname']); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: "第一作者", name: "FirstAuthor", width: 100, align: "left" }, | |||
{ label: "其他作者", name: "OtherAuthor", width: 100, align: "left" }, | |||
{ | |||
label: "出版日期", name: "Pubdate", width: 80, align: "left", | |||
formatter: function (value) { | |||
return learun.formatDate(value, 'yyyy-MM-dd'); | |||
} | |||
}, | |||
{ label: "出版社", name: "Publisher", width: 100, align: "left" }, | |||
{ | |||
label: "教材类型", name: "TextBookType", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'TextBookType', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
{ | |||
label: "教材性质", name: "TextBookNature", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('dataItem', { | |||
key: value, | |||
code: 'TextBookNature', | |||
callback: function (_data) { | |||
callback(_data.text); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: "价格", name: "Price", width: 60, align: "left" }, | |||
{ label: "版次", name: "Edition", width: 100, align: "left" }, | |||
{ label: "印次", name: "Impression", width: 100, align: "left" }, | |||
{ | |||
label: "是否有练习册", name: "IsWorkBook", width: 100, align: "left", | |||
formatter: function (cellvalue) { | |||
return cellvalue == true ? "<span class=\"label label-success\">是</span>" : | |||
"<span class=\"label label-danger\">否</span>"; | |||
} | |||
}, | |||
{ | |||
label: "是否有教参教辅", name: "IsTeachConsult", width: 100, align: "left", | |||
formatter: function (cellvalue) { | |||
return cellvalue == true ? "<span class=\"label label-success\">是</span>" : | |||
"<span class=\"label label-danger\">否</span>"; | |||
} | |||
}, | |||
{ label: "内容简介", name: "Description", width: 100, align: "left" }, | |||
{ | |||
label: "录入用户", name: "CreateUserID", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('user', { | |||
key: value, | |||
callback: function (_data) { | |||
callback(_data.name); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: "录入时间", name: "Createdate", width: 100, align: "left" }, | |||
{ | |||
label: "修改用户", name: "UpdateUserID", width: 100, align: "left", | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
learun.clientdata.getAsync('user', { | |||
key: value, | |||
callback: function (_data) { | |||
callback(_data.name); | |||
} | |||
}); | |||
} | |||
}, | |||
{ label: "修改时间", name: "Updatetime", width: 100, align: "left" }, | |||
{ | |||
label: "是否有效", name: "IsValid", width: 80, align: "center", | |||
formatter: function (cellvalue) { | |||
return cellvalue == true ? "<i class=\"fa fa-toggle-on\"></i>" : "<i class=\"fa fa-toggle-off\"></i>"; | |||
} | |||
} | |||
], | |||
mainId: 'ID', | |||
isPage: true, | |||
isMultiselect: true, | |||
sidx: 'Createdate desc' | |||
}); | |||
page.search(); | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
param.SqlParameter = " and Isdel = '0' "; | |||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
refreshGirdData = function () { | |||
$('#gridtable').jfGridSet('reload'); | |||
}; | |||
page.init(); | |||
} |
@@ -836,6 +836,7 @@ | |||
<Compile Include="Areas\LR_Desktop\Controllers\FormulaChildController.cs" /> | |||
<Compile Include="Areas\LogisticsManagement\Controllers\ProjectProcessManageController.cs" /> | |||
<Compile Include="Areas\PersonnelManagement\Controllers\FD_BudgetFileController.cs" /> | |||
<Compile Include="Areas\EducationalAdministration\Controllers\TextBookInfoController.cs" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<Content Include="Areas\AdmissionsPlatform\Views\AP_OnlineUserInfo\DropOutIndex.js" /> | |||
@@ -6630,6 +6631,10 @@ | |||
<Content Include="Areas\PersonnelManagement\Views\FD_BudgetFile\Index.js" /> | |||
<Content Include="Areas\PersonnelManagement\Views\FD_BudgetFile\Form.cshtml" /> | |||
<Content Include="Areas\PersonnelManagement\Views\FD_BudgetFile\Form.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\TextBookInfo\Index.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\TextBookInfo\Index.js" /> | |||
<Content Include="Areas\EducationalAdministration\Views\TextBookInfo\Form.cshtml" /> | |||
<Content Include="Areas\EducationalAdministration\Views\TextBookInfo\Form.js" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<Folder Include="Areas\EducationalAdministration\Views\OpenLessonPlanOfElectivePre\" /> | |||
@@ -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 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2022-01-24 12:19 | |||
/// 描 述:教材信息管理 | |||
/// </summary> | |||
public class TextBookInfoMap : EntityTypeConfiguration<TextBookInfoEntity> | |||
{ | |||
public TextBookInfoMap() | |||
{ | |||
#region 表、主键 | |||
//表 | |||
this.ToTable("TEXTBOOKINFO"); | |||
//主键 | |||
this.HasKey(t => t.ID); | |||
#endregion | |||
#region 配置关系 | |||
#endregion | |||
} | |||
} | |||
} | |||
@@ -590,6 +590,7 @@ | |||
<Compile Include="EducationalAdministration\FillinFromMap.cs" /> | |||
<Compile Include="LogisticsManagement\ProjectProcessManageMap.cs" /> | |||
<Compile Include="PersonnelManagement\FD_BudgetFileMap.cs" /> | |||
<Compile Include="EducationalAdministration\TextBookInfoMap.cs" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj"> | |||
@@ -0,0 +1,169 @@ | |||
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 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2022-01-24 12:19 | |||
/// 描 述:教材信息管理 | |||
/// </summary> | |||
public class TextBookInfoBLL : TextBookInfoIBLL | |||
{ | |||
private TextBookInfoService textBookInfoService = new TextBookInfoService(); | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取页面显示列表数据 | |||
/// </summary> | |||
/// <param name="pagination">分页参数</param> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
public IEnumerable<TextBookInfoEntity> GetPageList(Pagination pagination, string queryJson) | |||
{ | |||
try | |||
{ | |||
return textBookInfoService.GetPageList(pagination, queryJson); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 获取TextBookInfo表实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
public TextBookInfoEntity GetTextBookInfoEntity(string keyValue) | |||
{ | |||
try | |||
{ | |||
return textBookInfoService.GetTextBookInfoEntity(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 | |||
{ | |||
textBookInfoService.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, TextBookInfoEntity entity) | |||
{ | |||
try | |||
{ | |||
textBookInfoService.SaveEntity(keyValue, entity); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
#endregion | |||
#region 扩展数据 | |||
/// <summary> | |||
/// 启用或禁用 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <param name="IsValid">状态</param> | |||
public void EnabOrDisabEntity(string keyValue, string IsValid) | |||
{ | |||
try | |||
{ | |||
textBookInfoService.EnabOrDisabEntity(keyValue, IsValid); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
#endregion | |||
public TextBookInfoEntity GetRepetitions(string keyValue, string TextBookNo, string TextBookName, string PublishNo, string DeptNo, string Publisher, string TextBookNature, string TextBookType, string Edition, string Impression) | |||
{ | |||
try | |||
{ | |||
return textBookInfoService.GetRepetitions(keyValue, TextBookNo, TextBookName, PublishNo, DeptNo, Publisher, TextBookNature, TextBookType, Edition, Impression); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowBusinessException(ex); | |||
} | |||
} | |||
} | |||
} | |||
} |
@@ -0,0 +1,155 @@ | |||
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 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2022-01-24 12:19 | |||
/// 描 述:教材信息管理 | |||
/// </summary> | |||
public class TextBookInfoEntity | |||
{ | |||
#region 实体成员 | |||
/// <summary> | |||
/// ID | |||
/// </summary> | |||
[Column("ID")] | |||
public string ID { get; set; } | |||
/// <summary> | |||
/// 专业部 | |||
/// </summary> | |||
[Column("DEPTNO")] | |||
public string DeptNo { get; set; } | |||
/// <summary> | |||
/// 教材号 | |||
/// </summary> | |||
[Column("TEXTBOOKNO")] | |||
public string TextBookNo { get; set; } | |||
/// <summary> | |||
/// 教材名称 | |||
/// </summary> | |||
[Column("TEXTBOOKNAME")] | |||
public string TextBookName { get; set; } | |||
/// <summary> | |||
/// 出版号 | |||
/// </summary> | |||
[Column("PUBLISHNO")] | |||
public string PublishNo { get; set; } | |||
/// <summary> | |||
/// 第一作者 | |||
/// </summary> | |||
[Column("FIRSTAUTHOR")] | |||
public string FirstAuthor { get; set; } | |||
/// <summary> | |||
/// 其他作者 | |||
/// </summary> | |||
[Column("OTHERAUTHOR")] | |||
public string OtherAuthor { get; set; } | |||
/// <summary> | |||
/// 出版日期 | |||
/// </summary> | |||
[Column("PUBDATE")] | |||
public DateTime? Pubdate { get; set; } | |||
/// <summary> | |||
/// 出版社 | |||
/// </summary> | |||
[Column("PUBLISHER")] | |||
public string Publisher { get; set; } | |||
/// <summary> | |||
/// 教材类型 | |||
/// </summary> | |||
[Column("TEXTBOOKTYPE")] | |||
public string TextBookType { get; set; } | |||
/// <summary> | |||
/// 教材性质 | |||
/// </summary> | |||
[Column("TEXTBOOKNATURE")] | |||
public string TextBookNature { get; set; } | |||
/// <summary> | |||
/// 价格 | |||
/// </summary> | |||
[Column("PRICE")] | |||
public decimal? Price { get; set; } | |||
/// <summary> | |||
/// 版次 | |||
/// </summary> | |||
[Column("EDITION")] | |||
public string Edition { get; set; } | |||
/// <summary> | |||
/// 印次 | |||
/// </summary> | |||
[Column("IMPRESSION")] | |||
public string Impression { get; set; } | |||
/// <summary> | |||
/// 是否有练习册 | |||
/// </summary> | |||
[Column("ISWORKBOOK")] | |||
public bool? IsWorkBook { get; set; } | |||
/// <summary> | |||
/// 是否有教参教辅 | |||
/// </summary> | |||
[Column("ISTEACHCONSULT")] | |||
public bool? IsTeachConsult { get; set; } | |||
/// <summary> | |||
/// 内容简介 | |||
/// </summary> | |||
[Column("DESCRIPTION")] | |||
public string Description { get; set; } | |||
/// <summary> | |||
/// 是否有效 | |||
/// </summary> | |||
[Column("ISVALID")] | |||
public bool? IsValid { get; set; } | |||
/// <summary> | |||
/// Createdate | |||
/// </summary> | |||
[Column("CREATEDATE")] | |||
public DateTime? Createdate { get; set; } | |||
/// <summary> | |||
/// Updatetime | |||
/// </summary> | |||
[Column("UPDATETIME")] | |||
public DateTime? Updatetime { get; set; } | |||
/// <summary> | |||
/// CreateUserID | |||
/// </summary> | |||
[Column("CREATEUSERID")] | |||
public string CreateUserID { get; set; } | |||
/// <summary> | |||
/// UpdateUserID | |||
/// </summary> | |||
[Column("UPDATEUSERID")] | |||
public string UpdateUserID { get; set; } | |||
/// <summary> | |||
/// 删除 0 1 | |||
/// </summary> | |||
public int? IsDel { get; set; } | |||
#endregion | |||
#region 扩展操作 | |||
/// <summary> | |||
/// 新增调用 | |||
/// </summary> | |||
public void Create() | |||
{ | |||
this.ID = Guid.NewGuid().ToString(); | |||
} | |||
/// <summary> | |||
/// 编辑调用 | |||
/// </summary> | |||
/// <param name="keyValue"></param> | |||
public void Modify(string keyValue) | |||
{ | |||
this.ID = keyValue; | |||
} | |||
#endregion | |||
#region 扩展字段 | |||
#endregion | |||
} | |||
} | |||
@@ -0,0 +1,69 @@ | |||
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 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2022-01-24 12:19 | |||
/// 描 述:教材信息管理 | |||
/// </summary> | |||
public interface TextBookInfoIBLL | |||
{ | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取页面显示列表数据 | |||
/// </summary> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
IEnumerable<TextBookInfoEntity> GetPageList(Pagination pagination, string queryJson); | |||
/// <summary> | |||
/// 获取TextBookInfo表实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
TextBookInfoEntity GetTextBookInfoEntity(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, TextBookInfoEntity entity); | |||
#endregion | |||
#region 扩展数据 | |||
/// <summary> | |||
/// 启用或禁用 | |||
/// </summary> | |||
/// <param name="keyValue"></param> | |||
/// <param name="IsValid"></param> | |||
void EnabOrDisabEntity(string keyValue, string IsValid); | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="TextBookName">名称</param> | |||
/// <param name="PublishNo">出版号</param> | |||
/// <param name="DeptNo">专业部</param> | |||
/// <param name="Publisher"></param> | |||
/// <param name="TextBookNature"></param> | |||
/// <param name="TextBookType"></param> | |||
/// <param name="Impression">版次</param> | |||
/// <returns></returns> | |||
TextBookInfoEntity GetRepetitions(string keyValue,string TextBookNo, string TextBookName, string PublishNo, string DeptNo, string Publisher, string TextBookNature, string TextBookType, string Edition, string Impression); | |||
#endregion | |||
} | |||
} |
@@ -0,0 +1,255 @@ | |||
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.EducationalAdministration | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 | |||
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2022-01-24 12:19 | |||
/// 描 述:教材信息管理 | |||
/// </summary> | |||
public class TextBookInfoService : RepositoryFactory | |||
{ | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取页面显示列表数据 | |||
/// </summary> | |||
/// <param name="pagination">查询参数</param> | |||
/// <param name="queryJson">查询参数</param> | |||
/// <returns></returns> | |||
public IEnumerable<TextBookInfoEntity> GetPageList(Pagination pagination, string queryJson) | |||
{ | |||
try | |||
{ | |||
var strSql = new StringBuilder(); | |||
strSql.Append("SELECT "); | |||
strSql.Append(@" * "); | |||
strSql.Append(" FROM TextBookInfo t "); | |||
strSql.Append(" WHERE 1=1 "); | |||
var queryParam = queryJson.ToJObject(); | |||
// 虚拟参数 | |||
var dp = new DynamicParameters(new { }); | |||
if (!queryParam["TextBookName"].IsEmpty()) | |||
{ | |||
dp.Add("TextBookName", "%" + queryParam["TextBookName"].ToString() + "%", DbType.String); | |||
strSql.Append(" AND t.TextBookName Like @TextBookName "); | |||
} | |||
if (!queryParam["DeptNo"].IsEmpty()) | |||
{ | |||
dp.Add("DeptNo", queryParam["DeptNo"].ToString(), DbType.String); | |||
strSql.Append(" AND t.DeptNo = @DeptNo "); | |||
} | |||
if (!queryParam["TextBookType"].IsEmpty()) | |||
{ | |||
dp.Add("TextBookType", queryParam["TextBookType"].ToString(), DbType.String); | |||
strSql.Append(" AND t.TextBookType = @TextBookType "); | |||
} | |||
if (!queryParam["TextBookNature"].IsEmpty()) | |||
{ | |||
dp.Add("TextBookNature", queryParam["TextBookNature"].ToString(), DbType.String); | |||
strSql.Append(" AND t.TextBookNature = @TextBookNature "); | |||
} | |||
if (!queryParam["SqlParameter"].IsEmpty()) | |||
{ | |||
strSql.Append(queryParam["SqlParameter"].ToString()); | |||
} | |||
return this.BaseRepository("CollegeMIS").FindList<TextBookInfoEntity>(strSql.ToString(), dp, pagination); | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 获取TextBookInfo表实体数据 | |||
/// </summary> | |||
/// <param name="keyValue">主键</param> | |||
/// <returns></returns> | |||
public TextBookInfoEntity GetTextBookInfoEntity(string keyValue) | |||
{ | |||
try | |||
{ | |||
return this.BaseRepository("CollegeMIS").FindEntity<TextBookInfoEntity>(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) | |||
{ | |||
var db = this.BaseRepository("CollegeMIS").BeginTrans(); | |||
try | |||
{ | |||
var keyValueArr = keyValue.Split(','); | |||
foreach (var item in keyValueArr) | |||
{ | |||
var entity = BaseRepository("CollegeMIS").FindEntity<TextBookInfoEntity>(x => x.ID == item); | |||
entity.IsDel = 1; | |||
db.Update(entity); | |||
} | |||
db.Commit(); | |||
} | |||
catch (Exception ex) | |||
{ | |||
db.Rollback(); | |||
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, TextBookInfoEntity 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> | |||
/// <param name="keyValue"></param> | |||
public void EnabOrDisabEntity(string keyValue, string IsValid) | |||
{ | |||
var db = this.BaseRepository("CollegeMIS").BeginTrans(); | |||
try | |||
{ | |||
var keyValueArr = keyValue.Split(','); | |||
foreach (var item in keyValueArr) | |||
{ | |||
var entity = BaseRepository("CollegeMIS").FindEntity<TextBookInfoEntity>(x => x.ID == item); | |||
entity.IsValid = IsValid.ToString() == "1" ? true : false; | |||
db.Update(entity); | |||
} | |||
db.Commit(); | |||
} | |||
catch (Exception ex) | |||
{ | |||
db.Rollback(); | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 去重 | |||
/// </summary> | |||
/// <param name="keyValue"></param> | |||
/// <param name="TextBookNo"></param> | |||
/// <param name="TextBookName"></param> | |||
/// <param name="PublishNo"></param> | |||
/// <param name="DeptNo"></param> | |||
/// <param name="Publisher"></param> | |||
/// <param name="TextBookNature"></param> | |||
/// <param name="TextBookType"></param> | |||
/// <param name="Edition"></param> | |||
/// <param name="Impression"></param> | |||
/// <returns></returns> | |||
public TextBookInfoEntity GetRepetitions(string keyValue, string TextBookNo, string TextBookName, string PublishNo, string DeptNo, string Publisher, string TextBookNature, string TextBookType, string Edition, string Impression) | |||
{ | |||
try | |||
{ | |||
if (!string.IsNullOrEmpty(keyValue)) | |||
{ | |||
return this.BaseRepository("CollegeMIS").FindEntity<TextBookInfoEntity>( | |||
x => x.ID != keyValue && x.TextBookNo == TextBookNo && x.TextBookName == TextBookName && x.PublishNo == PublishNo && | |||
x.DeptNo == DeptNo && x.PublishNo == Publisher && x.TextBookNature == TextBookNature && x.TextBookType == TextBookType | |||
&& x.Edition == Edition && x.Impression == Impression && x.IsDel == 0); | |||
} | |||
else | |||
{ | |||
return this.BaseRepository("CollegeMIS").FindEntity<TextBookInfoEntity>( | |||
x => x.TextBookNo == TextBookNo && x.TextBookName == TextBookName && x.PublishNo == PublishNo && | |||
x.DeptNo == DeptNo && x.PublishNo == Publisher && x.TextBookNature == TextBookNature && x.TextBookType == TextBookType | |||
&& x.Edition == Edition && x.Impression == Impression && x.IsDel == 0); | |||
} | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
#endregion | |||
} | |||
} |
@@ -1790,6 +1790,10 @@ | |||
<Compile Include="PersonnelManagement\FD_BudgetFile\FD_BudgetFileService.cs" /> | |||
<Compile Include="PersonnelManagement\FD_BudgetFile\FD_BudgetFileBLL.cs" /> | |||
<Compile Include="PersonnelManagement\FD_BudgetFile\FD_BudgetFileIBLL.cs" /> | |||
<Compile Include="EducationalAdministration\TextBookInfo\TextBookInfoEntity.cs" /> | |||
<Compile Include="EducationalAdministration\TextBookInfo\TextBookInfoService.cs" /> | |||
<Compile Include="EducationalAdministration\TextBookInfo\TextBookInfoBLL.cs" /> | |||
<Compile Include="EducationalAdministration\TextBookInfo\TextBookInfoIBLL.cs" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj"> | |||