From 874a141df49dcb98de823caa92d114646cf919b8 Mon Sep 17 00:00:00 2001
From: zhichao lei <442149704@qq.com>
Date: Mon, 30 Nov 2020 15:26:54 +0800
Subject: [PATCH 2/5] =?UTF-8?q?=E8=B5=84=E4=BA=A7=E6=96=B9=E9=9D=A2?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Views/Ass_AssetsInfo/Form.cshtml | 10 +-
.../Views/Ass_AssetsInfo/Index.js | 2 +-
.../Views/Ass_AssetsInfoItem/Index.js | 12 +-
.../Views/Ass_AssetsInfoItemApply/Form.cshtml | 2 +-
.../Views/Ass_AssetsInfoItemApply/Form.js | 20 +--
.../Views/Ass_AssetsOutItemApply/Form.cshtml | 6 +-
.../Views/Ass_AssetsOutItemApply/Form.js | 21 +++
.../Views/Ass_Receive/Form.js | 17 ++-
.../Views/LR_Content/script/lr-clientdata.js | 2 +-
.../Ass_AssetsInfo/Ass_AssetsInfoService.cs | 129 ++++++++----------
.../Ass_AssetsInfoApplyService.cs | 23 +++-
.../Ass_AssetsInfoItemEntity.cs | 2 +-
.../Ass_AssetsInfoItemService.cs | 2 +
.../Ass_Receive/Ass_ReceiveService.cs | 9 +-
14 files changed, 147 insertions(+), 110 deletions(-)
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfo/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfo/Form.cshtml
index 439bd249c..7fb91d9e1 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfo/Form.cshtml
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfo/Form.cshtml
@@ -4,7 +4,7 @@
}
+
+
-
数量单位
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsOutItemApply/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsOutItemApply/Form.js
index 4f8b2df85..6badb154c 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsOutItemApply/Form.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsOutItemApply/Form.js
@@ -67,6 +67,27 @@ var bootstrap = function ($, learun) {
grid: [
{ label: '资产编号', name: 'aicodenumjy', width: 150, align: 'left' },
{ label: '资产名称', name: 'aiassname', width: 150, align: 'left' },
+ {
+ label: '使用部门', name: 'aidepartment', width: 150, align: 'left', formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('department', {
+ key: value,
+ callback: function (_data) {
+ callback(_data.name);
+ }
+ });
+ }
+ },
+ {
+ label: '使用人员', name: 'aiusepeople', width: 150, align: 'left',
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('user', {
+ key: value,
+ callback: function (_data) {
+ callback(_data.name);
+ }
+ });
+ }
+ },
{
label: '所在库房', name: 'aiistorageid', width: 100, align: 'left', formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Receive/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Receive/Form.js
index e1c462623..73e5764cc 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Receive/Form.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Receive/Form.js
@@ -39,7 +39,10 @@ var bootstrap = function ($, learun) {
},
{
- label: "数量", name: "ANum", width: 100, align: "left",
+ label: "库存数量", name: "ACNum", width: 100, align: "left",
+ },
+ {
+ label: "领取数量", name: "ANum", width: 100, align: "left",
edit: {
type: 'input',
inputType: 'number',
@@ -111,6 +114,10 @@ var bootstrap = function ($, learun) {
$('.jfgrid-data-cell[colname="AID"][rowIndex="' + rowIndex + '"]').attr('title', data.AId).html(data.AId);
$('#Ass_ReceiveItem')[0].dfop.running.rowdata[rowIndex]['jfgridRowData']['AID'] = data.AId;
+ $('jfgrid_edit_Ass_ReceiveItem_' + 'ACNum').val(data.AId);
+ $('.jfgrid-data-cell[colname="ACNum"][rowIndex="' + rowIndex + '"]').attr('title', data.AStock).html(data.AStock);
+ $('#Ass_ReceiveItem')[0].dfop.running.rowdata[rowIndex]['jfgridRowData']['ACNum'] = data.AStock;
+
});
}
},
@@ -151,7 +158,7 @@ var bootstrap = function ($, learun) {
}
});
}
- callback && callback();
+ callback && callback();
}
// 验证数据是否填写完整
validForm = function () {
@@ -174,7 +181,11 @@ var bootstrap = function ($, learun) {
$.each(itemList, function (i, item) {
if (item.ANum <= 0) {
learun.alert.warning("请填写<" + item.AName + ">的申请数量");
- num++
+ num++;
+ }
+ if (item.ANum > item.ACNum) {
+ learun.alert.warning("领取数量不能大于库存数量!");
+ num++;
}
})
if (num > 0) {
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/script/lr-clientdata.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/script/lr-clientdata.js
index f4c39a842..a0bfe76cd 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/script/lr-clientdata.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/script/lr-clientdata.js
@@ -301,7 +301,7 @@
}
else {
var data = storage.get("userData").data || {};
- var keys = op.key.split(',');
+ var keys = (op.key || '').split(',');
var array=new Array();
if (keys.length > 1) {
$.each(keys,
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_AssetsInfo/Ass_AssetsInfoService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_AssetsInfo/Ass_AssetsInfoService.cs
index eb78cd936..c9bbd1084 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_AssetsInfo/Ass_AssetsInfoService.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_AssetsInfo/Ass_AssetsInfoService.cs
@@ -273,94 +273,39 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem
db.Delete
(m => m.AIId == Ass_AssetsInfoItem.AId);
db.Delete(Ass_AssetsInfoItem);
}
- //新增明细
- if (entity.HasDetail == true)
- {
- if (entity.AStock > 0)
- {
- for (int i = 0; i < entity.AStock; i++)
- {
- var Ass_AssetsInfoItem = new Ass_AssetsInfoItemEntity();
- Ass_AssetsInfoItem.Create();
- Ass_AssetsInfoItem.AId = entity.AId;
- Ass_AssetsInfoItem.AICodeNum = i + 1;
- Ass_AssetsInfoItem.AICode = entity.ACode + "_" + Ass_AssetsInfoItem.AICodeNum;
- Ass_AssetsInfoItem.AIIStorageId = entity.AIIStorageId;
- Ass_AssetsInfoItem.AIIStoragePosition = entity.AIIStoragePosition;
- Ass_AssetsInfoItem.AIIsInStorage = true;
- Ass_AssetsInfoItem.AISpecification = entity.ASpecification;
- Ass_AssetsInfoItem.AIUse = entity.AUse;
- db.Insert(Ass_AssetsInfoItem);
- }
- }
- else
- {
- var Ass_AssetsInfoItem = new Ass_AssetsInfoItemEntity();
- Ass_AssetsInfoItem.Create();
- Ass_AssetsInfoItem.AId = entity.AId;
- Ass_AssetsInfoItem.AICodeNum = 1;
- Ass_AssetsInfoItem.AICode = entity.ACode + "_" + Ass_AssetsInfoItem.AICodeNum;
- Ass_AssetsInfoItem.AIIStorageId = entity.AIIStorageId;
- Ass_AssetsInfoItem.AIIStoragePosition = entity.AIIStoragePosition;
- Ass_AssetsInfoItem.AIIsInStorage = false;
- Ass_AssetsInfoItem.AISpecification = entity.ASpecification;
- Ass_AssetsInfoItem.AIUse = entity.AUse;
- db.Insert(Ass_AssetsInfoItem);
- }
- }
- else
- {
- var Ass_AssetsInfoItem = new Ass_AssetsInfoItemEntity();
- Ass_AssetsInfoItem.Create();
- Ass_AssetsInfoItem.AId = entity.AId;
- Ass_AssetsInfoItem.AICodeNum = 1;
- Ass_AssetsInfoItem.AICode = entity.ACode + "_" + Ass_AssetsInfoItem.AICodeNum;
- Ass_AssetsInfoItem.AIIStorageId = entity.AIIStorageId;
- Ass_AssetsInfoItem.AIIStoragePosition = entity.AIIStoragePosition;
- Ass_AssetsInfoItem.AIIsInStorage = entity.AStock > 0;
- Ass_AssetsInfoItem.AISpecification = entity.ASpecification;
- Ass_AssetsInfoItem.AIUse = entity.AUse;
- db.Insert(Ass_AssetsInfoItem);
- }
+
}
else
{
entity.Create();
db.Insert(entity);
- if (entity.HasDetail == true)
+ }
+
+ //新增明细
+ if (entity.HasDetail == true)
+ {
+ if (entity.AStock > 0)
{
- if (entity.AStock > 0)
- {
- for (int i = 0; i < entity.AStock; i++)
- {
- var Ass_AssetsInfoItem = new Ass_AssetsInfoItemEntity();
- Ass_AssetsInfoItem.Create();
- Ass_AssetsInfoItem.AId = entity.AId;
- Ass_AssetsInfoItem.AIASSName = entity.AName;
- Ass_AssetsInfoItem.AICodeNumJY = entity.ACode;
- Ass_AssetsInfoItem.AICodeNum = i + 1;
- Ass_AssetsInfoItem.AICode = entity.ACode + "_" + Ass_AssetsInfoItem.AICodeNum;
- Ass_AssetsInfoItem.AIIStorageId = entity.AIIStorageId;
- Ass_AssetsInfoItem.AIIStoragePosition = entity.AIIStoragePosition;
- Ass_AssetsInfoItem.AIIsInStorage = true;
- Ass_AssetsInfoItem.AISpecification = entity.ASpecification;
- Ass_AssetsInfoItem.AIAssType = entity.AAssType;
- Ass_AssetsInfoItem.AIUse = entity.AUse;
- db.Insert(Ass_AssetsInfoItem);
- }
- }
- else
+ for (int i = 0; i < entity.AStock; i++)
{
var Ass_AssetsInfoItem = new Ass_AssetsInfoItemEntity();
Ass_AssetsInfoItem.Create();
Ass_AssetsInfoItem.AId = entity.AId;
Ass_AssetsInfoItem.AIASSName = entity.AName;
- Ass_AssetsInfoItem.AICodeNumJY = entity.ACode;
- Ass_AssetsInfoItem.AICodeNum = 1;
+ Ass_AssetsInfoItem.AIAssValue = entity.APrice;//价值
+ Ass_AssetsInfoItem.AIUnits = entity.AUnit;//单位
+ Ass_AssetsInfoItem.AISpecificationtype = entity.AModel;//型号
+ Ass_AssetsInfoItem.AIASSClass = entity.ATId;//类别
+ Ass_AssetsInfoItem.AIManufacturer = entity.AManufacturer;//厂家
+ Ass_AssetsInfoItem.AIUse = entity.AUse;//用途
+ Ass_AssetsInfoItem.AISpecification = entity.ASpecification;//规格
+ Ass_AssetsInfoItem.AIAssType = entity.AAssType;//属性
+ Ass_AssetsInfoItem.AICodeNum = i + 1;
Ass_AssetsInfoItem.AICode = entity.ACode + "_" + Ass_AssetsInfoItem.AICodeNum;
+ Ass_AssetsInfoItem.AICodeNumJY = entity.ACode + "_" + Ass_AssetsInfoItem.AICodeNum;
Ass_AssetsInfoItem.AIIStorageId = entity.AIIStorageId;
Ass_AssetsInfoItem.AIIStoragePosition = entity.AIIStoragePosition;
- Ass_AssetsInfoItem.AIIsInStorage = false;
+ Ass_AssetsInfoItem.AIIsInStorage = true;
Ass_AssetsInfoItem.AISpecification = entity.ASpecification;
Ass_AssetsInfoItem.AIUse = entity.AUse;
db.Insert(Ass_AssetsInfoItem);
@@ -371,16 +316,50 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem
var Ass_AssetsInfoItem = new Ass_AssetsInfoItemEntity();
Ass_AssetsInfoItem.Create();
Ass_AssetsInfoItem.AId = entity.AId;
+ Ass_AssetsInfoItem.AIASSName = entity.AName;
+ Ass_AssetsInfoItem.AIAssValue = entity.APrice;
+ Ass_AssetsInfoItem.AIUnits = entity.AUnit;//单位
+ Ass_AssetsInfoItem.AISpecificationtype = entity.AModel;//型号
+ Ass_AssetsInfoItem.AIASSClass = entity.ATId;//类别
+ Ass_AssetsInfoItem.AIManufacturer = entity.AManufacturer;//厂家
+ Ass_AssetsInfoItem.AIUse = entity.AUse;//用途
+ Ass_AssetsInfoItem.AISpecification = entity.ASpecification;//规格
+ Ass_AssetsInfoItem.AIAssType = entity.AAssType;//属性
Ass_AssetsInfoItem.AICodeNum = 1;
Ass_AssetsInfoItem.AICode = entity.ACode + "_" + Ass_AssetsInfoItem.AICodeNum;
+ Ass_AssetsInfoItem.AICodeNumJY = entity.ACode + "_" + Ass_AssetsInfoItem.AICodeNum;
Ass_AssetsInfoItem.AIIStorageId = entity.AIIStorageId;
Ass_AssetsInfoItem.AIIStoragePosition = entity.AIIStoragePosition;
- Ass_AssetsInfoItem.AIIsInStorage = entity.AStock > 0;
+ Ass_AssetsInfoItem.AIIsInStorage = false;
Ass_AssetsInfoItem.AISpecification = entity.ASpecification;
Ass_AssetsInfoItem.AIUse = entity.AUse;
db.Insert(Ass_AssetsInfoItem);
}
}
+ else
+ {
+ var Ass_AssetsInfoItem = new Ass_AssetsInfoItemEntity();
+ Ass_AssetsInfoItem.Create();
+ Ass_AssetsInfoItem.AId = entity.AId;
+ Ass_AssetsInfoItem.AIASSName = entity.AName;
+ Ass_AssetsInfoItem.AIAssValue = entity.APrice;
+ Ass_AssetsInfoItem.AIUnits = entity.AUnit;//单位
+ Ass_AssetsInfoItem.AISpecificationtype = entity.AModel;//型号
+ Ass_AssetsInfoItem.AIASSClass = entity.ATId;//类别
+ Ass_AssetsInfoItem.AIManufacturer = entity.AManufacturer;//厂家
+ Ass_AssetsInfoItem.AIUse = entity.AUse;//用途
+ Ass_AssetsInfoItem.AISpecification = entity.ASpecification;//规格
+ Ass_AssetsInfoItem.AIAssType = entity.AAssType;//属性
+ Ass_AssetsInfoItem.AICodeNum = 1;
+ Ass_AssetsInfoItem.AICode = entity.ACode + "_" + Ass_AssetsInfoItem.AICodeNum;
+ Ass_AssetsInfoItem.AICodeNumJY = entity.ACode + "_" + Ass_AssetsInfoItem.AICodeNum;
+ Ass_AssetsInfoItem.AIIStorageId = entity.AIIStorageId;
+ Ass_AssetsInfoItem.AIIStoragePosition = entity.AIIStoragePosition;
+ Ass_AssetsInfoItem.AIIsInStorage = entity.AStock > 0;
+ Ass_AssetsInfoItem.AISpecification = entity.ASpecification;
+ Ass_AssetsInfoItem.AIUse = entity.AUse;
+ db.Insert(Ass_AssetsInfoItem);
+ }
db.Commit();
}
catch (Exception ex)
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_AssetsInfoApply/Ass_AssetsInfoApplyService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_AssetsInfoApply/Ass_AssetsInfoApplyService.cs
index 7eae4d3b3..aa8241f23 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_AssetsInfoApply/Ass_AssetsInfoApplyService.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_AssetsInfoApply/Ass_AssetsInfoApplyService.cs
@@ -317,14 +317,21 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem
insertassinfoitem.AId = assinfoitem.AId;
insertassinfoitem.AICodeNum = Ass_AssetsInfoItemMaxNum + 1 + i;
insertassinfoitem.AICode = assinfoitem.ACode + "_" + insertassinfoitem.AICodeNum.ToString();
- insertassinfoitem.AICodeNumJY = assinfoitem.ACode + "_" + insertassinfoitem.AICodeNum.ToString();
+ insertassinfoitem.AICodeNumJY = assinfoitem.ACode + "_" + insertassinfoitem.AICodeNum.ToString();//金隅编号
+ insertassinfoitem.AIAssValue = assinfoitem.APrice;//价值
+ insertassinfoitem.AIUnits = assinfoitem.AUnit;//单位
+ insertassinfoitem.AISpecificationtype = assinfoitem.AModel;//型号
+ insertassinfoitem.AIManufacturer = assinfoitem.AManufacturer;//厂家
+ insertassinfoitem.AIUse = assinfoitem.AUse;//用途
+ insertassinfoitem.AISpecification = assinfoitem.ASpecification;//规格
+
insertassinfoitem.AIIStorageId = assitemapp.AAIStorageId;
insertassinfoitem.AIASSName = assitemapp.AAIName;
insertassinfoitem.AIIStoragePosition = assitemapp.AAIStoragePosition;
insertassinfoitem.AIIsInStorage = true;
insertassinfoitem.AISpecification = assitemapp.AAISpecification;
insertassinfoitem.AIAssType = assinfoapp.AAAssType;
- insertassinfoitem.AIASSClass = assinfoitem.ATId;
+ insertassinfoitem.AIASSClass = assinfoitem.ATId;//类别
insertassinfoitem.AIUse = assitemapp.AAIUse;
db.Insert(insertassinfoitem);
//出入库明细表
@@ -417,6 +424,12 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem
insertassinfoitem.AICodeNum = i + 1;
insertassinfoitem.AICode = insertAss_AssetsInfo.ACode + "_" + insertassinfoitem.AICodeNum.ToString();
insertassinfoitem.AICodeNumJY = insertAss_AssetsInfo.ACode + "_" + insertassinfoitem.AICodeNum.ToString();
+ insertassinfoitem.AIAssValue = assinfoitem.APrice;//价值
+ insertassinfoitem.AIUnits = assinfoitem.AUnit;//单位
+ insertassinfoitem.AISpecificationtype = assinfoitem.AModel;//型号
+ insertassinfoitem.AIManufacturer = assinfoitem.AManufacturer;//厂家
+ insertassinfoitem.AIUse = assinfoitem.AUse;//用途
+ insertassinfoitem.AISpecification = assinfoitem.ASpecification;//规格
insertassinfoitem.AIASSName = assitemapp.AAIName;
insertassinfoitem.AIIStorageId = assitemapp.AAIStorageId;
insertassinfoitem.AIAssType = assinfoapp.AAAssType;
@@ -474,6 +487,12 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem
insertassinfoitem.AICodeNum = 1;
insertassinfoitem.AICode = insertAss_AssetsInfo.ACode + "_" + insertassinfoitem.AICodeNum.ToString();
insertassinfoitem.AICodeNumJY = insertAss_AssetsInfo.ACode + "_" + insertassinfoitem.AICodeNum.ToString();
+ insertassinfoitem.AIAssValue = assinfoitem.APrice;//价值
+ insertassinfoitem.AIUnits = assinfoitem.AUnit;//单位
+ insertassinfoitem.AISpecificationtype = assinfoitem.AModel;//型号
+ insertassinfoitem.AIManufacturer = assinfoitem.AManufacturer;//厂家
+ insertassinfoitem.AIUse = assinfoitem.AUse;//用途
+ insertassinfoitem.AISpecification = assinfoitem.ASpecification;//规格
insertassinfoitem.AIASSName = assitemapp.AAIName;
insertassinfoitem.AIIStorageId = assitemapp.AAIStorageId;
insertassinfoitem.AIAssType = assinfoapp.AAAssType;
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_AssetsInfoItem/Ass_AssetsInfoItemEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_AssetsInfoItem/Ass_AssetsInfoItemEntity.cs
index f5f7fc2f1..815eafba5 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_AssetsInfoItem/Ass_AssetsInfoItemEntity.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_AssetsInfoItem/Ass_AssetsInfoItemEntity.cs
@@ -211,7 +211,7 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem
public string AIUse { get; set; }
///
- /// 资产类别
+ /// 资产属性
///
[Column("AIASSTYPE")]
public int? AIAssType { get; set; }
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_AssetsInfoItem/Ass_AssetsInfoItemService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_AssetsInfoItem/Ass_AssetsInfoItemService.cs
index f0fba22c6..71697fc80 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_AssetsInfoItem/Ass_AssetsInfoItemService.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_AssetsInfoItem/Ass_AssetsInfoItemService.cs
@@ -183,6 +183,8 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem
a.AIIStoragePosition,
a.AIIsInStorage,
a.AICodeNumJY,
+ a.AIUsePeople,
+ a.AIDepartment,
a.AIId,
a.AICode,
a.AIASSName,
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_Receive/Ass_ReceiveService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_Receive/Ass_ReceiveService.cs
index cca4c1d3b..5eab54432 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_Receive/Ass_ReceiveService.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_Receive/Ass_ReceiveService.cs
@@ -217,15 +217,10 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem
if (num > 0)
{
var assInfoEntity = db.FindEntity(a => a.AId == item.AID);
- if (assInfoEntity.AStock > num)
+ if (assInfoEntity.AStock >= num)
{
assInfoEntity.AStock = assInfoEntity.AStock - num;
- var listAssInfoItemList =
- db.FindList(a => a.AId == item.AID).Take(2);
- foreach (var assInfoItem in listAssInfoItemList)
- {
- db.Delete(assInfoItem);
- }
+ db.Update(assInfoEntity);
}
}
From 031589c39727babdc8f8c298cad7e5d7f5858e45 Mon Sep 17 00:00:00 2001
From: zhichao lei <442149704@qq.com>
Date: Thu, 3 Dec 2020 16:43:50 +0800
Subject: [PATCH 3/5] =?UTF-8?q?=E6=8C=91=E6=8B=A3=E5=90=88=E5=B9=B6?=
=?UTF-8?q?=E6=B5=8B=E8=AF=951?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Learun.Application.Excel/Import/ExcelImportBLL.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Excel/Import/ExcelImportBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Excel/Import/ExcelImportBLL.cs
index 46bf1ab2c..06f30e8fb 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Excel/Import/ExcelImportBLL.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Excel/Import/ExcelImportBLL.cs
@@ -95,7 +95,7 @@ namespace Learun.Application.Excel
///
/// 主键
///
- public ExcelImportEntity GetEntity(string keyValue)
+ public ExcelImportEntity GetEntity(string keyValue)//1
{
try
{
From d92928107491b04966b95beca94884538c195cd4 Mon Sep 17 00:00:00 2001
From: zhichao lei <442149704@qq.com>
Date: Thu, 3 Dec 2020 16:44:37 +0800
Subject: [PATCH 4/5] =?UTF-8?q?=E6=8C=91=E6=8B=A3=E5=90=88=E5=B9=B6?=
=?UTF-8?q?=E6=B5=8B=E8=AF=952?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Learun.Application.Excel/Import/ExcelImportBLL.cs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Excel/Import/ExcelImportBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Excel/Import/ExcelImportBLL.cs
index 06f30e8fb..9ce7c5bc2 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Excel/Import/ExcelImportBLL.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Excel/Import/ExcelImportBLL.cs
@@ -95,11 +95,11 @@ namespace Learun.Application.Excel
///
/// 主键
///
- public ExcelImportEntity GetEntity(string keyValue)//1
+ public ExcelImportEntity GetEntity(string keyValue)
{
try
{
- return excelImportService.GetEntity(keyValue);
+ return excelImportService.GetEntity(keyValue);//2
}
catch (Exception ex)
{
From c192347be512638ec94ddee0ed3ccfa0cbb11bfb Mon Sep 17 00:00:00 2001
From: dyy <18335927079@163.com>
Date: Mon, 7 Dec 2020 18:20:47 +0800
Subject: [PATCH 5/5] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91?=
=?UTF-8?q?=E5=AD=A6=E7=94=9F=E9=80=89=E8=AF=BE=E6=83=85=E5=86=B5=EF=BC=9A?=
=?UTF-8?q?=E6=90=9C=E7=B4=A2=E6=A1=86=E5=A2=9E=E5=8A=A0=E2=80=9C=E9=80=89?=
=?UTF-8?q?=E4=BF=AE=E8=AF=BE=E7=A8=8B=E2=80=9D=EF=BC=9B=E5=88=97=E8=A1=A8?=
=?UTF-8?q?=E2=80=9C=E4=B8=8A=E8=AF=BE=E8=8A=82=E6=AC=A1=E2=80=9D=E5=88=97?=
=?UTF-8?q?=E6=A0=BC=E5=BC=8F=E5=8C=96=E6=97=B6=E5=A2=9E=E5=8A=A0=E5=88=A4?=
=?UTF-8?q?=E6=96=AD=EF=BC=9B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../QueryStuSelectResult.cshtml | 4 ++++
.../QueryStuSelectResult.js | 16 ++++++++++++----
2 files changed, 16 insertions(+), 4 deletions(-)
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuSelectLessonListOfElective/QueryStuSelectResult.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuSelectLessonListOfElective/QueryStuSelectResult.cshtml
index 7d68759cc..621bf8e9a 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuSelectLessonListOfElective/QueryStuSelectResult.cshtml
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuSelectLessonListOfElective/QueryStuSelectResult.cshtml
@@ -34,6 +34,10 @@
班级
+