Przeglądaj źródła

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

金隅分支
edy 3 lat temu
rodzic
commit
8aa5fa87c5
4 zmienionych plików z 27 dodań i 23 usunięć
  1. +8
    -7
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Acceptance/Form.js
  2. +4
    -4
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Acceptance/FormItem.cshtml
  3. +3
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Acceptance/FormItem.js
  4. +12
    -12
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_AcceptanceMain/Ass_AcceptanceMainService.cs

+ 8
- 7
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Acceptance/Form.js Wyświetl plik

@@ -60,14 +60,14 @@ var bootstrap = function ($, learun) {
var keyValue = $('#Ass_Acceptance').jfGridValue('AAIId');
var AAICode = $('#Ass_Acceptance').jfGridValue('AAICode');
selectedRow = $('#Ass_Acceptance').jfGridGet('rowdata');
if (learun.checkrow(AAICode)) {
learun.layerForm({
id: 'formitem',
title: '编辑明细',
url: top.$.rootUrl + '/AssetManagementSystem/Ass_Acceptance/FormItem?keyValue=' + keyValue,
width: 860,
height: 600,
height: 500,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
@@ -81,20 +81,20 @@ var bootstrap = function ($, learun) {
title: '新增明细',
url: top.$.rootUrl + '/AssetManagementSystem/Ass_Acceptance/FormItem',
width: 860,
height: 600,
height: 500,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
});
});
$("#detaildel").on('click', function () {
var keyValue = $('#Ass_Acceptance').jfGridValue('AAIId');
var keyValue = $('#Ass_Acceptance').jfGridValue('AAICode');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认删除该项!', function (res, index) {
if (res) {
$.each(tempdatra, function (key, val) {
if (val && val.AAIId === keyValue) {
pricecount -= val.AAIPrice;
if (val && val.AAICode === keyValue) {
pricecount -= (val.AAIPrice * val.AAIStock);
tempdatra.splice(key, 1);
}
});
@@ -303,6 +303,7 @@ var bootstrap = function ($, learun) {
// });

//var ifnewrow = true;
$.each(tempdatra, function (key, val) {
if (tempdatra[key].AAICode === temprow.AAICode) {
tempdatra[key] = temprow;
@@ -319,7 +320,7 @@ var bootstrap = function ($, learun) {
$('#Ass_Acceptance').jfGridSet('refreshdata', tempdatra.sort(sortNumber));
};
function sortNumber(a, b) {
return 1;//a.AAIOrder - b.AAIOrder;
return a.AAIOrder - b.AAIOrder;
};
// 验证数据是否填写完整
validForm = function () {


+ 4
- 4
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Acceptance/FormItem.cshtml Wyświetl plik

@@ -8,12 +8,12 @@
<input id="AAICode" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-6 lr-form-item" data-table="Ass_Acceptance">
<div class="lr-form-item-title">资产名称</div>
<input id="AAIName" type="text" class="form-control" />
<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_Acceptance">
<div class="lr-form-item-title">资产类别</div>
<div id="AAITId"></div>
<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_Acceptance">
<div class="lr-form-item-title">资产来源</div>


+ 3
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Acceptance/FormItem.js Wyświetl plik

@@ -125,6 +125,9 @@ var bootstrap = function ($, learun) {
} else {
postData.MainId = learun.newGuid();
}
if (postData.AAIId) {
postData.AAIId = learun.newGuid();
}
if (!!callBack) {
callBack(postData);
return true;


+ 12
- 12
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_AcceptanceMain/Ass_AcceptanceMainService.cs Wyświetl plik

@@ -354,12 +354,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.AIAssValue = assitemapp.AAIPrice;//价值
insertassinfoitem.AIUnits = assitemapp.AAIUnit;//单位
insertassinfoitem.AISpecificationtype = assitemapp.AAIModel;//型号
insertassinfoitem.AIManufacturer = assitemapp.AAIManufacturer;//厂家
insertassinfoitem.AIUse = assitemapp.AAIUse;//用途
insertassinfoitem.AISpecification = assitemapp.AAISpecification;//规格
insertassinfoitem.AIASSName = assitemapp.AAIName;
insertassinfoitem.AIIStorageId = assitemapp.AAIStorageId;
insertassinfoitem.AIAssType = entity.AssType;
@@ -417,12 +417,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.AIAssValue = assitemapp.AAIPrice;//价值
insertassinfoitem.AIUnits = assitemapp.AAIUnit;//单位
insertassinfoitem.AISpecificationtype = assitemapp.AAIModel;//型号
insertassinfoitem.AIManufacturer = assitemapp.AAIManufacturer;//厂家
insertassinfoitem.AIUse = assitemapp.AAIUse;//用途
insertassinfoitem.AISpecification = assitemapp.AAISpecification;//规格
insertassinfoitem.AIASSName = assitemapp.AAIName;
insertassinfoitem.AIIStorageId = assitemapp.AAIStorageId;
insertassinfoitem.AIAssType = entity.AssType;


Ładowanie…
Anuluj
Zapisz