Jonathan Ouellette 580e90f6a2 initial add
2022-09-27 14:10:30 -07:00

1237 lines
38 KiB
Plaintext

@model Fab2ApprovalSystem.Models.ScrapLot
@{
ViewBag.Title = "Wafer Status";
}
@using (Html.BeginForm())
{
@Html.HiddenFor(model => model.IssueID)
@Html.HiddenFor(model => model.LotNo)
@Html.HiddenFor(model => model.WaferCount, new { id = "waferCount"})
<div>
<button class="k-textbox" data-toggle="modal" id="lotReleaseAllButton1">
Release All
</button>
<button class="k-textbox" data-toggle="modal" id="lotScrapAllButton1">
Scrap All
</button>
<button class="k-textbox" data-toggle="modal" id="lotSplitOffHoldButton1">
Split Off and Hold All
</button>
<button class="k-textbox" data-toggle="modal" id="lotCloseToQDBButton1">
Close To QDB
</button>
</div>
<table class="table table-condensed table-responsive" style="font-size: 10px">
<tr>
<td colspan="26" align="center" style="font-size: 15px; color: crimson; font-weight: bold; background-color: #87b3de">
Scribe Wafer Number for Lot# @Model.LotNo (Wafer Count = @Model.WaferCount)
</td>
</tr>
<tr style="font-weight:bold">
<td></td>
<td>
1
</td>
<td>
2
</td>
<td>
3
</td>
<td>
4
</td>
<td>
5
</td>
<td>
6
</td>
<td>
7
</td>
<td>
8
</td>
<td>
9
</td>
<td>
10
</td>
<td>
11
</td>
<td>
12
</td>
<td>
13
</td>
<td>
14
</td>
<td>
15
</td>
<td>
16
</td>
<td>
17
</td>
<td>
18
</td>
<td>
19
</td>
<td>
20
</td>
<td>
21
</td>
<td>
22
</td>
<td>
23
</td>
<td>
24
</td>
<td>
25
</td>
</tr>
<tr class="active">
<td style="background-color: #00ff21">
Release
</td>
<td>
@Html.RadioButtonFor(model => model.Lot1State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot2State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot3State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot4State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot5State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot6State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot7State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot8State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot9State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot10State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot11State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot12State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot13State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot14State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot15State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot16State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot17State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot18State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot19State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot20State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot21State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot22State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot23State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot24State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot25State, 1)
</td>
</tr>
<tr class="warning">
<td style="background-color: #ff0000">
Scrap
</td>
<td>
@Html.RadioButtonFor(model => model.Lot1State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot2State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot3State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot4State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot5State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot6State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot7State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot8State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot9State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot10State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot11State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot12State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot13State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot14State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot15State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot16State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot17State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot18State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot19State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot20State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot21State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot22State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot23State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot24State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot25State, 2)
</td>
</tr>
<tr class="active">
<td style="background-color: #ffd800">
Close to QDB
</td>
<td>
@Html.RadioButtonFor(model => model.Lot1State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot2State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot3State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot4State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot5State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot6State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot7State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot8State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot9State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot10State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot11State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot12State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot13State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot14State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot15State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot16State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot17State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot18State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot19State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot20State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot21State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot22State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot23State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot24State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot25State, 6)
</td>
</tr>
<tr class="warning">
<td style="background-color: #87b3de">
Split Off and Hold
</td>
<td>
@Html.RadioButtonFor(model => model.Lot1State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot2State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot3State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot4State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot5State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot6State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot7State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot8State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot9State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot10State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot11State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot12State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot13State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot14State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot15State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot16State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot17State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot18State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot19State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot20State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot21State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot22State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot23State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot24State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot25State, 7)
</td>
</tr>
<tr class="danger">
<td style="background-color: #ff6a00">
Not Available
</td>
<td>
@Html.RadioButtonFor(model => model.Lot1State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot2State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot3State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot4State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot5State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot6State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot7State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot8State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot9State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot10State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot11State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot12State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot13State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot14State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot15State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot16State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot17State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot18State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot19State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot20State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot21State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot22State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot23State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot24State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot25State, 3)
</td>
</tr>
</table>
<br />
<table class="table table-condensed table-responsive" style="font-size: 10px">
<tr>
<td colspan="26" align="center" style="font-size: 15px; color: crimson; font-weight: bold; background-color: #87b3de">
Scribe Wafer Number for Lot# @Model.LotNo (Wafer Count = @Model.WaferCount)
</td>
</tr>
<tr style="font-weight:bold">
<td></td>
<td>
26
</td>
<td>
27
</td>
<td>
28
</td>
<td>
29
</td>
<td>
30
</td>
<td>
31
</td>
<td>
32
</td>
<td>
33
</td>
<td>
34
</td>
<td>
35
</td>
<td>
36
</td>
<td>
37
</td>
<td>
38
</td>
<td>
39
</td>
<td>
40
</td>
<td>
41
</td>
<td>
42
</td>
<td>
43
</td>
<td>
44
</td>
<td>
45
</td>
<td>
46
</td>
<td>
47
</td>
<td>
48
</td>
<td>
49
</td>
<td>
50
</td>
</tr>
<tr class="active">
<td style="background-color: #00ff21">
Release
</td>
<td>
@Html.RadioButtonFor(model => model.Lot26State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot27State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot28State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot29State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot30State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot31State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot32State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot33State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot34State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot35State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot36State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot37State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot38State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot39State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot40State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot41State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot42State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot43State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot44State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot45State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot46State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot47State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot48State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot49State, 1)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot50State, 1)
</td>
</tr>
<tr class="warning">
<td style="background-color: #ff0000">
Scrap
</td>
<td>
@Html.RadioButtonFor(model => model.Lot26State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot27State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot28State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot29State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot30State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot31State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot32State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot33State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot34State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot35State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot36State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot37State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot38State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot39State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot40State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot41State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot42State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot43State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot44State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot45State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot46State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot47State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot48State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot49State, 2)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot50State, 2)
</td>
</tr>
@*if(@ViewBag.LotLocation == "QDB" || @ViewBag.LotLocation == "EDB")
{*@
<tr class="active">
<td style="background-color: #ffd800">
Close to QDB
</td>
<td>
@Html.RadioButtonFor(model => model.Lot26State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot27State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot28State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot29State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot30State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot31State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot32State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot33State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot34State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot35State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot36State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot37State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot38State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot39State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot40State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot41State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot42State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot43State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot44State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot45State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot46State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot47State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot48State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot49State, 6)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot50State, 6)
</td>
</tr>
@* }*@
<tr class="warning">
<td style="background-color: #87b3de">
Split Off and Hold
</td>
<td>
@Html.RadioButtonFor(model => model.Lot26State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot27State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot28State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot29State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot30State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot31State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot32State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot33State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot34State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot35State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot36State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot37State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot38State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot39State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot40State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot41State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot42State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot43State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot44State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot45State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot46State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot47State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot48State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot49State, 7)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot50State, 7)
</td>
</tr>
<tr class="danger">
<td style="background-color: #ff6a00">
Not Available
</td>
<td>
@Html.RadioButtonFor(model => model.Lot26State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot27State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot28State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot29State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot30State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot31State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot32State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot33State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot34State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot35State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot36State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot37State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot38State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot39State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot40State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot41State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot42State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot43State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot44State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot45State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot46State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot47State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot48State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot49State, 3)
</td>
<td>
@Html.RadioButtonFor(model => model.Lot50State, 3)
</td>
</tr>
</table>
<div>
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" id="submitScrapUpdate">Save changes</button>
</div>
}
<script>
$(document).ready(function () {
var waferStatusOption = {
Release: 1,
Scrap: 2,
NotAvailable: 3,
M_Suffix: 4,
Select_Wafers: 5,
CloseToQDB: 6,
SplitOffHold: 7
}
$('#submitScrapUpdate').click(function () {
var waferCount = $("#waferCount").val();
var checkedItem = 0;
$(':radio:checked').each(function () {
//alert($(this).val());
if ($(this).val() == waferStatusOption.Release
|| $(this).val() == waferStatusOption.Scrap
|| $(this).val() == waferStatusOption.CloseToQDB
|| $(this).val() == waferStatusOption.SplitOffHold)
{
checkedItem++;
}
}
)
if (checkedItem > waferCount )
{
alert('Cannot Save....!!The total selected wafer count is greater than the total wafer count')
return false;
}
$.ajax({
type: "POST",
url: '@Url.Action("UpdateLotScrapReleaseStatus")',
data: $('form').serialize() ,
success: function (msg) {
// referesh Lot Summary
var grid = $("#Lots").data("kendoGrid");
// refreshing the lot grid to get the Scrap Count and the Release count into the Grid Datasource,
// which are used during the validation of the LotDisposition Submission
grid.dataSource.read($('#txtIssueID').val());
RefreshLotSummary();
$("#LotStatusForm").modal('hide');
},
error: function(result) {
alert(ViewBag.ErrorMessage);
}
});
});
$('#lotReleaseAllButton1').on('click', function() {
//if (confirm("Are you sure you want to set all the lots to a 'Release STATUS'?")) {
// $(':radio').each(function () {
// $(this).val(1);
// });
//}
SelectAllWafers(waferStatusOption.Release);
return false;
});
$('#lotScrapAllButton1').on('click', function () {
SelectAllWafers(waferStatusOption.Scrap);
return false;
})
$('#lotSplitOffHoldButton1').on('click', function () {
SelectAllWafers(waferStatusOption.SplitOffHold);
return false;
})
$('#lotCloseToQDBButton1').on('click', function () {
SelectAllWafers(waferStatusOption.CloseToQDB);
return false;
})
function RadionButtonSelectedValueSet(name, SelectdValue, waferNumber) {
if (waferNumber <= $("#waferCount").val())
$('input[name="' + name + '"][value="' + SelectdValue + '"]').prop('checked', true);
else // set it to not available
$('input[name="' + name + '"][value="3"]').prop('checked', true);
}
function SelectAllWafers(waferStatus) {
RadionButtonSelectedValueSet('Lot1State', waferStatus, 1);
RadionButtonSelectedValueSet('Lot2State', waferStatus, 2);
RadionButtonSelectedValueSet('Lot3State', waferStatus, 3);
RadionButtonSelectedValueSet('Lot4State', waferStatus, 4);
RadionButtonSelectedValueSet('Lot5State', waferStatus, 5);
RadionButtonSelectedValueSet('Lot6State', waferStatus, 6);
RadionButtonSelectedValueSet('Lot7State', waferStatus, 7);
RadionButtonSelectedValueSet('Lot8State', waferStatus, 8);
RadionButtonSelectedValueSet('Lot9State', waferStatus, 9);
RadionButtonSelectedValueSet('Lot10State', waferStatus, 10);
RadionButtonSelectedValueSet('Lot11State', waferStatus, 11);
RadionButtonSelectedValueSet('Lot12State', waferStatus, 12);
RadionButtonSelectedValueSet('Lot13State', waferStatus, 13);
RadionButtonSelectedValueSet('Lot14State', waferStatus, 14);
RadionButtonSelectedValueSet('Lot15State', waferStatus, 15);
RadionButtonSelectedValueSet('Lot16State', waferStatus, 16);
RadionButtonSelectedValueSet('Lot17State', waferStatus, 17);
RadionButtonSelectedValueSet('Lot18State', waferStatus, 18);
RadionButtonSelectedValueSet('Lot19State', waferStatus, 19);
RadionButtonSelectedValueSet('Lot20State', waferStatus, 20);
RadionButtonSelectedValueSet('Lot21State', waferStatus, 21);
RadionButtonSelectedValueSet('Lot22State', waferStatus, 22);
RadionButtonSelectedValueSet('Lot23State', waferStatus, 23);
RadionButtonSelectedValueSet('Lot24State', waferStatus, 24);
RadionButtonSelectedValueSet('Lot25State', waferStatus, 25);
RadionButtonSelectedValueSet('Lot26State', waferStatus, 26);
RadionButtonSelectedValueSet('Lot27State', waferStatus, 27);
RadionButtonSelectedValueSet('Lot28State', waferStatus, 28);
RadionButtonSelectedValueSet('Lot29State', waferStatus, 29);
RadionButtonSelectedValueSet('Lot30State', waferStatus, 30);
RadionButtonSelectedValueSet('Lot31State', waferStatus, 31);
RadionButtonSelectedValueSet('Lot32State', waferStatus, 32);
RadionButtonSelectedValueSet('Lot33State', waferStatus, 33);
RadionButtonSelectedValueSet('Lot34State', waferStatus, 34);
RadionButtonSelectedValueSet('Lot35State', waferStatus, 35);
RadionButtonSelectedValueSet('Lot36State', waferStatus, 36);
RadionButtonSelectedValueSet('Lot37State', waferStatus, 37);
RadionButtonSelectedValueSet('Lot38State', waferStatus, 38);
RadionButtonSelectedValueSet('Lot39State', waferStatus, 39);
RadionButtonSelectedValueSet('Lot40State', waferStatus, 40);
RadionButtonSelectedValueSet('Lot41State', waferStatus, 41);
RadionButtonSelectedValueSet('Lot42State', waferStatus, 42);
RadionButtonSelectedValueSet('Lot43State', waferStatus, 43);
RadionButtonSelectedValueSet('Lot44State', waferStatus, 44);
RadionButtonSelectedValueSet('Lot45State', waferStatus, 45);
RadionButtonSelectedValueSet('Lot46State', waferStatus, 46);
RadionButtonSelectedValueSet('Lot47State', waferStatus, 47);
RadionButtonSelectedValueSet('Lot48State', waferStatus, 48);
RadionButtonSelectedValueSet('Lot49State', waferStatus, 49);
RadionButtonSelectedValueSet('Lot50State', waferStatus, 50);
}
});
</script>