You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

138 lines
5.9 KiB
Plaintext

10 months ago
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="SiteExcel.master.cs" Inherits="DSWeb.MvcShipping.Views.Shared.SiteExcel" %>
<!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 id="Head1" runat="server">
<title></title>
<asp:ContentPlaceHolder ID="head" runat="server">
</asp:ContentPlaceHolder>
<!-- ExtJS -->
<link rel="stylesheet" type="text/css" href="../../../../Views/../TruckMng/Scripts/extjs/resources/css/ext-all.css" />
<link rel="stylesheet" type="text/css" href="../../../../Views/../TruckMng/Content/Icon.css" />
<link rel="stylesheet" type="text/css" href="../../../../Views/../TruckMng/Content/Comm.css" />
<link rel="stylesheet" type="text/css" href="../../../../Views/../TruckMng/Content/BoxSelect.css" />
<script type="text/javascript" src="../../../../Views/../TruckMng/Scripts/extjs/ext-all.js"></script>
<script type="text/javascript" src="../../../../Views/../TruckMng/Scripts/extjs/ext-lang-zh_CN.js"></script>
<script type="text/javascript" src="../../../../Views/../TruckMng/Scripts/extjs/ux/CheckColumn.js"></script>
<script type="text/javascript" src="../../../../Areas/Import/Viewsjs/Comm/SaveGridPanel.js"></script>
<script type="text/javascript" src="../../../../Views/../TruckMng/Scripts/ExtjsEx/exportexcel/export-all.js"></script>
<script type="text/javascript" src="../../../../Views/../TruckMng/Scripts/ExtjsEx/gridToExcel.js"></script>
<script type="text/javascript" src="../../../../Areas/MvcShipping/Viewsjs/Comm/MonthField.js"></script>
<script type="text/javascript" src="../../../../Areas/MvcShipping/Viewsjs/Comm/DsExtjsEx.js"></script>
<script type="text/javascript" src="../../../../Areas/MvcShipping/Viewsjs/Comm/DsComm.js"></script>
<script type="text/javascript" src="../../../../Areas/MvcShipping/Viewsjs/Comm/CssComm.js"></script>
<script type="text/javascript" src="../../../../Areas/MvcShipping/Viewsjs/Comm/PubFunction.js"></script>
<script type="text/javascript" src="../../../../Areas/MvcShipping/Viewsjs/Comm/BasicDataRefModel.js"></script>
<script type="text/javascript" src="../../../../Areas/MvcShipping/Viewsjs/Cookie/Cookies.js"></script>
<script type="text/javascript" src="../../../../Areas/MvcShipping/Viewsjs/Cookie/DsCookies.js"></script>
<script type="text/javascript" src="../../../../Areas/CommMng/Viewsjs/Comm/BoxSelect.js"></script>
<script type="text/javascript" src="../../../../Areas/MvcShipping/Viewsjs/Comm/TimePickerField.js"></script>
<script type="text/javascript" src="../../../../Areas/MvcShipping/Viewsjs/Comm/DateTimePicker.js"></script>
<script type="text/javascript" src="../../../../Areas/MvcShipping/Viewsjs/Comm/DateTimeField.js"></script>
<script type="text/javascript" src="../../../../Areas/MvcShipping/Viewsjs/Comm/DateTimeMenu.js"></script>
<script type="text/javascript" src="../../../../Areas/MvcShipping/Viewsjs/Comm/DsQuery.js"></script>
<script type="text/javascript">
Ext.Ajax.timeout = 120000;
var USERID;
function getSessgion1() {
USERID = '<%= Session["USERID"] %>';
}
getSessgion1();
var usercode;
function getSessgion2() {
usercode = '<%= Session["CODENAME"] %>';
}
getSessgion2();
var SHOWNAME;
function getSessgion3() {
SHOWNAME = '<%= Session["SHOWNAME"] %>';
}
getSessgion3();
var COMPANYID;
function getSessgion4() {
COMPANYID = '<%=Session["COMPANYID"] %>';
}
getSessgion4();
var DEPTNAME;
function getSessgion5() {
DEPTNAME = '<%= Session["DEPTNAME"] %>';
}
getSessgion5();
var LOCALCURR = GetCookie_LocalCurr();
Ext.grid.RowNumberer = Ext.extend(Ext.grid.RowNumberer, {
width: 40
});
Date.prototype.format = function (format) {
var o = {
"M+": this.getMonth() + 1, //month
"d+": this.getDate(), //day
"h+": this.getHours(), //hour
"m+": this.getMinutes(), //minute
"s+": this.getSeconds(), //second
"q+": Math.floor((this.getMonth() + 3) / 3), //quarter
"S": this.getMilliseconds() //millisecond
}
if (/(y+)/.test(format)) format = format.replace(RegExp.$1,
(this.getFullYear() + "").substr(4 - RegExp.$1.length));
for (var k in o) if (new RegExp("(" + k + ")").test(format))
format = format.replace(RegExp.$1,
RegExp.$1.length == 1 ? o[k] :
("00" + o[k]).substr(("" + o[k]).length));
return format;
}
var xhr = new XMLHttpRequest();
var currdate = new Date();
if (!xhr) {
//...其他生成xmlhttprequest方法
}
xhr.open("HEAD", location.href, true);
xhr.onreadystatechange = function () {
if (xhr.readyState == 4 && xhr.status == 200) {
var datestr = xhr.getResponseHeader("Date");
currdate = new Date(datestr);
// alert(currdate.format('yyyy-MM-dd'));
}
}
xhr.send(null);
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ContentPlaceHolder ID="MainContent" runat="server">
</asp:ContentPlaceHolder>
</div>
</form>
<script type="text/javascript">
function checkLeave() {
try {
var saved = this.getSaved();
if (saved != '') {
event.returnValue = "注意:" + saved + "未保存,如果离开此页,将丢失未保存的更改 ";
}
}
catch (e) {
}
}
</script>
</body>
</html>