@@ -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> | ||||
@@ -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) { | ||||
@@ -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" }, | ||||
{ | { | ||||
@@ -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") |