-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_ExCodeInbox.cshtml
77 lines (63 loc) · 2.55 KB
/
_ExCodeInbox.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
@{
int sno = 1;
}
<form id="frmexcode">
<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><label>XID</label></th>
<th><label>ExCode</label>
<th><label>EmpID</label></th>
<th><label>NTLG</label></th>
<th><label>Enter BY</label></th>
<th><label>Enter Date</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)" /></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>
</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'));
});
</script>