소스 검색

资产验收调整

金隅分支
zhangli 3 년 전
부모
커밋
f73eb4fe47
4개의 변경된 파일27개의 추가작업 그리고 23개의 파일을 삭제
  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 파일 보기

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


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


+ 4
- 4
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Acceptance/FormItem.cshtml 파일 보기

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


+ 3
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Acceptance/FormItem.js 파일 보기

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


+ 12
- 12
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_AcceptanceMain/Ass_AcceptanceMainService.cs 파일 보기

@@ -354,12 +354,12 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem
insertassinfoitem.AICodeNum = i + 1; insertassinfoitem.AICodeNum = i + 1;
insertassinfoitem.AICode = insertAss_AssetsInfo.ACode + "_" + insertassinfoitem.AICodeNum.ToString(); insertassinfoitem.AICode = insertAss_AssetsInfo.ACode + "_" + insertassinfoitem.AICodeNum.ToString();
insertassinfoitem.AICodeNumJY = 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.AIASSName = assitemapp.AAIName;
insertassinfoitem.AIIStorageId = assitemapp.AAIStorageId; insertassinfoitem.AIIStorageId = assitemapp.AAIStorageId;
insertassinfoitem.AIAssType = entity.AssType; insertassinfoitem.AIAssType = entity.AssType;
@@ -417,12 +417,12 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem
insertassinfoitem.AICodeNum = 1; insertassinfoitem.AICodeNum = 1;
insertassinfoitem.AICode = insertAss_AssetsInfo.ACode + "_" + insertassinfoitem.AICodeNum.ToString(); insertassinfoitem.AICode = insertAss_AssetsInfo.ACode + "_" + insertassinfoitem.AICodeNum.ToString();
insertassinfoitem.AICodeNumJY = 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.AIASSName = assitemapp.AAIName;
insertassinfoitem.AIIStorageId = assitemapp.AAIStorageId; insertassinfoitem.AIIStorageId = assitemapp.AAIStorageId;
insertassinfoitem.AIAssType = entity.AssType; insertassinfoitem.AIAssType = entity.AssType;


불러오는 중...
취소
저장