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.
DS7/DSWeb/Areas/Mobile/Views/BookSpace/LSDC.aspx

131 lines
5.1 KiB
Plaintext

3 years ago
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LSDC.aspx.cs" Inherits="DSWeb.Areas.Mobile.Views.BookSpace.LSDC" %>
<!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 runat="server">
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css">
<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<script src="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></script>
<script src="../../../../Areas/Mobile/Viewsjs/BookSpace/BookSpace.js" type="text/javascript"></script>
<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script>
//时间控件
$(function () {
var currYear = (new Date()).getFullYear();
var opt={};
opt.date = {preset : 'date'};
opt.datetime = {preset : 'datetime'};
opt.time = {preset : 'time'};
opt.default = {
theme: 'android-ics light', //皮肤样式
display: 'modal', //显示方式
mode: 'scroller', //日期选择模式
lang:'zh',
startYear:currYear - 10, //开始年份
endYear:currYear + 10 //结束年份
};
$("#sdcrq").val('').scroller('destroy').scroller($.extend(opt['date'], opt['default']));
var optDateTime = $.extend(opt['datetime'], opt['default']);
var optTime = $.extend(opt['time'], opt['default']);
});
$(document).ready(function () {
$('#szhg').val($('#hdszhg').val());
$('#sxhg').val($('#hdsxhg').val());
$('#sdcrq').val($('#hdsdcrq').val());
$('.ss').keypress(function (event) {
if (event.keyCode == '13') {
var currurl = window.location.href;
var currsplit = currurl.split('?');
if (currsplit.length > 0) {
currurl = currsplit[0];
}
var str = CreateQueryStr();
currurl += '?1=1' + str;
window.location.href = currurl;
}
});
$("#btnSearch").click(function (event) {
var currurl = window.location.href;
var currsplit = currurl.split('?');
if (currsplit.length > 0) {
currurl = currsplit[0];
}
var str = CreateQueryStr();
currurl += '?1=1' + str;
window.location.href = currurl;
});
$("#btntest").click(function(){
alert(1);
$.ajax({
type: "POST",
url: "/Mobile/BookSpace/testxml",
dataType: "json",
success: function (data) {
}, error: function (e) {
}
});
});
})
function CreateQueryStr(){
var zhg = $('#szhg').val();
var xhg = $('#sxhg').val();
var dcrq = $('#sdcrq').val();
var str = "";
if (zhg!=null&&zhg!=="") {
str += ("&zhg="+zhg);
}
if (xhg!=null&&xhg!=="") {
str += ("&xhg="+xhg);
}
if (dcrq!=null&&dcrq!=="") {
str += ("&dcrq="+dcrq);
}
return str;
}
</script>
</head>
<body>
<div data-role="page" id="pageone">
<div data-role="content">
<h2>
历史订舱</h2>
<div data-role="fieldcontain">
<ul data-role="listview">
<li>
<label for="sxhg">
装货港:</label>
<input type="search" class="ss" name="szhg" id="szhg" placeholder="装货港">
</li>
<li>
<label for="szhg">
卸货港:</label>
<input type="search" class="ss" name="sxhg" id="sxhg" placeholder="卸货港">
</li>
<li>
<label for="sdcrq">
订舱日期:</label>
<input type="search" class="ss" name="sdcrq" id="sdcrq" placeholder="订舱日期">
</li>
<a href="#" style="height:40px" data-role="button" id="btnSearch">搜索</a>
<a href="#" style="height:40px" data-role="button" id="btntest">测试</a>
</ul>
</div>
<br />
<ul data-role="listview" data-inset="true">
<%=_LSDCHTML%>
</ul>
<input type="hidden" runat="server" id="hdszhg" />
<input type="hidden" runat="server" id="hdsxhg" />
<input type="hidden" runat="server" id="hdsdcrq" />
</div>
</div>
</body>
</html>