diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/BookInfo/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/BookInfo/Index.js
index d16cb59d1..ca6d77fbc 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/BookInfo/Index.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/BookInfo/Index.js
@@ -26,8 +26,8 @@ var bootstrap = function ($, learun) {
id: 'form',
title: '新增',
url: top.$.rootUrl + '/EducationalAdministration/BookInfo/Form',
- width: 600,
- height: 400,
+ width: 800,
+ height: 600,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
@@ -41,8 +41,8 @@ var bootstrap = function ($, learun) {
id: 'form',
title: '编辑',
url: top.$.rootUrl + '/EducationalAdministration/BookInfo/Form?keyValue=' + keyValue,
- width: 600,
- height: 400,
+ width: 800,
+ height: 600,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
@@ -69,12 +69,12 @@ var bootstrap = function ($, learun) {
},
// 初始化列表
initGird: function () {
- $('#gridtable').lrAuthorizeJfGrid({
+ $('#gridtable').jfGrid({
url: top.$.rootUrl + '/EducationalAdministration/BookInfo/GetPageList',
headData: [
- { label: "书籍名称", name: "BookName", width: 100, align: "left" },
+ { label: "图书名称", name: "BookName", width: 100, align: "left" },
{ label: "书籍提要", name: "Collation", width: 100, align: "left" },
- { label: "书籍ISBN", name: "ISBN", width: 100, align: "left" },
+ { label: "书籍出版号", name: "ISBN", width: 100, align: "left" },
{
label: "书籍类别号", name: "BookType", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
@@ -94,6 +94,7 @@ var bootstrap = function ($, learun) {
{ label: "出版时间", name: "PublishTime", width: 100, align: "left" },
{ label: "入库时间", name: "AddTime", width: 100, align: "left" },
{ label: "书籍价格", name: "Price", width: 100, align: "left" },
+ { label: "数量", name: "Amount", width: 100, align: "left" },
{
label: "存放位置", name: "BookLocation", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/BookBorrow/BookBorrowService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/BookBorrow/BookBorrowService.cs
index 969b5dd38..665548fe8 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/BookBorrow/BookBorrowService.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/BookBorrow/BookBorrowService.cs
@@ -29,16 +29,9 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
try
{
var strSql = new StringBuilder();
- strSql.Append("SELECT ");
- strSql.Append(@"
- t.ID,
- t.BorrowTime,
- t.ReturnTime,
- t.LibraryCard,
- t.BookID,
- t.CheckMark
- ");
+ strSql.Append("SELECT t.*,b.BookName,b.ISBN,b.Author,b.Publisher ");
strSql.Append(" FROM Book_borrowinfo t ");
+ strSql.Append(" left join Book_info b on t.BookID=b.ID ");
strSql.Append(" WHERE 1=1 ");
var queryParam = queryJson.ToJObject();
// 虚拟参数
@@ -54,10 +47,10 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
dp.Add("LibraryCard", "%" + queryParam["LibraryCard"].ToString() + "%", DbType.String);
strSql.Append(" AND t.LibraryCard Like @LibraryCard ");
}
- if (!queryParam["BookID"].IsEmpty())
+ if (!queryParam["BookName"].IsEmpty())
{
- dp.Add("BookID", "%" + queryParam["BookID"].ToString() + "%", DbType.String);
- strSql.Append(" AND t.BookID Like @BookID ");
+ dp.Add("BookName", "%" + queryParam["BookName"].ToString() + "%", DbType.String);
+ strSql.Append(" AND b.BookName Like @BookName ");
}
return this.BaseRepository().FindList(strSql.ToString(),dp, pagination);
}
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/BookBorrow/Book_borrowinfoEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/BookBorrow/Book_borrowinfoEntity.cs
index 8113df78e..e80a91479 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/BookBorrow/Book_borrowinfoEntity.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/BookBorrow/Book_borrowinfoEntity.cs
@@ -44,6 +44,16 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
///
[Column("CHECKMARK")]
public string CheckMark { get; set; }
+ ///
+ /// 数量
+ ///
+ [Column("AMOUNT")]
+ public int? Amount { get; set; }
+ ///
+ /// 借阅人
+ ///
+ [Column("USERID")]
+ public string UserId { get; set; }
#endregion
#region 扩展操作
@@ -64,6 +74,27 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
#endregion
#region 扩展字段
+
+ ///
+ /// 书籍名称
+ ///
+ [NotMapped]
+ public string BookName { get; set; }
+ ///
+ /// 书籍ISBN
+ ///
+ [NotMapped]
+ public string ISBN { get; set; }
+ ///
+ /// 书籍作者
+ ///
+ [NotMapped]
+ public string Author { get; set; }
+ ///
+ /// 书籍出版社
+ ///
+ [NotMapped]
+ public string Publisher { get; set; }
#endregion
}
}
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/BookInfo/BookInfoService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/BookInfo/BookInfoService.cs
index ad4901284..0e68d167e 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/BookInfo/BookInfoService.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/BookInfo/BookInfoService.cs
@@ -29,23 +29,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
try
{
var strSql = new StringBuilder();
- strSql.Append("SELECT ");
- strSql.Append(@"
- t.ID,
- t.BookName,
- t.Collation,
- t.ISBN,
- t.BookType,
- t.Author,
- t.Publisher,
- t.BookCode,
- t.PublishTime,
- t.AddTime,
- t.Price,
- t.BookLocation,
- t.CheckMark,
- t.Remark
- ");
+ strSql.Append("SELECT t.* ");
strSql.Append(" FROM Book_info t ");
strSql.Append(" WHERE 1=1 ");
var queryParam = queryJson.ToJObject();
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/BookInfo/Book_infoEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/BookInfo/Book_infoEntity.cs
index 0a0741ecc..e1339d497 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/BookInfo/Book_infoEntity.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/BookInfo/Book_infoEntity.cs
@@ -84,6 +84,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
///
[Column("CHECKMARK")]
public string CheckMark { get; set; }
+ ///
+ /// 数量
+ ///
+ [Column("AMOUNT")]
+ public int? Amount { get; set; }
#endregion
#region 扩展操作
diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/config.js b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/config.js
index d304bee48..b14aeb67f 100644
--- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/config.js
+++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/config.js
@@ -23,11 +23,11 @@ export default {
"apiHost": [
// "http://cyzjzx.gnway.cc:31218/"//测试地址接口
// "http://cyzjzx.gnway.cc:29904/"//正式地址接口
- "http://192.168.10.58:8012/"
+ "http://192.168.10.31:8088/"
],
// "webHost":"http://cyzjzx.gnway.cc:30549/",//测试地址
// "webHost":"http://wxd3f.cyzjzx.com/",//正式地址
- "webHost":"http://192.168.10.58:8009/",
+ "webHost":"http://192.168.10.31:8087/",
// 开发环境下自动填充登录账号密码,与接口地址一一对应,只在开发环境下显示
"devAccount": [
// 20201130230 21364200000400266 老师 420528196310072253 学生 420528200606205026 420528200507261428