Sfoglia il codice sorgente

经费开支申报单 金额追加俩位小数

新疆警官学校中职
ndbs 2 anni fa
parent
commit
111b87f042
5 ha cambiato i file con 17 aggiunte e 7 eliminazioni
  1. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApply/Form.cshtml
  2. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApply/FormView.cshtml
  3. +4
    -4
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApply/Index.js
  4. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApplyDetail/Form.cshtml
  5. +10
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApplyDetail/Form.js

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApply/Form.cshtml Vedi File

@@ -30,7 +30,7 @@
<input id="ApplyUser" type="text" readonly class="form-control currentInfo lr-currentInfo-user" />
</div>
<div class="col-xs-6 lr-form-item" data-table="FundsApply">
<div class="lr-form-item-title">备注</div>
<div class="lr-form-item-title">申报人</div>
<input id="Remark" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApply/FormView.cshtml Vedi File

@@ -30,7 +30,7 @@
<input id="ApplyUser" type="text" readonly class="form-control currentInfo lr-currentInfo-user" />
</div>
<div class="col-xs-6 lr-form-item" data-table="FundsApply">
<div class="lr-form-item-title">备注</div>
<div class="lr-form-item-title">申报人</div>
<input id="Remark" type="text" class="form-control" />
</div>
@*<div class="col-xs-12 lr-form-item">


+ 4
- 4
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApply/Index.js Vedi File

@@ -58,7 +58,7 @@ var bootstrap = function ($, learun) {
title: '申请',
url: top.$.rootUrl + '/AssetManagementSystem/FundsApply/Form',
width: 860,
height: 750,
height: 780,
callBack: function (id) {
var res = false;
// 验证数据
@@ -90,7 +90,7 @@ var bootstrap = function ($, learun) {
title: '编辑',
url: top.$.rootUrl + '/AssetManagementSystem/FundsApply/Form?keyValue=' + keyValue,
width: 860,
height: 750,
height: 780,
callBack: function (id) {
var res = false;
// 验证数据
@@ -156,7 +156,7 @@ var bootstrap = function ($, learun) {
title: '查看',
url: top.$.rootUrl + '/AssetManagementSystem/FundsApply/FormView?keyValue=' + keyValue,
width: 860,
height: 720,
height: 730,
callBack: function (id) {

}
@@ -193,7 +193,7 @@ var bootstrap = function ($, learun) {
});
}
},
{ label: "备注", name: "Remark", width: 100, align: "left" },
{ label: "申报人", name: "Remark", width: 100, align: "left" },
{ label: "总金额", name: "SumAmount", width: 100, align: "left" },
{ label: "人民币(大写)", name: "UpperAmount", width: 200, align: "left" },
{


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApplyDetail/Form.cshtml Vedi File

@@ -13,7 +13,7 @@
</div>
<div class="col-xs-12 lr-form-item" data-table="FundsApplyDetail" >
<div class="lr-form-item-title">单价(元)<font face="宋体">*</font></div>
<input id="Price" type="text" class="form-control calcul" isvalid="yes" checkexpession="PositiveFloatintZero" />
<input id="Price" type="text" class="form-control calcul" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-12 lr-form-item" data-table="FundsApplyDetail" >
<div class="lr-form-item-title">金额(元)</div>


+ 10
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApplyDetail/Form.js Vedi File

@@ -20,6 +20,16 @@ var bootstrap = function ($, learun) {
$('.calcul').blur(function () {
var num = $('#Number').val();
var Price = $('#Price').val();
if (!!Price) {
let regNeg = /^(0|[1-9]\d*|(0|[1-9]\d*)\.\d*[1-9])$/;
if (regNeg.test(Price)) {
$('#Price').val(parseFloat(Price).toFixed(2));
} else {
$('#Price').val('');
learun.alert.warning("单价必须为整数或小数(不能为负数)!");
return false;
}
}
if (!!num && !!Price) {
$('#Amount').val((parseInt(num) * parseFloat(Price)).toFixed(2));
}


Caricamento…
Annulla
Salva