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/SeanInfo/OpLetterTruckList.aspx

306 lines
13 KiB
Plaintext

2 years ago
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OpLetterTruckList.aspx.cs" Inherits="DSWeb.SeanInfo.OpLetterTruckList" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!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">
<link rel="STYLESHEET" type="text/css" href="../theme/buttons.css"/>
<link rel="STYLESHEET" type="text/css" href="../theme/button/default/Fee.css"/>
<script src="../js/jquery/js/jquery.js" type="text/javascript"></script>
<script src="../js/m97date/WdatePicker.js" type="text/javascript"></script>
<title></title>
<script type="text/javascript">
$(document).ready(function () {
$(".stripe tr").mouseover(function () {
$(this).addClass("over");
}).mouseout(function () {
$(this).removeClass("over");
})
$(".stripe tr:even").addClass("alt");
// $("#checkitem").each(function (i, n) {
// alert(n.id);
// $(this).change(function () {
// alert(this.id);
// if (n.checked) {
// alert(n.checked);
// $("#" + n.value).removeClass();
// //$("#" + idd).removeClass();
// $("#" + n.value).addClass("chekBox");
// }
// else {
// $("#" + n.value).removeClass();
// }
// });
// });
});
//双击跳转编辑信息
function aduitinfo(idd) {
window.open("SeanCtnList.aspx?id=" + idd+"&handdle=oneEdit", "", "height=700, width=1200, top=10,left=10, toolbar=no, menubar=no, scrollbars=no, resizable=yes,location=no, status=no","");
}
//checkbox的全选与取消
function checkall(event) {
var intboxname = document.getElementsByName("checkitems");
if (event.checked) {
$.each(intboxname, function (i, n) {
n.checked = true;
});
}
else {
$.each(intboxname, function (i, n) {
n.checked = false;
});
}
}
//删除多项信息
function deleinfo() {
var checkvalue = "";
$("[name=checkitems]:checkbox:checked").each(function () {
if ($.trim($(this).val()).length > 0) {
checkvalue += "," + $.trim($(this).val());
}
});
if (checkvalue.length ==0) {
alert("您还没有选择删除项!");
return false;
}
else {
if (confirm("您确定要删除吗?")) {
$("#<%=hid_savedeleteinfo.ClientID %>").val(checkvalue.substr(1));
return true;
}
else {
return false;
}
}
}
//选择要编辑的项目
function aduitInfo() {
var checkvalue = "";
$("[name=checkitems]:checkbox:checked").each(function () {
if ($.trim($(this).val()).length > 0) {
checkvalue += "," + $.trim($(this).val());
}
});
if (checkvalue.length == 0) {
alert("您还没有选择要编辑的项!");
return false;
}
else {
//alert(checkvalue.length)47;
window.open("SeanCtnList.aspx?id=" +checkvalue+"&handdle=moreEdit", "", "height=700, width=1200, top=10,left=10, toolbar=no, menubar=no, scrollbars=no, resizable=yes,location=no, status=no", "");
return true;
}
}
//添加新的派车单信息
function addnnewinfo() {
window.open("SeanCtnList.aspx?handdle=addItem", "", "height=700, width=1200, top=10,left=10, toolbar=no, menubar=no, scrollbars=no, resizable=yes,location=no, status=no", "");
}
function changecolor(even) {
var idd = even.value;
if (even.checked) {
$("#" + idd).removeClass();
$("#" + idd).addClass("chekBox");
}
else {
$("#" + idd).removeClass("chekBox");
}
}
function getNewPage() {
//window.location.reload();
window.location.href = window.location.href;
}
//打印
function PintTruck() {
var checkvalue = "";
$("[name=checkitems]:checkbox:checked").each(function () {
if ($.trim($(this).val()).length > 0) {
checkvalue += "," + $.trim($(this).val());
}
});
if (checkvalue.length == 0) {
alert("您还没有选择打印项!");
return false;
}
else {
var leids = checkvalue.substr(1);
printInfo(leids);
}
}
function printInfo(strGid) {
var printUrl = "";
var companyID = "";
var typeName = "PrintLoadGoodsApplicationReport";
var dbSourceID = "";
var userID = "";
$.ajax({
type: "post",
url: "SeanAjax.aspx",
data: "type=PrintSeanTruckByLeid&LEID=" + strGid,
dataType: "json",
beforeSend: function (XMLHttpRequest) { },
success: function (msg) {
var results = msg.result;
companyID = results[0].compid;
dbSourceID = results[0].sourceid;
userID = results[0].userid;
printUrl = "print://?comp=" + companyID + "&type=" + typeName + "&dbid=" + dbSourceID + "&uid=" + userID;
window.location.href = window.location.href;
location.href = printUrl;
},
error: function () { alert("error2"); }
});
}
</script>
<style type="text/css">
.divtop
{
width:100%;
height:30px;
background:url("../images/content-header.gif");
cursor:default;
vertical-align:bottom;
}
.txt_time
{
width:105px;
}
.stripe .chekBox td
{
background-color:#FFA07A;
}
.stripe .tr_header td
{
background:#99BBFF;
}
tr.alt td {
background:#F5F5F5 ; /*这行将给所有的 tr 加上背景色*/
}
tr.over td {
background:#99BBFF; /*这个将是鼠标高亮行的背景色*/
}
tr.addcolor td
{
background:#ecf6fc;
}
</style>
</head>
<body style=" background-color:#ECF2FF; height:100%;">
<form id="form1" runat="server">
<div class="divtop">
>> <span style=" color:#336699;">派车单信息</span>
</div>
<div>
<table >
<tr>
<td>
<table border="0" style=" font-size:12px;" cellpadding="1" cellspacing="2">
<tr>
<td>派车时间:</td><td><input type="text" id="txt_startime" class="txt_time" runat="server" onclick="WdatePicker();" /></td>
<td>~</td>
<td><input type="text" id="txt_endtime" class="txt_time" runat="server" onclick="WdatePicker();" /></td>
<td><asp:CheckBox runat="server" ID="check_load" Text="装货" />&nbsp;&nbsp;<asp:CheckBox runat="server" ID="check_send" Text="送货" /></td>
<td></td>
<td></td>
</tr>
<tr>
<td colspan="5">运单号/委托单位/箱型/箱量/装货地址/送货地址/船名/航次/司机/车牌号/箱号/封号/承运车队:</td>
<td><asp:TextBox runat="server" ID="txtmoresearch" CssClass="txt_time"></asp:TextBox></td>
<td align="right" style="width:30px;"><asp:ImageButton ID="img_btnsearch" runat="server"
ToolTip="查询" ImageUrl="~/images/icons/btnSearch.gif"
onclick="img_btnsearch_Click" /></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<div class="divtop">
<div class="btn-blank"></div>
<div class="xbtn-img"><div class="btnimg"><img src="../images/icons/new.gif" alt="" width="16px" height="17px" title="添加" onclick="return addnnewinfo()" class="cssfont"/></div></div>
<div class="xbtn-img"><div class="btnimg"><asp:ImageButton runat="server"
ID="img_DeleteInfo" ToolTip="多项删除"
ImageUrl="../images/icons/delete.gif" OnClientClick="return deleinfo();"
style="width: 16px; cursor:pointer;"
onclick="img_DeleteInfo_Click" /></div></div>
<div class="xbtn-img"><div class="btnimg"><img src="../images/icons/example.gif" width="16px" alt="加载失败" onclick="return aduitInfo()" title="编辑"/></div></div>
<div class="xbtn-img"><div class="btnimg"><img src="../images/icons/refresh.gif" width="16px" title="刷新列表" onclick="getNewPage();" class="cssfont"/></div></div>
<div class="xbtn-img"><div class="btnimg"><img id="img_print" alt="加载失败" title="打印" width="20px" src="../images/icons/print.gif" onclick="return PintTruck();" /></div></div>
</div>
<div></div>
<div style="word-break: keep-all;white-space:nowrap; width:100%;">
<asp:Repeater runat="server" ID="rep_letterTruck"
onitemcommand="rep_letterTruck_ItemCommand">
<HeaderTemplate>
<table border="0" class="stripe" cellpadding="2" cellspacing="0" style="text-align:center; font-size:14px;">
<thead style="width:auto; background-color:#99BBFF;">
<tr>
<th style=" width:20px;">
<input type="checkbox" onclick="checkall(this);" id="checkAll" title="选/消" />
</th>
<th>
承运车队
</th>
<th>
派车类型
</th>
<th>
录入人
</th>
<th>
录入时间
</th>
<th>
是否完毕
</th>
<th>
操作
</th>
</tr>
</thead>
</HeaderTemplate>
<ItemTemplate>
<tr id='<%#Eval("LE_ID") %>' ondblclick="aduitinfo(this.id)">
<td><input type="checkbox" id="checkitem" onclick="changecolor(this);" name="checkitems" value='<%#Eval("LE_ID") %>' /></td>
<td><%#Eval("TRUCK")%></td>
<td><%# changeTruckType(Eval("TEAMTYPE"))%></td>
<td><%#Eval("INPUTBY")%></td>
<td><%#ShowDateTime(Eval("INPUTTIME"))%></td>
<td><%#changeIsTeamStatus(Eval("ISTEAMSTATUS"))%></td>
<td>
<asp:LinkButton runat="server" ID="btn_isStatus" CommandArgument='<%#Eval("LE_ID") %>' CommandName="isTeamStatus" Font-Underline="false" ForeColor="#1E90FF" ToolTip="确认" Text="确认"></asp:LinkButton>
</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
</div>
<input runat="server" id="hid_savedeleteinfo" type="hidden" />
<div><webdiyer:aspnetpager id="AspNetPager1" runat="server" horizontalalign="left"
showcustominfosection="Left" width="50%" meta:resourceKey="AspNetPager1"
style="font-size:14px" PageIndexBoxStyle="width:18px;border-top:1px solid #A3B2CC;border-left:1px solid #A3B2CC;border-right:1px solid #A3B2CC;border-bottom:1px solid #A3B2CC;height:17px;"
CustomInfoHTML=" 当前页<font color='red'><b>%CurrentPageIndex%</b></font>共%PageCount%页,记录%StartRecordIndex%-%EndRecordIndex%"
ShowNavigationToolTip="True"
CustomInfoStylae="font-size:14px;padding-top:6px;width:200px;"
TextAfterPageIndexBox=" " SubmitButtonText=" 转"
SubmitButtonStyle="width:41px;height:21px;border: none;cursor:hand;background-image: url(/images/go.gif)"
CustomInfoTextAlign="left" ShowPageIndexBox="Always" AlwaysShow="True"
FirstPageText="【首页】" LastPageText="【尾页】" NextPageText="【下页】" PageSize="25"
PrevPageText="【前页】" onpagechanged="AspNetPager1_PageChanged">
</webdiyer:aspnetpager></div>
</form>
</body>
</html>