Browse Source

Merge branch 'master' of http://123.57.209.16:3000/bjquanjiang/DigitalScholl

西昌缴费二期
dyy 4 years ago
parent
commit
edc23865af
6 changed files with 3245 additions and 3237 deletions
  1. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Controllers/AssReportController.cs
  2. +14
    -8
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/AssScrap/AssScrapService.cs
  3. +0
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_AssetsInfo/Ass_AssetsInfoService.cs
  4. +0
    -4
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_AssetsInfoApply/Ass_AssetsInfoApplyService.cs
  5. +8
    -13
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_AssetsInfoItem/Ass_AssetsInfoItemEntity.cs
  6. +3221
    -3209
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/DBModel/资产系统.PDM

+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Controllers/AssReportController.cs View File

@@ -112,7 +112,7 @@ namespace Learun.Application.Web.Areas.AssetManagementSystem.Controllers
public ActionResult AssStatusData() public ActionResult AssStatusData()
{ {
List<Ass_AssetsInfoItemEntity> data = assAssetsInfoItemIbll.GetLists("{\"a\":\"false\"}").ToList(); List<Ass_AssetsInfoItemEntity> data = assAssetsInfoItemIbll.GetLists("{\"a\":\"false\"}").ToList();
var list = data.GroupBy(a => a.AIIsScrap).Select(a => new { a.Key, price = a.Sum(b => b.AIAssValue), num = a.Count() }).ToList();
var list = data.GroupBy(a => a.AIASSState==2).Select(a => new { a.Key, price = a.Sum(b => b.AIAssValue), num = a.Count() }).ToList();
List<object> list2 = new List<object>(); List<object> list2 = new List<object>();
List<String> list1 = new List<String>(); List<String> list1 = new List<String>();
foreach (var item in list) foreach (var item in list)
@@ -130,7 +130,7 @@ namespace Learun.Application.Web.Areas.AssetManagementSystem.Controllers
public ActionResult AssStatusList() public ActionResult AssStatusList()
{ {
List<Ass_AssetsInfoItemEntity> data = assAssetsInfoItemIbll.GetLists("{\"a\":\"false\"}").ToList(); List<Ass_AssetsInfoItemEntity> data = assAssetsInfoItemIbll.GetLists("{\"a\":\"false\"}").ToList();
var list =data.GroupBy(a => a.AIIsScrap).Select(a => new { a.Key, price = a.Sum(b => b.AIAssValue), num = a.Count() }).ToList();
var list =data.GroupBy(a => a.AIASSState == 2).Select(a => new { a.Key, price = a.Sum(b => b.AIAssValue), num = a.Count() }).ToList();
List<object> list2 = new List<object>(); List<object> list2 = new List<object>();
foreach (var item in list) foreach (var item in list)
{ {


+ 14
- 8
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/AssScrap/AssScrapService.cs View File

@@ -223,26 +223,30 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem


public void ModifyStatusByProcessId(int pastatus, string processId) public void ModifyStatusByProcessId(int pastatus, string processId)
{ {
var db = this.BaseRepository().BeginTrans();
try try
{ {
var entity = this.BaseRepository().FindEntity<Ass_ScrapEntity>(a => a.SPProcessId == processId); var entity = this.BaseRepository().FindEntity<Ass_ScrapEntity>(a => a.SPProcessId == processId);
entity.SPStatus = pastatus; entity.SPStatus = pastatus;
this.BaseRepository().Update(entity);
db.Update(entity);
if (pastatus == 2) if (pastatus == 2)
{ {
var listScrapItem = this.BaseRepository().FindList<Ass_ScrapItemEntity>(a => a.SPId == entity.SPID);
var listScrapItem = db.FindList<Ass_ScrapItemEntity>(a => a.SPId == entity.SPID);
foreach (var item in listScrapItem) foreach (var item in listScrapItem)
{ {
var assInfo = this.BaseRepository().FindEntity<Ass_AssetsInfoEntity>(a => a.AId == item.AAIAId);
var assInfoItem = this.BaseRepository().FindEntity<Ass_AssetsInfoItemEntity>(a => a.AId == item.AAIAId);
var assInfoItem = db.FindEntity<Ass_AssetsInfoItemEntity>(a => a.AIId == item.AAIAId);
var assInfo = db.FindEntity<Ass_AssetsInfoEntity>(a => a.AId == assInfoItem.AId);
if (assInfoItem.AIIsInStorage == true) if (assInfoItem.AIIsInStorage == true)
{ {
assInfoItem.AIIsInStorage = false; assInfoItem.AIIsInStorage = false;
assInfo.AStock = assInfo.AStock - 1;
assInfoItem.AIASSState = 1;
if (assInfo != null)
{
assInfo.AStock = assInfo.AStock - 1;
db.Update(assInfo);
}
assInfoItem.AIASSState = 2;


this.BaseRepository().Update(assInfoItem);
this.BaseRepository().Update(assInfo);
db.Update(assInfoItem);
} }




@@ -250,10 +254,12 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem
} }


} }
db.Commit();


} }
catch (Exception e) catch (Exception e)
{ {
db.Rollback();
if (e is ExceptionEx) if (e is ExceptionEx)
{ {
throw; throw;


+ 0
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_AssetsInfo/Ass_AssetsInfoService.cs View File

@@ -229,7 +229,6 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem
infoItem.AId = assInfoEntity.AId; infoItem.AId = assInfoEntity.AId;
infoItem.AICode = assInfoEntity.ACode + "_" + codeNum.ToString(); infoItem.AICode = assInfoEntity.ACode + "_" + codeNum.ToString();
infoItem.AICodeNum = codeNum; infoItem.AICodeNum = codeNum;
infoItem.AIIsScrap = false;
} }


this.BaseRepository().Update(assInfoItemList2); this.BaseRepository().Update(assInfoItemList2);


+ 0
- 4
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_AssetsInfoApply/Ass_AssetsInfoApplyService.cs View File

@@ -316,7 +316,6 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem
insertassinfoitem.AICodeNumJY = assinfoitem.ACode + "_" + insertassinfoitem.AICodeNum.ToString(); insertassinfoitem.AICodeNumJY = assinfoitem.ACode + "_" + insertassinfoitem.AICodeNum.ToString();
insertassinfoitem.AIIStorageId = assitemapp.AAIStorageId; insertassinfoitem.AIIStorageId = assitemapp.AAIStorageId;
insertassinfoitem.AIASSName = assitemapp.AAIName; insertassinfoitem.AIASSName = assitemapp.AAIName;
insertassinfoitem.AIIsScrap = false;
insertassinfoitem.AIIStoragePosition = assitemapp.AAIStoragePosition; insertassinfoitem.AIIStoragePosition = assitemapp.AAIStoragePosition;
insertassinfoitem.AIIsInStorage = true; insertassinfoitem.AIIsInStorage = true;
insertassinfoitem.AISpecification = assitemapp.AAISpecification; insertassinfoitem.AISpecification = assitemapp.AAISpecification;
@@ -371,7 +370,6 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem
if (insertassinfoitem.AIIsInStorage == false) if (insertassinfoitem.AIIsInStorage == false)
{ {
insertassinfoitem.AIIsInStorage = true; insertassinfoitem.AIIsInStorage = true;
insertassinfoitem.AIIsScrap = false;
db.Update(insertassinfoitem); db.Update(insertassinfoitem);
} }
} }
@@ -417,7 +415,6 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem
insertassinfoitem.AICodeNumJY = insertAss_AssetsInfo.ACode + "_" + insertassinfoitem.AICodeNum.ToString(); insertassinfoitem.AICodeNumJY = insertAss_AssetsInfo.ACode + "_" + insertassinfoitem.AICodeNum.ToString();
insertassinfoitem.AIASSName = assitemapp.AAIName; insertassinfoitem.AIASSName = assitemapp.AAIName;
insertassinfoitem.AIIStorageId = assitemapp.AAIStorageId; insertassinfoitem.AIIStorageId = assitemapp.AAIStorageId;
insertassinfoitem.AIIsScrap = false;
insertassinfoitem.AIAssType = assinfoapp.AAAssType; insertassinfoitem.AIAssType = assinfoapp.AAAssType;
insertassinfoitem.AIIStoragePosition = assitemapp.AAIStoragePosition; insertassinfoitem.AIIStoragePosition = assitemapp.AAIStoragePosition;
insertassinfoitem.AIIsInStorage = true; insertassinfoitem.AIIsInStorage = true;
@@ -475,7 +472,6 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem
insertassinfoitem.AICodeNumJY = insertAss_AssetsInfo.ACode + "_" + insertassinfoitem.AICodeNum.ToString(); insertassinfoitem.AICodeNumJY = insertAss_AssetsInfo.ACode + "_" + insertassinfoitem.AICodeNum.ToString();
insertassinfoitem.AIASSName = assitemapp.AAIName; insertassinfoitem.AIASSName = assitemapp.AAIName;
insertassinfoitem.AIIStorageId = assitemapp.AAIStorageId; insertassinfoitem.AIIStorageId = assitemapp.AAIStorageId;
insertassinfoitem.AIIsScrap = false;
insertassinfoitem.AIAssType = assinfoapp.AAAssType; insertassinfoitem.AIAssType = assinfoapp.AAAssType;
insertassinfoitem.AIIStoragePosition = assitemapp.AAIStoragePosition; insertassinfoitem.AIIStoragePosition = assitemapp.AAIStoragePosition;
insertassinfoitem.AIIsInStorage = true; insertassinfoitem.AIIsInStorage = true;


+ 8
- 13
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_AssetsInfoItem/Ass_AssetsInfoItemEntity.cs View File

@@ -15,37 +15,37 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem
{ {
#region 实体成员 #region 实体成员
/// <summary> /// <summary>
/// AIId
/// ID
/// </summary> /// </summary>
[Column("AIID")] [Column("AIID")]
public string AIId { get; set; } public string AIId { get; set; }
/// <summary> /// <summary>
/// AId
/// 资产ID
/// </summary> /// </summary>
[Column("AID")] [Column("AID")]
public string AId { get; set; } public string AId { get; set; }
/// <summary> /// <summary>
/// AICodeNum
/// 编号
/// </summary> /// </summary>
[Column("AICODENUM")] [Column("AICODENUM")]
public int? AICodeNum { get; set; } public int? AICodeNum { get; set; }
/// <summary> /// <summary>
/// AICode
/// 资产明细编号
/// </summary> /// </summary>
[Column("AICODE")] [Column("AICODE")]
public string AICode { get; set; } public string AICode { get; set; }
/// <summary> /// <summary>
/// AIIStorageId
/// 所在库房Id
/// </summary> /// </summary>
[Column("AIISTORAGEID")] [Column("AIISTORAGEID")]
public string AIIStorageId { get; set; } public string AIIStorageId { get; set; }
/// <summary> /// <summary>
/// AIIStoragePosition
/// 所在库位
/// </summary> /// </summary>
[Column("AIISTORAGEPOSITION")] [Column("AIISTORAGEPOSITION")]
public string AIIStoragePosition { get; set; } public string AIIStoragePosition { get; set; }
/// <summary> /// <summary>
/// AIIsInStorage
/// 是否在库
/// </summary> /// </summary>
[Column("AIISINSTORAGE")] [Column("AIISINSTORAGE")]
public bool? AIIsInStorage { get; set; } public bool? AIIsInStorage { get; set; }
@@ -100,7 +100,7 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem
[Column("AIASSCLASS")] [Column("AIASSCLASS")]
public string AIASSClass { get; set; } public string AIASSClass { get; set; }
/// <summary> /// <summary>
/// 资产状态
/// 资产状态 0 正常使用 2 报废
/// </summary> /// </summary>
[Column("AIASSSTATE")] [Column("AIASSSTATE")]
public int? AIASSState { get; set; } public int? AIASSState { get; set; }
@@ -209,11 +209,6 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem
/// </summary> /// </summary>
[Column("AIUSE")] [Column("AIUSE")]
public string AIUse { get; set; } public string AIUse { get; set; }
/// <summary>
/// 是否报废
/// </summary>
[Column("AIISSCRAP")]
public bool? AIIsScrap { get; set; }


/// <summary> /// <summary>
/// 资产类别 /// 资产类别


+ 3221
- 3209
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/DBModel/资产系统.PDM
File diff suppressed because it is too large
View File


Loading…
Cancel
Save