diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Controllers/Ass_AssetsInfoItemController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Controllers/Ass_AssetsInfoItemController.cs index 3f4b6b53c..e02675f7b 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Controllers/Ass_AssetsInfoItemController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Controllers/Ass_AssetsInfoItemController.cs @@ -357,6 +357,14 @@ namespace Learun.Application.Web.Areas.AssetManagementSystem.Controllers public ActionResult SaveForm(string keyValue, string strEntity) { Ass_AssetsInfoItemEntity entity = strEntity.ToObject(); + if (!entity.AIAssValue.HasValue) + { + entity.AIAssValue = null; + } + if (!entity.AIASSState.HasValue) + { + entity.AIASSState = null; + } ass_AssetsInfoItemIBLL.SaveEntity(keyValue, entity); return Success("保存成功!"); } diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsChangeItem/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsChangeItem/Index.js index f415a28ae..a06275df0 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsChangeItem/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsChangeItem/Index.js @@ -49,7 +49,7 @@ var bootstrap = function ($, learun) { $('#ACInOrOut').lrDataItemSelect({ code: 'InOrOut' }); $('#ACReasonType').lrDataItemSelect({ code: 'ReasonType' }); //$('#ACCStorageId').lrDataSourceSelect({ code: 'Ass_StorageData', value: 'sid', text: 'sname' }); - $('#AIIStorageId').lrselect({ + $('#ACCStorageId').lrselect({ type: 'tree', allowSearch: true, url: top.$.rootUrl + '/AssetManagementSystem/AssStorageRoom/GetTree', 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 20f8127a0..3eedc0f25 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 @@ -17,7 +17,7 @@
资产属性*
-
+
@*
英文名称
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfo/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfo/Form.js index 1962246f5..24ac2b362 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfo/Form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfo/Form.js @@ -50,7 +50,7 @@ var bootstrap = function ($, learun) { //$('#AIIStorageId').lrDataSourceSelect({ code: 'Ass_StorageData', value: 'sid', text: 'sname' }); $('#ASupplierId').lrDataSourceSelect({ code: 'Ass_SupplierData', value: 'sid', text: 'sname' }); $('#AAssType').lrDataItemSelect({ code: 'AssType' }); - $('#APhoto').lrUploader(); + //$('#APhoto').lrUploader(); }, initData: function () { if (!!keyValue) { diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItem/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItem/Index.js index d151373e3..15afab421 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItem/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItem/Index.js @@ -69,10 +69,13 @@ var bootstrap = function ($, learun) { $('#AIASSState').lrDataItemSelect({ code: 'AssState' }); $('#AIDepartment').lrDepartmentSelect({ select: function (val) { - $('#AIUsePeople').lrselectRefresh({ url: top.$.rootUrl + '/LR_OrganizationModule/User/GetListByDepartmentId?departmentId=' + val.value, text: 'F_RealName', value: 'F_UserId' }) + if (val) { + $('#AIUsePeople').lrselectRefresh({ url: top.$.rootUrl + '/LR_OrganizationModule/User/GetListByDepartmentId?departmentId=' + val.value, text: 'F_RealName', value: 'F_UserId' }) + } } }); - $('#AIUsePeople').lrselect({ allowSearch: true, text: 'F_RealName', value: 'F_UserId' }); + //$('#AIUsePeople').lrselect({ allowSearch: true, text: 'F_RealName', value: 'F_UserId' }); + $('#AIUsePeople').lrselect(); // 刷新 $('#lr_refresh').on('click', function () { location.reload(); @@ -133,6 +136,10 @@ var bootstrap = function ($, learun) { $('#lr_edit').on('click', function () { var keyValue = $('#gridtable').jfGridValue('AIId'); if (learun.checkrow(keyValue)) { + if (keyValue.indexOf(',') != -1) { + learun.alert.warning("只能选择一条记录进行操作!"); + return false; + } learun.layerForm({ id: 'forminfoitem', title: '编辑', @@ -149,6 +156,10 @@ var bootstrap = function ($, learun) { $('#lr_view').on('click', function () { var keyValue = $('#gridtable').jfGridValue('AIId'); if (learun.checkrow(keyValue)) { + if (keyValue.indexOf(',') != -1) { + learun.alert.warning("只能选择一条记录进行操作!"); + return false; + } learun.layerForm({ id: 'forminfoitem', title: '查看', @@ -166,6 +177,10 @@ var bootstrap = function ($, learun) { $('#lr_detail').on('click', function () { var keyValue = $('#gridtable').jfGridValue('AIId'); if (learun.checkrow(keyValue)) { + if (keyValue.indexOf(',') != -1) { + learun.alert.warning("只能选择一条记录进行操作!"); + return false; + } learun.layerForm({ id: 'formdetail', title: '出入库记录', @@ -181,6 +196,10 @@ var bootstrap = function ($, learun) { $('#lr_usedetail').on('click', function () { var keyValue = $('#gridtable').jfGridValue('AIId'); if (learun.checkrow(keyValue)) { + if (keyValue.indexOf(',') != -1) { + learun.alert.warning("只能选择一条记录进行操作!"); + return false; + } learun.layerForm({ id: 'formusedetail', title: '使用人员变动记录',