Added functionality to attach files to corrective actions
This commit is contained in:
@ -318,6 +318,46 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel-body bg-warning">
|
||||
<div class="form-group">
|
||||
<label class="control-label">Affected Documents:</label>
|
||||
<div class="col-sm-12">
|
||||
|
||||
|
||||
|
||||
@(Html.Kendo().Grid<Fab2ApprovalSystem.Models.CA_Attachment>()
|
||||
.Name("files")
|
||||
.Columns(columns =>
|
||||
{
|
||||
columns.Bound(a => a.ID).Visible(false);
|
||||
columns.Bound(a => a.CANo).Visible(false);
|
||||
columns.Bound(a => a.FileGUID).Visible(false);
|
||||
columns.Bound(a => a.FileName);
|
||||
columns.Bound(a => a.UploadedByName);
|
||||
columns.Bound(a => a.UploadDateTime).Format("{0:MM/dd/yy hh:mm:ss}");
|
||||
columns.Command(command => command.Custom("View").Click("DownloadCAAttachment"));
|
||||
//columns.Command(command => command.Custom("Delete").Click("DeleteD4CAAttachment"));
|
||||
|
||||
})
|
||||
|
||||
.Sortable()
|
||||
.HtmlAttributes(new { style = "height:300px; width:100%; font-size: 10px", Readonly = "Readonly" })
|
||||
.DataSource(dataSource => dataSource
|
||||
.Ajax()
|
||||
//.Batch(false)
|
||||
.ServerOperation(false)
|
||||
.Events(events => events.Error("error_handler"))
|
||||
.Model(model =>
|
||||
{
|
||||
model.Id(p => p.ID);
|
||||
})
|
||||
.PageSize(50)
|
||||
.Read(read => read.Action("Attach_Read", "CorrectiveAction", new { caNO = Model.CANo }))
|
||||
)
|
||||
)
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel panel-default" style="font-size: 10px">
|
||||
<div class="panel-body bg-danger">
|
||||
|
Reference in New Issue
Block a user