-
Notifications
You must be signed in to change notification settings - Fork 1
/
IssueIndents.aspx
252 lines (245 loc) · 12.9 KB
/
IssueIndents.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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="IssueIndents.aspx.cs" Inherits="WindingsIndia.IssueIndents" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE, NO-STORE" />
<title>AppshotERP</title>
<!-- Stylesheets -->
<link href="Admin/css/reset.css" rel="stylesheet" type="text/css" />
<link href="Admin/css/visualize.css" rel="stylesheet" type="text/css" />
<link href="Admin/css/datatables.css" rel="stylesheet" type="text/css" />
<link href="Admin/css/buttons.css" rel="stylesheet" type="text/css" />
<link href="Admin/css/checkboxes.css" rel="stylesheet" type="text/css" />
<link href="Admin/css/inputtags.css" rel="stylesheet" type="text/css" />
<link href="Admin/css/main.css" rel="stylesheet" type="text/css" />
<link href="Admin/css/blitzer/jquery-ui-1.8.17.custom.css" rel="stylesheet" type="text/css" />
<!--[if lt IE 9]>
<link rel="stylesheet" type="text/css" href="Admin/css/ie.css" />
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<form id="form1" runat="server">
<div id="gradient">
<div id="stars">
<div id="container">
<header>
<!-- Logo -->
<h1 id="logo">
Admin Control Panel</h1>
</header>
<!-- The application "window" -->
<div id="application">
<!-- Primary navigation -->
<nav id="primary">
<ul>
<li><a href="Home.aspx"><span class="icon dashboard"></span>Home </a></li>
<li class="current"><a href="IssueIndents.aspx"><span class="icon pencil"></span>Issue
Indents </a></li>
<li><a href="MaterialInward.aspx"><span class="icon tables"></span>Material Inward</a></li>
<li><a href="/charts"><span class="icon chart"></span><span class="badge">4</span> Charts
</a></li>
<li><a href="/notifications"><span class="icon modal"></span>Notifcations </a></li>
<li><a href="/gallery"><span class="icon gallery"></span>Gallery </a></li>
<li><a href="/buttons"><span class="icon anchor"></span>Icons/buttons </a></li>
</ul>
<input type="text" id="search" placeholder="Realtime search..." />
</nav>
<!-- Secondary navigation -->
<nav id="secondary">
<ul>
<li class="current"><a href="#maintab">Issue Indents</a></li>
</ul>
</nav>
<!-- The content -->
<section id="content">
<div id="maintab" class="tab">
<h2>
Issue Indents</h2>
<div class="column left ">
<section>
<label for="txtIndentNumber">
Indent Number
</label>
<div>
<input id="txtIndentNumber" disabled runat="server" type="text" tabindex="1" />
</div>
</section>
<section>
<label for="txtRqstDate">
Request Date
</label>
<div>
<input id="txtRqstDate" tabindex="2" type="text" placeholder="Only Date" class="required"
runat="server" />
</div>
</section>
<section>
<label for="txtDepartment">
Department
</label>
<div>
<input id="txtDepartment" disabled type="text" value="Purchase" class="required"
runat="server" />
</div>
</section>
<section>
<label for="txtReason">
Reason
</label>
<div>
<input id="txtReason" type="text" value="Planned Production" class="required" disabled
runat="server" />
</div>
</section>
</div>
<div class="column right ">
<section>
<label for="txtAssmNo">
Assembly Number
</label>
<div>
<input id="txtAssmNo" type="text" placeholder="Only Letters" class="required" runat="server"
tabindex="3" />
</div>
</section>
<section>
<label for="txtWONunber">
Work Order Number
</label>
<div>
<input id="txtWONumber" type="text" placeholder="Only Letters" class="required" runat="server"
tabindex="4" />
</div>
</section>
<section>
<label for="txtQuantity">
Request Quantity
</label>
<div>
<input id="txtQuantity" type="text" placeholder="Only Numbers" class="required" runat="server"
tabindex="5" />
</div>
</section>
<section>
<label for="ddlVendor">
Vendor
</label>
<div>
<select runat="server" id="ddlVendor" tabindex="6">
<option value="none">--Select--</option>
<option value="New Age Windings">New Age Windings</option>
<option value="Narayan X Former">Narayan X Former</option>
<option value="X Tronics">X Tronics</option>
<option value="Shiva Windings">Shiva Windings</option>
<option value="Production">Production</option>
</select>
</div>
</section>
</div>
<div class="clear" style="text-align: center;">
<asp:HyperLink ID="btnProcess" CssClass="button icon approve" runat="server" NavigateUrl="javascript:IssueIndent();">Process</asp:HyperLink>
<asp:HyperLink ID="btnCancel" CssClass="button icon remove danger" NavigateUrl="javascript:Clear();" runat="server">Cancel</asp:HyperLink>
</div>
<div id="sample">
</div>
</div>
</section>
</div>
<footer id="copyright">© Copyrights. All rights reserved by Appshot.in</footer>
</div>
</div>
</div>
</form>
<!-- Javascripts -->
<script src="Admin/js/jquery.js" type="text/javascript"></script>
<script src="Admin/js/notifications.js" type="text/javascript"></script>
<script src="Admin/js/excanvas.js" type="text/javascript"></script>
<script src="Admin/js/jquery.checkboxes.js" type="text/javascript"></script>
<script src="Admin/js/jquery.datatables.js" type="text/javascript"></script>
<script src="Admin/js/jquery.inputtags.js" type="text/javascript"></script>
<script src="Admin/js/jquery.livesearch.js" type="text/javascript"></script>
<script src="Admin/js/jquery.placeholder.js" type="text/javascript"></script>
<script src="Admin/js/jquery.selectskin.js" type="text/javascript"></script>
<script src="Admin/js/jquery.validate.js" type="text/javascript"></script>
<script src="Admin/js/jquery.visualize.js" type="text/javascript"></script>
<script src="Admin/js/jquery.wymeditor.js" type="text/javascript"></script>
<script src="Admin/js/application.js" type="text/javascript"></script>
<script src="Admin/js/jquery-ui-1.8.17.custom.min.js" type="text/javascript"></script>
<script src="Admin/js/appshot.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#txtAssmNo').focusout(function () {
var assmNo = $('#txtAssmNo').val();
$.ajax({
type: "POST",
url: "PageMethods.aspx/GetWorkOrderNumber",
data: "{'str':'" + assmNo + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (msg) {
if(msg.d == "")
{
new Notification('No Work Order Number seems to be present for the given Assembly Number','information');
$('#txtWONumber').val("");
}
else {$('#txtWONumber').val(msg.d);}
},
error: function (err) {
new Notification('<strong>Work Order Number</strong> could not be populated, send the Logs to Dev\'s for review.', 'error');
},
});
});
});
</script>
<script type="text/javascript">
function IssueIndent() {
var indentNumber = $('#txtIndentNumber').val();
var RequestedDate = $('#txtRqstDate').val();
var assmemblyNo = $('#txtAssmNo').val();
//var WONumber = $('#txtWONumber').val();
var quantity = $('#txtQuantity').val();
var vendor = $('#ddlVendor').val();
$.ajax({
type: "POST",
url: "PageMethods.aspx/ProcessIndent",
data: "{'indentNumber':'" + indentNumber + "','requestDate':'" + RequestedDate + "','assmNo':'" + assmemblyNo + "','quantity':'" + quantity + "','vendor':'" + vendor + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (msg) {
clear();
GetIndentNumber();
new Notification('Indent No: ' + indentNumber + ' for Assembly: ' + assmemblyNo + ' successfully processed.', 'information');
},
error: function (err) {
new Notification('Error Processing Indent, send the Logs to Dev\'s for review.', 'error');
}
});
}
function GetIndentNumber() {
$.ajax({
type: "POST",
url: "PageMethods.aspx/GetIndentNumber",
data: "",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (msg) {
$('#txtIndentNumber').val(msg.d);
},
error: function (err) {
}
});
}
function Clear() {
$('#txtIndentNumber').val("");
$('#txtRqstDate').val("");
$('#txtAssmNo').val("");
$('#txtWONumber').val("");
$('#txtQuantity').val("");
$('#ddlVendor').val("none");
GetIndentNumber();
}
</script>
</body>
</html>