Browse Source

【修改】实训设备管理:加字段验证;图书信息管理:列表时间显示优化、表单审核标志下拉框;

新疆警官学校中职
dyy 2 years ago
parent
commit
0a2fcdb4b8
4 changed files with 22 additions and 8 deletions
  1. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/BookInfo/Form.cshtml
  2. +2
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/BookInfo/Form.js
  3. +14
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/BookInfo/Index.js
  4. +5
    -5
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TrainEquipmentManage/Form.cshtml

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/BookInfo/Form.cshtml View File

@@ -53,7 +53,7 @@
</div> </div>
<div class="col-xs-6 lr-form-item" data-table="Book_info"> <div class="col-xs-6 lr-form-item" data-table="Book_info">
<div class="lr-form-item-title">审核标志</div> <div class="lr-form-item-title">审核标志</div>
<input id="CheckMark" type="text" class="form-control" />
<div id="CheckMark"></div>
</div> </div>
<div class="col-xs-12 lr-form-item" data-table="Book_info"> <div class="col-xs-12 lr-form-item" data-table="Book_info">
<div class="lr-form-item-title">备注</div> <div class="lr-form-item-title">备注</div>


+ 2
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/BookInfo/Form.js View File

@@ -17,6 +17,8 @@ var bootstrap = function ($, learun) {
bind: function () { bind: function () {
$("#BookType").lrDataSourceSelect({ code: 'BookClass', value: 'id', text: 'typename' }); $("#BookType").lrDataSourceSelect({ code: 'BookClass', value: 'id', text: 'typename' });
$("#BookLocation").lrDataSourceSelect({ code: 'BookLocation', value: 'id', text: 'booklocation' }); $("#BookLocation").lrDataSourceSelect({ code: 'BookLocation', value: 'id', text: 'booklocation' });
$('#CheckMark').lrDataItemSelect({ code: 'BookStatus' });

}, },
initData: function () { initData: function () {
if (!!keyValue) { if (!!keyValue) {


+ 14
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/BookInfo/Index.js View File

@@ -91,8 +91,20 @@ var bootstrap = function ($, learun) {
{ label: "书籍作者", name: "Author", width: 100, align: "left" }, { label: "书籍作者", name: "Author", width: 100, align: "left" },
{ label: "书籍出版社", name: "Publisher", width: 100, align: "left" }, { label: "书籍出版社", name: "Publisher", width: 100, align: "left" },
{ label: "书籍编号", name: "BookCode", width: 100, align: "left" }, { label: "书籍编号", name: "BookCode", width: 100, align: "left" },
{ label: "出版时间", name: "PublishTime", width: 100, align: "left" },
{ label: "入库时间", name: "AddTime", width: 100, align: "left" },
{
label: "出版时间", name: "PublishTime", width: 100, align: "left", formatter: function (cellvalue) {
if (cellvalue != null && cellvalue!=undefined && cellvalue!="") {
return cellvalue.slice(0, 10);
}
}
},
{
label: "入库时间", name: "AddTime", width: 100, align: "left", formatter: function (cellvalue) {
if (cellvalue != null && cellvalue != undefined && cellvalue != "") {
return cellvalue.slice(0, 10);
}
}
},
{ label: "书籍价格", name: "Price", width: 100, align: "left" }, { label: "书籍价格", name: "Price", width: 100, align: "left" },
{ label: "数量", name: "Amount", width: 100, align: "left" }, { label: "数量", name: "Amount", width: 100, align: "left" },
{ {


+ 5
- 5
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TrainEquipmentManage/Form.cshtml View File

@@ -21,19 +21,19 @@
</div> </div>
<div class="col-xs-12 lr-form-item" data-table="TrainEquipmentManage" > <div class="col-xs-12 lr-form-item" data-table="TrainEquipmentManage" >
<div class="lr-form-item-title">新增</div> <div class="lr-form-item-title">新增</div>
<input id="AddNum" type="text" class="form-control" />
<input id="AddNum" type="number" class="form-control" />
</div> </div>
<div class="col-xs-12 lr-form-item" data-table="TrainEquipmentManage" > <div class="col-xs-12 lr-form-item" data-table="TrainEquipmentManage" >
<div class="lr-form-item-title">损耗</div> <div class="lr-form-item-title">损耗</div>
<input id="LossNum" type="text" class="form-control" />
<input id="LossNum" type="number" class="form-control" />
</div> </div>
<div class="col-xs-12 lr-form-item" data-table="TrainEquipmentManage" > <div class="col-xs-12 lr-form-item" data-table="TrainEquipmentManage" >
<div class="lr-form-item-title">现存</div> <div class="lr-form-item-title">现存</div>
<input id="ExistNum" type="text" class="form-control" />
<input id="ExistNum" type="number" class="form-control" />
</div> </div>
<div class="col-xs-12 lr-form-item" data-table="TrainEquipmentManage" > <div class="col-xs-12 lr-form-item" data-table="TrainEquipmentManage" >
<div class="lr-form-item-title">设备金额</div>
<input id="EquipmentMoney" type="text" class="form-control" />
<div class="lr-form-item-title">设备金额<font face="宋体">*</font></div>
<input id="EquipmentMoney" type="number" class="form-control" isvalid="yes" checkexpession="PositiveFloatintZero" />
</div> </div>
</div> </div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/TrainEquipmentManage/Form.js") @Html.AppendJsFile("/Areas/EducationalAdministration/Views/TrainEquipmentManage/Form.js")

Loading…
Cancel
Save