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.
135 lines
7.6 KiB
135 lines
7.6 KiB
4 years ago
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
|
||
|
<link rel="stylesheet" type="text/css" href="<%=QMAPP.FJC.Web.MvcApplication.ManageCenterRoot %>Content/Site.css"/>
|
||
|
<link rel="stylesheet" type="text/css" href="<%=QMAPP.FJC.Web.MvcApplication.ManageCenterRoot %>Scripts/jquery.easyui/themes/default/easyui.css" />
|
||
|
<link rel="stylesheet" type="text/css" href="<%=QMAPP.FJC.Web.MvcApplication.ManageCenterRoot %>Scripts/jquery.easyui/themes/icon.css" />
|
||
|
<!--jquery+easyui-->
|
||
|
<link rel="stylesheet" type="text/css" href="<%=QMAPP.FJC.Web.MvcApplication.ManageCenterRoot %>Content/plugin/redmond/jquery-ui-1.9.2.custom.css" />
|
||
|
<script type="text/javascript" src="<%=QMAPP.FJC.Web.MvcApplication.ManageCenterRoot %>Scripts/jquery.1.11.0.min.js"></script>
|
||
|
<script type="text/javascript" src="<%=QMAPP.FJC.Web.MvcApplication.ManageCenterRoot %>Scripts/jquery.easyui/jquery.easyui.min.js"></script>
|
||
|
<script type="text/javascript" src="<%=QMAPP.FJC.Web.MvcApplication.ManageCenterRoot %>Content/plugin/jquery.simplemodal.1.4.4.min.js"></script>
|
||
|
<script type="text/javascript" src="<%=QMAPP.FJC.Web.MvcApplication.ManageCenterRoot %>Scripts/tabpatch.js"></script>
|
||
|
<!--搜索帮助-->
|
||
|
<script language="javascript" src="<%=QMAPP.FJC.Web.MvcApplication.ManageCenterRoot %>Scripts/jquery.ui.autocomplete/jquery-ui-1.9.2.custom.js" type="text/javascript"></script>
|
||
|
<script language="javascript" src="<%=QMAPP.FJC.Web.MvcApplication.ManageCenterRoot %>Scripts/QPerceptText.js" type="text/javascript"></script>
|
||
|
<script type="text/javascript" src="<%=QMAPP.FJC.Web.MvcApplication.ManageCenterRoot %>Scripts/json2.js"></script>
|
||
|
|
||
|
<!--日期控件-->
|
||
|
<script language="javascript" src="<%=QMAPP.FJC.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.FJC.Web.MvcApplication.ManageCenterRoot %>Scripts/jquery.easyui/locale/easyui-lang-zh_CN.js"></script>
|
||
|
<script type="text/javascript" src="<%=QMAPP.FJC.Web.MvcApplication.ManageCenterRoot %>Scripts/Common-zh-CN.js"></script>
|
||
|
<%
|
||
|
break;
|
||
|
case "en":
|
||
|
%>
|
||
|
<script type="text/javascript" src="<%=QMAPP.FJC.Web.MvcApplication.ManageCenterRoot %>Scripts/jquery.easyui/locale/easyui-lang-en.js"></script>
|
||
|
<script type="text/javascript" src="<%=QMAPP.FJC.Web.MvcApplication.ManageCenterRoot %>Scripts/Common-en.js"></script>
|
||
|
<%
|
||
|
break;
|
||
|
default:
|
||
|
%>
|
||
|
<script type="text/javascript" src="<%=QMAPP.FJC.Web.MvcApplication.ManageCenterRoot %>Scripts/jquery.easyui/locale/easyui-lang-zh_CN.js"></script>
|
||
|
<script type="text/javascript" src="<%=QMAPP.FJC.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 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"] %>");
|
||
|
<%}%>
|
||
|
});
|
||
|
|
||
|
$.ajaxSetup({
|
||
|
cache: false //关闭AJAX相应的缓存
|
||
|
});
|
||
|
</script>
|