-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_ErrorInbox.cshtml
96 lines (80 loc) · 3.35 KB
/
_ErrorInbox.cshtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
@{
int sno = 1;
}
<form id="frmAccount">
<div class="x_content" id="clientlist">
<table class="table table-striped responsive-utilities jambo_table bulk_action customTable" id="tbl_Account">
<thead>
<tr class="heading">
<th><input type="checkbox" name="chemeli" class="checkbox" id="chkqcInboxGroup" /></th>
<th class="sorting"><label>S.No</label></th>
<th style="display:none"><label>Error ID</label></th>
<th><label>Error Type</label></th>
<th><label>Error Category</label>
<th><label>Sub_Category</label>
<th><label>UPDATED BY</label></th>
<th><label>UPDATED DATE</label></th>
@*<th><label>Edit Column</label></th>
<th><label>Delete Column</label></th>*@
</tr>
</thead>
<tbody>
@foreach (System.Data.DataRow row in Model.Rows)
{
<tr>
<td><input type="checkbox" class="checkbox allotChk [email protected](sno)" id="[email protected](sno)" onclick="TestClick()" /></td>
<td [email protected](sno)>@Convert.ToInt32(sno)</td>
@Html.HiddenFor(x => row[0], new { @id = "btId" })
@foreach (var cell in row.ItemArray)
{
<td>@cell.ToString() </td>
}
@*<td><u><a onclick="EditClient('@row[0]')" class="btn btn-success">Edit Column</a></u></td>
<td><u><a class="btn btn-info" onclick="DeleteClient('@row[0]')">Delete Column</a></u></td>*@
</tr>
sno++;
}
</tbody>
</table>
<input type="text" value="" id="txtHidden" style="display:none" />
</div>
</form>
<script>
$(document).ready(function () {
$('#tbl_Account').DataTable({
"paging": true,
"lengthChange": true,
"searching": true,
"ordering": true,
"info": true,
"autoWidth": false,
"columnDefs": [
{
"targets": [1],
"bSortable": false,
},
{
"targets": [2],
"visible": false
}
]
});
});
$("#chkqcInboxGroup").click(function () {
$(".allotChk").prop('checked', $(this).prop('checked'));
TestClick();
});
function TestClick() {
var countImagesWithoutSrc = 0;
var all = new Array();
var tableControl = document.getElementById('tbl_Account');
$('input:checkbox:checked', tableControl).each(function () {
checkList.push($(this).attr("id"));
all[countImagesWithoutSrc] = $(this).closest('tr').find('#btId').val();
++countImagesWithoutSrc;
}).get();
$('#txtHidden').val(all);
//alert($('#txtHidden').val());
//alert($('#txtHidden').val());
}
</script>