-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcombined.aspx
84 lines (81 loc) · 2.96 KB
/
combined.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
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ScriptAndTransactionUpdater.aspx.cs" Inherits="ScriptAndTransactionUpdater" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<title>Script and Transaction Updater</title>
<script type="text/javascript">
function validateUpload() {
var scriptFile = document.getElementById("<%= scriptFileUpload.ClientID %>");
var browseBtn = document.getElementById("<%= browseButton.ClientID %>");
var convertBtn = document.getElementById("<%= convertButton.ClientID %>");
if (scriptFile.value == "") {
convertBtn.disabled = true;
return false;
}
convertBtn.disabled = false;
return true;
}
function validateTransaction() {
var appCode = document.getElementById("<%= appCICodeField.ClientID %>");
var scriptName = document.getElementById("<%= scriptNameField.ClientID %>");
var funcName = document.getElementById("<%= funcNameField.ClientID %>");
var updateBtn = document.getElementById("<%= updateButton.ClientID %>");
if (appCode.value == "" || scriptName.value == "" || funcName.value == "") {
updateBtn.disabled = true;
return false;
}
updateBtn.disabled = false;
return true;
}
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h2>Script Updater</h2>
<asp:Fieldset ID="ScriptUpdaterFieldset" runat="server">
<table>
<tr>
<td>Select Script File:</td>
<td>
<asp:FileUpload ID="scriptFileUpload" runat="server" onchange="validateUpload();" />
<asp:Button ID="browseButton" runat="server" Text="Browse" OnClick="browseButton_Click" />
</td>
</tr>
<tr>
<td colspan="2" align="center">
<asp:Button ID="convertButton" runat="server" Text="Convert" OnClick="convertButton_Click" Disabled="True" />
</td>
</tr>
</table>
</asp:Fieldset>
<h2>Transaction Updater</h2>
<asp:Fieldset ID="TransactionUpdaterFieldset" runat="server">
<table>
<tr>
<td>Select File:</td>
<td><asp:FileUpload ID="FileUpload1" runat="server" /></td>
</tr>
<tr>
<td>Application CI Code:</td>
<td>
<asp:TextBox ID="appCICodeField" runat="server" onkeyup="validateTransaction();" />
</td>
</tr>
<tr>
<td>Script Name:</td>
<td>
<asp:TextBox ID="scriptNameField" runat="server" onkeyup="validateTransaction();" />
</td>
</tr>
<tr>
<td>Functionality Name:</td>
<td>
<asp:TextBox ID="funcNameField" runat="server" onkeyup="validateTransaction();" />
</td>
</tr>
<tr>
<td colspan="2" align="center">
<asp:Button ID="updateButton" runat="server" Text="Update Transaction" OnClick="updateButton_Click"
Enabled="false" ClientIDMode="Static" />
</td>
</tr>
</table>
</asp:Fieldset>
</asp:Content>