-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEditAssetDetails.aspx
190 lines (160 loc) · 19.2 KB
/
EditAssetDetails.aspx
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<%@ Page Language="C#" MasterPageFile="~/SiteMaster.master" AutoEventWireup="true" CodeFile="EditAssetDetails.aspx.cs" Inherits="EditAssetDetails" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<style>
.form-control {
width:100%;
}
</style>
<h2 style="text-align:center"> Edit Asset Masters
<br />
<asp:Label ID="lblAID" runat="server" Text="AID"> Asset ID/Code:</asp:Label>
<br />
</h2>
<asp:multiview ID="MV" runat="server" ActiveViewIndex="0" >
<asp:View ID="EditAssetDetails1" runat="server" >
<div style="border:1px solid white; background-color:white; border-radius:8px; padding:12px 18px; text-align: center; margin-right: 25%; margin-left: 25%; margin-top: 50px; margin-bottom: 100px;" class="auto-style28">
<div class="formAssetDetails" style="background-color:white; display: table-cell; padding:12px 18px; text-align: center; height: inherit; width:700px;" >
<asp:ValidationSummary ID="ValidationSummary1" ValidationGroup="Save" ForeColor="Red" runat="server" />
<br />
<br />
<label for ="NameofAsset" style="float:left;">Name of Asset</label> <asp:TextBox ID="txtNameOfAsset" runat="server" style="float:right;" placeholder="Enter Name of Asset" text-align="center" class="form-control" Height="30px" Width="50%" margin="2px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtNameOfAsset" Display="Dynamic" ErrorMessage="Name is Mandatory" ForeColor="Red" ToolTip="Name is Mandatory" ValidationGroup="Save">*</asp:RequiredFieldValidator>
<br /> <br />
<label for ="AssetGroup" style="float:left;">Asset Group</label><asp:DropDownList ID="DDAssetGroups" runat="server" placeholder="Enter Asset Group" text-align="center" class="form-control" Height="30px" style="float:right;" Width="50%" margin="2px">
</asp:DropDownList>
<asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" Display="Dynamic" ErrorMessage="Asset Group is Required" ForeColor="Red" ToolTip="Asset Group is Required" ControlToValidate="DDAssetGroups" ValidationGroup="Save">*</asp:RequiredFieldValidator>
<br /> <br />
<label for ="Manufacturer" style="float:left;">Manufacturer Name</label>
<asp:DropDownList ID="DDManufacturer" runat="server" placeholder="Enter Manufacturer Name" text-align="center" class="form-control" Height="30px" style="float:right;" Width="50%" margin="2px">
</asp:DropDownList>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="DDManufacturer" Display="Dynamic" ErrorMessage="Manufacturer Name is Required" ForeColor="Red" ToolTip="Manufacturer Name is Required" ValidationGroup="Save">*</asp:RequiredFieldValidator>
<br /> <br />
<label for ="ServiceP" style="float:left;">Service Provider</label>
<asp:DropDownList ID="DDServiceProvider" runat="server" placeholder="Enter Service Provider" text-align="center" class="form-control" Height="30px" style="float:right;" Width="50%" margin="2px">
</asp:DropDownList>
<asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="DDServiceProvider" Display="Dynamic" ErrorMessage="Service Provider is Required" ForeColor="Red" ToolTip="Service Provider is Required" ValidationGroup="Save">*</asp:RequiredFieldValidator>
<br /> <br />
<label for ="DOP" style="float:left;">Date Of Purchase</label>
<asp:TextBox ID="txtDateOfPurchase" runat="server" placeholder="Enter Date of Purchase" text-align="center" class="form-control" Height="30px" style="float:right;" Width="50%" margin="2px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtDateOfPurchase" Display="Dynamic" ErrorMessage="Date of Purchase is Required" ForeColor="Red" ToolTip="Date of Purchase is Required" ValidationGroup="Save">*</asp:RequiredFieldValidator>
<br /> <br />
<label for ="DOD" style="float:left;">Date of Disposal</label>
<asp:TextBox ID="txtDateOfDisposal" runat="server" placeholder="Enter Date of Disposal" text-align="center" class="form-control" Height="30px" style="float:right;" Width="50%" margin="2px"></asp:TextBox>
<br /> <br />
<label for ="Depriciation" style="float:left;">Depriciation Value</label>
<asp:TextBox ID="txtDepriciationValue" runat="server" placeholder="Enter Depriciation Value" text-align="center" class="form-control" Height="30px" style="float:right;" Width="50%" margin="2px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtDepriciationValue" Display="Dynamic" ErrorMessage="Depriciation Value is Required" ForeColor="Red" ToolTip="Depriciation Value is Required" ValidationGroup="Save">*</asp:RequiredFieldValidator>
<br /> <br />
<label for ="Maintenance" style="float:left;">Maintenance</label>
<asp:DropDownList ID="DDMaintenance" runat="server" placeholder="Enter Maintenance Type" text-align="center" class="form-control" Height="30px" style="float:right;" Width="50%" margin="2px">
</asp:DropDownList>
<asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="DDMaintenance" Display="Dynamic" ErrorMessage="Required Field" ForeColor="Red" ToolTip="Required Field" ValidationGroup="Save">*</asp:RequiredFieldValidator>
<br /> <br />
<label for ="Frequency" style="float:left;">Frequency of AMC or PM</label>
<asp:DropDownList ID="DDFrequency" runat="server" placeholder="Enter Frequency" text-align="center" class="form-control" Height="30px" style="float:right;" Width="50%" margin="2px">
</asp:DropDownList>
<asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="DDFrequency" Display="Dynamic" ErrorMessage="Required Field" ForeColor="Red" ToolTip="Required Field" ValidationGroup="Save">*</asp:RequiredFieldValidator>
<br /> <br />
<label for ="PurchasePrice" style="float:left;">Purchase Price</label>
<asp:TextBox ID="txtPurchasePrice" runat="server" placeholder="Enter Purchase Price" text-align="center" class="form-control" Height="30px" style="float:right;" Width="50%" margin="2px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ControlToValidate="txtPurchasePrice" Display="Dynamic" ErrorMessage="Required Field" ForeColor="Red" ToolTip="Required Field" ValidationGroup="Save">*</asp:RequiredFieldValidator>
<br /> <br />
<label for ="AssetPhoto" style="float:left;">Photo of Asset</label>
<asp:Image ID="Image1" runat="server" />
<br /> <br />
<label for ="LX" style="float:left;">Longitude</label>
<asp:TextBox ID="txtLocationX" runat="server" placeholder="Enter Location X" text-align="center" class="form-control" Height="30px" style="float:right;" Width="50%" margin="2px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator15" runat="server" ControlToValidate="txtLocationX" Display="Dynamic" ErrorMessage="Required Field" ForeColor="Red" ToolTip="Required Field" ValidationGroup="Save">*</asp:RequiredFieldValidator>
<br /> <br />
<label for ="LY" style="float:left;">Latitude</label>
<asp:TextBox ID="txtLocationY" runat="server" placeholder="Enter Location Y" text-align="center" class="form-control" Height="30px" style="float:right;" Width="50%" margin="2px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server" ControlToValidate="txtLocationY" Display="Dynamic" ErrorMessage="Required Field" ForeColor="Red" ToolTip="Required Field" ValidationGroup="Save">*</asp:RequiredFieldValidator>
<br /> <br />
<label for ="CS" style="float:left;">Current Status</label>
<asp:DropDownList ID="DDCurrentStatus" runat="server" placeholder="Enter Current Status" text-align="center" class="form-control" Height="30px" style="float:right;" Width="50%" margin="2px">
</asp:DropDownList>
<asp:RequiredFieldValidator ID="RequiredFieldValidator19" runat="server" ControlToValidate="DDCurrentStatus" Display="Dynamic" ErrorMessage="Required Field" ForeColor="Red" ToolTip="Required Field" ValidationGroup="Save">*</asp:RequiredFieldValidator>
<br /> <br />
<label for ="CC" style="float:left;">Current Condition</label>
<asp:DropDownList ID="DDCurrentCondition" runat="server" placeholder="Enter Current Condition" text-align="center" class="form-control" Height="30px" style="float:right;" Width="50%" margin="2px">
</asp:DropDownList>
<asp:RequiredFieldValidator ID="RequiredFieldValidator20" runat="server" ControlToValidate="DDCurrentCondition" Display="Dynamic" ErrorMessage="Required Field" ForeColor="Red" ToolTip="Required Field" ValidationGroup="Save">*</asp:RequiredFieldValidator>
<br /> <br />
<%--inbuilt for reset button.--%><label for ="ALP" style="float:left;">Asset Leased or Purchased</label>
<asp:DropDownList ID="DDAssetPurOrLea" runat="server" placeholder="Asset L or P" text-align="center" class="form-control " Height="30px" style="float:right;" Width="50%" margin="2px">
</asp:DropDownList>
<asp:RequiredFieldValidator ID="RequiredFieldValidator22" runat="server" ControlToValidate="DDAssetPurOrLea" Display="Dynamic" ErrorMessage="Required Field" ForeColor="Red" ToolTip="Required Field" ValidationGroup="Save">*</asp:RequiredFieldValidator>
<br /> <br /><label for ="M" style="float:left;">Model</label>
<asp:TextBox ID="txtModel" runat="server" placeholder="Enter Model" text-align="center" class="form-control" Height="30px" style="float:right;" Width="50%" margin="2px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator24" runat="server" ControlToValidate="txtModel" Display="Dynamic" ErrorMessage="Required Field" ForeColor="Red" ToolTip="Required Field" ValidationGroup="Save">*</asp:RequiredFieldValidator>
<br /> <br /> <label for ="SM" style="float:left;">Sub Model</label>
<asp:TextBox ID="txtSubModel" runat="server" placeholder="Enter Sub Model" text-align="center" class="form-control" Height="30px" style="float:right;" Width="50%" margin="2px"></asp:TextBox>
<br /> <br /><label for ="TT" style="float:left;">TagType</label>
<asp:DropDownList ID="DDTagType" runat="server" placeholder="Enter Tag Type" text-align="center" class="form-control " Height="30px" style="float:right;" Width="50%" margin="2px">
</asp:DropDownList>
<asp:RequiredFieldValidator ID="RequiredFieldValidator26" runat="server" ControlToValidate="DDTagType" Display="Dynamic" ErrorMessage="Required Field" ForeColor="Red" ToolTip="Required Field" ValidationGroup="Save">*</asp:RequiredFieldValidator>
<br /> <br />
<label for ="SG" style="float:left;">Sub Group</label>
<asp:DropDownList ID="DDSubGroup" runat="server" placeholder="Enter Subgroup" text-align="center" class="form-control " Height="30px" style="float:right;" Width="50%" margin="2px">
</asp:DropDownList>
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="DDSubGroup" Display="Dynamic" ErrorMessage="Required Field" ForeColor="Red" ToolTip="Required Field" ValidationGroup="Save">*</asp:RequiredFieldValidator>
<br /> <br />
<label for ="Des" style="float:left;">Description</label>
<asp:TextBox ID="txtDescription" runat="server" placeholder="Description" text-align="center" class="form-control" Height="30px" style="float:right;" Width="50%" margin="2px"></asp:TextBox>
<br /> <br />
<asp:Button ID="Button1" runat="server" Text="Next" style="float:inherit; Height:30px;" class="btn btn-default" OnClick="btnNext_Click" />
</div>
</div>
</asp:View>
<asp:view ID="EditAssetDetails2" runat="server" >
<div style="border:1px solid white; width:500px; background-color:white; border-radius:8px; padding:12px 18px; text-align: center; margin-right: 31.4%; margin-left: 31.4%; margin-top: 50px; margin-bottom: 100px;" class="auto-style28">
<div class="formAssetDetails2" style="background-color:white; display: table-cell; padding:12px 18px; text-align: center; height: inherit; width:700px;" >
<label for ="AW" style="float:left; margin:0 10px">Is Asset under Warranty</label>
<label for ="AWN" style="float:right; margin:0 10px">No</label> <asp:RadioButton ID="NoW" runat="server" Checked="True" GroupName="Warranty" style="float:right; margin:0 10px" />
<label for ="AWY" style="float:right; margin:0 10px">Yes</label><asp:RadioButton ID="YesW" runat="server" GroupName="Warranty" style="float:right;margin:0 10px"/>
<br /> <br />
<label for ="APM" style="float:left; margin:0 10px">Is Asset under PM</label>
<label for ="APMN" style="float:right; margin:0 10px">No</label> <asp:RadioButton ID="NoP" runat="server" Checked="True" GroupName="PM" style="float:right; margin:0 10px" />
<label for ="AWY" style="float:right; margin:0 10px">Yes</label><asp:RadioButton ID="YesP" runat="server" GroupName="PM" style="float:right; margin:0 10px"/>
<br /> <br />
<label for ="AAMC" style="float:left; margin:0 10px">Is Asset under AMC</label>
<label for ="AAMCN" style="float:right; margin:0 10px">No</label><asp:RadioButton ID="NoA" runat="server" Checked="True" GroupName="AMC" style="float:right; margin:0 10px" />
<label for ="AAMCY" style="float:right; margin:0 10px">Yes</label> <asp:RadioButton ID="YesA" runat="server" GroupName="AMC" style="float:right; margin:0 10px" />
<br /> <br />
<label for ="QR" style="float:left; margin:0 10px">Does Asset have QR code</label>
<label for ="QRN" style="float:right; margin:0 10px">No</label><asp:RadioButton ID="NoQ" runat="server" Checked="True" GroupName="QR" style="float:right; margin:0 10px"/>
<label for ="QRY" style="float:right; margin:0 10px">Yes</label><asp:RadioButton ID="YesQ" runat="server" GroupName="QR" style="float:right; margin:0 10px"/>
<br /> <br />
<label for ="NFC" style="float:left; margin:0 10px">Does Asset have NFC code</label>
<label for ="NFCN" style="float:right; margin:0 10px">No</label><asp:RadioButton ID="NoN" runat="server" Checked="True" GroupName="NFC" style="float:right; margin:0 10px" />
<label for ="NFCY" style="float:right; margin:0 10px">Yes</label><asp:RadioButton ID="YesN" runat="server" GroupName="NFC" style="float:right; margin:0 10px" />
<br /> <br />
<label for ="BR" style="float:left; margin:0 10px">Does Asset have barcode</label>
<label for ="BCN" style="float:right; margin:0 10px">No</label><asp:RadioButton ID="NoB" runat="server" Checked="True" GroupName="BC" style="float:right; margin:0 10px"/>
<label for ="BCY" style="float:right; margin:0 10px">Yes</label><asp:RadioButton ID="YesB" runat="server" GroupName="BC" style="float:right; margin:0 10px"/>
<br /> <br />
<label for ="RFID" style="float:left; margin:0 10px">Does Asset have RFID Tag</label>
<label for ="RN" style="float:right; margin:0 10px">No</label><asp:RadioButton ID="NoR" runat="server" Checked="True" GroupName="RFID" style="float:right; margin:0 10px" />
<label for ="RY" style="float:right; margin:0 10px">Yes</label><asp:RadioButton ID="YesR" runat="server" GroupName="RFID" style="float:right; margin:0 10px"/>
<br /> <br />
<label for ="GPS" style="float:left; margin:0 10px">Does Asset have GPS</label>
<label for ="GPSN" style="float:right; margin:0 10px">No</label><asp:RadioButton ID="NoG" runat="server" Checked="True" GroupName="GPS" style="float:right; margin:0 10px"/>
<label for ="GPSY" style="float:right; margin:0 10px">Yes</label> <asp:RadioButton ID="YesG" runat="server" GroupName="GPS" style="float:right; margin:0 10px"/>
<br /> <br />
<label for ="C" style="float:left; margin:0 10px">Does Asset have camera</label>
<label for ="CN" style="float:right; margin:0 10px">No</label><asp:RadioButton ID="NoC" runat="server" Checked="True" GroupName="Camera" style="float:right; margin:0 10px"/>
<label for ="CY" style="float:right; margin:0 10px">Yes</label><asp:RadioButton ID="YesC" runat="server" GroupName="Camera" style="float:right; margin:0 10px" />
<br /> <br />
<label for ="C" style="float:left; margin:0 10px">Maintenance</label>
<label for ="MN" style="float:right; margin:0 10px">No</label><asp:RadioButton ID="NoM" runat="server" Checked="True" GroupName="Maintenance" style="float:right; margin:0 10px"/>
<label for ="MY" style="float:right; margin:0 10px">Yes</label><asp:RadioButton ID="YesM" runat="server" GroupName="Maintenance" style="float:right; margin:0 10px"/>
<br /> <br /> <br />
<asp:Button ID="Button2" runat="server" Text="Previous" style="float:inherit; Height:30px;" class="btn btn-default" OnClick="btnPrevious_Click" />
</div>
</div>
<asp:Button ID="btnUpdate" runat="server" Text="Update" style=" border-radius: 4px" class="btn btn-success" ForeColor="White" Height="37px" margin="2px" OnClick="btnUpdate_Click" ValidationGroup="Save" />
</asp:view>
</asp:multiview>
</asp:Content>