initial add
This commit is contained in:
@ -0,0 +1,50 @@
|
||||
<div class="modal fade" id="ApprovalLogHistoryDialog" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop="static">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title" id="myModalLabel">Approval Log History</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
@(Html.Kendo().Grid<Fab2ApprovalSystem.Models.ApprovalLogHistory>()
|
||||
.Name("ApprovalLogHistory")
|
||||
.Columns(columns =>
|
||||
{
|
||||
columns.Bound(a => a.ApprovalLogID).Visible(false);
|
||||
columns.Bound(a => a.FullName);
|
||||
columns.Bound(a => a.SubRole);
|
||||
columns.Bound(a => a.Operation);
|
||||
columns.Bound(a => a.OperationTime).Format("{0:MM/dd/yy hh:mm:ss}");
|
||||
})
|
||||
.Sortable()
|
||||
.Scrollable()
|
||||
.HtmlAttributes(new { style = "height:300px; width:100%; font-size: 12px" })
|
||||
.DataSource(dataSource => dataSource
|
||||
.Ajax()
|
||||
.ServerOperation(false)
|
||||
.Model(model =>
|
||||
{
|
||||
model.Id(p => p.ApprovalLogID);
|
||||
})
|
||||
.PageSize(50)
|
||||
.Read(read => read.Action("ApprovalLogHistory_Read", "PartsRequest", new { prNumber = Model.PRNumber }))
|
||||
)
|
||||
)
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
|
||||
$('#ApprovalLogHistoryData').on('click', function () {
|
||||
$("#ApprovalLogHistory").data('kendoGrid').dataSource.read();
|
||||
$("#ApprovalLogHistoryDialog").modal('show');
|
||||
return false;
|
||||
})
|
||||
|
||||
});
|
||||
</script>
|
Reference in New Issue
Block a user