-
Notifications
You must be signed in to change notification settings - Fork 1
/
Substation.jsp
198 lines (191 loc) · 5.45 KB
/
Substation.jsp
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
191
192
193
194
195
196
197
198
<html>
<head>
<title>MMS - Sustation Details</title>
<link rel="stylesheet" href="https://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<link rel="stylesheet" href="css/guardian.css">
<!-- Include jTable script file.
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
<script src="https://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>-->
<script src="js/jquery-2.1.4.min.js"></script>
<script src="js/jquery-ui.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#region').change(function(event) {
var region = $("select#region").val();
$.get('GetCircles', {
regionName : region
}, function(response) {
var select = $('#circle');
select.find('option').remove();
$('<option>').val("-1").text("select circle").appendTo(select);
$.each(response, function(index, value) {
$('<option>').val(value).text(value).appendTo(select);
});
});
});
$('#circle').change(function(event) {
var circle = $("select#circle").val();
$.get('GetKV33FeederNames',{
circleName : circle
},function(response) {
var select = $('#kv33Feeder');
select.find('option').remove();
$('<option>').val("-1").text("select 33KV Feeder").appendTo(select);
$.each(response, function(index, value) {
$('<option>').val(value.id).text(value.id+" "+value.name).appendTo(select);
});
});
$.get('GetDivisions', {
circleName : circle
}, function(response) {
var select = $('#division');
select.find('option').remove();
$('<option>').val("-1").text("select division").appendTo(select);
$.each(response, function(index, value) {
$('<option>').val(value).text(value).appendTo(select);
});
});
});
});
</script>
<style>
form{
background: -webkit-gradient(linear, bottom, left 175px, from(#CCCCCC), to(#EEEEEE));
background: -moz-linear-gradient(bottom, #CCCCCC, #EEEEEE 175px);
margin:auto;
position:relative;
width:550px;
height:auto;
font-family: Tahoma, Geneva, sans-serif;
font-size: 14px;
font-style: bold;
line-height: 24px;
font-weight: bold;
color: #09C;
text-decoration: none;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
padding:10px;
border: 1px solid #999;
border: inset 1px solid #333;
-webkit-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
-moz-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
}
input{
width:375px;
display:block;
border: 1px solid #999;
height: 25px;
-webkit-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
-moz-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
}
</style>
</head>
<body>
<jsp:useBean id="user" class="mms.com.beans.UserLogin" scope="session" />
<%@ include file="MasterPageTopSection.jsp" %>
<br/>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
<tr>
<td width="100%" colspan="2">
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF">
<tr>
<td width="34%" bgcolor="#000080">
<b>
<span lang="en">
<a href="home.jsp"><font color="#00FFFF">HOME</font></a>
</span>
</b>
</td>
<td width="7%" bgcolor="#000080">
<p align="center">
<b>
<font color="#FFFFFF"><a target="_parent" href="logout.jsp">
<span lang="en">
<font color="#FFFFFF">SIGN OUT</font>
</span>
</font>
</b>
</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br/>
<div id="linkHolder" name="linkHolder" align="center">
<h1>Enter Substation Details</h1>
<br>
<h4 align="center"><mark>${errorBean.errorMessage}</mark></h4>
<form action="AddSubstationDetails.jsp">
<div>
<label>
<span>Select Substation Region</span>
<select name="region" id="region">
<option >Select Region</option>
<option >INDORE</option>
<option >UJJAIN</option>
</select>
</label>
<br/>
<br/>
<label>
<span>Select Substation Circle</span>
<select name="circle" id="circle">
<option >Select circle</option>
</select>
</label>
<br/>
<br/>
<label>
<span>Select 33KV Feeder Name</span>
<select name="kv33FeederID" id="kv33Feeder">
<option >Select 33KV Feeder</option>
</select>
</label>
<br/>
<br/>
<label>
<span>Enter Substation Name</span><input id="name" type="text" name="name" required="true"/>
</label>
<label>
<span>Enter Substation Code</span><input id="code" type="text" name="code" required="true"/>
</label>
<!-- <label>
<span>Enter Substation location</span><input id="location" type="text" name="location" required="true"/>
</label> -->
<br/>
<br/>
<label>
<span>Select Substation Division</span>
<select name="division" id="division">
<option>Select Division</option>
</select>
</label>
<br/>
<br/>
<!-- <label>
<span>Enter DC</span><input id="dc" type="text" name="dc" required="true"/>
</label>
<br/>
<br/> -->
<label>
<input type="submit" value="Add Substation" />
</label>
<br/>
<label>
<input type="reset" value="Reset" />
</label>
</div>
</form>
</div>
<br/>
<br/>
<br/>
<%@ include file="MasterPageBottomSection.jsp" %>
</body>
</html>