209 lines
9.3 KiB
Plaintext
209 lines
9.3 KiB
Plaintext
<!DOCTYPE html>
|
|
|
|
<%@ Page AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default"
|
|
Language="C#" EnableViewStateMac="true" Theme="DefaultTheme"
|
|
StylesheetTheme="DefaultTheme"
|
|
MaintainScrollPositionOnPostback="true"
|
|
%>
|
|
|
|
<%@ Register Assembly="WNET" Namespace="Wellan.Web.UI" TagPrefix="cc1" %>
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
<head runat="server">
|
|
<%--
|
|
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=8" />
|
|
<meta http-equiv="Page-Enter" content="blendTrans(duration=0.1)" />
|
|
<meta http-equiv="Page-Exit" content="blendTrans(duration=0.1)" />
|
|
--%>
|
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
|
<meta http-equiv="cache-control" content="no-cache" />
|
|
<meta http-equiv="pragma" content="no-cache" />
|
|
<meta http-equiv="expires" content="0" />
|
|
<title>
|
|
<%=lbSystemCaption.Text%>
|
|
</title>
|
|
<script type="text/javascript" src="utility/jquery-1.12.4.min.js"></script>
|
|
<script type="text/javascript" src="utility/jquery.blockUI.js"></script>
|
|
<script type="text/javascript" src="utility/Utility.js?t=20230823"></script>
|
|
<script type="text/javascript" src="utility/LookupList.js?t=20230823"></script>
|
|
<%--
|
|
<script type="text/javascript" src="utility/dw_cookies.js"></script>
|
|
--%>
|
|
<script type="text/javascript" src="utility/ClickMenu.js"></script>
|
|
<script type="text/javascript" src="utility/promise-polyfill-min.js"></script>
|
|
<asp:Literal ID="ltCRX" runat="server"></asp:Literal>
|
|
</head>
|
|
|
|
<body style="overflow: hidden;">
|
|
|
|
<iframe id="DatePicker"
|
|
style="display: block;
|
|
position: absolute;
|
|
left: 0; top: 0; width: 0; height: 0; margin: 0; padding: 0;
|
|
border: none;
|
|
z-index: 9999;"></iframe>
|
|
|
|
<div id="XX_SELECT_DIV"
|
|
style="left: 0; top: 0; display: none; background-color: #FFFFFF; position: absolute; z-index: 999; border: solid 1px #000000"
|
|
onkeydown="javascript:return SelectKeydown(event);">
|
|
</div>
|
|
|
|
<form id="form1" runat="server" style="margin: 0; padding: 0;">
|
|
<div style="margin: 0; padding: 0;">
|
|
<div id="headerDiv" class="titleBar">
|
|
<table style="margin: 0; padding: 0; width: 100%; height: 100%; vertical-align: middle">
|
|
<tr>
|
|
<td>
|
|
<cc1:WLabel ID="lbSystemCaption" runat="server" Font-Bold="True"
|
|
ForeColor="White" TextMessageId="" CssClass="systemTitle">系統名稱</cc1:WLabel>
|
|
</td>
|
|
<td style="text-align: right;">
|
|
<cc1:WLabel ID="WLabel1" runat="server" Font-Names="arial" Font-Size="10pt"
|
|
ForeColor="White" TextMessageId="MAIN.WELCOME">歡迎</cc1:WLabel>
|
|
<asp:Label ID="lbCCUSTNAME" runat="server" Font-Names="arial"
|
|
Font-Size="10pt" ForeColor="White"></asp:Label>
|
|
<asp:Label ID="lbCUSRNAME" runat="server" ForeColor="White" Font-Names="arial"
|
|
Font-Size="10pt"></asp:Label>
|
|
|
|
<cc1:WLinkButton ID="btnLogout" runat="server" ForeColor="White"
|
|
OnClick="btnLogout_Click" TextMessageId="【+LOGOUT+】" Font-Names="Arial"
|
|
Font-Size="10pt" CausesValidation="false">LOGOUT</cc1:WLinkButton>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div id="menuDiv" style="background-color: #e1e1e1; z-index: 999; height: 26px; overflow: hidden">
|
|
<asp:Menu ID="MainMenu" runat="server" OnMenuItemClick="MainMenu_MenuItemClick"
|
|
DisappearAfter="1000" EnableTheming="True" Font-Size="12pt" RenderingMode="Table">
|
|
</asp:Menu>
|
|
<asp:Label runat="server" ID="lbSiteMap" />
|
|
</div>
|
|
<div id="contentDiv" style="height: 2000px; overflow: auto; padding: 0"
|
|
onscroll="javascript:SetDivPosition(this);">
|
|
<div style="padding: 5px; margin: 0;">
|
|
<asp:PlaceHolder ID="FormPlace" runat="server" EnableTheming="False"></asp:PlaceHolder>
|
|
<cc1:WLabel ID="lbFuncNotExist" runat="server" EnableViewState="False"
|
|
ForeColor="Red" TextMessageId="" Visible="False">功能建構中...</cc1:WLabel>
|
|
</div>
|
|
</div>
|
|
<div id="messageDiv" style="background-color: #e1e1e1; height: auto; padding: 5px">
|
|
<asp:ValidationSummary ID="ValidationSummary2" runat="server"
|
|
BackColor="" Font-Bold="True" HeaderText="訊息:"
|
|
DisplayMode="BulletList" />
|
|
<asp:Label ID="lbCRXDownload" runat="server" CssClass="hintLabel"
|
|
Text="提示:請執行「輔助功能 => 下載報表檢視器」依照步驟下載、安裝、執行,否則無法檢視及列印報表。<br/>若已安裝仍出現此訊息,請參考「輔助功能 => 下載報表檢視器」裡的「注意事項」"></asp:Label>
|
|
<asp:Label ID="lbNOPassword" runat="server" CssClass="hintLabel"
|
|
Text="提示:您目前沒有設定登入密碼。請至「輔助功能>>使用者變更密碼」變更您的密碼"></asp:Label>
|
|
</div>
|
|
<asp:ValidationSummary ID="ValidationSummary1" runat="server"
|
|
BackColor="" Font-Bold="True"
|
|
DisplayMode="List" CssClass="validation-summary" />
|
|
</div>
|
|
</form>
|
|
|
|
<script type="text/javascript">
|
|
|
|
// 檢查報表瀏覽器有沒有安裝
|
|
document.getElementById("lbCRXDownload").style["display"] = "inline";
|
|
$.ajax({
|
|
url: "http://localhost:8688/TEST",
|
|
method: "GET",
|
|
success: function (result) {
|
|
document.getElementById("lbCRXDownload").style["display"] = "none";
|
|
}
|
|
});
|
|
|
|
// 加入我的最愛
|
|
function addToFavorites() {
|
|
alert("您可以按 (CTRL-D) 加入我的最愛");
|
|
}
|
|
|
|
// 調整各 DIV 位置及大小
|
|
function windowResize() {
|
|
// 偵測瀏覽器 client area 的高度
|
|
var cliWidth = 0, cliHeight = 0;
|
|
if (typeof (window.innerWidth) == 'number') {
|
|
//Non-IE
|
|
cliWidth = window.innerWidth;
|
|
cliHeight = window.innerHeight;
|
|
} else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
|
|
//IE 6+ in 'standards compliant mode'
|
|
cliWidth = document.documentElement.clientWidth;
|
|
cliHeight = document.documentElement.clientHeight;
|
|
} else if (document.body && (document.body.clientWidth || document.body.clientHeight)) {
|
|
//IE 4 compatible
|
|
cliWidth = document.body.clientWidth;
|
|
cliHeight = document.body.clientHeight;
|
|
}
|
|
|
|
var headerDiv = document.getElementById("headerDiv");
|
|
var menuDiv = document.getElementById("menuDiv");
|
|
var contentDiv = document.getElementById("contentDiv");
|
|
var messageDiv = document.getElementById("messageDiv");
|
|
document.body.scrollHeight
|
|
|
|
//alert(cliHeight);
|
|
//alert(messageDiv.offsetHeight);
|
|
//alert(headerDiv.offsetHeight);
|
|
//alert(menuDiv.offsetHeight);
|
|
|
|
|
|
//var messageTop = cliHeight - messageDiv.offsetHeight;
|
|
var contentHeight = cliHeight - messageDiv.offsetHeight - headerDiv.offsetHeight - menuDiv.offsetHeight;
|
|
//if (messageTop > 0)
|
|
// messageDiv.style.top = messageTop;
|
|
//else
|
|
// messageDiv.style.top = 0;
|
|
|
|
//alert(contentHeight);
|
|
|
|
if (contentHeight > 0)
|
|
contentDiv.style.height = contentHeight + "px";
|
|
else
|
|
contentDiv.style.height = 0;
|
|
}
|
|
|
|
|
|
function SetDivPosition(obj) {
|
|
var intY = obj.scrollTop;
|
|
document.cookie = "yPos=!~" + intY + "~!";
|
|
}
|
|
|
|
function RestoreDivPosition() {
|
|
var strCook = document.cookie;
|
|
if (strCook.indexOf("!~") != 0) {
|
|
var intS = strCook.indexOf("!~");
|
|
var intE = strCook.indexOf("~!");
|
|
var strPos = strCook.substring(intS + 2, intE);
|
|
document.getElementById("contentDiv").scrollTop = strPos;
|
|
}
|
|
}
|
|
|
|
function CloseValidationSummary() {
|
|
$(".validation-summary").addClass("hide");
|
|
}
|
|
|
|
|
|
window.onresize = windowResize;
|
|
|
|
$(document).ready(function () {
|
|
windowResize();
|
|
RestoreDivPosition();
|
|
FixMenu(document.getElementById("<%=MainMenu.ClientID%>"));
|
|
|
|
if ($(".validation-summary").css("display") != "none") {
|
|
|
|
$(".validation-summary").append(
|
|
'<buton type="button" class="validation-summary-close" onclick="CloseValidationSummary()">✕</button>'
|
|
);
|
|
|
|
setTimeout(() => { CloseValidationSummary(); }
|
|
, 5000);
|
|
}
|
|
});
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|