<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DeliverPlanLishiList.aspx.cs" Inherits="CY.WebForm.Pages.business.DeliverPlanLishiList" %>
|
|
<!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>
|
<uc:cmshead id="CMSHead1" runat="server" />
|
<%-- <script src="../../js/business/Order.js" type="text/javascript"></script>--%>
|
<script type="text/javascript">
|
//工作考评
|
function View(Keyid, BuyerId, DeliverTime,Sort) {
|
//if (Keyid == '00000000-0000-0000-0000-000000000000') {
|
// alert("请先安排送货!");
|
// return;
|
//}
|
|
top.Dialog.open({ URL: "/Pages/business/DeliverPlanSort.aspx?Keyid=" + Keyid + "&BuyerId=" + BuyerId + "&DeliverTime=" + DeliverTime + "&Sort=" + Sort, Title: "送货安排排序", Width: 300, Height: 300 });
|
}
|
|
//工作考评
|
function ViewZhuyishixiang(Keyid, BuyerId, DeliverTime) {
|
//if (Keyid == '00000000-0000-0000-0000-000000000000') {
|
// alert("请先安排送货!");
|
// return;
|
//}
|
|
top.Dialog.open({ URL: "/Pages/business/DeliverPlanZhuyishixiang.aspx?Keyid=" + Keyid + "&BuyerId=" + BuyerId + "&DeliverTime=" + DeliverTime , Title: "送货安排注意事项", Width: 800, Height: 300 });
|
}
|
|
//工作考评
|
function ViewGongzuokaoping(Keyid, BuyerId, DeliverTime) {
|
//if (Keyid == '00000000-0000-0000-0000-000000000000') {
|
// alert("请先安排送货!");
|
// return;
|
//}
|
|
top.Dialog.open({ URL: "/Pages/business/DeliverPlanGongzuokaoping.aspx?Keyid=" + Keyid + "&BuyerId=" + BuyerId + "&DeliverTime=" + DeliverTime , Title: "送货安排工作考评", Width: 800, Height: 300 });
|
}
|
|
|
//送货安排
|
function ToAddorder() {
|
top.Dialog.open({ URL: "/Pages/business/DeliverPlanEdit.aspx", Title: "新增送货单", Width: 900, Height: 750 });
|
}
|
|
//送货安排
|
function outAfterWorks(Keyid, BuyerId, DeliveredTime) {
|
top.Dialog.open({ URL: "/Pages/business/OrderProductionprogress.aspx?SellerOrderId=" + SellerOrderId + "&Keyid=" + Keyid + "&works=" + works, Title: works, Width: 300, Height: 300 });
|
}
|
//打印
|
function outAfterWorks(Keyid) {
|
if (Keyid == '00000000-0000-0000-0000-000000000000') {
|
alert("请先安排送货!");
|
return;
|
}
|
top.Dialog.open({ URL: "/Pages/business/DeliverPlanPrint.aspx?Keyid=" + Keyid + "&DelayTime=2021-04-09", Title: "工作考评", Width: 1000, Height: 800 });
|
}
|
|
///批量受理
|
function ToAllAccept1() {
|
|
var ids = '';
|
var cks = $("input[name='ckId']:checked");
|
if (cks.length == 0) { alertMsg('没有选中任何项!'); return; } else { }
|
var isCan = true;
|
var DeliverTime = '';
|
var BuyerId = '';
|
|
|
|
cks.each(
|
function () {
|
var ckVal = $(this).val();
|
|
var ckValJson = eval('(' + ckVal + ')');
|
|
ids = ids + ',' + ckValJson.id;
|
//orderShowIds = orderShowIds + ',' + ckValJson.ordershowId;
|
|
DeliverTime = DeliverTime + ',' + ckValJson.DeliverTime;
|
BuyerId = BuyerId + ',' + ckValJson.BuyerId;
|
}
|
);
|
|
|
if (!isCan) {
|
// alertMsg('请选择未受理的订单!');
|
}
|
else {
|
if (ids != '') {
|
ids = ids.substring(1);
|
DeliverTime = DeliverTime.substring(1);
|
BuyerId = BuyerId.substring(1);
|
}
|
|
var msg = ('确认移交单据吗?') ;
|
top.Dialog.confirm(msg, function () {
|
DoAcceptAll(ids, DeliverTime, BuyerId);
|
});
|
}
|
}
|
|
/*
|
批量处理受理订单
|
*/
|
var DoAcceptAll = function (orderIds, DeliverTime, BuyerId) {
|
CallServer({ Target: "AcceptOrderAll", ids: orderIds, DeliverTimes: DeliverTime, BuyerIds: BuyerId }, function (data, textStatus) {
|
if ('1' == data) {
|
alertMsg('操作成功!');
|
RefreshDIVOpener(); //关闭页面
|
} else {
|
alertMsg('-1' == data ? '移交单据失败!' : '移交单据失败!');
|
//dialog.close();
|
}
|
});
|
}
|
|
|
///批量受理
|
function ToAllAccept3() {
|
|
var ids = '';
|
var cks = $("input[name='ckId']:checked");
|
if (cks.length == 0) { alertMsg('没有选中任何项!'); return; } else { }
|
var isCan = true;
|
var DeliverTime = '';
|
var BuyerId = '';
|
|
//var carid = $("#selCarIddo").val();
|
//var driverid = $("#selDriverIddo").val();
|
|
//if (carid == "") { alertMsg('请选择车辆!'); return; } else { }
|
//if (driverid == "") { alertMsg('请选择驾驶员!'); return; } else { }
|
|
cks.each(
|
function () {
|
var ckVal = $(this).val();
|
|
var ckValJson = eval('(' + ckVal + ')');
|
|
ids = ids + ',' + ckValJson.id;
|
//orderShowIds = orderShowIds + ',' + ckValJson.ordershowId;
|
|
DeliverTime = DeliverTime + ',' + ckValJson.DeliverTime;
|
BuyerId = BuyerId + ',' + ckValJson.BuyerId;
|
}
|
);
|
|
|
if (!isCan) {
|
// alertMsg('请选择未受理的订单!');
|
}
|
else {
|
if (ids != '') {
|
ids = ids.substring(1);
|
//DeliverTime = DeliverTime.substring(1);
|
//BuyerId = BuyerId.substring(1);
|
}
|
|
top.Dialog.open({ URL: "/Pages/business/DeliverPlanPaiche.aspx?ids=" + ids, Title: "安排车辆", Width: 600, Height: 300 });
|
}
|
}
|
|
|
|
///批量受理
|
function ToAllAccept4() {
|
|
var ids = '';
|
var cks = $("input[name='ckId']:checked");
|
if (cks.length == 0) { alertMsg('没有选中任何项!'); return; } else { }
|
var isCan = true;
|
var DeliverTime = '';
|
var BuyerId = '';
|
|
//var carid = $("#selCarIddo").val();
|
//var driverid = $("#selDriverIddo").val();
|
|
//if (carid == "") { alertMsg('请选择车辆!'); return; } else { }
|
//if (driverid == "") { alertMsg('请选择驾驶员!'); return; } else { }
|
|
cks.each(
|
function () {
|
var ckVal = $(this).val();
|
|
var ckValJson = eval('(' + ckVal + ')');
|
|
ids = ids + ',' + ckValJson.id;
|
//orderShowIds = orderShowIds + ',' + ckValJson.ordershowId;
|
|
DeliverTime = DeliverTime + ',' + ckValJson.DeliverTime;
|
BuyerId = BuyerId + ',' + ckValJson.BuyerId;
|
}
|
);
|
|
|
if (!isCan) {
|
// alertMsg('请选择未受理的订单!');
|
}
|
else {
|
if (ids != '') {
|
ids = ids.substring(1);
|
//DeliverTime = DeliverTime.substring(1);
|
//BuyerId = BuyerId.substring(1);
|
}
|
|
top.Dialog.open({ URL: "/Pages/business/DeliverPlanYijiao.aspx?ids=" + ids, Title: "单据移交", Width: 600, Height: 300 });
|
}
|
}
|
|
|
|
|
///批量受理
|
function ToAllAccept2() {
|
|
var ids = '';
|
var cks = $("input[name='ckId']:checked");
|
if (cks.length == 0) { alertMsg('没有选中任何项!'); return; } else { }
|
var isCan = true;
|
var DeliverTime = '';
|
var BuyerId = '';
|
|
var carid = $("#selCarIddo").val();
|
var driverid = $("#selDriverIddo").val();
|
|
if (carid == "") { alertMsg('请选择车辆!'); return; } else { }
|
if (driverid == "") { alertMsg('请选择驾驶员!'); return; } else { }
|
|
cks.each(
|
function () {
|
var ckVal = $(this).val();
|
|
var ckValJson = eval('(' + ckVal + ')');
|
|
ids = ids + ',' + ckValJson.id;
|
//orderShowIds = orderShowIds + ',' + ckValJson.ordershowId;
|
|
DeliverTime = DeliverTime + ',' + ckValJson.DeliverTime;
|
BuyerId = BuyerId + ',' + ckValJson.BuyerId;
|
}
|
);
|
|
|
if (!isCan) {
|
// alertMsg('请选择未受理的订单!');
|
}
|
else {
|
if (ids != '') {
|
ids = ids.substring(1);
|
DeliverTime = DeliverTime.substring(1);
|
BuyerId = BuyerId.substring(1);
|
}
|
|
var msg = ('确认派车吗?');
|
top.Dialog.confirm(msg, function () {
|
DoAcceptAll2(ids, DeliverTime, BuyerId, carid, driverid);
|
});
|
}
|
}
|
|
/*
|
批量处理受理订单
|
*/
|
var DoAcceptAll2 = function (orderIds, DeliverTime, BuyerId, carid, driverid) {
|
CallServer({ Target: "AcceptOrderAll2", ids: orderIds, DeliverTimes: DeliverTime, BuyerIds: BuyerId, Carid: carid, Driverid: driverid}, function (data, textStatus) {
|
if ('1' == data) {
|
alertMsg('操作成功!');
|
RefreshDIVOpener(); //关闭页面
|
} else {
|
alertMsg('-1' == data ? '派车失败!' : '派车失败!');
|
//dialog.close();
|
}
|
});
|
}
|
|
|
/*
|
打印送货单
|
*/
|
function ToPrintDriverorder(DriverId) {
|
|
OpenWindowByUrl('/Pages/business/DeliverOrderPrint.aspx?deliverorderId=' + DriverId, '', '');
|
}
|
|
|
|
|
//维护
|
function onViewuplod(keyid) {
|
var l = (screen.availWidth - 500) / 2;
|
var t = (screen.availHeight - 300) / 2;
|
// window.open({ URL: "/Pages/business/CorporateClientsUpLoadContract.aspx?Keyid=" + keyid, Title: "查看合同", Width: 900, Height: 750 });
|
window.open('/Pages/business/DeliverPlanFujianShow.aspx?Keyid=' + keyid, '_blank', 'height=750,width=900,top=' + t + ',left=' + l + ',toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no');
|
}
|
|
/*
|
打印送货单
|
*/
|
function ToPrintdelev() {
|
var DeliverTimestart = $("#txtDeliverTimestart").val();
|
var DeliverTimeend = $("#txtDeliverTimeend").val();
|
var CarId = $("#selCarId").val();
|
var DriverId = $("#selDriverId").val();
|
// OpenWindowByUrl();
|
//OpenWindowByUrl('/Pages/business/DeliverPlanPrint.aspx?DeliverTime=' + DeliveryTime + '&CarId=' + CarId + '&DriverId=' + DriverId, '', '');
|
OpenWindowByUrl('/Pages/business/DeliverPlanLishiPrint.aspx?DeliverTimestart=' + DeliverTimestart + '&DeliverTimeend=' + DeliverTimeend + '&CarId=' + CarId + '&DriverId=' + DriverId, '', '');
|
}
|
</script>
|
<style type="text/css">
|
.tableStyleXS th { padding: 1px 0 1px 3px; background-image:none; border-bottom:1px solid #CCC; }
|
.tableStyleXS td { padding: 1px 0 1px 3px; }
|
.TableNewStyle select { width: 80px; }
|
.td_hide span { text-decoration: default; display: none; text-align: center; }
|
span.hand_no { cursor: default; display: block; font-size: 12px; }
|
span.hand_no:hover { text-decoration: none; }
|
span.hand_yes { cursor: pointer; display: block; font-size: 12px; }
|
.td_hide { cursor: pointer; }
|
</style>
|
</head>
|
<body>
|
<form id="form1" runat="server">
|
<div id="scrollContent" style="width: auto;">
|
<div class="box1">
|
<table class="TableNewStyle" style="width: 100%;">
|
<tr>
|
|
|
|
|
|
<td style="width:5%" >
|
|
</td>
|
<td style="width:15%">
|
|
</td> <td style="width:5%" >
|
|
</td>
|
<td style="width:15%">
|
|
</td> <td style="width:5%" >
|
|
</td>
|
<td style="width:15%">
|
|
</td>
|
</tr>
|
<tr>
|
<td class="ali03">
|
送货时间:
|
</td>
|
<td >
|
<input id="txtDeliverTimestart" type="text" runat="server" class='date w80px' maxlength='10' />-<input id="txtDeliverTimeend" type="text" runat="server" class='date w80px' maxlength='10' />
|
</td>
|
<td class="ali03">
|
车辆:
|
</td>
|
<td >
|
<select keepdefaultstyle='true' id='selCarId' runat="server" datatextfield='CarNumber' datavaluefield='Keyid'>
|
</select>
|
</td>
|
<td class="ali03" >
|
驾驶员:
|
</td>
|
<td >
|
<select keepdefaultstyle='true' id='selDriverId' runat="server" datatextfield='Name' datavaluefield='Keyid'>
|
</select>
|
</td>
|
</tr>
|
|
<tr>
|
|
|
|
<td colspan="6">
|
|
<asp:button id="btn_Search" text="查询" runat="server" padding="0px" OnClick="btn_Search_Click" /> <input type="button" value='重置' onclick='document.body.innerHTML="";window.location=window.location;' />
|
|
|
<input type="button" value='打印全部' onclick='ToPrintdelev();' />
|
|
</td>
|
</tr>
|
|
|
</table>
|
</div>
|
|
|
<div clear="fl">
|
<table class="tableStyle tableStyleXS" useclick="false" usecheckbox="true" sortmode="false">
|
<thead>
|
<tr>
|
<th width="25">
|
</th>
|
<th width="25">
|
顺序
|
</th>
|
<th style="text-align: center;" width="70">
|
送货单号
|
</th>
|
<th style="text-align: center;" width="70">
|
要求到达时间
|
</th>
|
<th style="text-align: center;"width="100">
|
实际到达时间
|
</th>
|
<th width="70">
|
业务经理
|
</th>
|
<th width="100">
|
客户单位
|
</th>
|
<th style="text-align: center;"width="200">
|
客户地址、联系人及联系电话
|
</th>
|
|
|
<th width="60">
|
货单数量
|
</th>
|
<th width="60">
|
车辆
|
</th>
|
<th width="60">
|
驾驶员
|
</th>
|
<th width="200">
|
问题反馈
|
</th>
|
<th width="200">
|
注意事项
|
</th>
|
<th width="200">
|
工作考评
|
</th>
|
<th width="60">
|
移交状态
|
</th>
|
<th width="60">
|
打印送货单
|
</th>
|
<th width="60">
|
送货单图片
|
</th>
|
</tr>
|
</thead>
|
<tbody>
|
<asp:repeater id="RepClientList" runat="server">
|
<itemtemplate>
|
<tr>
|
<td>
|
<input type="checkbox" name='ckId' value_keyid="<%#Eval("Keyid")%>" value="{
|
id:'<%#Eval("Keyid")%>',
|
DeliverTime: '<%#Eval("DeliverTime", "{0:yyyy-MM-dd}")%>',
|
BuyerId:'<%#Eval("BuyerId")%>',
|
CarId:'<%#Eval("CarId")%>',
|
DriverId:'<%#Eval("DriverId")%>',
|
}" id='ckBox<%#Container.ItemIndex%>' id='ckBox<%#Container.ItemIndex%>' class='ckBox' />
|
</td>
|
|
<td>
|
<%#Eval("Sort")%>
|
</td>
|
<td>
|
<%#Eval("SellerOrderId")%>
|
</td>
|
<td>
|
<%#Eval("DeliverTime", "{0:yyyy-MM-dd}")%>
|
</td>
|
<td>
|
<%#Eval("DeliveredTime", "{0:yyyy-MM-dd}")%>
|
</td>
|
<td>
|
<%#Eval("BusinessManager")%>
|
</td>
|
<td>
|
<%#Eval("BuyerName")%>
|
</td>
|
|
<td>
|
<%#Eval("DizhiLianxirenDianhua")%>
|
</td>
|
<td>
|
<%#Eval("shuliang")%>
|
</td>
|
<td>
|
<%#Eval("CarName")%>
|
</td>
|
<td>
|
<%#Eval("DriverName")%>
|
</td>
|
<td>
|
<%#Eval("wentifankui") %>
|
</td>
|
<td>
|
<%#Eval("Zhuyishixiang") %>
|
</td>
|
<td>
|
<%#Eval("Gongzuokaoping")%>
|
</td>
|
<td style="text-align: center;">
|
<%#Eval("TransferName")==null || Eval("TransferName").ToString()==""?"未移交":Eval("TransferName")%>
|
</td>
|
<td>
|
<a href='javascript:void(0)' title='打印送货单' class='a_under' onclick='ToPrintDriverorder("<%#Eval("Keyid")%>")'> 打印 </a>
|
</td>
|
<td>
|
<a href='javascript:void(0)' title='送货单图片' class='a_under' onclick='onViewuplod("<%#Eval("Keyid")%>")'> 送货单图片 </a>
|
</td>
|
</tr>
|
</itemtemplate>
|
</asp:repeater>
|
|
</tbody>
|
</table>
|
<uc:ucpager id="UCPager1" runat="server" />
|
</div>
|
</div>
|
</form>
|
</body>
|
</html>
|