ソースを参照

Merge branch '金隅分支' of http://123.57.209.16:3000/bjquanjiang/DigitalScholl into 金隅分支

金隅分支
edy 3年前
コミット
6a68773a6f
26個のファイルの変更759行の追加236行の削除
  1. +10
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Controllers/Ass_AssetsInfoItemApplyController.cs
  2. +3
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/AssStorageRoom/Index.js
  3. +11
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoApply/Form.js
  4. +14
    -4
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoApply/FormJY.js
  5. +11
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoApply/FormJYHC.js
  6. +11
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoApply/FormViewJY.js
  7. +4
    -4
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoApply/IndexJY.js
  8. +89
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItemApply/FormJY.cshtml
  9. +165
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItemApply/FormJY.js
  10. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItemApply/FormJYHC.js
  11. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsOutItemApply/Form.cshtml
  12. +16
    -5
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Receive/Form.cshtml
  13. +229
    -94
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Receive/Form.js
  14. +10
    -5
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Receive/FormView.cshtml
  15. +43
    -71
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Receive/FormView.js
  16. +6
    -5
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Receive/Index.js
  17. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/EmpInfoController.cs
  18. +4
    -4
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Print.cshtml
  19. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/Report.js
  20. +2
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
  21. +8
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_Receive/Ass_ReceiveEntity.cs
  22. +16
    -15
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_Receive/Ass_ReceiveService.cs
  23. +95
    -12
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_ReceiveItem/Ass_ReceiveItemEntity.cs
  24. +1
    -4
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_ReceiveItem/Ass_ReceiveItemService.cs
  25. +5
    -4
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_Storage_Room/AssStorageRoomService.cs
  26. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuEnroll/StuEnrollService.cs

+ 10
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Controllers/Ass_AssetsInfoItemApplyController.cs ファイルの表示

@@ -48,6 +48,16 @@ namespace Learun.Application.Web.Areas.AssetManagementSystem.Controllers
{
return View();
}
/// <summary>
/// 表单页
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult FormJY()
{
return View();
}
/// <summary>
/// 采购表单页
/// <summary>


+ 3
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/AssStorageRoom/Index.js ファイルの表示

@@ -131,7 +131,9 @@ var bootstrap = function ($, learun) {
],
mainId:'RId',
isPage: true
isPage: true,
sidx: 'RCode',
sord: 'ASC'
});
page.search();
},


+ 11
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoApply/Form.js ファイルの表示

