Преглед на файлове

【修改】经费开支申报:列表金额空判断;

新疆警官学校中职
dyy преди 2 години
родител
ревизия
c7f9e17401
променени са 2 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApply/Index.js
  2. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApplyDetail/Index.js

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApply/Index.js Целия файл

@@ -194,7 +194,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", formatter: function (cellvalue) { label: "总金额", name: "SumAmount", width: 100, align: "left", formatter: function (cellvalue) {
return cellvalue.toFixed(2);
return cellvalue != null && cellvalue != "" && cellvalue != undefined ? cellvalue.toFixed(2):"0.00" ;
} }
}, },
{ label: "人民币(大写)", name: "UpperAmount", width: 200, align: "left" }, { label: "人民币(大写)", name: "UpperAmount", width: 200, align: "left" },


+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApplyDetail/Index.js Целия файл

@@ -73,12 +73,12 @@ var bootstrap = function ($, learun) {
{ label: "数量", name: "Number", width: 100, align: "left"}, { label: "数量", name: "Number", width: 100, align: "left"},
{ {
label: "单价(元)", name: "Price", width: 100, align: "left", formatter: function (cellvalue) { label: "单价(元)", name: "Price", width: 100, align: "left", formatter: function (cellvalue) {
return cellvalue.toFixed(2);
return cellvalue != null && cellvalue != "" && cellvalue != undefined ? cellvalue.toFixed(2) : "0.00";
} }
}, },
{ {
label: "金额(元)", name: "Amount", width: 100, align: "left", formatter: function (cellvalue) { label: "金额(元)", name: "Amount", width: 100, align: "left", formatter: function (cellvalue) {
return cellvalue.toFixed(2);
return cellvalue != null && cellvalue != "" && cellvalue != undefined ? cellvalue.toFixed(2) : "0.00";
} }
}, },
], ],


Зареждане…
Отказ
Запис