You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
190 lines
9.9 KiB
190 lines
9.9 KiB
<%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage" %>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
|
<%
|
|
Response.Expires = -1;
|
|
Response.CacheControl = "no-cache";
|
|
%>
|
|
<title><asp:ContentPlaceHolder ID="TitleContent" runat="server" /></title>
|
|
<link rel="stylesheet" type="text/css" href="<%=QMAPP.MD.Web.MvcApplication.ManageCenterRoot %>Content/Site.css"/>
|
|
<link rel="stylesheet" type="text/css" href="<%=QMAPP.MD.Web.MvcApplication.ManageCenterRoot %>Scripts/jquery.easyui/themes/default/easyui.css" />
|
|
<link rel="stylesheet" type="text/css" href="<%=QMAPP.MD.Web.MvcApplication.ManageCenterRoot %>Scripts/jquery.easyui/themes/icon.css" />
|
|
<!--jquery+easyui-->
|
|
<link rel="stylesheet" type="text/css" href="<%=QMAPP.MD.Web.MvcApplication.ManageCenterRoot %>Content/plugin/redmond/jquery-ui-1.9.2.custom.css" />
|
|
<script type="text/javascript" src="<%=QMAPP.MD.Web.MvcApplication.ManageCenterRoot %>Scripts/jquery.1.11.0.min.js"></script>
|
|
<script type="text/javascript" src="<%=QMAPP.MD.Web.MvcApplication.ManageCenterRoot %>Scripts/jquery.easyui/jquery.easyui.min.js"></script>
|
|
<script type="text/javascript" src="<%=QMAPP.MD.Web.MvcApplication.ManageCenterRoot %>Scripts/jquery.easyui/jquery.easyui.extend.js"></script>
|
|
<script type="text/javascript" src="<%=QMAPP.MD.Web.MvcApplication.ManageCenterRoot %>Content/plugin/jquery.simplemodal.1.4.4.min.js"></script>
|
|
<script type="text/javascript" src="<%=QMAPP.MD.Web.MvcApplication.ManageCenterRoot %>Scripts/tabpatch.js"></script>
|
|
<script language="javascript" src="<%=QMAPP.MD.Web.MvcApplication.ManageCenterRoot %>Scripts/jquery.easyui/QMGridEditable.js" type="text/javascript"></script>
|
|
<!--搜索帮助-->
|
|
<script language="javascript" src="<%=QMAPP.MD.Web.MvcApplication.ManageCenterRoot %>Scripts/jquery.ui.autocomplete/jquery-ui-1.9.2.custom.js" type="text/javascript"></script>
|
|
<script language="javascript" src="<%=QMAPP.MD.Web.MvcApplication.ManageCenterRoot %>Scripts/QPerceptText.js" type="text/javascript"></script>
|
|
<script type="text/javascript" src="<%=QMAPP.MD.Web.MvcApplication.ManageCenterRoot %>Scripts/json2.js"></script>
|
|
|
|
<!--日期控件-->
|
|
<script language="javascript" src="<%=QMAPP.MD.Web.MvcApplication.ManageCenterRoot %>Scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
|
|
<!--多语言-->
|
|
<%
|
|
string langId = Session["MULT_LANG"] as string;
|
|
if (langId == null)
|
|
langId = "zh-CN";
|
|
switch (langId)
|
|
{
|
|
case "zh-CN":
|
|
%>
|
|
<script type="text/javascript" src="<%=QMAPP.MD.Web.MvcApplication.ManageCenterRoot %>Scripts/jquery.easyui/locale/easyui-lang-zh_CN.js"></script>
|
|
<script type="text/javascript" src="<%=QMAPP.MD.Web.MvcApplication.ManageCenterRoot %>Scripts/Common-zh-CN.js"></script>
|
|
<%
|
|
break;
|
|
case "en":
|
|
%>
|
|
<script type="text/javascript" src="<%=QMAPP.MD.Web.MvcApplication.ManageCenterRoot %>Scripts/jquery.easyui/locale/easyui-lang-en.js"></script>
|
|
<script type="text/javascript" src="<%=QMAPP.MD.Web.MvcApplication.ManageCenterRoot %>Scripts/Common-en.js"></script>
|
|
<%
|
|
break;
|
|
default:
|
|
%>
|
|
<script type="text/javascript" src="<%=QMAPP.MD.Web.MvcApplication.ManageCenterRoot %>Scripts/jquery.easyui/locale/easyui-lang-zh_CN.js"></script>
|
|
<script type="text/javascript" src="<%=QMAPP.MD.Web.MvcApplication.ManageCenterRoot %>Scripts/Common-zh-CN.js"></script>
|
|
<%
|
|
break;
|
|
}
|
|
%>
|
|
<script type="text/javascript">
|
|
|
|
//日期格式化
|
|
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;
|
|
}
|
|
|
|
|
|
|
|
function parseLeng(str,intleng)
|
|
{
|
|
var var1="";
|
|
|
|
if(str!="")
|
|
{
|
|
if(str.length>intleng)
|
|
{
|
|
var1=str.substr(0, intleng)+'...';
|
|
}
|
|
else
|
|
{
|
|
var1=str.substr(0, intleng);
|
|
}
|
|
}
|
|
return var1;
|
|
}
|
|
|
|
|
|
//日期转换
|
|
function parseDate(str)
|
|
{
|
|
if(typeof str == 'string'){
|
|
var results = str.match(/^ *(\d{4})[-\/\\](\d{1,2})[-\/\\](\d{1,2}) *$/);
|
|
if(results && results.length>3)
|
|
return new Date(parseInt(results[1],10),parseInt(results[2],10) -1,parseInt(results[3],10));
|
|
|
|
results = str.match(/^ *(\d{4})[-\/\\](\d{1,2})[-\/\\](\d{1,2}) +(\d{1,2}):(\d{1,2}):(\d{1,2}) *$/);
|
|
|
|
if(results && results.length>6)
|
|
|
|
return new Date(parseInt(results[1],10),parseInt(results[2],10) -1,parseInt(results[3],10),parseInt(results[4],10),parseInt(results[5],10),parseInt(results[6],10));
|
|
|
|
results = str.match(/^ *(\d{4})[-\/\\](\d{1,2})[-\/\\](\d{1,2}) +(\d{1,2}):(\d{1,2}):(\d{1,2})\.(\d{1,9}) *$/);
|
|
|
|
if(results && results.length>7)
|
|
|
|
return new Date(parseInt(results[1],10),parseInt(results[2],10) -1,parseInt(results[3],10),parseInt(results[4],10),parseInt(results[5],10),parseInt(results[6],10),parseInt(results[7],10));
|
|
|
|
}
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
//日期判断
|
|
var isDateTime = function(format, reObj) {
|
|
format = format || 'yyyy-MM-dd';
|
|
var input = this, o = {}, d = new Date();
|
|
var f1 = format.split(/[^a-z]+/gi), f2 = input.split(/\D+/g), f3 = format.split(/[a-z]+/gi), f4 = input.split(/\d+/g);
|
|
var len = f1.length, len1 = f3.length;
|
|
if (len != f2.length || len1 != f4.length) return false;
|
|
for (var i = 0; i < len1; i++) if (f3[i] != f4[i]) return false;
|
|
for (var i = 0; i < len; i++) o[f1[i]] = f2[i];
|
|
o.yyyy = s(o.yyyy, o.yy, d.getFullYear(), 9999, 4);
|
|
o.MM = s(o.MM, o.M, d.getMonth() + 1, 12);
|
|
o.dd = s(o.dd, o.d, d.getDate(), 31);
|
|
o.hh = s(o.hh, o.h, d.getHours(), 24);
|
|
o.mm = s(o.mm, o.m, d.getMinutes());
|
|
o.ss = s(o.ss, o.s, d.getSeconds());
|
|
o.ms = s(o.ms, o.ms, d.getMilliseconds(), 999, 3);
|
|
if (o.yyyy + o.MM + o.dd + o.hh + o.mm + o.ss + o.ms < 0) return false;
|
|
if (o.yyyy < 100) o.yyyy += (o.yyyy > 30 ? 1900 : 2000);
|
|
d = new Date(o.yyyy, o.MM - 1, o.dd, o.hh, o.mm, o.ss, o.ms);
|
|
var reVal = d.getFullYear() == o.yyyy && d.getMonth() + 1 == o.MM && d.getDate() == o.dd && d.getHours() == o.hh && d.getMinutes() == o.mm && d.getSeconds() == o.ss && d.getMilliseconds() == o.ms;
|
|
return reVal && reObj ? d : reVal;
|
|
function s(s1, s2, s3, s4, s5) {
|
|
s4 = s4 || 60, s5 = s5 || 2;
|
|
var reVal = s3;
|
|
if (s1 != undefined && s1 != '' || !isNaN(s1)) reVal = s1 * 1;
|
|
if (s2 != undefined && s2 != '' && !isNaN(s2)) reVal = s2 * 1;
|
|
return (reVal == s1 && s1.length != s5 || reVal > s4) ? -10000 : reVal;
|
|
}
|
|
};
|
|
|
|
|
|
$(function() {
|
|
<%if(ViewData["QMSMessage"]!=null)
|
|
{%>
|
|
MSI("提示","<%=ViewData["QMSMessage"] %>");
|
|
<%}%>
|
|
|
|
|
|
manageWebRoot="<%=QMAPP.MD.Web.MvcApplication.ManageCenterRoot %>";
|
|
sessionID="<%=System.Web.HttpContext.Current.Session.SessionID%>";
|
|
});
|
|
|
|
$.ajaxSetup({
|
|
cache: false //关闭AJAX相应的缓存
|
|
});
|
|
</script>
|
|
</head>
|
|
<body class="easyui-layout">
|
|
<div region="north" data-options="border:false" style="padding:2px;background:#efefef;">
|
|
<asp:ContentPlaceHolder ID="ToolContent" runat="server">
|
|
</asp:ContentPlaceHolder>
|
|
</div>
|
|
<div region="center" data-options="border:false" style="overflow:hidden;">
|
|
<form name="Mainform" id="Mainform" action="/Home/Index" enctype="multipart/form-data" method="post" style="height:100%;" >
|
|
<div class="easyui-layout" data-options="border:false" fit="true" style="width:100%; height:600px;overflow:hidden;">
|
|
<asp:ContentPlaceHolder ID="MainContent" runat="server">
|
|
</asp:ContentPlaceHolder>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div id="dialog" ><div id="dialogText" style=" padding:20,20,20,20;"></div> </div>
|
|
<div id="appWindow1" class="easyui-window" closed="true" modal="true" title="My Window" style="padding: 3px; width:300px; height:500px; background: #E9F1FF;overflow:hidden;">
|
|
<iframe id="appWindow1_Frm" width=100% height="100%" frameborder="0"></iframe>
|
|
</div>
|
|
</body>
|
|
</html>
|