@@ -148,7 +148,17 @@ var bootstrap = function ($, learun) {
}
},
{
label: '库位', name: 'AAIStoragePosition', width: 100, align: 'left'
label: '库位', name: 'AAIStoragePosition', width: 100, align: 'left',
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ass_Storage_Room',
key: value,
keyId: 'rid',
callback: function (_data) {
callback(_data['rname']);
}
});
}
},
{
label: '英文名称', name: 'AAIEName', width: 100, align: 'left'


+ 14
- 4
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoApply/FormJY.js ファイルの表示

@@ -32,7 +32,7 @@ var bootstrap = function ($, learun) {
learun.layerForm({
id: 'formitem',
title: '新增明细',
url: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsInfoItemApply/Form',
url: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsInfoItemApply/FormJY',
width: 860,
height: 600,
callBack: function (id) {
@@ -47,7 +47,7 @@ var bootstrap = function ($, learun) {
learun.layerForm({
id: 'formitem',
title: '编辑明细',
url: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsInfoItemApply/Form?keyValue=' + keyValue,
url: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsInfoItemApply/FormJY?keyValue=' + keyValue,
width: 860,
height: 600,
callBack: function (id) {
@@ -94,7 +94,7 @@ var bootstrap = function ($, learun) {
$('#Ass_AssetsInfoItemApply').jfGrid({
headData: [
{
label: '资产编号', name: 'AAICode', width: 150, align: 'left'
label: '采购临时编号', name: 'AAICode', width: 150, align: 'left'
},
{
label: '资产名称', name: 'AAIName', width: 150, align: 'left'
@@ -157,7 +157,17 @@ var bootstrap = function ($, learun) {
}
},
{
label: '库位', name: 'AAIStoragePosition', width: 100, align: 'left'
label: '库位', name: 'AAIStoragePosition', width: 100, align: 'left',
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ass_Storage_Room',
key: value,
keyId: 'rid',
callback: function (_data) {
callback(_data['rname']);
}
});
}
},
{
label: '英文名称', name: 'AAIEName', width: 100, align: 'left'


+ 11
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoApply/FormJYHC.js ファイルの表示

@@ -157,7 +157,17 @@ var bootstrap = function ($, learun) {
}
},
{
label: '库位', name: 'AAIStoragePosition', width: 100, align: 'left'
label: '库位', name: 'AAIStoragePosition', width: 100, align: 'left',
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ass_Storage_Room',
key: value,
keyId: 'rid',
callback: function (_data) {
callback(_data['rname']);
}
});
}
},
{
label: '英文名称', name: 'AAIEName', width: 100, align: 'left'


+ 11
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoApply/FormViewJY.js ファイルの表示

@@ -148,7 +148,17 @@ var bootstrap = function ($, learun) {
}
},
{
label: '库位', name: 'AAIStoragePosition', width: 100, align: 'left'
label: '库位', name: 'AAIStoragePosition', width: 100, align: 'left',
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ass_Storage_Room',
key: value,
keyId: 'rid',
callback: function (_data) {
callback(_data['rname']);
}
});
}
},
{
label: '英文名称', name: 'AAIEName', width: 100, align: 'left'


+ 4
- 4
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoApply/IndexJY.js ファイルの表示

@@ -58,7 +58,7 @@ var bootstrap = function ($, learun) {
title: '新增',
url: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsInfoApply/FormJY',
width: 1000,
height: 700,
height: 800,
callBack: function (id) {
var res = false;
// 验证数据
@@ -91,7 +91,7 @@ var bootstrap = function ($, learun) {
title: '采购编辑',
url: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsInfoApply/FormJY?keyValue=' + keyValue,
width: 1000,
height: 700,
height: 800,
callBack: function (id) {
var res = false;
// 验证数据
@@ -111,7 +111,7 @@ var bootstrap = function ($, learun) {
title: '编辑',
url: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsInfoApply/FormJY?keyValue=' + keyValue,
width: 1000,
height: 700,
height: 800,
callBack: function (id) {
var res = false;
// 验证数据
@@ -138,7 +138,7 @@ var bootstrap = function ($, learun) {
title: '查看采购申请',
url: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsInfoApply/FormViewJY?keyValue=' + keyValue,
width: 1000,
height: 600,
height: 700,
btn: null
});
}


+ 89
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItemApply/FormJY.cshtml ファイルの表示

@@ -0,0 +1,89 @@
@{
ViewBag.Title = "入库申请明细";
Layout = "~/Views/Shared/_Form.cshtml";
}
@Html.AppendCssFile("/Views/LR_Content/plugin/layerselect/lr-layerselect.css")
@Html.AppendJsFile("/Views/LR_Content/plugin/layerselect/lr-layerselect.js")
<div class="lr-form-wrap" id="form">
<div class="col-xs-12 lr-form-item" data-table="Ass_AssetsInfoItemApply">
<div class="lr-form-item-title">选择已登记资产<font face="宋体">*</font></div>
<div id="AAOldCode"></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItemApply">
<div class="lr-form-item-title">资产类别<font face="宋体">*</font></div>
<div id="AAITId" isvalid="yes" checkexpession="NotNull"></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItemApply">
<div class="lr-form-item-title">采购临时编号<font face="宋体">*</font></div>
<input id="AAICode" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItemApply">
<div class="lr-form-item-title">资产名称<font face="宋体">*</font></div>
<input id="AAIName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItemApply">
<div class="lr-form-item-title">英文名称</div>
<input id="AAIEName" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItemApply">
<div class="lr-form-item-title">资产型号</div>
<input id="AAIModel" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItemApply">
<div class="lr-form-item-title">生产厂家</div>
<input id="AAIManufacturer" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItemApply">
<div class="lr-form-item-title">资产规格</div>
<input id="AAISpecification" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItemApply">
<div class="lr-form-item-title">用途</div>
<input id="AAIUse" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItemApply">
<div class="lr-form-item-title">资产来源</div>
<div id="AAISource"></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItemApply">
<div class="lr-form-item-title">供应商</div>
<div id="AAISupplierId"></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItemApply">
<div class="lr-form-item-title">单价<font face="宋体">*</font></div>
<input id="AAIPrice" type="text" class="form-control" isvalid="yes" checkexpession="PositiveFloatintZero" />
</div>
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItemApply">
<div class="lr-form-item-title">数量<font face="宋体">*</font></div>
<input id="AAIStock" type="text" class="form-control" isvalid="yes" checkexpession="PositiveFloatint" />
</div>
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItemApply">
<div class="lr-form-item-title">数量单位</div>
<div id="AAIUnit" ></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItemApply">
<div class="lr-form-item-title">排序<font face="宋体">*</font></div>
<input id="AAIOrder" type="text" class="form-control" isvalid="yes" checkexpession="Num" />
</div>
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItemApply">
<div class="lr-form-item-title">楼宇名称<font face="宋体">*</font></div>
<div id="AAIStorageId" isvalid="yes" checkexpession="NotNull"></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsInfoItemApply">
<div class="lr-form-item-title">房间号</div>
<div id="AAIStoragePosition" checkexpession="NotNull"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="Ass_AssetsInfoItemApply">
<div class="lr-form-item-title">生成明细<font face="宋体">*</font></div>
<div id="AAIHasDetail" isvalid="yes" checkexpession="NotNull"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="Ass_AssetsInfoItemApply">
<div class="lr-form-item-title">入库照片</div>
<div id="AAIPhoto"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="Ass_AssetsInfoItemApply">
<div class="lr-form-item-title">备注</div>
<textarea id="AAIContent" class="form-control" style="height: 120px;"></textarea>
</div>
</div>
@Html.AppendJsFile("/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItemApply/FormJY.js")

+ 165
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItemApply/FormJY.js ファイルの表示

@@ -0,0 +1,165 @@
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
* Copyright (c) 2013-2018 北京泉江科技有限公司
* 创建人:超级管理员
* 日 期:2019-03-26 11:41
* 描 述:入库申请明细
*/
var acceptClick;
var keyValue = request('keyValue');
var selectedRow;
var bootstrap = function ($, learun) {
"use strict";
selectedRow = top["layer_formAss_AssetsInfoApply"].selectedRow;
var page = {
init: function () {
$('.lr-form-wrap').lrscroll();
page.bind();
page.initData();
},
bind: function () {
$('#AAIAssType').lrDataItemSelect({ code: 'AssType' });
$('#AAITId').lrselect({
type: 'tree',
// 展开最大高度
maxHeight: 200,
// 是否允许搜索
allowSearch: true,
// 访问数据接口地址
url: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsType/GetAllTree'
});
$("#AAOldCode").lrlayerselect({
treeUrl: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsType/GetAllTree',
treeParentId: 'atptid',
treeValueId: 'atid',
treeTextId: 'aname',
dataUrl: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsInfo/GetList',
dataTreeId: 'ATId',
dataValueId: 'AId',
dataTextId: 'AName',

grid: [
//{ label: '资产编号', name: 'ACode', width: 200, align: 'left' },
{ label: '资产名称', name: 'AName', width: 200, align: 'left' },
{ label: "英文名称", name: "AEName", width: 200, align: "left" },
{ label: "资产型号", name: "AModel", width: 200, align: "left" },
{ label: "生产厂家", name: "AManufacturer", width: 200, align: "left" },
{
label: "供应商", name: "ASupplierId", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ass_SupplierData',
key: value,
keyId: 'sid',
callback: function (_data) {
callback(_data['sname']);
}
});
}
}
],
select: function (values, texts) {
if (values && values.length > 0) {
//绑定
//$("#AAITId").attr("readonly", "readonly");
//$("#AAICode").attr("readonly", "readonly");
//$("#AAIName").attr("readonly", "readonly");
//$("#AAIUnit").attr("readonly", "readonly");
//$("#AAIHasDetail").attr("readonly", "readonly");
$.lrSetForm(top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsInfo/GetFormData?keyValue=' + values[0], function (data) {
data = data.Ass_AssetsInfo;
$('#AAITId').lrselectSet(data.ATId);
$('#AAICode').val(data.ACode);
$('#AAIName').val(data.AName);
$('#AAIUnit').lrselectSet(data.AUnit);
$('#AAIHasDetail').lrselectSet(data.HasDetail);
$('#AAIEName').val(data.AEName);
$('#AAIModel').val(data.AModel);
$('#AAIManufacturer').val(data.AManufacturer);
$('#AAISpecification').val(data.ASpecification);
});
}
},
unknowselect: function () {
$("#AAOldCode").find('span').text("");
//$("#AAITId").removeAttr("readonly");
//$("#AAICode").removeAttr("readonly");
//$("#AAIName").removeAttr("readonly");
//$("#AAIUnit").removeAttr("readonly");
//$("#AAIHasDetail").removeAttr("readonly");
$('#AAITId').lrselectSet("");
$('#AAICode').val("");
$('#AAIName').val("");
$('#AAIUnit').lrselectSet("");
$('#AAIHasDetail').lrselectSet("");
$('#AAIEName').val("");
$('#AAIModel').val("");
$('#AAIManufacturer').val("");
$('#AAISpecification').val("");
},
isMultiple: false
});
$('#AAISource').lrDataItemSelect({ code: 'zcly' });
$('#AAISupplierId').lrDataSourceSelect({ code: 'Ass_SupplierData', value: 'sid', text: 'sname' });
$('#AAIUnit').lrDataItemSelect({ code: 'sldw' });
//$('#AAIStorageId').lrDataSourceSelect({ code: 'Ass_StorageData', value: 'sid', text: 'sname' });
$('#AAIStorageId').lrselect({
type: 'tree',
allowSearch: true,
url: top.$.rootUrl + '/AssetManagementSystem/AssStorageRoom/GetTree',
param: {},
select: function (val) {
var storageId = "";
if (val) {
storageId = val.value;
}
$('#AAIStoragePosition').lrselectRefresh({
url: top.$.rootUrl + '/AssetManagementSystem/AssStorageRoom/GetListForStorageId?storageId=' + storageId,
text: "RCode",
value: "RId"
});
}
});
//房间
$('#AAIStoragePosition').lrselect({ value: 'RId', text: 'RCode' });
$('#AAIHasDetail').lrDataItemSelect({
code: 'YesOrNoBit', select: function (item) {
if (item != null && item != undefined) {
if (item.id === true || item.id === "true") {
$("#AAIStock").attr("checkexpession", "PositiveInteger");
} else {
$("#AAIStock").attr("checkexpession", "PositiveFloatint");
}
}
}
});
$('#AAIPhoto').lrUploader();
},
initData: function () {
if (!!keyValue) {
if (!!selectedRow) {
$('#form').lrSetFormData(selectedRow);
$("#AAOldCode").find('span').text(selectedRow.AAIName);
}
}

}
};
// 保存数据
acceptClick = function (callBack) {
if (!$('body').lrValidform()) {
return false;
}
var postData = $('body').lrGetFormData();
if (!!keyValue) {
if (!!selectedRow) {
postData.AAIId = selectedRow.AAIId;
}
} else {
postData.AAIId = learun.newGuid();
}
if (!!callBack) {
callBack(postData);
return true;
}
};
page.init();
}

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItemApply/FormJYHC.js ファイルの表示

@@ -38,7 +38,7 @@ var bootstrap = function ($, learun) {
dataTextId: 'AName',

grid: [
{ label: '耗材编号', name: 'ACode', width: 200, align: 'left' },
//{ label: '耗材编号', name: 'ACode', width: 200, align: 'left' },
{ label: '耗材名称', name: 'AName', width: 200, align: 'left' },
{ label: "英文名称", name: "AEName", width: 200, align: "left" },
{ label: "耗材型号", name: "AModel", width: 200, align: "left" },


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsOutItemApply/Form.cshtml ファイルの表示

@@ -71,7 +71,7 @@
</div>
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsOutItemApply">
<div class="lr-form-item-title">新楼宇名称<font face="宋体">*</font></div>
<div id="AOINewStorageId" checkexpession="NotNull"> </div>
<div id="AOINewStorageId" isvalid="yes" checkexpession="NotNull"> </div>
</div>
<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsOutItemApply">
<div class="lr-form-item-title">原房间号</div>


+ 16
- 5
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Receive/Form.cshtml ファイルの表示

@@ -4,16 +4,27 @@
}
<div class="lr-form-wrap">
<div class="col-xs-6 lr-form-item" data-table="Ass_Receive">
<div class="lr-form-item-title">标题</div>
<input id="RTitle" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="Ass_PurchaseApply">
<div class="lr-form-item-title">申请人</div>
<div id="ReceiveUser" readonly="readonly" class="form-control" ></div>
<input id="ReceiveUser" type="text" readonly class="form-control currentInfo lr-currentInfo-user" />
</div>
<div class="col-xs-6 lr-form-item" data-table="Ass_Receive">
<div class="lr-form-item-title">申请部门</div>
<div id="PDepartment" readonly="readonly" class="form-control" ></div>
<div class="col-xs-6 lr-form-item" data-table="Ass_PurchaseApply">
<div class="lr-form-item-title">申请部门<font face="宋体">*</font></div>
<div id="PDepartment" isvalid="yes" checkexpession="NotNull" readonly></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="Ass_Receive">
<div class="lr-form-item-title">申请时间</div>
<input id="RTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#RTime').trigger('change'); } })" />
<input id="RTime" type="text" readonly class="form-control currentInfo lr-currentInfo-time" />
@*<input id="RTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt: 'yyyy-MM-dd', onpicked: function() { $('#RTime').trigger('change'); } })" />*@
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">明细操作</div>
<input id="detailadd" type="button" class="btn btn-success" value="新增明细" />
@*<input id="detailedit" type="button" class="btn btn-warning" value="编辑明细" />*@
<input id="detaildel" type="button" class="btn btn-danger" value="移除明细" />
</div>
<div class="col-xs-12 lr-form-item lr-form-item-grid">
<div id="Ass_ReceiveItem"></div>


+ 229
- 94
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Receive/Form.js ファイルの表示

@@ -14,117 +14,210 @@ var setFormData;
var validForm;
// 保存数据
var save;
var refreshGirdData;
var selectedRow;
var tempdatra = new Array();
var bootstrap = function ($, learun) {
"use strict";
var page = {
init: function () {
$('.lr-form-wrap').lrscroll();

$("#detailadd").on('click', function () {
selectedRow = null;
learun.layerFormForPercent({
id: 'formitem',
title: '新增明细',
url: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsInfoItem/IndexTwo',
width: "90%",
height: "90%",
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
});
});
$("#detaildel").on('click', function () {
var keyValue = $('#Ass_ReceiveItem').jfGridValue('RIID');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认删除该项!', function (res, index) {
if (res) {
$.each(tempdatra, function (key, val) {
if (val && val.RIID === keyValue) {
tempdatra.splice(key, 1);
}
});
$('#Ass_ReceiveItem').jfGridSet('refreshdata', tempdatra.sort(sortNumber));
top.layer.close(index);
}
});
}
});
page.bind();
page.initData();
},
bind: function () {
var loginInfo = top.learun.clientdata.get(['userinfo']);
$('#ReceiveUser').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_userid', text: 'f_realname' }).lrselectSet(loginInfo.userId);
$('#PDepartment').lrDataSourceSelect({ code: 'classdata', value: 'id', text: 'name' }).lrselectSet(loginInfo.departmentId);
$('#RTime').val(learun.formatDate(new Date(), 'yyyy-MM-dd hh:mm:ss'));
$('#ReceiveUser')[0].lrvalue = learun.clientdata.get(['userinfo']).userId;

$('#ReceiveUser').val(learun.clientdata.get(['userinfo']).realName);
$('#PDepartment').lrselect({
type: 'tree',
// 展开最大高度
maxHeight: 200,
// 是否允许搜索
allowSearch: true,
// 访问数据接口地址
url: top.$.rootUrl + '/LR_OrganizationModule/Department/GetTree'
});
$('#PDepartment').lrselectSet(learun.clientdata.get(['userinfo']).departmentId);


$('#Ass_ReceiveItem').jfGrid({
headData: [
{
label: "资产名称", name: "AName", width: 100, align: "left",
edit: {
type: 'input',
init: function (row, $edit) {
},
},

label: '资产编号', name: 'AAICode', width: 150, align: 'left'
},
{
label: "库存数量", name: "ACNum", width: 100, align: "left",
label: '资产名称', name: 'AAIName', width: 150, align: 'left'
},
{
label: "领取数量", name: "ANum", width: 100, align: "left",
edit: {
type: 'input',
inputType: 'number',
label: '资产类别', name: 'AAITId', width: 150, align: 'left', formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ass_AssetsType',
key: value,
keyId: 'atid',
callback: function (_data) {
callback(_data['aname']);
}
});
}
},
{
label: "资产编号", name: "AID", width: 100, align: "left",
edit: {
type: 'input',
label: '单价', name: 'AAIPrice', width: 100, align: 'left'
},
{
label: '单位', name: 'AAIUnit', width: 80, align: 'left', formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'sldw',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{
label: '英文名称', name: 'AAIEName', width: 100, align: 'left'
},
{
label: '资产型号', name: 'AAIModel', width: 100, align: 'left'
},
{
label: '生产厂家', name: 'AAIManufacturer', width: 100, align: 'left'
}
],
height: 400,
mainId: 'RIID',
isEdit: true,
reloadSelected: false
});
//$('#ReceiveUser').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_userid', text: 'f_realname' }).lrselectSet(loginInfo.userId);
//$('#PDepartment').lrDataSourceSelect({ code: 'classdata', value: 'id', text: 'name' }).lrselectSet(loginInfo.departmentId);

$('#Ass_ReceiveItem').on('click', function (e) {
var et = e.target || e.srcElement;
var $et = $(et);
if ($et.attr('rowindex') && $et.attr('rownum') && $et.attr('colname') == 'AName') {
var $input = $('#jfgrid_edit_Ass_ReceiveItem_AName');
$input.removeClass('lr-layerselect').removeAttr('lrlayerselect').unbind('click')[0].dfop = null;
//$('#Ass_ReceiveItem').jfGrid({
// headData: [
// {
// label: "资产名称", name: "AName", width: 100, align: "left",
// edit: {
// type: 'input',
// init: function (row, $edit) {
// },
// },

$input.lrlayerselect({
treeUrl: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsType/GetAllTree',
treeParentId: 'atptid',
treeValueId: 'atid',
treeTextId: 'aname',
dataUrl: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsInfo/GetList',
dataTreeId: 'ATId',
dataValueId: 'AId',
dataTextId: 'AName',
// },
// {
// label: "库存数量", name: "ACNum", width: 100, align: "left",
// },
// {
// label: "领取数量", name: "ANum", width: 100, align: "left",
// edit: {
// type: 'input',
// inputType: 'number',
// }
// },
// {
// label: "资产编号", name: "AID", width: 100, align: "left",
// edit: {
// type: 'input',
// }
// },
// ],
// mainId: 'RIID',
// isEdit: true,
//});
//$('#Ass_ReceiveItem').on('click', function (e) {
// var et = e.target || e.srcElement;
// var $et = $(et);
// if ($et.attr('rowindex') && $et.attr('rownum') && $et.attr('colname') == 'AName') {
// var $input = $('#jfgrid_edit_Ass_ReceiveItem_AName');
// $input.removeClass('lr-layerselect').removeAttr('lrlayerselect').unbind('click')[0].dfop = null;

grid: [
{ label: '资产编号', name: 'ACode', width: 200, align: 'left' },
{ label: '资产名称', name: 'AName', width: 200, align: 'left' },
{ label: "英文名称", name: "AEName", width: 200, align: "left" },
{ label: "资产型号", name: "AModel", width: 200, align: "left" },
{ label: "生产厂家", name: "AManufacturer", width: 200, align: "left" },
{
label: "供应商", name: "ASupplierId", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ass_SupplierData',
key: value,
keyId: 'sid',
callback: function (_data) {
callback(_data['sname']);
}
});
}
}
],
select: function (values, texts) {
if (values && values.length > 0) {
// $input.lrlayerselect({
// treeUrl: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsType/GetAllTree',
// treeParentId: 'atptid',
// treeValueId: 'atid',
// treeTextId: 'aname',
// dataUrl: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsInfo/GetList',
// dataTreeId: 'ATId',
// dataValueId: 'AId',
// dataTextId: 'AName',

$.lrSetForm(top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsInfo/GetFormData?keyValue=' + values[0], function (data) {
data = data.Ass_AssetsInfo;
var rowIndex = $et.attr('rowindex');
$input.val(data.AName);
//$('#Ass_ReceiveItem')[0].dfop.running.rowdata[rowIndex]['jfgridRowData']['AName'] = data.AName;
//$('.jfgrid-data-cell[colname="AName"][rowIndex="' + rowIndex + '"]').attr('title', data.AName).html(data.AName);
$input.trigger('propertychange');
// grid: [
// { label: '资产编号', name: 'ACode', width: 200, align: 'left' },
// { label: '资产名称', name: 'AName', width: 200, align: 'left' },
// { label: "英文名称", name: "AEName", width: 200, align: "left" },
// { label: "资产型号", name: "AModel", width: 200, align: "left" },
// { label: "生产厂家", name: "AManufacturer", width: 200, align: "left" },
// {
// label: "供应商", name: "ASupplierId", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
// learun.clientdata.getAsync('custmerData', {
// url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ass_SupplierData',
// key: value,
// keyId: 'sid',
// callback: function (_data) {
// callback(_data['sname']);
// }
// });
// }
// }
// ],
// select: function (values, texts) {
// if (values && values.length > 0) {

$('jfgrid_edit_Ass_ReceiveItem_' + 'ANum').val(0);
$('.jfgrid-data-cell[colname="ANum"][rowIndex="' + rowIndex + '"]').attr('title', data.AId).html(0);
$('#Ass_ReceiveItem')[0].dfop.running.rowdata[rowIndex]['jfgridRowData']['ANum'] = 0;
// $.lrSetForm(top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsInfo/GetFormData?keyValue=' + values[0], function (data) {
// data = data.Ass_AssetsInfo;
// var rowIndex = $et.attr('rowindex');
// $input.val(data.AName);
// $input.trigger('propertychange');

$('jfgrid_edit_Ass_ReceiveItem_' + 'AID').val(data.AId);
$('.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_' + 'ANum').val(0);
// $('.jfgrid-data-cell[colname="ANum"][rowIndex="' + rowIndex + '"]').attr('title', data.AId).html(0);
// $('#Ass_ReceiveItem')[0].dfop.running.rowdata[rowIndex]['jfgridRowData']['ANum'] = 0;

$('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;
// $('jfgrid_edit_Ass_ReceiveItem_' + 'AID').val(data.AId);
// $('.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;

});
}
},
isMultiple: false
});
}
})
// $('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;

// });
// }
// },
// isMultiple: false
// });
// }
//})
},
initData: function () {
if (!!keyValue) {
@@ -132,6 +225,7 @@ var bootstrap = function ($, learun) {
for (var id in data) {
if (!!data[id].length && data[id].length > 0) {
$('#' + id).jfGridSet('refreshdata', data[id]);
tempdatra = data[id];
}
else {
$('[data-table="' + id + '"]').lrSetFormData(data[id]);
@@ -167,6 +261,47 @@ var bootstrap = function ($, learun) {
}
return true;
};
refreshGirdData = function (temprow) {
var ifnewrow = true;
var list = [];
$.each(temprow,
function (i, item) {
var entity = {
//AAICode: item.AICode,
AAICode: item.AICodeNumJY,
AAIName: item.AIASSName,
AAITId: item.AIASSClass,
AAIPrice: item.AIAssValue,
AAIUnit: item.AIUnits,
AAIEName: '',
AAIModel: item.AISpecificationtype,
AAIManufacturer: item.AIManufacturer,
RIID: learun.newGuid()
}
list.push(entity);

});

$.each(list,
function (j, item2) {
$.each(tempdatra,
function (key, val) {

if (tempdatra[key].AAICode === item2.AAICode) {
tempdatra[key] = item2;
ifnewrow = false;
}
});
if (ifnewrow) {
tempdatra.push(item2);
}
});
$('#Ass_ReceiveItem').jfGridSet('refreshdata', tempdatra.sort(sortNumber));
};
function sortNumber(a, b) {
return 1;//a.AAIOrder - b.AAIOrder;
};
// 保存数据
save = function (processId, callBack, i) {
var formData = $('body').lrGetFormData();
@@ -176,21 +311,21 @@ var bootstrap = function ($, learun) {
var postData = {
strEntity: JSON.stringify($('[data-table="Ass_Receive"]').lrGetFormData()),
};
var itemList = $('#Ass_ReceiveItem').jfGridGet('rowdatas');
var num = 0;
$.each(itemList, function (i, item) {
if (item.ANum <= 0) {
learun.alert.warning("请填写<" + item.AName + ">的申请数量");
num++;
}
if (item.ANum > item.ACNum) {
learun.alert.warning("领取数量不能大于库存数量!");
num++;
}
})
if (num > 0) {
return;
}
//var itemList = $('#Ass_ReceiveItem').jfGridGet('rowdatas');
//var num = 0;
//$.each(itemList, function (i, item) {
// if (item.ANum <= 0) {
// learun.alert.warning("请填写<" + item.AName + ">的申请数量");
// num++;
// }
// if (item.ANum > item.ACNum) {
// learun.alert.warning("领取数量不能大于库存数量!");
// num++;
// }
//})
//if (num > 0) {
// return;
//}
postData.receItemList = JSON.stringify($('#Ass_ReceiveItem').jfGridGet('rowdatas'));
$.lrSaveForm(top.$.rootUrl + '/AssetManagementSystem/Ass_Receive/SaveForm?keyValue=' + keyValue, postData, function (res) {
// 保存成功后才回调


+ 10
- 5
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Receive/FormView.cshtml ファイルの表示

@@ -4,16 +4,21 @@
}
<div class="lr-form-wrap">
<div class="col-xs-6 lr-form-item" data-table="Ass_Receive">
<div class="lr-form-item-title">标题</div>
<input id="RTitle" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item" data-table="Ass_PurchaseApply">
<div class="lr-form-item-title">申请人</div>
<div id="ReceiveUser" readonly="readonly" class="form-control" ></div>
<div id="ReceiveUser" isvalid="yes" checkexpession="NotNull" readonly></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="Ass_Receive">
<div class="lr-form-item-title">申请部门</div>
<div id="PDepartment" readonly="readonly" class="form-control" ></div>
<div class="col-xs-6 lr-form-item" data-table="Ass_PurchaseApply">
<div class="lr-form-item-title">申请部门<font face="宋体">*</font></div>
<div id="PDepartment" isvalid="yes" checkexpession="NotNull" readonly></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="Ass_Receive">
<div class="lr-form-item-title">申请时间</div>
<input id="RTime" type="text" class="form-control lr-input-wdatepicker" readonly="readonly" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#RTime').trigger('change'); } })" />
<input id="RTime" type="text" readonly class="form-control currentInfo lr-currentInfo-time" />
@*<input id="RTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt: 'yyyy-MM-dd', onpicked: function() { $('#RTime').trigger('change'); } })" />*@
</div>
<div class="col-xs-12 lr-form-item lr-form-item-grid">
<div id="Ass_ReceiveItem"></div>


+ 43
- 71
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Receive/FormView.js ファイルの表示

@@ -25,85 +25,57 @@ var bootstrap = function ($, learun) {
},
bind: function () {
var loginInfo = top.learun.clientdata.get(['userinfo']);
$('#ReceiveUser').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_userid', text: 'f_realname' }).lrselectSet(loginInfo.userId);
$('#ReceiveUser').lrDataSourceSelect({ code: 'BaseUser', value: 'f_userid', text: 'f_realname' }).lrselectSet(loginInfo.userId);
$('#PDepartment').lrDataSourceSelect({ code: 'classdata', value: 'id', text: 'name' }).lrselectSet(loginInfo.departmentId);
$('#Ass_ReceiveItem').jfGrid({
headData: [
{
label: "资产名称", name: "AName", width: 100, align: "left",
label: '资产编号', name: 'AAICode', width: 150, align: 'left'
},
{
label: "数量", name: "ANum", width: 100, align: "left",
label: '资产名称', name: 'AAIName', width: 150, align: 'left'
},
{
label: "资产编号", name: "AID", width: 100, align: "left",
label: '资产类别', name: 'AAITId', width: 150, align: 'left', formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ass_AssetsType',
key: value,
keyId: 'atid',
callback: function (_data) {
callback(_data['aname']);
}
});
}
},
{
label: '单价', name: 'AAIPrice', width: 100, align: 'left'
},
{
label: '单位', name: 'AAIUnit', width: 80, align: 'left', formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'sldw',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{
label: '英文名称', name: 'AAIEName', width: 100, align: 'left'
},
{
label: '资产型号', name: 'AAIModel', width: 100, align: 'left'
},
{
label: '生产厂家', name: 'AAIManufacturer', width: 100, align: 'left'
}
],
height: 400,
mainId: 'RIID',

reloadSelected: false
});

$('#Ass_ReceiveItem').on('click', function (e) {
var et = e.target || e.srcElement;
var $et = $(et);
if ($et.attr('rowindex') && $et.attr('rownum') && $et.attr('colname') == 'AName') {
var $input = $('#jfgrid_edit_Ass_ReceiveItem_AName');
$input.removeClass('lr-layerselect').removeAttr('lrlayerselect').unbind('click')[0].dfop = null;

$input.lrlayerselect({
treeUrl: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsType/GetAllTree',
treeParentId: 'atptid',
treeValueId: 'atid',
treeTextId: 'aname',
dataUrl: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsInfo/GetList',
dataTreeId: 'ATId',
dataValueId: 'AId',
dataTextId: 'AName',

grid: [
{ label: '资产编号', name: 'ACode', width: 200, align: 'left' },
{ label: '资产名称', name: 'AName', width: 200, align: 'left' },
{ label: "英文名称", name: "AEName", width: 200, align: "left" },
{ label: "资产型号", name: "AModel", width: 200, align: "left" },
{ label: "生产厂家", name: "AManufacturer", width: 200, align: "left" },
{
label: "供应商", name: "ASupplierId", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ass_SupplierData',
key: value,
keyId: 'sid',
callback: function (_data) {
callback(_data['sname']);
}
});
}
}
],
select: function (values, texts) {
if (values && values.length > 0) {

$.lrSetForm(top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsInfo/GetFormData?keyValue=' + values[0], function (data) {
data = data.Ass_AssetsInfo;
var rowIndex = $et.attr('rowindex');
$input.val(data.AName);
$('#Ass_ReceiveItem')[0].dfop.running.rowdata[rowIndex]['jfgridRowData']['AName'] = data.AName;
$('.jfgrid-data-cell[colname="AName"][rowIndex="' + rowIndex + '"]').attr('title', data.AName).html(data.AName);

$('jfgrid_edit_Ass_ReceiveItem_' + 'ANum').val(0);
$('.jfgrid-data-cell[colname="ANum"][rowIndex="' + rowIndex + '"]').attr('title', data.AId).html(0);
$('#Ass_ReceiveItem')[0].dfop.running.rowdata[rowIndex]['jfgridRowData']['ANum'] = 0;

$('jfgrid_edit_Ass_ReceiveItem_' + 'AID').val(data.AId);
$('.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;

});
}
},
isMultiple: false
});
}
})
},
initData: function () {
if (!!keyValue) {
@@ -148,12 +120,12 @@ var bootstrap = function ($, learun) {
};
// 保存数据
save = function (processId, callBack, i) {
var formData = {};
//var formData = {};
var res = {};
res.code = 200;
if (!!processId) {
formData.SProcessId = processId;
}
//if (!!processId) {
// formData.PID = processId;
//}
callBack(res, i);
};
page.init();


+ 6
- 5
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Receive/Index.js ファイルの表示

@@ -54,7 +54,7 @@ var bootstrap = function ($, learun) {
title: '新增',
url: top.$.rootUrl + '/AssetManagementSystem/Ass_Receive/Form',
width: 1000,
height: 600,
height: 700,
callBack: function (id) {
var res = false;
// 验证数据
@@ -84,7 +84,7 @@ var bootstrap = function ($, learun) {
id: 'form',
title: '编辑',
url: top.$.rootUrl + '/AssetManagementSystem/Ass_Receive/Form?keyValue=' + keyValue,
width: 800,
width: 1000,
height: 700,
callBack: function (id) {
var res = false;
@@ -109,7 +109,7 @@ var bootstrap = function ($, learun) {
id: 'forminfoitem',
title: '查看',
url: top.$.rootUrl + '/AssetManagementSystem/Ass_Receive/FormView?keyValue=' + keyValue,
width: 800,
width: 1000,
height: 700,
btn: '',
callBack: function (id) {
@@ -160,14 +160,15 @@ var bootstrap = function ($, learun) {
},
// 初始化列表
initGird: function () {
$('#gridtable').lrAuthorizeJfGrid({
$('#gridtable').jfGrid({
url: top.$.rootUrl + '/AssetManagementSystem/Ass_Receive/GetPageList',
headData: [
{ label: "标题", name: "RTitle", width: 100, align: "left" },
{
label: "申请人", name: "ReceiveUser", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'teacheruserdata',
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser',
key: value,
keyId: 'f_userid',
callback: function (_data) {


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/EmpInfoController.cs ファイルの表示

@@ -148,6 +148,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
foreach (var item in empInfo.PM_FamilySituationList)
{
item.Application = dataItemIBLL.GetDetailList("FamilyRelation").FirstOrDefault(x => x.F_ItemValue == item.Application)?.F_ItemName;
item.PoliticalAffiliation = dataItemIBLL.GetDetailList("PolityStatus").FirstOrDefault(x => x.F_ItemValue == item.PoliticalAffiliation)?.F_ItemName;
}
//培训进修
empInfo.TeacherTrainList = teacherTrainIBLL.GetListByEmpId(empInfo.EmpId).OrderByDescending(x => x.TTStartTime).ToList();


+ 4
- 4
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/EmpInfo/Print.cshtml ファイルの表示

@@ -53,7 +53,7 @@
<td colspan="6">
@foreach (var item in Model.PM_ResumeList)
{
<div class="tableTxt">@(Model.PM_ResumeList.IndexOf(item) + 1)、@item.RTime @item.UnitName @item.DepartmentID @item.PostID</div>
<div class="tableTxt">@(Model.PM_ResumeList.IndexOf(item) + 1)、@item.RTime 至 @item.RSTime @item.UnitName @item.DepartmentID @item.PostID</div>
}
</td>
</tr>
@@ -62,7 +62,7 @@
<td colspan="6">
@foreach (var item in Model.PM_EducationExperienceList)
{
<div class="tableTxt">@(Model.PM_EducationExperienceList.IndexOf(item) + 1)、@item.ETime @item.School @item.Major</div>
<div class="tableTxt">@(Model.PM_EducationExperienceList.IndexOf(item) + 1)、@item.ETime 至 @item.ESTime @item.School @item.Major</div>
}
</td>
</tr>
@@ -76,7 +76,7 @@
</td>
</tr>
<tr>
<td>奖情况</td>
<td>奖情况</td>
<td colspan="6">
@foreach (var item in Model.TeacherEncourgementList)
{
@@ -93,7 +93,7 @@
<td colspan="6" style="padding: 0;">
@foreach (var item in Model.PM_FamilySituationList)
{
<div class="tableTxt">@(Model.PM_FamilySituationList.IndexOf(item) + 1)、@item.Application @item.Name @item.UnitAndPost</div>
<div class="tableTxt">@(Model.PM_FamilySituationList.IndexOf(item) + 1)、@item.Application @item.Name @item.Birthday @item.PoliticalAffiliation @item.UnitAndPost</div>
}
</td>
</tr>


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/Report.js ファイルの表示

@@ -126,7 +126,7 @@ var bootstrap = function ($, learun) {
}
});
});
//确认报到
//签订
$("#lr_sign").on('click',
function () {
var data = $('#gridtable').jfGridGet('rowdata');


+ 2
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj ファイルの表示

@@ -872,6 +872,7 @@
<Content Include="Areas\AssetManagementSystem\Views\Ass_AssetsInfoApply\Index.js" />
<Content Include="Areas\AssetManagementSystem\Views\Ass_AssetsInfoApply\IndexJY.js" />
<Content Include="Areas\AssetManagementSystem\Views\Ass_AssetsInfoApply\IndexJYHC.js" />
<Content Include="Areas\AssetManagementSystem\Views\Ass_AssetsInfoItemApply\FormJY.js" />
<Content Include="Areas\AssetManagementSystem\Views\Ass_AssetsInfoItemApply\FormJYHC.js" />
<Content Include="Areas\AssetManagementSystem\Views\Ass_AssetsInfoItemApply\Form.js" />
<Content Include="Areas\AssetManagementSystem\Views\Ass_AssetsInfoItemApply\FormPurchase.js" />
@@ -7347,6 +7348,7 @@
<Content Include="Areas\AssetManagementSystem\Views\Ass_AssetsInfoApply\FormViewJYHC.cshtml" />
<Content Include="Areas\AssetManagementSystem\Views\Ass_Acceptance\Form.cshtml" />
<Content Include="Areas\AssetManagementSystem\Views\Ass_Acceptance\FormView.cshtml" />
<Content Include="Areas\AssetManagementSystem\Views\Ass_AssetsInfoItemApply\FormJY.cshtml" />
<None Include="Areas\EducationalAdministration\Views\SchoolNews\Index.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StuEnroll\StuTuition.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StuEnroll\IsHelpForm.cshtml" />


+ 8
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_Receive/Ass_ReceiveEntity.cs ファイルの表示

@@ -20,6 +20,11 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem
[Column("RID")]
public string RID { get; set; }
/// <summary>
/// 标题
/// </summary>
[Column("RTITLE")]
public string RTitle { get; set; }
/// <summary>
/// 领取人
/// </summary>
[Column("RECEIVEUSER")]
@@ -55,6 +60,9 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem
this.RID = Guid.NewGuid().ToString();
this.RTime = DateTime.Now;
this.PStatus = "0";
var userinfo = LoginUserInfo.Get();
this.ReceiveUser = userinfo.userId;
this.PDepartment = userinfo.departmentId;
}
/// <summary>
/// 编辑调用


+ 16
- 15
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_Receive/Ass_ReceiveService.cs ファイルの表示

@@ -34,6 +34,7 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem
strSql.Append(@"
t.RID,
t.ReceiveUser,
t.RTitle,
t.PDepartment,
t.PStatus,
t.RTime
@@ -92,7 +93,7 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem
{
try
{
return this.BaseRepository().FindEntity<Ass_ReceiveEntity>(a=>a.PID==ProcessID);
return this.BaseRepository().FindEntity<Ass_ReceiveEntity>(a => a.PID == ProcessID);
}
catch (Exception ex)
{
@@ -211,20 +212,20 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem
db.Update(receiveEntity);

//根据领取单减少资产库的库存
foreach (var item in receiveItem)
{
var num = int.Parse(item.ANum);
if (num > 0)
{
var assInfoEntity = db.FindEntity<Ass_AssetsInfoEntity>(a => a.AId == item.AID);
if (assInfoEntity.AStock >= num)
{
assInfoEntity.AStock = assInfoEntity.AStock - num;
db.Update(assInfoEntity);
}
}
}
//foreach (var item in receiveItem)
//{
// var num = int.Parse(item.ANum);
// if (num > 0)
// {
// var assInfoEntity = db.FindEntity<Ass_AssetsInfoEntity>(a => a.AId == item.AID);
// if (assInfoEntity.AStock >= num)
// {
// assInfoEntity.AStock = assInfoEntity.AStock - num;
// db.Update(assInfoEntity);
// }
// }
//}

}
db.Commit();


+ 95
- 12
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_ReceiveItem/Ass_ReceiveItemEntity.cs ファイルの表示

@@ -20,25 +20,108 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem
[Column("RIID")]
public string RIID { get; set; }
/// <summary>
/// 资产编
/// 申请单
/// </summary>
[Column("AID")]
public string AID { get; set; }
[Column("RID")]
public string RID { get; set; }
/// <summary>
/// 资产名称
/// AAICode
/// </summary>
[Column("ANAME")]
public string AName { get; set; }
[Column("AAICODE")]
public string AAICode { get; set; }
/// <summary>
/// 数量
/// AAIName
/// </summary>
[Column("ANUM")]
public string ANum { get; set; }
[Column("AAINAME")]
public string AAIName { get; set; }
/// <summary>
/// 申请单号
/// AAITId
/// </summary>
[Column("RID")]
public string RID { get; set; }
[Column("AAITID")]
public string AAITId { get; set; }
/// <summary>
/// AAIEName
/// </summary>
[Column("AAIENAME")]
public string AAIEName { get; set; }
/// <summary>
/// AAIPhoto
/// </summary>
[Column("AAIPHOTO")]
public string AAIPhoto { get; set; }
/// <summary>
/// AAIContent
/// </summary>
[Column("AAICONTENT")]
public string AAIContent { get; set; }
/// <summary>
/// AAIOrder
/// </summary>
[Column("AAIORDER")]
public int? AAIOrder { get; set; }
/// <summary>
/// AAIModel
/// </summary>
[Column("AAIMODEL")]
public string AAIModel { get; set; }
/// <summary>
/// AAIManufacturer
/// </summary>
[Column("AAIMANUFACTURER")]
public string AAIManufacturer { get; set; }
/// <summary>
/// AAISupplierId
/// </summary>
[Column("AAISUPPLIERID")]
public string AAISupplierId { get; set; }
/// <summary>
/// AAISource
/// </summary>
[Column("AAISOURCE")]
public string AAISource { get; set; }
/// <summary>
/// AAIPrice
/// </summary>
[Column("AAIPRICE")]
public decimal? AAIPrice { get; set; }

/// <summary>
/// AAISTOCK
/// </summary>
[Column("AAISTOCK")]
public decimal? AAIStock { get; set; }
/// <summary>
/// AAIUNIT
/// </summary>
[Column("AAIUNIT")]
public string AAIUnit { get; set; }
/// <summary>
/// AAIREALNUM
/// </summary>
[Column("AAIREALNUM")]
public decimal? AAIRealNum { get; set; }

/// <summary>
/// AAIREALNUM
/// </summary>
[Column("AISCHECK")]
public bool? AIsCheck { get; set; }

/// <summary>
/// AResult
/// </summary>
[Column("ARESULT")]
public int? AResult { get; set; }
/// <summary>
/// ARemark
/// </summary>
[Column("AREMARK")]
public string ARemark { get; set; }
/// <summary>
/// AAddress
/// </summary>
[Column("AADDRESS")]
public string AAddress { get; set; }
#endregion

#region 扩展操作


+ 1
- 4
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_ReceiveItem/Ass_ReceiveItemService.cs ファイルの表示

@@ -31,10 +31,7 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem
var strSql = new StringBuilder();
strSql.Append("SELECT ");
strSql.Append(@"
t.RIID,
t.AName,
t.AID,
t.ANum
t.*
");
strSql.Append(" FROM Ass_ReceiveItem t ");
strSql.Append(" WHERE 1=1 ");


+ 5
- 4
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_Storage_Room/AssStorageRoomService.cs ファイルの表示

@@ -58,7 +58,7 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem
}
if (!queryParam["StorageId"].IsEmpty())
{
dp.Add("StorageId",queryParam["StorageId"].ToString(), DbType.String);
dp.Add("StorageId", queryParam["StorageId"].ToString(), DbType.String);
strSql.Append(" AND t.StorageId = @StorageId ");
}
if (!queryParam["RFunction"].IsEmpty())
@@ -71,7 +71,7 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem
dp.Add("RArea", "%" + queryParam["RArea"].ToString() + "%", DbType.String);
strSql.Append(" AND t.RArea Like @RArea ");
}
return this.BaseRepository().FindList<Ass_Storage_RoomEntity>(strSql.ToString(),dp, pagination);
return this.BaseRepository().FindList<Ass_Storage_RoomEntity>(strSql.ToString(), dp, pagination);
}
catch (Exception ex)
{
@@ -109,7 +109,7 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem
}
}
}
/// <summary>
/// 获取树形数据
/// </summary>
@@ -144,6 +144,7 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem
try
{
string sql = $"select RId,RCode+'('+RFunction+')' as RCode from Ass_Storage_Room where StorageId='{storageId}'";
sql += " order by RCode";
return this.BaseRepository().FindList<Ass_Storage_RoomEntity>(sql);
}
catch (Exception ex)
@@ -170,7 +171,7 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem
{
try
{
this.BaseRepository().Delete<Ass_Storage_RoomEntity>(t=>t.RId == keyValue);
this.BaseRepository().Delete<Ass_Storage_RoomEntity>(t => t.RId == keyValue);
}
catch (Exception ex)
{


+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuEnroll/StuEnrollService.cs ファイルの表示

@@ -1705,7 +1705,7 @@ t.SupportChangeTime,t.SupportChangeUserName
foreach (var item in list)
{
item.IsReport = true;
item.SecurityAgreement = true;
//item.SecurityAgreement = true;
item.Status = 1;
this.BaseRepository("CollegeMIS").Update(item);
}
@@ -2798,7 +2798,7 @@ t.SupportChangeTime,t.SupportChangeUserName
{
item.IsReport = status;
item.Status = 1;
item.SecurityAgreement = status;
//item.SecurityAgreement = status;
this.BaseRepository("CollegeMis").Update(item);
}
resultbool = true;


読み込み中…
キャンセル
保存